@openmrs/esm-globals 7.0.0 → 7.0.1-pre.3258
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/.turbo/turbo-build.log +1 -1
- package/dist/types.d.ts +4 -53
- package/package.json +3 -2
- package/src/types.ts +16 -67
package/.turbo/turbo-build.log
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { LifeCycles } from 'single-spa';
|
|
2
1
|
import type { i18n } from 'i18next';
|
|
3
2
|
declare global {
|
|
4
3
|
const __webpack_share_scopes__: Record<string, Record<string, {
|
|
@@ -207,27 +206,11 @@ export type ExtensionDefinition = {
|
|
|
207
206
|
meta?: {
|
|
208
207
|
[k: string]: unknown;
|
|
209
208
|
};
|
|
210
|
-
} & ({
|
|
211
209
|
/**
|
|
212
210
|
* The name of the component exported by this frontend module.
|
|
213
211
|
*/
|
|
214
212
|
component: string;
|
|
215
|
-
|
|
216
|
-
* @internal
|
|
217
|
-
*/
|
|
218
|
-
load?: never;
|
|
219
|
-
} | {
|
|
220
|
-
/**
|
|
221
|
-
* The name of the component exported by this frontend module.
|
|
222
|
-
*/
|
|
223
|
-
component?: never;
|
|
224
|
-
/**
|
|
225
|
-
* @internal
|
|
226
|
-
*/
|
|
227
|
-
load: () => Promise<{
|
|
228
|
-
default?: LifeCycles;
|
|
229
|
-
} & LifeCycles>;
|
|
230
|
-
});
|
|
213
|
+
};
|
|
231
214
|
/**
|
|
232
215
|
* A definition of a modal as extracted from an app's routes.json
|
|
233
216
|
*/
|
|
@@ -236,27 +219,11 @@ export type ModalDefinition = {
|
|
|
236
219
|
* The name of this modal. This is used to launch the modal.
|
|
237
220
|
*/
|
|
238
221
|
name: string;
|
|
239
|
-
} & ({
|
|
240
222
|
/**
|
|
241
223
|
* The name of the component exported by this frontend module.
|
|
242
224
|
*/
|
|
243
225
|
component: string;
|
|
244
|
-
|
|
245
|
-
* @internal
|
|
246
|
-
*/
|
|
247
|
-
load?: never;
|
|
248
|
-
} | {
|
|
249
|
-
/**
|
|
250
|
-
* The name of the component exported by this frontend module.
|
|
251
|
-
*/
|
|
252
|
-
component?: never;
|
|
253
|
-
/**
|
|
254
|
-
* @internal
|
|
255
|
-
*/
|
|
256
|
-
load: () => Promise<{
|
|
257
|
-
default?: LifeCycles;
|
|
258
|
-
} & LifeCycles>;
|
|
259
|
-
});
|
|
226
|
+
};
|
|
260
227
|
export type WorkspaceWindowState = 'maximized' | 'hidden' | 'normal';
|
|
261
228
|
/**
|
|
262
229
|
* A definition of a workspace as extracted from an app's routes.json
|
|
@@ -310,27 +277,11 @@ export type WorkspaceDefinition = {
|
|
|
310
277
|
*
|
|
311
278
|
*/
|
|
312
279
|
groups: Array<string>;
|
|
313
|
-
} & ({
|
|
314
280
|
/**
|
|
315
281
|
* The name of the component exported by this frontend module.
|
|
316
282
|
*/
|
|
317
283
|
component: string;
|
|
318
|
-
|
|
319
|
-
* @internal
|
|
320
|
-
*/
|
|
321
|
-
load?: never;
|
|
322
|
-
} | {
|
|
323
|
-
/**
|
|
324
|
-
* The name of the component exported by this frontend module.
|
|
325
|
-
*/
|
|
326
|
-
component?: never;
|
|
327
|
-
/**
|
|
328
|
-
* @internal
|
|
329
|
-
*/
|
|
330
|
-
load: () => Promise<{
|
|
331
|
-
default?: LifeCycles;
|
|
332
|
-
} & LifeCycles>;
|
|
333
|
-
});
|
|
284
|
+
};
|
|
334
285
|
export interface WorkspaceGroupDefinition {
|
|
335
286
|
/**
|
|
336
287
|
* Name of the workspace group. This is used to launch the workspace group
|
|
@@ -382,7 +333,7 @@ export interface OpenmrsAppRoutes {
|
|
|
382
333
|
workspaceGroups?: Array<WorkspaceGroupDefinition>;
|
|
383
334
|
}
|
|
384
335
|
/**
|
|
385
|
-
* This interfaces describes the format of the overall
|
|
336
|
+
* This interfaces describes the format of the overall routes.json loaded by the app shell.
|
|
386
337
|
* Basically, this is the same as the app routes, with each routes definition keyed by the app's name
|
|
387
338
|
*/
|
|
388
339
|
export type OpenmrsRoutes = Record<string, OpenmrsAppRoutes>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-globals",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.1-pre.3258",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -55,5 +55,6 @@
|
|
|
55
55
|
"concurrently": "^9.1.2",
|
|
56
56
|
"rimraf": "^6.0.1",
|
|
57
57
|
"single-spa": "^6.0.3"
|
|
58
|
-
}
|
|
58
|
+
},
|
|
59
|
+
"stableVersion": "7.0.0"
|
|
59
60
|
}
|
package/src/types.ts
CHANGED
|
@@ -218,28 +218,11 @@ export type ExtensionDefinition = {
|
|
|
218
218
|
meta?: {
|
|
219
219
|
[k: string]: unknown;
|
|
220
220
|
};
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
component: string;
|
|
227
|
-
/**
|
|
228
|
-
* @internal
|
|
229
|
-
*/
|
|
230
|
-
load?: never;
|
|
231
|
-
}
|
|
232
|
-
| {
|
|
233
|
-
/**
|
|
234
|
-
* The name of the component exported by this frontend module.
|
|
235
|
-
*/
|
|
236
|
-
component?: never;
|
|
237
|
-
/**
|
|
238
|
-
* @internal
|
|
239
|
-
*/
|
|
240
|
-
load: () => Promise<{ default?: LifeCycles } & LifeCycles>;
|
|
241
|
-
}
|
|
242
|
-
);
|
|
221
|
+
/**
|
|
222
|
+
* The name of the component exported by this frontend module.
|
|
223
|
+
*/
|
|
224
|
+
component: string;
|
|
225
|
+
};
|
|
243
226
|
|
|
244
227
|
/**
|
|
245
228
|
* A definition of a modal as extracted from an app's routes.json
|
|
@@ -249,28 +232,11 @@ export type ModalDefinition = {
|
|
|
249
232
|
* The name of this modal. This is used to launch the modal.
|
|
250
233
|
*/
|
|
251
234
|
name: string;
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
component: string;
|
|
258
|
-
/**
|
|
259
|
-
* @internal
|
|
260
|
-
*/
|
|
261
|
-
load?: never;
|
|
262
|
-
}
|
|
263
|
-
| {
|
|
264
|
-
/**
|
|
265
|
-
* The name of the component exported by this frontend module.
|
|
266
|
-
*/
|
|
267
|
-
component?: never;
|
|
268
|
-
/**
|
|
269
|
-
* @internal
|
|
270
|
-
*/
|
|
271
|
-
load: () => Promise<{ default?: LifeCycles } & LifeCycles>;
|
|
272
|
-
}
|
|
273
|
-
);
|
|
235
|
+
/**
|
|
236
|
+
* The name of the component exported by this frontend module.
|
|
237
|
+
*/
|
|
238
|
+
component: string;
|
|
239
|
+
};
|
|
274
240
|
|
|
275
241
|
/* The possible states a workspace window can be opened in. */
|
|
276
242
|
export type WorkspaceWindowState = 'maximized' | 'hidden' | 'normal';
|
|
@@ -328,28 +294,11 @@ export type WorkspaceDefinition = {
|
|
|
328
294
|
*
|
|
329
295
|
*/
|
|
330
296
|
groups: Array<string>;
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
component: string;
|
|
337
|
-
/**
|
|
338
|
-
* @internal
|
|
339
|
-
*/
|
|
340
|
-
load?: never;
|
|
341
|
-
}
|
|
342
|
-
| {
|
|
343
|
-
/**
|
|
344
|
-
* The name of the component exported by this frontend module.
|
|
345
|
-
*/
|
|
346
|
-
component?: never;
|
|
347
|
-
/**
|
|
348
|
-
* @internal
|
|
349
|
-
*/
|
|
350
|
-
load: () => Promise<{ default?: LifeCycles } & LifeCycles>;
|
|
351
|
-
}
|
|
352
|
-
);
|
|
297
|
+
/**
|
|
298
|
+
* The name of the component exported by this frontend module.
|
|
299
|
+
*/
|
|
300
|
+
component: string;
|
|
301
|
+
};
|
|
353
302
|
|
|
354
303
|
export interface WorkspaceGroupDefinition {
|
|
355
304
|
/**
|
|
@@ -407,7 +356,7 @@ export interface OpenmrsAppRoutes {
|
|
|
407
356
|
}
|
|
408
357
|
|
|
409
358
|
/**
|
|
410
|
-
* This interfaces describes the format of the overall
|
|
359
|
+
* This interfaces describes the format of the overall routes.json loaded by the app shell.
|
|
411
360
|
* Basically, this is the same as the app routes, with each routes definition keyed by the app's name
|
|
412
361
|
*/
|
|
413
362
|
export type OpenmrsRoutes = Record<string, OpenmrsAppRoutes>;
|