🚀 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.3
to
0.6.4
+12
-1
CHANGELOG.md
# @hy-bricks/canvas
## [0.6.4] - 2026-06-25 · 运行态布局黄框误报修复
非破坏 patch。@hy-bricks 4 包同步升 0.6.4。本版含两件:① canvas 修运行态布局黄框误报(下述);② `@hy-bricks/editor` 把 `tailwindcss` / `tailwindcss-animate` peerDependencies 改为 optional(见 [editor CHANGELOG](../editor/CHANGELOG.md) §0.6.4)。
### Fixed
- **容器父滚出视口被虚拟化卸载时,slot 子不再误报「布局问题」黄框**:容器(尤其 root 卡片)滚出视口超 `disposeDelayMs` 被 RenderScheduler dispose 卸 `RuntimeBox` → 其 `[data-hc-slot]` outlet 脱离文档 → slot 子 `resolveOutlet` 返 `null` → 过 `rearmLayoutWarnings` 300ms 宽限后掉进黄框分支,把"父被合法虚拟化卸载"误当布局配错报警,且泄漏到运行态终端用户(滚回可视即恢复)。回归边界:0.6.2 给 `resolveOutlet` 加 `isConnected` 守卫后,父卸载瞬间 outlet 才首次真返 `null` 点亮此误报(0.6.1 及更早返 detached-but-truthy 仍命中 Teleport 分支、不报)。修:黄框第二支(瞬态 outlet 缺失)额外要求**父 `RuntimeBox` 当前真挂着**(`scheduler.isMounted(parentId)`)才报 —— 父被视口虚拟化卸载(`pending`/`idle`)时 outlet 属合法缺失、静默;真 contract 问题走 `invalidLayoutInstanceIds` 第一支、不受此门控、照常立即报。命名-slot 子与 free-split leaf 子同覆盖(同一模板条件、同一父实例 id)。
- spec:新增 `slot-child-scroll-out-warning.spec.ts`(2 例:父虚拟化卸载→子静默 / 父挂着但 outlet 真缺失→仍报,防过度静默;确定性轮询写法,无 wall-clock flaky);canvas test → 1724。
### 依赖
- `@hy-bricks/core@0.6.4`(fixed 组同步;core 本版无功能改动)。
## [0.6.3] - 2026-06-24 · persistInstanceState 透传

@@ -25,3 +36,3 @@

> 状态:本条目对应改动已收口、全验证绿,但**尚未 publish npm**(pre-1.0 手动 bump,待 `pnpm release`)。
> 已于 **2026-06-24** 发布 npm(`@hy-bricks/{core,canvas,editor,devtools}@0.6.3`,fixed 组同步,`latest` 已指向 0.6.3)。

@@ -28,0 +39,0 @@ ## [0.6.2] - 2026-06-23 · 隐藏实例保活(修隐藏→恢复丢状态)

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

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

"vue": "^3.5.0",
"@hy-bricks/core": "^0.6.3"
"@hy-bricks/core": "^0.6.4"
},

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

@@ -9,3 +9,3 @@ # @hy-bricks/canvas

> ⚠️ **0.4.0 BREAKING** ── `handle.on('instance:ready')` / `onInstanceLifecycle('instance:ready')` 回调被调时,子组件 DOM 还没渲染。回调内访问 `vm.$el` 会拿 `null`,需改 `nextTick(() => vm.$el...)`。详 [CHANGELOG](./CHANGELOG.md)。
> 📦 **当前发布版 0.6.3** ── 逐版变更(含历史 BREAKING)以 [CHANGELOG](./CHANGELOG.md) 为准。需要留意的 BREAKING:**0.6.0** 随 `@hy-bricks/core` 收口公开面(移除 test-only / 内部导出);**0.4.0** `instance:ready` 提前到 `created` 后,回调内访问 `vm.$el` 需 `nextTick(() => vm.$el...)`。布局自 0.5.0 起支持 `free-split` 自由分割(容器布局共 6 种:`none` / `free` / `flex` / `grid` / `split` / `free-split`)。

@@ -12,0 +12,0 @@ ---

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

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