@wix/editor 1.1047.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/statics/index.js
CHANGED
|
@@ -1113,6 +1113,44 @@
|
|
|
1113
1113
|
params
|
|
1114
1114
|
);
|
|
1115
1115
|
}
|
|
1116
|
+
/**
|
|
1117
|
+
* Opens the Manage Items panel for an `arrayItems` list on the current component.
|
|
1118
|
+
*
|
|
1119
|
+
* Pass `dataItemKey` to let the SDK save every change and resolve with the saved
|
|
1120
|
+
* items. Pass explicit options to manage the value yourself: nothing is saved,
|
|
1121
|
+
* changes arrive through `onChange`, and it resolves with the latest items.
|
|
1122
|
+
*
|
|
1123
|
+
* @param params - Manage Items picker options.
|
|
1124
|
+
*
|
|
1125
|
+
* @example
|
|
1126
|
+
* ```ts
|
|
1127
|
+
* import { DataType, reactElements } from '@wix/editor';
|
|
1128
|
+
*
|
|
1129
|
+
* // Manifest key: the editor saves every change.
|
|
1130
|
+
* const slides = await reactElements.selectArrayItems({ dataItemKey: 'slides' });
|
|
1131
|
+
*
|
|
1132
|
+
* // Explicit options: nothing is saved; persist the result yourself.
|
|
1133
|
+
* const tags = await reactElements.selectArrayItems({
|
|
1134
|
+
* definition: {
|
|
1135
|
+
* dataType: DataType.arrayItems,
|
|
1136
|
+
* arrayItems: {
|
|
1137
|
+
* data: { items: { label: { dataType: DataType.text, displayName: 'Label' } } },
|
|
1138
|
+
* },
|
|
1139
|
+
* },
|
|
1140
|
+
* value: [{ label: 'New' }, { label: 'Sale' }],
|
|
1141
|
+
* onChange: (items) => console.log('Preview:', items),
|
|
1142
|
+
* });
|
|
1143
|
+
* ```
|
|
1144
|
+
*/
|
|
1145
|
+
async selectArrayItems(params) {
|
|
1146
|
+
const privateAPI = await this.getPlatformPrivateAPI();
|
|
1147
|
+
const manifestContextId = await this.getRequiredManifestContextId();
|
|
1148
|
+
return privateAPI.builderComponent.selectArrayItems(
|
|
1149
|
+
manifestContextId,
|
|
1150
|
+
this.childPath,
|
|
1151
|
+
params
|
|
1152
|
+
);
|
|
1153
|
+
}
|
|
1116
1154
|
/**
|
|
1117
1155
|
* Opens the color picker for selecting a color from a custom panel.
|
|
1118
1156
|
*
|
|
@@ -1312,7 +1350,7 @@
|
|
|
1312
1350
|
);
|
|
1313
1351
|
}
|
|
1314
1352
|
}
|
|
1315
|
-
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();
|
|
1353
|
+
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();
|
|
1316
1354
|
|
|
1317
1355
|
class PreferencesSDKShape extends BaseSDKShape {
|
|
1318
1356
|
async get(keys) {
|