@rkmodules/rules 0.0.26 → 0.0.27
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.css +67 -3
- package/dist/index.js +189 -85
- package/dist/index.js.map +1 -1
- package/dist/lib/Engine/index.d.ts +2 -1
- package/dist/lib/Flow/Components/Input.d.ts +11 -6
- package/dist/lib/Flow/Components/Output.d.ts +10 -5
- package/dist/lib/Flow/Components/Param.d.ts +11 -6
- package/dist/lib/Flow/Nodes/Log.d.ts +6 -0
- package/dist/lib/Primitives/Logic/groupAnd.d.ts +2 -0
- package/dist/lib/Primitives/Logic/groupOr.d.ts +2 -0
- package/dist/lib/Primitives/Logic/index.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Tree } from "../DataTree";
|
|
2
|
-
import { GraphedFunction, NormalizedVarDef, PrimitiveFunction, AnyFunction, VarDef, VarRef, FunctionCall } from "./types";
|
|
2
|
+
import { GraphedFunction, NormalizedVarDef, PrimitiveFunction, AnyFunction, VarDef, VarRef, RecOfTrees, FunctionCall } from "./types";
|
|
3
3
|
export * from "./types";
|
|
4
4
|
export * from "./util";
|
|
5
5
|
export interface Ref {
|
|
@@ -24,6 +24,7 @@ interface EngineEvent {
|
|
|
24
24
|
outputs?: Record<string, Tree<any>>;
|
|
25
25
|
executionId: string;
|
|
26
26
|
context: ExecutionContext;
|
|
27
|
+
result?: RecOfTrees;
|
|
27
28
|
startTime: number;
|
|
28
29
|
endTime?: number;
|
|
29
30
|
duration?: number;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import { VarDef } from "../../Engine";
|
|
3
|
+
import { FunctionNode } from "../types";
|
|
4
|
+
interface InputProps {
|
|
5
|
+
name: string;
|
|
6
|
+
varDef: VarDef;
|
|
7
|
+
id: string;
|
|
8
|
+
data: FunctionNode["data"];
|
|
9
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const Input: ({ name, varDef, id, data, onClick }: InputProps) => React.JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { VarDef } from "../../Engine";
|
|
3
|
+
interface OutputProps {
|
|
4
|
+
name: string;
|
|
5
|
+
varDef: VarDef;
|
|
6
|
+
id: string;
|
|
7
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
8
|
+
focus?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const Output: ({ name, varDef, id, onClick, focus }: OutputProps) => React.JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import { VarDef } from "../../Engine";
|
|
3
|
+
import { FunctionNode } from "../types";
|
|
4
|
+
interface ParamProps {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
varDef: VarDef;
|
|
8
|
+
data: FunctionNode["data"];
|
|
9
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const Param: ({ id, name, varDef, data, onClick }: ParamProps) => React.JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { NodeProps } from "@xyflow/react";
|
|
3
3
|
import { FunctionNode } from "../types";
|
|
4
|
+
import { Tree } from "../../DataTree";
|
|
5
|
+
interface TreeViewProps {
|
|
6
|
+
value: Tree<any> | null;
|
|
7
|
+
}
|
|
8
|
+
export declare function TreeView({ value }: TreeViewProps): React.JSX.Element;
|
|
4
9
|
export declare const Log: React.MemoExoticComponent<({ id, data, selected }: NodeProps<FunctionNode>) => React.JSX.Element>;
|
|
10
|
+
export {};
|