@kubb/react-fabric 0.11.1 → 0.11.2
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/TreeNode-Dqmg64Vf.d.cts +35 -0
- package/dist/TreeNode-tc-jO4rk.d.ts +35 -0
- package/dist/globals.d.cts +1 -1
- package/dist/globals.d.ts +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/jsx-dev-runtime.d.cts +4 -4
- package/dist/jsx-dev-runtime.d.ts +2 -2
- package/dist/{jsx-namespace-B6xgRlZE.d.cts → jsx-namespace-Cwg_oGAF.d.cts} +2 -2
- package/dist/{jsx-namespace-BNUcRr9S.d.ts → jsx-namespace-bLrscF7g.d.ts} +2 -2
- package/dist/jsx-runtime.d.cts +4 -4
- package/dist/jsx-runtime.d.ts +2 -2
- package/dist/plugins.d.cts +1 -2
- package/dist/plugins.d.ts +1 -2
- package/dist/reactPlugin-B8F6jVb5.cjs.map +1 -1
- package/dist/{reactPlugin-9l7--xRt.d.ts → reactPlugin-BHE3X6-B.d.ts} +5 -6
- package/dist/reactPlugin-CAtVV84d.js.map +1 -1
- package/dist/{reactPlugin-DdQ8nZeK.d.cts → reactPlugin-yhmHKdUw.d.cts} +5 -6
- package/dist/{types-f5qVBVRo.d.cts → types-BKNiqRcq.d.cts} +2 -32
- package/dist/{types-QgmDVUxV.d.ts → types-BKXB0ewg.d.ts} +2 -32
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +2 -2
- package/src/plugins/reactPlugin.ts +6 -7
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { h as File } from "./Fabric-BELBf-bX.cjs";
|
|
2
|
+
|
|
3
|
+
//#region ../fabric-core/src/utils/TreeNode.d.ts
|
|
4
|
+
type BarrelData = {
|
|
5
|
+
file?: File;
|
|
6
|
+
path: string;
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
9
|
+
type Graph = {
|
|
10
|
+
nodes: Array<{
|
|
11
|
+
id: string;
|
|
12
|
+
label: string;
|
|
13
|
+
}>;
|
|
14
|
+
edges: Array<{
|
|
15
|
+
from: string;
|
|
16
|
+
to: string;
|
|
17
|
+
}>;
|
|
18
|
+
};
|
|
19
|
+
declare class TreeNode<TData = unknown> {
|
|
20
|
+
#private;
|
|
21
|
+
data: TData;
|
|
22
|
+
parent?: TreeNode<TData>;
|
|
23
|
+
children: Array<TreeNode<TData>>;
|
|
24
|
+
constructor(data: TData, parent?: TreeNode<TData>);
|
|
25
|
+
addChild(data: TData): TreeNode<TData>;
|
|
26
|
+
getChildByName(name: string): TreeNode<TData> | undefined;
|
|
27
|
+
get leaves(): Array<TreeNode<TData>>;
|
|
28
|
+
forEach(callback: (node: TreeNode<TData>) => void): this;
|
|
29
|
+
findDeep(predicate: (node: TreeNode<TData>) => boolean): TreeNode<TData> | undefined;
|
|
30
|
+
static toGraph(root: TreeNode<BarrelData>): Graph;
|
|
31
|
+
static fromFiles(files: Array<File>, rootFolder?: string): TreeNode<BarrelData> | null;
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { TreeNode as t };
|
|
35
|
+
//# sourceMappingURL=TreeNode-Dqmg64Vf.d.cts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { h as File } from "./Fabric-DbJhvsCq.js";
|
|
2
|
+
|
|
3
|
+
//#region ../fabric-core/src/utils/TreeNode.d.ts
|
|
4
|
+
type BarrelData = {
|
|
5
|
+
file?: File;
|
|
6
|
+
path: string;
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
9
|
+
type Graph = {
|
|
10
|
+
nodes: Array<{
|
|
11
|
+
id: string;
|
|
12
|
+
label: string;
|
|
13
|
+
}>;
|
|
14
|
+
edges: Array<{
|
|
15
|
+
from: string;
|
|
16
|
+
to: string;
|
|
17
|
+
}>;
|
|
18
|
+
};
|
|
19
|
+
declare class TreeNode<TData = unknown> {
|
|
20
|
+
#private;
|
|
21
|
+
data: TData;
|
|
22
|
+
parent?: TreeNode<TData>;
|
|
23
|
+
children: Array<TreeNode<TData>>;
|
|
24
|
+
constructor(data: TData, parent?: TreeNode<TData>);
|
|
25
|
+
addChild(data: TData): TreeNode<TData>;
|
|
26
|
+
getChildByName(name: string): TreeNode<TData> | undefined;
|
|
27
|
+
get leaves(): Array<TreeNode<TData>>;
|
|
28
|
+
forEach(callback: (node: TreeNode<TData>) => void): this;
|
|
29
|
+
findDeep(predicate: (node: TreeNode<TData>) => boolean): TreeNode<TData> | undefined;
|
|
30
|
+
static toGraph(root: TreeNode<BarrelData>): Graph;
|
|
31
|
+
static fromFiles(files: Array<File>, rootFolder?: string): TreeNode<BarrelData> | null;
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { TreeNode as t };
|
|
35
|
+
//# sourceMappingURL=TreeNode-tc-jO4rk.d.ts.map
|
package/dist/globals.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./Fabric-BELBf-bX.cjs";
|
|
2
|
-
import { c as KubbFileProps, d as KubbSourceProps, f as KubbTextProps, l as KubbImportProps, o as KubbElement, p as LineBreakProps, s as KubbExportProps, u as KubbNode } from "./types-
|
|
2
|
+
import { c as KubbFileProps, d as KubbSourceProps, f as KubbTextProps, l as KubbImportProps, o as KubbElement, p as LineBreakProps, s as KubbExportProps, u as KubbNode } from "./types-BKNiqRcq.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
1
|
import "./Fabric-DbJhvsCq.js";
|
|
2
|
-
import { c as KubbFileProps, d as KubbSourceProps, f as KubbTextProps, l as KubbImportProps, o as KubbElement, p as LineBreakProps, s as KubbExportProps, u as KubbNode } from "./types-
|
|
2
|
+
import { c as KubbFileProps, d as KubbSourceProps, f as KubbTextProps, l as KubbImportProps, o as KubbElement, p as LineBreakProps, s as KubbExportProps, u as KubbNode } from "./types-BKXB0ewg.js";
|
|
3
3
|
import React from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/globals.d.ts
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-BELBf-bX.cjs";
|
|
2
|
-
import { a as Key, h as FunctionParams, u as KubbNode, v as createFunctionParams, y as JSDoc } from "./types-
|
|
3
|
-
import { t as Options$1 } from "./reactPlugin-
|
|
2
|
+
import { a as Key, h as FunctionParams, u as KubbNode, v as createFunctionParams, y as JSDoc } from "./types-BKNiqRcq.cjs";
|
|
3
|
+
import { t as Options$1 } from "./reactPlugin-yhmHKdUw.cjs";
|
|
4
4
|
import * as react3 from "react";
|
|
5
5
|
import React, { ReactNode } from "react";
|
|
6
6
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-DbJhvsCq.js";
|
|
2
|
-
import { a as Key, h as FunctionParams, u as KubbNode, v as createFunctionParams, y as JSDoc } from "./types-
|
|
3
|
-
import { t as Options$1 } from "./reactPlugin-
|
|
2
|
+
import { a as Key, h as FunctionParams, u as KubbNode, v as createFunctionParams, y as JSDoc } from "./types-BKXB0ewg.js";
|
|
3
|
+
import { t as Options$1 } from "./reactPlugin-BHE3X6-B.js";
|
|
4
4
|
import * as react3 from "react";
|
|
5
5
|
import React, { ReactNode } from "react";
|
|
6
6
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./Fabric-BELBf-bX.cjs";
|
|
2
|
-
import { o as KubbElement, u as KubbNode } from "./types-
|
|
3
|
-
import { t as JSX } from "./jsx-namespace-
|
|
4
|
-
import * as
|
|
2
|
+
import { o as KubbElement, u as KubbNode } from "./types-BKNiqRcq.cjs";
|
|
3
|
+
import { t as JSX } from "./jsx-namespace-Cwg_oGAF.cjs";
|
|
4
|
+
import * as react1 from "react";
|
|
5
5
|
import * as React$1 from "react/jsx-dev-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/jsx-dev-runtime.d.ts
|
|
8
|
-
declare const Fragment:
|
|
8
|
+
declare const Fragment: react1.ExoticComponent<react1.FragmentProps>;
|
|
9
9
|
declare const jsxDEV: typeof React$1.jsxDEV;
|
|
10
10
|
type JSXElement = KubbElement;
|
|
11
11
|
type ReactNode = KubbNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./Fabric-DbJhvsCq.js";
|
|
2
|
-
import { o as KubbElement, u as KubbNode } from "./types-
|
|
3
|
-
import { t as JSX } from "./jsx-namespace-
|
|
2
|
+
import { o as KubbElement, u as KubbNode } from "./types-BKXB0ewg.js";
|
|
3
|
+
import { t as JSX } from "./jsx-namespace-bLrscF7g.js";
|
|
4
4
|
import * as react1 from "react";
|
|
5
5
|
import * as React$1 from "react/jsx-dev-runtime";
|
|
6
6
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as KubbFileProps, d as KubbSourceProps, f as KubbTextProps, l as KubbImportProps, o as KubbElement, p as LineBreakProps, s as KubbExportProps, u as KubbNode } from "./types-
|
|
1
|
+
import { c as KubbFileProps, d as KubbSourceProps, f as KubbTextProps, l as KubbImportProps, o as KubbElement, p as LineBreakProps, s as KubbExportProps, u as KubbNode } from "./types-BKNiqRcq.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-Cwg_oGAF.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as KubbFileProps, d as KubbSourceProps, f as KubbTextProps, l as KubbImportProps, o as KubbElement, p as LineBreakProps, s as KubbExportProps, u as KubbNode } from "./types-
|
|
1
|
+
import { c as KubbFileProps, d as KubbSourceProps, f as KubbTextProps, l as KubbImportProps, o as KubbElement, p as LineBreakProps, s as KubbExportProps, u as KubbNode } from "./types-BKXB0ewg.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-bLrscF7g.d.ts.map
|
package/dist/jsx-runtime.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./Fabric-BELBf-bX.cjs";
|
|
2
|
-
import { o as KubbElement, u as KubbNode } from "./types-
|
|
3
|
-
import { t as JSX } from "./jsx-namespace-
|
|
4
|
-
import * as
|
|
2
|
+
import { o as KubbElement, u as KubbNode } from "./types-BKNiqRcq.cjs";
|
|
3
|
+
import { t as JSX } from "./jsx-namespace-Cwg_oGAF.cjs";
|
|
4
|
+
import * as react0 from "react";
|
|
5
5
|
import * as React$1 from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/jsx-runtime.d.ts
|
|
8
|
-
declare const Fragment:
|
|
8
|
+
declare const Fragment: react0.ExoticComponent<react0.FragmentProps>;
|
|
9
9
|
declare const jsx: typeof React$1.jsx;
|
|
10
10
|
declare const jsxDEV: typeof React$1.jsx;
|
|
11
11
|
declare const jsxs: typeof React$1.jsxs;
|
package/dist/jsx-runtime.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./Fabric-DbJhvsCq.js";
|
|
2
|
-
import { o as KubbElement, u as KubbNode } from "./types-
|
|
3
|
-
import { t as JSX } from "./jsx-namespace-
|
|
2
|
+
import { o as KubbElement, u as KubbNode } from "./types-BKXB0ewg.js";
|
|
3
|
+
import { t as JSX } from "./jsx-namespace-bLrscF7g.js";
|
|
4
4
|
import * as react0 from "react";
|
|
5
5
|
import * as React$1 from "react/jsx-runtime";
|
|
6
6
|
|
package/dist/plugins.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { m as Extname, o as Plugin, s as UserPlugin } from "./Fabric-BELBf-bX.cjs";
|
|
2
|
-
import "./
|
|
3
|
-
import { n as reactPlugin } from "./reactPlugin-DdQ8nZeK.cjs";
|
|
2
|
+
import { n as reactPlugin } from "./reactPlugin-yhmHKdUw.cjs";
|
|
4
3
|
|
|
5
4
|
//#region ../fabric-core/src/plugins/barrelPlugin.d.ts
|
|
6
5
|
type Mode = 'all' | 'named' | 'propagate' | false;
|
package/dist/plugins.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { m as Extname, o as Plugin, s as UserPlugin } from "./Fabric-DbJhvsCq.js";
|
|
2
|
-
import "./
|
|
3
|
-
import { n as reactPlugin } from "./reactPlugin-9l7--xRt.js";
|
|
2
|
+
import { n as reactPlugin } from "./reactPlugin-BHE3X6-B.js";
|
|
4
3
|
|
|
5
4
|
//#region ../fabric-core/src/plugins/barrelPlugin.d.ts
|
|
6
5
|
type Mode = 'all' | 'named' | 'propagate' | false;
|