@kubb/plugin-svelte-query 4.10.0 → 4.10.1

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.
@@ -1,4 +1,4 @@
1
- import { a as OperationSchemas, n as PluginSvelteQuery, r as Transformer, s as Operation } from "./types-B66VK8nP.cjs";
1
+ import { a as OperationSchemas, n as PluginSvelteQuery, r as Transformer, s as Operation } from "./types-Bg17dG5_.cjs";
2
2
  import { FunctionParams } from "@kubb/react-fabric";
3
3
  import { KubbNode } from "@kubb/react-fabric/types";
4
4
 
@@ -1,4 +1,4 @@
1
- import { a as OperationSchemas, n as PluginSvelteQuery, r as Transformer, s as Operation } from "./types-DP3EOn01.js";
1
+ import { a as OperationSchemas, n as PluginSvelteQuery, r as Transformer, s as Operation } from "./types-WWuAyOnp.js";
2
2
  import { FunctionParams } from "@kubb/react-fabric";
3
3
  import { KubbNode } from "@kubb/react-fabric/types";
4
4
 
@@ -1,5 +1,4 @@
1
1
  const require_generators = require('./generators-B2wubEts.cjs');
2
- require('./components-CwRgvykU.cjs');
3
2
 
4
3
  exports.mutationGenerator = require_generators.mutationGenerator;
5
4
  exports.queryGenerator = require_generators.queryGenerator;
@@ -1,4 +1,4 @@
1
- import { i as ReactGenerator, n as PluginSvelteQuery } from "./types-B66VK8nP.cjs";
1
+ import { i as ReactGenerator, n as PluginSvelteQuery } from "./types-Bg17dG5_.cjs";
2
2
 
3
3
  //#region src/generators/mutationGenerator.d.ts
4
4
  declare const mutationGenerator: ReactGenerator<PluginSvelteQuery>;
@@ -1,4 +1,4 @@
1
- import { i as ReactGenerator, n as PluginSvelteQuery } from "./types-DP3EOn01.js";
1
+ import { i as ReactGenerator, n as PluginSvelteQuery } from "./types-WWuAyOnp.js";
2
2
 
3
3
  //#region src/generators/mutationGenerator.d.ts
4
4
  declare const mutationGenerator: ReactGenerator<PluginSvelteQuery>;
@@ -1,4 +1,3 @@
1
- import "./components-IU60L-Fd.js";
2
1
  import { n as mutationGenerator, t as queryGenerator } from "./generators-dbUuzs73.js";
3
2
 
4
3
  export { mutationGenerator, queryGenerator };
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as PluginSvelteQuery, o as UserPluginWithLifeCycle, t as Options } from "./types-B66VK8nP.cjs";
1
+ import { n as PluginSvelteQuery, o as UserPluginWithLifeCycle, t as Options } from "./types-Bg17dG5_.cjs";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginSvelteQueryName = "plugin-svelte-query";
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as PluginSvelteQuery, o as UserPluginWithLifeCycle, t as Options } from "./types-DP3EOn01.js";
1
+ import { n as PluginSvelteQuery, o as UserPluginWithLifeCycle, t as Options } from "./types-WWuAyOnp.js";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginSvelteQueryName = "plugin-svelte-query";
@@ -1,4 +1,3 @@
1
- import { Fabric } from "@kubb/react-fabric";
2
1
  import * as OasTypes from "oas/types";
3
2
  import { HttpMethods as HttpMethod, OASDocument, SchemaObject, User } from "oas/types";
4
3
  import { Operation, Operation as Operation$1 } from "oas/operation";
@@ -6,6 +5,7 @@ import { OpenAPIV3 } from "openapi-types";
6
5
  import * as oas_normalize_lib_types0 from "oas-normalize/lib/types";
7
6
  import BaseOas from "oas";
8
7
  import { KubbFile } from "@kubb/fabric-core/types";
8
+ import { Fabric } from "@kubb/react-fabric";
9
9
  import { ConsolaInstance, LogLevel } from "consola";
10
10
  import { KubbNode } from "@kubb/react-fabric/types";
11
11
 
@@ -17,7 +17,7 @@ type SchemaObject$1 = OasTypes.SchemaObject & {
17
17
  };
18
18
  //#endregion
19
19
  //#region ../oas/src/Oas.d.ts
20
- type Options$4 = {
20
+ type Options$3 = {
21
21
  contentType?: contentType;
22
22
  discriminator?: 'strict' | 'inherit';
23
23
  };
@@ -31,8 +31,8 @@ declare class Oas<const TOAS = unknown> extends BaseOas {
31
31
  oas: TOAS | OASDocument | string;
32
32
  user?: User;
33
33
  });
34
- setOptions(options: Options$4): void;
35
- get options(): Options$4;
34
+ setOptions(options: Options$3): void;
35
+ get options(): Options$3;
36
36
  get($ref: string): any;
37
37
  getKey($ref: string): string | undefined;
38
38
  set($ref: string, value: unknown): false | undefined;
@@ -427,7 +427,7 @@ type SafeParseResult<H extends PluginLifecycleHooks, Result = ReturnType<ParseRe
427
427
  result: Result;
428
428
  plugin: Plugin;
429
429
  };
430
- type Options$3 = {
430
+ type Options$2 = {
431
431
  fabric: Fabric;
432
432
  logger: Logger;
433
433
  /**
@@ -453,8 +453,8 @@ declare class PluginManager {
453
453
  readonly config: Config;
454
454
  readonly executed: Array<Executer>;
455
455
  readonly logger: Logger;
456
- readonly options: Options$3;
457
- constructor(config: Config, options: Options$3);
456
+ readonly options: Options$2;
457
+ constructor(config: Config, options: Options$2);
458
458
  getContext<TOptions extends PluginFactoryOptions>(plugin: Plugin<TOptions>): PluginContext<TOptions> & Record<string, any>;
459
459
  get plugins(): Array<Plugin>;
460
460
  getFile<TOptions = object>({
@@ -1006,7 +1006,7 @@ type CoreGenerator<TOptions extends PluginFactoryOptions> = {
1006
1006
  };
1007
1007
  //#endregion
1008
1008
  //#region ../plugin-client/src/types.d.ts
1009
- type Options$2 = {
1009
+ type Options$1 = {
1010
1010
  /**
1011
1011
  * Specify the export location for the files and define the behavior of the output
1012
1012
  * @default { path: 'clients', barrelType: 'named' }
@@ -1121,20 +1121,20 @@ type Options$2 = {
1121
1121
  };
1122
1122
  type ResolvedOptions$1 = {
1123
1123
  output: Output<Oas>;
1124
- group?: Options$2['group'];
1124
+ group?: Options$1['group'];
1125
1125
  baseURL: string | undefined;
1126
- client: Options$2['client'];
1127
- clientType: NonNullable<Options$2['clientType']>;
1128
- bundle: NonNullable<Options$2['bundle']>;
1129
- parser: NonNullable<Options$2['parser']>;
1130
- urlType: NonNullable<Options$2['urlType']>;
1131
- importPath: Options$2['importPath'];
1132
- dataReturnType: NonNullable<Options$2['dataReturnType']>;
1133
- pathParamsType: NonNullable<Options$2['pathParamsType']>;
1134
- paramsType: NonNullable<Options$2['paramsType']>;
1135
- paramsCasing: Options$2['paramsCasing'];
1126
+ client: Options$1['client'];
1127
+ clientType: NonNullable<Options$1['clientType']>;
1128
+ bundle: NonNullable<Options$1['bundle']>;
1129
+ parser: NonNullable<Options$1['parser']>;
1130
+ urlType: NonNullable<Options$1['urlType']>;
1131
+ importPath: Options$1['importPath'];
1132
+ dataReturnType: NonNullable<Options$1['dataReturnType']>;
1133
+ pathParamsType: NonNullable<Options$1['pathParamsType']>;
1134
+ paramsType: NonNullable<Options$1['paramsType']>;
1135
+ paramsCasing: Options$1['paramsCasing'];
1136
1136
  };
1137
- type PluginClient = PluginFactoryOptions<'plugin-client', Options$2, ResolvedOptions$1, never, ResolvePathOptions>;
1137
+ type PluginClient = PluginFactoryOptions<'plugin-client', Options$1, ResolvedOptions$1, never, ResolvePathOptions>;
1138
1138
  //#endregion
1139
1139
  //#region src/types.d.ts
1140
1140
  type TransformerProps = {
@@ -1181,7 +1181,7 @@ type Mutation = {
1181
1181
  */
1182
1182
  importPath?: string;
1183
1183
  };
1184
- type Options$1 = {
1184
+ type Options = {
1185
1185
  /**
1186
1186
  * Specify the export location for the files and define the behavior of the output
1187
1187
  * @default { path: 'hooks', barrelType: 'named' }
@@ -1256,18 +1256,18 @@ type Options$1 = {
1256
1256
  };
1257
1257
  type ResolvedOptions = {
1258
1258
  output: Output<Oas>;
1259
- group: Options$1['group'];
1259
+ group: Options['group'];
1260
1260
  client: NonNullable<PluginSvelteQuery['options']['client']>;
1261
- parser: Required<NonNullable<Options$1['parser']>>;
1262
- paramsCasing: Options$1['paramsCasing'];
1263
- paramsType: NonNullable<Options$1['paramsType']>;
1264
- pathParamsType: NonNullable<Options$1['pathParamsType']>;
1261
+ parser: Required<NonNullable<Options['parser']>>;
1262
+ paramsCasing: Options['paramsCasing'];
1263
+ paramsType: NonNullable<Options['paramsType']>;
1264
+ pathParamsType: NonNullable<Options['pathParamsType']>;
1265
1265
  queryKey: QueryKey | undefined;
1266
1266
  query: NonNullable<Required<Query>> | false;
1267
1267
  mutationKey: MutationKey | undefined;
1268
1268
  mutation: NonNullable<Required<Mutation>> | false;
1269
1269
  };
1270
- type PluginSvelteQuery = PluginFactoryOptions<'plugin-svelte-query', Options$1, ResolvedOptions, never, ResolvePathOptions>;
1270
+ type PluginSvelteQuery = PluginFactoryOptions<'plugin-svelte-query', Options, ResolvedOptions, never, ResolvePathOptions>;
1271
1271
  //#endregion
1272
- export { OperationSchemas as a, ReactGenerator as i, PluginSvelteQuery as n, UserPluginWithLifeCycle as o, Transformer as r, Operation$1 as s, Options$1 as t };
1273
- //# sourceMappingURL=types-DP3EOn01.d.ts.map
1272
+ export { OperationSchemas as a, ReactGenerator as i, PluginSvelteQuery as n, UserPluginWithLifeCycle as o, Transformer as r, Operation$1 as s, Options as t };
1273
+ //# sourceMappingURL=types-Bg17dG5_.d.cts.map
@@ -1,3 +1,4 @@
1
+ import { Fabric } from "@kubb/react-fabric";
1
2
  import * as OasTypes from "oas/types";
2
3
  import { HttpMethods as HttpMethod, OASDocument, SchemaObject, User } from "oas/types";
3
4
  import { Operation, Operation as Operation$1 } from "oas/operation";
@@ -5,7 +6,6 @@ import { OpenAPIV3 } from "openapi-types";
5
6
  import * as oas_normalize_lib_types0 from "oas-normalize/lib/types";
6
7
  import BaseOas from "oas";
7
8
  import { KubbFile } from "@kubb/fabric-core/types";
8
- import { Fabric } from "@kubb/react-fabric";
9
9
  import { ConsolaInstance, LogLevel } from "consola";
10
10
  import { KubbNode } from "@kubb/react-fabric/types";
11
11
 
@@ -17,7 +17,7 @@ type SchemaObject$1 = OasTypes.SchemaObject & {
17
17
  };
18
18
  //#endregion
19
19
  //#region ../oas/src/Oas.d.ts
20
- type Options$4 = {
20
+ type Options$3 = {
21
21
  contentType?: contentType;
22
22
  discriminator?: 'strict' | 'inherit';
23
23
  };
@@ -31,8 +31,8 @@ declare class Oas<const TOAS = unknown> extends BaseOas {
31
31
  oas: TOAS | OASDocument | string;
32
32
  user?: User;
33
33
  });
34
- setOptions(options: Options$4): void;
35
- get options(): Options$4;
34
+ setOptions(options: Options$3): void;
35
+ get options(): Options$3;
36
36
  get($ref: string): any;
37
37
  getKey($ref: string): string | undefined;
38
38
  set($ref: string, value: unknown): false | undefined;
@@ -427,7 +427,7 @@ type SafeParseResult<H extends PluginLifecycleHooks, Result = ReturnType<ParseRe
427
427
  result: Result;
428
428
  plugin: Plugin;
429
429
  };
430
- type Options$3 = {
430
+ type Options$2 = {
431
431
  fabric: Fabric;
432
432
  logger: Logger;
433
433
  /**
@@ -453,8 +453,8 @@ declare class PluginManager {
453
453
  readonly config: Config;
454
454
  readonly executed: Array<Executer>;
455
455
  readonly logger: Logger;
456
- readonly options: Options$3;
457
- constructor(config: Config, options: Options$3);
456
+ readonly options: Options$2;
457
+ constructor(config: Config, options: Options$2);
458
458
  getContext<TOptions extends PluginFactoryOptions>(plugin: Plugin<TOptions>): PluginContext<TOptions> & Record<string, any>;
459
459
  get plugins(): Array<Plugin>;
460
460
  getFile<TOptions = object>({
@@ -1006,7 +1006,7 @@ type CoreGenerator<TOptions extends PluginFactoryOptions> = {
1006
1006
  };
1007
1007
  //#endregion
1008
1008
  //#region ../plugin-client/src/types.d.ts
1009
- type Options$2 = {
1009
+ type Options$1 = {
1010
1010
  /**
1011
1011
  * Specify the export location for the files and define the behavior of the output
1012
1012
  * @default { path: 'clients', barrelType: 'named' }
@@ -1121,20 +1121,20 @@ type Options$2 = {
1121
1121
  };
1122
1122
  type ResolvedOptions$1 = {
1123
1123
  output: Output<Oas>;
1124
- group?: Options$2['group'];
1124
+ group?: Options$1['group'];
1125
1125
  baseURL: string | undefined;
1126
- client: Options$2['client'];
1127
- clientType: NonNullable<Options$2['clientType']>;
1128
- bundle: NonNullable<Options$2['bundle']>;
1129
- parser: NonNullable<Options$2['parser']>;
1130
- urlType: NonNullable<Options$2['urlType']>;
1131
- importPath: Options$2['importPath'];
1132
- dataReturnType: NonNullable<Options$2['dataReturnType']>;
1133
- pathParamsType: NonNullable<Options$2['pathParamsType']>;
1134
- paramsType: NonNullable<Options$2['paramsType']>;
1135
- paramsCasing: Options$2['paramsCasing'];
1126
+ client: Options$1['client'];
1127
+ clientType: NonNullable<Options$1['clientType']>;
1128
+ bundle: NonNullable<Options$1['bundle']>;
1129
+ parser: NonNullable<Options$1['parser']>;
1130
+ urlType: NonNullable<Options$1['urlType']>;
1131
+ importPath: Options$1['importPath'];
1132
+ dataReturnType: NonNullable<Options$1['dataReturnType']>;
1133
+ pathParamsType: NonNullable<Options$1['pathParamsType']>;
1134
+ paramsType: NonNullable<Options$1['paramsType']>;
1135
+ paramsCasing: Options$1['paramsCasing'];
1136
1136
  };
1137
- type PluginClient = PluginFactoryOptions<'plugin-client', Options$2, ResolvedOptions$1, never, ResolvePathOptions>;
1137
+ type PluginClient = PluginFactoryOptions<'plugin-client', Options$1, ResolvedOptions$1, never, ResolvePathOptions>;
1138
1138
  //#endregion
1139
1139
  //#region src/types.d.ts
1140
1140
  type TransformerProps = {
@@ -1181,7 +1181,7 @@ type Mutation = {
1181
1181
  */
1182
1182
  importPath?: string;
1183
1183
  };
1184
- type Options$1 = {
1184
+ type Options = {
1185
1185
  /**
1186
1186
  * Specify the export location for the files and define the behavior of the output
1187
1187
  * @default { path: 'hooks', barrelType: 'named' }
@@ -1256,18 +1256,18 @@ type Options$1 = {
1256
1256
  };
1257
1257
  type ResolvedOptions = {
1258
1258
  output: Output<Oas>;
1259
- group: Options$1['group'];
1259
+ group: Options['group'];
1260
1260
  client: NonNullable<PluginSvelteQuery['options']['client']>;
1261
- parser: Required<NonNullable<Options$1['parser']>>;
1262
- paramsCasing: Options$1['paramsCasing'];
1263
- paramsType: NonNullable<Options$1['paramsType']>;
1264
- pathParamsType: NonNullable<Options$1['pathParamsType']>;
1261
+ parser: Required<NonNullable<Options['parser']>>;
1262
+ paramsCasing: Options['paramsCasing'];
1263
+ paramsType: NonNullable<Options['paramsType']>;
1264
+ pathParamsType: NonNullable<Options['pathParamsType']>;
1265
1265
  queryKey: QueryKey | undefined;
1266
1266
  query: NonNullable<Required<Query>> | false;
1267
1267
  mutationKey: MutationKey | undefined;
1268
1268
  mutation: NonNullable<Required<Mutation>> | false;
1269
1269
  };
1270
- type PluginSvelteQuery = PluginFactoryOptions<'plugin-svelte-query', Options$1, ResolvedOptions, never, ResolvePathOptions>;
1270
+ type PluginSvelteQuery = PluginFactoryOptions<'plugin-svelte-query', Options, ResolvedOptions, never, ResolvePathOptions>;
1271
1271
  //#endregion
1272
- export { OperationSchemas as a, ReactGenerator as i, PluginSvelteQuery as n, UserPluginWithLifeCycle as o, Transformer as r, Operation$1 as s, Options$1 as t };
1273
- //# sourceMappingURL=types-B66VK8nP.d.cts.map
1272
+ export { OperationSchemas as a, ReactGenerator as i, PluginSvelteQuery as n, UserPluginWithLifeCycle as o, Transformer as r, Operation$1 as s, Options as t };
1273
+ //# sourceMappingURL=types-WWuAyOnp.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-svelte-query",
3
- "version": "4.10.0",
3
+ "version": "4.10.1",
4
4
  "description": "Svelte Query hooks generator plugin for Kubb, creating type-safe API client hooks from OpenAPI specifications for Svelte applications.",
5
5
  "keywords": [
6
6
  "svelte-query",
@@ -27,16 +27,16 @@
27
27
  "type": "module",
28
28
  "exports": {
29
29
  ".": {
30
- "import": "./dist/index.js",
31
- "require": "./dist/index.cjs"
30
+ "require": "./dist/index.cjs",
31
+ "import": "./dist/index.js"
32
32
  },
33
33
  "./components": {
34
- "import": "./dist/components.js",
35
- "require": "./dist/components.cjs"
34
+ "require": "./dist/components.cjs",
35
+ "import": "./dist/components.js"
36
36
  },
37
37
  "./generators": {
38
- "import": "./dist/generators.js",
39
- "require": "./dist/generators.cjs"
38
+ "require": "./dist/generators.cjs",
39
+ "import": "./dist/generators.js"
40
40
  },
41
41
  "./package.json": "./package.json"
42
42
  },
@@ -69,12 +69,12 @@
69
69
  "dependencies": {
70
70
  "@kubb/react-fabric": "0.5.4",
71
71
  "remeda": "^2.32.0",
72
- "@kubb/core": "4.10.0",
73
- "@kubb/oas": "4.10.0",
74
- "@kubb/plugin-client": "4.10.0",
75
- "@kubb/plugin-oas": "4.10.0",
76
- "@kubb/plugin-ts": "4.10.0",
77
- "@kubb/plugin-zod": "4.10.0"
72
+ "@kubb/core": "4.10.1",
73
+ "@kubb/oas": "4.10.1",
74
+ "@kubb/plugin-client": "4.10.1",
75
+ "@kubb/plugin-oas": "4.10.1",
76
+ "@kubb/plugin-ts": "4.10.1",
77
+ "@kubb/plugin-zod": "4.10.1"
78
78
  },
79
79
  "peerDependencies": {
80
80
  "@kubb/react-fabric": "0.5.4"