@wix/editor-application 1.393.0 → 1.395.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.
Files changed (49) hide show
  1. package/dist/cjs/index.js +23 -605
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/esm/index.js +23 -602
  4. package/dist/esm/index.js.map +1 -1
  5. package/dist/statics/index.js +26 -609
  6. package/dist/statics/index.js.map +1 -1
  7. package/dist/types/index.d.ts +18 -192
  8. package/dist/types/index.d.ts.map +1 -1
  9. package/package.json +11 -36
  10. package/dist/cjs/environment-api/index.js +0 -634
  11. package/dist/cjs/environment-api/index.js.map +0 -1
  12. package/dist/cjs/platform-frame/index.js +0 -403
  13. package/dist/cjs/platform-frame/index.js.map +0 -1
  14. package/dist/cjs/platform-frame-api/index.js +0 -377
  15. package/dist/cjs/platform-frame-api/index.js.map +0 -1
  16. package/dist/cjs/platform-worker/index.js +0 -580
  17. package/dist/cjs/platform-worker/index.js.map +0 -1
  18. package/dist/cjs/platform-worker-api/index.js +0 -579
  19. package/dist/cjs/platform-worker-api/index.js.map +0 -1
  20. package/dist/esm/environment-api/index.js +0 -630
  21. package/dist/esm/environment-api/index.js.map +0 -1
  22. package/dist/esm/platform-frame/index.js +0 -401
  23. package/dist/esm/platform-frame/index.js.map +0 -1
  24. package/dist/esm/platform-frame-api/index.js +0 -375
  25. package/dist/esm/platform-frame-api/index.js.map +0 -1
  26. package/dist/esm/platform-worker/index.js +0 -578
  27. package/dist/esm/platform-worker/index.js.map +0 -1
  28. package/dist/esm/platform-worker-api/index.js +0 -577
  29. package/dist/esm/platform-worker-api/index.js.map +0 -1
  30. package/dist/statics/environment-api/index.js +0 -636
  31. package/dist/statics/environment-api/index.js.map +0 -1
  32. package/dist/statics/platform-frame/index.js +0 -404
  33. package/dist/statics/platform-frame/index.js.map +0 -1
  34. package/dist/statics/platform-frame-api/index.js +0 -380
  35. package/dist/statics/platform-frame-api/index.js.map +0 -1
  36. package/dist/statics/platform-worker/index.js +0 -581
  37. package/dist/statics/platform-worker/index.js.map +0 -1
  38. package/dist/statics/platform-worker-api/index.js +0 -581
  39. package/dist/statics/platform-worker-api/index.js.map +0 -1
  40. package/dist/types/environment-api/index.d.ts +0 -59
  41. package/dist/types/environment-api/index.d.ts.map +0 -1
  42. package/dist/types/platform-frame/index.d.ts +0 -59
  43. package/dist/types/platform-frame/index.d.ts.map +0 -1
  44. package/dist/types/platform-frame-api/index.d.ts +0 -59
  45. package/dist/types/platform-frame-api/index.d.ts.map +0 -1
  46. package/dist/types/platform-worker/index.d.ts +0 -59
  47. package/dist/types/platform-worker/index.d.ts.map +0 -1
  48. package/dist/types/platform-worker-api/index.d.ts +0 -59
  49. 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":""}