@openmrs/esm-globals 8.0.1-pre.3473 → 8.0.1-pre.3498

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.
@@ -1,3 +1,3 @@
1
- [0] Successfully compiled: 4 files with swc (259.48ms)
1
+ [0] Successfully compiled: 4 files with swc (232.16ms)
2
2
  [0] swc --strip-leading-paths src -d dist exited with code 0
3
3
  [1] tsc --project tsconfig.build.json exited with code 0
package/dist/types.d.ts CHANGED
@@ -298,13 +298,21 @@ export interface WorkspaceGroupDefinition2 {
298
298
  name: string;
299
299
  closeable?: boolean;
300
300
  overlay?: boolean;
301
+ /**
302
+ * In app-wide persistence mode, a workspace group renders its
303
+ * action menu without a close button. This is for
304
+ * workspace groups that are meant to be opened for the entire duration of the app
305
+ *
306
+ * In closable persistence mode, a workspace group renders its
307
+ * action menu with a close button. User may explicitly close the group, along
308
+ * with any opened windows / workspaces.
309
+ */
310
+ persistence?: 'app-wide' | 'closable';
301
311
  }
302
312
  export interface WorkspaceWindowDefinition2 {
303
313
  name: string;
304
314
  icon?: string;
305
- canHide: boolean;
306
- canMaximize: boolean;
307
- overlay: boolean;
315
+ canMaximize?: boolean;
308
316
  group: string;
309
317
  order?: number;
310
318
  width?: 'narrow' | 'wider' | 'extra-wide';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-globals",
3
- "version": "8.0.1-pre.3473",
3
+ "version": "8.0.1-pre.3498",
4
4
  "license": "MPL-2.0",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
package/src/types.ts CHANGED
@@ -318,14 +318,23 @@ export interface WorkspaceGroupDefinition2 {
318
318
  name: string;
319
319
  closeable?: boolean;
320
320
  overlay?: boolean;
321
+
322
+ /**
323
+ * In app-wide persistence mode, a workspace group renders its
324
+ * action menu without a close button. This is for
325
+ * workspace groups that are meant to be opened for the entire duration of the app
326
+ *
327
+ * In closable persistence mode, a workspace group renders its
328
+ * action menu with a close button. User may explicitly close the group, along
329
+ * with any opened windows / workspaces.
330
+ */
331
+ persistence?: 'app-wide' | 'closable';
321
332
  }
322
333
 
323
334
  export interface WorkspaceWindowDefinition2 {
324
335
  name: string;
325
336
  icon?: string;
326
- canHide: boolean;
327
- canMaximize: boolean;
328
- overlay: boolean;
337
+ canMaximize?: boolean;
329
338
  group: string;
330
339
  order?: number;
331
340
  width?: 'narrow' | 'wider' | 'extra-wide';