@wix/editor 1.538.0 → 1.540.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +36 -12
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +36 -12
- package/dist/esm/index.js.map +1 -1
- package/dist/statics/docs-ts-model.json +181 -181
- package/dist/statics/index.js +36 -12
- package/dist/statics/index.js.map +1 -1
- package/dist/types/index.d.ts +6 -3
- package/package.json +6 -6
package/dist/cjs/index.js
CHANGED
|
@@ -1558,13 +1558,14 @@ class BindingsPublicSDKShape extends BaseSDKShape {
|
|
|
1558
1558
|
);
|
|
1559
1559
|
return result;
|
|
1560
1560
|
}
|
|
1561
|
-
async findBindingCandidates(bindingTargetDetails) {
|
|
1561
|
+
async findBindingCandidates(bindingTargetDetails, options) {
|
|
1562
1562
|
const privateAPI = await this.getPlatformPrivateAPI();
|
|
1563
1563
|
const manifestContextId = await this.getRequiredManifestContextId();
|
|
1564
1564
|
return privateAPI.bindings.findBindingCandidates(
|
|
1565
1565
|
manifestContextId,
|
|
1566
1566
|
this.childPath,
|
|
1567
|
-
bindingTargetDetails
|
|
1567
|
+
bindingTargetDetails,
|
|
1568
|
+
options
|
|
1568
1569
|
);
|
|
1569
1570
|
}
|
|
1570
1571
|
async selectBinding(options) {
|
|
@@ -1588,8 +1589,25 @@ class Workspace {
|
|
|
1588
1589
|
async workspaceAPI() {
|
|
1589
1590
|
const context = await this.applicationContext;
|
|
1590
1591
|
const privateAPI = context.getPrivateAPI();
|
|
1591
|
-
|
|
1592
|
-
|
|
1592
|
+
return await privateAPI.workspace;
|
|
1593
|
+
}
|
|
1594
|
+
async appsAPI() {
|
|
1595
|
+
const workspace = await this.workspaceAPI();
|
|
1596
|
+
if (!workspace.apps) {
|
|
1597
|
+
throw new Error(
|
|
1598
|
+
"apps namespace is not available \u2014 host has not implemented it"
|
|
1599
|
+
);
|
|
1600
|
+
}
|
|
1601
|
+
return workspace.apps;
|
|
1602
|
+
}
|
|
1603
|
+
async toolsAPI() {
|
|
1604
|
+
const workspace = await this.workspaceAPI();
|
|
1605
|
+
if (!workspace.tools) {
|
|
1606
|
+
throw new Error(
|
|
1607
|
+
"tools namespace is not available \u2014 host has not implemented it"
|
|
1608
|
+
);
|
|
1609
|
+
}
|
|
1610
|
+
return workspace.tools;
|
|
1593
1611
|
}
|
|
1594
1612
|
getContextIds = () => {
|
|
1595
1613
|
throw new Error("Not implemented yet");
|
|
@@ -1599,20 +1617,26 @@ class Workspace {
|
|
|
1599
1617
|
};
|
|
1600
1618
|
apps = {
|
|
1601
1619
|
startInstallFlow: async (args) => {
|
|
1602
|
-
const
|
|
1603
|
-
return
|
|
1620
|
+
const apps = await this.appsAPI();
|
|
1621
|
+
return apps.startInstallFlow(args);
|
|
1604
1622
|
},
|
|
1605
1623
|
startPurchasePlanFlow: async (args) => {
|
|
1606
|
-
const
|
|
1607
|
-
return
|
|
1624
|
+
const apps = await this.appsAPI();
|
|
1625
|
+
return apps.startPurchasePlanFlow(args);
|
|
1608
1626
|
},
|
|
1609
1627
|
startUpdateFlow: async (args) => {
|
|
1610
|
-
const
|
|
1611
|
-
return
|
|
1628
|
+
const apps = await this.appsAPI();
|
|
1629
|
+
return apps.startUpdateFlow(args);
|
|
1612
1630
|
},
|
|
1613
1631
|
openContactSupport: async (args) => {
|
|
1614
|
-
const
|
|
1615
|
-
return
|
|
1632
|
+
const apps = await this.appsAPI();
|
|
1633
|
+
return apps.openContactSupport(args);
|
|
1634
|
+
}
|
|
1635
|
+
};
|
|
1636
|
+
tools = {
|
|
1637
|
+
editWithWixel: async (args) => {
|
|
1638
|
+
const tools = await this.toolsAPI();
|
|
1639
|
+
return tools.editWithWixel(args);
|
|
1616
1640
|
}
|
|
1617
1641
|
};
|
|
1618
1642
|
}
|