@kubb/react-fabric 0.13.0 → 0.13.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.
- package/dist/{chunk-DbZtQ4qb.js → chunk-Cnw5r_-A.js} +1 -5
- package/dist/{getFunctionParams-BaDz1zZu.d.cts → getFunctionParams-BJb7Kd-D.d.ts} +2 -1
- package/dist/{getFunctionParams-CINBJQGH.d.ts → getFunctionParams-ClT1iMr_.d.ts} +2 -3
- package/dist/globals.d.ts +2 -2
- package/dist/index.cjs +27 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +28 -28
- package/dist/index.js.map +1 -1
- package/dist/jsx-dev-runtime.cjs +4 -21
- package/dist/jsx-dev-runtime.cjs.map +1 -1
- package/dist/jsx-dev-runtime.d.ts +3 -3
- package/dist/jsx-dev-runtime.js +5 -22
- package/dist/jsx-dev-runtime.js.map +1 -1
- package/dist/{jsx-namespace-Bg7Kfg54.d.ts → jsx-namespace-BLQ6SvuD.d.ts} +2 -2
- package/dist/{jsx-namespace-zRAnd-2Y.d.cts → jsx-namespace-CFK460kI.d.ts} +3 -3
- package/dist/{jsx-runtime-CRt7_dDm.cjs → jsx-runtime-7CEZevwV.cjs} +5 -23
- package/dist/{jsx-runtime-CRt7_dDm.cjs.map → jsx-runtime-7CEZevwV.cjs.map} +1 -1
- package/dist/{jsx-runtime-CQFBnRKx.js → jsx-runtime-Dm7PKVbc.js} +6 -24
- package/dist/{jsx-runtime-CQFBnRKx.js.map → jsx-runtime-Dm7PKVbc.js.map} +1 -1
- package/dist/jsx-runtime.cjs +4 -3
- package/dist/jsx-runtime.d.ts +3 -3
- package/dist/jsx-runtime.js +5 -4
- package/dist/plugins.cjs +3 -3
- package/dist/plugins.d.ts +1 -1
- package/dist/plugins.js +3 -3
- package/dist/{react--draJ5Pm.js → react-D652OKii.js} +31 -91
- package/dist/{react--draJ5Pm.js.map → react-D652OKii.js.map} +1 -1
- package/dist/{react-s8IDJhpB.cjs → react-DorQ0Kea.cjs} +30 -100
- package/dist/{react-s8IDJhpB.cjs.map → react-DorQ0Kea.cjs.map} +1 -1
- package/dist/{reactPlugin-D7d08sbQ.d.ts → reactPlugin-BAQFl4pj.d.ts} +2 -2
- package/dist/{reactPlugin-CQr7EBIP.js → reactPlugin-BkDkx1cs.js} +407 -1646
- package/dist/reactPlugin-BkDkx1cs.js.map +1 -0
- package/dist/{reactPlugin-CfilrfRJ.d.cts → reactPlugin-Ch2aSTYS.d.ts} +3 -3
- package/dist/{reactPlugin-9aTetBnU.cjs → reactPlugin-DTg048L6.cjs} +406 -1663
- package/dist/reactPlugin-DTg048L6.cjs.map +1 -0
- package/dist/types.d.ts +4 -3
- package/package.json +5 -5
- package/dist/globals.d.cts +0 -23
- package/dist/index.d.cts +0 -346
- package/dist/jsx-dev-runtime.d.cts +0 -13
- package/dist/jsx-runtime.d.cts +0 -15
- package/dist/parsers.d.cts +0 -1
- package/dist/plugins.d.cts +0 -3
- package/dist/reactPlugin-9aTetBnU.cjs.map +0 -1
- package/dist/reactPlugin-CQr7EBIP.js.map +0 -1
- package/dist/types.d.cts +0 -61
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as Param, r as Params } from "./getFunctionParams-
|
|
1
|
+
import { n as __exportAll, r as __reExport } from "./chunk-Cnw5r_-A.js";
|
|
2
|
+
import { n as Param, r as Params } from "./getFunctionParams-ClT1iMr_.js";
|
|
3
3
|
import { KubbFile } from "@kubb/fabric-core/types";
|
|
4
4
|
import React, { JSX, ReactNode } from "react";
|
|
5
5
|
export * from "@kubb/fabric-core/types";
|
|
@@ -59,4 +59,5 @@ type FabricImportProps = KubbFile.Import;
|
|
|
59
59
|
type FabricExportProps = KubbFile.Export;
|
|
60
60
|
type LineBreakProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLBRElement>, HTMLBRElement>;
|
|
61
61
|
//#endregion
|
|
62
|
-
export { DOMElement, DOMNode, DOMNodeAttribute, ElementNames, FabricExportProps, FabricFileProps, FabricImportProps, FabricReactElement, FabricReactNode, FabricSourceProps, FabricTextProps, Key, LineBreakProps, type Param, type Params, TextNode, types_d_exports as t };
|
|
62
|
+
export { DOMElement, DOMNode, DOMNodeAttribute, ElementNames, FabricExportProps, FabricFileProps, FabricImportProps, FabricReactElement, FabricReactNode, FabricSourceProps, FabricTextProps, Key, LineBreakProps, type Param, type Params, TextNode, types_d_exports as t };
|
|
63
|
+
//# sourceMappingURL=types.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/react-fabric",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"description": "React integration for Kubb's fabric - JSX runtime and component-based code generation with React reconciler for building type-safe generators",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
],
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|
|
22
|
-
"url": "https://github.com/kubb-labs/fabric.git",
|
|
22
|
+
"url": "git+https://github.com/kubb-labs/fabric.git",
|
|
23
23
|
"directory": "packages/react-fabric"
|
|
24
24
|
},
|
|
25
25
|
"license": "MIT",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
},
|
|
63
63
|
"main": "./dist/index.cjs",
|
|
64
64
|
"module": "./dist/index.js",
|
|
65
|
-
"types": "./dist/index.d.
|
|
65
|
+
"types": "./dist/index.d.ts",
|
|
66
66
|
"typesVersions": {
|
|
67
67
|
"*": {
|
|
68
68
|
"globals": [
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"react-devtools-core": "6.1.5",
|
|
106
106
|
"remeda": "^2.33.6",
|
|
107
107
|
"ws": "8.18.0",
|
|
108
|
-
"@kubb/fabric-core": "0.13.
|
|
108
|
+
"@kubb/fabric-core": "0.13.1"
|
|
109
109
|
},
|
|
110
110
|
"devDependencies": {
|
|
111
111
|
"@types/react": "^19.2.14",
|
|
@@ -123,12 +123,12 @@
|
|
|
123
123
|
},
|
|
124
124
|
"scripts": {
|
|
125
125
|
"build": "tsdown && size-limit",
|
|
126
|
-
"start": "tsdown --watch ./src",
|
|
127
126
|
"clean": "node -e \"require('fs').rmSync('./dist', {recursive:true,force:true})\"",
|
|
128
127
|
"lint": "pnpm biome lint .",
|
|
129
128
|
"lint:fix": "pnpm biome lint --fix --unsafe .",
|
|
130
129
|
"release": "pnpm publish --no-git-check",
|
|
131
130
|
"release:canary": "bash ../../.github/canary.sh && node ../../scripts/build.js canary && pnpm publish --no-git-check -tag canary",
|
|
131
|
+
"start": "tsdown --watch ./src",
|
|
132
132
|
"start:devtools": "npx react-devtools",
|
|
133
133
|
"test": "vitest --passWithNoTests",
|
|
134
134
|
"test:devtools": "node ./dist/runner.cjs",
|
package/dist/globals.d.cts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { o as __name } from "./getFunctionParams-BaDz1zZu.cjs";
|
|
2
|
-
import { FabricExportProps, FabricFileProps, FabricImportProps, FabricReactElement, FabricReactNode, FabricSourceProps, FabricTextProps, LineBreakProps } from "./types.cjs";
|
|
3
|
-
import React from "react";
|
|
4
|
-
|
|
5
|
-
//#region src/globals.d.ts
|
|
6
|
-
declare global {
|
|
7
|
-
namespace JSX {
|
|
8
|
-
type Element = FabricReactElement;
|
|
9
|
-
interface ElementClass extends React.ComponentClass<any> {
|
|
10
|
-
render(): FabricReactNode;
|
|
11
|
-
}
|
|
12
|
-
interface IntrinsicElements {
|
|
13
|
-
'kubb-text': FabricTextProps;
|
|
14
|
-
'kubb-file': FabricFileProps;
|
|
15
|
-
'kubb-source': FabricSourceProps;
|
|
16
|
-
'kubb-import': FabricImportProps;
|
|
17
|
-
'kubb-export': FabricExportProps;
|
|
18
|
-
br: LineBreakProps;
|
|
19
|
-
indent: {};
|
|
20
|
-
dedent: {};
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
package/dist/index.d.cts
DELETED
|
@@ -1,346 +0,0 @@
|
|
|
1
|
-
import { i as createFunctionParams, o as __name, t as FunctionParams } from "./getFunctionParams-BaDz1zZu.cjs";
|
|
2
|
-
import { FabricReactElement, FabricReactNode, Key, t as types_d_exports } from "./types.cjs";
|
|
3
|
-
import { t as Options$1 } from "./reactPlugin-CfilrfRJ.cjs";
|
|
4
|
-
import * as react from "react";
|
|
5
|
-
import { Fabric as Fabric$1, FabricConfig, FabricMode, KubbFile } from "@kubb/fabric-core/types";
|
|
6
|
-
import { Fabric, FileManager, FileManager as FileManager$1, FileProcessor, TreeNode, TreeNode as TreeNode$1, createContext, createFabric, createFile, useApp, useContext, useFile, useLifecycle } from "@kubb/fabric-core";
|
|
7
|
-
|
|
8
|
-
//#region src/components/App.d.ts
|
|
9
|
-
type AppProps<TMeta extends object = object> = {
|
|
10
|
-
/**
|
|
11
|
-
* Metadata associated with the App.
|
|
12
|
-
*/
|
|
13
|
-
meta?: TMeta;
|
|
14
|
-
/**
|
|
15
|
-
* Children nodes.
|
|
16
|
-
*/
|
|
17
|
-
children?: FabricReactNode;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* App container containing the AppContext carrying `meta` and an `exit` hook.
|
|
21
|
-
*/
|
|
22
|
-
declare function App<TMeta extends object = object>({
|
|
23
|
-
children,
|
|
24
|
-
...props
|
|
25
|
-
}: AppProps<TMeta>): FabricReactElement;
|
|
26
|
-
declare namespace App {
|
|
27
|
-
var displayName: string;
|
|
28
|
-
}
|
|
29
|
-
//#endregion
|
|
30
|
-
//#region src/components/Const.d.ts
|
|
31
|
-
type ConstProps = {
|
|
32
|
-
key?: Key;
|
|
33
|
-
/**
|
|
34
|
-
* Name of the const
|
|
35
|
-
*/
|
|
36
|
-
name: string;
|
|
37
|
-
/**
|
|
38
|
-
* Does this type need to be exported.
|
|
39
|
-
*/
|
|
40
|
-
export?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Type to make the const being typed
|
|
43
|
-
*/
|
|
44
|
-
type?: string;
|
|
45
|
-
/**
|
|
46
|
-
* Options for JSdocs.
|
|
47
|
-
*/
|
|
48
|
-
JSDoc?: types_d_exports.JSDoc;
|
|
49
|
-
/**
|
|
50
|
-
* Use of `const` assertions
|
|
51
|
-
*/
|
|
52
|
-
asConst?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Children nodes.
|
|
55
|
-
*/
|
|
56
|
-
children?: FabricReactNode;
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* Generates a TypeScript constant declaration.
|
|
60
|
-
*/
|
|
61
|
-
declare function Const({
|
|
62
|
-
children,
|
|
63
|
-
...props
|
|
64
|
-
}: ConstProps): FabricReactElement;
|
|
65
|
-
declare namespace Const {
|
|
66
|
-
var displayName: string;
|
|
67
|
-
}
|
|
68
|
-
//#endregion
|
|
69
|
-
//#region src/components/File.d.ts
|
|
70
|
-
type BasePropsWithBaseName = {
|
|
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
|
-
baseName: KubbFile.BaseName;
|
|
77
|
-
/**
|
|
78
|
-
* Path will be full qualified path to a specified file.
|
|
79
|
-
*/
|
|
80
|
-
path: KubbFile.Path;
|
|
81
|
-
};
|
|
82
|
-
type BasePropsWithoutBaseName = {
|
|
83
|
-
baseName?: never;
|
|
84
|
-
/**
|
|
85
|
-
* Path will be full qualified path to a specified file.
|
|
86
|
-
*/
|
|
87
|
-
path?: KubbFile.Path;
|
|
88
|
-
};
|
|
89
|
-
type BaseProps = BasePropsWithBaseName | BasePropsWithoutBaseName;
|
|
90
|
-
type Props$1<TMeta> = BaseProps & {
|
|
91
|
-
key?: Key;
|
|
92
|
-
meta?: TMeta;
|
|
93
|
-
banner?: string;
|
|
94
|
-
footer?: string;
|
|
95
|
-
children?: FabricReactNode;
|
|
96
|
-
};
|
|
97
|
-
/**
|
|
98
|
-
* Adds files to the FileManager
|
|
99
|
-
*/
|
|
100
|
-
declare function File<TMeta extends object = object>({
|
|
101
|
-
children,
|
|
102
|
-
...props
|
|
103
|
-
}: Props$1<TMeta>): FabricReactElement;
|
|
104
|
-
declare namespace File {
|
|
105
|
-
var displayName: string;
|
|
106
|
-
var Export: typeof FileExport;
|
|
107
|
-
var Import: typeof FileImport;
|
|
108
|
-
var Source: typeof FileSource;
|
|
109
|
-
}
|
|
110
|
-
type FileSourceProps = Omit<KubbFile.Source, 'value'> & {
|
|
111
|
-
key?: Key;
|
|
112
|
-
children?: FabricReactNode;
|
|
113
|
-
};
|
|
114
|
-
/**
|
|
115
|
-
* File.Source
|
|
116
|
-
*
|
|
117
|
-
* Marks a block of source text to be associated with the current file when
|
|
118
|
-
* rendering with the FileCollector. Children are treated as the source string.
|
|
119
|
-
*/
|
|
120
|
-
declare function FileSource({
|
|
121
|
-
children,
|
|
122
|
-
...props
|
|
123
|
-
}: FileSourceProps): FabricReactElement;
|
|
124
|
-
declare namespace FileSource {
|
|
125
|
-
var displayName: string;
|
|
126
|
-
}
|
|
127
|
-
type FileExportProps = KubbFile.Export & {
|
|
128
|
-
key?: Key;
|
|
129
|
-
};
|
|
130
|
-
/**
|
|
131
|
-
* File.Export
|
|
132
|
-
*
|
|
133
|
-
* Declares an export entry for the current file. This will be collected by
|
|
134
|
-
* the FileCollector for later emission.
|
|
135
|
-
*/
|
|
136
|
-
declare function FileExport(props: FileExportProps): FabricReactElement;
|
|
137
|
-
declare namespace FileExport {
|
|
138
|
-
var displayName: string;
|
|
139
|
-
}
|
|
140
|
-
type FileImportProps = KubbFile.Import & {
|
|
141
|
-
key?: Key;
|
|
142
|
-
};
|
|
143
|
-
/**
|
|
144
|
-
* File.Import
|
|
145
|
-
*
|
|
146
|
-
* Declares an import entry for the current file.
|
|
147
|
-
*/
|
|
148
|
-
declare function FileImport(props: FileImportProps): FabricReactElement;
|
|
149
|
-
declare namespace FileImport {
|
|
150
|
-
var displayName: string;
|
|
151
|
-
}
|
|
152
|
-
//#endregion
|
|
153
|
-
//#region src/components/Function.d.ts
|
|
154
|
-
type Props = {
|
|
155
|
-
key?: Key;
|
|
156
|
-
/**
|
|
157
|
-
* Name of the function.
|
|
158
|
-
*/
|
|
159
|
-
name: string;
|
|
160
|
-
/**
|
|
161
|
-
* Add default when export is being used
|
|
162
|
-
*/
|
|
163
|
-
default?: boolean;
|
|
164
|
-
/**
|
|
165
|
-
* Parameters/options/props that need to be used.
|
|
166
|
-
*/
|
|
167
|
-
params?: string;
|
|
168
|
-
/**
|
|
169
|
-
* Does this function need to be exported.
|
|
170
|
-
*/
|
|
171
|
-
export?: boolean;
|
|
172
|
-
/**
|
|
173
|
-
* Does the function has async/promise behavior.
|
|
174
|
-
* This will also add `Promise<returnType>` as the returnType.
|
|
175
|
-
*/
|
|
176
|
-
async?: boolean;
|
|
177
|
-
/**
|
|
178
|
-
* Generics that needs to be added for TypeScript.
|
|
179
|
-
*/
|
|
180
|
-
generics?: string | string[];
|
|
181
|
-
/**
|
|
182
|
-
* ReturnType(see async for adding Promise type).
|
|
183
|
-
*/
|
|
184
|
-
returnType?: string;
|
|
185
|
-
/**
|
|
186
|
-
* Options for JSdocs.
|
|
187
|
-
*/
|
|
188
|
-
JSDoc?: types_d_exports.JSDoc;
|
|
189
|
-
/**
|
|
190
|
-
* Children nodes.
|
|
191
|
-
*/
|
|
192
|
-
children?: FabricReactNode;
|
|
193
|
-
};
|
|
194
|
-
/**
|
|
195
|
-
* Generates a TypeScript function declaration.
|
|
196
|
-
*/
|
|
197
|
-
declare function Function({
|
|
198
|
-
children,
|
|
199
|
-
...props
|
|
200
|
-
}: Props): FabricReactElement;
|
|
201
|
-
declare namespace Function {
|
|
202
|
-
var displayName: string;
|
|
203
|
-
var Arrow: typeof ArrowFunction;
|
|
204
|
-
}
|
|
205
|
-
type ArrowFunctionProps = Props & {
|
|
206
|
-
/**
|
|
207
|
-
* Create Arrow function in one line
|
|
208
|
-
*/
|
|
209
|
-
singleLine?: boolean;
|
|
210
|
-
};
|
|
211
|
-
/**
|
|
212
|
-
* ArrowFunction
|
|
213
|
-
*
|
|
214
|
-
* Renders an arrow function definition. Supports the same flags as `Function`.
|
|
215
|
-
* Use `singleLine` to render the body as a single-line expression.
|
|
216
|
-
*/
|
|
217
|
-
declare function ArrowFunction({
|
|
218
|
-
children,
|
|
219
|
-
...props
|
|
220
|
-
}: ArrowFunctionProps): react.JSX.Element;
|
|
221
|
-
declare namespace ArrowFunction {
|
|
222
|
-
var displayName: string;
|
|
223
|
-
}
|
|
224
|
-
//#endregion
|
|
225
|
-
//#region src/components/Root.d.ts
|
|
226
|
-
type RootProps = {
|
|
227
|
-
/**
|
|
228
|
-
* Exit (unmount) the whole app.
|
|
229
|
-
*/
|
|
230
|
-
onExit: (error?: Error) => void;
|
|
231
|
-
/**
|
|
232
|
-
* Error hook receiving runtime exceptions.
|
|
233
|
-
*/
|
|
234
|
-
onError: (error: Error) => void;
|
|
235
|
-
/**
|
|
236
|
-
* TreeNode representing the tree structure of the app.
|
|
237
|
-
*/
|
|
238
|
-
treeNode: TreeNode$1<types_d_exports.ComponentNode>;
|
|
239
|
-
/**
|
|
240
|
-
* FileManager instance for managing files within the app.
|
|
241
|
-
*/
|
|
242
|
-
fileManager: FileManager$1;
|
|
243
|
-
/**
|
|
244
|
-
* Children nodes.
|
|
245
|
-
*/
|
|
246
|
-
children?: FabricReactNode;
|
|
247
|
-
};
|
|
248
|
-
/**
|
|
249
|
-
* This component provides the root behavior for the Fabric runtime.
|
|
250
|
-
*/
|
|
251
|
-
declare function Root({
|
|
252
|
-
onError,
|
|
253
|
-
onExit,
|
|
254
|
-
treeNode,
|
|
255
|
-
fileManager,
|
|
256
|
-
children
|
|
257
|
-
}: RootProps): FabricReactElement;
|
|
258
|
-
declare namespace Root {
|
|
259
|
-
var displayName: string;
|
|
260
|
-
}
|
|
261
|
-
//#endregion
|
|
262
|
-
//#region src/components/Type.d.ts
|
|
263
|
-
type TypeProps = {
|
|
264
|
-
key?: Key;
|
|
265
|
-
/**
|
|
266
|
-
* Name of the type, this needs to start with a capital letter.
|
|
267
|
-
*/
|
|
268
|
-
name: string;
|
|
269
|
-
/**
|
|
270
|
-
* Does this type need to be exported.
|
|
271
|
-
*/
|
|
272
|
-
export?: boolean;
|
|
273
|
-
/**
|
|
274
|
-
* Options for JSdocs.
|
|
275
|
-
*/
|
|
276
|
-
JSDoc?: types_d_exports.JSDoc;
|
|
277
|
-
/**
|
|
278
|
-
* Children nodes.
|
|
279
|
-
*/
|
|
280
|
-
children?: FabricReactNode;
|
|
281
|
-
};
|
|
282
|
-
/**
|
|
283
|
-
* Generates a TypeScript type declaration.
|
|
284
|
-
*/
|
|
285
|
-
declare function Type({
|
|
286
|
-
children,
|
|
287
|
-
...props
|
|
288
|
-
}: TypeProps): FabricReactElement;
|
|
289
|
-
declare namespace Type {
|
|
290
|
-
var displayName: string;
|
|
291
|
-
}
|
|
292
|
-
//#endregion
|
|
293
|
-
//#region src/createReactFabric.d.ts
|
|
294
|
-
declare function createReactFabric(config?: FabricConfig<Options$1 & {
|
|
295
|
-
mode?: FabricMode;
|
|
296
|
-
devtools?: boolean;
|
|
297
|
-
}>): Fabric$1<Options$1 & {
|
|
298
|
-
mode?: FabricMode;
|
|
299
|
-
devtools?: boolean;
|
|
300
|
-
}>;
|
|
301
|
-
//#endregion
|
|
302
|
-
//#region src/devtools.d.ts
|
|
303
|
-
declare global {
|
|
304
|
-
var WebSocket: typeof WebSocket;
|
|
305
|
-
var self: any;
|
|
306
|
-
var window: any;
|
|
307
|
-
var isDevtoolsEnabled: any;
|
|
308
|
-
}
|
|
309
|
-
declare function openDevtools(): undefined;
|
|
310
|
-
//#endregion
|
|
311
|
-
//#region src/Runtime.d.ts
|
|
312
|
-
type Options = {
|
|
313
|
-
fileManager: FileManager$1;
|
|
314
|
-
treeNode?: TreeNode$1<types_d_exports.ComponentNode>;
|
|
315
|
-
stdout?: NodeJS.WriteStream;
|
|
316
|
-
stdin?: NodeJS.ReadStream;
|
|
317
|
-
stderr?: NodeJS.WriteStream;
|
|
318
|
-
/**
|
|
319
|
-
* Set this to true to always see the result of the render in the console(line per render)
|
|
320
|
-
*/
|
|
321
|
-
debug?: boolean;
|
|
322
|
-
};
|
|
323
|
-
declare class Runtime {
|
|
324
|
-
#private;
|
|
325
|
-
exitPromise?: Promise<void>;
|
|
326
|
-
constructor(options: Options);
|
|
327
|
-
get fileManager(): FileManager$1;
|
|
328
|
-
resolveExitPromise: () => void;
|
|
329
|
-
rejectExitPromise: (reason?: Error) => void;
|
|
330
|
-
unsubscribeExit: () => void;
|
|
331
|
-
onRender: () => Promise<void>;
|
|
332
|
-
onError(error: Error): void;
|
|
333
|
-
onExit(error?: Error): void;
|
|
334
|
-
render(node: FabricReactElement): Promise<void>;
|
|
335
|
-
renderToString(node: FabricReactElement): Promise<string>;
|
|
336
|
-
unmount(error?: Error | number | null): void;
|
|
337
|
-
waitUntilExit(): Promise<void>;
|
|
338
|
-
}
|
|
339
|
-
//#endregion
|
|
340
|
-
//#region src/index.d.ts
|
|
341
|
-
declare const useState: typeof react.useState;
|
|
342
|
-
declare const useEffect: typeof react.useEffect;
|
|
343
|
-
declare const useReducer: typeof react.useReducer;
|
|
344
|
-
declare const useRef: typeof react.useRef;
|
|
345
|
-
//#endregion
|
|
346
|
-
export { App, Const, type Fabric, File, FileManager, FileProcessor, Function, FunctionParams, Root, Runtime, TreeNode, Type, createContext, createFabric, createFile, createFunctionParams, createReactFabric, openDevtools, useApp, useContext, useEffect, useFile, useLifecycle, useReducer, useRef, useState };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { o as __name } from "./getFunctionParams-BaDz1zZu.cjs";
|
|
2
|
-
import { FabricReactElement, FabricReactNode } from "./types.cjs";
|
|
3
|
-
import { t as JSX } from "./jsx-namespace-zRAnd-2Y.cjs";
|
|
4
|
-
import * as react from "react";
|
|
5
|
-
import * as React$1 from "react/jsx-dev-runtime";
|
|
6
|
-
|
|
7
|
-
//#region src/jsx-dev-runtime.d.ts
|
|
8
|
-
declare const Fragment: react.ExoticComponent<react.FragmentProps>;
|
|
9
|
-
declare const jsxDEV: typeof React$1.jsxDEV;
|
|
10
|
-
type JSXElement = FabricReactElement;
|
|
11
|
-
type ReactNode = FabricReactNode;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { Fragment, JSX, JSXElement, ReactNode, jsxDEV };
|
package/dist/jsx-runtime.d.cts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { o as __name } from "./getFunctionParams-BaDz1zZu.cjs";
|
|
2
|
-
import { FabricReactElement, FabricReactNode } from "./types.cjs";
|
|
3
|
-
import { t as JSX } from "./jsx-namespace-zRAnd-2Y.cjs";
|
|
4
|
-
import * as react from "react";
|
|
5
|
-
import * as React$1 from "react/jsx-runtime";
|
|
6
|
-
|
|
7
|
-
//#region src/jsx-runtime.d.ts
|
|
8
|
-
declare const Fragment: react.ExoticComponent<react.FragmentProps>;
|
|
9
|
-
declare const jsx: typeof React$1.jsx;
|
|
10
|
-
declare const jsxDEV: typeof React$1.jsx;
|
|
11
|
-
declare const jsxs: typeof React$1.jsxs;
|
|
12
|
-
type JSXElement = FabricReactElement;
|
|
13
|
-
type ReactNode = FabricReactNode;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { Fragment, JSX, JSXElement, ReactNode, jsx, jsxDEV, jsxs };
|
package/dist/parsers.d.cts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@kubb/fabric-core/parsers";
|
package/dist/plugins.d.cts
DELETED