@hy-bricks/editor 0.6.3 → 0.6.4

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
@@ -1,5 +1,12 @@
1
1
  # @hy-bricks/editor
2
2
 
3
+ ## [0.6.4] - 2026-06-25 · tailwindcss peer 改为可选
4
+
5
+ 非破坏 patch。@hy-bricks 4 包同步升 0.6.4(本版另含 `@hy-bricks/canvas` 运行态布局黄框误报修复,见 [canvas CHANGELOG](../canvas/CHANGELOG.md) §0.6.4)。本包改动如下。
6
+
7
+ ### Changed
8
+ - **`tailwindcss` / `tailwindcss-animate` peerDependencies 改为 `optional`**:editor 已导出预编译 `./style.css`(宿主 `import '@hy-bricks/editor/style.css'` 即有完整 shadcn-vue 样式,**无需自带 Tailwind**)。此前这两个标为必需 peer,导致只引预编译 `style.css`、不跑自己 Tailwind 构建的宿主(如 portal-ui)安装时报 `missing peer tailwindcss` 警告。现改可选:走 `style.css` 路径的宿主不再被警告;走 `tailwind-preset` 自行编译的宿主仍按需安装。其余 shadcn 运行时 peer(`reka-ui` / `class-variance-authority` / `clsx` / `tailwind-merge` / `lucide-vue-next` / `monaco-editor`)仍必需(代码真实 import)。
9
+
3
10
  ## [0.6.3] - 2026-06-24
4
11
 
5
12
  随 @hy-bricks fixed 组同步升 0.6.3;本包**无功能改动**(本次为 `@hy-bricks/core` / `@hy-bricks/canvas` `persistInstanceState` 运行态快照持久化)。
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
  [![monaco](https://img.shields.io/badge/monaco-%5E0.55-007acc)](https://microsoft.github.io/monaco-editor/)
9
9
  [![tailwind](https://img.shields.io/badge/tailwind-%5E3.4-38bdf8)](https://tailwindcss.com/)
10
10
 
11
- > **0.4.0** ── 跟随 `@hy-bricks/core` 0.4.0 升级。组件作者在 Monaco 里写的 `mounted` 中可立即读 `this.hcInstanceId` / `this.hcCanvasId` / `this.hcComponentId`(SDK 注入)。详 [CHANGELOG](./CHANGELOG.md)。
11
+ > 📦 **当前发布版 0.6.3** ── `@hy-bricks/core` 同步(fixed 组同版本号)。逐版变更(含历史 BREAKING) [CHANGELOG](./CHANGELOG.md) 为准;注意 **0.6.0** 跟随 core 收口公开面(移除 test-only / 内部导出)
12
12
 
13
13
  ```
14
14
  ┌─────────────────────────────────────────────────────────────────────┐
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hy-bricks/editor",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "HyperCard 嵌入式编辑器 — Monaco 三栏 + 拖 tab 分栏 + 实时预览 + shadcn-vue 风格 UI",
5
5
  "keywords": [
6
6
  "hypercard",
@@ -43,11 +43,14 @@
43
43
  "tailwindcss": "^3.4.0 || ^4.0.0",
44
44
  "tailwindcss-animate": "^1.0.7",
45
45
  "vue": "^3.5.0",
46
- "@hy-bricks/core": "^0.6.3"
46
+ "@hy-bricks/core": "^0.6.4"
47
47
  },
48
48
  "peerDependenciesMeta": {
49
49
  "tailwindcss": {
50
- "optional": false
50
+ "optional": true
51
+ },
52
+ "tailwindcss-animate": {
53
+ "optional": true
51
54
  }
52
55
  },
53
56
  "devDependencies": {