@kubb/react-fabric 0.2.8 → 0.2.10
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/README.md +20 -0
- package/dist/{Fabric-BF1akKIl.d.cts → Fabric-BMvLfKlB.d.cts} +119 -4
- package/dist/{Fabric-E6DCwBtT.d.ts → Fabric-TETpTRcg.d.ts} +121 -3
- package/dist/globals.d.cts +2 -2
- package/dist/globals.d.ts +2 -2
- package/dist/index.d.cts +3 -9
- package/dist/index.d.ts +3 -9
- package/dist/jsx-dev-runtime.d.cts +3 -3
- package/dist/jsx-dev-runtime.d.ts +3 -3
- package/dist/{jsx-namespace-ChKpfNjr.d.cts → jsx-namespace-Cpatx8zF.d.cts} +2 -2
- package/dist/{jsx-namespace-K9CSDVFl.d.ts → jsx-namespace-D5ipteo8.d.ts} +2 -2
- package/dist/jsx-runtime.d.cts +3 -3
- package/dist/jsx-runtime.d.ts +3 -3
- package/dist/parsers.d.cts +1 -2
- package/dist/parsers.d.ts +1 -2
- package/dist/plugins.d.cts +2 -3
- package/dist/plugins.d.ts +2 -3
- package/dist/{reactPlugin-B4CbqrDr.d.cts → reactPlugin-BRjwo_IX.d.cts} +2 -2
- package/dist/{reactPlugin-B0NqEe-x.d.ts → reactPlugin-H_LXLEx_.d.ts} +2 -2
- package/dist/{types-B2EZG5-G.d.cts → types-6UYuSzYO.d.ts} +8 -3
- package/dist/{types-UALIyxCE.d.ts → types-CdE_cJBr.d.cts} +8 -3
- package/dist/types.cjs +9 -0
- package/dist/types.d.cts +3 -3
- package/dist/types.d.ts +3 -3
- package/dist/types.js +2 -0
- package/package.json +11 -6
- package/src/types.ts +2 -0
- package/dist/KubbFile-D4gyyfL-.d.ts +0 -115
- package/dist/KubbFile-FGXV713i.d.cts +0 -115
- package/dist/chunk-BEV-X5tz.js +0 -27
package/README.md
CHANGED
|
@@ -297,3 +297,23 @@ fabric.write({ extension: { '.vue': '.ts' } })
|
|
|
297
297
|
> [!NOTE]
|
|
298
298
|
> - `fabric.use` accepts both plugins and parsers. The `fsPlugin` handles I/O and adds `fabric.write`. Parsers decide how files are converted to strings for specific extensions.
|
|
299
299
|
> - When extension mapping is provided to `fabric.write`, Fabric picks a parser whose `extNames` include the file’s extension. Otherwise, the default parser is used.
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
<!-- Badges -->
|
|
303
|
+
|
|
304
|
+
[npm-version-src]: https://img.shields.io/npm/v/@kubb/fabric-core?flat&colorA=18181B&colorB=f58517
|
|
305
|
+
[npm-version-href]: https://npmjs.com/package/@kubb/fabric-core
|
|
306
|
+
[npm-downloads-src]: https://img.shields.io/npm/dm/@kubb/fabric-core?flat&colorA=18181B&colorB=f58517
|
|
307
|
+
[npm-downloads-href]: https://npmjs.com/package/@kubb/fabric-core
|
|
308
|
+
[license-src]: https://img.shields.io/github/license/kubb-labs/fabric.svg?flat&colorA=18181B&colorB=f58517
|
|
309
|
+
[license-href]: https://github.com/kubb-labs/fabric/blob/main/LICENSE
|
|
310
|
+
[build-src]: https://img.shields.io/github/actions/workflow/status/kubb-labs/fabric/ci.yaml?style=flat&colorA=18181B&colorB=f58517
|
|
311
|
+
[build-href]: https://www.npmjs.com/package/@kubb/fabric-core
|
|
312
|
+
[minified-src]: https://img.shields.io/bundlephobia/min/@kubb/fabric-core?style=flat&colorA=18181B&colorB=f58517
|
|
313
|
+
[minified-href]: https://www.npmjs.com/package/@kubb/fabric-core
|
|
314
|
+
[coverage-src]: https://img.shields.io/codecov/c/github/kubb-labs/fabric?style=flat&colorA=18181B&colorB=f58517
|
|
315
|
+
[coverage-href]: https://www.npmjs.com/package/@kubb/fabric-core
|
|
316
|
+
[contributors-src]: https://img.shields.io/github/contributors/kubb-labs/fabric?style=flat&colorA=18181B&colorB=f58517&label=%20
|
|
317
|
+
[contributors-href]: #contributors-
|
|
318
|
+
[sponsors-src]: https://img.shields.io/github/sponsors/stijnvanhulle?style=flat&colorA=18181B&colorB=f58517
|
|
319
|
+
[sponsors-href]: https://github.com/sponsors/stijnvanhulle/
|
|
@@ -1,5 +1,120 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
declare namespace KubbFile_d_exports {
|
|
2
|
+
export { AdvancedPath, BaseName, Export, Extname, File, Import, Mode, OptionalPath, Path, ResolvedExport, ResolvedFile, ResolvedImport, Source };
|
|
3
|
+
}
|
|
4
|
+
type BasePath<T extends string = string> = `${T}/`;
|
|
5
|
+
type Import = {
|
|
6
|
+
/**
|
|
7
|
+
* Import name to be used
|
|
8
|
+
* @example ["useState"]
|
|
9
|
+
* @example "React"
|
|
10
|
+
*/
|
|
11
|
+
name: string | Array<string | {
|
|
12
|
+
propertyName: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
}>;
|
|
15
|
+
/**
|
|
16
|
+
* Path for the import
|
|
17
|
+
* @example '@kubb/core'
|
|
18
|
+
*/
|
|
19
|
+
path: string;
|
|
20
|
+
/**
|
|
21
|
+
* Add `type` prefix to the import, this will result in: `import type { Type } from './path'`.
|
|
22
|
+
*/
|
|
23
|
+
isTypeOnly?: boolean;
|
|
24
|
+
isNameSpace?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* When root is set it will get the path with relative getRelativePath(root, path).
|
|
27
|
+
*/
|
|
28
|
+
root?: string;
|
|
29
|
+
};
|
|
30
|
+
type Source = {
|
|
31
|
+
name?: string;
|
|
32
|
+
value?: string;
|
|
33
|
+
isTypeOnly?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Has const or type 'export'
|
|
36
|
+
* @default false
|
|
37
|
+
*/
|
|
38
|
+
isExportable?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* When set, barrel generation will add this
|
|
41
|
+
* @default false
|
|
42
|
+
*/
|
|
43
|
+
isIndexable?: boolean;
|
|
44
|
+
};
|
|
45
|
+
type Export = {
|
|
46
|
+
/**
|
|
47
|
+
* Export name to be used.
|
|
48
|
+
* @example ["useState"]
|
|
49
|
+
* @example "React"
|
|
50
|
+
*/
|
|
51
|
+
name?: string | Array<string>;
|
|
52
|
+
/**
|
|
53
|
+
* Path for the import.
|
|
54
|
+
* @example '@kubb/core'
|
|
55
|
+
*/
|
|
56
|
+
path: string;
|
|
57
|
+
/**
|
|
58
|
+
* Add `type` prefix to the export, this will result in: `export type { Type } from './path'`.
|
|
59
|
+
*/
|
|
60
|
+
isTypeOnly?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Make it possible to override the name, this will result in: `export * as aliasName from './path'`.
|
|
63
|
+
*/
|
|
64
|
+
asAlias?: boolean;
|
|
65
|
+
};
|
|
66
|
+
type Extname = '.ts' | '.js' | '.tsx' | '.json' | `.${string}`;
|
|
67
|
+
type Mode = 'single' | 'split';
|
|
68
|
+
/**
|
|
69
|
+
* Name to be used to dynamicly create the baseName(based on input.path)
|
|
70
|
+
* Based on UNIX basename
|
|
71
|
+
* @link https://nodejs.org/api/path.html#pathbasenamepath-suffix
|
|
72
|
+
*/
|
|
73
|
+
type BaseName = `${string}.${string}`;
|
|
74
|
+
/**
|
|
75
|
+
* Path will be full qualified path to a specified file
|
|
76
|
+
*/
|
|
77
|
+
type Path = string;
|
|
78
|
+
type AdvancedPath<T extends BaseName = BaseName> = `${BasePath}${T}`;
|
|
79
|
+
type OptionalPath = Path | undefined | null;
|
|
80
|
+
type File<TMeta extends object = object> = {
|
|
81
|
+
/**
|
|
82
|
+
* Name to be used to create the path
|
|
83
|
+
* Based on UNIX basename, `${name}.extname`
|
|
84
|
+
* @link https://nodejs.org/api/path.html#pathbasenamepath-suffix
|
|
85
|
+
*/
|
|
86
|
+
baseName: BaseName;
|
|
87
|
+
/**
|
|
88
|
+
* Path will be full qualified path to a specified file
|
|
89
|
+
*/
|
|
90
|
+
path: AdvancedPath<BaseName> | Path;
|
|
91
|
+
sources: Array<Source>;
|
|
92
|
+
imports?: Array<Import>;
|
|
93
|
+
exports?: Array<Export>;
|
|
94
|
+
/**
|
|
95
|
+
* Use extra meta, this is getting used to generate the barrel/index files.
|
|
96
|
+
*/
|
|
97
|
+
meta?: TMeta;
|
|
98
|
+
banner?: string;
|
|
99
|
+
footer?: string;
|
|
100
|
+
};
|
|
101
|
+
type ResolvedImport = Import;
|
|
102
|
+
type ResolvedExport = Export;
|
|
103
|
+
type ResolvedFile<TMeta extends object = object> = File<TMeta> & {
|
|
104
|
+
/**
|
|
105
|
+
* @default hash
|
|
106
|
+
*/
|
|
107
|
+
id: string;
|
|
108
|
+
/**
|
|
109
|
+
* Contains the first part of the baseName, generated based on baseName
|
|
110
|
+
* @link https://nodejs.org/api/path.html#pathformatpathobject
|
|
111
|
+
*/
|
|
112
|
+
name: string;
|
|
113
|
+
extname: Extname;
|
|
114
|
+
imports: Array<ResolvedImport>;
|
|
115
|
+
exports: Array<ResolvedExport>;
|
|
116
|
+
};
|
|
117
|
+
//#endregion
|
|
3
118
|
//#region ../fabric-core/src/plugins/types.d.ts
|
|
4
119
|
type Plugin<TOptions = unknown, TAppExtension extends Record<string, any> = {}> = {
|
|
5
120
|
name: string;
|
|
@@ -196,5 +311,5 @@ interface Fabric<TOptions extends FabricOptions = FabricOptions> extends Kubb.Fa
|
|
|
196
311
|
addFile(...files: Array<File>): Promise<void>;
|
|
197
312
|
}
|
|
198
313
|
//#endregion
|
|
199
|
-
export {
|
|
200
|
-
//# sourceMappingURL=Fabric-
|
|
314
|
+
export { Path as _, FileManager as a, UserParser as c, BaseName as d, Export as f, KubbFile_d_exports as g, Import as h, FabricOptions as i, Plugin as l, File as m, FabricContext as n, FileProcessor as o, Extname as p, FabricMode as r, Parser as s, Fabric as t, UserPlugin as u, ResolvedFile as v, Source as y };
|
|
315
|
+
//# sourceMappingURL=Fabric-BMvLfKlB.d.cts.map
|
|
@@ -1,5 +1,123 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
2
|
|
|
3
|
+
//#region rolldown:runtime
|
|
4
|
+
declare namespace KubbFile_d_exports {
|
|
5
|
+
export { AdvancedPath, BaseName, Export, Extname, File, Import, Mode, OptionalPath, Path, ResolvedExport, ResolvedFile, ResolvedImport, Source };
|
|
6
|
+
}
|
|
7
|
+
type BasePath<T extends string = string> = `${T}/`;
|
|
8
|
+
type Import = {
|
|
9
|
+
/**
|
|
10
|
+
* Import name to be used
|
|
11
|
+
* @example ["useState"]
|
|
12
|
+
* @example "React"
|
|
13
|
+
*/
|
|
14
|
+
name: string | Array<string | {
|
|
15
|
+
propertyName: string;
|
|
16
|
+
name?: string;
|
|
17
|
+
}>;
|
|
18
|
+
/**
|
|
19
|
+
* Path for the import
|
|
20
|
+
* @example '@kubb/core'
|
|
21
|
+
*/
|
|
22
|
+
path: string;
|
|
23
|
+
/**
|
|
24
|
+
* Add `type` prefix to the import, this will result in: `import type { Type } from './path'`.
|
|
25
|
+
*/
|
|
26
|
+
isTypeOnly?: boolean;
|
|
27
|
+
isNameSpace?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* When root is set it will get the path with relative getRelativePath(root, path).
|
|
30
|
+
*/
|
|
31
|
+
root?: string;
|
|
32
|
+
};
|
|
33
|
+
type Source = {
|
|
34
|
+
name?: string;
|
|
35
|
+
value?: string;
|
|
36
|
+
isTypeOnly?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Has const or type 'export'
|
|
39
|
+
* @default false
|
|
40
|
+
*/
|
|
41
|
+
isExportable?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* When set, barrel generation will add this
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
46
|
+
isIndexable?: boolean;
|
|
47
|
+
};
|
|
48
|
+
type Export = {
|
|
49
|
+
/**
|
|
50
|
+
* Export name to be used.
|
|
51
|
+
* @example ["useState"]
|
|
52
|
+
* @example "React"
|
|
53
|
+
*/
|
|
54
|
+
name?: string | Array<string>;
|
|
55
|
+
/**
|
|
56
|
+
* Path for the import.
|
|
57
|
+
* @example '@kubb/core'
|
|
58
|
+
*/
|
|
59
|
+
path: string;
|
|
60
|
+
/**
|
|
61
|
+
* Add `type` prefix to the export, this will result in: `export type { Type } from './path'`.
|
|
62
|
+
*/
|
|
63
|
+
isTypeOnly?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Make it possible to override the name, this will result in: `export * as aliasName from './path'`.
|
|
66
|
+
*/
|
|
67
|
+
asAlias?: boolean;
|
|
68
|
+
};
|
|
69
|
+
type Extname = '.ts' | '.js' | '.tsx' | '.json' | `.${string}`;
|
|
70
|
+
type Mode = 'single' | 'split';
|
|
71
|
+
/**
|
|
72
|
+
* Name to be used to dynamicly create the baseName(based on input.path)
|
|
73
|
+
* Based on UNIX basename
|
|
74
|
+
* @link https://nodejs.org/api/path.html#pathbasenamepath-suffix
|
|
75
|
+
*/
|
|
76
|
+
type BaseName = `${string}.${string}`;
|
|
77
|
+
/**
|
|
78
|
+
* Path will be full qualified path to a specified file
|
|
79
|
+
*/
|
|
80
|
+
type Path = string;
|
|
81
|
+
type AdvancedPath<T extends BaseName = BaseName> = `${BasePath}${T}`;
|
|
82
|
+
type OptionalPath = Path | undefined | null;
|
|
83
|
+
type File<TMeta extends object = object> = {
|
|
84
|
+
/**
|
|
85
|
+
* Name to be used to create the path
|
|
86
|
+
* Based on UNIX basename, `${name}.extname`
|
|
87
|
+
* @link https://nodejs.org/api/path.html#pathbasenamepath-suffix
|
|
88
|
+
*/
|
|
89
|
+
baseName: BaseName;
|
|
90
|
+
/**
|
|
91
|
+
* Path will be full qualified path to a specified file
|
|
92
|
+
*/
|
|
93
|
+
path: AdvancedPath<BaseName> | Path;
|
|
94
|
+
sources: Array<Source>;
|
|
95
|
+
imports?: Array<Import>;
|
|
96
|
+
exports?: Array<Export>;
|
|
97
|
+
/**
|
|
98
|
+
* Use extra meta, this is getting used to generate the barrel/index files.
|
|
99
|
+
*/
|
|
100
|
+
meta?: TMeta;
|
|
101
|
+
banner?: string;
|
|
102
|
+
footer?: string;
|
|
103
|
+
};
|
|
104
|
+
type ResolvedImport = Import;
|
|
105
|
+
type ResolvedExport = Export;
|
|
106
|
+
type ResolvedFile<TMeta extends object = object> = File<TMeta> & {
|
|
107
|
+
/**
|
|
108
|
+
* @default hash
|
|
109
|
+
*/
|
|
110
|
+
id: string;
|
|
111
|
+
/**
|
|
112
|
+
* Contains the first part of the baseName, generated based on baseName
|
|
113
|
+
* @link https://nodejs.org/api/path.html#pathformatpathobject
|
|
114
|
+
*/
|
|
115
|
+
name: string;
|
|
116
|
+
extname: Extname;
|
|
117
|
+
imports: Array<ResolvedImport>;
|
|
118
|
+
exports: Array<ResolvedExport>;
|
|
119
|
+
};
|
|
120
|
+
//#endregion
|
|
3
121
|
//#region ../fabric-core/src/plugins/types.d.ts
|
|
4
122
|
type Plugin<TOptions = unknown, TAppExtension extends Record<string, any> = {}> = {
|
|
5
123
|
name: string;
|
|
@@ -196,5 +314,5 @@ interface Fabric<TOptions extends FabricOptions = FabricOptions> extends Kubb.Fa
|
|
|
196
314
|
addFile(...files: Array<File>): Promise<void>;
|
|
197
315
|
}
|
|
198
316
|
//#endregion
|
|
199
|
-
export {
|
|
200
|
-
//# sourceMappingURL=Fabric-
|
|
317
|
+
export { Path as _, FileManager as a, UserParser as c, BaseName as d, Export as f, KubbFile_d_exports as g, Import as h, FabricOptions as i, Plugin as l, File as m, FabricContext as n, FileProcessor as o, Extname as p, FabricMode as r, Parser as s, Fabric as t, UserPlugin as u, ResolvedFile as v, Source as y };
|
|
318
|
+
//# sourceMappingURL=Fabric-TETpTRcg.d.ts.map
|
package/dist/globals.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { c as KubbExportProps, d as KubbNode, f as KubbSourceProps, l as KubbFileProps, m as LineBreakProps, p as KubbTextProps, s as KubbElement, u as KubbImportProps } from "./types-
|
|
1
|
+
import "./Fabric-BMvLfKlB.cjs";
|
|
2
|
+
import { c as KubbExportProps, d as KubbNode, f as KubbSourceProps, l as KubbFileProps, m as LineBreakProps, p as KubbTextProps, s as KubbElement, u as KubbImportProps } from "./types-CdE_cJBr.cjs";
|
|
3
3
|
import React from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/globals.d.ts
|
package/dist/globals.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { c as KubbExportProps, d as KubbNode, f as KubbSourceProps, l as KubbFileProps, m as LineBreakProps, p as KubbTextProps, s as KubbElement, u as KubbImportProps } from "./types-
|
|
1
|
+
import "./Fabric-TETpTRcg.js";
|
|
2
|
+
import { c as KubbExportProps, d as KubbNode, f as KubbSourceProps, l as KubbFileProps, m as LineBreakProps, p as KubbTextProps, s as KubbElement, u as KubbImportProps } from "./types-6UYuSzYO.js";
|
|
3
3
|
import React from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/globals.d.ts
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { a as
|
|
3
|
-
import {
|
|
4
|
-
import { t as Options$1 } from "./reactPlugin-B4CbqrDr.cjs";
|
|
1
|
+
import { _ as Path, a as FileManager, d as BaseName, f as Export, h as Import, i as FabricOptions, m as File$1, o as FileProcessor, r as FabricMode, t as Fabric, v as ResolvedFile, y as Source } from "./Fabric-BMvLfKlB.cjs";
|
|
2
|
+
import { a as JSDoc, b as DefineFabric, d as KubbNode, g as FunctionParams, o as Key, x as defineFabric, y as createFunctionParams } from "./types-CdE_cJBr.cjs";
|
|
3
|
+
import { t as Options$1 } from "./reactPlugin-BRjwo_IX.cjs";
|
|
5
4
|
import * as react0 from "react";
|
|
6
5
|
import React, { ReactNode, createContext, createElement, use, useContext, useEffect, useReducer, useRef, useState } from "react";
|
|
7
6
|
|
|
@@ -14,11 +13,6 @@ declare const createFabric: DefineFabric<FabricOptions>;
|
|
|
14
13
|
*/
|
|
15
14
|
declare function createFile<TMeta extends object = object>(file: File$1<TMeta>): ResolvedFile<TMeta>;
|
|
16
15
|
//#endregion
|
|
17
|
-
//#region ../fabric-core/src/defineFabric.d.ts
|
|
18
|
-
type RootRenderFunction<TOptions extends FabricOptions> = (fabric: Fabric<TOptions>) => void | Promise<void>;
|
|
19
|
-
type DefineFabric<TOptions> = (options?: TOptions) => Fabric;
|
|
20
|
-
declare function defineFabric<TOptions extends FabricOptions>(instance?: RootRenderFunction<TOptions>): DefineFabric<TOptions>;
|
|
21
|
-
//#endregion
|
|
22
16
|
//#region src/components/App.d.ts
|
|
23
17
|
type AppContextProps<TMeta = unknown> = {
|
|
24
18
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { a as
|
|
3
|
-
import {
|
|
4
|
-
import { t as Options$1 } from "./reactPlugin-B0NqEe-x.js";
|
|
1
|
+
import { _ as Path, a as FileManager, d as BaseName, f as Export, h as Import, i as FabricOptions, m as File$1, o as FileProcessor, r as FabricMode, t as Fabric, v as ResolvedFile, y as Source } from "./Fabric-TETpTRcg.js";
|
|
2
|
+
import { a as JSDoc, b as DefineFabric, d as KubbNode, g as FunctionParams, o as Key, x as defineFabric, y as createFunctionParams } from "./types-6UYuSzYO.js";
|
|
3
|
+
import { t as Options$1 } from "./reactPlugin-H_LXLEx_.js";
|
|
5
4
|
import * as react0 from "react";
|
|
6
5
|
import React, { ReactNode, createContext, createElement, use, useContext, useEffect, useReducer, useRef, useState } from "react";
|
|
7
6
|
|
|
@@ -14,11 +13,6 @@ declare const createFabric: DefineFabric<FabricOptions>;
|
|
|
14
13
|
*/
|
|
15
14
|
declare function createFile<TMeta extends object = object>(file: File$1<TMeta>): ResolvedFile<TMeta>;
|
|
16
15
|
//#endregion
|
|
17
|
-
//#region ../fabric-core/src/defineFabric.d.ts
|
|
18
|
-
type RootRenderFunction<TOptions extends FabricOptions> = (fabric: Fabric<TOptions>) => void | Promise<void>;
|
|
19
|
-
type DefineFabric<TOptions> = (options?: TOptions) => Fabric;
|
|
20
|
-
declare function defineFabric<TOptions extends FabricOptions>(instance?: RootRenderFunction<TOptions>): DefineFabric<TOptions>;
|
|
21
|
-
//#endregion
|
|
22
16
|
//#region src/components/App.d.ts
|
|
23
17
|
type AppContextProps<TMeta = unknown> = {
|
|
24
18
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { d as KubbNode, s as KubbElement } from "./types-
|
|
3
|
-
import { t as JSX } from "./jsx-namespace-
|
|
1
|
+
import "./Fabric-BMvLfKlB.cjs";
|
|
2
|
+
import { d as KubbNode, s as KubbElement } from "./types-CdE_cJBr.cjs";
|
|
3
|
+
import { t as JSX } from "./jsx-namespace-Cpatx8zF.cjs";
|
|
4
4
|
import { Fragment, jsxDEV } from "react/jsx-dev-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/jsx-dev-runtime.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { d as KubbNode, s as KubbElement } from "./types-
|
|
3
|
-
import { t as JSX } from "./jsx-namespace-
|
|
1
|
+
import "./Fabric-TETpTRcg.js";
|
|
2
|
+
import { d as KubbNode, s as KubbElement } from "./types-6UYuSzYO.js";
|
|
3
|
+
import { t as JSX } from "./jsx-namespace-D5ipteo8.js";
|
|
4
4
|
import { Fragment, jsxDEV } from "react/jsx-dev-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/jsx-dev-runtime.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as KubbExportProps, d as KubbNode, f as KubbSourceProps, l as KubbFileProps, m as LineBreakProps, p as KubbTextProps, s as KubbElement, u as KubbImportProps } from "./types-
|
|
1
|
+
import { c as KubbExportProps, d as KubbNode, f as KubbSourceProps, l as KubbFileProps, m as LineBreakProps, p as KubbTextProps, s as KubbElement, u as KubbImportProps } from "./types-CdE_cJBr.cjs";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/jsx-namespace.d.ts
|
|
@@ -28,4 +28,4 @@ declare namespace JSX$1 {
|
|
|
28
28
|
}
|
|
29
29
|
//#endregion
|
|
30
30
|
export { JSX$1 as t };
|
|
31
|
-
//# sourceMappingURL=jsx-namespace-
|
|
31
|
+
//# sourceMappingURL=jsx-namespace-Cpatx8zF.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as KubbExportProps, d as KubbNode, f as KubbSourceProps, l as KubbFileProps, m as LineBreakProps, p as KubbTextProps, s as KubbElement, u as KubbImportProps } from "./types-
|
|
1
|
+
import { c as KubbExportProps, d as KubbNode, f as KubbSourceProps, l as KubbFileProps, m as LineBreakProps, p as KubbTextProps, s as KubbElement, u as KubbImportProps } from "./types-6UYuSzYO.js";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/jsx-namespace.d.ts
|
|
@@ -28,4 +28,4 @@ declare namespace JSX$1 {
|
|
|
28
28
|
}
|
|
29
29
|
//#endregion
|
|
30
30
|
export { JSX$1 as t };
|
|
31
|
-
//# sourceMappingURL=jsx-namespace-
|
|
31
|
+
//# sourceMappingURL=jsx-namespace-D5ipteo8.d.ts.map
|
package/dist/jsx-runtime.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { d as KubbNode, s as KubbElement } from "./types-
|
|
3
|
-
import { t as JSX } from "./jsx-namespace-
|
|
1
|
+
import "./Fabric-BMvLfKlB.cjs";
|
|
2
|
+
import { d as KubbNode, s as KubbElement } from "./types-CdE_cJBr.cjs";
|
|
3
|
+
import { t as JSX } from "./jsx-namespace-Cpatx8zF.cjs";
|
|
4
4
|
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
|
package/dist/jsx-runtime.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { d as KubbNode, s as KubbElement } from "./types-
|
|
3
|
-
import { t as JSX } from "./jsx-namespace-
|
|
1
|
+
import "./Fabric-TETpTRcg.js";
|
|
2
|
+
import { d as KubbNode, s as KubbElement } from "./types-6UYuSzYO.js";
|
|
3
|
+
import { t as JSX } from "./jsx-namespace-D5ipteo8.js";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
6
6
|
|
package/dist/parsers.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { o as Parser, s as UserParser } from "./Fabric-BF1akKIl.cjs";
|
|
1
|
+
import { c as UserParser, s as Parser } from "./Fabric-BMvLfKlB.cjs";
|
|
3
2
|
|
|
4
3
|
//#region ../fabric-core/src/parsers/createParser.d.ts
|
|
5
4
|
declare function createParser<TOptions = unknown, TMeta extends object = any>(parser: UserParser<TOptions, TMeta>): Parser<TOptions, TMeta>;
|
package/dist/parsers.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { o as Parser, s as UserParser } from "./Fabric-E6DCwBtT.js";
|
|
1
|
+
import { c as UserParser, s as Parser } from "./Fabric-TETpTRcg.js";
|
|
3
2
|
|
|
4
3
|
//#region ../fabric-core/src/parsers/createParser.d.ts
|
|
5
4
|
declare function createParser<TOptions = unknown, TMeta extends object = any>(parser: UserParser<TOptions, TMeta>): Parser<TOptions, TMeta>;
|
package/dist/plugins.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { n as reactPlugin } from "./reactPlugin-B4CbqrDr.cjs";
|
|
1
|
+
import { l as Plugin, p as Extname, u as UserPlugin } from "./Fabric-BMvLfKlB.cjs";
|
|
2
|
+
import { n as reactPlugin } from "./reactPlugin-BRjwo_IX.cjs";
|
|
4
3
|
|
|
5
4
|
//#region ../fabric-core/src/plugins/createPlugin.d.ts
|
|
6
5
|
declare function createPlugin<Options$3 = unknown, TAppExtension extends Record<string, any> = {}>(plugin: UserPlugin<Options$3, TAppExtension>): Plugin<Options$3, TAppExtension>;
|
package/dist/plugins.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { n as reactPlugin } from "./reactPlugin-B0NqEe-x.js";
|
|
1
|
+
import { l as Plugin, p as Extname, u as UserPlugin } from "./Fabric-TETpTRcg.js";
|
|
2
|
+
import { n as reactPlugin } from "./reactPlugin-H_LXLEx_.js";
|
|
4
3
|
|
|
5
4
|
//#region ../fabric-core/src/plugins/createPlugin.d.ts
|
|
6
5
|
declare function createPlugin<Options$3 = unknown, TAppExtension extends Record<string, any> = {}>(plugin: UserPlugin<Options$3, TAppExtension>): Plugin<Options$3, TAppExtension>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { l as Plugin } from "./Fabric-BMvLfKlB.cjs";
|
|
2
2
|
import { ElementType } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/plugins/reactPlugin.d.ts
|
|
@@ -35,4 +35,4 @@ declare global {
|
|
|
35
35
|
declare const reactPlugin: Plugin<Options, ExtendOptions>;
|
|
36
36
|
//#endregion
|
|
37
37
|
export { reactPlugin as n, Options as t };
|
|
38
|
-
//# sourceMappingURL=reactPlugin-
|
|
38
|
+
//# sourceMappingURL=reactPlugin-BRjwo_IX.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { l as Plugin } from "./Fabric-TETpTRcg.js";
|
|
2
2
|
import { ElementType } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/plugins/reactPlugin.d.ts
|
|
@@ -35,4 +35,4 @@ declare global {
|
|
|
35
35
|
declare const reactPlugin: Plugin<Options, ExtendOptions>;
|
|
36
36
|
//#endregion
|
|
37
37
|
export { reactPlugin as n, Options as t };
|
|
38
|
-
//# sourceMappingURL=reactPlugin-
|
|
38
|
+
//# sourceMappingURL=reactPlugin-H_LXLEx_.d.ts.map
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f as Export, h as Import, i as FabricOptions, m as File, t as Fabric, y as Source } from "./Fabric-TETpTRcg.js";
|
|
2
2
|
import React, { JSX, Key, ReactNode } from "react";
|
|
3
3
|
|
|
4
|
+
//#region ../fabric-core/src/defineFabric.d.ts
|
|
5
|
+
type RootRenderFunction<TOptions extends FabricOptions> = (fabric: Fabric<TOptions>) => void | Promise<void>;
|
|
6
|
+
type DefineFabric<TOptions> = (options?: TOptions) => Fabric;
|
|
7
|
+
declare function defineFabric<TOptions extends FabricOptions>(instance?: RootRenderFunction<TOptions>): DefineFabric<TOptions>;
|
|
8
|
+
//#endregion
|
|
4
9
|
//#region src/utils/getFunctionParams.d.ts
|
|
5
10
|
type Param = {
|
|
6
11
|
/**
|
|
@@ -100,5 +105,5 @@ type KubbImportProps = Import;
|
|
|
100
105
|
type KubbExportProps = Export;
|
|
101
106
|
type LineBreakProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLBRElement>, HTMLBRElement>;
|
|
102
107
|
//#endregion
|
|
103
|
-
export { Param as _, JSDoc as a, KubbExportProps as c, KubbNode as d, KubbSourceProps as f, FunctionParams as g, TextNode as h, ElementNames as i, KubbFileProps as l, LineBreakProps as m, DOMNode as n, Key as o, KubbTextProps as p, DOMNodeAttribute as r, KubbElement as s, DOMElement as t, KubbImportProps as u, Params as v, createFunctionParams as y };
|
|
104
|
-
//# sourceMappingURL=types-
|
|
108
|
+
export { Param as _, JSDoc as a, DefineFabric as b, KubbExportProps as c, KubbNode as d, KubbSourceProps as f, FunctionParams as g, TextNode as h, ElementNames as i, KubbFileProps as l, LineBreakProps as m, DOMNode as n, Key as o, KubbTextProps as p, DOMNodeAttribute as r, KubbElement as s, DOMElement as t, KubbImportProps as u, Params as v, defineFabric as x, createFunctionParams as y };
|
|
109
|
+
//# sourceMappingURL=types-6UYuSzYO.d.ts.map
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f as Export, h as Import, i as FabricOptions, m as File, t as Fabric, y as Source } from "./Fabric-BMvLfKlB.cjs";
|
|
2
2
|
import React, { JSX, Key, ReactNode } from "react";
|
|
3
3
|
|
|
4
|
+
//#region ../fabric-core/src/defineFabric.d.ts
|
|
5
|
+
type RootRenderFunction<TOptions extends FabricOptions> = (fabric: Fabric<TOptions>) => void | Promise<void>;
|
|
6
|
+
type DefineFabric<TOptions> = (options?: TOptions) => Fabric;
|
|
7
|
+
declare function defineFabric<TOptions extends FabricOptions>(instance?: RootRenderFunction<TOptions>): DefineFabric<TOptions>;
|
|
8
|
+
//#endregion
|
|
4
9
|
//#region src/utils/getFunctionParams.d.ts
|
|
5
10
|
type Param = {
|
|
6
11
|
/**
|
|
@@ -100,5 +105,5 @@ type KubbImportProps = Import;
|
|
|
100
105
|
type KubbExportProps = Export;
|
|
101
106
|
type LineBreakProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLBRElement>, HTMLBRElement>;
|
|
102
107
|
//#endregion
|
|
103
|
-
export { Param as _, JSDoc as a, KubbExportProps as c, KubbNode as d, KubbSourceProps as f, FunctionParams as g, TextNode as h, ElementNames as i, KubbFileProps as l, LineBreakProps as m, DOMNode as n, Key as o, KubbTextProps as p, DOMNodeAttribute as r, KubbElement as s, DOMElement as t, KubbImportProps as u, Params as v, createFunctionParams as y };
|
|
104
|
-
//# sourceMappingURL=types-
|
|
108
|
+
export { Param as _, JSDoc as a, DefineFabric as b, KubbExportProps as c, KubbNode as d, KubbSourceProps as f, FunctionParams as g, TextNode as h, ElementNames as i, KubbFileProps as l, LineBreakProps as m, DOMNode as n, Key as o, KubbTextProps as p, DOMNodeAttribute as r, KubbElement as s, DOMElement as t, KubbImportProps as u, Params as v, defineFabric as x, createFunctionParams as y };
|
|
109
|
+
//# sourceMappingURL=types-CdE_cJBr.d.cts.map
|
package/dist/types.cjs
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
var __kubb_fabric_core_types = require("@kubb/fabric-core/types");
|
|
4
|
+
Object.keys(__kubb_fabric_core_types).forEach(function (k) {
|
|
5
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function () { return __kubb_fabric_core_types[k]; }
|
|
8
|
+
});
|
|
9
|
+
});
|
package/dist/types.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { _ as Param, a as JSDoc, c as KubbExportProps, d as KubbNode, f as KubbSourceProps, h as TextNode, i as ElementNames, l as KubbFileProps, m as LineBreakProps, n as DOMNode, o as Key, p as KubbTextProps, r as DOMNodeAttribute, s as KubbElement, t as DOMElement, u as KubbImportProps, v as Params } from "./types-
|
|
3
|
-
export { DOMElement, DOMNode, DOMNodeAttribute, ElementNames, JSDoc, Key, KubbElement, KubbExportProps, KubbFileProps, KubbImportProps, KubbNode, KubbSourceProps, KubbTextProps, LineBreakProps, Param, Params, TextNode };
|
|
1
|
+
import { g as KubbFile_d_exports, n as FabricContext, r as FabricMode } from "./Fabric-BMvLfKlB.cjs";
|
|
2
|
+
import { _ as Param, a as JSDoc, b as DefineFabric, c as KubbExportProps, d as KubbNode, f as KubbSourceProps, h as TextNode, i as ElementNames, l as KubbFileProps, m as LineBreakProps, n as DOMNode, o as Key, p as KubbTextProps, r as DOMNodeAttribute, s as KubbElement, t as DOMElement, u as KubbImportProps, v as Params } from "./types-CdE_cJBr.cjs";
|
|
3
|
+
export { DOMElement, DOMNode, DOMNodeAttribute, DefineFabric, ElementNames, FabricContext, FabricMode, JSDoc, Key, KubbElement, KubbExportProps, KubbFile_d_exports as KubbFile, KubbFileProps, KubbImportProps, KubbNode, KubbSourceProps, KubbTextProps, LineBreakProps, Param, Params, TextNode };
|
package/dist/types.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { _ as Param, a as JSDoc, c as KubbExportProps, d as KubbNode, f as KubbSourceProps, h as TextNode, i as ElementNames, l as KubbFileProps, m as LineBreakProps, n as DOMNode, o as Key, p as KubbTextProps, r as DOMNodeAttribute, s as KubbElement, t as DOMElement, u as KubbImportProps, v as Params } from "./types-
|
|
3
|
-
export { DOMElement, DOMNode, DOMNodeAttribute, ElementNames, JSDoc, Key, KubbElement, KubbExportProps, KubbFileProps, KubbImportProps, KubbNode, KubbSourceProps, KubbTextProps, LineBreakProps, Param, Params, TextNode };
|
|
1
|
+
import { g as KubbFile_d_exports, n as FabricContext, r as FabricMode } from "./Fabric-TETpTRcg.js";
|
|
2
|
+
import { _ as Param, a as JSDoc, b as DefineFabric, c as KubbExportProps, d as KubbNode, f as KubbSourceProps, h as TextNode, i as ElementNames, l as KubbFileProps, m as LineBreakProps, n as DOMNode, o as Key, p as KubbTextProps, r as DOMNodeAttribute, s as KubbElement, t as DOMElement, u as KubbImportProps, v as Params } from "./types-6UYuSzYO.js";
|
|
3
|
+
export { DOMElement, DOMNode, DOMNodeAttribute, DefineFabric, ElementNames, FabricContext, FabricMode, JSDoc, Key, KubbElement, KubbExportProps, KubbFile_d_exports as KubbFile, KubbFileProps, KubbImportProps, KubbNode, KubbSourceProps, KubbTextProps, LineBreakProps, Param, Params, TextNode };
|
package/dist/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/react-fabric",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10",
|
|
4
4
|
"description": "React integration for Kubb, providing JSX runtime support and React component generation capabilities for code generation plugins.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -96,6 +96,13 @@
|
|
|
96
96
|
"!/**/**.test.**",
|
|
97
97
|
"!/**/__tests__/**"
|
|
98
98
|
],
|
|
99
|
+
"size-limit": [
|
|
100
|
+
{
|
|
101
|
+
"path": "./dist/*.js",
|
|
102
|
+
"limit": "510 KiB",
|
|
103
|
+
"gzip": true
|
|
104
|
+
}
|
|
105
|
+
],
|
|
99
106
|
"dependencies": {
|
|
100
107
|
"dedent": "^1.7.0",
|
|
101
108
|
"execa": "^9.6.0",
|
|
@@ -106,14 +113,12 @@
|
|
|
106
113
|
"signal-exit": "^4.1.0",
|
|
107
114
|
"react": "^19.2.0",
|
|
108
115
|
"ws": "8.18.0",
|
|
109
|
-
"@kubb/fabric-core": "0.2.
|
|
116
|
+
"@kubb/fabric-core": "0.2.10"
|
|
110
117
|
},
|
|
111
118
|
"devDependencies": {
|
|
112
119
|
"@types/react-reconciler": "0.32.0",
|
|
113
120
|
"@types/ws": "^8.18.1",
|
|
114
|
-
"@types/react": "^19.2.2"
|
|
115
|
-
"tsdown": "^0.15.11",
|
|
116
|
-
"typescript": "^5.9.3"
|
|
121
|
+
"@types/react": "^19.2.2"
|
|
117
122
|
},
|
|
118
123
|
"engines": {
|
|
119
124
|
"node": ">=20"
|
|
@@ -123,7 +128,7 @@
|
|
|
123
128
|
"registry": "https://registry.npmjs.org/"
|
|
124
129
|
},
|
|
125
130
|
"scripts": {
|
|
126
|
-
"build": "tsdown",
|
|
131
|
+
"build": "tsdown && size-limit",
|
|
127
132
|
"start": "tsdown --watch ./src",
|
|
128
133
|
"clean": "npx rimraf ./dist",
|
|
129
134
|
"lint": "bun biome lint .",
|
package/src/types.ts
CHANGED
|
@@ -76,3 +76,5 @@ export type KubbExportProps = KubbFile.Export
|
|
|
76
76
|
export type LineBreakProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLBRElement>, HTMLBRElement>
|
|
77
77
|
|
|
78
78
|
export type { Params, Param } from './utils/getFunctionParams.ts'
|
|
79
|
+
|
|
80
|
+
export * from '@kubb/fabric-core/types'
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
//#region ../fabric-core/src/KubbFile.d.ts
|
|
2
|
-
type BasePath<T extends string = string> = `${T}/`;
|
|
3
|
-
type Import = {
|
|
4
|
-
/**
|
|
5
|
-
* Import name to be used
|
|
6
|
-
* @example ["useState"]
|
|
7
|
-
* @example "React"
|
|
8
|
-
*/
|
|
9
|
-
name: string | Array<string | {
|
|
10
|
-
propertyName: string;
|
|
11
|
-
name?: string;
|
|
12
|
-
}>;
|
|
13
|
-
/**
|
|
14
|
-
* Path for the import
|
|
15
|
-
* @example '@kubb/core'
|
|
16
|
-
*/
|
|
17
|
-
path: string;
|
|
18
|
-
/**
|
|
19
|
-
* Add `type` prefix to the import, this will result in: `import type { Type } from './path'`.
|
|
20
|
-
*/
|
|
21
|
-
isTypeOnly?: boolean;
|
|
22
|
-
isNameSpace?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* When root is set it will get the path with relative getRelativePath(root, path).
|
|
25
|
-
*/
|
|
26
|
-
root?: string;
|
|
27
|
-
};
|
|
28
|
-
type Source = {
|
|
29
|
-
name?: string;
|
|
30
|
-
value?: string;
|
|
31
|
-
isTypeOnly?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Has const or type 'export'
|
|
34
|
-
* @default false
|
|
35
|
-
*/
|
|
36
|
-
isExportable?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* When set, barrel generation will add this
|
|
39
|
-
* @default false
|
|
40
|
-
*/
|
|
41
|
-
isIndexable?: boolean;
|
|
42
|
-
};
|
|
43
|
-
type Export = {
|
|
44
|
-
/**
|
|
45
|
-
* Export name to be used.
|
|
46
|
-
* @example ["useState"]
|
|
47
|
-
* @example "React"
|
|
48
|
-
*/
|
|
49
|
-
name?: string | Array<string>;
|
|
50
|
-
/**
|
|
51
|
-
* Path for the import.
|
|
52
|
-
* @example '@kubb/core'
|
|
53
|
-
*/
|
|
54
|
-
path: string;
|
|
55
|
-
/**
|
|
56
|
-
* Add `type` prefix to the export, this will result in: `export type { Type } from './path'`.
|
|
57
|
-
*/
|
|
58
|
-
isTypeOnly?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Make it possible to override the name, this will result in: `export * as aliasName from './path'`.
|
|
61
|
-
*/
|
|
62
|
-
asAlias?: boolean;
|
|
63
|
-
};
|
|
64
|
-
type Extname = '.ts' | '.js' | '.tsx' | '.json' | `.${string}`;
|
|
65
|
-
/**
|
|
66
|
-
* Name to be used to dynamicly create the baseName(based on input.path)
|
|
67
|
-
* Based on UNIX basename
|
|
68
|
-
* @link https://nodejs.org/api/path.html#pathbasenamepath-suffix
|
|
69
|
-
*/
|
|
70
|
-
type BaseName = `${string}.${string}`;
|
|
71
|
-
/**
|
|
72
|
-
* Path will be full qualified path to a specified file
|
|
73
|
-
*/
|
|
74
|
-
type Path = string;
|
|
75
|
-
type AdvancedPath<T extends BaseName = BaseName> = `${BasePath}${T}`;
|
|
76
|
-
type File<TMeta extends object = object> = {
|
|
77
|
-
/**
|
|
78
|
-
* Name to be used to create the path
|
|
79
|
-
* Based on UNIX basename, `${name}.extname`
|
|
80
|
-
* @link https://nodejs.org/api/path.html#pathbasenamepath-suffix
|
|
81
|
-
*/
|
|
82
|
-
baseName: BaseName;
|
|
83
|
-
/**
|
|
84
|
-
* Path will be full qualified path to a specified file
|
|
85
|
-
*/
|
|
86
|
-
path: AdvancedPath<BaseName> | Path;
|
|
87
|
-
sources: Array<Source>;
|
|
88
|
-
imports?: Array<Import>;
|
|
89
|
-
exports?: Array<Export>;
|
|
90
|
-
/**
|
|
91
|
-
* Use extra meta, this is getting used to generate the barrel/index files.
|
|
92
|
-
*/
|
|
93
|
-
meta?: TMeta;
|
|
94
|
-
banner?: string;
|
|
95
|
-
footer?: string;
|
|
96
|
-
};
|
|
97
|
-
type ResolvedImport = Import;
|
|
98
|
-
type ResolvedExport = Export;
|
|
99
|
-
type ResolvedFile<TMeta extends object = object> = File<TMeta> & {
|
|
100
|
-
/**
|
|
101
|
-
* @default hash
|
|
102
|
-
*/
|
|
103
|
-
id: string;
|
|
104
|
-
/**
|
|
105
|
-
* Contains the first part of the baseName, generated based on baseName
|
|
106
|
-
* @link https://nodejs.org/api/path.html#pathformatpathobject
|
|
107
|
-
*/
|
|
108
|
-
name: string;
|
|
109
|
-
extname: Extname;
|
|
110
|
-
imports: Array<ResolvedImport>;
|
|
111
|
-
exports: Array<ResolvedExport>;
|
|
112
|
-
};
|
|
113
|
-
//#endregion
|
|
114
|
-
export { Import as a, Source as c, File as i, Export as n, Path as o, Extname as r, ResolvedFile as s, BaseName as t };
|
|
115
|
-
//# sourceMappingURL=KubbFile-D4gyyfL-.d.ts.map
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
//#region ../fabric-core/src/KubbFile.d.ts
|
|
2
|
-
type BasePath<T extends string = string> = `${T}/`;
|
|
3
|
-
type Import = {
|
|
4
|
-
/**
|
|
5
|
-
* Import name to be used
|
|
6
|
-
* @example ["useState"]
|
|
7
|
-
* @example "React"
|
|
8
|
-
*/
|
|
9
|
-
name: string | Array<string | {
|
|
10
|
-
propertyName: string;
|
|
11
|
-
name?: string;
|
|
12
|
-
}>;
|
|
13
|
-
/**
|
|
14
|
-
* Path for the import
|
|
15
|
-
* @example '@kubb/core'
|
|
16
|
-
*/
|
|
17
|
-
path: string;
|
|
18
|
-
/**
|
|
19
|
-
* Add `type` prefix to the import, this will result in: `import type { Type } from './path'`.
|
|
20
|
-
*/
|
|
21
|
-
isTypeOnly?: boolean;
|
|
22
|
-
isNameSpace?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* When root is set it will get the path with relative getRelativePath(root, path).
|
|
25
|
-
*/
|
|
26
|
-
root?: string;
|
|
27
|
-
};
|
|
28
|
-
type Source = {
|
|
29
|
-
name?: string;
|
|
30
|
-
value?: string;
|
|
31
|
-
isTypeOnly?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Has const or type 'export'
|
|
34
|
-
* @default false
|
|
35
|
-
*/
|
|
36
|
-
isExportable?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* When set, barrel generation will add this
|
|
39
|
-
* @default false
|
|
40
|
-
*/
|
|
41
|
-
isIndexable?: boolean;
|
|
42
|
-
};
|
|
43
|
-
type Export = {
|
|
44
|
-
/**
|
|
45
|
-
* Export name to be used.
|
|
46
|
-
* @example ["useState"]
|
|
47
|
-
* @example "React"
|
|
48
|
-
*/
|
|
49
|
-
name?: string | Array<string>;
|
|
50
|
-
/**
|
|
51
|
-
* Path for the import.
|
|
52
|
-
* @example '@kubb/core'
|
|
53
|
-
*/
|
|
54
|
-
path: string;
|
|
55
|
-
/**
|
|
56
|
-
* Add `type` prefix to the export, this will result in: `export type { Type } from './path'`.
|
|
57
|
-
*/
|
|
58
|
-
isTypeOnly?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Make it possible to override the name, this will result in: `export * as aliasName from './path'`.
|
|
61
|
-
*/
|
|
62
|
-
asAlias?: boolean;
|
|
63
|
-
};
|
|
64
|
-
type Extname = '.ts' | '.js' | '.tsx' | '.json' | `.${string}`;
|
|
65
|
-
/**
|
|
66
|
-
* Name to be used to dynamicly create the baseName(based on input.path)
|
|
67
|
-
* Based on UNIX basename
|
|
68
|
-
* @link https://nodejs.org/api/path.html#pathbasenamepath-suffix
|
|
69
|
-
*/
|
|
70
|
-
type BaseName = `${string}.${string}`;
|
|
71
|
-
/**
|
|
72
|
-
* Path will be full qualified path to a specified file
|
|
73
|
-
*/
|
|
74
|
-
type Path = string;
|
|
75
|
-
type AdvancedPath<T extends BaseName = BaseName> = `${BasePath}${T}`;
|
|
76
|
-
type File<TMeta extends object = object> = {
|
|
77
|
-
/**
|
|
78
|
-
* Name to be used to create the path
|
|
79
|
-
* Based on UNIX basename, `${name}.extname`
|
|
80
|
-
* @link https://nodejs.org/api/path.html#pathbasenamepath-suffix
|
|
81
|
-
*/
|
|
82
|
-
baseName: BaseName;
|
|
83
|
-
/**
|
|
84
|
-
* Path will be full qualified path to a specified file
|
|
85
|
-
*/
|
|
86
|
-
path: AdvancedPath<BaseName> | Path;
|
|
87
|
-
sources: Array<Source>;
|
|
88
|
-
imports?: Array<Import>;
|
|
89
|
-
exports?: Array<Export>;
|
|
90
|
-
/**
|
|
91
|
-
* Use extra meta, this is getting used to generate the barrel/index files.
|
|
92
|
-
*/
|
|
93
|
-
meta?: TMeta;
|
|
94
|
-
banner?: string;
|
|
95
|
-
footer?: string;
|
|
96
|
-
};
|
|
97
|
-
type ResolvedImport = Import;
|
|
98
|
-
type ResolvedExport = Export;
|
|
99
|
-
type ResolvedFile<TMeta extends object = object> = File<TMeta> & {
|
|
100
|
-
/**
|
|
101
|
-
* @default hash
|
|
102
|
-
*/
|
|
103
|
-
id: string;
|
|
104
|
-
/**
|
|
105
|
-
* Contains the first part of the baseName, generated based on baseName
|
|
106
|
-
* @link https://nodejs.org/api/path.html#pathformatpathobject
|
|
107
|
-
*/
|
|
108
|
-
name: string;
|
|
109
|
-
extname: Extname;
|
|
110
|
-
imports: Array<ResolvedImport>;
|
|
111
|
-
exports: Array<ResolvedExport>;
|
|
112
|
-
};
|
|
113
|
-
//#endregion
|
|
114
|
-
export { Import as a, Source as c, File as i, Export as n, Path as o, Extname as r, ResolvedFile as s, BaseName as t };
|
|
115
|
-
//# sourceMappingURL=KubbFile-FGXV713i.d.cts.map
|
package/dist/chunk-BEV-X5tz.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module";
|
|
2
|
-
|
|
3
|
-
//#region rolldown:runtime
|
|
4
|
-
var __create = Object.create;
|
|
5
|
-
var __defProp = Object.defineProperty;
|
|
6
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
|
-
key = keys[i];
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
-
get: ((k) => from[k]).bind(null, key),
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
21
|
-
value: mod,
|
|
22
|
-
enumerable: true
|
|
23
|
-
}) : target, mod));
|
|
24
|
-
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
25
|
-
|
|
26
|
-
//#endregion
|
|
27
|
-
export { };
|