@wisdomgarden/torque-knowledge 1.0.6 → 1.0.7

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/dist/.meta.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "knowledge": "1.0.6",
3
- "torque": "0.2.1",
4
- "generatedAt": "2026-09-22T04:01:33.778Z"
2
+ "knowledge": "1.0.7",
3
+ "torque": "0.2.2",
4
+ "generatedAt": "2026-09-22T06:38:12.733Z"
5
5
  }
Binary file
@@ -6,7 +6,7 @@ keywords: torque, component, ui, mantine, layout, button, icon-button, link-butt
6
6
 
7
7
  # Torque UI 组件库
8
8
 
9
- > 由 `@wisdomgarden/torque-knowledge@1.0.6` 生成,对应 `@wisdomgarden/torque@0.2.1`。
9
+ > 由 `@wisdomgarden/torque-knowledge@1.0.7` 生成,对应 `@wisdomgarden/torque@0.2.2`。
10
10
  > 不要手改 —— 它是 npm 包解包出来的,下次装依赖就被覆盖。
11
11
 
12
12
  ## 导入方式
@@ -162,9 +162,10 @@ Component 里用(函数跨 Server/Client 边界无法序列化)。
162
162
  再放交互元素会触发 a11y 的 `nested-interactive` 违规。
163
163
  - **不要给 `Filter` / `IconFilter` 的 `buttonProps` / `iconButtonProps` 传 `onClick`**,
164
164
  会覆盖内置的弹层开关,导致弹不出来。
165
- - **`Popover` `closeDelay`(仅 `trigger="hover"` 生效)浮层内有可交互内容时不要设为
166
- `0`** —— 默认 `100`ms 是留给鼠标从触发元素滑进浮层的缓冲,设成 0 会导致内容还没点到
167
- 就先关闭了。
165
+ - **`Popover` 的三个静默陷阱**:受控(传了 `opened`)漏传 `onOpenChange`,所有内部触发连同两个
166
+ hover 延迟一起失效(`trigger="none"` 除外,开发环境有 warn);开关按钮在浮层外时要
167
+ `closeOnClickOutside={false}`,否则 `mousedown` 捕获阶段的关闭早于按钮自己的 `click`;子元素上
168
+ 与 `trigger` 同名的 handler 会被 `Popover.Target` 覆盖丢弃,要保留就传给 `<Popover.Target>` 自身。
168
169
 
169
170
  ### 文本与截断
170
171
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wisdomgarden/torque-knowledge",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Machine-readable knowledge artifact for @wisdomgarden/torque — component catalog (SQLite) and AI coding rules (Markdown). Consumed by CI code review and local AI tooling, not by application runtime.",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE",