@wix/editor 1.321.0 → 1.323.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.
@@ -3,6 +3,7 @@ import { WithPromiseFunctions } from '@wix/editor-platform-transport';
3
3
  import { PlatformAppEventEmitter, IPlatformAppEvent } from '@wix/public-editor-platform-events';
4
4
  import { ComponentRef } from '@wix/public-editor-platform-interfaces';
5
5
  import * as _wix_sdk_types from '@wix/sdk-types';
6
+ import { FontPickerOptions } from '@wix/editor-platform-sdk-types';
6
7
 
7
8
  type PrivateAPIFixMe = any;
8
9
  interface Component<TComponentType extends string> {
@@ -119,7 +120,7 @@ declare class ApplicationContext<TContext extends IApplicationContext> {
119
120
  }
120
121
  //# sourceMappingURL=index.d.ts.map
121
122
 
122
- declare const _default$5: {
123
+ declare const _default$6: {
123
124
  getPrivateAPI: () => Promise<any>;
124
125
  getPublicAPI: (appDefinitionId: string) => Promise<unknown>;
125
126
  getAppInstance: () => Promise<any>;
@@ -129,19 +130,19 @@ declare const _default$5: {
129
130
  getAppInstance: () => Promise<any>;
130
131
  }, _wix_sdk_types.Host>;
131
132
 
132
- declare const _default$4: {
133
+ declare const _default$5: {
133
134
  getSelectedComponents: () => Promise<IComponent[]>;
134
135
  } & _wix_sdk_types.HostModule<{
135
136
  getSelectedComponents: () => Promise<IComponent[]>;
136
137
  }, _wix_sdk_types.Host>;
137
138
 
138
- declare const _default$3: {
139
+ declare const _default$4: {
139
140
  addEventListener: (name: any, cb: (payload: AppEventPayload<AllowedEvents>) => void) => Promise<() => void>;
140
141
  } & _wix_sdk_types.HostModule<{
141
142
  addEventListener: (name: any, cb: (payload: AppEventPayload<AllowedEvents>) => void) => Promise<() => void>;
142
143
  }, _wix_sdk_types.Host>;
143
144
 
144
- declare const _default$2: {
145
+ declare const _default$3: {
145
146
  getViewMode: () => Promise<any>;
146
147
  getLanguageCode: () => Promise<any>;
147
148
  } & _wix_sdk_types.HostModule<{
@@ -149,7 +150,7 @@ declare const _default$2: {
149
150
  getLanguageCode: () => Promise<any>;
150
151
  }, _wix_sdk_types.Host>;
151
152
 
152
- declare const _default$1: {
153
+ declare const _default$2: {
153
154
  getProp: (propName: string) => Promise<string>;
154
155
  setProp: (propName: string, value: string) => Promise<void>;
155
156
  } & _wix_sdk_types.HostModule<{
@@ -157,48 +158,55 @@ declare const _default$1: {
157
158
  setProp: (propName: string, value: string) => Promise<void>;
158
159
  }, _wix_sdk_types.Host>;
159
160
 
160
- interface IColorValue {
161
- color: string;
162
- theme?: string;
161
+ interface FontPickerValue {
162
+ font: string;
163
+ textDecoration?: string;
163
164
  }
164
- interface IFontValue {
165
- family?: string;
166
- style?: {
167
- bold?: boolean;
168
- italic?: boolean;
169
- underline?: boolean;
170
- };
171
- size?: number;
172
- theme?: string;
173
- }
174
- declare const _default: {
175
- selectColor: (value?: Partial<IColorValue>, onColorChange?: (value: IColorValue) => void) => Promise<IColorValue | null>;
176
- selectFont: (value?: IFontValue, options?: {
165
+ type ColorPickerValue = string | null | undefined;
166
+ declare const _default$1: {
167
+ selectColor: (value?: ColorPickerValue, options?: {
168
+ onChange?: (value: ColorPickerValue) => void;
169
+ }) => Promise<ColorPickerValue>;
170
+ selectFont: (value?: FontPickerValue, options?: {
177
171
  title?: string;
178
- panelSectionsDefinition?: Partial<{
179
- theme: "hidden" | "enabled";
180
- font: "hidden" | "enabled";
181
- size: "hidden" | "enabled";
182
- style: "hidden" | "enabled";
183
- htmlTag: "hidden" | "enabled";
184
- }>;
172
+ panelSectionsDefinition?: Omit<FontPickerOptions["panelSectionsDefinition"], "htmlTag">;
185
173
  fontMaxSize?: number;
186
174
  fontMinSize?: number;
187
- }, onFontChange?: (value: IFontValue) => void) => Promise<IFontValue | null>;
175
+ onChange?: (value: FontPickerValue) => void;
176
+ }) => Promise<FontPickerValue | undefined>;
188
177
  } & _wix_sdk_types.HostModule<{
189
- selectColor: (value?: Partial<IColorValue>, onColorChange?: (value: IColorValue) => void) => Promise<IColorValue | null>;
190
- selectFont: (value?: IFontValue, options?: {
178
+ selectColor: (value?: ColorPickerValue, options?: {
179
+ onChange?: (value: ColorPickerValue) => void;
180
+ }) => Promise<ColorPickerValue>;
181
+ selectFont: (value?: FontPickerValue, options?: {
191
182
  title?: string;
192
- panelSectionsDefinition?: Partial<{
193
- theme: "hidden" | "enabled";
194
- font: "hidden" | "enabled";
195
- size: "hidden" | "enabled";
196
- style: "hidden" | "enabled";
197
- htmlTag: "hidden" | "enabled";
198
- }>;
183
+ panelSectionsDefinition?: Omit<FontPickerOptions["panelSectionsDefinition"], "htmlTag">;
199
184
  fontMaxSize?: number;
200
185
  fontMinSize?: number;
201
- }, onFontChange?: (value: IFontValue) => void) => Promise<IFontValue | null>;
186
+ onChange?: (value: FontPickerValue) => void;
187
+ }) => Promise<FontPickerValue | undefined>;
188
+ }, _wix_sdk_types.Host>;
189
+
190
+ declare const _default: {
191
+ getData: () => Promise<any>;
192
+ setData: (newData: any) => Promise<any>;
193
+ getStyle: () => Promise<any>;
194
+ setStyle: (newStyle: any) => Promise<any>;
195
+ getTheme: () => Promise<any>;
196
+ selectMedia: () => Promise<any>;
197
+ selectLink: () => Promise<any>;
198
+ selectColor: () => Promise<any>;
199
+ translate: (key: string | string[], values?: Record<string, any>) => Promise<any>;
200
+ } & _wix_sdk_types.HostModule<{
201
+ getData: () => Promise<any>;
202
+ setData: (newData: any) => Promise<any>;
203
+ getStyle: () => Promise<any>;
204
+ setStyle: (newStyle: any) => Promise<any>;
205
+ getTheme: () => Promise<any>;
206
+ selectMedia: () => Promise<any>;
207
+ selectLink: () => Promise<any>;
208
+ selectColor: () => Promise<any>;
209
+ translate: (key: string | string[], values?: Record<string, any>) => Promise<any>;
202
210
  }, _wix_sdk_types.Host>;
203
211
 
204
212
  declare const editor: {
@@ -215,4 +223,4 @@ declare const editor: {
215
223
  };
216
224
  };
217
225
 
218
- export { _default$5 as application, _default$4 as components, editor, _default$3 as events, _default$2 as info, _default as inputs, _default$1 as widget };
226
+ export { _default$6 as application, _default$5 as components, editor, _default$4 as events, _default as externalPanels, _default$3 as info, _default$1 as inputs, _default$2 as widget };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/editor",
3
- "version": "1.321.0",
3
+ "version": "1.323.0",
4
4
  "license": "UNLICENSED",
5
5
  "author": {
6
6
  "name": "Editor Platform <editor-platform-dev@wix.com>",
@@ -30,8 +30,8 @@
30
30
  "*.{js,ts}": "yarn lint"
31
31
  },
32
32
  "dependencies": {
33
- "@wix/editor-application": "1.377.0",
34
- "@wix/editor-application-context": "1.292.0",
33
+ "@wix/editor-application": "1.380.0",
34
+ "@wix/editor-application-context": "1.294.0",
35
35
  "@wix/editor-platform-transport": "1.10.0",
36
36
  "@wix/public-editor-platform-errors": "1.8.0",
37
37
  "@wix/public-editor-platform-interfaces": "1.12.0",
@@ -60,5 +60,5 @@
60
60
  ]
61
61
  }
62
62
  },
63
- "falconPackageHash": "433e619c103dd0a7128d4d9bbc101ed3ea73032f32ccf15d66f2391a"
63
+ "falconPackageHash": "e2eedfe115e0348acb20e49793e1228ac5733d6f4472e9d935bfb456"
64
64
  }