@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 +2 -0
- package/package.json +1 -1
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 ?? ""})` : "";
|