@kubb/react-fabric 0.7.2 → 0.7.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.
- package/dist/index.d.ts +21 -21
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as FabricOptions, b as Source, c as FileManager, f as BaseName, g as Import, h as File$1, i as FabricMode, l as FileProcessor, n as FabricConfig, p as Export, t as Fabric, v as Path, y as ResolvedFile } from "./Fabric-DitK3IEP.js";
|
|
2
2
|
import { a as JSDoc, d as KubbNode, g as FunctionParams, o as Key, y as createFunctionParams } from "./types-CSUzVTpn.js";
|
|
3
3
|
import { t as Options$1 } from "./reactPlugin-4-kcMKwZ.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react5 from "react";
|
|
5
5
|
import React, { ReactNode } from "react";
|
|
6
6
|
|
|
7
7
|
//#region ../fabric-core/src/createFabric.d.ts
|
|
@@ -36,9 +36,9 @@ type Props$4<TMeta = unknown> = {
|
|
|
36
36
|
declare function App<TMeta = unknown>({
|
|
37
37
|
meta,
|
|
38
38
|
children
|
|
39
|
-
}: Props$4<TMeta>):
|
|
39
|
+
}: Props$4<TMeta>): react5.JSX.Element;
|
|
40
40
|
declare namespace App {
|
|
41
|
-
var Context:
|
|
41
|
+
var Context: react5.Context<AppContextProps<unknown> | undefined>;
|
|
42
42
|
var displayName: string;
|
|
43
43
|
}
|
|
44
44
|
//#endregion
|
|
@@ -74,7 +74,7 @@ declare function Const({
|
|
|
74
74
|
JSDoc,
|
|
75
75
|
asConst,
|
|
76
76
|
children
|
|
77
|
-
}: Props$3):
|
|
77
|
+
}: Props$3): react5.JSX.Element;
|
|
78
78
|
declare namespace Const {
|
|
79
79
|
var displayName: string;
|
|
80
80
|
}
|
|
@@ -123,13 +123,13 @@ type Props$2<TMeta> = BaseProps & {
|
|
|
123
123
|
declare function File<TMeta extends object = object>({
|
|
124
124
|
children,
|
|
125
125
|
...rest
|
|
126
|
-
}: Props$2<TMeta>):
|
|
126
|
+
}: Props$2<TMeta>): react5.JSX.Element;
|
|
127
127
|
declare namespace File {
|
|
128
128
|
var displayName: string;
|
|
129
129
|
var Export: typeof FileExport;
|
|
130
130
|
var Import: typeof FileImport;
|
|
131
131
|
var Source: typeof FileSource;
|
|
132
|
-
var Context:
|
|
132
|
+
var Context: react5.Context<FileContextProps<object>>;
|
|
133
133
|
}
|
|
134
134
|
type FileSourceProps = Omit<Source, 'value'> & {
|
|
135
135
|
key?: Key;
|
|
@@ -141,7 +141,7 @@ declare function FileSource({
|
|
|
141
141
|
isExportable,
|
|
142
142
|
isIndexable,
|
|
143
143
|
children
|
|
144
|
-
}: FileSourceProps):
|
|
144
|
+
}: FileSourceProps): react5.JSX.Element;
|
|
145
145
|
declare namespace FileSource {
|
|
146
146
|
var displayName: string;
|
|
147
147
|
}
|
|
@@ -153,7 +153,7 @@ declare function FileExport({
|
|
|
153
153
|
path,
|
|
154
154
|
isTypeOnly,
|
|
155
155
|
asAlias
|
|
156
|
-
}: FileExportProps):
|
|
156
|
+
}: FileExportProps): react5.JSX.Element;
|
|
157
157
|
declare namespace FileExport {
|
|
158
158
|
var displayName: string;
|
|
159
159
|
}
|
|
@@ -166,7 +166,7 @@ declare function FileImport({
|
|
|
166
166
|
path,
|
|
167
167
|
isTypeOnly,
|
|
168
168
|
isNameSpace
|
|
169
|
-
}: FileImportProps):
|
|
169
|
+
}: FileImportProps): react5.JSX.Element;
|
|
170
170
|
declare namespace FileImport {
|
|
171
171
|
var displayName: string;
|
|
172
172
|
}
|
|
@@ -219,7 +219,7 @@ declare function Function({
|
|
|
219
219
|
returnType,
|
|
220
220
|
JSDoc,
|
|
221
221
|
children
|
|
222
|
-
}: Props$1):
|
|
222
|
+
}: Props$1): react5.JSX.Element;
|
|
223
223
|
declare namespace Function {
|
|
224
224
|
var displayName: string;
|
|
225
225
|
var Arrow: typeof ArrowFunction;
|
|
@@ -241,7 +241,7 @@ declare function ArrowFunction({
|
|
|
241
241
|
JSDoc,
|
|
242
242
|
singleLine,
|
|
243
243
|
children
|
|
244
|
-
}: ArrowFunctionProps):
|
|
244
|
+
}: ArrowFunctionProps): react5.JSX.Element;
|
|
245
245
|
declare namespace ArrowFunction {
|
|
246
246
|
var displayName: string;
|
|
247
247
|
}
|
|
@@ -282,7 +282,7 @@ declare function Type({
|
|
|
282
282
|
export: canExport,
|
|
283
283
|
JSDoc,
|
|
284
284
|
children
|
|
285
|
-
}: Props):
|
|
285
|
+
}: Props): react5.JSX.Element;
|
|
286
286
|
declare namespace Type {
|
|
287
287
|
var displayName: string;
|
|
288
288
|
}
|
|
@@ -345,15 +345,15 @@ declare class Runtime {
|
|
|
345
345
|
}
|
|
346
346
|
//#endregion
|
|
347
347
|
//#region src/index.d.ts
|
|
348
|
-
declare const useState: typeof
|
|
349
|
-
declare const createContext: typeof
|
|
350
|
-
declare const createElement: typeof
|
|
351
|
-
declare const Fragment:
|
|
352
|
-
declare const use: typeof
|
|
353
|
-
declare const useContext: typeof
|
|
354
|
-
declare const useEffect: typeof
|
|
355
|
-
declare const useReducer: typeof
|
|
356
|
-
declare const useRef: typeof
|
|
348
|
+
declare const useState: typeof react5.useState;
|
|
349
|
+
declare const createContext: typeof react5.createContext;
|
|
350
|
+
declare const createElement: typeof react5.createElement;
|
|
351
|
+
declare const Fragment: react5.ExoticComponent<react5.FragmentProps>;
|
|
352
|
+
declare const use: typeof react5.use;
|
|
353
|
+
declare const useContext: typeof react5.useContext;
|
|
354
|
+
declare const useEffect: typeof react5.useEffect;
|
|
355
|
+
declare const useReducer: typeof react5.useReducer;
|
|
356
|
+
declare const useRef: typeof react5.useRef;
|
|
357
357
|
//#endregion
|
|
358
358
|
export { App, Const, type Fabric, File, FileManager, FileProcessor, Fragment, Function, FunctionParams, Indent, Runtime, Type, createContext, createElement, createFabric, createFile, createFunctionParams, createReactFabric, use, useApp, useContext, useEffect, useFile, useLifecycle, useReducer, useRef, useState };
|
|
359
359
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/react-fabric",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
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",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"react-devtools-core": "6.1.2",
|
|
112
112
|
"signal-exit": "^4.1.0",
|
|
113
113
|
"ws": "8.18.0",
|
|
114
|
-
"@kubb/fabric-core": "0.7.
|
|
114
|
+
"@kubb/fabric-core": "0.7.4"
|
|
115
115
|
},
|
|
116
116
|
"devDependencies": {
|
|
117
117
|
"@types/react": "^19.2.7",
|