@wix/editor 1.483.0 → 1.485.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.
@@ -1626,21 +1626,28 @@
1626
1626
  );
1627
1627
  return result;
1628
1628
  }
1629
- // TODO: [EP-8188] Connect the findBindingCandidates implementation when it Available
1630
- // finds the available binding options for the target prop of the provided component
1631
- // async findBindingCandidates(propPath: string): Promise<BindingCandidate[]> {
1632
- // const privateAPI = await this.getPlatformPrivateAPI();
1633
- // const manifestContextId = await this.getRequiredManifestContextId();
1634
- // return privateAPI.bindings.findBindingCandidates(
1635
- // manifestContextId,
1636
- // this.childPath,
1637
- // propPath,
1638
- // );
1639
- // }
1629
+ async findBindingCandidates(bindingTargetDetails) {
1630
+ const privateAPI = await this.getPlatformPrivateAPI();
1631
+ const manifestContextId = await this.getRequiredManifestContextId();
1632
+ return privateAPI.bindings.findBindingCandidates(
1633
+ manifestContextId,
1634
+ this.childPath,
1635
+ bindingTargetDetails
1636
+ );
1637
+ }
1638
+ async selectBinding(options) {
1639
+ const privateAPI = await this.getPlatformPrivateAPI();
1640
+ const manifestContextId = await this.getRequiredManifestContextId();
1641
+ await privateAPI.bindings.selectBinding(
1642
+ manifestContextId,
1643
+ this.childPath,
1644
+ options
1645
+ );
1646
+ }
1640
1647
  }
1641
1648
  const bindingsPublicSDKShape = new PlatformSDKShape(
1642
1649
  BindingsPublicSDKShape
1643
- ).withPublicMethod("bind").withPublicMethod("unbind").withPublicMethod("listBindings").build();
1650
+ ).withPublicMethod("bind").withPublicMethod("unbind").withPublicMethod("listBindings").withPublicMethod("findBindingCandidates").withPublicMethod("selectBinding").build();
1644
1651
 
1645
1652
  class Workspace {
1646
1653
  constructor(applicationContext) {