@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/dist/react.cjs
CHANGED
|
@@ -14452,6 +14452,13 @@ function UserJourneyNode({
|
|
|
14452
14452
|
frustrated: "\u{1F615}",
|
|
14453
14453
|
angry: "\u{1F620}"
|
|
14454
14454
|
};
|
|
14455
|
+
const emotionLabel = {
|
|
14456
|
+
delighted: "\u5927\u6E80\u8DB3",
|
|
14457
|
+
happy: "\u6E80\u8DB3",
|
|
14458
|
+
neutral: "\u3075\u3064\u3046",
|
|
14459
|
+
frustrated: "\u4E0D\u6E80",
|
|
14460
|
+
angry: "\u6012\u308A"
|
|
14461
|
+
};
|
|
14455
14462
|
const rowH = canvasH / 5;
|
|
14456
14463
|
const colW = canvasW / Math.max(steps.length, 1);
|
|
14457
14464
|
const xAt = (idx) => PAD_LEFT2 + (steps.length <= 1 ? canvasW / 2 : colW / 2 + colW * idx);
|
|
@@ -14516,7 +14523,7 @@ function UserJourneyNode({
|
|
|
14516
14523
|
fontWeight: 600,
|
|
14517
14524
|
textAnchor: "end",
|
|
14518
14525
|
fill: emotionColor[e],
|
|
14519
|
-
children: e
|
|
14526
|
+
children: emotionLabel[e]
|
|
14520
14527
|
}
|
|
14521
14528
|
)
|
|
14522
14529
|
] }, `band-${e}`)),
|