@file-viewer/vite-plugin 3.3.0 → 3.3.3

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/dist/index.js +9 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1693,17 +1693,16 @@ async function copyKnownRendererAssets(targetRoot, rendererIds) {
1693
1693
  ? { sourcePackage: '@file-viewer/ppt', sourceVersion: pptVersion || undefined }
1694
1694
  : undefined;
1695
1695
  for (const [id, filename] of [
1696
- ['ppt-module', 'index.mjs'],
1697
- ['ppt-worker', 'worker.mjs'],
1698
- ['ppt-frame-cache', 'frame-cache.mjs'],
1699
- ['ppt-wasm', 'ppt-native.wasm'],
1700
- ['ppt-cjk-font', 'ppt-font-cjk.otf'],
1701
- ['ppt-manifest', 'manifest.json'],
1702
- ['ppt-package', 'package.json'],
1703
- ['ppt-license', 'LICENSE'],
1704
- ['ppt-notice', 'NOTICE']
1696
+ ['ppt-module', 'dist/pptjs.mjs'],
1697
+ ['ppt-worker', 'dist/pptjs.worker.js'],
1698
+ ['ppt-runtime-dist', 'dist'],
1699
+ ['ppt-runtime-manifest', 'dist/manifest.json'],
1700
+ ['ppt-runtime-package', 'package.json'],
1701
+ ['ppt-runtime-license', 'LICENSE'],
1702
+ ['ppt-runtime-notice', 'NOTICE.md'],
1703
+ ['ppt-runtime-readme', 'README.md']
1705
1704
  ]) {
1706
- await push('office-presentation-binary', id, join(targetRoot, `vendor/ppt/${filename}`), () => copyFileIfPresent(pptRoot ? join(pptRoot, filename) : null, join(targetRoot, `vendor/ppt/${filename}`)), undefined, pptSource);
1705
+ await push('office-presentation-binary', id, join(targetRoot, `vendor/ppt/${filename}`), () => (filename === 'dist' ? copyDirectoryIfPresent : copyFileIfPresent)(pptRoot ? join(pptRoot, filename) : null, join(targetRoot, `vendor/ppt/${filename}`)), undefined, pptSource);
1707
1706
  }
1708
1707
  const docxRoot = resolvePackageRoot('@file-viewer/docx', ['@file-viewer/renderer-word']);
1709
1708
  await push('office-word-openxml', 'docx-worker', join(targetRoot, 'vendor/docx/docx.worker.js'), () => copyFileIfPresent(docxRoot ? join(docxRoot, 'dist/docx-preview.worker.js') : null, join(targetRoot, 'vendor/docx/docx.worker.js')));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@file-viewer/vite-plugin",
3
- "version": "3.3.0",
3
+ "version": "3.3.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Vite plugin for File Viewer on-demand renderer assembly, chunk planning, and offline asset deployment.",