@kubb/plugin-react-query 3.16.2 → 3.16.4

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 (38) hide show
  1. package/dist/components-CuByb-hX.js +903 -0
  2. package/dist/components-CuByb-hX.js.map +1 -0
  3. package/dist/components-DHfUELJ3.cjs +979 -0
  4. package/dist/components-DHfUELJ3.cjs.map +1 -0
  5. package/dist/components.cjs +10 -40
  6. package/dist/components.d.cts +306 -146
  7. package/dist/components.d.ts +306 -146
  8. package/dist/components.js +3 -3
  9. package/dist/generators-CNHKYwqU.js +722 -0
  10. package/dist/generators-CNHKYwqU.js.map +1 -0
  11. package/dist/generators-kx0B_Nkc.cjs +745 -0
  12. package/dist/{chunk-2LUZUNTA.js.map → generators-kx0B_Nkc.cjs.map} +1 -1
  13. package/dist/generators.cjs +6 -24
  14. package/dist/generators.d.cts +14 -13
  15. package/dist/generators.d.ts +14 -13
  16. package/dist/generators.js +4 -4
  17. package/dist/index.cjs +120 -145
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.d.cts +6 -8
  20. package/dist/index.d.ts +6 -8
  21. package/dist/index.js +120 -139
  22. package/dist/index.js.map +1 -1
  23. package/dist/types-5X0s8utE.d.cts +1391 -0
  24. package/dist/types-BTEmPwHJ.d.ts +1391 -0
  25. package/package.json +23 -28
  26. package/dist/chunk-2LUZUNTA.js +0 -588
  27. package/dist/chunk-7VVTPMRL.cjs +0 -788
  28. package/dist/chunk-7VVTPMRL.cjs.map +0 -1
  29. package/dist/chunk-LT467H44.js +0 -779
  30. package/dist/chunk-LT467H44.js.map +0 -1
  31. package/dist/chunk-PIAL3C5M.cjs +0 -593
  32. package/dist/chunk-PIAL3C5M.cjs.map +0 -1
  33. package/dist/components.cjs.map +0 -1
  34. package/dist/components.js.map +0 -1
  35. package/dist/generators.cjs.map +0 -1
  36. package/dist/generators.js.map +0 -1
  37. package/dist/types-BdjqYAq1.d.cts +0 -170
  38. package/dist/types-BdjqYAq1.d.ts +0 -170
@@ -0,0 +1,979 @@
1
+ //#region rolldown:runtime
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
10
+ key = keys[i];
11
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
12
+ get: ((k) => from[k]).bind(null, key),
13
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
14
+ });
15
+ }
16
+ return to;
17
+ };
18
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
19
+ value: mod,
20
+ enumerable: true
21
+ }) : target, mod));
22
+
23
+ //#endregion
24
+ const __kubb_react = __toESM(require("@kubb/react"));
25
+ const __kubb_oas = __toESM(require("@kubb/oas"));
26
+ const __kubb_plugin_client_components = __toESM(require("@kubb/plugin-client/components"));
27
+ const __kubb_plugin_oas_utils = __toESM(require("@kubb/plugin-oas/utils"));
28
+ const __kubb_core_utils = __toESM(require("@kubb/core/utils"));
29
+ const __kubb_react_jsx_runtime = __toESM(require("@kubb/react/jsx-runtime"));
30
+
31
+ //#region src/components/MutationKey.tsx
32
+ function getParams$7({}) {
33
+ return __kubb_react.FunctionParams.factory({});
34
+ }
35
+ const getTransformer$1 = ({ operation, casing }) => {
36
+ const path = new __kubb_core_utils.URLPath(operation.path, { casing });
37
+ return [JSON.stringify({ url: path.path })].filter(Boolean);
38
+ };
39
+ function MutationKey({ name, typeSchemas, pathParamsType, paramsCasing, operation, typeName, transformer = getTransformer$1 }) {
40
+ const params = getParams$7({
41
+ pathParamsType,
42
+ typeSchemas
43
+ });
44
+ const keys = transformer({
45
+ operation,
46
+ schemas: typeSchemas,
47
+ casing: paramsCasing
48
+ });
49
+ return /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsxs)(__kubb_react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Source, {
50
+ name,
51
+ isExportable: true,
52
+ isIndexable: true,
53
+ children: /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.Function.Arrow, {
54
+ name,
55
+ export: true,
56
+ params: params.toConstructor(),
57
+ singleLine: true,
58
+ children: `[${keys.join(", ")}] as const`
59
+ })
60
+ }), /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Source, {
61
+ name: typeName,
62
+ isExportable: true,
63
+ isIndexable: true,
64
+ isTypeOnly: true,
65
+ children: /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.Type, {
66
+ name: typeName,
67
+ export: true,
68
+ children: `ReturnType<typeof ${name}>`
69
+ })
70
+ })] });
71
+ }
72
+ MutationKey.getParams = getParams$7;
73
+ MutationKey.getTransformer = getTransformer$1;
74
+
75
+ //#endregion
76
+ //#region src/components/Mutation.tsx
77
+ function getParams$6({ paramsCasing, dataReturnType, typeSchemas }) {
78
+ const TData = dataReturnType === "data" ? typeSchemas.response.name : `ResponseConfig<${typeSchemas.response.name}>`;
79
+ const mutationParams = __kubb_react.FunctionParams.factory({
80
+ ...(0, __kubb_plugin_oas_utils.getPathParams)(typeSchemas.pathParams, {
81
+ typed: true,
82
+ casing: paramsCasing
83
+ }),
84
+ data: typeSchemas.request?.name ? {
85
+ type: typeSchemas.request?.name,
86
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.request?.schema)
87
+ } : void 0,
88
+ params: typeSchemas.queryParams?.name ? {
89
+ type: typeSchemas.queryParams?.name,
90
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.queryParams?.schema)
91
+ } : void 0,
92
+ headers: typeSchemas.headerParams?.name ? {
93
+ type: typeSchemas.headerParams?.name,
94
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.headerParams?.schema)
95
+ } : void 0
96
+ });
97
+ const TRequest = mutationParams.toConstructor();
98
+ const TError = `ResponseErrorConfig<${typeSchemas.errors?.map((item) => item.name).join(" | ") || "Error"}>`;
99
+ const generics = [
100
+ TData,
101
+ TError,
102
+ TRequest ? `{${TRequest}}` : "void",
103
+ "TContext"
104
+ ].join(", ");
105
+ return __kubb_react.FunctionParams.factory({ options: {
106
+ type: `
107
+ {
108
+ mutation?: UseMutationOptions<${generics}> & { client?: QueryClient },
109
+ client?: ${typeSchemas.request?.name ? `Partial<RequestConfig<${typeSchemas.request?.name}>> & { client?: typeof fetch }` : "Partial<RequestConfig> & { client?: typeof fetch }"},
110
+ }
111
+ `,
112
+ default: "{}"
113
+ } });
114
+ }
115
+ function Mutation({ name, clientName, paramsCasing, paramsType, pathParamsType, dataReturnType, typeSchemas, operation, mutationKeyName }) {
116
+ const mutationKeyParams = MutationKey.getParams({
117
+ pathParamsType,
118
+ typeSchemas
119
+ });
120
+ const params = getParams$6({
121
+ paramsCasing,
122
+ pathParamsType,
123
+ dataReturnType,
124
+ typeSchemas
125
+ });
126
+ const clientParams = __kubb_plugin_client_components.Client.getParams({
127
+ paramsCasing,
128
+ paramsType,
129
+ typeSchemas,
130
+ pathParamsType,
131
+ isConfigurable: true
132
+ });
133
+ const mutationParams = __kubb_react.FunctionParams.factory({
134
+ ...(0, __kubb_plugin_oas_utils.getPathParams)(typeSchemas.pathParams, {
135
+ typed: true,
136
+ casing: paramsCasing
137
+ }),
138
+ data: typeSchemas.request?.name ? {
139
+ type: typeSchemas.request?.name,
140
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.request?.schema)
141
+ } : void 0,
142
+ params: typeSchemas.queryParams?.name ? {
143
+ type: typeSchemas.queryParams?.name,
144
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.queryParams?.schema)
145
+ } : void 0,
146
+ headers: typeSchemas.headerParams?.name ? {
147
+ type: typeSchemas.headerParams?.name,
148
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.headerParams?.schema)
149
+ } : void 0
150
+ });
151
+ const dataParams = __kubb_react.FunctionParams.factory({ data: {
152
+ mode: "object",
153
+ children: Object.entries(mutationParams.params).reduce((acc, [key, value]) => {
154
+ if (value) acc[key] = {
155
+ ...value,
156
+ type: void 0
157
+ };
158
+ return acc;
159
+ }, {})
160
+ } });
161
+ const TRequest = mutationParams.toConstructor();
162
+ const TData = dataReturnType === "data" ? typeSchemas.response.name : `ResponseConfig<${typeSchemas.response.name}>`;
163
+ const TError = `ResponseErrorConfig<${typeSchemas.errors?.map((item) => item.name).join(" | ") || "Error"}>`;
164
+ const generics = [
165
+ TData,
166
+ TError,
167
+ TRequest ? `{${TRequest}}` : "void",
168
+ "TContext"
169
+ ].join(", ");
170
+ return /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Source, {
171
+ name,
172
+ isExportable: true,
173
+ isIndexable: true,
174
+ children: /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.Function, {
175
+ name,
176
+ export: true,
177
+ params: params.toConstructor(),
178
+ JSDoc: { comments: (0, __kubb_plugin_oas_utils.getComments)(operation) },
179
+ generics: ["TContext"],
180
+ children: `
181
+ const { mutation = {}, client: config = {} } = options ?? {}
182
+ const { client: queryClient, ...mutationOptions } = mutation;
183
+ const mutationKey = mutationOptions.mutationKey ?? ${mutationKeyName}(${mutationKeyParams.toCall()})
184
+
185
+ return useMutation<${generics}>({
186
+ mutationFn: async(${dataParams.toConstructor()}) => {
187
+ return ${clientName}(${clientParams.toCall()})
188
+ },
189
+ mutationKey,
190
+ ...mutationOptions
191
+ }, queryClient)
192
+ `
193
+ })
194
+ });
195
+ }
196
+
197
+ //#endregion
198
+ //#region src/components/QueryKey.tsx
199
+ function getParams$5({ pathParamsType, paramsCasing, typeSchemas }) {
200
+ return __kubb_react.FunctionParams.factory({
201
+ pathParams: {
202
+ mode: pathParamsType === "object" ? "object" : "inlineSpread",
203
+ children: (0, __kubb_plugin_oas_utils.getPathParams)(typeSchemas.pathParams, {
204
+ typed: true,
205
+ casing: paramsCasing
206
+ })
207
+ },
208
+ data: typeSchemas.request?.name ? {
209
+ type: typeSchemas.request?.name,
210
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.request?.schema)
211
+ } : void 0,
212
+ params: typeSchemas.queryParams?.name ? {
213
+ type: typeSchemas.queryParams?.name,
214
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.queryParams?.schema)
215
+ } : void 0
216
+ });
217
+ }
218
+ const getTransformer = ({ operation, schemas, casing }) => {
219
+ const path = new __kubb_core_utils.URLPath(operation.path, { casing });
220
+ const keys = [
221
+ path.toObject({
222
+ type: "path",
223
+ stringify: true
224
+ }),
225
+ schemas.queryParams?.name ? "...(params ? [params] : [])" : void 0,
226
+ schemas.request?.name ? "...(data ? [data] : [])" : void 0
227
+ ].filter(Boolean);
228
+ return keys;
229
+ };
230
+ function QueryKey({ name, typeSchemas, paramsCasing, pathParamsType, operation, typeName, transformer = getTransformer }) {
231
+ const params = getParams$5({
232
+ pathParamsType,
233
+ typeSchemas,
234
+ paramsCasing
235
+ });
236
+ const keys = transformer({
237
+ operation,
238
+ schemas: typeSchemas,
239
+ casing: paramsCasing
240
+ });
241
+ return /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsxs)(__kubb_react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Source, {
242
+ name,
243
+ isExportable: true,
244
+ isIndexable: true,
245
+ children: /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.Function.Arrow, {
246
+ name,
247
+ export: true,
248
+ params: params.toConstructor(),
249
+ singleLine: true,
250
+ children: `[${keys.join(", ")}] as const`
251
+ })
252
+ }), /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Source, {
253
+ name: typeName,
254
+ isExportable: true,
255
+ isIndexable: true,
256
+ isTypeOnly: true,
257
+ children: /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.Type, {
258
+ name: typeName,
259
+ export: true,
260
+ children: `ReturnType<typeof ${name}>`
261
+ })
262
+ })] });
263
+ }
264
+ QueryKey.getParams = getParams$5;
265
+ QueryKey.getTransformer = getTransformer;
266
+
267
+ //#endregion
268
+ //#region src/components/QueryOptions.tsx
269
+ function getParams$4({ paramsType, paramsCasing, pathParamsType, typeSchemas }) {
270
+ if (paramsType === "object") return __kubb_react.FunctionParams.factory({
271
+ data: {
272
+ mode: "object",
273
+ children: {
274
+ ...(0, __kubb_plugin_oas_utils.getPathParams)(typeSchemas.pathParams, {
275
+ typed: true,
276
+ casing: paramsCasing
277
+ }),
278
+ data: typeSchemas.request?.name ? {
279
+ type: typeSchemas.request?.name,
280
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.request?.schema)
281
+ } : void 0,
282
+ params: typeSchemas.queryParams?.name ? {
283
+ type: typeSchemas.queryParams?.name,
284
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.queryParams?.schema)
285
+ } : void 0,
286
+ headers: typeSchemas.headerParams?.name ? {
287
+ type: typeSchemas.headerParams?.name,
288
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.headerParams?.schema)
289
+ } : void 0
290
+ }
291
+ },
292
+ config: {
293
+ type: typeSchemas.request?.name ? `Partial<RequestConfig<${typeSchemas.request?.name}>> & { client?: typeof fetch }` : "Partial<RequestConfig> & { client?: typeof fetch }",
294
+ default: "{}"
295
+ }
296
+ });
297
+ return __kubb_react.FunctionParams.factory({
298
+ pathParams: typeSchemas.pathParams?.name ? {
299
+ mode: pathParamsType === "object" ? "object" : "inlineSpread",
300
+ children: (0, __kubb_plugin_oas_utils.getPathParams)(typeSchemas.pathParams, {
301
+ typed: true,
302
+ casing: paramsCasing
303
+ }),
304
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.pathParams?.schema)
305
+ } : void 0,
306
+ data: typeSchemas.request?.name ? {
307
+ type: typeSchemas.request?.name,
308
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.request?.schema)
309
+ } : void 0,
310
+ params: typeSchemas.queryParams?.name ? {
311
+ type: typeSchemas.queryParams?.name,
312
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.queryParams?.schema)
313
+ } : void 0,
314
+ headers: typeSchemas.headerParams?.name ? {
315
+ type: typeSchemas.headerParams?.name,
316
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.headerParams?.schema)
317
+ } : void 0,
318
+ config: {
319
+ type: typeSchemas.request?.name ? `Partial<RequestConfig<${typeSchemas.request?.name}>> & { client?: typeof fetch }` : "Partial<RequestConfig> & { client?: typeof fetch }",
320
+ default: "{}"
321
+ }
322
+ });
323
+ }
324
+ function QueryOptions({ name, clientName, dataReturnType, typeSchemas, paramsCasing, paramsType, pathParamsType, queryKeyName }) {
325
+ const params = getParams$4({
326
+ paramsType,
327
+ paramsCasing,
328
+ pathParamsType,
329
+ typeSchemas
330
+ });
331
+ const TData = dataReturnType === "data" ? typeSchemas.response.name : `ResponseConfig<${typeSchemas.response.name}>`;
332
+ const TError = typeSchemas.errors?.map((item) => item.name).join(" | ") || "Error";
333
+ const clientParams = __kubb_plugin_client_components.Client.getParams({
334
+ typeSchemas,
335
+ paramsCasing,
336
+ paramsType,
337
+ pathParamsType,
338
+ isConfigurable: true
339
+ });
340
+ const queryKeyParams = QueryKey.getParams({
341
+ pathParamsType,
342
+ typeSchemas,
343
+ paramsCasing
344
+ });
345
+ const enabled = Object.entries(queryKeyParams.flatParams).map(([key, item]) => item && !item.optional ? key : void 0).filter(Boolean).join("&& ");
346
+ const enabledText = enabled ? `enabled: !!(${enabled}),` : "";
347
+ return /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Source, {
348
+ name,
349
+ isExportable: true,
350
+ isIndexable: true,
351
+ children: /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.Function, {
352
+ name,
353
+ export: true,
354
+ params: params.toConstructor(),
355
+ children: `
356
+ const queryKey = ${queryKeyName}(${queryKeyParams.toCall()})
357
+ return queryOptions<${TData}, ResponseErrorConfig<${TError}>, ${TData}, typeof queryKey>({
358
+ ${enabledText}
359
+ queryKey,
360
+ queryFn: async ({ signal }) => {
361
+ config.signal = signal
362
+ return ${clientName}(${clientParams.toCall({})})
363
+ },
364
+ })
365
+ `
366
+ })
367
+ });
368
+ }
369
+ QueryOptions.getParams = getParams$4;
370
+
371
+ //#endregion
372
+ //#region src/components/Query.tsx
373
+ function getParams$3({ paramsType, paramsCasing, pathParamsType, dataReturnType, typeSchemas }) {
374
+ const TData = dataReturnType === "data" ? typeSchemas.response.name : `ResponseConfig<${typeSchemas.response.name}>`;
375
+ const TError = `ResponseErrorConfig<${typeSchemas.errors?.map((item) => item.name).join(" | ") || "Error"}>`;
376
+ if (paramsType === "object") return __kubb_react.FunctionParams.factory({
377
+ data: {
378
+ mode: "object",
379
+ children: {
380
+ ...(0, __kubb_plugin_oas_utils.getPathParams)(typeSchemas.pathParams, {
381
+ typed: true,
382
+ casing: paramsCasing
383
+ }),
384
+ data: typeSchemas.request?.name ? {
385
+ type: typeSchemas.request?.name,
386
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.request?.schema)
387
+ } : void 0,
388
+ params: typeSchemas.queryParams?.name ? {
389
+ type: typeSchemas.queryParams?.name,
390
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.queryParams?.schema)
391
+ } : void 0,
392
+ headers: typeSchemas.headerParams?.name ? {
393
+ type: typeSchemas.headerParams?.name,
394
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.headerParams?.schema)
395
+ } : void 0
396
+ }
397
+ },
398
+ options: {
399
+ type: `
400
+ {
401
+ query?: Partial<QueryObserverOptions<${[
402
+ TData,
403
+ TError,
404
+ "TData",
405
+ "TQueryData",
406
+ "TQueryKey"
407
+ ].join(", ")}>> & { client?: QueryClient },
408
+ client?: ${typeSchemas.request?.name ? `Partial<RequestConfig<${typeSchemas.request?.name}>> & { client?: typeof fetch }` : "Partial<RequestConfig> & { client?: typeof fetch }"}
409
+ }
410
+ `,
411
+ default: "{}"
412
+ }
413
+ });
414
+ return __kubb_react.FunctionParams.factory({
415
+ pathParams: typeSchemas.pathParams?.name ? {
416
+ mode: pathParamsType === "object" ? "object" : "inlineSpread",
417
+ children: (0, __kubb_plugin_oas_utils.getPathParams)(typeSchemas.pathParams, {
418
+ typed: true,
419
+ casing: paramsCasing
420
+ }),
421
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.pathParams?.schema)
422
+ } : void 0,
423
+ data: typeSchemas.request?.name ? {
424
+ type: typeSchemas.request?.name,
425
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.request?.schema)
426
+ } : void 0,
427
+ params: typeSchemas.queryParams?.name ? {
428
+ type: typeSchemas.queryParams?.name,
429
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.queryParams?.schema)
430
+ } : void 0,
431
+ headers: typeSchemas.headerParams?.name ? {
432
+ type: typeSchemas.headerParams?.name,
433
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.headerParams?.schema)
434
+ } : void 0,
435
+ options: {
436
+ type: `
437
+ {
438
+ query?: Partial<QueryObserverOptions<${[
439
+ TData,
440
+ TError,
441
+ "TData",
442
+ "TQueryData",
443
+ "TQueryKey"
444
+ ].join(", ")}>> & { client?: QueryClient },
445
+ client?: ${typeSchemas.request?.name ? `Partial<RequestConfig<${typeSchemas.request?.name}>> & { client?: typeof fetch }` : "Partial<RequestConfig> & { client?: typeof fetch }"}
446
+ }
447
+ `,
448
+ default: "{}"
449
+ }
450
+ });
451
+ }
452
+ function Query({ name, queryKeyTypeName, queryOptionsName, queryKeyName, paramsType, paramsCasing, pathParamsType, dataReturnType, typeSchemas, operation }) {
453
+ const TData = dataReturnType === "data" ? typeSchemas.response.name : `ResponseConfig<${typeSchemas.response.name}>`;
454
+ const TError = `ResponseErrorConfig<${typeSchemas.errors?.map((item) => item.name).join(" | ") || "Error"}>`;
455
+ const returnType = `UseQueryResult<${["TData", TError].join(", ")}> & { queryKey: TQueryKey }`;
456
+ const generics = [
457
+ `TData = ${TData}`,
458
+ `TQueryData = ${TData}`,
459
+ `TQueryKey extends QueryKey = ${queryKeyTypeName}`
460
+ ];
461
+ const queryKeyParams = QueryKey.getParams({
462
+ pathParamsType,
463
+ typeSchemas,
464
+ paramsCasing
465
+ });
466
+ const queryOptionsParams = QueryOptions.getParams({
467
+ paramsType,
468
+ pathParamsType,
469
+ typeSchemas,
470
+ paramsCasing
471
+ });
472
+ const params = getParams$3({
473
+ paramsCasing,
474
+ paramsType,
475
+ pathParamsType,
476
+ dataReturnType,
477
+ typeSchemas
478
+ });
479
+ const queryOptions = `${queryOptionsName}(${queryOptionsParams.toCall()})`;
480
+ return /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Source, {
481
+ name,
482
+ isExportable: true,
483
+ isIndexable: true,
484
+ children: /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.Function, {
485
+ name,
486
+ export: true,
487
+ generics: generics.join(", "),
488
+ params: params.toConstructor(),
489
+ JSDoc: { comments: (0, __kubb_plugin_oas_utils.getComments)(operation) },
490
+ children: `
491
+ const { query: { client: queryClient, ...queryOptions } = {}, client: config = {} } = options ?? {}
492
+ const queryKey = queryOptions?.queryKey ?? ${queryKeyName}(${queryKeyParams.toCall()})
493
+
494
+ const query = useQuery({
495
+ ...${queryOptions},
496
+ queryKey,
497
+ ...queryOptions
498
+ } as unknown as QueryObserverOptions, queryClient) as ${returnType}
499
+
500
+ query.queryKey = queryKey as TQueryKey
501
+
502
+ return query
503
+ `
504
+ })
505
+ });
506
+ }
507
+ Query.getParams = getParams$3;
508
+
509
+ //#endregion
510
+ //#region src/components/InfiniteQueryOptions.tsx
511
+ function getParams$2({ paramsType, paramsCasing, pathParamsType, typeSchemas }) {
512
+ if (paramsType === "object") return __kubb_react.FunctionParams.factory({
513
+ data: {
514
+ mode: "object",
515
+ children: {
516
+ ...(0, __kubb_plugin_oas_utils.getPathParams)(typeSchemas.pathParams, {
517
+ typed: true,
518
+ casing: paramsCasing
519
+ }),
520
+ data: typeSchemas.request?.name ? {
521
+ type: typeSchemas.request?.name,
522
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.request?.schema)
523
+ } : void 0,
524
+ params: typeSchemas.queryParams?.name ? {
525
+ type: typeSchemas.queryParams?.name,
526
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.queryParams?.schema)
527
+ } : void 0,
528
+ headers: typeSchemas.headerParams?.name ? {
529
+ type: typeSchemas.headerParams?.name,
530
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.headerParams?.schema)
531
+ } : void 0
532
+ }
533
+ },
534
+ config: {
535
+ type: typeSchemas.request?.name ? `Partial<RequestConfig<${typeSchemas.request?.name}>> & { client?: typeof fetch }` : "Partial<RequestConfig> & { client?: typeof fetch }",
536
+ default: "{}"
537
+ }
538
+ });
539
+ return __kubb_react.FunctionParams.factory({
540
+ pathParams: typeSchemas.pathParams?.name ? {
541
+ mode: pathParamsType === "object" ? "object" : "inlineSpread",
542
+ children: (0, __kubb_plugin_oas_utils.getPathParams)(typeSchemas.pathParams, {
543
+ typed: true,
544
+ casing: paramsCasing
545
+ }),
546
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.pathParams?.schema)
547
+ } : void 0,
548
+ data: typeSchemas.request?.name ? {
549
+ type: typeSchemas.request?.name,
550
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.request?.schema)
551
+ } : void 0,
552
+ params: typeSchemas.queryParams?.name ? {
553
+ type: typeSchemas.queryParams?.name,
554
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.queryParams?.schema)
555
+ } : void 0,
556
+ headers: typeSchemas.headerParams?.name ? {
557
+ type: typeSchemas.headerParams?.name,
558
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.headerParams?.schema)
559
+ } : void 0,
560
+ config: {
561
+ type: typeSchemas.request?.name ? `Partial<RequestConfig<${typeSchemas.request?.name}>> & { client?: typeof fetch }` : "Partial<RequestConfig> & { client?: typeof fetch }",
562
+ default: "{}"
563
+ }
564
+ });
565
+ }
566
+ function InfiniteQueryOptions({ name, clientName, initialPageParam, cursorParam, typeSchemas, paramsCasing, paramsType, dataReturnType, pathParamsType, queryParam, queryKeyName }) {
567
+ const TData = dataReturnType === "data" ? typeSchemas.response.name : `ResponseConfig<${typeSchemas.response.name}>`;
568
+ const TError = `ResponseErrorConfig<${typeSchemas.errors?.map((item) => item.name).join(" | ") || "Error"}>`;
569
+ const params = getParams$2({
570
+ paramsType,
571
+ paramsCasing,
572
+ pathParamsType,
573
+ typeSchemas
574
+ });
575
+ const clientParams = __kubb_plugin_client_components.Client.getParams({
576
+ paramsCasing,
577
+ typeSchemas,
578
+ paramsType,
579
+ pathParamsType,
580
+ isConfigurable: true
581
+ });
582
+ const queryKeyParams = QueryKey.getParams({
583
+ pathParamsType,
584
+ typeSchemas,
585
+ paramsCasing
586
+ });
587
+ const queryOptions = [
588
+ `initialPageParam: ${typeof initialPageParam === "string" ? JSON.stringify(initialPageParam) : initialPageParam}`,
589
+ cursorParam ? `getNextPageParam: (lastPage) => lastPage['${cursorParam}']` : void 0,
590
+ cursorParam ? `getPreviousPageParam: (firstPage) => firstPage['${cursorParam}']` : void 0,
591
+ !cursorParam && dataReturnType === "full" ? "getNextPageParam: (lastPage, _allPages, lastPageParam) => Array.isArray(lastPage.data) && lastPage.data.length === 0 ? undefined : lastPageParam + 1" : void 0,
592
+ !cursorParam && dataReturnType === "data" ? "getNextPageParam: (lastPage, _allPages, lastPageParam) => Array.isArray(lastPage) && lastPage.length === 0 ? undefined : lastPageParam + 1" : void 0,
593
+ !cursorParam ? "getPreviousPageParam: (_firstPage, _allPages, firstPageParam) => firstPageParam <= 1 ? undefined : firstPageParam - 1" : void 0
594
+ ].filter(Boolean);
595
+ const infiniteOverrideParams = queryParam && typeSchemas.queryParams?.name ? `
596
+ if(params) {
597
+ params['${queryParam}'] = pageParam as unknown as ${typeSchemas.queryParams?.name}['${queryParam}']
598
+ }` : "";
599
+ const enabled = Object.entries(queryKeyParams.flatParams).map(([key, item]) => item && !item.optional ? key : void 0).filter(Boolean).join("&& ");
600
+ const enabledText = enabled ? `enabled: !!(${enabled}),` : "";
601
+ if (infiniteOverrideParams) return /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Source, {
602
+ name,
603
+ isExportable: true,
604
+ isIndexable: true,
605
+ children: /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.Function, {
606
+ name,
607
+ export: true,
608
+ params: params.toConstructor(),
609
+ children: `
610
+ const queryKey = ${queryKeyName}(${queryKeyParams.toCall()})
611
+ return infiniteQueryOptions<${TData}, ${TError}, ${TData}, typeof queryKey, number>({
612
+ ${enabledText}
613
+ queryKey,
614
+ queryFn: async ({ signal, pageParam }) => {
615
+ config.signal = signal
616
+ ${infiniteOverrideParams}
617
+ return ${clientName}(${clientParams.toCall()})
618
+ },
619
+ ${queryOptions.join(",\n")}
620
+ })
621
+ `
622
+ })
623
+ });
624
+ return /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Source, {
625
+ name,
626
+ isExportable: true,
627
+ isIndexable: true,
628
+ children: /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.Function, {
629
+ name,
630
+ export: true,
631
+ params: params.toConstructor(),
632
+ children: `
633
+ const queryKey = ${queryKeyName}(${queryKeyParams.toCall()})
634
+ return infiniteQueryOptions<${TData}, ${TError}, ${TData}, typeof queryKey>({
635
+ ${enabledText}
636
+ queryKey,
637
+ queryFn: async ({ signal }) => {
638
+ config.signal = signal
639
+ return ${clientName}(${clientParams.toCall()})
640
+ },
641
+ ${queryOptions.join(",\n")}
642
+ })
643
+ `
644
+ })
645
+ });
646
+ }
647
+ InfiniteQueryOptions.getParams = getParams$2;
648
+
649
+ //#endregion
650
+ //#region src/components/InfiniteQuery.tsx
651
+ function getParams$1({ paramsType, paramsCasing, pathParamsType, dataReturnType, typeSchemas }) {
652
+ const TData = dataReturnType === "data" ? typeSchemas.response.name : `ResponseConfig<${typeSchemas.response.name}>`;
653
+ const TError = `ResponseErrorConfig<${typeSchemas.errors?.map((item) => item.name).join(" | ") || "Error"}>`;
654
+ if (paramsType === "object") return __kubb_react.FunctionParams.factory({
655
+ data: {
656
+ mode: "object",
657
+ children: {
658
+ ...(0, __kubb_plugin_oas_utils.getPathParams)(typeSchemas.pathParams, {
659
+ typed: true,
660
+ casing: paramsCasing
661
+ }),
662
+ data: typeSchemas.request?.name ? {
663
+ type: typeSchemas.request?.name,
664
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.request?.schema)
665
+ } : void 0,
666
+ params: typeSchemas.queryParams?.name ? {
667
+ type: typeSchemas.queryParams?.name,
668
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.queryParams?.schema)
669
+ } : void 0,
670
+ headers: typeSchemas.headerParams?.name ? {
671
+ type: typeSchemas.headerParams?.name,
672
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.headerParams?.schema)
673
+ } : void 0
674
+ }
675
+ },
676
+ options: {
677
+ type: `
678
+ {
679
+ query?: Partial<InfiniteQueryObserverOptions<${[
680
+ TData,
681
+ TError,
682
+ "TData",
683
+ "TQueryKey"
684
+ ].join(", ")}>> & { client?: QueryClient },
685
+ client?: ${typeSchemas.request?.name ? `Partial<RequestConfig<${typeSchemas.request?.name}>> & { client?: typeof fetch }` : "Partial<RequestConfig> & { client?: typeof fetch }"}
686
+ }
687
+ `,
688
+ default: "{}"
689
+ }
690
+ });
691
+ return __kubb_react.FunctionParams.factory({
692
+ pathParams: typeSchemas.pathParams?.name ? {
693
+ mode: pathParamsType === "object" ? "object" : "inlineSpread",
694
+ children: (0, __kubb_plugin_oas_utils.getPathParams)(typeSchemas.pathParams, {
695
+ typed: true,
696
+ casing: paramsCasing
697
+ }),
698
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.pathParams?.schema)
699
+ } : void 0,
700
+ data: typeSchemas.request?.name ? {
701
+ type: typeSchemas.request?.name,
702
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.request?.schema)
703
+ } : void 0,
704
+ params: typeSchemas.queryParams?.name ? {
705
+ type: typeSchemas.queryParams?.name,
706
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.queryParams?.schema)
707
+ } : void 0,
708
+ headers: typeSchemas.headerParams?.name ? {
709
+ type: typeSchemas.headerParams?.name,
710
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.headerParams?.schema)
711
+ } : void 0,
712
+ options: {
713
+ type: `
714
+ {
715
+ query?: Partial<InfiniteQueryObserverOptions<${[
716
+ TData,
717
+ TError,
718
+ "TData",
719
+ "TQueryKey"
720
+ ].join(", ")}>> & { client?: QueryClient },
721
+ client?: ${typeSchemas.request?.name ? `Partial<RequestConfig<${typeSchemas.request?.name}>> & { client?: typeof fetch }` : "Partial<RequestConfig> & { client?: typeof fetch }"}
722
+ }
723
+ `,
724
+ default: "{}"
725
+ }
726
+ });
727
+ }
728
+ function InfiniteQuery({ name, queryKeyTypeName, queryOptionsName, queryKeyName, paramsType, paramsCasing, pathParamsType, dataReturnType, typeSchemas, operation }) {
729
+ const TData = dataReturnType === "data" ? typeSchemas.response.name : `ResponseConfig<${typeSchemas.response.name}>`;
730
+ const TError = `ResponseErrorConfig<${typeSchemas.errors?.map((item) => item.name).join(" | ") || "Error"}>`;
731
+ const returnType = `UseInfiniteQueryResult<${["TData", TError].join(", ")}> & { queryKey: TQueryKey }`;
732
+ const generics = [
733
+ `TData = InfiniteData<${TData}>`,
734
+ `TQueryData = ${TData}`,
735
+ `TQueryKey extends QueryKey = ${queryKeyTypeName}`
736
+ ];
737
+ const queryKeyParams = QueryKey.getParams({
738
+ pathParamsType,
739
+ typeSchemas,
740
+ paramsCasing
741
+ });
742
+ const queryOptionsParams = QueryOptions.getParams({
743
+ paramsType,
744
+ pathParamsType,
745
+ typeSchemas,
746
+ paramsCasing
747
+ });
748
+ const params = getParams$1({
749
+ paramsCasing,
750
+ paramsType,
751
+ pathParamsType,
752
+ dataReturnType,
753
+ typeSchemas
754
+ });
755
+ const queryOptions = `${queryOptionsName}(${queryOptionsParams.toCall()})`;
756
+ return /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Source, {
757
+ name,
758
+ isExportable: true,
759
+ isIndexable: true,
760
+ children: /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.Function, {
761
+ name,
762
+ export: true,
763
+ generics: generics.join(", "),
764
+ params: params.toConstructor(),
765
+ JSDoc: { comments: (0, __kubb_plugin_oas_utils.getComments)(operation) },
766
+ children: `
767
+ const { query: { client: queryClient, ...queryOptions } = {}, client: config = {} } = options ?? {}
768
+ const queryKey = queryOptions?.queryKey ?? ${queryKeyName}(${queryKeyParams.toCall()})
769
+
770
+ const query = useInfiniteQuery({
771
+ ...${queryOptions},
772
+ queryKey,
773
+ ...queryOptions
774
+ } as unknown as InfiniteQueryObserverOptions, queryClient) as ${returnType}
775
+
776
+ query.queryKey = queryKey as TQueryKey
777
+
778
+ return query
779
+ `
780
+ })
781
+ });
782
+ }
783
+ InfiniteQuery.getParams = getParams$1;
784
+
785
+ //#endregion
786
+ //#region src/components/SuspenseQuery.tsx
787
+ function getParams({ paramsType, paramsCasing, pathParamsType, dataReturnType, typeSchemas }) {
788
+ const TData = dataReturnType === "data" ? typeSchemas.response.name : `ResponseConfig<${typeSchemas.response.name}>`;
789
+ const TError = `ResponseErrorConfig<${typeSchemas.errors?.map((item) => item.name).join(" | ") || "Error"}>`;
790
+ if (paramsType === "object") return __kubb_react.FunctionParams.factory({
791
+ data: {
792
+ mode: "object",
793
+ children: {
794
+ ...(0, __kubb_plugin_oas_utils.getPathParams)(typeSchemas.pathParams, {
795
+ typed: true,
796
+ casing: paramsCasing
797
+ }),
798
+ data: typeSchemas.request?.name ? {
799
+ type: typeSchemas.request?.name,
800
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.request?.schema)
801
+ } : void 0,
802
+ params: typeSchemas.queryParams?.name ? {
803
+ type: typeSchemas.queryParams?.name,
804
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.queryParams?.schema)
805
+ } : void 0,
806
+ headers: typeSchemas.headerParams?.name ? {
807
+ type: typeSchemas.headerParams?.name,
808
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.headerParams?.schema)
809
+ } : void 0
810
+ }
811
+ },
812
+ options: {
813
+ type: `
814
+ {
815
+ query?: Partial<UseSuspenseQueryOptions<${[
816
+ TData,
817
+ TError,
818
+ "TData",
819
+ "TQueryKey"
820
+ ].join(", ")}>> & { client?: QueryClient },
821
+ client?: ${typeSchemas.request?.name ? `Partial<RequestConfig<${typeSchemas.request?.name}>> & { client?: typeof fetch }` : "Partial<RequestConfig> & { client?: typeof fetch }"}
822
+ }
823
+ `,
824
+ default: "{}"
825
+ }
826
+ });
827
+ return __kubb_react.FunctionParams.factory({
828
+ pathParams: typeSchemas.pathParams?.name ? {
829
+ mode: pathParamsType === "object" ? "object" : "inlineSpread",
830
+ children: (0, __kubb_plugin_oas_utils.getPathParams)(typeSchemas.pathParams, {
831
+ typed: true,
832
+ casing: paramsCasing
833
+ }),
834
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.pathParams?.schema)
835
+ } : void 0,
836
+ data: typeSchemas.request?.name ? {
837
+ type: typeSchemas.request?.name,
838
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.request?.schema)
839
+ } : void 0,
840
+ params: typeSchemas.queryParams?.name ? {
841
+ type: typeSchemas.queryParams?.name,
842
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.queryParams?.schema)
843
+ } : void 0,
844
+ headers: typeSchemas.headerParams?.name ? {
845
+ type: typeSchemas.headerParams?.name,
846
+ optional: (0, __kubb_oas.isOptional)(typeSchemas.headerParams?.schema)
847
+ } : void 0,
848
+ options: {
849
+ type: `
850
+ {
851
+ query?: Partial<UseSuspenseQueryOptions<${[
852
+ TData,
853
+ TError,
854
+ "TData",
855
+ "TQueryKey"
856
+ ].join(", ")}>> & { client?: QueryClient },
857
+ client?: ${typeSchemas.request?.name ? `Partial<RequestConfig<${typeSchemas.request?.name}>> & { client?: typeof fetch }` : "Partial<RequestConfig> & { client?: typeof fetch }"}
858
+ }
859
+ `,
860
+ default: "{}"
861
+ }
862
+ });
863
+ }
864
+ /**
865
+ * Generates a strongly-typed React Query Suspense hook function for an OpenAPI operation.
866
+ *
867
+ * The generated function wraps `useSuspenseQuery`, providing type-safe parameters and return types based on the supplied OpenAPI schemas and configuration.
868
+ *
869
+ * @returns A React component source node containing the generated query function.
870
+ */
871
+ function SuspenseQuery({ name, queryKeyTypeName, queryOptionsName, queryKeyName, paramsType, paramsCasing, pathParamsType, dataReturnType, typeSchemas, operation }) {
872
+ const TData = dataReturnType === "data" ? typeSchemas.response.name : `ResponseConfig<${typeSchemas.response.name}>`;
873
+ const TError = `ResponseErrorConfig<${typeSchemas.errors?.map((item) => item.name).join(" | ") || "Error"}>`;
874
+ const returnType = `UseSuspenseQueryResult<${["TData", TError].join(", ")}> & { queryKey: TQueryKey }`;
875
+ const generics = [`TData = ${TData}`, `TQueryKey extends QueryKey = ${queryKeyTypeName}`];
876
+ const queryKeyParams = QueryKey.getParams({
877
+ pathParamsType,
878
+ typeSchemas,
879
+ paramsCasing
880
+ });
881
+ const queryOptionsParams = QueryOptions.getParams({
882
+ paramsCasing,
883
+ paramsType,
884
+ pathParamsType,
885
+ typeSchemas
886
+ });
887
+ const params = getParams({
888
+ paramsCasing,
889
+ paramsType,
890
+ pathParamsType,
891
+ dataReturnType,
892
+ typeSchemas
893
+ });
894
+ const queryOptions = `${queryOptionsName}(${queryOptionsParams.toCall()})`;
895
+ return /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.File.Source, {
896
+ name,
897
+ isExportable: true,
898
+ isIndexable: true,
899
+ children: /* @__PURE__ */ (0, __kubb_react_jsx_runtime.jsx)(__kubb_react.Function, {
900
+ name,
901
+ export: true,
902
+ generics: generics.join(", "),
903
+ params: params.toConstructor(),
904
+ JSDoc: { comments: (0, __kubb_plugin_oas_utils.getComments)(operation) },
905
+ children: `
906
+ const { query: { client: queryClient, ...queryOptions } = {}, client: config = {} } = options ?? {}
907
+ const queryKey = queryOptions?.queryKey ?? ${queryKeyName}(${queryKeyParams.toCall()})
908
+
909
+ const query = useSuspenseQuery({
910
+ ...${queryOptions},
911
+ queryKey,
912
+ ...queryOptions
913
+ } as unknown as UseSuspenseQueryOptions, queryClient) as ${returnType}
914
+
915
+ query.queryKey = queryKey as TQueryKey
916
+
917
+ return query
918
+ `
919
+ })
920
+ });
921
+ }
922
+ SuspenseQuery.getParams = getParams;
923
+
924
+ //#endregion
925
+ Object.defineProperty(exports, 'InfiniteQuery', {
926
+ enumerable: true,
927
+ get: function () {
928
+ return InfiniteQuery;
929
+ }
930
+ });
931
+ Object.defineProperty(exports, 'InfiniteQueryOptions', {
932
+ enumerable: true,
933
+ get: function () {
934
+ return InfiniteQueryOptions;
935
+ }
936
+ });
937
+ Object.defineProperty(exports, 'Mutation', {
938
+ enumerable: true,
939
+ get: function () {
940
+ return Mutation;
941
+ }
942
+ });
943
+ Object.defineProperty(exports, 'MutationKey', {
944
+ enumerable: true,
945
+ get: function () {
946
+ return MutationKey;
947
+ }
948
+ });
949
+ Object.defineProperty(exports, 'Query', {
950
+ enumerable: true,
951
+ get: function () {
952
+ return Query;
953
+ }
954
+ });
955
+ Object.defineProperty(exports, 'QueryKey', {
956
+ enumerable: true,
957
+ get: function () {
958
+ return QueryKey;
959
+ }
960
+ });
961
+ Object.defineProperty(exports, 'QueryOptions', {
962
+ enumerable: true,
963
+ get: function () {
964
+ return QueryOptions;
965
+ }
966
+ });
967
+ Object.defineProperty(exports, 'SuspenseQuery', {
968
+ enumerable: true,
969
+ get: function () {
970
+ return SuspenseQuery;
971
+ }
972
+ });
973
+ Object.defineProperty(exports, '__toESM', {
974
+ enumerable: true,
975
+ get: function () {
976
+ return __toESM;
977
+ }
978
+ });
979
+ //# sourceMappingURL=components-DHfUELJ3.cjs.map