@kubb/plugin-client 5.0.0-alpha.32 → 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.
package/dist/index.d.ts CHANGED
@@ -1,11 +1,10 @@
1
1
  import { t as __name } from "./chunk--u3MIqq1.js";
2
- import { PluginTs } from "@kubb/plugin-ts";
3
- import { FunctionParams } from "@kubb/react-fabric";
4
2
  import * as _$_kubb_core0 from "@kubb/core";
5
- import { CompatibilityPreset, Exclude, Generator, Group, Include, Output, Override, PluginFactoryOptions, ResolvePathOptions, Resolver, UserGroup } from "@kubb/core";
3
+ import { CompatibilityPreset, Exclude, FunctionParams, Generator, Group, Include, Output, Override, PluginFactoryOptions, ResolvePathOptions, Resolver, UserGroup } from "@kubb/core";
4
+ import { PluginTs } from "@kubb/plugin-ts";
6
5
  import { PluginZod } from "@kubb/plugin-zod";
7
6
  import { FunctionParametersNode, OperationNode, Visitor } from "@kubb/ast/types";
8
- import { FabricReactNode } from "@kubb/react-fabric/types";
7
+ import { KubbReactNode } from "@kubb/renderer-jsx/types";
9
8
 
10
9
  //#region src/types.d.ts
11
10
  /**
@@ -235,7 +234,7 @@ type Props$1 = {
235
234
  node: OperationNode;
236
235
  tsResolver: PluginTs['resolver'];
237
236
  zodResolver?: PluginZod['resolver'];
238
- children?: FabricReactNode;
237
+ children?: KubbReactNode;
239
238
  };
240
239
  type GetParamsProps$1 = {
241
240
  paramsCasing: PluginClient['resolvedOptions']['paramsCasing'];
@@ -262,7 +261,7 @@ declare function Client({
262
261
  urlName,
263
262
  children,
264
263
  isConfigurable
265
- }: Props$1): FabricReactNode;
264
+ }: Props$1): KubbReactNode;
266
265
  declare namespace Client {
267
266
  var getParams: ({
268
267
  paramsType,
@@ -326,7 +325,7 @@ type Props = {
326
325
  typeSchemas: LegacyOperationSchemas;
327
326
  zodSchemas: LegacyOperationSchemas | undefined;
328
327
  operation: LegacyOperation;
329
- children?: FabricReactNode;
328
+ children?: KubbReactNode;
330
329
  };
331
330
  type GetParamsProps = {
332
331
  paramsCasing?: 'camelcase';
@@ -352,7 +351,7 @@ declare function ClientLegacy({
352
351
  urlName,
353
352
  children,
354
353
  isConfigurable
355
- }: Props): FabricReactNode;
354
+ }: Props): KubbReactNode;
356
355
  declare namespace ClientLegacy {
357
356
  var getParams: ({
358
357
  paramsType,
@@ -395,7 +394,7 @@ declare function UrlLegacy({
395
394
  paramsCasing,
396
395
  pathParamsType,
397
396
  operation
398
- }: UrlProps): FabricReactNode;
397
+ }: UrlProps): KubbReactNode;
399
398
  declare namespace UrlLegacy {
400
399
  var getParams: typeof getUrlParams;
401
400
  }
package/dist/index.js CHANGED
@@ -3,11 +3,11 @@ import { source } from "./templates/clients/axios.source.js";
3
3
  import { source as source$1 } from "./templates/clients/fetch.source.js";
4
4
  import { source as source$2 } from "./templates/config.source.js";
5
5
  import path from "node:path";
6
- import { caseParams, createFile, createFunctionParameter, createOperationParams, createParamsType, createSource } from "@kubb/ast";
6
+ import { caseParams, createFile, createFunctionParameter, createOperationParams, createParamsType, createSource, createText } from "@kubb/ast";
7
+ import { FunctionParams, createPlugin, defineGenerator, definePresets, defineResolver, getPreset, mergeGenerators } from "@kubb/core";
7
8
  import { functionPrinter, pluginTsName } from "@kubb/plugin-ts";
8
- import { Const, File, Function as Function$1, FunctionParams } from "@kubb/react-fabric";
9
- import { Fragment, jsx, jsxs } from "@kubb/react-fabric/jsx-runtime";
10
- import { createPlugin, defineGenerator, definePresets, defineResolver, getPreset, mergeGenerators } from "@kubb/core";
9
+ import { Const, File, Function as Function$1 } from "@kubb/renderer-jsx";
10
+ import { Fragment, jsx, jsxs } from "@kubb/renderer-jsx/jsx-runtime";
11
11
  import { pluginZodName } from "@kubb/plugin-zod";
12
12
  //#region ../../internals/utils/src/casing.ts
13
13
  /**
@@ -1715,7 +1715,7 @@ const staticClassClientGenerator = defineGenerator({
1715
1715
  });
1716
1716
  //#endregion
1717
1717
  //#region package.json
1718
- var version = "5.0.0-alpha.32";
1718
+ var version = "5.0.0-alpha.33";
1719
1719
  //#endregion
1720
1720
  //#region src/resolvers/resolverClient.ts
1721
1721
  /**
@@ -1904,7 +1904,7 @@ const pluginClient = createPlugin((options) => {
1904
1904
  path: path.resolve(root, ".kubb/fetch.ts"),
1905
1905
  sources: [createSource({
1906
1906
  name: "fetch",
1907
- value: plugin.options.client === "fetch" ? source$1 : source,
1907
+ nodes: [createText(plugin.options.client === "fetch" ? source$1 : source)],
1908
1908
  isExportable: true,
1909
1909
  isIndexable: true
1910
1910
  })]
@@ -1914,7 +1914,7 @@ const pluginClient = createPlugin((options) => {
1914
1914
  path: path.resolve(root, ".kubb/config.ts"),
1915
1915
  sources: [createSource({
1916
1916
  name: "config",
1917
- value: source$2,
1917
+ nodes: [createText(source$2)],
1918
1918
  isExportable: false,
1919
1919
  isIndexable: false
1920
1920
  })]