@suspensive/react-query-4 3.5.0 → 3.6.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.
Files changed (255) hide show
  1. package/dist/Mutation-Cq9YLow5.d.ts +16 -0
  2. package/dist/Mutation-Cq9YLow5.d.ts.map +1 -0
  3. package/dist/Mutation-DDdu16BX.cjs +22 -0
  4. package/dist/Mutation-DDdu16BX.cjs.map +1 -0
  5. package/dist/Mutation-DY_LwBl7.js +17 -0
  6. package/dist/Mutation-DY_LwBl7.js.map +1 -0
  7. package/dist/Mutation-cdrmBut7.d.cts +16 -0
  8. package/dist/Mutation-cdrmBut7.d.cts.map +1 -0
  9. package/dist/Mutation.cjs +3 -53
  10. package/dist/Mutation.d.cts +2 -9
  11. package/dist/Mutation.d.ts +2 -9
  12. package/dist/Mutation.js +4 -8
  13. package/dist/PrefetchInfiniteQuery-BS8Nva3i.d.ts +19 -0
  14. package/dist/PrefetchInfiniteQuery-BS8Nva3i.d.ts.map +1 -0
  15. package/dist/PrefetchInfiniteQuery-BZTIb3ao.cjs +27 -0
  16. package/dist/PrefetchInfiniteQuery-BZTIb3ao.cjs.map +1 -0
  17. package/dist/PrefetchInfiniteQuery-Cu8eI1Uu.js +21 -0
  18. package/dist/PrefetchInfiniteQuery-Cu8eI1Uu.js.map +1 -0
  19. package/dist/PrefetchInfiniteQuery-IxkInOV7.d.cts +19 -0
  20. package/dist/PrefetchInfiniteQuery-IxkInOV7.d.cts.map +1 -0
  21. package/dist/PrefetchInfiniteQuery.cjs +3 -45
  22. package/dist/PrefetchInfiniteQuery.d.cts +2 -14
  23. package/dist/PrefetchInfiniteQuery.d.ts +2 -14
  24. package/dist/PrefetchInfiniteQuery.js +4 -9
  25. package/dist/PrefetchQuery-BVGPOOH5.d.ts +19 -0
  26. package/dist/PrefetchQuery-BVGPOOH5.d.ts.map +1 -0
  27. package/dist/PrefetchQuery-CDuXG_oO.js +21 -0
  28. package/dist/PrefetchQuery-CDuXG_oO.js.map +1 -0
  29. package/dist/PrefetchQuery-CbqtM1Rd.d.cts +19 -0
  30. package/dist/PrefetchQuery-CbqtM1Rd.d.cts.map +1 -0
  31. package/dist/PrefetchQuery-DIrAWvic.cjs +27 -0
  32. package/dist/PrefetchQuery-DIrAWvic.cjs.map +1 -0
  33. package/dist/PrefetchQuery.cjs +3 -45
  34. package/dist/PrefetchQuery.d.cts +2 -14
  35. package/dist/PrefetchQuery.d.ts +2 -14
  36. package/dist/PrefetchQuery.js +4 -9
  37. package/dist/QueryClientConsumer-8SDR4C6s.cjs +21 -0
  38. package/dist/QueryClientConsumer-8SDR4C6s.cjs.map +1 -0
  39. package/dist/QueryClientConsumer-DDoaDhIt.js +15 -0
  40. package/dist/QueryClientConsumer-DDoaDhIt.js.map +1 -0
  41. package/dist/QueryClientConsumer-QCekb7pq.d.cts +20 -0
  42. package/dist/QueryClientConsumer-QCekb7pq.d.cts.map +1 -0
  43. package/dist/QueryClientConsumer-_5gcuXs-.d.ts +20 -0
  44. package/dist/QueryClientConsumer-_5gcuXs-.d.ts.map +1 -0
  45. package/dist/QueryClientConsumer.cjs +2 -37
  46. package/dist/QueryClientConsumer.d.cts +2 -13
  47. package/dist/QueryClientConsumer.d.ts +2 -13
  48. package/dist/QueryClientConsumer.js +3 -8
  49. package/dist/SuspenseInfiniteQuery-CeQzWPZw.js +33 -0
  50. package/dist/SuspenseInfiniteQuery-CeQzWPZw.js.map +1 -0
  51. package/dist/SuspenseInfiniteQuery-DChvWJAA.cjs +38 -0
  52. package/dist/SuspenseInfiniteQuery-DChvWJAA.cjs.map +1 -0
  53. package/dist/SuspenseInfiniteQuery-Dxj5pGKi.d.ts +34 -0
  54. package/dist/SuspenseInfiniteQuery-Dxj5pGKi.d.ts.map +1 -0
  55. package/dist/SuspenseInfiniteQuery-e8hfwQaY.d.cts +34 -0
  56. package/dist/SuspenseInfiniteQuery-e8hfwQaY.d.cts.map +1 -0
  57. package/dist/SuspenseInfiniteQuery.cjs +4 -80
  58. package/dist/SuspenseInfiniteQuery.d.cts +3 -26
  59. package/dist/SuspenseInfiniteQuery.d.ts +3 -26
  60. package/dist/SuspenseInfiniteQuery.js +5 -9
  61. package/dist/SuspenseQueries-CCwTitaN.d.ts +32 -0
  62. package/dist/SuspenseQueries-CCwTitaN.d.ts.map +1 -0
  63. package/dist/SuspenseQueries-CQGWMfTp.d.cts +32 -0
  64. package/dist/SuspenseQueries-CQGWMfTp.d.cts.map +1 -0
  65. package/dist/SuspenseQueries-bitBYcdo.js +27 -0
  66. package/dist/SuspenseQueries-bitBYcdo.js.map +1 -0
  67. package/dist/SuspenseQueries-mQkpPNfp.cjs +33 -0
  68. package/dist/SuspenseQueries-mQkpPNfp.cjs.map +1 -0
  69. package/dist/SuspenseQueries.cjs +2 -37
  70. package/dist/SuspenseQueries.d.cts +2 -25
  71. package/dist/SuspenseQueries.d.ts +2 -25
  72. package/dist/SuspenseQueries.js +3 -8
  73. package/dist/SuspenseQuery-Batp4Cq6.d.cts +33 -0
  74. package/dist/SuspenseQuery-Batp4Cq6.d.cts.map +1 -0
  75. package/dist/SuspenseQuery-C0R5nuQL.cjs +38 -0
  76. package/dist/SuspenseQuery-C0R5nuQL.cjs.map +1 -0
  77. package/dist/SuspenseQuery-DZYAnyAi.js +33 -0
  78. package/dist/SuspenseQuery-DZYAnyAi.js.map +1 -0
  79. package/dist/SuspenseQuery-t-edJ-93.d.ts +33 -0
  80. package/dist/SuspenseQuery-t-edJ-93.d.ts.map +1 -0
  81. package/dist/SuspenseQuery.cjs +3 -53
  82. package/dist/SuspenseQuery.d.cts +2 -25
  83. package/dist/SuspenseQuery.d.ts +2 -25
  84. package/dist/SuspenseQuery.js +4 -8
  85. package/dist/chunk-CeDO-pVn.cjs +40 -0
  86. package/dist/chunk-Ciq1R52r.js +28 -0
  87. package/dist/index.cjs +32 -207
  88. package/dist/index.d.cts +16 -18
  89. package/dist/index.d.ts +16 -18
  90. package/dist/index.js +18 -64
  91. package/dist/infiniteQueryOptions-D5UWCiQm.d.cts +23 -0
  92. package/dist/infiniteQueryOptions-D5UWCiQm.d.cts.map +1 -0
  93. package/dist/infiniteQueryOptions-DA5hdy3q.js +9 -0
  94. package/dist/infiniteQueryOptions-DA5hdy3q.js.map +1 -0
  95. package/dist/infiniteQueryOptions-F-YVOaXh.cjs +15 -0
  96. package/dist/infiniteQueryOptions-F-YVOaXh.cjs.map +1 -0
  97. package/dist/infiniteQueryOptions-OhnBXjqw.d.ts +23 -0
  98. package/dist/infiniteQueryOptions-OhnBXjqw.d.ts.map +1 -0
  99. package/dist/infiniteQueryOptions.cjs +2 -32
  100. package/dist/infiniteQueryOptions.d.cts +2 -18
  101. package/dist/infiniteQueryOptions.d.ts +2 -18
  102. package/dist/infiniteQueryOptions.js +3 -8
  103. package/dist/mutationOptions-B-tRCpph.d.cts +13 -0
  104. package/dist/mutationOptions-B-tRCpph.d.cts.map +1 -0
  105. package/dist/mutationOptions-B2q4VNKF.js +12 -0
  106. package/dist/mutationOptions-B2q4VNKF.js.map +1 -0
  107. package/dist/mutationOptions-B2wzWod0.cjs +18 -0
  108. package/dist/mutationOptions-B2wzWod0.cjs.map +1 -0
  109. package/dist/mutationOptions-B8QNFWFL.d.ts +13 -0
  110. package/dist/mutationOptions-B8QNFWFL.d.ts.map +1 -0
  111. package/dist/mutationOptions.cjs +2 -32
  112. package/dist/mutationOptions.d.cts +2 -8
  113. package/dist/mutationOptions.d.ts +2 -8
  114. package/dist/mutationOptions.js +3 -8
  115. package/dist/objectWithoutProperties-CxgYxkGP.cjs +41 -0
  116. package/dist/objectWithoutProperties-CxgYxkGP.cjs.map +1 -0
  117. package/dist/objectWithoutProperties-D3Ub7JDI.js +36 -0
  118. package/dist/objectWithoutProperties-D3Ub7JDI.js.map +1 -0
  119. package/dist/queryOptions--rzh3VF-.d.ts +31 -0
  120. package/dist/queryOptions--rzh3VF-.d.ts.map +1 -0
  121. package/dist/queryOptions-BFqIlOf6.d.cts +31 -0
  122. package/dist/queryOptions-BFqIlOf6.d.cts.map +1 -0
  123. package/dist/queryOptions-C8b9Gtyc.js +18 -0
  124. package/dist/queryOptions-C8b9Gtyc.js.map +1 -0
  125. package/dist/queryOptions-VYAn5RgE.cjs +24 -0
  126. package/dist/queryOptions-VYAn5RgE.cjs.map +1 -0
  127. package/dist/queryOptions.cjs +2 -31
  128. package/dist/queryOptions.d.cts +2 -26
  129. package/dist/queryOptions.d.ts +2 -26
  130. package/dist/queryOptions.js +3 -8
  131. package/dist/usePrefetchInfiniteQuery-Bh922oLD.js +16 -0
  132. package/dist/usePrefetchInfiniteQuery-Bh922oLD.js.map +1 -0
  133. package/dist/usePrefetchInfiniteQuery-DLkDZPuH.cjs +22 -0
  134. package/dist/usePrefetchInfiniteQuery-DLkDZPuH.cjs.map +1 -0
  135. package/dist/usePrefetchInfiniteQuery-KrJE5xOf.d.cts +14 -0
  136. package/dist/usePrefetchInfiniteQuery-KrJE5xOf.d.cts.map +1 -0
  137. package/dist/usePrefetchInfiniteQuery-M9BjRb0K.d.ts +14 -0
  138. package/dist/usePrefetchInfiniteQuery-M9BjRb0K.d.ts.map +1 -0
  139. package/dist/usePrefetchInfiniteQuery.cjs +2 -36
  140. package/dist/usePrefetchInfiniteQuery.d.cts +2 -9
  141. package/dist/usePrefetchInfiniteQuery.d.ts +2 -9
  142. package/dist/usePrefetchInfiniteQuery.js +3 -8
  143. package/dist/usePrefetchQuery-CAd9J9-z.js +16 -0
  144. package/dist/usePrefetchQuery-CAd9J9-z.js.map +1 -0
  145. package/dist/usePrefetchQuery-CTqZEpsJ.d.ts +14 -0
  146. package/dist/usePrefetchQuery-CTqZEpsJ.d.ts.map +1 -0
  147. package/dist/usePrefetchQuery-DxWFW57e.cjs +22 -0
  148. package/dist/usePrefetchQuery-DxWFW57e.cjs.map +1 -0
  149. package/dist/usePrefetchQuery-XkYUJflY.d.cts +14 -0
  150. package/dist/usePrefetchQuery-XkYUJflY.d.cts.map +1 -0
  151. package/dist/usePrefetchQuery.cjs +2 -36
  152. package/dist/usePrefetchQuery.d.cts +2 -9
  153. package/dist/usePrefetchQuery.d.ts +2 -9
  154. package/dist/usePrefetchQuery.js +3 -8
  155. package/dist/useSuspenseInfiniteQuery-B3Mk1jMY.js +108 -0
  156. package/dist/useSuspenseInfiniteQuery-B3Mk1jMY.js.map +1 -0
  157. package/dist/useSuspenseInfiniteQuery-BaOiPk5m.d.cts +18 -0
  158. package/dist/useSuspenseInfiniteQuery-BaOiPk5m.d.cts.map +1 -0
  159. package/dist/useSuspenseInfiniteQuery-CQGzIDyv.cjs +113 -0
  160. package/dist/useSuspenseInfiniteQuery-CQGzIDyv.cjs.map +1 -0
  161. package/dist/useSuspenseInfiniteQuery-DKVFCH7m.d.ts +18 -0
  162. package/dist/useSuspenseInfiniteQuery-DKVFCH7m.d.ts.map +1 -0
  163. package/dist/useSuspenseInfiniteQuery.cjs +2 -55
  164. package/dist/useSuspenseInfiniteQuery.d.cts +2 -14
  165. package/dist/useSuspenseInfiniteQuery.d.ts +2 -14
  166. package/dist/useSuspenseInfiniteQuery.js +3 -8
  167. package/dist/useSuspenseQueries-BUUeV7qD.d.cts +38 -0
  168. package/dist/useSuspenseQueries-BUUeV7qD.d.cts.map +1 -0
  169. package/dist/useSuspenseQueries-C4mHOTlJ.d.ts +38 -0
  170. package/dist/useSuspenseQueries-C4mHOTlJ.d.ts.map +1 -0
  171. package/dist/useSuspenseQueries-DQmk_OhC.cjs +24 -0
  172. package/dist/useSuspenseQueries-DQmk_OhC.cjs.map +1 -0
  173. package/dist/useSuspenseQueries-DWm4Q_i3.js +18 -0
  174. package/dist/useSuspenseQueries-DWm4Q_i3.js.map +1 -0
  175. package/dist/useSuspenseQueries.cjs +2 -31
  176. package/dist/useSuspenseQueries.d.cts +2 -34
  177. package/dist/useSuspenseQueries.d.ts +2 -34
  178. package/dist/useSuspenseQueries.js +3 -8
  179. package/dist/useSuspenseQuery-6DgpoFHS.d.cts +38 -0
  180. package/dist/useSuspenseQuery-6DgpoFHS.d.cts.map +1 -0
  181. package/dist/useSuspenseQuery-CGhgUxh-.d.ts +38 -0
  182. package/dist/useSuspenseQuery-CGhgUxh-.d.ts.map +1 -0
  183. package/dist/useSuspenseQuery-DSsDNDZJ.cjs +24 -0
  184. package/dist/useSuspenseQuery-DSsDNDZJ.cjs.map +1 -0
  185. package/dist/useSuspenseQuery-DZMToUHL.js +18 -0
  186. package/dist/useSuspenseQuery-DZMToUHL.js.map +1 -0
  187. package/dist/useSuspenseQuery.cjs +2 -31
  188. package/dist/useSuspenseQuery.d.cts +2 -34
  189. package/dist/useSuspenseQuery.d.ts +2 -34
  190. package/dist/useSuspenseQuery.js +3 -8
  191. package/package.json +3 -3
  192. package/dist/Mutation.cjs.map +0 -1
  193. package/dist/Mutation.js.map +0 -1
  194. package/dist/PrefetchInfiniteQuery.cjs.map +0 -1
  195. package/dist/PrefetchInfiniteQuery.js.map +0 -1
  196. package/dist/PrefetchQuery.cjs.map +0 -1
  197. package/dist/PrefetchQuery.js.map +0 -1
  198. package/dist/QueryClientConsumer.cjs.map +0 -1
  199. package/dist/QueryClientConsumer.js.map +0 -1
  200. package/dist/SuspenseInfiniteQuery.cjs.map +0 -1
  201. package/dist/SuspenseInfiniteQuery.js.map +0 -1
  202. package/dist/SuspenseQueries.cjs.map +0 -1
  203. package/dist/SuspenseQueries.js.map +0 -1
  204. package/dist/SuspenseQuery.cjs.map +0 -1
  205. package/dist/SuspenseQuery.js.map +0 -1
  206. package/dist/chunk-34N4X5NK.js +0 -11
  207. package/dist/chunk-34N4X5NK.js.map +0 -1
  208. package/dist/chunk-7AETAPCD.js +0 -16
  209. package/dist/chunk-7AETAPCD.js.map +0 -1
  210. package/dist/chunk-A6D2XGKX.js +0 -12
  211. package/dist/chunk-A6D2XGKX.js.map +0 -1
  212. package/dist/chunk-BOUCJMBU.js +0 -23
  213. package/dist/chunk-BOUCJMBU.js.map +0 -1
  214. package/dist/chunk-CLWCIHTL.js +0 -23
  215. package/dist/chunk-CLWCIHTL.js.map +0 -1
  216. package/dist/chunk-IB2JQANE.js +0 -16
  217. package/dist/chunk-IB2JQANE.js.map +0 -1
  218. package/dist/chunk-IJFXQRYI.js +0 -11
  219. package/dist/chunk-IJFXQRYI.js.map +0 -1
  220. package/dist/chunk-OGTYZE7J.js +0 -16
  221. package/dist/chunk-OGTYZE7J.js.map +0 -1
  222. package/dist/chunk-QETBZSG5.js +0 -39
  223. package/dist/chunk-QETBZSG5.js.map +0 -1
  224. package/dist/chunk-QYGYB5UC.js +0 -23
  225. package/dist/chunk-QYGYB5UC.js.map +0 -1
  226. package/dist/chunk-SXV24QIX.js +0 -15
  227. package/dist/chunk-SXV24QIX.js.map +0 -1
  228. package/dist/chunk-V6B7UP6T.js +0 -15
  229. package/dist/chunk-V6B7UP6T.js.map +0 -1
  230. package/dist/chunk-WCKC4M3O.js +0 -12
  231. package/dist/chunk-WCKC4M3O.js.map +0 -1
  232. package/dist/chunk-WE3IMJ7D.js +0 -16
  233. package/dist/chunk-WE3IMJ7D.js.map +0 -1
  234. package/dist/chunk-X7BBVL5B.js +0 -21
  235. package/dist/chunk-X7BBVL5B.js.map +0 -1
  236. package/dist/chunk-YFVQ7O2B.js +0 -12
  237. package/dist/chunk-YFVQ7O2B.js.map +0 -1
  238. package/dist/index.cjs.map +0 -1
  239. package/dist/index.js.map +0 -1
  240. package/dist/infiniteQueryOptions.cjs.map +0 -1
  241. package/dist/infiniteQueryOptions.js.map +0 -1
  242. package/dist/mutationOptions.cjs.map +0 -1
  243. package/dist/mutationOptions.js.map +0 -1
  244. package/dist/queryOptions.cjs.map +0 -1
  245. package/dist/queryOptions.js.map +0 -1
  246. package/dist/usePrefetchInfiniteQuery.cjs.map +0 -1
  247. package/dist/usePrefetchInfiniteQuery.js.map +0 -1
  248. package/dist/usePrefetchQuery.cjs.map +0 -1
  249. package/dist/usePrefetchQuery.js.map +0 -1
  250. package/dist/useSuspenseInfiniteQuery.cjs.map +0 -1
  251. package/dist/useSuspenseInfiniteQuery.js.map +0 -1
  252. package/dist/useSuspenseQueries.cjs.map +0 -1
  253. package/dist/useSuspenseQueries.js.map +0 -1
  254. package/dist/useSuspenseQuery.cjs.map +0 -1
  255. package/dist/useSuspenseQuery.js.map +0 -1
@@ -0,0 +1,21 @@
1
+ "use client"
2
+ const require_chunk = require('./chunk-CeDO-pVn.cjs');
3
+ const __tanstack_react_query = require_chunk.__toESM(require("@tanstack/react-query"));
4
+ const react_jsx_runtime = require_chunk.__toESM(require("react/jsx-runtime"));
5
+
6
+ //#region src/QueryClientConsumer.tsx
7
+ /**
8
+ * @experimental This is experimental feature.
9
+ */
10
+ function QueryClientConsumer({ children, context }) {
11
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: children((0, __tanstack_react_query.useQueryClient)({ context })) });
12
+ }
13
+
14
+ //#endregion
15
+ Object.defineProperty(exports, 'QueryClientConsumer', {
16
+ enumerable: true,
17
+ get: function () {
18
+ return QueryClientConsumer;
19
+ }
20
+ });
21
+ //# sourceMappingURL=QueryClientConsumer-8SDR4C6s.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryClientConsumer-8SDR4C6s.cjs","names":[],"sources":["../src/QueryClientConsumer.tsx"],"sourcesContent":["import { type QueryClient, useQueryClient } from '@tanstack/react-query'\nimport type { Context, ReactNode } from 'react'\n\n/**\n * @experimental This is experimental feature.\n */\nexport function QueryClientConsumer({\n children,\n context,\n}: {\n children: (queryClient: QueryClient) => ReactNode\n context?: Context<QueryClient | undefined>\n}) {\n return <>{children(useQueryClient({ context: context as any }))}</>\n}\n"],"mappings":";;;;;;;;;AAMA,SAAgB,oBAAoB,EAClC,UACA,SAID,EAAE;AACD,2FAAU,oDAAwB,EAAW,QAAgB,EAAC,CAAC,GAAI;AACpE"}
@@ -0,0 +1,15 @@
1
+ "use client"
2
+ import { useQueryClient } from "@tanstack/react-query";
3
+ import { Fragment, jsx } from "react/jsx-runtime";
4
+
5
+ //#region src/QueryClientConsumer.tsx
6
+ /**
7
+ * @experimental This is experimental feature.
8
+ */
9
+ function QueryClientConsumer({ children, context }) {
10
+ return /* @__PURE__ */ jsx(Fragment, { children: children(useQueryClient({ context })) });
11
+ }
12
+
13
+ //#endregion
14
+ export { QueryClientConsumer };
15
+ //# sourceMappingURL=QueryClientConsumer-DDoaDhIt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryClientConsumer-DDoaDhIt.js","names":[],"sources":["../src/QueryClientConsumer.tsx"],"sourcesContent":["import { type QueryClient, useQueryClient } from '@tanstack/react-query'\nimport type { Context, ReactNode } from 'react'\n\n/**\n * @experimental This is experimental feature.\n */\nexport function QueryClientConsumer({\n children,\n context,\n}: {\n children: (queryClient: QueryClient) => ReactNode\n context?: Context<QueryClient | undefined>\n}) {\n return <>{children(useQueryClient({ context: context as any }))}</>\n}\n"],"mappings":";;;;;;;;AAMA,SAAgB,oBAAoB,EAClC,UACA,SAID,EAAE;AACD,kDAAU,SAAS,eAAe,EAAW,QAAgB,EAAC,CAAC,GAAI;AACpE"}
@@ -0,0 +1,20 @@
1
+ import * as react_jsx_runtime2 from "react/jsx-runtime";
2
+ import { QueryClient } from "@tanstack/react-query";
3
+ import { Context, ReactNode } from "react";
4
+
5
+ //#region src/QueryClientConsumer.d.ts
6
+ /**
7
+ * @experimental This is experimental feature.
8
+ */
9
+ declare function QueryClientConsumer({
10
+ children,
11
+ context
12
+ }: {
13
+ children: (queryClient: QueryClient) => ReactNode;
14
+ context?: Context<QueryClient | undefined>;
15
+ }): react_jsx_runtime2.JSX.Element;
16
+ //# sourceMappingURL=QueryClientConsumer.d.ts.map
17
+
18
+ //#endregion
19
+ export { QueryClientConsumer };
20
+ //# sourceMappingURL=QueryClientConsumer-QCekb7pq.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryClientConsumer-QCekb7pq.d.cts","names":[],"sources":["../src/QueryClientConsumer.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAMgB,iBAAA,mBAAA,CAAmB;EAAA,QAAA;EAAA;CAAA,EAAA;EAAA,QAAA,EAAA,CAAA,WAAA,EAIT,WAJS,EAAA,GAIO,SAJP;EAAA,OACjC,CAAA,EAIU,OAJV,CAIkB,WAJlB,GAAA,SAAA,CAAA;CAAQ,CAAA,EAKT,kBAAA,CAAA,GAAA,CAAA,OAJC"}
@@ -0,0 +1,20 @@
1
+ import { QueryClient } from "@tanstack/react-query";
2
+ import * as react_jsx_runtime4 from "react/jsx-runtime";
3
+ import { Context, ReactNode } from "react";
4
+
5
+ //#region src/QueryClientConsumer.d.ts
6
+ /**
7
+ * @experimental This is experimental feature.
8
+ */
9
+ declare function QueryClientConsumer({
10
+ children,
11
+ context
12
+ }: {
13
+ children: (queryClient: QueryClient) => ReactNode;
14
+ context?: Context<QueryClient | undefined>;
15
+ }): react_jsx_runtime4.JSX.Element;
16
+ //# sourceMappingURL=QueryClientConsumer.d.ts.map
17
+
18
+ //#endregion
19
+ export { QueryClientConsumer };
20
+ //# sourceMappingURL=QueryClientConsumer-_5gcuXs-.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryClientConsumer-_5gcuXs-.d.ts","names":[],"sources":["../src/QueryClientConsumer.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAMgB,iBAAA,mBAAA,CAAmB;EAAA,QAAA;EAAA;CAAA,EAAA;EAAA,QAAA,EAAA,CAAA,WAAA,EAIT,WAJS,EAAA,GAIO,SAJP;EAAA,OACjC,CAAA,EAIU,OAJV,CAIkB,WAJlB,GAAA,SAAA,CAAA;CAAQ,CAAA,EAKT,kBAAA,CAAA,GAAA,CAAA,OAJC"}
@@ -1,39 +1,4 @@
1
1
  "use client"
2
- "use strict";
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
2
+ const require_QueryClientConsumer = require('./QueryClientConsumer-8SDR4C6s.cjs');
20
3
 
21
- // src/QueryClientConsumer.tsx
22
- var QueryClientConsumer_exports = {};
23
- __export(QueryClientConsumer_exports, {
24
- QueryClientConsumer: () => QueryClientConsumer
25
- });
26
- module.exports = __toCommonJS(QueryClientConsumer_exports);
27
- var import_react_query = require("@tanstack/react-query");
28
- var import_jsx_runtime = require("react/jsx-runtime");
29
- function QueryClientConsumer({
30
- children,
31
- context
32
- }) {
33
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: children((0, import_react_query.useQueryClient)({ context })) });
34
- }
35
- // Annotate the CommonJS export names for ESM import in node:
36
- 0 && (module.exports = {
37
- QueryClientConsumer
38
- });
39
- //# sourceMappingURL=QueryClientConsumer.cjs.map
4
+ exports.QueryClientConsumer = require_QueryClientConsumer.QueryClientConsumer;
@@ -1,13 +1,2 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { QueryClient } from '@tanstack/react-query';
3
- import { ReactNode, Context } from 'react';
4
-
5
- /**
6
- * @experimental This is experimental feature.
7
- */
8
- declare function QueryClientConsumer({ children, context, }: {
9
- children: (queryClient: QueryClient) => ReactNode;
10
- context?: Context<QueryClient | undefined>;
11
- }): react_jsx_runtime.JSX.Element;
12
-
13
- export { QueryClientConsumer };
1
+ import { QueryClientConsumer } from "./QueryClientConsumer-QCekb7pq.cjs";
2
+ export { QueryClientConsumer };
@@ -1,13 +1,2 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { QueryClient } from '@tanstack/react-query';
3
- import { ReactNode, Context } from 'react';
4
-
5
- /**
6
- * @experimental This is experimental feature.
7
- */
8
- declare function QueryClientConsumer({ children, context, }: {
9
- children: (queryClient: QueryClient) => ReactNode;
10
- context?: Context<QueryClient | undefined>;
11
- }): react_jsx_runtime.JSX.Element;
12
-
13
- export { QueryClientConsumer };
1
+ import { QueryClientConsumer } from "./QueryClientConsumer-_5gcuXs-.js";
2
+ export { QueryClientConsumer };
@@ -1,9 +1,4 @@
1
1
  "use client"
2
- import {
3
- QueryClientConsumer
4
- } from "./chunk-IB2JQANE.js";
5
- import "./chunk-QETBZSG5.js";
6
- export {
7
- QueryClientConsumer
8
- };
9
- //# sourceMappingURL=QueryClientConsumer.js.map
2
+ import { QueryClientConsumer } from "./QueryClientConsumer-DDoaDhIt.js";
3
+
4
+ export { QueryClientConsumer };
@@ -0,0 +1,33 @@
1
+ "use client"
2
+ import { __toESM } from "./chunk-Ciq1R52r.js";
3
+ import { require_objectWithoutProperties } from "./objectWithoutProperties-D3Ub7JDI.js";
4
+ import { useSuspenseInfiniteQuery } from "./useSuspenseInfiniteQuery-B3Mk1jMY.js";
5
+ import { Fragment, jsx } from "react/jsx-runtime";
6
+
7
+ //#region src/SuspenseInfiniteQuery.tsx
8
+ var import_objectWithoutProperties = /* @__PURE__ */ __toESM(require_objectWithoutProperties());
9
+ const _excluded = ["children"];
10
+ /**
11
+ * We provide these components to clearly express what causes suspense at the same depth.
12
+ * `<SuspenseInfiniteQuery/>` serves to make `useSuspenseInfiniteQuery` easier to use in jsx.
13
+ * @see {@link https://suspensive.org/docs/react-query/SuspenseInfiniteQuery Suspensive Docs}
14
+ * @example
15
+ * ```tsx
16
+ * import { SuspenseInfiniteQuery } from '@suspensive/react-query'
17
+ *
18
+ * // You can use infiniteQueryOptions as props.
19
+ * <SuspenseInfiniteQuery {...infiniteQueryOptions()}>
20
+ * {({ data, fetchNextPage }) => {
21
+ * return <></>
22
+ * }}
23
+ * </SuspenseInfiniteQuery>
24
+ * ```
25
+ */
26
+ const SuspenseInfiniteQuery = (_ref) => {
27
+ let { children } = _ref, options = (0, import_objectWithoutProperties.default)(_ref, _excluded);
28
+ return /* @__PURE__ */ jsx(Fragment, { children: children(useSuspenseInfiniteQuery(options)) });
29
+ };
30
+
31
+ //#endregion
32
+ export { SuspenseInfiniteQuery };
33
+ //# sourceMappingURL=SuspenseInfiniteQuery-CeQzWPZw.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SuspenseInfiniteQuery-CeQzWPZw.js","names":[],"sources":["../src/SuspenseInfiniteQuery.tsx"],"sourcesContent":["import type { QueryKey } from '@tanstack/react-query'\nimport type { ReactNode } from 'react'\nimport {\n type UseSuspenseInfiniteQueryOptions,\n type UseSuspenseInfiniteQueryResult,\n useSuspenseInfiniteQuery,\n} from './useSuspenseInfiniteQuery'\n\n/**\n * We provide these components to clearly express what causes suspense at the same depth.\n * `<SuspenseInfiniteQuery/>` serves to make `useSuspenseInfiniteQuery` easier to use in jsx.\n * @see {@link https://suspensive.org/docs/react-query/SuspenseInfiniteQuery Suspensive Docs}\n * @example\n * ```tsx\n * import { SuspenseInfiniteQuery } from '@suspensive/react-query'\n *\n * // You can use infiniteQueryOptions as props.\n * <SuspenseInfiniteQuery {...infiniteQueryOptions()}>\n * {({ data, fetchNextPage }) => {\n * return <></>\n * }}\n * </SuspenseInfiniteQuery>\n * ```\n */\nexport const SuspenseInfiniteQuery = <\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>({\n children,\n ...options\n}: UseSuspenseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey> & {\n children: (query: UseSuspenseInfiniteQueryResult<TData, TError>) => ReactNode\n}) => <>{children(useSuspenseInfiniteQuery(options))}</>\n"],"mappings":";;;;;;;;mBA8BE;;;;;;;;;;;;;;;;;AANF,MAAa,wBAAwB,UAU/B;KALJ,EACA,UAID,SAHI;AAGC,kDAAG,SAAS,yBAAyB,QAAQ,CAAC,GAAI"}
@@ -0,0 +1,38 @@
1
+ "use client"
2
+ const require_chunk = require('./chunk-CeDO-pVn.cjs');
3
+ const require_objectWithoutProperties$1 = require('./objectWithoutProperties-CxgYxkGP.cjs');
4
+ const require_useSuspenseInfiniteQuery = require('./useSuspenseInfiniteQuery-CQGzIDyv.cjs');
5
+ const react_jsx_runtime = require_chunk.__toESM(require("react/jsx-runtime"));
6
+
7
+ //#region src/SuspenseInfiniteQuery.tsx
8
+ var import_objectWithoutProperties = /* @__PURE__ */ require_chunk.__toESM(require_objectWithoutProperties$1.require_objectWithoutProperties());
9
+ const _excluded = ["children"];
10
+ /**
11
+ * We provide these components to clearly express what causes suspense at the same depth.
12
+ * `<SuspenseInfiniteQuery/>` serves to make `useSuspenseInfiniteQuery` easier to use in jsx.
13
+ * @see {@link https://suspensive.org/docs/react-query/SuspenseInfiniteQuery Suspensive Docs}
14
+ * @example
15
+ * ```tsx
16
+ * import { SuspenseInfiniteQuery } from '@suspensive/react-query'
17
+ *
18
+ * // You can use infiniteQueryOptions as props.
19
+ * <SuspenseInfiniteQuery {...infiniteQueryOptions()}>
20
+ * {({ data, fetchNextPage }) => {
21
+ * return <></>
22
+ * }}
23
+ * </SuspenseInfiniteQuery>
24
+ * ```
25
+ */
26
+ const SuspenseInfiniteQuery = (_ref) => {
27
+ let { children } = _ref, options = (0, import_objectWithoutProperties.default)(_ref, _excluded);
28
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: children(require_useSuspenseInfiniteQuery.useSuspenseInfiniteQuery(options)) });
29
+ };
30
+
31
+ //#endregion
32
+ Object.defineProperty(exports, 'SuspenseInfiniteQuery', {
33
+ enumerable: true,
34
+ get: function () {
35
+ return SuspenseInfiniteQuery;
36
+ }
37
+ });
38
+ //# sourceMappingURL=SuspenseInfiniteQuery-DChvWJAA.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SuspenseInfiniteQuery-DChvWJAA.cjs","names":["useSuspenseInfiniteQuery"],"sources":["../src/SuspenseInfiniteQuery.tsx"],"sourcesContent":["import type { QueryKey } from '@tanstack/react-query'\nimport type { ReactNode } from 'react'\nimport {\n type UseSuspenseInfiniteQueryOptions,\n type UseSuspenseInfiniteQueryResult,\n useSuspenseInfiniteQuery,\n} from './useSuspenseInfiniteQuery'\n\n/**\n * We provide these components to clearly express what causes suspense at the same depth.\n * `<SuspenseInfiniteQuery/>` serves to make `useSuspenseInfiniteQuery` easier to use in jsx.\n * @see {@link https://suspensive.org/docs/react-query/SuspenseInfiniteQuery Suspensive Docs}\n * @example\n * ```tsx\n * import { SuspenseInfiniteQuery } from '@suspensive/react-query'\n *\n * // You can use infiniteQueryOptions as props.\n * <SuspenseInfiniteQuery {...infiniteQueryOptions()}>\n * {({ data, fetchNextPage }) => {\n * return <></>\n * }}\n * </SuspenseInfiniteQuery>\n * ```\n */\nexport const SuspenseInfiniteQuery = <\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>({\n children,\n ...options\n}: UseSuspenseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey> & {\n children: (query: UseSuspenseInfiniteQueryResult<TData, TError>) => ReactNode\n}) => <>{children(useSuspenseInfiniteQuery(options))}</>\n"],"mappings":";;;;;;;;mBA8BE;;;;;;;;;;;;;;;;;AANF,MAAa,wBAAwB,UAU/B;KALJ,EACA,UAID,SAHI;AAGC,2FAAG,SAASA,0DAAyB,QAAQ,CAAC,GAAI"}
@@ -0,0 +1,34 @@
1
+ import { UseSuspenseInfiniteQueryOptions, UseSuspenseInfiniteQueryResult } from "./useSuspenseInfiniteQuery-DKVFCH7m.js";
2
+ import { QueryKey } from "@tanstack/react-query";
3
+ import * as react_jsx_runtime5 from "react/jsx-runtime";
4
+ import { ReactNode } from "react";
5
+
6
+ //#region src/SuspenseInfiniteQuery.d.ts
7
+
8
+ /**
9
+ * We provide these components to clearly express what causes suspense at the same depth.
10
+ * `<SuspenseInfiniteQuery/>` serves to make `useSuspenseInfiniteQuery` easier to use in jsx.
11
+ * @see {@link https://suspensive.org/docs/react-query/SuspenseInfiniteQuery Suspensive Docs}
12
+ * @example
13
+ * ```tsx
14
+ * import { SuspenseInfiniteQuery } from '@suspensive/react-query'
15
+ *
16
+ * // You can use infiniteQueryOptions as props.
17
+ * <SuspenseInfiniteQuery {...infiniteQueryOptions()}>
18
+ * {({ data, fetchNextPage }) => {
19
+ * return <></>
20
+ * }}
21
+ * </SuspenseInfiniteQuery>
22
+ * ```
23
+ */
24
+ declare const SuspenseInfiniteQuery: <TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>({
25
+ children,
26
+ ...options
27
+ }: UseSuspenseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey> & {
28
+ children: (query: UseSuspenseInfiniteQueryResult<TData, TError>) => ReactNode;
29
+ }) => react_jsx_runtime5.JSX.Element;
30
+ //# sourceMappingURL=SuspenseInfiniteQuery.d.ts.map
31
+
32
+ //#endregion
33
+ export { SuspenseInfiniteQuery };
34
+ //# sourceMappingURL=SuspenseInfiniteQuery-Dxj5pGKi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SuspenseInfiniteQuery-Dxj5pGKi.d.ts","names":[],"sources":["../src/SuspenseInfiniteQuery.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;AAwBA;;;;;;;;;;;;;AASoB,cATP,qBASO,EAAA,CAAA,eAAA,OAAA,EAAA,SAAA,OAAA,EAAA,QANV,YAMU,EAAA,kBALA,QAKA,GALW,QAKX,CAAA,CAAA;EAAA,QAAA;EAAA,GAAA;CAAA,EADjB,+BACiB,CADe,YACf,EAD6B,MAC7B,EADqC,KACrC,EAD4C,SAC5C,CAAA,GAAA;EAA8B,QAAoB,EAAA,CAAA,KAAA,EAAlD,8BAAkD,CAAnB,KAAmB,EAAZ,MAAY,CAAA,EAAA,GAAA,SAAA;CAAS,EAAA,GAC9E,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAuD"}
@@ -0,0 +1,34 @@
1
+ import { UseSuspenseInfiniteQueryOptions, UseSuspenseInfiniteQueryResult } from "./useSuspenseInfiniteQuery-BaOiPk5m.cjs";
2
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
3
+ import { QueryKey } from "@tanstack/react-query";
4
+ import { ReactNode } from "react";
5
+
6
+ //#region src/SuspenseInfiniteQuery.d.ts
7
+
8
+ /**
9
+ * We provide these components to clearly express what causes suspense at the same depth.
10
+ * `<SuspenseInfiniteQuery/>` serves to make `useSuspenseInfiniteQuery` easier to use in jsx.
11
+ * @see {@link https://suspensive.org/docs/react-query/SuspenseInfiniteQuery Suspensive Docs}
12
+ * @example
13
+ * ```tsx
14
+ * import { SuspenseInfiniteQuery } from '@suspensive/react-query'
15
+ *
16
+ * // You can use infiniteQueryOptions as props.
17
+ * <SuspenseInfiniteQuery {...infiniteQueryOptions()}>
18
+ * {({ data, fetchNextPage }) => {
19
+ * return <></>
20
+ * }}
21
+ * </SuspenseInfiniteQuery>
22
+ * ```
23
+ */
24
+ declare const SuspenseInfiniteQuery: <TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>({
25
+ children,
26
+ ...options
27
+ }: UseSuspenseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey> & {
28
+ children: (query: UseSuspenseInfiniteQueryResult<TData, TError>) => ReactNode;
29
+ }) => react_jsx_runtime3.JSX.Element;
30
+ //# sourceMappingURL=SuspenseInfiniteQuery.d.ts.map
31
+
32
+ //#endregion
33
+ export { SuspenseInfiniteQuery };
34
+ //# sourceMappingURL=SuspenseInfiniteQuery-e8hfwQaY.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SuspenseInfiniteQuery-e8hfwQaY.d.cts","names":[],"sources":["../src/SuspenseInfiniteQuery.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;AAwBA;;;;;;;;;;;;;AASoB,cATP,qBASO,EAAA,CAAA,eAAA,OAAA,EAAA,SAAA,OAAA,EAAA,QANV,YAMU,EAAA,kBALA,QAKA,GALW,QAKX,CAAA,CAAA;EAAA,QAAA;EAAA,GAAA;CAAA,EADjB,+BACiB,CADe,YACf,EAD6B,MAC7B,EADqC,KACrC,EAD4C,SAC5C,CAAA,GAAA;EAA8B,QAAoB,EAAA,CAAA,KAAA,EAAlD,8BAAkD,CAAnB,KAAmB,EAAZ,MAAY,CAAA,EAAA,GAAA,SAAA;CAAS,EAAA,GAC9E,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAuD"}
@@ -1,82 +1,6 @@
1
1
  "use client"
2
- "use strict";
3
- var __defProp = Object.defineProperty;
4
- var __defProps = Object.defineProperties;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
- var __getOwnPropNames = Object.getOwnPropertyNames;
8
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
- var __hasOwnProp = Object.prototype.hasOwnProperty;
10
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
- var __spreadValues = (a, b) => {
13
- for (var prop in b || (b = {}))
14
- if (__hasOwnProp.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- if (__getOwnPropSymbols)
17
- for (var prop of __getOwnPropSymbols(b)) {
18
- if (__propIsEnum.call(b, prop))
19
- __defNormalProp(a, prop, b[prop]);
20
- }
21
- return a;
22
- };
23
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
24
- var __objRest = (source, exclude) => {
25
- var target = {};
26
- for (var prop in source)
27
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
28
- target[prop] = source[prop];
29
- if (source != null && __getOwnPropSymbols)
30
- for (var prop of __getOwnPropSymbols(source)) {
31
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
32
- target[prop] = source[prop];
33
- }
34
- return target;
35
- };
36
- var __export = (target, all) => {
37
- for (var name in all)
38
- __defProp(target, name, { get: all[name], enumerable: true });
39
- };
40
- var __copyProps = (to, from, except, desc) => {
41
- if (from && typeof from === "object" || typeof from === "function") {
42
- for (let key of __getOwnPropNames(from))
43
- if (!__hasOwnProp.call(to, key) && key !== except)
44
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
45
- }
46
- return to;
47
- };
48
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
2
+ require('./objectWithoutProperties-CxgYxkGP.cjs');
3
+ require('./useSuspenseInfiniteQuery-CQGzIDyv.cjs');
4
+ const require_SuspenseInfiniteQuery = require('./SuspenseInfiniteQuery-DChvWJAA.cjs');
49
5
 
50
- // src/SuspenseInfiniteQuery.tsx
51
- var SuspenseInfiniteQuery_exports = {};
52
- __export(SuspenseInfiniteQuery_exports, {
53
- SuspenseInfiniteQuery: () => SuspenseInfiniteQuery
54
- });
55
- module.exports = __toCommonJS(SuspenseInfiniteQuery_exports);
56
-
57
- // src/useSuspenseInfiniteQuery.ts
58
- var import_react_query = require("@tanstack/react-query");
59
- function useSuspenseInfiniteQuery(options) {
60
- return (0, import_react_query.useInfiniteQuery)(__spreadProps(__spreadValues({}, options), {
61
- enabled: true,
62
- suspense: true,
63
- useErrorBoundary: true,
64
- networkMode: "always"
65
- }));
66
- }
67
-
68
- // src/SuspenseInfiniteQuery.tsx
69
- var import_jsx_runtime = require("react/jsx-runtime");
70
- var SuspenseInfiniteQuery = (_a) => {
71
- var _b = _a, {
72
- children
73
- } = _b, options = __objRest(_b, [
74
- "children"
75
- ]);
76
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: children(useSuspenseInfiniteQuery(options)) });
77
- };
78
- // Annotate the CommonJS export names for ESM import in node:
79
- 0 && (module.exports = {
80
- SuspenseInfiniteQuery
81
- });
82
- //# sourceMappingURL=SuspenseInfiniteQuery.cjs.map
6
+ exports.SuspenseInfiniteQuery = require_SuspenseInfiniteQuery.SuspenseInfiniteQuery;
@@ -1,26 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { QueryKey } from '@tanstack/react-query';
3
- import { ReactNode } from 'react';
4
- import { UseSuspenseInfiniteQueryOptions, UseSuspenseInfiniteQueryResult } from './useSuspenseInfiniteQuery.cjs';
5
-
6
- /**
7
- * We provide these components to clearly express what causes suspense at the same depth.
8
- * `<SuspenseInfiniteQuery/>` serves to make `useSuspenseInfiniteQuery` easier to use in jsx.
9
- * @see {@link https://suspensive.org/docs/react-query/SuspenseInfiniteQuery Suspensive Docs}
10
- * @example
11
- * ```tsx
12
- * import { SuspenseInfiniteQuery } from '@suspensive/react-query'
13
- *
14
- * // You can use infiniteQueryOptions as props.
15
- * <SuspenseInfiniteQuery {...infiniteQueryOptions()}>
16
- * {({ data, fetchNextPage }) => {
17
- * return <></>
18
- * }}
19
- * </SuspenseInfiniteQuery>
20
- * ```
21
- */
22
- declare const SuspenseInfiniteQuery: <TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>({ children, ...options }: UseSuspenseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey> & {
23
- children: (query: UseSuspenseInfiniteQueryResult<TData, TError>) => ReactNode;
24
- }) => react_jsx_runtime.JSX.Element;
25
-
26
- export { SuspenseInfiniteQuery };
1
+ import "./useSuspenseInfiniteQuery-BaOiPk5m.cjs";
2
+ import { SuspenseInfiniteQuery } from "./SuspenseInfiniteQuery-e8hfwQaY.cjs";
3
+ export { SuspenseInfiniteQuery };
@@ -1,26 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { QueryKey } from '@tanstack/react-query';
3
- import { ReactNode } from 'react';
4
- import { UseSuspenseInfiniteQueryOptions, UseSuspenseInfiniteQueryResult } from './useSuspenseInfiniteQuery.js';
5
-
6
- /**
7
- * We provide these components to clearly express what causes suspense at the same depth.
8
- * `<SuspenseInfiniteQuery/>` serves to make `useSuspenseInfiniteQuery` easier to use in jsx.
9
- * @see {@link https://suspensive.org/docs/react-query/SuspenseInfiniteQuery Suspensive Docs}
10
- * @example
11
- * ```tsx
12
- * import { SuspenseInfiniteQuery } from '@suspensive/react-query'
13
- *
14
- * // You can use infiniteQueryOptions as props.
15
- * <SuspenseInfiniteQuery {...infiniteQueryOptions()}>
16
- * {({ data, fetchNextPage }) => {
17
- * return <></>
18
- * }}
19
- * </SuspenseInfiniteQuery>
20
- * ```
21
- */
22
- declare const SuspenseInfiniteQuery: <TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>({ children, ...options }: UseSuspenseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey> & {
23
- children: (query: UseSuspenseInfiniteQueryResult<TData, TError>) => ReactNode;
24
- }) => react_jsx_runtime.JSX.Element;
25
-
26
- export { SuspenseInfiniteQuery };
1
+ import "./useSuspenseInfiniteQuery-DKVFCH7m.js";
2
+ import { SuspenseInfiniteQuery } from "./SuspenseInfiniteQuery-Dxj5pGKi.js";
3
+ export { SuspenseInfiniteQuery };
@@ -1,10 +1,6 @@
1
1
  "use client"
2
- import {
3
- SuspenseInfiniteQuery
4
- } from "./chunk-CLWCIHTL.js";
5
- import "./chunk-BOUCJMBU.js";
6
- import "./chunk-QETBZSG5.js";
7
- export {
8
- SuspenseInfiniteQuery
9
- };
10
- //# sourceMappingURL=SuspenseInfiniteQuery.js.map
2
+ import "./objectWithoutProperties-D3Ub7JDI.js";
3
+ import "./useSuspenseInfiniteQuery-B3Mk1jMY.js";
4
+ import { SuspenseInfiniteQuery } from "./SuspenseInfiniteQuery-CeQzWPZw.js";
5
+
6
+ export { SuspenseInfiniteQuery };
@@ -0,0 +1,32 @@
1
+ import { SuspenseQueriesOptions, SuspenseQueriesResults } from "@tanstack/react-query";
2
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
3
+ import { ReactNode } from "react";
4
+
5
+ //#region src/SuspenseQueries.d.ts
6
+
7
+ /**
8
+ * We provide these components to clearly express what causes suspense at the same depth.
9
+ * `<SuspenseQueries/>` serves to make `useSuspenseQueries` easier to use in jsx.
10
+ * @see {@link https://suspensive.org/docs/react-query/SuspenseQueries Suspensive Docs}
11
+ * @example
12
+ * ```tsx
13
+ * import { SuspenseQueries } from '@suspensive/react-query'
14
+ *
15
+ * <SuspenseQueries queries={[firstQueryOptions(), secondQueryOptions()]}>
16
+ * {([{ data: firstQueryData }, { data: secondQueryData }]) => {
17
+ * return <></>
18
+ * }}
19
+ * </SuspenseQueries>
20
+ * ```
21
+ */
22
+ declare function SuspenseQueries<T extends any[]>({
23
+ children,
24
+ queries
25
+ }: {
26
+ queries: readonly [...SuspenseQueriesOptions<T>];
27
+ children: (queries: SuspenseQueriesResults<T>) => ReactNode;
28
+ }): react_jsx_runtime3.JSX.Element;
29
+ //# sourceMappingURL=SuspenseQueries.d.ts.map
30
+ //#endregion
31
+ export { SuspenseQueries };
32
+ //# sourceMappingURL=SuspenseQueries-CCwTitaN.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SuspenseQueries-CCwTitaN.d.ts","names":[],"sources":["../src/SuspenseQueries.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;AAkBA;;;;;;;;;;AAMC;;iBANe;;;;wBAIQ,uBAAuB;sBACzB,uBAAuB,OAAO;IACnD,kBAAA,CAAA,GAAA,CAAA"}
@@ -0,0 +1,32 @@
1
+ import * as react_jsx_runtime4 from "react/jsx-runtime";
2
+ import { SuspenseQueriesOptions, SuspenseQueriesResults } from "@tanstack/react-query";
3
+ import { ReactNode } from "react";
4
+
5
+ //#region src/SuspenseQueries.d.ts
6
+
7
+ /**
8
+ * We provide these components to clearly express what causes suspense at the same depth.
9
+ * `<SuspenseQueries/>` serves to make `useSuspenseQueries` easier to use in jsx.
10
+ * @see {@link https://suspensive.org/docs/react-query/SuspenseQueries Suspensive Docs}
11
+ * @example
12
+ * ```tsx
13
+ * import { SuspenseQueries } from '@suspensive/react-query'
14
+ *
15
+ * <SuspenseQueries queries={[firstQueryOptions(), secondQueryOptions()]}>
16
+ * {([{ data: firstQueryData }, { data: secondQueryData }]) => {
17
+ * return <></>
18
+ * }}
19
+ * </SuspenseQueries>
20
+ * ```
21
+ */
22
+ declare function SuspenseQueries<T extends any[]>({
23
+ children,
24
+ queries
25
+ }: {
26
+ queries: readonly [...SuspenseQueriesOptions<T>];
27
+ children: (queries: SuspenseQueriesResults<T>) => ReactNode;
28
+ }): react_jsx_runtime4.JSX.Element;
29
+ //# sourceMappingURL=SuspenseQueries.d.ts.map
30
+ //#endregion
31
+ export { SuspenseQueries };
32
+ //# sourceMappingURL=SuspenseQueries-CQGWMfTp.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SuspenseQueries-CQGWMfTp.d.cts","names":[],"sources":["../src/SuspenseQueries.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;AAkBA;;;;;;;;;;AAMC;;iBANe;;;;wBAIQ,uBAAuB;sBACzB,uBAAuB,OAAO;IACnD,kBAAA,CAAA,GAAA,CAAA"}
@@ -0,0 +1,27 @@
1
+ "use client"
2
+ import { useSuspenseQueries } from "@tanstack/react-query";
3
+ import { Fragment, jsx } from "react/jsx-runtime";
4
+
5
+ //#region src/SuspenseQueries.tsx
6
+ /**
7
+ * We provide these components to clearly express what causes suspense at the same depth.
8
+ * `<SuspenseQueries/>` serves to make `useSuspenseQueries` easier to use in jsx.
9
+ * @see {@link https://suspensive.org/docs/react-query/SuspenseQueries Suspensive Docs}
10
+ * @example
11
+ * ```tsx
12
+ * import { SuspenseQueries } from '@suspensive/react-query'
13
+ *
14
+ * <SuspenseQueries queries={[firstQueryOptions(), secondQueryOptions()]}>
15
+ * {([{ data: firstQueryData }, { data: secondQueryData }]) => {
16
+ * return <></>
17
+ * }}
18
+ * </SuspenseQueries>
19
+ * ```
20
+ */
21
+ function SuspenseQueries({ children, queries }) {
22
+ return /* @__PURE__ */ jsx(Fragment, { children: children(useSuspenseQueries({ queries })) });
23
+ }
24
+
25
+ //#endregion
26
+ export { SuspenseQueries };
27
+ //# sourceMappingURL=SuspenseQueries-bitBYcdo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SuspenseQueries-bitBYcdo.js","names":[],"sources":["../src/SuspenseQueries.tsx"],"sourcesContent":["import { type SuspenseQueriesOptions, type SuspenseQueriesResults, useSuspenseQueries } from '@tanstack/react-query'\nimport type { ReactNode } from 'react'\n\n/**\n * We provide these components to clearly express what causes suspense at the same depth.\n * `<SuspenseQueries/>` serves to make `useSuspenseQueries` easier to use in jsx.\n * @see {@link https://suspensive.org/docs/react-query/SuspenseQueries Suspensive Docs}\n * @example\n * ```tsx\n * import { SuspenseQueries } from '@suspensive/react-query'\n *\n * <SuspenseQueries queries={[firstQueryOptions(), secondQueryOptions()]}>\n * {([{ data: firstQueryData }, { data: secondQueryData }]) => {\n * return <></>\n * }}\n * </SuspenseQueries>\n * ```\n */\nexport function SuspenseQueries<T extends any[]>({\n children,\n queries,\n}: {\n queries: readonly [...SuspenseQueriesOptions<T>]\n children: (queries: SuspenseQueriesResults<T>) => ReactNode\n}) {\n return <>{children(useSuspenseQueries({ queries }))}</>\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAkBA,SAAgB,gBAAiC,EAC/C,UACA,SAID,EAAE;AACD,kDAAU,SAAS,mBAAmB,EAAE,QAAS,EAAC,CAAC,GAAI;AACxD"}