@wix/editor-application 1.393.0 → 1.394.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 +23 -605
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +23 -602
- package/dist/esm/index.js.map +1 -1
- package/dist/statics/index.js +26 -609
- package/dist/statics/index.js.map +1 -1
- package/dist/types/index.d.ts +18 -192
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +10 -35
- package/dist/cjs/environment-api/index.js +0 -634
- package/dist/cjs/environment-api/index.js.map +0 -1
- package/dist/cjs/platform-frame/index.js +0 -403
- package/dist/cjs/platform-frame/index.js.map +0 -1
- package/dist/cjs/platform-frame-api/index.js +0 -377
- package/dist/cjs/platform-frame-api/index.js.map +0 -1
- package/dist/cjs/platform-worker/index.js +0 -580
- package/dist/cjs/platform-worker/index.js.map +0 -1
- package/dist/cjs/platform-worker-api/index.js +0 -579
- package/dist/cjs/platform-worker-api/index.js.map +0 -1
- package/dist/esm/environment-api/index.js +0 -630
- package/dist/esm/environment-api/index.js.map +0 -1
- package/dist/esm/platform-frame/index.js +0 -401
- package/dist/esm/platform-frame/index.js.map +0 -1
- package/dist/esm/platform-frame-api/index.js +0 -375
- package/dist/esm/platform-frame-api/index.js.map +0 -1
- package/dist/esm/platform-worker/index.js +0 -578
- package/dist/esm/platform-worker/index.js.map +0 -1
- package/dist/esm/platform-worker-api/index.js +0 -577
- package/dist/esm/platform-worker-api/index.js.map +0 -1
- package/dist/statics/environment-api/index.js +0 -636
- package/dist/statics/environment-api/index.js.map +0 -1
- package/dist/statics/platform-frame/index.js +0 -404
- package/dist/statics/platform-frame/index.js.map +0 -1
- package/dist/statics/platform-frame-api/index.js +0 -380
- package/dist/statics/platform-frame-api/index.js.map +0 -1
- package/dist/statics/platform-worker/index.js +0 -581
- package/dist/statics/platform-worker/index.js.map +0 -1
- package/dist/statics/platform-worker-api/index.js +0 -581
- package/dist/statics/platform-worker-api/index.js.map +0 -1
- package/dist/types/environment-api/index.d.ts +0 -59
- package/dist/types/environment-api/index.d.ts.map +0 -1
- package/dist/types/platform-frame/index.d.ts +0 -59
- package/dist/types/platform-frame/index.d.ts.map +0 -1
- package/dist/types/platform-frame-api/index.d.ts +0 -59
- package/dist/types/platform-frame-api/index.d.ts.map +0 -1
- package/dist/types/platform-worker/index.d.ts +0 -59
- package/dist/types/platform-worker/index.d.ts.map +0 -1
- package/dist/types/platform-worker-api/index.d.ts +0 -59
- package/dist/types/platform-worker-api/index.d.ts.map +0 -1
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { IPlatformPrivateEvent, IPlatformAppEvent } from '@wix/public-editor-platform-events';
|
|
2
|
-
|
|
3
|
-
type IPrivateAPIFixMe = any;
|
|
4
|
-
type IApplicationSpec = any;
|
|
5
|
-
|
|
6
|
-
declare enum PlatformConsumerEnvironmentAPIType {
|
|
7
|
-
Frame = "PLATFORM_FRAME_API",
|
|
8
|
-
Worker = "PLATFORM_WORKER_API"
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* rename these entities -> API to Env
|
|
12
|
-
*/
|
|
13
|
-
declare abstract class AbstractEnvironmentAPI<TEnv extends PlatformConsumerEnvironmentAPIType> {
|
|
14
|
-
protected env: TEnv;
|
|
15
|
-
/**
|
|
16
|
-
* NOTE: we can't `type` declare getter within current abstract class
|
|
17
|
-
* because then after transferring API between threads this getter becomes promise,
|
|
18
|
-
* which is not expected
|
|
19
|
-
*
|
|
20
|
-
* get type() {
|
|
21
|
-
* return this.env;
|
|
22
|
-
* }
|
|
23
|
-
*/
|
|
24
|
-
abstract type: TEnv;
|
|
25
|
-
protected constructor(env: TEnv);
|
|
26
|
-
abstract create(): void;
|
|
27
|
-
abstract initEnvironment(props: unknown): void;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
declare class PlatformFrameAPI extends AbstractEnvironmentAPI<PlatformConsumerEnvironmentAPIType.Frame> {
|
|
31
|
-
#private;
|
|
32
|
-
type: PlatformConsumerEnvironmentAPIType.Frame;
|
|
33
|
-
constructor();
|
|
34
|
-
create(): void;
|
|
35
|
-
initEnvironment(props: {
|
|
36
|
-
appDefinitionId: string;
|
|
37
|
-
privateAPI: IPrivateAPIFixMe;
|
|
38
|
-
applicationPrivateAPI: any;
|
|
39
|
-
}): Promise<void>;
|
|
40
|
-
notify(event: IPlatformPrivateEvent): void;
|
|
41
|
-
subscribe(cb: (event: IPlatformAppEvent) => void): void;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
declare class PlatformWorkerAPI extends AbstractEnvironmentAPI<PlatformConsumerEnvironmentAPIType.Worker> {
|
|
45
|
-
#private;
|
|
46
|
-
type: PlatformConsumerEnvironmentAPIType.Worker;
|
|
47
|
-
constructor();
|
|
48
|
-
create(): void;
|
|
49
|
-
initEnvironment(props: {
|
|
50
|
-
buildPrivateAPI: (config: any) => IPrivateAPIFixMe;
|
|
51
|
-
}): Promise<void>;
|
|
52
|
-
notify(event: IPlatformPrivateEvent): Promise<void>;
|
|
53
|
-
subscribe(cb: (event: IPlatformAppEvent) => void): void;
|
|
54
|
-
runApplication(app: IApplicationSpec): Promise<void>;
|
|
55
|
-
waitReady(): Promise<this>;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export { PlatformConsumerEnvironmentAPIType, PlatformFrameAPI, PlatformWorkerAPI };
|
|
59
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { IPlatformPrivateEvent, IPlatformAppEvent } from '@wix/public-editor-platform-events';
|
|
2
|
-
|
|
3
|
-
type IPrivateAPIFixMe = any;
|
|
4
|
-
type IApplicationSpec = any;
|
|
5
|
-
|
|
6
|
-
declare enum PlatformConsumerEnvironmentAPIType {
|
|
7
|
-
Frame = "PLATFORM_FRAME_API",
|
|
8
|
-
Worker = "PLATFORM_WORKER_API"
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* rename these entities -> API to Env
|
|
12
|
-
*/
|
|
13
|
-
declare abstract class AbstractEnvironmentAPI<TEnv extends PlatformConsumerEnvironmentAPIType> {
|
|
14
|
-
protected env: TEnv;
|
|
15
|
-
/**
|
|
16
|
-
* NOTE: we can't `type` declare getter within current abstract class
|
|
17
|
-
* because then after transferring API between threads this getter becomes promise,
|
|
18
|
-
* which is not expected
|
|
19
|
-
*
|
|
20
|
-
* get type() {
|
|
21
|
-
* return this.env;
|
|
22
|
-
* }
|
|
23
|
-
*/
|
|
24
|
-
abstract type: TEnv;
|
|
25
|
-
protected constructor(env: TEnv);
|
|
26
|
-
abstract create(): void;
|
|
27
|
-
abstract initEnvironment(props: unknown): void;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
declare class PlatformFrameAPI extends AbstractEnvironmentAPI<PlatformConsumerEnvironmentAPIType.Frame> {
|
|
31
|
-
#private;
|
|
32
|
-
type: PlatformConsumerEnvironmentAPIType.Frame;
|
|
33
|
-
constructor();
|
|
34
|
-
create(): void;
|
|
35
|
-
initEnvironment(props: {
|
|
36
|
-
appDefinitionId: string;
|
|
37
|
-
privateAPI: IPrivateAPIFixMe;
|
|
38
|
-
applicationPrivateAPI: any;
|
|
39
|
-
}): Promise<void>;
|
|
40
|
-
notify(event: IPlatformPrivateEvent): void;
|
|
41
|
-
subscribe(cb: (event: IPlatformAppEvent) => void): void;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
declare class PlatformWorkerAPI extends AbstractEnvironmentAPI<PlatformConsumerEnvironmentAPIType.Worker> {
|
|
45
|
-
#private;
|
|
46
|
-
type: PlatformConsumerEnvironmentAPIType.Worker;
|
|
47
|
-
constructor();
|
|
48
|
-
create(): void;
|
|
49
|
-
initEnvironment(props: {
|
|
50
|
-
buildPrivateAPI: (config: any) => IPrivateAPIFixMe;
|
|
51
|
-
}): Promise<void>;
|
|
52
|
-
notify(event: IPlatformPrivateEvent): Promise<void>;
|
|
53
|
-
subscribe(cb: (event: IPlatformAppEvent) => void): void;
|
|
54
|
-
runApplication(app: IApplicationSpec): Promise<void>;
|
|
55
|
-
waitReady(): Promise<this>;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export { PlatformConsumerEnvironmentAPIType, PlatformFrameAPI, PlatformWorkerAPI };
|
|
59
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { IPlatformPrivateEvent, IPlatformAppEvent } from '@wix/public-editor-platform-events';
|
|
2
|
-
|
|
3
|
-
type IPrivateAPIFixMe = any;
|
|
4
|
-
type IApplicationSpec = any;
|
|
5
|
-
|
|
6
|
-
declare enum PlatformConsumerEnvironmentAPIType {
|
|
7
|
-
Frame = "PLATFORM_FRAME_API",
|
|
8
|
-
Worker = "PLATFORM_WORKER_API"
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* rename these entities -> API to Env
|
|
12
|
-
*/
|
|
13
|
-
declare abstract class AbstractEnvironmentAPI<TEnv extends PlatformConsumerEnvironmentAPIType> {
|
|
14
|
-
protected env: TEnv;
|
|
15
|
-
/**
|
|
16
|
-
* NOTE: we can't `type` declare getter within current abstract class
|
|
17
|
-
* because then after transferring API between threads this getter becomes promise,
|
|
18
|
-
* which is not expected
|
|
19
|
-
*
|
|
20
|
-
* get type() {
|
|
21
|
-
* return this.env;
|
|
22
|
-
* }
|
|
23
|
-
*/
|
|
24
|
-
abstract type: TEnv;
|
|
25
|
-
protected constructor(env: TEnv);
|
|
26
|
-
abstract create(): void;
|
|
27
|
-
abstract initEnvironment(props: unknown): void;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
declare class PlatformFrameAPI extends AbstractEnvironmentAPI<PlatformConsumerEnvironmentAPIType.Frame> {
|
|
31
|
-
#private;
|
|
32
|
-
type: PlatformConsumerEnvironmentAPIType.Frame;
|
|
33
|
-
constructor();
|
|
34
|
-
create(): void;
|
|
35
|
-
initEnvironment(props: {
|
|
36
|
-
appDefinitionId: string;
|
|
37
|
-
privateAPI: IPrivateAPIFixMe;
|
|
38
|
-
applicationPrivateAPI: any;
|
|
39
|
-
}): Promise<void>;
|
|
40
|
-
notify(event: IPlatformPrivateEvent): void;
|
|
41
|
-
subscribe(cb: (event: IPlatformAppEvent) => void): void;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
declare class PlatformWorkerAPI extends AbstractEnvironmentAPI<PlatformConsumerEnvironmentAPIType.Worker> {
|
|
45
|
-
#private;
|
|
46
|
-
type: PlatformConsumerEnvironmentAPIType.Worker;
|
|
47
|
-
constructor();
|
|
48
|
-
create(): void;
|
|
49
|
-
initEnvironment(props: {
|
|
50
|
-
buildPrivateAPI: (config: any) => IPrivateAPIFixMe;
|
|
51
|
-
}): Promise<void>;
|
|
52
|
-
notify(event: IPlatformPrivateEvent): Promise<void>;
|
|
53
|
-
subscribe(cb: (event: IPlatformAppEvent) => void): void;
|
|
54
|
-
runApplication(app: IApplicationSpec): Promise<void>;
|
|
55
|
-
waitReady(): Promise<this>;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export { PlatformConsumerEnvironmentAPIType, PlatformFrameAPI, PlatformWorkerAPI };
|
|
59
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { IPlatformPrivateEvent, IPlatformAppEvent } from '@wix/public-editor-platform-events';
|
|
2
|
-
|
|
3
|
-
type IPrivateAPIFixMe = any;
|
|
4
|
-
type IApplicationSpec = any;
|
|
5
|
-
|
|
6
|
-
declare enum PlatformConsumerEnvironmentAPIType {
|
|
7
|
-
Frame = "PLATFORM_FRAME_API",
|
|
8
|
-
Worker = "PLATFORM_WORKER_API"
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* rename these entities -> API to Env
|
|
12
|
-
*/
|
|
13
|
-
declare abstract class AbstractEnvironmentAPI<TEnv extends PlatformConsumerEnvironmentAPIType> {
|
|
14
|
-
protected env: TEnv;
|
|
15
|
-
/**
|
|
16
|
-
* NOTE: we can't `type` declare getter within current abstract class
|
|
17
|
-
* because then after transferring API between threads this getter becomes promise,
|
|
18
|
-
* which is not expected
|
|
19
|
-
*
|
|
20
|
-
* get type() {
|
|
21
|
-
* return this.env;
|
|
22
|
-
* }
|
|
23
|
-
*/
|
|
24
|
-
abstract type: TEnv;
|
|
25
|
-
protected constructor(env: TEnv);
|
|
26
|
-
abstract create(): void;
|
|
27
|
-
abstract initEnvironment(props: unknown): void;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
declare class PlatformFrameAPI extends AbstractEnvironmentAPI<PlatformConsumerEnvironmentAPIType.Frame> {
|
|
31
|
-
#private;
|
|
32
|
-
type: PlatformConsumerEnvironmentAPIType.Frame;
|
|
33
|
-
constructor();
|
|
34
|
-
create(): void;
|
|
35
|
-
initEnvironment(props: {
|
|
36
|
-
appDefinitionId: string;
|
|
37
|
-
privateAPI: IPrivateAPIFixMe;
|
|
38
|
-
applicationPrivateAPI: any;
|
|
39
|
-
}): Promise<void>;
|
|
40
|
-
notify(event: IPlatformPrivateEvent): void;
|
|
41
|
-
subscribe(cb: (event: IPlatformAppEvent) => void): void;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
declare class PlatformWorkerAPI extends AbstractEnvironmentAPI<PlatformConsumerEnvironmentAPIType.Worker> {
|
|
45
|
-
#private;
|
|
46
|
-
type: PlatformConsumerEnvironmentAPIType.Worker;
|
|
47
|
-
constructor();
|
|
48
|
-
create(): void;
|
|
49
|
-
initEnvironment(props: {
|
|
50
|
-
buildPrivateAPI: (config: any) => IPrivateAPIFixMe;
|
|
51
|
-
}): Promise<void>;
|
|
52
|
-
notify(event: IPlatformPrivateEvent): Promise<void>;
|
|
53
|
-
subscribe(cb: (event: IPlatformAppEvent) => void): void;
|
|
54
|
-
runApplication(app: IApplicationSpec): Promise<void>;
|
|
55
|
-
waitReady(): Promise<this>;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export { PlatformConsumerEnvironmentAPIType, PlatformFrameAPI, PlatformWorkerAPI };
|
|
59
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { IPlatformPrivateEvent, IPlatformAppEvent } from '@wix/public-editor-platform-events';
|
|
2
|
-
|
|
3
|
-
type IPrivateAPIFixMe = any;
|
|
4
|
-
type IApplicationSpec = any;
|
|
5
|
-
|
|
6
|
-
declare enum PlatformConsumerEnvironmentAPIType {
|
|
7
|
-
Frame = "PLATFORM_FRAME_API",
|
|
8
|
-
Worker = "PLATFORM_WORKER_API"
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* rename these entities -> API to Env
|
|
12
|
-
*/
|
|
13
|
-
declare abstract class AbstractEnvironmentAPI<TEnv extends PlatformConsumerEnvironmentAPIType> {
|
|
14
|
-
protected env: TEnv;
|
|
15
|
-
/**
|
|
16
|
-
* NOTE: we can't `type` declare getter within current abstract class
|
|
17
|
-
* because then after transferring API between threads this getter becomes promise,
|
|
18
|
-
* which is not expected
|
|
19
|
-
*
|
|
20
|
-
* get type() {
|
|
21
|
-
* return this.env;
|
|
22
|
-
* }
|
|
23
|
-
*/
|
|
24
|
-
abstract type: TEnv;
|
|
25
|
-
protected constructor(env: TEnv);
|
|
26
|
-
abstract create(): void;
|
|
27
|
-
abstract initEnvironment(props: unknown): void;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
declare class PlatformFrameAPI extends AbstractEnvironmentAPI<PlatformConsumerEnvironmentAPIType.Frame> {
|
|
31
|
-
#private;
|
|
32
|
-
type: PlatformConsumerEnvironmentAPIType.Frame;
|
|
33
|
-
constructor();
|
|
34
|
-
create(): void;
|
|
35
|
-
initEnvironment(props: {
|
|
36
|
-
appDefinitionId: string;
|
|
37
|
-
privateAPI: IPrivateAPIFixMe;
|
|
38
|
-
applicationPrivateAPI: any;
|
|
39
|
-
}): Promise<void>;
|
|
40
|
-
notify(event: IPlatformPrivateEvent): void;
|
|
41
|
-
subscribe(cb: (event: IPlatformAppEvent) => void): void;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
declare class PlatformWorkerAPI extends AbstractEnvironmentAPI<PlatformConsumerEnvironmentAPIType.Worker> {
|
|
45
|
-
#private;
|
|
46
|
-
type: PlatformConsumerEnvironmentAPIType.Worker;
|
|
47
|
-
constructor();
|
|
48
|
-
create(): void;
|
|
49
|
-
initEnvironment(props: {
|
|
50
|
-
buildPrivateAPI: (config: any) => IPrivateAPIFixMe;
|
|
51
|
-
}): Promise<void>;
|
|
52
|
-
notify(event: IPlatformPrivateEvent): Promise<void>;
|
|
53
|
-
subscribe(cb: (event: IPlatformAppEvent) => void): void;
|
|
54
|
-
runApplication(app: IApplicationSpec): Promise<void>;
|
|
55
|
-
waitReady(): Promise<this>;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export { PlatformConsumerEnvironmentAPIType, PlatformFrameAPI, PlatformWorkerAPI };
|
|
59
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|