- The find series APIs are deprecated. Please use findAsync and other interfaces instead. Example:
const adapt_findAll = async (node: any, cb?: (node: any) => boolean) => {
if (pixso.apiVersion === "1.0.0") {
return node.findAll(cb);
} else {
return (await (node as any).findAllAsync()).filter(cb);
}
};
- 2.0 plugin iframe has been changed to null origin iframe. When passing data from UI to plugin code, you need to explicitly specify parentOrigin as
*
window.parent.postMessage({ pluginMessage: "This is a message" }, "*");
- The host configuration in manifest has been deprecated
"main": {
"sandbox": "dist/main.js",
"host": "dist/host.js"
}
"main": "dist/main.js"