@leavepulse/ui 0.22.10 → 0.22.11

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.
@@ -23,6 +23,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23
23
  selectable: { type: Boolean, default: false },
24
24
  legend: { type: Boolean, default: true },
25
25
  legendPosition: { default: "bottom-left" },
26
+ edgeType: {},
26
27
  legendLabels: {},
27
28
  lanes: { default: () => [] },
28
29
  minimap: { type: Boolean, default: true },
@@ -105,7 +106,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
105
106
  id: e.id,
106
107
  source: e.source,
107
108
  target: e.target,
108
- type: "default",
109
+ type: props.edgeType ?? "default",
109
110
  animated: obs !== "applied" && !e.dimmed,
110
111
  label: e.kind,
111
112
  labelBgStyle: { fill: "var(--color-surface)" },
@@ -90,6 +90,13 @@ type __VLS_Props = {
90
90
  * minimap owns the bottom-right.
91
91
  */
92
92
  legendPosition?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
93
+ /**
94
+ * Edge shape. The default bezier bulges away from the straight line between
95
+ * its ends, which suits a free-form graph and cuts through everything in a
96
+ * LAYERED one — a long edge crosses the cards standing between its columns.
97
+ * `smoothstep` routes orthogonally through the gaps instead.
98
+ */
99
+ edgeType?: "default" | "smoothstep" | "step" | "straight";
93
100
  /** Rename legend rows to match what this graph's edges actually mean. */
94
101
  legendLabels?: Partial<Record<"network" | "structural" | "pending" | "drift", string>>;
95
102
  /**
@@ -1,4 +1,4 @@
1
- import { _ as _sfc_main } from "../chunks/LpTopologyCanvas-D_EsMgCg.js";
1
+ import { _ as _sfc_main } from "../chunks/LpTopologyCanvas-BTzQE78D.js";
2
2
  export {
3
3
  _sfc_main as default
4
4
  };
package/dist/index.js CHANGED
@@ -64,7 +64,7 @@ import { D, _ as _56, N, T, b, c, d, e, f, g, i, l, h, j, n, r, t, k, m, u, v }
64
64
  import { _ as _57 } from "./chunks/LpTilt-DuyKbpkA.js";
65
65
  import { _ as _58 } from "./chunks/LpToaster-gDB1EaU3.js";
66
66
  import { _ as _59 } from "./chunks/LpTooltip-D1hbjQWG.js";
67
- import { _ as _60 } from "./chunks/LpTopologyCanvas-D_EsMgCg.js";
67
+ import { _ as _60 } from "./chunks/LpTopologyCanvas-BTzQE78D.js";
68
68
  import { _ as _61 } from "./chunks/LpUptimeBar-CB366k0O.js";
69
69
  import { deserializeLayout, serializeLayout } from "./layout/tree.js";
70
70
  import { addLeaf, addTab, countBlocks, countLeaves, makeLayout, moveLeaf, removeBlock, removeLeaf, reorderTab, resizeAt, setActiveTab } from "./layout/tree.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leavepulse/ui",
3
- "version": "0.22.10",
3
+ "version": "0.22.11",
4
4
  "type": "module",
5
5
  "description": "LeavePulse token-driven Vue component kit.",
6
6
  "repository": {
@@ -125,6 +125,13 @@ const props = withDefaults(
125
125
  * minimap owns the bottom-right.
126
126
  */
127
127
  legendPosition?: "top-left" | "top-right" | "bottom-left" | "bottom-right"
128
+ /**
129
+ * Edge shape. The default bezier bulges away from the straight line between
130
+ * its ends, which suits a free-form graph and cuts through everything in a
131
+ * LAYERED one — a long edge crosses the cards standing between its columns.
132
+ * `smoothstep` routes orthogonally through the gaps instead.
133
+ */
134
+ edgeType?: "default" | "smoothstep" | "step" | "straight"
128
135
  /** Rename legend rows to match what this graph's edges actually mean. */
129
136
  legendLabels?: Partial<
130
137
  Record<"network" | "structural" | "pending" | "drift", string>
@@ -268,7 +275,7 @@ const flowEdges = computed(() =>
268
275
  id: e.id,
269
276
  source: e.source,
270
277
  target: e.target,
271
- type: "default",
278
+ type: props.edgeType ?? "default",
272
279
  animated: obs !== "applied" && !e.dimmed,
273
280
  label: e.kind,
274
281
  labelBgStyle: { fill: "var(--color-surface)" },