@openmrs/esm-framework 10.0.1-pre.5704 → 10.0.1-pre.5709

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 (127.66ms)
1
+ [0] Successfully compiled: 4 files with swc (137.49ms)
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
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **createGlobalStore**\<`T`\>(`name`, `initialState`, `storageType`): `StoreApi`\<`T`\>
6
6
 
7
- Defined in: [packages/framework/esm-state/src/state.ts:59](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-state/src/state.ts#L59)
7
+ Defined in: [packages/framework/esm-state/src/state.ts:61](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-state/src/state.ts#L61)
8
8
 
9
9
  Creates a Zustand store.
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **getGlobalStore**\<`T`\>(`name`, `fallbackState?`, `fallbackStorageType?`): `StoreApi`\<`T`\>
6
6
 
7
- Defined in: [packages/framework/esm-state/src/state.ts:126](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-state/src/state.ts#L126)
7
+ Defined in: [packages/framework/esm-state/src/state.ts:144](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-state/src/state.ts#L144)
8
8
 
9
9
  Returns the existing store named `name`,
10
10
  or creates a new store named `name` if none exists.
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **getRegisteredWorkspace2Names**(): `string`[]
6
6
 
7
- Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.ts:601](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.ts#L601)
7
+ Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.ts:682](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.ts#L682)
8
8
 
9
9
  ## Returns
10
10
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  > **subscribeTo**\<`T`, `U`\>(`store`, `handle`): () => `void`
8
8
 
9
- Defined in: [packages/framework/esm-state/src/state.ts:161](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-state/src/state.ts#L161)
9
+ Defined in: [packages/framework/esm-state/src/state.ts:179](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-state/src/state.ts#L179)
10
10
 
11
11
  Subscribes to a store and invokes a callback when the state changes.
12
12
  The callback is also immediately invoked with the current state upon subscription.
@@ -54,7 +54,7 @@ An unsubscribe function to stop listening for changes.
54
54
 
55
55
  > **subscribeTo**\<`T`, `U`\>(`store`, `select`, `handle`): () => `void`
56
56
 
57
- Defined in: [packages/framework/esm-state/src/state.ts:162](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-state/src/state.ts#L162)
57
+ Defined in: [packages/framework/esm-state/src/state.ts:180](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-state/src/state.ts#L180)
58
58
 
59
59
  Subscribes to a store and invokes a callback when the state changes.
60
60
  The callback is also immediately invoked with the current state upon subscription.
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **useWorkspace2Context**(): [`Workspace2DefinitionProps`](../interfaces/Workspace2DefinitionProps.md)\<`object`, `object`, `object`\>
6
6
 
7
- Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.ts:595](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.ts#L595)
7
+ Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.ts:676](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.ts#L676)
8
8
 
9
9
  Returns the react Context containing props passed into a workspace.
10
10
  This hook MUST be called inside a child of <Workspace2>
@@ -0,0 +1,64 @@
1
+ [O3 Framework](../API.md) / ExportedWorkspaceProps
2
+
3
+ # Interface: ExportedWorkspaceProps
4
+
5
+ Defined in: [packages/framework/esm-styleguide/src/workspaces2/exported-workspace.component.tsx:26](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/exported-workspace.component.tsx#L26)
6
+
7
+ ## Properties
8
+
9
+ ### groupProps?
10
+
11
+ > `optional` **groupProps**: `Record`\<`string`, `any`\>
12
+
13
+ Defined in: [packages/framework/esm-styleguide/src/workspaces2/exported-workspace.component.tsx:40](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/exported-workspace.component.tsx#L40)
14
+
15
+ ***
16
+
17
+ ### name
18
+
19
+ > **name**: `string`
20
+
21
+ Defined in: [packages/framework/esm-styleguide/src/workspaces2/exported-workspace.component.tsx:32](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/exported-workspace.component.tsx#L32)
22
+
23
+ The name of the workspace to open. Changing it (like changing `workspaceProps`, `windowProps` or
24
+ `groupProps`) discards the current workspaces, without prompting for unsaved changes, and opens
25
+ `name` afresh. To force a fresh instance without changing any of these, change the React `key`.
26
+
27
+ ***
28
+
29
+ ### windowProps?
30
+
31
+ > `optional` **windowProps**: `Record`\<`string`, `any`\>
32
+
33
+ Defined in: [packages/framework/esm-styleguide/src/workspaces2/exported-workspace.component.tsx:39](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/exported-workspace.component.tsx#L39)
34
+
35
+ ***
36
+
37
+ ### workspaceProps
38
+
39
+ > **workspaceProps**: `Record`\<`string`, `any`\>
40
+
41
+ Defined in: [packages/framework/esm-styleguide/src/workspaces2/exported-workspace.component.tsx:38](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/exported-workspace.component.tsx#L38)
42
+
43
+ The props passed into the workspace. Changing these (compared shallowly), or `windowProps` /
44
+ `groupProps`, discards the current workspaces and opens `name` afresh with the new props.
45
+
46
+ ## Methods
47
+
48
+ ### onWindowChanged()?
49
+
50
+ > `optional` **onWindowChanged**(`info`): `void`
51
+
52
+ Defined in: [packages/framework/esm-styleguide/src/workspaces2/exported-workspace.component.tsx:43](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/exported-workspace.component.tsx#L43)
53
+
54
+ Callback fired when the emulated window's state changes.
55
+
56
+ #### Parameters
57
+
58
+ ##### info
59
+
60
+ [`ExportedWorkspaceWindowInfo`](ExportedWorkspaceWindowInfo.md)
61
+
62
+ #### Returns
63
+
64
+ `void`
@@ -0,0 +1,46 @@
1
+ [O3 Framework](../API.md) / ExportedWorkspaceWindowInfo
2
+
3
+ # Interface: ExportedWorkspaceWindowInfo
4
+
5
+ Defined in: [packages/framework/esm-styleguide/src/workspaces2/exported-workspace.component.tsx:12](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/exported-workspace.component.tsx#L12)
6
+
7
+ ## Properties
8
+
9
+ ### hasUnsavedChanges
10
+
11
+ > **hasUnsavedChanges**: `boolean`
12
+
13
+ Defined in: [packages/framework/esm-styleguide/src/workspaces2/exported-workspace.component.tsx:23](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/exported-workspace.component.tsx#L23)
14
+
15
+ The `hasUnsavedChanges` of every workspace in the window, OR'd together.
16
+
17
+ ***
18
+
19
+ ### title
20
+
21
+ > **title**: `string`
22
+
23
+ Defined in: [packages/framework/esm-styleguide/src/workspaces2/exported-workspace.component.tsx:21](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/exported-workspace.component.tsx#L21)
24
+
25
+ The title of the currently-rendered (leaf) workspace, or `''` when all workspaces are closed.
26
+
27
+ ***
28
+
29
+ ### windowWidth
30
+
31
+ > **windowWidth**: [`WorkspaceWindow2Width`](../type-aliases/WorkspaceWindow2Width.md)
32
+
33
+ Defined in: [packages/framework/esm-styleguide/src/workspaces2/exported-workspace.component.tsx:19](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/exported-workspace.component.tsx#L19)
34
+
35
+ The emulated workspace window's configured width. Note that this is a static property of the
36
+ emulated workspace window, and does not change for the duration of the app.
37
+
38
+ ***
39
+
40
+ ### workspaceName
41
+
42
+ > **workspaceName**: `null` \| `string`
43
+
44
+ Defined in: [packages/framework/esm-styleguide/src/workspaces2/exported-workspace.component.tsx:14](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/exported-workspace.component.tsx#L14)
45
+
46
+ The name of the currently-rendered (leaf) workspace, or `null` when all workspaces are closed.
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Interface: FeatureFlagDefinition
4
4
 
5
- Defined in: [packages/framework/esm-globals/src/types.ts:262](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L262)
5
+ Defined in: [packages/framework/esm-globals/src/types.ts:264](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L264)
6
6
 
7
7
  A definition of a feature flag extracted from the routes.json
8
8
 
@@ -12,7 +12,7 @@ A definition of a feature flag extracted from the routes.json
12
12
 
13
13
  > **description**: `string`
14
14
 
15
- Defined in: [packages/framework/esm-globals/src/types.ts:268](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L268)
15
+ Defined in: [packages/framework/esm-globals/src/types.ts:270](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L270)
16
16
 
17
17
  An explanation of what the flag does, which will be displayed in the Implementer Tools
18
18
 
@@ -22,7 +22,7 @@ An explanation of what the flag does, which will be displayed in the Implementer
22
22
 
23
23
  > **flagName**: `string`
24
24
 
25
- Defined in: [packages/framework/esm-globals/src/types.ts:264](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L264)
25
+ Defined in: [packages/framework/esm-globals/src/types.ts:266](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L266)
26
26
 
27
27
  A code-friendly name for the flag, which will be used to reference it in code
28
28
 
@@ -32,6 +32,6 @@ A code-friendly name for the flag, which will be used to reference it in code
32
32
 
33
33
  > **label**: `string`
34
34
 
35
- Defined in: [packages/framework/esm-globals/src/types.ts:266](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L266)
35
+ Defined in: [packages/framework/esm-globals/src/types.ts:268](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L268)
36
36
 
37
37
  A human-friendly name which will be displayed in the Implementer Tools
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Interface: OpenmrsAppRoutes
4
4
 
5
- Defined in: [packages/framework/esm-globals/src/types.ts:272](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L272)
5
+ Defined in: [packages/framework/esm-globals/src/types.ts:274](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L274)
6
6
 
7
7
  This interface describes the format of the routes provided by an app
8
8
 
@@ -12,7 +12,7 @@ This interface describes the format of the routes provided by an app
12
12
 
13
13
  > `optional` **backendDependencies**: `Record`\<`string`, `string`\>
14
14
 
15
- Defined in: [packages/framework/esm-globals/src/types.ts:276](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L276)
15
+ Defined in: [packages/framework/esm-globals/src/types.ts:278](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L278)
16
16
 
17
17
  A list of backend modules necessary for this frontend module and the corresponding required versions.
18
18
 
@@ -22,7 +22,7 @@ A list of backend modules necessary for this frontend module and the correspondi
22
22
 
23
23
  > `optional` **extensions**: [`ExtensionDefinition`](../type-aliases/ExtensionDefinition.md)[]
24
24
 
25
- Defined in: [packages/framework/esm-globals/src/types.ts:292](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L292)
25
+ Defined in: [packages/framework/esm-globals/src/types.ts:294](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L294)
26
26
 
27
27
  An array of all extensions supported by this frontend module. Extensions can be mounted in extension slots, either via declarations in this file or configuration.
28
28
 
@@ -32,7 +32,7 @@ An array of all extensions supported by this frontend module. Extensions can be
32
32
 
33
33
  > `optional` **featureFlags**: [`FeatureFlagDefinition`](FeatureFlagDefinition.md)[]
34
34
 
35
- Defined in: [packages/framework/esm-globals/src/types.ts:294](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L294)
35
+ Defined in: [packages/framework/esm-globals/src/types.ts:296](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L296)
36
36
 
37
37
  An array of all feature flags for any beta-stage features this module provides.
38
38
 
@@ -42,7 +42,7 @@ An array of all feature flags for any beta-stage features this module provides.
42
42
 
43
43
  > `optional` **modals**: [`ModalDefinition`](../type-aliases/ModalDefinition.md)[]
44
44
 
45
- Defined in: [packages/framework/esm-globals/src/types.ts:296](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L296)
45
+ Defined in: [packages/framework/esm-globals/src/types.ts:298](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L298)
46
46
 
47
47
  An array of all modals supported by this frontend module. Modals can be launched by name.
48
48
 
@@ -52,7 +52,7 @@ An array of all modals supported by this frontend module. Modals can be launched
52
52
 
53
53
  > `optional` **optionalBackendDependencies**: `object`
54
54
 
55
- Defined in: [packages/framework/esm-globals/src/types.ts:278](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L278)
55
+ Defined in: [packages/framework/esm-globals/src/types.ts:280](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L280)
56
56
 
57
57
  A list of backend modules that may enable optional functionality in this frontend module if available and the corresponding required versions.
58
58
 
@@ -68,7 +68,7 @@ The name of the backend dependency and either the required version or an object
68
68
 
69
69
  > `optional` **pages**: [`PageDefinition`](../type-aliases/PageDefinition.md)[]
70
70
 
71
- Defined in: [packages/framework/esm-globals/src/types.ts:290](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L290)
71
+ Defined in: [packages/framework/esm-globals/src/types.ts:292](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L292)
72
72
 
73
73
  An array of all pages supported by this frontend module. Pages are automatically mounted based on a route.
74
74
 
@@ -78,7 +78,7 @@ An array of all pages supported by this frontend module. Pages are automatically
78
78
 
79
79
  > `optional` **version**: `string`
80
80
 
81
- Defined in: [packages/framework/esm-globals/src/types.ts:274](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L274)
81
+ Defined in: [packages/framework/esm-globals/src/types.ts:276](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L276)
82
82
 
83
83
  The version of this frontend module.
84
84
 
@@ -88,7 +88,7 @@ The version of this frontend module.
88
88
 
89
89
  > `optional` **workspaceGroups2**: [`WorkspaceGroupDefinition2`](WorkspaceGroupDefinition2.md)[]
90
90
 
91
- Defined in: [packages/framework/esm-globals/src/types.ts:299](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L299)
91
+ Defined in: [packages/framework/esm-globals/src/types.ts:301](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L301)
92
92
 
93
93
  An array of all workspace groups (v2) supported by this frontend module.
94
94
 
@@ -98,7 +98,7 @@ An array of all workspace groups (v2) supported by this frontend module.
98
98
 
99
99
  > `optional` **workspaces2**: [`WorkspaceDefinition2`](WorkspaceDefinition2.md)[]
100
100
 
101
- Defined in: [packages/framework/esm-globals/src/types.ts:305](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L305)
101
+ Defined in: [packages/framework/esm-globals/src/types.ts:307](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L307)
102
102
 
103
103
  An array of all workspaces (v2) supported by this frontend module.
104
104
 
@@ -108,6 +108,6 @@ An array of all workspaces (v2) supported by this frontend module.
108
108
 
109
109
  > `optional` **workspaceWindows2**: [`WorkspaceWindowDefinition2`](WorkspaceWindowDefinition2.md)[]
110
110
 
111
- Defined in: [packages/framework/esm-globals/src/types.ts:302](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L302)
111
+ Defined in: [packages/framework/esm-globals/src/types.ts:304](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L304)
112
112
 
113
113
  An array of all workspace windows (v2) supported by this frontend module.
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Interface: OpenmrsRoutes
4
4
 
5
- Defined in: [packages/framework/esm-globals/src/types.ts:312](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L312)
5
+ Defined in: [packages/framework/esm-globals/src/types.ts:314](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L314)
6
6
 
7
7
  This interfaces describes the format of the overall routes.json loaded by the app shell.
8
8
  Basically, this is the same as the app routes, with each routes definition keyed by the app's name
@@ -13,7 +13,7 @@ Basically, this is the same as the app routes, with each routes definition keyed
13
13
 
14
14
  > **routes**: `Record`\<`Exclude`\<`string`, `"version"`\>, [`OpenmrsAppRoutes`](OpenmrsAppRoutes.md)\>
15
15
 
16
- Defined in: [packages/framework/esm-globals/src/types.ts:316](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L316)
16
+ Defined in: [packages/framework/esm-globals/src/types.ts:318](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L318)
17
17
 
18
18
  The routes associated with this application keyed by module id
19
19
 
@@ -23,6 +23,6 @@ The routes associated with this application keyed by module id
23
23
 
24
24
  > `optional` **version**: `string`
25
25
 
26
- Defined in: [packages/framework/esm-globals/src/types.ts:314](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L314)
26
+ Defined in: [packages/framework/esm-globals/src/types.ts:316](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L316)
27
27
 
28
28
  The overall version for this application
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Interface: ResourceLoader()\<T\>
4
4
 
5
- Defined in: [packages/framework/esm-globals/src/types.ts:319](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L319)
5
+ Defined in: [packages/framework/esm-globals/src/types.ts:321](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L321)
6
6
 
7
7
  ## Type Parameters
8
8
 
@@ -12,7 +12,7 @@ Defined in: [packages/framework/esm-globals/src/types.ts:319](https://github.com
12
12
 
13
13
  > **ResourceLoader**(): `Promise`\<`T`\>
14
14
 
15
- Defined in: [packages/framework/esm-globals/src/types.ts:320](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L320)
15
+ Defined in: [packages/framework/esm-globals/src/types.ts:322](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L322)
16
16
 
17
17
  ## Returns
18
18
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Interface: Workspace2DefinitionProps\<WorkspaceProps, WindowProps, GroupProps\>
4
4
 
5
- Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx:18](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx#L18)
5
+ Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx:10](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx#L10)
6
6
 
7
7
  ## Type Parameters
8
8
 
@@ -24,7 +24,7 @@ Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.compon
24
24
 
25
25
  > **groupProps**: `null` \| `GroupProps`
26
26
 
27
- Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx:43](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx#L43)
27
+ Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx:35](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx#L35)
28
28
 
29
29
  ***
30
30
 
@@ -32,7 +32,7 @@ Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.compon
32
32
 
33
33
  > **isRootWorkspace**: `boolean`
34
34
 
35
- Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx:51](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx#L51)
35
+ Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx:43](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx#L43)
36
36
 
37
37
  ***
38
38
 
@@ -40,7 +40,7 @@ Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.compon
40
40
 
41
41
  > **showActionMenu**: `boolean`
42
42
 
43
- Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx:52](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx#L52)
43
+ Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx:44](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx#L44)
44
44
 
45
45
  ***
46
46
 
@@ -48,7 +48,7 @@ Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.compon
48
48
 
49
49
  > **windowName**: `string`
50
50
 
51
- Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx:50](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx#L50)
51
+ Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx:42](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx#L42)
52
52
 
53
53
  ***
54
54
 
@@ -56,7 +56,7 @@ Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.compon
56
56
 
57
57
  > **windowProps**: `null` \| `WindowProps`
58
58
 
59
- Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx:42](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx#L42)
59
+ Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx:34](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx#L34)
60
60
 
61
61
  ***
62
62
 
@@ -64,7 +64,7 @@ Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.compon
64
64
 
65
65
  > `optional` **workspaceMeta**: `Readonly`\<`Record`\<`string`, `unknown`\>\>
66
66
 
67
- Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx:48](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx#L48)
67
+ Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx:40](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx#L40)
68
68
 
69
69
  The workspace's `meta` from its registration (the `meta` field of its `workspaces2` entry in
70
70
  `routes.json`).
@@ -75,7 +75,7 @@ The workspace's `meta` from its registration (the `meta` field of its `workspace
75
75
 
76
76
  > **workspaceName**: `string`
77
77
 
78
- Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx:49](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx#L49)
78
+ Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx:41](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx#L41)
79
79
 
80
80
  ***
81
81
 
@@ -83,7 +83,7 @@ Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.compon
83
83
 
84
84
  > **workspaceProps**: `null` \| `WorkspaceProps`
85
85
 
86
- Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx:41](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx#L41)
86
+ Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx:33](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx#L33)
87
87
 
88
88
  ## Methods
89
89
 
@@ -91,7 +91,7 @@ Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.compon
91
91
 
92
92
  > **closeWorkspace**(`options?`): `Promise`\<`boolean`\>
93
93
 
94
- Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx:39](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx#L39)
94
+ Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx:31](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx#L31)
95
95
 
96
96
  closes the current workspace, along with its children.
97
97
 
@@ -125,7 +125,7 @@ a Promise that resolves to true if the workspace is closed, false otherwise.
125
125
 
126
126
  > **launchChildWorkspace**\<`Props`\>(`workspaceName`, `workspaceProps?`): `Promise`\<`void`\>
127
127
 
128
- Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx:30](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx#L30)
128
+ Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx:22](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx#L22)
129
129
 
130
130
  This function launches a child workspace. Unlike `launchWorkspace()`, this function is meant
131
131
  to be called from the a workspace, and it does not allow passing (or changing)
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Interface: WorkspaceDefinition2
4
4
 
5
- Defined in: [packages/framework/esm-globals/src/types.ts:246](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L246)
5
+ Defined in: [packages/framework/esm-globals/src/types.ts:248](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L248)
6
6
 
7
7
  ## Properties
8
8
 
@@ -10,7 +10,7 @@ Defined in: [packages/framework/esm-globals/src/types.ts:246](https://github.com
10
10
 
11
11
  > **component**: `string`
12
12
 
13
- Defined in: [packages/framework/esm-globals/src/types.ts:248](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L248)
13
+ Defined in: [packages/framework/esm-globals/src/types.ts:250](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L250)
14
14
 
15
15
  ***
16
16
 
@@ -18,7 +18,7 @@ Defined in: [packages/framework/esm-globals/src/types.ts:248](https://github.com
18
18
 
19
19
  > `optional` **meta**: `object`
20
20
 
21
- Defined in: [packages/framework/esm-globals/src/types.ts:254](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L254)
21
+ Defined in: [packages/framework/esm-globals/src/types.ts:256](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L256)
22
22
 
23
23
  Meta describes any properties that are passed down to the workspace when it is loaded. It is
24
24
  available to the workspace component via `useWorkspace2Context().workspaceMeta`.
@@ -33,7 +33,7 @@ available to the workspace component via `useWorkspace2Context().workspaceMeta`.
33
33
 
34
34
  > **name**: `string`
35
35
 
36
- Defined in: [packages/framework/esm-globals/src/types.ts:247](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L247)
36
+ Defined in: [packages/framework/esm-globals/src/types.ts:249](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L249)
37
37
 
38
38
  ***
39
39
 
@@ -41,4 +41,4 @@ Defined in: [packages/framework/esm-globals/src/types.ts:247](https://github.com
41
41
 
42
42
  > **window**: `string`
43
43
 
44
- Defined in: [packages/framework/esm-globals/src/types.ts:249](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L249)
44
+ Defined in: [packages/framework/esm-globals/src/types.ts:251](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L251)
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Interface: WorkspaceWindowDefinition2
4
4
 
5
- Defined in: [packages/framework/esm-globals/src/types.ts:237](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L237)
5
+ Defined in: [packages/framework/esm-globals/src/types.ts:239](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L239)
6
6
 
7
7
  ## Properties
8
8
 
@@ -10,7 +10,7 @@ Defined in: [packages/framework/esm-globals/src/types.ts:237](https://github.com
10
10
 
11
11
  > `optional` **canMaximize**: `boolean`
12
12
 
13
- Defined in: [packages/framework/esm-globals/src/types.ts:240](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L240)
13
+ Defined in: [packages/framework/esm-globals/src/types.ts:242](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L242)
14
14
 
15
15
  ***
16
16
 
@@ -18,7 +18,7 @@ Defined in: [packages/framework/esm-globals/src/types.ts:240](https://github.com
18
18
 
19
19
  > **group**: `string`
20
20
 
21
- Defined in: [packages/framework/esm-globals/src/types.ts:241](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L241)
21
+ Defined in: [packages/framework/esm-globals/src/types.ts:243](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L243)
22
22
 
23
23
  ***
24
24
 
@@ -26,7 +26,7 @@ Defined in: [packages/framework/esm-globals/src/types.ts:241](https://github.com
26
26
 
27
27
  > `optional` **icon**: `string`
28
28
 
29
- Defined in: [packages/framework/esm-globals/src/types.ts:239](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L239)
29
+ Defined in: [packages/framework/esm-globals/src/types.ts:241](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L241)
30
30
 
31
31
  ***
32
32
 
@@ -34,7 +34,7 @@ Defined in: [packages/framework/esm-globals/src/types.ts:239](https://github.com
34
34
 
35
35
  > **name**: `string`
36
36
 
37
- Defined in: [packages/framework/esm-globals/src/types.ts:238](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L238)
37
+ Defined in: [packages/framework/esm-globals/src/types.ts:240](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L240)
38
38
 
39
39
  ***
40
40
 
@@ -42,12 +42,12 @@ Defined in: [packages/framework/esm-globals/src/types.ts:238](https://github.com
42
42
 
43
43
  > `optional` **order**: `number`
44
44
 
45
- Defined in: [packages/framework/esm-globals/src/types.ts:242](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L242)
45
+ Defined in: [packages/framework/esm-globals/src/types.ts:244](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L244)
46
46
 
47
47
  ***
48
48
 
49
49
  ### width?
50
50
 
51
- > `optional` **width**: `"narrow"` \| `"wider"` \| `"extra-wide"`
51
+ > `optional` **width**: [`WorkspaceWindow2Width`](../type-aliases/WorkspaceWindow2Width.md)
52
52
 
53
- Defined in: [packages/framework/esm-globals/src/types.ts:243](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L243)
53
+ Defined in: [packages/framework/esm-globals/src/types.ts:245](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L245)
@@ -4,4 +4,4 @@
4
4
 
5
5
  > **NameUse** = `"usual"` \| `"official"` \| `"temp"` \| `"nickname"` \| `"anonymous"` \| `"old"` \| `"maiden"`
6
6
 
7
- Defined in: [packages/framework/esm-globals/src/types.ts:326](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L326)
7
+ Defined in: [packages/framework/esm-globals/src/types.ts:328](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L328)
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **Workspace2Definition**\<`WorkspaceProps`, `WindowProps`, `GroupProps`\> = `React.FC`\<[`Workspace2DefinitionProps`](../interfaces/Workspace2DefinitionProps.md)\<`WorkspaceProps`, `WindowProps`, `GroupProps`\>\>
6
6
 
7
- Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx:55](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx#L55)
7
+ Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx:59](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx#L59)
8
8
 
9
9
  ## Type Parameters
10
10
 
@@ -0,0 +1,7 @@
1
+ [O3 Framework](../API.md) / WorkspaceWindow2Width
2
+
3
+ # Type Alias: WorkspaceWindow2Width
4
+
5
+ > **WorkspaceWindow2Width** = `"narrow"` \| `"wider"` \| `"extra-wide"`
6
+
7
+ Defined in: [packages/framework/esm-globals/src/types.ts:237](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L237)
@@ -0,0 +1,14 @@
1
+ [O3 Framework](../API.md) / ExportedWorkspace
2
+
3
+ # Variable: ExportedWorkspace
4
+
5
+ > `const` **ExportedWorkspace**: `React.FC`\<[`ExportedWorkspaceProps`](../interfaces/ExportedWorkspaceProps.md)\>
6
+
7
+ Defined in: [packages/framework/esm-styleguide/src/workspaces2/exported-workspace.component.tsx:59](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/exported-workspace.component.tsx#L59)
8
+
9
+ Renders the content of a registered workspace (the `children` of its `<Workspace2>`) within its own
10
+ DOM subtree, independent of the real global workspace window system. It emulates the workspace
11
+ window that contains `name`: opening/closing child workspaces (via `launchChildWorkspace()` /
12
+ `closeWorkspace()` from within the workspace) navigates within this component, in a window held in
13
+ its own local store. It renders no chrome (no title bar, maximize, hide, close, or icon); callers can
14
+ render their own around it.
@@ -4,7 +4,7 @@
4
4
 
5
5
  > `const` **Workspace2**: `React.FC`\<`Workspace2Props`\>
6
6
 
7
- Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx:67](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx#L67)
7
+ Defined in: [packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx:71](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/workspace2.component.tsx#L71)
8
8
 
9
9
  The Workspace2 component is used as a top-level container to render
10
10
  its children as content within a workspace. When creating a workspace
package/mock-jest.tsx CHANGED
@@ -121,6 +121,7 @@ export const ActionMenuButton2 = jest.fn(({ label, tagContent, icon }) => (
121
121
  </button>
122
122
  ));
123
123
  export const ActionMenu = jest.fn(() => <div>Action Menu</div>);
124
+ export const ExportedWorkspace = jest.fn(() => <div>Exported Workspace</div>);
124
125
  export const launchWorkspace2 = jest.fn();
125
126
  export const launchWorkspaceGroup2 = jest.fn();
126
127
  export const closeWorkspaceGroup2 = jest.fn();
package/mock.tsx CHANGED
@@ -122,6 +122,7 @@ export const ActionMenuButton2 = vi.fn(({ label, tagContent, icon }) => (
122
122
  </button>
123
123
  ));
124
124
  export const ActionMenu = vi.fn(() => <div>Action Menu</div>);
125
+ export const ExportedWorkspace = vi.fn(() => <div>Exported Workspace</div>);
125
126
  export const launchWorkspace2 = vi.fn();
126
127
  export const launchWorkspaceGroup2 = vi.fn();
127
128
  export const closeWorkspaceGroup2 = vi.fn();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-framework",
3
- "version": "10.0.1-pre.5704",
3
+ "version": "10.0.1-pre.5709",
4
4
  "license": "MPL-2.0",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
@@ -60,23 +60,23 @@
60
60
  "access": "public"
61
61
  },
62
62
  "dependencies": {
63
- "@openmrs/esm-api": "10.0.1-pre.5704",
64
- "@openmrs/esm-config": "10.0.1-pre.5704",
65
- "@openmrs/esm-context": "10.0.1-pre.5704",
66
- "@openmrs/esm-dynamic-loading": "10.0.1-pre.5704",
67
- "@openmrs/esm-emr-api": "10.0.1-pre.5704",
68
- "@openmrs/esm-error-handling": "10.0.1-pre.5704",
69
- "@openmrs/esm-expression-evaluator": "10.0.1-pre.5704",
70
- "@openmrs/esm-extensions": "10.0.1-pre.5704",
71
- "@openmrs/esm-feature-flags": "10.0.1-pre.5704",
72
- "@openmrs/esm-globals": "10.0.1-pre.5704",
73
- "@openmrs/esm-navigation": "10.0.1-pre.5704",
74
- "@openmrs/esm-react-utils": "10.0.1-pre.5704",
75
- "@openmrs/esm-routes": "10.0.1-pre.5704",
76
- "@openmrs/esm-state": "10.0.1-pre.5704",
77
- "@openmrs/esm-styleguide": "10.0.1-pre.5704",
78
- "@openmrs/esm-translations": "10.0.1-pre.5704",
79
- "@openmrs/esm-utils": "10.0.1-pre.5704"
63
+ "@openmrs/esm-api": "10.0.1-pre.5709",
64
+ "@openmrs/esm-config": "10.0.1-pre.5709",
65
+ "@openmrs/esm-context": "10.0.1-pre.5709",
66
+ "@openmrs/esm-dynamic-loading": "10.0.1-pre.5709",
67
+ "@openmrs/esm-emr-api": "10.0.1-pre.5709",
68
+ "@openmrs/esm-error-handling": "10.0.1-pre.5709",
69
+ "@openmrs/esm-expression-evaluator": "10.0.1-pre.5709",
70
+ "@openmrs/esm-extensions": "10.0.1-pre.5709",
71
+ "@openmrs/esm-feature-flags": "10.0.1-pre.5709",
72
+ "@openmrs/esm-globals": "10.0.1-pre.5709",
73
+ "@openmrs/esm-navigation": "10.0.1-pre.5709",
74
+ "@openmrs/esm-react-utils": "10.0.1-pre.5709",
75
+ "@openmrs/esm-routes": "10.0.1-pre.5709",
76
+ "@openmrs/esm-state": "10.0.1-pre.5709",
77
+ "@openmrs/esm-styleguide": "10.0.1-pre.5709",
78
+ "@openmrs/esm-translations": "10.0.1-pre.5709",
79
+ "@openmrs/esm-utils": "10.0.1-pre.5709"
80
80
  },
81
81
  "peerDependencies": {
82
82
  "dayjs": "1.x",
@@ -88,7 +88,7 @@
88
88
  "swr": "2.x"
89
89
  },
90
90
  "devDependencies": {
91
- "@openmrs/typedoc-plugin-file-categories": "10.0.1-pre.5704",
91
+ "@openmrs/typedoc-plugin-file-categories": "10.0.1-pre.5709",
92
92
  "@swc/cli": "0.8.1",
93
93
  "@swc/core": "1.15.21",
94
94
  "@vitest/coverage-v8": "^4.1.2",