@openmrs/esm-framework 4.0.0-pre.1 → 4.0.1-pre.204

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.
Files changed (91) hide show
  1. package/.turbo/turbo-build.log +23 -119
  2. package/dist/openmrs-esm-framework.js +1 -1
  3. package/dist/openmrs-esm-framework.js.LICENSE.txt +0 -22
  4. package/dist/openmrs-esm-framework.js.map +1 -1
  5. package/docs/API.md +330 -774
  6. package/docs/classes/OpenmrsFetchError.md +4 -10
  7. package/docs/enums/Type.md +20 -20
  8. package/docs/enums/VisitMode.md +8 -8
  9. package/docs/enums/VisitStatus.md +6 -6
  10. package/docs/interfaces/AssignedExtension.md +7 -9
  11. package/docs/interfaces/BreadcrumbRegistration.md +2 -2
  12. package/docs/interfaces/BreadcrumbSettings.md +4 -22
  13. package/docs/interfaces/CancelLoading.md +1 -1
  14. package/docs/interfaces/ClearDynamicRoutesMessage.md +1 -1
  15. package/docs/interfaces/ComponentDefinition.md +7 -19
  16. package/docs/interfaces/Config.md +3 -17
  17. package/docs/interfaces/ConfigObject.md +14 -17
  18. package/docs/interfaces/ConfigSchema.md +3 -3
  19. package/docs/interfaces/ConfigurableLinkProps.md +2 -2
  20. package/docs/interfaces/ConnectedExtension.md +4 -6
  21. package/docs/interfaces/ConnectivityChangedEvent.md +1 -1
  22. package/docs/interfaces/CurrentPatientOptions.md +1 -1
  23. package/docs/interfaces/DisplayConditionsConfigObject.md +19 -0
  24. package/docs/interfaces/DynamicOfflineData.md +5 -20
  25. package/docs/interfaces/DynamicOfflineDataHandler.md +9 -26
  26. package/docs/interfaces/DynamicOfflineDataSyncState.md +5 -17
  27. package/docs/interfaces/ErrorStateProps.md +2 -2
  28. package/docs/interfaces/ExtensionData.md +3 -3
  29. package/docs/interfaces/ExtensionDefinition.md +13 -37
  30. package/docs/interfaces/ExtensionProps.md +2 -2
  31. package/docs/interfaces/ExtensionRegistration.md +18 -7
  32. package/docs/interfaces/ExtensionSlotBaseProps.md +15 -4
  33. package/docs/interfaces/ExtensionSlotConfig.md +4 -4
  34. package/docs/interfaces/ExtensionSlotConfigObject.md +3 -9
  35. package/docs/interfaces/ExtensionSlotState.md +2 -2
  36. package/docs/interfaces/ExtensionStore.md +1 -1
  37. package/docs/interfaces/FHIRCode.md +3 -3
  38. package/docs/interfaces/FHIRRequestObj.md +3 -3
  39. package/docs/interfaces/FHIRRequestOptions.md +41 -0
  40. package/docs/interfaces/FHIRResource.md +1 -1
  41. package/docs/interfaces/FetchResponse.md +1 -1
  42. package/docs/interfaces/FetchResponseJson.md +7 -0
  43. package/docs/interfaces/ImportMap.md +1 -1
  44. package/docs/interfaces/Lifecycle.md +4 -4
  45. package/docs/interfaces/Location.md +3 -3
  46. package/docs/interfaces/LoggedInUser.md +11 -11
  47. package/docs/interfaces/LoggedInUserFetchResponse.md +1 -1
  48. package/docs/interfaces/MessageServiceWorkerResult.md +3 -3
  49. package/docs/interfaces/NavigateOptions.md +2 -2
  50. package/docs/interfaces/NewVisitPayload.md +6 -6
  51. package/docs/interfaces/NotificationDescriptor.md +6 -6
  52. package/docs/interfaces/OfflineModeResult.md +3 -3
  53. package/docs/interfaces/OfflinePatientArgs.md +2 -4
  54. package/docs/interfaces/OfflinePatientDataSyncHandler.md +2 -4
  55. package/docs/interfaces/OfflinePatientDataSyncState.md +6 -8
  56. package/docs/interfaces/OfflinePatientDataSyncStore.md +2 -4
  57. package/docs/interfaces/OldExtensionSlotBaseProps.md +65 -0
  58. package/docs/interfaces/OmrsServiceWorkerMessage.md +1 -1
  59. package/docs/interfaces/OnImportMapChangedMessage.md +2 -2
  60. package/docs/interfaces/OnlyThePatient.md +1 -1
  61. package/docs/interfaces/OpenmrsResource.md +2 -2
  62. package/docs/interfaces/PageDefinition.md +9 -25
  63. package/docs/interfaces/PatientWithFullResponse.md +1 -1
  64. package/docs/interfaces/Person.md +3 -3
  65. package/docs/interfaces/Privilege.md +3 -3
  66. package/docs/interfaces/QueueItemDescriptor.md +4 -9
  67. package/docs/interfaces/RegisterDynamicRouteMessage.md +4 -4
  68. package/docs/interfaces/ResourceLoader.md +1 -1
  69. package/docs/interfaces/RetryOptions.md +7 -18
  70. package/docs/interfaces/Role.md +3 -3
  71. package/docs/interfaces/Session.md +7 -7
  72. package/docs/interfaces/SessionLocation.md +3 -3
  73. package/docs/interfaces/ShowNotificationEvent.md +5 -5
  74. package/docs/interfaces/ShowToastEvent.md +4 -4
  75. package/docs/interfaces/SpaConfig.md +5 -19
  76. package/docs/interfaces/SyncItem.md +7 -11
  77. package/docs/interfaces/SyncProcessOptions.md +5 -7
  78. package/docs/interfaces/ToastDescriptor.md +5 -5
  79. package/docs/interfaces/ToastNotificationMeta.md +6 -6
  80. package/docs/interfaces/UserHasAccessProps.md +4 -4
  81. package/docs/interfaces/Visit.md +9 -9
  82. package/docs/interfaces/VisitItem.md +4 -4
  83. package/docs/interfaces/VisitType.md +3 -3
  84. package/jest.config.js +3 -0
  85. package/mock.tsx +3 -7
  86. package/package.json +13 -13
  87. package/src/integration-tests/extension-config.test.tsx +215 -17
  88. package/typedoc.json +1 -1
  89. package/.turbo/turbo-lint.log +0 -2
  90. package/.turbo/turbo-test.log +0 -451
  91. package/.turbo/turbo-typescript.log +0 -2
@@ -1,128 +1,32 @@
1
- @openmrs/esm-framework:build: cache hit, replaying output 641b674439b4508b
1
+ @openmrs/esm-framework:build: cache hit, replaying output bccbc45e9e08eb92
2
2
  @openmrs/esm-framework:build: $ webpack --mode=production
3
- @openmrs/esm-framework:build: asset openmrs-esm-framework.js 1.8 MiB [emitted] [minimized] [big] (name: main) 2 related assets
4
- @openmrs/esm-framework:build: orphan modules 5.4 MiB [orphan] 1096 modules
5
- @openmrs/esm-framework:build: runtime modules 2.14 KiB 8 modules
6
- @openmrs/esm-framework:build: cacheable modules 4.95 MiB
7
- @openmrs/esm-framework:build:  modules by path ../../../node_modules/ 880 KiB 78 modules
8
- @openmrs/esm-framework:build:  modules by path ../esm-styleguide/src/ 443 KiB 3 modules
9
- @openmrs/esm-framework:build:  modules by path ./ 2.5 MiB 2 modules
10
- @openmrs/esm-framework:build:  modules by path ../esm-api/ 170 KiB 2 modules
11
- @openmrs/esm-framework:build:  modules by path ../esm-config/ 141 KiB 2 modules
12
- @openmrs/esm-framework:build:  modules by path ../esm-extensions/ 80.3 KiB 2 modules
13
- @openmrs/esm-framework:build:  modules by path ../esm-globals/ 10.8 KiB 2 modules
14
- @openmrs/esm-framework:build:  modules by path ../esm-react-utils/ 592 KiB 2 modules
15
- @openmrs/esm-framework:build:  modules by path ../esm-state/ 10.4 KiB 2 modules
16
- @openmrs/esm-framework:build:  + 3 modules
17
- @openmrs/esm-framework:build: 
18
- @openmrs/esm-framework:build: WARNING in ../esm-config/src/public.ts 7:0-68
19
- @openmrs/esm-framework:build: export 'ConfigStore' (reexported as 'ConfigStore') was not found in './module-config/state' (possible exports: configExtensionStore, configInternalStore, getConfigStore, getExtensionConfig, getExtensionConfigFromStore, getExtensionSlotConfig, getExtensionSlotConfigFromStore, getExtensionSlotsConfigStore, getExtensionsConfigStore, implementerToolsConfigStore, temporaryConfigStore)
20
- @openmrs/esm-framework:build:  @ ./src/index.ts
21
- @openmrs/esm-framework:build: 
22
- @openmrs/esm-framework:build: WARNING in ../esm-extensions/src/public.ts 2:0-58
23
- @openmrs/esm-framework:build: export 'CancelLoading' (reexported as 'CancelLoading') was not found in './render' (possible exports: renderExtension)
24
- @openmrs/esm-framework:build:  @ ./src/index.ts
25
- @openmrs/esm-framework:build: 
26
- @openmrs/esm-framework:build: WARNING in ../esm-extensions/src/public.ts 3:0-157
27
- @openmrs/esm-framework:build: export 'ExtensionMeta' (reexported as 'ExtensionMeta') was not found in './store' (possible exports: getExtensionInternalStore, getExtensionStore, updateInternalExtensionStore)
28
- @openmrs/esm-framework:build:  @ ./src/index.ts
29
- @openmrs/esm-framework:build: 
30
- @openmrs/esm-framework:build: WARNING in ../esm-extensions/src/public.ts 3:0-157
31
- @openmrs/esm-framework:build: export 'ExtensionRegistration' (reexported as 'ExtensionRegistration') was not found in './store' (possible exports: getExtensionInternalStore, getExtensionStore, updateInternalExtensionStore)
32
- @openmrs/esm-framework:build:  @ ./src/index.ts
33
- @openmrs/esm-framework:build: 
34
- @openmrs/esm-framework:build: WARNING in ../esm-extensions/src/public.ts 3:0-157
35
- @openmrs/esm-framework:build: export 'AssignedExtension' (reexported as 'AssignedExtension') was not found in './store' (possible exports: getExtensionInternalStore, getExtensionStore, updateInternalExtensionStore)
36
- @openmrs/esm-framework:build:  @ ./src/index.ts
37
- @openmrs/esm-framework:build: 
38
- @openmrs/esm-framework:build: WARNING in ../esm-extensions/src/public.ts 3:0-157
39
- @openmrs/esm-framework:build: export 'ConnectedExtension' (reexported as 'ConnectedExtension') was not found in './store' (possible exports: getExtensionInternalStore, getExtensionStore, updateInternalExtensionStore)
40
- @openmrs/esm-framework:build:  @ ./src/index.ts
41
- @openmrs/esm-framework:build: 
42
- @openmrs/esm-framework:build: WARNING in ../esm-extensions/src/public.ts 3:0-157
43
- @openmrs/esm-framework:build: export 'ExtensionStore' (reexported as 'ExtensionStore') was not found in './store' (possible exports: getExtensionInternalStore, getExtensionStore, updateInternalExtensionStore)
44
- @openmrs/esm-framework:build:  @ ./src/index.ts
45
- @openmrs/esm-framework:build: 
46
- @openmrs/esm-framework:build: WARNING in ../esm-extensions/src/public.ts 3:0-157
47
- @openmrs/esm-framework:build: export 'ExtensionSlotState' (reexported as 'ExtensionSlotState') was not found in './store' (possible exports: getExtensionInternalStore, getExtensionStore, updateInternalExtensionStore)
48
- @openmrs/esm-framework:build:  @ ./src/index.ts
49
- @openmrs/esm-framework:build: 
50
- @openmrs/esm-framework:build: WARNING in ../esm-globals/src/public.ts 1:0-263
51
- @openmrs/esm-framework:build: export 'ConnectivityChangedEvent' (reexported as 'ConnectivityChangedEvent') was not found in './events' (possible exports: dispatchConnectivityChanged, dispatchNotificationShown, dispatchPrecacheStaticDependencies, subscribeConnectivity, subscribeConnectivityChanged, subscribeNotificationShown, subscribePrecacheStaticDependencies, subscribeToastShown)
52
- @openmrs/esm-framework:build:  @ ./src/index.ts
53
- @openmrs/esm-framework:build: 
54
- @openmrs/esm-framework:build: WARNING in ../esm-globals/src/public.ts 1:0-263
55
- @openmrs/esm-framework:build: export 'PrecacheStaticDependenciesEvent' (reexported as 'PrecacheStaticDependenciesEvent') was not found in './events' (possible exports: dispatchConnectivityChanged, dispatchNotificationShown, dispatchPrecacheStaticDependencies, subscribeConnectivity, subscribeConnectivityChanged, subscribeNotificationShown, subscribePrecacheStaticDependencies, subscribeToastShown)
56
- @openmrs/esm-framework:build:  @ ./src/index.ts
57
- @openmrs/esm-framework:build: 
58
- @openmrs/esm-framework:build: WARNING in ../esm-globals/src/public.ts 1:0-263
59
- @openmrs/esm-framework:build: export 'ShowNotificationEvent' (reexported as 'ShowNotificationEvent') was not found in './events' (possible exports: dispatchConnectivityChanged, dispatchNotificationShown, dispatchPrecacheStaticDependencies, subscribeConnectivity, subscribeConnectivityChanged, subscribeNotificationShown, subscribePrecacheStaticDependencies, subscribeToastShown)
60
- @openmrs/esm-framework:build:  @ ./src/index.ts
61
- @openmrs/esm-framework:build: 
62
- @openmrs/esm-framework:build: WARNING in ../esm-globals/src/public.ts 1:0-263
63
- @openmrs/esm-framework:build: export 'ShowToastEvent' (reexported as 'ShowToastEvent') was not found in './events' (possible exports: dispatchConnectivityChanged, dispatchNotificationShown, dispatchPrecacheStaticDependencies, subscribeConnectivity, subscribeConnectivityChanged, subscribeNotificationShown, subscribePrecacheStaticDependencies, subscribeToastShown)
64
- @openmrs/esm-framework:build:  @ ./src/index.ts
65
- @openmrs/esm-framework:build: 
66
- @openmrs/esm-framework:build: WARNING in ../esm-offline/src/public.ts 1:0-79
67
- @openmrs/esm-framework:build: export 'OfflineMode' (reexported as 'OfflineMode') was not found in './mode' (possible exports: activateOfflineCapability, getCurrentOfflineMode, setCurrentOfflineMode)
68
- @openmrs/esm-framework:build:  @ ./src/index.ts
69
- @openmrs/esm-framework:build: 
70
- @openmrs/esm-framework:build: WARNING in ../esm-offline/src/public.ts 1:0-79
71
- @openmrs/esm-framework:build: export 'OfflineModeResult' (reexported as 'OfflineModeResult') was not found in './mode' (possible exports: activateOfflineCapability, getCurrentOfflineMode, setCurrentOfflineMode)
72
- @openmrs/esm-framework:build:  @ ./src/index.ts
73
- @openmrs/esm-framework:build: 
74
- @openmrs/esm-framework:build: WARNING in ../esm-offline/src/public.ts 6:0-326
75
- @openmrs/esm-framework:build: export 'QueueItemDescriptor' (reexported as 'QueueItemDescriptor') was not found in './sync' (possible exports: beginEditSynchronizationItem, canBeginEditSynchronizationItemsOfType, deleteSynchronizationItem, getFullSynchronizationItems, getFullSynchronizationItemsFor, getOfflineSynchronizationStore, getSynchronizationItem, getSynchronizationItems, getSynchronizationItemsFor, queueSynchronizationItem, queueSynchronizationItemFor, runSynchronization, setupOfflineSync)
76
- @openmrs/esm-framework:build:  @ ./src/index.ts
77
- @openmrs/esm-framework:build: 
78
- @openmrs/esm-framework:build: WARNING in ../esm-offline/src/public.ts 6:0-326
79
- @openmrs/esm-framework:build: export 'SyncItem' (reexported as 'SyncItem') was not found in './sync' (possible exports: beginEditSynchronizationItem, canBeginEditSynchronizationItemsOfType, deleteSynchronizationItem, getFullSynchronizationItems, getFullSynchronizationItemsFor, getOfflineSynchronizationStore, getSynchronizationItem, getSynchronizationItems, getSynchronizationItemsFor, queueSynchronizationItem, queueSynchronizationItemFor, runSynchronization, setupOfflineSync)
80
- @openmrs/esm-framework:build:  @ ./src/index.ts
81
- @openmrs/esm-framework:build: 
82
- @openmrs/esm-framework:build: WARNING in ../esm-offline/src/public.ts 6:0-326
83
- @openmrs/esm-framework:build: export 'SyncProcessOptions' (reexported as 'SyncProcessOptions') was not found in './sync' (possible exports: beginEditSynchronizationItem, canBeginEditSynchronizationItemsOfType, deleteSynchronizationItem, getFullSynchronizationItems, getFullSynchronizationItemsFor, getOfflineSynchronizationStore, getSynchronizationItem, getSynchronizationItems, getSynchronizationItemsFor, queueSynchronizationItem, queueSynchronizationItemFor, runSynchronization, setupOfflineSync)
84
- @openmrs/esm-framework:build:  @ ./src/index.ts
85
- @openmrs/esm-framework:build: 
86
- @openmrs/esm-framework:build: WARNING in ../esm-react-utils/src/public.ts 1:0-51
87
- @openmrs/esm-framework:build: export 'ExtensionData' (reexported as 'ExtensionData') was not found in './ComponentContext' (possible exports: ComponentContext)
88
- @openmrs/esm-framework:build:  @ ./src/index.ts
89
- @openmrs/esm-framework:build: 
90
- @openmrs/esm-framework:build: WARNING in ../esm-state/src/public.ts 1:0-96
91
- @openmrs/esm-framework:build: export 'AppState' (reexported as 'AppState') was not found in './state' (possible exports: createAppState, createGlobalStore, getAppState, getGlobalStore, subscribeTo)
92
- @openmrs/esm-framework:build:  @ ./src/index.ts
93
- @openmrs/esm-framework:build: 
94
- @openmrs/esm-framework:build: WARNING in ../esm-styleguide/src/public.ts 2:0-104
95
- @openmrs/esm-framework:build: export 'NotificationDescriptor' (reexported as 'NotificationDescriptor') was not found in './notifications/notification.component' (possible exports: Notification)
96
- @openmrs/esm-framework:build:  @ ./src/index.ts
97
- @openmrs/esm-framework:build: 
98
- @openmrs/esm-framework:build: WARNING in ../esm-styleguide/src/public.ts 2:0-104
99
- @openmrs/esm-framework:build: export 'InlineNotificationType' (reexported as 'InlineNotificationType') was not found in './notifications/notification.component' (possible exports: Notification)
100
- @openmrs/esm-framework:build:  @ ./src/index.ts
101
- @openmrs/esm-framework:build: 
102
- @openmrs/esm-framework:build: WARNING in ../esm-styleguide/src/public.ts 5:0-93
103
- @openmrs/esm-framework:build: export 'ToastDescriptor' (reexported as 'ToastDescriptor') was not found in './toasts/toast.component' (possible exports: Toast)
104
- @openmrs/esm-framework:build:  @ ./src/index.ts
105
- @openmrs/esm-framework:build: 
106
- @openmrs/esm-framework:build: WARNING in ../esm-styleguide/src/public.ts 5:0-93
107
- @openmrs/esm-framework:build: export 'ToastType' (reexported as 'ToastType') was not found in './toasts/toast.component' (possible exports: Toast)
108
- @openmrs/esm-framework:build:  @ ./src/index.ts
109
- @openmrs/esm-framework:build: 
110
- @openmrs/esm-framework:build: WARNING in ../esm-styleguide/src/public.ts 5:0-93
111
- @openmrs/esm-framework:build: export 'ToastNotificationMeta' (reexported as 'ToastNotificationMeta') was not found in './toasts/toast.component' (possible exports: Toast)
112
- @openmrs/esm-framework:build:  @ ./src/index.ts
113
- @openmrs/esm-framework:build: 
114
- @openmrs/esm-framework:build: WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
3
+ @openmrs/esm-framework:build: asset openmrs-esm-framework.js 751 KiB [emitted] [minimized] [big] (name: main) 2 related assets
4
+ @openmrs/esm-framework:build: orphan modules 5.3 MiB [orphan] 1071 modules
5
+ @openmrs/esm-framework:build: runtime modules 2.17 KiB 9 modules
6
+ @openmrs/esm-framework:build: cacheable modules 1.69 MiB
7
+ @openmrs/esm-framework:build:  modules by path ../../../node_modules/ 377 KiB 152 modules
8
+ @openmrs/esm-framework:build:  modules by path ../esm-styleguide/src/ 364 KiB 3 modules
9
+ @openmrs/esm-framework:build:  modules by path ../esm-api/ 131 KiB 2 modules
10
+ @openmrs/esm-framework:build:  modules by path ../esm-config/ 147 KiB 2 modules
11
+ @openmrs/esm-framework:build:  modules by path ../esm-extensions/ 84.9 KiB 2 modules
12
+ @openmrs/esm-framework:build:  modules by path ../esm-globals/ 10.7 KiB 2 modules
13
+ @openmrs/esm-framework:build:  modules by path ../esm-react-utils/ 431 KiB 2 modules
14
+ @openmrs/esm-framework:build:  modules by path ../esm-state/ 10.3 KiB 2 modules
15
+ @openmrs/esm-framework:build:  + 4 modules
16
+ @openmrs/esm-framework:build: 
17
+ @openmrs/esm-framework:build: WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
115
18
  @openmrs/esm-framework:build: This can impact web performance.
116
19
  @openmrs/esm-framework:build: Assets:
117
- @openmrs/esm-framework:build:  openmrs-esm-framework.js (1.8 MiB)
20
+ @openmrs/esm-framework:build:  openmrs-esm-framework.js (751 KiB)
118
21
  @openmrs/esm-framework:build: 
119
- @openmrs/esm-framework:build: WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
22
+ @openmrs/esm-framework:build: WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
120
23
  @openmrs/esm-framework:build: Entrypoints:
121
- @openmrs/esm-framework:build:  main (1.8 MiB)
24
+ @openmrs/esm-framework:build:  main (751 KiB)
122
25
  @openmrs/esm-framework:build:  openmrs-esm-framework.js
26
+ @openmrs/esm-framework:build: 
123
27
  @openmrs/esm-framework:build: 
124
- @openmrs/esm-framework:build: WARNING in webpack performance recommendations:
28
+ @openmrs/esm-framework:build: WARNING in webpack performance recommendations:
125
29
  @openmrs/esm-framework:build: You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
126
- @openmrs/esm-framework:build: For more info visit https://webpack.js.org/guides/code-splitting/
30
+ @openmrs/esm-framework:build: For more info visit https://webpack.js.org/guides/code-splitting/
127
31
  @openmrs/esm-framework:build: 
128
- @openmrs/esm-framework:build: webpack 5.70.0 compiled with 27 warnings in 70001 ms
32
+ @openmrs/esm-framework:build: webpack 5.74.0 compiled with 3 warnings in 22364 ms