@wix/editor 1.641.0 → 1.642.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/esm/index.js CHANGED
@@ -1059,6 +1059,29 @@ class ElementSDKShape extends BaseSDKShape {
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
+ }
1062
1085
  /**
1063
1086
  * Opens the color picker for selecting a color from a custom panel.
1064
1087
  *
@@ -1258,7 +1281,7 @@ class ElementSDKShape extends BaseSDKShape {
1258
1281
  );
1259
1282
  }
1260
1283
  }
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();
1284
+ 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("selectColor").withPublicMethod("selectBackground").withPublicMethod("selectFontWeight").withPublicMethod("selectTextTheme").withPublicMethod("getArrayItemsSelectedIndex").withPublicMethod("setArrayItemsSelectedIndex").withPublicMethod("resetArrayItemsSelectedIndex").withPublicMethod("getBiToken").build();
1262
1285
 
1263
1286
  class PreferencesSDKShape extends BaseSDKShape {
1264
1287
  async get(keys) {