@openmrs/esm-framework 4.1.1-pre.556 → 4.1.1-pre.558
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/.turbo/turbo-build.log +2 -2
- package/dist/openmrs-esm-framework.js.map +1 -1
- package/docs/API.md +10 -16
- package/docs/interfaces/Config.md +0 -175
- package/docs/interfaces/ConfigObject.md +0 -170
- package/package.json +13 -13
package/docs/API.md
CHANGED
|
@@ -1611,25 +1611,19 @@ ___
|
|
|
1611
1611
|
|
|
1612
1612
|
### useConfig
|
|
1613
1613
|
|
|
1614
|
-
▸ **useConfig
|
|
1614
|
+
▸ **useConfig**<`T`\>(): `T`
|
|
1615
1615
|
|
|
1616
1616
|
Use this React Hook to obtain your module's configuration.
|
|
1617
1617
|
|
|
1618
|
-
####
|
|
1618
|
+
#### Type parameters
|
|
1619
1619
|
|
|
1620
|
-
|
|
1620
|
+
| Name | Type |
|
|
1621
|
+
| :------ | :------ |
|
|
1622
|
+
| `T` | `Omit`<[`ConfigObject`](interfaces/ConfigObject.md), ``"Display conditions"`` \| ``"Translation overrides"``\> |
|
|
1621
1623
|
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
| `Translation overrides?` | `Record`<`string`, `Record`<`string`, `string`\>\> | - |
|
|
1626
|
-
| `constructor` | `Function` | The initial value of Object.prototype.constructor is the standard built-in Object constructor. |
|
|
1627
|
-
| `hasOwnProperty` | (`v`: `PropertyKey`) => `boolean` | Determines whether an object has a property with the specified name. |
|
|
1628
|
-
| `isPrototypeOf` | (`v`: `Object`) => `boolean` | Determines whether an object exists in another object's prototype chain. |
|
|
1629
|
-
| `propertyIsEnumerable` | (`v`: `PropertyKey`) => `boolean` | Determines whether a specified property is enumerable. |
|
|
1630
|
-
| `toLocaleString` | () => `string` | Returns a date converted to a string using the current locale. |
|
|
1631
|
-
| `toString` | () => `string` | Returns a string representation of an object. |
|
|
1632
|
-
| `valueOf` | () => `Object` | Returns the primitive value of the specified object. |
|
|
1624
|
+
#### Returns
|
|
1625
|
+
|
|
1626
|
+
`T`
|
|
1633
1627
|
|
|
1634
1628
|
#### Defined in
|
|
1635
1629
|
|
|
@@ -2114,7 +2108,7 @@ ___
|
|
|
2114
2108
|
|
|
2115
2109
|
#### Defined in
|
|
2116
2110
|
|
|
2117
|
-
[packages/framework/esm-error-handling/src/index.ts:
|
|
2111
|
+
[packages/framework/esm-error-handling/src/index.ts:31](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-error-handling/src/index.ts#L31)
|
|
2118
2112
|
|
|
2119
2113
|
___
|
|
2120
2114
|
|
|
@@ -2134,7 +2128,7 @@ ___
|
|
|
2134
2128
|
|
|
2135
2129
|
#### Defined in
|
|
2136
2130
|
|
|
2137
|
-
[packages/framework/esm-error-handling/src/index.ts:
|
|
2131
|
+
[packages/framework/esm-error-handling/src/index.ts:24](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-error-handling/src/index.ts#L24)
|
|
2138
2132
|
|
|
2139
2133
|
___
|
|
2140
2134
|
|
|
@@ -2,181 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
# Interface: Config
|
|
4
4
|
|
|
5
|
-
## Hierarchy
|
|
6
|
-
|
|
7
|
-
- `Object`
|
|
8
|
-
|
|
9
|
-
↳ **`Config`**
|
|
10
|
-
|
|
11
5
|
## Indexable
|
|
12
6
|
|
|
13
7
|
▪ [moduleName: `string`]: { `[key: string]`: `any`; }
|
|
14
|
-
|
|
15
|
-
## Table of contents
|
|
16
|
-
|
|
17
|
-
### Properties
|
|
18
|
-
|
|
19
|
-
- [constructor](Config.md#constructor)
|
|
20
|
-
|
|
21
|
-
### Methods
|
|
22
|
-
|
|
23
|
-
- [hasOwnProperty](Config.md#hasownproperty)
|
|
24
|
-
- [isPrototypeOf](Config.md#isprototypeof)
|
|
25
|
-
- [propertyIsEnumerable](Config.md#propertyisenumerable)
|
|
26
|
-
- [toLocaleString](Config.md#tolocalestring)
|
|
27
|
-
- [toString](Config.md#tostring)
|
|
28
|
-
- [valueOf](Config.md#valueof)
|
|
29
|
-
|
|
30
|
-
## Properties
|
|
31
|
-
|
|
32
|
-
### constructor
|
|
33
|
-
|
|
34
|
-
• **constructor**: `Function`
|
|
35
|
-
|
|
36
|
-
The initial value of Object.prototype.constructor is the standard built-in Object constructor.
|
|
37
|
-
|
|
38
|
-
#### Inherited from
|
|
39
|
-
|
|
40
|
-
Object.constructor
|
|
41
|
-
|
|
42
|
-
#### Defined in
|
|
43
|
-
|
|
44
|
-
node_modules/typescript/lib/lib.es5.d.ts:124
|
|
45
|
-
|
|
46
|
-
## Methods
|
|
47
|
-
|
|
48
|
-
### hasOwnProperty
|
|
49
|
-
|
|
50
|
-
▸ **hasOwnProperty**(`v`): `boolean`
|
|
51
|
-
|
|
52
|
-
Determines whether an object has a property with the specified name.
|
|
53
|
-
|
|
54
|
-
#### Parameters
|
|
55
|
-
|
|
56
|
-
| Name | Type | Description |
|
|
57
|
-
| :------ | :------ | :------ |
|
|
58
|
-
| `v` | `PropertyKey` | A property name. |
|
|
59
|
-
|
|
60
|
-
#### Returns
|
|
61
|
-
|
|
62
|
-
`boolean`
|
|
63
|
-
|
|
64
|
-
#### Inherited from
|
|
65
|
-
|
|
66
|
-
Object.hasOwnProperty
|
|
67
|
-
|
|
68
|
-
#### Defined in
|
|
69
|
-
|
|
70
|
-
node_modules/typescript/lib/lib.es5.d.ts:139
|
|
71
|
-
|
|
72
|
-
___
|
|
73
|
-
|
|
74
|
-
### isPrototypeOf
|
|
75
|
-
|
|
76
|
-
▸ **isPrototypeOf**(`v`): `boolean`
|
|
77
|
-
|
|
78
|
-
Determines whether an object exists in another object's prototype chain.
|
|
79
|
-
|
|
80
|
-
#### Parameters
|
|
81
|
-
|
|
82
|
-
| Name | Type | Description |
|
|
83
|
-
| :------ | :------ | :------ |
|
|
84
|
-
| `v` | `Object` | Another object whose prototype chain is to be checked. |
|
|
85
|
-
|
|
86
|
-
#### Returns
|
|
87
|
-
|
|
88
|
-
`boolean`
|
|
89
|
-
|
|
90
|
-
#### Inherited from
|
|
91
|
-
|
|
92
|
-
Object.isPrototypeOf
|
|
93
|
-
|
|
94
|
-
#### Defined in
|
|
95
|
-
|
|
96
|
-
node_modules/typescript/lib/lib.es5.d.ts:145
|
|
97
|
-
|
|
98
|
-
___
|
|
99
|
-
|
|
100
|
-
### propertyIsEnumerable
|
|
101
|
-
|
|
102
|
-
▸ **propertyIsEnumerable**(`v`): `boolean`
|
|
103
|
-
|
|
104
|
-
Determines whether a specified property is enumerable.
|
|
105
|
-
|
|
106
|
-
#### Parameters
|
|
107
|
-
|
|
108
|
-
| Name | Type | Description |
|
|
109
|
-
| :------ | :------ | :------ |
|
|
110
|
-
| `v` | `PropertyKey` | A property name. |
|
|
111
|
-
|
|
112
|
-
#### Returns
|
|
113
|
-
|
|
114
|
-
`boolean`
|
|
115
|
-
|
|
116
|
-
#### Inherited from
|
|
117
|
-
|
|
118
|
-
Object.propertyIsEnumerable
|
|
119
|
-
|
|
120
|
-
#### Defined in
|
|
121
|
-
|
|
122
|
-
node_modules/typescript/lib/lib.es5.d.ts:151
|
|
123
|
-
|
|
124
|
-
___
|
|
125
|
-
|
|
126
|
-
### toLocaleString
|
|
127
|
-
|
|
128
|
-
▸ **toLocaleString**(): `string`
|
|
129
|
-
|
|
130
|
-
Returns a date converted to a string using the current locale.
|
|
131
|
-
|
|
132
|
-
#### Returns
|
|
133
|
-
|
|
134
|
-
`string`
|
|
135
|
-
|
|
136
|
-
#### Inherited from
|
|
137
|
-
|
|
138
|
-
Object.toLocaleString
|
|
139
|
-
|
|
140
|
-
#### Defined in
|
|
141
|
-
|
|
142
|
-
node_modules/typescript/lib/lib.es5.d.ts:130
|
|
143
|
-
|
|
144
|
-
___
|
|
145
|
-
|
|
146
|
-
### toString
|
|
147
|
-
|
|
148
|
-
▸ **toString**(): `string`
|
|
149
|
-
|
|
150
|
-
Returns a string representation of an object.
|
|
151
|
-
|
|
152
|
-
#### Returns
|
|
153
|
-
|
|
154
|
-
`string`
|
|
155
|
-
|
|
156
|
-
#### Inherited from
|
|
157
|
-
|
|
158
|
-
Object.toString
|
|
159
|
-
|
|
160
|
-
#### Defined in
|
|
161
|
-
|
|
162
|
-
node_modules/typescript/lib/lib.es5.d.ts:127
|
|
163
|
-
|
|
164
|
-
___
|
|
165
|
-
|
|
166
|
-
### valueOf
|
|
167
|
-
|
|
168
|
-
▸ **valueOf**(): `Object`
|
|
169
|
-
|
|
170
|
-
Returns the primitive value of the specified object.
|
|
171
|
-
|
|
172
|
-
#### Returns
|
|
173
|
-
|
|
174
|
-
`Object`
|
|
175
|
-
|
|
176
|
-
#### Inherited from
|
|
177
|
-
|
|
178
|
-
Object.valueOf
|
|
179
|
-
|
|
180
|
-
#### Defined in
|
|
181
|
-
|
|
182
|
-
node_modules/typescript/lib/lib.es5.d.ts:133
|
|
@@ -2,12 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
# Interface: ConfigObject
|
|
4
4
|
|
|
5
|
-
## Hierarchy
|
|
6
|
-
|
|
7
|
-
- `Object`
|
|
8
|
-
|
|
9
|
-
↳ **`ConfigObject`**
|
|
10
|
-
|
|
11
5
|
## Indexable
|
|
12
6
|
|
|
13
7
|
▪ [key: `string`]: `any`
|
|
@@ -18,16 +12,6 @@
|
|
|
18
12
|
|
|
19
13
|
- [Display conditions](ConfigObject.md#display conditions)
|
|
20
14
|
- [Translation overrides](ConfigObject.md#translation overrides)
|
|
21
|
-
- [constructor](ConfigObject.md#constructor)
|
|
22
|
-
|
|
23
|
-
### Methods
|
|
24
|
-
|
|
25
|
-
- [hasOwnProperty](ConfigObject.md#hasownproperty)
|
|
26
|
-
- [isPrototypeOf](ConfigObject.md#isprototypeof)
|
|
27
|
-
- [propertyIsEnumerable](ConfigObject.md#propertyisenumerable)
|
|
28
|
-
- [toLocaleString](ConfigObject.md#tolocalestring)
|
|
29
|
-
- [toString](ConfigObject.md#tostring)
|
|
30
|
-
- [valueOf](ConfigObject.md#valueof)
|
|
31
15
|
|
|
32
16
|
## Properties
|
|
33
17
|
|
|
@@ -48,157 +32,3 @@ ___
|
|
|
48
32
|
#### Defined in
|
|
49
33
|
|
|
50
34
|
[packages/framework/esm-config/src/types.ts:31](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-config/src/types.ts#L31)
|
|
51
|
-
|
|
52
|
-
___
|
|
53
|
-
|
|
54
|
-
### constructor
|
|
55
|
-
|
|
56
|
-
• **constructor**: `Function`
|
|
57
|
-
|
|
58
|
-
The initial value of Object.prototype.constructor is the standard built-in Object constructor.
|
|
59
|
-
|
|
60
|
-
#### Inherited from
|
|
61
|
-
|
|
62
|
-
Object.constructor
|
|
63
|
-
|
|
64
|
-
#### Defined in
|
|
65
|
-
|
|
66
|
-
node_modules/typescript/lib/lib.es5.d.ts:124
|
|
67
|
-
|
|
68
|
-
## Methods
|
|
69
|
-
|
|
70
|
-
### hasOwnProperty
|
|
71
|
-
|
|
72
|
-
▸ **hasOwnProperty**(`v`): `boolean`
|
|
73
|
-
|
|
74
|
-
Determines whether an object has a property with the specified name.
|
|
75
|
-
|
|
76
|
-
#### Parameters
|
|
77
|
-
|
|
78
|
-
| Name | Type | Description |
|
|
79
|
-
| :------ | :------ | :------ |
|
|
80
|
-
| `v` | `PropertyKey` | A property name. |
|
|
81
|
-
|
|
82
|
-
#### Returns
|
|
83
|
-
|
|
84
|
-
`boolean`
|
|
85
|
-
|
|
86
|
-
#### Inherited from
|
|
87
|
-
|
|
88
|
-
Object.hasOwnProperty
|
|
89
|
-
|
|
90
|
-
#### Defined in
|
|
91
|
-
|
|
92
|
-
node_modules/typescript/lib/lib.es5.d.ts:139
|
|
93
|
-
|
|
94
|
-
___
|
|
95
|
-
|
|
96
|
-
### isPrototypeOf
|
|
97
|
-
|
|
98
|
-
▸ **isPrototypeOf**(`v`): `boolean`
|
|
99
|
-
|
|
100
|
-
Determines whether an object exists in another object's prototype chain.
|
|
101
|
-
|
|
102
|
-
#### Parameters
|
|
103
|
-
|
|
104
|
-
| Name | Type | Description |
|
|
105
|
-
| :------ | :------ | :------ |
|
|
106
|
-
| `v` | `Object` | Another object whose prototype chain is to be checked. |
|
|
107
|
-
|
|
108
|
-
#### Returns
|
|
109
|
-
|
|
110
|
-
`boolean`
|
|
111
|
-
|
|
112
|
-
#### Inherited from
|
|
113
|
-
|
|
114
|
-
Object.isPrototypeOf
|
|
115
|
-
|
|
116
|
-
#### Defined in
|
|
117
|
-
|
|
118
|
-
node_modules/typescript/lib/lib.es5.d.ts:145
|
|
119
|
-
|
|
120
|
-
___
|
|
121
|
-
|
|
122
|
-
### propertyIsEnumerable
|
|
123
|
-
|
|
124
|
-
▸ **propertyIsEnumerable**(`v`): `boolean`
|
|
125
|
-
|
|
126
|
-
Determines whether a specified property is enumerable.
|
|
127
|
-
|
|
128
|
-
#### Parameters
|
|
129
|
-
|
|
130
|
-
| Name | Type | Description |
|
|
131
|
-
| :------ | :------ | :------ |
|
|
132
|
-
| `v` | `PropertyKey` | A property name. |
|
|
133
|
-
|
|
134
|
-
#### Returns
|
|
135
|
-
|
|
136
|
-
`boolean`
|
|
137
|
-
|
|
138
|
-
#### Inherited from
|
|
139
|
-
|
|
140
|
-
Object.propertyIsEnumerable
|
|
141
|
-
|
|
142
|
-
#### Defined in
|
|
143
|
-
|
|
144
|
-
node_modules/typescript/lib/lib.es5.d.ts:151
|
|
145
|
-
|
|
146
|
-
___
|
|
147
|
-
|
|
148
|
-
### toLocaleString
|
|
149
|
-
|
|
150
|
-
▸ **toLocaleString**(): `string`
|
|
151
|
-
|
|
152
|
-
Returns a date converted to a string using the current locale.
|
|
153
|
-
|
|
154
|
-
#### Returns
|
|
155
|
-
|
|
156
|
-
`string`
|
|
157
|
-
|
|
158
|
-
#### Inherited from
|
|
159
|
-
|
|
160
|
-
Object.toLocaleString
|
|
161
|
-
|
|
162
|
-
#### Defined in
|
|
163
|
-
|
|
164
|
-
node_modules/typescript/lib/lib.es5.d.ts:130
|
|
165
|
-
|
|
166
|
-
___
|
|
167
|
-
|
|
168
|
-
### toString
|
|
169
|
-
|
|
170
|
-
▸ **toString**(): `string`
|
|
171
|
-
|
|
172
|
-
Returns a string representation of an object.
|
|
173
|
-
|
|
174
|
-
#### Returns
|
|
175
|
-
|
|
176
|
-
`string`
|
|
177
|
-
|
|
178
|
-
#### Inherited from
|
|
179
|
-
|
|
180
|
-
Object.toString
|
|
181
|
-
|
|
182
|
-
#### Defined in
|
|
183
|
-
|
|
184
|
-
node_modules/typescript/lib/lib.es5.d.ts:127
|
|
185
|
-
|
|
186
|
-
___
|
|
187
|
-
|
|
188
|
-
### valueOf
|
|
189
|
-
|
|
190
|
-
▸ **valueOf**(): `Object`
|
|
191
|
-
|
|
192
|
-
Returns the primitive value of the specified object.
|
|
193
|
-
|
|
194
|
-
#### Returns
|
|
195
|
-
|
|
196
|
-
`Object`
|
|
197
|
-
|
|
198
|
-
#### Inherited from
|
|
199
|
-
|
|
200
|
-
Object.valueOf
|
|
201
|
-
|
|
202
|
-
#### Defined in
|
|
203
|
-
|
|
204
|
-
node_modules/typescript/lib/lib.es5.d.ts:133
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-framework",
|
|
3
|
-
"version": "4.1.1-pre.
|
|
3
|
+
"version": "4.1.1-pre.558",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"browser": "dist/openmrs-esm-framework.js",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -35,17 +35,17 @@
|
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@openmrs/esm-api": "^4.1.1-pre.
|
|
39
|
-
"@openmrs/esm-breadcrumbs": "^4.1.1-pre.
|
|
40
|
-
"@openmrs/esm-config": "^4.1.1-pre.
|
|
41
|
-
"@openmrs/esm-error-handling": "^4.1.1-pre.
|
|
42
|
-
"@openmrs/esm-extensions": "^4.1.1-pre.
|
|
43
|
-
"@openmrs/esm-globals": "^4.1.1-pre.
|
|
44
|
-
"@openmrs/esm-offline": "^4.1.1-pre.
|
|
45
|
-
"@openmrs/esm-react-utils": "^4.1.1-pre.
|
|
46
|
-
"@openmrs/esm-state": "^4.1.1-pre.
|
|
47
|
-
"@openmrs/esm-styleguide": "^4.1.1-pre.
|
|
48
|
-
"@openmrs/esm-utils": "^4.1.1-pre.
|
|
38
|
+
"@openmrs/esm-api": "^4.1.1-pre.558",
|
|
39
|
+
"@openmrs/esm-breadcrumbs": "^4.1.1-pre.558",
|
|
40
|
+
"@openmrs/esm-config": "^4.1.1-pre.558",
|
|
41
|
+
"@openmrs/esm-error-handling": "^4.1.1-pre.558",
|
|
42
|
+
"@openmrs/esm-extensions": "^4.1.1-pre.558",
|
|
43
|
+
"@openmrs/esm-globals": "^4.1.1-pre.558",
|
|
44
|
+
"@openmrs/esm-offline": "^4.1.1-pre.558",
|
|
45
|
+
"@openmrs/esm-react-utils": "^4.1.1-pre.558",
|
|
46
|
+
"@openmrs/esm-state": "^4.1.1-pre.558",
|
|
47
|
+
"@openmrs/esm-styleguide": "^4.1.1-pre.558",
|
|
48
|
+
"@openmrs/esm-utils": "^4.1.1-pre.558",
|
|
49
49
|
"dayjs": "^1.10.7"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"jest-cli": "28.1.0",
|
|
54
54
|
"jest-environment-jsdom": "28.1.0"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "65e3a5f3950d428ef38a9800cd35344a88cb18dd"
|
|
57
57
|
}
|