@openmrs/esm-framework 10.0.1-pre.5227 → 10.0.1-pre.5251

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: 3 files with swc (145.1ms)
1
+ [0] Successfully compiled: 3 files with swc (96.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
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **getVisitStore**(): `StoreApi`\<[`VisitStoreState`](../interfaces/VisitStoreState.md)\>
6
6
 
7
- Defined in: [packages/framework/esm-emr-api/src/visit-utils.ts:78](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/visit-utils.ts#L78)
7
+ Defined in: [packages/framework/esm-emr-api/src/visit-utils.ts:68](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/visit-utils.ts#L68)
8
8
 
9
9
  Returns the global visit store that manages the current visit state. The store
10
10
  contains information about the current patient's visit and provides methods
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **getVisitsForPatient**(`patientUuid`, `abortController`, `v?`): `Promise`\<[`FetchResponse`](../interfaces/FetchResponse.md)\<\{ `results`: [`Visit`](../interfaces/Visit.md)[]; \}\>\>
6
6
 
7
- Defined in: [packages/framework/esm-emr-api/src/visit-utils.ts:183](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/visit-utils.ts#L183)
7
+ Defined in: [packages/framework/esm-emr-api/src/visit-utils.ts:173](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/visit-utils.ts#L173)
8
8
 
9
9
  ## Parameters
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **saveVisit**(`payload`, `abortController`): `Promise`\<[`FetchResponse`](../interfaces/FetchResponse.md)\<[`Visit`](../interfaces/Visit.md)\>\>
6
6
 
7
- Defined in: [packages/framework/esm-emr-api/src/visit-utils.ts:137](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/visit-utils.ts#L137)
7
+ Defined in: [packages/framework/esm-emr-api/src/visit-utils.ts:127](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/visit-utils.ts#L127)
8
8
 
9
9
  Creates a new visit by sending a POST request to the OpenMRS REST API.
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **setCurrentVisit**(`patientUuid`, `visitUuid`): `void`
6
6
 
7
- Defined in: [packages/framework/esm-emr-api/src/visit-utils.ts:98](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/visit-utils.ts#L98)
7
+ Defined in: [packages/framework/esm-emr-api/src/visit-utils.ts:88](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/visit-utils.ts#L88)
8
8
 
9
9
  Sets the current visit for a patient in the global visit store. This is used
10
10
  to manually specify which visit should be considered "active" for the given patient.
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **updateVisit**(`uuid`, `payload`, `abortController`): `Promise`\<[`FetchResponse`](../interfaces/FetchResponse.md)\<[`Visit`](../interfaces/Visit.md)\>\>
6
6
 
7
- Defined in: [packages/framework/esm-emr-api/src/visit-utils.ts:165](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/visit-utils.ts#L165)
7
+ Defined in: [packages/framework/esm-emr-api/src/visit-utils.ts:155](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/visit-utils.ts#L155)
8
8
 
9
9
  Updates an existing visit by sending a POST request to the OpenMRS REST API.
10
10
 
@@ -2,9 +2,9 @@
2
2
 
3
3
  # Function: useVisitContextStore()
4
4
 
5
- > **useVisitContextStore**(`mutateVisitCallback?`): [`VisitStoreState`](../interfaces/VisitStoreState.md) & `BindFunctionsIn`\<\{ `mutateVisit`: \{ \}; `setVisitContext`: \{ `manuallySetVisitUuid`: `null`; `patientUuid?`: `undefined`; \} \| \{ `manuallySetVisitUuid`: `string`; `patientUuid`: `undefined` \| `string`; \}; \}\>
5
+ > **useVisitContextStore**(`mutateVisitCallback?`): `object`
6
6
 
7
- Defined in: [packages/framework/esm-react-utils/src/useVisitContextStore.ts:30](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-react-utils/src/useVisitContextStore.ts#L30)
7
+ Defined in: [packages/framework/esm-react-utils/src/useVisitContextStore.ts:44](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-react-utils/src/useVisitContextStore.ts#L44)
8
8
 
9
9
  A hook to return the visit context store and corresponding actions.
10
10
 
@@ -15,9 +15,43 @@ A hook to return the visit context store and corresponding actions.
15
15
  () => `void`
16
16
 
17
17
  An optional mutate callback to register. If provided, the
18
- store action's `mutateVisit` function will invoke this callback (along with any other
19
- callbacks also registered into the store)
18
+ returned `mutateVisit` function will invoke this callback (along with any other
19
+ callbacks registered by other components). Pass a callback with a stable identity;
20
+ one that changes on every render re-registers on every render.
20
21
 
21
22
  ## Returns
22
23
 
23
- [`VisitStoreState`](../interfaces/VisitStoreState.md) & `BindFunctionsIn`\<\{ `mutateVisit`: \{ \}; `setVisitContext`: \{ `manuallySetVisitUuid`: `null`; `patientUuid?`: `undefined`; \} \| \{ `manuallySetVisitUuid`: `string`; `patientUuid`: `undefined` \| `string`; \}; \}\>
24
+ ### manuallySetVisitUuid
25
+
26
+ > **manuallySetVisitUuid**: `null` \| `string`
27
+
28
+ ### mutateVisit()
29
+
30
+ > **mutateVisit**: () => `void`
31
+
32
+ Invokes every registered mutate callback, revalidating visit data across the application.
33
+
34
+ Iterates over a copy so that a callback which registers or unregisters another does not
35
+ disturb the traversal.
36
+
37
+ #### Returns
38
+
39
+ `void`
40
+
41
+ ### patientUuid
42
+
43
+ > **patientUuid**: `null` \| `string`
44
+
45
+ ### setVisitContext()
46
+
47
+ > **setVisitContext**(...`args`): `void`
48
+
49
+ #### Parameters
50
+
51
+ ##### args
52
+
53
+ ...\[`null` \| [`Visit`](../interfaces/Visit.md)\]
54
+
55
+ #### Returns
56
+
57
+ `void`
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Interface: FeatureFlagDefinition
4
4
 
5
- Defined in: [packages/framework/esm-globals/src/types.ts:350](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L350)
5
+ Defined in: [packages/framework/esm-globals/src/types.ts:354](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L354)
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:356](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L356)
15
+ Defined in: [packages/framework/esm-globals/src/types.ts:360](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L360)
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:352](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L352)
25
+ Defined in: [packages/framework/esm-globals/src/types.ts:356](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L356)
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:354](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L354)
35
+ Defined in: [packages/framework/esm-globals/src/types.ts:358](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L358)
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:360](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L360)
5
+ Defined in: [packages/framework/esm-globals/src/types.ts:364](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L364)
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:364](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L364)
15
+ Defined in: [packages/framework/esm-globals/src/types.ts:368](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L368)
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:380](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L380)
25
+ Defined in: [packages/framework/esm-globals/src/types.ts:384](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L384)
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:382](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L382)
35
+ Defined in: [packages/framework/esm-globals/src/types.ts:386](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L386)
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:384](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L384)
45
+ Defined in: [packages/framework/esm-globals/src/types.ts:388](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L388)
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:366](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L366)
55
+ Defined in: [packages/framework/esm-globals/src/types.ts:370](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L370)
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:378](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L378)
71
+ Defined in: [packages/framework/esm-globals/src/types.ts:382](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L382)
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:362](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L362)
81
+ Defined in: [packages/framework/esm-globals/src/types.ts:366](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L366)
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` **workspaceGroups**: [`WorkspaceGroupDefinition`](WorkspaceGroupDefinition.md)[]
90
90
 
91
- Defined in: [packages/framework/esm-globals/src/types.ts:388](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L388)
91
+ Defined in: [packages/framework/esm-globals/src/types.ts:392](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L392)
92
92
 
93
93
  An array of all workspace groups supported by this frontend module.
94
94
 
@@ -98,7 +98,7 @@ An array of all workspace groups supported by this frontend module.
98
98
 
99
99
  > `optional` **workspaceGroups2**: [`WorkspaceGroupDefinition2`](WorkspaceGroupDefinition2.md)[]
100
100
 
101
- Defined in: [packages/framework/esm-globals/src/types.ts:391](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L391)
101
+ Defined in: [packages/framework/esm-globals/src/types.ts:395](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L395)
102
102
 
103
103
  An array of all workspace groups (v2) supported by this frontend module.
104
104
 
@@ -108,7 +108,7 @@ An array of all workspace groups (v2) supported by this frontend module.
108
108
 
109
109
  > `optional` **workspaces**: [`WorkspaceDefinition`](../type-aliases/WorkspaceDefinition.md)[]
110
110
 
111
- Defined in: [packages/framework/esm-globals/src/types.ts:386](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L386)
111
+ Defined in: [packages/framework/esm-globals/src/types.ts:390](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L390)
112
112
 
113
113
  An array of all workspaces supported by this frontend module. Workspaces can be launched by name.
114
114
 
@@ -118,7 +118,7 @@ An array of all workspaces supported by this frontend module. Workspaces can be
118
118
 
119
119
  > `optional` **workspaces2**: [`WorkspaceDefinition2`](WorkspaceDefinition2.md)[]
120
120
 
121
- Defined in: [packages/framework/esm-globals/src/types.ts:397](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L397)
121
+ Defined in: [packages/framework/esm-globals/src/types.ts:401](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L401)
122
122
 
123
123
  An array of all workspaces (v2) supported by this frontend module.
124
124
 
@@ -128,6 +128,6 @@ An array of all workspaces (v2) supported by this frontend module.
128
128
 
129
129
  > `optional` **workspaceWindows2**: [`WorkspaceWindowDefinition2`](WorkspaceWindowDefinition2.md)[]
130
130
 
131
- Defined in: [packages/framework/esm-globals/src/types.ts:394](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L394)
131
+ Defined in: [packages/framework/esm-globals/src/types.ts:398](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L398)
132
132
 
133
133
  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:404](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L404)
5
+ Defined in: [packages/framework/esm-globals/src/types.ts:408](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L408)
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:408](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L408)
16
+ Defined in: [packages/framework/esm-globals/src/types.ts:412](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L412)
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:406](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L406)
26
+ Defined in: [packages/framework/esm-globals/src/types.ts:410](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L410)
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:411](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L411)
5
+ Defined in: [packages/framework/esm-globals/src/types.ts:415](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L415)
6
6
 
7
7
  ## Type Parameters
8
8
 
@@ -12,7 +12,7 @@ Defined in: [packages/framework/esm-globals/src/types.ts:411](https://github.com
12
12
 
13
13
  > **ResourceLoader**(): `Promise`\<`T`\>
14
14
 
15
- Defined in: [packages/framework/esm-globals/src/types.ts:412](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L412)
15
+ Defined in: [packages/framework/esm-globals/src/types.ts:416](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L416)
16
16
 
17
17
  ## Returns
18
18
 
@@ -14,22 +14,6 @@ Defined in: [packages/framework/esm-emr-api/src/visit-utils.ts:27](https://githu
14
14
 
15
15
  ***
16
16
 
17
- ### mutateVisitCallbacks
18
-
19
- > **mutateVisitCallbacks**: `object`
20
-
21
- Defined in: [packages/framework/esm-emr-api/src/visit-utils.ts:34](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/visit-utils.ts#L34)
22
-
23
- Stores a record of SWR mutate callbacks that should be called when
24
- the Visit with the specified uuid is modified. The callbacks are keyed
25
- by unique component IDs.
26
-
27
- #### Index Signature
28
-
29
- \[`componentId`: `string`\]: () => `void`
30
-
31
- ***
32
-
33
17
  ### patientUuid
34
18
 
35
19
  > **patientUuid**: `null` \| `string`
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Interface: WorkspaceDefinition2
4
4
 
5
- Defined in: [packages/framework/esm-globals/src/types.ts:341](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L341)
5
+ Defined in: [packages/framework/esm-globals/src/types.ts:345](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L345)
6
6
 
7
7
  ## Properties
8
8
 
@@ -10,7 +10,7 @@ Defined in: [packages/framework/esm-globals/src/types.ts:341](https://github.com
10
10
 
11
11
  > **component**: `string`
12
12
 
13
- Defined in: [packages/framework/esm-globals/src/types.ts:343](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L343)
13
+ Defined in: [packages/framework/esm-globals/src/types.ts:347](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L347)
14
14
 
15
15
  ***
16
16
 
@@ -18,7 +18,7 @@ Defined in: [packages/framework/esm-globals/src/types.ts:343](https://github.com
18
18
 
19
19
  > **name**: `string`
20
20
 
21
- Defined in: [packages/framework/esm-globals/src/types.ts:342](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L342)
21
+ Defined in: [packages/framework/esm-globals/src/types.ts:346](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L346)
22
22
 
23
23
  ***
24
24
 
@@ -26,4 +26,4 @@ Defined in: [packages/framework/esm-globals/src/types.ts:342](https://github.com
26
26
 
27
27
  > **window**: `string`
28
28
 
29
- Defined in: [packages/framework/esm-globals/src/types.ts:344](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L344)
29
+ Defined in: [packages/framework/esm-globals/src/types.ts:348](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L348)
@@ -50,9 +50,13 @@ with any opened windows / workspaces.
50
50
 
51
51
  > `optional` **scopePattern**: `string`
52
52
 
53
- Defined in: [packages/framework/esm-globals/src/types.ts:329](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L329)
53
+ Defined in: [packages/framework/esm-globals/src/types.ts:333](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L333)
54
54
 
55
55
  URL pattern that defines the scope where workspaces in this group should persist.
56
+ The pattern is matched against the pathname relative to the configured SPA base path.
57
+ Navigating outside the configured SPA base path closes the workspace group.
58
+ For backward compatibility, if the pattern does not match both SPA-relative pathnames, it is
59
+ retried against both full pathnames.
56
60
  - If not defined: workspaces close only when navigating to a different app
57
61
  - If defined without capture groups: workspaces close when URL doesn't match pattern
58
62
  - If defined with capture groups: workspaces close when captured values change
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Interface: WorkspaceWindowDefinition2
4
4
 
5
- Defined in: [packages/framework/esm-globals/src/types.ts:332](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L332)
5
+ Defined in: [packages/framework/esm-globals/src/types.ts:336](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L336)
6
6
 
7
7
  ## Properties
8
8
 
@@ -10,7 +10,7 @@ Defined in: [packages/framework/esm-globals/src/types.ts:332](https://github.com
10
10
 
11
11
  > `optional` **canMaximize**: `boolean`
12
12
 
13
- Defined in: [packages/framework/esm-globals/src/types.ts:335](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L335)
13
+ Defined in: [packages/framework/esm-globals/src/types.ts:339](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L339)
14
14
 
15
15
  ***
16
16
 
@@ -18,7 +18,7 @@ Defined in: [packages/framework/esm-globals/src/types.ts:335](https://github.com
18
18
 
19
19
  > **group**: `string`
20
20
 
21
- Defined in: [packages/framework/esm-globals/src/types.ts:336](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L336)
21
+ Defined in: [packages/framework/esm-globals/src/types.ts:340](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L340)
22
22
 
23
23
  ***
24
24
 
@@ -26,7 +26,7 @@ Defined in: [packages/framework/esm-globals/src/types.ts:336](https://github.com
26
26
 
27
27
  > `optional` **icon**: `string`
28
28
 
29
- Defined in: [packages/framework/esm-globals/src/types.ts:334](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L334)
29
+ Defined in: [packages/framework/esm-globals/src/types.ts:338](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L338)
30
30
 
31
31
  ***
32
32
 
@@ -34,7 +34,7 @@ Defined in: [packages/framework/esm-globals/src/types.ts:334](https://github.com
34
34
 
35
35
  > **name**: `string`
36
36
 
37
- Defined in: [packages/framework/esm-globals/src/types.ts:333](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L333)
37
+ Defined in: [packages/framework/esm-globals/src/types.ts:337](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L337)
38
38
 
39
39
  ***
40
40
 
@@ -42,7 +42,7 @@ Defined in: [packages/framework/esm-globals/src/types.ts:333](https://github.com
42
42
 
43
43
  > `optional` **order**: `number`
44
44
 
45
- Defined in: [packages/framework/esm-globals/src/types.ts:337](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L337)
45
+ Defined in: [packages/framework/esm-globals/src/types.ts:341](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L341)
46
46
 
47
47
  ***
48
48
 
@@ -50,4 +50,4 @@ Defined in: [packages/framework/esm-globals/src/types.ts:337](https://github.com
50
50
 
51
51
  > `optional` **width**: `"narrow"` \| `"wider"` \| `"extra-wide"`
52
52
 
53
- Defined in: [packages/framework/esm-globals/src/types.ts:338](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L338)
53
+ Defined in: [packages/framework/esm-globals/src/types.ts:342](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L342)
@@ -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:418](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L418)
7
+ Defined in: [packages/framework/esm-globals/src/types.ts:422](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-globals/src/types.ts#L422)
@@ -4,7 +4,7 @@
4
4
 
5
5
  > `const` **defaultVisitCustomRepresentation**: `string`
6
6
 
7
- Defined in: [packages/framework/esm-emr-api/src/visit-utils.ts:44](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/visit-utils.ts#L44)
7
+ Defined in: [packages/framework/esm-emr-api/src/visit-utils.ts:35](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/visit-utils.ts#L35)
8
8
 
9
9
  The default custom representation string for fetching visit data from the REST API.
10
10
  This representation includes comprehensive visit details such as encounters, patient,
@@ -4,6 +4,6 @@
4
4
 
5
5
  > `const` **getStartedVisit**: `BehaviorSubject`\<`null` \| [`VisitItem`](../interfaces/VisitItem.md)\>
6
6
 
7
- Defined in: [packages/framework/esm-emr-api/src/visit-utils.ts:200](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/visit-utils.ts#L200)
7
+ Defined in: [packages/framework/esm-emr-api/src/visit-utils.ts:190](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/visit-utils.ts#L190)
8
8
 
9
9
  ## Deprecated
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-framework",
3
- "version": "10.0.1-pre.5227",
3
+ "version": "10.0.1-pre.5251",
4
4
  "license": "MPL-2.0",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
@@ -59,24 +59,24 @@
59
59
  "access": "public"
60
60
  },
61
61
  "dependencies": {
62
- "@openmrs/esm-api": "10.0.1-pre.5227",
63
- "@openmrs/esm-config": "10.0.1-pre.5227",
64
- "@openmrs/esm-context": "10.0.1-pre.5227",
65
- "@openmrs/esm-dynamic-loading": "10.0.1-pre.5227",
66
- "@openmrs/esm-emr-api": "10.0.1-pre.5227",
67
- "@openmrs/esm-error-handling": "10.0.1-pre.5227",
68
- "@openmrs/esm-expression-evaluator": "10.0.1-pre.5227",
69
- "@openmrs/esm-extensions": "10.0.1-pre.5227",
70
- "@openmrs/esm-feature-flags": "10.0.1-pre.5227",
71
- "@openmrs/esm-globals": "10.0.1-pre.5227",
72
- "@openmrs/esm-navigation": "10.0.1-pre.5227",
73
- "@openmrs/esm-offline": "10.0.1-pre.5227",
74
- "@openmrs/esm-react-utils": "10.0.1-pre.5227",
75
- "@openmrs/esm-routes": "10.0.1-pre.5227",
76
- "@openmrs/esm-state": "10.0.1-pre.5227",
77
- "@openmrs/esm-styleguide": "10.0.1-pre.5227",
78
- "@openmrs/esm-translations": "10.0.1-pre.5227",
79
- "@openmrs/esm-utils": "10.0.1-pre.5227"
62
+ "@openmrs/esm-api": "10.0.1-pre.5251",
63
+ "@openmrs/esm-config": "10.0.1-pre.5251",
64
+ "@openmrs/esm-context": "10.0.1-pre.5251",
65
+ "@openmrs/esm-dynamic-loading": "10.0.1-pre.5251",
66
+ "@openmrs/esm-emr-api": "10.0.1-pre.5251",
67
+ "@openmrs/esm-error-handling": "10.0.1-pre.5251",
68
+ "@openmrs/esm-expression-evaluator": "10.0.1-pre.5251",
69
+ "@openmrs/esm-extensions": "10.0.1-pre.5251",
70
+ "@openmrs/esm-feature-flags": "10.0.1-pre.5251",
71
+ "@openmrs/esm-globals": "10.0.1-pre.5251",
72
+ "@openmrs/esm-navigation": "10.0.1-pre.5251",
73
+ "@openmrs/esm-offline": "10.0.1-pre.5251",
74
+ "@openmrs/esm-react-utils": "10.0.1-pre.5251",
75
+ "@openmrs/esm-routes": "10.0.1-pre.5251",
76
+ "@openmrs/esm-state": "10.0.1-pre.5251",
77
+ "@openmrs/esm-styleguide": "10.0.1-pre.5251",
78
+ "@openmrs/esm-translations": "10.0.1-pre.5251",
79
+ "@openmrs/esm-utils": "10.0.1-pre.5251"
80
80
  },
81
81
  "peerDependencies": {
82
82
  "dayjs": "1.x",
@@ -89,7 +89,7 @@
89
89
  "swr": "2.x"
90
90
  },
91
91
  "devDependencies": {
92
- "@openmrs/typedoc-plugin-file-categories": "10.0.1-pre.5227",
92
+ "@openmrs/typedoc-plugin-file-categories": "10.0.1-pre.5251",
93
93
  "@swc/cli": "0.8.1",
94
94
  "@swc/core": "1.15.21",
95
95
  "@vitest/coverage-v8": "^4.1.2",