@kubb/plugin-react-query 5.0.0-alpha.31 → 5.0.0-alpha.33

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 (40) hide show
  1. package/dist/{components-DQiCnrXP.cjs → components-Cq0WNTay.cjs} +56 -55
  2. package/dist/components-Cq0WNTay.cjs.map +1 -0
  3. package/dist/{components-HG1bVVRU.js → components-DTiE-FKc.js} +4 -3
  4. package/dist/components-DTiE-FKc.js.map +1 -0
  5. package/dist/components.cjs +1 -1
  6. package/dist/components.d.ts +12 -12
  7. package/dist/components.js +1 -1
  8. package/dist/{generators-CeU3eFdF.cjs → generators-B5WzWWUx.cjs} +133 -133
  9. package/dist/{generators-CeU3eFdF.cjs.map → generators-B5WzWWUx.cjs.map} +1 -1
  10. package/dist/{generators-BZKMuZRH.js → generators-DnnpkRmx.js} +4 -4
  11. package/dist/{generators-BZKMuZRH.js.map → generators-DnnpkRmx.js.map} +1 -1
  12. package/dist/generators.cjs +1 -1
  13. package/dist/generators.d.ts +1 -1
  14. package/dist/generators.js +1 -1
  15. package/dist/index.cjs +15 -19
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.ts +1 -1
  18. package/dist/index.js +15 -19
  19. package/dist/index.js.map +1 -1
  20. package/dist/{types-DMLrT2SW.d.ts → types-Crg16xc2.d.ts} +5 -6
  21. package/package.json +10 -11
  22. package/src/components/InfiniteQuery.tsx +4 -3
  23. package/src/components/InfiniteQueryOptions.tsx +4 -3
  24. package/src/components/Mutation.tsx +4 -3
  25. package/src/components/MutationOptions.tsx +5 -3
  26. package/src/components/Query.tsx +4 -3
  27. package/src/components/QueryOptions.tsx +4 -12
  28. package/src/components/SuspenseInfiniteQuery.tsx +4 -3
  29. package/src/components/SuspenseInfiniteQueryOptions.tsx +4 -3
  30. package/src/components/SuspenseQuery.tsx +4 -3
  31. package/src/generators/customHookOptionsFileGenerator.tsx +1 -1
  32. package/src/generators/hookOptionsGenerator.tsx +1 -1
  33. package/src/generators/infiniteQueryGenerator.tsx +1 -1
  34. package/src/generators/mutationGenerator.tsx +1 -1
  35. package/src/generators/queryGenerator.tsx +1 -1
  36. package/src/generators/suspenseInfiniteQueryGenerator.tsx +1 -1
  37. package/src/generators/suspenseQueryGenerator.tsx +1 -1
  38. package/src/plugin.ts +31 -30
  39. package/dist/components-DQiCnrXP.cjs.map +0 -1
  40. package/dist/components-HG1bVVRU.js.map +0 -1
@@ -24,11 +24,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  enumerable: true
25
25
  }) : target, mod));
26
26
  //#endregion
27
+ let _kubb_core = require("@kubb/core");
27
28
  let _kubb_plugin_client = require("@kubb/plugin-client");
28
29
  let _kubb_oas = require("@kubb/oas");
29
30
  let _kubb_plugin_oas_utils = require("@kubb/plugin-oas/utils");
30
- let _kubb_react_fabric = require("@kubb/react-fabric");
31
- let _kubb_react_fabric_jsx_runtime = require("@kubb/react-fabric/jsx-runtime");
31
+ let _kubb_renderer_jsx = require("@kubb/renderer-jsx");
32
+ let _kubb_renderer_jsx_jsx_runtime = require("@kubb/renderer-jsx/jsx-runtime");
32
33
  //#region ../../internals/utils/src/casing.ts
33
34
  /**
34
35
  * Shared implementation for camelCase and PascalCase conversion.
@@ -269,7 +270,7 @@ var URLPath = class {
269
270
  //#endregion
270
271
  //#region ../../internals/tanstack-query/src/components/MutationKey.tsx
271
272
  function getParams$10({}) {
272
- return _kubb_react_fabric.FunctionParams.factory({});
273
+ return _kubb_core.FunctionParams.factory({});
273
274
  }
274
275
  __name(getParams$10, "getParams");
275
276
  const getTransformer$1 = /* @__PURE__ */ __name(({ operation, casing }) => {
@@ -285,23 +286,23 @@ function MutationKey({ name, typeSchemas, pathParamsType, paramsCasing, operatio
285
286
  schemas: typeSchemas,
286
287
  casing: paramsCasing
287
288
  });
288
- return /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsxs)(_kubb_react_fabric_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Source, {
289
+ return /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsxs)(_kubb_renderer_jsx_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsx)(_kubb_renderer_jsx.File.Source, {
289
290
  name,
290
291
  isExportable: true,
291
292
  isIndexable: true,
292
- children: /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.Function.Arrow, {
293
+ children: /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsx)(_kubb_renderer_jsx.Function.Arrow, {
293
294
  name,
294
295
  export: true,
295
296
  params: params.toConstructor(),
296
297
  singleLine: true,
297
298
  children: `[${keys.join(", ")}] as const`
298
299
  })
299
- }), /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Source, {
300
+ }), /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsx)(_kubb_renderer_jsx.File.Source, {
300
301
  name: typeName,
301
302
  isExportable: true,
302
303
  isIndexable: true,
303
304
  isTypeOnly: true,
304
- children: /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.Type, {
305
+ children: /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsx)(_kubb_renderer_jsx.Type, {
305
306
  name: typeName,
306
307
  export: true,
307
308
  children: `ReturnType<typeof ${name}>`
@@ -313,7 +314,7 @@ MutationKey.getTransformer = getTransformer$1;
313
314
  //#endregion
314
315
  //#region ../../internals/tanstack-query/src/components/QueryKey.tsx
315
316
  function getParams$9({ pathParamsType, paramsCasing, typeSchemas }) {
316
- return _kubb_react_fabric.FunctionParams.factory({
317
+ return _kubb_core.FunctionParams.factory({
317
318
  pathParams: typeSchemas.pathParams?.name ? {
318
319
  mode: pathParamsType === "object" ? "object" : "inlineSpread",
319
320
  children: (0, _kubb_plugin_oas_utils.getPathParams)(typeSchemas.pathParams, {
@@ -353,23 +354,23 @@ function QueryKey({ name, typeSchemas, paramsCasing, pathParamsType, operation,
353
354
  schemas: typeSchemas,
354
355
  casing: paramsCasing
355
356
  });
356
- return /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsxs)(_kubb_react_fabric_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Source, {
357
+ return /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsxs)(_kubb_renderer_jsx_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsx)(_kubb_renderer_jsx.File.Source, {
357
358
  name,
358
359
  isExportable: true,
359
360
  isIndexable: true,
360
- children: /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.Function.Arrow, {
361
+ children: /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsx)(_kubb_renderer_jsx.Function.Arrow, {
361
362
  name,
362
363
  export: true,
363
364
  params: params.toConstructor(),
364
365
  singleLine: true,
365
366
  children: `[${keys.join(", ")}] as const`
366
367
  })
367
- }), /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Source, {
368
+ }), /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsx)(_kubb_renderer_jsx.File.Source, {
368
369
  name: typeName,
369
370
  isExportable: true,
370
371
  isIndexable: true,
371
372
  isTypeOnly: true,
372
- children: /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.Type, {
373
+ children: /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsx)(_kubb_renderer_jsx.Type, {
373
374
  name: typeName,
374
375
  export: true,
375
376
  children: `ReturnType<typeof ${name}>`
@@ -401,7 +402,7 @@ function getParams$8({ paramsType, paramsCasing, pathParamsType, typeSchemas })
401
402
  } : void 0
402
403
  };
403
404
  const allChildrenAreOptional = Object.values(children).every((child) => !child || child.optional);
404
- return _kubb_react_fabric.FunctionParams.factory({
405
+ return _kubb_core.FunctionParams.factory({
405
406
  data: {
406
407
  mode: "object",
407
408
  children,
@@ -413,7 +414,7 @@ function getParams$8({ paramsType, paramsCasing, pathParamsType, typeSchemas })
413
414
  }
414
415
  });
415
416
  }
416
- return _kubb_react_fabric.FunctionParams.factory({
417
+ return _kubb_core.FunctionParams.factory({
417
418
  pathParams: typeSchemas.pathParams?.name ? {
418
419
  mode: pathParamsType === "object" ? "object" : "inlineSpread",
419
420
  children: (0, _kubb_plugin_oas_utils.getPathParams)(typeSchemas.pathParams, {
@@ -466,11 +467,11 @@ function QueryOptions({ name, clientName, dataReturnType, typeSchemas, paramsCas
466
467
  return item && !item.optional && !item.default ? key : void 0;
467
468
  }).filter(Boolean).join("&& ");
468
469
  const enabledText = enabled ? `enabled: !!(${enabled}),` : "";
469
- return /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Source, {
470
+ return /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsx)(_kubb_renderer_jsx.File.Source, {
470
471
  name,
471
472
  isExportable: true,
472
473
  isIndexable: true,
473
- children: /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.Function, {
474
+ children: /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsx)(_kubb_renderer_jsx.Function, {
474
475
  name,
475
476
  export: true,
476
477
  params: params.toConstructor(),
@@ -514,7 +515,7 @@ function getParams$7({ paramsType, paramsCasing, pathParamsType, typeSchemas, pa
514
515
  } : void 0
515
516
  };
516
517
  const allChildrenAreOptional = Object.values(children).every((child) => !child || child.optional);
517
- return _kubb_react_fabric.FunctionParams.factory({
518
+ return _kubb_core.FunctionParams.factory({
518
519
  data: {
519
520
  mode: "object",
520
521
  children,
@@ -531,7 +532,7 @@ function getParams$7({ paramsType, paramsCasing, pathParamsType, typeSchemas, pa
531
532
  }
532
533
  });
533
534
  }
534
- return _kubb_react_fabric.FunctionParams.factory({
535
+ return _kubb_core.FunctionParams.factory({
535
536
  pathParams: typeSchemas.pathParams?.name ? {
536
537
  mode: pathParamsType === "object" ? "object" : "inlineSpread",
537
538
  children: (0, _kubb_plugin_oas_utils.getPathParams)(typeSchemas.pathParams, {
@@ -601,11 +602,11 @@ function InfiniteQuery({ name, queryKeyTypeName, queryOptionsName, queryKeyName,
601
602
  pageParamGeneric: "TPageParam"
602
603
  });
603
604
  const queryOptions = `${queryOptionsName}(${queryOptionsParams.toCall()})`;
604
- return /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Source, {
605
+ return /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsx)(_kubb_renderer_jsx.File.Source, {
605
606
  name,
606
607
  isExportable: true,
607
608
  isIndexable: true,
608
- children: /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.Function, {
609
+ children: /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsx)(_kubb_renderer_jsx.Function, {
609
610
  name,
610
611
  export: true,
611
612
  generics: generics.join(", "),
@@ -654,7 +655,7 @@ function getParams$6({ paramsType, paramsCasing, pathParamsType, typeSchemas })
654
655
  } : void 0
655
656
  };
656
657
  const allChildrenAreOptional = Object.values(children).every((child) => !child || child.optional);
657
- return _kubb_react_fabric.FunctionParams.factory({
658
+ return _kubb_core.FunctionParams.factory({
658
659
  data: {
659
660
  mode: "object",
660
661
  children,
@@ -666,7 +667,7 @@ function getParams$6({ paramsType, paramsCasing, pathParamsType, typeSchemas })
666
667
  }
667
668
  });
668
669
  }
669
- return _kubb_react_fabric.FunctionParams.factory({
670
+ return _kubb_core.FunctionParams.factory({
670
671
  pathParams: typeSchemas.pathParams?.name ? {
671
672
  mode: pathParamsType === "object" ? "object" : "inlineSpread",
672
673
  children: (0, _kubb_plugin_oas_utils.getPathParams)(typeSchemas.pathParams, {
@@ -756,11 +757,11 @@ function InfiniteQueryOptions({ name, clientName, initialPageParam, cursorParam,
756
757
  return item && !item.optional && !item.default ? key : void 0;
757
758
  }).filter(Boolean).join("&& ");
758
759
  const enabledText = enabled ? `enabled: !!(${enabled}),` : "";
759
- if (infiniteOverrideParams) return /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Source, {
760
+ if (infiniteOverrideParams) return /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsx)(_kubb_renderer_jsx.File.Source, {
760
761
  name,
761
762
  isExportable: true,
762
763
  isIndexable: true,
763
- children: /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.Function, {
764
+ children: /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsx)(_kubb_renderer_jsx.Function, {
764
765
  name,
765
766
  export: true,
766
767
  params: params.toConstructor(),
@@ -781,11 +782,11 @@ function InfiniteQueryOptions({ name, clientName, initialPageParam, cursorParam,
781
782
  `
782
783
  })
783
784
  });
784
- return /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Source, {
785
+ return /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsx)(_kubb_renderer_jsx.File.Source, {
785
786
  name,
786
787
  isExportable: true,
787
788
  isIndexable: true,
788
- children: /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.Function, {
789
+ children: /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsx)(_kubb_renderer_jsx.Function, {
789
790
  name,
790
791
  export: true,
791
792
  params: params.toConstructor(),
@@ -810,7 +811,7 @@ InfiniteQueryOptions.getParams = getParams$6;
810
811
  //#endregion
811
812
  //#region src/components/MutationOptions.tsx
812
813
  function getParams$5({ typeSchemas }) {
813
- return _kubb_react_fabric.FunctionParams.factory({ config: {
814
+ return _kubb_core.FunctionParams.factory({ config: {
814
815
  type: typeSchemas.request?.name ? `Partial<RequestConfig<${typeSchemas.request?.name}>> & { client?: Client }` : "Partial<RequestConfig> & { client?: Client }",
815
816
  default: "{}"
816
817
  } });
@@ -831,7 +832,7 @@ function MutationOptions({ name, clientName, dataReturnType, typeSchemas, params
831
832
  pathParamsType,
832
833
  typeSchemas
833
834
  });
834
- const mutationParams = _kubb_react_fabric.FunctionParams.factory({
835
+ const mutationParams = _kubb_core.FunctionParams.factory({
835
836
  ...(0, _kubb_plugin_oas_utils.getPathParams)(typeSchemas.pathParams, {
836
837
  typed: true,
837
838
  casing: paramsCasing
@@ -849,7 +850,7 @@ function MutationOptions({ name, clientName, dataReturnType, typeSchemas, params
849
850
  optional: (0, _kubb_oas.isOptional)(typeSchemas.headerParams?.schema)
850
851
  } : void 0
851
852
  });
852
- const dataParams = _kubb_react_fabric.FunctionParams.factory({ data: {
853
+ const dataParams = _kubb_core.FunctionParams.factory({ data: {
853
854
  mode: "object",
854
855
  children: Object.entries(mutationParams.params).reduce((acc, [key, value]) => {
855
856
  if (value) acc[key] = {
@@ -860,11 +861,11 @@ function MutationOptions({ name, clientName, dataReturnType, typeSchemas, params
860
861
  }, {})
861
862
  } });
862
863
  const TRequest = mutationParams.toConstructor();
863
- return /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Source, {
864
+ return /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsx)(_kubb_renderer_jsx.File.Source, {
864
865
  name,
865
866
  isExportable: true,
866
867
  isIndexable: true,
867
- children: /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.Function, {
868
+ children: /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsx)(_kubb_renderer_jsx.Function, {
868
869
  name,
869
870
  export: true,
870
871
  params: params.toConstructor(),
@@ -890,7 +891,7 @@ function getParams$4({ paramsCasing, dataReturnType, typeSchemas }) {
890
891
  typed: true,
891
892
  casing: paramsCasing
892
893
  });
893
- const TRequest = _kubb_react_fabric.FunctionParams.factory({
894
+ const TRequest = _kubb_core.FunctionParams.factory({
894
895
  ...pathParams,
895
896
  data: typeSchemas.request?.name ? {
896
897
  type: typeSchemas.request?.name,
@@ -911,7 +912,7 @@ function getParams$4({ paramsCasing, dataReturnType, typeSchemas }) {
911
912
  TRequest ? `{${TRequest}}` : "void",
912
913
  "TContext"
913
914
  ].join(", ");
914
- return _kubb_react_fabric.FunctionParams.factory({ options: {
915
+ return _kubb_core.FunctionParams.factory({ options: {
915
916
  type: `
916
917
  {
917
918
  mutation?: UseMutationOptions<${generics}> & { client?: QueryClient },
@@ -933,7 +934,7 @@ function Mutation({ name, mutationOptionsName, paramsCasing, pathParamsType, dat
933
934
  dataReturnType,
934
935
  typeSchemas
935
936
  });
936
- const mutationParams = _kubb_react_fabric.FunctionParams.factory({
937
+ const mutationParams = _kubb_core.FunctionParams.factory({
937
938
  ...(0, _kubb_plugin_oas_utils.getPathParams)(typeSchemas.pathParams, {
938
939
  typed: true,
939
940
  casing: paramsCasing
@@ -961,11 +962,11 @@ function Mutation({ name, mutationOptionsName, paramsCasing, pathParamsType, dat
961
962
  ].join(", ");
962
963
  const returnType = `UseMutationResult<${generics}>`;
963
964
  const mutationOptions = `${mutationOptionsName}(${mutationOptionsParams.toCall()})`;
964
- return /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Source, {
965
+ return /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsx)(_kubb_renderer_jsx.File.Source, {
965
966
  name,
966
967
  isExportable: true,
967
968
  isIndexable: true,
968
- children: /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.Function, {
969
+ children: /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsx)(_kubb_renderer_jsx.Function, {
969
970
  name,
970
971
  export: true,
971
972
  params: params.toConstructor(),
@@ -1013,7 +1014,7 @@ function getParams$3({ paramsType, paramsCasing, pathParamsType, dataReturnType,
1013
1014
  } : void 0
1014
1015
  };
1015
1016
  const allChildrenAreOptional = Object.values(children).every((child) => !child || child.optional);
1016
- return _kubb_react_fabric.FunctionParams.factory({
1017
+ return _kubb_core.FunctionParams.factory({
1017
1018
  data: {
1018
1019
  mode: "object",
1019
1020
  children,
@@ -1036,7 +1037,7 @@ function getParams$3({ paramsType, paramsCasing, pathParamsType, dataReturnType,
1036
1037
  }
1037
1038
  });
1038
1039
  }
1039
- return _kubb_react_fabric.FunctionParams.factory({
1040
+ return _kubb_core.FunctionParams.factory({
1040
1041
  pathParams: typeSchemas.pathParams?.name ? {
1041
1042
  mode: pathParamsType === "object" ? "object" : "inlineSpread",
1042
1043
  children: (0, _kubb_plugin_oas_utils.getPathParams)(typeSchemas.pathParams, {
@@ -1102,11 +1103,11 @@ function Query({ name, queryKeyTypeName, queryOptionsName, queryKeyName, paramsT
1102
1103
  typeSchemas
1103
1104
  });
1104
1105
  const queryOptions = `${queryOptionsName}(${queryOptionsParams.toCall()})`;
1105
- return /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Source, {
1106
+ return /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsx)(_kubb_renderer_jsx.File.Source, {
1106
1107
  name,
1107
1108
  isExportable: true,
1108
1109
  isIndexable: true,
1109
- children: /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.Function, {
1110
+ children: /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsx)(_kubb_renderer_jsx.Function, {
1110
1111
  name,
1111
1112
  export: true,
1112
1113
  generics: generics.join(", "),
@@ -1155,7 +1156,7 @@ function getParams$2({ paramsType, paramsCasing, pathParamsType, typeSchemas, pa
1155
1156
  } : void 0
1156
1157
  };
1157
1158
  const allChildrenAreOptional = Object.values(children).every((child) => !child || child.optional);
1158
- return _kubb_react_fabric.FunctionParams.factory({
1159
+ return _kubb_core.FunctionParams.factory({
1159
1160
  data: {
1160
1161
  mode: "object",
1161
1162
  children,
@@ -1172,7 +1173,7 @@ function getParams$2({ paramsType, paramsCasing, pathParamsType, typeSchemas, pa
1172
1173
  }
1173
1174
  });
1174
1175
  }
1175
- return _kubb_react_fabric.FunctionParams.factory({
1176
+ return _kubb_core.FunctionParams.factory({
1176
1177
  pathParams: typeSchemas.pathParams?.name ? {
1177
1178
  mode: pathParamsType === "object" ? "object" : "inlineSpread",
1178
1179
  children: (0, _kubb_plugin_oas_utils.getPathParams)(typeSchemas.pathParams, {
@@ -1242,11 +1243,11 @@ function SuspenseInfiniteQuery({ name, queryKeyTypeName, queryOptionsName, query
1242
1243
  pageParamGeneric: "TPageParam"
1243
1244
  });
1244
1245
  const queryOptions = `${queryOptionsName}(${queryOptionsParams.toCall()})`;
1245
- return /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Source, {
1246
+ return /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsx)(_kubb_renderer_jsx.File.Source, {
1246
1247
  name,
1247
1248
  isExportable: true,
1248
1249
  isIndexable: true,
1249
- children: /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.Function, {
1250
+ children: /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsx)(_kubb_renderer_jsx.Function, {
1250
1251
  name,
1251
1252
  export: true,
1252
1253
  generics: generics.join(", "),
@@ -1295,7 +1296,7 @@ function getParams$1({ paramsType, paramsCasing, pathParamsType, typeSchemas })
1295
1296
  } : void 0
1296
1297
  };
1297
1298
  const allChildrenAreOptional = Object.values(children).every((child) => !child || child.optional);
1298
- return _kubb_react_fabric.FunctionParams.factory({
1299
+ return _kubb_core.FunctionParams.factory({
1299
1300
  data: {
1300
1301
  mode: "object",
1301
1302
  children,
@@ -1307,7 +1308,7 @@ function getParams$1({ paramsType, paramsCasing, pathParamsType, typeSchemas })
1307
1308
  }
1308
1309
  });
1309
1310
  }
1310
- return _kubb_react_fabric.FunctionParams.factory({
1311
+ return _kubb_core.FunctionParams.factory({
1311
1312
  pathParams: typeSchemas.pathParams?.name ? {
1312
1313
  mode: pathParamsType === "object" ? "object" : "inlineSpread",
1313
1314
  children: (0, _kubb_plugin_oas_utils.getPathParams)(typeSchemas.pathParams, {
@@ -1397,11 +1398,11 @@ function SuspenseInfiniteQueryOptions({ name, clientName, initialPageParam, curs
1397
1398
  return item && !item.optional && !item.default ? key : void 0;
1398
1399
  }).filter(Boolean).join("&& ");
1399
1400
  const enabledText = enabled ? `enabled: !!(${enabled}),` : "";
1400
- if (infiniteOverrideParams) return /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Source, {
1401
+ if (infiniteOverrideParams) return /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsx)(_kubb_renderer_jsx.File.Source, {
1401
1402
  name,
1402
1403
  isExportable: true,
1403
1404
  isIndexable: true,
1404
- children: /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.Function, {
1405
+ children: /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsx)(_kubb_renderer_jsx.Function, {
1405
1406
  name,
1406
1407
  export: true,
1407
1408
  params: params.toConstructor(),
@@ -1422,11 +1423,11 @@ function SuspenseInfiniteQueryOptions({ name, clientName, initialPageParam, curs
1422
1423
  `
1423
1424
  })
1424
1425
  });
1425
- return /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Source, {
1426
+ return /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsx)(_kubb_renderer_jsx.File.Source, {
1426
1427
  name,
1427
1428
  isExportable: true,
1428
1429
  isIndexable: true,
1429
- children: /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.Function, {
1430
+ children: /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsx)(_kubb_renderer_jsx.Function, {
1430
1431
  name,
1431
1432
  export: true,
1432
1433
  params: params.toConstructor(),
@@ -1473,7 +1474,7 @@ function getParams({ paramsType, paramsCasing, pathParamsType, dataReturnType, t
1473
1474
  } : void 0
1474
1475
  };
1475
1476
  const allChildrenAreOptional = Object.values(children).every((child) => !child || child.optional);
1476
- return _kubb_react_fabric.FunctionParams.factory({
1477
+ return _kubb_core.FunctionParams.factory({
1477
1478
  data: {
1478
1479
  mode: "object",
1479
1480
  children,
@@ -1495,7 +1496,7 @@ function getParams({ paramsType, paramsCasing, pathParamsType, dataReturnType, t
1495
1496
  }
1496
1497
  });
1497
1498
  }
1498
- return _kubb_react_fabric.FunctionParams.factory({
1499
+ return _kubb_core.FunctionParams.factory({
1499
1500
  pathParams: typeSchemas.pathParams?.name ? {
1500
1501
  mode: pathParamsType === "object" ? "object" : "inlineSpread",
1501
1502
  children: (0, _kubb_plugin_oas_utils.getPathParams)(typeSchemas.pathParams, {
@@ -1562,11 +1563,11 @@ function SuspenseQuery({ name, queryKeyTypeName, queryOptionsName, queryKeyName,
1562
1563
  typeSchemas
1563
1564
  });
1564
1565
  const queryOptions = `${queryOptionsName}(${queryOptionsParams.toCall()})`;
1565
- return /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Source, {
1566
+ return /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsx)(_kubb_renderer_jsx.File.Source, {
1566
1567
  name,
1567
1568
  isExportable: true,
1568
1569
  isIndexable: true,
1569
- children: /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.Function, {
1570
+ children: /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsx)(_kubb_renderer_jsx.Function, {
1570
1571
  name,
1571
1572
  export: true,
1572
1573
  generics: generics.join(", "),
@@ -1684,4 +1685,4 @@ Object.defineProperty(exports, "pascalCase", {
1684
1685
  }
1685
1686
  });
1686
1687
 
1687
- //# sourceMappingURL=components-DQiCnrXP.cjs.map
1688
+ //# sourceMappingURL=components-Cq0WNTay.cjs.map