@wix/editor 1.519.0 → 1.521.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,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, ComponentRef, ElementStyleDefinitions, ElementStyles, ElementStylesUpdate, ElementStylesRemoval, ElementDataDefinitions, ElementData, ElementDataInput, ElementPresetDefinitions, ElementStateDefinitions, ElementLink, BackgroundPickerOptions, DsItem, BuilderStyle, StyleRef, OpenLinkPanelFn, OpenColorPickerFn, ListProvidersOptions, Provider, BindingProperties, UnbindAll, ListBindingsOptions, BindingTargetDetails, BindingCandidate, SelectBindingOptions } from '@wix/public-editor-platform-interfaces';
8
+ import { IElement, ComponentRef, ElementStyleDefinitions, ElementStyles, ElementStylesUpdate, ElementStylesRemoval, ElementDataDefinitions, ElementData, ElementDataInput, ElementPresetDefinitions, ElementStateDefinitions, ElementLink, BackgroundPickerOptions, DsItem, BuilderStyle, StyleRef, OpenLinkPanelFn, OpenColorPickerFn, ListProvidersOptions, Provider, BindingProperties, UnbindAll, ListBindingsOptions, BindingTargetDetails, BindingCandidate, SelectBindingOptions, IRouter } from '@wix/public-editor-platform-interfaces';
9
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 } from '@wix/public-editor-platform-interfaces';
10
10
 
11
11
  declare class Workspace implements NonNullable<WorkspaceHost$1['workspace']> {
@@ -38,18 +38,18 @@ declare class ApplicationSDKShape extends BaseSDKShape {
38
38
  getPublicAPI<T>(appDefinitionId: string): Promise<T>;
39
39
  getAppInstance(): Promise<any>;
40
40
  }
41
- declare const _default$d: ApplicationSDKShape & _wix_sdk_runtime_host_modules.HostModule<ApplicationSDKShape, _wix_sdk_types.Host>;
41
+ declare const _default$e: ApplicationSDKShape & _wix_sdk_runtime_host_modules.HostModule<ApplicationSDKShape, _wix_sdk_types.Host>;
42
42
 
43
43
  declare class ElementsSDKShape extends BaseSDKShape {
44
44
  getSelection(): Promise<IElement[]>;
45
45
  onSelectionChange(cb: (elements: IElement[]) => void): Promise<void>;
46
46
  }
47
- declare const _default$c: ElementsSDKShape & _wix_sdk_runtime_host_modules.HostModule<ElementsSDKShape, _wix_sdk_types.Host>;
47
+ declare const _default$d: ElementsSDKShape & _wix_sdk_runtime_host_modules.HostModule<ElementsSDKShape, _wix_sdk_types.Host>;
48
48
 
49
49
  declare class EventsSDKShape extends BaseSDKShape {
50
50
  addEventListener(name: any, cb: (payload: AppEventPayload<AllowedEvents>) => void): Promise<() => void>;
51
51
  }
52
- declare const _default$b: EventsSDKShape & _wix_sdk_runtime_host_modules.HostModule<EventsSDKShape, _wix_sdk_types.Host>;
52
+ declare const _default$c: EventsSDKShape & _wix_sdk_runtime_host_modules.HostModule<EventsSDKShape, _wix_sdk_types.Host>;
53
53
 
54
54
  type ThemeCustomProperty = {
55
55
  type: string;
@@ -82,7 +82,7 @@ declare class InfoSDKShape extends BaseSDKShape {
82
82
  getFontFamilyDisplayName(fontFamily: string): Promise<string | undefined>;
83
83
  getMetaSiteId(): Promise<string>;
84
84
  }
85
- declare const _default$a: InfoSDKShape & _wix_sdk_runtime_host_modules.HostModule<InfoSDKShape, _wix_sdk_types.Host>;
85
+ declare const _default$b: InfoSDKShape & _wix_sdk_runtime_host_modules.HostModule<InfoSDKShape, _wix_sdk_types.Host>;
86
86
 
87
87
  declare class WidgetScopedSDK {
88
88
  private compRef;
@@ -103,7 +103,7 @@ declare class WidgetSDKShape extends BaseSDKShape {
103
103
  setDesignPreset(designPresetName: string): Promise<void>;
104
104
  getNestedWidget(selector: `#${string}`): Promise<WidgetScopedSDK | null>;
105
105
  }
106
- declare const _default$9: WidgetSDKShape & _wix_sdk_runtime_host_modules.HostModule<WidgetSDKShape, _wix_sdk_types.Host>;
106
+ declare const _default$a: WidgetSDKShape & _wix_sdk_runtime_host_modules.HostModule<WidgetSDKShape, _wix_sdk_types.Host>;
107
107
 
108
108
  interface FontPickerValue {
109
109
  font: string;
@@ -119,13 +119,13 @@ declare class InputsSDKShape extends BaseSDKShape {
119
119
  onChange?: (value: FontPickerValue) => void;
120
120
  }): Promise<FontPickerValue | undefined>;
121
121
  }
122
- declare const _default$8: InputsSDKShape & _wix_sdk_runtime_host_modules.HostModule<InputsSDKShape, _wix_sdk_types.Host>;
122
+ declare const _default$9: InputsSDKShape & _wix_sdk_runtime_host_modules.HostModule<InputsSDKShape, _wix_sdk_types.Host>;
123
123
 
124
124
  declare class PanelsSDKShape extends BaseSDKShape {
125
125
  openLanguageSupportPanel(): Promise<any>;
126
126
  openFontsUploadPanel(): Promise<any>;
127
127
  }
128
- declare const _default$7: PanelsSDKShape & _wix_sdk_runtime_host_modules.HostModule<PanelsSDKShape, _wix_sdk_types.Host>;
128
+ declare const _default$8: PanelsSDKShape & _wix_sdk_runtime_host_modules.HostModule<PanelsSDKShape, _wix_sdk_types.Host>;
129
129
 
130
130
  declare class ModalsSDKShape extends BaseSDKShape {
131
131
  openDashboardModal(options: {
@@ -133,7 +133,7 @@ declare class ModalsSDKShape extends BaseSDKShape {
133
133
  closeOtherPanels?: boolean;
134
134
  }): Promise<any>;
135
135
  }
136
- declare const _default$6: ModalsSDKShape & _wix_sdk_runtime_host_modules.HostModule<ModalsSDKShape, _wix_sdk_types.Host>;
136
+ declare const _default$7: ModalsSDKShape & _wix_sdk_runtime_host_modules.HostModule<ModalsSDKShape, _wix_sdk_types.Host>;
137
137
 
138
138
  /** Represents a font family and its weight. */
139
139
  interface IFontFamily {
@@ -762,13 +762,13 @@ declare class ElementSDKShape extends BaseSDKShape {
762
762
  getBiToken(): Promise<string>;
763
763
  }
764
764
 
765
- declare const _default$5: ElementSDKShape & _wix_sdk_runtime_host_modules.HostModule<ElementSDKShape, _wix_sdk_types.Host>;
765
+ declare const _default$6: ElementSDKShape & _wix_sdk_runtime_host_modules.HostModule<ElementSDKShape, _wix_sdk_types.Host>;
766
766
 
767
767
  declare class PreferencesSDKShape extends BaseSDKShape {
768
768
  get(keys: string[]): Promise<any>;
769
769
  set(preferences: Record<string, any>): Promise<any>;
770
770
  }
771
- declare const _default$4: PreferencesSDKShape & _wix_sdk_runtime_host_modules.HostModule<PreferencesSDKShape, _wix_sdk_types.Host>;
771
+ declare const _default$5: PreferencesSDKShape & _wix_sdk_runtime_host_modules.HostModule<PreferencesSDKShape, _wix_sdk_types.Host>;
772
772
 
773
773
  declare class ExternalPanelsSDKShape extends BaseSDKShape {
774
774
  getData(): Promise<any>;
@@ -781,7 +781,7 @@ declare class ExternalPanelsSDKShape extends BaseSDKShape {
781
781
  selectColor(...options: any): Promise<OpenColorPickerFn>;
782
782
  translate(key: string | string[], values?: Record<string, any>): Promise<any>;
783
783
  }
784
- declare const _default$3: ExternalPanelsSDKShape & _wix_sdk_runtime_host_modules.HostModule<ExternalPanelsSDKShape, _wix_sdk_types.Host>;
784
+ declare const _default$4: ExternalPanelsSDKShape & _wix_sdk_runtime_host_modules.HostModule<ExternalPanelsSDKShape, _wix_sdk_types.Host>;
785
785
 
786
786
  interface AppController {
787
787
  type: string;
@@ -792,7 +792,7 @@ declare class ControllersSDKShape extends BaseSDKShape {
792
792
  #private;
793
793
  get(): Promise<AppController[]>;
794
794
  }
795
- declare const _default$2: ControllersSDKShape & _wix_sdk_runtime_host_modules.HostModule<ControllersSDKShape, _wix_sdk_types.Host>;
795
+ declare const _default$3: ControllersSDKShape & _wix_sdk_runtime_host_modules.HostModule<ControllersSDKShape, _wix_sdk_types.Host>;
796
796
 
797
797
  /**
798
798
  * Binding target for public SDK
@@ -815,12 +815,12 @@ interface IBindingConnectionItem<T = unknown> {
815
815
  declare class CmsBindingsSDKShape extends BaseSDKShape {
816
816
  get(target: BindingTarget): Promise<IBindingConnectionItem | null>;
817
817
  }
818
- declare const _default$1: CmsBindingsSDKShape & _wix_sdk_runtime_host_modules.HostModule<CmsBindingsSDKShape, _wix_sdk_types.Host>;
818
+ declare const _default$2: CmsBindingsSDKShape & _wix_sdk_runtime_host_modules.HostModule<CmsBindingsSDKShape, _wix_sdk_types.Host>;
819
819
 
820
820
  declare class BindingsProvidersSDKShape extends BaseSDKShape {
821
821
  list(bindingTarget: BindingTarget): Promise<any>;
822
822
  }
823
- declare const _default: BindingsProvidersSDKShape & _wix_sdk_runtime_host_modules.HostModule<BindingsProvidersSDKShape, _wix_sdk_types.Host>;
823
+ declare const _default$1: BindingsProvidersSDKShape & _wix_sdk_runtime_host_modules.HostModule<BindingsProvidersSDKShape, _wix_sdk_types.Host>;
824
824
 
825
825
  declare class ProvidersPublicSDKShape extends BaseSDKShape {
826
826
  protected overriddenApplicationContext: Promise<ApplicationContext> | null;
@@ -855,6 +855,15 @@ declare class PlatformSDKShape<TShape extends new (...args: any[]) => any, TSele
855
855
  build(): InstanceType<TShape> & _wix_sdk_runtime_host_modules.HostModule<InstanceType<TShape>, Host>;
856
856
  }
857
857
 
858
+ declare class RoutersSDKShape extends BaseSDKShape {
859
+ protected overriddenApplicationContext: Promise<ApplicationContext> | null;
860
+ constructor(overriddenApplicationContext?: Promise<ApplicationContext> | null);
861
+ isValidPrefix(prefix: string): Promise<boolean>;
862
+ list(): Promise<IRouter[]>;
863
+ add(extensionId: string): Promise<IRouter>;
864
+ }
865
+ declare const _default: RoutersSDKShape & _wix_sdk_runtime_host_modules.HostModule<RoutersSDKShape, _wix_sdk_types.Host>;
866
+
858
867
  declare const editor: {
859
868
  host: () => _wix_sdk_types.Host & {
860
869
  workspace: Workspace;
@@ -869,4 +878,4 @@ declare const editor: {
869
878
  };
870
879
  };
871
880
 
872
- export { BaseSDKShape, ElementSDKShape, PlatformSDKShape, ElementSDKShape as ReactElementsSDKShape, Workspace, WorkspaceHost, _default$d as application, bindingsPublicSDKShape as bindings, _default as bindingsProviders, _default$1 as cmsBindings, _default$2 as controllers, editor, _default$5 as element, _default$c as elements, _default$b as events, _default$3 as externalPanels, _default$a as info, _default$8 as inputs, _default$6 as modals, _default$7 as panels, _default$4 as preferences, providersPublicSDKShape as providers, _default$5 as reactElements, _default$9 as widget };
881
+ export { BaseSDKShape, ElementSDKShape, PlatformSDKShape, ElementSDKShape as ReactElementsSDKShape, RoutersSDKShape, Workspace, WorkspaceHost, _default$e as application, bindingsPublicSDKShape as bindings, _default$1 as bindingsProviders, _default$2 as cmsBindings, _default$3 as controllers, editor, _default$6 as element, _default$d as elements, _default$c as events, _default$4 as externalPanels, _default$b as info, _default$9 as inputs, _default$7 as modals, _default$8 as panels, _default$5 as preferences, providersPublicSDKShape as providers, _default$6 as reactElements, _default as routers, _default$a as widget };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/editor",
3
- "version": "1.519.0",
3
+ "version": "1.521.0",
4
4
  "license": "UNLICENSED",
5
5
  "author": {
6
6
  "name": "Editor Platform <editor-platform-dev@wix.com>",
@@ -69,5 +69,5 @@
69
69
  ]
70
70
  }
71
71
  },
72
- "falconPackageHash": "041b92ecede764c65425504677df41ea6f09ab5a3137e855604bb408"
72
+ "falconPackageHash": "2fe51611dbe60de5b39d2c9d04d49b99484c63b0b8e530988cbf69ff"
73
73
  }