@wisdomgarden/torque-knowledge 1.0.5 → 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 +3 -3
- package/dist/components.db +0 -0
- package/dist/torque-components.md +5 -1
- package/package.json +1 -1
package/dist/.meta.json
CHANGED
package/dist/components.db
CHANGED
|
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.
|
|
9
|
+
> 由 `@wisdomgarden/torque-knowledge@1.0.7` 生成,对应 `@wisdomgarden/torque@0.2.2`。
|
|
10
10
|
> 不要手改 —— 它是 npm 包解包出来的,下次装依赖就被覆盖。
|
|
11
11
|
|
|
12
12
|
## 导入方式
|
|
@@ -162,6 +162,10 @@ Component 里用(函数跨 Server/Client 边界无法序列化)。
|
|
|
162
162
|
再放交互元素会触发 a11y 的 `nested-interactive` 违规。
|
|
163
163
|
- **不要给 `Filter` / `IconFilter` 的 `buttonProps` / `iconButtonProps` 传 `onClick`**,
|
|
164
164
|
会覆盖内置的弹层开关,导致弹不出来。
|
|
165
|
+
- **`Popover` 的三个静默陷阱**:受控(传了 `opened`)漏传 `onOpenChange`,所有内部触发连同两个
|
|
166
|
+
hover 延迟一起失效(`trigger="none"` 除外,开发环境有 warn);开关按钮在浮层外时要
|
|
167
|
+
`closeOnClickOutside={false}`,否则 `mousedown` 捕获阶段的关闭早于按钮自己的 `click`;子元素上
|
|
168
|
+
与 `trigger` 同名的 handler 会被 `Popover.Target` 覆盖丢弃,要保留就传给 `<Popover.Target>` 自身。
|
|
165
169
|
|
|
166
170
|
### 文本与截断
|
|
167
171
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wisdomgarden/torque-knowledge",
|
|
3
|
-
"version": "1.0.
|
|
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",
|