@appshell/loader 1.0.0-alpha.14 → 1.0.0-alpha.17
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/README.md +19 -21
- package/dist/main.js +1 -1
- package/dist/types/config/src/axios.d.ts +0 -1
- package/dist/types/config/src/configmap.d.ts +0 -1
- package/dist/types/config/src/context.d.ts +3 -4
- package/dist/types/config/src/credentials.d.ts +0 -2
- package/dist/types/config/src/generate.manifest.d.ts +0 -1
- package/dist/types/config/src/index.d.ts +2 -7
- package/dist/types/config/src/mappers/appshell.config.d.ts +0 -1
- package/dist/types/config/src/outdated.d.ts +0 -1
- package/dist/types/config/src/publish.d.ts +3 -4
- package/dist/types/config/src/sync.d.ts +0 -1
- package/dist/types/config/src/types.d.ts +9 -15
- package/dist/types/config/src/utils/blur.d.ts +0 -1
- package/dist/types/config/src/utils/compare.d.ts +0 -1
- package/dist/types/config/src/utils/config.d.ts +0 -1
- package/dist/types/config/src/utils/copy.d.ts +0 -1
- package/dist/types/config/src/utils/index.d.ts +0 -4
- package/dist/types/config/src/utils/list.d.ts +0 -1
- package/dist/types/config/src/utils/load.d.ts +0 -1
- package/dist/types/config/src/validators/AppshellTemplateValidator.d.ts +0 -1
- package/dist/types/config/src/validators/index.d.ts +0 -3
- package/dist/types/loader/src/index.d.ts +0 -1
- package/dist/types/loader/src/loadAppshellComponent.d.ts +0 -1
- package/dist/types/loader/src/remoteLoader.d.ts +2 -4
- package/dist/types/loader/src/resolvers.d.ts +4 -12
- package/dist/types/loader/src/types.d.ts +0 -1
- package/dist/types/runtime/src/errors.d.ts +25 -0
- package/dist/types/runtime/src/index.d.ts +3 -0
- package/dist/types/runtime/src/store.d.ts +25 -0
- package/dist/types/runtime/src/types.d.ts +9 -0
- package/package.json +10 -3
- package/CHANGELOG.md +0 -227
- package/__tests__/fixtures/TestComponent.ts +0 -3
- package/__tests__/loadAppshellComponent.spec.ts +0 -68
- package/__tests__/remoteLoader.spec.ts +0 -120
- package/__tests__/resolvers.spec.ts +0 -128
- package/dist/types/config/src/axios.d.ts.map +0 -1
- package/dist/types/config/src/configmap.d.ts.map +0 -1
- package/dist/types/config/src/context.d.ts.map +0 -1
- package/dist/types/config/src/credentials.d.ts.map +0 -1
- package/dist/types/config/src/deregister.d.ts +0 -3
- package/dist/types/config/src/deregister.d.ts.map +0 -1
- package/dist/types/config/src/generate.env.d.ts +0 -3
- package/dist/types/config/src/generate.env.d.ts.map +0 -1
- package/dist/types/config/src/generate.global-config.d.ts +0 -10
- package/dist/types/config/src/generate.global-config.d.ts.map +0 -1
- package/dist/types/config/src/generate.manifest.d.ts.map +0 -1
- package/dist/types/config/src/index.d.ts.map +0 -1
- package/dist/types/config/src/mappers/appshell.config.d.ts.map +0 -1
- package/dist/types/config/src/outdated.d.ts.map +0 -1
- package/dist/types/config/src/publish.d.ts.map +0 -1
- package/dist/types/config/src/register.d.ts +0 -4
- package/dist/types/config/src/register.d.ts.map +0 -1
- package/dist/types/config/src/sync.d.ts.map +0 -1
- package/dist/types/config/src/types.d.ts.map +0 -1
- package/dist/types/config/src/utils/blur.d.ts.map +0 -1
- package/dist/types/config/src/utils/compare.d.ts.map +0 -1
- package/dist/types/config/src/utils/config.d.ts.map +0 -1
- package/dist/types/config/src/utils/copy.d.ts.map +0 -1
- package/dist/types/config/src/utils/index.d.ts.map +0 -1
- package/dist/types/config/src/utils/isValidUrl.d.ts +0 -3
- package/dist/types/config/src/utils/isValidUrl.d.ts.map +0 -1
- package/dist/types/config/src/utils/list.d.ts.map +0 -1
- package/dist/types/config/src/utils/load.d.ts.map +0 -1
- package/dist/types/config/src/utils/loadJson.d.ts +0 -10
- package/dist/types/config/src/utils/loadJson.d.ts.map +0 -1
- package/dist/types/config/src/utils/merge.d.ts +0 -4
- package/dist/types/config/src/utils/merge.d.ts.map +0 -1
- package/dist/types/config/src/validators/AppshellGlobalConfigValidator.d.ts +0 -4
- package/dist/types/config/src/validators/AppshellGlobalConfigValidator.d.ts.map +0 -1
- package/dist/types/config/src/validators/AppshellManifestValidator.d.ts +0 -4
- package/dist/types/config/src/validators/AppshellManifestValidator.d.ts.map +0 -1
- package/dist/types/config/src/validators/AppshellTemplateValidator.d.ts.map +0 -1
- package/dist/types/config/src/validators/index.d.ts.map +0 -1
- package/dist/types/loader/src/index.d.ts.map +0 -1
- package/dist/types/loader/src/loadAppshellComponent.d.ts.map +0 -1
- package/dist/types/loader/src/remoteLoader.d.ts.map +0 -1
- package/dist/types/loader/src/resolvers.d.ts.map +0 -1
- package/dist/types/loader/src/types.d.ts.map +0 -1
- package/src/index.ts +0 -7
- package/src/loadAppshellComponent.ts +0 -66
- package/src/remoteLoader.ts +0 -69
- package/src/resolvers.ts +0 -110
- package/src/types.ts +0 -10
- package/tsconfig.json +0 -7
- package/webpack.config.js +0 -37
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
/** @jest-environment jsdom */
|
|
2
|
-
import { AppshellGlobalConfig, AppshellManifest } from '@appshell/config';
|
|
3
|
-
import fetch, { enableFetchMocks } from 'jest-fetch-mock';
|
|
4
|
-
import * as loadAppshellComponent from '../src/loadAppshellComponent';
|
|
5
|
-
import remoteLoader from '../src/remoteLoader';
|
|
6
|
-
|
|
7
|
-
enableFetchMocks();
|
|
8
|
-
|
|
9
|
-
jest.mock('../src/loadAppshellComponent');
|
|
10
|
-
|
|
11
|
-
describe('remoteLoader', () => {
|
|
12
|
-
const manifest: AppshellManifest = {
|
|
13
|
-
remotes: {
|
|
14
|
-
'TestModule/TestComponent': {
|
|
15
|
-
id: 'test-component',
|
|
16
|
-
scope: 'TestModule',
|
|
17
|
-
module: './TestComponent',
|
|
18
|
-
manifestUrl: 'http://test.com/appshell.manifest.json',
|
|
19
|
-
remoteEntryUrl: 'http://test.com/remoteEntry.js',
|
|
20
|
-
metadata: {},
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
modules: {},
|
|
24
|
-
environment: {
|
|
25
|
-
TestModule: {
|
|
26
|
-
ENV_VAR_A: 'Original value for A',
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
const config: AppshellGlobalConfig = {
|
|
31
|
-
index: {
|
|
32
|
-
'TestModule/TestComponent': 'http://test.com/appshell.manifest.json',
|
|
33
|
-
},
|
|
34
|
-
metadata: {},
|
|
35
|
-
overrides: {
|
|
36
|
-
environment: {
|
|
37
|
-
TestModule: {
|
|
38
|
-
ENV_VAR_A: 'New value for A',
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
beforeEach(() => {
|
|
45
|
-
fetch.mockIf('http://test.com/appshell.manifest.json', () =>
|
|
46
|
-
Promise.resolve({ ok: true, body: JSON.stringify(manifest) }),
|
|
47
|
-
);
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
it('should return the Appshell component if it is found in the registry', async () => {
|
|
51
|
-
const ExpectedComponent = () => 'test component';
|
|
52
|
-
jest
|
|
53
|
-
.spyOn(loadAppshellComponent, 'default')
|
|
54
|
-
.mockResolvedValue(Promise.resolve(ExpectedComponent));
|
|
55
|
-
|
|
56
|
-
const loadRemote = remoteLoader(config);
|
|
57
|
-
const [ActualComponent, actualManifest] = await loadRemote('TestModule/TestComponent');
|
|
58
|
-
|
|
59
|
-
expect(ActualComponent).toEqual(ExpectedComponent);
|
|
60
|
-
expect(actualManifest).toEqual(manifest);
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
it('should apply overridden environment values', async () => {
|
|
64
|
-
const ExpectedComponent = () => 'test component';
|
|
65
|
-
jest
|
|
66
|
-
.spyOn(loadAppshellComponent, 'default')
|
|
67
|
-
.mockResolvedValue(Promise.resolve(ExpectedComponent));
|
|
68
|
-
|
|
69
|
-
const loadRemote = remoteLoader(config);
|
|
70
|
-
|
|
71
|
-
await loadRemote('TestModule/TestComponent');
|
|
72
|
-
|
|
73
|
-
// eslint-disable-next-line no-underscore-dangle
|
|
74
|
-
expect(window.__appshell_env__TestModule).toMatchObject({ ENV_VAR_A: 'New value for A' });
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
it('should throw if remote key is not found in the registry', async () => {
|
|
78
|
-
const ExpectedComponent = () => 'test component';
|
|
79
|
-
jest.spyOn(loadAppshellComponent, 'default').mockResolvedValue(ExpectedComponent);
|
|
80
|
-
|
|
81
|
-
const loadRemote = remoteLoader(config);
|
|
82
|
-
|
|
83
|
-
await expect(loadRemote('TestModule/DoesNotExist')).rejects.toThrow(
|
|
84
|
-
/Remote resource not found in registry/i,
|
|
85
|
-
);
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
it('should throw if load Appshell component fails', async () => {
|
|
89
|
-
jest.spyOn(loadAppshellComponent, 'default').mockRejectedValue(new Error('failed'));
|
|
90
|
-
|
|
91
|
-
const loadRemote = remoteLoader(config);
|
|
92
|
-
|
|
93
|
-
await expect(loadRemote('TestModule/TestComponent')).rejects.toThrow(
|
|
94
|
-
/Failed to load component/i,
|
|
95
|
-
);
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
it('should load from an inlined composition without fetching a manifest', async () => {
|
|
99
|
-
const ExpectedComponent = () => 'test component';
|
|
100
|
-
jest.spyOn(loadAppshellComponent, 'default').mockResolvedValue(ExpectedComponent);
|
|
101
|
-
fetch.resetMocks();
|
|
102
|
-
|
|
103
|
-
const loadRemote = remoteLoader(config, {
|
|
104
|
-
composition: {
|
|
105
|
-
environmentId: 'acme/dev',
|
|
106
|
-
revision: 1,
|
|
107
|
-
index: config.index,
|
|
108
|
-
remotes: manifest.remotes,
|
|
109
|
-
environment: { TestModule: { ENV_VAR_A: 'Composed value for A' } },
|
|
110
|
-
},
|
|
111
|
-
});
|
|
112
|
-
const [ActualComponent, actualManifest] = await loadRemote('TestModule/TestComponent');
|
|
113
|
-
|
|
114
|
-
expect(fetch).not.toHaveBeenCalled();
|
|
115
|
-
expect(ActualComponent).toEqual(ExpectedComponent);
|
|
116
|
-
expect(actualManifest?.modules).toEqual({});
|
|
117
|
-
// eslint-disable-next-line no-underscore-dangle
|
|
118
|
-
expect(window.__appshell_env__TestModule).toEqual({ ENV_VAR_A: 'Composed value for A' });
|
|
119
|
-
});
|
|
120
|
-
});
|
|
@@ -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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deregister.d.ts","sourceRoot":"","sources":["../../../../../config/src/deregister.ts"],"names":[],"mappings":"qCAoGkC,MAAM,YAAY,MAAM;AAA1D,wBAeE"}
|
|
@@ -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 +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,kBAA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,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 +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 +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 +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 +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 +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":"yBAyBsB,UAAU,SACvB,MAAM,UACL,MAAM,kBACE,MAAM;AAHxB,wBAwCE"}
|
|
@@ -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;AAElF,OAAO,EAKL,KAAK,cAAc,EACpB,MAAM,aAAa,CAAC;AAErB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;QACvB,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,wBA4CE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../../../src/resolvers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACf,MAAM,kBAAkB,CAAC;AAE1B,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,cAAc,CAAC;IACvB,kGAAkG;IAClG,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,CAAC;IACzD,iGAAiG;IACjG,QAAQ,EAAE,gBAAgB,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAAC;AAQpF,wFAAwF;AACxF,eAAO,MAAM,cAAc,iBACV,mBAAmB,KAAG,cAUpC,CAAC;AAEJ,yEAAyE;AACzE,eAAO,MAAM,gBAAgB,iBACZ,mBAAmB,sBAAgB,cAejD,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,sBAAsB,WAAY,oBAAoB,KAAG,cAoCrE,CAAC;AAEF,eAAO,MAAM,cAAc,iBACV,cAAc,EAAE,KAAG,cAUjC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,UAAU,CAAC,UAAU,GAAG,GAAG,IAAI,MAAM,CAC/C,MAAM,EACN,MAAM,CAAC,MAAM,EAAE;IAAE,MAAM,CAAC,EAAE,CAAC,CAAC;IAAC,GAAG,EAAE,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAAC,CAC7F,CAAC;AAEF,MAAM,WAAW,eAAe,CAAC,UAAU;IACzC,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACxD,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;CAChE"}
|
package/src/index.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getInstance,
|
|
3
|
-
init,
|
|
4
|
-
loadRemote,
|
|
5
|
-
registerRemotes,
|
|
6
|
-
} from '@module-federation/enhanced/runtime';
|
|
7
|
-
|
|
8
|
-
const HOST_NAME = 'Appshell';
|
|
9
|
-
|
|
10
|
-
// The runtime instance and each remote's registration only need to happen once per page load.
|
|
11
|
-
let initialized = false;
|
|
12
|
-
const registeredScopes = new Set<string>();
|
|
13
|
-
|
|
14
|
-
const ensureInitialized = () => {
|
|
15
|
-
if (initialized) return;
|
|
16
|
-
initialized = true;
|
|
17
|
-
|
|
18
|
-
// A host that ships its own ModuleFederationPlugin (e.g. @appshell/react-shell) already
|
|
19
|
-
// created the global federation instance during its own bootstrap. Re-calling `init()`
|
|
20
|
-
// with a different name throws (#RUNTIME-010), so reuse whatever instance already exists.
|
|
21
|
-
if (getInstance()) return;
|
|
22
|
-
|
|
23
|
-
init({ name: HOST_NAME, remotes: [] });
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export default async <TComponent>(
|
|
27
|
-
scope: string,
|
|
28
|
-
module: string,
|
|
29
|
-
remoteEntryUrl: string,
|
|
30
|
-
shareScope = 'default',
|
|
31
|
-
) => {
|
|
32
|
-
// eslint-disable-next-line no-console
|
|
33
|
-
console.debug(
|
|
34
|
-
`loading Appshell component: { scope: ${scope}, module: ${module}, shareScope: ${shareScope} }`,
|
|
35
|
-
);
|
|
36
|
-
|
|
37
|
-
ensureInitialized();
|
|
38
|
-
|
|
39
|
-
// Registered exactly once, and never re-registered or cache-busted afterwards.
|
|
40
|
-
//
|
|
41
|
-
// A remote served by a dev server updates itself: its `remoteEntry` already carries
|
|
42
|
-
// webpack's HMR runtime and a dev-server client, so an edit is applied in place
|
|
43
|
-
// behind a container identity that does not move. Re-registering the same scope, or
|
|
44
|
-
// appending a cache-busting query to its entry, changes that identity and the
|
|
45
|
-
// `publicPath` derived from it mid-flight, which strands the `*.hot-update.json` and
|
|
46
|
-
// `*.hot-update.js` requests the remote is midway through making.
|
|
47
|
-
if (!registeredScopes.has(scope)) {
|
|
48
|
-
registeredScopes.add(scope);
|
|
49
|
-
registerRemotes([{ name: scope, entry: remoteEntryUrl }]);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// Federation ids drop the leading `./` that `exposes` keys use.
|
|
53
|
-
const exposed = module.replace(/^\.\//, '');
|
|
54
|
-
const Module = await loadRemote<{ default: TComponent }>(`${scope}/${exposed}`);
|
|
55
|
-
|
|
56
|
-
if (!Module) {
|
|
57
|
-
throw new Error(`Failed to find module container ${scope}`);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// eslint-disable-next-line no-console
|
|
61
|
-
console.debug(
|
|
62
|
-
`Appshell component loaded: { scope: ${scope}, module: ${module}, shareScope: ${shareScope} }`,
|
|
63
|
-
);
|
|
64
|
-
|
|
65
|
-
return Module.default;
|
|
66
|
-
};
|
package/src/remoteLoader.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-underscore-dangle */
|
|
2
|
-
import type { AppshellComposition, AppshellGlobalConfig } from '@appshell/config';
|
|
3
|
-
import loadAppshellComponent from './loadAppshellComponent';
|
|
4
|
-
import {
|
|
5
|
-
chainResolvers,
|
|
6
|
-
inlineResolver,
|
|
7
|
-
legacyManifestResolver,
|
|
8
|
-
registryResolver,
|
|
9
|
-
type RemoteResolver,
|
|
10
|
-
} from './resolvers';
|
|
11
|
-
|
|
12
|
-
declare global {
|
|
13
|
-
interface Window {
|
|
14
|
-
[key: string]: unknown;
|
|
15
|
-
__appshell_config__?: AppshellComposition;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export type RemoteLoaderOptions = {
|
|
20
|
-
composition?: AppshellComposition;
|
|
21
|
-
/** Replaces the resolver chain outright; a seam for tests and embedders. */
|
|
22
|
-
resolver?: RemoteResolver;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export default (config: AppshellGlobalConfig, options: RemoteLoaderOptions = {}) => {
|
|
26
|
-
const composition =
|
|
27
|
-
options.composition ?? (typeof window === 'undefined' ? undefined : window.__appshell_config__);
|
|
28
|
-
|
|
29
|
-
const resolve =
|
|
30
|
-
options.resolver ??
|
|
31
|
-
chainResolvers(
|
|
32
|
-
inlineResolver(composition),
|
|
33
|
-
registryResolver(composition),
|
|
34
|
-
legacyManifestResolver(config),
|
|
35
|
-
);
|
|
36
|
-
|
|
37
|
-
return async <TComponent>(key: string) => {
|
|
38
|
-
const failed = (err: unknown) =>
|
|
39
|
-
new Error(`Failed to load component '${key}'. ${err?.toString()}`);
|
|
40
|
-
|
|
41
|
-
let resolution;
|
|
42
|
-
try {
|
|
43
|
-
resolution = await resolve(key);
|
|
44
|
-
} catch (err) {
|
|
45
|
-
throw failed(err);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
if (!resolution) {
|
|
49
|
-
throw new Error(`Remote resource not found in registry. Expected: ${key}`);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
const { remote, environment, manifest } = resolution;
|
|
53
|
-
|
|
54
|
-
try {
|
|
55
|
-
window[`__appshell_env__${remote.scope}`] = environment;
|
|
56
|
-
|
|
57
|
-
const Component = await loadAppshellComponent<TComponent>(
|
|
58
|
-
remote.scope,
|
|
59
|
-
remote.module,
|
|
60
|
-
remote.remoteEntryUrl,
|
|
61
|
-
remote.shareScope,
|
|
62
|
-
);
|
|
63
|
-
|
|
64
|
-
return [Component, manifest] as const;
|
|
65
|
-
} catch (err) {
|
|
66
|
-
throw failed(err);
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
};
|