@cardenelabs/cdl 0.79.0 → 0.80.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,29 @@ CDL (Chainome Diagram Language) の主要変更履歴。
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [0.80.0] - 2026-09-27
9
+
10
+ ### Fixed
11
+
12
+ - **押せる箱を指すと押せる形のカーソルが出るようになった** (#869 / #896)
13
+
14
+ `relations: hover` を書いた図の箱は押せる形になるが、指しても `pointer` の cursor が
15
+ 出なかった。 読み上げには `role="button"` で「押せる」 と伝わる一方、見た目には出ない =
16
+ 読み手は触れて光るだけの箱だと読む。
17
+
18
+ 原因は同じ要素に `style` を 2 回渡していたこと。 React は後の値で前を丸ごと置き換える
19
+ ため、押せる箱に渡した `cursor: pointer` が後ろの `transition` に消されていた。
20
+
21
+ | 項目 | 直す前 | 直した後 |
22
+ |---|---|---|
23
+ | 押せる箱の `style` | `transition` だけ | `transition` と `cursor: pointer` |
24
+ | 押せない箱の `style` | `transition` だけ | 変えない |
25
+
26
+ `style` を 1 箇所でまとめて作り、要素へ 1 回だけ渡す形にした。 条件つきで広げる側には
27
+ 置かない = そこに残すと、後ろに `style` を 1 つ足しただけでまた黙って消える。
28
+
29
+ 押せない箱の cursor は親から継承したままにする (編集画面では掴む形になる)。
30
+
8
31
  ## [0.79.0] - 2026-09-27
9
32
 
10
33
  ### Fixed
@@ -3256,7 +3279,8 @@ Initial OSS release.
3256
3279
  使わない = annotated tag を push しても GitHub Release は作られず、 Release を作っていない版で
3257
3280
  行き止まりになる。
3258
3281
 
3259
- [Unreleased]: https://github.com/cardene777/cdl/compare/v0.79.0...HEAD
3282
+ [Unreleased]: https://github.com/cardene777/cdl/compare/v0.80.0...HEAD
3283
+ [0.80.0]: https://github.com/cardene777/cdl/compare/v0.79.0...v0.80.0
3260
3284
  [0.79.0]: https://github.com/cardene777/cdl/compare/v0.78.0...v0.79.0
3261
3285
  [0.78.0]: https://github.com/cardene777/cdl/compare/v0.77.0...v0.78.0
3262
3286
  [0.77.0]: https://github.com/cardene777/cdl/compare/v0.76.0...v0.77.0
package/dist/index.cjs CHANGED
@@ -32108,6 +32108,10 @@ function CdlNodeView({
32108
32108
  const offsetX = node.renderOffsetX !== void 0 ? resolveNumericAttr(node.renderOffsetX, stateValues, 0) : 0;
32109
32109
  const offsetY = node.renderOffsetY !== void 0 ? resolveNumericAttr(node.renderOffsetY, stateValues, 0) : 0;
32110
32110
  const hasOffset = offsetX !== 0 || offsetY !== 0;
32111
+ const \u7BB1\u306Estyle = {
32112
+ transition: "opacity 120ms ease-out, transform 200ms ease-out",
32113
+ ...\u95A2\u4FC2\u306E\u53D7\u3051\u53E3 === void 0 ? {} : { cursor: "pointer" }
32114
+ };
32111
32115
  return /* @__PURE__ */ jsxRuntime.jsxs(
32112
32116
  "g",
32113
32117
  {
@@ -32129,7 +32133,6 @@ function CdlNodeView({
32129
32133
  role: "button",
32130
32134
  tabIndex: 0,
32131
32135
  "aria-pressed": \u95A2\u4FC2\u306E\u53D7\u3051\u53E3.\u7126\u70B9 === node.id,
32132
- style: { cursor: "pointer" },
32133
32136
  onPointerEnter: () => \u95A2\u4FC2\u306E\u53D7\u3051\u53E3.\u89E6\u308C\u305F(node.id),
32134
32137
  onPointerLeave: () => \u95A2\u4FC2\u306E\u53D7\u3051\u53E3.\u96E2\u308C\u305F(),
32135
32138
  onFocus: () => \u95A2\u4FC2\u306E\u53D7\u3051\u53E3.\u89E6\u308C\u305F(node.id),
@@ -32144,7 +32147,7 @@ function CdlNodeView({
32144
32147
  transform: hasOffset ? `translate(${offsetX}, ${offsetY})` : void 0,
32145
32148
  opacity: boundOpacity,
32146
32149
  "data-cdl-tone": node.tone,
32147
- style: { transition: "opacity 120ms ease-out, transform 200ms ease-out" },
32150
+ style: \u7BB1\u306Estyle,
32148
32151
  children: [
32149
32152
  /* @__PURE__ */ jsxRuntime.jsx(
32150
32153
  "rect",