@worktile/planet 19.0.0-next.1 → 20.0.0-next.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 (120) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +0 -5
  3. package/fesm2022/worktile-planet.mjs +310 -318
  4. package/fesm2022/worktile-planet.mjs.map +1 -1
  5. package/index.d.ts +467 -6
  6. package/index.d.ts.map +1 -0
  7. package/package.json +3 -5
  8. package/application/ng-planet-application-ref.d.ts +0 -46
  9. package/application/ng-planet-application-ref.d.ts.map +0 -1
  10. package/application/planet-application-loader.d.ts +0 -78
  11. package/application/planet-application-loader.d.ts.map +0 -1
  12. package/application/planet-application-ref.d.ts +0 -12
  13. package/application/planet-application-ref.d.ts.map +0 -1
  14. package/application/planet-application.service.d.ts +0 -22
  15. package/application/planet-application.service.d.ts.map +0 -1
  16. package/application/portal-application.d.ts +0 -20
  17. package/application/portal-application.d.ts.map +0 -1
  18. package/assets-loader.d.ts +0 -47
  19. package/assets-loader.d.ts.map +0 -1
  20. package/component/planet-component-loader.d.ts +0 -31
  21. package/component/planet-component-loader.d.ts.map +0 -1
  22. package/component/planet-component-outlet.d.ts +0 -26
  23. package/component/planet-component-outlet.d.ts.map +0 -1
  24. package/component/planet-component-types.d.ts +0 -11
  25. package/component/planet-component-types.d.ts.map +0 -1
  26. package/component/plant-component.config.d.ts +0 -22
  27. package/component/plant-component.config.d.ts.map +0 -1
  28. package/debug.d.ts +0 -22
  29. package/debug.d.ts.map +0 -1
  30. package/empty/empty.component.d.ts +0 -6
  31. package/empty/empty.component.d.ts.map +0 -1
  32. package/esm2022/application/ng-planet-application-ref.mjs +0 -116
  33. package/esm2022/application/planet-application-loader.mjs +0 -459
  34. package/esm2022/application/planet-application-ref.mjs +0 -2
  35. package/esm2022/application/planet-application.service.mjs +0 -86
  36. package/esm2022/application/portal-application.mjs +0 -25
  37. package/esm2022/assets-loader.mjs +0 -332
  38. package/esm2022/component/planet-component-loader.mjs +0 -213
  39. package/esm2022/component/planet-component-outlet.mjs +0 -72
  40. package/esm2022/component/planet-component-types.mjs +0 -3
  41. package/esm2022/component/plant-component.config.mjs +0 -7
  42. package/esm2022/debug.mjs +0 -33
  43. package/esm2022/empty/empty.component.mjs +0 -17
  44. package/esm2022/global-event-dispatcher.mjs +0 -70
  45. package/esm2022/global-planet.mjs +0 -63
  46. package/esm2022/helpers.mjs +0 -187
  47. package/esm2022/inner-types.mjs +0 -2
  48. package/esm2022/module.mjs +0 -33
  49. package/esm2022/planet.class.mjs +0 -9
  50. package/esm2022/planet.mjs +0 -97
  51. package/esm2022/public-api.mjs +0 -19
  52. package/esm2022/router/route-redirect.mjs +0 -63
  53. package/esm2022/sandbox/constants.mjs +0 -7
  54. package/esm2022/sandbox/exec.mjs +0 -15
  55. package/esm2022/sandbox/index.mjs +0 -20
  56. package/esm2022/sandbox/proxy/patches/document.mjs +0 -12
  57. package/esm2022/sandbox/proxy/patches/eventListener.mjs +0 -41
  58. package/esm2022/sandbox/proxy/patches/index.mjs +0 -11
  59. package/esm2022/sandbox/proxy/patches/storage.mjs +0 -40
  60. package/esm2022/sandbox/proxy/patches/timer.mjs +0 -43
  61. package/esm2022/sandbox/proxy/proxies/common.mjs +0 -132
  62. package/esm2022/sandbox/proxy/proxies/document.mjs +0 -126
  63. package/esm2022/sandbox/proxy/proxies/window.mjs +0 -158
  64. package/esm2022/sandbox/proxy/proxy-sandbox.mjs +0 -49
  65. package/esm2022/sandbox/proxy/types.mjs +0 -2
  66. package/esm2022/sandbox/sandbox.mjs +0 -7
  67. package/esm2022/sandbox/snapshot/snapshot-sandbox.mjs +0 -12
  68. package/esm2022/sandbox/types.mjs +0 -2
  69. package/esm2022/worktile-planet.mjs +0 -5
  70. package/global-event-dispatcher.d.ts +0 -23
  71. package/global-event-dispatcher.d.ts.map +0 -1
  72. package/global-planet.d.ts +0 -25
  73. package/global-planet.d.ts.map +0 -1
  74. package/helpers.d.ts +0 -36
  75. package/helpers.d.ts.map +0 -1
  76. package/inner-types.d.ts +0 -15
  77. package/inner-types.d.ts.map +0 -1
  78. package/module.d.ts +0 -13
  79. package/module.d.ts.map +0 -1
  80. package/planet.class.d.ts +0 -118
  81. package/planet.class.d.ts.map +0 -1
  82. package/planet.d.ts +0 -32
  83. package/planet.d.ts.map +0 -1
  84. package/public-api.d.ts +0 -17
  85. package/public-api.d.ts.map +0 -1
  86. package/router/route-redirect.d.ts +0 -16
  87. package/router/route-redirect.d.ts.map +0 -1
  88. package/sandbox/constants.d.ts +0 -7
  89. package/sandbox/constants.d.ts.map +0 -1
  90. package/sandbox/exec.d.ts +0 -3
  91. package/sandbox/exec.d.ts.map +0 -1
  92. package/sandbox/index.d.ts +0 -7
  93. package/sandbox/index.d.ts.map +0 -1
  94. package/sandbox/proxy/patches/document.d.ts +0 -3
  95. package/sandbox/proxy/patches/document.d.ts.map +0 -1
  96. package/sandbox/proxy/patches/eventListener.d.ts +0 -3
  97. package/sandbox/proxy/patches/eventListener.d.ts.map +0 -1
  98. package/sandbox/proxy/patches/index.d.ts +0 -3
  99. package/sandbox/proxy/patches/index.d.ts.map +0 -1
  100. package/sandbox/proxy/patches/storage.d.ts +0 -15
  101. package/sandbox/proxy/patches/storage.d.ts.map +0 -1
  102. package/sandbox/proxy/patches/timer.d.ts +0 -3
  103. package/sandbox/proxy/patches/timer.d.ts.map +0 -1
  104. package/sandbox/proxy/proxies/common.d.ts +0 -13
  105. package/sandbox/proxy/proxies/common.d.ts.map +0 -1
  106. package/sandbox/proxy/proxies/document.d.ts +0 -14
  107. package/sandbox/proxy/proxies/document.d.ts.map +0 -1
  108. package/sandbox/proxy/proxies/window.d.ts +0 -13
  109. package/sandbox/proxy/proxies/window.d.ts.map +0 -1
  110. package/sandbox/proxy/proxy-sandbox.d.ts +0 -16
  111. package/sandbox/proxy/proxy-sandbox.d.ts.map +0 -1
  112. package/sandbox/proxy/types.d.ts +0 -14
  113. package/sandbox/proxy/types.d.ts.map +0 -1
  114. package/sandbox/sandbox.d.ts +0 -12
  115. package/sandbox/sandbox.d.ts.map +0 -1
  116. package/sandbox/snapshot/snapshot-sandbox.d.ts +0 -9
  117. package/sandbox/snapshot/snapshot-sandbox.d.ts.map +0 -1
  118. package/sandbox/types.d.ts +0 -2
  119. package/sandbox/types.d.ts.map +0 -1
  120. package/worktile-planet.d.ts.map +0 -1
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9wbGFuZXQvc3JjL3NhbmRib3gvcHJveHkvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEdsb2JhbCB9IGZyb20gJy4uL3R5cGVzJztcblxuLy8gU2FuZGJveEluc3RhbmNlICDkuLvopoHmmK/kuLrkuobop6PlhrPlvqrnjq/kvp3otZZcbmV4cG9ydCBpbnRlcmZhY2UgUHJveHlTYW5kYm94SW5zdGFuY2Uge1xuICAgIGFwcDogc3RyaW5nO1xuXG4gICAgcnVubmluZzogYm9vbGVhbjtcblxuICAgIGdsb2JhbDogR2xvYmFsO1xuXG4gICAgcmV3cml0ZVZhcmlhYmxlczogUHJvcGVydHlLZXlbXTtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBTYW5kYm94UGF0Y2hIYW5kbGVyIHtcbiAgICByZXdyaXRlPzogUmVjb3JkPFByb3BlcnR5S2V5LCBhbnk+O1xuICAgIGluaXQ/OiAoKSA9PiB2b2lkO1xuICAgIGRlc3Ryb3k/OiAoKSA9PiB2b2lkO1xufVxuXG5leHBvcnQgdHlwZSBTYW5kYm94UGF0Y2ggPSAoc2FuZGJveD86IFByb3h5U2FuZGJveEluc3RhbmNlKSA9PiBTYW5kYm94UGF0Y2hIYW5kbGVyO1xuIl19
@@ -1,7 +0,0 @@
1
- import { execScript } from './exec';
2
- export class Sandbox {
3
- execScript(code, url = '') {
4
- execScript(code, url, this.global, !!this.options.strictGlobal);
5
- }
6
- }
7
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2FuZGJveC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3BhY2thZ2VzL3BsYW5ldC9zcmMvc2FuZGJveC9zYW5kYm94LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxRQUFRLENBQUM7QUFPcEMsTUFBTSxPQUFnQixPQUFPO0lBU3pCLFVBQVUsQ0FBQyxJQUFZLEVBQUUsR0FBRyxHQUFHLEVBQUU7UUFDN0IsVUFBVSxDQUFDLElBQUksRUFBRSxHQUFHLEVBQUUsSUFBSSxDQUFDLE1BQU0sRUFBRSxDQUFDLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxZQUFZLENBQUMsQ0FBQztJQUNwRSxDQUFDO0NBQ0oiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBleGVjU2NyaXB0IH0gZnJvbSAnLi9leGVjJztcbmltcG9ydCB7IEdsb2JhbCB9IGZyb20gJy4vdHlwZXMnO1xuXG5leHBvcnQgaW50ZXJmYWNlIFNhbmRib3hPcHRpb25zIHtcbiAgICBzdHJpY3RHbG9iYWw/OiBib29sZWFuO1xufVxuXG5leHBvcnQgYWJzdHJhY3QgY2xhc3MgU2FuZGJveCB7XG4gICAgb3B0aW9ucyE6IFNhbmRib3hPcHRpb25zO1xuXG4gICAgZ2xvYmFsITogR2xvYmFsO1xuXG4gICAgYWJzdHJhY3Qgc3RhcnQoKTogdm9pZDtcblxuICAgIGFic3RyYWN0IGRlc3Ryb3koKTogdm9pZDtcblxuICAgIGV4ZWNTY3JpcHQoY29kZTogc3RyaW5nLCB1cmwgPSAnJykge1xuICAgICAgICBleGVjU2NyaXB0KGNvZGUsIHVybCwgdGhpcy5nbG9iYWwsICEhdGhpcy5vcHRpb25zLnN0cmljdEdsb2JhbCk7XG4gICAgfVxufVxuIl19
@@ -1,12 +0,0 @@
1
- import { Sandbox } from '../sandbox';
2
- export class SnapshotSandbox extends Sandbox {
3
- constructor(app, options) {
4
- super();
5
- this.app = app;
6
- this.options = options;
7
- this.start();
8
- }
9
- start() { }
10
- destroy() { }
11
- }
12
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic25hcHNob3Qtc2FuZGJveC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3BsYW5ldC9zcmMvc2FuZGJveC9zbmFwc2hvdC9zbmFwc2hvdC1zYW5kYm94LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxPQUFPLEVBQWtCLE1BQU0sWUFBWSxDQUFDO0FBRXJELE1BQU0sT0FBTyxlQUFnQixTQUFRLE9BQU87SUFDeEMsWUFDVyxHQUFXLEVBQ0YsT0FBdUI7UUFFdkMsS0FBSyxFQUFFLENBQUM7UUFIRCxRQUFHLEdBQUgsR0FBRyxDQUFRO1FBQ0YsWUFBTyxHQUFQLE9BQU8sQ0FBZ0I7UUFHdkMsSUFBSSxDQUFDLEtBQUssRUFBRSxDQUFDO0lBQ2pCLENBQUM7SUFFRCxLQUFLLEtBQUksQ0FBQztJQUVWLE9BQU8sS0FBSSxDQUFDO0NBQ2YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBTYW5kYm94LCBTYW5kYm94T3B0aW9ucyB9IGZyb20gJy4uL3NhbmRib3gnO1xuXG5leHBvcnQgY2xhc3MgU25hcHNob3RTYW5kYm94IGV4dGVuZHMgU2FuZGJveCB7XG4gICAgY29uc3RydWN0b3IoXG4gICAgICAgIHB1YmxpYyBhcHA6IHN0cmluZyxcbiAgICAgICAgcHVibGljIG92ZXJyaWRlIG9wdGlvbnM6IFNhbmRib3hPcHRpb25zXG4gICAgKSB7XG4gICAgICAgIHN1cGVyKCk7XG4gICAgICAgIHRoaXMuc3RhcnQoKTtcbiAgICB9XG5cbiAgICBzdGFydCgpIHt9XG5cbiAgICBkZXN0cm95KCkge31cbn1cbiJdfQ==
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wYWNrYWdlcy9wbGFuZXQvc3JjL3NhbmRib3gvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB0eXBlIEdsb2JhbCA9IFJlY29yZDxQcm9wZXJ0eUtleSwgYW55PjtcbiJdfQ==
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public-api';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya3RpbGUtcGxhbmV0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vcGFja2FnZXMvcGxhbmV0L3NyYy93b3JrdGlsZS1wbGFuZXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
@@ -1,23 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { NgZone } from '@angular/core';
3
- import * as i0 from "@angular/core";
4
- export interface GlobalDispatcherEvent {
5
- name: string;
6
- payload: any;
7
- }
8
- export declare class GlobalEventDispatcher {
9
- private ngZone;
10
- private subject$;
11
- private hasAddGlobalEventListener;
12
- private subscriptionCount;
13
- private globalEventListener;
14
- private addGlobalEventListener;
15
- private removeGlobalEventListener;
16
- constructor(ngZone: NgZone);
17
- dispatch<TPayload>(name: string, payload?: TPayload): void;
18
- register<T>(eventName: string): Observable<T>;
19
- getSubscriptionCount(): number;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<GlobalEventDispatcher, never>;
21
- static ɵprov: i0.ɵɵInjectableDeclaration<GlobalEventDispatcher>;
22
- }
23
- //# sourceMappingURL=global-event-dispatcher.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"global-event-dispatcher.d.ts","sourceRoot":"","sources":["../../packages/planet/src/global-event-dispatcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,UAAU,EAAE,MAAM,MAAM,CAAC;AAE3C,OAAO,EAAc,MAAM,EAAE,MAAM,eAAe,CAAC;;AAEnD,MAAM,WAAW,qBAAqB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,GAAG,CAAC;CAChB;AAID,qBAGa,qBAAqB;IAqBlB,OAAO,CAAC,MAAM;IApB1B,OAAO,CAAC,QAAQ,CAAiD;IAEjE,OAAO,CAAC,yBAAyB,CAAS;IAE1C,OAAO,CAAC,iBAAiB,CAAK;IAE9B,OAAO,CAAC,mBAAmB,CAEzB;IAEF,OAAO,CAAC,sBAAsB;IAK9B,OAAO,CAAC,yBAAyB;gBAKb,MAAM,EAAE,MAAM;IAElC,QAAQ,CAAC,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ;IAWnD,QAAQ,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,GAAG,UAAU,CAAC,CAAC,CAAC;IA8B7C,oBAAoB;yCAhEX,qBAAqB;6CAArB,qBAAqB;CAmEjC"}
@@ -1,25 +0,0 @@
1
- import { PlanetApplicationRef } from './application/planet-application-ref';
2
- import { PlanetPortalApplication } from './application/portal-application';
3
- import { PlanetApplicationLoader } from './application/planet-application-loader';
4
- import { PlanetApplicationService } from './application/planet-application.service';
5
- import { NgBootstrapAppModule, NgBootstrapOptions } from './application/ng-planet-application-ref';
6
- export interface GlobalPlanet {
7
- apps: {
8
- [key: string]: PlanetApplicationRef;
9
- };
10
- portalApplication?: PlanetPortalApplication;
11
- applicationLoader: PlanetApplicationLoader;
12
- applicationService: PlanetApplicationService;
13
- }
14
- export declare const globalPlanet: GlobalPlanet;
15
- export declare function defineApplication<TOptions extends NgBootstrapAppModule | NgBootstrapOptions>(name: string, options: TOptions): void;
16
- export declare function getPlanetApplicationRef(appName: string): PlanetApplicationRef | null;
17
- export declare function getBootstrappedPlanetApplicationRef(appName: string): PlanetApplicationRef | null;
18
- export declare function setPortalApplicationData<T>(data: T): void;
19
- export declare function getPortalApplicationData<TData>(): TData;
20
- export declare function setApplicationLoader(loader: PlanetApplicationLoader): void;
21
- export declare function getApplicationLoader(): PlanetApplicationLoader;
22
- export declare function setApplicationService(service: PlanetApplicationService): void;
23
- export declare function getApplicationService(): PlanetApplicationService;
24
- export declare function clearGlobalPlanet(): void;
25
- //# sourceMappingURL=global-planet.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"global-planet.d.ts","sourceRoot":"","sources":["../../packages/planet/src/global-planet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAClF,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AAEpF,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAA0B,MAAM,yCAAyC,CAAC;AAI3H,MAAM,WAAW,YAAY;IACzB,IAAI,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAA;KAAE,CAAC;IAC9C,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;IAC5C,iBAAiB,EAAE,uBAAuB,CAAC;IAC3C,kBAAkB,EAAE,wBAAwB,CAAC;CAChD;AAED,eAAO,MAAM,YAAY,EAAE,YAEzB,CAAC;AAEH,wBAAgB,iBAAiB,CAAC,QAAQ,SAAS,oBAAoB,GAAG,kBAAkB,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,QAY5H;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,oBAAoB,GAAG,IAAI,CAMpF;AAED,wBAAgB,mCAAmC,CAAC,OAAO,EAAE,MAAM,GAAG,oBAAoB,GAAG,IAAI,CAShG;AAED,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,QAIlD;AAED,wBAAgB,wBAAwB,CAAC,KAAK,KAAK,KAAK,CAEvD;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,uBAAuB,QAEnE;AAED,wBAAgB,oBAAoB,4BAEnC;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,wBAAwB,QAEtE;AAED,wBAAgB,qBAAqB,6BAEpC;AAED,wBAAgB,iBAAiB,SAKhC"}
package/helpers.d.ts DELETED
@@ -1,36 +0,0 @@
1
- import { AssetsTagItem } from './inner-types';
2
- import { PlanetApplication } from './planet.class';
3
- export declare function hashCode(str: string): number;
4
- export declare function getHTMLElement(selector: string | HTMLElement): HTMLElement | null;
5
- export declare function getTagNameByTemplate(template: string): string;
6
- export declare function createElementByTemplate(template: string): HTMLElement;
7
- export declare function coerceArray<T>(value: T | T[]): T[];
8
- export declare function isEmpty(value: any): boolean;
9
- export declare function isFunction(value: any): value is Function;
10
- export declare function isObject<T extends object>(value: any): value is T;
11
- /**
12
- * Get file name from path
13
- * 1. "main.js" => "main.js"
14
- * 2. "assets/scripts/main.js" => "main.js"
15
- * @param path path
16
- */
17
- export declare function getResourceFileName(path: string): string;
18
- export declare function getExtName(name: string): string;
19
- /**
20
- * Build resource path by manifest
21
- * if manifest is { "main.js": "main.h2sh23abee.js"}
22
- * 1. "main.js" => "main.h2sh23abee.js"
23
- * 2. "assets/scripts/main.js" =>"assets/scripts/main.h2sh23abee.js"
24
- * @param resourceFilePath Resource File Path
25
- * @param manifestResult manifest
26
- */
27
- export declare function buildResourceFilePath(resourceFilePath: string, manifestResult: Record<string, AssetsTagItem>): string;
28
- export declare function buildFullPath(path: string, basePath?: string): string;
29
- export declare function getAssetsBasePath(app: PlanetApplication): string;
30
- export declare function toAssetsTagItem(src: string): AssetsTagItem;
31
- export declare function toAssetsTagItems(src: string[]): AssetsTagItem[];
32
- export declare function getScriptsAndStylesAssets(app: PlanetApplication, basePath: string, manifestResult?: Record<string, AssetsTagItem[]>): {
33
- scripts: AssetsTagItem[];
34
- styles: AssetsTagItem[];
35
- };
36
- //# sourceMappingURL=helpers.d.ts.map
package/helpers.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../packages/planet/src/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAA0B,MAAM,gBAAgB,CAAC;AAI3E,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAY5C;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,WAAW,GAAG,WAAW,GAAG,IAAI,CAMjF;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAG7D;AAED,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,eAUvD;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,EAAE,CAElD;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAM3C;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,QAAQ,CAGxD;AAED,wBAAgB,QAAQ,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,CAAC,CAEjE;AACD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAOxD;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,UAOtC;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,gBAAgB,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,UAO5G;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,UAS5D;AAeD,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,iBAAiB,GAAG,MAAM,CAWhE;AA2BD,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAI1D;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE,CAE/D;AAED,wBAAgB,yBAAyB,CACrC,GAAG,EAAE,iBAAiB,EACtB,QAAQ,EAAE,MAAM,EAChB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,EAAE,CAAC,GACjD;IAAE,OAAO,EAAE,aAAa,EAAE,CAAC;IAAC,MAAM,EAAE,aAAa,EAAE,CAAA;CAAE,CAoBvD"}
package/inner-types.d.ts DELETED
@@ -1,15 +0,0 @@
1
- export interface ScriptTagAttributes {
2
- type?: 'module' | 'text/script' | undefined;
3
- async?: string;
4
- defer?: string;
5
- }
6
- export interface LinkTagAttributes {
7
- rel?: string;
8
- }
9
- export type ScriptOrLinkTagAttributes = ScriptTagAttributes | LinkTagAttributes;
10
- export interface AssetsTagItem {
11
- src: string;
12
- tagName?: 'link' | 'script';
13
- attributes?: ScriptOrLinkTagAttributes;
14
- }
15
- //# sourceMappingURL=inner-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inner-types.d.ts","sourceRoot":"","sources":["../../packages/planet/src/inner-types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAChC,IAAI,CAAC,EAAE,QAAQ,GAAG,aAAa,GAAG,SAAS,CAAC;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,yBAAyB,GAAG,mBAAmB,GAAG,iBAAiB,CAAC;AAEhF,MAAM,WAAW,aAAa;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC5B,UAAU,CAAC,EAAE,yBAAyB,CAAC;CAC1C"}
package/module.d.ts DELETED
@@ -1,13 +0,0 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import { PlanetApplication } from './planet.class';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "./component/planet-component-outlet";
5
- import * as i2 from "./empty/empty.component";
6
- import * as i3 from "./router/route-redirect";
7
- export declare class NgxPlanetModule {
8
- static forRoot(apps: PlanetApplication[]): ModuleWithProviders<NgxPlanetModule>;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<NgxPlanetModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<NgxPlanetModule, never, [typeof i1.PlanetComponentOutlet, typeof i2.EmptyComponent, typeof i3.RedirectToRouteComponent], [typeof i2.EmptyComponent, typeof i1.PlanetComponentOutlet]>;
11
- static ɵinj: i0.ɵɵInjectorDeclaration<NgxPlanetModule>;
12
- }
13
- //# sourceMappingURL=module.d.ts.map
package/module.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../packages/planet/src/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAuB,MAAM,gBAAgB,CAAC;;;;;AAMxE,qBAMa,eAAe;IACxB,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,iBAAiB,EAAE,GAAG,mBAAmB,CAAC,eAAe,CAAC;yCADtE,eAAe;0CAAf,eAAe;0CAAf,eAAe;CAY3B"}
package/planet.class.d.ts DELETED
@@ -1,118 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { Debug } from './debug';
3
- export interface PlanetOptions {
4
- switchMode?: SwitchModes;
5
- errorHandler: (error: Error) => void;
6
- debugFactory?: Debug;
7
- }
8
- export interface PlanetApplicationEntry {
9
- basePath?: string;
10
- scripts?: string[];
11
- styles?: string[];
12
- manifest?: string;
13
- }
14
- export interface PlanetApplication<TExtra = any> {
15
- /**
16
- * Application name, e.g. "app1"
17
- */
18
- name: string;
19
- /**
20
- * Selector or Element which app host parent
21
- * 应用加载的宿主元素或者选择器
22
- */
23
- hostParent: string | HTMLElement;
24
- /**
25
- * Class name for host
26
- */
27
- hostClass?: string | string[];
28
- /**
29
- * Selector for sub application
30
- * 子应用的选择器
31
- * @deprecated please use new defineApplication to set selector
32
- */
33
- selector?: string;
34
- /**
35
- * Path prefix for sub application, e.g. '/app1'
36
- * 子应用路由前缀路径
37
- */
38
- routerPathPrefix: string | RegExp;
39
- /**
40
- * Preload enabled, default false, if enabled,the application will be loaded when idle in the background
41
- * 是否开启预加载,开启后会在后台提前加载此应用
42
- */
43
- preload?: boolean;
44
- /**
45
- * Sandbox enabled
46
- * 是否开启沙箱模式
47
- */
48
- sandbox?: boolean;
49
- /**
50
- * Switch application mode
51
- * default: will be destroyed when switch to other app
52
- * coexist: only hide app when switch to other app
53
- * 切换应用的模式
54
- */
55
- switchMode?: SwitchModes;
56
- /**
57
- * Style prefix, e.g. 'app1'
58
- * 样式前缀
59
- */
60
- stylePrefix?: string;
61
- /**
62
- * The entry of the micro application, e.g. '/static/app1/index.html'
63
- * If configured as string, it represents the entry html address of the micro application. e.g. '/static/app1/index.html'
64
- * If configured as object, the value of manifest is the html address of the micro application
65
- * entry.basePath: the base path of the entry, e.g. '/static/app1/'
66
- * entry.manifest: the manifest of the entry, e.g. 'index.html' or 'assets-manifest.json'
67
- * entry.scripts: the scripts of the entry, will get final scripts address by manifest and basePath
68
- * entry.styles: the styles of the entry, will get final styles address by manifest and basePath
69
- */
70
- entry?: string | PlanetApplicationEntry;
71
- /**
72
- * Manifest json file path, e.g. /static/app1/assets-manifest.json
73
- * 应用程序打包后的脚本和样式文件替换
74
- * @deprecated Please use entry.manifest instead
75
- */
76
- manifest?: string;
77
- /**
78
- * Path prefix of scripts and styles, e.g. 'static/app1/'
79
- * 资源文件路径的前缀
80
- * @deprecated Please use entry.basePath instead
81
- */
82
- resourcePathPrefix?: string;
83
- /**
84
- * Style static resource paths
85
- * 样式资源文件
86
- * @deprecated Please use entry.styles instead
87
- */
88
- styles?: string[];
89
- /**
90
- * Scripts static resource paths
91
- * 脚本资源文件
92
- * @deprecated Please use entry.scripts instead
93
- */
94
- scripts?: string[];
95
- /**
96
- * Serial load scripts, default is parallel, only enable when the script has sequentially loaded dependency
97
- * 串行加载,默认并行加载脚本资源,仅当脚本资源有依赖关系时开启
98
- */
99
- loadSerial?: boolean;
100
- /**
101
- * 皮肤样式的路径
102
- */
103
- /**
104
- * Extra data for application
105
- * 附加数据,主要应用于业务,比如图标,子应用的颜色,显示名等个性化配置
106
- */
107
- extra?: TExtra;
108
- }
109
- export declare enum SwitchModes {
110
- default = "default",
111
- coexist = "coexist"
112
- }
113
- export interface PlanetRouterEvent {
114
- url: string;
115
- }
116
- declare const PLANET_APPLICATIONS: InjectionToken<PlanetApplication<any>>;
117
- export { PLANET_APPLICATIONS };
118
- //# sourceMappingURL=planet.class.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"planet.class.d.ts","sourceRoot":"","sources":["../../packages/planet/src/planet.class.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,WAAW,aAAa;IAC1B,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,YAAY,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACrC,YAAY,CAAC,EAAE,KAAK,CAAC;CACxB;AAED,MAAM,WAAW,sBAAsB;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB,CAAC,MAAM,GAAG,GAAG;IAC3C;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,UAAU,EAAE,MAAM,GAAG,WAAW,CAAC;IACjC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,gBAAgB,EAAE,MAAM,GAAG,MAAM,CAAC;IAClC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;;;OAQG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,sBAAsB,CAAC;IACxC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IAEH;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,oBAAY,WAAW;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;CACtB;AAED,MAAM,WAAW,iBAAiB;IAC9B,GAAG,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,mBAAmB,wCAA+D,CAAC;AAEzF,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
package/planet.d.ts DELETED
@@ -1,32 +0,0 @@
1
- import { Injector } from '@angular/core';
2
- import { Router } from '@angular/router';
3
- import { PlanetOptions, PlanetApplication } from './planet.class';
4
- import { AppsLoadingStartEvent, AppStatusChangeEvent } from './application/planet-application-loader';
5
- import { Observable } from 'rxjs';
6
- import * as i0 from "@angular/core";
7
- export declare class Planet {
8
- private injector;
9
- private router;
10
- private get planetApplicationLoader();
11
- private get planetApplicationService();
12
- /**
13
- * @deprecated please use loading signal
14
- */
15
- get loadingDone(): boolean;
16
- get loading(): import("@angular/core").Signal<boolean>;
17
- get appStatusChange(): Observable<AppStatusChangeEvent>;
18
- get appsLoadingStart(): Observable<AppsLoadingStartEvent>;
19
- private subscription?;
20
- constructor(injector: Injector, router: Router, planetApplications: PlanetApplication[]);
21
- setOptions(options: Partial<PlanetOptions>): void;
22
- setPortalAppData<T>(data: T): void;
23
- registerApp<TExtra>(app: PlanetApplication<TExtra>): void;
24
- registerApps<TExtra>(apps: PlanetApplication<TExtra>[]): void;
25
- unregisterApp(name: string): void;
26
- getApps(): PlanetApplication<any>[];
27
- start(): void;
28
- stop(): void;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<Planet, [null, null, { optional: true; }]>;
30
- static ɵprov: i0.ɵɵInjectableDeclaration<Planet>;
31
- }
32
- //# sourceMappingURL=planet.d.ts.map
package/planet.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"planet.d.ts","sourceRoot":"","sources":["../../packages/planet/src/planet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,QAAQ,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAA8B,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAuB,MAAM,gBAAgB,CAAC;AAEvF,OAAO,EAA2B,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/H,OAAO,EAAE,UAAU,EAAgB,MAAM,MAAM,CAAC;;AAWhD,qBAGa,MAAM;IA+BX,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,MAAM;IA/BlB,OAAO,KAAK,uBAAuB,GAElC;IAED,OAAO,KAAK,wBAAwB,GAEnC;IAED;;OAEG;IACH,IAAW,WAAW,YAErB;IAED,IAAW,OAAO,4CAEjB;IAED,IAAW,eAAe,IAAI,UAAU,CAAC,oBAAoB,CAAC,CAE7D;IAED,IAAW,gBAAgB,IAAI,UAAU,CAAC,qBAAqB,CAAC,CAE/D;IAED,OAAO,CAAC,YAAY,CAAC,CAAe;gBAGxB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACmB,kBAAkB,EAAE,iBAAiB,EAAE;IAcpF,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC;IAO1C,gBAAgB,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC;IAI3B,WAAW,CAAC,MAAM,EAAE,GAAG,EAAE,iBAAiB,CAAC,MAAM,CAAC;IAIlD,YAAY,CAAC,MAAM,EAAE,IAAI,EAAE,iBAAiB,CAAC,MAAM,CAAC,EAAE;IAItD,aAAa,CAAC,IAAI,EAAE,MAAM;IAI1B,OAAO;IAIP,KAAK;IAmBL,IAAI;yCA7FK,MAAM;6CAAN,MAAM;CAgGlB"}
package/public-api.d.ts DELETED
@@ -1,17 +0,0 @@
1
- export * from './planet';
2
- export * from './global-event-dispatcher';
3
- export * from './application/portal-application';
4
- export * from './planet.class';
5
- export * from './module';
6
- export { PlanetApplicationRef } from './application/planet-application-ref';
7
- export { defineApplication, getPortalApplicationData, getPlanetApplicationRef } from './global-planet';
8
- export { PlanetApplicationService } from './application/planet-application.service';
9
- export * from './application/planet-application-loader';
10
- export * from './assets-loader';
11
- export { PlanetComponent, PlanetComponentLoader } from './component/planet-component-loader';
12
- export { PlanetComponentRef } from './component/planet-component-types';
13
- export { PlanetComponentOutlet } from './component/planet-component-outlet';
14
- export { PlantComponentConfig } from './component/plant-component.config';
15
- export * from './empty/empty.component';
16
- export * from './router/route-redirect';
17
- //# sourceMappingURL=public-api.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../../packages/planet/src/public-api.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kCAAkC,CAAC;AACjD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AACvG,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,cAAc,yCAAyC,CAAC;AACxD,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC7F,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC"}
@@ -1,16 +0,0 @@
1
- import { ActivatedRoute, Route, Router } from '@angular/router';
2
- import * as i0 from "@angular/core";
3
- declare class RouteRedirect {
4
- activatedRoute: ActivatedRoute;
5
- router: Router;
6
- constructor(redirectTo: string);
7
- }
8
- export declare function routeRedirect(redirectTo?: string): RouteRedirect;
9
- export declare class RedirectToRouteComponent {
10
- routeRedirect: RouteRedirect;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<RedirectToRouteComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<RedirectToRouteComponent, "planet-redirect-to-route", never, {}, {}, never, never, true, never>;
13
- }
14
- export declare function redirectToRoute(redirectTo: string): Route;
15
- export {};
16
- //# sourceMappingURL=route-redirect.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"route-redirect.d.ts","sourceRoot":"","sources":["../../../packages/planet/src/router/route-redirect.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,EAAW,MAAM,iBAAiB,CAAC;;AAEzE,cAAM,aAAa;IACf,cAAc,iBAA0B;IACxC,MAAM,SAAkB;gBAEZ,UAAU,EAAE,MAAM;CAgCjC;AAED,wBAAgB,aAAa,CAAC,UAAU,CAAC,EAAE,MAAM,iBAEhD;AAED,qBAKa,wBAAwB;IACjC,aAAa,gBAAmB;yCADvB,wBAAwB;2CAAxB,wBAAwB;CAEpC;AAED,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,KAAK,CAQzD"}
@@ -1,7 +0,0 @@
1
- export declare const PLANET_SANDBOX_WINDOW_WHITELIST: any;
2
- export declare const PLANET_SANDBOX_DOCUMENT_WHITELIST: any;
3
- export declare const SANDBOX_INSTANCE: unique symbol;
4
- export declare const RAW_NODE: unique symbol;
5
- export declare const WINDOW_BIND_FN: unique symbol;
6
- export declare const DOCUMENT_BIND_FN: unique symbol;
7
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../packages/planet/src/sandbox/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,+BAA+B,KAAkD,CAAC;AAC/F,eAAO,MAAM,iCAAiC,KAAoD,CAAC;AACnG,eAAO,MAAM,gBAAgB,eAAwC,CAAC;AACtE,eAAO,MAAM,QAAQ,eAAgC,CAAC;AACtD,eAAO,MAAM,cAAc,eAAsC,CAAC;AAClE,eAAO,MAAM,gBAAgB,eAAwC,CAAC"}
package/sandbox/exec.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import { Global } from './types';
2
- export declare function execScript(code: string, url: string, global: Global, strictGlobal: boolean): void;
3
- //# sourceMappingURL=exec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"exec.d.ts","sourceRoot":"","sources":["../../../packages/planet/src/sandbox/exec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,QAmB1F"}
@@ -1,7 +0,0 @@
1
- import { SandboxOptions } from './sandbox';
2
- import { ProxySandbox } from './proxy/proxy-sandbox';
3
- import { SnapshotSandbox } from './snapshot/snapshot-sandbox';
4
- export { Sandbox } from './sandbox';
5
- export declare function createSandbox(app: string, options?: SandboxOptions): ProxySandbox | SnapshotSandbox;
6
- export declare function getSandboxInstance(): any;
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/planet/src/sandbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAG9D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,kCAQlE;AAED,wBAAgB,kBAAkB,QAEjC"}
@@ -1,3 +0,0 @@
1
- import { SandboxPatchHandler } from '../types';
2
- export declare function documentPatch(): SandboxPatchHandler;
3
- //# sourceMappingURL=document.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../../../../packages/planet/src/sandbox/proxy/patches/document.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C,wBAAgB,aAAa,IAAI,mBAAmB,CASnD"}
@@ -1,3 +0,0 @@
1
- import { SandboxPatchHandler, ProxySandboxInstance } from '../types';
2
- export declare function eventListenerPatch(sandbox: ProxySandboxInstance): SandboxPatchHandler;
3
- //# sourceMappingURL=eventListener.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"eventListener.d.ts","sourceRoot":"","sources":["../../../../../packages/planet/src/sandbox/proxy/patches/eventListener.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAGrE,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,oBAAoB,GAAG,mBAAmB,CAyCrF"}
@@ -1,3 +0,0 @@
1
- import { ProxySandboxInstance, SandboxPatchHandler } from '../types';
2
- export declare function getSandboxPatchHandlers(sandbox: ProxySandboxInstance): SandboxPatchHandler[];
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/planet/src/sandbox/proxy/patches/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAgB,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAQnF,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,oBAAoB,GAAG,mBAAmB,EAAE,CAI5F"}
@@ -1,15 +0,0 @@
1
- import { ProxySandboxInstance, SandboxPatchHandler } from '../types';
2
- export declare class RewriteStorage {
3
- prefix: string;
4
- rawStorage: Storage;
5
- constructor(app: string, rawStorage: Storage);
6
- get length(): number;
7
- private getKeys;
8
- key(n: number): string;
9
- getItem(key: string): string;
10
- setItem(key: string, value: string): void;
11
- removeItem(key: string): void;
12
- clear(): void;
13
- }
14
- export declare function storagePatch(sandbox: ProxySandboxInstance): SandboxPatchHandler;
15
- //# sourceMappingURL=storage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../../../packages/planet/src/sandbox/proxy/patches/storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAIrE,qBAAa,cAAc;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;gBAER,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO;IAK5C,IAAI,MAAM,WAET;IAED,OAAO,CAAC,OAAO;IAIf,GAAG,CAAC,CAAC,EAAE,MAAM;IAKb,OAAO,CAAC,GAAG,EAAE,MAAM;IAInB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAIlC,UAAU,CAAC,GAAG,EAAE,MAAM;IAItB,KAAK;CAKR;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,oBAAoB,GAAG,mBAAmB,CAO/E"}
@@ -1,3 +0,0 @@
1
- import { SandboxPatchHandler } from '../types';
2
- export declare function timerPatch(): SandboxPatchHandler;
3
- //# sourceMappingURL=timer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"timer.d.ts","sourceRoot":"","sources":["../../../../../packages/planet/src/sandbox/proxy/patches/timer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAO/C,wBAAgB,UAAU,IAAI,mBAAmB,CA0ChD"}
@@ -1,13 +0,0 @@
1
- export declare function hasOwnProp(obj: any, key: PropertyKey): boolean;
2
- export declare function isValueDescriptor(desc?: PropertyDescriptor): boolean;
3
- export declare function isAccessorDescriptor(desc?: PropertyDescriptor): boolean;
4
- export declare function isNonWriteableValue(desc?: PropertyDescriptor): boolean;
5
- export declare function isInvalidSetAccessor(desc?: PropertyDescriptor): boolean;
6
- export declare function isInvalidGetAccessor(desc?: PropertyDescriptor): boolean;
7
- export declare function bind(fn: any, context: any): {
8
- (): any;
9
- $native: any;
10
- prototype: any;
11
- };
12
- export declare function createFakeObject(target: Record<PropertyKey, any>, writableKeys?: PropertyKey[]): any;
13
- //# sourceMappingURL=common.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../../packages/planet/src/sandbox/proxy/proxies/common.ts"],"names":[],"mappings":"AAIA,wBAAgB,UAAU,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,WAAW,GAAG,OAAO,CAE9D;AAED,wBAAgB,iBAAiB,CAAC,IAAI,CAAC,EAAE,kBAAkB,WAK1D;AAED,wBAAgB,oBAAoB,CAAC,IAAI,CAAC,EAAE,kBAAkB,WAK7D;AAED,wBAAgB,mBAAmB,CAAC,IAAI,CAAC,EAAE,kBAAkB,WAE5D;AAED,wBAAgB,oBAAoB,CAAC,IAAI,CAAC,EAAE,kBAAkB,WAM7D;AAED,wBAAgB,oBAAoB,CAAC,IAAI,CAAC,EAAE,kBAAkB,WAM7D;AAsBD,wBAAgB,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG;;;;EA4BzC;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,EAAE,GAAG,CAAC,EAAE,YAAY,CAAC,EAAE,WAAW,EAAE,GA2CtE,GAAG,CAC3B"}
@@ -1,14 +0,0 @@
1
- export declare class ProxyDocument {
2
- constructor();
3
- private createGetter;
4
- private createSetter;
5
- private createDefineProperty;
6
- create(): {
7
- document: any;
8
- Document: {
9
- (): Document;
10
- prototype: any;
11
- };
12
- };
13
- }
14
- //# sourceMappingURL=document.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../../../../packages/planet/src/sandbox/proxy/proxies/document.ts"],"names":[],"mappings":"AAcA,qBAAa,aAAa;;IAGtB,OAAO,CAAC,YAAY;IAqCpB,OAAO,CAAC,YAAY;IAiBpB,OAAO,CAAC,oBAAoB;IAQ5B,MAAM;;;;;;;CA4DT"}
@@ -1,13 +0,0 @@
1
- import { ProxySandboxInstance } from '../types';
2
- export declare class ProxyWindow {
3
- private sandbox;
4
- constructor(sandbox: ProxySandboxInstance);
5
- private definedVariables;
6
- private createGetter;
7
- private createSetter;
8
- private createDefineProperty;
9
- private createDeleteProperty;
10
- private createHas;
11
- create(): any;
12
- }
13
- //# sourceMappingURL=window.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"window.d.ts","sourceRoot":"","sources":["../../../../../packages/planet/src/sandbox/proxy/proxies/window.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAqChD,qBAAa,WAAW;IACR,OAAO,CAAC,OAAO;gBAAP,OAAO,EAAE,oBAAoB;IAEjD,OAAO,CAAC,gBAAgB,CAAa;IAErC,OAAO,CAAC,YAAY;IAyCpB,OAAO,CAAC,YAAY;IA8BpB,OAAO,CAAC,oBAAoB;IAc5B,OAAO,CAAC,oBAAoB;IAY5B,OAAO,CAAC,SAAS;IAMjB,MAAM;CAoBT"}
@@ -1,16 +0,0 @@
1
- import { Global } from '../types';
2
- import { Sandbox, SandboxOptions } from '../sandbox';
3
- export declare class ProxySandbox extends Sandbox {
4
- app: string;
5
- options: SandboxOptions;
6
- running: boolean;
7
- global: Global;
8
- rewriteVariables: PropertyKey[];
9
- private patchHandlers;
10
- constructor(app: string, options: SandboxOptions);
11
- start(): void;
12
- destroy(): void;
13
- private getPatchRewriteVariables;
14
- private execPatchHandlers;
15
- }
16
- //# sourceMappingURL=proxy-sandbox.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"proxy-sandbox.d.ts","sourceRoot":"","sources":["../../../../packages/planet/src/sandbox/proxy/proxy-sandbox.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAErD,qBAAa,YAAa,SAAQ,OAAO;IAU1B,GAAG,EAAE,MAAM;IACF,OAAO,EAAE,cAAc;IAVpC,OAAO,UAAS;IAEP,MAAM,EAAG,MAAM,CAAC;IAEzB,gBAAgB,EAAG,WAAW,EAAE,CAAC;IAExC,OAAO,CAAC,aAAa,CAA6B;gBAGvC,GAAG,EAAE,MAAM,EACF,OAAO,EAAE,cAAc;IAO3C,KAAK;IAQL,OAAO;IASP,OAAO,CAAC,wBAAwB;IAMhC,OAAO,CAAC,iBAAiB;CAc5B"}
@@ -1,14 +0,0 @@
1
- import { Global } from '../types';
2
- export interface ProxySandboxInstance {
3
- app: string;
4
- running: boolean;
5
- global: Global;
6
- rewriteVariables: PropertyKey[];
7
- }
8
- export interface SandboxPatchHandler {
9
- rewrite?: Record<PropertyKey, any>;
10
- init?: () => void;
11
- destroy?: () => void;
12
- }
13
- export type SandboxPatch = (sandbox?: ProxySandboxInstance) => SandboxPatchHandler;
14
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../packages/planet/src/sandbox/proxy/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,MAAM,WAAW,oBAAoB;IACjC,GAAG,EAAE,MAAM,CAAC;IAEZ,OAAO,EAAE,OAAO,CAAC;IAEjB,MAAM,EAAE,MAAM,CAAC;IAEf,gBAAgB,EAAE,WAAW,EAAE,CAAC;CACnC;AAED,MAAM,WAAW,mBAAmB;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;IACnC,IAAI,CAAC,EAAE,MAAM,IAAI,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,CAAC,EAAE,oBAAoB,KAAK,mBAAmB,CAAC"}
@@ -1,12 +0,0 @@
1
- import { Global } from './types';
2
- export interface SandboxOptions {
3
- strictGlobal?: boolean;
4
- }
5
- export declare abstract class Sandbox {
6
- options: SandboxOptions;
7
- global: Global;
8
- abstract start(): void;
9
- abstract destroy(): void;
10
- execScript(code: string, url?: string): void;
11
- }
12
- //# sourceMappingURL=sandbox.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sandbox.d.ts","sourceRoot":"","sources":["../../../packages/planet/src/sandbox/sandbox.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC,MAAM,WAAW,cAAc;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,8BAAsB,OAAO;IACzB,OAAO,EAAG,cAAc,CAAC;IAEzB,MAAM,EAAG,MAAM,CAAC;IAEhB,QAAQ,CAAC,KAAK,IAAI,IAAI;IAEtB,QAAQ,CAAC,OAAO,IAAI,IAAI;IAExB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,SAAK;CAGpC"}
@@ -1,9 +0,0 @@
1
- import { Sandbox, SandboxOptions } from '../sandbox';
2
- export declare class SnapshotSandbox extends Sandbox {
3
- app: string;
4
- options: SandboxOptions;
5
- constructor(app: string, options: SandboxOptions);
6
- start(): void;
7
- destroy(): void;
8
- }
9
- //# sourceMappingURL=snapshot-sandbox.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"snapshot-sandbox.d.ts","sourceRoot":"","sources":["../../../../packages/planet/src/sandbox/snapshot/snapshot-sandbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAErD,qBAAa,eAAgB,SAAQ,OAAO;IAE7B,GAAG,EAAE,MAAM;IACF,OAAO,EAAE,cAAc;gBADhC,GAAG,EAAE,MAAM,EACF,OAAO,EAAE,cAAc;IAM3C,KAAK;IAEL,OAAO;CACV"}
@@ -1,2 +0,0 @@
1
- export type Global = Record<PropertyKey, any>;
2
- //# sourceMappingURL=types.d.ts.map