@qiaopeng/tanstack-query-plus 0.5.8 → 0.5.10
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/README.md +155 -95
- package/dist/{types/base.d.ts → base-CHnwqfyz.d.cts} +12 -14
- package/dist/base-CHnwqfyz.d.ts +52 -0
- package/dist/chunk-52ZO6Y67.cjs +1121 -0
- package/dist/chunk-52ZO6Y67.cjs.map +1 -0
- package/dist/chunk-5J6OXSLW.cjs +36 -0
- package/dist/chunk-5J6OXSLW.cjs.map +1 -0
- package/dist/chunk-6MAYHLTE.cjs +310 -0
- package/dist/chunk-6MAYHLTE.cjs.map +1 -0
- package/dist/chunk-ADS2QTMP.js +144 -0
- package/dist/chunk-ADS2QTMP.js.map +1 -0
- package/dist/chunk-APXNNHBD.cjs +374 -0
- package/dist/chunk-APXNNHBD.cjs.map +1 -0
- package/dist/chunk-AXMWOGNX.js +134 -0
- package/dist/chunk-AXMWOGNX.js.map +1 -0
- package/dist/chunk-B4KO3K3E.cjs +521 -0
- package/dist/chunk-B4KO3K3E.cjs.map +1 -0
- package/dist/chunk-BK3OTIBD.cjs +15 -0
- package/dist/chunk-BK3OTIBD.cjs.map +1 -0
- package/dist/chunk-BYAOQALW.js +13 -0
- package/dist/chunk-BYAOQALW.js.map +1 -0
- package/dist/chunk-CRTVS7VI.cjs +162 -0
- package/dist/chunk-CRTVS7VI.cjs.map +1 -0
- package/dist/chunk-EXITP7QO.js +288 -0
- package/dist/chunk-EXITP7QO.js.map +1 -0
- package/dist/chunk-GMO3PRZZ.js +565 -0
- package/dist/chunk-GMO3PRZZ.js.map +1 -0
- package/dist/chunk-HRO2DWKZ.js +12 -0
- package/dist/chunk-HRO2DWKZ.js.map +1 -0
- package/dist/chunk-JHDKUQSB.js +1069 -0
- package/dist/chunk-JHDKUQSB.js.map +1 -0
- package/dist/chunk-JN2Y6RSY.js +23 -0
- package/dist/chunk-JN2Y6RSY.js.map +1 -0
- package/dist/chunk-JRJSKRZW.cjs +29 -0
- package/dist/chunk-JRJSKRZW.cjs.map +1 -0
- package/dist/chunk-KC62H4VJ.js +123 -0
- package/dist/chunk-KC62H4VJ.js.map +1 -0
- package/dist/chunk-LHEHSLD5.js +31 -0
- package/dist/chunk-LHEHSLD5.js.map +1 -0
- package/dist/chunk-N4264P7N.cjs +156 -0
- package/dist/chunk-N4264P7N.cjs.map +1 -0
- package/dist/chunk-NF5QYPYC.cjs +133 -0
- package/dist/chunk-NF5QYPYC.cjs.map +1 -0
- package/dist/chunk-OFLCHKKE.cjs +28 -0
- package/dist/chunk-OFLCHKKE.cjs.map +1 -0
- package/dist/chunk-PCNSWVA5.cjs +602 -0
- package/dist/chunk-PCNSWVA5.cjs.map +1 -0
- package/dist/chunk-STOMAA2X.js +85 -0
- package/dist/chunk-STOMAA2X.js.map +1 -0
- package/dist/chunk-UVF5S6LX.cjs +15 -0
- package/dist/chunk-UVF5S6LX.cjs.map +1 -0
- package/dist/chunk-WEIXCDCA.cjs +90 -0
- package/dist/chunk-WEIXCDCA.cjs.map +1 -0
- package/dist/chunk-X3ZTSLBQ.js +355 -0
- package/dist/chunk-X3ZTSLBQ.js.map +1 -0
- package/dist/chunk-YEV73J4J.js +504 -0
- package/dist/chunk-YEV73J4J.js.map +1 -0
- package/dist/chunk-YW5PNTRU.cjs +14 -0
- package/dist/chunk-YW5PNTRU.cjs.map +1 -0
- package/dist/chunk-ZNXSWUIS.js +12 -0
- package/dist/chunk-ZNXSWUIS.js.map +1 -0
- package/dist/chunk-ZUEMBY4W.js +21 -0
- package/dist/chunk-ZUEMBY4W.js.map +1 -0
- package/dist/components/index.cjs +60 -0
- package/dist/components/index.cjs.map +1 -0
- package/dist/components/index.d.cts +43 -0
- package/dist/components/index.d.ts +43 -4
- package/dist/components/index.js +3 -4
- package/dist/components/index.js.map +1 -0
- package/dist/core/devtools.cjs +25 -0
- package/dist/core/devtools.cjs.map +1 -0
- package/dist/core/devtools.d.cts +17 -0
- package/dist/core/devtools.d.ts +9 -7
- package/dist/core/devtools.js +4 -16
- package/dist/core/devtools.js.map +1 -0
- package/dist/core/index.cjs +220 -0
- package/dist/core/index.cjs.map +1 -0
- package/dist/core/index.d.cts +196 -0
- package/dist/core/index.d.ts +196 -9
- package/dist/core/index.js +7 -8
- package/dist/core/index.js.map +1 -0
- package/dist/features/index.cjs +76 -0
- package/dist/features/index.cjs.map +1 -0
- package/dist/features/index.d.cts +86 -0
- package/dist/features/index.d.ts +86 -4
- package/dist/features/index.js +7 -3
- package/dist/features/index.js.map +1 -0
- package/dist/hooks/index.cjs +209 -0
- package/dist/hooks/index.cjs.map +1 -0
- package/dist/hooks/index.d.cts +377 -0
- package/dist/hooks/index.d.ts +377 -10
- package/dist/hooks/index.js +8 -9
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/useInViewPrefetch.cjs +33 -0
- package/dist/hooks/useInViewPrefetch.cjs.map +1 -0
- package/dist/hooks/useInViewPrefetch.d.cts +12 -0
- package/dist/hooks/useInViewPrefetch.d.ts +6 -4
- package/dist/hooks/useInViewPrefetch.js +30 -20
- package/dist/hooks/useInViewPrefetch.js.map +1 -0
- package/dist/index.cjs +811 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +36 -0
- package/dist/index.d.ts +36 -8
- package/dist/index.js +89 -7
- package/dist/index.js.map +1 -0
- package/dist/{types/offline.d.ts → offline-DVPtgoAS.d.ts} +15 -13
- package/dist/offline-xxeA_-6V.d.cts +99 -0
- package/dist/persistence-MRtkmhqq.d.cts +216 -0
- package/dist/persistence-tIrEb0pR.d.ts +216 -0
- package/dist/react-query/index.cjs +52 -0
- package/dist/react-query/index.cjs.map +1 -0
- package/dist/react-query/index.d.cts +1 -0
- package/dist/react-query/index.d.ts +1 -3
- package/dist/react-query/index.js +3 -1
- package/dist/react-query/index.js.map +1 -0
- package/dist/types/index.cjs +43 -0
- package/dist/types/index.cjs.map +1 -0
- package/dist/types/index.d.cts +157 -0
- package/dist/types/index.d.ts +116 -12
- package/dist/types/index.js +6 -8
- package/dist/types/index.js.map +1 -0
- package/dist/utils/index.cjs +234 -0
- package/dist/utils/index.cjs.map +1 -0
- package/dist/utils/index.d.cts +272 -0
- package/dist/utils/index.d.ts +272 -10
- package/dist/utils/index.js +9 -9
- package/dist/utils/index.js.map +1 -0
- package/package.json +13 -3
- package/dist/PersistQueryClientProvider.d.ts +0 -22
- package/dist/PersistQueryClientProvider.d.ts.map +0 -1
- package/dist/PersistQueryClientProvider.js +0 -47
- package/dist/components/LoadingFallback.d.ts +0 -16
- package/dist/components/LoadingFallback.d.ts.map +0 -1
- package/dist/components/LoadingFallback.js +0 -27
- package/dist/components/QueryErrorBoundary.d.ts +0 -12
- package/dist/components/QueryErrorBoundary.d.ts.map +0 -1
- package/dist/components/QueryErrorBoundary.js +0 -9
- package/dist/components/SuspenseWrapper.d.ts +0 -14
- package/dist/components/SuspenseWrapper.d.ts.map +0 -1
- package/dist/components/SuspenseWrapper.js +0 -9
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/internal/ErrorBoundary.d.ts +0 -27
- package/dist/components/internal/ErrorBoundary.d.ts.map +0 -1
- package/dist/components/internal/ErrorBoundary.js +0 -37
- package/dist/core/config.d.ts +0 -80
- package/dist/core/config.d.ts.map +0 -1
- package/dist/core/config.js +0 -321
- package/dist/core/devtools.d.ts.map +0 -1
- package/dist/core/env.d.ts +0 -4
- package/dist/core/env.d.ts.map +0 -1
- package/dist/core/env.js +0 -26
- package/dist/core/focusManager.d.ts +0 -33
- package/dist/core/focusManager.d.ts.map +0 -1
- package/dist/core/focusManager.js +0 -122
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/keys.d.ts +0 -59
- package/dist/core/keys.d.ts.map +0 -1
- package/dist/core/keys.js +0 -107
- package/dist/core/queryOptions.d.ts +0 -19
- package/dist/core/queryOptions.d.ts.map +0 -1
- package/dist/core/queryOptions.js +0 -44
- package/dist/features/index.d.ts.map +0 -1
- package/dist/features/offline.d.ts +0 -48
- package/dist/features/offline.d.ts.map +0 -1
- package/dist/features/offline.js +0 -269
- package/dist/features/persistence.d.ts +0 -36
- package/dist/features/persistence.d.ts.map +0 -1
- package/dist/features/persistence.js +0 -186
- package/dist/hooks/batchQueries.d.ts +0 -129
- package/dist/hooks/batchQueries.d.ts.map +0 -1
- package/dist/hooks/batchQueries.js +0 -301
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/useDataGuardMutation.d.ts +0 -39
- package/dist/hooks/useDataGuardMutation.d.ts.map +0 -1
- package/dist/hooks/useDataGuardMutation.js +0 -151
- package/dist/hooks/useDataGuardQuery.d.ts +0 -28
- package/dist/hooks/useDataGuardQuery.d.ts.map +0 -1
- package/dist/hooks/useDataGuardQuery.js +0 -71
- package/dist/hooks/useFocusManager.d.ts +0 -41
- package/dist/hooks/useFocusManager.d.ts.map +0 -1
- package/dist/hooks/useFocusManager.js +0 -109
- package/dist/hooks/useInViewPrefetch.d.ts.map +0 -1
- package/dist/hooks/useInfiniteQuery.d.ts +0 -33
- package/dist/hooks/useInfiniteQuery.d.ts.map +0 -1
- package/dist/hooks/useInfiniteQuery.js +0 -61
- package/dist/hooks/useMutation.d.ts +0 -25
- package/dist/hooks/useMutation.d.ts.map +0 -1
- package/dist/hooks/useMutation.js +0 -180
- package/dist/hooks/usePrefetch.d.ts +0 -54
- package/dist/hooks/usePrefetch.d.ts.map +0 -1
- package/dist/hooks/usePrefetch.js +0 -229
- package/dist/hooks/useQuery.d.ts +0 -21
- package/dist/hooks/useQuery.d.ts.map +0 -1
- package/dist/hooks/useQuery.js +0 -46
- package/dist/hooks/useSuspenseQuery.d.ts +0 -11
- package/dist/hooks/useSuspenseQuery.d.ts.map +0 -1
- package/dist/hooks/useSuspenseQuery.js +0 -19
- package/dist/index.d.ts.map +0 -1
- package/dist/react-query/index.d.ts.map +0 -1
- package/dist/types/base.d.ts.map +0 -1
- package/dist/types/base.js +0 -26
- package/dist/types/dataGuard.d.ts +0 -69
- package/dist/types/dataGuard.d.ts.map +0 -1
- package/dist/types/dataGuard.js +0 -10
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/infinite.d.ts +0 -39
- package/dist/types/infinite.d.ts.map +0 -1
- package/dist/types/infinite.js +0 -1
- package/dist/types/offline.d.ts.map +0 -1
- package/dist/types/offline.js +0 -8
- package/dist/types/optimistic.d.ts +0 -126
- package/dist/types/optimistic.d.ts.map +0 -1
- package/dist/types/optimistic.js +0 -7
- package/dist/types/persistence.d.ts +0 -9
- package/dist/types/persistence.d.ts.map +0 -1
- package/dist/types/persistence.js +0 -1
- package/dist/types/selectors.d.ts +0 -11
- package/dist/types/selectors.d.ts.map +0 -1
- package/dist/types/selectors.js +0 -1
- package/dist/types/suspense.d.ts +0 -67
- package/dist/types/suspense.d.ts.map +0 -1
- package/dist/types/suspense.js +0 -1
- package/dist/utils/dataGuard.d.ts +0 -37
- package/dist/utils/dataGuard.d.ts.map +0 -1
- package/dist/utils/dataGuard.js +0 -257
- package/dist/utils/fieldMapper.d.ts +0 -9
- package/dist/utils/fieldMapper.d.ts.map +0 -1
- package/dist/utils/fieldMapper.js +0 -27
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/network.d.ts +0 -9
- package/dist/utils/network.d.ts.map +0 -1
- package/dist/utils/network.js +0 -43
- package/dist/utils/optimisticUtils.d.ts +0 -45
- package/dist/utils/optimisticUtils.d.ts.map +0 -1
- package/dist/utils/optimisticUtils.js +0 -116
- package/dist/utils/placeholderData.d.ts +0 -3
- package/dist/utils/placeholderData.d.ts.map +0 -1
- package/dist/utils/placeholderData.js +0 -28
- package/dist/utils/prefetchManager.d.ts +0 -111
- package/dist/utils/prefetchManager.d.ts.map +0 -1
- package/dist/utils/prefetchManager.js +0 -246
- package/dist/utils/queryKey.d.ts +0 -24
- package/dist/utils/queryKey.d.ts.map +0 -1
- package/dist/utils/queryKey.js +0 -77
- package/dist/utils/selectors.d.ts +0 -30
- package/dist/utils/selectors.d.ts.map +0 -1
- package/dist/utils/selectors.js +0 -18
- package/dist/utils/storage.d.ts +0 -7
- package/dist/utils/storage.d.ts.map +0 -1
- package/dist/utils/storage.js +0 -84
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkN4264P7N_cjs = require('../chunk-N4264P7N.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "CardSkeletonFallback", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkN4264P7N_cjs.CardSkeletonFallback; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "DefaultLoadingFallback", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkN4264P7N_cjs.DefaultLoadingFallback; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "FullScreenLoading", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkN4264P7N_cjs.FullScreenLoading; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "HydrationBoundary", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkN4264P7N_cjs.HydrationBoundary; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "ListSkeletonFallback", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunkN4264P7N_cjs.ListSkeletonFallback; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "PageSkeletonFallback", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkN4264P7N_cjs.PageSkeletonFallback; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "QueryErrorBoundary", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunkN4264P7N_cjs.QueryErrorBoundary; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "QuerySuspenseWrapper", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return chunkN4264P7N_cjs.QuerySuspenseWrapper; }
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(exports, "SmallLoadingIndicator", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () { return chunkN4264P7N_cjs.SmallLoadingIndicator; }
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "SuspenseWrapper", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () { return chunkN4264P7N_cjs.SuspenseWrapper; }
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(exports, "TextSkeletonFallback", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function () { return chunkN4264P7N_cjs.TextSkeletonFallback; }
|
|
50
|
+
});
|
|
51
|
+
Object.defineProperty(exports, "dehydrate", {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () { return chunkN4264P7N_cjs.dehydrate; }
|
|
54
|
+
});
|
|
55
|
+
Object.defineProperty(exports, "hydrate", {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
get: function () { return chunkN4264P7N_cjs.hydrate; }
|
|
58
|
+
});
|
|
59
|
+
//# sourceMappingURL=index.cjs.map
|
|
60
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export { HydrationBoundary, dehydrate, hydrate } from '@tanstack/react-query';
|
|
4
|
+
|
|
5
|
+
declare function DefaultLoadingFallback(): react_jsx_runtime.JSX.Element;
|
|
6
|
+
declare function TextSkeletonFallback({ lines }: {
|
|
7
|
+
lines?: number;
|
|
8
|
+
}): react_jsx_runtime.JSX.Element;
|
|
9
|
+
declare function CardSkeletonFallback(): react_jsx_runtime.JSX.Element;
|
|
10
|
+
declare function ListSkeletonFallback({ items }: {
|
|
11
|
+
items?: number;
|
|
12
|
+
}): react_jsx_runtime.JSX.Element;
|
|
13
|
+
declare function PageSkeletonFallback(): react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare function SmallLoadingIndicator({ size }: {
|
|
15
|
+
size?: "sm" | "md" | "lg";
|
|
16
|
+
}): react_jsx_runtime.JSX.Element;
|
|
17
|
+
declare function FullScreenLoading({ message }: {
|
|
18
|
+
message?: string;
|
|
19
|
+
}): react_jsx_runtime.JSX.Element;
|
|
20
|
+
|
|
21
|
+
interface QueryErrorBoundaryProps {
|
|
22
|
+
children: ReactNode;
|
|
23
|
+
fallback?: (error: Error, resetErrorBoundary: () => void) => ReactNode;
|
|
24
|
+
onError?: (error: Error, errorInfo: {
|
|
25
|
+
componentStack: string;
|
|
26
|
+
}) => void;
|
|
27
|
+
resetKeys?: Array<string | number>;
|
|
28
|
+
}
|
|
29
|
+
declare function QueryErrorBoundary({ children, fallback, onError, resetKeys, ...props }: QueryErrorBoundaryProps): react_jsx_runtime.JSX.Element;
|
|
30
|
+
|
|
31
|
+
interface SuspenseWrapperProps {
|
|
32
|
+
children: ReactNode;
|
|
33
|
+
fallback?: ReactNode;
|
|
34
|
+
errorFallback?: (error: Error, resetErrorBoundary: () => void) => ReactNode;
|
|
35
|
+
onError?: (error: Error, errorInfo: {
|
|
36
|
+
componentStack: string;
|
|
37
|
+
}) => void;
|
|
38
|
+
resetKeys?: Array<string | number>;
|
|
39
|
+
}
|
|
40
|
+
declare function SuspenseWrapper({ children, fallback, errorFallback, onError, resetKeys }: SuspenseWrapperProps): react_jsx_runtime.JSX.Element;
|
|
41
|
+
declare function QuerySuspenseWrapper({ children, fallback, errorFallback, onError, resetKeys }: SuspenseWrapperProps): react_jsx_runtime.JSX.Element;
|
|
42
|
+
|
|
43
|
+
export { CardSkeletonFallback, DefaultLoadingFallback, FullScreenLoading, ListSkeletonFallback, PageSkeletonFallback, QueryErrorBoundary, type QueryErrorBoundaryProps, QuerySuspenseWrapper, SmallLoadingIndicator, SuspenseWrapper, TextSkeletonFallback };
|
|
@@ -1,4 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export { HydrationBoundary, dehydrate, hydrate } from '@tanstack/react-query';
|
|
4
|
+
|
|
5
|
+
declare function DefaultLoadingFallback(): react_jsx_runtime.JSX.Element;
|
|
6
|
+
declare function TextSkeletonFallback({ lines }: {
|
|
7
|
+
lines?: number;
|
|
8
|
+
}): react_jsx_runtime.JSX.Element;
|
|
9
|
+
declare function CardSkeletonFallback(): react_jsx_runtime.JSX.Element;
|
|
10
|
+
declare function ListSkeletonFallback({ items }: {
|
|
11
|
+
items?: number;
|
|
12
|
+
}): react_jsx_runtime.JSX.Element;
|
|
13
|
+
declare function PageSkeletonFallback(): react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare function SmallLoadingIndicator({ size }: {
|
|
15
|
+
size?: "sm" | "md" | "lg";
|
|
16
|
+
}): react_jsx_runtime.JSX.Element;
|
|
17
|
+
declare function FullScreenLoading({ message }: {
|
|
18
|
+
message?: string;
|
|
19
|
+
}): react_jsx_runtime.JSX.Element;
|
|
20
|
+
|
|
21
|
+
interface QueryErrorBoundaryProps {
|
|
22
|
+
children: ReactNode;
|
|
23
|
+
fallback?: (error: Error, resetErrorBoundary: () => void) => ReactNode;
|
|
24
|
+
onError?: (error: Error, errorInfo: {
|
|
25
|
+
componentStack: string;
|
|
26
|
+
}) => void;
|
|
27
|
+
resetKeys?: Array<string | number>;
|
|
28
|
+
}
|
|
29
|
+
declare function QueryErrorBoundary({ children, fallback, onError, resetKeys, ...props }: QueryErrorBoundaryProps): react_jsx_runtime.JSX.Element;
|
|
30
|
+
|
|
31
|
+
interface SuspenseWrapperProps {
|
|
32
|
+
children: ReactNode;
|
|
33
|
+
fallback?: ReactNode;
|
|
34
|
+
errorFallback?: (error: Error, resetErrorBoundary: () => void) => ReactNode;
|
|
35
|
+
onError?: (error: Error, errorInfo: {
|
|
36
|
+
componentStack: string;
|
|
37
|
+
}) => void;
|
|
38
|
+
resetKeys?: Array<string | number>;
|
|
39
|
+
}
|
|
40
|
+
declare function SuspenseWrapper({ children, fallback, errorFallback, onError, resetKeys }: SuspenseWrapperProps): react_jsx_runtime.JSX.Element;
|
|
41
|
+
declare function QuerySuspenseWrapper({ children, fallback, errorFallback, onError, resetKeys }: SuspenseWrapperProps): react_jsx_runtime.JSX.Element;
|
|
42
|
+
|
|
43
|
+
export { CardSkeletonFallback, DefaultLoadingFallback, FullScreenLoading, ListSkeletonFallback, PageSkeletonFallback, QueryErrorBoundary, type QueryErrorBoundaryProps, QuerySuspenseWrapper, SmallLoadingIndicator, SuspenseWrapper, TextSkeletonFallback };
|
package/dist/components/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { CardSkeletonFallback, DefaultLoadingFallback, FullScreenLoading, ListSkeletonFallback, PageSkeletonFallback, SmallLoadingIndicator, TextSkeletonFallback } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
// Note: SuspenseWrapperProps type is exported from ../types/suspense.js
|
|
1
|
+
export { CardSkeletonFallback, DefaultLoadingFallback, FullScreenLoading, HydrationBoundary, ListSkeletonFallback, PageSkeletonFallback, QueryErrorBoundary, QuerySuspenseWrapper, SmallLoadingIndicator, SuspenseWrapper, TextSkeletonFallback, dehydrate, hydrate } from '../chunk-AXMWOGNX.js';
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
3
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkJRJSKRZW_cjs = require('../chunk-JRJSKRZW.cjs');
|
|
4
|
+
require('../chunk-OFLCHKKE.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "ReactQueryDevtools", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkJRJSKRZW_cjs.ReactQueryDevtools; }
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "createDevToolsConfig", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return chunkJRJSKRZW_cjs.createDevToolsConfig; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "defaultDevToolsConfig", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunkJRJSKRZW_cjs.defaultDevToolsConfig; }
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "isDevToolsEnabled", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return chunkJRJSKRZW_cjs.isDevToolsEnabled; }
|
|
23
|
+
});
|
|
24
|
+
//# sourceMappingURL=devtools.cjs.map
|
|
25
|
+
//# sourceMappingURL=devtools.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"devtools.cjs"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
export { ReactQueryDevtools } from '@tanstack/react-query-devtools';
|
|
3
|
+
|
|
4
|
+
interface DevToolsConfig {
|
|
5
|
+
initialIsOpen?: boolean;
|
|
6
|
+
position?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
7
|
+
enabled?: boolean;
|
|
8
|
+
buttonPosition?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
9
|
+
panelProps?: ComponentProps<"div">;
|
|
10
|
+
closeButtonProps?: ComponentProps<"button">;
|
|
11
|
+
toggleButtonProps?: ComponentProps<"button">;
|
|
12
|
+
}
|
|
13
|
+
declare const defaultDevToolsConfig: DevToolsConfig;
|
|
14
|
+
declare function createDevToolsConfig(overrides?: Partial<DevToolsConfig>): DevToolsConfig;
|
|
15
|
+
declare function isDevToolsEnabled(): boolean;
|
|
16
|
+
|
|
17
|
+
export { type DevToolsConfig, createDevToolsConfig, defaultDevToolsConfig, isDevToolsEnabled };
|
package/dist/core/devtools.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { ReactQueryDevtools } from
|
|
3
|
-
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
export { ReactQueryDevtools } from '@tanstack/react-query-devtools';
|
|
3
|
+
|
|
4
|
+
interface DevToolsConfig {
|
|
4
5
|
initialIsOpen?: boolean;
|
|
5
6
|
position?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
6
7
|
enabled?: boolean;
|
|
@@ -9,7 +10,8 @@ export interface DevToolsConfig {
|
|
|
9
10
|
closeButtonProps?: ComponentProps<"button">;
|
|
10
11
|
toggleButtonProps?: ComponentProps<"button">;
|
|
11
12
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
declare const defaultDevToolsConfig: DevToolsConfig;
|
|
14
|
+
declare function createDevToolsConfig(overrides?: Partial<DevToolsConfig>): DevToolsConfig;
|
|
15
|
+
declare function isDevToolsEnabled(): boolean;
|
|
16
|
+
|
|
17
|
+
export { type DevToolsConfig, createDevToolsConfig, defaultDevToolsConfig, isDevToolsEnabled };
|
package/dist/core/devtools.js
CHANGED
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
position: "bottom-right",
|
|
6
|
-
enabled: !isProd
|
|
7
|
-
};
|
|
8
|
-
export function createDevToolsConfig(overrides) {
|
|
9
|
-
return {
|
|
10
|
-
...defaultDevToolsConfig,
|
|
11
|
-
...overrides
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
export function isDevToolsEnabled() {
|
|
15
|
-
return !isProd;
|
|
16
|
-
}
|
|
1
|
+
export { ReactQueryDevtools, createDevToolsConfig, defaultDevToolsConfig, isDevToolsEnabled } from '../chunk-ZUEMBY4W.js';
|
|
2
|
+
import '../chunk-JN2Y6RSY.js';
|
|
3
|
+
//# sourceMappingURL=devtools.js.map
|
|
4
|
+
//# sourceMappingURL=devtools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"devtools.js"}
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkCRTVS7VI_cjs = require('../chunk-CRTVS7VI.cjs');
|
|
4
|
+
var chunkJRJSKRZW_cjs = require('../chunk-JRJSKRZW.cjs');
|
|
5
|
+
var chunkNF5QYPYC_cjs = require('../chunk-NF5QYPYC.cjs');
|
|
6
|
+
var chunk6MAYHLTE_cjs = require('../chunk-6MAYHLTE.cjs');
|
|
7
|
+
var chunkOFLCHKKE_cjs = require('../chunk-OFLCHKKE.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Object.defineProperty(exports, "areKeysEqual", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkCRTVS7VI_cjs.areKeysEqual; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "containsEntity", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkCRTVS7VI_cjs.containsEntity; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "createAppQueryOptions", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkCRTVS7VI_cjs.createAppQueryOptions; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "createAppQueryOptionsWithSelect", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunkCRTVS7VI_cjs.createAppQueryOptionsWithSelect; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "createComplexKey", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkCRTVS7VI_cjs.createComplexKey; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "createDomainKeyFactory", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunkCRTVS7VI_cjs.createDomainKeyFactory; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "createFilteredKey", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return chunkCRTVS7VI_cjs.createFilteredKey; }
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(exports, "createListQueryOptions", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () { return chunkCRTVS7VI_cjs.createListQueryOptions; }
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "createMutationKeyFactory", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () { return chunkCRTVS7VI_cjs.createMutationKeyFactory; }
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(exports, "createPaginatedKey", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function () { return chunkCRTVS7VI_cjs.createPaginatedKey; }
|
|
50
|
+
});
|
|
51
|
+
Object.defineProperty(exports, "createSearchKey", {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () { return chunkCRTVS7VI_cjs.createSearchKey; }
|
|
54
|
+
});
|
|
55
|
+
Object.defineProperty(exports, "createSortedKey", {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
get: function () { return chunkCRTVS7VI_cjs.createSortedKey; }
|
|
58
|
+
});
|
|
59
|
+
Object.defineProperty(exports, "extractEntityId", {
|
|
60
|
+
enumerable: true,
|
|
61
|
+
get: function () { return chunkCRTVS7VI_cjs.extractEntityId; }
|
|
62
|
+
});
|
|
63
|
+
Object.defineProperty(exports, "matchesKeyPattern", {
|
|
64
|
+
enumerable: true,
|
|
65
|
+
get: function () { return chunkCRTVS7VI_cjs.matchesKeyPattern; }
|
|
66
|
+
});
|
|
67
|
+
Object.defineProperty(exports, "normalizeQueryKey", {
|
|
68
|
+
enumerable: true,
|
|
69
|
+
get: function () { return chunkCRTVS7VI_cjs.normalizeQueryKey; }
|
|
70
|
+
});
|
|
71
|
+
Object.defineProperty(exports, "queryKeys", {
|
|
72
|
+
enumerable: true,
|
|
73
|
+
get: function () { return chunkCRTVS7VI_cjs.queryKeys; }
|
|
74
|
+
});
|
|
75
|
+
Object.defineProperty(exports, "validateQueryKey", {
|
|
76
|
+
enumerable: true,
|
|
77
|
+
get: function () { return chunkCRTVS7VI_cjs.validateQueryKey; }
|
|
78
|
+
});
|
|
79
|
+
Object.defineProperty(exports, "ReactQueryDevtools", {
|
|
80
|
+
enumerable: true,
|
|
81
|
+
get: function () { return chunkJRJSKRZW_cjs.ReactQueryDevtools; }
|
|
82
|
+
});
|
|
83
|
+
Object.defineProperty(exports, "createDevToolsConfig", {
|
|
84
|
+
enumerable: true,
|
|
85
|
+
get: function () { return chunkJRJSKRZW_cjs.createDevToolsConfig; }
|
|
86
|
+
});
|
|
87
|
+
Object.defineProperty(exports, "defaultDevToolsConfig", {
|
|
88
|
+
enumerable: true,
|
|
89
|
+
get: function () { return chunkJRJSKRZW_cjs.defaultDevToolsConfig; }
|
|
90
|
+
});
|
|
91
|
+
Object.defineProperty(exports, "isDevToolsEnabled", {
|
|
92
|
+
enumerable: true,
|
|
93
|
+
get: function () { return chunkJRJSKRZW_cjs.isDevToolsEnabled; }
|
|
94
|
+
});
|
|
95
|
+
Object.defineProperty(exports, "SmartFocusManager", {
|
|
96
|
+
enumerable: true,
|
|
97
|
+
get: function () { return chunkNF5QYPYC_cjs.SmartFocusManager; }
|
|
98
|
+
});
|
|
99
|
+
Object.defineProperty(exports, "focusManager", {
|
|
100
|
+
enumerable: true,
|
|
101
|
+
get: function () { return chunkNF5QYPYC_cjs.focusManager; }
|
|
102
|
+
});
|
|
103
|
+
Object.defineProperty(exports, "getSmartFocusManager", {
|
|
104
|
+
enumerable: true,
|
|
105
|
+
get: function () { return chunkNF5QYPYC_cjs.getSmartFocusManager; }
|
|
106
|
+
});
|
|
107
|
+
Object.defineProperty(exports, "pauseFocusManager", {
|
|
108
|
+
enumerable: true,
|
|
109
|
+
get: function () { return chunkNF5QYPYC_cjs.pauseFocusManager; }
|
|
110
|
+
});
|
|
111
|
+
Object.defineProperty(exports, "resetSmartFocusManager", {
|
|
112
|
+
enumerable: true,
|
|
113
|
+
get: function () { return chunkNF5QYPYC_cjs.resetSmartFocusManager; }
|
|
114
|
+
});
|
|
115
|
+
Object.defineProperty(exports, "resumeFocusManager", {
|
|
116
|
+
enumerable: true,
|
|
117
|
+
get: function () { return chunkNF5QYPYC_cjs.resumeFocusManager; }
|
|
118
|
+
});
|
|
119
|
+
Object.defineProperty(exports, "setupFocusManager", {
|
|
120
|
+
enumerable: true,
|
|
121
|
+
get: function () { return chunkNF5QYPYC_cjs.setupFocusManager; }
|
|
122
|
+
});
|
|
123
|
+
Object.defineProperty(exports, "DEFAULT_GC_TIME", {
|
|
124
|
+
enumerable: true,
|
|
125
|
+
get: function () { return chunk6MAYHLTE_cjs.DEFAULT_GC_TIME; }
|
|
126
|
+
});
|
|
127
|
+
Object.defineProperty(exports, "DEFAULT_MUTATION_CONFIG", {
|
|
128
|
+
enumerable: true,
|
|
129
|
+
get: function () { return chunk6MAYHLTE_cjs.DEFAULT_MUTATION_CONFIG; }
|
|
130
|
+
});
|
|
131
|
+
Object.defineProperty(exports, "DEFAULT_QUERY_CONFIG", {
|
|
132
|
+
enumerable: true,
|
|
133
|
+
get: function () { return chunk6MAYHLTE_cjs.DEFAULT_QUERY_CONFIG; }
|
|
134
|
+
});
|
|
135
|
+
Object.defineProperty(exports, "DEFAULT_STALE_TIME", {
|
|
136
|
+
enumerable: true,
|
|
137
|
+
get: function () { return chunk6MAYHLTE_cjs.DEFAULT_STALE_TIME; }
|
|
138
|
+
});
|
|
139
|
+
Object.defineProperty(exports, "DEVELOPMENT_CONFIG", {
|
|
140
|
+
enumerable: true,
|
|
141
|
+
get: function () { return chunk6MAYHLTE_cjs.DEVELOPMENT_CONFIG; }
|
|
142
|
+
});
|
|
143
|
+
Object.defineProperty(exports, "GLOBAL_QUERY_CONFIG", {
|
|
144
|
+
enumerable: true,
|
|
145
|
+
get: function () { return chunk6MAYHLTE_cjs.GLOBAL_QUERY_CONFIG; }
|
|
146
|
+
});
|
|
147
|
+
Object.defineProperty(exports, "LONG_CACHE_CONFIG", {
|
|
148
|
+
enumerable: true,
|
|
149
|
+
get: function () { return chunk6MAYHLTE_cjs.LONG_CACHE_CONFIG; }
|
|
150
|
+
});
|
|
151
|
+
Object.defineProperty(exports, "PRODUCTION_CONFIG", {
|
|
152
|
+
enumerable: true,
|
|
153
|
+
get: function () { return chunk6MAYHLTE_cjs.PRODUCTION_CONFIG; }
|
|
154
|
+
});
|
|
155
|
+
Object.defineProperty(exports, "REALTIME_CONFIG", {
|
|
156
|
+
enumerable: true,
|
|
157
|
+
get: function () { return chunk6MAYHLTE_cjs.REALTIME_CONFIG; }
|
|
158
|
+
});
|
|
159
|
+
Object.defineProperty(exports, "SMART_RETRY_MUTATION_CONFIG", {
|
|
160
|
+
enumerable: true,
|
|
161
|
+
get: function () { return chunk6MAYHLTE_cjs.SMART_RETRY_MUTATION_CONFIG; }
|
|
162
|
+
});
|
|
163
|
+
Object.defineProperty(exports, "TIME_CONSTANTS", {
|
|
164
|
+
enumerable: true,
|
|
165
|
+
get: function () { return chunk6MAYHLTE_cjs.TIME_CONSTANTS; }
|
|
166
|
+
});
|
|
167
|
+
Object.defineProperty(exports, "createCustomConfig", {
|
|
168
|
+
enumerable: true,
|
|
169
|
+
get: function () { return chunk6MAYHLTE_cjs.createCustomConfig; }
|
|
170
|
+
});
|
|
171
|
+
Object.defineProperty(exports, "createErrorSafeConfig", {
|
|
172
|
+
enumerable: true,
|
|
173
|
+
get: function () { return chunk6MAYHLTE_cjs.createErrorSafeConfig; }
|
|
174
|
+
});
|
|
175
|
+
Object.defineProperty(exports, "createSafeRetryStrategy", {
|
|
176
|
+
enumerable: true,
|
|
177
|
+
get: function () { return chunk6MAYHLTE_cjs.createSafeRetryStrategy; }
|
|
178
|
+
});
|
|
179
|
+
Object.defineProperty(exports, "defaultMutationRetryStrategy", {
|
|
180
|
+
enumerable: true,
|
|
181
|
+
get: function () { return chunk6MAYHLTE_cjs.defaultMutationRetryStrategy; }
|
|
182
|
+
});
|
|
183
|
+
Object.defineProperty(exports, "defaultQueryRetryStrategy", {
|
|
184
|
+
enumerable: true,
|
|
185
|
+
get: function () { return chunk6MAYHLTE_cjs.defaultQueryRetryStrategy; }
|
|
186
|
+
});
|
|
187
|
+
Object.defineProperty(exports, "ensureBestPractices", {
|
|
188
|
+
enumerable: true,
|
|
189
|
+
get: function () { return chunk6MAYHLTE_cjs.ensureBestPractices; }
|
|
190
|
+
});
|
|
191
|
+
Object.defineProperty(exports, "exponentialBackoff", {
|
|
192
|
+
enumerable: true,
|
|
193
|
+
get: function () { return chunk6MAYHLTE_cjs.exponentialBackoff; }
|
|
194
|
+
});
|
|
195
|
+
Object.defineProperty(exports, "getConfigByEnvironment", {
|
|
196
|
+
enumerable: true,
|
|
197
|
+
get: function () { return chunk6MAYHLTE_cjs.getConfigByEnvironment; }
|
|
198
|
+
});
|
|
199
|
+
Object.defineProperty(exports, "validateConfig", {
|
|
200
|
+
enumerable: true,
|
|
201
|
+
get: function () { return chunk6MAYHLTE_cjs.validateConfig; }
|
|
202
|
+
});
|
|
203
|
+
Object.defineProperty(exports, "validateGcTime", {
|
|
204
|
+
enumerable: true,
|
|
205
|
+
get: function () { return chunk6MAYHLTE_cjs.validateGcTime; }
|
|
206
|
+
});
|
|
207
|
+
Object.defineProperty(exports, "isDev", {
|
|
208
|
+
enumerable: true,
|
|
209
|
+
get: function () { return chunkOFLCHKKE_cjs.isDev; }
|
|
210
|
+
});
|
|
211
|
+
Object.defineProperty(exports, "isProd", {
|
|
212
|
+
enumerable: true,
|
|
213
|
+
get: function () { return chunkOFLCHKKE_cjs.isProd; }
|
|
214
|
+
});
|
|
215
|
+
Object.defineProperty(exports, "isTest", {
|
|
216
|
+
enumerable: true,
|
|
217
|
+
get: function () { return chunkOFLCHKKE_cjs.isTest; }
|
|
218
|
+
});
|
|
219
|
+
//# sourceMappingURL=index.cjs.map
|
|
220
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|