@file-viewer/renderer-word 2.1.10 → 2.1.12

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.en.md CHANGED
@@ -32,7 +32,7 @@ Use `@file-viewer/preset-all` when you want the same complete matrix as the offi
32
32
  ## Capabilities
33
33
 
34
34
  - DOCX / DOCM / DOTX / DOTM use the self-maintained `@file-viewer/docx` engine with Worker parsing, continuous reading layout, cached TOC fields, and async batched rendering.
35
- - DOC / DOT use `msdoc-viewer` with a Word-like paper surface, zoom, print, and HTML export adapters.
35
+ - DOC / DOT use `@file-viewer/doc` with a Word-like paper surface, zoom, print, and HTML export adapters.
36
36
  - RTF uses `rtf.js`; ODT / ODP read `content.xml` from OpenDocument packages for safe structure previews.
37
37
  - The renderer reuses core search, zoom, print, export, lifecycle, and operation APIs.
38
38
 
@@ -56,4 +56,4 @@ const options = {
56
56
 
57
57
  ## Migration
58
58
 
59
- `@file-viewer/core` no longer depends on `@file-viewer/docx`, `msdoc-viewer`, `rtf.js`, `linkedom`, or `@xmldom/xmldom` directly. Install and pass this renderer for full Word preview, or use `@file-viewer/preset-all`.
59
+ `@file-viewer/core` no longer depends on `@file-viewer/docx`, `@file-viewer/doc`, `rtf.js`, `linkedom`, or `@xmldom/xmldom` directly. Install and pass this renderer for full Word preview, or use `@file-viewer/preset-all`.
package/README.md CHANGED
@@ -32,7 +32,7 @@ const options = {
32
32
  ## 能力边界
33
33
 
34
34
  - DOCX / DOCM / DOTX / DOTM 使用自研 `@file-viewer/docx`,默认 Worker 解析、连续流式阅读、目录字段缓存和异步分批渲染。
35
- - DOC / DOT 使用 `msdoc-viewer`,并套用 Word 风格纸张阅读面、缩放、打印和 HTML 导出适配。
35
+ - DOC / DOT 使用 `@file-viewer/doc`,并套用 Word 风格纸张阅读面、缩放、打印和 HTML 导出适配。
36
36
  - RTF 使用 `rtf.js`,ODT / ODP 读取 OpenDocument 包内 `content.xml` 做安全结构预览。
37
37
  - 继续复用 core 的统一搜索、缩放、打印、导出、生命周期和操作能力。
38
38
 
@@ -56,4 +56,4 @@ const options = {
56
56
 
57
57
  ## 迁移说明
58
58
 
59
- `@file-viewer/core` 已不再直接依赖 `@file-viewer/docx`、`msdoc-viewer`、`rtf.js`、`linkedom` 或 `@xmldom/xmldom`。需要 Word 完整预览时,请安装本包并通过 `renderers` 传入,或使用 `@file-viewer/preset-all`。
59
+ `@file-viewer/core` 已不再直接依赖 `@file-viewer/docx`、`@file-viewer/doc`、`rtf.js`、`linkedom` 或 `@xmldom/xmldom`。需要 Word 完整预览时,请安装本包并通过 `renderers` 传入,或使用 `@file-viewer/preset-all`。
package/dist/wordDoc.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defaultMsDocCss, parseMsDocToHtml } from 'msdoc-viewer';
1
+ import { defaultMsDocCss, parseMsDocToHtml } from '@file-viewer/doc';
2
2
  import { applyPrintPageSize, buildPrintPageStyle, createFileViewerZoomChangeEmitter as createZoomChangeEmitter, formatCssPixels, registerFileViewerZoomProvider, unregisterFileViewerZoomProvider, } from '@file-viewer/core';
3
3
  const PAGE_BREAK_MARKER = '<span class="msdoc-page-break"></span>';
4
4
  const EMPTY_PAGE_HTML = '<p class="msdoc-paragraph"><br></p>';
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@file-viewer/renderer-word",
3
- "version": "2.1.10",
3
+ "version": "2.1.12",
4
4
  "private": false,
5
5
  "type": "module",
6
- "description": "Standalone Word and compatible document renderer plugin for Flyfish File Viewer powered by @file-viewer/docx, msdoc-viewer, and RTF/ODF parsing.",
6
+ "description": "Standalone Word and compatible document renderer plugin for Flyfish File Viewer powered by @file-viewer/docx, @file-viewer/doc, and RTF/ODF parsing.",
7
7
  "keywords": [
8
8
  "file-viewer",
9
9
  "renderer",
@@ -57,10 +57,10 @@
57
57
  "LICENSE"
58
58
  ],
59
59
  "dependencies": {
60
- "@file-viewer/core": "^2.1.10",
60
+ "@file-viewer/core": "^2.1.12",
61
+ "@file-viewer/doc": "^2.1.12",
61
62
  "@file-viewer/docx": "^0.3.15",
62
63
  "jszip": "^3.10.1",
63
- "msdoc-viewer": "^0.2.0",
64
64
  "rtf.js": "^3.0.9"
65
65
  },
66
66
  "devDependencies": {