Version 1, Update 17
New:
enablePrivatePluginApioption in manifest.json to enable Private Plugin specific APIs- For private plugins with the above option set,
figma.fileKeywill be set to the key of the current file. - The
uiproperty 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__.mainetc)
Fixed:
InstanceNode.mainComponentnow returns null instead of raising an exception if the underlying component doesn't actually exist.setPluginDataandsetSharedPluginDatanow removes the the relevant entries when the value is set to the empty string"", which is the default value returned bygetPluginDataandgetSharedPluginData.