@file-viewer/ppt 0.3.2 → 0.3.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/README.md CHANGED
@@ -193,9 +193,9 @@ moves assets, configure them explicitly:
193
193
 
194
194
  ```js
195
195
  const viewer = await createPptViewer({
196
- workerUrl: new URL('/vendor/file-viewer/ppt/0.3.2/worker.mjs', location.origin),
197
- wasmUrl: new URL('/vendor/file-viewer/ppt/0.3.2/ppt-native.wasm', location.origin),
198
- fontUrl: new URL('/vendor/file-viewer/ppt/0.3.2/ppt-font-cjk.otf', location.origin)
196
+ workerUrl: new URL('/vendor/file-viewer/ppt/0.3.4/worker.mjs', location.origin),
197
+ wasmUrl: new URL('/vendor/file-viewer/ppt/0.3.4/ppt-native.wasm', location.origin),
198
+ fontUrl: new URL('/vendor/file-viewer/ppt/0.3.4/ppt-font-cjk.otf', location.origin)
199
199
  });
200
200
  ```
201
201
 
@@ -447,7 +447,7 @@ manifest.json
447
447
  `application/wasm`,`.otf` 使用 `font/otf`,`.ppt` 使用
448
448
  `application/vnd.ms-powerpoint`。
449
449
 
450
- 将资源发布在版本化或内容寻址目录(如 `/vendor/file-viewer/ppt/0.3.2/`)后,
450
+ 将资源发布在版本化或内容寻址目录(如 `/vendor/file-viewer/ppt/0.3.4/`)后,
451
451
  可配置:
452
452
 
453
453
  ```http
package/index.mjs CHANGED
@@ -1,7 +1,8 @@
1
- const MANIFEST = Object.freeze({"kind":"flyfish-ppt-public-native-wasm-v2","product":"Flyfish PPT Viewer","format":"PowerPoint 97-2003 (.ppt)","packageName":"@file-viewer/ppt","packageVersion":"0.3.2","engine":"flyfish-classic-ppt-native-engine","engineBuild":"ee7c677fc3007f1b","id":"FV-PPT-PUBLIC-WATERMARKED-V2","feature":"ppt","edition":"public-watermarked","holder":"Individuals and Organizations","distribution":"proprietary-public-binary","commercialUse":true,"publicAnyOrigin":true,"watermarkRequired":true,"watermarkText":"Flyfish Viewer","usePolicy":"public-watermarked-general-use","licensePolicy":"flyfish-public-watermarked-binary-license-v2","sourceCodeRights":false,"sourceDeliveryRights":false,"apacheLicenseApplies":false,"redistributionAllowed":true,"redistributionPolicy":"unmodified-integrated-bundling-only","standaloneRedistributionAllowed":false,"watermarkRemovalRequiresCommercialAuthorization":true,"runtimeLicenseRequired":false,"renderer":"native-wasm-worker-offscreen-canvas","integrity":"native-wasm-font-sha256-v2","wasmFile":"ppt-native.wasm","wasmBytes":1557871,"workerFile":"worker.mjs","fontPack":{"kind":"flyfish-cjk-font-pack-v1","file":"ppt-font-cjk.otf","bytes":16437364,"sha256":"2c76254f6fc379fddfce0a7e84fb5385bb135d3e399294f6eeb6680d0365b74b"},"workerDefault":true,"virtualScrollDefault":true,"frameCache":"indexeddb-final-watermarked-png-lru","watermarkEnforcement":"native-final-frame","wasmSha256":"6d209f487ab8be74f23b463eaecafd9f588948e75670f82e69d7b7d6b10cb6a7"});
1
+ const MANIFEST = Object.freeze({"kind":"flyfish-ppt-public-native-wasm-v2","product":"Flyfish PPT Viewer","format":"PowerPoint 97-2003 (.ppt)","packageName":"@file-viewer/ppt","packageVersion":"0.3.4","engine":"flyfish-classic-ppt-native-engine","engineBuild":"d2b522ef23b5c08a","id":"FV-PPT-PUBLIC-WATERMARKED-V2","feature":"ppt","edition":"public-watermarked","holder":"Individuals and Organizations","distribution":"proprietary-public-binary","commercialUse":true,"publicAnyOrigin":true,"watermarkRequired":true,"watermarkText":"Flyfish Viewer","usePolicy":"public-watermarked-general-use","licensePolicy":"flyfish-public-watermarked-binary-license-v2","sourceCodeRights":false,"sourceDeliveryRights":false,"apacheLicenseApplies":false,"redistributionAllowed":true,"redistributionPolicy":"unmodified-integrated-bundling-only","standaloneRedistributionAllowed":false,"watermarkRemovalRequiresCommercialAuthorization":true,"runtimeLicenseRequired":false,"renderer":"native-wasm-worker-offscreen-canvas","integrity":"native-wasm-font-sha256-v2","wasmFile":"ppt-native.wasm","wasmBytes":1557729,"workerFile":"worker.mjs","fontPack":{"kind":"flyfish-cjk-font-pack-v1","file":"ppt-font-cjk.otf","bytes":16437364,"sha256":"2c76254f6fc379fddfce0a7e84fb5385bb135d3e399294f6eeb6680d0365b74b"},"workerDefault":true,"virtualScrollDefault":true,"frameCache":"indexeddb-final-watermarked-png-lru","watermarkEnforcement":"native-final-frame","wasmSha256":"5e1313c50fee36c9573527bc3bf88920ea54b25016ee72d369bb7b27df1540ba"});
2
2
  const DEFAULT_WASM_URL = new URL('./ppt-native.wasm', import.meta.url);
3
- const DEFAULT_FONT_URL = new URL(`./${MANIFEST.fontPack.file}`, import.meta.url);
4
- const DEFAULT_WORKER_URL = new URL(`./${MANIFEST.workerFile}`, import.meta.url);
3
+ // Keep asset paths literal so bundlers do not scan declarations as URL assets.
4
+ const DEFAULT_FONT_URL = new URL('./ppt-font-cjk.otf', import.meta.url);
5
+ const DEFAULT_WORKER_URL = new URL('./worker.mjs', import.meta.url);
5
6
  const WASM_EXPORTS = Object.freeze([
6
7
  'memory',
7
8
  'ppt_input_alloc',
package/manifest.json CHANGED
@@ -3,9 +3,9 @@
3
3
  "product": "Flyfish PPT Viewer",
4
4
  "format": "PowerPoint 97-2003 (.ppt)",
5
5
  "packageName": "@file-viewer/ppt",
6
- "packageVersion": "0.3.2",
6
+ "packageVersion": "0.3.4",
7
7
  "engine": "flyfish-classic-ppt-native-engine",
8
- "engineBuild": "ee7c677fc3007f1b",
8
+ "engineBuild": "d2b522ef23b5c08a",
9
9
  "id": "FV-PPT-PUBLIC-WATERMARKED-V2",
10
10
  "feature": "ppt",
11
11
  "edition": "public-watermarked",
@@ -28,7 +28,7 @@
28
28
  "renderer": "native-wasm-worker-offscreen-canvas",
29
29
  "integrity": "native-wasm-font-sha256-v2",
30
30
  "wasmFile": "ppt-native.wasm",
31
- "wasmBytes": 1557871,
31
+ "wasmBytes": 1557729,
32
32
  "workerFile": "worker.mjs",
33
33
  "fontPack": {
34
34
  "kind": "flyfish-cjk-font-pack-v1",
@@ -40,5 +40,5 @@
40
40
  "virtualScrollDefault": true,
41
41
  "frameCache": "indexeddb-final-watermarked-png-lru",
42
42
  "watermarkEnforcement": "native-final-frame",
43
- "wasmSha256": "6d209f487ab8be74f23b463eaecafd9f588948e75670f82e69d7b7d6b10cb6a7"
43
+ "wasmSha256": "5e1313c50fee36c9573527bc3bf88920ea54b25016ee72d369bb7b27df1540ba"
44
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@file-viewer/ppt",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "Professional native WebAssembly canvas viewer for PowerPoint 97-2003 (.ppt) files.",
5
5
  "type": "module",
6
6
  "main": "./index.mjs",
package/ppt-native.wasm CHANGED
Binary file