@statelyai/flow 0.13.0 → 0.13.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.
package/dist/esm/index.js CHANGED
@@ -7336,6 +7336,8 @@ function createFlowEngine(store, initialOptions = {}) {
7336
7336
  if (node) return `Node: ${node.label ?? node.id}`;
7337
7337
  const edge = graph.edges.find((e) => e.id === entityId);
7338
7338
  if (edge) {
7339
+ const customLabel = edge.data?.ariaLabel;
7340
+ if (typeof customLabel === "string") return customLabel;
7339
7341
  const src = graph.nodes.find((n) => n.id === edge.sourceId);
7340
7342
  const tgt = graph.nodes.find((n) => n.id === edge.targetId);
7341
7343
  const label = edge.label ? ` (${edge.label.data?.text ?? ""})` : "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@statelyai/flow",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "Framework-agnostic flow visualization engine. Builds on @statelyai/graph.",
5
5
  "type": "module",
6
6
  "sideEffects": true,