@wix/editor 1.641.0 → 1.643.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.
@@ -1059,6 +1059,52 @@
1059
1059
  params
1060
1060
  );
1061
1061
  }
1062
+ /**
1063
+ * Opens the WQL sort panel for a sort data item on the current component.
1064
+ *
1065
+ * Pass `dataItemKey` to let the SDK save the selected rule automatically.
1066
+ *
1067
+ * @param params - WQL sort picker options.
1068
+ *
1069
+ * @example
1070
+ * ```ts
1071
+ * import { reactElements } from '@wix/editor';
1072
+ *
1073
+ * const sort = await reactElements.selectSort({ dataItemKey: 'productSort' });
1074
+ * ```
1075
+ */
1076
+ async selectSort(params) {
1077
+ const privateAPI = await this.getPlatformPrivateAPI();
1078
+ const manifestContextId = await this.getRequiredManifestContextId();
1079
+ return privateAPI.builderComponent.selectSort(
1080
+ manifestContextId,
1081
+ this.childPath,
1082
+ params
1083
+ );
1084
+ }
1085
+ /**
1086
+ * Opens the WQL filter panel for a filter data item on the current component.
1087
+ *
1088
+ * Pass `dataItemKey` to let the SDK save the selected rule automatically.
1089
+ *
1090
+ * @param params - WQL filter picker options.
1091
+ *
1092
+ * @example
1093
+ * ```ts
1094
+ * import { reactElements } from '@wix/editor';
1095
+ *
1096
+ * const filter = await reactElements.selectFilter({ dataItemKey: 'productFilter' });
1097
+ * ```
1098
+ */
1099
+ async selectFilter(params) {
1100
+ const privateAPI = await this.getPlatformPrivateAPI();
1101
+ const manifestContextId = await this.getRequiredManifestContextId();
1102
+ return privateAPI.builderComponent.selectFilter(
1103
+ manifestContextId,
1104
+ this.childPath,
1105
+ params
1106
+ );
1107
+ }
1062
1108
  /**
1063
1109
  * Opens the color picker for selecting a color from a custom panel.
1064
1110
  *
@@ -1258,7 +1304,7 @@
1258
1304
  );
1259
1305
  }
1260
1306
  }
1261
- var index$7 = new PlatformSDKShape(ElementSDKShape).withPublicMethod("getDataDefinitions").withPublicMethod("getData").withPublicMethod("getResolvedData").withPublicMethod("setData").withPublicMethod("getStyleDefinitions").withPublicMethod("getStyles").withPublicMethod("setStyles").withPublicMethod("removeStyles").withPublicMethod("getPresetDefinitions").withPublicMethod("getAppliedPreset").withPublicMethod("applyPreset").withPublicMethod("getDisplayGroupDefinitions").withPublicMethod("getDisplayName").withPublicMethod("getState").withPublicMethod("setState").withPublicMethod("onChange").withPublicMethod("getStateDefinitions").withPublicMethod("selectFont").withPublicMethod("selectFontFamily").withPublicMethod("selectMedia").withPublicMethod("selectLink").withPublicMethod("selectColor").withPublicMethod("selectBackground").withPublicMethod("selectFontWeight").withPublicMethod("selectTextTheme").withPublicMethod("getArrayItemsSelectedIndex").withPublicMethod("setArrayItemsSelectedIndex").withPublicMethod("resetArrayItemsSelectedIndex").withPublicMethod("getBiToken").build();
1307
+ var index$7 = new PlatformSDKShape(ElementSDKShape).withPublicMethod("getDataDefinitions").withPublicMethod("getData").withPublicMethod("getResolvedData").withPublicMethod("setData").withPublicMethod("getStyleDefinitions").withPublicMethod("getStyles").withPublicMethod("setStyles").withPublicMethod("removeStyles").withPublicMethod("getPresetDefinitions").withPublicMethod("getAppliedPreset").withPublicMethod("applyPreset").withPublicMethod("getDisplayGroupDefinitions").withPublicMethod("getDisplayName").withPublicMethod("getState").withPublicMethod("setState").withPublicMethod("onChange").withPublicMethod("getStateDefinitions").withPublicMethod("selectFont").withPublicMethod("selectFontFamily").withPublicMethod("selectMedia").withPublicMethod("selectLink").withPublicMethod("selectSort").withPublicMethod("selectFilter").withPublicMethod("selectColor").withPublicMethod("selectBackground").withPublicMethod("selectFontWeight").withPublicMethod("selectTextTheme").withPublicMethod("getArrayItemsSelectedIndex").withPublicMethod("setArrayItemsSelectedIndex").withPublicMethod("resetArrayItemsSelectedIndex").withPublicMethod("getBiToken").build();
1262
1308
 
1263
1309
  class PreferencesSDKShape extends BaseSDKShape {
1264
1310
  async get(keys) {