@rkmodules/rules 0.0.145 → 0.0.147
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.cjs.js +155 -48
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +155 -48
- package/dist/index.esm.js.map +1 -1
- package/dist/lib/Engine/types.d.ts +2 -0
- package/dist/lib/Flow/Components/Input.d.ts +3 -1
- package/dist/lib/Flow/Nodes/NamedInput.d.ts +7 -0
- package/dist/lib/Flow/Nodes/index.d.ts +4 -0
- package/package.json +1 -1
|
@@ -46,6 +46,8 @@ export type FunctionCall = {
|
|
|
46
46
|
label?: string;
|
|
47
47
|
inputs?: VarRef;
|
|
48
48
|
params?: VarRef;
|
|
49
|
+
inputDefs?: Record<string, VarDef>;
|
|
50
|
+
outputDefs?: Record<string, VarDef>;
|
|
49
51
|
};
|
|
50
52
|
/**
|
|
51
53
|
* a node that contains other nodes, with input and output definitions and references to other nodes
|
|
@@ -7,6 +7,8 @@ interface InputProps {
|
|
|
7
7
|
id: string;
|
|
8
8
|
data: FunctionNode["data"];
|
|
9
9
|
onClick?: (e: React.MouseEvent) => void;
|
|
10
|
+
onRename?: (name: string, varDef: VarDef) => void;
|
|
11
|
+
onDelete?: (name: string) => void;
|
|
10
12
|
}
|
|
11
|
-
export declare const Input: ({ name, varDef, id, data, onClick }: InputProps) => React.JSX.Element;
|
|
13
|
+
export declare const Input: ({ name, varDef, id, data, onClick, onRename, onDelete, }: InputProps) => React.JSX.Element;
|
|
12
14
|
export {};
|
|
@@ -4,6 +4,10 @@ export declare const nodeTypes: {
|
|
|
4
4
|
Log: import("react").MemoExoticComponent<({ id, data, selected }: import("@xyflow/react").NodeProps<import("..").FunctionNode>) => import("react").JSX.Element>;
|
|
5
5
|
DynamicInput: import("react").MemoExoticComponent<({ id, data, selected }: import("@xyflow/react").NodeProps<import("..").FunctionNode>) => import("react").JSX.Element>;
|
|
6
6
|
DynamicOutput: import("react").MemoExoticComponent<({ id, data, selected }: import("@xyflow/react").NodeProps<import("..").FunctionNode>) => import("react").JSX.Element>;
|
|
7
|
+
NamedInput: {
|
|
8
|
+
({ id, data, selected }: import("@xyflow/react").NodeProps<import("..").FunctionNode>): import("react").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
7
11
|
Input: import("react").MemoExoticComponent<({ id, data, selected }: import("@xyflow/react").NodeProps<import("..").FunctionNode>) => import("react").JSX.Element>;
|
|
8
12
|
Output: import("react").MemoExoticComponent<({ id, data, selected }: import("@xyflow/react").NodeProps<import("..").FunctionNode>) => import("react").JSX.Element>;
|
|
9
13
|
};
|