@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/types/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import * as _wix_sdk_types from '@wix/sdk-types';
|
|
|
5
5
|
import { Host } from '@wix/sdk-types';
|
|
6
6
|
import * as _wix_sdk_runtime_host_modules from '@wix/sdk-runtime/host-modules';
|
|
7
7
|
import * as _wix_editor_platform_transport from '@wix/editor-platform-transport';
|
|
8
|
-
import { IElement, SiteLocale, ComponentRef, SelectLinkInputParams, ElementLink, IElementSDK, ElementStyleDefinitions, ElementStyles, ElementStylesUpdate, ElementStylesRemoval, ElementDataDefinitions, ElementData, ElementDataInput, ElementPresetDefinitions, ElementStateDefinitions, SelectFontParams, SelectFontFamilyParams, SelectMediaParams, SelectLinkParams, SelectSortParams, ElementSort, SelectFilterParams, ElementFilter, SelectColorParams, BackgroundPickerOptions, SelectFontWeightParams, IFontWeight, SelectTextThemeParams, DsItem, BuilderStyle, StyleRef, OpenLinkPanelFn, OpenColorPickerFn, ListProvidersOptions, Provider, GetSourceProviderOptions, SourceProvider, BindingProperties, BindingDetailsMap, UnbindAll, ListBindingsOptions, BindingTargetDetails, findBindingCandidatesOptions, BindingCandidate, SelectBindingOptions, GetContextActionsOptions, ContextActionCommand, IRouter, IReadOnlyPage, AddTemplateOptions, IPage, AddExtensionOptions } from '@wix/public-editor-platform-interfaces';
|
|
8
|
+
import { IElement, SiteLocale, ComponentRef, SelectLinkInputParams, ElementLink, IElementSDK, ElementStyleDefinitions, ElementStyles, ElementStylesUpdate, ElementStylesRemoval, ElementDataDefinitions, ElementData, ElementDataInput, ElementPresetDefinitions, ElementStateDefinitions, SelectFontParams, SelectFontFamilyParams, SelectMediaParams, SelectLinkParams, SelectSortParams, ElementSort, SelectFilterParams, ElementFilter, SelectArrayItemsParams, ElementDataValue, SelectColorParams, BackgroundPickerOptions, SelectFontWeightParams, IFontWeight, SelectTextThemeParams, DsItem, BuilderStyle, StyleRef, OpenLinkPanelFn, OpenColorPickerFn, ListProvidersOptions, Provider, GetSourceProviderOptions, SourceProvider, BindingProperties, BindingDetailsMap, UnbindAll, ListBindingsOptions, BindingTargetDetails, findBindingCandidatesOptions, BindingCandidate, SelectBindingOptions, GetContextActionsOptions, ContextActionCommand, IRouter, IReadOnlyPage, AddTemplateOptions, IPage, AddExtensionOptions } from '@wix/public-editor-platform-interfaces';
|
|
9
9
|
export { ContextActionCommand, ContextActionName, DataType, ElementA11y, ElementAddressLink, ElementAnchorLink, ElementAudio, ElementData, ElementDataDefinition, ElementDataDefinitions, ElementDataInput, ElementDataObject, ElementDataValue, ElementDirection, ElementDocumentLink, ElementDynamicPageLink, ElementEmailLink, ElementExternalLink, ElementFilter, ElementImage, ElementLink, ElementLoginToWixLink, ElementMenuItems, ElementPageLink, ElementPhoneLink, ElementPresetDefinition, ElementPresetDefinitions, ElementRichText, ElementSort, ElementStateDefinition, ElementStateDefinitions, ElementStyleDefinition, ElementStyleDefinitions, ElementStyles, ElementStylesRemoval, ElementStylesUpdate, ElementTextLink, ElementTpaPageLink, ElementVectorArt, ElementVideo, ElementWhatsAppLink, GetContextActionsOptions, NativeStateType, SiteLocale } from '@wix/public-editor-platform-interfaces';
|
|
10
10
|
|
|
11
11
|
declare class Workspace implements NonNullable<WorkspaceHost$1['workspace']> {
|
|
@@ -550,6 +550,36 @@ declare class ElementSDKShape extends BaseSDKShape implements IElementSDK {
|
|
|
550
550
|
* ```
|
|
551
551
|
*/
|
|
552
552
|
selectFilter(params: SelectFilterParams): Promise<ElementFilter | undefined>;
|
|
553
|
+
/**
|
|
554
|
+
* Opens the Manage Items panel for an `arrayItems` list on the current component.
|
|
555
|
+
*
|
|
556
|
+
* Pass `dataItemKey` to let the SDK save every change and resolve with the saved
|
|
557
|
+
* items. Pass explicit options to manage the value yourself: nothing is saved,
|
|
558
|
+
* changes arrive through `onChange`, and it resolves with the latest items.
|
|
559
|
+
*
|
|
560
|
+
* @param params - Manage Items picker options.
|
|
561
|
+
*
|
|
562
|
+
* @example
|
|
563
|
+
* ```ts
|
|
564
|
+
* import { DataType, reactElements } from '@wix/editor';
|
|
565
|
+
*
|
|
566
|
+
* // Manifest key: the editor saves every change.
|
|
567
|
+
* const slides = await reactElements.selectArrayItems({ dataItemKey: 'slides' });
|
|
568
|
+
*
|
|
569
|
+
* // Explicit options: nothing is saved; persist the result yourself.
|
|
570
|
+
* const tags = await reactElements.selectArrayItems({
|
|
571
|
+
* definition: {
|
|
572
|
+
* dataType: DataType.arrayItems,
|
|
573
|
+
* arrayItems: {
|
|
574
|
+
* data: { items: { label: { dataType: DataType.text, displayName: 'Label' } } },
|
|
575
|
+
* },
|
|
576
|
+
* },
|
|
577
|
+
* value: [{ label: 'New' }, { label: 'Sale' }],
|
|
578
|
+
* onChange: (items) => console.log('Preview:', items),
|
|
579
|
+
* });
|
|
580
|
+
* ```
|
|
581
|
+
*/
|
|
582
|
+
selectArrayItems(params: SelectArrayItemsParams): Promise<ElementDataValue[] | undefined>;
|
|
553
583
|
/**
|
|
554
584
|
* Opens the color picker for selecting a color from a custom panel.
|
|
555
585
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/editor",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1048.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Editor Platform <editor-platform-dev@wix.com>",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"*.{js,ts}": "yarn lint"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@wix/editor-platform-contexts": "1.
|
|
35
|
-
"@wix/editor-platform-environment-api": "1.
|
|
34
|
+
"@wix/editor-platform-contexts": "1.206.0",
|
|
35
|
+
"@wix/editor-platform-environment-api": "1.208.0",
|
|
36
36
|
"@wix/monitoring-browser-sdk-host": "^0.2.0",
|
|
37
37
|
"@wix/public-editor-platform-errors": "1.9.0",
|
|
38
|
-
"@wix/public-editor-platform-interfaces": "1.
|
|
38
|
+
"@wix/public-editor-platform-interfaces": "1.149.0",
|
|
39
39
|
"@wix/sdk-runtime": "^0.7.0",
|
|
40
40
|
"@wix/sdk-types": "^1.17.12",
|
|
41
41
|
"@wix/workspace": "^1.3.23"
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
]
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
|
-
"falconPackageHash": "
|
|
72
|
+
"falconPackageHash": "1b75308f034428ad987eb34dcd4c678532137febed2547ef573a5e5c"
|
|
73
73
|
}
|