@openmrs/esm-react-utils 6.3.1-pre.3019 → 6.3.1-pre.3027

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.
@@ -1,3 +1,3 @@
1
- [0] Successfully compiled: 52 files with swc (126.76ms)
1
+ [0] Successfully compiled: 52 files with swc (129.64ms)
2
2
  [0] swc --strip-leading-paths src -d dist exited with code 0
3
3
  [1] tsc --project tsconfig.build.json exited with code 0
package/mock-jest.tsx CHANGED
@@ -12,6 +12,7 @@ import {
12
12
  useFhirPagination as realUseFhirPagination,
13
13
  useFhirInfinite as realUseFhirInfinite,
14
14
  useFhirFetchAll as realUseFhirFetchAll,
15
+ useVisitContextStore as realUseVisitContextStore,
15
16
  } from './src/index';
16
17
  export { ConfigurableLink } from './src/ConfigurableLink';
17
18
  export { useStore, useStoreWithActions, createUseStore } from './src/useStore';
@@ -92,6 +93,8 @@ export const useVisit = jest.fn().mockReturnValue({
92
93
  currentVisitIsRetrospective: false,
93
94
  });
94
95
 
96
+ export const useVisitContextStore = jest.fn(realUseVisitContextStore);
97
+
95
98
  export const useVisitTypes = jest.fn(() => []);
96
99
 
97
100
  export const useAbortController = jest.fn(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-react-utils",
3
- "version": "6.3.1-pre.3019",
3
+ "version": "6.3.1-pre.3027",
4
4
  "license": "MPL-2.0",
5
5
  "description": "React utilities for OpenMRS.",
6
6
  "type": "module",
@@ -78,17 +78,17 @@
78
78
  "swr": "2.x"
79
79
  },
80
80
  "devDependencies": {
81
- "@openmrs/esm-api": "6.3.1-pre.3019",
82
- "@openmrs/esm-config": "6.3.1-pre.3019",
83
- "@openmrs/esm-context": "6.3.1-pre.3019",
84
- "@openmrs/esm-emr-api": "6.3.1-pre.3019",
85
- "@openmrs/esm-error-handling": "6.3.1-pre.3019",
86
- "@openmrs/esm-extensions": "6.3.1-pre.3019",
87
- "@openmrs/esm-feature-flags": "6.3.1-pre.3019",
88
- "@openmrs/esm-globals": "6.3.1-pre.3019",
89
- "@openmrs/esm-navigation": "6.3.1-pre.3019",
90
- "@openmrs/esm-state": "6.3.1-pre.3019",
91
- "@openmrs/esm-utils": "6.3.1-pre.3019",
81
+ "@openmrs/esm-api": "6.3.1-pre.3027",
82
+ "@openmrs/esm-config": "6.3.1-pre.3027",
83
+ "@openmrs/esm-context": "6.3.1-pre.3027",
84
+ "@openmrs/esm-emr-api": "6.3.1-pre.3027",
85
+ "@openmrs/esm-error-handling": "6.3.1-pre.3027",
86
+ "@openmrs/esm-extensions": "6.3.1-pre.3027",
87
+ "@openmrs/esm-feature-flags": "6.3.1-pre.3027",
88
+ "@openmrs/esm-globals": "6.3.1-pre.3027",
89
+ "@openmrs/esm-navigation": "6.3.1-pre.3027",
90
+ "@openmrs/esm-state": "6.3.1-pre.3027",
91
+ "@openmrs/esm-utils": "6.3.1-pre.3027",
92
92
  "@swc/cli": "^0.7.7",
93
93
  "@swc/core": "^1.11.29",
94
94
  "concurrently": "^9.1.2",