@worktile/planet 12.1.1 → 14.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.
- package/CHANGELOG.md +26 -0
- package/application/planet-application-loader.d.ts +73 -0
- package/application/planet-application-loader.d.ts.map +1 -0
- package/application/planet-application-ref.d.ts +36 -0
- package/application/planet-application-ref.d.ts.map +1 -0
- package/application/planet-application.service.d.ts +22 -0
- package/application/planet-application.service.d.ts.map +1 -0
- package/{packages/planet/src/application/portal-application.ts → application/portal-application.d.ts} +5 -18
- package/application/portal-application.d.ts.map +1 -0
- package/assets-loader.d.ts +36 -0
- package/assets-loader.d.ts.map +1 -0
- package/component/planet-component-loader.d.ts +31 -0
- package/component/planet-component-loader.d.ts.map +1 -0
- package/component/planet-component-ref.d.ts +8 -0
- package/component/planet-component-ref.d.ts.map +1 -0
- package/{packages/planet/src/component/plant-component.config.ts → component/plant-component.config.d.ts} +4 -4
- package/component/plant-component.config.d.ts.map +1 -0
- package/debug.d.ts +22 -0
- package/debug.d.ts.map +1 -0
- package/empty/empty.component.d.ts +6 -0
- package/empty/empty.component.d.ts.map +1 -0
- package/esm2020/application/planet-application-loader.mjs +454 -0
- package/esm2020/application/planet-application-ref.mjs +94 -0
- package/esm2020/application/planet-application.service.mjs +85 -0
- package/esm2020/application/portal-application.mjs +16 -0
- package/esm2020/assets-loader.mjs +216 -0
- package/esm2020/component/planet-component-loader.mjs +153 -0
- package/esm2020/component/planet-component-ref.mjs +3 -0
- package/esm2020/component/plant-component.config.mjs +7 -0
- package/esm2020/debug.mjs +33 -0
- package/esm2020/empty/empty.component.mjs +15 -0
- package/esm2020/global-event-dispatcher.mjs +70 -0
- package/esm2020/global-planet.mjs +53 -0
- package/esm2020/helpers.mjs +119 -0
- package/esm2020/module.mjs +31 -0
- package/esm2020/planet.class.mjs +9 -0
- package/esm2020/planet.mjs +91 -0
- package/esm2020/public-api.mjs +18 -0
- package/esm2020/sandbox/constants.mjs +7 -0
- package/esm2020/sandbox/exec.mjs +15 -0
- package/esm2020/sandbox/index.mjs +20 -0
- package/esm2020/sandbox/proxy/patches/document.mjs +12 -0
- package/esm2020/sandbox/proxy/patches/eventListener.mjs +41 -0
- package/esm2020/sandbox/proxy/patches/index.mjs +11 -0
- package/esm2020/sandbox/proxy/patches/storage.mjs +40 -0
- package/esm2020/sandbox/proxy/patches/timer.mjs +43 -0
- package/esm2020/sandbox/proxy/proxies/common.mjs +132 -0
- package/esm2020/sandbox/proxy/proxies/document.mjs +126 -0
- package/esm2020/sandbox/proxy/proxies/window.mjs +158 -0
- package/esm2020/sandbox/proxy/proxy-sandbox.mjs +49 -0
- package/esm2020/sandbox/proxy/types.mjs +2 -0
- package/esm2020/sandbox/sandbox.mjs +7 -0
- package/esm2020/sandbox/snapshot/snapshot-sandbox.mjs +12 -0
- package/esm2020/sandbox/types.mjs +2 -0
- package/esm2020/worktile-planet.mjs +5 -0
- package/fesm2015/worktile-planet.mjs +2049 -0
- package/fesm2015/worktile-planet.mjs.map +1 -0
- package/fesm2020/worktile-planet.mjs +2046 -0
- package/fesm2020/worktile-planet.mjs.map +1 -0
- package/global-event-dispatcher.d.ts +23 -0
- package/global-event-dispatcher.d.ts.map +1 -0
- package/global-planet.d.ts +23 -0
- package/global-planet.d.ts.map +1 -0
- package/helpers.d.ts +39 -0
- package/helpers.d.ts.map +1 -0
- package/index.d.ts +6 -0
- package/module.d.ts +12 -0
- package/module.d.ts.map +1 -0
- package/package.json +27 -120
- package/{packages/planet/src/planet.class.ts → planet.class.d.ts} +5 -26
- package/planet.class.d.ts.map +1 -0
- package/planet.d.ts +28 -0
- package/planet.d.ts.map +1 -0
- package/{packages/planet/src/public-api.ts → public-api.d.ts} +1 -4
- package/public-api.d.ts.map +1 -0
- package/sandbox/constants.d.ts +7 -0
- package/sandbox/constants.d.ts.map +1 -0
- package/sandbox/exec.d.ts +3 -0
- package/sandbox/exec.d.ts.map +1 -0
- package/sandbox/index.d.ts +7 -0
- package/sandbox/index.d.ts.map +1 -0
- package/sandbox/proxy/patches/document.d.ts +3 -0
- package/sandbox/proxy/patches/document.d.ts.map +1 -0
- package/sandbox/proxy/patches/eventListener.d.ts +3 -0
- package/sandbox/proxy/patches/eventListener.d.ts.map +1 -0
- package/sandbox/proxy/patches/index.d.ts +3 -0
- package/sandbox/proxy/patches/index.d.ts.map +1 -0
- package/sandbox/proxy/patches/storage.d.ts +15 -0
- package/sandbox/proxy/patches/storage.d.ts.map +1 -0
- package/sandbox/proxy/patches/timer.d.ts +3 -0
- package/sandbox/proxy/patches/timer.d.ts.map +1 -0
- package/sandbox/proxy/proxies/common.d.ts +13 -0
- package/sandbox/proxy/proxies/common.d.ts.map +1 -0
- package/sandbox/proxy/proxies/document.d.ts +14 -0
- package/sandbox/proxy/proxies/document.d.ts.map +1 -0
- package/sandbox/proxy/proxies/window.d.ts +13 -0
- package/sandbox/proxy/proxies/window.d.ts.map +1 -0
- package/sandbox/proxy/proxy-sandbox.d.ts +16 -0
- package/sandbox/proxy/proxy-sandbox.d.ts.map +1 -0
- package/{packages/planet/src/sandbox/proxy/types.ts → sandbox/proxy/types.d.ts} +2 -8
- package/sandbox/proxy/types.d.ts.map +1 -0
- package/sandbox/sandbox.d.ts +12 -0
- package/sandbox/sandbox.d.ts.map +1 -0
- package/sandbox/snapshot/snapshot-sandbox.d.ts +9 -0
- package/sandbox/snapshot/snapshot-sandbox.d.ts.map +1 -0
- package/sandbox/types.d.ts +2 -0
- package/sandbox/types.d.ts.map +1 -0
- package/worktile-planet.d.ts.map +1 -0
- package/.all-contributorsrc +0 -84
- package/.circleci/config.yml +0 -17
- package/.coveralls.yml +0 -1
- package/.docgeni/public/assets/favicon.ico +0 -0
- package/.docgeni/public/index.html +0 -13
- package/.docgenirc.js +0 -35
- package/.dockerignore +0 -1
- package/.editorconfig +0 -22
- package/.github/FUNDING.yml +0 -12
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -38
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
- package/.prettierignore +0 -7
- package/.prettierrc +0 -28
- package/.travis.yml +0 -26
- package/.wpmrc.js +0 -11
- package/CODE_OF_CONDUCT.md +0 -76
- package/Dockerfile +0 -11
- package/README.zh-CN.md +0 -307
- package/SECURITY.md +0 -21
- package/angular.json +0 -373
- package/commitlint.config.js +0 -6
- package/docs/api/defineApplication.md +0 -46
- package/docs/api/globalEventDispatcher.md +0 -51
- package/docs/api/index.md +0 -5
- package/docs/api/planet.md +0 -117
- package/docs/guides/getting-started.md +0 -174
- package/docs/guides/index.md +0 -5
- package/docs/guides/intro.md +0 -216
- package/examples/app1/browserslist +0 -11
- package/examples/app1/extra-webpack.config.js +0 -33
- package/examples/app1/karma.conf.js +0 -31
- package/examples/app1/postcss.config.js +0 -1
- package/examples/app1/src/app/app.module.ts +0 -44
- package/examples/app1/src/app/app.routing.ts +0 -49
- package/examples/app1/src/app/counter.service.ts +0 -16
- package/examples/app1/src/app/dashboard/dashboard.component.html +0 -51
- package/examples/app1/src/app/dashboard/dashboard.component.ts +0 -70
- package/examples/app1/src/app/detail/detail.component.html +0 -8
- package/examples/app1/src/app/detail/detail.component.ts +0 -18
- package/examples/app1/src/app/overlay.ts +0 -26
- package/examples/app1/src/app/projects/dialog/projects-dialog.component.html +0 -10
- package/examples/app1/src/app/projects/dialog/projects-dialog.component.ts +0 -41
- package/examples/app1/src/app/projects/projects.component.ts +0 -33
- package/examples/app1/src/app/root/root.component.css +0 -3
- package/examples/app1/src/app/root/root.component.html +0 -16
- package/examples/app1/src/app/root/root.component.ts +0 -35
- package/examples/app1/src/app/services/initialized-data.resolver.ts +0 -15
- package/examples/app1/src/app/shared.module.ts +0 -57
- package/examples/app1/src/app/user/detail/user-detail.component.html +0 -5
- package/examples/app1/src/app/user/detail/user-detail.component.ts +0 -20
- package/examples/app1/src/app/user/user-list.component.html +0 -7
- package/examples/app1/src/app/user/user-list.component.ts +0 -20
- package/examples/app1/src/app/user/user.module.ts +0 -31
- package/examples/app1/src/assets/.gitkeep +0 -0
- package/examples/app1/src/assets/github.png +0 -0
- package/examples/app1/src/assets/main.css +0 -3
- package/examples/app1/src/environments/environment.prod.ts +0 -3
- package/examples/app1/src/environments/environment.ts +0 -16
- package/examples/app1/src/favicon.ico +0 -0
- package/examples/app1/src/index.html +0 -14
- package/examples/app1/src/main.ts +0 -35
- package/examples/app1/src/polyfills.ts +0 -84
- package/examples/app1/src/styles.scss +0 -35
- package/examples/app1/src/test.ts +0 -14
- package/examples/app1/temp.js +0 -221
- package/examples/app1/tsconfig.app.json +0 -10
- package/examples/app1/tsconfig.spec.json +0 -18
- package/examples/app1/tslint.json +0 -17
- package/examples/app1/webpack.config.js +0 -127
- package/examples/app2/browserslist +0 -11
- package/examples/app2/extra-webpack.config.js +0 -32
- package/examples/app2/karma.conf.js +0 -31
- package/examples/app2/src/app/app.module.ts +0 -90
- package/examples/app2/src/app/dashboard/dashboard.component.html +0 -21
- package/examples/app2/src/app/dashboard/dashboard.component.ts +0 -27
- package/examples/app2/src/app/overlay.ts +0 -26
- package/examples/app2/src/app/projects/detail/detail.component.html +0 -16
- package/examples/app2/src/app/projects/detail/detail.component.ts +0 -21
- package/examples/app2/src/app/projects/project-list.component.html +0 -29
- package/examples/app2/src/app/projects/project-list.component.ts +0 -58
- package/examples/app2/src/app/projects/project.resolver.ts +0 -15
- package/examples/app2/src/app/projects/projects.service.ts +0 -28
- package/examples/app2/src/app/projects/tasks/tasks.component.html +0 -10
- package/examples/app2/src/app/projects/tasks/tasks.component.ts +0 -16
- package/examples/app2/src/app/projects/view/view.component.html +0 -1
- package/examples/app2/src/app/projects/view/view.component.ts +0 -20
- package/examples/app2/src/app/root/root.component.html +0 -14
- package/examples/app2/src/app/root/root.component.scss +0 -12
- package/examples/app2/src/app/root/root.component.ts +0 -28
- package/examples/app2/src/app/shared.module.ts +0 -59
- package/examples/app2/src/assets/.gitkeep +0 -0
- package/examples/app2/src/environments/environment.prod.ts +0 -3
- package/examples/app2/src/environments/environment.ts +0 -16
- package/examples/app2/src/favicon.ico +0 -0
- package/examples/app2/src/index.html +0 -14
- package/examples/app2/src/main.ts +0 -36
- package/examples/app2/src/polyfills.ts +0 -84
- package/examples/app2/src/styles.scss +0 -28
- package/examples/app2/src/test.ts +0 -14
- package/examples/app2/tsconfig.app.json +0 -10
- package/examples/app2/tsconfig.spec.json +0 -18
- package/examples/app2/tslint.json +0 -7
- package/examples/app2/webpack.config.js +0 -92
- package/examples/common/app-root-context.ts +0 -10
- package/examples/common/cache.ts +0 -82
- package/examples/common/index.ts +0 -13
- package/examples/common/module.ts +0 -10
- package/examples/common/overlay-container.service.ts +0 -28
- package/examples/common/section-card/section-card.component.html +0 -5
- package/examples/common/section-card/section-card.component.scss +0 -15
- package/examples/common/section-card/section-card.component.ts +0 -11
- package/examples/common/utils.ts +0 -0
- package/examples/portal/src/app/a-detail/a-detail.component.html +0 -8
- package/examples/portal/src/app/a-detail/a-detail.component.ts +0 -18
- package/examples/portal/src/app/about/about.component.html +0 -27
- package/examples/portal/src/app/about/about.component.scss +0 -0
- package/examples/portal/src/app/about/about.component.spec.ts +0 -26
- package/examples/portal/src/app/about/about.component.ts +0 -26
- package/examples/portal/src/app/app-routing.module.ts +0 -57
- package/examples/portal/src/app/app.component.html +0 -73
- package/examples/portal/src/app/app.component.scss +0 -58
- package/examples/portal/src/app/app.component.spec.ts +0 -33
- package/examples/portal/src/app/app.component.ts +0 -111
- package/examples/portal/src/app/app.module.ts +0 -64
- package/examples/portal/src/app/custom-settings.service.ts +0 -44
- package/examples/portal/src/app/overlay.ts +0 -26
- package/examples/portal/src/app/settings/settings.component.html +0 -31
- package/examples/portal/src/app/settings/settings.component.scss +0 -3
- package/examples/portal/src/app/settings/settings.component.ts +0 -43
- package/examples/portal/src/assets/.gitkeep +0 -0
- package/examples/portal/src/assets/apps.json +0 -29
- package/examples/portal/src/assets/icons/sprite.defs.svg +0 -1
- package/examples/portal/src/assets/images/logo.svg +0 -16
- package/examples/portal/src/assets/ngx-planet-micro-front-end.gif +0 -0
- package/examples/portal/src/browserslist +0 -11
- package/examples/portal/src/environments/environment.prod.ts +0 -3
- package/examples/portal/src/environments/environment.ts +0 -16
- package/examples/portal/src/extra-webpack.config.js +0 -32
- package/examples/portal/src/favicon.ico +0 -0
- package/examples/portal/src/index.html +0 -14
- package/examples/portal/src/karma.conf.js +0 -31
- package/examples/portal/src/main.ts +0 -18
- package/examples/portal/src/polyfills.ts +0 -84
- package/examples/portal/src/reboot.scss +0 -14
- package/examples/portal/src/styles.scss +0 -14
- package/examples/portal/src/test.ts +0 -14
- package/examples/portal/src/tsconfig.app.json +0 -10
- package/examples/portal/src/tsconfig.spec.json +0 -9
- package/examples/portal/src/tslint.json +0 -7
- package/extra-webpack.config.js +0 -5
- package/nginx.conf +0 -17
- package/packages/planet/karma.conf.js +0 -37
- package/packages/planet/ng-package.json +0 -7
- package/packages/planet/package.json +0 -10
- package/packages/planet/src/application/planet-application-loader.spec.ts +0 -1102
- package/packages/planet/src/application/planet-application-loader.ts +0 -549
- package/packages/planet/src/application/planet-application-ref.spec.ts +0 -233
- package/packages/planet/src/application/planet-application-ref.ts +0 -131
- package/packages/planet/src/application/planet-application.service.spec.ts +0 -145
- package/packages/planet/src/application/planet-application.service.ts +0 -88
- package/packages/planet/src/application/portal-application.spec.ts +0 -53
- package/packages/planet/src/assets-loader.spec.ts +0 -689
- package/packages/planet/src/assets-loader.ts +0 -247
- package/packages/planet/src/component/planet-component-loader.spec.ts +0 -187
- package/packages/planet/src/component/planet-component-loader.ts +0 -173
- package/packages/planet/src/component/planet-component-ref.ts +0 -8
- package/packages/planet/src/debug.spec.ts +0 -58
- package/packages/planet/src/debug.ts +0 -66
- package/packages/planet/src/empty/empty.component.spec.ts +0 -34
- package/packages/planet/src/empty/empty.component.ts +0 -7
- package/packages/planet/src/global-event-dispatcher.spec.ts +0 -81
- package/packages/planet/src/global-event-dispatcher.ts +0 -82
- package/packages/planet/src/global-planet.spec.ts +0 -39
- package/packages/planet/src/global-planet.ts +0 -73
- package/packages/planet/src/helpers.spec.ts +0 -242
- package/packages/planet/src/helpers.ts +0 -125
- package/packages/planet/src/module.spec.ts +0 -79
- package/packages/planet/src/module.ts +0 -25
- package/packages/planet/src/planet.spec.ts +0 -226
- package/packages/planet/src/planet.ts +0 -113
- package/packages/planet/src/sandbox/constants.ts +0 -6
- package/packages/planet/src/sandbox/exec.ts +0 -22
- package/packages/planet/src/sandbox/index.ts +0 -24
- package/packages/planet/src/sandbox/proxy/patches/document.ts +0 -13
- package/packages/planet/src/sandbox/proxy/patches/eventListener.ts +0 -49
- package/packages/planet/src/sandbox/proxy/patches/index.ts +0 -13
- package/packages/planet/src/sandbox/proxy/patches/storage.ts +0 -53
- package/packages/planet/src/sandbox/proxy/patches/timer.ts +0 -50
- package/packages/planet/src/sandbox/proxy/proxies/common.ts +0 -137
- package/packages/planet/src/sandbox/proxy/proxies/document.ts +0 -140
- package/packages/planet/src/sandbox/proxy/proxies/window.ts +0 -176
- package/packages/planet/src/sandbox/proxy/proxy-sandbox.ts +0 -59
- package/packages/planet/src/sandbox/sandbox.ts +0 -20
- package/packages/planet/src/sandbox/snapshot/snapshot-sandbox.ts +0 -12
- package/packages/planet/src/sandbox/types.ts +0 -1
- package/packages/planet/src/test.ts +0 -16
- package/packages/planet/src/testing/app1.module.ts +0 -34
- package/packages/planet/src/testing/app2.module.ts +0 -24
- package/packages/planet/src/testing/applications.ts +0 -58
- package/packages/planet/src/testing/index.ts +0 -2
- package/packages/planet/src/testing/utils.ts +0 -31
- package/packages/planet/tsconfig.lib.json +0 -27
- package/packages/planet/tsconfig.lib.prod.json +0 -9
- package/packages/planet/tsconfig.spec.json +0 -17
- package/packages/planet/tslint.json +0 -7
- package/postcss.config.js +0 -3
- package/proxy.conf.js +0 -15
- package/tsconfig.json +0 -23
- package/tslint.json +0 -80
package/package.json
CHANGED
|
@@ -1,126 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@worktile/planet",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"micro frontends",
|
|
10
|
-
"angular micro front-end",
|
|
11
|
-
"ngx micro front-end",
|
|
12
|
-
"ngx planet"
|
|
13
|
-
],
|
|
14
|
-
"scripts": {
|
|
15
|
-
"ng": "ng",
|
|
16
|
-
"// start": "run app1 and app2 use webpack dev-server",
|
|
17
|
-
"start": "npm-run-all --parallel serve:portal serve:app1 serve:app2",
|
|
18
|
-
"serve:portal": "ng run portal:serve",
|
|
19
|
-
"serve:app1": "ng serve app1 --deploy-url=/static/app1/",
|
|
20
|
-
"serve:app2": "ng serve app2 --deploy-url=/static/app2/",
|
|
21
|
-
"dev:app1": "ng serve app1",
|
|
22
|
-
"build:portal": "ng build",
|
|
23
|
-
"build:app1": "ng build app1",
|
|
24
|
-
"build:app2": "ng build app2",
|
|
25
|
-
"// build:app1:dev": "ng build app1 --watch true --deploy-url=/static/app1/",
|
|
26
|
-
"// build:app2:dev": "ng build app2 --watch true --deploy-url=/static/app2/",
|
|
27
|
-
"build:portal:prod": "ng build --prod",
|
|
28
|
-
"build:app1:prod": "ng build app1 --prod --deploy-url=/static/app1/",
|
|
29
|
-
"build:app2:prod": "ng build app2 --prod --deploy-url=/static/app2/",
|
|
30
|
-
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s --pkg ./packages/planet/package.json",
|
|
31
|
-
"build": "ng build planet",
|
|
32
|
-
"build:demo": "npm run build:app1 && npm run build:app2 && npm run build:portal",
|
|
33
|
-
"build:demo:prod": "npm run build:app1:prod && npm run build:app2:prod && npm run build:portal:prod",
|
|
34
|
-
"test": "ng test planet",
|
|
35
|
-
"lint": "ng lint planet",
|
|
36
|
-
"report-coverage": "cat ./coverage/lcov.info | coveralls",
|
|
37
|
-
"e2e": "ng e2e",
|
|
38
|
-
"release": "wpm release",
|
|
39
|
-
"// release": "standard-version",
|
|
40
|
-
"pub-only": "cd dist/planet && npm publish --access=public",
|
|
41
|
-
"pub": "wpm publish && npm run pub-only",
|
|
42
|
-
"contributors:init": "all-contributors init",
|
|
43
|
-
"contributors:add": "all-contributors add",
|
|
44
|
-
"contributors:generate": "all-contributors generate",
|
|
45
|
-
"ngcc": "ngcc",
|
|
46
|
-
"start:docs": "docgeni serve --port 4900",
|
|
47
|
-
"build:docs": "docgeni build --prod"
|
|
3
|
+
"version": "14.0.0-next.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"peerDependencies": {
|
|
6
|
+
"@angular/common": "^13.0.0",
|
|
7
|
+
"@angular/core": "^13.0.0",
|
|
8
|
+
"@angular/cdk": "^13.0.0"
|
|
48
9
|
},
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"devDependencies": {
|
|
67
|
-
"@angular-builders/custom-webpack": "^12.1.0",
|
|
68
|
-
"@angular-devkit/build-angular": "~12.0.5",
|
|
69
|
-
"@angular/cli": "^12.0.5",
|
|
70
|
-
"@angular/compiler-cli": "~12.0.5",
|
|
71
|
-
"@angular/language-service": "~12.0.5",
|
|
72
|
-
"@commitlint/cli": "^7.5.2",
|
|
73
|
-
"@commitlint/config-conventional": "^7.5.0",
|
|
74
|
-
"@types/debug": "^4.1.5",
|
|
75
|
-
"@types/jasmine": "~3.6.0",
|
|
76
|
-
"@types/jasminewd2": "~2.0.3",
|
|
77
|
-
"@docgeni/cli": "1.0.0-beta.7",
|
|
78
|
-
"@docgeni/template": "1.0.0-beta.7",
|
|
79
|
-
"@types/node": "^12.11.1",
|
|
80
|
-
"@worktile/planet-postcss-prefixwrap": "1.19.10",
|
|
81
|
-
"@worktile/pkg-manager": "0.0.1-beta.1",
|
|
82
|
-
"postcss-prefixwrap": "1.22.2",
|
|
83
|
-
"all-contributors-cli": "^6.6.0",
|
|
84
|
-
"autoprefixer": "^10.2.5",
|
|
85
|
-
"codelyzer": "^6.0.0",
|
|
86
|
-
"conventional-changelog-cli": "^2.0.12",
|
|
87
|
-
"coveralls": "^3.0.6",
|
|
88
|
-
"husky": "^2.4.1",
|
|
89
|
-
"jasmine-core": "~3.6.0",
|
|
90
|
-
"jasmine-spec-reporter": "~5.0.0",
|
|
91
|
-
"karma": "~6.3.2",
|
|
92
|
-
"karma-chrome-launcher": "~3.1.0",
|
|
93
|
-
"karma-coverage": "~2.0.3",
|
|
94
|
-
"karma-jasmine": "~4.0.0",
|
|
95
|
-
"karma-jasmine-html-reporter": "^1.5.0",
|
|
96
|
-
"ng-packagr": "^12.0.6",
|
|
97
|
-
"npm-run-all": "^4.1.5",
|
|
98
|
-
"prettier": "^1.16.4",
|
|
99
|
-
"pretty-quick": "^1.10.0",
|
|
100
|
-
"protractor": "~7.0.0",
|
|
101
|
-
"standard-version": "^8.0.1",
|
|
102
|
-
"ts-node": "~7.0.0",
|
|
103
|
-
"tslint": "~6.1.3",
|
|
104
|
-
"typescript": "~4.2.4",
|
|
105
|
-
"webpack-assets-manifest": "^5.0.6"
|
|
106
|
-
},
|
|
107
|
-
"husky": {
|
|
108
|
-
"hooks": {
|
|
109
|
-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
|
|
110
|
-
"pre-commit": "pretty-quick --staged"
|
|
10
|
+
"module": "fesm2015/worktile-planet.mjs",
|
|
11
|
+
"es2020": "fesm2020/worktile-planet.mjs",
|
|
12
|
+
"esm2020": "esm2020/worktile-planet.mjs",
|
|
13
|
+
"fesm2020": "fesm2020/worktile-planet.mjs",
|
|
14
|
+
"fesm2015": "fesm2015/worktile-planet.mjs",
|
|
15
|
+
"typings": "index.d.ts",
|
|
16
|
+
"exports": {
|
|
17
|
+
"./package.json": {
|
|
18
|
+
"default": "./package.json"
|
|
19
|
+
},
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./index.d.ts",
|
|
22
|
+
"esm2020": "./esm2020/worktile-planet.mjs",
|
|
23
|
+
"es2020": "./fesm2020/worktile-planet.mjs",
|
|
24
|
+
"es2015": "./fesm2015/worktile-planet.mjs",
|
|
25
|
+
"node": "./fesm2015/worktile-planet.mjs",
|
|
26
|
+
"default": "./fesm2020/worktile-planet.mjs"
|
|
111
27
|
}
|
|
112
28
|
},
|
|
113
|
-
"
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
"package-lock.json",
|
|
117
|
-
"packages/planet/package.json"
|
|
118
|
-
],
|
|
119
|
-
"header": "Changelog\nAll notable changes to ngx-planet will be documented in this file.\n",
|
|
120
|
-
"tagPrefix": "",
|
|
121
|
-
"skip": {
|
|
122
|
-
"tag": true,
|
|
123
|
-
"commit": true
|
|
124
|
-
}
|
|
29
|
+
"sideEffects": false,
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"tslib": "^2.3.0"
|
|
125
32
|
}
|
|
126
|
-
}
|
|
33
|
+
}
|
|
@@ -1,59 +1,38 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
2
|
import { Debug } from './debug';
|
|
3
|
-
|
|
4
3
|
export interface PlanetOptions {
|
|
5
4
|
switchMode?: SwitchModes;
|
|
6
5
|
errorHandler: (error: Error) => void;
|
|
7
6
|
debugFactory?: Debug;
|
|
8
7
|
}
|
|
9
|
-
|
|
10
8
|
export interface PlanetApplication<TExtra = any> {
|
|
11
9
|
name: string;
|
|
12
|
-
// 应用加载的宿主元素或者选择器
|
|
13
10
|
hostParent: string | HTMLElement;
|
|
14
|
-
|
|
15
|
-
// 子应用的选择器
|
|
16
11
|
/**
|
|
17
12
|
* @deprecated please use new defineApplication to set selector
|
|
18
13
|
*/
|
|
19
14
|
selector?: string;
|
|
20
|
-
// 子应用路由前缀路径
|
|
21
15
|
routerPathPrefix: string | RegExp;
|
|
22
|
-
// 宿主元素附加样式
|
|
23
16
|
hostClass?: string | string[];
|
|
24
|
-
// 是否需要预加载
|
|
25
17
|
preload?: boolean;
|
|
26
|
-
// 是否开启沙箱
|
|
27
18
|
sandbox?: boolean;
|
|
28
|
-
// 切换应用的模式
|
|
29
19
|
switchMode?: SwitchModes;
|
|
30
|
-
// 资源文件路径的前缀
|
|
31
20
|
resourcePathPrefix?: string;
|
|
32
|
-
// 样式前缀
|
|
33
21
|
stylePrefix?: string;
|
|
34
|
-
// 样式资源文件
|
|
35
22
|
styles?: string[];
|
|
36
|
-
// 脚本资源文件
|
|
37
23
|
scripts?: string[];
|
|
38
|
-
// 串行加载,默认并行加载脚本资源
|
|
39
24
|
loadSerial?: boolean;
|
|
40
|
-
// 皮肤样式的路径
|
|
41
25
|
themeStylesPath?: string;
|
|
42
|
-
// 应用程序打包后的脚本和样式文件替换
|
|
43
26
|
manifest?: string;
|
|
44
|
-
// 附加数据,主要应用于业务,比如图标,子应用的颜色,显示名等个性化配置
|
|
45
27
|
extra?: TExtra;
|
|
46
28
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
coexist = 'coexist'
|
|
29
|
+
export declare enum SwitchModes {
|
|
30
|
+
default = "default",
|
|
31
|
+
coexist = "coexist"
|
|
51
32
|
}
|
|
52
|
-
|
|
53
33
|
export interface PlanetRouterEvent {
|
|
54
34
|
url: string;
|
|
55
35
|
}
|
|
56
|
-
|
|
57
|
-
const PLANET_APPLICATIONS = new InjectionToken<PlanetApplication>('PLANET_APPLICATIONS');
|
|
58
|
-
|
|
36
|
+
declare const PLANET_APPLICATIONS: InjectionToken<PlanetApplication<any>>;
|
|
59
37
|
export { PLANET_APPLICATIONS };
|
|
38
|
+
//# sourceMappingURL=planet.class.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,iBAAiB,CAAC,MAAM,GAAG,GAAG;IAC3C,IAAI,EAAE,MAAM,CAAC;IAEb,UAAU,EAAE,MAAM,GAAG,WAAW,CAAC;IAGjC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,gBAAgB,EAAE,MAAM,GAAG,MAAM,CAAC;IAElC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAE9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,UAAU,CAAC,EAAE,WAAW,CAAC;IAEzB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAElB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAEnB,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,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
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
get loadingDone(): boolean;
|
|
13
|
+
get appStatusChange(): Observable<AppStatusChangeEvent>;
|
|
14
|
+
get appsLoadingStart(): Observable<AppsLoadingStartEvent>;
|
|
15
|
+
private subscription?;
|
|
16
|
+
constructor(injector: Injector, router: Router, planetApplications: PlanetApplication[]);
|
|
17
|
+
setOptions(options: Partial<PlanetOptions>): void;
|
|
18
|
+
setPortalAppData<T>(data: T): void;
|
|
19
|
+
registerApp<TExtra>(app: PlanetApplication<TExtra>): void;
|
|
20
|
+
registerApps<TExtra>(apps: PlanetApplication<TExtra>[]): void;
|
|
21
|
+
unregisterApp(name: string): void;
|
|
22
|
+
getApps(): PlanetApplication<any>[];
|
|
23
|
+
start(): void;
|
|
24
|
+
stop(): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Planet, [null, null, { optional: true; }]>;
|
|
26
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<Planet>;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=planet.d.ts.map
|
package/planet.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
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,EAEH,qBAAqB,EACrB,oBAAoB,EACvB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,UAAU,EAAgB,MAAM,MAAM,CAAC;;AAWhD,qBAGa,MAAM;IAwBX,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,MAAM;IAxBlB,OAAO,KAAK,uBAAuB,GAElC;IAED,OAAO,KAAK,wBAAwB,GAEnC;IAED,IAAW,WAAW,YAErB;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;yCAtFK,MAAM;6CAAN,MAAM;CAyFlB"}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Public API Surface of core
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
1
|
export * from './planet';
|
|
6
2
|
export * from './global-event-dispatcher';
|
|
7
3
|
export * from './application/portal-application';
|
|
@@ -16,3 +12,4 @@ export { PlanetComponent, PlanetComponentLoader } from './component/planet-compo
|
|
|
16
12
|
export { PlanetComponentRef } from './component/planet-component-ref';
|
|
17
13
|
export { PlantComponentConfig } from './component/plant-component.config';
|
|
18
14
|
export * from './empty/empty.component';
|
|
15
|
+
//# sourceMappingURL=public-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,kCAAkC,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,cAAc,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
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,CA6CrF"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,OA4C9F"}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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;IASlB,GAAG,EAAE,MAAM;IAAS,OAAO,EAAE,cAAc;IARvD,OAAO,UAAS;IAEhB,MAAM,EAAG,MAAM,CAAC;IAEhB,gBAAgB,EAAG,WAAW,EAAE,CAAC;IAExC,OAAO,CAAC,aAAa,CAA6B;gBAE/B,GAAG,EAAE,MAAM,EAAS,OAAO,EAAE,cAAc;IAM9D,KAAK;IAQL,OAAO;IASP,OAAO,CAAC,wBAAwB;IAMhC,OAAO,CAAC,iBAAiB;CAc5B"}
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
import { Global } from '../types';
|
|
2
|
-
|
|
3
|
-
// SandboxInstance 主要是为了解决循环依赖
|
|
4
2
|
export interface ProxySandboxInstance {
|
|
5
3
|
app: string;
|
|
6
|
-
|
|
7
4
|
running: boolean;
|
|
8
|
-
|
|
9
5
|
global: Global;
|
|
10
|
-
|
|
11
6
|
rewriteVariables: PropertyKey[];
|
|
12
7
|
}
|
|
13
|
-
|
|
14
8
|
export interface SandboxPatchHandler {
|
|
15
9
|
rewrite?: Record<PropertyKey, any>;
|
|
16
10
|
init?: () => void;
|
|
17
11
|
destroy?: () => void;
|
|
18
12
|
}
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
export declare type SandboxPatch = (sandbox?: ProxySandboxInstance) => SandboxPatchHandler;
|
|
14
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,oBAAY,YAAY,GAAG,CAAC,OAAO,CAAC,EAAE,oBAAoB,KAAK,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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;IACrB,GAAG,EAAE,MAAM;IAAS,OAAO,EAAE,cAAc;gBAA3C,GAAG,EAAE,MAAM,EAAS,OAAO,EAAE,cAAc;IAK9D,KAAK;IAEL,OAAO;CACV"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../packages/planet/src/sandbox/types.ts"],"names":[],"mappings":"AAAA,oBAAY,MAAM,GAAG,MAAM,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worktile-planet.d.ts","sourceRoot":"","sources":["../../packages/planet/src/worktile-planet.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,cAAc,CAAC"}
|
package/.all-contributorsrc
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"projectName": "ngx-planet",
|
|
3
|
-
"projectOwner": "worktile",
|
|
4
|
-
"repoType": "github",
|
|
5
|
-
"repoHost": "https://github.com",
|
|
6
|
-
"files": [
|
|
7
|
-
"README.md"
|
|
8
|
-
],
|
|
9
|
-
"imageSize": 100,
|
|
10
|
-
"commit": true,
|
|
11
|
-
"commitConvention": "angular",
|
|
12
|
-
"contributors": [
|
|
13
|
-
{
|
|
14
|
-
"login": "why520crazy",
|
|
15
|
-
"name": "why520crazy",
|
|
16
|
-
"avatar_url": "https://avatars2.githubusercontent.com/u/3959960?v=4",
|
|
17
|
-
"profile": "https://www.zhihu.com/people/why520crazy/activities",
|
|
18
|
-
"contributions": [
|
|
19
|
-
"question",
|
|
20
|
-
"business",
|
|
21
|
-
"code",
|
|
22
|
-
"design",
|
|
23
|
-
"doc",
|
|
24
|
-
"eventOrganizing",
|
|
25
|
-
"infra",
|
|
26
|
-
"maintenance",
|
|
27
|
-
"projectManagement",
|
|
28
|
-
"review"
|
|
29
|
-
]
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"login": "walkerkay",
|
|
33
|
-
"name": "Walker",
|
|
34
|
-
"avatar_url": "https://avatars1.githubusercontent.com/u/15701592?v=4",
|
|
35
|
-
"profile": "https://github.com/walkerkay",
|
|
36
|
-
"contributions": [
|
|
37
|
-
"code",
|
|
38
|
-
"example",
|
|
39
|
-
"maintenance",
|
|
40
|
-
"review"
|
|
41
|
-
]
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"login": "whyour",
|
|
45
|
-
"name": "whyour",
|
|
46
|
-
"avatar_url": "https://avatars3.githubusercontent.com/u/22700758?v=4",
|
|
47
|
-
"profile": "https://whyour.cn",
|
|
48
|
-
"contributions": [
|
|
49
|
-
"code"
|
|
50
|
-
]
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"login": "aoilti",
|
|
54
|
-
"name": "张威",
|
|
55
|
-
"avatar_url": "https://avatars0.githubusercontent.com/u/19969080?v=4",
|
|
56
|
-
"profile": "http://www.231jx.cn",
|
|
57
|
-
"contributions": [
|
|
58
|
-
"code"
|
|
59
|
-
]
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"login": "luxiaobei",
|
|
63
|
-
"name": "luxiaobei",
|
|
64
|
-
"avatar_url": "https://avatars1.githubusercontent.com/u/13583957?v=4",
|
|
65
|
-
"profile": "https://github.com/luxiaobei",
|
|
66
|
-
"contributions": [
|
|
67
|
-
"infra",
|
|
68
|
-
"test",
|
|
69
|
-
"code"
|
|
70
|
-
]
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"login": "mario56",
|
|
74
|
-
"name": "mario_ma",
|
|
75
|
-
"avatar_url": "https://avatars2.githubusercontent.com/u/7720722?v=4",
|
|
76
|
-
"profile": "https://github.com/mario56",
|
|
77
|
-
"contributions": [
|
|
78
|
-
"code"
|
|
79
|
-
]
|
|
80
|
-
}
|
|
81
|
-
],
|
|
82
|
-
"contributorsPerLine": 7,
|
|
83
|
-
"skipCi": true
|
|
84
|
-
}
|
package/.circleci/config.yml
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
version: 2
|
|
2
|
-
jobs:
|
|
3
|
-
build:
|
|
4
|
-
working_directory: ~/ngx-planet
|
|
5
|
-
docker:
|
|
6
|
-
- image: circleci/node:14-browsers
|
|
7
|
-
steps:
|
|
8
|
-
- checkout
|
|
9
|
-
- restore_cache:
|
|
10
|
-
key: ngx-planet-{{ .Branch }}-{{ checksum "package-lock.json" }}
|
|
11
|
-
- run: npm install
|
|
12
|
-
- save_cache:
|
|
13
|
-
key: ngx-planet-{{ .Branch }}-{{ checksum "package-lock.json" }}
|
|
14
|
-
paths:
|
|
15
|
-
- 'node_modules'
|
|
16
|
-
- run: npm run test -- --no-watch --no-progress --browsers=ChromeHeadlessCI
|
|
17
|
-
- run: npm run report-coverage
|
package/.coveralls.yml
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
repo_token: UF5coppIPMTIQIOxZTxzP1o18O9Z9QWD0
|
|
Binary file
|