@openmrs/esm-framework 6.2.1-pre.2920 → 6.3.0
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/docs/API.md
CHANGED
@@ -191,6 +191,7 @@
|
|
191
191
|
- [isOnline](API.md#isonline)
|
192
192
|
- [useFhirFetchAll](API.md#usefhirfetchall)
|
193
193
|
- [useFhirInfinite](API.md#usefhirinfinite)
|
194
|
+
- [useVisitContextStore](API.md#usevisitcontextstore)
|
194
195
|
|
195
196
|
### Store Functions
|
196
197
|
|
@@ -847,7 +848,7 @@ ___
|
|
847
848
|
|
848
849
|
### Actions
|
849
850
|
|
850
|
-
Ƭ **Actions**<`T`\>: (`store`: `StoreApi`<`T`\>) => `
|
851
|
+
Ƭ **Actions**<`T`\>: (`store`: `StoreApi`<`T`\>) => `ActionFunctionsRecord`<`T`\> \| `ActionFunctionsRecord`<`T`\>
|
851
852
|
|
852
853
|
#### Type parameters
|
853
854
|
|
@@ -857,21 +858,24 @@ ___
|
|
857
858
|
|
858
859
|
#### Defined in
|
859
860
|
|
860
|
-
[packages/framework/esm-react-utils/src/useStore.ts:
|
861
|
+
[packages/framework/esm-react-utils/src/useStore.ts:10](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-react-utils/src/useStore.ts#L10)
|
861
862
|
|
862
863
|
___
|
863
864
|
|
864
865
|
### BoundActions
|
865
866
|
|
866
|
-
Ƭ **BoundActions
|
867
|
+
Ƭ **BoundActions**<`T`, `A`\>: `A` extends `ActionFunctionsRecord`<`T`\> ? `BindFunctionsIn`<`A`\> : `A` extends (`store`: `StoreApi`<`T`\>) => `ActionFunctionsRecord`<`T`\> ? `BindFunctionsIn`<`ActionFunctionsRecord`<`T`\>\> : `never`
|
867
868
|
|
868
|
-
####
|
869
|
+
#### Type parameters
|
869
870
|
|
870
|
-
|
871
|
+
| Name | Type |
|
872
|
+
| :------ | :------ |
|
873
|
+
| `T` | `T` |
|
874
|
+
| `A` | extends [`Actions`](API.md#actions)<`T`\> |
|
871
875
|
|
872
876
|
#### Defined in
|
873
877
|
|
874
|
-
[packages/framework/esm-react-utils/src/useStore.ts:
|
878
|
+
[packages/framework/esm-react-utils/src/useStore.ts:12](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-react-utils/src/useStore.ts#L12)
|
875
879
|
|
876
880
|
___
|
877
881
|
|
@@ -1045,7 +1049,7 @@ ___
|
|
1045
1049
|
|
1046
1050
|
#### Defined in
|
1047
1051
|
|
1048
|
-
[packages/framework/esm-api/src/shared-api-objects/visit-utils.ts:
|
1052
|
+
[packages/framework/esm-api/src/shared-api-objects/visit-utils.ts:39](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/shared-api-objects/visit-utils.ts#L39)
|
1049
1053
|
|
1050
1054
|
___
|
1051
1055
|
|
@@ -1067,7 +1071,7 @@ ___
|
|
1067
1071
|
|
1068
1072
|
#### Defined in
|
1069
1073
|
|
1070
|
-
[packages/framework/esm-api/src/shared-api-objects/visit-utils.ts:
|
1074
|
+
[packages/framework/esm-api/src/shared-api-objects/visit-utils.ts:127](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/shared-api-objects/visit-utils.ts#L127)
|
1071
1075
|
|
1072
1076
|
___
|
1073
1077
|
|
@@ -2733,7 +2737,7 @@ ___
|
|
2733
2737
|
|
2734
2738
|
#### Defined in
|
2735
2739
|
|
2736
|
-
[packages/framework/esm-api/src/shared-api-objects/visit-utils.ts:
|
2740
|
+
[packages/framework/esm-api/src/shared-api-objects/visit-utils.ts:57](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/shared-api-objects/visit-utils.ts#L57)
|
2737
2741
|
|
2738
2742
|
___
|
2739
2743
|
|
@@ -2771,7 +2775,7 @@ ___
|
|
2771
2775
|
|
2772
2776
|
#### Defined in
|
2773
2777
|
|
2774
|
-
[packages/framework/esm-api/src/shared-api-objects/visit-utils.ts:
|
2778
|
+
[packages/framework/esm-api/src/shared-api-objects/visit-utils.ts:110](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/shared-api-objects/visit-utils.ts#L110)
|
2775
2779
|
|
2776
2780
|
___
|
2777
2781
|
|
@@ -2972,7 +2976,7 @@ ___
|
|
2972
2976
|
|
2973
2977
|
#### Defined in
|
2974
2978
|
|
2975
|
-
[packages/framework/esm-api/src/shared-api-objects/visit-utils.ts:
|
2979
|
+
[packages/framework/esm-api/src/shared-api-objects/visit-utils.ts:81](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/shared-api-objects/visit-utils.ts#L81)
|
2976
2980
|
|
2977
2981
|
___
|
2978
2982
|
|
@@ -2993,7 +2997,7 @@ ___
|
|
2993
2997
|
|
2994
2998
|
#### Defined in
|
2995
2999
|
|
2996
|
-
[packages/framework/esm-api/src/shared-api-objects/visit-utils.ts:
|
3000
|
+
[packages/framework/esm-api/src/shared-api-objects/visit-utils.ts:61](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/shared-api-objects/visit-utils.ts#L61)
|
2997
3001
|
|
2998
3002
|
___
|
2999
3003
|
|
@@ -3102,7 +3106,7 @@ ___
|
|
3102
3106
|
|
3103
3107
|
### updateVisit
|
3104
3108
|
|
3105
|
-
▸ **updateVisit**(`uuid`, `payload`, `abortController`): `Promise`<[`FetchResponse`](interfaces/FetchResponse.md)
|
3109
|
+
▸ **updateVisit**(`uuid`, `payload`, `abortController`): `Promise`<[`FetchResponse`](interfaces/FetchResponse.md)<[`Visit`](interfaces/Visit.md)\>\>
|
3106
3110
|
|
3107
3111
|
#### Parameters
|
3108
3112
|
|
@@ -3114,11 +3118,11 @@ ___
|
|
3114
3118
|
|
3115
3119
|
#### Returns
|
3116
3120
|
|
3117
|
-
`Promise`<[`FetchResponse`](interfaces/FetchResponse.md)
|
3121
|
+
`Promise`<[`FetchResponse`](interfaces/FetchResponse.md)<[`Visit`](interfaces/Visit.md)\>\>
|
3118
3122
|
|
3119
3123
|
#### Defined in
|
3120
3124
|
|
3121
|
-
[packages/framework/esm-api/src/shared-api-objects/visit-utils.ts:
|
3125
|
+
[packages/framework/esm-api/src/shared-api-objects/visit-utils.ts:92](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/shared-api-objects/visit-utils.ts#L92)
|
3122
3126
|
|
3123
3127
|
___
|
3124
3128
|
|
@@ -4784,33 +4788,45 @@ ___
|
|
4784
4788
|
|
4785
4789
|
[packages/framework/esm-react-utils/src/useExtensionStore.ts:5](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-react-utils/src/useExtensionStore.ts#L5)
|
4786
4790
|
|
4787
|
-
▸ **useExtensionStore
|
4791
|
+
▸ **useExtensionStore**<`A`\>(`actions`): `T` & [`BoundActions`](API.md#boundactions)<`T`, `A`\>
|
4792
|
+
|
4793
|
+
#### Type parameters
|
4794
|
+
|
4795
|
+
| Name | Type |
|
4796
|
+
| :------ | :------ |
|
4797
|
+
| `A` | extends [`Actions`](API.md#actions)<[`ExtensionStore`](interfaces/ExtensionStore.md)\> |
|
4788
4798
|
|
4789
4799
|
#### Parameters
|
4790
4800
|
|
4791
4801
|
| Name | Type |
|
4792
4802
|
| :------ | :------ |
|
4793
|
-
| `actions` |
|
4803
|
+
| `actions` | `A` |
|
4794
4804
|
|
4795
4805
|
#### Returns
|
4796
4806
|
|
4797
|
-
`T` & [`BoundActions`](API.md#boundactions)
|
4807
|
+
`T` & [`BoundActions`](API.md#boundactions)<`T`, `A`\>
|
4798
4808
|
|
4799
4809
|
#### Defined in
|
4800
4810
|
|
4801
4811
|
[packages/framework/esm-react-utils/src/useExtensionStore.ts:5](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-react-utils/src/useExtensionStore.ts#L5)
|
4802
4812
|
|
4803
|
-
▸ **useExtensionStore
|
4813
|
+
▸ **useExtensionStore**<`A`\>(`actions?`): `T` & [`BoundActions`](API.md#boundactions)<`T`, `A`\>
|
4814
|
+
|
4815
|
+
#### Type parameters
|
4816
|
+
|
4817
|
+
| Name | Type |
|
4818
|
+
| :------ | :------ |
|
4819
|
+
| `A` | extends [`Actions`](API.md#actions)<[`ExtensionStore`](interfaces/ExtensionStore.md)\> |
|
4804
4820
|
|
4805
4821
|
#### Parameters
|
4806
4822
|
|
4807
4823
|
| Name | Type |
|
4808
4824
|
| :------ | :------ |
|
4809
|
-
| `actions?` |
|
4825
|
+
| `actions?` | `A` |
|
4810
4826
|
|
4811
4827
|
#### Returns
|
4812
4828
|
|
4813
|
-
`T` & [`BoundActions`](API.md#boundactions)
|
4829
|
+
`T` & [`BoundActions`](API.md#boundactions)<`T`, `A`\>
|
4814
4830
|
|
4815
4831
|
#### Defined in
|
4816
4832
|
|
@@ -6579,6 +6595,28 @@ a UseServerInfiniteReturnObject object
|
|
6579
6595
|
|
6580
6596
|
___
|
6581
6597
|
|
6598
|
+
### useVisitContextStore
|
6599
|
+
|
6600
|
+
▸ **useVisitContextStore**(`mutateVisitCallback?`): [`VisitStoreState`](interfaces/VisitStoreState.md) & `BindFunctionsIn`<{ `mutateVisit`: (`currState`: [`VisitStoreState`](interfaces/VisitStoreState.md)) => {} ; `setVisitContext`: (`_`: [`VisitStoreState`](interfaces/VisitStoreState.md), `newSelectedVisit`: [`Visit`](interfaces/Visit.md)) => { `manuallySetVisitUuid`: `string` = newSelectedVisit.uuid; `patientUuid`: `undefined` \| `string` = newSelectedVisit.patient.uuid } }\>
|
6601
|
+
|
6602
|
+
A hook to return the visit context store and corresponding actions.
|
6603
|
+
|
6604
|
+
#### Parameters
|
6605
|
+
|
6606
|
+
| Name | Type | Description |
|
6607
|
+
| :------ | :------ | :------ |
|
6608
|
+
| `mutateVisitCallback?` | () => `void` | An optional mutate callback to register. If provided, the store action's `mutateVisit` function will invoke this callback (along with any other callbacks also registered into the store) |
|
6609
|
+
|
6610
|
+
#### Returns
|
6611
|
+
|
6612
|
+
[`VisitStoreState`](interfaces/VisitStoreState.md) & `BindFunctionsIn`<{ `mutateVisit`: (`currState`: [`VisitStoreState`](interfaces/VisitStoreState.md)) => {} ; `setVisitContext`: (`_`: [`VisitStoreState`](interfaces/VisitStoreState.md), `newSelectedVisit`: [`Visit`](interfaces/Visit.md)) => { `manuallySetVisitUuid`: `string` = newSelectedVisit.uuid; `patientUuid`: `undefined` \| `string` = newSelectedVisit.patient.uuid } }\>
|
6613
|
+
|
6614
|
+
#### Defined in
|
6615
|
+
|
6616
|
+
[packages/framework/esm-react-utils/src/useVisitContextStore.ts:28](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-react-utils/src/useVisitContextStore.ts#L28)
|
6617
|
+
|
6618
|
+
___
|
6619
|
+
|
6582
6620
|
## Store Functions
|
6583
6621
|
|
6584
6622
|
### createGlobalStore
|
@@ -6614,7 +6652,7 @@ ___
|
|
6614
6652
|
|
6615
6653
|
### createUseStore
|
6616
6654
|
|
6617
|
-
▸ **createUseStore**<`T`\>(`store`): () => `T
|
6655
|
+
▸ **createUseStore**<`T`\>(`store`): () => `T`<A\>(`actions`: `A`) => `T` & [`BoundActions`](API.md#boundactions)<`T`, `A`\><A\>(`actions?`: `A`) => `T` & [`BoundActions`](API.md#boundactions)<`T`, `A`\>
|
6618
6656
|
|
6619
6657
|
Whenever possible, use `useStore(yourStore)` instead. This function is for creating a
|
6620
6658
|
custom hook for a specific store.
|
@@ -6641,33 +6679,45 @@ custom hook for a specific store.
|
|
6641
6679
|
|
6642
6680
|
`T`
|
6643
6681
|
|
6644
|
-
▸ (`actions`): `T` & [`BoundActions`](API.md#boundactions)
|
6682
|
+
▸ <`A`\>(`actions`): `T` & [`BoundActions`](API.md#boundactions)<`T`, `A`\>
|
6683
|
+
|
6684
|
+
##### Type parameters
|
6685
|
+
|
6686
|
+
| Name | Type |
|
6687
|
+
| :------ | :------ |
|
6688
|
+
| `A` | extends [`Actions`](API.md#actions)<`T`\> |
|
6645
6689
|
|
6646
6690
|
##### Parameters
|
6647
6691
|
|
6648
6692
|
| Name | Type |
|
6649
6693
|
| :------ | :------ |
|
6650
|
-
| `actions` |
|
6694
|
+
| `actions` | `A` |
|
6651
6695
|
|
6652
6696
|
##### Returns
|
6653
6697
|
|
6654
|
-
`T` & [`BoundActions`](API.md#boundactions)
|
6698
|
+
`T` & [`BoundActions`](API.md#boundactions)<`T`, `A`\>
|
6699
|
+
|
6700
|
+
▸ <`A`\>(`actions?`): `T` & [`BoundActions`](API.md#boundactions)<`T`, `A`\>
|
6655
6701
|
|
6656
|
-
|
6702
|
+
##### Type parameters
|
6703
|
+
|
6704
|
+
| Name | Type |
|
6705
|
+
| :------ | :------ |
|
6706
|
+
| `A` | extends [`Actions`](API.md#actions)<`T`\> |
|
6657
6707
|
|
6658
6708
|
##### Parameters
|
6659
6709
|
|
6660
6710
|
| Name | Type |
|
6661
6711
|
| :------ | :------ |
|
6662
|
-
| `actions?` |
|
6712
|
+
| `actions?` | `A` |
|
6663
6713
|
|
6664
6714
|
##### Returns
|
6665
6715
|
|
6666
|
-
`T` & [`BoundActions`](API.md#boundactions)
|
6716
|
+
`T` & [`BoundActions`](API.md#boundactions)<`T`, `A`\>
|
6667
6717
|
|
6668
6718
|
#### Defined in
|
6669
6719
|
|
6670
|
-
[packages/framework/esm-react-utils/src/useStore.ts:
|
6720
|
+
[packages/framework/esm-react-utils/src/useStore.ts:95](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-react-utils/src/useStore.ts#L95)
|
6671
6721
|
|
6672
6722
|
___
|
6673
6723
|
|
@@ -6774,14 +6824,13 @@ ___
|
|
6774
6824
|
|
6775
6825
|
### useStore
|
6776
6826
|
|
6777
|
-
▸ **useStore**<`T
|
6827
|
+
▸ **useStore**<`T`\>(`store`): `T`
|
6778
6828
|
|
6779
6829
|
#### Type parameters
|
6780
6830
|
|
6781
6831
|
| Name |
|
6782
6832
|
| :------ |
|
6783
6833
|
| `T` |
|
6784
|
-
| `U` |
|
6785
6834
|
|
6786
6835
|
#### Parameters
|
6787
6836
|
|
@@ -6795,7 +6844,7 @@ ___
|
|
6795
6844
|
|
6796
6845
|
#### Defined in
|
6797
6846
|
|
6798
|
-
[packages/framework/esm-react-utils/src/useStore.ts:
|
6847
|
+
[packages/framework/esm-react-utils/src/useStore.ts:53](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-react-utils/src/useStore.ts#L53)
|
6799
6848
|
|
6800
6849
|
▸ **useStore**<`T`, `U`\>(`store`, `select`): `U`
|
6801
6850
|
|
@@ -6819,16 +6868,17 @@ ___
|
|
6819
6868
|
|
6820
6869
|
#### Defined in
|
6821
6870
|
|
6822
|
-
[packages/framework/esm-react-utils/src/useStore.ts:
|
6871
|
+
[packages/framework/esm-react-utils/src/useStore.ts:54](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-react-utils/src/useStore.ts#L54)
|
6823
6872
|
|
6824
|
-
▸ **useStore**<`T`, `U`\>(`store`, `select`, `actions`): `T` & [`BoundActions`](API.md#boundactions)
|
6873
|
+
▸ **useStore**<`T`, `U`, `A`\>(`store`, `select`, `actions`): `T` & [`BoundActions`](API.md#boundactions)<`T`, `A`\>
|
6825
6874
|
|
6826
6875
|
#### Type parameters
|
6827
6876
|
|
6828
|
-
| Name |
|
6829
|
-
| :------ |
|
6830
|
-
| `T` |
|
6831
|
-
| `U` |
|
6877
|
+
| Name | Type |
|
6878
|
+
| :------ | :------ |
|
6879
|
+
| `T` | `T` |
|
6880
|
+
| `U` | `U` |
|
6881
|
+
| `A` | extends [`Actions`](API.md#actions)<`T`\> |
|
6832
6882
|
|
6833
6883
|
#### Parameters
|
6834
6884
|
|
@@ -6836,24 +6886,25 @@ ___
|
|
6836
6886
|
| :------ | :------ |
|
6837
6887
|
| `store` | `StoreApi`<`T`\> |
|
6838
6888
|
| `select` | `undefined` |
|
6839
|
-
| `actions` |
|
6889
|
+
| `actions` | `A` |
|
6840
6890
|
|
6841
6891
|
#### Returns
|
6842
6892
|
|
6843
|
-
`T` & [`BoundActions`](API.md#boundactions)
|
6893
|
+
`T` & [`BoundActions`](API.md#boundactions)<`T`, `A`\>
|
6844
6894
|
|
6845
6895
|
#### Defined in
|
6846
6896
|
|
6847
|
-
[packages/framework/esm-react-utils/src/useStore.ts:
|
6897
|
+
[packages/framework/esm-react-utils/src/useStore.ts:55](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-react-utils/src/useStore.ts#L55)
|
6848
6898
|
|
6849
|
-
▸ **useStore**<`T`, `U`\>(`store`, `select`, `actions`): `U` & [`BoundActions`](API.md#boundactions)
|
6899
|
+
▸ **useStore**<`T`, `U`, `A`\>(`store`, `select`, `actions`): `U` & [`BoundActions`](API.md#boundactions)<`T`, `A`\>
|
6850
6900
|
|
6851
6901
|
#### Type parameters
|
6852
6902
|
|
6853
|
-
| Name |
|
6854
|
-
| :------ |
|
6855
|
-
| `T` |
|
6856
|
-
| `U` |
|
6903
|
+
| Name | Type |
|
6904
|
+
| :------ | :------ |
|
6905
|
+
| `T` | `T` |
|
6906
|
+
| `U` | `U` |
|
6907
|
+
| `A` | extends [`Actions`](API.md#actions)<`T`\> |
|
6857
6908
|
|
6858
6909
|
#### Parameters
|
6859
6910
|
|
@@ -6861,42 +6912,43 @@ ___
|
|
6861
6912
|
| :------ | :------ |
|
6862
6913
|
| `store` | `StoreApi`<`T`\> |
|
6863
6914
|
| `select` | (`state`: `T`) => `U` |
|
6864
|
-
| `actions` |
|
6915
|
+
| `actions` | `A` |
|
6865
6916
|
|
6866
6917
|
#### Returns
|
6867
6918
|
|
6868
|
-
`U` & [`BoundActions`](API.md#boundactions)
|
6919
|
+
`U` & [`BoundActions`](API.md#boundactions)<`T`, `A`\>
|
6869
6920
|
|
6870
6921
|
#### Defined in
|
6871
6922
|
|
6872
|
-
[packages/framework/esm-react-utils/src/useStore.ts:
|
6923
|
+
[packages/framework/esm-react-utils/src/useStore.ts:60](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-react-utils/src/useStore.ts#L60)
|
6873
6924
|
|
6874
6925
|
___
|
6875
6926
|
|
6876
6927
|
### useStoreWithActions
|
6877
6928
|
|
6878
|
-
▸ **useStoreWithActions**<`T`\>(`store`, `actions`): `T` & [`BoundActions`](API.md#boundactions)
|
6929
|
+
▸ **useStoreWithActions**<`T`, `A`\>(`store`, `actions`): `T` & [`BoundActions`](API.md#boundactions)<`T`, `A`\>
|
6879
6930
|
|
6880
6931
|
#### Type parameters
|
6881
6932
|
|
6882
|
-
| Name |
|
6883
|
-
| :------ |
|
6884
|
-
| `T` |
|
6933
|
+
| Name | Type |
|
6934
|
+
| :------ | :------ |
|
6935
|
+
| `T` | `T` |
|
6936
|
+
| `A` | extends [`Actions`](API.md#actions)<`T`\> |
|
6885
6937
|
|
6886
6938
|
#### Parameters
|
6887
6939
|
|
6888
6940
|
| Name | Type | Description |
|
6889
6941
|
| :------ | :------ | :------ |
|
6890
6942
|
| `store` | `StoreApi`<`T`\> | A zustand store |
|
6891
|
-
| `actions` |
|
6943
|
+
| `actions` | `A` | |
|
6892
6944
|
|
6893
6945
|
#### Returns
|
6894
6946
|
|
6895
|
-
`T` & [`BoundActions`](API.md#boundactions)
|
6947
|
+
`T` & [`BoundActions`](API.md#boundactions)<`T`, `A`\>
|
6896
6948
|
|
6897
6949
|
#### Defined in
|
6898
6950
|
|
6899
|
-
[packages/framework/esm-react-utils/src/useStore.ts:
|
6951
|
+
[packages/framework/esm-react-utils/src/useStore.ts:87](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-react-utils/src/useStore.ts#L87)
|
6900
6952
|
|
6901
6953
|
___
|
6902
6954
|
|
@@ -496,7 +496,7 @@ ___
|
|
496
496
|
|
497
497
|
### aria-current
|
498
498
|
|
499
|
-
• `Optional` **aria-current**: `boolean` \| ``"
|
499
|
+
• `Optional` **aria-current**: `boolean` \| ``"true"`` \| ``"false"`` \| ``"page"`` \| ``"step"`` \| ``"location"`` \| ``"date"`` \| ``"time"``
|
500
500
|
|
501
501
|
Indicates the element that represents the current item within a container or set of related elements.
|
502
502
|
|
@@ -7,6 +7,7 @@
|
|
7
7
|
### API Properties
|
8
8
|
|
9
9
|
- [manuallySetVisitUuid](VisitStoreState.md#manuallysetvisituuid)
|
10
|
+
- [mutateVisitCallbacks](VisitStoreState.md#mutatevisitcallbacks)
|
10
11
|
- [patientUuid](VisitStoreState.md#patientuuid)
|
11
12
|
|
12
13
|
## API Properties
|
@@ -21,6 +22,24 @@
|
|
21
22
|
|
22
23
|
___
|
23
24
|
|
25
|
+
### mutateVisitCallbacks
|
26
|
+
|
27
|
+
• **mutateVisitCallbacks**: `Object`
|
28
|
+
|
29
|
+
Stores a record of SWR mutate callbacks that should be called when
|
30
|
+
the Visit with the specified uuid is modified. The callbacks are keyed
|
31
|
+
by unique component IDs.
|
32
|
+
|
33
|
+
#### Index signature
|
34
|
+
|
35
|
+
▪ [componentId: `string`]: () => `void`
|
36
|
+
|
37
|
+
#### Defined in
|
38
|
+
|
39
|
+
[packages/framework/esm-api/src/shared-api-objects/visit-utils.ts:34](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/shared-api-objects/visit-utils.ts#L34)
|
40
|
+
|
41
|
+
___
|
42
|
+
|
24
43
|
### patientUuid
|
25
44
|
|
26
45
|
• **patientUuid**: ``null`` \| `string`
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@openmrs/esm-framework",
|
3
|
-
"version": "6.
|
3
|
+
"version": "6.3.0",
|
4
4
|
"license": "MPL-2.0",
|
5
5
|
"browser": "dist/openmrs-esm-framework.js",
|
6
6
|
"main": "src/index.ts",
|
@@ -37,23 +37,23 @@
|
|
37
37
|
"access": "public"
|
38
38
|
},
|
39
39
|
"dependencies": {
|
40
|
-
"@openmrs/esm-api": "6.
|
41
|
-
"@openmrs/esm-config": "6.
|
42
|
-
"@openmrs/esm-context": "6.
|
43
|
-
"@openmrs/esm-dynamic-loading": "6.
|
44
|
-
"@openmrs/esm-error-handling": "6.
|
45
|
-
"@openmrs/esm-expression-evaluator": "6.
|
46
|
-
"@openmrs/esm-extensions": "6.
|
47
|
-
"@openmrs/esm-feature-flags": "6.
|
48
|
-
"@openmrs/esm-globals": "6.
|
49
|
-
"@openmrs/esm-navigation": "6.
|
50
|
-
"@openmrs/esm-offline": "6.
|
51
|
-
"@openmrs/esm-react-utils": "6.
|
52
|
-
"@openmrs/esm-routes": "6.
|
53
|
-
"@openmrs/esm-state": "6.
|
54
|
-
"@openmrs/esm-styleguide": "6.
|
55
|
-
"@openmrs/esm-translations": "6.
|
56
|
-
"@openmrs/esm-utils": "6.
|
40
|
+
"@openmrs/esm-api": "6.3.0",
|
41
|
+
"@openmrs/esm-config": "6.3.0",
|
42
|
+
"@openmrs/esm-context": "6.3.0",
|
43
|
+
"@openmrs/esm-dynamic-loading": "6.3.0",
|
44
|
+
"@openmrs/esm-error-handling": "6.3.0",
|
45
|
+
"@openmrs/esm-expression-evaluator": "6.3.0",
|
46
|
+
"@openmrs/esm-extensions": "6.3.0",
|
47
|
+
"@openmrs/esm-feature-flags": "6.3.0",
|
48
|
+
"@openmrs/esm-globals": "6.3.0",
|
49
|
+
"@openmrs/esm-navigation": "6.3.0",
|
50
|
+
"@openmrs/esm-offline": "6.3.0",
|
51
|
+
"@openmrs/esm-react-utils": "6.3.0",
|
52
|
+
"@openmrs/esm-routes": "6.3.0",
|
53
|
+
"@openmrs/esm-state": "6.3.0",
|
54
|
+
"@openmrs/esm-styleguide": "6.3.0",
|
55
|
+
"@openmrs/esm-translations": "6.3.0",
|
56
|
+
"@openmrs/esm-utils": "6.3.0",
|
57
57
|
"dayjs": "^1.10.7"
|
58
58
|
},
|
59
59
|
"peerDependencies": {
|
@@ -72,6 +72,5 @@
|
|
72
72
|
"jest-environment-jsdom": "^29.7.0",
|
73
73
|
"svgo-loader": "^4.0.0",
|
74
74
|
"webpack": "^5.88.0"
|
75
|
-
}
|
76
|
-
"stableVersion": "6.2.0"
|
75
|
+
}
|
77
76
|
}
|