@cardenelabs/cdl 0.57.1 → 0.59.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 +46 -1
- package/dist/index.cjs +600 -247
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +601 -249
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +597 -247
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +598 -248
- package/dist/react.js.map +1 -1
- package/dist/{render-Cp41meYv.d.cts → render-DpwY2hzM.d.cts} +39 -1
- package/dist/{render-Cp41meYv.d.ts → render-DpwY2hzM.d.ts} +39 -1
- package/package.json +1 -1
- package/src/builder.ts +7 -0
- package/src/index.ts +6 -0
- package/src/kinds/shape-blockchain.tsx +40 -22
- package/src/kinds/shape-commerce.tsx +24 -12
- package/src/kinds/shape-finance.tsx +25 -17
- package/src/kinds/shape-software.tsx +30 -11
- package/src/lang.ts +392 -0
- package/src/layout.ts +4 -0
- package/src/render/interactive-panel.tsx +183 -111
- package/src/render/nodes.tsx +18 -14
- package/src/render/stage.tsx +2 -0
- package/src/types.ts +15 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,49 @@ CDL (Chainome Diagram Language) の主要変更履歴。
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [0.59.0] - 2026-09-13
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **図に言語 (`lang`) を指定すると、操作部の読み出しと再生欄の固定の字もその言語で描くようにした** (#849)
|
|
13
|
+
|
|
14
|
+
0.58.0 で形の絵の中の字は訳したが、操作部 (読み出しと入力欄) は描画側が書いた英語のままだった。
|
|
15
|
+
値の無い読み出しの `empty`、かんばんの列の見出しの `Todo` / `In Progress` / `Done`、ファイル置き場の
|
|
16
|
+
`⬆ Drop file here`、再生欄の `1x` と `0.0s / 2.0s`、暦の濃淡図のマスに重ねた見出しの `day 3: 3` など、
|
|
17
|
+
日本語の図に置くとそこだけ英語が残っていた。
|
|
18
|
+
|
|
19
|
+
図に `lang: "ja"` を書くと、これらの字を日本語の辞書から引いて描く (`empty` → `なし`、`Todo` → `未着手`、
|
|
20
|
+
`1x` → `1倍`、`day 3: 3` → `3 日目: 3`)。 書かない図と、型の外の値 (`"fr"` など) を渡した図は、変更前と
|
|
21
|
+
同じ英語の字で描く。
|
|
22
|
+
|
|
23
|
+
値を綴りで読む読み出しは、読み方を変えていない。 優先度の札は `high` / `2` / `low` / `0` を、かんばんは
|
|
24
|
+
列の名前 `todo` / `inprogress` / `done` を、信頼度の帯は `low` / `mid` / `high` を今までどおり英語の綴りで
|
|
25
|
+
読み、表示の字だけを訳す。 目印 (`data-cdl-priority` / `data-cdl-kanban-column` / `data-cdl-band` など) も
|
|
26
|
+
英語の綴りのまま出すので、言語を変えても目印で要素を探す処理は変わらない。
|
|
27
|
+
|
|
28
|
+
書き手が渡した値 (読み出しの `label`、状態の中の名前や文) は辞書を通らない。
|
|
29
|
+
|
|
30
|
+
## [0.58.0] - 2026-09-13
|
|
31
|
+
|
|
32
|
+
### Added
|
|
33
|
+
|
|
34
|
+
- **図に言語 (`lang`) を指定すると、形の絵の中の固定の字をその言語で描くようにした** (#847)
|
|
35
|
+
|
|
36
|
+
形の部品 14 種は、書き手が何を渡しても同じ字を描いていた (看板の `PAY` / `WAREHOUSE`、見本の値の
|
|
37
|
+
`→ 12 chunks in 1.8s` / `CAR-1111`、ブロックの行の名前の `hash` / `prev` など)。 日本語の図に置くと、
|
|
38
|
+
そこだけ英語が残っていた。
|
|
39
|
+
|
|
40
|
+
図に `lang: "ja"` を書くと、これらの字を日本語の辞書から引いて描く (`PAY` → `決済`、`hash` → `ハッシュ`)。
|
|
41
|
+
書かない図と、型の外の値 (`"fr"` など) を渡した図は、変更前と同じ英語の字で描く。 書き手の字
|
|
42
|
+
(`title` / `subtitle`) は辞書を通らない。
|
|
43
|
+
|
|
44
|
+
製品名と定着した略語 (`API` / `ATM` / `RPC`) は英字のまま残す。 API の入口の要求の種類は、日本語では
|
|
45
|
+
綴りを略さず `DELETE` と書き、箱に入る大きさまで字を縮める。 端末とかんばんの札は、和文を等幅の 2 桁と
|
|
46
|
+
数えて幅を見積もる。
|
|
47
|
+
|
|
48
|
+
ブロックの行の目印 (`data-cdl-role="blockchain-block-hash"` など) と、副題を差し込む行の判定は、訳した
|
|
49
|
+
名前ではなく英語の鍵で行う。 言語を変えても目印は変わらない。
|
|
50
|
+
|
|
8
51
|
## [0.57.1] - 2026-09-13
|
|
9
52
|
|
|
10
53
|
### Fixed
|
|
@@ -2539,7 +2582,9 @@ Initial OSS release.
|
|
|
2539
2582
|
使わない = annotated tag を push しても GitHub Release は作られず、 Release を作っていない版で
|
|
2540
2583
|
行き止まりになる。
|
|
2541
2584
|
|
|
2542
|
-
[Unreleased]: https://github.com/cardene777/cdl/compare/v0.
|
|
2585
|
+
[Unreleased]: https://github.com/cardene777/cdl/compare/v0.59.0...HEAD
|
|
2586
|
+
[0.59.0]: https://github.com/cardene777/cdl/compare/v0.58.0...v0.59.0
|
|
2587
|
+
[0.58.0]: https://github.com/cardene777/cdl/compare/v0.57.1...v0.58.0
|
|
2543
2588
|
[0.57.1]: https://github.com/cardene777/cdl/compare/v0.57.0...v0.57.1
|
|
2544
2589
|
[0.57.0]: https://github.com/cardene777/cdl/compare/v0.56.0...v0.57.0
|
|
2545
2590
|
[0.56.0]: https://github.com/cardene777/cdl/compare/v0.55.0...v0.56.0
|