filens-preview 0.3.0 → 0.3.2

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 (40) hide show
  1. package/README.md +13 -7
  2. package/dist/all-in-one/THIRD-PARTY-NOTICES.txt +870 -0
  3. package/dist/all-in-one/filens.js +5069 -114897
  4. package/dist/index.d.ts +2 -0
  5. package/dist/split/THIRD-PARTY-NOTICES.txt +870 -0
  6. package/dist/split/chunks/archive-haip2eOP.js +1 -0
  7. package/dist/split/chunks/browser-video-session-C_14e_mG.js +1 -0
  8. package/dist/split/chunks/cad-5oTkbaDV.js +7 -0
  9. package/dist/split/chunks/core-EjELrtsP.js +17 -0
  10. package/dist/split/chunks/diagram-BRcdlitF.js +1 -0
  11. package/dist/split/chunks/docx-I39iDYpR.js +1 -0
  12. package/dist/split/chunks/ebook-BRfadCGl.js +5 -0
  13. package/dist/split/chunks/index-C4jdVbDq.js +1 -0
  14. package/dist/split/chunks/index-DkF8PBGR.js +1 -0
  15. package/dist/split/chunks/iwork-DXq9Adf7.js +4 -0
  16. package/dist/split/chunks/media-runtime-B6322raw.js +1 -0
  17. package/dist/split/chunks/mindmap-CyR3TRfx.js +1 -0
  18. package/dist/split/chunks/model3d-BEt6INTt.js +55 -0
  19. package/dist/split/chunks/mp4box.all-Bw_Tlr0T-D0URDfA1.js +1 -0
  20. package/dist/split/chunks/panorama-ChsqnvWC.js +973 -0
  21. package/dist/split/chunks/pdf-Dzzffz3p.js +12 -0
  22. package/dist/split/chunks/vendor-C1aIdQ-w.js +4115 -0
  23. package/dist/split/chunks/xlsx-CITQo0Od.js +3 -0
  24. package/dist/split/converter-image.wasm +0 -0
  25. package/dist/split/filens.js +2 -5012
  26. package/package.json +1 -1
  27. package/dist/split/chunks/archive-B4jVwD9o.js +0 -921
  28. package/dist/split/chunks/cad-DMg-lGJX.js +0 -2405
  29. package/dist/split/chunks/core--zVW212C.js +0 -14627
  30. package/dist/split/chunks/diagram-CDwCA6LZ.js +0 -654
  31. package/dist/split/chunks/docx-CuQfFJqr.js +0 -299
  32. package/dist/split/chunks/ebook-CLlJ8KX3.js +0 -623
  33. package/dist/split/chunks/iwork-dNVC0X8j.js +0 -772
  34. package/dist/split/chunks/media-runtime-gcsBQMuo.js +0 -48
  35. package/dist/split/chunks/mindmap-g0-VoK-K.js +0 -560
  36. package/dist/split/chunks/model3d-1G1CC52V.js +0 -5093
  37. package/dist/split/chunks/panorama-D7GVivtM.js +0 -5972
  38. package/dist/split/chunks/pdf-CecYOWld.js +0 -17898
  39. package/dist/split/chunks/vendor-DPFNKNkh.js +0 -59575
  40. package/dist/split/chunks/xlsx-Co26yo-R.js +0 -818
package/README.md CHANGED
@@ -18,6 +18,10 @@ runtime fixes used by CLI 0.5.0's offline HTML preview. It uses native HEIC/HEIF
18
18
  decoder as fallback. MOV plays through browser codecs.
19
19
  Applications can supply an optional `mediaConverter` for unsupported MOV codecs.
20
20
  Both builds preserve the same image and video support boundaries.
21
+ For optional local MP4/MOV recovery, pass `browserMedia: true` to `createPreview`.
22
+ It tries native playback first, then bounded remuxing or necessary WebCodecs AVC
23
+ processing, and never calls `mediaConverter` for video in this mode.
24
+ [Browser-only media scope and validation](../../docs/browser-media-engine.md).
21
25
 
22
26
  ```sh
23
27
  npm install filens-preview
@@ -46,11 +50,11 @@ table is generated by `npm run report:preview-sizes` from exact byte measurement
46
50
  <!-- preview-runtime-sizes:start -->
47
51
  | Runtime | Raw MB | gzip MB | Brotli MB |
48
52
  | --- | ---: | ---: | ---: |
49
- | Split main runtime | 11.23 | 3.26 | 2.57 |
50
- | All-in-one main JS | 8.85 | 3.26 | 2.90 |
53
+ | Split main runtime | 10.56 | 3.34 | 2.67 |
54
+ | All-in-one main JS | 8.05 | 3.34 | 3.02 |
51
55
  | Optional archive WASM + worker (either build) | 0.88 | 0.35 | 0.28 |
52
- | Split with archive assets | 12.11 | 3.61 | 2.85 |
53
- | All-in-one with archive assets | 9.73 | 3.60 | 3.18 |
56
+ | Split with archive assets | 11.44 | 3.69 | 2.94 |
57
+ | All-in-one with archive assets | 8.94 | 3.69 | 3.30 |
54
58
  <!-- preview-runtime-sizes:end -->
55
59
 
56
60
  These are current source build measurements (MB = 1,000,000 bytes), including
@@ -123,9 +127,11 @@ detection. Switch language with `viewer.update({ locale: 'de_DE' })`. Optional
123
127
  Both split and all-in-one builds contain these dictionaries for offline use.
124
128
  See the [locale list and API notes](../vue/README.md#languages-source-build).
125
129
 
126
- APK/IPA packages and Windows EXE/DLL/MUI/MUN resource files can be previewed as
127
- application icons using the included WASM converter. Icon extraction supports
128
- compiled Android icon resources, XML/binary iOS plist metadata, iOS CgBI PNGs,
130
+ APK/IPA packages open as ZIP-compatible archives with directory browsing and
131
+ entry previews. Windows EXE/DLL/MUI/MUN resource files can be previewed as
132
+ application icons using the included WASM converter. The converter also exposes
133
+ APK/IPA icon extraction for explicit requests. Icon extraction supports compiled
134
+ Android icon resources, XML/binary iOS plist metadata, iOS CgBI PNGs,
129
135
  and Windows PNG/DIB icon frames. These additions are included in 0.2.0.
130
136
  See the [supported icon representations
131
137
  and limits](../vue/README.md#application-icons-source-build).