@wix/editor 1.306.0 → 1.307.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 +187 -161
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +187 -161
- package/dist/esm/index.js.map +1 -1
- package/dist/statics/index.js +190 -164
- package/dist/statics/index.js.map +1 -1
- package/dist/types/index.d.ts +23 -23
- package/package.json +4 -4
package/dist/types/index.d.ts
CHANGED
|
@@ -5,12 +5,12 @@ import { PlatformAppEventEmitter, IPlatformAppEvent } from '@wix/public-editor-p
|
|
|
5
5
|
import { ComponentRef } from '@wix/public-editor-platform-interfaces';
|
|
6
6
|
|
|
7
7
|
declare const _default$5: {
|
|
8
|
-
getPrivateAPI:
|
|
9
|
-
getPublicAPI:
|
|
8
|
+
getPrivateAPI: () => Promise<any>;
|
|
9
|
+
getPublicAPI: (appDefinitionId: string) => Promise<unknown>;
|
|
10
10
|
getAppInstance: () => Promise<any>;
|
|
11
11
|
} & _wix_sdk_types.HostModule<{
|
|
12
|
-
getPrivateAPI:
|
|
13
|
-
getPublicAPI:
|
|
12
|
+
getPrivateAPI: () => Promise<any>;
|
|
13
|
+
getPublicAPI: (appDefinitionId: string) => Promise<unknown>;
|
|
14
14
|
getAppInstance: () => Promise<any>;
|
|
15
15
|
}, _wix_sdk_types.Host>;
|
|
16
16
|
|
|
@@ -63,7 +63,8 @@ declare global {
|
|
|
63
63
|
}
|
|
64
64
|
declare enum PlatformEnvironment {
|
|
65
65
|
Worker = "Worker",
|
|
66
|
-
Frame = "Frame"
|
|
66
|
+
Frame = "Frame",
|
|
67
|
+
ComponentPanel = "ComponentPanel"
|
|
67
68
|
}
|
|
68
69
|
interface IEnvironmentContext {
|
|
69
70
|
environment: PlatformEnvironment;
|
|
@@ -125,13 +126,12 @@ declare class ApplicationContext<TContext extends IApplicationContext> {
|
|
|
125
126
|
getEvents(): ApplicationBoundEvents;
|
|
126
127
|
getPrivateAPI(): _wix_editor_platform_transport.WithPromiseFunctions<any>;
|
|
127
128
|
getPrivateApplicationAPI(): any;
|
|
128
|
-
}
|
|
129
|
-
//# sourceMappingURL=index.d.ts.map
|
|
129
|
+
}//# sourceMappingURL=index.d.ts.map
|
|
130
130
|
|
|
131
131
|
declare const _default$4: {
|
|
132
|
-
getSelectedComponents()
|
|
132
|
+
getSelectedComponents: () => Promise<IComponent[]>;
|
|
133
133
|
} & _wix_sdk_types.HostModule<{
|
|
134
|
-
getSelectedComponents()
|
|
134
|
+
getSelectedComponents: () => Promise<IComponent[]>;
|
|
135
135
|
}, _wix_sdk_types.Host>;
|
|
136
136
|
|
|
137
137
|
declare const _default$3: {
|
|
@@ -141,19 +141,19 @@ declare const _default$3: {
|
|
|
141
141
|
}, _wix_sdk_types.Host>;
|
|
142
142
|
|
|
143
143
|
declare const _default$2: {
|
|
144
|
-
getViewMode()
|
|
145
|
-
getLanguageCode()
|
|
144
|
+
getViewMode: () => Promise<any>;
|
|
145
|
+
getLanguageCode: () => Promise<any>;
|
|
146
146
|
} & _wix_sdk_types.HostModule<{
|
|
147
|
-
getViewMode()
|
|
148
|
-
getLanguageCode()
|
|
147
|
+
getViewMode: () => Promise<any>;
|
|
148
|
+
getLanguageCode: () => Promise<any>;
|
|
149
149
|
}, _wix_sdk_types.Host>;
|
|
150
150
|
|
|
151
151
|
declare const _default$1: {
|
|
152
|
-
getProp(propName: string)
|
|
153
|
-
setProp(propName: string, value: string)
|
|
152
|
+
getProp: (propName: string) => Promise<string>;
|
|
153
|
+
setProp: (propName: string, value: string) => Promise<void>;
|
|
154
154
|
} & _wix_sdk_types.HostModule<{
|
|
155
|
-
getProp(propName: string)
|
|
156
|
-
setProp(propName: string, value: string)
|
|
155
|
+
getProp: (propName: string) => Promise<string>;
|
|
156
|
+
setProp: (propName: string, value: string) => Promise<void>;
|
|
157
157
|
}, _wix_sdk_types.Host>;
|
|
158
158
|
|
|
159
159
|
interface IColorValue {
|
|
@@ -171,8 +171,8 @@ interface IFontValue {
|
|
|
171
171
|
theme?: string;
|
|
172
172
|
}
|
|
173
173
|
declare const _default: {
|
|
174
|
-
selectColor(value?: Partial<IColorValue>, onColorChange?: (value: IColorValue) => void)
|
|
175
|
-
selectFont(value?: IFontValue, options?: {
|
|
174
|
+
selectColor: (value?: Partial<IColorValue>, onColorChange?: (value: IColorValue) => void) => Promise<IColorValue | null>;
|
|
175
|
+
selectFont: (value?: IFontValue, options?: {
|
|
176
176
|
title?: string;
|
|
177
177
|
panelSectionsDefinition?: Partial<{
|
|
178
178
|
theme: "hidden" | "enabled";
|
|
@@ -183,10 +183,10 @@ declare const _default: {
|
|
|
183
183
|
}>;
|
|
184
184
|
fontMaxSize?: number;
|
|
185
185
|
fontMinSize?: number;
|
|
186
|
-
}, onFontChange?: (value: IFontValue) => void)
|
|
186
|
+
}, onFontChange?: (value: IFontValue) => void) => Promise<IFontValue | null>;
|
|
187
187
|
} & _wix_sdk_types.HostModule<{
|
|
188
|
-
selectColor(value?: Partial<IColorValue>, onColorChange?: (value: IColorValue) => void)
|
|
189
|
-
selectFont(value?: IFontValue, options?: {
|
|
188
|
+
selectColor: (value?: Partial<IColorValue>, onColorChange?: (value: IColorValue) => void) => Promise<IColorValue | null>;
|
|
189
|
+
selectFont: (value?: IFontValue, options?: {
|
|
190
190
|
title?: string;
|
|
191
191
|
panelSectionsDefinition?: Partial<{
|
|
192
192
|
theme: "hidden" | "enabled";
|
|
@@ -197,7 +197,7 @@ declare const _default: {
|
|
|
197
197
|
}>;
|
|
198
198
|
fontMaxSize?: number;
|
|
199
199
|
fontMinSize?: number;
|
|
200
|
-
}, onFontChange?: (value: IFontValue) => void)
|
|
200
|
+
}, onFontChange?: (value: IFontValue) => void) => Promise<IFontValue | null>;
|
|
201
201
|
}, _wix_sdk_types.Host>;
|
|
202
202
|
|
|
203
203
|
declare const editor: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/editor",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.307.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.
|
|
34
|
-
"@wix/editor-application-context": "1.
|
|
33
|
+
"@wix/editor-application": "1.339.0",
|
|
34
|
+
"@wix/editor-application-context": "1.262.0",
|
|
35
35
|
"@wix/editor-platform-transport": "1.9.0",
|
|
36
36
|
"@wix/public-editor-platform-errors": "1.8.0",
|
|
37
37
|
"@wix/public-editor-platform-interfaces": "1.7.0",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
]
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
|
-
"falconPackageHash": "
|
|
63
|
+
"falconPackageHash": "ac97ada61e66208203dc7374174a8b1e302f554370c5e0e359af764e"
|
|
64
64
|
}
|