@openmrs/esm-react-utils 8.0.1-pre.3843 → 8.0.1-pre.3852

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: 53 files with swc (133.75ms)
1
+ [0] Successfully compiled: 53 files with swc (130.39ms)
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.tsx CHANGED
@@ -33,12 +33,15 @@ export const useAttachments = vi.fn(() => ({
33
33
  isValidating: true,
34
34
  }));
35
35
 
36
- export const useConfig = vi.fn((options?: { externalModuleName?: string }) => {
37
- if (options?.externalModuleName) {
38
- console.warn(`Mock useConfig called with externalModuleName: ${options.externalModuleName}`);
39
- }
40
- return utils.getDefaultsFromConfigSchema(configSchema);
41
- });
36
+ // eslint-disable-next-line @typescript-eslint/consistent-type-imports
37
+ export const useConfig = vi.fn<typeof import('@openmrs/esm-react-utils').useConfig>(
38
+ (options?: { externalModuleName?: string }) => {
39
+ if (options?.externalModuleName) {
40
+ console.warn(`Mock useConfig called with externalModuleName: ${options.externalModuleName}`);
41
+ }
42
+ return utils.getDefaultsFromConfigSchema(configSchema);
43
+ },
44
+ );
42
45
 
43
46
  export const useCurrentPatient = vi.fn(() => []);
44
47
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-react-utils",
3
- "version": "8.0.1-pre.3843",
3
+ "version": "8.0.1-pre.3852",
4
4
  "license": "MPL-2.0",
5
5
  "description": "React utilities for OpenMRS.",
6
6
  "type": "module",
@@ -79,24 +79,24 @@
79
79
  "swr": "2.x"
80
80
  },
81
81
  "devDependencies": {
82
- "@openmrs/esm-api": "8.0.1-pre.3843",
83
- "@openmrs/esm-config": "8.0.1-pre.3843",
84
- "@openmrs/esm-context": "8.0.1-pre.3843",
85
- "@openmrs/esm-emr-api": "8.0.1-pre.3843",
86
- "@openmrs/esm-error-handling": "8.0.1-pre.3843",
87
- "@openmrs/esm-extensions": "8.0.1-pre.3843",
88
- "@openmrs/esm-feature-flags": "8.0.1-pre.3843",
89
- "@openmrs/esm-globals": "8.0.1-pre.3843",
90
- "@openmrs/esm-navigation": "8.0.1-pre.3843",
91
- "@openmrs/esm-state": "8.0.1-pre.3843",
92
- "@openmrs/esm-utils": "8.0.1-pre.3843",
82
+ "@openmrs/esm-api": "8.0.1-pre.3852",
83
+ "@openmrs/esm-config": "8.0.1-pre.3852",
84
+ "@openmrs/esm-context": "8.0.1-pre.3852",
85
+ "@openmrs/esm-emr-api": "8.0.1-pre.3852",
86
+ "@openmrs/esm-error-handling": "8.0.1-pre.3852",
87
+ "@openmrs/esm-extensions": "8.0.1-pre.3852",
88
+ "@openmrs/esm-feature-flags": "8.0.1-pre.3852",
89
+ "@openmrs/esm-globals": "8.0.1-pre.3852",
90
+ "@openmrs/esm-navigation": "8.0.1-pre.3852",
91
+ "@openmrs/esm-state": "8.0.1-pre.3852",
92
+ "@openmrs/esm-utils": "8.0.1-pre.3852",
93
93
  "@swc/cli": "^0.7.7",
94
94
  "@swc/core": "^1.11.29",
95
- "@vitest/coverage-v8": "^4.0.7",
95
+ "@vitest/coverage-v8": "^4.0.18",
96
96
  "concurrently": "^9.1.2",
97
97
  "cross-env": "^7.0.3",
98
98
  "dayjs": "^1.11.13",
99
- "happy-dom": "^20.5.0",
99
+ "happy-dom": "^20.6.0",
100
100
  "i18next": "^25.5.3",
101
101
  "react": "^18.3.1",
102
102
  "react-dom": "^18.3.1",
@@ -104,7 +104,7 @@
104
104
  "rimraf": "^6.0.1",
105
105
  "rxjs": "^6.5.3",
106
106
  "swr": "2.2.5",
107
- "vitest": "^4.0.7"
107
+ "vitest": "^4.0.18"
108
108
  },
109
109
  "stableVersion": "8.0.0"
110
110
  }