@wix/editor 1.1006.0 → 1.1007.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 +17 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +17 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/statics/docs-ts-model.json +149 -149
- package/dist/statics/index.js +17 -1
- package/dist/statics/index.js.map +1 -1
- package/dist/types/index.d.ts +8 -1
- package/package.json +5 -5
package/dist/statics/index.js
CHANGED
|
@@ -1544,10 +1544,26 @@
|
|
|
1544
1544
|
);
|
|
1545
1545
|
return result;
|
|
1546
1546
|
}
|
|
1547
|
+
/**
|
|
1548
|
+
* The provider a provider was created from. A template provider resolves to
|
|
1549
|
+
* the provider (or nested template) it directly points to; pass
|
|
1550
|
+
* `resolveToRootSourceProvider: true` to follow nested templates down to the
|
|
1551
|
+
* root provider. Any other provider is its own source.
|
|
1552
|
+
*/
|
|
1553
|
+
async getSourceProvider(options) {
|
|
1554
|
+
const privateAPI = await this.getPlatformPrivateAPI();
|
|
1555
|
+
const manifestContextId = await this.getRequiredManifestContextId();
|
|
1556
|
+
const result = await privateAPI.providers.getSourceProvider(
|
|
1557
|
+
manifestContextId,
|
|
1558
|
+
this.childPath,
|
|
1559
|
+
options
|
|
1560
|
+
);
|
|
1561
|
+
return result;
|
|
1562
|
+
}
|
|
1547
1563
|
}
|
|
1548
1564
|
const providersPublicSDKShape = new PlatformSDKShape(
|
|
1549
1565
|
ProvidersPublicSDKShape
|
|
1550
|
-
).withPublicMethod("attach").withPublicMethod("detach").withPublicMethod("list").build();
|
|
1566
|
+
).withPublicMethod("attach").withPublicMethod("detach").withPublicMethod("list").withPublicMethod("getSourceProvider").build();
|
|
1551
1567
|
|
|
1552
1568
|
class BindingsPublicSDKShape extends BaseSDKShape {
|
|
1553
1569
|
constructor(overriddenApplicationContext = null, childPath = []) {
|