@openmrs/esm-react-utils 5.7.3-pre.2146 → 5.7.3-pre.2153
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/mock.tsx +8 -0
- package/package.json +10 -10
package/.turbo/turbo-build.log
CHANGED
|
@@ -14,4 +14,4 @@ built modules 186 KiB [built]
|
|
|
14
14
|
./src/index.ts + 127 modules 180 KiB [built] [code generated]
|
|
15
15
|
../esm-state/dist/openmrs-esm-state.js 4.66 KiB [built] [code generated]
|
|
16
16
|
+ 5 modules
|
|
17
|
-
webpack 5.88.0 compiled successfully in
|
|
17
|
+
webpack 5.88.0 compiled successfully in 7006 ms
|
package/mock.tsx
CHANGED
|
@@ -98,3 +98,11 @@ export const useOnClickOutside = jest.fn();
|
|
|
98
98
|
export const useBodyScrollLock = jest.fn();
|
|
99
99
|
|
|
100
100
|
export const isDesktop = jest.fn().mockImplementation(realIsDesktop);
|
|
101
|
+
|
|
102
|
+
export const useLocations = jest.fn().mockReturnValue([]);
|
|
103
|
+
|
|
104
|
+
export const toOmrsIsoString = jest.fn().mockImplementation((date: Date) => date.toISOString());
|
|
105
|
+
|
|
106
|
+
export const toDateObjectStrict = jest.fn().mockImplementation((date: string) => new Date(date));
|
|
107
|
+
|
|
108
|
+
export const getLocale = jest.fn().mockReturnValue('en');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-react-utils",
|
|
3
|
-
"version": "5.7.3-pre.
|
|
3
|
+
"version": "5.7.3-pre.2153",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "React utilities for OpenMRS.",
|
|
6
6
|
"browser": "dist/openmrs-esm-react-utils.js",
|
|
@@ -61,15 +61,15 @@
|
|
|
61
61
|
"swr": "2.x"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@openmrs/esm-api": "5.7.3-pre.
|
|
65
|
-
"@openmrs/esm-config": "5.7.3-pre.
|
|
66
|
-
"@openmrs/esm-context": "5.7.3-pre.
|
|
67
|
-
"@openmrs/esm-error-handling": "5.7.3-pre.
|
|
68
|
-
"@openmrs/esm-extensions": "5.7.3-pre.
|
|
69
|
-
"@openmrs/esm-feature-flags": "5.7.3-pre.
|
|
70
|
-
"@openmrs/esm-globals": "5.7.3-pre.
|
|
71
|
-
"@openmrs/esm-navigation": "5.7.3-pre.
|
|
72
|
-
"@openmrs/esm-utils": "5.7.3-pre.
|
|
64
|
+
"@openmrs/esm-api": "5.7.3-pre.2153",
|
|
65
|
+
"@openmrs/esm-config": "5.7.3-pre.2153",
|
|
66
|
+
"@openmrs/esm-context": "5.7.3-pre.2153",
|
|
67
|
+
"@openmrs/esm-error-handling": "5.7.3-pre.2153",
|
|
68
|
+
"@openmrs/esm-extensions": "5.7.3-pre.2153",
|
|
69
|
+
"@openmrs/esm-feature-flags": "5.7.3-pre.2153",
|
|
70
|
+
"@openmrs/esm-globals": "5.7.3-pre.2153",
|
|
71
|
+
"@openmrs/esm-navigation": "5.7.3-pre.2153",
|
|
72
|
+
"@openmrs/esm-utils": "5.7.3-pre.2153",
|
|
73
73
|
"dayjs": "^1.10.8",
|
|
74
74
|
"i18next": "^21.10.0",
|
|
75
75
|
"react": "^18.1.0",
|