@beehexa/vueflow-tokens 2611.8.1 → 2611.17.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/README.md CHANGED
@@ -79,6 +79,32 @@ tone dash and adds the Lucide `CircleX` mark in `color.icon.danger`
79
79
  Pass the localized group name as `familyLabel` for `{family} jump to {target}` names,
80
80
  and localize the whole name/numbering through the viewer's `texts.jumps` (`WorkflowJumpTexts`).
81
81
 
82
+ Run evidence is separate from tone and failure routes. `WorkflowEdge.execution`
83
+ (`reached` | `unfinished` | `failed` | `notTaken`) reads `--wf-edge-execution-<value>`:
84
+
85
+ - `reached` binds `color.text`, deliberately not `diagram.log-reached`: that role and the
86
+ edge highlight (`--wf-edge-active`, `diagram.selection-ring`) are the same blue, so a
87
+ resting walked edge would read as selected. Its non-colour cue is the bold
88
+ `--wf-edge-execution-width` (`border.width.focused`), like Mermaid's neutral walked edge.
89
+ - `unfinished` binds `diagram.log-unfinished` and is dashed `4 3`.
90
+ - `failed` binds `diagram.fail-stroke` and draws the circle-x failure mark.
91
+ - `notTaken` (a declined route) binds `diagram.nottaken-stroke` at the ordinary edge width,
92
+ dashed `6 3` (the not-taken outline dash).
93
+
94
+ `reached` / `unfinished` / `failed` rest at `--wf-edge-execution-width`, which must be a CSS
95
+ length (the highlight adds to it). Execution ink wins over tone ink; the `unfinished` /
96
+ `notTaken` dash wins over tone and failure dashes, and an authored `variant: 'failure'` whose
97
+ dash is displaced keeps its circle-x mark. In high contrast `reached` shares the edge ink
98
+ (`color.text`) and is told apart by width.
99
+
100
+ Node `execution.state` `reached` / `unfinished` are log-derived readings without a typed
101
+ outcome: outline and marker ink (`--wf-node-state-ink`) use `diagram.log-reached` /
102
+ `diagram.log-unfinished` (nodes keep an independent selection ring). `unfinished` leaves the
103
+ node's fill and text untouched (including high-contrast overrides) and dashes both the
104
+ outline and the subroutine edge `4 3`. `--wf-node-execution-outline-width` binds
105
+ `border.width.focused` for `ranOk`, `ranFailed`, `reached` and `unfinished`, matching
106
+ Mermaid; `neverReached` / `branchNotTaken` keep the native default.
107
+
82
108
  `NodeLook.sizing: 'content'` opts ordinary native cards into intrinsic width:
83
109
  minimum `diagram.card.width`, maximum twice that source role. The native theme owns
84
110
  only that width rule; this companion owns the roles
package/dist/styles.css CHANGED
@@ -215,6 +215,17 @@
215
215
  --wf-edge-tone-red-dash: 2 4;
216
216
  --wf-edge-tone-green: var(--bh-flow-category-transformation-border);
217
217
  --wf-edge-tone-green-dash: 9 3 2 3;
218
+ /* Run evidence for `WorkflowEdge.execution`, distinct from the authored failure route (`variant`) and the
219
+ relation tone. `reached` uses strong neutral ink (`color.text`), not `diagram.log-reached`: that role and
220
+ the edge highlight (`--wf-edge-active` = `diagram.selection-ring`) are both blue, so a resting walked edge
221
+ would read as selected. Neutral ink at the bold execution width follows Mermaid's typed walked edge.
222
+ `unfinished` is dashed `4 3` and `notTaken` (a declined route) is dashed `6 3` (the not-taken outline
223
+ dash) by the native defaults; `failed` adds the circle-x mark. The width must stay a CSS length. */
224
+ --wf-edge-execution-reached: var(--bh-color-text);
225
+ --wf-edge-execution-unfinished: var(--bh-diagram-log-unfinished);
226
+ --wf-edge-execution-failed: var(--bh-diagram-fail-stroke);
227
+ --wf-edge-execution-notTaken: var(--bh-diagram-nottaken-stroke);
228
+ --wf-edge-execution-width: var(--bh-border-width-focused);
218
229
  --wf-label-bg: var(--bh-diagram-edge-label-bg);
219
230
  --wf-label-fg: var(--bh-diagram-edge-label-text);
220
231
  --wf-label-border: var(--bh-color-border);
@@ -278,6 +289,12 @@
278
289
  .bh-workflow-canvas .wf-node {
279
290
  --wf-node-selected-border: var(--wf-node-border);
280
291
  }
292
+ /* Mermaid draws ranOk/ranFailed/log-reached/log-unfinished outlines at `border.width.focused`;
293
+ neverReached/branchNotTaken keep the native default outline width. */
294
+ .bh-workflow-canvas .wf-node:is([data-execution-state='ranOk'], [data-execution-state='ranFailed'],
295
+ [data-execution-state='reached'], [data-execution-state='unfinished']) {
296
+ --wf-node-execution-outline-width: var(--bh-border-width-focused);
297
+ }
281
298
  .bh-workflow-canvas .wf-node[data-execution-state='ranOk'] {
282
299
  --wf-node-border: var(--bh-diagram-state-ran-ok);
283
300
  --wf-node-bg: var(--bh-diagram-ran-ok-fill);
@@ -304,6 +321,22 @@
304
321
  .bh-workflow-canvas .wf-node[data-execution-state='branchNotTaken'] .wf-node__outline {
305
322
  stroke-dasharray: 6 3;
306
323
  }
324
+ /* Log-derived readings without a typed run outcome (Mermaid `bh-log-reached` / `bh-log-unfinished`):
325
+ accent outline and marker ink only, never a typed ran fill. Unfinished keeps the node's own fill/text
326
+ (including high-contrast overrides) and a dashed `4 3` outline on both the outline and the subroutine
327
+ edge: started, no recorded end, not a proven failure. Both inks are theme-resolved text roles. Node
328
+ `reached` keeps `diagram.log-reached`: nodes have an independent selection ring. */
329
+ .bh-workflow-canvas .wf-node[data-execution-state='reached'] {
330
+ --wf-node-border: var(--bh-diagram-log-reached);
331
+ --wf-node-state-ink: var(--bh-diagram-log-reached);
332
+ }
333
+ .bh-workflow-canvas .wf-node[data-execution-state='unfinished'] {
334
+ --wf-node-border: var(--bh-diagram-log-unfinished);
335
+ --wf-node-state-ink: var(--bh-diagram-log-unfinished);
336
+ }
337
+ .bh-workflow-canvas .wf-node[data-execution-state='unfinished'] :is(.wf-node__outline, .wf-node__edge) {
338
+ stroke-dasharray: 4 3;
339
+ }
307
340
  .bh-workflow-canvas .wf-node__execution { color: var(--wf-node-state-ink, var(--wf-node-fg)); }
308
341
  .bh-workflow-canvas .wf-node__body { align-items: flex-start; }
309
342
  .bh-workflow-canvas .wf-node__badge {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beehexa/vueflow-tokens",
3
- "version": "2611.8.1",
3
+ "version": "2611.17.1",
4
4
  "description": "Source-backed Beehexa theme and generic colour tones for VueFlow 1",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,7 +29,7 @@
29
29
  "./package.json": "./package.json"
30
30
  },
31
31
  "dependencies": {
32
- "@beehexa/design-tokens": "2611.8.1"
32
+ "@beehexa/design-tokens": "2611.17.1"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@vue-flow/core": "^1.0.0",