@openmrs/esm-react-utils 9.0.3-pre.4786 → 9.0.3-pre.4788
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 +1 -1
- package/dist/useVisit.d.ts +8 -0
- package/dist/useVisit.d.ts.map +1 -1
- package/package.json +12 -12
- package/src/useVisit.ts +10 -0
package/.turbo/turbo-build.log
CHANGED
package/dist/useVisit.d.ts
CHANGED
|
@@ -4,7 +4,15 @@ export interface VisitReturnType {
|
|
|
4
4
|
mutate: () => void;
|
|
5
5
|
isValidating: boolean;
|
|
6
6
|
activeVisit: Visit | null;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated "current visit" is not well defined outside of the patient chart.
|
|
9
|
+
* Use `visitContext` in the patient chart instead.
|
|
10
|
+
*/
|
|
7
11
|
currentVisit: Visit | null;
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated "current visit" is not well defined outside of the patient chart.
|
|
14
|
+
* Use `visitContext` in the patient chart instead.
|
|
15
|
+
*/
|
|
8
16
|
currentVisitIsRetrospective: boolean;
|
|
9
17
|
isLoading: boolean;
|
|
10
18
|
}
|
package/dist/useVisit.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useVisit.d.ts","sourceRoot":"","sources":["../src/useVisit.ts"],"names":[],"mappings":"AAMA,OAAO,EAAoC,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAKpF,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,KAAK,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"useVisit.d.ts","sourceRoot":"","sources":["../src/useVisit.ts"],"names":[],"mappings":"AAMA,OAAO,EAAoC,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAKpF,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,KAAK,GAAG,IAAI,CAAC;IAE1B;;;OAGG;IACH,YAAY,EAAE,KAAK,GAAG,IAAI,CAAC;IAE3B;;;OAGG;IACH,2BAA2B,EAAE,OAAO,CAAC;IACrC,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,cAAc,SAAmC,GAAG,eAAe,CA6EhH"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-react-utils",
|
|
3
|
-
"version": "9.0.3-pre.
|
|
3
|
+
"version": "9.0.3-pre.4788",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "React utilities for OpenMRS.",
|
|
6
6
|
"type": "module",
|
|
@@ -79,17 +79,17 @@
|
|
|
79
79
|
"swr": "2.x"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@openmrs/esm-api": "9.0.3-pre.
|
|
83
|
-
"@openmrs/esm-config": "9.0.3-pre.
|
|
84
|
-
"@openmrs/esm-context": "9.0.3-pre.
|
|
85
|
-
"@openmrs/esm-emr-api": "9.0.3-pre.
|
|
86
|
-
"@openmrs/esm-error-handling": "9.0.3-pre.
|
|
87
|
-
"@openmrs/esm-extensions": "9.0.3-pre.
|
|
88
|
-
"@openmrs/esm-feature-flags": "9.0.3-pre.
|
|
89
|
-
"@openmrs/esm-globals": "9.0.3-pre.
|
|
90
|
-
"@openmrs/esm-navigation": "9.0.3-pre.
|
|
91
|
-
"@openmrs/esm-state": "9.0.3-pre.
|
|
92
|
-
"@openmrs/esm-utils": "9.0.3-pre.
|
|
82
|
+
"@openmrs/esm-api": "9.0.3-pre.4788",
|
|
83
|
+
"@openmrs/esm-config": "9.0.3-pre.4788",
|
|
84
|
+
"@openmrs/esm-context": "9.0.3-pre.4788",
|
|
85
|
+
"@openmrs/esm-emr-api": "9.0.3-pre.4788",
|
|
86
|
+
"@openmrs/esm-error-handling": "9.0.3-pre.4788",
|
|
87
|
+
"@openmrs/esm-extensions": "9.0.3-pre.4788",
|
|
88
|
+
"@openmrs/esm-feature-flags": "9.0.3-pre.4788",
|
|
89
|
+
"@openmrs/esm-globals": "9.0.3-pre.4788",
|
|
90
|
+
"@openmrs/esm-navigation": "9.0.3-pre.4788",
|
|
91
|
+
"@openmrs/esm-state": "9.0.3-pre.4788",
|
|
92
|
+
"@openmrs/esm-utils": "9.0.3-pre.4788",
|
|
93
93
|
"@swc/cli": "0.8.1",
|
|
94
94
|
"@swc/core": "1.15.21",
|
|
95
95
|
"@vitest/coverage-v8": "^4.1.2",
|
package/src/useVisit.ts
CHANGED
|
@@ -14,7 +14,17 @@ export interface VisitReturnType {
|
|
|
14
14
|
mutate: () => void;
|
|
15
15
|
isValidating: boolean;
|
|
16
16
|
activeVisit: Visit | null;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated "current visit" is not well defined outside of the patient chart.
|
|
20
|
+
* Use `visitContext` in the patient chart instead.
|
|
21
|
+
*/
|
|
17
22
|
currentVisit: Visit | null;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated "current visit" is not well defined outside of the patient chart.
|
|
26
|
+
* Use `visitContext` in the patient chart instead.
|
|
27
|
+
*/
|
|
18
28
|
currentVisitIsRetrospective: boolean;
|
|
19
29
|
isLoading: boolean;
|
|
20
30
|
}
|