@refinedev/core 4.44.4 → 4.44.6
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/CHANGELOG.md +58 -0
- package/dist/esm/index.js +5 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/hooks/data/useCreate.d.ts +1 -1
- package/dist/hooks/data/useCreate.d.ts.map +1 -1
- package/dist/hooks/data/useCreateMany.d.ts +1 -1
- package/dist/hooks/data/useCreateMany.d.ts.map +1 -1
- package/dist/hooks/data/useDelete.d.ts +2 -2
- package/dist/hooks/data/useDelete.d.ts.map +1 -1
- package/dist/hooks/data/useDeleteMany.d.ts +2 -2
- package/dist/hooks/data/useDeleteMany.d.ts.map +1 -1
- package/dist/hooks/data/useInfiniteList.d.ts +2 -2
- package/dist/hooks/data/useInfiniteList.d.ts.map +1 -1
- package/dist/hooks/data/useList.d.ts +1 -1
- package/dist/hooks/data/useList.d.ts.map +1 -1
- package/dist/hooks/data/useMany.d.ts +1 -1
- package/dist/hooks/data/useMany.d.ts.map +1 -1
- package/dist/hooks/data/useOne.d.ts +1 -1
- package/dist/hooks/data/useOne.d.ts.map +1 -1
- package/dist/hooks/data/useUpdate.d.ts +1 -1
- package/dist/hooks/data/useUpdate.d.ts.map +1 -1
- package/dist/hooks/data/useUpdateMany.d.ts +1 -1
- package/dist/hooks/data/useUpdateMany.d.ts.map +1 -1
- package/dist/hooks/live/useResourceSubscription/index.d.ts.map +1 -1
- package/dist/iife/index.js +4 -4
- package/dist/iife/index.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/hooks/auditLog/useLog/index.ts +2 -2
- package/src/hooks/data/useCreate.ts +21 -21
- package/src/hooks/data/useCreateMany.ts +17 -17
- package/src/hooks/data/useDelete.ts +25 -25
- package/src/hooks/data/useDeleteMany.ts +29 -29
- package/src/hooks/data/useInfiniteList.ts +26 -27
- package/src/hooks/data/useList.ts +22 -23
- package/src/hooks/data/useMany.ts +19 -20
- package/src/hooks/data/useOne.ts +19 -20
- package/src/hooks/data/useUpdate.ts +29 -29
- package/src/hooks/data/useUpdateMany.ts +25 -25
- package/src/hooks/live/useResourceSubscription/index.ts +4 -4
|
@@ -1,55 +1,55 @@
|
|
|
1
|
+
import { getXRay } from "@refinedev/devtools-internal";
|
|
1
2
|
import {
|
|
2
3
|
useMutation,
|
|
3
4
|
UseMutationOptions,
|
|
4
5
|
UseMutationResult,
|
|
5
6
|
useQueryClient,
|
|
6
7
|
} from "@tanstack/react-query";
|
|
7
|
-
import { getXRay } from "@refinedev/devtools-internal";
|
|
8
8
|
|
|
9
|
+
import { ActionTypes } from "@contexts/undoableQueue";
|
|
10
|
+
import {
|
|
11
|
+
handleMultiple,
|
|
12
|
+
pickDataProvider,
|
|
13
|
+
pickNotDeprecated,
|
|
14
|
+
queryKeysReplacement,
|
|
15
|
+
useActiveAuthProvider,
|
|
16
|
+
} from "@definitions/helpers";
|
|
9
17
|
import {
|
|
10
|
-
useResource,
|
|
11
18
|
useCancelNotification,
|
|
12
|
-
useMutationMode,
|
|
13
|
-
useTranslate,
|
|
14
|
-
usePublish,
|
|
15
|
-
useHandleNotification,
|
|
16
19
|
useDataProvider,
|
|
20
|
+
useHandleNotification,
|
|
17
21
|
useInvalidate,
|
|
18
22
|
useLog,
|
|
19
|
-
useOnError,
|
|
20
23
|
useMeta,
|
|
24
|
+
useMutationMode,
|
|
25
|
+
useOnError,
|
|
26
|
+
usePublish,
|
|
21
27
|
useRefineContext,
|
|
28
|
+
useResource,
|
|
29
|
+
useTranslate,
|
|
22
30
|
} from "@hooks";
|
|
23
|
-
import {
|
|
31
|
+
import { useKeys } from "@hooks/useKeys";
|
|
24
32
|
import {
|
|
25
|
-
BaseRecord,
|
|
26
33
|
BaseKey,
|
|
27
|
-
|
|
34
|
+
BaseRecord,
|
|
35
|
+
GetListResponse,
|
|
36
|
+
GetManyResponse,
|
|
37
|
+
GetOneResponse,
|
|
28
38
|
HttpError,
|
|
39
|
+
IQueryKeys,
|
|
40
|
+
MetaQuery,
|
|
29
41
|
MutationMode,
|
|
30
|
-
|
|
42
|
+
OptimisticUpdateManyMapType,
|
|
31
43
|
PrevContext as UpdateContext,
|
|
44
|
+
QueryResponse,
|
|
32
45
|
SuccessErrorNotification,
|
|
33
|
-
|
|
34
|
-
GetListResponse,
|
|
35
|
-
IQueryKeys,
|
|
36
|
-
OptimisticUpdateManyMapType,
|
|
37
|
-
GetManyResponse,
|
|
38
|
-
GetOneResponse,
|
|
46
|
+
UpdateManyResponse,
|
|
39
47
|
} from "../../interfaces";
|
|
40
|
-
import {
|
|
41
|
-
queryKeysReplacement,
|
|
42
|
-
pickDataProvider,
|
|
43
|
-
handleMultiple,
|
|
44
|
-
pickNotDeprecated,
|
|
45
|
-
useActiveAuthProvider,
|
|
46
|
-
} from "@definitions/helpers";
|
|
47
48
|
import {
|
|
48
49
|
useLoadingOvertime,
|
|
49
50
|
UseLoadingOvertimeOptionsProps,
|
|
50
51
|
UseLoadingOvertimeReturnType,
|
|
51
52
|
} from "../useLoadingOvertime";
|
|
52
|
-
import { useKeys } from "@hooks/useKeys";
|
|
53
53
|
|
|
54
54
|
type UpdateManyParams<TData, TError, TVariables> = {
|
|
55
55
|
/**
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { LiveContext } from "@contexts/live";
|
|
2
|
+
import { RefineContext } from "@contexts/refine";
|
|
3
|
+
import { useInvalidate } from "@hooks/invalidate";
|
|
4
|
+
import { useResource } from "@hooks/resource";
|
|
1
5
|
import { useContext, useEffect } from "react";
|
|
2
6
|
import {
|
|
3
7
|
BaseKey,
|
|
@@ -10,10 +14,6 @@ import {
|
|
|
10
14
|
MetaQuery,
|
|
11
15
|
Pagination,
|
|
12
16
|
} from "../../../interfaces";
|
|
13
|
-
import { LiveContext } from "@contexts/live";
|
|
14
|
-
import { RefineContext } from "@contexts/refine";
|
|
15
|
-
import { useResource } from "@hooks/resource";
|
|
16
|
-
import { useInvalidate } from "@hooks/invalidate";
|
|
17
17
|
|
|
18
18
|
export type UseResourceSubscriptionProps = {
|
|
19
19
|
channel: string;
|