@tangle-network/sandbox-ui 0.93.0 → 0.93.1

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.
@@ -974,6 +974,20 @@ function WorkflowGraph({
974
974
  },
975
975
  [onNodeClick]
976
976
  );
977
+ const handleNodeKeyDown = useCallback(
978
+ (event) => {
979
+ if (event.key !== "Enter" && event.key !== " ") return;
980
+ if (!(event.target instanceof HTMLElement)) return;
981
+ const nodeId = event.target.closest(".react-flow__node")?.getAttribute("data-id");
982
+ if (!nodeId) return;
983
+ const node = nodesRef.current.find((n) => n.id === nodeId);
984
+ if (!node) return;
985
+ event.preventDefault();
986
+ event.stopPropagation();
987
+ onNodeClick?.(node.id, node.data);
988
+ },
989
+ [onNodeClick]
990
+ );
977
991
  if (structural.error || structural.nodes.length === 0) {
978
992
  return /* @__PURE__ */ jsx3(
979
993
  "div",
@@ -997,6 +1011,7 @@ function WorkflowGraph({
997
1011
  rfRef.current = inst;
998
1012
  },
999
1013
  onNodeClick: onNodeClick ? handleNodeClick : void 0,
1014
+ onKeyDown: onNodeClick ? handleNodeKeyDown : void 0,
1000
1015
  fitView: true,
1001
1016
  fitViewOptions: { ...FIT_VIEW, maxZoom: fitZoomCeiling(compact) },
1002
1017
  proOptions: { hideAttribution: true },
package/dist/workflows.js CHANGED
@@ -36,7 +36,7 @@ function retryImport(factory, retries = 2, delayMs = 350) {
36
36
  function lazyWorkflowGraph() {
37
37
  return lazy(
38
38
  () => retryImport(
39
- () => import("./WorkflowGraph-TKDBFK3V.js").then((m) => ({ default: m.WorkflowGraph }))
39
+ () => import("./WorkflowGraph-YII62JEW.js").then((m) => ({ default: m.WorkflowGraph }))
40
40
  )
41
41
  );
42
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sandbox-ui",
3
- "version": "0.93.0",
3
+ "version": "0.93.1",
4
4
  "description": "Unified UI component library for Tangle Sandbox — primitives, chat, dashboard, terminal, editor, and workspace components",
5
5
  "repository": {
6
6
  "type": "git",