@kubb/core 4.36.2 → 4.36.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.
@@ -1,8 +1,8 @@
1
1
  import { t as __name } from "./chunk--u3MIqq1.js";
2
2
  import { EventEmitter } from "node:events";
3
- import { Fabric } from "@kubb/react-fabric";
4
3
  import { KubbFile } from "@kubb/fabric-core/types";
5
4
  import { Printer, PrinterFactoryOptions, RootNode } from "@kubb/ast/types";
5
+ import { Fabric } from "@kubb/react-fabric/types";
6
6
 
7
7
  //#region ../../internals/utils/dist/index.d.ts
8
8
  /**
@@ -988,4 +988,4 @@ type Logger<TOptions extends LoggerOptions = LoggerOptions> = {
988
988
  type UserLogger<TOptions extends LoggerOptions = LoggerOptions> = Omit<Logger<TOptions>, 'logLevel'>;
989
989
  //#endregion
990
990
  export { UserPlugin as A, AsyncEventEmitter as B, Printer as C, UnknownUserPlugin as D, ResolvePathParams as E, DefineStorage as F, defineStorage as I, formatters as L, KubbEvents as M, PluginManager as N, UserConfig as O, getMode as P, linters as R, PluginWithLifeCycle as S, ResolveNameParams as T, URLPath as V, PluginFactoryOptions as _, Config as a, PluginLifecycleHooks as b, Group as c, Logger as d, LoggerContext as f, PluginContext as g, Plugin as h, BarrelType as i, UserPluginWithLifeCycle as j, UserLogger as k, InputData as l, Output as m, AdapterFactoryOptions as n, DevtoolsOptions as o, LoggerOptions as p, AdapterSource as r, GetPluginFactoryOptions as s, Adapter as t, InputPath as u, PluginKey as v, PrinterFactoryOptions as w, PluginParameter as x, PluginLifecycle as y, logLevel as z };
991
- //# sourceMappingURL=types-D30QAz2y.d.ts.map
991
+ //# sourceMappingURL=types-BwL2CHjl.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/core",
3
- "version": "4.36.2",
3
+ "version": "4.36.4",
4
4
  "description": "Core functionality for Kubb's plugin-based code generation system, providing the foundation for transforming OpenAPI specifications.",
5
5
  "keywords": [
6
6
  "typescript",
@@ -64,14 +64,14 @@
64
64
  }
65
65
  ],
66
66
  "dependencies": {
67
- "@kubb/fabric-core": "0.13.3",
68
- "@kubb/react-fabric": "0.13.3",
67
+ "@kubb/fabric-core": "0.14.0",
68
+ "@kubb/react-fabric": "0.14.0",
69
69
  "empathic": "^2.0.0",
70
70
  "fflate": "^0.8.2",
71
71
  "remeda": "^2.33.6",
72
72
  "semver": "^7.7.4",
73
73
  "tinyexec": "^1.0.4",
74
- "@kubb/ast": "4.36.2"
74
+ "@kubb/ast": "4.36.4"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@types/semver": "^7.7.1",
@@ -79,8 +79,8 @@
79
79
  "@internals/utils": "0.0.0"
80
80
  },
81
81
  "peerDependencies": {
82
- "@kubb/fabric-core": "0.13.3",
83
- "@kubb/react-fabric": "0.13.3"
82
+ "@kubb/fabric-core": "0.14.0",
83
+ "@kubb/react-fabric": "0.14.0"
84
84
  },
85
85
  "engines": {
86
86
  "node": ">=20"
@@ -4,7 +4,7 @@ import type { AsyncEventEmitter } from '@internals/utils'
4
4
  import { setUniqueName, transformReservedWord } from '@internals/utils'
5
5
  import type { RootNode } from '@kubb/ast/types'
6
6
  import type { KubbFile } from '@kubb/fabric-core/types'
7
- import type { Fabric } from '@kubb/react-fabric'
7
+ import type { Fabric } from '@kubb/react-fabric/types'
8
8
  import { CORE_PLUGIN_NAME, DEFAULT_STUDIO_URL } from './constants.ts'
9
9
  import { openInStudio as openInStudioFn } from './devtools.ts'
10
10
  import { ValidationPluginError } from './errors.ts'
package/src/build.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { dirname, relative, resolve } from 'node:path'
2
2
  import { AsyncEventEmitter, exists, formatMs, getElapsedMs, getRelativePath, URLPath } from '@internals/utils'
3
3
  import type { KubbFile } from '@kubb/fabric-core/types'
4
- import type { Fabric } from '@kubb/react-fabric'
5
4
  import { createFabric } from '@kubb/react-fabric'
6
5
  import { typescriptParser } from '@kubb/react-fabric/parsers'
7
6
  import { fsPlugin } from '@kubb/react-fabric/plugins'
7
+ import type { Fabric } from '@kubb/react-fabric/types'
8
8
  import { isInputPath } from './config.ts'
9
9
  import { BARREL_FILENAME, DEFAULT_BANNER, DEFAULT_CONCURRENCY, DEFAULT_EXTENSION, DEFAULT_STUDIO_URL } from './constants.ts'
10
10
  import { BuildError } from './errors.ts'
@@ -1,8 +1,8 @@
1
1
  import type { KubbFile } from '@kubb/fabric-core/types'
2
- import { useApp } from '@kubb/react-fabric'
2
+ import { useFabric } from '@kubb/react-fabric'
3
3
 
4
4
  export function useMode(): KubbFile.Mode {
5
- const { meta } = useApp<{ mode: KubbFile.Mode }>()
5
+ const { meta } = useFabric<{ mode: KubbFile.Mode }>()
6
6
 
7
7
  return meta.mode
8
8
  }
@@ -1,8 +1,8 @@
1
- import { useApp } from '@kubb/react-fabric'
1
+ import { useFabric } from '@kubb/react-fabric'
2
2
  import type { Plugin, PluginFactoryOptions } from '../types.ts'
3
3
 
4
4
  export function usePlugin<TOptions extends PluginFactoryOptions = PluginFactoryOptions>(): Plugin<TOptions> {
5
- const { meta } = useApp<{ plugin: Plugin<TOptions> }>()
5
+ const { meta } = useFabric<{ plugin: Plugin<TOptions> }>()
6
6
 
7
7
  return meta.plugin
8
8
  }
@@ -1,8 +1,8 @@
1
- import { useApp } from '@kubb/react-fabric'
1
+ import { useFabric } from '@kubb/react-fabric'
2
2
  import type { PluginManager } from '../PluginManager.ts'
3
3
 
4
4
  export function usePluginManager(): PluginManager {
5
- const { meta } = useApp<{ pluginManager: PluginManager }>()
5
+ const { meta } = useFabric<{ pluginManager: PluginManager }>()
6
6
 
7
7
  return meta.pluginManager
8
8
  }
package/src/types.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { AsyncEventEmitter, PossiblePromise } from '@internals/utils'
2
2
  import type { RootNode } from '@kubb/ast/types'
3
3
  import type { KubbFile } from '@kubb/fabric-core/types'
4
- import type { Fabric } from '@kubb/react-fabric'
4
+ import type { Fabric } from '@kubb/react-fabric/types'
5
5
  import type { DEFAULT_STUDIO_URL, logLevel } from './constants.ts'
6
6
  import type { DefineStorage } from './defineStorage.ts'
7
7
  import type { KubbEvents } from './Kubb.ts'