Coalesce the Validation Block and the new Human Interaction Block (#3882)

This commit is contained in:
Jonathan Dobson
2025-11-03 10:01:24 -05:00
committed by GitHub
parent 3cfa43ba6c
commit 4da7b6d4dd
9 changed files with 280 additions and 13 deletions

View File

@@ -1,6 +1,7 @@
import { createContext } from "react";
type DeleteNodeCallback = (id: string) => void;
type TransmuteNodeCallback = (id: string, nodeName: string) => void;
type ToggleScriptForNodeCallback = (opts: {
id?: string;
label?: string;
@@ -10,6 +11,7 @@ type ToggleScriptForNodeCallback = (opts: {
const BlockActionContext = createContext<
| {
deleteNodeCallback: DeleteNodeCallback;
transmuteNodeCallback: TransmuteNodeCallback;
toggleScriptForNodeCallback?: ToggleScriptForNodeCallback;
}
| undefined