@openmrs/esm-react-utils 5.6.1-pre.1812 → 5.6.1-pre.1816

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,4 +1,4 @@
1
- @openmrs/esm-react-utils:build: cache hit, replaying output 681239068b685cf3
1
+ @openmrs/esm-react-utils:build: cache hit, replaying output 292c191834bf7c29
2
2
  @openmrs/esm-react-utils:build: asset openmrs-esm-react-utils.js 65.5 KiB [emitted] [minimized] (name: main) 1 related asset
3
3
  @openmrs/esm-react-utils:build: orphan modules 178 KiB [orphan] 126 modules
4
4
  @openmrs/esm-react-utils:build: runtime modules 937 bytes 4 modules
@@ -12,4 +12,4 @@
12
12
  @openmrs/esm-react-utils:build:  ./src/index.ts + 126 modules 179 KiB [built] [code generated]
13
13
  @openmrs/esm-react-utils:build:  ../esm-state/dist/openmrs-esm-state.js 4.66 KiB [built] [code generated]
14
14
  @openmrs/esm-react-utils:build:  + 5 modules
15
- @openmrs/esm-react-utils:build: webpack 5.88.0 compiled successfully in 4750 ms
15
+ @openmrs/esm-react-utils:build: webpack 5.88.0 compiled successfully in 4645 ms
package/mock.tsx CHANGED
@@ -4,9 +4,11 @@ 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
6
  import { usePagination as realUsePagination } from './src/index';
7
- export { ConfigurableLink, isDesktop, useStore, useStoreWithActions, createUseStore } from './src/index';
7
+ export { isDesktop, useStore, useStoreWithActions, createUseStore } from './src/index';
8
8
  import * as utils from '@openmrs/esm-utils';
9
9
 
10
+ export const ConfigurableLink = ({ to, children }) => <a href={to}>{children}</a>;
11
+
10
12
  export const ComponentContext = React.createContext(null);
11
13
 
12
14
  export const openmrsComponentDecorator = jest.fn().mockImplementation(() => (component) => component);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-react-utils",
3
- "version": "5.6.1-pre.1812",
3
+ "version": "5.6.1-pre.1816",
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.1812",
65
- "@openmrs/esm-config": "5.6.1-pre.1812",
66
- "@openmrs/esm-context": "5.6.1-pre.1812",
67
- "@openmrs/esm-error-handling": "5.6.1-pre.1812",
68
- "@openmrs/esm-extensions": "5.6.1-pre.1812",
69
- "@openmrs/esm-feature-flags": "5.6.1-pre.1812",
70
- "@openmrs/esm-globals": "5.6.1-pre.1812",
71
- "@openmrs/esm-navigation": "5.6.1-pre.1812",
72
- "@openmrs/esm-utils": "5.6.1-pre.1812",
64
+ "@openmrs/esm-api": "5.6.1-pre.1816",
65
+ "@openmrs/esm-config": "5.6.1-pre.1816",
66
+ "@openmrs/esm-context": "5.6.1-pre.1816",
67
+ "@openmrs/esm-error-handling": "5.6.1-pre.1816",
68
+ "@openmrs/esm-extensions": "5.6.1-pre.1816",
69
+ "@openmrs/esm-feature-flags": "5.6.1-pre.1816",
70
+ "@openmrs/esm-globals": "5.6.1-pre.1816",
71
+ "@openmrs/esm-navigation": "5.6.1-pre.1816",
72
+ "@openmrs/esm-utils": "5.6.1-pre.1816",
73
73
  "dayjs": "^1.10.8",
74
74
  "i18next": "^21.10.0",
75
75
  "react": "^18.1.0",