@openmrs/esm-react-utils 5.6.1-pre.1943 → 5.6.1-pre.1945
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 +6 -2
- 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 4663 ms
|
package/mock.tsx
CHANGED
|
@@ -3,8 +3,8 @@ import { openmrsFetch } from '@openmrs/esm-api/mock';
|
|
|
3
3
|
import { configSchema } from '@openmrs/esm-config/mock';
|
|
4
4
|
import { getExtensionStore, getExtensionInternalStore } from '@openmrs/esm-extensions/mock';
|
|
5
5
|
import { createGlobalStore } from '@openmrs/esm-state/mock';
|
|
6
|
-
import { usePagination as realUsePagination } from './src/index';
|
|
7
|
-
export { ConfigurableLink,
|
|
6
|
+
import { isDesktop as realIsDesktop, usePagination as realUsePagination } from './src/index';
|
|
7
|
+
export { ConfigurableLink, useStore, useStoreWithActions, createUseStore } from './src/index';
|
|
8
8
|
import * as utils from '@openmrs/esm-utils';
|
|
9
9
|
|
|
10
10
|
export const ComponentContext = React.createContext(null);
|
|
@@ -94,3 +94,7 @@ export const useOpenmrsSWR = jest.fn((key: string | Array<any>) => {
|
|
|
94
94
|
export const useDebounce = jest.fn().mockImplementation((value) => value);
|
|
95
95
|
|
|
96
96
|
export const useOnClickOutside = jest.fn();
|
|
97
|
+
|
|
98
|
+
export const useBodyScrollLock = jest.fn();
|
|
99
|
+
|
|
100
|
+
export const isDesktop = jest.fn().mockImplementation(realIsDesktop);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-react-utils",
|
|
3
|
-
"version": "5.6.1-pre.
|
|
3
|
+
"version": "5.6.1-pre.1945",
|
|
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.6.1-pre.
|
|
65
|
-
"@openmrs/esm-config": "5.6.1-pre.
|
|
66
|
-
"@openmrs/esm-context": "5.6.1-pre.
|
|
67
|
-
"@openmrs/esm-error-handling": "5.6.1-pre.
|
|
68
|
-
"@openmrs/esm-extensions": "5.6.1-pre.
|
|
69
|
-
"@openmrs/esm-feature-flags": "5.6.1-pre.
|
|
70
|
-
"@openmrs/esm-globals": "5.6.1-pre.
|
|
71
|
-
"@openmrs/esm-navigation": "5.6.1-pre.
|
|
72
|
-
"@openmrs/esm-utils": "5.6.1-pre.
|
|
64
|
+
"@openmrs/esm-api": "5.6.1-pre.1945",
|
|
65
|
+
"@openmrs/esm-config": "5.6.1-pre.1945",
|
|
66
|
+
"@openmrs/esm-context": "5.6.1-pre.1945",
|
|
67
|
+
"@openmrs/esm-error-handling": "5.6.1-pre.1945",
|
|
68
|
+
"@openmrs/esm-extensions": "5.6.1-pre.1945",
|
|
69
|
+
"@openmrs/esm-feature-flags": "5.6.1-pre.1945",
|
|
70
|
+
"@openmrs/esm-globals": "5.6.1-pre.1945",
|
|
71
|
+
"@openmrs/esm-navigation": "5.6.1-pre.1945",
|
|
72
|
+
"@openmrs/esm-utils": "5.6.1-pre.1945",
|
|
73
73
|
"dayjs": "^1.10.8",
|
|
74
74
|
"i18next": "^21.10.0",
|
|
75
75
|
"react": "^18.1.0",
|