@appshell/react 1.0.0-alpha.16 → 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/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 +0 -1
- package/dist/types/config/src/credentials.d.ts +0 -1
- package/dist/types/config/src/generate.manifest.d.ts +0 -1
- package/dist/types/config/src/index.d.ts +0 -1
- 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 +0 -1
- package/dist/types/config/src/sync.d.ts +0 -1
- package/dist/types/config/src/types.d.ts +0 -1
- 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 -1
- 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 -1
- 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 +0 -1
- package/dist/types/loader/src/resolvers.d.ts +0 -1
- package/dist/types/loader/src/types.d.ts +0 -1
- package/dist/types/react/src/components/LoadingError.d.ts +0 -1
- package/dist/types/react/src/components/RemoteSlot.d.ts +0 -1
- package/dist/types/react/src/contexts/RemoteContext.d.ts +0 -1
- package/dist/types/react/src/hooks/useRemote.d.ts +0 -1
- package/dist/types/react/src/index.d.ts +0 -1
- package/dist/types/react/src/resources/jsonResource.d.ts +0 -1
- package/dist/types/react/src/types.d.ts +0 -1
- package/dist/types/runtime/src/errors.d.ts +0 -1
- package/dist/types/runtime/src/index.d.ts +0 -1
- package/dist/types/runtime/src/store.d.ts +0 -1
- package/dist/types/runtime/src/types.d.ts +0 -1
- package/package.json +6 -3
- package/CHANGELOG.md +0 -242
- package/__tests__/LoadingError.spec.tsx +0 -14
- package/__tests__/RemoteSlot.spec.tsx +0 -46
- package/__tests__/__snapshots__/LoadingError.spec.tsx.snap +0 -88
- package/__tests__/__snapshots__/RemoteSlot.spec.tsx.snap +0 -9
- package/__tests__/fixtures/Manifest.ts +0 -16
- package/__tests__/fixtures/TestComponent.tsx +0 -5
- package/__tests__/jsonResource.spec.ts +0 -27
- package/__tests__/useRemote.spec.tsx +0 -36
- package/__tests__/utils/waitForResource.ts +0 -15
- 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/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/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/list.d.ts.map +0 -1
- package/dist/types/config/src/utils/load.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/dist/types/react/src/components/LoadingError.d.ts.map +0 -1
- package/dist/types/react/src/components/RemoteSlot.d.ts.map +0 -1
- package/dist/types/react/src/contexts/RemoteContext.d.ts.map +0 -1
- package/dist/types/react/src/hooks/useRemote.d.ts.map +0 -1
- package/dist/types/react/src/index.d.ts.map +0 -1
- package/dist/types/react/src/resources/jsonResource.d.ts.map +0 -1
- package/dist/types/react/src/types.d.ts.map +0 -1
- package/dist/types/runtime/src/errors.d.ts.map +0 -1
- package/dist/types/runtime/src/index.d.ts.map +0 -1
- package/dist/types/runtime/src/store.d.ts.map +0 -1
- package/dist/types/runtime/src/types.d.ts.map +0 -1
- package/src/components/LoadingError.tsx +0 -15
- package/src/components/RemoteSlot.tsx +0 -80
- package/src/contexts/RemoteContext.tsx +0 -22
- package/src/hooks/useRemote.ts +0 -7
- package/src/index.ts +0 -4
- package/src/resources/jsonResource.ts +0 -35
- package/src/types.ts +0 -3
- package/tsconfig.json +0 -7
- package/webpack.config.js +0 -45
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { AppshellManifest } from '@appshell/config';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
remotes: {
|
|
5
|
-
'TestModule/TestComponent': {
|
|
6
|
-
id: 'test-component',
|
|
7
|
-
scope: 'TestModule',
|
|
8
|
-
module: './TestComponent',
|
|
9
|
-
manifestUrl: 'http://test.com/appshell.manifest.json',
|
|
10
|
-
remoteEntryUrl: 'http://test.com/remoteEntry.js',
|
|
11
|
-
metadata: {},
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
modules: {},
|
|
15
|
-
vars: {},
|
|
16
|
-
} as AppshellManifest;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/** @jest-environment jsdom */
|
|
2
|
-
import { AppshellManifest } from '@appshell/config';
|
|
3
|
-
import fetch, { enableFetchMocks } from 'jest-fetch-mock';
|
|
4
|
-
import jsonResource from '../src/resources/jsonResource';
|
|
5
|
-
import manifest from './fixtures/Manifest';
|
|
6
|
-
import waitForResource from './utils/waitForResource';
|
|
7
|
-
|
|
8
|
-
enableFetchMocks();
|
|
9
|
-
|
|
10
|
-
describe('jsonResource', () => {
|
|
11
|
-
it('should return data when fetch succeeds', async () => {
|
|
12
|
-
fetch.mockResponseOnce(() => Promise.resolve(JSON.stringify(manifest)));
|
|
13
|
-
const resource = jsonResource<AppshellManifest>('http://test.com/some-resource.json');
|
|
14
|
-
const data = await waitForResource(resource);
|
|
15
|
-
|
|
16
|
-
expect(data).toEqual(manifest);
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
it('should return error when fetch fails', async () => {
|
|
20
|
-
fetch.mockResponseOnce(() =>
|
|
21
|
-
Promise.resolve({ ok: false, status: 404, statusText: 'Failed to fetch resource.' }),
|
|
22
|
-
);
|
|
23
|
-
const resource = jsonResource<AppshellManifest>('http://test.com/some-resource.json');
|
|
24
|
-
|
|
25
|
-
await expect(waitForResource(resource)).rejects.toThrow(/failed to fetch resource/i);
|
|
26
|
-
});
|
|
27
|
-
});
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/** @jest-environment jsdom */
|
|
2
|
-
import { AppshellRemote } from '@appshell/config';
|
|
3
|
-
import '@testing-library/jest-dom';
|
|
4
|
-
import { render, screen } from '@testing-library/react';
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { RemoteProvider } from '../src/contexts/RemoteContext';
|
|
7
|
-
import useRemote from '../src/hooks/useRemote';
|
|
8
|
-
|
|
9
|
-
const remote: AppshellRemote = {
|
|
10
|
-
id: 'ping',
|
|
11
|
-
scope: 'PingModule',
|
|
12
|
-
module: './Ping',
|
|
13
|
-
manifestUrl: 'http://test.com/appshell.manifest.json',
|
|
14
|
-
remoteEntryUrl: 'http://test.com/remoteEntry.js',
|
|
15
|
-
metadata: { title: 'Ping' },
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
const Probe = () => <span>{useRemote()?.remoteEntryUrl ?? 'none'}</span>;
|
|
19
|
-
|
|
20
|
-
describe('useRemote', () => {
|
|
21
|
-
it('returns the remote backing the surrounding component', () => {
|
|
22
|
-
render(
|
|
23
|
-
<RemoteProvider remote={remote}>
|
|
24
|
-
<Probe />
|
|
25
|
-
</RemoteProvider>,
|
|
26
|
-
);
|
|
27
|
-
|
|
28
|
-
expect(screen.getByText(remote.remoteEntryUrl)).toBeInTheDocument();
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
it('returns undefined outside a provider, so hosts render standalone', () => {
|
|
32
|
-
render(<Probe />);
|
|
33
|
-
|
|
34
|
-
expect(screen.getByText('none')).toBeInTheDocument();
|
|
35
|
-
});
|
|
36
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Resource } from '../../src/types';
|
|
2
|
-
|
|
3
|
-
const waitForResource = async <TResource>(
|
|
4
|
-
resource: Resource<TResource>,
|
|
5
|
-
): Promise<TResource | Error | undefined> => {
|
|
6
|
-
try {
|
|
7
|
-
return resource.read();
|
|
8
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9
|
-
} catch (suspender: any) {
|
|
10
|
-
await suspender;
|
|
11
|
-
return resource.read();
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export default waitForResource;
|
|
@@ -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"}
|
|
@@ -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,cAAc,GACf,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,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,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,YAAY,EACV,mBAAmB,EACnB,cAAc,EACd,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,YAAY,EACZ,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;AAqBF;;;;GAIG;AACH,eAAO,MAAM,OAAO,+EASjB,cAAc,KAAG,OAAO,CAAC,aAAa,CAYxC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,aACT,MAAM,eACH,MAAM,aACR,MAAM,UACT,MAAM,KACb,OAAO,CAAC,IAAI,CAgBd,CAAC"}
|
|
@@ -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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,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,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -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 +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":"AACA,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../loader/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":["../../../../../loader/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":["../../../../../loader/src/remoteLoader.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAG5D,OAAO,EAAoD,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAEpG,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;mCAEuB,mBAAmB,MAQ5B,UAAU,OAAO,MAAM;AARvC,wBA2CE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../../../../loader/src/resolvers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE5E,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,cAAc,CAAC;IACvB,kGAAkG;IAClG,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,CAAC;CACnD,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAAC;AAEpF,wFAAwF;AACxF,eAAO,MAAM,cAAc,iBACV,mBAAmB,KAAG,cASpC,CAAC;AAEJ,4EAA4E;AAC5E,eAAO,MAAM,gBAAgB,iBACZ,mBAAmB,sBAAgB,cAcjD,CAAC;AAEJ,eAAO,MAAM,cAAc,iBACV,cAAc,EAAE,KAAG,cAUjC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../loader/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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingError.d.ts","sourceRoot":"","sources":["../../../../../src/components/LoadingError.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAElC,KAAK,UAAU,GAAG;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,QAAA,MAAM,YAAY,EAAE,EAAE,CAAC,UAAU,CAKhC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RemoteSlot.d.ts","sourceRoot":"","sources":["../../../../../src/components/RemoteSlot.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAiB,YAAY,EAAE,SAAS,EAAuB,MAAM,OAAO,CAAC;AAI3F,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAGpD,MAAM,MAAM,eAAe,CAAC,MAAM,SAAS,aAAa,GAAG,aAAa,IAAI;IAC1E,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,GAAG,MAAM,CAAC;AAEX;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,UAAU;KAAI,MAAM,SAAS,aAAa,iCAI7C,eAAe,CAAC,MAAM,CAAC,GAAG,YAAY,CAAC,MAAM,CAAC;;;;CAwChD,CAAC;AAMF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RemoteContext.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/RemoteContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAwB,MAAM,OAAO,CAAC;AAE7C,UAAU,mBAAmB;IAC3B,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,aAAa,2CAAuD,CAAC;AAElF,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAElD,CAAC;AAMF,eAAO,MAAM,cAAc,4CAAyB,CAAC;AAErD,eAAe,aAAa,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useRemote.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useRemote.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAKlD,kFAAkF;8BAC/D,cAAc,GAAG,SAAS;AAA7C,wBAAiF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jsonResource.d.ts","sourceRoot":"","sources":["../../../../../src/resources/jsonResource.ts"],"names":[],"mappings":"yBAAgB,SAAS,OAAO,MAAM;;;AAAtC,wBAkCE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,CAAC,SAAS,GAAG,OAAO,IAAI;IAC1C,IAAI,IAAI,SAAS,GAAG,KAAK,GAAG,SAAS,CAAC;CACvC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../../runtime/src/errors.ts"],"names":[],"mappings":"AACA;;;;;;;;GAQG;AACH,qBAAa,gBAAiB,SAAQ,KAAK;IACzC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;gBAEX,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;CAc3C;AAED;;;;;;;GAOG;AACH,qBAAa,iBAAkB,SAAQ,KAAK;IAC1C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;gBAEX,KAAK,EAAE,MAAM;CAS1B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../runtime/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAChE,YAAY,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../../runtime/src/store.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAepC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,OAAO,UAAW,MAAM,QAAQ,IAAI,KAAG,IAYnD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,GAAI,KAAK,SAAS,IAAI,gBAAgB,MAAM,KAAG,KAQnE,CAAC;AAEF,4FAA4F;AAC5F,eAAO,MAAM,OAAO,UAAW,MAAM,KAAG,OAA+B,CAAC;AAExE,qEAAqE;AACrE,eAAO,MAAM,SAAS,QAAO,IAE5B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../runtime/src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React, { FC } from 'react';
|
|
2
|
-
|
|
3
|
-
type ErrorProps = {
|
|
4
|
-
remote: string;
|
|
5
|
-
reason: string;
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
const LoadingError: FC<ErrorProps> = ({ remote, reason }) => (
|
|
9
|
-
<div style={{ border: '3px solid red' }}>
|
|
10
|
-
<h5>{`Error loading Appshell component '${remote}.'`}</h5>
|
|
11
|
-
<span style={{ fontSize: '1rem' }}>{reason}</span>
|
|
12
|
-
</div>
|
|
13
|
-
);
|
|
14
|
-
|
|
15
|
-
export default LoadingError;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/* eslint-disable react/jsx-props-no-spreading */
|
|
2
|
-
import remoteLoader from '@appshell/loader';
|
|
3
|
-
import React, { ComponentType, ReactElement, ReactNode, useEffect, useState } from 'react';
|
|
4
|
-
import { RemoteProvider } from '../contexts/RemoteContext';
|
|
5
|
-
import LoadingError from './LoadingError';
|
|
6
|
-
|
|
7
|
-
export type ExtendedProps = Record<string, unknown>;
|
|
8
|
-
|
|
9
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-constraint
|
|
10
|
-
export type RemoteSlotProps<TProps extends ExtendedProps = ExtendedProps> = {
|
|
11
|
-
remote: string;
|
|
12
|
-
fallback?: ReactNode;
|
|
13
|
-
} & TProps;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Loads a remote once and leaves it alone.
|
|
17
|
-
*
|
|
18
|
-
* Keeping a remote current while it is being developed is not this component's job.
|
|
19
|
-
* A remote served by a dev server ships webpack's HMR runtime and a dev-server client
|
|
20
|
-
* inside its own `remoteEntry`, so it applies its own edits in place and React Fast
|
|
21
|
-
* Refresh swaps the component implementations underneath this tree — no reload, and no
|
|
22
|
-
* remount that would discard state this component never owned.
|
|
23
|
-
*
|
|
24
|
-
* Watching the remote's socket from here and reloading the page was strictly worse: it
|
|
25
|
-
* raced the remote's own update, and it threw away the entire composed app to deliver a
|
|
26
|
-
* change to one subtree. When webpack genuinely cannot apply an update, the remote's own
|
|
27
|
-
* client still falls back to a full reload — which is the right place for that decision,
|
|
28
|
-
* because it is the only side that knows whether the update applied.
|
|
29
|
-
*/
|
|
30
|
-
const RemoteSlot = <TProps extends ExtendedProps>({
|
|
31
|
-
remote,
|
|
32
|
-
fallback,
|
|
33
|
-
...rest
|
|
34
|
-
}: RemoteSlotProps<TProps>): ReactElement<TProps> => {
|
|
35
|
-
const [element, setElement] = useState<ReactElement>();
|
|
36
|
-
|
|
37
|
-
useEffect(() => {
|
|
38
|
-
let disposed = false;
|
|
39
|
-
const loadComponent = remoteLoader();
|
|
40
|
-
|
|
41
|
-
async function load() {
|
|
42
|
-
try {
|
|
43
|
-
const [Component, resolved] = await loadComponent<ComponentType>(remote);
|
|
44
|
-
|
|
45
|
-
if (disposed || !Component) {
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
setElement(
|
|
50
|
-
<RemoteProvider remote={resolved}>
|
|
51
|
-
<Component {...rest} />
|
|
52
|
-
</RemoteProvider>,
|
|
53
|
-
);
|
|
54
|
-
} catch (err) {
|
|
55
|
-
if (!disposed) {
|
|
56
|
-
setElement(<LoadingError remote={remote} reason={`${err}`} />);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
setElement(undefined);
|
|
62
|
-
load();
|
|
63
|
-
|
|
64
|
-
return () => {
|
|
65
|
-
disposed = true;
|
|
66
|
-
};
|
|
67
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
68
|
-
}, [remote, ...Object.values(rest)]);
|
|
69
|
-
|
|
70
|
-
// eslint-disable-next-line no-console
|
|
71
|
-
console.debug(`rendering RemoteSlot[${remote}], loading=${!element}`);
|
|
72
|
-
// eslint-disable-next-line react/jsx-no-useless-fragment
|
|
73
|
-
return <>{element || fallback}</>;
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
RemoteSlot.defaultProps = {
|
|
77
|
-
fallback: undefined,
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
export default RemoteSlot;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { AppshellRemote } from '@appshell/config';
|
|
2
|
-
import type { FC, ReactNode } from 'react';
|
|
3
|
-
import React, { createContext } from 'react';
|
|
4
|
-
|
|
5
|
-
interface RemoteProviderProps {
|
|
6
|
-
remote?: AppshellRemote;
|
|
7
|
-
children: ReactNode;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export const RemoteContext = createContext<AppshellRemote | undefined>(undefined);
|
|
11
|
-
|
|
12
|
-
export const RemoteProvider: FC<RemoteProviderProps> = ({ remote, children }) => (
|
|
13
|
-
<RemoteContext.Provider value={remote}>{children}</RemoteContext.Provider>
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
RemoteProvider.defaultProps = {
|
|
17
|
-
remote: undefined,
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export const RemoteConsumer = RemoteContext.Consumer;
|
|
21
|
-
|
|
22
|
-
export default RemoteContext;
|
package/src/hooks/useRemote.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { AppshellRemote } from '@appshell/config';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
// eslint-disable-next-line import/no-named-as-default
|
|
4
|
-
import RemoteContext from '../contexts/RemoteContext';
|
|
5
|
-
|
|
6
|
-
/** The remote backing the nearest `RemoteSlot` — it already knows its own key. */
|
|
7
|
-
export default (): AppshellRemote | undefined => React.useContext(RemoteContext);
|
package/src/index.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export default <TResource>(url: string) => {
|
|
2
|
-
let status = 'pending';
|
|
3
|
-
let result: TResource | Error;
|
|
4
|
-
const suspender = fetch(url, {
|
|
5
|
-
headers: {
|
|
6
|
-
'Content-Type': 'application/json',
|
|
7
|
-
Accept: 'application/json',
|
|
8
|
-
},
|
|
9
|
-
// eslint-disable-next-line consistent-return
|
|
10
|
-
}).then((response) => {
|
|
11
|
-
if (response.ok) {
|
|
12
|
-
return response.json().then((data) => {
|
|
13
|
-
status = 'success';
|
|
14
|
-
result = data;
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
status = 'error';
|
|
18
|
-
result = new Error(`${response.status} ${response.statusText} ${response.url}`);
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
return {
|
|
22
|
-
read() {
|
|
23
|
-
if (status === 'pending') {
|
|
24
|
-
// eslint-disable-next-line @typescript-eslint/no-throw-literal
|
|
25
|
-
throw suspender as Promise<TResource>;
|
|
26
|
-
} else if (status === 'error') {
|
|
27
|
-
throw result as Error;
|
|
28
|
-
} else if (status === 'success') {
|
|
29
|
-
return result;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
return undefined;
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
};
|
package/src/types.ts
DELETED
package/tsconfig.json
DELETED
package/webpack.config.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
|
|
2
|
-
const Visualizer = require('webpack-visualizer-plugin2');
|
|
3
|
-
|
|
4
|
-
module.exports = (env, { mode }) => {
|
|
5
|
-
const isDevelopment = mode === 'development';
|
|
6
|
-
|
|
7
|
-
return {
|
|
8
|
-
entry: './src/index',
|
|
9
|
-
mode,
|
|
10
|
-
devtool: isDevelopment ? 'eval-source-map' : false,
|
|
11
|
-
output: {
|
|
12
|
-
filename: '[name].js',
|
|
13
|
-
pathinfo: false,
|
|
14
|
-
libraryTarget: 'umd',
|
|
15
|
-
},
|
|
16
|
-
resolve: {
|
|
17
|
-
extensions: ['.js', '.ts', '.tsx'],
|
|
18
|
-
plugins: [new TsconfigPathsPlugin()],
|
|
19
|
-
},
|
|
20
|
-
module: {
|
|
21
|
-
rules: [
|
|
22
|
-
{
|
|
23
|
-
test: /\.tsx?$/,
|
|
24
|
-
exclude: /node_modules/,
|
|
25
|
-
use: [
|
|
26
|
-
{
|
|
27
|
-
loader: 'babel-loader',
|
|
28
|
-
options: {
|
|
29
|
-
presets: ['@babel/preset-react', '@babel/preset-typescript'],
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
],
|
|
33
|
-
},
|
|
34
|
-
],
|
|
35
|
-
},
|
|
36
|
-
// plugins: [isDevelopment && new Visualizer()].filter(Boolean),
|
|
37
|
-
// Externalised, not bundled: `@appshell/runtime` is a shared singleton, and a copy
|
|
38
|
-
// inlined here would be a second store that no package ever reads from.
|
|
39
|
-
externals: {
|
|
40
|
-
'@appshell/runtime': '@appshell/runtime',
|
|
41
|
-
react: 'react',
|
|
42
|
-
'react-dom': 'reactDOM',
|
|
43
|
-
},
|
|
44
|
-
};
|
|
45
|
-
};
|