@openmrs/esm-react-utils 6.3.1-pre.3063 → 6.3.1-pre.3065

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: 52 files with swc (133.08ms)
1
+ [0] Successfully compiled: 52 files with swc (125.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
@@ -4,7 +4,7 @@ export declare function useAttachments(patientUuid: string, includeEncounterless
4
4
  isLoading: boolean;
5
5
  data: AttachmentResponse[];
6
6
  error: any;
7
- mutate: import("swr/dist/_internal/types").KeyedMutator<FetchResponse<{
7
+ mutate: import("swr/dist/_internal").KeyedMutator<FetchResponse<{
8
8
  results: Array<AttachmentResponse>;
9
9
  }>>;
10
10
  isValidating: boolean;
@@ -91,7 +91,7 @@ export interface EmrApiConfigurationResponse {
91
91
  export declare function useEmrConfiguration(): {
92
92
  emrConfiguration: EmrApiConfigurationResponse | undefined;
93
93
  isLoadingEmrConfiguration: boolean;
94
- mutateEmrConfiguration: import("swr/dist/_internal/types").KeyedMutator<FetchResponse<EmrApiConfigurationResponse>>;
94
+ mutateEmrConfiguration: import("swr/dist/_internal").KeyedMutator<FetchResponse<EmrApiConfigurationResponse>>;
95
95
  errorFetchingEmrConfiguration: Error | undefined;
96
96
  };
97
97
  export {};
@@ -23,7 +23,7 @@ import { type ServerPaginationHandlers, type UseServerPaginationOptions } from '
23
23
  */
24
24
  export declare function useFhirPagination<T extends fhir.ResourceBase>(url: string | URL, pageSize: number, options?: UseServerPaginationOptions<fhir.Bundle>): {
25
25
  error: any;
26
- mutate: import("swr/dist/_internal/types").KeyedMutator<FetchResponse<fhir.Bundle>>;
26
+ mutate: import("swr/dist/_internal").KeyedMutator<FetchResponse<fhir.Bundle>>;
27
27
  isValidating: boolean;
28
28
  isLoading: boolean;
29
29
  data: T[] | undefined;
@@ -55,7 +55,7 @@ export interface UseServerPaginationOptions<R> {
55
55
  */
56
56
  export declare function useOpenmrsPagination<T>(url: string | URL, pageSize: number, options?: UseServerPaginationOptions<OpenMRSPaginatedResponse<T>>): {
57
57
  error: any;
58
- mutate: import("swr/dist/_internal/types").KeyedMutator<FetchResponse<OpenMRSPaginatedResponse<T>>>;
58
+ mutate: import("swr/dist/_internal").KeyedMutator<FetchResponse<OpenMRSPaginatedResponse<T>>>;
59
59
  isValidating: boolean;
60
60
  isLoading: boolean;
61
61
  data: T[] | undefined;
@@ -81,7 +81,7 @@ export interface ServerPaginationHandlers<T, R> {
81
81
  }
82
82
  export declare function useServerPagination<T, R>(url: string | URL, pageSize: number, serverPaginationHandlers: ServerPaginationHandlers<T, R>, options?: UseServerPaginationOptions<R>): {
83
83
  error: any;
84
- mutate: import("swr/dist/_internal/types").KeyedMutator<FetchResponse<R>>;
84
+ mutate: import("swr/dist/_internal").KeyedMutator<FetchResponse<R>>;
85
85
  isValidating: boolean;
86
86
  isLoading: boolean;
87
87
  data: T[] | undefined;
@@ -47,4 +47,4 @@ export type UseOpenmrsSWROptions = {
47
47
  * @param options An object of optional parameters to provide, including a {@link FetchConfig} object
48
48
  * to pass to {@link openmrsFetch} or options to pass to SWR
49
49
  */
50
- export declare function useOpenmrsSWR<DataType = any, ErrorType = any>(key: Key, options?: UseOpenmrsSWROptions): import("swr/dist/_internal/types").SWRResponse<FetchResponse<DataType>, ErrorType, SWRConfiguration<FetchResponse<DataType>, ErrorType, import("swr/dist/_internal/types").BareFetcher<FetchResponse<DataType>>> | undefined>;
50
+ export declare function useOpenmrsSWR<DataType = any, ErrorType = any>(key: Key, options?: UseOpenmrsSWROptions): import("swr/dist/_internal").SWRResponse<FetchResponse<DataType>, ErrorType, SWRConfiguration<FetchResponse<DataType>, ErrorType, import("swr/dist/_internal").BareFetcher<FetchResponse<DataType>>> | undefined>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-react-utils",
3
- "version": "6.3.1-pre.3063",
3
+ "version": "6.3.1-pre.3065",
4
4
  "license": "MPL-2.0",
5
5
  "description": "React utilities for OpenMRS.",
6
6
  "type": "module",
@@ -78,17 +78,17 @@
78
78
  "swr": "2.x"
79
79
  },
80
80
  "devDependencies": {
81
- "@openmrs/esm-api": "6.3.1-pre.3063",
82
- "@openmrs/esm-config": "6.3.1-pre.3063",
83
- "@openmrs/esm-context": "6.3.1-pre.3063",
84
- "@openmrs/esm-emr-api": "6.3.1-pre.3063",
85
- "@openmrs/esm-error-handling": "6.3.1-pre.3063",
86
- "@openmrs/esm-extensions": "6.3.1-pre.3063",
87
- "@openmrs/esm-feature-flags": "6.3.1-pre.3063",
88
- "@openmrs/esm-globals": "6.3.1-pre.3063",
89
- "@openmrs/esm-navigation": "6.3.1-pre.3063",
90
- "@openmrs/esm-state": "6.3.1-pre.3063",
91
- "@openmrs/esm-utils": "6.3.1-pre.3063",
81
+ "@openmrs/esm-api": "6.3.1-pre.3065",
82
+ "@openmrs/esm-config": "6.3.1-pre.3065",
83
+ "@openmrs/esm-context": "6.3.1-pre.3065",
84
+ "@openmrs/esm-emr-api": "6.3.1-pre.3065",
85
+ "@openmrs/esm-error-handling": "6.3.1-pre.3065",
86
+ "@openmrs/esm-extensions": "6.3.1-pre.3065",
87
+ "@openmrs/esm-feature-flags": "6.3.1-pre.3065",
88
+ "@openmrs/esm-globals": "6.3.1-pre.3065",
89
+ "@openmrs/esm-navigation": "6.3.1-pre.3065",
90
+ "@openmrs/esm-state": "6.3.1-pre.3065",
91
+ "@openmrs/esm-utils": "6.3.1-pre.3065",
92
92
  "@swc/cli": "^0.7.7",
93
93
  "@swc/core": "^1.11.29",
94
94
  "concurrently": "^9.1.2",
@@ -101,7 +101,7 @@
101
101
  "react-i18next": "^11.18.6",
102
102
  "rimraf": "^6.0.1",
103
103
  "rxjs": "^6.5.3",
104
- "swr": "^2.3.3",
104
+ "swr": "2.2.5",
105
105
  "vitest": "^3.1.4"
106
106
  },
107
107
  "stableVersion": "6.3.0"