site-script-editor

This is a beta version from a site script editor for SharePoint. It's purpose is to help creating site scripts.

Usage no npm install needed!

<script type="module">
  import siteScriptEditor from 'https://cdn.skypack.dev/site-script-editor';
</script>

README

Site Script Editor for SharePoint (site-script-editor)

This is a beta version from a site script editor for SharePoint. It's purpose is to help creating site scripts.

This is built as a React component, use it like this:

const siteScriptContainer = {
    title: "My Site Script",
    id: "mySiteScript",
    siteScript: {
        "$schema": "schema.json",
        "actions": [
            {
            "verb": "addPrincipalToSPGroup",
            "principal": "CompanyAdmin",
            "group": "Owners"
            }
        ],
        "bindata": {},
        "version": 1
        }
}
const onSiteScriptContainerChange = newSiteScriptContainer => {
        //do something with the newSiteScriptContainer
}

<SiteScriptEditor
    siteScriptContainer={siteScriptContainer}
    onSiteScriptContainerChange={onSiteScriptContainerChange}
/>

Site Script Editor is available online at sitedesigner.io (courtesy of Frontium.com). Help texts are from Microsoft docs

Created by Mikko Punamäki