@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/CHANGELOG.md +25 -1
- package/dist/index.cjs +9 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +8 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +8 -1
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
- package/src/kinds/user-journey.tsx +9 -1
- package/src/presets.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cardenelabs/cdl",
|
|
3
|
-
"version": "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,
|