@worm-vue3-print/common 1.4.0-beta.0 → 1.4.1

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.
Files changed (42) hide show
  1. package/README.md +9 -10
  2. package/dist/browser-bundle.d.ts +1 -1
  3. package/dist/common.js +49 -42
  4. package/dist/core/default-template.d.ts +1 -1
  5. package/dist/core/format.d.ts +1 -1
  6. package/dist/core/h.d.ts +1 -1
  7. package/dist/core/icons.d.ts +1 -1
  8. package/dist/core/store.d.ts +1 -1
  9. package/dist/index.cjs +8 -1
  10. package/dist/index.d.ts +1 -1
  11. package/dist/index.js +390 -383
  12. package/dist/print-designer.d.ts +1 -1
  13. package/dist/shell/binding.d.ts +1 -1
  14. package/dist/shell/canvas.d.ts +1 -1
  15. package/dist/shell/code.d.ts +1 -1
  16. package/dist/shell/color-picker.d.ts +1 -1
  17. package/dist/shell/controls.d.ts +1 -1
  18. package/dist/shell/crop-anchor.d.ts +1 -1
  19. package/dist/shell/elements.d.ts +1 -1
  20. package/dist/shell/expression-editor.d.ts +1 -1
  21. package/dist/shell/flow-list.d.ts +1 -1
  22. package/dist/shell/font-select.d.ts +1 -1
  23. package/dist/shell/format-bar.d.ts +1 -1
  24. package/dist/shell/help-content/changelog.d.ts +1 -1
  25. package/dist/shell/help-content/faq.d.ts +1 -1
  26. package/dist/shell/help-content/features.d.ts +1 -1
  27. package/dist/shell/help-content/getting-started.d.ts +1 -1
  28. package/dist/shell/help-content/index.d.ts +1 -1
  29. package/dist/shell/help-content/shortcuts.d.ts +1 -1
  30. package/dist/shell/help-modal.d.ts +1 -1
  31. package/dist/shell/page-extras.d.ts +1 -1
  32. package/dist/shell/panels.d.ts +1 -1
  33. package/dist/shell/prop-group.d.ts +1 -1
  34. package/dist/shell/property-panel.d.ts +1 -1
  35. package/dist/shell/property-search.d.ts +1 -1
  36. package/dist/shell/ruler.d.ts +1 -1
  37. package/dist/shell/table-props.d.ts +1 -1
  38. package/dist/shell/table.d.ts +1 -1
  39. package/dist/shell/toolbar-overflow.d.ts +1 -1
  40. package/dist/shell/toolbar.d.ts +1 -1
  41. package/dist/shell/watermark.d.ts +1 -1
  42. package/package.json +3 -3
package/README.md CHANGED
@@ -1,9 +1,7 @@
1
1
  # @worm-vue3-print/common
2
2
 
3
- > ⚠️ **实验性质 · 以预览版发布到 npm**:dist-tag 为 `next`,安装必须写 `@worm-vue3-print/common@next`;
4
- > 版本号形如 `1.4.0-beta.N`(与主线同号 + 预发布后缀)。npm 上还没有 `latest`,转正时才发 stable。
5
- > 本包尚未定版,接口与产物形态仍可能调整,**不建议应用到生产环境**;
6
- > Vue 3 项目请使用成熟方案 `@worm-vue3-print/canvas`,本包目前仅供评估与非生产环境的集成验证。
3
+ > ⚠️ **实验性质(按正式版本号发布)**:本包已发布到 npm 的 `latest`(当前 `1.4.1`),但接口与产物形态仍可能调整,
4
+ > **不建议应用到生产环境**;Vue 3 项目请使用成熟方案 `@worm-vue3-print/canvas`,本包面向 Vue 3 / Vue 2 / React / jQuery 等非 Vue3 或跨框架宿主。
7
5
 
8
6
  打印模板可视化设计器的 **通用宿主适配形态**:任意框架、或完全没有框架的宿主都能直接接入,
9
7
  实现为零框架原生 Custom Element + Shadow DOM,**不依赖 Vue / React 等任何框架运行时**,
@@ -18,19 +16,20 @@
18
16
  ## 安装
19
17
 
20
18
  ```bash
21
- npm i @worm-vue3-print/common@next @worm-vue3-print/core
19
+ npm i @worm-vue3-print/common @worm-vue3-print/core
22
20
  ```
23
21
 
24
- `@next` 是预览版的 dist-tag,安装必须带上它。注意 `latest` 目前被 npm 在首次发布时自动打在了同一个预览版上(红灯判据:`npm run publish:common:check`),所以省略 `@next` 不会报错,而是**静默装到实验包**;维护者摘除 `latest` 后省略才会显式失败。
25
- `core` 装正式版即可(本包依赖 `^1.4.0`),出纸链路也要直接用它。
22
+ `common` 与主线同号发布正式版,安装直接取 `latest`(当前 `1.4.1`),不需要 `@next`;`core` 装同版本即可(本包依赖 `^1.4.1`),出纸链路也要直接用它。包虽按正式版本号发布,但仍是**实验性质**,不建议用于生产。
23
+
24
+ 本页包含三种 NPM 宿主的最小接入示例:[Vue 3](#vue-3) · [Vue 2.7](#vue-27) · [React 18](#react-18);无打包器宿主见下文「浏览器直挂」。
26
25
 
27
26
  四种宿主形态各自的依赖与插件(本包零框架运行时,宿主框架按需装):
28
27
 
29
28
  | 宿主 | 安装 | 框架插件 |
30
29
  |---|---|---|
31
- | Vue 3 | `npm i @worm-vue3-print/common@next @worm-vue3-print/core vue` | `@vitejs/plugin-vue`,须配 `isCustomElement` |
32
- | Vue 2.7 | `npm i @worm-vue3-print/common@next @worm-vue3-print/core vue@2.7` | `@vitejs/plugin-vue2` |
33
- | React 18 | `npm i @worm-vue3-print/common@next @worm-vue3-print/core react react-dom` | `@vitejs/plugin-react`,无需自定义元素配置 |
30
+ | Vue 3 | `npm i @worm-vue3-print/common @worm-vue3-print/core vue` | `@vitejs/plugin-vue`,须配 `isCustomElement` |
31
+ | Vue 2.7 | `npm i @worm-vue3-print/common @worm-vue3-print/core vue@2.7` | `@vitejs/plugin-vue2` |
32
+ | React 18 | `npm i @worm-vue3-print/common @worm-vue3-print/core react react-dom` | `@vitejs/plugin-react`,无需自定义元素配置 |
34
33
  | jQuery / 无打包器 | 取本包 `dist/common.js` + `dist/common.css` 直挂 | 无,见下节 |
35
34
 
36
35
  ## 浏览器直挂(jQuery / 无打包器宿主)
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @worm-vue3-print/common v1.4.0-beta.0
2
+ * @worm-vue3-print/common v1.4.1
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT