@cardenelabs/cdl 0.55.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.55.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
  ))}