@wix/editor 1.640.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/cjs/index.js +24 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +24 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/statics/docs-ts-model.json +874 -629
- package/dist/statics/index.js +24 -1
- package/dist/statics/index.js.map +1 -1
- package/dist/types/index.d.ts +17 -2
- package/package.json +5 -5
package/dist/cjs/index.js
CHANGED
|
@@ -1061,6 +1061,29 @@ class ElementSDKShape extends BaseSDKShape {
|
|
|
1061
1061
|
params
|
|
1062
1062
|
);
|
|
1063
1063
|
}
|
|
1064
|
+
/**
|
|
1065
|
+
* Opens the WQL sort panel for a sort data item on the current component.
|
|
1066
|
+
*
|
|
1067
|
+
* Pass `dataItemKey` to let the SDK save the selected rule automatically.
|
|
1068
|
+
*
|
|
1069
|
+
* @param params - WQL sort picker options.
|
|
1070
|
+
*
|
|
1071
|
+
* @example
|
|
1072
|
+
* ```ts
|
|
1073
|
+
* import { reactElements } from '@wix/editor';
|
|
1074
|
+
*
|
|
1075
|
+
* const sort = await reactElements.selectSort({ dataItemKey: 'productSort' });
|
|
1076
|
+
* ```
|
|
1077
|
+
*/
|
|
1078
|
+
async selectSort(params) {
|
|
1079
|
+
const privateAPI = await this.getPlatformPrivateAPI();
|
|
1080
|
+
const manifestContextId = await this.getRequiredManifestContextId();
|
|
1081
|
+
return privateAPI.builderComponent.selectSort(
|
|
1082
|
+
manifestContextId,
|
|
1083
|
+
this.childPath,
|
|
1084
|
+
params
|
|
1085
|
+
);
|
|
1086
|
+
}
|
|
1064
1087
|
/**
|
|
1065
1088
|
* Opens the color picker for selecting a color from a custom panel.
|
|
1066
1089
|
*
|
|
@@ -1260,7 +1283,7 @@ class ElementSDKShape extends BaseSDKShape {
|
|
|
1260
1283
|
);
|
|
1261
1284
|
}
|
|
1262
1285
|
}
|
|
1263
|
-
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();
|
|
1286
|
+
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();
|
|
1264
1287
|
|
|
1265
1288
|
class PreferencesSDKShape extends BaseSDKShape {
|
|
1266
1289
|
async get(keys) {
|