@openmrs/esm-framework 4.0.0-pre.0 → 4.0.1-pre.206

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 +21 -116
  2. package/dist/openmrs-esm-framework.js +1 -1
  3. package/dist/openmrs-esm-framework.js.LICENSE.txt +0 -9
  4. package/dist/openmrs-esm-framework.js.map +1 -1
  5. package/docs/API.md +566 -714
  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 +12 -1
  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 +63 -0
  25. package/docs/interfaces/DynamicOfflineDataHandler.md +88 -0
  26. package/docs/interfaces/DynamicOfflineDataSyncState.md +63 -0
  27. package/docs/interfaces/ErrorStateProps.md +30 -0
  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 +13 -2
  38. package/docs/interfaces/FHIRRequestObj.md +3 -3
  39. package/docs/interfaces/FHIRRequestOptions.md +41 -0
  40. package/docs/interfaces/FHIRResource.md +4 -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 +12 -1
  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 -6
  54. package/docs/interfaces/OfflinePatientDataSyncHandler.md +5 -14
  55. package/docs/interfaces/OfflinePatientDataSyncState.md +6 -24
  56. package/docs/interfaces/OfflinePatientDataSyncStore.md +2 -9
  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 +14 -3
  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 +9 -15
  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,127 +1,32 @@
1
- @openmrs/esm-framework:build: cache hit, replaying output c3d9b9ea5808db1b
1
+ @openmrs/esm-framework:build: cache hit, replaying output 61e48d708a79ba14
2
2
  @openmrs/esm-framework:build: $ webpack --mode=production
3
- @openmrs/esm-framework:build: asset openmrs-esm-framework.js 812 KiB [emitted] [minimized] [big] (name: main) 2 related assets
4
- @openmrs/esm-framework:build: orphan modules 5.3 MiB [orphan] 1089 modules
5
- @openmrs/esm-framework:build: runtime modules 2.14 KiB 8 modules
6
- @openmrs/esm-framework:build: cacheable modules 2.1 MiB
7
- @openmrs/esm-framework:build:  modules by path ../../../node_modules/ 876 KiB 74 modules
8
- @openmrs/esm-framework:build:  modules by path ../esm-api/ 170 KiB 2 modules
9
- @openmrs/esm-framework:build:  modules by path ../esm-config/ 134 KiB 2 modules
10
- @openmrs/esm-framework:build:  modules by path ../esm-extensions/ 80.3 KiB 2 modules
11
- @openmrs/esm-framework:build:  modules by path ../esm-globals/ 10.8 KiB 2 modules
12
- @openmrs/esm-framework:build:  modules by path ../esm-react-utils/ 595 KiB 2 modules
13
- @openmrs/esm-framework:build:  modules by path ../esm-state/ 10.4 KiB 2 modules
14
- @openmrs/esm-framework:build:  modules by path ../esm-styleguide/src/ 104 KiB 2 modules
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
15
  @openmrs/esm-framework:build:  + 4 modules
16
16
  @openmrs/esm-framework:build: 
17
- @openmrs/esm-framework:build: WARNING in ../esm-config/src/public.ts 7:0-68
18
- @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)
19
- @openmrs/esm-framework:build:  @ ./src/index.ts
20
- @openmrs/esm-framework:build: 
21
- @openmrs/esm-framework:build: WARNING in ../esm-extensions/src/public.ts 2:0-58
22
- @openmrs/esm-framework:build: export 'CancelLoading' (reexported as 'CancelLoading') was not found in './render' (possible exports: renderExtension)
23
- @openmrs/esm-framework:build:  @ ./src/index.ts
24
- @openmrs/esm-framework:build: 
25
- @openmrs/esm-framework:build: WARNING in ../esm-extensions/src/public.ts 3:0-157
26
- @openmrs/esm-framework:build: export 'ExtensionMeta' (reexported as 'ExtensionMeta') was not found in './store' (possible exports: getExtensionInternalStore, getExtensionStore, updateInternalExtensionStore)
27
- @openmrs/esm-framework:build:  @ ./src/index.ts
28
- @openmrs/esm-framework:build: 
29
- @openmrs/esm-framework:build: WARNING in ../esm-extensions/src/public.ts 3:0-157
30
- @openmrs/esm-framework:build: export 'ExtensionRegistration' (reexported as 'ExtensionRegistration') was not found in './store' (possible exports: getExtensionInternalStore, getExtensionStore, updateInternalExtensionStore)
31
- @openmrs/esm-framework:build:  @ ./src/index.ts
32
- @openmrs/esm-framework:build: 
33
- @openmrs/esm-framework:build: WARNING in ../esm-extensions/src/public.ts 3:0-157
34
- @openmrs/esm-framework:build: export 'AssignedExtension' (reexported as 'AssignedExtension') was not found in './store' (possible exports: getExtensionInternalStore, getExtensionStore, updateInternalExtensionStore)
35
- @openmrs/esm-framework:build:  @ ./src/index.ts
36
- @openmrs/esm-framework:build: 
37
- @openmrs/esm-framework:build: WARNING in ../esm-extensions/src/public.ts 3:0-157
38
- @openmrs/esm-framework:build: export 'ConnectedExtension' (reexported as 'ConnectedExtension') was not found in './store' (possible exports: getExtensionInternalStore, getExtensionStore, updateInternalExtensionStore)
39
- @openmrs/esm-framework:build:  @ ./src/index.ts
40
- @openmrs/esm-framework:build: 
41
- @openmrs/esm-framework:build: WARNING in ../esm-extensions/src/public.ts 3:0-157
42
- @openmrs/esm-framework:build: export 'ExtensionStore' (reexported as 'ExtensionStore') was not found in './store' (possible exports: getExtensionInternalStore, getExtensionStore, updateInternalExtensionStore)
43
- @openmrs/esm-framework:build:  @ ./src/index.ts
44
- @openmrs/esm-framework:build: 
45
- @openmrs/esm-framework:build: WARNING in ../esm-extensions/src/public.ts 3:0-157
46
- @openmrs/esm-framework:build: export 'ExtensionSlotState' (reexported as 'ExtensionSlotState') was not found in './store' (possible exports: getExtensionInternalStore, getExtensionStore, updateInternalExtensionStore)
47
- @openmrs/esm-framework:build:  @ ./src/index.ts
48
- @openmrs/esm-framework:build: 
49
- @openmrs/esm-framework:build: WARNING in ../esm-globals/src/public.ts 1:0-263
50
- @openmrs/esm-framework:build: export 'ConnectivityChangedEvent' (reexported as 'ConnectivityChangedEvent') was not found in './events' (possible exports: dispatchConnectivityChanged, dispatchNotificationShown, dispatchPrecacheStaticDependencies, subscribeConnectivity, subscribeConnectivityChanged, subscribeNotificationShown, subscribePrecacheStaticDependencies, subscribeToastShown)
51
- @openmrs/esm-framework:build:  @ ./src/index.ts
52
- @openmrs/esm-framework:build: 
53
- @openmrs/esm-framework:build: WARNING in ../esm-globals/src/public.ts 1:0-263
54
- @openmrs/esm-framework:build: export 'PrecacheStaticDependenciesEvent' (reexported as 'PrecacheStaticDependenciesEvent') was not found in './events' (possible exports: dispatchConnectivityChanged, dispatchNotificationShown, dispatchPrecacheStaticDependencies, subscribeConnectivity, subscribeConnectivityChanged, subscribeNotificationShown, subscribePrecacheStaticDependencies, subscribeToastShown)
55
- @openmrs/esm-framework:build:  @ ./src/index.ts
56
- @openmrs/esm-framework:build: 
57
- @openmrs/esm-framework:build: WARNING in ../esm-globals/src/public.ts 1:0-263
58
- @openmrs/esm-framework:build: export 'ShowNotificationEvent' (reexported as 'ShowNotificationEvent') was not found in './events' (possible exports: dispatchConnectivityChanged, dispatchNotificationShown, dispatchPrecacheStaticDependencies, subscribeConnectivity, subscribeConnectivityChanged, subscribeNotificationShown, subscribePrecacheStaticDependencies, subscribeToastShown)
59
- @openmrs/esm-framework:build:  @ ./src/index.ts
60
- @openmrs/esm-framework:build: 
61
- @openmrs/esm-framework:build: WARNING in ../esm-globals/src/public.ts 1:0-263
62
- @openmrs/esm-framework:build: export 'ShowToastEvent' (reexported as 'ShowToastEvent') was not found in './events' (possible exports: dispatchConnectivityChanged, dispatchNotificationShown, dispatchPrecacheStaticDependencies, subscribeConnectivity, subscribeConnectivityChanged, subscribeNotificationShown, subscribePrecacheStaticDependencies, subscribeToastShown)
63
- @openmrs/esm-framework:build:  @ ./src/index.ts
64
- @openmrs/esm-framework:build: 
65
- @openmrs/esm-framework:build: WARNING in ../esm-offline/src/public.ts 1:0-79
66
- @openmrs/esm-framework:build: export 'OfflineMode' (reexported as 'OfflineMode') was not found in './mode' (possible exports: activateOfflineCapability, getCurrentOfflineMode, setCurrentOfflineMode)
67
- @openmrs/esm-framework:build:  @ ./src/index.ts
68
- @openmrs/esm-framework:build: 
69
- @openmrs/esm-framework:build: WARNING in ../esm-offline/src/public.ts 1:0-79
70
- @openmrs/esm-framework:build: export 'OfflineModeResult' (reexported as 'OfflineModeResult') was not found in './mode' (possible exports: activateOfflineCapability, getCurrentOfflineMode, setCurrentOfflineMode)
71
- @openmrs/esm-framework:build:  @ ./src/index.ts
72
- @openmrs/esm-framework:build: 
73
- @openmrs/esm-framework:build: WARNING in ../esm-offline/src/public.ts 6:0-340
74
- @openmrs/esm-framework:build: export 'QueueItemDescriptor' (reexported as 'QueueItemDescriptor') was not found in './sync' (possible exports: beginEditSynchronizationItem, canBeginEditSynchronizationItemsOfType, deleteSynchronizationItem, getFullSynchronizationItems, getFullSynchronizationItemsFor, getOfflineDb, getOfflineSynchronizationStore, getSynchronizationItem, getSynchronizationItems, getSynchronizationItemsFor, queueSynchronizationItem, queueSynchronizationItemFor, runSynchronization, setupOfflineSync)
75
- @openmrs/esm-framework:build:  @ ./src/index.ts
76
- @openmrs/esm-framework:build: 
77
- @openmrs/esm-framework:build: WARNING in ../esm-offline/src/public.ts 6:0-340
78
- @openmrs/esm-framework:build: export 'SyncItem' (reexported as 'SyncItem') was not found in './sync' (possible exports: beginEditSynchronizationItem, canBeginEditSynchronizationItemsOfType, deleteSynchronizationItem, getFullSynchronizationItems, getFullSynchronizationItemsFor, getOfflineDb, getOfflineSynchronizationStore, getSynchronizationItem, getSynchronizationItems, getSynchronizationItemsFor, queueSynchronizationItem, queueSynchronizationItemFor, runSynchronization, setupOfflineSync)
79
- @openmrs/esm-framework:build:  @ ./src/index.ts
80
- @openmrs/esm-framework:build: 
81
- @openmrs/esm-framework:build: WARNING in ../esm-offline/src/public.ts 6:0-340
82
- @openmrs/esm-framework:build: export 'SyncProcessOptions' (reexported as 'SyncProcessOptions') was not found in './sync' (possible exports: beginEditSynchronizationItem, canBeginEditSynchronizationItemsOfType, deleteSynchronizationItem, getFullSynchronizationItems, getFullSynchronizationItemsFor, getOfflineDb, getOfflineSynchronizationStore, getSynchronizationItem, getSynchronizationItems, getSynchronizationItemsFor, queueSynchronizationItem, queueSynchronizationItemFor, runSynchronization, setupOfflineSync)
83
- @openmrs/esm-framework:build:  @ ./src/index.ts
84
- @openmrs/esm-framework:build: 
85
- @openmrs/esm-framework:build: WARNING in ../esm-react-utils/src/public.ts 1:0-51
86
- @openmrs/esm-framework:build: export 'ExtensionData' (reexported as 'ExtensionData') was not found in './ComponentContext' (possible exports: ComponentContext)
87
- @openmrs/esm-framework:build:  @ ./src/index.ts
88
- @openmrs/esm-framework:build: 
89
- @openmrs/esm-framework:build: WARNING in ../esm-state/src/public.ts 1:0-96
90
- @openmrs/esm-framework:build: export 'AppState' (reexported as 'AppState') was not found in './state' (possible exports: createAppState, createGlobalStore, getAppState, getGlobalStore, subscribeTo)
91
- @openmrs/esm-framework:build:  @ ./src/index.ts
92
- @openmrs/esm-framework:build: 
93
- @openmrs/esm-framework:build: WARNING in ../esm-styleguide/src/public.ts 2:0-104
94
- @openmrs/esm-framework:build: export 'NotificationDescriptor' (reexported as 'NotificationDescriptor') was not found in './notifications/notification.component' (possible exports: Notification)
95
- @openmrs/esm-framework:build:  @ ./src/index.ts
96
- @openmrs/esm-framework:build: 
97
- @openmrs/esm-framework:build: WARNING in ../esm-styleguide/src/public.ts 2:0-104
98
- @openmrs/esm-framework:build: export 'InlineNotificationType' (reexported as 'InlineNotificationType') was not found in './notifications/notification.component' (possible exports: Notification)
99
- @openmrs/esm-framework:build:  @ ./src/index.ts
100
- @openmrs/esm-framework:build: 
101
- @openmrs/esm-framework:build: WARNING in ../esm-styleguide/src/public.ts 5:0-93
102
- @openmrs/esm-framework:build: export 'ToastDescriptor' (reexported as 'ToastDescriptor') was not found in './toasts/toast.component' (possible exports: Toast)
103
- @openmrs/esm-framework:build:  @ ./src/index.ts
104
- @openmrs/esm-framework:build: 
105
- @openmrs/esm-framework:build: WARNING in ../esm-styleguide/src/public.ts 5:0-93
106
- @openmrs/esm-framework:build: export 'ToastType' (reexported as 'ToastType') was not found in './toasts/toast.component' (possible exports: Toast)
107
- @openmrs/esm-framework:build:  @ ./src/index.ts
108
- @openmrs/esm-framework:build: 
109
- @openmrs/esm-framework:build: WARNING in ../esm-styleguide/src/public.ts 5:0-93
110
- @openmrs/esm-framework:build: export 'ToastNotificationMeta' (reexported as 'ToastNotificationMeta') was not found in './toasts/toast.component' (possible exports: Toast)
111
- @openmrs/esm-framework:build:  @ ./src/index.ts
112
- @openmrs/esm-framework:build: 
113
- @openmrs/esm-framework:build: WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
17
+ @openmrs/esm-framework:build: WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
114
18
  @openmrs/esm-framework:build: This can impact web performance.
115
19
  @openmrs/esm-framework:build: Assets:
116
- @openmrs/esm-framework:build:  openmrs-esm-framework.js (812 KiB)
20
+ @openmrs/esm-framework:build:  openmrs-esm-framework.js (751 KiB)
117
21
  @openmrs/esm-framework:build: 
118
- @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.
119
23
  @openmrs/esm-framework:build: Entrypoints:
120
- @openmrs/esm-framework:build:  main (812 KiB)
24
+ @openmrs/esm-framework:build:  main (751 KiB)
121
25
  @openmrs/esm-framework:build:  openmrs-esm-framework.js
26
+ @openmrs/esm-framework:build: 
122
27
  @openmrs/esm-framework:build: 
123
- @openmrs/esm-framework:build: WARNING in webpack performance recommendations:
28
+ @openmrs/esm-framework:build: WARNING in webpack performance recommendations:
124
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.
125
- @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/
126
31
  @openmrs/esm-framework:build: 
127
- @openmrs/esm-framework:build: webpack 5.70.0 compiled with 27 warnings in 21893 ms
32
+ @openmrs/esm-framework:build: webpack 5.74.0 compiled with 3 warnings in 21112 ms