@picked/svelte 0.0.1-dev.1773804563218 → 0.0.1-dev.1773807602703
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.
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
|
|
17
17
|
const tree = experience.treeStore
|
|
18
18
|
|
|
19
|
-
$: steps = $tree.steps
|
|
20
19
|
$: nodes = $tree.nodes
|
|
21
20
|
$: edges = $tree.edges
|
|
22
21
|
$: conditions = $tree.conditions
|
|
@@ -89,7 +88,6 @@
|
|
|
89
88
|
function renderGraph() {
|
|
90
89
|
d3.select(svgEl).selectAll('*').remove()
|
|
91
90
|
|
|
92
|
-
const stepsMap = new Map(steps.map((s) => [s.id, s]))
|
|
93
91
|
const conditionsMap = new Map(conditions.map((c) => [c.id, c]))
|
|
94
92
|
const outgoingEdges = new Map<string, ExperienceEdge[]>()
|
|
95
93
|
edges.forEach((e) => {
|
|
@@ -99,8 +97,8 @@
|
|
|
99
97
|
|
|
100
98
|
const getNodeLabel = (node: ExperienceNode): string => {
|
|
101
99
|
if (node.type === 'origin') return 'Start'
|
|
102
|
-
if (node.type === 'step'
|
|
103
|
-
return
|
|
100
|
+
if (node.type === 'step')
|
|
101
|
+
return node.name ?? node.stepKey ?? node.stepId ?? 'Unknown Step'
|
|
104
102
|
if (node.type === 'conditional') {
|
|
105
103
|
const conditionId = node.conditionId ?? node.conditionalId
|
|
106
104
|
const conditionItem = conditionId ? conditionsMap.get(conditionId) : undefined
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@picked/svelte",
|
|
3
|
-
"version": "0.0.1-dev.
|
|
3
|
+
"version": "0.0.1-dev.1773807602703",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"d3": "^7.9.0"
|
|
6
6
|
},
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
},
|
|
89
89
|
"module": "./dist/index.js",
|
|
90
90
|
"peerDependencies": {
|
|
91
|
-
"@picked/client": "0.0.1-dev.
|
|
91
|
+
"@picked/client": "0.0.1-dev.1773807602703",
|
|
92
92
|
"effector": "^23.3.0",
|
|
93
93
|
"svelte": "^5.34.3"
|
|
94
94
|
},
|