@wix/editor 1.363.0 → 1.365.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,18 +5,14 @@ import * as _wix_editor_platform_transport from '@wix/editor-platform-transport'
5
5
  import { IElement, ComponentRef, DsItem, Style, StyleRef, OpenLinkPanelFn, OpenColorPickerFn } from '@wix/public-editor-platform-interfaces';
6
6
 
7
7
  declare class BaseSDKShape {
8
- private overrideApplicationContext;
9
- /**
10
- * note, constructor might be called multiple times
11
- * because of the context override
12
- */
13
- constructor(overrideApplicationContext?: Promise<ApplicationContext<any>> | null);
14
- protected getApplicationContext(): Promise<ApplicationContext<any>>;
15
- protected getAppDefinitionId(): Promise<string>;
8
+ private overriddenApplicationContext;
9
+ constructor(overriddenApplicationContext?: Promise<ApplicationContext> | null);
10
+ protected getApplicationContext(): Promise<ApplicationContext>;
11
+ protected getAppDefinitionId(): Promise<string | null | undefined>;
12
+ protected getManifestContextId(): Promise<string | null | undefined>;
13
+ protected getRequiredManifestContextId(): Promise<string>;
16
14
  protected getEnvironmentContext(): Promise<_wix_editor_platform_contexts.EnvironmentContext>;
17
15
  protected getPlatformPrivateAPI(): Promise<_wix_editor_platform_transport.WithPromiseFunctions<any>>;
18
- protected getContextBindings(): Promise<any>;
19
- withApplicationContext(applicationContext: Promise<ApplicationContext<any>>): any;
20
16
  }
21
17
 
22
18
  declare class ApplicationSDKShape extends BaseSDKShape {
@@ -24,25 +20,24 @@ declare class ApplicationSDKShape extends BaseSDKShape {
24
20
  getPublicAPI<T>(appDefinitionId: string): Promise<T>;
25
21
  getAppInstance(): Promise<any>;
26
22
  }
27
- declare const _default$9: ApplicationSDKShape & _wix_sdk_types.HostModule<ApplicationSDKShape, _wix_sdk_types.Host>;
23
+ declare const _default$a: ApplicationSDKShape & _wix_sdk_types.HostModule<ApplicationSDKShape, _wix_sdk_types.Host>;
28
24
 
29
25
  declare class ElementsSDKShape extends BaseSDKShape {
30
- #private;
31
26
  getSelection(): Promise<IElement[]>;
32
- onSelectionChange(cb: (elements: IElement[]) => void): void;
27
+ onSelectionChange(cb: (elements: IElement[]) => void): Promise<void>;
33
28
  }
34
- declare const _default$8: ElementsSDKShape & _wix_sdk_types.HostModule<ElementsSDKShape, _wix_sdk_types.Host>;
29
+ declare const _default$9: ElementsSDKShape & _wix_sdk_types.HostModule<ElementsSDKShape, _wix_sdk_types.Host>;
35
30
 
36
31
  declare class EventsSDKShape extends BaseSDKShape {
37
32
  addEventListener(name: any, cb: (payload: AppEventPayload<AllowedEvents>) => void): Promise<() => void>;
38
33
  }
39
- declare const _default$7: EventsSDKShape & _wix_sdk_types.HostModule<EventsSDKShape, _wix_sdk_types.Host>;
34
+ declare const _default$8: EventsSDKShape & _wix_sdk_types.HostModule<EventsSDKShape, _wix_sdk_types.Host>;
40
35
 
41
36
  declare class InfoSDKShape extends BaseSDKShape {
42
37
  getViewMode(): Promise<any>;
43
38
  getLanguageCode(): Promise<any>;
44
39
  }
45
- declare const _default$6: InfoSDKShape & _wix_sdk_types.HostModule<InfoSDKShape, _wix_sdk_types.Host>;
40
+ declare const _default$7: InfoSDKShape & _wix_sdk_types.HostModule<InfoSDKShape, _wix_sdk_types.Host>;
46
41
 
47
42
  declare class WidgetScopedSDK {
48
43
  private compRef;
@@ -63,7 +58,7 @@ declare class WidgetSDKShape extends BaseSDKShape {
63
58
  setDesignPreset(designPresetName: string): Promise<void>;
64
59
  getNestedWidget(selector: `#${string}`): Promise<WidgetScopedSDK | null>;
65
60
  }
66
- declare const _default$5: WidgetSDKShape & _wix_sdk_types.HostModule<WidgetSDKShape, _wix_sdk_types.Host>;
61
+ declare const _default$6: WidgetSDKShape & _wix_sdk_types.HostModule<WidgetSDKShape, _wix_sdk_types.Host>;
67
62
 
68
63
  interface FontPickerValue {
69
64
  font: string;
@@ -79,13 +74,13 @@ declare class InputsSDKShape extends BaseSDKShape {
79
74
  onChange?: (value: FontPickerValue) => void;
80
75
  }): Promise<FontPickerValue | undefined>;
81
76
  }
82
- declare const _default$4: InputsSDKShape & _wix_sdk_types.HostModule<InputsSDKShape, _wix_sdk_types.Host>;
77
+ declare const _default$5: InputsSDKShape & _wix_sdk_types.HostModule<InputsSDKShape, _wix_sdk_types.Host>;
83
78
 
84
79
  declare class PanelsSDKShape extends BaseSDKShape {
85
80
  openLanguageSupportPanel(): Promise<any>;
86
81
  openFontsUploadPanel(): Promise<any>;
87
82
  }
88
- declare const _default$3: PanelsSDKShape & _wix_sdk_types.HostModule<PanelsSDKShape, _wix_sdk_types.Host>;
83
+ declare const _default$4: PanelsSDKShape & _wix_sdk_types.HostModule<PanelsSDKShape, _wix_sdk_types.Host>;
89
84
 
90
85
  declare class ModalsSDKShape extends BaseSDKShape {
91
86
  openDashboardModal(options: {
@@ -93,7 +88,21 @@ declare class ModalsSDKShape extends BaseSDKShape {
93
88
  closeOtherPanels?: boolean;
94
89
  }): Promise<any>;
95
90
  }
96
- declare const _default$2: ModalsSDKShape & _wix_sdk_types.HostModule<ModalsSDKShape, _wix_sdk_types.Host>;
91
+ declare const _default$3: ModalsSDKShape & _wix_sdk_types.HostModule<ModalsSDKShape, _wix_sdk_types.Host>;
92
+
93
+ declare class ElementSDKShape extends BaseSDKShape {
94
+ getStyleDefinitions(): Promise<any>;
95
+ getStyles(): Promise<any>;
96
+ setStyles(values: {}): Promise<any>;
97
+ getDataDefinitions(): Promise<any>;
98
+ getData(): Promise<any>;
99
+ setData(values: {}): Promise<any>;
100
+ getState(): Promise<null>;
101
+ setState(): Promise<null>;
102
+ getStateDefinitions(): Promise<null>;
103
+ onChange(cb: () => void): Promise<any>;
104
+ }
105
+ declare const _default$2: ElementSDKShape & _wix_sdk_types.HostModule<ElementSDKShape, _wix_sdk_types.Host>;
97
106
 
98
107
  declare class PreferencesSDKShape extends BaseSDKShape {
99
108
  get(keys: string[]): Promise<any>;
@@ -116,7 +125,7 @@ declare const _default: ExternalPanelsSDKShape & _wix_sdk_types.HostModule<Exter
116
125
 
117
126
  declare const editor: {
118
127
  host: () => _wix_sdk_types.Host & {
119
- applicationContext: Promise<_wix_editor_platform_contexts.ApplicationContext<any>>;
128
+ applicationContext: Promise<_wix_editor_platform_contexts.ApplicationContext>;
120
129
  };
121
130
  auth: () => {
122
131
  getAuthHeaders: () => Promise<{
@@ -127,4 +136,4 @@ declare const editor: {
127
136
  };
128
137
  };
129
138
 
130
- export { _default$9 as application, editor, _default$8 as elements, _default$7 as events, _default as externalPanels, _default$6 as info, _default$4 as inputs, _default$2 as modals, _default$3 as panels, _default$1 as preferences, _default$5 as widget };
139
+ export { _default$a as application, editor, _default$2 as element, _default$9 as elements, _default$8 as events, _default as externalPanels, _default$7 as info, _default$5 as inputs, _default$3 as modals, _default$4 as panels, _default$1 as preferences, _default$6 as widget };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/editor",
3
- "version": "1.363.0",
3
+ "version": "1.365.0",
4
4
  "license": "UNLICENSED",
5
5
  "author": {
6
6
  "name": "Editor Platform <editor-platform-dev@wix.com>",
@@ -21,7 +21,7 @@
21
21
  "scripts": {
22
22
  "start": "exit 0",
23
23
  "build": "yarn typecheck && rollup -c",
24
- "test": "exit 0",
24
+ "test": "jest test",
25
25
  "lint": "prettier --check ./src",
26
26
  "lint:fix": "prettier --write ./src",
27
27
  "typecheck": "tsc --noEmit"
@@ -30,8 +30,8 @@
30
30
  "*.{js,ts}": "yarn lint"
31
31
  },
32
32
  "dependencies": {
33
- "@wix/editor-platform-contexts": "1.52.0",
34
- "@wix/editor-platform-environment-api": "1.52.0",
33
+ "@wix/editor-platform-contexts": "1.64.0",
34
+ "@wix/editor-platform-environment-api": "1.64.0",
35
35
  "@wix/monitoring-browser-sdk-host": "^0.1.8",
36
36
  "@wix/public-editor-platform-errors": "1.8.0",
37
37
  "@wix/public-editor-platform-interfaces": "1.23.0",
@@ -40,8 +40,9 @@
40
40
  },
41
41
  "devDependencies": {
42
42
  "@rollup/plugin-node-resolve": "^15.3.1",
43
- "esbuild": "^0.25.2",
43
+ "esbuild": "^0.25.3",
44
44
  "eslint": "^8.57.1",
45
+ "jest": "^29.7.0",
45
46
  "lint-staged": "^13.3.0",
46
47
  "prettier": "^3.5.3",
47
48
  "rollup": "^3.29.5",
@@ -60,5 +61,5 @@
60
61
  ]
61
62
  }
62
63
  },
63
- "falconPackageHash": "afc5bda38cd058917d62a44c8a365a5ff9aac6b95ecbff11c16cb9c2"
64
+ "falconPackageHash": "135558eeb347f2b4058392c4e3b362426830114ee88a8894a41e5615"
64
65
  }