@appshell/react 1.0.0-alpha.49 → 1.0.0-alpha.50
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.
|
@@ -14,6 +14,8 @@ export type PublishResult = {
|
|
|
14
14
|
/** `scope/name@version`. The scope comes from the token, not the caller. */
|
|
15
15
|
id: string;
|
|
16
16
|
created: boolean;
|
|
17
|
+
/** Empty unless a shared block was sent. See `openOverlay`. */
|
|
18
|
+
divergence: SharedDivergence[];
|
|
17
19
|
};
|
|
18
20
|
/**
|
|
19
21
|
* Publishing the same content twice is a no-op; publishing different content
|
|
@@ -40,6 +42,18 @@ export type OverlayRemotePatch = {
|
|
|
40
42
|
*/
|
|
41
43
|
metadata?: Metadata;
|
|
42
44
|
};
|
|
45
|
+
/** One shared dependency where a local build and the published version disagree. */
|
|
46
|
+
export type SharedDivergence = {
|
|
47
|
+
packageId: string;
|
|
48
|
+
shareScope: string;
|
|
49
|
+
packageName: string;
|
|
50
|
+
published?: string;
|
|
51
|
+
local?: string;
|
|
52
|
+
singleton: {
|
|
53
|
+
published: boolean;
|
|
54
|
+
local: boolean;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
43
57
|
export type OpenedOverlay = {
|
|
44
58
|
id: string;
|
|
45
59
|
confirmUrl: string;
|
|
@@ -52,6 +66,11 @@ export type OpenedOverlay = {
|
|
|
52
66
|
* already confirmed — nothing needs sending back to the confirmation page.
|
|
53
67
|
*/
|
|
54
68
|
created: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* What this build declares that the published version does not. Empty unless a shared
|
|
71
|
+
* block was sent — see `openOverlay`.
|
|
72
|
+
*/
|
|
73
|
+
divergence: SharedDivergence[];
|
|
55
74
|
};
|
|
56
75
|
/**
|
|
57
76
|
* Points some of an application's remotes at a developer's own machine, for that
|
|
@@ -69,4 +88,4 @@ export type OpenedOverlay = {
|
|
|
69
88
|
*
|
|
70
89
|
* @param application `scope/name`
|
|
71
90
|
*/
|
|
72
|
-
export declare const openOverlay: (registry: string, application: string, remotes: Record<string, OverlayRemotePatch>, token?: string) => Promise<OpenedOverlay>;
|
|
91
|
+
export declare const openOverlay: (registry: string, application: string, remotes: Record<string, OverlayRemotePatch>, token?: string, shared?: Record<string, unknown>) => Promise<OpenedOverlay>;
|
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.50",
|
|
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",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"react": "^18.2.0",
|
|
34
34
|
"react-dom": "^18.2.0"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "5a050a2d11fec75d77c567402986bca61945f8af",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@appshell/runtime": "^1.0.0-alpha.
|
|
38
|
+
"@appshell/runtime": "^1.0.0-alpha.50"
|
|
39
39
|
}
|
|
40
40
|
}
|