@file-viewer/core 3.0.0 → 3.0.1

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.
@@ -311,6 +311,25 @@ export declare const coreLiteRendererDefinitions: ({
311
311
  readonly zoom: false;
312
312
  readonly search: true;
313
313
  };
314
+ } | {
315
+ readonly id: "chm";
316
+ readonly label: "Compiled HTML Help";
317
+ readonly category: "ebook";
318
+ readonly extensions: readonly ["chm"];
319
+ readonly async: true;
320
+ readonly supportLevel: "structured";
321
+ readonly status: "stable";
322
+ readonly packageName: "@file-viewer/renderer-chm";
323
+ readonly presets: readonly ["all"];
324
+ readonly containerVersions: readonly ["Microsoft HTML Help ITSF v2/v3", "LZX MSCompressed and uncompressed content"];
325
+ readonly knownLimits: readonly ["ActiveX, Shortcut/WinHelp commands, scripts and external network resources are intentionally blocked", "Merged help collections require each referenced CHM file to be opened separately"];
326
+ readonly capabilities: {
327
+ readonly download: true;
328
+ readonly print: "adapter";
329
+ readonly exportHtml: "adapter";
330
+ readonly zoom: false;
331
+ readonly search: true;
332
+ };
314
333
  } | {
315
334
  readonly id: "email";
316
335
  readonly label: "Email";
@@ -634,6 +653,202 @@ export declare const coreLiteRendererDefinitions: ({
634
653
  readonly zoom: false;
635
654
  readonly search: false;
636
655
  };
656
+ } | {
657
+ readonly id: "photoshop-design";
658
+ readonly label: "Adobe Photoshop";
659
+ readonly category: "asset";
660
+ readonly extensions: readonly ["psb", "pdd", "psdt"];
661
+ readonly async: true;
662
+ readonly supportLevel: "experimental";
663
+ readonly status: "experimental";
664
+ readonly packageName: "@file-viewer/renderer-design";
665
+ readonly presets: readonly [];
666
+ readonly enhancesRendererId: "data-asset";
667
+ readonly enhancesExtensions: readonly ["psd"];
668
+ readonly containerVersions: readonly ["PSD v1", "PSB v2"];
669
+ readonly knownLimits: readonly ["Pixel rendering is enabled only for 8-bit RGB and grayscale documents; unsupported color modes and bit depths are rejected instead of decoded incorrectly", "The untouched merged composite is the fidelity reference and must have been saved with Maximize Compatibility using Raw or PackBits RLE compression; ZIP composites are rejected", "Auxiliary channels are accepted only when PSD layer-info declares one merged-transparency channel; PSB currently requires exactly the base RGB or grayscale channels", "Embedded ICC profiles are detected but not color-converted yet, so profiled color is not reference-verified", "The PSD/PSB container version is taken from the 8BPS header; a mismatched filename extension is diagnosed and never used as the format authority", "Legacy PhotoDeluxe PDD and Photoshop template PSDT inputs are accepted only when the bytes validate as a PSD v1 8BPS container; unrelated files sharing those extensions are rejected", "PSD layer visibility is interactive only for flat normal-blend 100%-opacity documents without masks, effects, clipping, adjustments, groups, or resource-limit violations", "PSB currently exposes the saved composite and a read-only layer tree; interactive PSB layer recomposition is not claimed, and PSB files containing ZIP-compressed layer channels are rejected"];
670
+ readonly capabilities: {
671
+ readonly download: true;
672
+ readonly print: true;
673
+ readonly exportHtml: false;
674
+ readonly zoom: true;
675
+ readonly search: false;
676
+ };
677
+ } | {
678
+ readonly id: "illustrator-pdf-design";
679
+ readonly label: "Adobe Illustrator AI/AIT";
680
+ readonly category: "asset";
681
+ readonly extensions: readonly ["ait"];
682
+ readonly async: true;
683
+ readonly supportLevel: "experimental";
684
+ readonly status: "experimental";
685
+ readonly packageName: "@file-viewer/renderer-design";
686
+ readonly presets: readonly [];
687
+ readonly enhancesRendererId: "data-asset";
688
+ readonly enhancesExtensions: readonly ["ai"];
689
+ readonly containerVersions: readonly ["Illustrator PDF-compatible AI/AIT", "Illustrator native PGF/private source"];
690
+ readonly knownLimits: readonly ["Automatic mode prefers the verified PDF-compatible surface for the highest saved appearance fidelity, while Native PGF mode parses the editable private source in a dedicated bounded Worker and exposes native artboards and layer visibility", "A PDF header alone is insufficient: the renderer also requires Illustrator-origin XMP, MIME, creator, or AIPrivateData evidence so an ordinary renamed PDF is not advertised as an Illustrator document", "The packaged browser Worker decodes uncompressed, deflate, and Illustrator 24 zstd private source entirely offline; zstd output is streamed through the same decoded-byte ceiling and unsupported long-distance frames fail explicitly", "Native PGF rendering currently preserves and reports unknown operators but does not claim complete Illustrator gradients, text shaping, placed or embedded images, plugins, effects, masks, blending, overprint, spot-color management, or font substitution fidelity", "The PDF renderer is required only for the saved PDF surface; native-only AI/AIT can open without it, and PDF pages or optional-content groups are not presented as native artboards or layers"];
691
+ readonly capabilities: {
692
+ readonly download: true;
693
+ readonly print: true;
694
+ readonly exportHtml: false;
695
+ readonly zoom: true;
696
+ readonly search: true;
697
+ };
698
+ } | {
699
+ readonly id: "indesign-idml-design";
700
+ readonly label: "Adobe InDesign IDML";
701
+ readonly category: "asset";
702
+ readonly extensions: readonly ["idml"];
703
+ readonly async: true;
704
+ readonly supportLevel: "experimental";
705
+ readonly status: "experimental";
706
+ readonly packageName: "@file-viewer/renderer-design";
707
+ readonly presets: readonly [];
708
+ readonly containerVersions: readonly ["IDML package", "@paged-media/introspect-wasm 0.62.0"];
709
+ readonly knownLimits: readonly ["Pages are rendered locally by the CPU WASM engine in a module Worker; the browser never uploads the IDML package", "ZIP64, encrypted, multi-disk, overlapping, unsafe-path, unsupported-compression, and configured expansion-limit packages are rejected before the WASM engine opens them", "The current engine page tree lists TextFrame and Rectangle objects only even though other supported objects may still appear in rendered page pixels", "Each page render rebuilds the upstream document internally; interactive requests are latest-wins, preview is lazy, and print-all is bounded by the configured total RGBA working-set limit"];
710
+ readonly capabilities: {
711
+ readonly download: true;
712
+ readonly print: true;
713
+ readonly exportHtml: false;
714
+ readonly zoom: true;
715
+ readonly search: false;
716
+ };
717
+ } | {
718
+ readonly id: "indesign-exchange-design";
719
+ readonly label: "Adobe InCopy and InDesign Exchange";
720
+ readonly category: "asset";
721
+ readonly extensions: readonly ["icml", "idms", "inx"];
722
+ readonly async: true;
723
+ readonly supportLevel: "structured";
724
+ readonly status: "experimental";
725
+ readonly packageName: "@file-viewer/renderer-design";
726
+ readonly presets: readonly [];
727
+ readonly containerVersions: readonly ["ICML InCopyInterchange", "IDMS PageItem", "legacy INX"];
728
+ readonly knownLimits: readonly ["ICML is rendered as styled story content because the format does not carry a complete document page layout", "IDMS page-item paths, transforms, colors, stories, styles, layers, and linked-resource metadata are parsed in a terminable Worker and shown as a bounded layout-fragment preview; it is not advertised as a complete INDD page", "Legacy INX abbreviated records have no maintained browser layout engine; common page items and geometry are visualized while every unmapped element name remains visible in the structure inventory", "UTF-8, signature, DTD/entity, source size, node, depth, attribute, text, story, item, point, style, and color limits are enforced; linked resource paths are never fetched"];
729
+ readonly capabilities: {
730
+ readonly download: true;
731
+ readonly print: true;
732
+ readonly exportHtml: true;
733
+ readonly zoom: false;
734
+ readonly search: true;
735
+ };
736
+ } | {
737
+ readonly id: "adobe-animate-xfl-design";
738
+ readonly label: "Adobe Animate XFL";
739
+ readonly category: "asset";
740
+ readonly extensions: readonly ["fla", "xfl"];
741
+ readonly async: true;
742
+ readonly supportLevel: "structured";
743
+ readonly status: "experimental";
744
+ readonly packageName: "@file-viewer/renderer-design";
745
+ readonly presets: readonly [];
746
+ readonly containerVersions: readonly ["Modern compressed XFL-based FLA (CS5+)", "single DOMDocument XML XFL"];
747
+ readonly knownLimits: readonly ["Modern ZIP/XFL-based FLA is parsed in a terminable Worker; legacy binary FLA (Flash CS4 and earlier) is explicitly rejected", "The bounded first-frame preview reconstructs solid shapes, static text, nested symbols, and direct PNG/JPEG instances; masks, filters, tweens, ActionScript, audio/video playback, and proprietary bitmap .dat payloads remain structure-only", "A standard uncompressed .xfl is only a marker beside DOMDocument.xml, LIBRARY, and media folders; a single browser File object cannot access those siblings, so it must be packaged as FLA or supplied through a future folder/multi-file API", "ZIP64, encryption, multi-disk archives, overlapping records, unsafe or ambiguous paths, CRC failures, unsupported compression, DTD/entity XML, external XML stylesheets, and configured size/node/depth/ratio limits are rejected"];
748
+ readonly capabilities: {
749
+ readonly download: true;
750
+ readonly print: false;
751
+ readonly exportHtml: false;
752
+ readonly zoom: false;
753
+ readonly search: false;
754
+ };
755
+ } | {
756
+ readonly id: "adobe-xd-design";
757
+ readonly label: "Adobe XD Package";
758
+ readonly category: "asset";
759
+ readonly extensions: readonly ["xd"];
760
+ readonly async: true;
761
+ readonly supportLevel: "structured";
762
+ readonly status: "experimental";
763
+ readonly packageName: "@file-viewer/renderer-design";
764
+ readonly presets: readonly [];
765
+ readonly containerVersions: readonly ["XD UCF package", "AGC JSON inventory"];
766
+ readonly knownLimits: readonly ["A terminable module Worker shows the highest-resolution structurally referenced embedded PNG/JPEG rendition and a bounded manifest, artboard, layer, and resource inventory", "Native AGC vector scene reconstruction is not implemented; files without a saved preview remain structure-only", "ZIP64, encrypted, multi-disk, overlapping, unsafe-path, CRC-invalid, unsupported-compression, and configured expansion-limit packages are rejected"];
767
+ readonly capabilities: {
768
+ readonly download: true;
769
+ readonly print: false;
770
+ readonly exportHtml: false;
771
+ readonly zoom: false;
772
+ readonly search: false;
773
+ };
774
+ } | {
775
+ readonly id: "indesign-native-design";
776
+ readonly label: "Adobe InDesign Native";
777
+ readonly category: "asset";
778
+ readonly extensions: readonly ["indd", "indt"];
779
+ readonly async: true;
780
+ readonly supportLevel: "structured";
781
+ readonly status: "experimental";
782
+ readonly packageName: "@file-viewer/renderer-design";
783
+ readonly presets: readonly [];
784
+ readonly containerVersions: readonly ["InDesign 2+ native database", "INDD", "INDT"];
785
+ readonly knownLimits: readonly ["A terminable module Worker shows a JPEG/PNG preview only when it is embedded in a structurally verified contiguous XMP object", "The proprietary native layout database is not reconstructed; files without a saved XMP thumbnail remain metadata- or structure-only and should be exported to IDML for full page rendering", "The reader follows declared master-page and object boundaries and never scans arbitrary binary bytes for coincidental image signatures; legacy InDesign 1.x is rejected"];
786
+ readonly capabilities: {
787
+ readonly download: true;
788
+ readonly print: false;
789
+ readonly exportHtml: false;
790
+ readonly zoom: false;
791
+ readonly search: false;
792
+ };
793
+ } | {
794
+ readonly id: "postscript-design";
795
+ readonly label: "Adobe EPS and PostScript";
796
+ readonly category: "asset";
797
+ readonly extensions: readonly ["ps"];
798
+ readonly async: true;
799
+ readonly supportLevel: "experimental";
800
+ readonly status: "experimental";
801
+ readonly packageName: "@file-viewer/renderer-design";
802
+ readonly presets: readonly [];
803
+ readonly enhancesRendererId: "data-asset";
804
+ readonly enhancesExtensions: readonly ["eps"];
805
+ readonly containerVersions: readonly ["EPSF/DSC PostScript", "Adobe PostScript programs"];
806
+ readonly knownLimits: readonly ["Stet WASM renders pages in a terminable Worker with latest-wins interactive requests and bounded source size, VM memory, page count, dimensions, pixels, DPI, total print working set, and retained canvas cache", "The distributed runtime excludes upstream URW Base35 and Ghostscript CMYK ICC assets; Carlito, Tinos, Cousine, and Noto Sans Symbols 2 OFL substitutes plus the PLRM DeviceCMYK formula fallback can differ in metrics and color from Adobe applications", "This experimental path is not claimed to implement every Adobe PostScript Level 3 operator, font technology, color-management workflow, or printer device"];
807
+ readonly capabilities: {
808
+ readonly download: true;
809
+ readonly print: true;
810
+ readonly exportHtml: false;
811
+ readonly zoom: true;
812
+ readonly search: false;
813
+ };
814
+ } | {
815
+ readonly id: "adobe-palette-design";
816
+ readonly label: "Adobe Color Palettes";
817
+ readonly category: "asset";
818
+ readonly extensions: readonly ["ase", "aco"];
819
+ readonly async: true;
820
+ readonly supportLevel: "structured";
821
+ readonly status: "stable";
822
+ readonly packageName: "@file-viewer/renderer-design";
823
+ readonly presets: readonly [];
824
+ readonly containerVersions: readonly ["ASE 1.x", "ACO v1/v2"];
825
+ readonly knownLimits: readonly ["ASE RGB, CMYK, Gray, and CIELAB colors and ACO RGB, HSB, CMYK, CIELAB, and Gray colors are parsed with strict bounds in a terminable module Worker", "Browser swatches convert CIELAB D50 and device CMYK to approximate sRGB; original model values remain visible for reference", "Unknown ASE blocks and bounded ACO trailing application data are skipped and reported rather than executed"];
826
+ readonly capabilities: {
827
+ readonly download: true;
828
+ readonly print: true;
829
+ readonly exportHtml: true;
830
+ readonly zoom: false;
831
+ readonly search: true;
832
+ };
833
+ } | {
834
+ readonly id: "photoshop-resource-design";
835
+ readonly label: "Adobe Photoshop Resources and Presets";
836
+ readonly category: "asset";
837
+ readonly extensions: readonly ["abr", "csh", "pat", "grd", "asl"];
838
+ readonly async: true;
839
+ readonly supportLevel: "structured";
840
+ readonly status: "experimental";
841
+ readonly packageName: "@file-viewer/renderer-design";
842
+ readonly presets: readonly [];
843
+ readonly containerVersions: readonly ["Photoshop ABR 6.x", "Photoshop CSH v2", "PAT v1", "GRD v5", "ASL v2", "ag-psd 31.0.2"];
844
+ readonly knownLimits: readonly ["ABR previews decode saved brush-tip alpha, embedded patterns, and bounded preset metadata; they do not simulate Photoshop's stroke engine, dynamics, or paint blending", "CSH previews reconstruct bounded Bezier path geometry; subtract, intersect, and exclude composition is exposed as metadata rather than claimed as Photoshop-equivalent raster output", "PAT previews decode bounded RGB, grayscale, indexed-color, alpha, Raw, and PackBits pattern tiles; unsupported image modes and compression variants fail closed", "GRD previews render saved solid color stops and deterministic bounded noise samples from v5 descriptors; they do not claim Photoshop's complete interpolation and color-management pipeline", "ASL previews expose bounded layer-effect descriptors, blend metadata, and embedded pattern thumbnails as a structure view; they do not rasterize Photoshop's full effect stack", "Legacy ABR variants before 6.x and unknown CSH container versions are rejected instead of being scanned heuristically"];
845
+ readonly capabilities: {
846
+ readonly download: true;
847
+ readonly print: true;
848
+ readonly exportHtml: false;
849
+ readonly zoom: false;
850
+ readonly search: true;
851
+ };
637
852
  } | {
638
853
  readonly id: "data-asset";
639
854
  readonly label: "Data Asset";
@@ -47,6 +47,7 @@ const rendererPackageById = {
47
47
  ofd: '@file-viewer/renderer-ofd',
48
48
  typst: '@file-viewer/renderer-typst',
49
49
  archive: '@file-viewer/renderer-archive',
50
+ chm: '@file-viewer/renderer-chm',
50
51
  email: '@file-viewer/renderer-email',
51
52
  eda: '@file-viewer/renderer-eda',
52
53
  cad: '@file-viewer/renderer-cad',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@file-viewer/core",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Framework-neutral modular TypeScript core for File Viewer renderer orchestration, lifecycle APIs, search, zoom, print, and export",
@@ -90,7 +90,7 @@
90
90
  "LICENSE"
91
91
  ],
92
92
  "dependencies": {
93
- "dompurify": "3.4.13"
93
+ "dompurify": "3.4.14"
94
94
  },
95
95
  "devDependencies": {
96
96
  "typescript": "^6.0.3"