@tangle-network/sandbox-ui 0.136.0 → 0.136.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.
@@ -938,12 +938,18 @@ function graphBounds(graph) {
938
938
  function openingViewport(graph, width, height, compact, direction) {
939
939
  const bounds = graphBounds(graph);
940
940
  const view = framingViewport(bounds, width, height, compact, elkFloor(graph, direction));
941
+ if (direction !== "TB") return view;
942
+ const y = bounds.height * view.zoom > height ? Math.max(view.y, 44 - bounds.y * view.zoom) : view.y;
941
943
  const entry = graph.nodes[0];
942
- if (direction !== "TB" || !entry || bounds.width * view.zoom <= width) return view;
944
+ if (!entry || bounds.width * view.zoom <= width) return {
945
+ ...view,
946
+ y
947
+ };
943
948
  const entryCenter = entry.position.x + (entry.width ?? 0) / 2;
944
949
  return {
945
950
  ...view,
946
- x: width / 2 - entryCenter * view.zoom
951
+ x: width / 2 - entryCenter * view.zoom,
952
+ y
947
953
  };
948
954
  }
949
955
  /**
package/dist/workflows.js CHANGED
@@ -30,7 +30,7 @@ function retryImport(factory, retries = 2, delayMs = 350) {
30
30
  });
31
31
  }
32
32
  function lazyWorkflowGraph() {
33
- return lazy(() => retryImport(() => import("./WorkflowGraph-Cfm0Ub4F.js").then((m) => ({ default: m.WorkflowGraph }))));
33
+ return lazy(() => retryImport(() => import("./WorkflowGraph-BcuJ0kgt.js").then((m) => ({ default: m.WorkflowGraph }))));
34
34
  }
35
35
  var GraphErrorBoundary = class extends Component {
36
36
  state = { hasError: false };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sandbox-ui",
3
- "version": "0.136.0",
3
+ "version": "0.136.1",
4
4
  "license": "MIT",
5
5
  "description": "Unified UI component library for Tangle Sandbox — primitives, chat, dashboard, terminal, editor, and workspace components",
6
6
  "repository": {