diff --git a/src/components/graph/BaseNode.tsx b/src/components/graph/BaseNode.tsx index 360887c..58d01b5 100644 --- a/src/components/graph/BaseNode.tsx +++ b/src/components/graph/BaseNode.tsx @@ -80,11 +80,6 @@ export function BaseNode({ )} style={{ margin: 0, touchAction: "none", userSelect: "none" }} > - )} {handles} @@ -113,23 +108,6 @@ export function BaseNodeHeader({ ); } -/** - * The title text for the node. To maintain a native application feel, the title - * text is not selectable. - */ -export function BaseNodeHeaderTitle({ - className, - ...props -}: ComponentProps<"h3">) { - return ( -

- ); -} - /** * Standard node header: icon on the left, title taking the rest. Use for all node types. * Inlined so it does not depend on BaseNodeHeader/BaseNodeHeaderTitle (avoids reference errors with HMR). @@ -153,7 +131,7 @@ export function BaseNodeHeaderRow({ {icon}

{title}

diff --git a/src/components/graph/ConfigNode.tsx b/src/components/graph/ConfigNode.tsx index 5bcc14c..e4bcce0 100644 --- a/src/components/graph/ConfigNode.tsx +++ b/src/components/graph/ConfigNode.tsx @@ -162,7 +162,7 @@ export const ConfigNode = memo(function ConfigNode({ id, data, width, height }: return ( }> - } title={} /> + } title={} />
@@ -248,7 +248,7 @@ export const ConfigNode = memo(function ConfigNode({ id, data, width, height }: />
-
+
} title={} /> -
+
-

- Call in config: ${{id}(var1, var2)} -

-
+
- Body: {bodyValue ? `${bodyValue.length} chars` : 'none'} + {bodyValue ? `${bodyValue.length} chars` : 'none'} ) diff --git a/src/components/graph/NodeMenubar.tsx b/src/components/graph/NodeMenubar.tsx index 1cf20ca..2fec532 100644 --- a/src/components/graph/NodeMenubar.tsx +++ b/src/components/graph/NodeMenubar.tsx @@ -57,7 +57,7 @@ export function NodeMenubar({ nodeId, nodeType, editInputsContent, insertTagsCon const onCopy = useCallback(() => { if (!node) return const copy = { id: node.id, type: node.type, data: node.data, position: node.position, style: node.style } - navigator.clipboard?.writeText(JSON.stringify(copy)).catch(() => {}) + navigator.clipboard?.writeText(JSON.stringify(copy)).catch(() => { }) }, [node]) const onReset = useCallback(() => { @@ -79,7 +79,7 @@ export function NodeMenubar({ nodeId, nodeType, editInputsContent, insertTagsCon }, [nodeId, ctx]) return ( - + Node diff --git a/src/components/graph/RenderingNode.tsx b/src/components/graph/RenderingNode.tsx index 2c98e8b..d731c9d 100644 --- a/src/components/graph/RenderingNode.tsx +++ b/src/components/graph/RenderingNode.tsx @@ -403,7 +403,7 @@ export const RenderingNode = memo(function RenderingNode({ id, width, height }:
Rendering…
) : svgContent ? (
) : null} diff --git a/src/components/graph/VariableNode.tsx b/src/components/graph/VariableNode.tsx index 7de7c08..aac2d33 100644 --- a/src/components/graph/VariableNode.tsx +++ b/src/components/graph/VariableNode.tsx @@ -94,46 +94,47 @@ export const VariableNode = memo(function VariableNode({ id, data }: Props) { }> } title={} /> - +
-
- - -
-
- - {valueType === 'boolean' ? ( -
- +
+ + +
+
+ + {valueType === 'boolean' ? ( +
+ + {value ? 'true' : 'false'} +
+ ) : ( + - {value ? 'true' : 'false'} -
- ) : ( - - )} + )} +
- Use in config: prop: {'${'}{id}{'}'}