@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.
- package/dist/cjs/index.js +47 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +47 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/statics/docs-ts-model.json +1123 -633
- package/dist/statics/index.js +47 -1
- package/dist/statics/index.js.map +1 -1
- package/dist/types/index.d.ts +32 -2
- package/package.json +5 -5
package/dist/cjs/index.js
CHANGED
|
@@ -1061,6 +1061,52 @@ 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
|
+
}
|
|
1087
|
+
/**
|
|
1088
|
+
* Opens the WQL filter panel for a filter data item on the current component.
|
|
1089
|
+
*
|
|
1090
|
+
* Pass `dataItemKey` to let the SDK save the selected rule automatically.
|
|
1091
|
+
*
|
|
1092
|
+
* @param params - WQL filter picker options.
|
|
1093
|
+
*
|
|
1094
|
+
* @example
|
|
1095
|
+
* ```ts
|
|
1096
|
+
* import { reactElements } from '@wix/editor';
|
|
1097
|
+
*
|
|
1098
|
+
* const filter = await reactElements.selectFilter({ dataItemKey: 'productFilter' });
|
|
1099
|
+
* ```
|
|
1100
|
+
*/
|
|
1101
|
+
async selectFilter(params) {
|
|
1102
|
+
const privateAPI = await this.getPlatformPrivateAPI();
|
|
1103
|
+
const manifestContextId = await this.getRequiredManifestContextId();
|
|
1104
|
+
return privateAPI.builderComponent.selectFilter(
|
|
1105
|
+
manifestContextId,
|
|
1106
|
+
this.childPath,
|
|
1107
|
+
params
|
|
1108
|
+
);
|
|
1109
|
+
}
|
|
1064
1110
|
/**
|
|
1065
1111
|
* Opens the color picker for selecting a color from a custom panel.
|
|
1066
1112
|
*
|
|
@@ -1260,7 +1306,7 @@ class ElementSDKShape extends BaseSDKShape {
|
|
|
1260
1306
|
);
|
|
1261
1307
|
}
|
|
1262
1308
|
}
|
|
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();
|
|
1309
|
+
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();
|
|
1264
1310
|
|
|
1265
1311
|
class PreferencesSDKShape extends BaseSDKShape {
|
|
1266
1312
|
async get(keys) {
|