@openmrs/esm-framework 6.0.1-pre.2537 → 6.0.1-pre.2544
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
@@ -3411,7 +3411,7 @@ for more information about defining a config schema.
|
|
3411
3411
|
|
3412
3412
|
#### Defined in
|
3413
3413
|
|
3414
|
-
[packages/framework/esm-config/src/module-config/module-config.ts:
|
3414
|
+
[packages/framework/esm-config/src/module-config/module-config.ts:242](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-config/src/module-config/module-config.ts#L242)
|
3415
3415
|
|
3416
3416
|
___
|
3417
3417
|
|
@@ -3443,7 +3443,7 @@ of the execution of a function.
|
|
3443
3443
|
|
3444
3444
|
#### Defined in
|
3445
3445
|
|
3446
|
-
[packages/framework/esm-config/src/module-config/module-config.ts:
|
3446
|
+
[packages/framework/esm-config/src/module-config/module-config.ts:275](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-config/src/module-config/module-config.ts#L275)
|
3447
3447
|
|
3448
3448
|
___
|
3449
3449
|
|
@@ -3464,7 +3464,7 @@ ___
|
|
3464
3464
|
|
3465
3465
|
#### Defined in
|
3466
3466
|
|
3467
|
-
[packages/framework/esm-config/src/module-config/module-config.ts:
|
3467
|
+
[packages/framework/esm-config/src/module-config/module-config.ts:259](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-config/src/module-config/module-config.ts#L259)
|
3468
3468
|
|
3469
3469
|
___
|
3470
3470
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@openmrs/esm-framework",
|
3
|
-
"version": "6.0.1-pre.
|
3
|
+
"version": "6.0.1-pre.2544",
|
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.0.1-pre.
|
41
|
-
"@openmrs/esm-config": "6.0.1-pre.
|
42
|
-
"@openmrs/esm-context": "6.0.1-pre.
|
43
|
-
"@openmrs/esm-dynamic-loading": "6.0.1-pre.
|
44
|
-
"@openmrs/esm-error-handling": "6.0.1-pre.
|
45
|
-
"@openmrs/esm-expression-evaluator": "6.0.1-pre.
|
46
|
-
"@openmrs/esm-extensions": "6.0.1-pre.
|
47
|
-
"@openmrs/esm-feature-flags": "6.0.1-pre.
|
48
|
-
"@openmrs/esm-globals": "6.0.1-pre.
|
49
|
-
"@openmrs/esm-navigation": "6.0.1-pre.
|
50
|
-
"@openmrs/esm-offline": "6.0.1-pre.
|
51
|
-
"@openmrs/esm-react-utils": "6.0.1-pre.
|
52
|
-
"@openmrs/esm-routes": "6.0.1-pre.
|
53
|
-
"@openmrs/esm-state": "6.0.1-pre.
|
54
|
-
"@openmrs/esm-styleguide": "6.0.1-pre.
|
55
|
-
"@openmrs/esm-translations": "6.0.1-pre.
|
56
|
-
"@openmrs/esm-utils": "6.0.1-pre.
|
40
|
+
"@openmrs/esm-api": "6.0.1-pre.2544",
|
41
|
+
"@openmrs/esm-config": "6.0.1-pre.2544",
|
42
|
+
"@openmrs/esm-context": "6.0.1-pre.2544",
|
43
|
+
"@openmrs/esm-dynamic-loading": "6.0.1-pre.2544",
|
44
|
+
"@openmrs/esm-error-handling": "6.0.1-pre.2544",
|
45
|
+
"@openmrs/esm-expression-evaluator": "6.0.1-pre.2544",
|
46
|
+
"@openmrs/esm-extensions": "6.0.1-pre.2544",
|
47
|
+
"@openmrs/esm-feature-flags": "6.0.1-pre.2544",
|
48
|
+
"@openmrs/esm-globals": "6.0.1-pre.2544",
|
49
|
+
"@openmrs/esm-navigation": "6.0.1-pre.2544",
|
50
|
+
"@openmrs/esm-offline": "6.0.1-pre.2544",
|
51
|
+
"@openmrs/esm-react-utils": "6.0.1-pre.2544",
|
52
|
+
"@openmrs/esm-routes": "6.0.1-pre.2544",
|
53
|
+
"@openmrs/esm-state": "6.0.1-pre.2544",
|
54
|
+
"@openmrs/esm-styleguide": "6.0.1-pre.2544",
|
55
|
+
"@openmrs/esm-translations": "6.0.1-pre.2544",
|
56
|
+
"@openmrs/esm-utils": "6.0.1-pre.2544",
|
57
57
|
"dayjs": "^1.10.7"
|
58
58
|
},
|
59
59
|
"peerDependencies": {
|
@@ -14,6 +14,7 @@ import {
|
|
14
14
|
defineConfigSchema,
|
15
15
|
provide,
|
16
16
|
Type,
|
17
|
+
registerModuleLoad,
|
17
18
|
temporaryConfigStore,
|
18
19
|
configInternalStore,
|
19
20
|
getExtensionSlotsConfigStore,
|
@@ -46,6 +47,7 @@ describe('Interaction between configuration and extension systems', () => {
|
|
46
47
|
attach('A slot', 'Fred');
|
47
48
|
attach('A slot', 'Wilma');
|
48
49
|
defineConfigSchema('esm-flintstone', {});
|
50
|
+
registerModuleLoad('esm-flintstone');
|
49
51
|
|
50
52
|
provide({
|
51
53
|
'esm-flintstone': {
|
@@ -87,6 +89,8 @@ describe('Interaction between configuration and extension systems', () => {
|
|
87
89
|
defineConfigSchema('esm-flintstone', {
|
88
90
|
town: { _type: Type.String, _default: 'Bedrock' },
|
89
91
|
});
|
92
|
+
registerModuleLoad('esm-flintstone');
|
93
|
+
|
90
94
|
attach('Flintstone slot', 'Pebbles');
|
91
95
|
attach('Future slot', 'Pebbles');
|
92
96
|
provide({
|
@@ -136,6 +140,8 @@ describe('Interaction between configuration and extension systems', () => {
|
|
136
140
|
defineConfigSchema('esm-characters', {
|
137
141
|
name: { _type: Type.String, _default: '(no-name)' },
|
138
142
|
});
|
143
|
+
registerModuleLoad('esm-characters');
|
144
|
+
|
139
145
|
attach('Flintstone slot', 'pet#Dino');
|
140
146
|
attach('Flintstone slot', 'pet#BabyPuss');
|
141
147
|
provide({
|
@@ -183,6 +189,7 @@ describe('Interaction between configuration and extension systems', () => {
|
|
183
189
|
registerSimpleExtension('Pearl', 'esm-slaghoople');
|
184
190
|
attach('A slot', 'Pearl');
|
185
191
|
defineConfigSchema('esm-slaghoople', {});
|
192
|
+
registerModuleLoad('esm-flintstone');
|
186
193
|
|
187
194
|
const App = openmrsComponentDecorator({
|
188
195
|
moduleName: 'esm-slaghoople',
|
@@ -218,6 +225,7 @@ describe('Interaction between configuration and extension systems', () => {
|
|
218
225
|
registerSimpleExtension('Mr. Slate', 'esm-flintstone', true);
|
219
226
|
attach('A slot', 'Mr. Slate');
|
220
227
|
defineConfigSchema('esm-flintstone', { tie: { _default: 'green' } });
|
228
|
+
registerModuleLoad('esm-flintstone');
|
221
229
|
|
222
230
|
const App = openmrsComponentDecorator({
|
223
231
|
moduleName: 'esm-quarry',
|
@@ -256,6 +264,8 @@ describe('Interaction between configuration and extension systems', () => {
|
|
256
264
|
registerSimpleExtension('Bamm-Bamm', 'esm-flintstone', false);
|
257
265
|
attach('A slot', 'Bamm-Bamm');
|
258
266
|
defineConfigSchema('esm-flintstone', { clothes: { _default: 'leopard' } });
|
267
|
+
registerModuleLoad('esm-flintstone');
|
268
|
+
|
259
269
|
function RootComponent() {
|
260
270
|
const store = useExtensionStore();
|
261
271
|
return (
|
@@ -329,6 +339,8 @@ describe('Interaction between configuration and extension systems', () => {
|
|
329
339
|
attach('A slot', 'Wilma');
|
330
340
|
defineConfigSchema('esm-bedrock', {});
|
331
341
|
defineConfigSchema('esm-flintstones', {});
|
342
|
+
registerModuleLoad('esm-bedrock');
|
343
|
+
registerModuleLoad('esm-flintstones');
|
332
344
|
provide({
|
333
345
|
'esm-bedrock': {
|
334
346
|
'Display conditions': {
|
@@ -389,6 +401,7 @@ describe('Interaction between configuration and extension systems', () => {
|
|
389
401
|
registerSimpleExtension('Schmoo', 'esm-bedrock', true);
|
390
402
|
attach('A slot', 'Schmoo');
|
391
403
|
defineConfigSchema('esm-bedrock', {});
|
404
|
+
registerModuleLoad('esm-bedrock');
|
392
405
|
provide({
|
393
406
|
'esm-bedrock': {
|
394
407
|
'Display conditions': {
|
@@ -448,6 +461,8 @@ describe('Interaction between configuration and extension systems', () => {
|
|
448
461
|
attach('A slot', 'Wilma');
|
449
462
|
defineConfigSchema('esm-bedrock', {});
|
450
463
|
defineConfigSchema('esm-flintstones', {});
|
464
|
+
registerModuleLoad('esm-bedrock');
|
465
|
+
registerModuleLoad('esm-flintstones');
|
451
466
|
provide({ 'esm-bedrock': {} });
|
452
467
|
provide({ 'esm-flintstones': {} });
|
453
468
|
|