@cardenelabs/cdl 0.54.0 → 0.56.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cardenelabs/cdl",
3
- "version": "0.54.0",
3
+ "version": "0.56.0",
4
4
  "description": "CDL (Chainome Diagram Language). Mermaid-like declarative DSL that compiles to animated SVG diagrams. Built for blockchain / Solidity flows, generic enough for sequence / flow / state / ER / topology diagrams.",
5
5
  "license": "MIT",
6
6
  "author": "cardene777",
@@ -66,6 +66,14 @@ export function UserJourneyNode({
66
66
  frustrated: "😕",
67
67
  angry: "😠",
68
68
  };
69
+ // èĄŒă«æăæ°—æŒăĄăźćć‰ (#841)。 ćž‹ăźć€€ăŻæ›žăæ‰‹ăŒæ›žăć€€ăȘăźă§ć€‰ăˆăšă€æăć­—ă ă‘ă‚’ćŒ•ăæ›żăˆă‚‹
70
+ const emotionLabel: Record<JourneyEmotion, string> = {
71
+ delighted: "性æș€è¶ł",
72
+ happy: "æș€è¶ł",
73
+ neutral: "ご぀う",
74
+ frustrated: "䞍æș€",
75
+ angry: "æ€’ă‚Š",
76
+ };
69
77
 
70
78
  const rowH = canvasH / 5;
71
79
  // step ă‚’ćˆ—ăźäž­ć€źă«çœźăă€‚ 端に毄せるず、 step ăźäž‹ă«çœźă touchpoint chip ăŒæž ă‹ă‚‰ăŻăżć‡șす。
@@ -142,7 +150,7 @@ export function UserJourneyNode({
142
150
  textAnchor="end"
143
151
  fill={emotionColor[e]}
144
152
  >
145
- {e}
153
+ {emotionLabel[e]}
146
154
  </text>
147
155
  </g>
148
156
  ))}
package/src/presets.ts CHANGED
@@ -2369,9 +2369,10 @@ export function flowchart(preset: FlowchartPreset): FlowchartBuilder {
2369
2369
  const edgeId = `fc-${edgeIdx++}-${e.from}-${e.to}`;
2370
2370
  // CAR-549 SSOT ... flowchart た decision condition label (true / false / yes / no) は
2371
2371
  // edge た semantic (ă©ăĄă‚‰ăźćˆ†ćȐか) ă‚’ćŒ·èȘżă™ă‚‹ăŸă‚ path äžŠă«é‡ă­ăŠèĄšç€șする。
2372
+ // æ—„æœŹèȘžă§ćˆ†ćČă‚’æ›žă„ăŸă€ŒăŻă„ă€ă€Œă„ă„ăˆă€ ă‚‚ćŒă˜æ‰±ă„ă«ă™ă‚‹ (#839)。 äž€è‡ŽăŻćźŒć…šäž€è‡Žă«é™ă‚‹ă€‚
2372
2373
  // 他 label (通澾ぼ process é·ç§»ć) は default (34 world 雱す) でèȘ­ăżă‚„すさć„Ș慈。
2373
2374
  const label = e.label ?? "";
2374
- const isConditionLabel = /^(true|false|yes|no)$/i.test(label.trim());
2375
+ const isConditionLabel = /^(true|false|yes|no|はい|いいえ)$/i.test(label.trim());
2375
2376
  b.edge(e.from, e.to, {
2376
2377
  id: edgeId,
2377
2378
  label,