🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@hy-bricks/canvas

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hy-bricks/canvas - npm Package Compare versions

Comparing version
0.6.0
to
0.6.1
+16
-0
CHANGELOG.md
# @hy-bricks/canvas
## [0.6.1] - 2026-06-16 · free-split 编辑控件可见性
free-split 容器编辑控件(分隔条 + 叶 affordance)的显示时机修复 + 常驻开关。非破坏,@hy-bricks 4 包同步升 0.6.1。
### Fixed
- **选中容器内子组件时,父容器控件不再消失**:`InteractionLayer` 的 divider / leaf overlay 可见集从"仅选中容器自身"改为 ancestor-aware —— 选中实例自身是 free-split 容器、或其**最近 free-split 祖先**、或正在内容拖拽的容器,都渲控件。修"选容器看到分隔条 → 再点容器内子组件调参 → 分隔条秒消失、没法拖"。
### Added
- **`freeSplitControlsAlways`**(`createCanvasContext` option / `<HyperCardCanvasDesigner>` prop,`boolean | (() => boolean)`,默认 `false`):
- `false`(默认,向后兼容)→ 控件按选区显示(上面的 ancestor-aware 口径);
- `true` → 编辑态下**所有** free-split 容器的控件常驻显示,不用选 / 不用悬停。
- getter 形式 → 跟 prop / ref 实时联动(开关即时翻转,无需重挂)。给不给用户开关是**宿主策略**(SDK 只出可反应的 prop;参考实现见 portal toolbar「常驻控件」开关)。
- spec `freeSplit-p3b-interaction-layer.spec.ts` 新增 ancestor-aware + 常驻开关用例(canvas test → 1713)。
> 已知小尾(留作后续增强):常驻模式下满内容叶的角落工具条仍 `:hover` 才显(分隔条已常显),详见 `docs/feedback/portal-ui/`。
## [0.6.0] - 2026-06-15 · 公开面收口 + 坑点修复 + 性能 + 级联删除

@@ -4,0 +20,0 @@

+2
-2
{
"name": "@hy-bricks/canvas",
"version": "0.6.0",
"version": "0.6.1",
"description": "HyperCard 画布 — 多组件实例编排 / 自由布局 / 拖拽 / 连线 / 属性面板。受控组件,SDK 边界守住:不 fetch / 不知后端 / 不开 Drawer。",

@@ -37,3 +37,3 @@ "keywords": [

"vue": "^3.5.0",
"@hy-bricks/core": "^0.6.0"
"@hy-bricks/core": "^0.6.1"
},

@@ -40,0 +40,0 @@ "devDependencies": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display