@suspensive/react-query-4 3.19.5 → 4.0.0-next.0
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/dist/ClientOnly-BSe1ROuK.cjs +20 -0
- package/dist/ClientOnly-BSe1ROuK.cjs.map +1 -0
- package/dist/ClientOnly-D2JpP9Ba.mjs +15 -0
- package/dist/ClientOnly-D2JpP9Ba.mjs.map +1 -0
- package/dist/IsFetching-BGIRMA6C.cjs +17 -0
- package/dist/IsFetching-BGIRMA6C.cjs.map +1 -0
- package/dist/IsFetching-CJrzs0ET.d.mts +16 -0
- package/dist/IsFetching-CJrzs0ET.d.mts.map +1 -0
- package/dist/IsFetching-Di9jXfRH.mjs +12 -0
- package/dist/IsFetching-Di9jXfRH.mjs.map +1 -0
- package/dist/IsFetching-FFvHWt5I.d.cts +16 -0
- package/dist/IsFetching-FFvHWt5I.d.cts.map +1 -0
- package/dist/IsFetching.cjs +2 -18
- package/dist/IsFetching.d.cts +2 -18
- package/dist/IsFetching.d.mts +2 -18
- package/dist/IsFetching.mjs +2 -17
- package/dist/Mutation-BWER242k.cjs +19 -0
- package/dist/Mutation-BWER242k.cjs.map +1 -0
- package/dist/Mutation-SB8NYSR4.mjs +14 -0
- package/dist/Mutation-SB8NYSR4.mjs.map +1 -0
- package/dist/Mutation-rhItOp02.d.cts +14 -0
- package/dist/Mutation-rhItOp02.d.cts.map +1 -0
- package/dist/Mutation-sfj_v5Fj.d.mts +14 -0
- package/dist/Mutation-sfj_v5Fj.d.mts.map +1 -0
- package/dist/Mutation.cjs +2 -14
- package/dist/Mutation.d.cts +2 -14
- package/dist/Mutation.d.mts +2 -14
- package/dist/Mutation.mjs +2 -13
- package/dist/PrefetchInfiniteQuery-BH6xERH5.mjs +20 -0
- package/dist/PrefetchInfiniteQuery-BH6xERH5.mjs.map +1 -0
- package/dist/PrefetchInfiniteQuery-Bf5JUe7U.cjs +25 -0
- package/dist/PrefetchInfiniteQuery-Bf5JUe7U.cjs.map +1 -0
- package/dist/PrefetchInfiniteQuery-CBl7Fblo.d.cts +17 -0
- package/dist/PrefetchInfiniteQuery-CBl7Fblo.d.cts.map +1 -0
- package/dist/PrefetchInfiniteQuery-CNNJphhx.d.mts +17 -0
- package/dist/PrefetchInfiniteQuery-CNNJphhx.d.mts.map +1 -0
- package/dist/PrefetchInfiniteQuery.cjs +2 -20
- package/dist/PrefetchInfiniteQuery.d.cts +2 -16
- package/dist/PrefetchInfiniteQuery.d.mts +2 -16
- package/dist/PrefetchInfiniteQuery.mjs +2 -19
- package/dist/PrefetchQuery-BmQt_WJk.d.mts +17 -0
- package/dist/PrefetchQuery-BmQt_WJk.d.mts.map +1 -0
- package/dist/PrefetchQuery-CqWzm0Tu.d.cts +17 -0
- package/dist/PrefetchQuery-CqWzm0Tu.d.cts.map +1 -0
- package/dist/PrefetchQuery-DQFTAE7M.mjs +20 -0
- package/dist/PrefetchQuery-DQFTAE7M.mjs.map +1 -0
- package/dist/PrefetchQuery-PBReP6tu.cjs +25 -0
- package/dist/PrefetchQuery-PBReP6tu.cjs.map +1 -0
- package/dist/PrefetchQuery.cjs +2 -20
- package/dist/PrefetchQuery.d.cts +2 -16
- package/dist/PrefetchQuery.d.mts +2 -16
- package/dist/PrefetchQuery.mjs +2 -19
- package/dist/QueriesHydration-B28Xmf0f.d.cts +106 -0
- package/dist/QueriesHydration-B28Xmf0f.d.cts.map +1 -0
- package/dist/QueriesHydration-CbLB0bKz.mjs +143 -0
- package/dist/QueriesHydration-CbLB0bKz.mjs.map +1 -0
- package/dist/QueriesHydration-Cd2lBXvZ.cjs +148 -0
- package/dist/QueriesHydration-Cd2lBXvZ.cjs.map +1 -0
- package/dist/QueriesHydration-D8Kdp7yq.d.mts +106 -0
- package/dist/QueriesHydration-D8Kdp7yq.d.mts.map +1 -0
- package/dist/QueriesHydration.cjs +2 -117
- package/dist/QueriesHydration.d.cts +2 -105
- package/dist/QueriesHydration.d.mts +2 -105
- package/dist/QueriesHydration.mjs +2 -116
- package/dist/QueryClientConsumer-B5vPlxA7.mjs +14 -0
- package/dist/QueryClientConsumer-B5vPlxA7.mjs.map +1 -0
- package/dist/QueryClientConsumer-COVqqi9y.d.cts +18 -0
- package/dist/QueryClientConsumer-COVqqi9y.d.cts.map +1 -0
- package/dist/QueryClientConsumer-CsNJXJGM.cjs +19 -0
- package/dist/QueryClientConsumer-CsNJXJGM.cjs.map +1 -0
- package/dist/QueryClientConsumer-YLHVJlTq.d.mts +18 -0
- package/dist/QueryClientConsumer-YLHVJlTq.d.mts.map +1 -0
- package/dist/QueryClientConsumer.cjs +2 -14
- package/dist/QueryClientConsumer.d.cts +2 -18
- package/dist/QueryClientConsumer.d.mts +2 -18
- package/dist/QueryClientConsumer.mjs +2 -13
- package/dist/SuspenseInfiniteQuery-BZ3SvXkD.mjs +30 -0
- package/dist/SuspenseInfiniteQuery-BZ3SvXkD.mjs.map +1 -0
- package/dist/SuspenseInfiniteQuery-ByTjC7r9.d.cts +31 -0
- package/dist/SuspenseInfiniteQuery-ByTjC7r9.d.cts.map +1 -0
- package/dist/SuspenseInfiniteQuery-asj0bHeh.d.mts +31 -0
- package/dist/SuspenseInfiniteQuery-asj0bHeh.d.mts.map +1 -0
- package/dist/SuspenseInfiniteQuery-qAybH413.cjs +35 -0
- package/dist/SuspenseInfiniteQuery-qAybH413.cjs.map +1 -0
- package/dist/SuspenseInfiniteQuery.cjs +2 -30
- package/dist/SuspenseInfiniteQuery.d.cts +2 -31
- package/dist/SuspenseInfiniteQuery.d.mts +2 -31
- package/dist/SuspenseInfiniteQuery.mjs +2 -29
- package/dist/SuspenseQueries-CZJAU3Eq.d.cts +31 -0
- package/dist/SuspenseQueries-CZJAU3Eq.d.cts.map +1 -0
- package/dist/SuspenseQueries-DlBy4veI.cjs +31 -0
- package/dist/SuspenseQueries-DlBy4veI.cjs.map +1 -0
- package/dist/SuspenseQueries-Dv6SQx-C.mjs +26 -0
- package/dist/SuspenseQueries-Dv6SQx-C.mjs.map +1 -0
- package/dist/SuspenseQueries-Nv07W4mb.d.mts +31 -0
- package/dist/SuspenseQueries-Nv07W4mb.d.mts.map +1 -0
- package/dist/SuspenseQueries.cjs +2 -26
- package/dist/SuspenseQueries.d.cts +2 -30
- package/dist/SuspenseQueries.d.mts +2 -30
- package/dist/SuspenseQueries.mjs +2 -25
- package/dist/SuspenseQuery-BNAZi5mZ.d.cts +31 -0
- package/dist/SuspenseQuery-BNAZi5mZ.d.cts.map +1 -0
- package/dist/SuspenseQuery-CGEFuzI_.cjs +35 -0
- package/dist/SuspenseQuery-CGEFuzI_.cjs.map +1 -0
- package/dist/SuspenseQuery-RbgXq6PC.mjs +30 -0
- package/dist/SuspenseQuery-RbgXq6PC.mjs.map +1 -0
- package/dist/SuspenseQuery-uHIieJ1n.d.mts +31 -0
- package/dist/SuspenseQuery-uHIieJ1n.d.mts.map +1 -0
- package/dist/SuspenseQuery.cjs +2 -30
- package/dist/SuspenseQuery.d.cts +2 -30
- package/dist/SuspenseQuery.d.mts +2 -30
- package/dist/SuspenseQuery.mjs +2 -29
- package/dist/components/ClientOnly.cjs +2 -12
- package/dist/components/ClientOnly.d.cts +13 -0
- package/dist/components/ClientOnly.d.cts.map +1 -0
- package/dist/components/ClientOnly.d.mts +13 -0
- package/dist/components/ClientOnly.d.mts.map +1 -0
- package/dist/components/ClientOnly.mjs +2 -12
- package/dist/createGetQueryClient-Cg34XLqS.cjs +68 -0
- package/dist/createGetQueryClient-Cg34XLqS.cjs.map +1 -0
- package/dist/createGetQueryClient-Cjacpz3C.mjs +63 -0
- package/dist/createGetQueryClient-Cjacpz3C.mjs.map +1 -0
- package/dist/createGetQueryClient-DI5GrATJ.d.cts +54 -0
- package/dist/createGetQueryClient-DI5GrATJ.d.cts.map +1 -0
- package/dist/createGetQueryClient-UFf6keL9.d.mts +54 -0
- package/dist/createGetQueryClient-UFf6keL9.d.mts.map +1 -0
- package/dist/createGetQueryClient.cjs +2 -63
- package/dist/createGetQueryClient.d.cts +2 -53
- package/dist/createGetQueryClient.d.mts +2 -53
- package/dist/createGetQueryClient.mjs +2 -62
- package/dist/index.cjs +12 -27
- package/dist/index.d.cts +12 -19
- package/dist/index.d.mts +12 -19
- package/dist/index.mjs +12 -19
- package/dist/mutationOptions-BdXvKAld.d.mts +7 -0
- package/dist/mutationOptions-BdXvKAld.d.mts.map +1 -0
- package/dist/mutationOptions-CBUqQakM.mjs +8 -0
- package/dist/mutationOptions-CBUqQakM.mjs.map +1 -0
- package/dist/mutationOptions-CzTorL9K.d.cts +7 -0
- package/dist/mutationOptions-CzTorL9K.d.cts.map +1 -0
- package/dist/mutationOptions-DNgLRYqd.cjs +14 -0
- package/dist/mutationOptions-DNgLRYqd.cjs.map +1 -0
- package/dist/mutationOptions.cjs +2 -9
- package/dist/mutationOptions.d.cts +2 -7
- package/dist/mutationOptions.d.mts +2 -7
- package/dist/mutationOptions.mjs +2 -7
- package/dist/objectSpread2-DTjFl4q7.mjs +67 -0
- package/dist/objectSpread2-DUnXKO-7.cjs +73 -0
- package/dist/objectWithoutProperties-BqF6LYLG.cjs +31 -0
- package/dist/objectWithoutProperties-DB_n2qVi.mjs +25 -0
- package/package.json +4 -4
- package/src/IsFetching.tsx +2 -3
- package/src/Mutation.tsx +1 -0
- package/src/PrefetchInfiniteQuery.tsx +8 -3
- package/src/PrefetchQuery.tsx +3 -3
- package/src/QueryClientConsumer.tsx +1 -0
- package/src/SuspenseInfiniteQuery.tsx +23 -2
- package/src/SuspenseQueries.tsx +1 -0
- package/src/SuspenseQuery.tsx +1 -0
- package/src/components/ClientOnly.tsx +1 -0
- package/src/createGetQueryClient.spec.tsx +77 -25
- package/src/index.ts +1 -14
- package/dist/IsFetching.cjs.map +0 -1
- package/dist/IsFetching.d.cts.map +0 -1
- package/dist/IsFetching.d.mts.map +0 -1
- package/dist/IsFetching.mjs.map +0 -1
- package/dist/Mutation.cjs.map +0 -1
- package/dist/Mutation.d.cts.map +0 -1
- package/dist/Mutation.d.mts.map +0 -1
- package/dist/Mutation.mjs.map +0 -1
- package/dist/PrefetchInfiniteQuery.cjs.map +0 -1
- package/dist/PrefetchInfiniteQuery.d.cts.map +0 -1
- package/dist/PrefetchInfiniteQuery.d.mts.map +0 -1
- package/dist/PrefetchInfiniteQuery.mjs.map +0 -1
- package/dist/PrefetchQuery.cjs.map +0 -1
- package/dist/PrefetchQuery.d.cts.map +0 -1
- package/dist/PrefetchQuery.d.mts.map +0 -1
- package/dist/PrefetchQuery.mjs.map +0 -1
- package/dist/QueriesHydration.cjs.map +0 -1
- package/dist/QueriesHydration.d.cts.map +0 -1
- package/dist/QueriesHydration.d.mts.map +0 -1
- package/dist/QueriesHydration.mjs.map +0 -1
- package/dist/QueryClientConsumer.cjs.map +0 -1
- package/dist/QueryClientConsumer.d.cts.map +0 -1
- package/dist/QueryClientConsumer.d.mts.map +0 -1
- package/dist/QueryClientConsumer.mjs.map +0 -1
- package/dist/SuspenseInfiniteQuery.cjs.map +0 -1
- package/dist/SuspenseInfiniteQuery.d.cts.map +0 -1
- package/dist/SuspenseInfiniteQuery.d.mts.map +0 -1
- package/dist/SuspenseInfiniteQuery.mjs.map +0 -1
- package/dist/SuspenseQueries.cjs.map +0 -1
- package/dist/SuspenseQueries.d.cts.map +0 -1
- package/dist/SuspenseQueries.d.mts.map +0 -1
- package/dist/SuspenseQueries.mjs.map +0 -1
- package/dist/SuspenseQuery.cjs.map +0 -1
- package/dist/SuspenseQuery.d.cts.map +0 -1
- package/dist/SuspenseQuery.d.mts.map +0 -1
- package/dist/SuspenseQuery.mjs.map +0 -1
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/asyncToGenerator.cjs +0 -29
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/asyncToGenerator.mjs +0 -28
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/defineProperty.cjs +0 -14
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/defineProperty.mjs +0 -14
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/objectSpread2.cjs +0 -27
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/objectSpread2.mjs +0 -27
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/objectWithoutProperties.cjs +0 -15
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/objectWithoutProperties.mjs +0 -15
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/objectWithoutPropertiesLoose.cjs +0 -14
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/objectWithoutPropertiesLoose.mjs +0 -13
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/toPrimitive.cjs +0 -16
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/toPrimitive.mjs +0 -16
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/toPropertyKey.cjs +0 -11
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/toPropertyKey.mjs +0 -11
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/typeof.cjs +0 -18
- package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/typeof.mjs +0 -12
- package/dist/components/ClientOnly.cjs.map +0 -1
- package/dist/components/ClientOnly.mjs.map +0 -1
- package/dist/createGetQueryClient.cjs.map +0 -1
- package/dist/createGetQueryClient.d.cts.map +0 -1
- package/dist/createGetQueryClient.d.mts.map +0 -1
- package/dist/createGetQueryClient.mjs.map +0 -1
- package/dist/infiniteQueryOptions.cjs +0 -18
- package/dist/infiniteQueryOptions.cjs.map +0 -1
- package/dist/infiniteQueryOptions.d.cts +0 -28
- package/dist/infiniteQueryOptions.d.cts.map +0 -1
- package/dist/infiniteQueryOptions.d.mts +0 -28
- package/dist/infiniteQueryOptions.d.mts.map +0 -1
- package/dist/infiniteQueryOptions.mjs +0 -17
- package/dist/infiniteQueryOptions.mjs.map +0 -1
- package/dist/mutationOptions.cjs.map +0 -1
- package/dist/mutationOptions.d.cts.map +0 -1
- package/dist/mutationOptions.d.mts.map +0 -1
- package/dist/mutationOptions.mjs.map +0 -1
- package/dist/queryOptions.cjs +0 -18
- package/dist/queryOptions.cjs.map +0 -1
- package/dist/queryOptions.d.cts +0 -28
- package/dist/queryOptions.d.cts.map +0 -1
- package/dist/queryOptions.d.mts +0 -28
- package/dist/queryOptions.d.mts.map +0 -1
- package/dist/queryOptions.mjs +0 -17
- package/dist/queryOptions.mjs.map +0 -1
- package/dist/usePrefetchInfiniteQuery.cjs +0 -18
- package/dist/usePrefetchInfiniteQuery.cjs.map +0 -1
- package/dist/usePrefetchInfiniteQuery.d.cts +0 -11
- package/dist/usePrefetchInfiniteQuery.d.cts.map +0 -1
- package/dist/usePrefetchInfiniteQuery.d.mts +0 -11
- package/dist/usePrefetchInfiniteQuery.d.mts.map +0 -1
- package/dist/usePrefetchInfiniteQuery.mjs +0 -17
- package/dist/usePrefetchInfiniteQuery.mjs.map +0 -1
- package/dist/usePrefetchQuery.cjs +0 -18
- package/dist/usePrefetchQuery.cjs.map +0 -1
- package/dist/usePrefetchQuery.d.cts +0 -11
- package/dist/usePrefetchQuery.d.cts.map +0 -1
- package/dist/usePrefetchQuery.d.mts +0 -11
- package/dist/usePrefetchQuery.d.mts.map +0 -1
- package/dist/usePrefetchQuery.mjs +0 -17
- package/dist/usePrefetchQuery.mjs.map +0 -1
- package/dist/useSuspenseInfiniteQuery.cjs +0 -20
- package/dist/useSuspenseInfiniteQuery.cjs.map +0 -1
- package/dist/useSuspenseInfiniteQuery.d.cts +0 -17
- package/dist/useSuspenseInfiniteQuery.d.cts.map +0 -1
- package/dist/useSuspenseInfiniteQuery.d.mts +0 -17
- package/dist/useSuspenseInfiniteQuery.d.mts.map +0 -1
- package/dist/useSuspenseInfiniteQuery.mjs +0 -19
- package/dist/useSuspenseInfiniteQuery.mjs.map +0 -1
- package/dist/useSuspenseQueries.cjs +0 -20
- package/dist/useSuspenseQueries.cjs.map +0 -1
- package/dist/useSuspenseQueries.d.cts +0 -36
- package/dist/useSuspenseQueries.d.cts.map +0 -1
- package/dist/useSuspenseQueries.d.mts +0 -36
- package/dist/useSuspenseQueries.d.mts.map +0 -1
- package/dist/useSuspenseQueries.mjs +0 -19
- package/dist/useSuspenseQueries.mjs.map +0 -1
- package/dist/useSuspenseQuery.cjs +0 -20
- package/dist/useSuspenseQuery.cjs.map +0 -1
- package/dist/useSuspenseQuery.d.cts +0 -36
- package/dist/useSuspenseQuery.d.cts.map +0 -1
- package/dist/useSuspenseQuery.d.mts +0 -36
- package/dist/useSuspenseQuery.d.mts.map +0 -1
- package/dist/useSuspenseQuery.mjs +0 -19
- package/dist/useSuspenseQuery.mjs.map +0 -1
- package/src/IsFetching.spec.tsx +0 -34
- package/src/infiniteQueryOptions.ts +0 -77
- package/src/queryOptions.ts +0 -80
- package/src/usePrefetchInfiniteQuery.test-d.tsx +0 -14
- package/src/usePrefetchInfiniteQuery.ts +0 -19
- package/src/usePrefetchQuery.test-d.tsx +0 -14
- package/src/usePrefetchQuery.ts +0 -19
- package/src/useSuspenseInfiniteQuery.ts +0 -34
- package/src/useSuspenseQueries.ts +0 -47
- package/src/useSuspenseQuery.ts +0 -39
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
|
+
let react = require("react");
|
|
5
|
+
|
|
6
|
+
//#region src/components/ClientOnly.tsx
|
|
7
|
+
const useIsClient = () => (0, react.useSyncExternalStore)(emptySubscribe, getSnapshot, getServerSnapshot);
|
|
8
|
+
const emptySubscribe = () => () => {};
|
|
9
|
+
const getSnapshot = () => true;
|
|
10
|
+
const getServerSnapshot = () => false;
|
|
11
|
+
const ClientOnly = ({ children, fallback }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: useIsClient() ? children : fallback });
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
Object.defineProperty(exports, 'ClientOnly', {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () {
|
|
17
|
+
return ClientOnly;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
//# sourceMappingURL=ClientOnly-BSe1ROuK.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClientOnly-BSe1ROuK.cjs","names":[],"sources":["../src/components/ClientOnly.tsx"],"sourcesContent":["'use client'\n\nimport { useSyncExternalStore } from 'react'\n\nconst useIsClient = () => useSyncExternalStore(emptySubscribe, getSnapshot, getServerSnapshot)\n\nconst emptySubscribe = () => () => {}\nconst getSnapshot = () => true\nconst getServerSnapshot = () => false\n\nexport const ClientOnly = ({ children, fallback }: { children: React.ReactNode; fallback: React.ReactNode }) => (\n <>{useIsClient() ? children : fallback}</>\n)\n"],"mappings":";;;;AAIA,MAAM,oDAAyC,gBAAgB,aAAa,kBAAkB;AAE9F,MAAM,6BAA6B;AACnC,MAAM,oBAAoB;AAC1B,MAAM,0BAA0B;AAEhC,MAAa,cAAc,EAAE,UAAU,eACrC,mFAAG,aAAa,GAAG,WAAW,WAAY"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
4
|
+
import { useSyncExternalStore } from "react";
|
|
5
|
+
|
|
6
|
+
//#region src/components/ClientOnly.tsx
|
|
7
|
+
const useIsClient = () => useSyncExternalStore(emptySubscribe, getSnapshot, getServerSnapshot);
|
|
8
|
+
const emptySubscribe = () => () => {};
|
|
9
|
+
const getSnapshot = () => true;
|
|
10
|
+
const getServerSnapshot = () => false;
|
|
11
|
+
const ClientOnly = ({ children, fallback }) => /* @__PURE__ */ jsx(Fragment, { children: useIsClient() ? children : fallback });
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { ClientOnly as t };
|
|
15
|
+
//# sourceMappingURL=ClientOnly-D2JpP9Ba.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClientOnly-D2JpP9Ba.mjs","names":[],"sources":["../src/components/ClientOnly.tsx"],"sourcesContent":["'use client'\n\nimport { useSyncExternalStore } from 'react'\n\nconst useIsClient = () => useSyncExternalStore(emptySubscribe, getSnapshot, getServerSnapshot)\n\nconst emptySubscribe = () => () => {}\nconst getSnapshot = () => true\nconst getServerSnapshot = () => false\n\nexport const ClientOnly = ({ children, fallback }: { children: React.ReactNode; fallback: React.ReactNode }) => (\n <>{useIsClient() ? children : fallback}</>\n)\n"],"mappings":";;;;AAIA,MAAM,oBAAoB,qBAAqB,gBAAgB,aAAa,kBAAkB;AAE9F,MAAM,6BAA6B;AACnC,MAAM,oBAAoB;AAC1B,MAAM,0BAA0B;AAEhC,MAAa,cAAc,EAAE,UAAU,eACrC,0CAAG,aAAa,GAAG,WAAW,WAAY"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
let __tanstack_react_query = require("@tanstack/react-query");
|
|
2
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
+
|
|
4
|
+
//#region src/IsFetching.tsx
|
|
5
|
+
/**
|
|
6
|
+
* @experimental This is an experimental feature.
|
|
7
|
+
*/
|
|
8
|
+
const IsFetching = ({ children }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: children((0, __tanstack_react_query.useIsFetching)()) });
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
Object.defineProperty(exports, 'IsFetching', {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () {
|
|
14
|
+
return IsFetching;
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=IsFetching-BGIRMA6C.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IsFetching-BGIRMA6C.cjs","names":[],"sources":["../src/IsFetching.tsx"],"sourcesContent":["'use client'\n\nimport { type QueryFilters, useIsFetching } from '@tanstack/react-query'\nimport type { ReactNode } from 'react'\n\n/**\n * @experimental This is an experimental feature.\n */\nexport const IsFetching = ({\n children,\n}: QueryFilters & { children: (isFetching: ReturnType<typeof useIsFetching>) => ReactNode }) => (\n <>{children(useIsFetching())}</>\n)\n"],"mappings":";;;;;;;AAQA,MAAa,cAAc,EACzB,eAEA,mFAAG,oDAAwB,CAAC,GAAI"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { QueryFilters, useIsFetching } from "@tanstack/react-query";
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/IsFetching.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* @experimental This is an experimental feature.
|
|
8
|
+
*/
|
|
9
|
+
declare const IsFetching: ({
|
|
10
|
+
children
|
|
11
|
+
}: QueryFilters & {
|
|
12
|
+
children: (isFetching: ReturnType<typeof useIsFetching>) => ReactNode;
|
|
13
|
+
}) => react_jsx_runtime0.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { IsFetching as t };
|
|
16
|
+
//# sourceMappingURL=IsFetching-CJrzs0ET.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IsFetching-CJrzs0ET.d.mts","names":[],"sources":["../src/IsFetching.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAQa,cAAA,UAIZ,EAAA,CAAA;EAAA;CAAA,EAFE,YAEF,GAAA;EAJ0B,QAAA,EAAA,CAAA,UAAA,EAEgB,UAFhB,CAAA,OAEkC,aAFlC,CAAA,EAAA,GAEqD,SAFrD;CAExB,EAAA,GAAwF,kBAAA,CAAA,GAAA,CAAA,OAAxF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { useIsFetching } from "@tanstack/react-query";
|
|
2
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/IsFetching.tsx
|
|
5
|
+
/**
|
|
6
|
+
* @experimental This is an experimental feature.
|
|
7
|
+
*/
|
|
8
|
+
const IsFetching = ({ children }) => /* @__PURE__ */ jsx(Fragment, { children: children(useIsFetching()) });
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { IsFetching as t };
|
|
12
|
+
//# sourceMappingURL=IsFetching-Di9jXfRH.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IsFetching-Di9jXfRH.mjs","names":[],"sources":["../src/IsFetching.tsx"],"sourcesContent":["'use client'\n\nimport { type QueryFilters, useIsFetching } from '@tanstack/react-query'\nimport type { ReactNode } from 'react'\n\n/**\n * @experimental This is an experimental feature.\n */\nexport const IsFetching = ({\n children,\n}: QueryFilters & { children: (isFetching: ReturnType<typeof useIsFetching>) => ReactNode }) => (\n <>{children(useIsFetching())}</>\n)\n"],"mappings":";;;;;;;AAQA,MAAa,cAAc,EACzB,eAEA,0CAAG,SAAS,eAAe,CAAC,GAAI"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import { QueryFilters, useIsFetching } from "@tanstack/react-query";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/IsFetching.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* @experimental This is an experimental feature.
|
|
8
|
+
*/
|
|
9
|
+
declare const IsFetching: ({
|
|
10
|
+
children
|
|
11
|
+
}: QueryFilters & {
|
|
12
|
+
children: (isFetching: ReturnType<typeof useIsFetching>) => ReactNode;
|
|
13
|
+
}) => react_jsx_runtime0.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { IsFetching as t };
|
|
16
|
+
//# sourceMappingURL=IsFetching-FFvHWt5I.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IsFetching-FFvHWt5I.d.cts","names":[],"sources":["../src/IsFetching.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAQa,cAAA,UAIZ,EAAA,CAAA;EAAA;CAAA,EAFE,YAEF,GAAA;EAJ0B,QAAA,EAAA,CAAA,UAAA,EAEgB,UAFhB,CAAA,OAEkC,aAFlC,CAAA,EAAA,GAEqD,SAFrD;CAExB,EAAA,GAAwF,kBAAA,CAAA,GAAA,CAAA,OAAxF"}
|
package/dist/IsFetching.cjs
CHANGED
|
@@ -1,21 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
const require_objectWithoutProperties = require('./_virtual/_@oxc-project_runtime@0.115.0/helpers/objectWithoutProperties.cjs');
|
|
5
|
-
let _tanstack_react_query = require("@tanstack/react-query");
|
|
6
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
+
const require_IsFetching = require('./IsFetching-BGIRMA6C.cjs');
|
|
7
4
|
|
|
8
|
-
|
|
9
|
-
const _excluded = ["children"];
|
|
10
|
-
/**
|
|
11
|
-
* Renders the current fetching count for queries that match the given filters.
|
|
12
|
-
* @experimental This is an experimental feature.
|
|
13
|
-
*/
|
|
14
|
-
const IsFetching = (_ref) => {
|
|
15
|
-
let { children } = _ref;
|
|
16
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: children((0, _tanstack_react_query.useIsFetching)(require_objectWithoutProperties._objectWithoutProperties(_ref, _excluded))) });
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
|
-
exports.IsFetching = IsFetching;
|
|
21
|
-
//# sourceMappingURL=IsFetching.cjs.map
|
|
5
|
+
exports.IsFetching = require_IsFetching.IsFetching;
|
package/dist/IsFetching.d.cts
CHANGED
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import { ReactNode } from "react";
|
|
4
|
-
|
|
5
|
-
//#region src/IsFetching.d.ts
|
|
6
|
-
/**
|
|
7
|
-
* Renders the current fetching count for queries that match the given filters.
|
|
8
|
-
* @experimental This is an experimental feature.
|
|
9
|
-
*/
|
|
10
|
-
declare const IsFetching: ({
|
|
11
|
-
children,
|
|
12
|
-
...filter
|
|
13
|
-
}: QueryFilters & {
|
|
14
|
-
children: (isFetching: ReturnType<typeof useIsFetching>) => ReactNode;
|
|
15
|
-
}) => react_jsx_runtime0.JSX.Element;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { IsFetching };
|
|
18
|
-
//# sourceMappingURL=IsFetching.d.cts.map
|
|
1
|
+
import { t as IsFetching } from "./IsFetching-FFvHWt5I.cjs";
|
|
2
|
+
export { IsFetching };
|
package/dist/IsFetching.d.mts
CHANGED
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { ReactNode } from "react";
|
|
4
|
-
|
|
5
|
-
//#region src/IsFetching.d.ts
|
|
6
|
-
/**
|
|
7
|
-
* Renders the current fetching count for queries that match the given filters.
|
|
8
|
-
* @experimental This is an experimental feature.
|
|
9
|
-
*/
|
|
10
|
-
declare const IsFetching: ({
|
|
11
|
-
children,
|
|
12
|
-
...filter
|
|
13
|
-
}: QueryFilters & {
|
|
14
|
-
children: (isFetching: ReturnType<typeof useIsFetching>) => ReactNode;
|
|
15
|
-
}) => react_jsx_runtime0.JSX.Element;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { IsFetching };
|
|
18
|
-
//# sourceMappingURL=IsFetching.d.mts.map
|
|
1
|
+
import { t as IsFetching } from "./IsFetching-CJrzs0ET.mjs";
|
|
2
|
+
export { IsFetching };
|
package/dist/IsFetching.mjs
CHANGED
|
@@ -1,20 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { useIsFetching } from "@tanstack/react-query";
|
|
5
|
-
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
|
+
import { t as IsFetching } from "./IsFetching-Di9jXfRH.mjs";
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
const _excluded = ["children"];
|
|
9
|
-
/**
|
|
10
|
-
* Renders the current fetching count for queries that match the given filters.
|
|
11
|
-
* @experimental This is an experimental feature.
|
|
12
|
-
*/
|
|
13
|
-
const IsFetching = (_ref) => {
|
|
14
|
-
let { children } = _ref;
|
|
15
|
-
return /* @__PURE__ */ jsx(Fragment, { children: children(useIsFetching(_objectWithoutProperties(_ref, _excluded))) });
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
export { IsFetching };
|
|
20
|
-
//# sourceMappingURL=IsFetching.mjs.map
|
|
5
|
+
export { IsFetching };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_objectWithoutProperties = require('./objectWithoutProperties-BqF6LYLG.cjs');
|
|
2
|
+
let __tanstack_react_query = require("@tanstack/react-query");
|
|
3
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
|
+
|
|
5
|
+
//#region src/Mutation.tsx
|
|
6
|
+
const _excluded = ["children"];
|
|
7
|
+
function Mutation(_ref) {
|
|
8
|
+
let { children } = _ref;
|
|
9
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: children((0, __tanstack_react_query.useMutation)(require_objectWithoutProperties._objectWithoutProperties(_ref, _excluded))) });
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
Object.defineProperty(exports, 'Mutation', {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () {
|
|
16
|
+
return Mutation;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=Mutation-BWER242k.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Mutation-BWER242k.cjs","names":[],"sources":["../src/Mutation.tsx"],"sourcesContent":["'use client'\n\nimport { type UseMutationOptions, type UseMutationResult, useMutation } from '@tanstack/react-query'\nimport type { ReactNode } from 'react'\n\nexport function Mutation<TData = unknown, TError = unknown, TVariables = void, TContext = unknown>({\n children,\n ...options\n}: UseMutationOptions<TData, TError, TVariables, TContext> & {\n children: (mutationResult: UseMutationResult<TData, TError, TVariables, TContext>) => ReactNode\n}) {\n return <>{children(useMutation(options))}</>\n}\n"],"mappings":";;;;;mBAME;AADF,SAAgB,SAAmF,MAKhG;KALgG,EACjG;AAKA,QAAO,mFAAG,2HAA6B,CAAC,GAAI"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { t as _objectWithoutProperties } from "./objectWithoutProperties-DB_n2qVi.mjs";
|
|
2
|
+
import { useMutation } from "@tanstack/react-query";
|
|
3
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/Mutation.tsx
|
|
6
|
+
const _excluded = ["children"];
|
|
7
|
+
function Mutation(_ref) {
|
|
8
|
+
let { children } = _ref;
|
|
9
|
+
return /* @__PURE__ */ jsx(Fragment, { children: children(useMutation(_objectWithoutProperties(_ref, _excluded))) });
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { Mutation as t };
|
|
14
|
+
//# sourceMappingURL=Mutation-SB8NYSR4.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Mutation-SB8NYSR4.mjs","names":[],"sources":["../src/Mutation.tsx"],"sourcesContent":["'use client'\n\nimport { type UseMutationOptions, type UseMutationResult, useMutation } from '@tanstack/react-query'\nimport type { ReactNode } from 'react'\n\nexport function Mutation<TData = unknown, TError = unknown, TVariables = void, TContext = unknown>({\n children,\n ...options\n}: UseMutationOptions<TData, TError, TVariables, TContext> & {\n children: (mutationResult: UseMutationResult<TData, TError, TVariables, TContext>) => ReactNode\n}) {\n return <>{children(useMutation(options))}</>\n}\n"],"mappings":";;;;;mBAME;AADF,SAAgB,SAAmF,MAKhG;KALgG,EACjG;AAKA,QAAO,0CAAG,SAAS,sDAAoB,CAAC,GAAI"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import { UseMutationOptions, UseMutationResult } from "@tanstack/react-query";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/Mutation.d.ts
|
|
6
|
+
declare function Mutation<TData = unknown, TError = unknown, TVariables = void, TContext = unknown>({
|
|
7
|
+
children,
|
|
8
|
+
...options
|
|
9
|
+
}: UseMutationOptions<TData, TError, TVariables, TContext> & {
|
|
10
|
+
children: (mutationResult: UseMutationResult<TData, TError, TVariables, TContext>) => ReactNode;
|
|
11
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { Mutation as t };
|
|
14
|
+
//# sourceMappingURL=Mutation-rhItOp02.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Mutation-rhItOp02.d.cts","names":[],"sources":["../src/Mutation.tsx"],"sourcesContent":[],"mappings":";;;;;iBAKgB;;;GAGb,mBAAmB,OAAO,QAAQ,YAAY;6BACpB,kBAAkB,OAAO,QAAQ,YAAY,cAAc;IACvF,kBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { UseMutationOptions, UseMutationResult } from "@tanstack/react-query";
|
|
2
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/Mutation.d.ts
|
|
6
|
+
declare function Mutation<TData = unknown, TError = unknown, TVariables = void, TContext = unknown>({
|
|
7
|
+
children,
|
|
8
|
+
...options
|
|
9
|
+
}: UseMutationOptions<TData, TError, TVariables, TContext> & {
|
|
10
|
+
children: (mutationResult: UseMutationResult<TData, TError, TVariables, TContext>) => ReactNode;
|
|
11
|
+
}): react_jsx_runtime1.JSX.Element;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { Mutation as t };
|
|
14
|
+
//# sourceMappingURL=Mutation-sfj_v5Fj.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Mutation-sfj_v5Fj.d.mts","names":[],"sources":["../src/Mutation.tsx"],"sourcesContent":[],"mappings":";;;;;iBAKgB;;;GAGb,mBAAmB,OAAO,QAAQ,YAAY;6BACpB,kBAAkB,OAAO,QAAQ,YAAY,cAAc;IACvF,kBAAA,CAAA,GAAA,CAAA"}
|
package/dist/Mutation.cjs
CHANGED
|
@@ -1,17 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
const require_objectWithoutProperties = require('./_virtual/_@oxc-project_runtime@0.115.0/helpers/objectWithoutProperties.cjs');
|
|
5
|
-
let _tanstack_react_query = require("@tanstack/react-query");
|
|
6
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
+
const require_Mutation = require('./Mutation-BWER242k.cjs');
|
|
7
4
|
|
|
8
|
-
|
|
9
|
-
const _excluded = ["children"];
|
|
10
|
-
function Mutation(_ref) {
|
|
11
|
-
let { children } = _ref;
|
|
12
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: children((0, _tanstack_react_query.useMutation)(require_objectWithoutProperties._objectWithoutProperties(_ref, _excluded))) });
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
//#endregion
|
|
16
|
-
exports.Mutation = Mutation;
|
|
17
|
-
//# sourceMappingURL=Mutation.cjs.map
|
|
5
|
+
exports.Mutation = require_Mutation.Mutation;
|
package/dist/Mutation.d.cts
CHANGED
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import { ReactNode } from "react";
|
|
4
|
-
|
|
5
|
-
//#region src/Mutation.d.ts
|
|
6
|
-
declare function Mutation<TData = unknown, TError = unknown, TVariables = void, TContext = unknown>({
|
|
7
|
-
children,
|
|
8
|
-
...options
|
|
9
|
-
}: UseMutationOptions<TData, TError, TVariables, TContext> & {
|
|
10
|
-
children: (mutationResult: UseMutationResult<TData, TError, TVariables, TContext>) => ReactNode;
|
|
11
|
-
}): react_jsx_runtime0.JSX.Element;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { Mutation };
|
|
14
|
-
//# sourceMappingURL=Mutation.d.cts.map
|
|
1
|
+
import { t as Mutation } from "./Mutation-rhItOp02.cjs";
|
|
2
|
+
export { Mutation };
|
package/dist/Mutation.d.mts
CHANGED
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { ReactNode } from "react";
|
|
4
|
-
|
|
5
|
-
//#region src/Mutation.d.ts
|
|
6
|
-
declare function Mutation<TData = unknown, TError = unknown, TVariables = void, TContext = unknown>({
|
|
7
|
-
children,
|
|
8
|
-
...options
|
|
9
|
-
}: UseMutationOptions<TData, TError, TVariables, TContext> & {
|
|
10
|
-
children: (mutationResult: UseMutationResult<TData, TError, TVariables, TContext>) => ReactNode;
|
|
11
|
-
}): react_jsx_runtime0.JSX.Element;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { Mutation };
|
|
14
|
-
//# sourceMappingURL=Mutation.d.mts.map
|
|
1
|
+
import { t as Mutation } from "./Mutation-sfj_v5Fj.mjs";
|
|
2
|
+
export { Mutation };
|
package/dist/Mutation.mjs
CHANGED
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { useMutation } from "@tanstack/react-query";
|
|
5
|
-
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
|
+
import { t as Mutation } from "./Mutation-SB8NYSR4.mjs";
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
const _excluded = ["children"];
|
|
9
|
-
function Mutation(_ref) {
|
|
10
|
-
let { children } = _ref;
|
|
11
|
-
return /* @__PURE__ */ jsx(Fragment, { children: children(useMutation(_objectWithoutProperties(_ref, _excluded))) });
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
//#endregion
|
|
15
|
-
export { Mutation };
|
|
16
|
-
//# sourceMappingURL=Mutation.mjs.map
|
|
5
|
+
export { Mutation };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { usePrefetchInfiniteQuery } from "@tanstack/react-query";
|
|
2
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/PrefetchInfiniteQuery.tsx
|
|
5
|
+
/**
|
|
6
|
+
* A component that allows you to use `usePrefetchInfiniteQuery` in JSX, avoiding the limitations of React hooks.
|
|
7
|
+
* @see {@link https://suspensive.org/docs/react-query/PrefetchInfiniteQuery Suspensive Docs}
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* <PrefetchInfiniteQuery queryKey={['queryKey']} queryFn={queryFn} />
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
function PrefetchInfiniteQuery(options) {
|
|
14
|
+
usePrefetchInfiniteQuery(options);
|
|
15
|
+
return /* @__PURE__ */ jsx(Fragment, {});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { PrefetchInfiniteQuery as t };
|
|
20
|
+
//# sourceMappingURL=PrefetchInfiniteQuery-BH6xERH5.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrefetchInfiniteQuery-BH6xERH5.mjs","names":[],"sources":["../src/PrefetchInfiniteQuery.tsx"],"sourcesContent":["'use client'\n\nimport {\n type FetchInfiniteQueryOptions,\n type QueryKey,\n type WithRequired,\n usePrefetchInfiniteQuery,\n} from '@tanstack/react-query'\n\n/**\n * A component that allows you to use `usePrefetchInfiniteQuery` in JSX, avoiding the limitations of React hooks.\n * @see {@link https://suspensive.org/docs/react-query/PrefetchInfiniteQuery Suspensive Docs}\n * @example\n * ```tsx\n * <PrefetchInfiniteQuery queryKey={['queryKey']} queryFn={queryFn} />\n * ```\n */\nexport function PrefetchInfiniteQuery<\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(options: WithRequired<FetchInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'queryKey'>) {\n usePrefetchInfiniteQuery(options)\n return <></>\n}\n"],"mappings":";;;;;;;;;;;;AAiBA,SAAgB,sBAKd,SAAsG;AACtG,0BAAyB,QAAQ;AACjC,QAAO,iCAAK"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
let __tanstack_react_query = require("@tanstack/react-query");
|
|
2
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
+
|
|
4
|
+
//#region src/PrefetchInfiniteQuery.tsx
|
|
5
|
+
/**
|
|
6
|
+
* A component that allows you to use `usePrefetchInfiniteQuery` in JSX, avoiding the limitations of React hooks.
|
|
7
|
+
* @see {@link https://suspensive.org/docs/react-query/PrefetchInfiniteQuery Suspensive Docs}
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* <PrefetchInfiniteQuery queryKey={['queryKey']} queryFn={queryFn} />
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
function PrefetchInfiniteQuery(options) {
|
|
14
|
+
(0, __tanstack_react_query.usePrefetchInfiniteQuery)(options);
|
|
15
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, {});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
Object.defineProperty(exports, 'PrefetchInfiniteQuery', {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () {
|
|
22
|
+
return PrefetchInfiniteQuery;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=PrefetchInfiniteQuery-Bf5JUe7U.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrefetchInfiniteQuery-Bf5JUe7U.cjs","names":[],"sources":["../src/PrefetchInfiniteQuery.tsx"],"sourcesContent":["'use client'\n\nimport {\n type FetchInfiniteQueryOptions,\n type QueryKey,\n type WithRequired,\n usePrefetchInfiniteQuery,\n} from '@tanstack/react-query'\n\n/**\n * A component that allows you to use `usePrefetchInfiniteQuery` in JSX, avoiding the limitations of React hooks.\n * @see {@link https://suspensive.org/docs/react-query/PrefetchInfiniteQuery Suspensive Docs}\n * @example\n * ```tsx\n * <PrefetchInfiniteQuery queryKey={['queryKey']} queryFn={queryFn} />\n * ```\n */\nexport function PrefetchInfiniteQuery<\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(options: WithRequired<FetchInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'queryKey'>) {\n usePrefetchInfiniteQuery(options)\n return <></>\n}\n"],"mappings":";;;;;;;;;;;;AAiBA,SAAgB,sBAKd,SAAsG;AACtG,sDAAyB,QAAQ;AACjC,QAAO,0EAAK"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
2
|
+
import { FetchInfiniteQueryOptions, QueryKey, WithRequired } from "@tanstack/react-query";
|
|
3
|
+
|
|
4
|
+
//#region src/PrefetchInfiniteQuery.d.ts
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A component that allows you to use `usePrefetchInfiniteQuery` in JSX, avoiding the limitations of React hooks.
|
|
8
|
+
* @see {@link https://suspensive.org/docs/react-query/PrefetchInfiniteQuery Suspensive Docs}
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* <PrefetchInfiniteQuery queryKey={['queryKey']} queryFn={queryFn} />
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
declare function PrefetchInfiniteQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: WithRequired<FetchInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'queryKey'>): react_jsx_runtime8.JSX.Element;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { PrefetchInfiniteQuery as t };
|
|
17
|
+
//# sourceMappingURL=PrefetchInfiniteQuery-CBl7Fblo.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrefetchInfiniteQuery-CBl7Fblo.d.cts","names":[],"sources":["../src/PrefetchInfiniteQuery.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAiBA;;;;;AAKgE,iBALhD,qBAKgD,CAAA,eAAA,OAAA,EAAA,SAAA,OAAA,EAAA,QAFtD,YAEsD,EAAA,kBAD5C,QAC4C,GADjC,QACiC,CAAA,CAAA,OAAA,EAArD,YAAqD,CAAxC,yBAAwC,CAAd,YAAc,EAAA,MAAA,EAAQ,KAAR,EAAe,SAAf,CAAA,EAAA,UAAA,CAAA,CAAA,EAAsC,kBAAA,CAAA,GAAA,CAAA,OAAtC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FetchInfiniteQueryOptions, QueryKey, WithRequired } from "@tanstack/react-query";
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/PrefetchInfiniteQuery.d.ts
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A component that allows you to use `usePrefetchInfiniteQuery` in JSX, avoiding the limitations of React hooks.
|
|
8
|
+
* @see {@link https://suspensive.org/docs/react-query/PrefetchInfiniteQuery Suspensive Docs}
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* <PrefetchInfiniteQuery queryKey={['queryKey']} queryFn={queryFn} />
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
declare function PrefetchInfiniteQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: WithRequired<FetchInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'queryKey'>): react_jsx_runtime0.JSX.Element;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { PrefetchInfiniteQuery as t };
|
|
17
|
+
//# sourceMappingURL=PrefetchInfiniteQuery-CNNJphhx.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrefetchInfiniteQuery-CNNJphhx.d.mts","names":[],"sources":["../src/PrefetchInfiniteQuery.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAiBA;;;;;AAKgE,iBALhD,qBAKgD,CAAA,eAAA,OAAA,EAAA,SAAA,OAAA,EAAA,QAFtD,YAEsD,EAAA,kBAD5C,QAC4C,GADjC,QACiC,CAAA,CAAA,OAAA,EAArD,YAAqD,CAAxC,yBAAwC,CAAd,YAAc,EAAA,MAAA,EAAQ,KAAR,EAAe,SAAf,CAAA,EAAA,UAAA,CAAA,CAAA,EAAsC,kBAAA,CAAA,GAAA,CAAA,OAAtC"}
|
|
@@ -1,23 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
const require_usePrefetchInfiniteQuery = require('./usePrefetchInfiniteQuery.cjs');
|
|
5
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
+
const require_PrefetchInfiniteQuery = require('./PrefetchInfiniteQuery-Bf5JUe7U.cjs');
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* A component that allows you to use `usePrefetchInfiniteQuery` in JSX, avoiding the limitations of React hooks.
|
|
10
|
-
* @see {@link https://suspensive.org/docs/react-query/PrefetchInfiniteQuery Suspensive Docs}
|
|
11
|
-
* @example
|
|
12
|
-
* ```tsx
|
|
13
|
-
* <PrefetchInfiniteQuery queryKey={['queryKey']} queryFn={queryFn} />
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
function PrefetchInfiniteQuery(options) {
|
|
17
|
-
require_usePrefetchInfiniteQuery.usePrefetchInfiniteQuery(options);
|
|
18
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, {});
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
//#endregion
|
|
22
|
-
exports.PrefetchInfiniteQuery = PrefetchInfiniteQuery;
|
|
23
|
-
//# sourceMappingURL=PrefetchInfiniteQuery.cjs.map
|
|
5
|
+
exports.PrefetchInfiniteQuery = require_PrefetchInfiniteQuery.PrefetchInfiniteQuery;
|
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//#region src/PrefetchInfiniteQuery.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* A component that allows you to use `usePrefetchInfiniteQuery` in JSX, avoiding the limitations of React hooks.
|
|
7
|
-
* @see {@link https://suspensive.org/docs/react-query/PrefetchInfiniteQuery Suspensive Docs}
|
|
8
|
-
* @example
|
|
9
|
-
* ```tsx
|
|
10
|
-
* <PrefetchInfiniteQuery queryKey={['queryKey']} queryFn={queryFn} />
|
|
11
|
-
* ```
|
|
12
|
-
*/
|
|
13
|
-
declare function PrefetchInfiniteQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: FetchInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey>): react_jsx_runtime0.JSX.Element;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { PrefetchInfiniteQuery };
|
|
16
|
-
//# sourceMappingURL=PrefetchInfiniteQuery.d.cts.map
|
|
1
|
+
import { t as PrefetchInfiniteQuery } from "./PrefetchInfiniteQuery-CBl7Fblo.cjs";
|
|
2
|
+
export { PrefetchInfiniteQuery };
|
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//#region src/PrefetchInfiniteQuery.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* A component that allows you to use `usePrefetchInfiniteQuery` in JSX, avoiding the limitations of React hooks.
|
|
7
|
-
* @see {@link https://suspensive.org/docs/react-query/PrefetchInfiniteQuery Suspensive Docs}
|
|
8
|
-
* @example
|
|
9
|
-
* ```tsx
|
|
10
|
-
* <PrefetchInfiniteQuery queryKey={['queryKey']} queryFn={queryFn} />
|
|
11
|
-
* ```
|
|
12
|
-
*/
|
|
13
|
-
declare function PrefetchInfiniteQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: FetchInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey>): react_jsx_runtime0.JSX.Element;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { PrefetchInfiniteQuery };
|
|
16
|
-
//# sourceMappingURL=PrefetchInfiniteQuery.d.mts.map
|
|
1
|
+
import { t as PrefetchInfiniteQuery } from "./PrefetchInfiniteQuery-CNNJphhx.mjs";
|
|
2
|
+
export { PrefetchInfiniteQuery };
|
|
@@ -1,22 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
|
+
import { t as PrefetchInfiniteQuery } from "./PrefetchInfiniteQuery-BH6xERH5.mjs";
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* A component that allows you to use `usePrefetchInfiniteQuery` in JSX, avoiding the limitations of React hooks.
|
|
9
|
-
* @see {@link https://suspensive.org/docs/react-query/PrefetchInfiniteQuery Suspensive Docs}
|
|
10
|
-
* @example
|
|
11
|
-
* ```tsx
|
|
12
|
-
* <PrefetchInfiniteQuery queryKey={['queryKey']} queryFn={queryFn} />
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
function PrefetchInfiniteQuery(options) {
|
|
16
|
-
usePrefetchInfiniteQuery(options);
|
|
17
|
-
return /* @__PURE__ */ jsx(Fragment, {});
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
//#endregion
|
|
21
|
-
export { PrefetchInfiniteQuery };
|
|
22
|
-
//# sourceMappingURL=PrefetchInfiniteQuery.mjs.map
|
|
5
|
+
export { PrefetchInfiniteQuery };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FetchQueryOptions, QueryKey, WithRequired } from "@tanstack/react-query";
|
|
2
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/PrefetchQuery.d.ts
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A component that allows you to use usePrefetchQuery in JSX, avoiding the limitations of React hooks.
|
|
8
|
+
* @see {@link https://suspensive.org/docs/react-query/PrefetchQuery Suspensive Docs}
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* <PrefetchQuery queryKey={['queryKey']} queryFn={queryFn} />
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
declare function PrefetchQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: WithRequired<FetchQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'queryKey'>): react_jsx_runtime6.JSX.Element;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { PrefetchQuery as t };
|
|
17
|
+
//# sourceMappingURL=PrefetchQuery-BmQt_WJk.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrefetchQuery-BmQt_WJk.d.mts","names":[],"sources":["../src/PrefetchQuery.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAYA;;;;;AAKwD,iBALxC,aAKwC,CAAA,eAAA,OAAA,EAAA,SAAA,OAAA,EAAA,QAF9C,YAE8C,EAAA,kBADpC,QACoC,GADzB,QACyB,CAAA,CAAA,OAAA,EAA7C,YAA6C,CAAhC,iBAAgC,CAAd,YAAc,EAAA,MAAA,EAAQ,KAAR,EAAe,SAAf,CAAA,EAAA,UAAA,CAAA,CAAA,EAAsC,kBAAA,CAAA,GAAA,CAAA,OAAtC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
2
|
+
import { FetchQueryOptions, QueryKey, WithRequired } from "@tanstack/react-query";
|
|
3
|
+
|
|
4
|
+
//#region src/PrefetchQuery.d.ts
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A component that allows you to use usePrefetchQuery in JSX, avoiding the limitations of React hooks.
|
|
8
|
+
* @see {@link https://suspensive.org/docs/react-query/PrefetchQuery Suspensive Docs}
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* <PrefetchQuery queryKey={['queryKey']} queryFn={queryFn} />
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
declare function PrefetchQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: WithRequired<FetchQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'queryKey'>): react_jsx_runtime2.JSX.Element;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { PrefetchQuery as t };
|
|
17
|
+
//# sourceMappingURL=PrefetchQuery-CqWzm0Tu.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrefetchQuery-CqWzm0Tu.d.cts","names":[],"sources":["../src/PrefetchQuery.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAYA;;;;;AAKwD,iBALxC,aAKwC,CAAA,eAAA,OAAA,EAAA,SAAA,OAAA,EAAA,QAF9C,YAE8C,EAAA,kBADpC,QACoC,GADzB,QACyB,CAAA,CAAA,OAAA,EAA7C,YAA6C,CAAhC,iBAAgC,CAAd,YAAc,EAAA,MAAA,EAAQ,KAAR,EAAe,SAAf,CAAA,EAAA,UAAA,CAAA,CAAA,EAAsC,kBAAA,CAAA,GAAA,CAAA,OAAtC"}
|