@univer-cli/univer-render-page 1.0.0-beta.2 → 1.0.0
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/README.md +5 -3
- package/README.zh-CN.md +8 -5
- package/dist/index.mjs +1 -1
- package/package.json +106 -101
package/README.md
CHANGED
|
@@ -4,7 +4,9 @@ English | [简体中文](./README.zh-CN.md)
|
|
|
4
4
|
|
|
5
5
|
Helps the application build a browser Render Page for `@univer-cli/univer-render-runtime` to load.
|
|
6
6
|
|
|
7
|
-
The package creates Univer inside the page, implements render operations, mounts the page protocol, and provides a ready-to-use Univer / Univer Pro composition. It does not start the browser itself.
|
|
7
|
+
The package creates Univer inside the page, implements render and print operations, mounts the page protocol, and provides a ready-to-use Univer / Univer Pro composition. It does not start the browser itself.
|
|
8
|
+
|
|
9
|
+
PDF preparation invokes the native print operation registered for the loaded Unit. The Render Page does not maintain a separate Unit-specific PDF renderer, so browser printing remains the source of truth for print layout and output behavior.
|
|
8
10
|
|
|
9
11
|
## Installation
|
|
10
12
|
|
|
@@ -56,7 +58,7 @@ await mountUniverRenderPage({
|
|
|
56
58
|
});
|
|
57
59
|
```
|
|
58
60
|
|
|
59
|
-
The factory must register the content, rendering, UI, and
|
|
61
|
+
The factory must register the content, rendering, UI, Facade, and print extensions required by the target Unit. The mount function handles only shared operations, Unit lifecycle, and the page protocol; it does not add missing plugins.
|
|
60
62
|
|
|
61
63
|
## License bootstrap
|
|
62
64
|
|
|
@@ -66,5 +68,5 @@ The preset includes Pro plugins. The Node runtime can inject a license through r
|
|
|
66
68
|
|
|
67
69
|
The Render Page processes incoming UnitData. Do not render untrusted content in a high-privilege browser environment with access to sensitive files or networks. The application should restrict the browser process's system permissions and network access.
|
|
68
70
|
|
|
69
|
-
The package does not install or launch a browser, host static directories, or provide
|
|
71
|
+
The package does not install or launch a browser, host static directories, or provide Node.js screenshot/PDF APIs. Those responsibilities belong to
|
|
70
72
|
[`@univer-cli/univer-render-runtime`](../univer-render-runtime/README.md).
|
package/README.zh-CN.md
CHANGED
|
@@ -4,8 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
帮助 application 构建一个供 `@univer-cli/univer-render-runtime` 加载的 browser Render Page。
|
|
6
6
|
|
|
7
|
-
Package 在页面内创建 Univer、实现 render operations、挂载 page protocol
|
|
8
|
-
Univer Pro composition。它本身不启动 browser。
|
|
7
|
+
Package 在页面内创建 Univer、实现 render 与 print operations、挂载 page protocol,并提供一套可直接使用的
|
|
8
|
+
完整 Univer / Univer Pro composition。它本身不启动 browser。
|
|
9
|
+
|
|
10
|
+
PDF 准备过程调用已为当前 Unit 注册的原生 print operation。Render Page 不维护另一套按 Unit 区分的 PDF
|
|
11
|
+
renderer,因此打印布局与输出行为以 browser print 为唯一事实来源。
|
|
9
12
|
|
|
10
13
|
## 安装
|
|
11
14
|
|
|
@@ -57,8 +60,8 @@ await mountUniverRenderPage({
|
|
|
57
60
|
});
|
|
58
61
|
```
|
|
59
62
|
|
|
60
|
-
Factory 必须注册目标 Unit 所需的 content、render、UI 与
|
|
61
|
-
Unit lifecycle 和 page protocol,不补齐缺失 plugin。
|
|
63
|
+
Factory 必须注册目标 Unit 所需的 content、render、UI、Facade 与 print extensions。Mount function 只负责共享
|
|
64
|
+
operation、Unit lifecycle 和 page protocol,不补齐缺失 plugin。
|
|
62
65
|
|
|
63
66
|
## License bootstrap
|
|
64
67
|
|
|
@@ -70,5 +73,5 @@ license 写进静态 bundle。未提供有效 license 时仍可渲染,但输
|
|
|
70
73
|
Render Page 会处理传入的 UnitData。不要在可访问敏感文件或网络的高权限 browser 环境中渲染不可信内容。
|
|
71
74
|
Application 应限制 browser process 的系统权限与网络范围。
|
|
72
75
|
|
|
73
|
-
Package 不安装或启动 browser,不托管静态目录,也不提供 Node screenshot API。这些职责属于
|
|
76
|
+
Package 不安装或启动 browser,不托管静态目录,也不提供 Node screenshot/PDF API。这些职责属于
|
|
74
77
|
[`@univer-cli/univer-render-runtime`](../univer-render-runtime/README.zh-CN.md)。
|