@openmrs/esm-framework 3.3.2-pre.9 → 3.4.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
@@ -53,6 +53,7 @@
53
53
  - [inRange](API.md#inrange)
54
54
  - [isUrl](API.md#isurl)
55
55
  - [isUrlWithTemplateParameters](API.md#isurlwithtemplateparameters)
56
+ - [oneOf](API.md#oneof)
56
57
  - [validator](API.md#validator)
57
58
 
58
59
  ### Date and Time Functions
@@ -392,7 +393,7 @@ ___
392
393
 
393
394
  #### Defined in
394
395
 
395
- [packages/framework/esm-globals/src/types.ts:55](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L55)
396
+ [packages/framework/esm-globals/src/types.ts:53](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L53)
396
397
 
397
398
  ___
398
399
 
@@ -590,10 +591,11 @@ ___
590
591
  | `inRange` | (`min`: `number`, `max`: `number`) => [`Validator`](API.md#validator) |
591
592
  | `isUrl` | [`Validator`](API.md#validator) |
592
593
  | `isUrlWithTemplateParameters` | (`allowedTemplateParameters`: `string`[]) => [`Validator`](API.md#validator) |
594
+ | `oneOf` | (`allowedValues`: `any`[]) => [`Validator`](API.md#validator) |
593
595
 
594
596
  #### Defined in
595
597
 
596
- [packages/framework/esm-config/src/validators/validators.ts:58](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-config/src/validators/validators.ts#L58)
598
+ [packages/framework/esm-config/src/validators/validators.ts:69](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-config/src/validators/validators.ts#L69)
597
599
 
598
600
  ___
599
601
 
@@ -1316,7 +1318,7 @@ Object {`error` `isValidating`, `currentVisit`, `mutate`}
1316
1318
 
1317
1319
  #### Defined in
1318
1320
 
1319
- [packages/framework/esm-react-utils/src/useVisit.ts:27](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-react-utils/src/useVisit.ts#L27)
1321
+ [packages/framework/esm-react-utils/src/useVisit.ts:29](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-react-utils/src/useVisit.ts#L29)
1320
1322
 
1321
1323
  ___
1322
1324
 
@@ -1667,24 +1669,63 @@ parameters, plus any specified in `allowedTemplateParameters`.
1667
1669
 
1668
1670
  ___
1669
1671
 
1672
+ ### oneOf
1673
+
1674
+ ▸ `Const` **oneOf**(`allowedValues`): [`Validator`](API.md#validator)
1675
+
1676
+ Verifies that the value is one of the allowed options.
1677
+
1678
+ #### Parameters
1679
+
1680
+ | Name | Type | Description |
1681
+ | :------ | :------ | :------ |
1682
+ | `allowedValues` | `any`[] | The list of allowable values |
1683
+
1684
+ #### Returns
1685
+
1686
+ [`Validator`](API.md#validator)
1687
+
1688
+ #### Defined in
1689
+
1690
+ [packages/framework/esm-config/src/validators/validators.ts:62](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-config/src/validators/validators.ts#L62)
1691
+
1692
+ ___
1693
+
1670
1694
  ### validator
1671
1695
 
1672
1696
  ▸ **validator**(`validationFunction`, `message`): [`Validator`](API.md#validator)
1673
1697
 
1698
+ Constructs a custom validator.
1699
+
1700
+ ### Example
1701
+
1702
+ ```typescript
1703
+ {
1704
+ foo: {
1705
+ _default: 0,
1706
+ _validators: [
1707
+ validator(val => val >= 0, "Must not be negative.")
1708
+ ]
1709
+ }
1710
+ }
1711
+ ```
1712
+
1674
1713
  #### Parameters
1675
1714
 
1676
- | Name | Type |
1677
- | :------ | :------ |
1678
- | `validationFunction` | [`ValidatorFunction`](API.md#validatorfunction) |
1679
- | `message` | `string` |
1715
+ | Name | Type | Description |
1716
+ | :------ | :------ | :------ |
1717
+ | `validationFunction` | [`ValidatorFunction`](API.md#validatorfunction) | Takes the configured value as input. Returns true if it is valid, false otherwise. |
1718
+ | `message` | `string` \| (`value`: `any`) => `string` | A string message that explains why the value is invalid. Can also be a function that takes the value as input and returns a string. |
1680
1719
 
1681
1720
  #### Returns
1682
1721
 
1683
1722
  [`Validator`](API.md#validator)
1684
1723
 
1724
+ A validator ready for use in a config schema
1725
+
1685
1726
  #### Defined in
1686
1727
 
1687
- [packages/framework/esm-config/src/validators/validator.ts:4](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-config/src/validators/validator.ts#L4)
1728
+ [packages/framework/esm-config/src/validators/validator.ts:25](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-config/src/validators/validator.ts#L25)
1688
1729
 
1689
1730
  ___
1690
1731
 
@@ -2728,7 +2769,7 @@ ___
2728
2769
 
2729
2770
  ### getFullSynchronizationItems
2730
2771
 
2731
- ▸ **getFullSynchronizationItems**<`T`\>(`type`): `Promise`<[`SyncItem`](interfaces/SyncItem.md)<`T`\>[]\>
2772
+ ▸ **getFullSynchronizationItems**<`T`\>(`type?`): `Promise`<[`SyncItem`](interfaces/SyncItem.md)<`T`\>[]\>
2732
2773
 
2733
2774
  Returns all currently queued up sync items of the currently signed in user.
2734
2775
 
@@ -2742,7 +2783,7 @@ Returns all currently queued up sync items of the currently signed in user.
2742
2783
 
2743
2784
  | Name | Type | Description |
2744
2785
  | :------ | :------ | :------ |
2745
- | `type` | `string` | The identifying type of the synchronization items to be returned. |
2786
+ | `type?` | `string` | The identifying type of the synchronization items to be returned. |
2746
2787
 
2747
2788
  #### Returns
2748
2789
 
@@ -2750,13 +2791,13 @@ Returns all currently queued up sync items of the currently signed in user.
2750
2791
 
2751
2792
  #### Defined in
2752
2793
 
2753
- [packages/framework/esm-offline/src/sync.ts:347](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/sync.ts#L347)
2794
+ [packages/framework/esm-offline/src/sync.ts:345](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/sync.ts#L345)
2754
2795
 
2755
2796
  ___
2756
2797
 
2757
2798
  ### getFullSynchronizationItemsFor
2758
2799
 
2759
- ▸ **getFullSynchronizationItemsFor**<`T`\>(`userId`, `type`): `Promise`<[`SyncItem`](interfaces/SyncItem.md)<`T`\>[]\>
2800
+ ▸ **getFullSynchronizationItemsFor**<`T`\>(`userId`, `type?`): `Promise`<[`SyncItem`](interfaces/SyncItem.md)<`T`\>[]\>
2760
2801
 
2761
2802
  Returns all currently queued up sync items of a given user.
2762
2803
 
@@ -2771,7 +2812,7 @@ Returns all currently queued up sync items of a given user.
2771
2812
  | Name | Type | Description |
2772
2813
  | :------ | :------ | :------ |
2773
2814
  | `userId` | `string` | The ID of the user whose synchronization items should be returned. |
2774
- | `type` | `string` | The identifying type of the synchronization items to be returned.. |
2815
+ | `type?` | `string` | The identifying type of the synchronization items to be returned.. |
2775
2816
 
2776
2817
  #### Returns
2777
2818
 
@@ -2779,7 +2820,7 @@ Returns all currently queued up sync items of a given user.
2779
2820
 
2780
2821
  #### Defined in
2781
2822
 
2782
- [packages/framework/esm-offline/src/sync.ts:320](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/sync.ts#L320)
2823
+ [packages/framework/esm-offline/src/sync.ts:321](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/sync.ts#L321)
2783
2824
 
2784
2825
  ___
2785
2826
 
@@ -2821,13 +2862,13 @@ Returns a queued sync item with the given ID or `undefined` if no such item exis
2821
2862
 
2822
2863
  #### Defined in
2823
2864
 
2824
- [packages/framework/esm-offline/src/sync.ts:356](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/sync.ts#L356)
2865
+ [packages/framework/esm-offline/src/sync.ts:354](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/sync.ts#L354)
2825
2866
 
2826
2867
  ___
2827
2868
 
2828
2869
  ### getSynchronizationItems
2829
2870
 
2830
- ▸ **getSynchronizationItems**<`T`\>(`type`): `Promise`<`T`[]\>
2871
+ ▸ **getSynchronizationItems**<`T`\>(`type?`): `Promise`<`T`[]\>
2831
2872
 
2832
2873
  Returns the content of all currently queued up sync items of the currently signed in user.
2833
2874
 
@@ -2841,7 +2882,7 @@ Returns the content of all currently queued up sync items of the currently signe
2841
2882
 
2842
2883
  | Name | Type | Description |
2843
2884
  | :------ | :------ | :------ |
2844
- | `type` | `string` | The identifying type of the synchronization items to be returned. |
2885
+ | `type?` | `string` | The identifying type of the synchronization items to be returned. |
2845
2886
 
2846
2887
  #### Returns
2847
2888
 
@@ -2849,7 +2890,7 @@ Returns the content of all currently queued up sync items of the currently signe
2849
2890
 
2850
2891
  #### Defined in
2851
2892
 
2852
- [packages/framework/esm-offline/src/sync.ts:338](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/sync.ts#L338)
2893
+ [packages/framework/esm-offline/src/sync.ts:336](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/sync.ts#L336)
2853
2894
 
2854
2895
  ___
2855
2896
 
@@ -2939,7 +2980,7 @@ Enqueues a new item in the sync queue and associates the item with the currently
2939
2980
 
2940
2981
  #### Defined in
2941
2982
 
2942
- [packages/framework/esm-offline/src/sync.ts:293](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/sync.ts#L293)
2983
+ [packages/framework/esm-offline/src/sync.ts:294](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-offline/src/sync.ts#L294)
2943
2984
 
2944
2985
  ___
2945
2986
 
@@ -34,7 +34,7 @@ The module/app that defines the component
34
34
 
35
35
  #### Defined in
36
36
 
37
- [packages/framework/esm-globals/src/types.ts:101](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L101)
37
+ [packages/framework/esm-globals/src/types.ts:99](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L99)
38
38
 
39
39
  ___
40
40
 
@@ -46,7 +46,7 @@ Defines the offline support / properties of the component.
46
46
 
47
47
  #### Defined in
48
48
 
49
- [packages/framework/esm-globals/src/types.ts:113](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L113)
49
+ [packages/framework/esm-globals/src/types.ts:111](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L111)
50
50
 
51
51
  ___
52
52
 
@@ -58,7 +58,7 @@ Defines the online support / properties of the component.
58
58
 
59
59
  #### Defined in
60
60
 
61
- [packages/framework/esm-globals/src/types.ts:109](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L109)
61
+ [packages/framework/esm-globals/src/types.ts:107](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L107)
62
62
 
63
63
  ___
64
64
 
@@ -70,7 +70,7 @@ Defines the access privilege required for this component, if any.
70
70
 
71
71
  #### Defined in
72
72
 
73
- [packages/framework/esm-globals/src/types.ts:117](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L117)
73
+ [packages/framework/esm-globals/src/types.ts:115](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L115)
74
74
 
75
75
  ___
76
76
 
@@ -82,7 +82,7 @@ Defines resources that are loaded when the component should mount.
82
82
 
83
83
  #### Defined in
84
84
 
85
- [packages/framework/esm-globals/src/types.ts:121](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L121)
85
+ [packages/framework/esm-globals/src/types.ts:119](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L119)
86
86
 
87
87
  ## Methods
88
88
 
@@ -98,4 +98,4 @@ Defines a function to use for actually loading the component's lifecycle.
98
98
 
99
99
  #### Defined in
100
100
 
101
- [packages/framework/esm-globals/src/types.ts:105](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L105)
101
+ [packages/framework/esm-globals/src/types.ts:103](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L103)
@@ -42,7 +42,7 @@ The module/app that defines the component
42
42
 
43
43
  #### Defined in
44
44
 
45
- [packages/framework/esm-globals/src/types.ts:101](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L101)
45
+ [packages/framework/esm-globals/src/types.ts:99](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L99)
46
46
 
47
47
  ___
48
48
 
@@ -54,7 +54,7 @@ ___
54
54
 
55
55
  #### Defined in
56
56
 
57
- [packages/framework/esm-globals/src/types.ts:136](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L136)
57
+ [packages/framework/esm-globals/src/types.ts:134](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L134)
58
58
 
59
59
  ___
60
60
 
@@ -66,7 +66,7 @@ The meta data used for reflection by other components
66
66
 
67
67
  #### Defined in
68
68
 
69
- [packages/framework/esm-globals/src/types.ts:132](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L132)
69
+ [packages/framework/esm-globals/src/types.ts:130](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L130)
70
70
 
71
71
  ___
72
72
 
@@ -78,7 +78,7 @@ The name of the extension being registered
78
78
 
79
79
  #### Defined in
80
80
 
81
- [packages/framework/esm-globals/src/types.ts:126](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L126)
81
+ [packages/framework/esm-globals/src/types.ts:124](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L124)
82
82
 
83
83
  ___
84
84
 
@@ -94,7 +94,7 @@ Defines the offline support / properties of the component.
94
94
 
95
95
  #### Defined in
96
96
 
97
- [packages/framework/esm-globals/src/types.ts:113](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L113)
97
+ [packages/framework/esm-globals/src/types.ts:111](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L111)
98
98
 
99
99
  ___
100
100
 
@@ -110,7 +110,7 @@ Defines the online support / properties of the component.
110
110
 
111
111
  #### Defined in
112
112
 
113
- [packages/framework/esm-globals/src/types.ts:109](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L109)
113
+ [packages/framework/esm-globals/src/types.ts:107](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L107)
114
114
 
115
115
  ___
116
116
 
@@ -122,7 +122,7 @@ Specifies the relative order in which the extension renders in a slot
122
122
 
123
123
  #### Defined in
124
124
 
125
- [packages/framework/esm-globals/src/types.ts:134](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L134)
125
+ [packages/framework/esm-globals/src/types.ts:132](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L132)
126
126
 
127
127
  ___
128
128
 
@@ -138,7 +138,7 @@ Defines the access privilege required for this component, if any.
138
138
 
139
139
  #### Defined in
140
140
 
141
- [packages/framework/esm-globals/src/types.ts:117](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L117)
141
+ [packages/framework/esm-globals/src/types.ts:115](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L115)
142
142
 
143
143
  ___
144
144
 
@@ -154,7 +154,7 @@ Defines resources that are loaded when the component should mount.
154
154
 
155
155
  #### Defined in
156
156
 
157
- [packages/framework/esm-globals/src/types.ts:121](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L121)
157
+ [packages/framework/esm-globals/src/types.ts:119](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L119)
158
158
 
159
159
  ___
160
160
 
@@ -166,7 +166,7 @@ A slot to attach to
166
166
 
167
167
  #### Defined in
168
168
 
169
- [packages/framework/esm-globals/src/types.ts:128](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L128)
169
+ [packages/framework/esm-globals/src/types.ts:126](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L126)
170
170
 
171
171
  ___
172
172
 
@@ -178,7 +178,7 @@ Slots to attach to
178
178
 
179
179
  #### Defined in
180
180
 
181
- [packages/framework/esm-globals/src/types.ts:130](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L130)
181
+ [packages/framework/esm-globals/src/types.ts:128](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L128)
182
182
 
183
183
  ## Methods
184
184
 
@@ -198,4 +198,4 @@ Defines a function to use for actually loading the component's lifecycle.
198
198
 
199
199
  #### Defined in
200
200
 
201
- [packages/framework/esm-globals/src/types.ts:105](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L105)
201
+ [packages/framework/esm-globals/src/types.ts:103](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L103)
@@ -16,4 +16,4 @@
16
16
 
17
17
  #### Defined in
18
18
 
19
- [packages/framework/esm-globals/src/types.ts:58](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L58)
19
+ [packages/framework/esm-globals/src/types.ts:56](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L56)
@@ -19,7 +19,7 @@
19
19
 
20
20
  #### Defined in
21
21
 
22
- [packages/framework/esm-globals/src/types.ts:62](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L62)
22
+ [packages/framework/esm-globals/src/types.ts:60](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L60)
23
23
 
24
24
  ___
25
25
 
@@ -29,7 +29,7 @@ ___
29
29
 
30
30
  #### Defined in
31
31
 
32
- [packages/framework/esm-globals/src/types.ts:63](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L63)
32
+ [packages/framework/esm-globals/src/types.ts:61](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L61)
33
33
 
34
34
  ___
35
35
 
@@ -39,7 +39,7 @@ ___
39
39
 
40
40
  #### Defined in
41
41
 
42
- [packages/framework/esm-globals/src/types.ts:64](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L64)
42
+ [packages/framework/esm-globals/src/types.ts:62](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L62)
43
43
 
44
44
  ___
45
45
 
@@ -49,4 +49,4 @@ ___
49
49
 
50
50
  #### Defined in
51
51
 
52
- [packages/framework/esm-globals/src/types.ts:65](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L65)
52
+ [packages/framework/esm-globals/src/types.ts:63](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L63)
@@ -38,7 +38,7 @@ The module/app that defines the component
38
38
 
39
39
  #### Defined in
40
40
 
41
- [packages/framework/esm-globals/src/types.ts:101](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L101)
41
+ [packages/framework/esm-globals/src/types.ts:99](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L99)
42
42
 
43
43
  ___
44
44
 
@@ -54,7 +54,7 @@ Defines the offline support / properties of the component.
54
54
 
55
55
  #### Defined in
56
56
 
57
- [packages/framework/esm-globals/src/types.ts:113](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L113)
57
+ [packages/framework/esm-globals/src/types.ts:111](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L111)
58
58
 
59
59
  ___
60
60
 
@@ -70,7 +70,7 @@ Defines the online support / properties of the component.
70
70
 
71
71
  #### Defined in
72
72
 
73
- [packages/framework/esm-globals/src/types.ts:109](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L109)
73
+ [packages/framework/esm-globals/src/types.ts:107](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L107)
74
74
 
75
75
  ___
76
76
 
@@ -82,7 +82,7 @@ The order in which to load the page. This determines DOM order.
82
82
 
83
83
  #### Defined in
84
84
 
85
- [packages/framework/esm-globals/src/types.ts:147](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L147)
85
+ [packages/framework/esm-globals/src/types.ts:145](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L145)
86
86
 
87
87
  ___
88
88
 
@@ -98,7 +98,7 @@ Defines the access privilege required for this component, if any.
98
98
 
99
99
  #### Defined in
100
100
 
101
- [packages/framework/esm-globals/src/types.ts:117](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L117)
101
+ [packages/framework/esm-globals/src/types.ts:115](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L115)
102
102
 
103
103
  ___
104
104
 
@@ -114,7 +114,7 @@ Defines resources that are loaded when the component should mount.
114
114
 
115
115
  #### Defined in
116
116
 
117
- [packages/framework/esm-globals/src/types.ts:121](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L121)
117
+ [packages/framework/esm-globals/src/types.ts:119](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L119)
118
118
 
119
119
  ___
120
120
 
@@ -126,7 +126,7 @@ The route of the page.
126
126
 
127
127
  #### Defined in
128
128
 
129
- [packages/framework/esm-globals/src/types.ts:143](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L143)
129
+ [packages/framework/esm-globals/src/types.ts:141](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L141)
130
130
 
131
131
  ## Methods
132
132
 
@@ -146,4 +146,4 @@ Defines a function to use for actually loading the component's lifecycle.
146
146
 
147
147
  #### Defined in
148
148
 
149
- [packages/framework/esm-globals/src/types.ts:105](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L105)
149
+ [packages/framework/esm-globals/src/types.ts:103](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L103)
@@ -20,4 +20,4 @@
20
20
 
21
21
  #### Defined in
22
22
 
23
- [packages/framework/esm-globals/src/types.ts:94](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L94)
23
+ [packages/framework/esm-globals/src/types.ts:92](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L92)
@@ -22,7 +22,7 @@ The base path or URL for the OpenMRS API / endpoints.
22
22
 
23
23
  #### Defined in
24
24
 
25
- [packages/framework/esm-globals/src/types.ts:72](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L72)
25
+ [packages/framework/esm-globals/src/types.ts:70](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L70)
26
26
 
27
27
  ___
28
28
 
@@ -34,7 +34,7 @@ URLs of configurations to load in the system.
34
34
 
35
35
  #### Defined in
36
36
 
37
- [packages/framework/esm-globals/src/types.ts:85](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L85)
37
+ [packages/framework/esm-globals/src/types.ts:83](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L83)
38
38
 
39
39
  ___
40
40
 
@@ -48,7 +48,7 @@ The environment to use.
48
48
 
49
49
  #### Defined in
50
50
 
51
- [packages/framework/esm-globals/src/types.ts:81](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L81)
51
+ [packages/framework/esm-globals/src/types.ts:79](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L79)
52
52
 
53
53
  ___
54
54
 
@@ -62,7 +62,7 @@ Defines if offline should be supported by installing a service worker.
62
62
 
63
63
  #### Defined in
64
64
 
65
- [packages/framework/esm-globals/src/types.ts:90](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L90)
65
+ [packages/framework/esm-globals/src/types.ts:88](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L88)
66
66
 
67
67
  ___
68
68
 
@@ -74,4 +74,4 @@ The base path for the SPA root path.
74
74
 
75
75
  #### Defined in
76
76
 
77
- [packages/framework/esm-globals/src/types.ts:76](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L76)
77
+ [packages/framework/esm-globals/src/types.ts:74](https://github.com/openmrs/openmrs-esm-core/blob/master/packages/framework/esm-globals/src/types.ts#L74)
package/mock.tsx CHANGED
@@ -10,7 +10,11 @@ export {
10
10
  formatTime,
11
11
  age,
12
12
  } from "@openmrs/esm-utils";
13
- export { interpolateString, interpolateUrl } from "@openmrs/esm-config";
13
+ export {
14
+ interpolateString,
15
+ interpolateUrl,
16
+ validators,
17
+ } from "@openmrs/esm-config";
14
18
 
15
19
  window.i18next = { ...window.i18next, language: "en" };
16
20
 
@@ -149,13 +153,6 @@ export enum Type {
149
153
  UUID = "UUID",
150
154
  }
151
155
 
152
- export const validators = {
153
- isBoolean: jest.fn(),
154
- isString: jest.fn(),
155
- isUuid: jest.fn(),
156
- isObject: jest.fn(),
157
- };
158
-
159
156
  let configSchema = {};
160
157
  function getDefaults(schema) {
161
158
  let tmp = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-framework",
3
- "version": "3.3.2-pre.9",
3
+ "version": "3.4.0",
4
4
  "license": "MPL-2.0",
5
5
  "browser": "dist/openmrs-esm-framework.js",
6
6
  "main": "src/index.ts",
@@ -35,18 +35,18 @@
35
35
  "access": "public"
36
36
  },
37
37
  "dependencies": {
38
- "@openmrs/esm-api": "^3.3.2-pre.9",
39
- "@openmrs/esm-breadcrumbs": "^3.3.2-pre.9",
40
- "@openmrs/esm-config": "^3.3.2-pre.9",
41
- "@openmrs/esm-error-handling": "^3.3.2-pre.9",
42
- "@openmrs/esm-extensions": "^3.3.2-pre.9",
43
- "@openmrs/esm-globals": "^3.3.2-pre.9",
44
- "@openmrs/esm-offline": "^3.3.2-pre.9",
45
- "@openmrs/esm-react-utils": "^3.3.2-pre.9",
46
- "@openmrs/esm-state": "^3.3.2-pre.9",
47
- "@openmrs/esm-styleguide": "^3.3.2-pre.9",
48
- "@openmrs/esm-utils": "^3.3.2-pre.9",
38
+ "@openmrs/esm-api": "^3.4.0",
39
+ "@openmrs/esm-breadcrumbs": "^3.4.0",
40
+ "@openmrs/esm-config": "^3.4.0",
41
+ "@openmrs/esm-error-handling": "^3.4.0",
42
+ "@openmrs/esm-extensions": "^3.4.0",
43
+ "@openmrs/esm-globals": "^3.4.0",
44
+ "@openmrs/esm-offline": "^3.4.0",
45
+ "@openmrs/esm-react-utils": "^3.4.0",
46
+ "@openmrs/esm-state": "^3.4.0",
47
+ "@openmrs/esm-styleguide": "^3.4.0",
48
+ "@openmrs/esm-utils": "^3.4.0",
49
49
  "dayjs": "^1.10.7"
50
50
  },
51
- "gitHead": "cf39a8f13110271a58afce56819d93eb8b759dc5"
51
+ "gitHead": "51e0d8495e4dbd18d18da19267ed4a792ab4fc6c"
52
52
  }