@openmrs/esm-framework 6.3.1-pre.2965 → 6.3.1-pre.2997

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 (107) hide show
  1. package/.turbo/turbo-build.log +3 -25
  2. package/dist/index.d.ts +17 -0
  3. package/dist/internal.d.ts +17 -0
  4. package/dist/openmrs-esm-framework.js +1 -2
  5. package/dist/openmrs-esm-framework.js.map +1 -1
  6. package/docs/API.md +356 -280
  7. package/docs/classes/OpenmrsFetchError.md +10 -10
  8. package/docs/enums/VisitMode.md +3 -3
  9. package/docs/enums/VisitStatus.md +2 -2
  10. package/docs/interfaces/AssignedExtension.md +1 -1
  11. package/docs/interfaces/Attachment.md +7 -7
  12. package/docs/interfaces/AttachmentResponse.md +6 -6
  13. package/docs/interfaces/CloseWorkspaceOptions.md +3 -3
  14. package/docs/interfaces/ConfigurableLinkProps.md +474 -317
  15. package/docs/interfaces/ConnectedExtension.md +1 -1
  16. package/docs/interfaces/ConnectivityChangedEvent.md +1 -1
  17. package/docs/interfaces/CurrentPatientOptions.md +1 -1
  18. package/docs/interfaces/DefaultWorkspaceProps.md +4 -4
  19. package/docs/interfaces/Diagnosis.md +25 -25
  20. package/docs/interfaces/EmrApiConfigurationResponse.md +596 -0
  21. package/docs/interfaces/Encounter.md +24 -24
  22. package/docs/interfaces/EncounterProvider.md +16 -16
  23. package/docs/interfaces/EncounterRole.md +16 -16
  24. package/docs/interfaces/EncounterType.md +16 -16
  25. package/docs/interfaces/ExtensionSlotBaseProps.md +3 -3
  26. package/docs/interfaces/FHIRCode.md +3 -3
  27. package/docs/interfaces/FHIRLocationResource.md +30 -0
  28. package/docs/interfaces/FHIRResource.md +1 -1
  29. package/docs/interfaces/FeatureFlagDefinition.md +3 -3
  30. package/docs/interfaces/FetchConfig.md +13 -13
  31. package/docs/interfaces/FetchError.md +2 -2
  32. package/docs/interfaces/FetchResponse.md +15 -15
  33. package/docs/interfaces/ImportMap.md +1 -1
  34. package/docs/interfaces/Location.md +370 -3
  35. package/docs/interfaces/LoggedInUserFetchResponse.md +15 -15
  36. package/docs/interfaces/NewVisitPayload.md +7 -7
  37. package/docs/interfaces/NotificationDescriptor.md +20 -2
  38. package/docs/interfaces/Obs.md +36 -36
  39. package/docs/interfaces/OldExtensionSlotBaseProps.md +3 -3
  40. package/docs/interfaces/OnlyThePatient.md +1 -1
  41. package/docs/interfaces/OpenWorkspace.md +29 -29
  42. package/docs/interfaces/OpenmrsAppRoutes.md +9 -9
  43. package/docs/interfaces/OpenmrsDatePickerProps.md +1 -1
  44. package/docs/interfaces/OpenmrsResource.md +0 -12
  45. package/docs/interfaces/OpenmrsResourceStrict.md +0 -6
  46. package/docs/interfaces/Patient.md +17 -17
  47. package/docs/interfaces/PatientIdentifier.md +18 -18
  48. package/docs/interfaces/PatientIdentifierType.md +22 -22
  49. package/docs/interfaces/PatientPhotoProps.md +0 -11
  50. package/docs/interfaces/PatientWithFullResponse.md +1 -1
  51. package/docs/interfaces/Prompt.md +5 -5
  52. package/docs/interfaces/ResourceLoader.md +1 -1
  53. package/docs/interfaces/RetryOptions.md +3 -3
  54. package/docs/interfaces/ShowActionableNotificationEvent.md +6 -6
  55. package/docs/interfaces/ShowNotificationEvent.md +5 -5
  56. package/docs/interfaces/ShowSnackbarEvent.md +8 -8
  57. package/docs/interfaces/ShowToastEvent.md +5 -5
  58. package/docs/interfaces/SpaConfig.md +5 -5
  59. package/docs/interfaces/StyleguideConfigObject.md +2 -2
  60. package/docs/interfaces/UploadedFile.md +7 -7
  61. package/docs/interfaces/UseConfigOptions.md +22 -0
  62. package/docs/interfaces/UseServerFetchAllOptions.md +5 -5
  63. package/docs/interfaces/UseServerInfiniteOptions.md +5 -5
  64. package/docs/interfaces/UseServerPaginationOptions.md +2 -2
  65. package/docs/interfaces/Visit.md +11 -11
  66. package/docs/interfaces/VisitItem.md +4 -4
  67. package/docs/interfaces/VisitReturnType.md +2 -2
  68. package/docs/interfaces/VisitStoreState.md +3 -3
  69. package/docs/interfaces/VisitType.md +3 -3
  70. package/docs/interfaces/WorkspaceGroupDefinition.md +2 -2
  71. package/docs/interfaces/WorkspaceRegistration.md +0 -6
  72. package/docs/interfaces/WorkspacesInfo.md +5 -5
  73. package/mock-jest.tsx +125 -0
  74. package/mock.tsx +44 -42
  75. package/package.json +58 -31
  76. package/rspack.config.cjs +96 -0
  77. package/{src/integration-tests/setup-tests.ts → setup-tests.ts} +6 -1
  78. package/src/declarations.d.ts +0 -1
  79. package/src/index.ts +2 -3
  80. package/src/integration-tests/extension-config.test.tsx +14 -12
  81. package/src/internal.ts +2 -3
  82. package/src/mock-test.test.ts +2 -2
  83. package/tsconfig.build.json +10 -0
  84. package/tsconfig.json +3 -24
  85. package/typedoc.json +1 -0
  86. package/vitest.config.ts +9 -0
  87. package/dist/278.openmrs-esm-framework.js +0 -2
  88. package/dist/278.openmrs-esm-framework.js.map +0 -1
  89. package/dist/530.openmrs-esm-framework.js +0 -2
  90. package/dist/530.openmrs-esm-framework.js.map +0 -1
  91. package/dist/588.openmrs-esm-framework.js +0 -2
  92. package/dist/588.openmrs-esm-framework.js.map +0 -1
  93. package/dist/619.openmrs-esm-framework.js +0 -2
  94. package/dist/619.openmrs-esm-framework.js.map +0 -1
  95. package/dist/645.openmrs-esm-framework.js +0 -2
  96. package/dist/645.openmrs-esm-framework.js.map +0 -1
  97. package/dist/735.openmrs-esm-framework.js +0 -3
  98. package/dist/735.openmrs-esm-framework.js.LICENSE.txt +0 -9
  99. package/dist/735.openmrs-esm-framework.js.map +0 -1
  100. package/dist/746.openmrs-esm-framework.js +0 -2
  101. package/dist/746.openmrs-esm-framework.js.map +0 -1
  102. package/dist/788.openmrs-esm-framework.js +0 -3
  103. package/dist/788.openmrs-esm-framework.js.LICENSE.txt +0 -19
  104. package/dist/788.openmrs-esm-framework.js.map +0 -1
  105. package/dist/openmrs-esm-framework.js.LICENSE.txt +0 -68
  106. package/jest.config.js +0 -22
  107. package/webpack.config.js +0 -80
@@ -57,7 +57,7 @@ Error.constructor
57
57
 
58
58
  #### Defined in
59
59
 
60
- [packages/framework/esm-api/src/openmrs-fetch.ts:304](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/openmrs-fetch.ts#L304)
60
+ [packages/framework/esm-api/src/openmrs-fetch.ts:302](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/openmrs-fetch.ts#L302)
61
61
 
62
62
  ## API Properties
63
63
 
@@ -71,7 +71,7 @@ Error.constructor
71
71
 
72
72
  #### Defined in
73
73
 
74
- [packages/framework/esm-api/src/openmrs-fetch.ts:312](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/openmrs-fetch.ts#L312)
74
+ [packages/framework/esm-api/src/openmrs-fetch.ts:310](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/openmrs-fetch.ts#L310)
75
75
 
76
76
  ___
77
77
 
@@ -85,7 +85,7 @@ ___
85
85
 
86
86
  #### Defined in
87
87
 
88
- [packages/framework/esm-api/src/openmrs-fetch.ts:313](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/openmrs-fetch.ts#L313)
88
+ [packages/framework/esm-api/src/openmrs-fetch.ts:311](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/openmrs-fetch.ts#L311)
89
89
 
90
90
  ___
91
91
 
@@ -93,7 +93,7 @@ ___
93
93
 
94
94
  ### cause
95
95
 
96
- • `Optional` **cause**: `Error`
96
+ • `Optional` **cause**: `unknown`
97
97
 
98
98
  #### Inherited from
99
99
 
@@ -115,7 +115,7 @@ Error.message
115
115
 
116
116
  #### Defined in
117
117
 
118
- node_modules/typescript/lib/lib.es5.d.ts:1023
118
+ node_modules/typescript/lib/lib.es5.d.ts:1054
119
119
 
120
120
  ___
121
121
 
@@ -129,7 +129,7 @@ Error.name
129
129
 
130
130
  #### Defined in
131
131
 
132
- node_modules/typescript/lib/lib.es5.d.ts:1022
132
+ node_modules/typescript/lib/lib.es5.d.ts:1053
133
133
 
134
134
  ___
135
135
 
@@ -143,7 +143,7 @@ Error.stack
143
143
 
144
144
  #### Defined in
145
145
 
146
- node_modules/typescript/lib/lib.es5.d.ts:1024
146
+ node_modules/typescript/lib/lib.es5.d.ts:1055
147
147
 
148
148
  ___
149
149
 
@@ -176,7 +176,7 @@ Error.prepareStackTrace
176
176
 
177
177
  #### Defined in
178
178
 
179
- node_modules/@types/node/ts4.8/globals.d.ts:11
179
+ node_modules/@types/node/globals.d.ts:11
180
180
 
181
181
  ___
182
182
 
@@ -190,7 +190,7 @@ Error.stackTraceLimit
190
190
 
191
191
  #### Defined in
192
192
 
193
- node_modules/@types/node/ts4.8/globals.d.ts:13
193
+ node_modules/@types/node/globals.d.ts:13
194
194
 
195
195
  ## Methods
196
196
 
@@ -217,4 +217,4 @@ Error.captureStackTrace
217
217
 
218
218
  #### Defined in
219
219
 
220
- node_modules/@types/node/ts4.8/globals.d.ts:4
220
+ node_modules/@types/node/globals.d.ts:4
@@ -18,7 +18,7 @@
18
18
 
19
19
  #### Defined in
20
20
 
21
- [packages/framework/esm-api/src/shared-api-objects/visit-utils.ts:16](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/shared-api-objects/visit-utils.ts#L16)
21
+ [packages/framework/esm-emr-api/src/visit-utils.ts:16](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/visit-utils.ts#L16)
22
22
 
23
23
  ___
24
24
 
@@ -28,7 +28,7 @@ ___
28
28
 
29
29
  #### Defined in
30
30
 
31
- [packages/framework/esm-api/src/shared-api-objects/visit-utils.ts:17](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/shared-api-objects/visit-utils.ts#L17)
31
+ [packages/framework/esm-emr-api/src/visit-utils.ts:17](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/visit-utils.ts#L17)
32
32
 
33
33
  ___
34
34
 
@@ -38,4 +38,4 @@ ___
38
38
 
39
39
  #### Defined in
40
40
 
41
- [packages/framework/esm-api/src/shared-api-objects/visit-utils.ts:15](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/shared-api-objects/visit-utils.ts#L15)
41
+ [packages/framework/esm-emr-api/src/visit-utils.ts:15](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/visit-utils.ts#L15)
@@ -17,7 +17,7 @@
17
17
 
18
18
  #### Defined in
19
19
 
20
- [packages/framework/esm-api/src/shared-api-objects/visit-utils.ts:21](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/shared-api-objects/visit-utils.ts#L21)
20
+ [packages/framework/esm-emr-api/src/visit-utils.ts:21](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/visit-utils.ts#L21)
21
21
 
22
22
  ___
23
23
 
@@ -27,4 +27,4 @@ ___
27
27
 
28
28
  #### Defined in
29
29
 
30
- [packages/framework/esm-api/src/shared-api-objects/visit-utils.ts:22](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/shared-api-objects/visit-utils.ts#L22)
30
+ [packages/framework/esm-emr-api/src/visit-utils.ts:22](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/visit-utils.ts#L22)
@@ -19,7 +19,7 @@
19
19
 
20
20
  ### config
21
21
 
22
- • `Readonly` **config**: ``null`` \| `Readonly`<[`ConfigObject`](ConfigObject.md)\>
22
+ • `Readonly` **config**: ``null`` \| `Readonly`<`ConfigObject`\>
23
23
 
24
24
  The extension's config. Note that this will be `null` until the slot is mounted.
25
25
 
@@ -22,7 +22,7 @@
22
22
 
23
23
  #### Defined in
24
24
 
25
- [packages/framework/esm-api/src/types/attachments-types.ts:17](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L17)
25
+ [packages/framework/esm-emr-api/src/types/attachments-types.ts:17](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/attachments-types.ts#L17)
26
26
 
27
27
  ___
28
28
 
@@ -32,7 +32,7 @@ ___
32
32
 
33
33
  #### Defined in
34
34
 
35
- [packages/framework/esm-api/src/types/attachments-types.ts:16](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L16)
35
+ [packages/framework/esm-emr-api/src/types/attachments-types.ts:16](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/attachments-types.ts#L16)
36
36
 
37
37
  ___
38
38
 
@@ -42,7 +42,7 @@ ___
42
42
 
43
43
  #### Defined in
44
44
 
45
- [packages/framework/esm-api/src/types/attachments-types.ts:15](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L15)
45
+ [packages/framework/esm-emr-api/src/types/attachments-types.ts:15](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/attachments-types.ts#L15)
46
46
 
47
47
  ___
48
48
 
@@ -52,7 +52,7 @@ ___
52
52
 
53
53
  #### Defined in
54
54
 
55
- [packages/framework/esm-api/src/types/attachments-types.ts:18](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L18)
55
+ [packages/framework/esm-emr-api/src/types/attachments-types.ts:18](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/attachments-types.ts#L18)
56
56
 
57
57
  ___
58
58
 
@@ -62,7 +62,7 @@ ___
62
62
 
63
63
  #### Defined in
64
64
 
65
- [packages/framework/esm-api/src/types/attachments-types.ts:14](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L14)
65
+ [packages/framework/esm-emr-api/src/types/attachments-types.ts:14](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/attachments-types.ts#L14)
66
66
 
67
67
  ___
68
68
 
@@ -72,7 +72,7 @@ ___
72
72
 
73
73
  #### Defined in
74
74
 
75
- [packages/framework/esm-api/src/types/attachments-types.ts:12](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L12)
75
+ [packages/framework/esm-emr-api/src/types/attachments-types.ts:12](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/attachments-types.ts#L12)
76
76
 
77
77
  ___
78
78
 
@@ -82,4 +82,4 @@ ___
82
82
 
83
83
  #### Defined in
84
84
 
85
- [packages/framework/esm-api/src/types/attachments-types.ts:13](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L13)
85
+ [packages/framework/esm-emr-api/src/types/attachments-types.ts:13](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/attachments-types.ts#L13)
@@ -21,7 +21,7 @@
21
21
 
22
22
  #### Defined in
23
23
 
24
- [packages/framework/esm-api/src/types/attachments-types.ts:22](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L22)
24
+ [packages/framework/esm-emr-api/src/types/attachments-types.ts:22](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/attachments-types.ts#L22)
25
25
 
26
26
  ___
27
27
 
@@ -31,7 +31,7 @@ ___
31
31
 
32
32
  #### Defined in
33
33
 
34
- [packages/framework/esm-api/src/types/attachments-types.ts:23](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L23)
34
+ [packages/framework/esm-emr-api/src/types/attachments-types.ts:23](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/attachments-types.ts#L23)
35
35
 
36
36
  ___
37
37
 
@@ -41,7 +41,7 @@ ___
41
41
 
42
42
  #### Defined in
43
43
 
44
- [packages/framework/esm-api/src/types/attachments-types.ts:24](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L24)
44
+ [packages/framework/esm-emr-api/src/types/attachments-types.ts:24](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/attachments-types.ts#L24)
45
45
 
46
46
  ___
47
47
 
@@ -51,7 +51,7 @@ ___
51
51
 
52
52
  #### Defined in
53
53
 
54
- [packages/framework/esm-api/src/types/attachments-types.ts:25](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L25)
54
+ [packages/framework/esm-emr-api/src/types/attachments-types.ts:25](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/attachments-types.ts#L25)
55
55
 
56
56
  ___
57
57
 
@@ -61,7 +61,7 @@ ___
61
61
 
62
62
  #### Defined in
63
63
 
64
- [packages/framework/esm-api/src/types/attachments-types.ts:27](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L27)
64
+ [packages/framework/esm-emr-api/src/types/attachments-types.ts:27](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/attachments-types.ts#L27)
65
65
 
66
66
  ___
67
67
 
@@ -71,4 +71,4 @@ ___
71
71
 
72
72
  #### Defined in
73
73
 
74
- [packages/framework/esm-api/src/types/attachments-types.ts:26](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-api/src/types/attachments-types.ts#L26)
74
+ [packages/framework/esm-emr-api/src/types/attachments-types.ts:26](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-emr-api/src/types/attachments-types.ts#L26)
@@ -27,7 +27,7 @@ Defaults to true except when opening a new workspace of the same group.
27
27
 
28
28
  #### Defined in
29
29
 
30
- [packages/framework/esm-styleguide/src/workspaces/workspaces.ts:38](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L38)
30
+ [packages/framework/esm-styleguide/src/workspaces/workspaces.ts:37](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L37)
31
31
 
32
32
  ___
33
33
 
@@ -42,7 +42,7 @@ even if the `testFcn` passed to `promptBeforeClosing` returns `true`.
42
42
 
43
43
  #### Defined in
44
44
 
45
- [packages/framework/esm-styleguide/src/workspaces/workspaces.ts:23](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L23)
45
+ [packages/framework/esm-styleguide/src/workspaces/workspaces.ts:22](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L22)
46
46
 
47
47
  ## Workspace Methods
48
48
 
@@ -62,4 +62,4 @@ void
62
62
 
63
63
  #### Defined in
64
64
 
65
- [packages/framework/esm-styleguide/src/workspaces/workspaces.ts:30](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L30)
65
+ [packages/framework/esm-styleguide/src/workspaces/workspaces.ts:29](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces/workspaces.ts#L29)