@wix/editor 1.1046.0 → 1.1048.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 +39 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +39 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/statics/docs-ts-model.json +775 -577
- package/dist/statics/index.js +39 -1
- package/dist/statics/index.js.map +1 -1
- package/dist/types/index.d.ts +31 -1
- package/package.json +5 -5
package/dist/cjs/index.js
CHANGED
|
@@ -1115,6 +1115,44 @@ class ElementSDKShape extends BaseSDKShape {
|
|
|
1115
1115
|
params
|
|
1116
1116
|
);
|
|
1117
1117
|
}
|
|
1118
|
+
/**
|
|
1119
|
+
* Opens the Manage Items panel for an `arrayItems` list on the current component.
|
|
1120
|
+
*
|
|
1121
|
+
* Pass `dataItemKey` to let the SDK save every change and resolve with the saved
|
|
1122
|
+
* items. Pass explicit options to manage the value yourself: nothing is saved,
|
|
1123
|
+
* changes arrive through `onChange`, and it resolves with the latest items.
|
|
1124
|
+
*
|
|
1125
|
+
* @param params - Manage Items picker options.
|
|
1126
|
+
*
|
|
1127
|
+
* @example
|
|
1128
|
+
* ```ts
|
|
1129
|
+
* import { DataType, reactElements } from '@wix/editor';
|
|
1130
|
+
*
|
|
1131
|
+
* // Manifest key: the editor saves every change.
|
|
1132
|
+
* const slides = await reactElements.selectArrayItems({ dataItemKey: 'slides' });
|
|
1133
|
+
*
|
|
1134
|
+
* // Explicit options: nothing is saved; persist the result yourself.
|
|
1135
|
+
* const tags = await reactElements.selectArrayItems({
|
|
1136
|
+
* definition: {
|
|
1137
|
+
* dataType: DataType.arrayItems,
|
|
1138
|
+
* arrayItems: {
|
|
1139
|
+
* data: { items: { label: { dataType: DataType.text, displayName: 'Label' } } },
|
|
1140
|
+
* },
|
|
1141
|
+
* },
|
|
1142
|
+
* value: [{ label: 'New' }, { label: 'Sale' }],
|
|
1143
|
+
* onChange: (items) => console.log('Preview:', items),
|
|
1144
|
+
* });
|
|
1145
|
+
* ```
|
|
1146
|
+
*/
|
|
1147
|
+
async selectArrayItems(params) {
|
|
1148
|
+
const privateAPI = await this.getPlatformPrivateAPI();
|
|
1149
|
+
const manifestContextId = await this.getRequiredManifestContextId();
|
|
1150
|
+
return privateAPI.builderComponent.selectArrayItems(
|
|
1151
|
+
manifestContextId,
|
|
1152
|
+
this.childPath,
|
|
1153
|
+
params
|
|
1154
|
+
);
|
|
1155
|
+
}
|
|
1118
1156
|
/**
|
|
1119
1157
|
* Opens the color picker for selecting a color from a custom panel.
|
|
1120
1158
|
*
|
|
@@ -1314,7 +1352,7 @@ class ElementSDKShape extends BaseSDKShape {
|
|
|
1314
1352
|
);
|
|
1315
1353
|
}
|
|
1316
1354
|
}
|
|
1317
|
-
var index$9 = 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();
|
|
1355
|
+
var index$9 = 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("selectArrayItems").withPublicMethod("selectColor").withPublicMethod("selectBackground").withPublicMethod("selectFontWeight").withPublicMethod("selectTextTheme").withPublicMethod("getArrayItemsSelectedIndex").withPublicMethod("setArrayItemsSelectedIndex").withPublicMethod("resetArrayItemsSelectedIndex").withPublicMethod("getBiToken").build();
|
|
1318
1356
|
|
|
1319
1357
|
class PreferencesSDKShape extends BaseSDKShape {
|
|
1320
1358
|
async get(keys) {
|