@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 CHANGED
@@ -5,6 +5,28 @@ 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
+
19
+ ## [0.55.0] - 2026-09-11
20
+
21
+ ### Changed
22
+
23
+ - **流れ図の分岐の札「はい」「いいえ」 を、線の上に重ねて描くようにした** (#839)
24
+
25
+ `flowchart` の組み立ては、判断の箱から出る矢印の札が `true` `false` `yes` `no` の時だけ、
26
+ どちらの枝かを線そのものに読ませるため札を線の上に重ねる。 日本語で分岐を書いた `はい` `いいえ` は
27
+ この扱いから外れ、普通の札として線から離れて描かれていた。 この 2 語も同じく重ねる。
28
+ 一致は完全一致に限り、 `はいはい` や `いいえの時` のように語を含むだけの札は今までどおり線から離す。
29
+
8
30
  ## [0.54.0] - 2026-09-11
9
31
 
10
32
  ### Changed
@@ -2487,7 +2509,9 @@ Initial OSS release.
2487
2509
  使わない = annotated tag を push しても GitHub Release は作られず、 Release を作っていない版で
2488
2510
  行き止まりになる。
2489
2511
 
2490
- [Unreleased]: https://github.com/cardene777/cdl/compare/v0.54.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
2514
+ [0.55.0]: https://github.com/cardene777/cdl/compare/v0.54.0...v0.55.0
2491
2515
  [0.54.0]: https://github.com/cardene777/cdl/compare/v0.53.0...v0.54.0
2492
2516
  [0.53.0]: https://github.com/cardene777/cdl/compare/v0.52.0...v0.53.0
2493
2517
  [0.52.0]: https://github.com/cardene777/cdl/compare/v0.51.0...v0.52.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}`)),
@@ -33032,7 +33039,7 @@ function flowchart(preset) {
33032
33039
  edge(e) {
33033
33040
  const edgeId = `fc-${edgeIdx++}-${e.from}-${e.to}`;
33034
33041
  const label = e.label ?? "";
33035
- const isConditionLabel = /^(true|false|yes|no)$/i.test(label.trim());
33042
+ const isConditionLabel = /^(true|false|yes|no|はい|いいえ)$/i.test(label.trim());
33036
33043
  b.edge(e.from, e.to, {
33037
33044
  id: edgeId,
33038
33045
  label,