@flyfish-group/file-viewer-react 1.0.12 → 1.0.13

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 (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  React 文件预览组件。只提供私有化部署路线: 依赖的 `@flyfish-group/file-viewer-web` 会随包携带 Vue 基线 viewer 产物;使用 `npm install` 或已允许 pnpm 安装脚本后,会复制到宿主项目 `public/file-viewer`。React 组件默认加载 `/file-viewer/index.html`,不依赖任何外部服务。
4
4
 
5
5
  ```bash
6
- npm install @flyfish-group/file-viewer-react@1.0.12
6
+ npm install @flyfish-group/file-viewer-react@1.0.13
7
7
  ```
8
8
 
9
9
  pnpm 10 默认会拦截依赖包的 `postinstall`。如果安装后提示 `Ignored build scripts: @flyfish-group/file-viewer-web`,请执行 `pnpm approve-builds` 允许该包,或运行 `pnpm exec file-viewer-copy-assets ./public/file-viewer`。
@@ -42,4 +42,4 @@ export function Preview() {
42
42
  <FileViewer viewerUrl="/vendor/file-viewer/index.html" url={url} />
43
43
  ```
44
44
 
45
- `options` 会透传给 Vue 基线预览器,可配置下载/打印/导出 HTML 操作栏、文字或图片水印,以及压缩包预览的 `libarchive.js` Worker、IndexedDB 缓存和体积上限。
45
+ `options` 会透传给 Vue 基线预览器,可配置下载/打印/导出 HTML 操作栏、文字或图片水印,以及压缩包预览的 `libarchive.js` Worker、IndexedDB 缓存和体积上限。PDF 打印和导出会逐页生成完整页面,不依赖当前 iframe 视口或已渲染 canvas。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flyfish-group/file-viewer-react",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Private-deploy React component for Flyfish Viewer",
@@ -47,7 +47,7 @@
47
47
  "react": ">=17 <20"
48
48
  },
49
49
  "dependencies": {
50
- "@flyfish-group/file-viewer-web": "^1.0.12"
50
+ "@flyfish-group/file-viewer-web": "^1.0.13"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/react": "^19.2.14",