@openmrs/esm-react-utils 9.0.3-pre.4203 → 9.0.3-pre.4205

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 (155.03ms)
1
+ [0] Successfully compiled: 53 files with swc (154.15ms)
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
@@ -3,18 +3,14 @@ import { openmrsFetch } from '@openmrs/esm-api/mock';
3
3
  import { configSchema } from '@openmrs/esm-config/mock';
4
4
  import { getExtensionInternalStore } from '@openmrs/esm-extensions/mock';
5
5
  import { createGlobalStore } from '@openmrs/esm-state/mock';
6
- import {
7
- isDesktop as realIsDesktop,
8
- usePagination as realUsePagination,
9
- usePaginationInfo as realUsePaginationInfo,
10
- useOpenmrsPagination as realUseOpenmrsrPagination,
11
- useOpenmrsInfinite as realUseOpenmrsInfinite,
12
- useOpenmrsFetchAll as realUseOpenmrsFetchAll,
13
- useFhirPagination as realUseFhirPagination,
14
- useFhirInfinite as realUseFhirInfinite,
15
- useFhirFetchAll as realUseFhirFetchAll,
16
- useVisitContextStore as realUseVisitContextStore,
17
- } from './src/index';
6
+ import { isDesktop as realIsDesktop } from './src/useLayoutType';
7
+ import { useFhirFetchAll as realUseFhirFetchAll } from './src/useFhirFetchAll';
8
+ import { useFhirInfinite as realUseFhirInfinite } from './src/useFhirInfinite';
9
+ import { useFhirPagination as realUseFhirPagination } from './src/useFhirPagination';
10
+ import { useOpenmrsFetchAll as realUseOpenmrsFetchAll } from './src/useOpenmrsFetchAll';
11
+ import { useOpenmrsInfinite as realUseOpenmrsInfinite } from './src/useOpenmrsInfinite';
12
+ import { useOpenmrsPagination as realUseOpenmrsrPagination } from './src/useOpenmrsPagination';
13
+ import { useVisitContextStore as realUseVisitContextStore } from './src/useVisitContextStore';
18
14
  export { ConfigurableLink } from './src/ConfigurableLink';
19
15
  export { useStore, useStoreWithActions, createUseStore } from './src/useStore';
20
16
  import * as utils from '@openmrs/esm-utils';
package/mock.tsx CHANGED
@@ -4,18 +4,16 @@ import { openmrsFetch } from '@openmrs/esm-api/mock';
4
4
  import { configSchema } from '@openmrs/esm-config/mock';
5
5
  import { getExtensionInternalStore } from '@openmrs/esm-extensions/mock';
6
6
  import { createGlobalStore } from '@openmrs/esm-state/mock';
7
- import {
8
- isDesktop as realIsDesktop,
9
- usePagination as realUsePagination,
10
- usePaginationInfo as realUsePaginationInfo,
11
- useOpenmrsPagination as realUseOpenmrsrPagination,
12
- useOpenmrsInfinite as realUseOpenmrsInfinite,
13
- useOpenmrsFetchAll as realUseOpenmrsFetchAll,
14
- useFhirPagination as realUseFhirPagination,
15
- useFhirInfinite as realUseFhirInfinite,
16
- useFhirFetchAll as realUseFhirFetchAll,
17
- useVisitContextStore as realUseVisitContextStore,
18
- } from './src/index';
7
+ import { isDesktop as realIsDesktop } from './src/useLayoutType';
8
+ import { useFhirFetchAll as realUseFhirFetchAll } from './src/useFhirFetchAll';
9
+ import { useFhirInfinite as realUseFhirInfinite } from './src/useFhirInfinite';
10
+ import { useFhirPagination as realUseFhirPagination } from './src/useFhirPagination';
11
+ import { useOpenmrsFetchAll as realUseOpenmrsFetchAll } from './src/useOpenmrsFetchAll';
12
+ import { useOpenmrsInfinite as realUseOpenmrsInfinite } from './src/useOpenmrsInfinite';
13
+ import { useOpenmrsPagination as realUseOpenmrsrPagination } from './src/useOpenmrsPagination';
14
+ import { useVisitContextStore as realUseVisitContextStore } from './src/useVisitContextStore';
15
+ import { usePagination as realUsePagination } from './src/usePagination';
16
+ import { usePaginationInfo as realUsePaginationInfo } from './src/usePaginationInfo';
19
17
  export { ConfigurableLink } from './src/ConfigurableLink';
20
18
  export { RenderIfValueIsTruthy } from './src/RenderIfValueIsTruthy';
21
19
  export { useStore, useStoreWithActions, createUseStore } from './src/useStore';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-react-utils",
3
- "version": "9.0.3-pre.4203",
3
+ "version": "9.0.3-pre.4205",
4
4
  "license": "MPL-2.0",
5
5
  "description": "React utilities for OpenMRS.",
6
6
  "type": "module",
@@ -79,17 +79,17 @@
79
79
  "swr": "2.x"
80
80
  },
81
81
  "devDependencies": {
82
- "@openmrs/esm-api": "9.0.3-pre.4203",
83
- "@openmrs/esm-config": "9.0.3-pre.4203",
84
- "@openmrs/esm-context": "9.0.3-pre.4203",
85
- "@openmrs/esm-emr-api": "9.0.3-pre.4203",
86
- "@openmrs/esm-error-handling": "9.0.3-pre.4203",
87
- "@openmrs/esm-extensions": "9.0.3-pre.4203",
88
- "@openmrs/esm-feature-flags": "9.0.3-pre.4203",
89
- "@openmrs/esm-globals": "9.0.3-pre.4203",
90
- "@openmrs/esm-navigation": "9.0.3-pre.4203",
91
- "@openmrs/esm-state": "9.0.3-pre.4203",
92
- "@openmrs/esm-utils": "9.0.3-pre.4203",
82
+ "@openmrs/esm-api": "9.0.3-pre.4205",
83
+ "@openmrs/esm-config": "9.0.3-pre.4205",
84
+ "@openmrs/esm-context": "9.0.3-pre.4205",
85
+ "@openmrs/esm-emr-api": "9.0.3-pre.4205",
86
+ "@openmrs/esm-error-handling": "9.0.3-pre.4205",
87
+ "@openmrs/esm-extensions": "9.0.3-pre.4205",
88
+ "@openmrs/esm-feature-flags": "9.0.3-pre.4205",
89
+ "@openmrs/esm-globals": "9.0.3-pre.4205",
90
+ "@openmrs/esm-navigation": "9.0.3-pre.4205",
91
+ "@openmrs/esm-state": "9.0.3-pre.4205",
92
+ "@openmrs/esm-utils": "9.0.3-pre.4205",
93
93
  "@swc/cli": "0.8.0",
94
94
  "@swc/core": "1.15.18",
95
95
  "@vitest/coverage-v8": "^4.0.18",