@wix/editor 1.641.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.
@@ -5,8 +5,8 @@ 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, IElementSDK, ElementStyleDefinitions, ElementStyles, ElementStylesUpdate, ElementStylesRemoval, ElementDataDefinitions, ElementData, ElementDataInput, ElementPresetDefinitions, ElementStateDefinitions, SelectFontParams, SelectFontFamilyParams, SelectMediaParams, SelectLinkParams, ElementLink, SelectColorParams, BackgroundPickerOptions, SelectFontWeightParams, IFontWeight, SelectTextThemeParams, DsItem, BuilderStyle, StyleRef, OpenLinkPanelFn, OpenColorPickerFn, ListProvidersOptions, Provider, BindingProperties, BindingDetailsMap, UnbindAll, ListBindingsOptions, BindingTargetDetails, findBindingCandidatesOptions, BindingCandidate, SelectBindingOptions, IRouter, IPage, AddTemplateOptions, AddExtensionOptions } from '@wix/public-editor-platform-interfaces';
9
- export { DataType, ElementA11y, ElementAddressLink, ElementAnchorLink, ElementAudio, ElementData, ElementDataDefinition, ElementDataDefinitions, ElementDataInput, ElementDataObject, ElementDataValue, ElementDirection, ElementDocumentLink, ElementDynamicPageLink, ElementEmailLink, ElementExternalLink, ElementImage, ElementLink, ElementLoginToWixLink, ElementMenuItems, ElementPageLink, ElementPhoneLink, ElementPresetDefinition, ElementPresetDefinitions, ElementRichText, ElementStateDefinition, ElementStateDefinitions, ElementStyleDefinition, ElementStyleDefinitions, ElementStyles, ElementStylesRemoval, ElementStylesUpdate, ElementTextLink, ElementTpaPageLink, ElementVectorArt, ElementVideo, ElementWhatsAppLink, NativeStateType, SiteLocale } from '@wix/public-editor-platform-interfaces';
8
+ import { IElement, SiteLocale, ComponentRef, IElementSDK, ElementStyleDefinitions, ElementStyles, ElementStylesUpdate, ElementStylesRemoval, ElementDataDefinitions, ElementData, ElementDataInput, ElementPresetDefinitions, ElementStateDefinitions, SelectFontParams, SelectFontFamilyParams, SelectMediaParams, SelectLinkParams, ElementLink, SelectSortParams, ElementSort, SelectColorParams, BackgroundPickerOptions, SelectFontWeightParams, IFontWeight, SelectTextThemeParams, DsItem, BuilderStyle, StyleRef, OpenLinkPanelFn, OpenColorPickerFn, ListProvidersOptions, Provider, BindingProperties, BindingDetailsMap, UnbindAll, ListBindingsOptions, BindingTargetDetails, findBindingCandidatesOptions, BindingCandidate, SelectBindingOptions, IRouter, IPage, AddTemplateOptions, AddExtensionOptions } from '@wix/public-editor-platform-interfaces';
9
+ export { DataType, ElementA11y, ElementAddressLink, ElementAnchorLink, ElementAudio, ElementData, ElementDataDefinition, ElementDataDefinitions, ElementDataInput, ElementDataObject, ElementDataValue, ElementDirection, ElementDocumentLink, ElementDynamicPageLink, ElementEmailLink, ElementExternalLink, ElementImage, ElementLink, ElementLoginToWixLink, ElementMenuItems, ElementPageLink, ElementPhoneLink, ElementPresetDefinition, ElementPresetDefinitions, ElementRichText, ElementSort, ElementStateDefinition, ElementStateDefinitions, ElementStyleDefinition, ElementStyleDefinitions, ElementStyles, ElementStylesRemoval, ElementStylesUpdate, ElementTextLink, ElementTpaPageLink, ElementVectorArt, ElementVideo, ElementWhatsAppLink, NativeStateType, SiteLocale } from '@wix/public-editor-platform-interfaces';
10
10
 
11
11
  declare class Workspace implements NonNullable<WorkspaceHost$1['workspace']> {
12
12
  private applicationContext;
@@ -515,6 +515,21 @@ declare class ElementSDKShape extends BaseSDKShape implements IElementSDK {
515
515
  * ```
516
516
  */
517
517
  selectLink(params: SelectLinkParams): Promise<ElementLink | null | undefined>;
518
+ /**
519
+ * Opens the WQL sort panel for a sort data item on the current component.
520
+ *
521
+ * Pass `dataItemKey` to let the SDK save the selected rule automatically.
522
+ *
523
+ * @param params - WQL sort picker options.
524
+ *
525
+ * @example
526
+ * ```ts
527
+ * import { reactElements } from '@wix/editor';
528
+ *
529
+ * const sort = await reactElements.selectSort({ dataItemKey: 'productSort' });
530
+ * ```
531
+ */
532
+ selectSort(params: SelectSortParams): Promise<ElementSort | undefined>;
518
533
  /**
519
534
  * Opens the color picker for selecting a color from a custom panel.
520
535
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/editor",
3
- "version": "1.641.0",
3
+ "version": "1.642.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.130.0",
35
- "@wix/editor-platform-environment-api": "1.131.0",
34
+ "@wix/editor-platform-contexts": "1.131.0",
35
+ "@wix/editor-platform-environment-api": "1.132.0",
36
36
  "@wix/monitoring-browser-sdk-host": "^0.1.25",
37
37
  "@wix/public-editor-platform-errors": "1.9.0",
38
- "@wix/public-editor-platform-interfaces": "1.73.0",
38
+ "@wix/public-editor-platform-interfaces": "1.74.0",
39
39
  "@wix/sdk-runtime": "^0.7.0",
40
40
  "@wix/sdk-types": "^1.17.8",
41
41
  "@wix/workspace": "^1.3.11"
@@ -69,5 +69,5 @@
69
69
  ]
70
70
  }
71
71
  },
72
- "falconPackageHash": "2a4326fa9bf84c59fff9bf028ba394280fa55eb1a5aed1d97838a52a"
72
+ "falconPackageHash": "b844845c6ae4fe318f8436bff62b7dda353ebc9bee7ad6dceae8845f"
73
73
  }