@kubb/plugin-svelte-query 5.0.0-alpha.2 → 5.0.0-alpha.3

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,6 +1,6 @@
1
1
  import { t as __name } from "./chunk--u3MIqq1.js";
2
2
  import { n as PluginSvelteQuery } from "./types-DtgzW06v.js";
3
- import { AsyncEventEmitter, Config, FileMetaBase, Group, KubbEvents, Output, Plugin, PluginFactoryOptions, PluginManager, ResolveNameParams } from "@kubb/core";
3
+ import { Adapter, AsyncEventEmitter, Config, FileMetaBase, Group, KubbEvents, Output, Plugin, PluginFactoryOptions, PluginManager, ResolveNameParams } from "@kubb/core";
4
4
  import { HttpMethod, Oas, Operation, SchemaObject, contentType } from "@kubb/oas";
5
5
  import { Fabric } from "@kubb/react-fabric";
6
6
  import { FabricReactNode } from "@kubb/react-fabric/types";
@@ -446,7 +446,8 @@ type OperationsV1Props<TOptions extends PluginFactoryOptions> = {
446
446
  };
447
447
  type OperationsV2Props<TOptions extends PluginFactoryOptions> = {
448
448
  config: Config;
449
- plugin: Plugin<TOptions>;
449
+ adapter: Adapter;
450
+ options: Plugin<TOptions>['options'];
450
451
  nodes: Array<OperationNode>;
451
452
  };
452
453
  type OperationV1Props<TOptions extends PluginFactoryOptions> = {
@@ -457,7 +458,8 @@ type OperationV1Props<TOptions extends PluginFactoryOptions> = {
457
458
  };
458
459
  type OperationV2Props<TOptions extends PluginFactoryOptions> = {
459
460
  config: Config;
460
- plugin: Plugin<TOptions>;
461
+ adapter: Adapter;
462
+ options: Plugin<TOptions>['options'];
461
463
  node: OperationNode;
462
464
  };
463
465
  type OperationsProps<TOptions extends PluginFactoryOptions, TVersion extends Version = '1'> = TVersion extends '2' ? OperationsV2Props<TOptions> : OperationsV1Props<TOptions>;
@@ -474,8 +476,9 @@ type SchemaV1Props<TOptions extends PluginFactoryOptions> = {
474
476
  };
475
477
  type SchemaV2Props<TOptions extends PluginFactoryOptions> = {
476
478
  config: Config;
477
- plugin: Plugin<TOptions>;
479
+ options: Plugin<TOptions>['options'];
478
480
  node: SchemaNode;
481
+ adapter: Adapter;
479
482
  };
480
483
  type SchemaProps<TOptions extends PluginFactoryOptions, TVersion extends Version = '1'> = TVersion extends '2' ? SchemaV2Props<TOptions> : SchemaV1Props<TOptions>;
481
484
  type Generator<TOptions extends PluginFactoryOptions, TVersion extends Version = Version> = CoreGenerator<TOptions, TVersion> | ReactGenerator<TOptions, TVersion>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-svelte-query",
3
- "version": "5.0.0-alpha.2",
3
+ "version": "5.0.0-alpha.3",
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",
@@ -75,12 +75,12 @@
75
75
  "@kubb/fabric-core": "0.13.3",
76
76
  "@kubb/react-fabric": "0.13.3",
77
77
  "remeda": "^2.33.6",
78
- "@kubb/core": "5.0.0-alpha.2",
79
- "@kubb/oas": "5.0.0-alpha.2",
80
- "@kubb/plugin-client": "5.0.0-alpha.2",
81
- "@kubb/plugin-oas": "5.0.0-alpha.2",
82
- "@kubb/plugin-ts": "5.0.0-alpha.2",
83
- "@kubb/plugin-zod": "5.0.0-alpha.2"
78
+ "@kubb/core": "5.0.0-alpha.3",
79
+ "@kubb/oas": "5.0.0-alpha.3",
80
+ "@kubb/plugin-client": "5.0.0-alpha.3",
81
+ "@kubb/plugin-oas": "5.0.0-alpha.3",
82
+ "@kubb/plugin-ts": "5.0.0-alpha.3",
83
+ "@kubb/plugin-zod": "5.0.0-alpha.3"
84
84
  },
85
85
  "peerDependencies": {
86
86
  "@kubb/fabric-core": "0.13.3",