@openmrs/esm-globals 7.0.1-pre.3259 → 7.0.1-pre.3273
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 +26 -0
- package/package.json +1 -1
- package/src/types.ts +32 -1
package/.turbo/turbo-build.log
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -290,6 +290,26 @@ export interface WorkspaceGroupDefinition {
|
|
|
290
290
|
*/
|
|
291
291
|
members?: Array<string>;
|
|
292
292
|
}
|
|
293
|
+
export interface WorkspaceGroupDefinition2 {
|
|
294
|
+
name: string;
|
|
295
|
+
closeable?: boolean;
|
|
296
|
+
overlay?: boolean;
|
|
297
|
+
}
|
|
298
|
+
export interface WorkspaceWindowDefinition2 {
|
|
299
|
+
name: string;
|
|
300
|
+
icon?: string;
|
|
301
|
+
canHide: boolean;
|
|
302
|
+
canMaximize: boolean;
|
|
303
|
+
overlay: boolean;
|
|
304
|
+
group: string;
|
|
305
|
+
order?: number;
|
|
306
|
+
width?: 'narrow' | 'wider' | 'extra-wide';
|
|
307
|
+
}
|
|
308
|
+
export interface WorkspaceDefinition2 {
|
|
309
|
+
name: string;
|
|
310
|
+
component: string;
|
|
311
|
+
window: string;
|
|
312
|
+
}
|
|
293
313
|
/**
|
|
294
314
|
* A definition of a feature flag extracted from the routes.json
|
|
295
315
|
*/
|
|
@@ -329,6 +349,12 @@ export interface OpenmrsAppRoutes {
|
|
|
329
349
|
workspaces?: Array<WorkspaceDefinition>;
|
|
330
350
|
/** An array of all workspace groups supported by this frontend module. */
|
|
331
351
|
workspaceGroups?: Array<WorkspaceGroupDefinition>;
|
|
352
|
+
/** An array of all workspace groups (v2) supported by this frontend module. */
|
|
353
|
+
workspaceGroups2?: Array<WorkspaceGroupDefinition2>;
|
|
354
|
+
/** An array of all workspace windows (v2) supported by this frontend module. */
|
|
355
|
+
workspaceWindows2?: Array<WorkspaceWindowDefinition2>;
|
|
356
|
+
/** An array of all workspaces (v2) supported by this frontend module. */
|
|
357
|
+
workspaces2?: Array<WorkspaceDefinition2>;
|
|
332
358
|
}
|
|
333
359
|
/**
|
|
334
360
|
* This interfaces describes the format of the overall routes.json loaded by the app shell.
|
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { LifeCycles } from 'single-spa';
|
|
2
1
|
import type { i18n } from 'i18next';
|
|
3
2
|
|
|
4
3
|
declare global {
|
|
@@ -311,6 +310,29 @@ export interface WorkspaceGroupDefinition {
|
|
|
311
310
|
members?: Array<string>;
|
|
312
311
|
}
|
|
313
312
|
|
|
313
|
+
export interface WorkspaceGroupDefinition2 {
|
|
314
|
+
name: string;
|
|
315
|
+
closeable?: boolean;
|
|
316
|
+
overlay?: boolean;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
export interface WorkspaceWindowDefinition2 {
|
|
320
|
+
name: string;
|
|
321
|
+
icon?: string;
|
|
322
|
+
canHide: boolean;
|
|
323
|
+
canMaximize: boolean;
|
|
324
|
+
overlay: boolean;
|
|
325
|
+
group: string;
|
|
326
|
+
order?: number;
|
|
327
|
+
width?: 'narrow' | 'wider' | 'extra-wide';
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
export interface WorkspaceDefinition2 {
|
|
331
|
+
name: string;
|
|
332
|
+
component: string;
|
|
333
|
+
window: string;
|
|
334
|
+
}
|
|
335
|
+
|
|
314
336
|
/**
|
|
315
337
|
* A definition of a feature flag extracted from the routes.json
|
|
316
338
|
*/
|
|
@@ -353,6 +375,15 @@ export interface OpenmrsAppRoutes {
|
|
|
353
375
|
workspaces?: Array<WorkspaceDefinition>;
|
|
354
376
|
/** An array of all workspace groups supported by this frontend module. */
|
|
355
377
|
workspaceGroups?: Array<WorkspaceGroupDefinition>;
|
|
378
|
+
|
|
379
|
+
/** An array of all workspace groups (v2) supported by this frontend module. */
|
|
380
|
+
workspaceGroups2?: Array<WorkspaceGroupDefinition2>;
|
|
381
|
+
|
|
382
|
+
/** An array of all workspace windows (v2) supported by this frontend module. */
|
|
383
|
+
workspaceWindows2?: Array<WorkspaceWindowDefinition2>;
|
|
384
|
+
|
|
385
|
+
/** An array of all workspaces (v2) supported by this frontend module. */
|
|
386
|
+
workspaces2?: Array<WorkspaceDefinition2>;
|
|
356
387
|
}
|
|
357
388
|
|
|
358
389
|
/**
|