Package not found. Please check the package name and try again.
@suspensive/react-query-4 3.19.2 → 3.19.3
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/IsFetching.cjs +18 -2
- package/dist/IsFetching.cjs.map +1 -0
- package/dist/IsFetching.d.cts +18 -2
- package/dist/IsFetching.d.cts.map +1 -0
- package/dist/IsFetching.d.mts +18 -2
- package/dist/IsFetching.d.mts.map +1 -0
- package/dist/IsFetching.mjs +17 -2
- package/dist/IsFetching.mjs.map +1 -0
- package/dist/Mutation.cjs +14 -2
- package/dist/Mutation.cjs.map +1 -0
- package/dist/Mutation.d.cts +14 -2
- package/dist/Mutation.d.cts.map +1 -0
- package/dist/Mutation.d.mts +14 -2
- package/dist/Mutation.d.mts.map +1 -0
- package/dist/Mutation.mjs +13 -2
- package/dist/Mutation.mjs.map +1 -0
- package/dist/PrefetchInfiniteQuery.cjs +20 -2
- package/dist/PrefetchInfiniteQuery.cjs.map +1 -0
- package/dist/PrefetchInfiniteQuery.d.cts +16 -2
- package/dist/PrefetchInfiniteQuery.d.cts.map +1 -0
- package/dist/PrefetchInfiniteQuery.d.mts +16 -2
- package/dist/PrefetchInfiniteQuery.d.mts.map +1 -0
- package/dist/PrefetchInfiniteQuery.mjs +19 -2
- package/dist/PrefetchInfiniteQuery.mjs.map +1 -0
- package/dist/PrefetchQuery.cjs +20 -2
- package/dist/PrefetchQuery.cjs.map +1 -0
- package/dist/PrefetchQuery.d.cts +16 -2
- package/dist/PrefetchQuery.d.cts.map +1 -0
- package/dist/PrefetchQuery.d.mts +16 -2
- package/dist/PrefetchQuery.d.mts.map +1 -0
- package/dist/PrefetchQuery.mjs +19 -2
- package/dist/PrefetchQuery.mjs.map +1 -0
- package/dist/{QueriesHydration-dcSAzQNT.cjs → QueriesHydration-B9tinfWA.cjs} +16 -16
- package/dist/QueriesHydration-B9tinfWA.cjs.map +1 -0
- package/dist/{QueriesHydration-GQxJe_Vu.mjs → QueriesHydration-MZQ7Oj60.mjs} +11 -11
- package/dist/QueriesHydration-MZQ7Oj60.mjs.map +1 -0
- package/dist/QueriesHydration.cjs +2 -1
- package/dist/QueriesHydration.d.cts +105 -2
- package/dist/QueriesHydration.d.cts.map +1 -0
- package/dist/QueriesHydration.d.mts +105 -2
- package/dist/QueriesHydration.d.mts.map +1 -0
- package/dist/QueriesHydration.mjs +1 -1
- package/dist/QueryClientConsumer.cjs +14 -2
- package/dist/QueryClientConsumer.cjs.map +1 -0
- package/dist/QueryClientConsumer.d.cts +18 -2
- package/dist/QueryClientConsumer.d.cts.map +1 -0
- package/dist/QueryClientConsumer.d.mts +18 -2
- package/dist/QueryClientConsumer.d.mts.map +1 -0
- package/dist/QueryClientConsumer.mjs +13 -2
- package/dist/QueryClientConsumer.mjs.map +1 -0
- package/dist/SuspenseInfiniteQuery.cjs +30 -2
- package/dist/SuspenseInfiniteQuery.cjs.map +1 -0
- package/dist/SuspenseInfiniteQuery.d.cts +31 -2
- package/dist/SuspenseInfiniteQuery.d.cts.map +1 -0
- package/dist/SuspenseInfiniteQuery.d.mts +31 -3
- package/dist/SuspenseInfiniteQuery.d.mts.map +1 -0
- package/dist/SuspenseInfiniteQuery.mjs +29 -2
- package/dist/SuspenseInfiniteQuery.mjs.map +1 -0
- package/dist/SuspenseQueries.cjs +26 -2
- package/dist/SuspenseQueries.cjs.map +1 -0
- package/dist/SuspenseQueries.d.cts +30 -2
- package/dist/SuspenseQueries.d.cts.map +1 -0
- package/dist/SuspenseQueries.d.mts +30 -2
- package/dist/SuspenseQueries.d.mts.map +1 -0
- package/dist/SuspenseQueries.mjs +25 -2
- package/dist/SuspenseQueries.mjs.map +1 -0
- package/dist/SuspenseQuery.cjs +30 -2
- package/dist/SuspenseQuery.cjs.map +1 -0
- package/dist/SuspenseQuery.d.cts +30 -2
- package/dist/SuspenseQuery.d.cts.map +1 -0
- package/dist/SuspenseQuery.d.mts +30 -2
- package/dist/SuspenseQuery.d.mts.map +1 -0
- package/dist/SuspenseQuery.mjs +29 -2
- package/dist/SuspenseQuery.mjs.map +1 -0
- package/dist/components/ClientOnly.cjs +13 -2
- package/dist/components/ClientOnly.cjs.map +1 -0
- package/dist/components/ClientOnly.d.cts +2 -2
- package/dist/components/ClientOnly.d.cts.map +1 -1
- package/dist/components/ClientOnly.d.mts +2 -2
- package/dist/components/ClientOnly.d.mts.map +1 -1
- package/dist/components/ClientOnly.mjs +12 -2
- package/dist/components/ClientOnly.mjs.map +1 -0
- package/dist/createGetQueryClient.cjs +63 -2
- package/dist/createGetQueryClient.cjs.map +1 -0
- package/dist/createGetQueryClient.d.cts +53 -2
- package/dist/createGetQueryClient.d.cts.map +1 -0
- package/dist/createGetQueryClient.d.mts +53 -2
- package/dist/createGetQueryClient.d.mts.map +1 -0
- package/dist/createGetQueryClient.mjs +62 -2
- package/dist/createGetQueryClient.mjs.map +1 -0
- package/dist/index.cjs +19 -18
- package/dist/index.d.cts +18 -18
- package/dist/index.d.mts +18 -18
- package/dist/index.mjs +18 -18
- package/dist/infiniteQueryOptions.cjs +17 -2
- package/dist/infiniteQueryOptions.cjs.map +1 -0
- package/dist/infiniteQueryOptions.d.cts +28 -2
- package/dist/infiniteQueryOptions.d.cts.map +1 -0
- package/dist/infiniteQueryOptions.d.mts +28 -2
- package/dist/infiniteQueryOptions.d.mts.map +1 -0
- package/dist/infiniteQueryOptions.mjs +16 -2
- package/dist/infiniteQueryOptions.mjs.map +1 -0
- package/dist/mutationOptions.cjs +9 -2
- package/dist/mutationOptions.cjs.map +1 -0
- package/dist/mutationOptions.d.cts +7 -2
- package/dist/mutationOptions.d.cts.map +1 -0
- package/dist/mutationOptions.d.mts +7 -2
- package/dist/mutationOptions.d.mts.map +1 -0
- package/dist/mutationOptions.mjs +7 -2
- package/dist/mutationOptions.mjs.map +1 -0
- package/dist/{objectSpread2-CpqxxdM2.cjs → objectSpread2-9HkiXZY2.cjs} +15 -15
- package/dist/{objectSpread2-BFPIJj0i.mjs → objectSpread2-BX3M3dlG.mjs} +15 -15
- package/dist/{objectWithoutProperties-BYP50gyF.mjs → objectWithoutProperties-CZk5Qmfh.mjs} +2 -2
- package/dist/{objectWithoutProperties-CYXRK7DS.cjs → objectWithoutProperties-CfjOeCpP.cjs} +2 -2
- package/dist/queryOptions.cjs +17 -2
- package/dist/queryOptions.cjs.map +1 -0
- package/dist/queryOptions.d.cts +28 -2
- package/dist/queryOptions.d.cts.map +1 -0
- package/dist/queryOptions.d.mts +28 -2
- package/dist/queryOptions.d.mts.map +1 -0
- package/dist/queryOptions.mjs +16 -2
- package/dist/queryOptions.mjs.map +1 -0
- package/dist/usePrefetchInfiniteQuery.cjs +15 -2
- package/dist/usePrefetchInfiniteQuery.cjs.map +1 -0
- package/dist/usePrefetchInfiniteQuery.d.cts +11 -2
- package/dist/usePrefetchInfiniteQuery.d.cts.map +1 -0
- package/dist/usePrefetchInfiniteQuery.d.mts +11 -2
- package/dist/usePrefetchInfiniteQuery.d.mts.map +1 -0
- package/dist/usePrefetchInfiniteQuery.mjs +14 -2
- package/dist/usePrefetchInfiniteQuery.mjs.map +1 -0
- package/dist/usePrefetchQuery.cjs +15 -2
- package/dist/usePrefetchQuery.cjs.map +1 -0
- package/dist/usePrefetchQuery.d.cts +11 -2
- package/dist/usePrefetchQuery.d.cts.map +1 -0
- package/dist/usePrefetchQuery.d.mts +11 -2
- package/dist/usePrefetchQuery.d.mts.map +1 -0
- package/dist/usePrefetchQuery.mjs +14 -2
- package/dist/usePrefetchQuery.mjs.map +1 -0
- package/dist/useSuspenseInfiniteQuery.cjs +17 -2
- package/dist/useSuspenseInfiniteQuery.cjs.map +1 -0
- package/dist/useSuspenseInfiniteQuery.d.cts +17 -2
- package/dist/useSuspenseInfiniteQuery.d.cts.map +1 -0
- package/dist/useSuspenseInfiniteQuery.d.mts +17 -2
- package/dist/useSuspenseInfiniteQuery.d.mts.map +1 -0
- package/dist/useSuspenseInfiniteQuery.mjs +16 -2
- package/dist/useSuspenseInfiniteQuery.mjs.map +1 -0
- package/dist/useSuspenseQueries.cjs +17 -2
- package/dist/useSuspenseQueries.cjs.map +1 -0
- package/dist/useSuspenseQueries.d.cts +36 -2
- package/dist/useSuspenseQueries.d.cts.map +1 -0
- package/dist/useSuspenseQueries.d.mts +36 -2
- package/dist/useSuspenseQueries.d.mts.map +1 -0
- package/dist/useSuspenseQueries.mjs +16 -2
- package/dist/useSuspenseQueries.mjs.map +1 -0
- package/dist/useSuspenseQuery.cjs +17 -2
- package/dist/useSuspenseQuery.cjs.map +1 -0
- package/dist/useSuspenseQuery.d.cts +36 -2
- package/dist/useSuspenseQuery.d.cts.map +1 -0
- package/dist/useSuspenseQuery.d.mts +36 -2
- package/dist/useSuspenseQuery.d.mts.map +1 -0
- package/dist/useSuspenseQuery.mjs +16 -2
- package/dist/useSuspenseQuery.mjs.map +1 -0
- package/package.json +4 -4
- package/src/createGetQueryClient.spec.tsx +25 -77
- package/dist/ClientOnly-BdmzVYnI.mjs +0 -15
- package/dist/ClientOnly-BdmzVYnI.mjs.map +0 -1
- package/dist/ClientOnly-Dvf8t__-.cjs +0 -20
- package/dist/ClientOnly-Dvf8t__-.cjs.map +0 -1
- package/dist/IsFetching-BYkNw1cs.mjs +0 -18
- package/dist/IsFetching-BYkNw1cs.mjs.map +0 -1
- package/dist/IsFetching-BfIQ3Qek.d.mts +0 -19
- package/dist/IsFetching-BfIQ3Qek.d.mts.map +0 -1
- package/dist/IsFetching-BhOgGqrs.cjs +0 -23
- package/dist/IsFetching-BhOgGqrs.cjs.map +0 -1
- package/dist/IsFetching-CuftXnaJ.d.cts +0 -19
- package/dist/IsFetching-CuftXnaJ.d.cts.map +0 -1
- package/dist/Mutation-CGUYEkKX.cjs +0 -19
- package/dist/Mutation-CGUYEkKX.cjs.map +0 -1
- package/dist/Mutation-CGpbCg54.d.mts +0 -14
- package/dist/Mutation-CGpbCg54.d.mts.map +0 -1
- package/dist/Mutation-DGmP7HQI.d.cts +0 -14
- package/dist/Mutation-DGmP7HQI.d.cts.map +0 -1
- package/dist/Mutation-DUJhz3rT.mjs +0 -14
- package/dist/Mutation-DUJhz3rT.mjs.map +0 -1
- package/dist/PrefetchInfiniteQuery-BewcG5rR.d.cts +0 -17
- package/dist/PrefetchInfiniteQuery-BewcG5rR.d.cts.map +0 -1
- package/dist/PrefetchInfiniteQuery-D-3dZMEz.d.mts +0 -17
- package/dist/PrefetchInfiniteQuery-D-3dZMEz.d.mts.map +0 -1
- package/dist/PrefetchInfiniteQuery-RS3Qz-7B.mjs +0 -20
- package/dist/PrefetchInfiniteQuery-RS3Qz-7B.mjs.map +0 -1
- package/dist/PrefetchInfiniteQuery-cCSXqKVR.cjs +0 -25
- package/dist/PrefetchInfiniteQuery-cCSXqKVR.cjs.map +0 -1
- package/dist/PrefetchQuery-0pdYNtpS.cjs +0 -25
- package/dist/PrefetchQuery-0pdYNtpS.cjs.map +0 -1
- package/dist/PrefetchQuery-Ddbt43Fk.d.cts +0 -17
- package/dist/PrefetchQuery-Ddbt43Fk.d.cts.map +0 -1
- package/dist/PrefetchQuery-DqgbVdjY.d.mts +0 -17
- package/dist/PrefetchQuery-DqgbVdjY.d.mts.map +0 -1
- package/dist/PrefetchQuery-uh4idoXK.mjs +0 -20
- package/dist/PrefetchQuery-uh4idoXK.mjs.map +0 -1
- package/dist/QueriesHydration-DPogKsc4.d.mts +0 -106
- package/dist/QueriesHydration-DPogKsc4.d.mts.map +0 -1
- package/dist/QueriesHydration-DnlRrHJ3.d.cts +0 -106
- package/dist/QueriesHydration-DnlRrHJ3.d.cts.map +0 -1
- package/dist/QueriesHydration-GQxJe_Vu.mjs.map +0 -1
- package/dist/QueriesHydration-dcSAzQNT.cjs.map +0 -1
- package/dist/QueryClientConsumer-5PZLv_8g.d.mts +0 -18
- package/dist/QueryClientConsumer-5PZLv_8g.d.mts.map +0 -1
- package/dist/QueryClientConsumer-e7PyaFF3.mjs +0 -14
- package/dist/QueryClientConsumer-e7PyaFF3.mjs.map +0 -1
- package/dist/QueryClientConsumer-mF0OUwkq.cjs +0 -19
- package/dist/QueryClientConsumer-mF0OUwkq.cjs.map +0 -1
- package/dist/QueryClientConsumer-pihgMOoA.d.cts +0 -18
- package/dist/QueryClientConsumer-pihgMOoA.d.cts.map +0 -1
- package/dist/SuspenseInfiniteQuery-BimBkaCe.mjs +0 -30
- package/dist/SuspenseInfiniteQuery-BimBkaCe.mjs.map +0 -1
- package/dist/SuspenseInfiniteQuery-BtRviR-Z.d.mts +0 -32
- package/dist/SuspenseInfiniteQuery-BtRviR-Z.d.mts.map +0 -1
- package/dist/SuspenseInfiniteQuery-DSYC5XON.d.cts +0 -32
- package/dist/SuspenseInfiniteQuery-DSYC5XON.d.cts.map +0 -1
- package/dist/SuspenseInfiniteQuery-oVQE2P2T.cjs +0 -35
- package/dist/SuspenseInfiniteQuery-oVQE2P2T.cjs.map +0 -1
- package/dist/SuspenseQueries-BPvriygJ.d.cts +0 -31
- package/dist/SuspenseQueries-BPvriygJ.d.cts.map +0 -1
- package/dist/SuspenseQueries-Brk6gtMw.cjs +0 -31
- package/dist/SuspenseQueries-Brk6gtMw.cjs.map +0 -1
- package/dist/SuspenseQueries-C0mF_XD_.mjs +0 -26
- package/dist/SuspenseQueries-C0mF_XD_.mjs.map +0 -1
- package/dist/SuspenseQueries-CHFS9e4y.d.mts +0 -31
- package/dist/SuspenseQueries-CHFS9e4y.d.mts.map +0 -1
- package/dist/SuspenseQuery-BWI24top.mjs +0 -30
- package/dist/SuspenseQuery-BWI24top.mjs.map +0 -1
- package/dist/SuspenseQuery-D4IZU_Co.d.cts +0 -31
- package/dist/SuspenseQuery-D4IZU_Co.d.cts.map +0 -1
- package/dist/SuspenseQuery-DE4NKrqP.cjs +0 -35
- package/dist/SuspenseQuery-DE4NKrqP.cjs.map +0 -1
- package/dist/SuspenseQuery-VjYG_b1z.d.mts +0 -31
- package/dist/SuspenseQuery-VjYG_b1z.d.mts.map +0 -1
- package/dist/createGetQueryClient-B0yrcyXF.mjs +0 -63
- package/dist/createGetQueryClient-B0yrcyXF.mjs.map +0 -1
- package/dist/createGetQueryClient-DTKVVwpJ.d.mts +0 -54
- package/dist/createGetQueryClient-DTKVVwpJ.d.mts.map +0 -1
- package/dist/createGetQueryClient-iXoXO7so.d.cts +0 -54
- package/dist/createGetQueryClient-iXoXO7so.d.cts.map +0 -1
- package/dist/createGetQueryClient-nXvPqrrS.cjs +0 -68
- package/dist/createGetQueryClient-nXvPqrrS.cjs.map +0 -1
- package/dist/infiniteQueryOptions-2KFmTqEY.mjs +0 -17
- package/dist/infiniteQueryOptions-2KFmTqEY.mjs.map +0 -1
- package/dist/infiniteQueryOptions-BVac5B-c.cjs +0 -22
- package/dist/infiniteQueryOptions-BVac5B-c.cjs.map +0 -1
- package/dist/infiniteQueryOptions-Be7VYTUR.d.cts +0 -29
- package/dist/infiniteQueryOptions-Be7VYTUR.d.cts.map +0 -1
- package/dist/infiniteQueryOptions-Bpz4mFYH.d.mts +0 -29
- package/dist/infiniteQueryOptions-Bpz4mFYH.d.mts.map +0 -1
- package/dist/mutationOptions-BIOn3zne.cjs +0 -14
- package/dist/mutationOptions-BIOn3zne.cjs.map +0 -1
- package/dist/mutationOptions-BZS10WEJ.d.mts +0 -7
- package/dist/mutationOptions-BZS10WEJ.d.mts.map +0 -1
- package/dist/mutationOptions-C4emetVL.mjs +0 -8
- package/dist/mutationOptions-C4emetVL.mjs.map +0 -1
- package/dist/mutationOptions-Eid3aM1W.d.cts +0 -7
- package/dist/mutationOptions-Eid3aM1W.d.cts.map +0 -1
- package/dist/queryOptions-92vSd4eV.cjs +0 -22
- package/dist/queryOptions-92vSd4eV.cjs.map +0 -1
- package/dist/queryOptions-DILe-4vk.d.mts +0 -29
- package/dist/queryOptions-DILe-4vk.d.mts.map +0 -1
- package/dist/queryOptions-DNGHeGX5.d.cts +0 -29
- package/dist/queryOptions-DNGHeGX5.d.cts.map +0 -1
- package/dist/queryOptions-Dnf4-wlk.mjs +0 -17
- package/dist/queryOptions-Dnf4-wlk.mjs.map +0 -1
- package/dist/usePrefetchInfiniteQuery-B0_Ladyp.d.mts +0 -12
- package/dist/usePrefetchInfiniteQuery-B0_Ladyp.d.mts.map +0 -1
- package/dist/usePrefetchInfiniteQuery-BmZtlLeD.cjs +0 -20
- package/dist/usePrefetchInfiniteQuery-BmZtlLeD.cjs.map +0 -1
- package/dist/usePrefetchInfiniteQuery-CQSN-P9m.mjs +0 -15
- package/dist/usePrefetchInfiniteQuery-CQSN-P9m.mjs.map +0 -1
- package/dist/usePrefetchInfiniteQuery-CRwRctQH.d.cts +0 -12
- package/dist/usePrefetchInfiniteQuery-CRwRctQH.d.cts.map +0 -1
- package/dist/usePrefetchQuery-38O319FT.d.mts +0 -12
- package/dist/usePrefetchQuery-38O319FT.d.mts.map +0 -1
- package/dist/usePrefetchQuery-93Pltnzl.d.cts +0 -12
- package/dist/usePrefetchQuery-93Pltnzl.d.cts.map +0 -1
- package/dist/usePrefetchQuery-CtrJciA6.mjs +0 -15
- package/dist/usePrefetchQuery-CtrJciA6.mjs.map +0 -1
- package/dist/usePrefetchQuery-woiivAJc.cjs +0 -20
- package/dist/usePrefetchQuery-woiivAJc.cjs.map +0 -1
- package/dist/useSuspenseInfiniteQuery-Bh0nh8Kc.d.mts +0 -17
- package/dist/useSuspenseInfiniteQuery-Bh0nh8Kc.d.mts.map +0 -1
- package/dist/useSuspenseInfiniteQuery-CA0jmgbX.cjs +0 -22
- package/dist/useSuspenseInfiniteQuery-CA0jmgbX.cjs.map +0 -1
- package/dist/useSuspenseInfiniteQuery-DUxKOkCo.mjs +0 -17
- package/dist/useSuspenseInfiniteQuery-DUxKOkCo.mjs.map +0 -1
- package/dist/useSuspenseInfiniteQuery-xXu-A7cX.d.cts +0 -17
- package/dist/useSuspenseInfiniteQuery-xXu-A7cX.d.cts.map +0 -1
- package/dist/useSuspenseQueries-Bf0lSTWB.mjs +0 -17
- package/dist/useSuspenseQueries-Bf0lSTWB.mjs.map +0 -1
- package/dist/useSuspenseQueries-CHPLAyeb.d.cts +0 -37
- package/dist/useSuspenseQueries-CHPLAyeb.d.cts.map +0 -1
- package/dist/useSuspenseQueries-DqBaOI3L.cjs +0 -22
- package/dist/useSuspenseQueries-DqBaOI3L.cjs.map +0 -1
- package/dist/useSuspenseQueries-pfI8hFSM.d.mts +0 -37
- package/dist/useSuspenseQueries-pfI8hFSM.d.mts.map +0 -1
- package/dist/useSuspenseQuery-41ONxa6i.cjs +0 -22
- package/dist/useSuspenseQuery-41ONxa6i.cjs.map +0 -1
- package/dist/useSuspenseQuery-CVWQeHhd.mjs +0 -17
- package/dist/useSuspenseQuery-CVWQeHhd.mjs.map +0 -1
- package/dist/useSuspenseQuery-DG0Jz1Da.d.mts +0 -37
- package/dist/useSuspenseQuery-DG0Jz1Da.d.mts.map +0 -1
- package/dist/useSuspenseQuery-DiNomNWA.d.cts +0 -37
- package/dist/useSuspenseQuery-DiNomNWA.d.cts.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
1
|
+
import { IsFetching } from "./IsFetching.mjs";
|
|
2
|
+
import { Mutation } from "./Mutation.mjs";
|
|
3
|
+
import { PrefetchInfiniteQuery } from "./PrefetchInfiniteQuery.mjs";
|
|
4
|
+
import { PrefetchQuery } from "./PrefetchQuery.mjs";
|
|
5
|
+
import { QueriesHydration } from "./QueriesHydration.mjs";
|
|
6
|
+
import { QueryClientConsumer } from "./QueryClientConsumer.mjs";
|
|
7
|
+
import { UseSuspenseInfiniteQueryOptions, UseSuspenseInfiniteQueryResult, useSuspenseInfiniteQuery } from "./useSuspenseInfiniteQuery.mjs";
|
|
8
|
+
import { SuspenseInfiniteQuery } from "./SuspenseInfiniteQuery.mjs";
|
|
9
|
+
import { SuspenseQueries } from "./SuspenseQueries.mjs";
|
|
10
|
+
import { SuspenseQuery } from "./SuspenseQuery.mjs";
|
|
11
|
+
import { createGetQueryClient } from "./createGetQueryClient.mjs";
|
|
12
|
+
import { SelectedInfiniteOptions, UnSelectedInfiniteOptions, infiniteQueryOptions } from "./infiniteQueryOptions.mjs";
|
|
13
|
+
import { SelectedQueryOptions, UnSelectedQueryOptions, queryOptions } from "./queryOptions.mjs";
|
|
14
|
+
import { usePrefetchInfiniteQuery } from "./usePrefetchInfiniteQuery.mjs";
|
|
15
|
+
import { usePrefetchQuery } from "./usePrefetchQuery.mjs";
|
|
16
|
+
import { SuspenseQueriesOptions, SuspenseQueriesResults, useSuspenseQueries } from "./useSuspenseQueries.mjs";
|
|
17
|
+
import { UseSuspenseQueryOptions, UseSuspenseQueryResult, useSuspenseQuery } from "./useSuspenseQuery.mjs";
|
|
18
|
+
import { mutationOptions } from "./mutationOptions.mjs";
|
|
19
19
|
export { IsFetching, Mutation, PrefetchInfiniteQuery, PrefetchQuery, QueriesHydration, QueryClientConsumer, type SelectedInfiniteOptions, type SelectedQueryOptions, SuspenseInfiniteQuery, SuspenseQueries, type SuspenseQueriesOptions, type SuspenseQueriesResults, SuspenseQuery, type UnSelectedInfiniteOptions, type UnSelectedQueryOptions, type UseSuspenseInfiniteQueryOptions, type UseSuspenseInfiniteQueryResult, type UseSuspenseQueryOptions, type UseSuspenseQueryResult, createGetQueryClient, infiniteQueryOptions, mutationOptions, queryOptions, usePrefetchInfiniteQuery, usePrefetchQuery, useSuspenseInfiniteQuery, useSuspenseQueries, useSuspenseQuery };
|
package/dist/index.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { t as QueriesHydration } from "./QueriesHydration-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
1
|
+
import { IsFetching } from "./IsFetching.mjs";
|
|
2
|
+
import { Mutation } from "./Mutation.mjs";
|
|
3
|
+
import { usePrefetchInfiniteQuery } from "./usePrefetchInfiniteQuery.mjs";
|
|
4
|
+
import { PrefetchInfiniteQuery } from "./PrefetchInfiniteQuery.mjs";
|
|
5
|
+
import { usePrefetchQuery } from "./usePrefetchQuery.mjs";
|
|
6
|
+
import { PrefetchQuery } from "./PrefetchQuery.mjs";
|
|
7
|
+
import { t as QueriesHydration } from "./QueriesHydration-MZQ7Oj60.mjs";
|
|
8
|
+
import { QueryClientConsumer } from "./QueryClientConsumer.mjs";
|
|
9
|
+
import { SuspenseInfiniteQuery } from "./SuspenseInfiniteQuery.mjs";
|
|
10
|
+
import { SuspenseQueries } from "./SuspenseQueries.mjs";
|
|
11
|
+
import { SuspenseQuery } from "./SuspenseQuery.mjs";
|
|
12
|
+
import { createGetQueryClient } from "./createGetQueryClient.mjs";
|
|
13
|
+
import { infiniteQueryOptions } from "./infiniteQueryOptions.mjs";
|
|
14
|
+
import { queryOptions } from "./queryOptions.mjs";
|
|
15
|
+
import { useSuspenseInfiniteQuery } from "./useSuspenseInfiniteQuery.mjs";
|
|
16
|
+
import { useSuspenseQueries } from "./useSuspenseQueries.mjs";
|
|
17
|
+
import { useSuspenseQuery } from "./useSuspenseQuery.mjs";
|
|
18
|
+
import { mutationOptions } from "./mutationOptions.mjs";
|
|
19
19
|
|
|
20
20
|
export { IsFetching, Mutation, PrefetchInfiniteQuery, PrefetchQuery, QueriesHydration, QueryClientConsumer, SuspenseInfiniteQuery, SuspenseQueries, SuspenseQuery, createGetQueryClient, infiniteQueryOptions, mutationOptions, queryOptions, usePrefetchInfiniteQuery, usePrefetchQuery, useSuspenseInfiniteQuery, useSuspenseQueries, useSuspenseQuery };
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
let _tanstack_react_query = require("@tanstack/react-query");
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
//#region src/infiniteQueryOptions.ts
|
|
5
|
+
/**
|
|
6
|
+
* This feature is officially supported in \@tanstack/react-query@^4.41.0, You can proceed with the migration.
|
|
7
|
+
* @deprecated Use `infiniteQueryOptions` from \@tanstack/react-query@^4.41.0
|
|
8
|
+
* @example
|
|
9
|
+
* ```diff
|
|
10
|
+
* - import { infiniteQueryOptions } from '@suspensive/react-query'
|
|
11
|
+
* + import { infiniteQueryOptions } from '@tanstack/react-query'
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
const infiniteQueryOptions = _tanstack_react_query.infiniteQueryOptions;
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.infiniteQueryOptions = infiniteQueryOptions;
|
|
18
|
+
//# sourceMappingURL=infiniteQueryOptions.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infiniteQueryOptions.cjs","names":["original_infiniteQueryOptions"],"sources":["../src/infiniteQueryOptions.ts"],"sourcesContent":["import {\n type InfiniteData,\n type OmitKeyof,\n type QueryKey,\n type UseInfiniteQueryOptions,\n type WithRequired,\n infiniteQueryOptions as original_infiniteQueryOptions,\n} from '@tanstack/react-query'\n\n/**\n * @deprecated There is no `SelectedInfiniteOptions` in \\@tanstack/react-query@^4.40.0.\n */\nexport type SelectedInfiniteOptions<\n TQueryFnData,\n TError = unknown,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n> = WithRequired<\n OmitKeyof<\n UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>,\n | 'queryKeyHashFn'\n | '_defaulted'\n | 'behavior'\n | 'structuralSharing'\n | 'isDataEqual'\n | 'onSuccess'\n | 'onError'\n | 'onSettled'\n | 'enabled'\n | 'refetchInterval'\n | 'initialData'\n | 'networkMode'\n >,\n 'queryKey' | 'queryFn'\n> & {\n select: (data: InfiniteData<TQueryFnData>) => InfiniteData<TData>\n}\n\n/**\n * @deprecated There is no `UnSelectedInfiniteOptions` in \\@tanstack/react-query@^4.40.0.\n */\nexport type UnSelectedInfiniteOptions<\n TQueryFnData,\n TError = unknown,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n> = WithRequired<\n OmitKeyof<\n UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>,\n | 'queryKeyHashFn'\n | '_defaulted'\n | 'behavior'\n | 'structuralSharing'\n | 'isDataEqual'\n | 'onSuccess'\n | 'onError'\n | 'onSettled'\n | 'enabled'\n | 'refetchInterval'\n | 'initialData'\n | 'networkMode'\n >,\n 'queryKey' | 'queryFn'\n> & {\n select?: undefined\n}\n\n/**\n * This feature is officially supported in \\@tanstack/react-query@^4.41.0, You can proceed with the migration.\n * @deprecated Use `infiniteQueryOptions` from \\@tanstack/react-query@^4.41.0\n * @example\n * ```diff\n * - import { infiniteQueryOptions } from '@suspensive/react-query'\n * + import { infiniteQueryOptions } from '@tanstack/react-query'\n * ```\n */\nexport const infiniteQueryOptions = original_infiniteQueryOptions\n"],"mappings":";;;;;;;;;;;;;AA4EA,MAAa,uBAAuBA"}
|
|
@@ -1,2 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { InfiniteData, OmitKeyof, QueryKey, UseInfiniteQueryOptions, WithRequired, infiniteQueryOptions as infiniteQueryOptions$1 } from "@tanstack/react-query";
|
|
2
|
+
|
|
3
|
+
//#region src/infiniteQueryOptions.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated There is no `SelectedInfiniteOptions` in \@tanstack/react-query@^4.40.0.
|
|
6
|
+
*/
|
|
7
|
+
type SelectedInfiniteOptions<TQueryFnData, TError = unknown, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey> = WithRequired<OmitKeyof<UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>, 'queryKeyHashFn' | '_defaulted' | 'behavior' | 'structuralSharing' | 'isDataEqual' | 'onSuccess' | 'onError' | 'onSettled' | 'enabled' | 'refetchInterval' | 'initialData' | 'networkMode'>, 'queryKey' | 'queryFn'> & {
|
|
8
|
+
select: (data: InfiniteData<TQueryFnData>) => InfiniteData<TData>;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated There is no `UnSelectedInfiniteOptions` in \@tanstack/react-query@^4.40.0.
|
|
12
|
+
*/
|
|
13
|
+
type UnSelectedInfiniteOptions<TQueryFnData, TError = unknown, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey> = WithRequired<OmitKeyof<UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>, 'queryKeyHashFn' | '_defaulted' | 'behavior' | 'structuralSharing' | 'isDataEqual' | 'onSuccess' | 'onError' | 'onSettled' | 'enabled' | 'refetchInterval' | 'initialData' | 'networkMode'>, 'queryKey' | 'queryFn'> & {
|
|
14
|
+
select?: undefined;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* This feature is officially supported in \@tanstack/react-query@^4.41.0, You can proceed with the migration.
|
|
18
|
+
* @deprecated Use `infiniteQueryOptions` from \@tanstack/react-query@^4.41.0
|
|
19
|
+
* @example
|
|
20
|
+
* ```diff
|
|
21
|
+
* - import { infiniteQueryOptions } from '@suspensive/react-query'
|
|
22
|
+
* + import { infiniteQueryOptions } from '@tanstack/react-query'
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
declare const infiniteQueryOptions: typeof infiniteQueryOptions$1;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { SelectedInfiniteOptions, UnSelectedInfiniteOptions, infiniteQueryOptions };
|
|
28
|
+
//# sourceMappingURL=infiniteQueryOptions.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infiniteQueryOptions.d.cts","names":[],"sources":["../src/infiniteQueryOptions.ts"],"mappings":";;;;;AAYA;KAAY,uBAAA,yCAGF,YAAA,CAAa,YAAA,qBACH,QAAA,GAAW,QAAA,IAC3B,YAAA,CACF,SAAA,CACE,uBAAA,CAAwB,YAAA,EAAc,MAAA,EAAQ,KAAA,EAAO,YAAA,EAAc,SAAA;EAgBrE,MAAA,GAAS,IAAA,EAAM,YAAA,CAAa,YAAA,MAAkB,YAAA,CAAa,KAAA;AAAA;;;;KAMjD,yBAAA,yCAGF,YAAA,CAAa,YAAA,qBACH,QAAA,GAAW,QAAA,IAC3B,YAAA,CACF,SAAA,CACE,uBAAA,CAAwB,YAAA,EAAc,MAAA,EAAQ,KAAA,EAAO,YAAA,EAAc,SAAA;EAgBrE,MAAA;AAAA;;;;;;;;;;cAYW,oBAAA,SAAoB,sBAAA"}
|
|
@@ -1,2 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { InfiniteData, OmitKeyof, QueryKey, UseInfiniteQueryOptions, WithRequired, infiniteQueryOptions as infiniteQueryOptions$1 } from "@tanstack/react-query";
|
|
2
|
+
|
|
3
|
+
//#region src/infiniteQueryOptions.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated There is no `SelectedInfiniteOptions` in \@tanstack/react-query@^4.40.0.
|
|
6
|
+
*/
|
|
7
|
+
type SelectedInfiniteOptions<TQueryFnData, TError = unknown, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey> = WithRequired<OmitKeyof<UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>, 'queryKeyHashFn' | '_defaulted' | 'behavior' | 'structuralSharing' | 'isDataEqual' | 'onSuccess' | 'onError' | 'onSettled' | 'enabled' | 'refetchInterval' | 'initialData' | 'networkMode'>, 'queryKey' | 'queryFn'> & {
|
|
8
|
+
select: (data: InfiniteData<TQueryFnData>) => InfiniteData<TData>;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated There is no `UnSelectedInfiniteOptions` in \@tanstack/react-query@^4.40.0.
|
|
12
|
+
*/
|
|
13
|
+
type UnSelectedInfiniteOptions<TQueryFnData, TError = unknown, TData = InfiniteData<TQueryFnData>, TQueryKey extends QueryKey = QueryKey> = WithRequired<OmitKeyof<UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>, 'queryKeyHashFn' | '_defaulted' | 'behavior' | 'structuralSharing' | 'isDataEqual' | 'onSuccess' | 'onError' | 'onSettled' | 'enabled' | 'refetchInterval' | 'initialData' | 'networkMode'>, 'queryKey' | 'queryFn'> & {
|
|
14
|
+
select?: undefined;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* This feature is officially supported in \@tanstack/react-query@^4.41.0, You can proceed with the migration.
|
|
18
|
+
* @deprecated Use `infiniteQueryOptions` from \@tanstack/react-query@^4.41.0
|
|
19
|
+
* @example
|
|
20
|
+
* ```diff
|
|
21
|
+
* - import { infiniteQueryOptions } from '@suspensive/react-query'
|
|
22
|
+
* + import { infiniteQueryOptions } from '@tanstack/react-query'
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
declare const infiniteQueryOptions: typeof infiniteQueryOptions$1;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { SelectedInfiniteOptions, UnSelectedInfiniteOptions, infiniteQueryOptions };
|
|
28
|
+
//# sourceMappingURL=infiniteQueryOptions.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infiniteQueryOptions.d.mts","names":[],"sources":["../src/infiniteQueryOptions.ts"],"mappings":";;;;;AAYA;KAAY,uBAAA,yCAGF,YAAA,CAAa,YAAA,qBACH,QAAA,GAAW,QAAA,IAC3B,YAAA,CACF,SAAA,CACE,uBAAA,CAAwB,YAAA,EAAc,MAAA,EAAQ,KAAA,EAAO,YAAA,EAAc,SAAA;EAgBrE,MAAA,GAAS,IAAA,EAAM,YAAA,CAAa,YAAA,MAAkB,YAAA,CAAa,KAAA;AAAA;;;;KAMjD,yBAAA,yCAGF,YAAA,CAAa,YAAA,qBACH,QAAA,GAAW,QAAA,IAC3B,YAAA,CACF,SAAA,CACE,uBAAA,CAAwB,YAAA,EAAc,MAAA,EAAQ,KAAA,EAAO,YAAA,EAAc,SAAA;EAgBrE,MAAA;AAAA;;;;;;;;;;cAYW,oBAAA,SAAoB,sBAAA"}
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { infiniteQueryOptions as infiniteQueryOptions$1 } from "@tanstack/react-query";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/infiniteQueryOptions.ts
|
|
4
|
+
/**
|
|
5
|
+
* This feature is officially supported in \@tanstack/react-query@^4.41.0, You can proceed with the migration.
|
|
6
|
+
* @deprecated Use `infiniteQueryOptions` from \@tanstack/react-query@^4.41.0
|
|
7
|
+
* @example
|
|
8
|
+
* ```diff
|
|
9
|
+
* - import { infiniteQueryOptions } from '@suspensive/react-query'
|
|
10
|
+
* + import { infiniteQueryOptions } from '@tanstack/react-query'
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
const infiniteQueryOptions = infiniteQueryOptions$1;
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { infiniteQueryOptions };
|
|
17
|
+
//# sourceMappingURL=infiniteQueryOptions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infiniteQueryOptions.mjs","names":["original_infiniteQueryOptions"],"sources":["../src/infiniteQueryOptions.ts"],"sourcesContent":["import {\n type InfiniteData,\n type OmitKeyof,\n type QueryKey,\n type UseInfiniteQueryOptions,\n type WithRequired,\n infiniteQueryOptions as original_infiniteQueryOptions,\n} from '@tanstack/react-query'\n\n/**\n * @deprecated There is no `SelectedInfiniteOptions` in \\@tanstack/react-query@^4.40.0.\n */\nexport type SelectedInfiniteOptions<\n TQueryFnData,\n TError = unknown,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n> = WithRequired<\n OmitKeyof<\n UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>,\n | 'queryKeyHashFn'\n | '_defaulted'\n | 'behavior'\n | 'structuralSharing'\n | 'isDataEqual'\n | 'onSuccess'\n | 'onError'\n | 'onSettled'\n | 'enabled'\n | 'refetchInterval'\n | 'initialData'\n | 'networkMode'\n >,\n 'queryKey' | 'queryFn'\n> & {\n select: (data: InfiniteData<TQueryFnData>) => InfiniteData<TData>\n}\n\n/**\n * @deprecated There is no `UnSelectedInfiniteOptions` in \\@tanstack/react-query@^4.40.0.\n */\nexport type UnSelectedInfiniteOptions<\n TQueryFnData,\n TError = unknown,\n TData = InfiniteData<TQueryFnData>,\n TQueryKey extends QueryKey = QueryKey,\n> = WithRequired<\n OmitKeyof<\n UseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>,\n | 'queryKeyHashFn'\n | '_defaulted'\n | 'behavior'\n | 'structuralSharing'\n | 'isDataEqual'\n | 'onSuccess'\n | 'onError'\n | 'onSettled'\n | 'enabled'\n | 'refetchInterval'\n | 'initialData'\n | 'networkMode'\n >,\n 'queryKey' | 'queryFn'\n> & {\n select?: undefined\n}\n\n/**\n * This feature is officially supported in \\@tanstack/react-query@^4.41.0, You can proceed with the migration.\n * @deprecated Use `infiniteQueryOptions` from \\@tanstack/react-query@^4.41.0\n * @example\n * ```diff\n * - import { infiniteQueryOptions } from '@suspensive/react-query'\n * + import { infiniteQueryOptions } from '@tanstack/react-query'\n * ```\n */\nexport const infiniteQueryOptions = original_infiniteQueryOptions\n"],"mappings":";;;;;;;;;;;;AA4EA,MAAa,uBAAuBA"}
|
package/dist/mutationOptions.cjs
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/mutationOptions.tsx
|
|
4
|
+
function mutationOptions(options) {
|
|
5
|
+
return options;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
exports.mutationOptions = mutationOptions;
|
|
10
|
+
//# sourceMappingURL=mutationOptions.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutationOptions.cjs","names":[],"sources":["../src/mutationOptions.tsx"],"sourcesContent":["import type { UseMutationOptions } from '@tanstack/react-query'\n\nexport function mutationOptions<TData = unknown, TError = unknown, TVariables = void, TContext = unknown>(\n options: UseMutationOptions<TData, TError, TVariables, TContext>\n): UseMutationOptions<TData, TError, TVariables, TContext> {\n return options\n}\n"],"mappings":";;;AAEA,SAAgB,gBACd,SACyD;AACzD,QAAO"}
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { UseMutationOptions } from "@tanstack/react-query";
|
|
2
|
+
|
|
3
|
+
//#region src/mutationOptions.d.ts
|
|
4
|
+
declare function mutationOptions<TData = unknown, TError = unknown, TVariables = void, TContext = unknown>(options: UseMutationOptions<TData, TError, TVariables, TContext>): UseMutationOptions<TData, TError, TVariables, TContext>;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { mutationOptions };
|
|
7
|
+
//# sourceMappingURL=mutationOptions.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutationOptions.d.cts","names":[],"sources":["../src/mutationOptions.tsx"],"mappings":";;;iBAEgB,eAAA,0EAAA,CACd,OAAA,EAAS,kBAAA,CAAmB,KAAA,EAAO,MAAA,EAAQ,UAAA,EAAY,QAAA,IACtD,kBAAA,CAAmB,KAAA,EAAO,MAAA,EAAQ,UAAA,EAAY,QAAA"}
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { UseMutationOptions } from "@tanstack/react-query";
|
|
2
|
+
|
|
3
|
+
//#region src/mutationOptions.d.ts
|
|
4
|
+
declare function mutationOptions<TData = unknown, TError = unknown, TVariables = void, TContext = unknown>(options: UseMutationOptions<TData, TError, TVariables, TContext>): UseMutationOptions<TData, TError, TVariables, TContext>;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { mutationOptions };
|
|
7
|
+
//# sourceMappingURL=mutationOptions.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutationOptions.d.mts","names":[],"sources":["../src/mutationOptions.tsx"],"mappings":";;;iBAEgB,eAAA,0EAAA,CACd,OAAA,EAAS,kBAAA,CAAmB,KAAA,EAAO,MAAA,EAAQ,UAAA,EAAY,QAAA,IACtD,kBAAA,CAAmB,KAAA,EAAO,MAAA,EAAQ,UAAA,EAAY,QAAA"}
|
package/dist/mutationOptions.mjs
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/mutationOptions.tsx
|
|
2
|
+
function mutationOptions(options) {
|
|
3
|
+
return options;
|
|
4
|
+
}
|
|
2
5
|
|
|
3
|
-
|
|
6
|
+
//#endregion
|
|
7
|
+
export { mutationOptions };
|
|
8
|
+
//# sourceMappingURL=mutationOptions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutationOptions.mjs","names":[],"sources":["../src/mutationOptions.tsx"],"sourcesContent":["import type { UseMutationOptions } from '@tanstack/react-query'\n\nexport function mutationOptions<TData = unknown, TError = unknown, TVariables = void, TContext = unknown>(\n options: UseMutationOptions<TData, TError, TVariables, TContext>\n): UseMutationOptions<TData, TError, TVariables, TContext> {\n return options\n}\n"],"mappings":";AAEA,SAAgB,gBACd,SACyD;AACzD,QAAO"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
|
|
2
|
-
//#region \0@oxc-project+runtime@0.
|
|
2
|
+
//#region \0@oxc-project+runtime@0.115.0/helpers/typeof.js
|
|
3
3
|
function _typeof(o) {
|
|
4
4
|
"@babel/helpers - typeof";
|
|
5
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o
|
|
6
|
-
return typeof o
|
|
7
|
-
} : function(o
|
|
8
|
-
return o
|
|
5
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
6
|
+
return typeof o;
|
|
7
|
+
} : function(o) {
|
|
8
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
9
9
|
}, _typeof(o);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
13
|
-
//#region \0@oxc-project+runtime@0.
|
|
13
|
+
//#region \0@oxc-project+runtime@0.115.0/helpers/toPrimitive.js
|
|
14
14
|
function toPrimitive(t, r) {
|
|
15
15
|
if ("object" != _typeof(t) || !t) return t;
|
|
16
16
|
var e = t[Symbol.toPrimitive];
|
|
@@ -23,14 +23,14 @@ function toPrimitive(t, r) {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
//#endregion
|
|
26
|
-
//#region \0@oxc-project+runtime@0.
|
|
26
|
+
//#region \0@oxc-project+runtime@0.115.0/helpers/toPropertyKey.js
|
|
27
27
|
function toPropertyKey(t) {
|
|
28
28
|
var i = toPrimitive(t, "string");
|
|
29
29
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
//#endregion
|
|
33
|
-
//#region \0@oxc-project+runtime@0.
|
|
33
|
+
//#region \0@oxc-project+runtime@0.115.0/helpers/defineProperty.js
|
|
34
34
|
function _defineProperty(e, r, t) {
|
|
35
35
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
36
36
|
value: t,
|
|
@@ -41,13 +41,13 @@ function _defineProperty(e, r, t) {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
//#endregion
|
|
44
|
-
//#region \0@oxc-project+runtime@0.
|
|
44
|
+
//#region \0@oxc-project+runtime@0.115.0/helpers/objectSpread2.js
|
|
45
45
|
function ownKeys(e, r) {
|
|
46
46
|
var t = Object.keys(e);
|
|
47
47
|
if (Object.getOwnPropertySymbols) {
|
|
48
48
|
var o = Object.getOwnPropertySymbols(e);
|
|
49
|
-
r && (o = o.filter(function(r
|
|
50
|
-
return Object.getOwnPropertyDescriptor(e, r
|
|
49
|
+
r && (o = o.filter(function(r) {
|
|
50
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
51
51
|
})), t.push.apply(t, o);
|
|
52
52
|
}
|
|
53
53
|
return t;
|
|
@@ -55,10 +55,10 @@ function ownKeys(e, r) {
|
|
|
55
55
|
function _objectSpread2(e) {
|
|
56
56
|
for (var r = 1; r < arguments.length; r++) {
|
|
57
57
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
58
|
-
r % 2 ? ownKeys(Object(t), !0).forEach(function(r
|
|
59
|
-
_defineProperty(e, r
|
|
60
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r
|
|
61
|
-
Object.defineProperty(e, r
|
|
58
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function(r) {
|
|
59
|
+
_defineProperty(e, r, t[r]);
|
|
60
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {
|
|
61
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
return e;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
//#region \0@oxc-project+runtime@0.
|
|
1
|
+
//#region \0@oxc-project+runtime@0.115.0/helpers/typeof.js
|
|
2
2
|
function _typeof(o) {
|
|
3
3
|
"@babel/helpers - typeof";
|
|
4
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o
|
|
5
|
-
return typeof o
|
|
6
|
-
} : function(o
|
|
7
|
-
return o
|
|
4
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
5
|
+
return typeof o;
|
|
6
|
+
} : function(o) {
|
|
7
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
8
8
|
}, _typeof(o);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
//#endregion
|
|
12
|
-
//#region \0@oxc-project+runtime@0.
|
|
12
|
+
//#region \0@oxc-project+runtime@0.115.0/helpers/toPrimitive.js
|
|
13
13
|
function toPrimitive(t, r) {
|
|
14
14
|
if ("object" != _typeof(t) || !t) return t;
|
|
15
15
|
var e = t[Symbol.toPrimitive];
|
|
@@ -22,14 +22,14 @@ function toPrimitive(t, r) {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
//#endregion
|
|
25
|
-
//#region \0@oxc-project+runtime@0.
|
|
25
|
+
//#region \0@oxc-project+runtime@0.115.0/helpers/toPropertyKey.js
|
|
26
26
|
function toPropertyKey(t) {
|
|
27
27
|
var i = toPrimitive(t, "string");
|
|
28
28
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
//#endregion
|
|
32
|
-
//#region \0@oxc-project+runtime@0.
|
|
32
|
+
//#region \0@oxc-project+runtime@0.115.0/helpers/defineProperty.js
|
|
33
33
|
function _defineProperty(e, r, t) {
|
|
34
34
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
35
35
|
value: t,
|
|
@@ -40,13 +40,13 @@ function _defineProperty(e, r, t) {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
//#endregion
|
|
43
|
-
//#region \0@oxc-project+runtime@0.
|
|
43
|
+
//#region \0@oxc-project+runtime@0.115.0/helpers/objectSpread2.js
|
|
44
44
|
function ownKeys(e, r) {
|
|
45
45
|
var t = Object.keys(e);
|
|
46
46
|
if (Object.getOwnPropertySymbols) {
|
|
47
47
|
var o = Object.getOwnPropertySymbols(e);
|
|
48
|
-
r && (o = o.filter(function(r
|
|
49
|
-
return Object.getOwnPropertyDescriptor(e, r
|
|
48
|
+
r && (o = o.filter(function(r) {
|
|
49
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
50
50
|
})), t.push.apply(t, o);
|
|
51
51
|
}
|
|
52
52
|
return t;
|
|
@@ -54,10 +54,10 @@ function ownKeys(e, r) {
|
|
|
54
54
|
function _objectSpread2(e) {
|
|
55
55
|
for (var r = 1; r < arguments.length; r++) {
|
|
56
56
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
57
|
-
r % 2 ? ownKeys(Object(t), !0).forEach(function(r
|
|
58
|
-
_defineProperty(e, r
|
|
59
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r
|
|
60
|
-
Object.defineProperty(e, r
|
|
57
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function(r) {
|
|
58
|
+
_defineProperty(e, r, t[r]);
|
|
59
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {
|
|
60
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
return e;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region \0@oxc-project+runtime@0.
|
|
1
|
+
//#region \0@oxc-project+runtime@0.115.0/helpers/objectWithoutPropertiesLoose.js
|
|
2
2
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
3
3
|
if (null == r) return {};
|
|
4
4
|
var t = {};
|
|
@@ -10,7 +10,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
13
|
-
//#region \0@oxc-project+runtime@0.
|
|
13
|
+
//#region \0@oxc-project+runtime@0.115.0/helpers/objectWithoutProperties.js
|
|
14
14
|
function _objectWithoutProperties(e, t) {
|
|
15
15
|
if (null == e) return {};
|
|
16
16
|
var o, r, i = _objectWithoutPropertiesLoose(e, t);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
//#region \0@oxc-project+runtime@0.
|
|
2
|
+
//#region \0@oxc-project+runtime@0.115.0/helpers/objectWithoutPropertiesLoose.js
|
|
3
3
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
4
4
|
if (null == r) return {};
|
|
5
5
|
var t = {};
|
|
@@ -11,7 +11,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
//#endregion
|
|
14
|
-
//#region \0@oxc-project+runtime@0.
|
|
14
|
+
//#region \0@oxc-project+runtime@0.115.0/helpers/objectWithoutProperties.js
|
|
15
15
|
function _objectWithoutProperties(e, t) {
|
|
16
16
|
if (null == e) return {};
|
|
17
17
|
var o, r, i = _objectWithoutPropertiesLoose(e, t);
|
package/dist/queryOptions.cjs
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
let _tanstack_react_query = require("@tanstack/react-query");
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
//#region src/queryOptions.ts
|
|
5
|
+
/**
|
|
6
|
+
* This feature is officially supported in \@tanstack/react-query@^4.40.0, You can proceed with the migration.
|
|
7
|
+
* @deprecated Use `queryOptions` from \@tanstack/react-query@^4.40.0
|
|
8
|
+
* @example
|
|
9
|
+
* ```diff
|
|
10
|
+
* - import { queryOptions } from '@suspensive/react-query'
|
|
11
|
+
* + import { queryOptions } from '@tanstack/react-query'
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
const queryOptions = _tanstack_react_query.queryOptions;
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.queryOptions = queryOptions;
|
|
18
|
+
//# sourceMappingURL=queryOptions.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryOptions.cjs","names":["original_queryOptions"],"sources":["../src/queryOptions.ts"],"sourcesContent":["import {\n type OmitKeyof,\n type QueryKey,\n type UseQueryOptions,\n type WithRequired,\n queryOptions as original_queryOptions,\n} from '@tanstack/react-query'\n\n/**\n * @deprecated There is no `SelectedQueryOptions` in \\@tanstack/react-query@^4.40.0.\n */\nexport type SelectedQueryOptions<\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = WithRequired<\n OmitKeyof<\n UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>,\n | 'getNextPageParam'\n | 'getPreviousPageParam'\n | 'queryKeyHashFn'\n | '_defaulted'\n | 'behavior'\n | 'structuralSharing'\n | 'isDataEqual'\n | 'onSuccess'\n | 'onError'\n | 'onSettled'\n | 'enabled'\n | 'refetchInterval'\n | 'initialData'\n | 'networkMode'\n >,\n 'queryKey' | 'queryFn'\n> & {\n select: (data: TQueryFnData) => TData\n}\n\n/**\n * @deprecated There is no `UnSelectedQueryOptions` in \\@tanstack/react-query@^4.40.0.\n */\nexport type UnSelectedQueryOptions<\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = WithRequired<\n OmitKeyof<\n UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>,\n | 'getNextPageParam'\n | 'getPreviousPageParam'\n | 'queryKeyHashFn'\n | '_defaulted'\n | 'behavior'\n | 'structuralSharing'\n | 'isDataEqual'\n | 'onSuccess'\n | 'onError'\n | 'onSettled'\n | 'enabled'\n | 'refetchInterval'\n | 'initialData'\n | 'networkMode'\n >,\n 'queryKey' | 'queryFn'\n> & {\n select?: undefined\n}\n\n/**\n * This feature is officially supported in \\@tanstack/react-query@^4.40.0, You can proceed with the migration.\n * @deprecated Use `queryOptions` from \\@tanstack/react-query@^4.40.0\n * @example\n * ```diff\n * - import { queryOptions } from '@suspensive/react-query'\n * + import { queryOptions } from '@tanstack/react-query'\n * ```\n */\nexport const queryOptions = original_queryOptions\n"],"mappings":";;;;;;;;;;;;;AA+EA,MAAa,eAAeA"}
|
package/dist/queryOptions.d.cts
CHANGED
|
@@ -1,2 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { OmitKeyof, QueryKey, UseQueryOptions, WithRequired, queryOptions as queryOptions$1 } from "@tanstack/react-query";
|
|
2
|
+
|
|
3
|
+
//#region src/queryOptions.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated There is no `SelectedQueryOptions` in \@tanstack/react-query@^4.40.0.
|
|
6
|
+
*/
|
|
7
|
+
type SelectedQueryOptions<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = WithRequired<OmitKeyof<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'getNextPageParam' | 'getPreviousPageParam' | 'queryKeyHashFn' | '_defaulted' | 'behavior' | 'structuralSharing' | 'isDataEqual' | 'onSuccess' | 'onError' | 'onSettled' | 'enabled' | 'refetchInterval' | 'initialData' | 'networkMode'>, 'queryKey' | 'queryFn'> & {
|
|
8
|
+
select: (data: TQueryFnData) => TData;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated There is no `UnSelectedQueryOptions` in \@tanstack/react-query@^4.40.0.
|
|
12
|
+
*/
|
|
13
|
+
type UnSelectedQueryOptions<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = WithRequired<OmitKeyof<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'getNextPageParam' | 'getPreviousPageParam' | 'queryKeyHashFn' | '_defaulted' | 'behavior' | 'structuralSharing' | 'isDataEqual' | 'onSuccess' | 'onError' | 'onSettled' | 'enabled' | 'refetchInterval' | 'initialData' | 'networkMode'>, 'queryKey' | 'queryFn'> & {
|
|
14
|
+
select?: undefined;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* This feature is officially supported in \@tanstack/react-query@^4.40.0, You can proceed with the migration.
|
|
18
|
+
* @deprecated Use `queryOptions` from \@tanstack/react-query@^4.40.0
|
|
19
|
+
* @example
|
|
20
|
+
* ```diff
|
|
21
|
+
* - import { queryOptions } from '@suspensive/react-query'
|
|
22
|
+
* + import { queryOptions } from '@tanstack/react-query'
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
declare const queryOptions: typeof queryOptions$1;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { SelectedQueryOptions, UnSelectedQueryOptions, queryOptions };
|
|
28
|
+
//# sourceMappingURL=queryOptions.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryOptions.d.cts","names":[],"sources":["../src/queryOptions.ts"],"mappings":";;;;;AAWA;KAAY,oBAAA,mDAGF,YAAA,oBACU,QAAA,GAAW,QAAA,IAC3B,YAAA,CACF,SAAA,CACE,eAAA,CAAgB,YAAA,EAAc,MAAA,EAAQ,KAAA,EAAO,SAAA;EAkB/C,MAAA,GAAS,IAAA,EAAM,YAAA,KAAiB,KAAA;AAAA;;;;KAMtB,sBAAA,mDAGF,YAAA,oBACU,QAAA,GAAW,QAAA,IAC3B,YAAA,CACF,SAAA,CACE,eAAA,CAAgB,YAAA,EAAc,MAAA,EAAQ,KAAA,EAAO,SAAA;EAkB/C,MAAA;AAAA;;;;;;;;;;cAYW,YAAA,SAAY,cAAA"}
|
package/dist/queryOptions.d.mts
CHANGED
|
@@ -1,2 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { OmitKeyof, QueryKey, UseQueryOptions, WithRequired, queryOptions as queryOptions$1 } from "@tanstack/react-query";
|
|
2
|
+
|
|
3
|
+
//#region src/queryOptions.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated There is no `SelectedQueryOptions` in \@tanstack/react-query@^4.40.0.
|
|
6
|
+
*/
|
|
7
|
+
type SelectedQueryOptions<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = WithRequired<OmitKeyof<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'getNextPageParam' | 'getPreviousPageParam' | 'queryKeyHashFn' | '_defaulted' | 'behavior' | 'structuralSharing' | 'isDataEqual' | 'onSuccess' | 'onError' | 'onSettled' | 'enabled' | 'refetchInterval' | 'initialData' | 'networkMode'>, 'queryKey' | 'queryFn'> & {
|
|
8
|
+
select: (data: TQueryFnData) => TData;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated There is no `UnSelectedQueryOptions` in \@tanstack/react-query@^4.40.0.
|
|
12
|
+
*/
|
|
13
|
+
type UnSelectedQueryOptions<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> = WithRequired<OmitKeyof<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'getNextPageParam' | 'getPreviousPageParam' | 'queryKeyHashFn' | '_defaulted' | 'behavior' | 'structuralSharing' | 'isDataEqual' | 'onSuccess' | 'onError' | 'onSettled' | 'enabled' | 'refetchInterval' | 'initialData' | 'networkMode'>, 'queryKey' | 'queryFn'> & {
|
|
14
|
+
select?: undefined;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* This feature is officially supported in \@tanstack/react-query@^4.40.0, You can proceed with the migration.
|
|
18
|
+
* @deprecated Use `queryOptions` from \@tanstack/react-query@^4.40.0
|
|
19
|
+
* @example
|
|
20
|
+
* ```diff
|
|
21
|
+
* - import { queryOptions } from '@suspensive/react-query'
|
|
22
|
+
* + import { queryOptions } from '@tanstack/react-query'
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
declare const queryOptions: typeof queryOptions$1;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { SelectedQueryOptions, UnSelectedQueryOptions, queryOptions };
|
|
28
|
+
//# sourceMappingURL=queryOptions.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryOptions.d.mts","names":[],"sources":["../src/queryOptions.ts"],"mappings":";;;;;AAWA;KAAY,oBAAA,mDAGF,YAAA,oBACU,QAAA,GAAW,QAAA,IAC3B,YAAA,CACF,SAAA,CACE,eAAA,CAAgB,YAAA,EAAc,MAAA,EAAQ,KAAA,EAAO,SAAA;EAkB/C,MAAA,GAAS,IAAA,EAAM,YAAA,KAAiB,KAAA;AAAA;;;;KAMtB,sBAAA,mDAGF,YAAA,oBACU,QAAA,GAAW,QAAA,IAC3B,YAAA,CACF,SAAA,CACE,eAAA,CAAgB,YAAA,EAAc,MAAA,EAAQ,KAAA,EAAO,SAAA;EAkB/C,MAAA;AAAA;;;;;;;;;;cAYW,YAAA,SAAY,cAAA"}
|
package/dist/queryOptions.mjs
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { queryOptions as queryOptions$1 } from "@tanstack/react-query";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/queryOptions.ts
|
|
4
|
+
/**
|
|
5
|
+
* This feature is officially supported in \@tanstack/react-query@^4.40.0, You can proceed with the migration.
|
|
6
|
+
* @deprecated Use `queryOptions` from \@tanstack/react-query@^4.40.0
|
|
7
|
+
* @example
|
|
8
|
+
* ```diff
|
|
9
|
+
* - import { queryOptions } from '@suspensive/react-query'
|
|
10
|
+
* + import { queryOptions } from '@tanstack/react-query'
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
const queryOptions = queryOptions$1;
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { queryOptions };
|
|
17
|
+
//# sourceMappingURL=queryOptions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryOptions.mjs","names":["original_queryOptions"],"sources":["../src/queryOptions.ts"],"sourcesContent":["import {\n type OmitKeyof,\n type QueryKey,\n type UseQueryOptions,\n type WithRequired,\n queryOptions as original_queryOptions,\n} from '@tanstack/react-query'\n\n/**\n * @deprecated There is no `SelectedQueryOptions` in \\@tanstack/react-query@^4.40.0.\n */\nexport type SelectedQueryOptions<\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = WithRequired<\n OmitKeyof<\n UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>,\n | 'getNextPageParam'\n | 'getPreviousPageParam'\n | 'queryKeyHashFn'\n | '_defaulted'\n | 'behavior'\n | 'structuralSharing'\n | 'isDataEqual'\n | 'onSuccess'\n | 'onError'\n | 'onSettled'\n | 'enabled'\n | 'refetchInterval'\n | 'initialData'\n | 'networkMode'\n >,\n 'queryKey' | 'queryFn'\n> & {\n select: (data: TQueryFnData) => TData\n}\n\n/**\n * @deprecated There is no `UnSelectedQueryOptions` in \\@tanstack/react-query@^4.40.0.\n */\nexport type UnSelectedQueryOptions<\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = WithRequired<\n OmitKeyof<\n UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>,\n | 'getNextPageParam'\n | 'getPreviousPageParam'\n | 'queryKeyHashFn'\n | '_defaulted'\n | 'behavior'\n | 'structuralSharing'\n | 'isDataEqual'\n | 'onSuccess'\n | 'onError'\n | 'onSettled'\n | 'enabled'\n | 'refetchInterval'\n | 'initialData'\n | 'networkMode'\n >,\n 'queryKey' | 'queryFn'\n> & {\n select?: undefined\n}\n\n/**\n * This feature is officially supported in \\@tanstack/react-query@^4.40.0, You can proceed with the migration.\n * @deprecated Use `queryOptions` from \\@tanstack/react-query@^4.40.0\n * @example\n * ```diff\n * - import { queryOptions } from '@suspensive/react-query'\n * + import { queryOptions } from '@tanstack/react-query'\n * ```\n */\nexport const queryOptions = original_queryOptions\n"],"mappings":";;;;;;;;;;;;AA+EA,MAAa,eAAeA"}
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
let _tanstack_react_query = require("@tanstack/react-query");
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
//#region src/usePrefetchInfiniteQuery.ts
|
|
7
|
+
/**
|
|
8
|
+
* The `usePrefetchInfiniteQuery` does not return anything, it should be used just to fire a prefetch during render, before a suspense boundary that wraps a component that uses `useSuspenseInfiniteQuery`.
|
|
9
|
+
* @see {@link https://suspensive.org/docs/react-query/usePrefetchInfiniteQuery Suspensive Docs}
|
|
10
|
+
*/
|
|
11
|
+
function usePrefetchInfiniteQuery(options) {
|
|
12
|
+
const queryClient = (0, _tanstack_react_query.useQueryClient)();
|
|
13
|
+
if (typeof options.queryKey !== "undefined" && !queryClient.getQueryState(options.queryKey)) queryClient.prefetchInfiniteQuery(options);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.usePrefetchInfiniteQuery = usePrefetchInfiniteQuery;
|
|
18
|
+
//# sourceMappingURL=usePrefetchInfiniteQuery.cjs.map
|