Skip to main content

Version 1, Update 17

New:

  • enablePrivatePluginApi option in manifest.json to enable Private Plugin specific APIs
  • For private plugins with the above option set, figma.fileKey will be set to the key of the current file.
  • The ui property in the plugin manifest can now either contain a filename in the form of a string. Or a list of filenames in the form of a map.
// either
"ui": "ui.html"

// or
"ui": {
"loginPage": "login.html",
"main": "ui.html",
}
  • If you use the former, the file is available through the __html__ property. If you use the latter, then the files are available through a new __uiFiles__ property (eg.__uiFiles__.loginPage, __uiFiles__.main etc)

Fixed:

  • InstanceNode.mainComponent now returns null instead of raising an exception if the underlying component doesn't actually exist.
  • setPluginData and setSharedPluginData now removes the the relevant entries when the value is set to the empty string "", which is the default value returned by getPluginData and getSharedPluginData.