@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/CHANGELOG.md CHANGED
@@ -5,6 +5,17 @@ CDL (Chainome Diagram Language) の主要変更履歴。
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [0.56.0] - 2026-09-11
9
+
10
+ ### Changed
11
+
12
+ - **ユーザージャーニーの気持ちの行の名前を、日本語で描くようにした** (#841)
13
+
14
+ 気持ちの曲線の左に並ぶ 5 段の行は、型の値 (`delighted` `happy` `neutral` `frustrated` `angry`) を
15
+ そのまま描いていた。 書き手の入力ではなく描く側が足す字なので、日本語の図でも英語の 5 語が並んでいた。
16
+ 行の字を 大満足 / 満足 / ふつう / 不満 / 怒り に引き替える。 型の値は書き手が記法と組み立て API に書く値なので
17
+ 変えていない。 絵文字と行の色も変えていない。
18
+
8
19
  ## [0.55.0] - 2026-09-11
9
20
 
10
21
  ### Changed
@@ -2498,7 +2509,8 @@ Initial OSS release.
2498
2509
  使わない = annotated tag を push しても GitHub Release は作られず、 Release を作っていない版で
2499
2510
  行き止まりになる。
2500
2511
 
2501
- [Unreleased]: https://github.com/cardene777/cdl/compare/v0.55.0...HEAD
2512
+ [Unreleased]: https://github.com/cardene777/cdl/compare/v0.56.0...HEAD
2513
+ [0.56.0]: https://github.com/cardene777/cdl/compare/v0.55.0...v0.56.0
2502
2514
  [0.55.0]: https://github.com/cardene777/cdl/compare/v0.54.0...v0.55.0
2503
2515
  [0.54.0]: https://github.com/cardene777/cdl/compare/v0.53.0...v0.54.0
2504
2516
  [0.53.0]: https://github.com/cardene777/cdl/compare/v0.52.0...v0.53.0
package/dist/index.cjs CHANGED
@@ -26976,6 +26976,13 @@ function UserJourneyNode({
26976
26976
  frustrated: "\u{1F615}",
26977
26977
  angry: "\u{1F620}"
26978
26978
  };
26979
+ const emotionLabel = {
26980
+ delighted: "\u5927\u6E80\u8DB3",
26981
+ happy: "\u6E80\u8DB3",
26982
+ neutral: "\u3075\u3064\u3046",
26983
+ frustrated: "\u4E0D\u6E80",
26984
+ angry: "\u6012\u308A"
26985
+ };
26979
26986
  const rowH = canvasH / 5;
26980
26987
  const colW = canvasW / Math.max(steps.length, 1);
26981
26988
  const xAt = (idx) => PAD_LEFT2 + (steps.length <= 1 ? canvasW / 2 : colW / 2 + colW * idx);
@@ -27040,7 +27047,7 @@ function UserJourneyNode({
27040
27047
  fontWeight: 600,
27041
27048
  textAnchor: "end",
27042
27049
  fill: emotionColor[e],
27043
- children: e
27050
+ children: emotionLabel[e]
27044
27051
  }
27045
27052
  )
27046
27053
  ] }, `band-${e}`)),