@kubb/react-fabric 0.0.0-canary-20251023132618 → 0.0.0-canary-20251023134048
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/{App-BQLIqaCb.d.ts → App-BSJU0vg2.d.ts} +6 -8
- package/dist/{App-DLTA74bI.d.cts → App-Cdnk4C-T.d.cts} +6 -8
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/parsers.d.cts +1 -1
- package/dist/parsers.d.ts +1 -1
- package/dist/plugins.d.cts +4 -1
- package/dist/plugins.d.ts +4 -1
- package/package.json +2 -2
|
@@ -4,11 +4,11 @@ import { i as File, o as Path, r as Extname, s as ResolvedFile } from "./KubbFil
|
|
|
4
4
|
type Plugin<TOptions = any[], TAppExtension$1 extends Record<string, any> = {}> = {
|
|
5
5
|
name: string;
|
|
6
6
|
type: 'plugin';
|
|
7
|
-
scope?: 'write' | 'read' | (string & {});
|
|
8
7
|
install: Install<TOptions> | Promise<Install<TOptions>>;
|
|
9
8
|
/**
|
|
10
9
|
* Runtime app overrides or extensions.
|
|
11
10
|
* Merged into the app instance after install.
|
|
11
|
+
* This cannot be async
|
|
12
12
|
*/
|
|
13
13
|
inject?: Inject<TOptions, TAppExtension$1>;
|
|
14
14
|
};
|
|
@@ -103,15 +103,11 @@ type AppEvents = {
|
|
|
103
103
|
/**
|
|
104
104
|
* Called in the beginning of the app lifecycle.
|
|
105
105
|
*/
|
|
106
|
-
start: [
|
|
107
|
-
app: App;
|
|
108
|
-
}];
|
|
106
|
+
start: [];
|
|
109
107
|
/**
|
|
110
108
|
* Called in the end of the app lifecycle.
|
|
111
109
|
*/
|
|
112
|
-
end: [
|
|
113
|
-
app: App;
|
|
114
|
-
}];
|
|
110
|
+
end: [];
|
|
115
111
|
/**
|
|
116
112
|
* Called when being rendered
|
|
117
113
|
*/
|
|
@@ -172,8 +168,10 @@ interface App<TOptions = unknown> extends Kubb.App {
|
|
|
172
168
|
files: Array<ResolvedFile>;
|
|
173
169
|
use<TOptions extends any[] | object = any, TMeta extends object = object, TAppExtension extends Record<string, any> = {}>(pluginOrParser: Plugin<TOptions, TAppExtension> | Parser<TOptions, TMeta>, ...options: TOptions extends any[] ? NoInfer<TOptions> : [NoInfer<TOptions>]): this & TAppExtension;
|
|
174
170
|
use<TOptions extends any[] | object = any, TMeta extends object = object, TAppExtension extends Record<string, any> = {}>(pluginOrParser: Plugin<TOptions, TAppExtension> | Parser<TOptions, TMeta>): this & TAppExtension;
|
|
171
|
+
use<TOptions extends any[] | object = any, TMeta extends object = object, TAppExtension extends Record<string, any> = {}>(pluginOrParser: Plugin<TOptions, TAppExtension> | Parser<TOptions, TMeta>, ...options: TOptions extends any[] ? NoInfer<TOptions> : [NoInfer<TOptions>]): Promise<this & TAppExtension>;
|
|
172
|
+
use<TOptions extends any[] | object = any, TMeta extends object = object, TAppExtension extends Record<string, any> = {}>(pluginOrParser: Plugin<TOptions, TAppExtension> | Parser<TOptions, TMeta>): Promise<this & TAppExtension>;
|
|
175
173
|
addFile(...files: Array<File>): Promise<void>;
|
|
176
174
|
}
|
|
177
175
|
//#endregion
|
|
178
176
|
export { UserParser as a, Parser as i, Component as n, Plugin as o, FileManager as r, UserPlugin as s, App as t };
|
|
179
|
-
//# sourceMappingURL=App-
|
|
177
|
+
//# sourceMappingURL=App-BSJU0vg2.d.ts.map
|
|
@@ -4,11 +4,11 @@ import { i as File, o as Path, r as Extname, s as ResolvedFile } from "./KubbFil
|
|
|
4
4
|
type Plugin<TOptions = any[], TAppExtension$1 extends Record<string, any> = {}> = {
|
|
5
5
|
name: string;
|
|
6
6
|
type: 'plugin';
|
|
7
|
-
scope?: 'write' | 'read' | (string & {});
|
|
8
7
|
install: Install<TOptions> | Promise<Install<TOptions>>;
|
|
9
8
|
/**
|
|
10
9
|
* Runtime app overrides or extensions.
|
|
11
10
|
* Merged into the app instance after install.
|
|
11
|
+
* This cannot be async
|
|
12
12
|
*/
|
|
13
13
|
inject?: Inject<TOptions, TAppExtension$1>;
|
|
14
14
|
};
|
|
@@ -103,15 +103,11 @@ type AppEvents = {
|
|
|
103
103
|
/**
|
|
104
104
|
* Called in the beginning of the app lifecycle.
|
|
105
105
|
*/
|
|
106
|
-
start: [
|
|
107
|
-
app: App;
|
|
108
|
-
}];
|
|
106
|
+
start: [];
|
|
109
107
|
/**
|
|
110
108
|
* Called in the end of the app lifecycle.
|
|
111
109
|
*/
|
|
112
|
-
end: [
|
|
113
|
-
app: App;
|
|
114
|
-
}];
|
|
110
|
+
end: [];
|
|
115
111
|
/**
|
|
116
112
|
* Called when being rendered
|
|
117
113
|
*/
|
|
@@ -172,8 +168,10 @@ interface App<TOptions = unknown> extends Kubb.App {
|
|
|
172
168
|
files: Array<ResolvedFile>;
|
|
173
169
|
use<TOptions extends any[] | object = any, TMeta extends object = object, TAppExtension extends Record<string, any> = {}>(pluginOrParser: Plugin<TOptions, TAppExtension> | Parser<TOptions, TMeta>, ...options: TOptions extends any[] ? NoInfer<TOptions> : [NoInfer<TOptions>]): this & TAppExtension;
|
|
174
170
|
use<TOptions extends any[] | object = any, TMeta extends object = object, TAppExtension extends Record<string, any> = {}>(pluginOrParser: Plugin<TOptions, TAppExtension> | Parser<TOptions, TMeta>): this & TAppExtension;
|
|
171
|
+
use<TOptions extends any[] | object = any, TMeta extends object = object, TAppExtension extends Record<string, any> = {}>(pluginOrParser: Plugin<TOptions, TAppExtension> | Parser<TOptions, TMeta>, ...options: TOptions extends any[] ? NoInfer<TOptions> : [NoInfer<TOptions>]): Promise<this & TAppExtension>;
|
|
172
|
+
use<TOptions extends any[] | object = any, TMeta extends object = object, TAppExtension extends Record<string, any> = {}>(pluginOrParser: Plugin<TOptions, TAppExtension> | Parser<TOptions, TMeta>): Promise<this & TAppExtension>;
|
|
175
173
|
addFile(...files: Array<File>): Promise<void>;
|
|
176
174
|
}
|
|
177
175
|
//#endregion
|
|
178
176
|
export { UserParser as a, Parser as i, Component as n, Plugin as o, FileManager as r, UserPlugin as s, App as t };
|
|
179
|
-
//# sourceMappingURL=App-
|
|
177
|
+
//# sourceMappingURL=App-Cdnk4C-T.d.cts.map
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as Import, c as Source, n as Export, o as Path, t as BaseName } from "./KubbFile-FGXV713i.cjs";
|
|
2
|
-
import { n as Component, r as FileManager, t as App$1 } from "./App-
|
|
2
|
+
import { n as Component, r as FileManager, t as App$1 } from "./App-Cdnk4C-T.cjs";
|
|
3
3
|
import { a as JSDoc, f as createFunctionParams, l as FunctionParams, o as Key, s as KubbNode } from "./types-C3p0Ljxf.cjs";
|
|
4
4
|
import "./globals-BRG2DOJd.cjs";
|
|
5
5
|
import * as react1 from "react";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as Import, c as Source, n as Export, o as Path, t as BaseName } from "./KubbFile-D4gyyfL-.js";
|
|
2
|
-
import { n as Component, r as FileManager, t as App$1 } from "./App-
|
|
2
|
+
import { n as Component, r as FileManager, t as App$1 } from "./App-BSJU0vg2.js";
|
|
3
3
|
import { a as JSDoc, f as createFunctionParams, l as FunctionParams, o as Key, s as KubbNode } from "./types-Brnyan9B.js";
|
|
4
4
|
import "./globals-D_1Lfe9-.js";
|
|
5
5
|
import * as react1 from "react";
|
package/dist/parsers.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./KubbFile-FGXV713i.cjs";
|
|
2
|
-
import { a as UserParser, i as Parser } from "./App-
|
|
2
|
+
import { a as UserParser, i as Parser } from "./App-Cdnk4C-T.cjs";
|
|
3
3
|
|
|
4
4
|
//#region ../fabric-core/src/parsers/createParser.d.ts
|
|
5
5
|
declare function createParser<TOptions = any[], TMeta extends object = any>(parser: UserParser<TOptions, TMeta>): Parser<TOptions, TMeta>;
|
package/dist/parsers.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./KubbFile-D4gyyfL-.js";
|
|
2
|
-
import { a as UserParser, i as Parser } from "./App-
|
|
2
|
+
import { a as UserParser, i as Parser } from "./App-BSJU0vg2.js";
|
|
3
3
|
|
|
4
4
|
//#region ../fabric-core/src/parsers/createParser.d.ts
|
|
5
5
|
declare function createParser<TOptions = any[], TMeta extends object = any>(parser: UserParser<TOptions, TMeta>): Parser<TOptions, TMeta>;
|
package/dist/plugins.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as Extname } from "./KubbFile-FGXV713i.cjs";
|
|
2
|
-
import { o as Plugin, s as UserPlugin } from "./App-
|
|
2
|
+
import { o as Plugin, s as UserPlugin } from "./App-Cdnk4C-T.cjs";
|
|
3
3
|
import { ElementType } from "react";
|
|
4
4
|
|
|
5
5
|
//#region ../fabric-core/src/plugins/createPlugin.d.ts
|
|
@@ -16,6 +16,9 @@ type Options$1 = {
|
|
|
16
16
|
* Useful for tests to observe write operations without spying on internal functions.
|
|
17
17
|
*/
|
|
18
18
|
onWrite?: (path: string, data: string) => void | Promise<void>;
|
|
19
|
+
clean?: {
|
|
20
|
+
path: string;
|
|
21
|
+
};
|
|
19
22
|
};
|
|
20
23
|
type ExtendOptions$1 = {
|
|
21
24
|
write(options?: WriteOptions): Promise<void>;
|
package/dist/plugins.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as Extname } from "./KubbFile-D4gyyfL-.js";
|
|
2
|
-
import { o as Plugin, s as UserPlugin } from "./App-
|
|
2
|
+
import { o as Plugin, s as UserPlugin } from "./App-BSJU0vg2.js";
|
|
3
3
|
import { ElementType } from "react";
|
|
4
4
|
|
|
5
5
|
//#region ../fabric-core/src/plugins/createPlugin.d.ts
|
|
@@ -16,6 +16,9 @@ type Options$1 = {
|
|
|
16
16
|
* Useful for tests to observe write operations without spying on internal functions.
|
|
17
17
|
*/
|
|
18
18
|
onWrite?: (path: string, data: string) => void | Promise<void>;
|
|
19
|
+
clean?: {
|
|
20
|
+
path: string;
|
|
21
|
+
};
|
|
19
22
|
};
|
|
20
23
|
type ExtendOptions$1 = {
|
|
21
24
|
write(options?: WriteOptions): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/react-fabric",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20251023134048",
|
|
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",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"react-reconciler": "0.32.0",
|
|
100
100
|
"signal-exit": "^4.1.0",
|
|
101
101
|
"ws": "^8.18.3",
|
|
102
|
-
"@kubb/fabric-core": "0.0.0-canary-
|
|
102
|
+
"@kubb/fabric-core": "0.0.0-canary-20251023134048"
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
105
|
"@types/react": "^19.2.2",
|