@appshell/loader 1.0.0-alpha.10 → 1.0.0-alpha.101

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 (97) hide show
  1. package/README.md +19 -21
  2. package/dist/main.js +1 -1
  3. package/dist/types/config/src/axios.d.ts +0 -1
  4. package/dist/types/config/src/configmap.d.ts +0 -1
  5. package/dist/types/config/src/context.d.ts +8 -5
  6. package/dist/types/config/src/credentials.d.ts +35 -3
  7. package/dist/types/config/src/generate.manifest.d.ts +30 -2
  8. package/dist/types/config/src/index.d.ts +9 -10
  9. package/dist/types/config/src/loader.d.ts +18 -0
  10. package/dist/types/config/src/mappers/appshell.config.d.ts +9 -3
  11. package/dist/types/config/src/outdated.d.ts +0 -1
  12. package/dist/types/config/src/package-name.d.ts +20 -0
  13. package/dist/types/config/src/publish.d.ts +109 -7
  14. package/dist/types/config/src/sync.d.ts +0 -1
  15. package/dist/types/config/src/tls.d.ts +11 -0
  16. package/dist/types/config/src/types.d.ts +184 -31
  17. package/dist/types/config/src/utils/blur.d.ts +0 -1
  18. package/dist/types/config/src/utils/compare.d.ts +0 -1
  19. package/dist/types/config/src/utils/config.d.ts +15 -1
  20. package/dist/types/config/src/utils/copy.d.ts +0 -1
  21. package/dist/types/config/src/utils/dump.d.ts +10 -0
  22. package/dist/types/config/src/utils/index.d.ts +2 -5
  23. package/dist/types/config/src/utils/list.d.ts +0 -1
  24. package/dist/types/config/src/utils/load.d.ts +0 -1
  25. package/dist/types/config/src/validators/AppshellTemplateValidator.d.ts +0 -1
  26. package/dist/types/config/src/validators/index.d.ts +0 -3
  27. package/dist/types/loader/src/index.d.ts +0 -1
  28. package/dist/types/loader/src/loadAppshellComponent.d.ts +13 -14
  29. package/dist/types/loader/src/remoteLoader.d.ts +2 -3
  30. package/dist/types/loader/src/resolvers.d.ts +4 -12
  31. package/dist/types/loader/src/types.d.ts +0 -1
  32. package/dist/types/runtime/src/errors.d.ts +32 -0
  33. package/dist/types/runtime/src/identity.d.ts +47 -0
  34. package/dist/types/runtime/src/index.d.ts +6 -0
  35. package/dist/types/runtime/src/store.d.ts +25 -0
  36. package/dist/types/runtime/src/types.d.ts +9 -0
  37. package/dist/types/runtime/src/wire.d.ts +58 -0
  38. package/package.json +15 -4
  39. package/CHANGELOG.md +0 -201
  40. package/__tests__/fetchDynamicScript.spec.ts +0 -44
  41. package/__tests__/fixtures/TestComponent.ts +0 -3
  42. package/__tests__/loadAppshellComponent.spec.ts +0 -102
  43. package/__tests__/remoteLoader.spec.ts +0 -144
  44. package/__tests__/resolvers.spec.ts +0 -128
  45. package/dist/types/config/src/axios.d.ts.map +0 -1
  46. package/dist/types/config/src/configmap.d.ts.map +0 -1
  47. package/dist/types/config/src/context.d.ts.map +0 -1
  48. package/dist/types/config/src/credentials.d.ts.map +0 -1
  49. package/dist/types/config/src/deregister.d.ts +0 -3
  50. package/dist/types/config/src/deregister.d.ts.map +0 -1
  51. package/dist/types/config/src/generate.env.d.ts +0 -3
  52. package/dist/types/config/src/generate.env.d.ts.map +0 -1
  53. package/dist/types/config/src/generate.global-config.d.ts +0 -10
  54. package/dist/types/config/src/generate.global-config.d.ts.map +0 -1
  55. package/dist/types/config/src/generate.manifest.d.ts.map +0 -1
  56. package/dist/types/config/src/index.d.ts.map +0 -1
  57. package/dist/types/config/src/mappers/appshell.config.d.ts.map +0 -1
  58. package/dist/types/config/src/outdated.d.ts.map +0 -1
  59. package/dist/types/config/src/publish.d.ts.map +0 -1
  60. package/dist/types/config/src/register.d.ts +0 -4
  61. package/dist/types/config/src/register.d.ts.map +0 -1
  62. package/dist/types/config/src/sync.d.ts.map +0 -1
  63. package/dist/types/config/src/types.d.ts.map +0 -1
  64. package/dist/types/config/src/utils/blur.d.ts.map +0 -1
  65. package/dist/types/config/src/utils/compare.d.ts.map +0 -1
  66. package/dist/types/config/src/utils/config.d.ts.map +0 -1
  67. package/dist/types/config/src/utils/copy.d.ts.map +0 -1
  68. package/dist/types/config/src/utils/index.d.ts.map +0 -1
  69. package/dist/types/config/src/utils/isValidUrl.d.ts +0 -3
  70. package/dist/types/config/src/utils/isValidUrl.d.ts.map +0 -1
  71. package/dist/types/config/src/utils/list.d.ts.map +0 -1
  72. package/dist/types/config/src/utils/load.d.ts.map +0 -1
  73. package/dist/types/config/src/utils/loadJson.d.ts +0 -10
  74. package/dist/types/config/src/utils/loadJson.d.ts.map +0 -1
  75. package/dist/types/config/src/utils/merge.d.ts +0 -4
  76. package/dist/types/config/src/utils/merge.d.ts.map +0 -1
  77. package/dist/types/config/src/validators/AppshellGlobalConfigValidator.d.ts +0 -4
  78. package/dist/types/config/src/validators/AppshellGlobalConfigValidator.d.ts.map +0 -1
  79. package/dist/types/config/src/validators/AppshellManifestValidator.d.ts +0 -4
  80. package/dist/types/config/src/validators/AppshellManifestValidator.d.ts.map +0 -1
  81. package/dist/types/config/src/validators/AppshellTemplateValidator.d.ts.map +0 -1
  82. package/dist/types/config/src/validators/index.d.ts.map +0 -1
  83. package/dist/types/loader/src/fetchDynamicScript.d.ts +0 -3
  84. package/dist/types/loader/src/fetchDynamicScript.d.ts.map +0 -1
  85. package/dist/types/loader/src/index.d.ts.map +0 -1
  86. package/dist/types/loader/src/loadAppshellComponent.d.ts.map +0 -1
  87. package/dist/types/loader/src/remoteLoader.d.ts.map +0 -1
  88. package/dist/types/loader/src/resolvers.d.ts.map +0 -1
  89. package/dist/types/loader/src/types.d.ts.map +0 -1
  90. package/src/fetchDynamicScript.ts +0 -49
  91. package/src/index.ts +0 -7
  92. package/src/loadAppshellComponent.ts +0 -48
  93. package/src/remoteLoader.ts +0 -80
  94. package/src/resolvers.ts +0 -110
  95. package/src/types.ts +0 -10
  96. package/tsconfig.json +0 -7
  97. package/webpack.config.js +0 -37
@@ -1,144 +0,0 @@
1
- /** @jest-environment jsdom */
2
- import { AppshellGlobalConfig, AppshellManifest } from '@appshell/config';
3
- import fetch, { enableFetchMocks } from 'jest-fetch-mock';
4
- import * as fetchDynamicScript from '../src/fetchDynamicScript';
5
- import * as loadAppshellComponent from '../src/loadAppshellComponent';
6
- import remoteLoader from '../src/remoteLoader';
7
-
8
- enableFetchMocks();
9
-
10
- jest.mock('../src/fetchDynamicScript');
11
- jest.mock('../src/loadAppshellComponent');
12
-
13
- describe('remoteLoader', () => {
14
- const manifest: AppshellManifest = {
15
- remotes: {
16
- 'TestModule/TestComponent': {
17
- id: 'test-component',
18
- scope: 'TestModule',
19
- module: './TestComponent',
20
- manifestUrl: 'http://test.com/appshell.manifest.json',
21
- remoteEntryUrl: 'http://test.com/remoteEntry.js',
22
- metadata: {},
23
- },
24
- },
25
- modules: {},
26
- environment: {
27
- TestModule: {
28
- ENV_VAR_A: 'Original value for A',
29
- },
30
- },
31
- };
32
- const config: AppshellGlobalConfig = {
33
- index: {
34
- 'TestModule/TestComponent': 'http://test.com/appshell.manifest.json',
35
- },
36
- metadata: {},
37
- overrides: {
38
- environment: {
39
- TestModule: {
40
- ENV_VAR_A: 'New value for A',
41
- },
42
- },
43
- },
44
- };
45
-
46
- beforeEach(() => {
47
- fetch.mockIf('http://test.com/appshell.manifest.json', () =>
48
- Promise.resolve({ ok: true, body: JSON.stringify(manifest) }),
49
- );
50
- });
51
-
52
- it('should return the Appshell component if it is found in the registry', async () => {
53
- const ExpectedComponent = () => 'test component';
54
- jest.spyOn(fetchDynamicScript, 'default').mockReturnValueOnce(Promise.resolve(true));
55
- jest
56
- .spyOn(loadAppshellComponent, 'default')
57
- .mockResolvedValue(Promise.resolve(ExpectedComponent));
58
-
59
- const loadRemote = remoteLoader(config);
60
- const [ActualComponent, actualManifest] = await loadRemote('TestModule/TestComponent');
61
-
62
- expect(ActualComponent).toEqual(ExpectedComponent);
63
- expect(actualManifest).toEqual(manifest);
64
- });
65
-
66
- it('should not fetch remote entry more than once', async () => {
67
- const ExpectedComponent = () => 'test component';
68
- const fetchDynamicScriptSpy = jest
69
- .spyOn(fetchDynamicScript, 'default')
70
- .mockReturnValueOnce(Promise.resolve(true));
71
- jest
72
- .spyOn(loadAppshellComponent, 'default')
73
- .mockResolvedValue(Promise.resolve(ExpectedComponent));
74
-
75
- const loadRemote = remoteLoader(config);
76
-
77
- await loadRemote('TestModule/TestComponent');
78
- await loadRemote('TestModule/TestComponent');
79
- await loadRemote('TestModule/TestComponent');
80
-
81
- expect(fetchDynamicScriptSpy).toHaveBeenCalledTimes(1);
82
- });
83
-
84
- it('should apply overridden environment values', async () => {
85
- const ExpectedComponent = () => 'test component';
86
- jest.spyOn(fetchDynamicScript, 'default').mockReturnValueOnce(Promise.resolve(true));
87
- jest
88
- .spyOn(loadAppshellComponent, 'default')
89
- .mockResolvedValue(Promise.resolve(ExpectedComponent));
90
-
91
- const loadRemote = remoteLoader(config);
92
-
93
- await loadRemote('TestModule/TestComponent');
94
-
95
- // eslint-disable-next-line no-underscore-dangle
96
- expect(window.__appshell_env__TestModule).toMatchObject({ ENV_VAR_A: 'New value for A' });
97
- });
98
-
99
- it('should throw if remote key is not found in the registry', async () => {
100
- const ExpectedComponent = () => 'test component';
101
- jest.spyOn(loadAppshellComponent, 'default').mockResolvedValue(ExpectedComponent);
102
-
103
- const loadRemote = remoteLoader(config);
104
-
105
- await expect(loadRemote('TestModule/DoesNotExist')).rejects.toThrow(
106
- /Remote resource not found in registry/i,
107
- );
108
- });
109
-
110
- it('should throw if load Appshell component fails', async () => {
111
- jest.spyOn(fetchDynamicScript, 'default').mockReturnValueOnce(Promise.resolve(true));
112
- jest.spyOn(loadAppshellComponent, 'default').mockRejectedValue(new Error('failed'));
113
-
114
- const loadRemote = remoteLoader(config);
115
-
116
- await expect(loadRemote('TestModule/TestComponent')).rejects.toThrow(
117
- /Failed to load component/i,
118
- );
119
- });
120
-
121
- it('should load from an inlined composition without fetching a manifest', async () => {
122
- const ExpectedComponent = () => 'test component';
123
- jest.spyOn(fetchDynamicScript, 'default').mockReturnValueOnce(Promise.resolve(true));
124
- jest.spyOn(loadAppshellComponent, 'default').mockResolvedValue(ExpectedComponent);
125
- fetch.resetMocks();
126
-
127
- const loadRemote = remoteLoader(config, {
128
- composition: {
129
- environmentId: 'acme/dev',
130
- revision: 1,
131
- index: config.index,
132
- remotes: manifest.remotes,
133
- environment: { TestModule: { ENV_VAR_A: 'Composed value for A' } },
134
- },
135
- });
136
- const [ActualComponent, actualManifest] = await loadRemote('TestModule/TestComponent');
137
-
138
- expect(fetch).not.toHaveBeenCalled();
139
- expect(ActualComponent).toEqual(ExpectedComponent);
140
- expect(actualManifest?.modules).toEqual({});
141
- // eslint-disable-next-line no-underscore-dangle
142
- expect(window.__appshell_env__TestModule).toEqual({ ENV_VAR_A: 'Composed value for A' });
143
- });
144
- });
@@ -1,128 +0,0 @@
1
- /** @jest-environment jsdom */
2
- import { AppshellComposition, AppshellGlobalConfig, AppshellManifest } from '@appshell/config';
3
- import fetch, { enableFetchMocks } from 'jest-fetch-mock';
4
- import {
5
- chainResolvers,
6
- inlineResolver,
7
- legacyManifestResolver,
8
- registryResolver,
9
- } from '../src/resolvers';
10
-
11
- enableFetchMocks();
12
-
13
- const MANIFEST_URL = 'http://test.com/appshell.manifest.json';
14
- const KEY = 'TestModule/TestComponent';
15
-
16
- const manifest: AppshellManifest = {
17
- remotes: {
18
- [KEY]: {
19
- id: 'test-component',
20
- scope: 'TestModule',
21
- module: './TestComponent',
22
- manifestUrl: MANIFEST_URL,
23
- remoteEntryUrl: 'http://test.com/remoteEntry.js',
24
- metadata: { title: 'Test' },
25
- },
26
- },
27
- modules: { TestModule: { name: 'TestModule' } },
28
- environment: { TestModule: { ENV_VAR_A: 'Original value for A' } },
29
- };
30
-
31
- const config: AppshellGlobalConfig = { index: { [KEY]: MANIFEST_URL } };
32
-
33
- const composition: AppshellComposition = {
34
- environmentId: 'acme/dev',
35
- revision: 7,
36
- index: config.index,
37
- remotes: manifest.remotes,
38
- environment: manifest.environment,
39
- };
40
-
41
- beforeEach(() => {
42
- fetch.resetMocks();
43
- });
44
-
45
- describe('inlineResolver', () => {
46
- it('resolves without any network call', async () => {
47
- const resolution = await inlineResolver(composition)(KEY);
48
-
49
- expect(fetch).not.toHaveBeenCalled();
50
- expect(resolution?.remote).toEqual(manifest.remotes[KEY]);
51
- expect(resolution?.environment).toEqual({ ENV_VAR_A: 'Original value for A' });
52
- });
53
-
54
- it('yields to the next resolver when the key is absent', async () => {
55
- await expect(inlineResolver(composition)('Other/Key')).resolves.toBeUndefined();
56
- await expect(inlineResolver(undefined)(KEY)).resolves.toBeUndefined();
57
- });
58
-
59
- // Locks the claim that the synthesized manifest is a drop-in for `ManifestProvider`.
60
- it('synthesizes a manifest matching the legacy one apart from modules', async () => {
61
- fetch.mockResponseOnce(JSON.stringify(manifest));
62
-
63
- const legacy = await legacyManifestResolver(config)(KEY);
64
- const inline = await inlineResolver(composition)(KEY);
65
-
66
- expect(inline?.manifest).toEqual({ ...legacy?.manifest, modules: {} });
67
- expect(inline?.environment).toEqual(legacy?.environment);
68
- });
69
- });
70
-
71
- describe('legacyManifestResolver', () => {
72
- it('merges environment overrides client side, because no server did', async () => {
73
- fetch.mockResponseOnce(JSON.stringify(manifest));
74
-
75
- const resolution = await legacyManifestResolver({
76
- ...config,
77
- overrides: { environment: { TestModule: { ENV_VAR_A: 'New value for A' } } },
78
- })(KEY);
79
-
80
- expect(resolution?.environment).toEqual({ ENV_VAR_A: 'New value for A' });
81
- });
82
-
83
- it('fetches each manifest only once', async () => {
84
- fetch.mockResponse(JSON.stringify(manifest));
85
- const resolve = legacyManifestResolver(config);
86
-
87
- await resolve(KEY);
88
- await resolve(KEY);
89
-
90
- expect(fetch).toHaveBeenCalledTimes(1);
91
- });
92
- });
93
-
94
- describe('registryResolver', () => {
95
- it('fetches a remote activated after the page was served', async () => {
96
- const added = { ...manifest.remotes[KEY], scope: 'LateModule', module: './Late' };
97
- fetch.mockResponseOnce(JSON.stringify(added));
98
-
99
- const resolution = await registryResolver(composition, 'http://registry')('LateModule/Late');
100
-
101
- expect(fetch).toHaveBeenCalledWith(
102
- 'http://registry/v1/environments/acme/dev/remotes/LateModule/Late',
103
- expect.anything(),
104
- );
105
- expect(resolution?.remote).toEqual(added);
106
- });
107
-
108
- it('yields to the next resolver when the registry has no such remote', async () => {
109
- fetch.mockResponseOnce('', { status: 404 });
110
-
111
- await expect(registryResolver(composition)('Nope/Nope')).resolves.toBeUndefined();
112
- });
113
- });
114
-
115
- describe('chainResolvers', () => {
116
- it('returns the first resolution and stops', async () => {
117
- const second = jest.fn();
118
- const resolve = chainResolvers(inlineResolver(composition), second);
119
-
120
- await resolve(KEY);
121
-
122
- expect(second).not.toHaveBeenCalled();
123
- });
124
-
125
- it('resolves undefined when no resolver matches', async () => {
126
- await expect(chainResolvers()('Nope/Nope')).resolves.toBeUndefined();
127
- });
128
- });
@@ -1 +0,0 @@
1
- {"version":3,"file":"axios.d.ts","sourceRoot":"","sources":["../../../../../config/src/axios.ts"],"names":[],"mappings":";AAEA,wBAA8B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"configmap.d.ts","sourceRoot":"","sources":["../../../../../config/src/configmap.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;;YA0BrC,CAAC,SAAS,MAAM,OAAO,CAAC,aAAa,SAAS,KAAG,CAAC;qBAuBzC,cAAc;;AAEtC,wBAGE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../../config/src/context.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yCAAyC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAaF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,QAAO,eAQjC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,QAAO;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAK5E,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../../../config/src/credentials.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,UAAU,GAAG;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,0BAA0B;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAKF,eAAO,MAAM,eAAe,cAC6D,CAAC;AAqB1F,eAAO,MAAM,cAAc,aAAc,MAAM,cAAc,UAAU,SAEtE,CAAC;AAEF,eAAO,MAAM,eAAe,aAAc,MAAM,SAI/C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,aAAc,MAAM,KAAG,MAAM,GAAG,SAexD,CAAC;AAEF,eAAO,MAAM,YAAY,aAAc,MAAM,KAAG,MAO/C,CAAC"}
@@ -1,3 +0,0 @@
1
- declare const _default: (moduleName: string, registry: string) => Promise<void>;
2
- export default _default;
3
- //# sourceMappingURL=deregister.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deregister.d.ts","sourceRoot":"","sources":["../../../../../config/src/deregister.ts"],"names":[],"mappings":"qCAoGkC,MAAM,YAAY,MAAM;AAA1D,wBAeE"}
@@ -1,3 +0,0 @@
1
- declare const _default: (prefix?: string) => Promise<Map<string, string | undefined>>;
2
- export default _default;
3
- //# sourceMappingURL=generate.env.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generate.env.d.ts","sourceRoot":"","sources":["../../../../../config/src/generate.env.ts"],"names":[],"mappings":";AAGA,wBAuBK"}
@@ -1,10 +0,0 @@
1
- import { AppshellGlobalConfig } from './types';
2
- type GenerateGlobalConfigOptions = {
3
- insecure: boolean;
4
- apiKey?: string;
5
- apiKeyHeader?: string;
6
- proxyUrl?: string;
7
- };
8
- declare const _default: (registries: string[], options?: GenerateGlobalConfigOptions) => Promise<AppshellGlobalConfig>;
9
- export default _default;
10
- //# sourceMappingURL=generate.global-config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generate.global-config.d.ts","sourceRoot":"","sources":["../../../../../config/src/generate.global-config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAK/C,KAAK,2BAA2B,GAAG;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;qCAGY,MAAM,EAAE,YACX,2BAA2B,KACnC,OAAO,CAAC,oBAAoB,CAAC;AAHhC,wBA8CE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"generate.manifest.d.ts","sourceRoot":"","sources":["../../../../../config/src/generate.manifest.ts"],"names":[],"mappings":"AAOA;;;;GAIG;yBACmB,SAAS,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,gBAAgB,MAAM;AAArF,wBAaE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../config/src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC7D,YAAY,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EACL,eAAe,EACf,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,cAAc,GACf,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC9C,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,YAAY,EACV,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,oBAAoB,EACpB,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,QAAQ,EACR,6BAA6B,EAC7B,WAAW,EACX,cAAc,EACd,MAAM,EACN,gBAAgB,GACjB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"appshell.config.d.ts","sourceRoot":"","sources":["../../../../../../config/src/mappers/appshell.config.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,gBAAgB,EAEhB,gBAAgB,EAChB,SAAS,EACV,MAAM,UAAU,CAAC;AAiElB,eAAO,MAAM,kBAAkB,GAAI,SAAS,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,YAChE,gBAAgB,QACpB,SAAS,gCAQhB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"outdated.d.ts","sourceRoot":"","sources":["../../../../../config/src/outdated.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;sCAGrB,WAAW,oBAAoB,gBAAgB;AAAlF,wBAYE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../../../../config/src/publish.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAErD,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,UAAU,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAClC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,+EAA+E;IAC/E,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,4EAA4E;IAC5E,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAmBF;;;;GAIG;AACH,eAAO,MAAM,OAAO,+EASjB,cAAc,KAAG,OAAO,CAAC,aAAa,CAYxC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,aACT,MAAM,eACH,MAAM,SACZ,MAAM,UACL,MAAM,KACb,OAAO,CAAC,IAAI,CAgBd,CAAC"}
@@ -1,4 +0,0 @@
1
- import { AppshellManifest } from './types';
2
- declare const _default: (manifest: AppshellManifest, registryPathOrUrl: string, allowOverrides?: boolean) => Promise<void>;
3
- export default _default;
4
- //# sourceMappingURL=register.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../../../config/src/register.ts"],"names":[],"mappings":"AAEA,OAAO,EAAwB,gBAAgB,EAAmB,MAAM,SAAS,CAAC;mCAetE,gBAAgB,qBACP,MAAM;AAF3B,wBA2CE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../../../config/src/sync.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,QAAQ,CAAC;AACtD,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,MAAM,CAAC;AAE5C,eAAO,MAAM,mBAAmB,cAAe,gBAAgB,EAAE,SAuBhE,CAAC;AAEF,eAAO,MAAM,gBAAgB,eACf,MAAM,YACR,MAAM,YACN,MAAM,EAAE,kBACF,KAAK,GAAG,MAAM,kBAkC/B,CAAC;AAEF,eAAO,MAAM,gBAAgB,cAChB,gBAAgB,EAAE,EAAE,sBACX,kBAAkB,aAmBvC,CAAC;AAEF,eAAO,MAAM,kBAAkB,cAAe,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,yBACQ,CAAC;AAEvF,eAAO,MAAM,mBAAmB,cAAe,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,yBACQ,CAAC;AAExF,eAAO,MAAM,qBAAqB,cAAe,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,yBACQ,CAAC;AAE1F;;;;;;;;GAQG;qCAEW,MAAM,YACR,MAAM,aACL,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,uBACvB,kBAAkB,mBACtB,cAAc;AALhC,wBA6BE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../config/src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEpE,MAAM,MAAM,MAAM,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,CAAC;AAE7D,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,CAAC,CAAC,EAAE,GAAG,MAAM,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,SAA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AC,EAAE,CAAC,MAAM,GAAG,aAAa,CAAC,EAAE,GAAG,aAAa,CAAC;IAErD;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC;IAEzB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,UAAU,CAAC,EACP,QAAQ,GACR,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,UAAU,GACV,WAAW,GACX,iBAAiB,GACjB,iBAAiB,GACjB,KAAK,GACL,aAAa,GACb,KAAK,GACL,MAAM,GACN,OAAO,GACP,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,eAAe,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,MAAM,GAAG,aAAa,CAAC,EAAE,GAAG,aAAa,CAAC;IAErD;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAEzB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,MAAM,GAAG,YAAY,CAAC,EAAE,GAAG,YAAY,CAAC;CACnD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"blur.d.ts","sourceRoot":"","sources":["../../../../../../config/src/utils/blur.ts"],"names":[],"mappings":";AAAA,wBAA8F"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"compare.d.ts","sourceRoot":"","sources":["../../../../../../config/src/utils/compare.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,iBAAiB,EACjB,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,mBAAmB,iBAAkB,gBAAgB,uCAMpB,CAAC;AAE/C,eAAO,MAAM,iBAAiB,gBACf,MAAM,gBACL,MAAM,iBACL,MAAM,GAAG,SAAS,kBACjB,MAAM,mBACL,MAAM,GAAG,SAAS,WAC1B,iBAAiB,sBAiD3B,CAAC;AAEF,eAAO,MAAM,mBAAmB,WAAY,gBAAgB,YAAY,gBAAgB,sBAYrF,CAAC;AAEJ,eAAO,MAAM,yBAAyB,gBACvB,WAAW,gBACV,gBAAgB,sBAoB/B,CAAC;AAEF,eAAO,MAAM,oBAAoB,eACnB,gBAAgB,gBACd,gBAAgB,sBAY/B,CAAC;AAEF,eAAO,MAAM,YAAY,YAAa,iBAAiB,SAsBtD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../config/src/utils/config.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAIrC,eAAO,MAAM,UAAU,eAAgB,MAAM,cAkB5C,CAAC;AAEF,eAAO,MAAM,WAAW,eAAgB,MAAM,UAAU,SAAS,SAchE,CAAC;AAEF,eAAO,MAAM,mBAAmB,WAAY,SAAS,QAAQ,KAAK,CAAC,kBAAkB,CAAC,OAAO,CAAC,SAe7F,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"copy.d.ts","sourceRoot":"","sources":["../../../../../../config/src/utils/copy.ts"],"names":[],"mappings":"AAGA;;;;GAIG;kCACsB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE;AAArD,wBAOE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../config/src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,yBAAyB,EACzB,oBAAoB,EACpB,mBAAmB,EACnB,YAAY,GACb,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC"}
@@ -1,3 +0,0 @@
1
- declare const _default: (urlString: string) => boolean;
2
- export default _default;
3
- //# sourceMappingURL=isValidUrl.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isValidUrl.d.ts","sourceRoot":"","sources":["../../../../../../config/src/utils/isValidUrl.ts"],"names":[],"mappings":"oCAA2B,MAAM;AAAjC,wBAME"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../../config/src/utils/list.ts"],"names":[],"mappings":"AAoBA;;;;;;GAMG;AACH,QAAA,MAAM,IAAI,YAAa,MAAM,2BAAqB,MAAM,GAAG,MAAM,aAMhE,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"load.d.ts","sourceRoot":"","sources":["../../../../../../config/src/utils/load.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,QAAA,MAAM,IAAI,GAAI,OAAO,cAAc,MAAM,KAAG,OAU3C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,OAAO,GAAI,OAAO,YAAY,MAAM,EAAE,KAAG,OAAO,EAAqC,CAAC;AAEnG,eAAe,IAAI,CAAC"}
@@ -1,10 +0,0 @@
1
- type LoadJsonOptions = {
2
- insecure: boolean;
3
- target: string | RegExp;
4
- apiKey?: string;
5
- apiKeyHeader?: string;
6
- proxyUrl?: string;
7
- };
8
- declare const _default: <T = Record<string, unknown>>(jsonPathOrUrl: string, options?: LoadJsonOptions) => Promise<T[]>;
9
- export default _default;
10
- //# sourceMappingURL=loadJson.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"loadJson.d.ts","sourceRoot":"","sources":["../../../../../../config/src/utils/loadJson.ts"],"names":[],"mappings":"AAOA,KAAK,eAAe,GAAG;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;yBAsDoB,CAAC,2CACN,MAAM,YACZ,eAAe,KAOvB,OAAO,CAAC,CAAC,EAAE,CAAC;AATf,wBAqBE"}
@@ -1,4 +0,0 @@
1
- import { ConfigValidator } from '../types';
2
- declare const _default: <TSchema>(validator: ConfigValidator, ...documents: TSchema[]) => TSchema;
3
- export default _default;
4
- //# sourceMappingURL=merge.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../../../../../config/src/utils/merge.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;yBAU3B,OAAO,aAAa,eAAe,gBAAgB,OAAO,EAAE;AAA5E,wBAiBE"}
@@ -1,4 +0,0 @@
1
- import { ConfigValidator } from '../types';
2
- declare const _default: ConfigValidator;
3
- export default _default;
4
- //# sourceMappingURL=AppshellGlobalConfigValidator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AppshellGlobalConfigValidator.d.ts","sourceRoot":"","sources":["../../../../../../config/src/validators/AppshellGlobalConfigValidator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAwB,eAAe,EAAE,MAAM,UAAU,CAAC;wBAO5D,eAAe;AALpB,wBAKqB"}
@@ -1,4 +0,0 @@
1
- import { ConfigValidator } from '../types';
2
- declare const _default: ConfigValidator;
3
- export default _default;
4
- //# sourceMappingURL=AppshellManifestValidator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AppshellManifestValidator.d.ts","sourceRoot":"","sources":["../../../../../../config/src/validators/AppshellManifestValidator.ts"],"names":[],"mappings":"AAMA,OAAO,EAAoB,eAAe,EAAgB,MAAM,UAAU,CAAC;wBA0EtE,eAAe;AAtBpB,wBAsBqB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"AppshellTemplateValidator.d.ts","sourceRoot":"","sources":["../../../../../../config/src/validators/AppshellTemplateValidator.ts"],"names":[],"mappings":"AAMA,OAAO,EAAoB,eAAe,EAAE,MAAM,UAAU,CAAC;wBAyCxD,eAAe;AAlBpB,wBAkBqB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../config/src/validators/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,6BAA6B,CAAC"}
@@ -1,3 +0,0 @@
1
- declare const _default: (url: string) => Promise<boolean>;
2
- export default _default;
3
- //# sourceMappingURL=fetchDynamicScript.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetchDynamicScript.d.ts","sourceRoot":"","sources":["../../../../src/fetchDynamicScript.ts"],"names":[],"mappings":"8BAM2B,MAAM;AAAjC,wBA0CE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C,YAAY,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AAExB,eAAe,YAAY,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"loadAppshellComponent.d.ts","sourceRoot":"","sources":["../../../../src/loadAppshellComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,UAAU,EAAE,MAAM,SAAS,CAAC;AAGtD,OAAO,CAAC,MAAM,CAAC;IACb,SAAS,wBAAwB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE7D,MAAM,wBAAwB,EAAE;QAAE,OAAO,EAAE,UAAU,CAAA;KAAE,CAAC;IACxD,UAAU,MAAM;QACd,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;QACvB,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;KACtD;CACF;yBAIqB,UAAU,SAAS,MAAM,UAAU,MAAM;AAA/D,wBAgCE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"remoteLoader.d.ts","sourceRoot":"","sources":["../../../../src/remoteLoader.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAGlF,OAAO,EAKL,KAAK,cAAc,EACpB,MAAM,aAAa,CAAC;AAIrB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;KAC3C;CACF;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B,CAAC;iCAEsB,oBAAoB,YAAW,mBAAmB,MAY1D,UAAU,OAAO,MAAM;AAZvC,wBAqDE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../../../src/resolvers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,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AO,CAAC,MAAM,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;CAChE"}
@@ -1,49 +0,0 @@
1
- const urlCache = new Set<string>();
2
-
3
- /** Propagates the shell's CSP nonce so browsers that don't trust strict-dynamic propagation still allow it. */
4
- const cspNonce = (): string | undefined =>
5
- document.querySelector<HTMLScriptElement>('script[nonce]')?.nonce;
6
-
7
- export default async (url: string) => {
8
- const element = document.createElement('script');
9
- const nonce = cspNonce();
10
-
11
- if (nonce) {
12
- element.nonce = nonce;
13
- }
14
-
15
- const cleanup = (): void => {
16
- if (document.head.contains(element)) {
17
- document.head.removeChild(element);
18
- }
19
- };
20
-
21
- return new Promise<boolean>((resolve, reject) => {
22
- if (urlCache.has(url)) {
23
- resolve(false);
24
- } else {
25
- urlCache.add(url);
26
-
27
- element.src = url;
28
- element.type = 'text/javascript';
29
- element.async = true;
30
-
31
- element.onload = () => {
32
- // eslint-disable-next-line no-console
33
- console.debug(`Remote entry fetched from '${url}'.`);
34
-
35
- resolve(true);
36
- };
37
-
38
- element.onerror = () => {
39
- const message = `Failed to fetch remote entry from '${url}'.`;
40
- // eslint-disable-next-line no-console
41
- console.error(message);
42
- urlCache.delete(url);
43
- reject(message);
44
- };
45
-
46
- document.head.appendChild(element);
47
- }
48
- }).finally(cleanup);
49
- };
package/src/index.ts DELETED
@@ -1,7 +0,0 @@
1
- import remoteLoader from './remoteLoader';
2
-
3
- export type { RemoteLoaderOptions } from './remoteLoader';
4
- export * from './resolvers';
5
- export * from './types';
6
-
7
- export default remoteLoader;
@@ -1,48 +0,0 @@
1
- import { ModuleContainer, ShareScope } from './types';
2
-
3
- /* eslint-disable @typescript-eslint/naming-convention */
4
- declare global {
5
- function __webpack_init_sharing__(id: string): Promise<void>;
6
- // eslint-disable-next-line no-underscore-dangle
7
- const __webpack_share_scopes__: { default: ShareScope };
8
- interface Window {
9
- [key: string]: unknown;
10
- __webpack_share_scopes__: Record<string, ShareScope>;
11
- }
12
- }
13
-
14
- type ShareScopes = keyof typeof __webpack_share_scopes__;
15
-
16
- export default async <TComponent>(scope: string, module: string, shareScope = 'default') => {
17
- // eslint-disable-next-line no-console
18
- console.debug(
19
- `loading Appshell component: { scope: ${scope}, module: ${module}, shareScope: ${shareScope} }`,
20
- );
21
-
22
- // Initializes the share scope. This fills it with known provided modules from this build and all remotes
23
- await __webpack_init_sharing__(shareScope);
24
- const container = window[scope] as ModuleContainer<TComponent>;
25
-
26
- if (!container) {
27
- throw new Error(`Failed to find module container ${scope}`);
28
- }
29
-
30
- // Initialize the container, it may provide shared modules
31
- await container.init(__webpack_share_scopes__[shareScope as ShareScopes]);
32
- const factory = await container.get(module);
33
-
34
- if (!factory) {
35
- throw new Error(`Invalid factory produced by container for module ${module}.`);
36
- }
37
-
38
- const Module = factory();
39
-
40
- // eslint-disable-next-line no-console
41
- console.debug(
42
- `Appshell component loaded: { scope: ${scope}, module: ${module}, shareScope: ${shareScope} }`,
43
- );
44
-
45
- const Component = Module.default;
46
-
47
- return Component;
48
- };