@appshell/react 1.0.0-alpha.16 → 1.0.0-alpha.18
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
|
@@ -12,4 +12,3 @@ export declare const clearCredential: (registry: string) => void;
|
|
|
12
12
|
* Expired tokens are treated as absent; refresh is the caller's concern.
|
|
13
13
|
*/
|
|
14
14
|
export declare const resolveToken: (registry: string) => string | undefined;
|
|
15
|
-
//# sourceMappingURL=credentials.d.ts.map
|
|
@@ -14,4 +14,3 @@ export { default as sync } from './sync';
|
|
|
14
14
|
export type { AppshellComposition, AppshellConfig, AppshellConfigRemote, AppshellIndex, AppshellManifest, AppshellRemote, AppshellTemplate, ComparisonResult, ComparisonResults, ComparisonTarget, Metadata, ModuleFederationPluginOptions, PackageSpec, ResolvedRemote, Schema, SharedConfig, SharedModuleSpec, } from './types';
|
|
15
15
|
export * as utils from './utils';
|
|
16
16
|
export * as validators from './validators';
|
|
17
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { AppshellManifest, AppshellTemplate, ConfigMap } from '../types';
|
|
2
2
|
export declare const toAppshellManifest: <TMetadata extends Record<string, unknown>>(template: AppshellTemplate, args: ConfigMap) => AppshellManifest<TMetadata>;
|
|
3
|
-
//# sourceMappingURL=appshell.config.d.ts.map
|
|
@@ -26,4 +26,3 @@ export declare const publish: ({ registry, token, name, version, manifest, visib
|
|
|
26
26
|
* @param application `scope/name`
|
|
27
27
|
*/
|
|
28
28
|
export declare const activate: (registry: string, application: string, packageId: string, token?: string) => Promise<void>;
|
|
29
|
-
//# sourceMappingURL=publish.d.ts.map
|
|
@@ -18,4 +18,3 @@ export declare const groupByBaselineModule: (conflicts: Record<string, Compariso
|
|
|
18
18
|
*/
|
|
19
19
|
declare const _default: (workingDir: string, registry: string, conflicts: Record<string, ComparisonResult>, resolutionStrategy?: ResolutionStrategy, packageManager?: PackageManager, dryRun?: boolean) => Promise<void>;
|
|
20
20
|
export default _default;
|
|
21
|
-
//# sourceMappingURL=sync.d.ts.map
|
|
@@ -5,4 +5,3 @@ export declare const compareDependencies: (sample: ComparisonTarget, baseline: C
|
|
|
5
5
|
export declare const compareSharedDependencies: (packageSpec: PackageSpec, sharedModule: SharedModuleSpec) => ComparisonResults;
|
|
6
6
|
export declare const compareSharedModules: (sampleSpec: SharedModuleSpec, baselineSpec: SharedModuleSpec) => ComparisonResults;
|
|
7
7
|
export declare const printResults: (results: ComparisonResults) => void;
|
|
8
|
-
//# sourceMappingURL=compare.d.ts.map
|
|
@@ -3,4 +3,3 @@ import { CliConfig } from '../types';
|
|
|
3
3
|
export declare const readConfig: (configPath: string) => CliConfig;
|
|
4
4
|
export declare const writeConfig: (configPath: string, config: CliConfig) => void;
|
|
5
5
|
export declare const mergeConfigWithArgs: (config: CliConfig, argv: yargs.ArgumentsCamelCase<unknown>) => void;
|
|
6
|
-
//# sourceMappingURL=config.d.ts.map
|
|
@@ -12,4 +12,3 @@ export type RemoteLoaderOptions = {
|
|
|
12
12
|
};
|
|
13
13
|
declare const _default: (options?: RemoteLoaderOptions) => <TComponent>(key: string) => Promise<readonly [Awaited<TComponent>, import("@appshell/config").ResolvedRemote]>;
|
|
14
14
|
export default _default;
|
|
15
|
-
//# sourceMappingURL=remoteLoader.d.ts.map
|
|
@@ -10,4 +10,3 @@ export declare const inlineResolver: (composition?: AppshellComposition) => Remo
|
|
|
10
10
|
/** Fetch-on-miss: covers a package activated after this page was served. */
|
|
11
11
|
export declare const registryResolver: (composition?: AppshellComposition, origin?: string) => RemoteResolver;
|
|
12
12
|
export declare const chainResolvers: (...resolvers: RemoteResolver[]) => RemoteResolver;
|
|
13
|
-
//# sourceMappingURL=resolvers.d.ts.map
|
|
@@ -9,4 +9,3 @@ export declare const RemoteContext: React.Context<AppshellRemote | undefined>;
|
|
|
9
9
|
export declare const RemoteProvider: FC<RemoteProviderProps>;
|
|
10
10
|
export declare const RemoteConsumer: React.Consumer<AppshellRemote | undefined>;
|
|
11
11
|
export default RemoteContext;
|
|
12
|
-
//# sourceMappingURL=RemoteContext.d.ts.map
|
|
@@ -2,4 +2,3 @@ export { default as RemoteSlot } from './components/RemoteSlot';
|
|
|
2
2
|
export { RemoteProvider } from './contexts/RemoteContext';
|
|
3
3
|
export { default as useRemote } from './hooks/useRemote';
|
|
4
4
|
export { default as jsonResource } from './resources/jsonResource';
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -23,4 +23,3 @@ export declare const readVars: <TVars extends Vars = Vars>(scope: string) => TVa
|
|
|
23
23
|
export declare const hasVars: (scope: string) => boolean;
|
|
24
24
|
/** Test seam. Not part of the contract a package should build on. */
|
|
25
25
|
export declare const resetVars: () => void;
|
|
26
|
-
//# sourceMappingURL=store.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appshell/react",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.18",
|
|
4
4
|
"description": "React utilities for building micro-frontends with Appshell and Module Federation",
|
|
5
5
|
"main": "dist/main.js",
|
|
6
6
|
"types": "dist/types/react/src/index.d.ts",
|
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
"start": "webpack --watch --mode development --stats-error-details",
|
|
21
21
|
"stats": "webpack --json > stats.json"
|
|
22
22
|
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist"
|
|
25
|
+
],
|
|
23
26
|
"keywords": [
|
|
24
27
|
"module federation",
|
|
25
28
|
"micro-frontends",
|
|
@@ -30,8 +33,8 @@
|
|
|
30
33
|
"react": "^18.2.0",
|
|
31
34
|
"react-dom": "^18.2.0"
|
|
32
35
|
},
|
|
33
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "00717c21a19071747df56d88cd36a36b13c8e2ce",
|
|
34
37
|
"dependencies": {
|
|
35
|
-
"@appshell/runtime": "^1.0.0-alpha.
|
|
38
|
+
"@appshell/runtime": "^1.0.0-alpha.18"
|
|
36
39
|
}
|
|
37
40
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
# [1.0.0-alpha.16](https://github.com/appshellhq/appshell/compare/v1.0.0-alpha.14...v1.0.0-alpha.16) (2026-08-27)
|
|
7
|
-
|
|
8
|
-
### Bug Fixes
|
|
9
|
-
|
|
10
|
-
- **react:** rename MetadataProvider prop metata -> metadata ([63ef090](https://github.com/appshellhq/appshell/commit/63ef090b29789df45d591a9a0b33bacc55477350))
|
|
11
|
-
|
|
12
|
-
### Features
|
|
13
|
-
|
|
14
|
-
- deliver package vars through a shared runtime, not a global ([9473f62](https://github.com/appshellhq/appshell/commit/9473f6204b75885cd55b12a9ec71a44a74d6aa41))
|
|
15
|
-
- rename core vocabulary to Package / Application / Remote ([418b7e0](https://github.com/appshellhq/appshell/commit/418b7e010b6caa1af661f7fd9c05e751e69315a9))
|
|
16
|
-
|
|
17
|
-
# [1.0.0-alpha.14](https://github.com/appshell-org/appshell/compare/v1.0.0-alpha.13...v1.0.0-alpha.14) (2026-08-23)
|
|
18
|
-
|
|
19
|
-
**Note:** Version bump only for package @appshell/react
|
|
20
|
-
|
|
21
|
-
# [1.0.0-alpha.13](https://github.com/appshell-org/appshell/compare/v1.0.0-alpha.12...v1.0.0-alpha.13) (2026-08-22)
|
|
22
|
-
|
|
23
|
-
### Bug Fixes
|
|
24
|
-
|
|
25
|
-
- **loader,react:** stop forcing a full page reload on remote updates ([36b96c4](https://github.com/appshell-org/appshell/commit/36b96c471dcedf1d29847ef5e41fb21c04864d45))
|
|
26
|
-
|
|
27
|
-
### Features
|
|
28
|
-
|
|
29
|
-
- **hmr:** checkpoint current composed app hot reload work ([165788d](https://github.com/appshell-org/appshell/commit/165788d2f276e5f82b750d84abf6cab2e73f8f64))
|
|
30
|
-
|
|
31
|
-
# [1.0.0-alpha.12](https://github.com/appshell-org/appshell/compare/v1.0.0-alpha.11...v1.0.0-alpha.12) (2026-08-21)
|
|
32
|
-
|
|
33
|
-
### Bug Fixes
|
|
34
|
-
|
|
35
|
-
- improve local federation HMR and shell share behavior ([463d85c](https://github.com/appshell-org/appshell/commit/463d85ce0f18f6111a09b5d94d39d24fb813abc8))
|
|
36
|
-
|
|
37
|
-
# [1.0.0-alpha.11](https://github.com/appshell-org/appshell/compare/v1.0.0-alpha.10...v1.0.0-alpha.11) (2026-08-20)
|
|
38
|
-
|
|
39
|
-
**Note:** Version bump only for package @appshell/react
|
|
40
|
-
|
|
41
|
-
# [1.0.0-alpha.10](https://github.com/appshell-org/appshell/compare/v1.0.0-alpha.9...v1.0.0-alpha.10) (2026-08-19)
|
|
42
|
-
|
|
43
|
-
**Note:** Version bump only for package @appshell/react
|
|
44
|
-
|
|
45
|
-
# [1.0.0-alpha.8](https://github.com/appshell-org/appshell/compare/v1.0.0-alpha.7...v1.0.0-alpha.8) (2026-08-19)
|
|
46
|
-
|
|
47
|
-
**Note:** Version bump only for package @appshell/react
|
|
48
|
-
|
|
49
|
-
# [1.0.0-alpha.7](https://github.com/appshell-org/appshell/compare/v1.0.0-alpha.6...v1.0.0-alpha.7) (2026-08-18)
|
|
50
|
-
|
|
51
|
-
**Note:** Version bump only for package @appshell/react
|
|
52
|
-
|
|
53
|
-
**Note:** Version bump only for package @appshell/react
|
|
54
|
-
|
|
55
|
-
# [1.0.0-alpha.6](https://github.com/appshell-org/appshell/compare/v1.0.0-alpha.5...v1.0.0-alpha.6) (2026-08-18)
|
|
56
|
-
|
|
57
|
-
**Note:** Version bump only for package @appshell/react
|
|
58
|
-
|
|
59
|
-
# [1.0.0-alpha.5](https://github.com/appshell-org/appshell/compare/v1.0.0-alpha.4...v1.0.0-alpha.5) (2026-08-18)
|
|
60
|
-
|
|
61
|
-
**Note:** Version bump only for package @appshell/react
|
|
62
|
-
|
|
63
|
-
**Note:** Version bump only for package @appshell/react
|
|
64
|
-
|
|
65
|
-
# [1.0.0-alpha.4](https://github.com/appshell-org/appshell/compare/v1.0.0-alpha.3...v1.0.0-alpha.4) (2026-08-18)
|
|
66
|
-
|
|
67
|
-
**Note:** Version bump only for package @appshell/react
|
|
68
|
-
|
|
69
|
-
**Note:** Version bump only for package @appshell/react
|
|
70
|
-
|
|
71
|
-
# [1.0.0-alpha.3](https://github.com/appshell-org/appshell/compare/v1.0.0-alpha.2...v1.0.0-alpha.3) (2026-08-18)
|
|
72
|
-
|
|
73
|
-
**Note:** Version bump only for package @appshell/react
|
|
74
|
-
|
|
75
|
-
# 0.12.0-alpha.0 (2026-04-20)
|
|
76
|
-
|
|
77
|
-
### Bug Fixes
|
|
78
|
-
|
|
79
|
-
- appshell loader override check ([aedda4a](https://github.com/appshell-org/appshell/commit/aedda4abf81560297dce03df09fba68e8785242f))
|
|
80
|
-
- capture direct dependencies passed to FederatedComponent for re-render ([3621879](https://github.com/appshell-org/appshell/commit/36218793a5cb47f74bd8d1ce93deffdb1b85cd1c))
|
|
81
|
-
- rename @appshell/react-federated-component package to @appshell/react ([0b74498](https://github.com/appshell-org/appshell/commit/0b74498bf17ba73db4d936c8a012af1d3b111a28))
|
|
82
|
-
- update repository URLs from navaris/appshell to appshell-org/appshell ([506a90d](https://github.com/appshell-org/appshell/commit/506a90d94a6f6e10f463987d408550f48624bfd0))
|
|
83
|
-
|
|
84
|
-
### Features
|
|
85
|
-
|
|
86
|
-
- api key support ([9cdcbee](https://github.com/appshell-org/appshell/commit/9cdcbee36e44b8a179b49768d74a25767f1cc5f2))
|
|
87
|
-
- AppshellComponent impl ([2b82621](https://github.com/appshell-org/appshell/commit/2b82621c13302f790a8e1c457f9a82f39903fc1f))
|
|
88
|
-
- consolidate runtime artifacts ([#26](https://github.com/appshell-org/appshell/issues/26)) ([a29479a](https://github.com/appshell-org/appshell/commit/a29479a49f0c5ec1273c9f8e4c7384096f2d4ba0))
|
|
89
|
-
|
|
90
|
-
## [0.4.1-alpha.0](https://github.com/appshell-org/appshell/compare/@appshell/react@0.4.0...@appshell/react@0.4.1-alpha.0) (2026-04-20)
|
|
91
|
-
|
|
92
|
-
### Bug Fixes
|
|
93
|
-
|
|
94
|
-
- update repository URLs from navaris/appshell to appshell-org/appshell ([506a90d](https://github.com/appshell-org/appshell/commit/506a90d94a6f6e10f463987d408550f48624bfd0))
|
|
95
|
-
|
|
96
|
-
# [0.4.0](https://github.com/navaris/appshell/compare/@appshell/react@0.3.0...@appshell/react@0.4.0) (2024-09-24)
|
|
97
|
-
|
|
98
|
-
### Features
|
|
99
|
-
|
|
100
|
-
- api key support ([9cdcbee](https://github.com/navaris/appshell/commit/9cdcbee36e44b8a179b49768d74a25767f1cc5f2))
|
|
101
|
-
|
|
102
|
-
# [0.4.0-alpha.0](https://github.com/navaris/appshell/compare/@appshell/react@0.3.1-alpha.0...@appshell/react@0.4.0-alpha.0) (2024-09-05)
|
|
103
|
-
|
|
104
|
-
### Features
|
|
105
|
-
|
|
106
|
-
- api key support ([8c91e62](https://github.com/navaris/appshell/commit/8c91e6240b3d879af9bdd5949924865da0e0f8a1))
|
|
107
|
-
|
|
108
|
-
## [0.3.1-alpha.0](https://github.com/navaris/appshell/compare/@appshell/react@0.3.0...@appshell/react@0.3.1-alpha.0) (2024-08-31)
|
|
109
|
-
|
|
110
|
-
### Bug Fixes
|
|
111
|
-
|
|
112
|
-
- bump pipeline ([8bb63bc](https://github.com/navaris/appshell/commit/8bb63bcae1928c01bb6bc853d88010939e686af5))
|
|
113
|
-
|
|
114
|
-
# [0.3.0](https://github.com/navaris/appshell/compare/@appshell/react@0.2.2...@appshell/react@0.3.0) (2024-01-25)
|
|
115
|
-
|
|
116
|
-
### Features
|
|
117
|
-
|
|
118
|
-
- AppshellComponent impl ([2b82621](https://github.com/navaris/appshell/commit/2b82621c13302f790a8e1c457f9a82f39903fc1f))
|
|
119
|
-
|
|
120
|
-
## [0.2.2](https://github.com/navaris/appshell/compare/@appshell/react@0.2.1...@appshell/react@0.2.2) (2024-01-04)
|
|
121
|
-
|
|
122
|
-
### Bug Fixes
|
|
123
|
-
|
|
124
|
-
- capture direct dependencies passed to FederatedComponent for re-render ([3621879](https://github.com/navaris/appshell/commit/36218793a5cb47f74bd8d1ce93deffdb1b85cd1c))
|
|
125
|
-
|
|
126
|
-
## [0.2.1](https://github.com/navaris/appshell/compare/@appshell/react@0.2.0...@appshell/react@0.2.1) (2023-08-29)
|
|
127
|
-
|
|
128
|
-
### Bug Fixes
|
|
129
|
-
|
|
130
|
-
- appshell loader override check ([aedda4a](https://github.com/navaris/appshell/commit/aedda4abf81560297dce03df09fba68e8785242f))
|
|
131
|
-
|
|
132
|
-
# [0.2.0](https://github.com/navaris/appshell/compare/@appshell/react@0.2.0-alpha.0...@appshell/react@0.2.0) (2023-08-28)
|
|
133
|
-
|
|
134
|
-
**Note:** Version bump only for package @appshell/react
|
|
135
|
-
|
|
136
|
-
# [0.2.0-alpha.0](https://github.com/navaris/appshell/compare/@appshell/react@0.1.0...@appshell/react@0.2.0-alpha.0) (2023-08-23)
|
|
137
|
-
|
|
138
|
-
### Features
|
|
139
|
-
|
|
140
|
-
- consolidate runtime artifacts ([#26](https://github.com/navaris/appshell/issues/26)) ([a29479a](https://github.com/navaris/appshell/commit/a29479a49f0c5ec1273c9f8e4c7384096f2d4ba0))
|
|
141
|
-
|
|
142
|
-
# [0.1.0](https://github.com/navaris/appshell/compare/@appshell/react@0.1.0-alpha.6...@appshell/react@0.1.0) (2023-07-11)
|
|
143
|
-
|
|
144
|
-
**Note:** Version bump only for package @appshell/react
|
|
145
|
-
|
|
146
|
-
# 0.1.0-alpha.6 (2023-07-10)
|
|
147
|
-
|
|
148
|
-
### Bug Fixes
|
|
149
|
-
|
|
150
|
-
- rename @appshell/react-federated-component package to @appshell/react ([0b74498](https://github.com/navaris/appshell/commit/0b74498bf17ba73db4d936c8a012af1d3b111a28))
|
|
151
|
-
|
|
152
|
-
# [0.1.0-alpha.5](https://github.com/navaris/appshell/compare/@appshell/react-federated-component@0.1.0-alpha.4...@appshell/react-federated-component@0.1.0-alpha.5) (2023-07-10)
|
|
153
|
-
|
|
154
|
-
### Bug Fixes
|
|
155
|
-
|
|
156
|
-
- registry projection, enable env overwrite, refactor docker workflow, consolidate env names ([33a28fe](https://github.com/navaris/appshell/commit/33a28fe76b58e05c5b6b6b33d4b402e52bb29e70))
|
|
157
|
-
|
|
158
|
-
# [0.1.0-alpha.4](https://github.com/navaris/appshell/compare/@appshell/react-federated-component@0.1.0-alpha.3...@appshell/react-federated-component@0.1.0-alpha.4) (2023-07-06)
|
|
159
|
-
|
|
160
|
-
### Bug Fixes
|
|
161
|
-
|
|
162
|
-
- metadata urls ([efcce1c](https://github.com/navaris/appshell/commit/efcce1ce4cb1745afa83661cae1414a73f837483))
|
|
163
|
-
|
|
164
|
-
# [0.1.0-alpha.3](https://github.com/navaris/appshell/compare/@appshell/react-federated-component@0.1.0-alpha.2...@appshell/react-federated-component@0.1.0-alpha.3) (2023-07-06)
|
|
165
|
-
|
|
166
|
-
### Bug Fixes
|
|
167
|
-
|
|
168
|
-
- support metadata generation ([4df202f](https://github.com/navaris/appshell/commit/4df202f0fd3b9ca6c660975b75eb0ac9b60225c2))
|
|
169
|
-
|
|
170
|
-
# [0.1.0-alpha.2](https://github.com/navaris/appshell/compare/@appshell/react-federated-component@0.1.0-alpha.1...@appshell/react-federated-component@0.1.0-alpha.2) (2023-07-06)
|
|
171
|
-
|
|
172
|
-
### Bug Fixes
|
|
173
|
-
|
|
174
|
-
- lint ([a4861ab](https://github.com/navaris/appshell/commit/a4861abfe82d1e0ab815aaa62cdf7907229d0136))
|
|
175
|
-
|
|
176
|
-
### Features
|
|
177
|
-
|
|
178
|
-
- appshell start, cleanup dev workflow ([74fd2e5](https://github.com/navaris/appshell/commit/74fd2e5a5acd2415482268175c7f3f16cd7c93ec))
|
|
179
|
-
|
|
180
|
-
# [0.1.0-alpha.1](https://github.com/navaris/appshell/compare/@appshell/react-federated-component@0.0.3...@appshell/react-federated-component@0.1.0-alpha.1) (2023-07-05)
|
|
181
|
-
|
|
182
|
-
### Features
|
|
183
|
-
|
|
184
|
-
- foundation refactor wip ([339b930](https://github.com/navaris/appshell/commit/339b9306accaa9aba1712f3a0dee6c4cab7ed273))
|
|
185
|
-
|
|
186
|
-
# [0.1.0-alpha.0](https://github.com/navaris/appshell/compare/@appshell/react-federated-component@0.0.3...@appshell/react-federated-component@0.1.0-alpha.0) (2023-07-05)
|
|
187
|
-
|
|
188
|
-
### Features
|
|
189
|
-
|
|
190
|
-
- registry index ([8e6ee0a](https://github.com/navaris/appshell/commit/8e6ee0a6a377584efa2ee702168025f46108b8c5))
|
|
191
|
-
|
|
192
|
-
## [0.0.3](https://github.com/navaris/appshell/compare/@appshell/react-federated-component@0.0.3-alpha.2...@appshell/react-federated-component@0.0.3) (2023-06-29)
|
|
193
|
-
|
|
194
|
-
**Note:** Version bump only for package @appshell/react-federated-component
|
|
195
|
-
|
|
196
|
-
## [0.0.3-alpha.2](https://github.com/navaris/appshell/compare/@appshell/react-federated-component@0.0.2...@appshell/react-federated-component@0.0.3-alpha.2) (2023-06-29)
|
|
197
|
-
|
|
198
|
-
**Note:** Version bump only for package @appshell/react-federated-component
|
|
199
|
-
|
|
200
|
-
## [0.0.3-alpha.1](https://github.com/navaris/appshell/compare/@appshell/react-federated-component@0.0.3-alpha.0...@appshell/react-federated-component@0.0.3-alpha.1) (2023-06-29)
|
|
201
|
-
|
|
202
|
-
### Bug Fixes
|
|
203
|
-
|
|
204
|
-
- update npm package visibility ([1ef4119](https://github.com/navaris/appshell/commit/1ef411903dd038dfc781e8ce0700811e5460c903))
|
|
205
|
-
|
|
206
|
-
## [0.0.3-alpha.0](https://github.com/navaris/appshell/compare/@appshell/react-federated-component@0.0.2-alpha.1...@appshell/react-federated-component@0.0.3-alpha.0) (2023-06-29)
|
|
207
|
-
|
|
208
|
-
**Note:** Version bump only for package @appshell/react-federated-component
|
|
209
|
-
|
|
210
|
-
## [0.0.2](https://github.com/navaris/appshell/compare/@appshell/react-federated-component@0.0.2-alpha.1...@appshell/react-federated-component@0.0.2) (2023-06-29)
|
|
211
|
-
|
|
212
|
-
**Note:** Version bump only for package @appshell/react-federated-component
|
|
213
|
-
|
|
214
|
-
## [0.0.2-alpha.1](https://github.com/navaris/appshell/compare/@appshell/react-federated-component@0.0.2-alpha.0...@appshell/react-federated-component@0.0.2-alpha.1) (2023-06-24)
|
|
215
|
-
|
|
216
|
-
### Bug Fixes
|
|
217
|
-
|
|
218
|
-
- add useEffect dependencies for federated component ([616039e](https://github.com/navaris/appshell/commit/616039ebb3f46f34db0b82acfb6ee5438a6b4731))
|
|
219
|
-
|
|
220
|
-
## [0.0.2-alpha.0](https://github.com/navaris/appshell/compare/@appshell/react-federated-component@0.0.1...@appshell/react-federated-component@0.0.2-alpha.0) (2023-06-15)
|
|
221
|
-
|
|
222
|
-
### Bug Fixes
|
|
223
|
-
|
|
224
|
-
- hot module replacement support, example updates ([a67d230](https://github.com/navaris/appshell/commit/a67d2303b40f5911373225cc0b4ccf9b67c33d11))
|
|
225
|
-
|
|
226
|
-
## 0.0.1 (2023-06-15)
|
|
227
|
-
|
|
228
|
-
**Note:** Version bump only for package @appshell/react-federated-component
|
|
229
|
-
|
|
230
|
-
## [0.0.1-alpha.2](https://github.com/navaris/appshell/compare/@appshell/react-federated-component@0.0.1-alpha.1...@appshell/react-federated-component@0.0.1-alpha.2) (2023-06-15)
|
|
231
|
-
|
|
232
|
-
### Bug Fixes
|
|
233
|
-
|
|
234
|
-
- hot module replacement support, example updates ([a67d230](https://github.com/navaris/appshell/commit/a67d2303b40f5911373225cc0b4ccf9b67c33d11))
|
|
235
|
-
|
|
236
|
-
## [0.0.1-alpha.1](https://github.com/navaris/appshell/compare/@appshell/react-federated-component@0.0.1-alpha.0...@appshell/react-federated-component@0.0.1-alpha.1) (2023-03-19)
|
|
237
|
-
|
|
238
|
-
**Note:** Version bump only for package @appshell/react-federated-component
|
|
239
|
-
|
|
240
|
-
## 0.0.1-alpha.0 (2023-03-19)
|
|
241
|
-
|
|
242
|
-
**Note:** Version bump only for package @appshell/react-federated-component
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/** @jest-environment jsdom */
|
|
2
|
-
import { render } from '@testing-library/react';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import LoadingError from '../src/components/LoadingError';
|
|
5
|
-
|
|
6
|
-
describe('LoadingError', () => {
|
|
7
|
-
it('should match snapshot', () => {
|
|
8
|
-
const view = render(
|
|
9
|
-
<LoadingError remote="TestModule/TestComponent" reason="Could not find component" />,
|
|
10
|
-
);
|
|
11
|
-
|
|
12
|
-
expect(view).toMatchSnapshot();
|
|
13
|
-
});
|
|
14
|
-
});
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/** @jest-environment jsdom */
|
|
2
|
-
import * as remoteLoader from '@appshell/loader';
|
|
3
|
-
import '@testing-library/jest-dom';
|
|
4
|
-
import { act, render, screen } from '@testing-library/react';
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import RemoteSlot from '../src/components/RemoteSlot';
|
|
7
|
-
import manifest from './fixtures/Manifest';
|
|
8
|
-
import TestComponent from './fixtures/TestComponent';
|
|
9
|
-
|
|
10
|
-
const TestFallback = () => <div>loading...</div>;
|
|
11
|
-
|
|
12
|
-
describe('RemoteSlot', () => {
|
|
13
|
-
it('should match snapshot', async () => {
|
|
14
|
-
jest.spyOn(remoteLoader, 'default').mockReturnValueOnce(async () => [TestComponent, manifest.remotes['TestModule/TestComponent']]);
|
|
15
|
-
|
|
16
|
-
const { container, findByText } = await act(() =>
|
|
17
|
-
render(<RemoteSlot remote="TestModule/TestComponent" />),
|
|
18
|
-
);
|
|
19
|
-
const view = await findByText(/test component/i);
|
|
20
|
-
|
|
21
|
-
expect(view).toBeInTheDocument();
|
|
22
|
-
expect(container).toMatchSnapshot();
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
it('should render fallback while resource is pending', async () => {
|
|
26
|
-
jest.spyOn(remoteLoader, 'default').mockReturnValueOnce(() => [null, null]);
|
|
27
|
-
|
|
28
|
-
await act(() =>
|
|
29
|
-
render(<RemoteSlot remote="TestModule/TestComponent" fallback={<TestFallback />} />),
|
|
30
|
-
);
|
|
31
|
-
|
|
32
|
-
expect(screen.getByText(/loading/i)).toBeInTheDocument();
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
it('should render error when resource fails', async () => {
|
|
36
|
-
jest
|
|
37
|
-
.spyOn(remoteLoader, 'default')
|
|
38
|
-
.mockImplementationOnce(() => new Error('Failed to get resource'));
|
|
39
|
-
|
|
40
|
-
await act(() =>
|
|
41
|
-
render(<RemoteSlot remote="TestModule/TestComponent" fallback={<TestFallback />} />),
|
|
42
|
-
);
|
|
43
|
-
|
|
44
|
-
expect(screen.getByText(/Error loading Appshell component/i)).toBeInTheDocument();
|
|
45
|
-
});
|
|
46
|
-
});
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`LoadingError should match snapshot 1`] = `
|
|
4
|
-
{
|
|
5
|
-
"asFragment": [Function],
|
|
6
|
-
"baseElement": <body>
|
|
7
|
-
<div>
|
|
8
|
-
<div
|
|
9
|
-
style="border: 3px solid red;"
|
|
10
|
-
>
|
|
11
|
-
<h5>
|
|
12
|
-
Error loading Appshell component 'TestModule/TestComponent.'
|
|
13
|
-
</h5>
|
|
14
|
-
<span
|
|
15
|
-
style="font-size: 1rem;"
|
|
16
|
-
>
|
|
17
|
-
Could not find component
|
|
18
|
-
</span>
|
|
19
|
-
</div>
|
|
20
|
-
</div>
|
|
21
|
-
</body>,
|
|
22
|
-
"container": <div>
|
|
23
|
-
<div
|
|
24
|
-
style="border: 3px solid red;"
|
|
25
|
-
>
|
|
26
|
-
<h5>
|
|
27
|
-
Error loading Appshell component 'TestModule/TestComponent.'
|
|
28
|
-
</h5>
|
|
29
|
-
<span
|
|
30
|
-
style="font-size: 1rem;"
|
|
31
|
-
>
|
|
32
|
-
Could not find component
|
|
33
|
-
</span>
|
|
34
|
-
</div>
|
|
35
|
-
</div>,
|
|
36
|
-
"debug": [Function],
|
|
37
|
-
"findAllByAltText": [Function],
|
|
38
|
-
"findAllByDisplayValue": [Function],
|
|
39
|
-
"findAllByLabelText": [Function],
|
|
40
|
-
"findAllByPlaceholderText": [Function],
|
|
41
|
-
"findAllByRole": [Function],
|
|
42
|
-
"findAllByTestId": [Function],
|
|
43
|
-
"findAllByText": [Function],
|
|
44
|
-
"findAllByTitle": [Function],
|
|
45
|
-
"findByAltText": [Function],
|
|
46
|
-
"findByDisplayValue": [Function],
|
|
47
|
-
"findByLabelText": [Function],
|
|
48
|
-
"findByPlaceholderText": [Function],
|
|
49
|
-
"findByRole": [Function],
|
|
50
|
-
"findByTestId": [Function],
|
|
51
|
-
"findByText": [Function],
|
|
52
|
-
"findByTitle": [Function],
|
|
53
|
-
"getAllByAltText": [Function],
|
|
54
|
-
"getAllByDisplayValue": [Function],
|
|
55
|
-
"getAllByLabelText": [Function],
|
|
56
|
-
"getAllByPlaceholderText": [Function],
|
|
57
|
-
"getAllByRole": [Function],
|
|
58
|
-
"getAllByTestId": [Function],
|
|
59
|
-
"getAllByText": [Function],
|
|
60
|
-
"getAllByTitle": [Function],
|
|
61
|
-
"getByAltText": [Function],
|
|
62
|
-
"getByDisplayValue": [Function],
|
|
63
|
-
"getByLabelText": [Function],
|
|
64
|
-
"getByPlaceholderText": [Function],
|
|
65
|
-
"getByRole": [Function],
|
|
66
|
-
"getByTestId": [Function],
|
|
67
|
-
"getByText": [Function],
|
|
68
|
-
"getByTitle": [Function],
|
|
69
|
-
"queryAllByAltText": [Function],
|
|
70
|
-
"queryAllByDisplayValue": [Function],
|
|
71
|
-
"queryAllByLabelText": [Function],
|
|
72
|
-
"queryAllByPlaceholderText": [Function],
|
|
73
|
-
"queryAllByRole": [Function],
|
|
74
|
-
"queryAllByTestId": [Function],
|
|
75
|
-
"queryAllByText": [Function],
|
|
76
|
-
"queryAllByTitle": [Function],
|
|
77
|
-
"queryByAltText": [Function],
|
|
78
|
-
"queryByDisplayValue": [Function],
|
|
79
|
-
"queryByLabelText": [Function],
|
|
80
|
-
"queryByPlaceholderText": [Function],
|
|
81
|
-
"queryByRole": [Function],
|
|
82
|
-
"queryByTestId": [Function],
|
|
83
|
-
"queryByText": [Function],
|
|
84
|
-
"queryByTitle": [Function],
|
|
85
|
-
"rerender": [Function],
|
|
86
|
-
"unmount": [Function],
|
|
87
|
-
}
|
|
88
|
-
`;
|