zephyr-xpack-internal 0.0.0-canary-20250820154410 → 0.0.0-canary-20250918125108

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zephyr-xpack-internal",
3
- "version": "0.0.57",
3
+ "version": "0.0.59",
4
4
  "description": "Xpack internals for Zephyr",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,27 +1,3 @@
1
- export interface ShareScopeMap {
2
- [scopeName: string]: {
3
- [pkgName: string]: {
4
- [version: string]: {
5
- get: () => any;
6
- loaded?: boolean;
7
- from?: string;
8
- eager?: boolean;
9
- };
10
- };
11
- };
12
- }
13
- export interface ShareInfos {
14
- [pkgName: string]: {
15
- version: string;
16
- scope: string[];
17
- useIn: string[];
18
- from: string;
19
- lib: () => any;
20
- deps: string[];
21
- strategy?: 'version-first' | 'loaded-first';
22
- shareConfig?: any;
23
- };
24
- }
25
1
  export interface Remote {
26
2
  name: string;
27
3
  alias?: string;
@@ -30,268 +6,25 @@ export interface Remote {
30
6
  shareScope?: string;
31
7
  entryGlobalName?: string;
32
8
  }
33
- export interface Shared {
34
- version: string;
35
- scope: string[];
36
- useIn: string[];
37
- from: string;
38
- lib: () => any;
39
- deps: string[];
40
- strategy?: 'version-first' | 'loaded-first';
41
- shareConfig?: any;
42
- }
43
9
  export interface Options {
44
10
  name: string;
45
11
  version?: string;
46
12
  remotes: Remote[];
47
13
  shared: {
48
- [pkgName: string]: Shared[];
14
+ [pkgName: string]: any;
49
15
  };
50
16
  plugins?: FederationRuntimePlugin[];
51
17
  shareStrategy?: 'version-first' | 'loaded-first';
52
18
  }
53
- export interface UserOptions {
54
- name: string;
55
- version?: string;
56
- remotes?: Remote[];
57
- shared?: Record<string, any>;
58
- plugins?: FederationRuntimePlugin[];
59
- shareStrategy?: 'version-first' | 'loaded-first';
60
- }
61
- export interface RemoteInfo {
62
- name: string;
63
- alias?: string;
64
- entry: string;
65
- type?: string;
66
- shareScope?: string;
67
- entryGlobalName?: string;
68
- }
69
- export interface ModuleInfo {
70
- name: string;
71
- buildVersion: string;
72
- publicPath: string;
73
- types: {
74
- path: string;
75
- name: string;
76
- zip?: string;
77
- api?: string;
78
- };
79
- remotes: Array<{
80
- federationContainerName: string;
81
- moduleName: string;
82
- alias: string;
83
- entry: string;
84
- }>;
85
- shared: Array<{
86
- id: string;
87
- name: string;
88
- version: string;
89
- requiredVersion: string;
90
- assets: {
91
- js: {
92
- sync: string[];
93
- async: string[];
94
- };
95
- css: {
96
- sync: string[];
97
- async: string[];
98
- };
99
- };
100
- }>;
101
- exposes: Record<string, {
102
- id: string;
103
- name: string;
104
- assets: {
105
- js: {
106
- sync: string[];
107
- async: string[];
108
- };
109
- css: {
110
- sync: string[];
111
- async: string[];
112
- };
113
- };
114
- }>;
115
- }
116
- export interface BeforeInitHookArgs {
117
- userOptions: UserOptions;
118
- options: Options;
119
- origin: any;
120
- shareInfo: ShareInfos;
121
- }
122
- export interface InitHookArgs {
123
- options: Options;
124
- origin: any;
125
- }
126
- export interface BeforeInitContainerHookArgs {
127
- shareScope: ShareScopeMap[string];
128
- initScope: Record<string, any>;
129
- remoteEntryInitOptions: any;
130
- remoteInfo: RemoteInfo;
131
- origin: any;
132
- }
133
- export interface InitContainerHookArgs {
134
- shareScope: ShareScopeMap[string];
135
- initScope: Record<string, any>;
136
- remoteEntryInitOptions: any;
137
- remoteInfo: RemoteInfo;
138
- remoteEntryExports: any;
139
- origin: any;
140
- id: string;
141
- remoteSnapshot?: ModuleInfo;
142
- }
143
- export interface BeforeRegisterRemoteHookArgs {
144
- remote: Remote;
145
- origin: any;
146
- }
147
- export interface RegisterRemoteHookArgs {
148
- remote: Remote;
149
- origin: any;
150
- }
151
19
  export interface BeforeRequestHookArgs {
152
20
  id: string;
153
21
  options: Options;
154
22
  origin: any;
155
23
  }
156
- export interface OnLoadHookArgs {
157
- id: string;
158
- expose: string;
159
- pkgNameOrAlias: string;
160
- remote: Remote;
161
- options: any;
162
- origin: any;
163
- exposeModule: any;
164
- exposeModuleFactory: any;
165
- moduleInstance: any;
166
- }
167
- export interface AfterResolveHookArgs {
168
- id: string;
169
- pkgNameOrAlias: string;
170
- expose: string;
171
- remote: Remote;
172
- options: Options;
173
- origin: any;
174
- remoteInfo: RemoteInfo;
175
- remoteSnapshot?: ModuleInfo;
176
- }
177
- export interface BeforeLoadShareHookArgs {
178
- pkgName: string;
179
- shareInfo?: Shared;
180
- shared: Options['shared'];
181
- origin: any;
182
- }
183
- export interface LoadShareHookArgs {
184
- origin: any;
185
- pkgName: string;
186
- shareInfos: ShareInfos;
187
- }
188
- export interface ResolveShareHookArgs {
189
- shareScopeMap: ShareScopeMap;
190
- scope: string;
191
- pkgName: string;
192
- version: string;
193
- GlobalFederation: any;
194
- resolver: () => Shared | undefined;
195
- }
196
- export interface InitContainerShareScopeMapHookArgs {
197
- shareScope: ShareScopeMap[string];
198
- options: Options;
199
- origin: any;
200
- scopeName: string;
201
- hostShareScopeMap?: ShareScopeMap;
202
- }
203
- export interface BeforeLoadRemoteSnapshotHookArgs {
204
- options: Options;
205
- moduleInfo: Remote;
206
- }
207
- export interface LoadSnapshotHookArgs {
208
- options: Options;
209
- moduleInfo: Remote;
210
- hostGlobalSnapshot: any;
211
- globalSnapshot: any;
212
- remoteSnapshot?: any;
213
- }
214
- export interface LoadRemoteSnapshotHookArgs {
215
- options: Options;
216
- moduleInfo: Remote;
217
- manifestJson?: any;
218
- manifestUrl?: string;
219
- remoteSnapshot: ModuleInfo;
220
- from: 'global' | 'manifest';
221
- }
222
- export interface AfterLoadSnapshotHookArgs {
223
- id?: string;
224
- host: any;
225
- options: Options;
226
- moduleInfo: Remote;
227
- remoteSnapshot: ModuleInfo;
228
- }
229
- export interface GetModuleInfoHookArgs {
230
- target: Record<string, any>;
231
- key: any;
232
- }
233
- export interface CreateScriptHookArgs {
234
- url: string;
235
- attrs?: Record<string, any>;
236
- }
237
- export interface CreateLinkHookArgs {
238
- url: string;
239
- attrs?: Record<string, any>;
240
- }
241
- export interface FetchHookArgs {
242
- url: string;
243
- init: RequestInit;
244
- }
245
- export interface LoadEntryErrorHookArgs {
246
- getRemoteEntry: any;
247
- origin: any;
248
- remoteInfo: RemoteInfo;
249
- remoteEntryExports?: any;
250
- globalLoading: Record<string, Promise<void | any> | undefined>;
251
- uniqueKey: string;
252
- }
253
- export interface GetModuleFactoryHookArgs {
254
- remoteEntryExports: any;
255
- expose: string;
256
- moduleInfo: RemoteInfo;
257
- }
258
- export type BeforeBridgeRenderHookArgs = Record<string, any>;
259
- export type AfterBridgeRenderHookArgs = Record<string, any>;
260
- export type BeforeBridgeDestroyHookArgs = Record<string, any>;
261
- export type AfterBridgeDestroyHookArgs = Record<string, any>;
262
24
  export interface FederationRuntimePlugin {
263
25
  name: string;
264
26
  version?: string;
265
- beforeInit?: (args: BeforeInitHookArgs) => BeforeInitHookArgs | Promise<BeforeInitHookArgs>;
266
- init?: (args: InitHookArgs) => void;
267
- beforeInitContainer?: (args: BeforeInitContainerHookArgs) => BeforeInitContainerHookArgs | Promise<BeforeInitContainerHookArgs>;
268
- initContainer?: (args: InitContainerHookArgs) => InitContainerHookArgs | Promise<InitContainerHookArgs>;
269
- beforeRegisterRemote?: (args: BeforeRegisterRemoteHookArgs) => BeforeRegisterRemoteHookArgs | Promise<BeforeRegisterRemoteHookArgs>;
270
- registerRemote?: (args: RegisterRemoteHookArgs) => RegisterRemoteHookArgs | Promise<RegisterRemoteHookArgs>;
271
27
  beforeRequest?: (args: BeforeRequestHookArgs) => BeforeRequestHookArgs | Promise<BeforeRequestHookArgs>;
272
- onLoad?: (args: OnLoadHookArgs) => void | Promise<void>;
273
- afterResolve?: (args: AfterResolveHookArgs) => AfterResolveHookArgs | Promise<AfterResolveHookArgs>;
274
- beforeLoadShare?: (args: BeforeLoadShareHookArgs) => BeforeLoadShareHookArgs | Promise<BeforeLoadShareHookArgs>;
275
- loadShare?: (args: LoadShareHookArgs) => false | void | Promise<false | void>;
276
- resolveShare?: (args: ResolveShareHookArgs) => ResolveShareHookArgs | Promise<ResolveShareHookArgs>;
277
- initContainerShareScopeMap?: (args: InitContainerShareScopeMapHookArgs) => InitContainerShareScopeMapHookArgs | Promise<InitContainerShareScopeMapHookArgs>;
278
- beforeLoadRemoteSnapshot?: (args: BeforeLoadRemoteSnapshotHookArgs) => void | Promise<void>;
279
- loadSnapshot?: (args: LoadSnapshotHookArgs) => LoadSnapshotHookArgs | Promise<LoadSnapshotHookArgs>;
280
- loadRemoteSnapshot?: (args: LoadRemoteSnapshotHookArgs) => LoadRemoteSnapshotHookArgs | Promise<LoadRemoteSnapshotHookArgs>;
281
- afterLoadSnapshot?: (args: AfterLoadSnapshotHookArgs) => AfterLoadSnapshotHookArgs | Promise<AfterLoadSnapshotHookArgs>;
282
- getModuleInfo?: (args: GetModuleInfoHookArgs) => void | {
283
- value: any;
284
- key: string;
285
- };
286
- createScript?: (args: CreateScriptHookArgs) => any;
287
- createLink?: (args: CreateLinkHookArgs) => void | HTMLLinkElement;
288
- fetch?: (args: FetchHookArgs) => false | void | Promise<Response>;
289
- loadEntryError?: (args: LoadEntryErrorHookArgs) => Promise<(() => Promise<any>) | undefined>;
290
- getModuleFactory?: (args: GetModuleFactoryHookArgs) => Promise<(() => Promise<any>) | undefined>;
291
- beforeBridgeRender?: (args: BeforeBridgeRenderHookArgs) => void | Record<string, any>;
292
- afterBridgeRender?: (args: AfterBridgeRenderHookArgs) => void | Record<string, any>;
293
- beforeBridgeDestroy?: (args: BeforeBridgeDestroyHookArgs) => void | Record<string, any>;
294
- afterBridgeDestroy?: (args: AfterBridgeDestroyHookArgs) => void | Record<string, any>;
295
28
  }
296
29
  export interface RemoteWithEntry {
297
30
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zephyr-xpack-internal",
3
- "version": "0.0.0-canary-20250820154410",
3
+ "version": "0.0.0-canary-20250918125108",
4
4
  "description": "Xpack internals for Zephyr",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,8 +19,8 @@
19
19
  "@module-federation/automatic-vendor-federation": "^1.2.1",
20
20
  "is-ci": "^4.1.0",
21
21
  "tslib": "^2.8.1",
22
- "zephyr-edge-contract": "0.0.0-canary-20250820154410",
23
- "zephyr-agent": "0.0.0-canary-20250820154410"
22
+ "zephyr-agent": "0.0.0-canary-20250918125108",
23
+ "zephyr-edge-contract": "0.0.0-canary-20250918125108"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/is-ci": "3.0.4",