@file-viewer/core
Advanced tools
| import type { FileViewerMessageKey } from '../contracts/types'; | ||
| /** | ||
| * Built-in German messages for every runtime viewer state and renderer. | ||
| * Keep placeholders aligned with the Chinese and English catalogs. | ||
| */ | ||
| export declare const DE_DE_MESSAGES: Record<FileViewerMessageKey, string>; |
| /** | ||
| * Built-in German messages for every runtime viewer state and renderer. | ||
| * Keep placeholders aligned with the Chinese and English catalogs. | ||
| */ | ||
| export const DE_DE_MESSAGES = { | ||
| "toolbar.zoomGroup": "Zoom-Steuerelemente", | ||
| "toolbar.zoomOut": "Herauszoomen", | ||
| "toolbar.zoomIn": "Vergrößern", | ||
| "toolbar.zoomReset": "Zoom zurücksetzen", | ||
| "toolbar.download": "Herunterladen", | ||
| "toolbar.downloadTitle": "Laden Sie die Originaldatei herunter", | ||
| "toolbar.print": "Drucken", | ||
| "toolbar.printTitle": "Drucken Sie das vollständig gerenderte Dokument aus", | ||
| "toolbar.printDirect": "Jetzt drucken", | ||
| "toolbar.printMask": "Maske / Stempel & Druck", | ||
| "toolbar.printMaskTitle": "Decken Sie empfindliche Bereiche ab oder versehen Sie sie vor dem Drucken mit einem Stempel", | ||
| "toolbar.printMaskAdd": "Maske hinzufügen", | ||
| "toolbar.printMaskClear": "Leeren", | ||
| "toolbar.printMaskCancel": "Abbrechen", | ||
| "toolbar.printMaskConfirm": "Drucken", | ||
| "toolbar.printMaskHint": "Zeichnen Sie Deckblätter oder laden Sie einen Stempel hoch und ziehen Sie ihn oder ändern Sie seine Größe.", | ||
| "toolbar.printStampUpload": "Stempel hochladen", | ||
| "toolbar.printStampRemove": "Stempel entfernen", | ||
| "toolbar.printStampResize": "Stempelgröße ändern", | ||
| "toolbar.exportHtml": "HTML", | ||
| "toolbar.exportHtmlTitle": "Exportieren Sie das gerenderte HTML", | ||
| "toolbar.search": "Suchen", | ||
| "toolbar.searchPlaceholder": "Dokument durchsuchen", | ||
| "toolbar.searchPrevious": "Vorheriger Treffer", | ||
| "toolbar.searchNext": "Nächster Treffer", | ||
| "toolbar.searchClear": "Suche löschen", | ||
| "toolbar.theme": "Thema", | ||
| "toolbar.themeToLight": "Wechseln Sie in den Lichtmodus", | ||
| "toolbar.themeToDark": "Wechseln Sie in den Dunkelmodus", | ||
| "state.ready.title": "Vorschau bereit", | ||
| "state.ready.message": "Die Datei wurde gerendert.", | ||
| "state.empty.title": "Keine Datei ausgewählt", | ||
| "state.empty.message": "Wählen Sie eine Datei aus oder geben Sie eine erreichbare URL an, um die Vorschau zu starten.", | ||
| "state.unsupported.install.title": "Vorschaufunktion erforderlich", | ||
| "state.unsupported.install.message": "{extension} befindet sich in der unterstützten Matrix, aber der Renderer {rendererLabel} ist in diesem Projekt nicht assembliert.", | ||
| "state.unsupported.install.description": "Installieren Sie {presetPackage} und übergeben Sie die Funktion über options.preset / options.renderers{rendererTip}. Vite-Projekte können @file-viewer/vite-plugin auch verwenden, um installierte Voreinstellungen automatisch zu erkennen.", | ||
| "state.unsupported.title": "Die Online-Vorschau wird noch nicht unterstützt", | ||
| "state.unsupported.message": "{extension} kann nicht online in der Vorschau angezeigt werden. Laden Sie es herunter oder konvertieren Sie es in ein unterstütztes Format.", | ||
| "state.unsupported.description": "Unterstützt die Online-Vorschau für Office, PDF, OFD, Typst, Archive, E-Mail, OLB/DRA, CAD, Geodaten, 3D-Modelle, Excalidraw, draw.io, EPUB, UMD, Markdown, Code/Text, Bilder, Audio/Video, Schriftarten und strukturierte Datenbestände.", | ||
| "state.error.title": "Vorschau fehlgeschlagen", | ||
| "preview.downloading": "Dateiressourcen werden heruntergeladen...", | ||
| "preview.streamingPdf": "Streaming-Vorschau PDF wird vorbereitet...", | ||
| "preview.reading": "Dateiinhalt wird geparst...", | ||
| "error.download": "Der Download ist fehlgeschlagen", | ||
| "error.print": "Der Druck ist fehlgeschlagen", | ||
| "error.exportHtml": "HTML-Export fehlgeschlagen", | ||
| "error.noDownloadSource": "Es gibt keine Originaldateiquelle zum Herunterladen.", | ||
| "error.noExportContent": "Es gibt keinen gerenderten Vorschauinhalt zum Exportieren.", | ||
| "error.printUnavailable": "Dieser Dateityp unterstützt nicht das vollständige Drucken von Dokumenten. Laden Sie die Originaldatei herunter und drucken Sie sie lokal aus.", | ||
| "error.printWindowBlocked": "Der Browser hat das Druckfenster blockiert.", | ||
| "error.remoteDownload": "Der Dateidownload ist fehlgeschlagen", | ||
| "error.localRead": "Lokale Datei konnte nicht gelesen werden", | ||
| "error.load": "Datei konnte nicht geladen werden", | ||
| "error.stream": "Das Laden der PDF-Streaming-Vorschau ist fehlgeschlagen", | ||
| "error.beforeOperation": "Die Prüfung vor dem Betrieb ist fehlgeschlagen", | ||
| "error.unknown": "Unbekannter Fehler", | ||
| "error.blobUnavailable": "Blob ist in der aktuellen Ausführungsumgebung nicht verfügbar.", | ||
| "error.sourceUnsupported": "Nicht unterstützte Dateiquelleneingabe.", | ||
| "error.fileReadArrayBuffer": "Die Datei konnte nicht als ArrayBuffer gelesen werden.", | ||
| "error.fileReadDataUrl": "Die Datei konnte nicht als Daten-URL gelesen werden.", | ||
| "error.fileReadText": "Die Datei konnte nicht als Text gelesen werden.", | ||
| "error.imageDataUrlRead": "Die Bild-Daten-URL konnte nicht gelesen werden.", | ||
| "operation.download": "Laden Sie die Originaldatei herunter", | ||
| "operation.print": "Drucken Sie vollständig gerenderte Inhalte", | ||
| "operation.exportHtml": "Gerendertes HTML exportieren", | ||
| "operation.zoomIn": "Vergrößern", | ||
| "operation.zoomOut": "Herauszoomen", | ||
| "operation.zoomReset": "Vorschauzoom zurücksetzen", | ||
| "pdf.toolbar.toggleNavigation": "Navigationsbereich umschalten", | ||
| "pdf.toolbar.previousPage": "Vorherige Seite", | ||
| "pdf.toolbar.nextPage": "Nächste Seite", | ||
| "pdf.toolbar.fitWidth": "Auf Breite anpassen", | ||
| "pdf.toolbar.zoomOut": "Herauszoomen", | ||
| "pdf.toolbar.zoomIn": "Vergrößern", | ||
| "pdf.toolbar.rotateLeft": "Nach links drehen", | ||
| "pdf.toolbar.rotateRight": "Nach rechts drehen", | ||
| "pdf.nav.typeLabel": "PDF Navigationstyp", | ||
| "pdf.nav.pagesTab": "Seiten", | ||
| "pdf.nav.outlineTab": "Gliederung", | ||
| "pdf.nav.pagesTitle": "Seitennavigation", | ||
| "pdf.nav.outlineTitle": "Gliederungsnavigation", | ||
| "pdf.nav.pageCount": "{count} Seiten", | ||
| "pdf.nav.itemCount": "{count} Einträge", | ||
| "pdf.nav.pageLabel": "Seite {page}", | ||
| "pdf.nav.outlineEmpty": "Für diese PDF-Datei ist keine Gliederung verfügbar.", | ||
| "pdf.nav.outlineFallbackTitle": "Umriss {index}", | ||
| "pdf.thumbnail.alt": "Miniaturansicht der Seite {page}", | ||
| "pdf.state.loading": "PDF wird geladen...", | ||
| "pdf.error.browserWindow": "Für die PDF-Vorschau ist ein Browserfenster erforderlich", | ||
| "pdf.error.missingSource": "PDF hat keine lesbare Datenquelle", | ||
| "pdf.error.loadFailed": "PDF konnte nicht geladen werden", | ||
| "pdf.error.notLoaded": "Die PDF-Datei ist noch nicht geladen. Bitte versuchen Sie es später erneut.", | ||
| "pdf.error.unloaded": "Die PDF-Datei wurde entladen; der Druck kann nicht fortgesetzt werden.", | ||
| "pdf.error.canvasUnavailable": "Dieser Browser kann keine PDF-Druckleinwand erstellen.", | ||
| "pdf.export.pageTitle": "{title} - Seite {page}", | ||
| "spreadsheet.loading.kicker": "Excel-Arbeitsmappe", | ||
| "spreadsheet.loading.title": "Analysieren einer Excel-Arbeitsmappe", | ||
| "spreadsheet.loading.hint": "Vorbereiten von Arbeitsblättern, Stilen und virtualisierten Ansichtsfensterdaten.", | ||
| "spreadsheet.loading.streaming": "Sichtbare Arbeitsblattdaten werden geladen", | ||
| "spreadsheet.tabs.ariaLabel": "Arbeitsblattliste", | ||
| "spreadsheet.state.parsingWorkbook": "Analysieren der Excel-Arbeitsmappe. Bitte warten...", | ||
| "spreadsheet.state.preparingSheet": "Arbeitsblattinhalt wird vorbereitet...", | ||
| "spreadsheet.state.preparingSheetNamed": "„{name}“ wird vorbereitet...", | ||
| "spreadsheet.state.cachedRows": "Zwischengespeicherte {cached}-/{total}-Zeilen", | ||
| "spreadsheet.state.rows": "{rows}-Zeilen, reibungsloses Laden im Ansichtsfenster", | ||
| "spreadsheet.state.rowsAndColumns": "{rows}-Zeilen, {cols}-Spalten, reibungsloses Laden je Ansichtsfenster", | ||
| "spreadsheet.error.parseFailed": "Excel konnte nicht analysiert werden", | ||
| "spreadsheet.error.workerFailed": "Excel Worker ist fehlgeschlagen", | ||
| "word.error.invalidDocx": "Die Datei ist kein gültiges DOCX/OOXML-Paket. Möglicherweise ist sie unvollständig oder wird durch eine Fehlerantwort des Servers ersetzt. Laden Sie es erneut hoch oder überprüfen Sie die Dateiquelle.", | ||
| "word.error.missingOdfContent": "In der Datei ODF fehlt content.xml.", | ||
| "word.error.odfXmlParseFailed": "Fehler beim Parsen von ODF XML.", | ||
| "word.title.rtf": "RTF Dokumentvorschau", | ||
| "word.title.openDocumentPresentation": "Vorschau der OpenDocument-Präsentation", | ||
| "word.title.openDocumentText": "Vorschau des OpenDocument-Dokuments", | ||
| "word.page.fallback": "Seite {page}", | ||
| "word.page.empty": "Auf dieser Seite ist kein extrahierbarer Text vorhanden", | ||
| "word.body": "Inhalt", | ||
| "word.body.empty": "Es wurde kein lesbarer Text extrahiert", | ||
| "ofd.toolbar.pageNavigation": "OFD Seitennavigation", | ||
| "ofd.toolbar.documentPages": "OFD Dokumentseiten", | ||
| "ofd.toolbar.previousPage": "Vorherige Seite", | ||
| "ofd.toolbar.nextPage": "Nächste Seite", | ||
| "ofd.toolbar.pageStatus": "Seite {current} von {total}", | ||
| "ofd.toolbar.noPages": "Keine Seiten verfügbar", | ||
| "ofd.state.loading": "OFD wird analysiert...", | ||
| "ofd.error.empty": "Die OFD-Datei enthält kein darstellbares Dokument.", | ||
| "ofd.error.parseFailed": "Die OFD-Datei konnte nicht analysiert werden", | ||
| "presentation.state.loading": "PPTX wird analysiert...", | ||
| "presentation.error.title": "PPTX-Vorschau fehlgeschlagen", | ||
| "presentation.error.parseFailed": "PPTX konnte nicht analysiert werden", | ||
| "presentation.ppt.state.loading": "Parsen von PowerPoint 97–2003...", | ||
| "presentation.ppt.error.title": "PPT-Vorschau fehlgeschlagen", | ||
| "presentation.ppt.error.parseFailed": "Diese PPT-Datei konnte nicht analysiert werden.", | ||
| "presentation.ppt.error.assetHint": "Überprüfen Sie die Einstellungen für Modul @file-viewer/ppt, pptWasmUrl, application/wasm MIME, Web Crypto und CSP.", | ||
| "presentation.slideshow.start": "Diashow starten", | ||
| "presentation.slideshow.exit": "Diashow beenden", | ||
| "presentation.slideshow.hint": "← → navigieren · Esc beenden", | ||
| "archive.error.nestedUnsupported": ".{type} kann nicht online in der Vorschau angezeigt werden. Laden Sie es herunter oder konvertieren Sie es in ein unterstütztes Format.", | ||
| "archive.loading.readingDirectory": "Archivverzeichnis wird gelesen...", | ||
| "archive.loading.readingDirectoryHint": "Große Dateien werden in einem Worker analysiert, um die Reaktionsfähigkeit des Hauptthreads aufrechtzuerhalten.", | ||
| "archive.search.placeholder": "Filtern Sie Dateien im Archiv", | ||
| "archive.sidebar.hide": "Liste der Archivdateien ausblenden", | ||
| "archive.sidebar.show": "Liste der Archivdateien anzeigen", | ||
| "archive.preview.title": "Vorschau des Archiveintrags", | ||
| "archive.preview.chooseFile": "Wählen Sie eine Datei", | ||
| "archive.preview.downloadFile": "Datei herunterladen", | ||
| "archive.error.title": "Hinweis zur Archivvorschau", | ||
| "archive.stats.summary": "{count}-Dateien · {size} · {previewable} können direkt in der Vorschau angezeigt werden", | ||
| "archive.warning.encrypted": "Verschlüsselter Inhalt wurde erkannt. Geben Sie das richtige Passwort ein, um eine Vorschau anzuzeigen. Das Passwort wird für diese Sitzung nur an den libarchive-Worker weitergegeben.", | ||
| "archive.password.title": "Geben Sie das Archivpasswort ein", | ||
| "archive.password.description": "Dieses Archiv enthält verschlüsselte Inhalte. Zum Lesen des Verzeichnisses oder zur Vorschau von Einträgen ist ein Passwort erforderlich.", | ||
| "archive.password.placeholder": "Archivpasswort", | ||
| "archive.password.invalid": "Das Passwort ist falsch oder der Eintrag konnte nicht entschlüsselt werden. Versuchen Sie es erneut.", | ||
| "archive.password.required": "Geben Sie ein Passwort ein, um fortzufahren.", | ||
| "archive.password.cancel": "Abbrechen", | ||
| "archive.password.confirm": "Vorschau freischalten", | ||
| "archive.error.passwordRequired": "Die Passworteingabe wurde abgebrochen, daher kann keine Vorschau des verschlüsselten Archivs angezeigt werden.", | ||
| "archive.error.encryptedRequiresWorker": "Dieses Archiv enthält verschlüsselte Inhalte und erfordert die libarchive Worker/WASM-Assets für die Online-Entschlüsselung.", | ||
| "archive.empty.title": "Wählen Sie links eine Datei zur Vorschau aus", | ||
| "archive.empty.message": "Zuerst wird das Archivverzeichnis gelesen. Dateiinhalte werden bei Bedarf extrahiert und in IndexedDB zwischengespeichert, sofern die Größe dies zulässt.", | ||
| "archive.loading.initializingCandidate": "{label} wird initialisiert...", | ||
| "archive.loading.initializingCandidateHint": "Wenn der Server Worker-/WASM-Assets nicht korrekt veröffentlicht, greift der Viewer automatisch zurück.", | ||
| "archive.error.candidateInitTimeout": "Zeitüberschreitung bei der {label}-Initialisierung", | ||
| "archive.error.encryptedCheckTimeout": "Zeitüberschreitung bei der {label}-Verschlüsselungsprüfung", | ||
| "archive.loading.directoryReadyHint": "Wenn das Verzeichnis fertig ist, klicken Sie auf einen Eintrag, um ihn bei Bedarf zu extrahieren.", | ||
| "archive.error.candidateReadTimeout": "Zeitüberschreitung beim Lesen des Verzeichnisses {label}", | ||
| "archive.loading.workerFallback": "Worker nicht verfügbar. Wechsel in den ZIP/TAR-Kompatibilitätsmodus...", | ||
| "archive.loading.workerFallbackHint": "Der Kompatibilitätsmodus benötigt keinen statischen Worker und funktioniert gut in mobilen WebViews oder temporären lokalen Servern.", | ||
| "archive.notice.workerFallback": "Der libarchive Worker konnte in dieser Umgebung nicht gestartet werden, daher ist der ZIP/TAR/GZIP-Kompatibilitätsmodus aktiv. RAR, 7z und ähnliche Formate sollten weiterhin Vendor/libarchive/worker-bundle.js und libarchive.wasm veröffentlichen.", | ||
| "archive.error.tooLarge": "Die Archivgröße {size} überschreitet den Sicherheitsgrenzwert {limit}. Laden Sie es herunter und extrahieren Sie es lokal.", | ||
| "archive.loading.initializingWorker": "Der Archivparsing-Worker wird initialisiert ...", | ||
| "archive.loading.initializingWorkerHint": "Große Dateien werden in einem Worker analysiert, um die Reaktionsfähigkeit des Hauptthreads aufrechtzuerhalten.", | ||
| "archive.error.workerInitFailed": "Die Initialisierung des Archive Workers ist fehlgeschlagen", | ||
| "archive.error.workerUnsupported": "Dieser Browser unterstützt keine Web Worker.", | ||
| "archive.error.indexedDbUnavailable": "IndexedDB ist nicht verfügbar", | ||
| "archive.error.entryTooLarge": "Der Eintrag {name} ist {size} und überschreitet das Vorschaulimit {limit}.", | ||
| "archive.loading.extracting": "{name} bei Bedarf extrahieren...", | ||
| "archive.loading.rendering": "Rendern {name}...", | ||
| "archive.loading.exporting": "Exportieren {name}...", | ||
| "media.audio.title": "Audiovorschau", | ||
| "media.audio.description": "Wird mit dem browsernativen Audioplayer geöffnet. Die Codec-Unterstützung hängt vom aktuellen Browser ab.", | ||
| "media.audio.unsupported": "Dieser Browser unterstützt keine Audiowiedergabe.", | ||
| "media.video.title": "Videovorschau", | ||
| "media.video.unsupported": "Dieser Browser unterstützt dieses Videoformat nicht.", | ||
| "media.video.hlsHint": "HLS bevorzugt das ursprüngliche URL zum Laden von Segmenten. Wenn es sich bei der Eingabe um eine lokale Einzeldatei-Playlist handelt, stellen Sie sicher, dass die Segment-URLs für den Browser erreichbar sind.", | ||
| "media.video.codecUnsupportedBadge": "Inkompatibler Videocodec", | ||
| "media.video.codecUnsupportedTitle": "Dieser Browser kann die Videospur nicht dekodieren", | ||
| "media.video.codecUnsupportedDescription": "Die Videospur verwendet {codec}. Der Browser kann den MP4-Container lesen, aber keine Videobilder dekodieren, sodass der native Player möglicherweise nur Audio abspielt oder einen schwarzen Bildschirm anzeigt.", | ||
| "media.video.codecUnsupportedAction": "Der Lightweight-Software-Decoder konnte nicht gestartet werden. Konvertieren Sie das Video in H.264/AVC, VP9 oder AV1 und öffnen Sie es erneut. File Viewer lädt die Originaldatei nicht hoch oder ändert sie nicht.", | ||
| "media.video.softwareLoading": "Laden des leichten MP4V-Decoders bei Bedarf…", | ||
| "media.video.softwareBadge": "MP4V · leichte Dekodierung", | ||
| "media.video.play": "Spielen", | ||
| "media.video.pause": "Pause", | ||
| "media.video.seek": "Videofortschritt", | ||
| "media.video.mute": "Stumm", | ||
| "media.video.unmute": "Stummschaltung aufheben", | ||
| "media.video.fullscreen": "Vollbild", | ||
| "media.midi.title": "MIDI-Datei", | ||
| "media.midi.loading": "MIDI-Tracks werden analysiert...", | ||
| "media.midi.trackHeader": "Spur", | ||
| "media.midi.instrumentHeader": "Instrument", | ||
| "media.midi.channelHeader": "Kanal", | ||
| "media.midi.noteCountHeader": "Notizen", | ||
| "media.midi.durationHeader": "Dauer", | ||
| "media.midi.durationStat": "Dauer", | ||
| "media.midi.trackStat": "Spuren", | ||
| "media.midi.noteStat": "Notizen", | ||
| "media.midi.parseFailed": "MIDI konnte nicht analysiert werden", | ||
| "email.mbox.subject": "{filename} · Nachricht 1", | ||
| "email.mbox.summary": "Erkannte {count}-Nachrichten im MBOX-Archiv. Nachricht 1 wird angezeigt.", | ||
| "email.error.title": "Vorschaubenachrichtigung per E-Mail", | ||
| "email.meta.from": "Aus", | ||
| "email.meta.to": "An", | ||
| "email.meta.cc": "CC", | ||
| "email.meta.date": "Datum", | ||
| "email.tabs.text": "Körper", | ||
| "email.tabs.headers": "Überschriften", | ||
| "email.attachments.title": "Anhänge", | ||
| "email.attachments.empty": "Keine Anhänge", | ||
| "email.attachments.download": "Anhang herunterladen", | ||
| "email.attachments.opening": "Öffnungsaufsatz {name}...", | ||
| "email.attachments.nestedUnavailable": "Die Vorschau verschachtelter Anhänge ist in dieser Umgebung nicht verfügbar. Laden Sie {name} herunter, um es zu überprüfen.", | ||
| "email.loading.parsing": "E-Mail wird analysiert...", | ||
| "data.font.sample": "Flyfish Viewer-Vorschau AaBbCc 1234567890", | ||
| "data.error.fontFaceUnsupported": "Dieser Browser unterstützt FontFace API nicht", | ||
| "data.title.font": "Vorschau der Schriftartdatei", | ||
| "data.title.sqlite": "Vorschau der SQLite-Datenbank", | ||
| "data.title.parquet": "Vorschau der Parquet-Spaltendaten", | ||
| "data.title.avro": "Vorschau des Avro-Objektcontainers", | ||
| "data.title.wasm": "Vorschau des WebAssembly-Moduls", | ||
| "data.title.eps": "Zusammenfassung der EPS-Vektordatei", | ||
| "data.title.ai": "Zusammenfassung der Illustrator-Datei", | ||
| "data.title.webarchive": "Vorschau der WebArchive-Zusammenfassung", | ||
| "data.title.summary": "Zusammenfassung der Datenbestände", | ||
| "data.label.format": "Format", | ||
| "data.label.size": "Größe", | ||
| "data.label.rendering": "Renderer", | ||
| "data.label.objects": "Objekte", | ||
| "data.label.sampleTable": "Beispieltisch", | ||
| "data.label.rows": "Reihen", | ||
| "data.label.columns": "Spalten", | ||
| "data.label.sampleRows": "Beispielzeilen", | ||
| "data.label.imports": "Importe", | ||
| "data.label.exports": "Exporte", | ||
| "data.label.magic": "Dateisignatur", | ||
| "data.label.note": "Notiz", | ||
| "data.label.container": "Container", | ||
| "data.value.schemaRead": "Lesen", | ||
| "data.value.schemaUnread": "Nicht gelesen", | ||
| "data.note.aiSummary": "Nicht PDF--kompatibel. AI wird als sichere Zusammenfassung angezeigt.", | ||
| "data.note.postscriptSummary": "Vorschau der PostScript-Zusammenfassung", | ||
| "data.note.webarchive": "Lesbare Fragmente werden sicher extrahiert. Webskripte werden nicht ausgeführt.", | ||
| "data.image.alt": "Asset-Vorschau", | ||
| "psd.title": "Vorschau der PSD-Ebene", | ||
| "psd.action.fit": "Fit", | ||
| "psd.action.showAll": "Alle anzeigen", | ||
| "psd.action.hideAll": "Alles ausblenden", | ||
| "psd.layers.title": "Schichten", | ||
| "psd.layers.redrawable": "{count} darstellbar", | ||
| "psd.layers.empty": "Es wurden keine anzeigbaren Layer gefunden. Zeigt das zusammengesetzte Bild.", | ||
| "psd.layers.hidden": "versteckt", | ||
| "drawing.error.viewerLoadFailed": "Der Diagramm-Viewer konnte nicht geladen werden", | ||
| "drawing.error.excalidrawEmpty": "Diese Excalidraw-Datei enthält keine vorschaubaren Elemente", | ||
| "drawing.error.excalidrawTimeout": "Zeitüberschreitung beim Excalidraw SVG-Export. Zurückgreifen auf den Rough.js-Renderer.", | ||
| "drawing.error.drawioParseFailed": "Fehler beim Parsen von Draw.io XML: {message}", | ||
| "drawing.error.drawioNoModel": "Diese Draw.io-Datei verfügt über kein direkt renderbares mxGraphModel.", | ||
| "drawing.error.drawioNoElements": "Diese Draw.io-Datei enthält keine vorschaubaren Elemente.", | ||
| "drawing.error.viewerInitFailed": "Der Diagramms.net-Viewer wurde nicht korrekt initialisiert", | ||
| "drawing.error.drawioTimeout": "Offizieller Diagramm-Viewer: Zeitüberschreitung. Zurückgreifen auf die lokale SVG-Vorschau.", | ||
| "drawing.error.svgParseFailed": "SVG konnte nicht analysiert werden", | ||
| "drawing.error.plantumlRenderFailed": "PlantUML SVG: {status} konnte nicht gerendert werden", | ||
| "drawing.title.excalidraw": "Vorschau von Excalidraw SVG", | ||
| "drawing.title.mermaid": "Mermaid-SVG-Vorschau", | ||
| "drawing.title.plantuml": "PlantUML SVG Vorschau", | ||
| "drawing.title.drawio": "Draw.io Offline-SVG-Vorschau", | ||
| "drawing.toolbar.zoomOut": "Herauszoomen", | ||
| "drawing.toolbar.zoomIn": "Vergrößern", | ||
| "drawing.toolbar.fit": "Fit", | ||
| "drawing.toolbar.fitWidth": "Breite anpassen", | ||
| "drawing.state.loading": "Zeichnungsvorschau wird geladen...", | ||
| "text.code.loadingHighlight": "Syntaxhervorhebung wird geladen...", | ||
| "text.code.indexingLargeFile": "Indizieren großer Dateien {progress}%", | ||
| "text.code.virtualized": "Große Datei · virtuelles Scrollen · Hervorheben aus", | ||
| "text.code.firstSegment": "Erster Abschnitt", | ||
| "text.code.previousSegment": "Vorheriges Segment", | ||
| "text.code.nextSegment": "Nächstes Segment", | ||
| "text.code.lastSegment": "Letztes Segment", | ||
| "ebook.toc": "Inhaltsverzeichnis", | ||
| "ebook.reading": "Lektüre", | ||
| "ebook.itemCount": "{count} Artikel", | ||
| "epub.title": "EPUB E-Book", | ||
| "epub.previousPage": "Vorherige", | ||
| "epub.nextPage": "Nächste", | ||
| "epub.loading": "EPUB wird analysiert...", | ||
| "epub.chapterFallback": "Kapitel {index}", | ||
| "epub.renderIncomplete": "EPUB-Inhalt wurde nicht vollständig gerendert. Aktualisieren Sie und versuchen Sie es erneut.", | ||
| "umd.title": "UMD E-Book", | ||
| "umd.previousChapter": "Vorheriges Kapitel", | ||
| "umd.nextChapter": "Nächstes Kapitel", | ||
| "umd.loading": "UMD wird analysiert...", | ||
| "umd.emptyContent": "Es wurde kein lesbarer Textinhalt geparst.", | ||
| "umd.chapterFallback": "Kapitel {index}", | ||
| "umd.galleryFallback": "Galerie {index}", | ||
| "umd.warningBodyTooShort": "Der UMD-Körper ist kürzer als angegeben und möglicherweise unvollständig.", | ||
| "umd.error.unexpectedEnd": "Die UMD-Struktur ist unvollständig und wurde unerwartet beendet.", | ||
| "umd.error.invalidFile": "Dies ist keine gültige UMD E-Book-Datei.", | ||
| "typst.summaryRenderer": "Geben Sie den Renderer WASM ein", | ||
| "typst.pageSummary.empty": "0 Seiten", | ||
| "typst.pageSummary.ready": "{count} Seiten / {width} x {height} Pkt", | ||
| "typst.status.compiling": "Kompilieren", | ||
| "typst.status.failed": "Kompilierung fehlgeschlagen", | ||
| "typst.status.rendered": "Gerendert", | ||
| "typst.loading.title": "Parsen von Typst", | ||
| "typst.loading.hint": "Laden des Compilers und Generieren von Seitenvorschauen ...", | ||
| "typst.error.title": "Typst-Rendering ist fehlgeschlagen", | ||
| "typst.error.timeout": "Typst WASM / Das Laden oder Kompilieren der Schriftart hat {seconds} Sekunden überschritten", | ||
| "typst.error.timeoutHint": "Überprüfen Sie die Download-Geschwindigkeit und die Cache-Strategie für den Typst-Compiler WASM, den Renderer WASM und das Schriftartenverzeichnis. Erhöhen Sie bei schwachen Netzwerken oder regionsübergreifenden Bereitstellungen options.typst.renderTimeoutMs.", | ||
| "typst.error.assetHint": "Typst erfordert lokale Compiler-/Renderer-WASM-Dateien und ein Schriftartenverzeichnis. Führen Sie file-viewer-copy-assets aus oder konfigurieren Sie options.typst.compilerWasmUrl / options.typst.rendererWasmUrl / options.typst.fontAssetsUrl und stellen Sie sicher, dass der Server WASM mit application/wasm zurückgibt.", | ||
| "typst.error.svgParseFailed": "Typst SVG konnte nicht analysiert werden", | ||
| "typst.error.wasmLoadFailed": "Typst WASM konnte nicht geladen werden", | ||
| "xmind.toolbar.zoomOut": "Herauszoomen", | ||
| "xmind.toolbar.zoomIn": "Vergrößern", | ||
| "xmind.toolbar.fit": "Fit", | ||
| "xmind.toolbar.fitTitle": "Leinwand montieren", | ||
| "xmind.state.loading": "XMind-Mindmap wird analysiert...", | ||
| "xmind.stats.nodes": "Knoten", | ||
| "xmind.stats.depth": "Tiefe", | ||
| "xmind.stats.theme": "Thema", | ||
| "xmind.stats.template": "Vorlage", | ||
| "xmind.badge.paused": "Angehalten", | ||
| "xmind.badge.collapsed": "Zusammengebrochen", | ||
| "xmind.badge.floating": "Schwebend", | ||
| "xmind.badge.summary": "Zusammenfassung", | ||
| "xmind.badge.callout": "Aufbieten, ausrufen, zurufen", | ||
| "xmind.imageResource": "Bildressource: {name}", | ||
| "xmind.error.unrecognized": "Unbekannte XMind-Datei: content.json oder content.xml wurde im ZIP-Paket nicht gefunden.", | ||
| "xmind.error.noCanvas": "Diese XMind-Datei verfügt über keine vorschaubare Leinwand.", | ||
| "cad.toolbar.fit": "Fit", | ||
| "cad.toolbar.zoomOut": "Herauszoomen", | ||
| "cad.toolbar.zoomIn": "Vergrößern", | ||
| "cad.layers.title": "Schichten", | ||
| "cad.layers.count": "{count} Artikel", | ||
| "cad.layers.merged": "{name} ({count} zusammengeführte Ebenen)", | ||
| "cad.inspector.title": "Struktur", | ||
| "cad.inspector.entities": "Entitäten", | ||
| "cad.inspector.blocks": "Blöcke", | ||
| "cad.inspector.pages": "Seiten", | ||
| "cad.inspector.drawn": "Gezogen", | ||
| "cad.state.loadingViewer": "CAD-Viewer wird geladen...", | ||
| "cad.state.parsing": "CAD wird analysiert...", | ||
| "cad.error.parseFailed": "Die CAD-Datei konnte nicht analysiert werden", | ||
| "image.alt": "Bild", | ||
| "image.toolbar.rotation": "Bilddrehung", | ||
| "image.toolbar.rotateLeft": "Bild nach links drehen", | ||
| "image.toolbar.rotateRight": "Bild nach rechts drehen", | ||
| "image.lightbox.alt": "Bildvorschau", | ||
| "image.lightbox.close": "Bildvorschau schließen", | ||
| "gitBundle.error.invalid": "Diese Datei ist kein gültiges Git-Bundle.", | ||
| "gitBundle.error.missingPack": "Nach dem Git-Bundle-Header wurden keine PACK-Daten gefunden.", | ||
| "gitBundle.notice.delta": "Dieses Bundle enthält deltakomprimierte Objekte. Der Viewer löst allgemeine OFS_DELTA-/REF_DELTA-Objekte im Browser auf. Fehlende Dateien weisen normalerweise auf ein sehr großes Bundle, zu viele Objekte oder eine externe Voraussetzung hin.", | ||
| "gitBundle.title.history": "Geschichte", | ||
| "gitBundle.title.fileTree": "Dateibaum", | ||
| "gitBundle.file.choose": "Wählen Sie eine Datei zur Überprüfung aus", | ||
| "gitBundle.file.noTree": "Die Baum-/Blob-Objekte in diesem Bundle sind möglicherweise deltakomprimiert und es wurden keine erweiterbaren Dateien analysiert.", | ||
| "gitBundle.file.none": "Keine Dateien analysiert", | ||
| "gitBundle.history.empty": "Es wurden keine Commit-Objekte analysiert. Es werden nur Referenzen und Paketzusammenfassung angezeigt.", | ||
| "gitBundle.toolbar.summary": "{commits}-Commits · {files}-Dateien", | ||
| "gitBundle.meta.bundle": "Bündeln", | ||
| "gitBundle.meta.refs": "Refs", | ||
| "gitBundle.meta.commits": "Commits", | ||
| "gitBundle.meta.objects": "Objekte", | ||
| "gitBundle.meta.deltas": "Deltas", | ||
| "gitBundle.meta.objectFormat": "Objektformat", | ||
| "gitBundle.meta.objectTypes": "Objekttypen", | ||
| "geo.error.unrecognized": "Nicht erkannte GeoJSON-Daten", | ||
| "geo.error.xmlParseFailed": "XML konnte nicht analysiert werden", | ||
| "geo.error.unsupported": "Das Geodatenformat .{type} wird nicht unterstützt", | ||
| "geo.title": "Geodatenvorschau", | ||
| "geo.featureCount": "Merkmale", | ||
| "geo.bounds": "Grenzen", | ||
| "geo.geometryTypes": "Geometrietypen", | ||
| "geo.aria": "Geodaten-SVG-Vorschau", | ||
| "geo.loading": "Geodaten werden analysiert...", | ||
| "geo.projection": "Projektion", | ||
| "geo.engine": "Renderer", | ||
| "geo.basemap": "Grundkarte", | ||
| "geo.basemap.offline": "Offline leere Grundkarte", | ||
| "geo.basemap.custom": "Benutzerdefinierte Kacheln", | ||
| "geo.engine.maplibre": "MapLibre-Vektorkarte", | ||
| "geo.engine.svg": "SVG-Fallback", | ||
| "geo.error.projection": "Geodatenprojektion fehlgeschlagen: {reason}", | ||
| "geo.action.fit": "Grenzen anpassen", | ||
| "model.toolbar.fit": "Fit", | ||
| "model.toolbar.rotate": "Drehen", | ||
| "model.toolbar.wireframe": "Drahtmodell", | ||
| "model.toolbar.grid": "Raster", | ||
| "model.toolbar.axes": "Achsen", | ||
| "model.state.loadingSummary": "Modell wird geladen", | ||
| "model.state.loading": "3D-Modell wird analysiert...", | ||
| "model.state.loaded": "Modell geladen", | ||
| "model.state.parseFailed": "Modell konnte nicht analysiert werden", | ||
| "model.summary.meshes": "{count}-Maschen", | ||
| "model.summary.points": "{count} Punktwolken", | ||
| "model.error.daeEmpty": "Das DAE-Modell enthielt keine gültige Szene.", | ||
| "model.error.unsupported": "Das Modellformat .{type} wird noch nicht unterstützt", | ||
| "model.error.parseFailed": "Das {type}-Modell konnte nicht analysiert werden", | ||
| "model.notice.signature": "Erkannte Dateisignatur: {signature}.", | ||
| "loading.generic.label": "Dateiinhalt", | ||
| "loading.generic.hint": "Vorbereiten der Inhaltsstruktur und Vorschau.", | ||
| "loading.word.label": "Word-Dokument", | ||
| "loading.word.hint": "Vorbereiten von Dokumentstruktur, Textstilen und Layout.", | ||
| "loading.wordWorker.hint": "Dokumentstruktur, Textstile und Layout in einem Worker vorbereiten.", | ||
| "loading.sheet.label": "Excel-Arbeitsmappe", | ||
| "loading.sheet.hint": "Vorbereiten von Arbeitsblättern, Stilen und Ansichtsfensterdaten.", | ||
| "loading.csv.label": "Tabellarische Daten", | ||
| "loading.csv.hint": "Vorbereiten von Zeilen, Spalten und grundlegendem Stil.", | ||
| "loading.presentation.label": "PowerPoint-Deck", | ||
| "loading.presentation.hint": "Erstellen von Folienlayout und Medieninhalten.", | ||
| "loading.pdf.label": "PDF-Dokument", | ||
| "loading.pdf.hint": "Laden von Seitenbitmaps, Textebenen und Zoomansicht.", | ||
| "loading.ofd.label": "OFD Layoutdokument", | ||
| "loading.ofd.hint": "Parsen von OFD-Seiten und Layoutobjekten.", | ||
| "loading.archive.label": "Archiv", | ||
| "loading.archive.hint": "Worker starten und Archiveinträge lesen.", | ||
| "loading.email.label": "E-Mail-Datei", | ||
| "loading.email.hint": "Analysieren von Nachrichtenkopfzeilen, -text und -anhängen.", | ||
| "loading.msg.hint": "Analysieren von Outlook-Nachrichten und -Anhängen.", | ||
| "loading.eda.label": "EDA-Datei", | ||
| "loading.eda.hint": "Lesen der EDA-Containerstruktur und -Eigenschaften.", | ||
| "loading.cad.label": "CAD-Zeichnung", | ||
| "loading.cad.hint": "Vorbereiten von CAD-Ebenen, Geometrie und Leinwandansicht.", | ||
| "loading.dwg.hint": "Laden der DWG-Geometrie und LibreDWG WASM in einen Worker.", | ||
| "loading.dwf.hint": "Laden des nativen DWF-Renderers und der W2D/W3D-Grafiken.", | ||
| "loading.dwfx.hint": "Laden des nativen DWFx/XPS-Renderers und der Seitengrafiken.", | ||
| "loading.xps.hint": "Laden des nativen XPS-Renderers und eingebetteter Schriftarten.", | ||
| "loading.drawio.label": "draw.io-Diagramm", | ||
| "loading.drawio.hint": "Analysieren von Formen, Anschlüssen und SVG-Vorschau.", | ||
| "loading.excalidraw.label": "Excalidraw-Szene", | ||
| "loading.excalidraw.hint": "Analysieren handgezeichneter Elemente und Generieren sicherer SVG.", | ||
| "loading.epub.label": "EPUB E-Book", | ||
| "loading.epub.hint": "Inhaltsverzeichnis, Kapitelressourcen und Leseseiten analysieren.", | ||
| "loading.umd.label": "UMD E-Book", | ||
| "loading.umd.hint": "Analysieren von Metadaten, Inhaltsverzeichnissen und komprimierten Kapiteln für mobile E-Books.", | ||
| "loading.image.label": "Bilddatei", | ||
| "loading.image.hint": "Pixel dekodieren und Vorschau erstellen.", | ||
| "loading.video.label": "Videodatei", | ||
| "loading.video.hint": "Medienressource und Player vorbereiten.", | ||
| "loading.audio.label": "Audiodatei", | ||
| "loading.audio.hint": "Vorbereiten von Audioressourcen und Wiedergabesteuerungen.", | ||
| }; |
| export declare const DEFAULT_RENDERER_DEFINITIONS: readonly [{ | ||
| readonly id: "office-word-openxml"; | ||
| readonly label: "Word OpenXML"; | ||
| readonly category: "office"; | ||
| readonly extensions: readonly ["docx", "docm", "dotx", "dotm"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "high-fidelity"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-word"; | ||
| readonly presets: readonly ["office", "all"]; | ||
| readonly containerVersions: readonly ["OOXML Transitional", "OOXML Strict"]; | ||
| readonly knownLimits: readonly ["VBA is never executed"]; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: "adapter"; | ||
| readonly exportHtml: "adapter"; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "office-word-binary"; | ||
| readonly label: "Word Binary"; | ||
| readonly category: "office"; | ||
| readonly extensions: readonly ["doc", "dot"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-word"; | ||
| readonly presets: readonly ["office", "all"]; | ||
| readonly containerVersions: readonly ["Word 97-2003 Binary"]; | ||
| readonly knownLimits: readonly ["Macros are never executed"]; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: "adapter"; | ||
| readonly exportHtml: "adapter"; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "office-presentation-binary"; | ||
| readonly label: "PowerPoint 97–2003"; | ||
| readonly category: "office"; | ||
| readonly extensions: readonly ["ppt", "pot"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-presentation"; | ||
| readonly presets: readonly ["office", "all"]; | ||
| readonly containerVersions: readonly ["PowerPoint 97-2003 Binary"]; | ||
| readonly knownLimits: readonly ["Embedded engine watermark is retained", "Macros are never executed"]; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: "adapter"; | ||
| readonly exportHtml: "adapter"; | ||
| readonly zoom: "provider"; | ||
| readonly search: false; | ||
| }; | ||
| }, { | ||
| readonly id: "office-presentation"; | ||
| readonly label: "PowerPoint OpenXML"; | ||
| readonly category: "office"; | ||
| readonly extensions: readonly ["pptx", "pptm", "potx", "potm", "ppsx", "ppsm"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "high-fidelity"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-presentation"; | ||
| readonly presets: readonly ["office", "all"]; | ||
| readonly containerVersions: readonly ["OOXML Transitional", "OOXML Strict"]; | ||
| readonly knownLimits: readonly ["Macros and external programs are never executed"]; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: true; | ||
| readonly exportHtml: true; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "open-document"; | ||
| readonly label: "Open Document"; | ||
| readonly category: "office"; | ||
| readonly extensions: readonly ["rtf", "odt", "odp"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-word"; | ||
| readonly presets: readonly ["office", "all"]; | ||
| readonly containerVersions: readonly ["RTF", "OpenDocument"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: true; | ||
| readonly exportHtml: true; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "spreadsheet-openxml"; | ||
| readonly label: "Spreadsheet"; | ||
| readonly category: "office"; | ||
| readonly extensions: readonly ["xlsx", "xltx", "xlsm", "xlsb", "xls", "xlt", "xla", "xlam", "xltm", "csv", "tsv", "ods", "fods"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-spreadsheet"; | ||
| readonly presets: readonly ["office", "all"]; | ||
| readonly containerVersions: readonly ["OOXML", "BIFF", "OpenDocument", "Delimited text"]; | ||
| readonly knownLimits: readonly ["VBA and add-in code are never executed", "Formula results are read from the saved workbook cache"]; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: false; | ||
| readonly exportHtml: false; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "apple-pages"; | ||
| readonly label: "Apple Pages"; | ||
| readonly category: "office"; | ||
| readonly extensions: readonly ["pages"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "high-fidelity"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-iwork"; | ||
| readonly presets: readonly ["office", "all"]; | ||
| readonly containerVersions: readonly ["iWork '09 index.xml(.gz)", "iWork 2013+ IWA"]; | ||
| readonly knownLimits: readonly ["Static preview only", "Encrypted iwpv2 files are detected but not decrypted"]; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: "adapter"; | ||
| readonly exportHtml: "adapter"; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "apple-numbers"; | ||
| readonly label: "Apple Numbers"; | ||
| readonly category: "office"; | ||
| readonly extensions: readonly ["numbers"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "high-fidelity"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-iwork"; | ||
| readonly presets: readonly ["office", "all"]; | ||
| readonly containerVersions: readonly ["iWork '09 index.xml", "iWork 2013+ IWA"]; | ||
| readonly knownLimits: readonly ["Formula results are read from the saved document cache", "Encrypted iwpv2 files are detected but not decrypted"]; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: "adapter"; | ||
| readonly exportHtml: "adapter"; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "apple-keynote"; | ||
| readonly label: "Apple Keynote"; | ||
| readonly category: "office"; | ||
| readonly extensions: readonly ["key"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "high-fidelity"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-iwork"; | ||
| readonly presets: readonly ["office", "all"]; | ||
| readonly containerVersions: readonly ["iWork '09 index.apxl", "iWork 2013+ IWA"]; | ||
| readonly knownLimits: readonly ["Animations, transitions and video playback are not executed", "Encrypted iwpv2 files are detected but not decrypted"]; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: "adapter"; | ||
| readonly exportHtml: "adapter"; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "office-wordperfect"; | ||
| readonly label: "WordPerfect"; | ||
| readonly category: "office"; | ||
| readonly extensions: readonly ["wpd", "wp", "wp5", "wp6"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-wordperfect"; | ||
| readonly presets: readonly ["office", "all"]; | ||
| readonly containerVersions: readonly ["WordPerfect 4.2", "WordPerfect 5.x", "WordPerfect 6+"]; | ||
| readonly knownLimits: readonly ["Macros are never executed", ".wp5 and .wp6 are routing aliases for genuine WP5/WP6 payloads, not separate container formats", "Pagination and unsupported embedded objects are presented as structured static preview"]; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: "adapter"; | ||
| readonly exportHtml: "adapter"; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "spreadsheet-dbf"; | ||
| readonly label: "dBASE Table"; | ||
| readonly category: "office"; | ||
| readonly extensions: readonly ["dbf"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-spreadsheet"; | ||
| readonly presets: readonly ["office", "all"]; | ||
| readonly containerVersions: readonly ["dBASE III/IV", "Visual FoxPro"]; | ||
| readonly knownLimits: readonly ["Missing DBT/FPT memo sidecars are reported as incomplete"]; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: false; | ||
| readonly exportHtml: false; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "pdf"; | ||
| readonly label: "PDF"; | ||
| readonly category: "document"; | ||
| readonly extensions: readonly ["pdf"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "high-fidelity"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-pdf"; | ||
| readonly presets: readonly ["office", "all"]; | ||
| readonly containerVersions: readonly ["PDF"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: "adapter"; | ||
| readonly exportHtml: "adapter"; | ||
| readonly zoom: "provider"; | ||
| readonly search: "provider"; | ||
| }; | ||
| }, { | ||
| readonly id: "ofd"; | ||
| readonly label: "OFD"; | ||
| readonly category: "document"; | ||
| readonly extensions: readonly ["ofd"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-ofd"; | ||
| readonly presets: readonly ["office", "all"]; | ||
| readonly containerVersions: readonly ["OFD"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: true; | ||
| readonly exportHtml: true; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "office-hangul"; | ||
| readonly label: "Hancom Hangul"; | ||
| readonly category: "office"; | ||
| readonly extensions: readonly ["hwp", "hwpx"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-hangul"; | ||
| readonly presets: readonly ["office", "all"]; | ||
| readonly containerVersions: readonly ["HWP v5 CFB", "HWPX ZIP/XML"]; | ||
| readonly knownLimits: readonly ["Encrypted, DRM-protected and distribution documents are detected but not decrypted", "Charts, OLE objects and advanced drawing effects remain limited in the static structured preview", "HWP v5 pagination is approximated when the binary producer omits usable page geometry"]; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: "adapter"; | ||
| readonly exportHtml: "adapter"; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "typst"; | ||
| readonly label: "Typst"; | ||
| readonly category: "document"; | ||
| readonly extensions: readonly ["typ", "typst"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "high-fidelity"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-typst"; | ||
| readonly presets: readonly ["all"]; | ||
| readonly containerVersions: readonly ["Typst source"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: "adapter"; | ||
| readonly exportHtml: "adapter"; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "archive"; | ||
| readonly label: "Archive"; | ||
| readonly category: "archive"; | ||
| readonly extensions: readonly ["zip", "zipx", "7z", "rar", "tar", "gz", "gzip", "tgz", "bz2", "bzip2", "tbz", "tbz2", "xz", "txz", "lzma", "zst", "tzst", "cab", "ar", "cpio", "iso", "xar", "lha", "lzh", "jar", "war", "ear", "apk", "cbz", "cbr"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-archive"; | ||
| readonly presets: readonly ["all"]; | ||
| readonly containerVersions: readonly ["libarchive-supported containers"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: false; | ||
| readonly exportHtml: false; | ||
| readonly zoom: false; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "email"; | ||
| readonly label: "Email"; | ||
| readonly category: "email"; | ||
| readonly extensions: readonly ["eml", "msg", "mbox"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-email"; | ||
| readonly presets: readonly ["all"]; | ||
| readonly containerVersions: readonly ["MIME", "Outlook MSG", "mbox"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: false; | ||
| readonly exportHtml: true; | ||
| readonly zoom: false; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "eda"; | ||
| readonly label: "EDA"; | ||
| readonly category: "eda"; | ||
| readonly extensions: readonly ["olb", "dra", "gds", "oas", "oasis"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-eda"; | ||
| readonly presets: readonly ["engineering", "all"]; | ||
| readonly containerVersions: readonly ["OrCAD", "GDSII", "OASIS"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: true; | ||
| readonly exportHtml: true; | ||
| readonly zoom: false; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "cad"; | ||
| readonly label: "CAD"; | ||
| readonly category: "cad"; | ||
| readonly extensions: readonly ["dxf", "dwg", "dwf", "dwfx", "xps"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "high-fidelity"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-cad"; | ||
| readonly presets: readonly ["engineering", "all"]; | ||
| readonly containerVersions: readonly ["DWG", "DXF", "DWF", "DWFX/XPS"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: true; | ||
| readonly exportHtml: true; | ||
| readonly zoom: "provider"; | ||
| readonly search: false; | ||
| }; | ||
| }, { | ||
| readonly id: "model"; | ||
| readonly label: "3D Model"; | ||
| readonly category: "model"; | ||
| readonly extensions: readonly ["glb", "gltf", "obj", "stl", "ply", "fbx", "dae", "3ds", "3mf", "amf", "usd", "usda", "usdc", "usdz", "kmz", "step", "stp", "iges", "igs", "ifc", "3dm", "brep", "pcd", "wrl", "vrml", "xyz", "vtk", "vtp"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-3d"; | ||
| readonly presets: readonly ["engineering", "all"]; | ||
| readonly containerVersions: readonly ["Mesh", "CAD exchange", "scene"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: false; | ||
| readonly exportHtml: false; | ||
| readonly zoom: "provider"; | ||
| readonly search: false; | ||
| }; | ||
| }, { | ||
| readonly id: "geo"; | ||
| readonly label: "Geospatial"; | ||
| readonly category: "geo"; | ||
| readonly extensions: readonly ["geojson", "kml", "gpx", "shp"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-geo"; | ||
| readonly presets: readonly ["engineering", "all"]; | ||
| readonly containerVersions: readonly ["GeoJSON", "KML", "GPX", "Shapefile"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: true; | ||
| readonly exportHtml: true; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "drawing"; | ||
| readonly label: "Drawing"; | ||
| readonly category: "drawing"; | ||
| readonly extensions: readonly ["excalidraw", "drawio", "dio", "mermaid", "mmd", "plantuml", "puml"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-drawing"; | ||
| readonly presets: readonly ["all"]; | ||
| readonly containerVersions: readonly ["Draw.io", "Excalidraw", "Mermaid", "PlantUML"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: true; | ||
| readonly exportHtml: true; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "mindmap"; | ||
| readonly label: "Mind Map"; | ||
| readonly category: "mindmap"; | ||
| readonly extensions: readonly ["xmind"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-mindmap"; | ||
| readonly presets: readonly ["all"]; | ||
| readonly containerVersions: readonly ["XMind"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: true; | ||
| readonly exportHtml: true; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "epub"; | ||
| readonly label: "EPUB"; | ||
| readonly category: "ebook"; | ||
| readonly extensions: readonly ["epub"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "high-fidelity"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-epub"; | ||
| readonly presets: readonly ["all"]; | ||
| readonly containerVersions: readonly ["EPUB 2", "EPUB 3"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: false; | ||
| readonly exportHtml: true; | ||
| readonly zoom: false; | ||
| readonly search: "provider"; | ||
| }; | ||
| }, { | ||
| readonly id: "ebook-fb2"; | ||
| readonly label: "FictionBook"; | ||
| readonly category: "ebook"; | ||
| readonly extensions: readonly ["fb2"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-epub"; | ||
| readonly presets: readonly ["all"]; | ||
| readonly containerVersions: readonly ["FictionBook 2 XML"]; | ||
| readonly knownLimits: readonly ["External network resources are not loaded"]; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: true; | ||
| readonly exportHtml: true; | ||
| readonly zoom: false; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "umd"; | ||
| readonly label: "UMD"; | ||
| readonly category: "ebook"; | ||
| readonly extensions: readonly ["umd"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-epub"; | ||
| readonly presets: readonly ["all"]; | ||
| readonly containerVersions: readonly ["UMD"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: true; | ||
| readonly exportHtml: true; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "image"; | ||
| readonly label: "Image"; | ||
| readonly category: "image"; | ||
| readonly extensions: readonly ["gif", "jpg", "jpeg", "bmp", "tiff", "tif", "png", "svg", "webp", "avif", "ico", "heic", "heif", "jxl"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "high-fidelity"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-image"; | ||
| readonly presets: readonly ["lite", "all"]; | ||
| readonly containerVersions: readonly ["Raster", "SVG"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: true; | ||
| readonly exportHtml: true; | ||
| readonly zoom: "provider"; | ||
| readonly search: false; | ||
| }; | ||
| }, { | ||
| readonly id: "markdown"; | ||
| readonly label: "Markdown"; | ||
| readonly category: "markdown"; | ||
| readonly extensions: readonly ["md", "markdown"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-text"; | ||
| readonly presets: readonly ["lite", "all"]; | ||
| readonly containerVersions: readonly ["CommonMark/GFM"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: true; | ||
| readonly exportHtml: true; | ||
| readonly zoom: false; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "code"; | ||
| readonly label: "Code and Text"; | ||
| readonly category: "code"; | ||
| readonly extensions: readonly ["txt", "json", "js", "mjs", "cjs", "css", "java", "py", "html", "htm", "jsx", "ts", "tsx", "xml", "log", "vue", "yaml", "yml", "ini", "sh", "bash", "sql", "go", "rs", "php", "c", "cpp", "cc", "h", "hpp", "cs", "diff", "patch", "bundle", "bdl", "jsonc", "json5", "ipynb", "toml", "proto", "hcl", "tex", "gv", "http", "react", "rb", "swift", "kt"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-text"; | ||
| readonly presets: readonly ["lite", "all"]; | ||
| readonly containerVersions: readonly ["Plain text", "source code", "Git bundle"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: true; | ||
| readonly exportHtml: true; | ||
| readonly zoom: false; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "video"; | ||
| readonly label: "Video"; | ||
| readonly category: "media"; | ||
| readonly extensions: readonly ["mp4", "webm", "m3u8"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "high-fidelity"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-media"; | ||
| readonly presets: readonly ["lite", "all"]; | ||
| readonly containerVersions: readonly ["Browser media"]; | ||
| readonly knownLimits: readonly ["Codec support follows the browser"]; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: false; | ||
| readonly exportHtml: false; | ||
| readonly zoom: false; | ||
| readonly search: false; | ||
| }; | ||
| }, { | ||
| readonly id: "audio"; | ||
| readonly label: "Audio"; | ||
| readonly category: "media"; | ||
| readonly extensions: readonly ["mp3", "mpeg", "wav", "ogg", "oga", "opus", "m4a", "aac", "flac", "weba", "midi", "mid"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "high-fidelity"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-media"; | ||
| readonly presets: readonly ["lite", "all"]; | ||
| readonly containerVersions: readonly ["Browser media", "MIDI"]; | ||
| readonly knownLimits: readonly ["Codec support follows the browser"]; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: false; | ||
| readonly exportHtml: false; | ||
| readonly zoom: false; | ||
| readonly search: false; | ||
| }; | ||
| }, { | ||
| readonly id: "data-asset"; | ||
| readonly label: "Data Asset"; | ||
| readonly category: "asset"; | ||
| readonly extensions: readonly ["ttf", "otf", "woff", "woff2", "psd", "ai", "eps", "sqlite", "wasm", "parquet", "avro", "webarchive"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-data"; | ||
| readonly presets: readonly ["all"]; | ||
| readonly containerVersions: readonly ["Font", "design", "database", "binary data"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: false; | ||
| readonly exportHtml: true; | ||
| readonly zoom: false; | ||
| readonly search: true; | ||
| }; | ||
| }]; | ||
| export declare const DEFAULT_REGISTERED_EXTENSIONS: readonly ("markdown" | "webp" | "jpeg" | "png" | "xyz" | "wasm" | "pdf" | "typst" | "js" | "html" | "svg" | "rb" | "docx" | "docm" | "dotx" | "dotm" | "doc" | "dot" | "ppt" | "pot" | "pptx" | "pptm" | "potx" | "potm" | "ppsx" | "ppsm" | "rtf" | "odt" | "odp" | "xlsx" | "xltx" | "xlsm" | "xlsb" | "xls" | "xlt" | "xla" | "xlam" | "xltm" | "csv" | "tsv" | "ods" | "fods" | "pages" | "numbers" | "key" | "wpd" | "wp" | "wp5" | "wp6" | "dbf" | "ofd" | "hwp" | "hwpx" | "typ" | "zip" | "zipx" | "7z" | "rar" | "tar" | "gz" | "gzip" | "tgz" | "bz2" | "bzip2" | "tbz" | "tbz2" | "xz" | "txz" | "lzma" | "zst" | "tzst" | "cab" | "ar" | "cpio" | "iso" | "xar" | "lha" | "lzh" | "jar" | "war" | "ear" | "apk" | "cbz" | "cbr" | "eml" | "msg" | "mbox" | "olb" | "dra" | "gds" | "oas" | "oasis" | "dxf" | "dwg" | "dwf" | "dwfx" | "xps" | "glb" | "gltf" | "obj" | "stl" | "ply" | "fbx" | "dae" | "3ds" | "3mf" | "amf" | "usd" | "usda" | "usdc" | "usdz" | "kmz" | "step" | "stp" | "iges" | "igs" | "ifc" | "3dm" | "brep" | "pcd" | "wrl" | "vrml" | "vtk" | "vtp" | "geojson" | "kml" | "gpx" | "shp" | "excalidraw" | "drawio" | "dio" | "mermaid" | "mmd" | "plantuml" | "puml" | "xmind" | "epub" | "fb2" | "umd" | "gif" | "jpg" | "bmp" | "tiff" | "tif" | "avif" | "ico" | "heic" | "heif" | "jxl" | "md" | "txt" | "json" | "mjs" | "cjs" | "css" | "java" | "py" | "htm" | "jsx" | "ts" | "tsx" | "xml" | "log" | "vue" | "yaml" | "yml" | "ini" | "sh" | "bash" | "sql" | "go" | "rs" | "php" | "c" | "cpp" | "cc" | "h" | "hpp" | "cs" | "diff" | "patch" | "bundle" | "bdl" | "jsonc" | "json5" | "ipynb" | "toml" | "proto" | "hcl" | "tex" | "gv" | "http" | "react" | "swift" | "kt" | "mp4" | "webm" | "m3u8" | "mp3" | "mpeg" | "wav" | "ogg" | "oga" | "opus" | "m4a" | "aac" | "flac" | "weba" | "midi" | "mid" | "ttf" | "otf" | "woff" | "woff2" | "psd" | "ai" | "eps" | "sqlite" | "parquet" | "avro" | "webarchive")[]; | ||
| export declare const DEFAULT_STABLE_SUPPORTED_EXTENSIONS: readonly ("markdown" | "webp" | "jpeg" | "png" | "xyz" | "wasm" | "pdf" | "typst" | "js" | "html" | "svg" | "rb" | "docx" | "docm" | "dotx" | "dotm" | "doc" | "dot" | "ppt" | "pot" | "pptx" | "pptm" | "potx" | "potm" | "ppsx" | "ppsm" | "rtf" | "odt" | "odp" | "xlsx" | "xltx" | "xlsm" | "xlsb" | "xls" | "xlt" | "xla" | "xlam" | "xltm" | "csv" | "tsv" | "ods" | "fods" | "pages" | "numbers" | "key" | "wpd" | "wp" | "wp5" | "wp6" | "dbf" | "ofd" | "hwp" | "hwpx" | "typ" | "zip" | "zipx" | "7z" | "rar" | "tar" | "gz" | "gzip" | "tgz" | "bz2" | "bzip2" | "tbz" | "tbz2" | "xz" | "txz" | "lzma" | "zst" | "tzst" | "cab" | "ar" | "cpio" | "iso" | "xar" | "lha" | "lzh" | "jar" | "war" | "ear" | "apk" | "cbz" | "cbr" | "eml" | "msg" | "mbox" | "olb" | "dra" | "gds" | "oas" | "oasis" | "dxf" | "dwg" | "dwf" | "dwfx" | "xps" | "glb" | "gltf" | "obj" | "stl" | "ply" | "fbx" | "dae" | "3ds" | "3mf" | "amf" | "usd" | "usda" | "usdc" | "usdz" | "kmz" | "step" | "stp" | "iges" | "igs" | "ifc" | "3dm" | "brep" | "pcd" | "wrl" | "vrml" | "vtk" | "vtp" | "geojson" | "kml" | "gpx" | "shp" | "excalidraw" | "drawio" | "dio" | "mermaid" | "mmd" | "plantuml" | "puml" | "xmind" | "epub" | "fb2" | "umd" | "gif" | "jpg" | "bmp" | "tiff" | "tif" | "avif" | "ico" | "heic" | "heif" | "jxl" | "md" | "txt" | "json" | "mjs" | "cjs" | "css" | "java" | "py" | "htm" | "jsx" | "ts" | "tsx" | "xml" | "log" | "vue" | "yaml" | "yml" | "ini" | "sh" | "bash" | "sql" | "go" | "rs" | "php" | "c" | "cpp" | "cc" | "h" | "hpp" | "cs" | "diff" | "patch" | "bundle" | "bdl" | "jsonc" | "json5" | "ipynb" | "toml" | "proto" | "hcl" | "tex" | "gv" | "http" | "react" | "swift" | "kt" | "mp4" | "webm" | "m3u8" | "mp3" | "mpeg" | "wav" | "ogg" | "oga" | "opus" | "m4a" | "aac" | "flac" | "weba" | "midi" | "mid" | "ttf" | "otf" | "woff" | "woff2" | "psd" | "ai" | "eps" | "sqlite" | "parquet" | "avro" | "webarchive")[]; | ||
| /** @deprecated Use DEFAULT_REGISTERED_EXTENSIONS when the experimental/stable distinction matters. */ | ||
| export declare const DEFAULT_SUPPORTED_EXTENSIONS: readonly ("markdown" | "webp" | "jpeg" | "png" | "xyz" | "wasm" | "pdf" | "typst" | "js" | "html" | "svg" | "rb" | "docx" | "docm" | "dotx" | "dotm" | "doc" | "dot" | "ppt" | "pot" | "pptx" | "pptm" | "potx" | "potm" | "ppsx" | "ppsm" | "rtf" | "odt" | "odp" | "xlsx" | "xltx" | "xlsm" | "xlsb" | "xls" | "xlt" | "xla" | "xlam" | "xltm" | "csv" | "tsv" | "ods" | "fods" | "pages" | "numbers" | "key" | "wpd" | "wp" | "wp5" | "wp6" | "dbf" | "ofd" | "hwp" | "hwpx" | "typ" | "zip" | "zipx" | "7z" | "rar" | "tar" | "gz" | "gzip" | "tgz" | "bz2" | "bzip2" | "tbz" | "tbz2" | "xz" | "txz" | "lzma" | "zst" | "tzst" | "cab" | "ar" | "cpio" | "iso" | "xar" | "lha" | "lzh" | "jar" | "war" | "ear" | "apk" | "cbz" | "cbr" | "eml" | "msg" | "mbox" | "olb" | "dra" | "gds" | "oas" | "oasis" | "dxf" | "dwg" | "dwf" | "dwfx" | "xps" | "glb" | "gltf" | "obj" | "stl" | "ply" | "fbx" | "dae" | "3ds" | "3mf" | "amf" | "usd" | "usda" | "usdc" | "usdz" | "kmz" | "step" | "stp" | "iges" | "igs" | "ifc" | "3dm" | "brep" | "pcd" | "wrl" | "vrml" | "vtk" | "vtp" | "geojson" | "kml" | "gpx" | "shp" | "excalidraw" | "drawio" | "dio" | "mermaid" | "mmd" | "plantuml" | "puml" | "xmind" | "epub" | "fb2" | "umd" | "gif" | "jpg" | "bmp" | "tiff" | "tif" | "avif" | "ico" | "heic" | "heif" | "jxl" | "md" | "txt" | "json" | "mjs" | "cjs" | "css" | "java" | "py" | "htm" | "jsx" | "ts" | "tsx" | "xml" | "log" | "vue" | "yaml" | "yml" | "ini" | "sh" | "bash" | "sql" | "go" | "rs" | "php" | "c" | "cpp" | "cc" | "h" | "hpp" | "cs" | "diff" | "patch" | "bundle" | "bdl" | "jsonc" | "json5" | "ipynb" | "toml" | "proto" | "hcl" | "tex" | "gv" | "http" | "react" | "swift" | "kt" | "mp4" | "webm" | "m3u8" | "mp3" | "mpeg" | "wav" | "ogg" | "oga" | "opus" | "m4a" | "aac" | "flac" | "weba" | "midi" | "mid" | "ttf" | "otf" | "woff" | "woff2" | "psd" | "ai" | "eps" | "sqlite" | "parquet" | "avro" | "webarchive")[]; |
| export const DEFAULT_RENDERER_DEFINITIONS = [ | ||
| { | ||
| "id": "office-word-openxml", | ||
| "label": "Word OpenXML", | ||
| "category": "office", | ||
| "extensions": [ | ||
| "docx", | ||
| "docm", | ||
| "dotx", | ||
| "dotm" | ||
| ], | ||
| "async": true, | ||
| "supportLevel": "high-fidelity", | ||
| "status": "stable", | ||
| "packageName": "@file-viewer/renderer-word", | ||
| "presets": [ | ||
| "office", | ||
| "all" | ||
| ], | ||
| "containerVersions": [ | ||
| "OOXML Transitional", | ||
| "OOXML Strict" | ||
| ], | ||
| "knownLimits": [ | ||
| "VBA is never executed" | ||
| ], | ||
| "capabilities": { | ||
| "download": true, | ||
| "print": "adapter", | ||
| "exportHtml": "adapter", | ||
| "zoom": "provider", | ||
| "search": true | ||
| } | ||
| }, | ||
| { | ||
| "id": "office-word-binary", | ||
| "label": "Word Binary", | ||
| "category": "office", | ||
| "extensions": [ | ||
| "doc", | ||
| "dot" | ||
| ], | ||
| "async": true, | ||
| "supportLevel": "structured", | ||
| "status": "stable", | ||
| "packageName": "@file-viewer/renderer-word", | ||
| "presets": [ | ||
| "office", | ||
| "all" | ||
| ], | ||
| "containerVersions": [ | ||
| "Word 97-2003 Binary" | ||
| ], | ||
| "knownLimits": [ | ||
| "Macros are never executed" | ||
| ], | ||
| "capabilities": { | ||
| "download": true, | ||
| "print": "adapter", | ||
| "exportHtml": "adapter", | ||
| "zoom": "provider", | ||
| "search": true | ||
| } | ||
| }, | ||
| { | ||
| "id": "office-presentation-binary", | ||
| "label": "PowerPoint 97–2003", | ||
| "category": "office", | ||
| "extensions": [ | ||
| "ppt", | ||
| "pot" | ||
| ], | ||
| "async": true, | ||
| "supportLevel": "structured", | ||
| "status": "stable", | ||
| "packageName": "@file-viewer/renderer-presentation", | ||
| "presets": [ | ||
| "office", | ||
| "all" | ||
| ], | ||
| "containerVersions": [ | ||
| "PowerPoint 97-2003 Binary" | ||
| ], | ||
| "knownLimits": [ | ||
| "Embedded engine watermark is retained", | ||
| "Macros are never executed" | ||
| ], | ||
| "capabilities": { | ||
| "download": true, | ||
| "print": "adapter", | ||
| "exportHtml": "adapter", | ||
| "zoom": "provider", | ||
| "search": false | ||
| } | ||
| }, | ||
| { | ||
| "id": "office-presentation", | ||
| "label": "PowerPoint OpenXML", | ||
| "category": "office", | ||
| "extensions": [ | ||
| "pptx", | ||
| "pptm", | ||
| "potx", | ||
| "potm", | ||
| "ppsx", | ||
| "ppsm" | ||
| ], | ||
| "async": true, | ||
| "supportLevel": "high-fidelity", | ||
| "status": "stable", | ||
| "packageName": "@file-viewer/renderer-presentation", | ||
| "presets": [ | ||
| "office", | ||
| "all" | ||
| ], | ||
| "containerVersions": [ | ||
| "OOXML Transitional", | ||
| "OOXML Strict" | ||
| ], | ||
| "knownLimits": [ | ||
| "Macros and external programs are never executed" | ||
| ], | ||
| "capabilities": { | ||
| "download": true, | ||
| "print": true, | ||
| "exportHtml": true, | ||
| "zoom": "provider", | ||
| "search": true | ||
| } | ||
| }, | ||
| { | ||
| "id": "open-document", | ||
| "label": "Open Document", | ||
| "category": "office", | ||
| "extensions": [ | ||
| "rtf", | ||
| "odt", | ||
| "odp" | ||
| ], | ||
| "async": true, | ||
| "supportLevel": "structured", | ||
| "status": "stable", | ||
| "packageName": "@file-viewer/renderer-word", | ||
| "presets": [ | ||
| "office", | ||
| "all" | ||
| ], | ||
| "containerVersions": [ | ||
| "RTF", | ||
| "OpenDocument" | ||
| ], | ||
| "knownLimits": [], | ||
| "capabilities": { | ||
| "download": true, | ||
| "print": true, | ||
| "exportHtml": true, | ||
| "zoom": "provider", | ||
| "search": true | ||
| } | ||
| }, | ||
| { | ||
| "id": "spreadsheet-openxml", | ||
| "label": "Spreadsheet", | ||
| "category": "office", | ||
| "extensions": [ | ||
| "xlsx", | ||
| "xltx", | ||
| "xlsm", | ||
| "xlsb", | ||
| "xls", | ||
| "xlt", | ||
| "xla", | ||
| "xlam", | ||
| "xltm", | ||
| "csv", | ||
| "tsv", | ||
| "ods", | ||
| "fods" | ||
| ], | ||
| "async": true, | ||
| "supportLevel": "structured", | ||
| "status": "stable", | ||
| "packageName": "@file-viewer/renderer-spreadsheet", | ||
| "presets": [ | ||
| "office", | ||
| "all" | ||
| ], | ||
| "containerVersions": [ | ||
| "OOXML", | ||
| "BIFF", | ||
| "OpenDocument", | ||
| "Delimited text" | ||
| ], | ||
| "knownLimits": [ | ||
| "VBA and add-in code are never executed", | ||
| "Formula results are read from the saved workbook cache" | ||
| ], | ||
| "capabilities": { | ||
| "download": true, | ||
| "print": false, | ||
| "exportHtml": false, | ||
| "zoom": "provider", | ||
| "search": true | ||
| } | ||
| }, | ||
| { | ||
| "id": "apple-pages", | ||
| "label": "Apple Pages", | ||
| "category": "office", | ||
| "extensions": [ | ||
| "pages" | ||
| ], | ||
| "async": true, | ||
| "supportLevel": "high-fidelity", | ||
| "status": "stable", | ||
| "packageName": "@file-viewer/renderer-iwork", | ||
| "presets": [ | ||
| "office", | ||
| "all" | ||
| ], | ||
| "containerVersions": [ | ||
| "iWork '09 index.xml(.gz)", | ||
| "iWork 2013+ IWA" | ||
| ], | ||
| "knownLimits": [ | ||
| "Static preview only", | ||
| "Encrypted iwpv2 files are detected but not decrypted" | ||
| ], | ||
| "capabilities": { | ||
| "download": true, | ||
| "print": "adapter", | ||
| "exportHtml": "adapter", | ||
| "zoom": "provider", | ||
| "search": true | ||
| } | ||
| }, | ||
| { | ||
| "id": "apple-numbers", | ||
| "label": "Apple Numbers", | ||
| "category": "office", | ||
| "extensions": [ | ||
| "numbers" | ||
| ], | ||
| "async": true, | ||
| "supportLevel": "high-fidelity", | ||
| "status": "stable", | ||
| "packageName": "@file-viewer/renderer-iwork", | ||
| "presets": [ | ||
| "office", | ||
| "all" | ||
| ], | ||
| "containerVersions": [ | ||
| "iWork '09 index.xml", | ||
| "iWork 2013+ IWA" | ||
| ], | ||
| "knownLimits": [ | ||
| "Formula results are read from the saved document cache", | ||
| "Encrypted iwpv2 files are detected but not decrypted" | ||
| ], | ||
| "capabilities": { | ||
| "download": true, | ||
| "print": "adapter", | ||
| "exportHtml": "adapter", | ||
| "zoom": "provider", | ||
| "search": true | ||
| } | ||
| }, | ||
| { | ||
| "id": "apple-keynote", | ||
| "label": "Apple Keynote", | ||
| "category": "office", | ||
| "extensions": [ | ||
| "key" | ||
| ], | ||
| "async": true, | ||
| "supportLevel": "high-fidelity", | ||
| "status": "stable", | ||
| "packageName": "@file-viewer/renderer-iwork", | ||
| "presets": [ | ||
| "office", | ||
| "all" | ||
| ], | ||
| "containerVersions": [ | ||
| "iWork '09 index.apxl", | ||
| "iWork 2013+ IWA" | ||
| ], | ||
| "knownLimits": [ | ||
| "Animations, transitions and video playback are not executed", | ||
| "Encrypted iwpv2 files are detected but not decrypted" | ||
| ], | ||
| "capabilities": { | ||
| "download": true, | ||
| "print": "adapter", | ||
| "exportHtml": "adapter", | ||
| "zoom": "provider", | ||
| "search": true | ||
| } | ||
| }, | ||
| { | ||
| "id": "office-wordperfect", | ||
| "label": "WordPerfect", | ||
| "category": "office", | ||
| "extensions": [ | ||
| "wpd", | ||
| "wp", | ||
| "wp5", | ||
| "wp6" | ||
| ], | ||
| "async": true, | ||
| "supportLevel": "structured", | ||
| "status": "stable", | ||
| "packageName": "@file-viewer/renderer-wordperfect", | ||
| "presets": [ | ||
| "office", | ||
| "all" | ||
| ], | ||
| "containerVersions": [ | ||
| "WordPerfect 4.2", | ||
| "WordPerfect 5.x", | ||
| "WordPerfect 6+" | ||
| ], | ||
| "knownLimits": [ | ||
| "Macros are never executed", | ||
| ".wp5 and .wp6 are routing aliases for genuine WP5/WP6 payloads, not separate container formats", | ||
| "Pagination and unsupported embedded objects are presented as structured static preview" | ||
| ], | ||
| "capabilities": { | ||
| "download": true, | ||
| "print": "adapter", | ||
| "exportHtml": "adapter", | ||
| "zoom": "provider", | ||
| "search": true | ||
| } | ||
| }, | ||
| { | ||
| "id": "spreadsheet-dbf", | ||
| "label": "dBASE Table", | ||
| "category": "office", | ||
| "extensions": [ | ||
| "dbf" | ||
| ], | ||
| "async": true, | ||
| "supportLevel": "structured", | ||
| "status": "stable", | ||
| "packageName": "@file-viewer/renderer-spreadsheet", | ||
| "presets": [ | ||
| "office", | ||
| "all" | ||
| ], | ||
| "containerVersions": [ | ||
| "dBASE III/IV", | ||
| "Visual FoxPro" | ||
| ], | ||
| "knownLimits": [ | ||
| "Missing DBT/FPT memo sidecars are reported as incomplete" | ||
| ], | ||
| "capabilities": { | ||
| "download": true, | ||
| "print": false, | ||
| "exportHtml": false, | ||
| "zoom": "provider", | ||
| "search": true | ||
| } | ||
| }, | ||
| { | ||
| "id": "pdf", | ||
| "label": "PDF", | ||
| "category": "document", | ||
| "extensions": [ | ||
| "pdf" | ||
| ], | ||
| "async": true, | ||
| "supportLevel": "high-fidelity", | ||
| "status": "stable", | ||
| "packageName": "@file-viewer/renderer-pdf", | ||
| "presets": [ | ||
| "office", | ||
| "all" | ||
| ], | ||
| "containerVersions": [ | ||
| "PDF" | ||
| ], | ||
| "knownLimits": [], | ||
| "capabilities": { | ||
| "download": true, | ||
| "print": "adapter", | ||
| "exportHtml": "adapter", | ||
| "zoom": "provider", | ||
| "search": "provider" | ||
| } | ||
| }, | ||
| { | ||
| "id": "ofd", | ||
| "label": "OFD", | ||
| "category": "document", | ||
| "extensions": [ | ||
| "ofd" | ||
| ], | ||
| "async": true, | ||
| "supportLevel": "structured", | ||
| "status": "stable", | ||
| "packageName": "@file-viewer/renderer-ofd", | ||
| "presets": [ | ||
| "office", | ||
| "all" | ||
| ], | ||
| "containerVersions": [ | ||
| "OFD" | ||
| ], | ||
| "knownLimits": [], | ||
| "capabilities": { | ||
| "download": true, | ||
| "print": true, | ||
| "exportHtml": true, | ||
| "zoom": "provider", | ||
| "search": true | ||
| } | ||
| }, | ||
| { | ||
| "id": "office-hangul", | ||
| "label": "Hancom Hangul", | ||
| "category": "office", | ||
| "extensions": [ | ||
| "hwp", | ||
| "hwpx" | ||
| ], | ||
| "async": true, | ||
| "supportLevel": "structured", | ||
| "status": "stable", | ||
| "packageName": "@file-viewer/renderer-hangul", | ||
| "presets": [ | ||
| "office", | ||
| "all" | ||
| ], | ||
| "containerVersions": [ | ||
| "HWP v5 CFB", | ||
| "HWPX ZIP/XML" | ||
| ], | ||
| "knownLimits": [ | ||
| "Encrypted, DRM-protected and distribution documents are detected but not decrypted", | ||
| "Charts, OLE objects and advanced drawing effects remain limited in the static structured preview", | ||
| "HWP v5 pagination is approximated when the binary producer omits usable page geometry" | ||
| ], | ||
| "capabilities": { | ||
| "download": true, | ||
| "print": "adapter", | ||
| "exportHtml": "adapter", | ||
| "zoom": "provider", | ||
| "search": true | ||
| } | ||
| }, | ||
| { | ||
| "id": "typst", | ||
| "label": "Typst", | ||
| "category": "document", | ||
| "extensions": [ | ||
| "typ", | ||
| "typst" | ||
| ], | ||
| "async": true, | ||
| "supportLevel": "high-fidelity", | ||
| "status": "stable", | ||
| "packageName": "@file-viewer/renderer-typst", | ||
| "presets": [ | ||
| "all" | ||
| ], | ||
| "containerVersions": [ | ||
| "Typst source" | ||
| ], | ||
| "knownLimits": [], | ||
| "capabilities": { | ||
| "download": true, | ||
| "print": "adapter", | ||
| "exportHtml": "adapter", | ||
| "zoom": "provider", | ||
| "search": true | ||
| } | ||
| }, | ||
| { | ||
| "id": "archive", | ||
| "label": "Archive", | ||
| "category": "archive", | ||
| "extensions": [ | ||
| "zip", | ||
| "zipx", | ||
| "7z", | ||
| "rar", | ||
| "tar", | ||
| "gz", | ||
| "gzip", | ||
| "tgz", | ||
| "bz2", | ||
| "bzip2", | ||
| "tbz", | ||
| "tbz2", | ||
| "xz", | ||
| "txz", | ||
| "lzma", | ||
| "zst", | ||
| "tzst", | ||
| "cab", | ||
| "ar", | ||
| "cpio", | ||
| "iso", | ||
| "xar", | ||
| "lha", | ||
| "lzh", | ||
| "jar", | ||
| "war", | ||
| "ear", | ||
| "apk", | ||
| "cbz", | ||
| "cbr" | ||
| ], | ||
| "async": true, | ||
| "supportLevel": "structured", | ||
| "status": "stable", | ||
| "packageName": "@file-viewer/renderer-archive", | ||
| "presets": [ | ||
| "all" | ||
| ], | ||
| "containerVersions": [ | ||
| "libarchive-supported containers" | ||
| ], | ||
| "knownLimits": [], | ||
| "capabilities": { | ||
| "download": true, | ||
| "print": false, | ||
| "exportHtml": false, | ||
| "zoom": false, | ||
| "search": true | ||
| } | ||
| }, | ||
| { | ||
| "id": "email", | ||
| "label": "Email", | ||
| "category": "email", | ||
| "extensions": [ | ||
| "eml", | ||
| "msg", | ||
| "mbox" | ||
| ], | ||
| "async": true, | ||
| "supportLevel": "structured", | ||
| "status": "stable", | ||
| "packageName": "@file-viewer/renderer-email", | ||
| "presets": [ | ||
| "all" | ||
| ], | ||
| "containerVersions": [ | ||
| "MIME", | ||
| "Outlook MSG", | ||
| "mbox" | ||
| ], | ||
| "knownLimits": [], | ||
| "capabilities": { | ||
| "download": true, | ||
| "print": false, | ||
| "exportHtml": true, | ||
| "zoom": false, | ||
| "search": true | ||
| } | ||
| }, | ||
| { | ||
| "id": "eda", | ||
| "label": "EDA", | ||
| "category": "eda", | ||
| "extensions": [ | ||
| "olb", | ||
| "dra", | ||
| "gds", | ||
| "oas", | ||
| "oasis" | ||
| ], | ||
| "async": true, | ||
| "supportLevel": "structured", | ||
| "status": "stable", | ||
| "packageName": "@file-viewer/renderer-eda", | ||
| "presets": [ | ||
| "engineering", | ||
| "all" | ||
| ], | ||
| "containerVersions": [ | ||
| "OrCAD", | ||
| "GDSII", | ||
| "OASIS" | ||
| ], | ||
| "knownLimits": [], | ||
| "capabilities": { | ||
| "download": true, | ||
| "print": true, | ||
| "exportHtml": true, | ||
| "zoom": false, | ||
| "search": true | ||
| } | ||
| }, | ||
| { | ||
| "id": "cad", | ||
| "label": "CAD", | ||
| "category": "cad", | ||
| "extensions": [ | ||
| "dxf", | ||
| "dwg", | ||
| "dwf", | ||
| "dwfx", | ||
| "xps" | ||
| ], | ||
| "async": true, | ||
| "supportLevel": "high-fidelity", | ||
| "status": "stable", | ||
| "packageName": "@file-viewer/renderer-cad", | ||
| "presets": [ | ||
| "engineering", | ||
| "all" | ||
| ], | ||
| "containerVersions": [ | ||
| "DWG", | ||
| "DXF", | ||
| "DWF", | ||
| "DWFX/XPS" | ||
| ], | ||
| "knownLimits": [], | ||
| "capabilities": { | ||
| "download": true, | ||
| "print": true, | ||
| "exportHtml": true, | ||
| "zoom": "provider", | ||
| "search": false | ||
| } | ||
| }, | ||
| { | ||
| "id": "model", | ||
| "label": "3D Model", | ||
| "category": "model", | ||
| "extensions": [ | ||
| "glb", | ||
| "gltf", | ||
| "obj", | ||
| "stl", | ||
| "ply", | ||
| "fbx", | ||
| "dae", | ||
| "3ds", | ||
| "3mf", | ||
| "amf", | ||
| "usd", | ||
| "usda", | ||
| "usdc", | ||
| "usdz", | ||
| "kmz", | ||
| "step", | ||
| "stp", | ||
| "iges", | ||
| "igs", | ||
| "ifc", | ||
| "3dm", | ||
| "brep", | ||
| "pcd", | ||
| "wrl", | ||
| "vrml", | ||
| "xyz", | ||
| "vtk", | ||
| "vtp" | ||
| ], | ||
| "async": true, | ||
| "supportLevel": "structured", | ||
| "status": "stable", | ||
| "packageName": "@file-viewer/renderer-3d", | ||
| "presets": [ | ||
| "engineering", | ||
| "all" | ||
| ], | ||
| "containerVersions": [ | ||
| "Mesh", | ||
| "CAD exchange", | ||
| "scene" | ||
| ], | ||
| "knownLimits": [], | ||
| "capabilities": { | ||
| "download": true, | ||
| "print": false, | ||
| "exportHtml": false, | ||
| "zoom": "provider", | ||
| "search": false | ||
| } | ||
| }, | ||
| { | ||
| "id": "geo", | ||
| "label": "Geospatial", | ||
| "category": "geo", | ||
| "extensions": [ | ||
| "geojson", | ||
| "kml", | ||
| "gpx", | ||
| "shp" | ||
| ], | ||
| "async": true, | ||
| "supportLevel": "structured", | ||
| "status": "stable", | ||
| "packageName": "@file-viewer/renderer-geo", | ||
| "presets": [ | ||
| "engineering", | ||
| "all" | ||
| ], | ||
| "containerVersions": [ | ||
| "GeoJSON", | ||
| "KML", | ||
| "GPX", | ||
| "Shapefile" | ||
| ], | ||
| "knownLimits": [], | ||
| "capabilities": { | ||
| "download": true, | ||
| "print": true, | ||
| "exportHtml": true, | ||
| "zoom": "provider", | ||
| "search": true | ||
| } | ||
| }, | ||
| { | ||
| "id": "drawing", | ||
| "label": "Drawing", | ||
| "category": "drawing", | ||
| "extensions": [ | ||
| "excalidraw", | ||
| "drawio", | ||
| "dio", | ||
| "mermaid", | ||
| "mmd", | ||
| "plantuml", | ||
| "puml" | ||
| ], | ||
| "async": true, | ||
| "supportLevel": "structured", | ||
| "status": "stable", | ||
| "packageName": "@file-viewer/renderer-drawing", | ||
| "presets": [ | ||
| "all" | ||
| ], | ||
| "containerVersions": [ | ||
| "Draw.io", | ||
| "Excalidraw", | ||
| "Mermaid", | ||
| "PlantUML" | ||
| ], | ||
| "knownLimits": [], | ||
| "capabilities": { | ||
| "download": true, | ||
| "print": true, | ||
| "exportHtml": true, | ||
| "zoom": "provider", | ||
| "search": true | ||
| } | ||
| }, | ||
| { | ||
| "id": "mindmap", | ||
| "label": "Mind Map", | ||
| "category": "mindmap", | ||
| "extensions": [ | ||
| "xmind" | ||
| ], | ||
| "async": true, | ||
| "supportLevel": "structured", | ||
| "status": "stable", | ||
| "packageName": "@file-viewer/renderer-mindmap", | ||
| "presets": [ | ||
| "all" | ||
| ], | ||
| "containerVersions": [ | ||
| "XMind" | ||
| ], | ||
| "knownLimits": [], | ||
| "capabilities": { | ||
| "download": true, | ||
| "print": true, | ||
| "exportHtml": true, | ||
| "zoom": "provider", | ||
| "search": true | ||
| } | ||
| }, | ||
| { | ||
| "id": "epub", | ||
| "label": "EPUB", | ||
| "category": "ebook", | ||
| "extensions": [ | ||
| "epub" | ||
| ], | ||
| "async": true, | ||
| "supportLevel": "high-fidelity", | ||
| "status": "stable", | ||
| "packageName": "@file-viewer/renderer-epub", | ||
| "presets": [ | ||
| "all" | ||
| ], | ||
| "containerVersions": [ | ||
| "EPUB 2", | ||
| "EPUB 3" | ||
| ], | ||
| "knownLimits": [], | ||
| "capabilities": { | ||
| "download": true, | ||
| "print": false, | ||
| "exportHtml": true, | ||
| "zoom": false, | ||
| "search": "provider" | ||
| } | ||
| }, | ||
| { | ||
| "id": "ebook-fb2", | ||
| "label": "FictionBook", | ||
| "category": "ebook", | ||
| "extensions": [ | ||
| "fb2" | ||
| ], | ||
| "async": true, | ||
| "supportLevel": "structured", | ||
| "status": "stable", | ||
| "packageName": "@file-viewer/renderer-epub", | ||
| "presets": [ | ||
| "all" | ||
| ], | ||
| "containerVersions": [ | ||
| "FictionBook 2 XML" | ||
| ], | ||
| "knownLimits": [ | ||
| "External network resources are not loaded" | ||
| ], | ||
| "capabilities": { | ||
| "download": true, | ||
| "print": true, | ||
| "exportHtml": true, | ||
| "zoom": false, | ||
| "search": true | ||
| } | ||
| }, | ||
| { | ||
| "id": "umd", | ||
| "label": "UMD", | ||
| "category": "ebook", | ||
| "extensions": [ | ||
| "umd" | ||
| ], | ||
| "async": true, | ||
| "supportLevel": "structured", | ||
| "status": "stable", | ||
| "packageName": "@file-viewer/renderer-epub", | ||
| "presets": [ | ||
| "all" | ||
| ], | ||
| "containerVersions": [ | ||
| "UMD" | ||
| ], | ||
| "knownLimits": [], | ||
| "capabilities": { | ||
| "download": true, | ||
| "print": true, | ||
| "exportHtml": true, | ||
| "zoom": "provider", | ||
| "search": true | ||
| } | ||
| }, | ||
| { | ||
| "id": "image", | ||
| "label": "Image", | ||
| "category": "image", | ||
| "extensions": [ | ||
| "gif", | ||
| "jpg", | ||
| "jpeg", | ||
| "bmp", | ||
| "tiff", | ||
| "tif", | ||
| "png", | ||
| "svg", | ||
| "webp", | ||
| "avif", | ||
| "ico", | ||
| "heic", | ||
| "heif", | ||
| "jxl" | ||
| ], | ||
| "async": true, | ||
| "supportLevel": "high-fidelity", | ||
| "status": "stable", | ||
| "packageName": "@file-viewer/renderer-image", | ||
| "presets": [ | ||
| "lite", | ||
| "all" | ||
| ], | ||
| "containerVersions": [ | ||
| "Raster", | ||
| "SVG" | ||
| ], | ||
| "knownLimits": [], | ||
| "capabilities": { | ||
| "download": true, | ||
| "print": true, | ||
| "exportHtml": true, | ||
| "zoom": "provider", | ||
| "search": false | ||
| } | ||
| }, | ||
| { | ||
| "id": "markdown", | ||
| "label": "Markdown", | ||
| "category": "markdown", | ||
| "extensions": [ | ||
| "md", | ||
| "markdown" | ||
| ], | ||
| "async": true, | ||
| "supportLevel": "structured", | ||
| "status": "stable", | ||
| "packageName": "@file-viewer/renderer-text", | ||
| "presets": [ | ||
| "lite", | ||
| "all" | ||
| ], | ||
| "containerVersions": [ | ||
| "CommonMark/GFM" | ||
| ], | ||
| "knownLimits": [], | ||
| "capabilities": { | ||
| "download": true, | ||
| "print": true, | ||
| "exportHtml": true, | ||
| "zoom": false, | ||
| "search": true | ||
| } | ||
| }, | ||
| { | ||
| "id": "code", | ||
| "label": "Code and Text", | ||
| "category": "code", | ||
| "extensions": [ | ||
| "txt", | ||
| "json", | ||
| "js", | ||
| "mjs", | ||
| "cjs", | ||
| "css", | ||
| "java", | ||
| "py", | ||
| "html", | ||
| "htm", | ||
| "jsx", | ||
| "ts", | ||
| "tsx", | ||
| "xml", | ||
| "log", | ||
| "vue", | ||
| "yaml", | ||
| "yml", | ||
| "ini", | ||
| "sh", | ||
| "bash", | ||
| "sql", | ||
| "go", | ||
| "rs", | ||
| "php", | ||
| "c", | ||
| "cpp", | ||
| "cc", | ||
| "h", | ||
| "hpp", | ||
| "cs", | ||
| "diff", | ||
| "patch", | ||
| "bundle", | ||
| "bdl", | ||
| "jsonc", | ||
| "json5", | ||
| "ipynb", | ||
| "toml", | ||
| "proto", | ||
| "hcl", | ||
| "tex", | ||
| "gv", | ||
| "http", | ||
| "react", | ||
| "rb", | ||
| "swift", | ||
| "kt" | ||
| ], | ||
| "async": true, | ||
| "supportLevel": "structured", | ||
| "status": "stable", | ||
| "packageName": "@file-viewer/renderer-text", | ||
| "presets": [ | ||
| "lite", | ||
| "all" | ||
| ], | ||
| "containerVersions": [ | ||
| "Plain text", | ||
| "source code", | ||
| "Git bundle" | ||
| ], | ||
| "knownLimits": [], | ||
| "capabilities": { | ||
| "download": true, | ||
| "print": true, | ||
| "exportHtml": true, | ||
| "zoom": false, | ||
| "search": true | ||
| } | ||
| }, | ||
| { | ||
| "id": "video", | ||
| "label": "Video", | ||
| "category": "media", | ||
| "extensions": [ | ||
| "mp4", | ||
| "webm", | ||
| "m3u8" | ||
| ], | ||
| "async": true, | ||
| "supportLevel": "high-fidelity", | ||
| "status": "stable", | ||
| "packageName": "@file-viewer/renderer-media", | ||
| "presets": [ | ||
| "lite", | ||
| "all" | ||
| ], | ||
| "containerVersions": [ | ||
| "Browser media" | ||
| ], | ||
| "knownLimits": [ | ||
| "Codec support follows the browser" | ||
| ], | ||
| "capabilities": { | ||
| "download": true, | ||
| "print": false, | ||
| "exportHtml": false, | ||
| "zoom": false, | ||
| "search": false | ||
| } | ||
| }, | ||
| { | ||
| "id": "audio", | ||
| "label": "Audio", | ||
| "category": "media", | ||
| "extensions": [ | ||
| "mp3", | ||
| "mpeg", | ||
| "wav", | ||
| "ogg", | ||
| "oga", | ||
| "opus", | ||
| "m4a", | ||
| "aac", | ||
| "flac", | ||
| "weba", | ||
| "midi", | ||
| "mid" | ||
| ], | ||
| "async": true, | ||
| "supportLevel": "high-fidelity", | ||
| "status": "stable", | ||
| "packageName": "@file-viewer/renderer-media", | ||
| "presets": [ | ||
| "lite", | ||
| "all" | ||
| ], | ||
| "containerVersions": [ | ||
| "Browser media", | ||
| "MIDI" | ||
| ], | ||
| "knownLimits": [ | ||
| "Codec support follows the browser" | ||
| ], | ||
| "capabilities": { | ||
| "download": true, | ||
| "print": false, | ||
| "exportHtml": false, | ||
| "zoom": false, | ||
| "search": false | ||
| } | ||
| }, | ||
| { | ||
| "id": "data-asset", | ||
| "label": "Data Asset", | ||
| "category": "asset", | ||
| "extensions": [ | ||
| "ttf", | ||
| "otf", | ||
| "woff", | ||
| "woff2", | ||
| "psd", | ||
| "ai", | ||
| "eps", | ||
| "sqlite", | ||
| "wasm", | ||
| "parquet", | ||
| "avro", | ||
| "webarchive" | ||
| ], | ||
| "async": true, | ||
| "supportLevel": "structured", | ||
| "status": "stable", | ||
| "packageName": "@file-viewer/renderer-data", | ||
| "presets": [ | ||
| "all" | ||
| ], | ||
| "containerVersions": [ | ||
| "Font", | ||
| "design", | ||
| "database", | ||
| "binary data" | ||
| ], | ||
| "knownLimits": [], | ||
| "capabilities": { | ||
| "download": true, | ||
| "print": false, | ||
| "exportHtml": true, | ||
| "zoom": false, | ||
| "search": true | ||
| } | ||
| } | ||
| ]; | ||
| export const DEFAULT_REGISTERED_EXTENSIONS = Object.freeze(Array.from(new Set(DEFAULT_RENDERER_DEFINITIONS.flatMap(definition => definition.extensions))).sort()); | ||
| export const DEFAULT_STABLE_SUPPORTED_EXTENSIONS = Object.freeze(Array.from(new Set(DEFAULT_RENDERER_DEFINITIONS | ||
| .filter(definition => definition.status === 'stable') | ||
| .flatMap(definition => definition.extensions))).sort()); | ||
| /** @deprecated Use DEFAULT_REGISTERED_EXTENSIONS when the experimental/stable distinction matters. */ | ||
| export const DEFAULT_SUPPORTED_EXTENSIONS = DEFAULT_REGISTERED_EXTENSIONS; |
| export type FileViewerTextEncoding = 'auto' | 'utf-8' | 'utf-16le' | 'utf-16be' | 'gbk' | 'gb18030'; | ||
| export type ResolvedFileViewerTextEncoding = Exclude<FileViewerTextEncoding, 'auto' | 'gbk'>; | ||
| export interface DecodedFileViewerText { | ||
| text: string; | ||
| encoding: ResolvedFileViewerTextEncoding; | ||
| } | ||
| export interface ResolvedFileViewerTextSource { | ||
| encoding: ResolvedFileViewerTextEncoding; | ||
| bomLength: number; | ||
| } | ||
| export declare const isValidFileViewerUtf8: (bytes: Uint8Array) => boolean; | ||
| export declare const resolveFileViewerTextEncoding: (bytes: Uint8Array, encoding?: FileViewerTextEncoding | string) => ResolvedFileViewerTextSource; | ||
| export declare const createFileViewerTextDecoder: (encoding: ResolvedFileViewerTextEncoding) => TextDecoder; | ||
| export declare const decodeFileViewerTextBuffer: (data: ArrayBuffer, encoding?: FileViewerTextEncoding | string) => DecodedFileViewerText; |
| const normalizeEncoding = (encoding) => { | ||
| const normalized = String(encoding || 'auto').trim().toLowerCase().replace('_', '-'); | ||
| if (normalized === 'utf8' || normalized === 'utf-8') { | ||
| return 'utf-8'; | ||
| } | ||
| if (normalized === 'utf16' || normalized === 'utf-16' || normalized === 'utf16le' || normalized === 'utf-16le') { | ||
| return 'utf-16le'; | ||
| } | ||
| if (normalized === 'utf16be' || normalized === 'utf-16be') { | ||
| return 'utf-16be'; | ||
| } | ||
| if (normalized === 'gbk' || normalized === 'cp936' || normalized === 'gb2312') { | ||
| return 'gbk'; | ||
| } | ||
| if (normalized === 'gb18030') { | ||
| return 'gb18030'; | ||
| } | ||
| return 'auto'; | ||
| }; | ||
| const isContinuationByte = (value) => { | ||
| return value !== undefined && value >= 0x80 && value <= 0xbf; | ||
| }; | ||
| // Validate bytes directly because older WebViews can accept the fatal option | ||
| // while still replacing malformed input. That would hide the GB18030 fallback. | ||
| export const isValidFileViewerUtf8 = (bytes) => { | ||
| for (let index = 0; index < bytes.length;) { | ||
| const first = bytes[index]; | ||
| if (first === undefined) { | ||
| return false; | ||
| } | ||
| if (first <= 0x7f) { | ||
| index += 1; | ||
| continue; | ||
| } | ||
| const second = bytes[index + 1]; | ||
| const third = bytes[index + 2]; | ||
| const fourth = bytes[index + 3]; | ||
| if (first >= 0xc2 && first <= 0xdf && isContinuationByte(second)) { | ||
| index += 2; | ||
| continue; | ||
| } | ||
| if (first === 0xe0 && | ||
| second !== undefined && second >= 0xa0 && second <= 0xbf && | ||
| isContinuationByte(third)) { | ||
| index += 3; | ||
| continue; | ||
| } | ||
| if (((first >= 0xe1 && first <= 0xec) || (first >= 0xee && first <= 0xef)) && | ||
| isContinuationByte(second) && | ||
| isContinuationByte(third)) { | ||
| index += 3; | ||
| continue; | ||
| } | ||
| if (first === 0xed && | ||
| second !== undefined && second >= 0x80 && second <= 0x9f && | ||
| isContinuationByte(third)) { | ||
| index += 3; | ||
| continue; | ||
| } | ||
| if (first === 0xf0 && | ||
| second !== undefined && second >= 0x90 && second <= 0xbf && | ||
| isContinuationByte(third) && | ||
| isContinuationByte(fourth)) { | ||
| index += 4; | ||
| continue; | ||
| } | ||
| if (first >= 0xf1 && first <= 0xf3 && | ||
| isContinuationByte(second) && | ||
| isContinuationByte(third) && | ||
| isContinuationByte(fourth)) { | ||
| index += 4; | ||
| continue; | ||
| } | ||
| if (first === 0xf4 && | ||
| second !== undefined && second >= 0x80 && second <= 0x8f && | ||
| isContinuationByte(third) && | ||
| isContinuationByte(fourth)) { | ||
| index += 4; | ||
| continue; | ||
| } | ||
| return false; | ||
| } | ||
| return true; | ||
| }; | ||
| const inferBomlessUtf16 = (bytes) => { | ||
| const sampleLength = Math.min(bytes.length - (bytes.length % 2), 4096); | ||
| if (sampleLength < 4) { | ||
| return null; | ||
| } | ||
| let evenNulls = 0; | ||
| let oddNulls = 0; | ||
| for (let index = 0; index < sampleLength; index += 2) { | ||
| evenNulls += bytes[index] === 0 ? 1 : 0; | ||
| oddNulls += bytes[index + 1] === 0 ? 1 : 0; | ||
| } | ||
| const pairs = sampleLength / 2; | ||
| if (oddNulls / pairs >= 0.3 && evenNulls / pairs <= 0.05) { | ||
| return 'utf-16le'; | ||
| } | ||
| if (evenNulls / pairs >= 0.3 && oddNulls / pairs <= 0.05) { | ||
| return 'utf-16be'; | ||
| } | ||
| return null; | ||
| }; | ||
| export const resolveFileViewerTextEncoding = (bytes, encoding = 'auto') => { | ||
| const normalized = normalizeEncoding(encoding); | ||
| if (normalized !== 'auto') { | ||
| return { | ||
| encoding: normalized === 'gbk' ? 'gb18030' : normalized, | ||
| bomLength: normalized === 'utf-8' && bytes[0] === 0xef && bytes[1] === 0xbb && bytes[2] === 0xbf | ||
| ? 3 | ||
| : (normalized === 'utf-16le' && bytes[0] === 0xff && bytes[1] === 0xfe) || | ||
| (normalized === 'utf-16be' && bytes[0] === 0xfe && bytes[1] === 0xff) | ||
| ? 2 | ||
| : 0 | ||
| }; | ||
| } | ||
| if (bytes[0] === 0xef && bytes[1] === 0xbb && bytes[2] === 0xbf) { | ||
| return { encoding: 'utf-8', bomLength: 3 }; | ||
| } | ||
| if (bytes[0] === 0xff && bytes[1] === 0xfe) { | ||
| return { encoding: 'utf-16le', bomLength: 2 }; | ||
| } | ||
| if (bytes[0] === 0xfe && bytes[1] === 0xff) { | ||
| return { encoding: 'utf-16be', bomLength: 2 }; | ||
| } | ||
| const utf16 = inferBomlessUtf16(bytes); | ||
| if (utf16) { | ||
| return { encoding: utf16, bomLength: 0 }; | ||
| } | ||
| return isValidFileViewerUtf8(bytes) | ||
| ? { encoding: 'utf-8', bomLength: 0 } | ||
| : { encoding: 'gb18030', bomLength: 0 }; | ||
| }; | ||
| export const createFileViewerTextDecoder = (encoding) => { | ||
| if (typeof TextDecoder === 'undefined') { | ||
| throw new Error('Text decoding requires the browser TextDecoder API.'); | ||
| } | ||
| try { | ||
| return new TextDecoder(encoding); | ||
| } | ||
| catch (error) { | ||
| if (encoding === 'gb18030' && error instanceof RangeError) { | ||
| throw new Error('This browser does not provide GB18030 text decoding. Use a current browser or select UTF-8 explicitly.'); | ||
| } | ||
| throw error; | ||
| } | ||
| }; | ||
| export const decodeFileViewerTextBuffer = (data, encoding = 'auto') => { | ||
| const bytes = new Uint8Array(data); | ||
| const resolved = resolveFileViewerTextEncoding(bytes, encoding); | ||
| return { | ||
| text: createFileViewerTextDecoder(resolved.encoding).decode(bytes.subarray(resolved.bomLength)), | ||
| encoding: resolved.encoding | ||
| }; | ||
| }; |
| export type FileViewerSourceKind = 'file' | 'url' | 'buffer' | 'empty'; | ||
| export type FileViewerThemeMode = 'light' | 'dark' | 'system'; | ||
| export type FileViewerResolvedThemeMode = Exclude<FileViewerThemeMode, 'system'>; | ||
| export type FileViewerLocale = 'auto' | 'zh-CN' | 'en-US' | 'ja-JP' | (string & {}); | ||
| export type FileViewerLocale = 'auto' | 'zh-CN' | 'en-US' | 'ja-JP' | 'de-DE' | (string & {}); | ||
| export type FileViewerStyleIsolation = 'auto' | 'shadow' | 'scoped' | 'none'; | ||
| export type FileViewerMessageKey = 'toolbar.zoomGroup' | 'toolbar.zoomOut' | 'toolbar.zoomIn' | 'toolbar.zoomReset' | 'toolbar.download' | 'toolbar.downloadTitle' | 'toolbar.print' | 'toolbar.printTitle' | 'toolbar.printDirect' | 'toolbar.printMask' | 'toolbar.printMaskTitle' | 'toolbar.printMaskAdd' | 'toolbar.printMaskClear' | 'toolbar.printMaskCancel' | 'toolbar.printMaskConfirm' | 'toolbar.printMaskHint' | 'toolbar.printStampUpload' | 'toolbar.printStampRemove' | 'toolbar.printStampResize' | 'toolbar.exportHtml' | 'toolbar.exportHtmlTitle' | 'toolbar.search' | 'toolbar.searchPlaceholder' | 'toolbar.searchPrevious' | 'toolbar.searchNext' | 'toolbar.searchClear' | 'toolbar.theme' | 'toolbar.themeToLight' | 'toolbar.themeToDark' | 'state.ready.title' | 'state.ready.message' | 'state.empty.title' | 'state.empty.message' | 'state.unsupported.install.title' | 'state.unsupported.install.message' | 'state.unsupported.install.description' | 'state.unsupported.title' | 'state.unsupported.message' | 'state.unsupported.description' | 'state.error.title' | 'preview.downloading' | 'preview.streamingPdf' | 'preview.reading' | 'error.download' | 'error.print' | 'error.exportHtml' | 'error.noDownloadSource' | 'error.noExportContent' | 'error.printUnavailable' | 'error.printWindowBlocked' | 'error.remoteDownload' | 'error.localRead' | 'error.load' | 'error.stream' | 'error.beforeOperation' | 'error.unknown' | 'error.blobUnavailable' | 'error.sourceUnsupported' | 'error.fileReadArrayBuffer' | 'error.fileReadDataUrl' | 'error.fileReadText' | 'error.imageDataUrlRead' | 'operation.download' | 'operation.print' | 'operation.exportHtml' | 'operation.zoomIn' | 'operation.zoomOut' | 'operation.zoomReset' | 'pdf.toolbar.toggleNavigation' | 'pdf.toolbar.previousPage' | 'pdf.toolbar.nextPage' | 'pdf.toolbar.fitWidth' | 'pdf.toolbar.zoomOut' | 'pdf.toolbar.zoomIn' | 'pdf.toolbar.rotateLeft' | 'pdf.toolbar.rotateRight' | 'pdf.nav.typeLabel' | 'pdf.nav.pagesTab' | 'pdf.nav.outlineTab' | 'pdf.nav.pagesTitle' | 'pdf.nav.outlineTitle' | 'pdf.nav.pageCount' | 'pdf.nav.itemCount' | 'pdf.nav.pageLabel' | 'pdf.nav.outlineEmpty' | 'pdf.nav.outlineFallbackTitle' | 'pdf.thumbnail.alt' | 'pdf.state.loading' | 'pdf.error.browserWindow' | 'pdf.error.missingSource' | 'pdf.error.loadFailed' | 'pdf.error.notLoaded' | 'pdf.error.unloaded' | 'pdf.error.canvasUnavailable' | 'pdf.export.pageTitle' | 'spreadsheet.loading.kicker' | 'spreadsheet.loading.title' | 'spreadsheet.loading.hint' | 'spreadsheet.loading.streaming' | 'spreadsheet.tabs.ariaLabel' | 'spreadsheet.state.parsingWorkbook' | 'spreadsheet.state.preparingSheet' | 'spreadsheet.state.preparingSheetNamed' | 'spreadsheet.state.cachedRows' | 'spreadsheet.state.rows' | 'spreadsheet.state.rowsAndColumns' | 'spreadsheet.error.parseFailed' | 'spreadsheet.error.workerFailed' | 'word.error.invalidDocx' | 'word.error.missingOdfContent' | 'word.error.odfXmlParseFailed' | 'word.title.rtf' | 'word.title.openDocumentPresentation' | 'word.title.openDocumentText' | 'word.page.fallback' | 'word.page.empty' | 'word.body' | 'word.body.empty' | 'ofd.toolbar.pageNavigation' | 'ofd.toolbar.documentPages' | 'ofd.toolbar.previousPage' | 'ofd.toolbar.nextPage' | 'ofd.toolbar.pageStatus' | 'ofd.toolbar.noPages' | 'ofd.state.loading' | 'ofd.error.empty' | 'ofd.error.parseFailed' | 'presentation.state.loading' | 'presentation.error.title' | 'presentation.error.parseFailed' | 'presentation.ppt.state.loading' | 'presentation.ppt.error.title' | 'presentation.ppt.error.parseFailed' | 'presentation.ppt.error.assetHint' | 'archive.error.nestedUnsupported' | 'archive.loading.readingDirectory' | 'archive.loading.readingDirectoryHint' | 'archive.search.placeholder' | 'archive.sidebar.hide' | 'archive.sidebar.show' | 'archive.preview.title' | 'archive.preview.chooseFile' | 'archive.preview.downloadFile' | 'archive.error.title' | 'archive.stats.summary' | 'archive.warning.encrypted' | 'archive.password.title' | 'archive.password.description' | 'archive.password.placeholder' | 'archive.password.invalid' | 'archive.password.required' | 'archive.password.cancel' | 'archive.password.confirm' | 'archive.error.passwordRequired' | 'archive.error.encryptedRequiresWorker' | 'archive.empty.title' | 'archive.empty.message' | 'archive.loading.initializingCandidate' | 'archive.loading.initializingCandidateHint' | 'archive.error.candidateInitTimeout' | 'archive.error.encryptedCheckTimeout' | 'archive.loading.directoryReadyHint' | 'archive.error.candidateReadTimeout' | 'archive.loading.workerFallback' | 'archive.loading.workerFallbackHint' | 'archive.notice.workerFallback' | 'archive.error.tooLarge' | 'archive.loading.initializingWorker' | 'archive.loading.initializingWorkerHint' | 'archive.error.workerInitFailed' | 'archive.error.workerUnsupported' | 'archive.error.indexedDbUnavailable' | 'archive.error.entryTooLarge' | 'archive.loading.extracting' | 'archive.loading.rendering' | 'archive.loading.exporting' | 'media.audio.title' | 'media.audio.description' | 'media.audio.unsupported' | 'media.video.title' | 'media.video.unsupported' | 'media.video.hlsHint' | 'media.midi.title' | 'media.midi.loading' | 'media.midi.trackHeader' | 'media.midi.instrumentHeader' | 'media.midi.channelHeader' | 'media.midi.noteCountHeader' | 'media.midi.durationHeader' | 'media.midi.durationStat' | 'media.midi.trackStat' | 'media.midi.noteStat' | 'media.midi.parseFailed' | 'email.mbox.subject' | 'email.mbox.summary' | 'email.error.title' | 'email.meta.from' | 'email.meta.to' | 'email.meta.cc' | 'email.meta.date' | 'email.tabs.text' | 'email.tabs.headers' | 'email.attachments.title' | 'email.attachments.empty' | 'email.attachments.download' | 'email.attachments.opening' | 'email.attachments.nestedUnavailable' | 'email.loading.parsing' | 'data.font.sample' | 'data.error.fontFaceUnsupported' | 'data.title.font' | 'data.title.sqlite' | 'data.title.parquet' | 'data.title.avro' | 'data.title.wasm' | 'data.title.eps' | 'data.title.ai' | 'data.title.webarchive' | 'data.title.summary' | 'data.label.format' | 'data.label.size' | 'data.label.rendering' | 'data.label.objects' | 'data.label.sampleTable' | 'data.label.rows' | 'data.label.columns' | 'data.label.sampleRows' | 'data.label.imports' | 'data.label.exports' | 'data.label.magic' | 'data.label.note' | 'data.label.container' | 'data.value.schemaRead' | 'data.value.schemaUnread' | 'data.note.aiSummary' | 'data.note.postscriptSummary' | 'data.note.webarchive' | 'data.image.alt' | 'psd.title' | 'psd.action.fit' | 'psd.action.showAll' | 'psd.action.hideAll' | 'psd.layers.title' | 'psd.layers.redrawable' | 'psd.layers.empty' | 'psd.layers.hidden' | 'drawing.error.viewerLoadFailed' | 'drawing.error.excalidrawEmpty' | 'drawing.error.excalidrawTimeout' | 'drawing.error.drawioParseFailed' | 'drawing.error.drawioNoModel' | 'drawing.error.drawioNoElements' | 'drawing.error.viewerInitFailed' | 'drawing.error.drawioTimeout' | 'drawing.error.svgParseFailed' | 'drawing.error.plantumlRenderFailed' | 'drawing.title.excalidraw' | 'drawing.title.mermaid' | 'drawing.title.plantuml' | 'drawing.title.drawio' | 'drawing.toolbar.zoomOut' | 'drawing.toolbar.zoomIn' | 'drawing.toolbar.fit' | 'drawing.toolbar.fitWidth' | 'drawing.state.loading' | 'text.code.loadingHighlight' | 'text.code.indexingLargeFile' | 'text.code.virtualized' | 'text.code.firstSegment' | 'text.code.previousSegment' | 'text.code.nextSegment' | 'text.code.lastSegment' | 'ebook.toc' | 'ebook.reading' | 'ebook.itemCount' | 'epub.title' | 'epub.previousPage' | 'epub.nextPage' | 'epub.loading' | 'epub.chapterFallback' | 'epub.renderIncomplete' | 'umd.title' | 'umd.previousChapter' | 'umd.nextChapter' | 'umd.loading' | 'umd.emptyContent' | 'umd.chapterFallback' | 'umd.galleryFallback' | 'umd.warningBodyTooShort' | 'umd.error.unexpectedEnd' | 'umd.error.invalidFile' | 'typst.summaryRenderer' | 'typst.pageSummary.empty' | 'typst.pageSummary.ready' | 'typst.status.compiling' | 'typst.status.failed' | 'typst.status.rendered' | 'typst.loading.title' | 'typst.loading.hint' | 'typst.error.title' | 'typst.error.timeout' | 'typst.error.timeoutHint' | 'typst.error.assetHint' | 'typst.error.svgParseFailed' | 'typst.error.wasmLoadFailed' | 'xmind.toolbar.zoomOut' | 'xmind.toolbar.zoomIn' | 'xmind.toolbar.fit' | 'xmind.toolbar.fitTitle' | 'xmind.state.loading' | 'xmind.stats.nodes' | 'xmind.stats.depth' | 'xmind.stats.theme' | 'xmind.stats.template' | 'xmind.badge.paused' | 'xmind.badge.collapsed' | 'xmind.badge.floating' | 'xmind.badge.summary' | 'xmind.badge.callout' | 'xmind.imageResource' | 'xmind.error.unrecognized' | 'xmind.error.noCanvas' | 'cad.toolbar.fit' | 'cad.toolbar.zoomOut' | 'cad.toolbar.zoomIn' | 'cad.layers.title' | 'cad.layers.count' | 'cad.layers.merged' | 'cad.inspector.title' | 'cad.inspector.entities' | 'cad.inspector.blocks' | 'cad.inspector.pages' | 'cad.inspector.drawn' | 'cad.state.loadingViewer' | 'cad.state.parsing' | 'cad.error.parseFailed' | 'image.alt' | 'image.toolbar.rotation' | 'image.toolbar.rotateLeft' | 'image.toolbar.rotateRight' | 'image.lightbox.alt' | 'image.lightbox.close' | 'gitBundle.error.invalid' | 'gitBundle.error.missingPack' | 'gitBundle.notice.delta' | 'gitBundle.title.history' | 'gitBundle.title.fileTree' | 'gitBundle.file.choose' | 'gitBundle.file.noTree' | 'gitBundle.file.none' | 'gitBundle.history.empty' | 'gitBundle.toolbar.summary' | 'gitBundle.meta.bundle' | 'gitBundle.meta.refs' | 'gitBundle.meta.commits' | 'gitBundle.meta.objects' | 'gitBundle.meta.deltas' | 'gitBundle.meta.objectFormat' | 'gitBundle.meta.objectTypes' | 'geo.error.unrecognized' | 'geo.error.xmlParseFailed' | 'geo.error.unsupported' | 'geo.title' | 'geo.featureCount' | 'geo.bounds' | 'geo.geometryTypes' | 'geo.aria' | 'geo.loading' | 'geo.projection' | 'geo.engine' | 'geo.basemap' | 'geo.basemap.offline' | 'geo.basemap.custom' | 'geo.engine.maplibre' | 'geo.engine.svg' | 'geo.error.projection' | 'geo.action.fit' | 'model.toolbar.fit' | 'model.toolbar.rotate' | 'model.toolbar.wireframe' | 'model.toolbar.grid' | 'model.toolbar.axes' | 'model.state.loadingSummary' | 'model.state.loading' | 'model.state.loaded' | 'model.state.parseFailed' | 'model.summary.meshes' | 'model.summary.points' | 'model.error.daeEmpty' | 'model.error.unsupported' | 'model.error.parseFailed' | 'model.notice.signature' | 'loading.generic.label' | 'loading.generic.hint' | 'loading.word.label' | 'loading.word.hint' | 'loading.wordWorker.hint' | 'loading.sheet.label' | 'loading.sheet.hint' | 'loading.csv.label' | 'loading.csv.hint' | 'loading.presentation.label' | 'loading.presentation.hint' | 'loading.pdf.label' | 'loading.pdf.hint' | 'loading.ofd.label' | 'loading.ofd.hint' | 'loading.archive.label' | 'loading.archive.hint' | 'loading.email.label' | 'loading.email.hint' | 'loading.msg.hint' | 'loading.eda.label' | 'loading.eda.hint' | 'loading.cad.label' | 'loading.cad.hint' | 'loading.dwg.hint' | 'loading.dwf.hint' | 'loading.dwfx.hint' | 'loading.xps.hint' | 'loading.drawio.label' | 'loading.drawio.hint' | 'loading.excalidraw.label' | 'loading.excalidraw.hint' | 'loading.epub.label' | 'loading.epub.hint' | 'loading.umd.label' | 'loading.umd.hint' | 'loading.image.label' | 'loading.image.hint' | 'loading.video.label' | 'loading.video.hint' | 'loading.audio.label' | 'loading.audio.hint'; | ||
| export type FileViewerMessageKey = 'toolbar.zoomGroup' | 'toolbar.zoomOut' | 'toolbar.zoomIn' | 'toolbar.zoomReset' | 'toolbar.download' | 'toolbar.downloadTitle' | 'toolbar.print' | 'toolbar.printTitle' | 'toolbar.printDirect' | 'toolbar.printMask' | 'toolbar.printMaskTitle' | 'toolbar.printMaskAdd' | 'toolbar.printMaskClear' | 'toolbar.printMaskCancel' | 'toolbar.printMaskConfirm' | 'toolbar.printMaskHint' | 'toolbar.printStampUpload' | 'toolbar.printStampRemove' | 'toolbar.printStampResize' | 'toolbar.exportHtml' | 'toolbar.exportHtmlTitle' | 'toolbar.search' | 'toolbar.searchPlaceholder' | 'toolbar.searchPrevious' | 'toolbar.searchNext' | 'toolbar.searchClear' | 'toolbar.theme' | 'toolbar.themeToLight' | 'toolbar.themeToDark' | 'state.ready.title' | 'state.ready.message' | 'state.empty.title' | 'state.empty.message' | 'state.unsupported.install.title' | 'state.unsupported.install.message' | 'state.unsupported.install.description' | 'state.unsupported.title' | 'state.unsupported.message' | 'state.unsupported.description' | 'state.error.title' | 'preview.downloading' | 'preview.streamingPdf' | 'preview.reading' | 'error.download' | 'error.print' | 'error.exportHtml' | 'error.noDownloadSource' | 'error.noExportContent' | 'error.printUnavailable' | 'error.printWindowBlocked' | 'error.remoteDownload' | 'error.localRead' | 'error.load' | 'error.stream' | 'error.beforeOperation' | 'error.unknown' | 'error.blobUnavailable' | 'error.sourceUnsupported' | 'error.fileReadArrayBuffer' | 'error.fileReadDataUrl' | 'error.fileReadText' | 'error.imageDataUrlRead' | 'operation.download' | 'operation.print' | 'operation.exportHtml' | 'operation.zoomIn' | 'operation.zoomOut' | 'operation.zoomReset' | 'pdf.toolbar.toggleNavigation' | 'pdf.toolbar.previousPage' | 'pdf.toolbar.nextPage' | 'pdf.toolbar.fitWidth' | 'pdf.toolbar.zoomOut' | 'pdf.toolbar.zoomIn' | 'pdf.toolbar.rotateLeft' | 'pdf.toolbar.rotateRight' | 'pdf.nav.typeLabel' | 'pdf.nav.pagesTab' | 'pdf.nav.outlineTab' | 'pdf.nav.pagesTitle' | 'pdf.nav.outlineTitle' | 'pdf.nav.pageCount' | 'pdf.nav.itemCount' | 'pdf.nav.pageLabel' | 'pdf.nav.outlineEmpty' | 'pdf.nav.outlineFallbackTitle' | 'pdf.thumbnail.alt' | 'pdf.state.loading' | 'pdf.error.browserWindow' | 'pdf.error.missingSource' | 'pdf.error.loadFailed' | 'pdf.error.notLoaded' | 'pdf.error.unloaded' | 'pdf.error.canvasUnavailable' | 'pdf.export.pageTitle' | 'spreadsheet.loading.kicker' | 'spreadsheet.loading.title' | 'spreadsheet.loading.hint' | 'spreadsheet.loading.streaming' | 'spreadsheet.tabs.ariaLabel' | 'spreadsheet.state.parsingWorkbook' | 'spreadsheet.state.preparingSheet' | 'spreadsheet.state.preparingSheetNamed' | 'spreadsheet.state.cachedRows' | 'spreadsheet.state.rows' | 'spreadsheet.state.rowsAndColumns' | 'spreadsheet.error.parseFailed' | 'spreadsheet.error.workerFailed' | 'word.error.invalidDocx' | 'word.error.missingOdfContent' | 'word.error.odfXmlParseFailed' | 'word.title.rtf' | 'word.title.openDocumentPresentation' | 'word.title.openDocumentText' | 'word.page.fallback' | 'word.page.empty' | 'word.body' | 'word.body.empty' | 'ofd.toolbar.pageNavigation' | 'ofd.toolbar.documentPages' | 'ofd.toolbar.previousPage' | 'ofd.toolbar.nextPage' | 'ofd.toolbar.pageStatus' | 'ofd.toolbar.noPages' | 'ofd.state.loading' | 'ofd.error.empty' | 'ofd.error.parseFailed' | 'presentation.state.loading' | 'presentation.error.title' | 'presentation.error.parseFailed' | 'presentation.ppt.state.loading' | 'presentation.ppt.error.title' | 'presentation.ppt.error.parseFailed' | 'presentation.ppt.error.assetHint' | 'presentation.slideshow.start' | 'presentation.slideshow.exit' | 'presentation.slideshow.hint' | 'archive.error.nestedUnsupported' | 'archive.loading.readingDirectory' | 'archive.loading.readingDirectoryHint' | 'archive.search.placeholder' | 'archive.sidebar.hide' | 'archive.sidebar.show' | 'archive.preview.title' | 'archive.preview.chooseFile' | 'archive.preview.downloadFile' | 'archive.error.title' | 'archive.stats.summary' | 'archive.warning.encrypted' | 'archive.password.title' | 'archive.password.description' | 'archive.password.placeholder' | 'archive.password.invalid' | 'archive.password.required' | 'archive.password.cancel' | 'archive.password.confirm' | 'archive.error.passwordRequired' | 'archive.error.encryptedRequiresWorker' | 'archive.empty.title' | 'archive.empty.message' | 'archive.loading.initializingCandidate' | 'archive.loading.initializingCandidateHint' | 'archive.error.candidateInitTimeout' | 'archive.error.encryptedCheckTimeout' | 'archive.loading.directoryReadyHint' | 'archive.error.candidateReadTimeout' | 'archive.loading.workerFallback' | 'archive.loading.workerFallbackHint' | 'archive.notice.workerFallback' | 'archive.error.tooLarge' | 'archive.loading.initializingWorker' | 'archive.loading.initializingWorkerHint' | 'archive.error.workerInitFailed' | 'archive.error.workerUnsupported' | 'archive.error.indexedDbUnavailable' | 'archive.error.entryTooLarge' | 'archive.loading.extracting' | 'archive.loading.rendering' | 'archive.loading.exporting' | 'media.audio.title' | 'media.audio.description' | 'media.audio.unsupported' | 'media.video.title' | 'media.video.unsupported' | 'media.video.hlsHint' | 'media.video.codecUnsupportedBadge' | 'media.video.codecUnsupportedTitle' | 'media.video.codecUnsupportedDescription' | 'media.video.codecUnsupportedAction' | 'media.video.softwareLoading' | 'media.video.softwareBadge' | 'media.video.play' | 'media.video.pause' | 'media.video.seek' | 'media.video.mute' | 'media.video.unmute' | 'media.video.fullscreen' | 'media.midi.title' | 'media.midi.loading' | 'media.midi.trackHeader' | 'media.midi.instrumentHeader' | 'media.midi.channelHeader' | 'media.midi.noteCountHeader' | 'media.midi.durationHeader' | 'media.midi.durationStat' | 'media.midi.trackStat' | 'media.midi.noteStat' | 'media.midi.parseFailed' | 'email.mbox.subject' | 'email.mbox.summary' | 'email.error.title' | 'email.meta.from' | 'email.meta.to' | 'email.meta.cc' | 'email.meta.date' | 'email.tabs.text' | 'email.tabs.headers' | 'email.attachments.title' | 'email.attachments.empty' | 'email.attachments.download' | 'email.attachments.opening' | 'email.attachments.nestedUnavailable' | 'email.loading.parsing' | 'data.font.sample' | 'data.error.fontFaceUnsupported' | 'data.title.font' | 'data.title.sqlite' | 'data.title.parquet' | 'data.title.avro' | 'data.title.wasm' | 'data.title.eps' | 'data.title.ai' | 'data.title.webarchive' | 'data.title.summary' | 'data.label.format' | 'data.label.size' | 'data.label.rendering' | 'data.label.objects' | 'data.label.sampleTable' | 'data.label.rows' | 'data.label.columns' | 'data.label.sampleRows' | 'data.label.imports' | 'data.label.exports' | 'data.label.magic' | 'data.label.note' | 'data.label.container' | 'data.value.schemaRead' | 'data.value.schemaUnread' | 'data.note.aiSummary' | 'data.note.postscriptSummary' | 'data.note.webarchive' | 'data.image.alt' | 'psd.title' | 'psd.action.fit' | 'psd.action.showAll' | 'psd.action.hideAll' | 'psd.layers.title' | 'psd.layers.redrawable' | 'psd.layers.empty' | 'psd.layers.hidden' | 'drawing.error.viewerLoadFailed' | 'drawing.error.excalidrawEmpty' | 'drawing.error.excalidrawTimeout' | 'drawing.error.drawioParseFailed' | 'drawing.error.drawioNoModel' | 'drawing.error.drawioNoElements' | 'drawing.error.viewerInitFailed' | 'drawing.error.drawioTimeout' | 'drawing.error.svgParseFailed' | 'drawing.error.plantumlRenderFailed' | 'drawing.title.excalidraw' | 'drawing.title.mermaid' | 'drawing.title.plantuml' | 'drawing.title.drawio' | 'drawing.toolbar.zoomOut' | 'drawing.toolbar.zoomIn' | 'drawing.toolbar.fit' | 'drawing.toolbar.fitWidth' | 'drawing.state.loading' | 'text.code.loadingHighlight' | 'text.code.indexingLargeFile' | 'text.code.virtualized' | 'text.code.firstSegment' | 'text.code.previousSegment' | 'text.code.nextSegment' | 'text.code.lastSegment' | 'ebook.toc' | 'ebook.reading' | 'ebook.itemCount' | 'epub.title' | 'epub.previousPage' | 'epub.nextPage' | 'epub.loading' | 'epub.chapterFallback' | 'epub.renderIncomplete' | 'umd.title' | 'umd.previousChapter' | 'umd.nextChapter' | 'umd.loading' | 'umd.emptyContent' | 'umd.chapterFallback' | 'umd.galleryFallback' | 'umd.warningBodyTooShort' | 'umd.error.unexpectedEnd' | 'umd.error.invalidFile' | 'typst.summaryRenderer' | 'typst.pageSummary.empty' | 'typst.pageSummary.ready' | 'typst.status.compiling' | 'typst.status.failed' | 'typst.status.rendered' | 'typst.loading.title' | 'typst.loading.hint' | 'typst.error.title' | 'typst.error.timeout' | 'typst.error.timeoutHint' | 'typst.error.assetHint' | 'typst.error.svgParseFailed' | 'typst.error.wasmLoadFailed' | 'xmind.toolbar.zoomOut' | 'xmind.toolbar.zoomIn' | 'xmind.toolbar.fit' | 'xmind.toolbar.fitTitle' | 'xmind.state.loading' | 'xmind.stats.nodes' | 'xmind.stats.depth' | 'xmind.stats.theme' | 'xmind.stats.template' | 'xmind.badge.paused' | 'xmind.badge.collapsed' | 'xmind.badge.floating' | 'xmind.badge.summary' | 'xmind.badge.callout' | 'xmind.imageResource' | 'xmind.error.unrecognized' | 'xmind.error.noCanvas' | 'cad.toolbar.fit' | 'cad.toolbar.zoomOut' | 'cad.toolbar.zoomIn' | 'cad.layers.title' | 'cad.layers.count' | 'cad.layers.merged' | 'cad.inspector.title' | 'cad.inspector.entities' | 'cad.inspector.blocks' | 'cad.inspector.pages' | 'cad.inspector.drawn' | 'cad.state.loadingViewer' | 'cad.state.parsing' | 'cad.error.parseFailed' | 'image.alt' | 'image.toolbar.rotation' | 'image.toolbar.rotateLeft' | 'image.toolbar.rotateRight' | 'image.lightbox.alt' | 'image.lightbox.close' | 'gitBundle.error.invalid' | 'gitBundle.error.missingPack' | 'gitBundle.notice.delta' | 'gitBundle.title.history' | 'gitBundle.title.fileTree' | 'gitBundle.file.choose' | 'gitBundle.file.noTree' | 'gitBundle.file.none' | 'gitBundle.history.empty' | 'gitBundle.toolbar.summary' | 'gitBundle.meta.bundle' | 'gitBundle.meta.refs' | 'gitBundle.meta.commits' | 'gitBundle.meta.objects' | 'gitBundle.meta.deltas' | 'gitBundle.meta.objectFormat' | 'gitBundle.meta.objectTypes' | 'geo.error.unrecognized' | 'geo.error.xmlParseFailed' | 'geo.error.unsupported' | 'geo.title' | 'geo.featureCount' | 'geo.bounds' | 'geo.geometryTypes' | 'geo.aria' | 'geo.loading' | 'geo.projection' | 'geo.engine' | 'geo.basemap' | 'geo.basemap.offline' | 'geo.basemap.custom' | 'geo.engine.maplibre' | 'geo.engine.svg' | 'geo.error.projection' | 'geo.action.fit' | 'model.toolbar.fit' | 'model.toolbar.rotate' | 'model.toolbar.wireframe' | 'model.toolbar.grid' | 'model.toolbar.axes' | 'model.state.loadingSummary' | 'model.state.loading' | 'model.state.loaded' | 'model.state.parseFailed' | 'model.summary.meshes' | 'model.summary.points' | 'model.error.daeEmpty' | 'model.error.unsupported' | 'model.error.parseFailed' | 'model.notice.signature' | 'loading.generic.label' | 'loading.generic.hint' | 'loading.word.label' | 'loading.word.hint' | 'loading.wordWorker.hint' | 'loading.sheet.label' | 'loading.sheet.hint' | 'loading.csv.label' | 'loading.csv.hint' | 'loading.presentation.label' | 'loading.presentation.hint' | 'loading.pdf.label' | 'loading.pdf.hint' | 'loading.ofd.label' | 'loading.ofd.hint' | 'loading.archive.label' | 'loading.archive.hint' | 'loading.email.label' | 'loading.email.hint' | 'loading.msg.hint' | 'loading.eda.label' | 'loading.eda.hint' | 'loading.cad.label' | 'loading.cad.hint' | 'loading.dwg.hint' | 'loading.dwf.hint' | 'loading.dwfx.hint' | 'loading.xps.hint' | 'loading.drawio.label' | 'loading.drawio.hint' | 'loading.excalidraw.label' | 'loading.excalidraw.hint' | 'loading.epub.label' | 'loading.epub.hint' | 'loading.umd.label' | 'loading.umd.hint' | 'loading.image.label' | 'loading.image.hint' | 'loading.video.label' | 'loading.video.hint' | 'loading.audio.label' | 'loading.audio.hint'; | ||
| export type FileViewerMessageParams = Record<string, string | number | boolean | null | undefined>; | ||
@@ -252,2 +252,49 @@ export type FileViewerMessageResolver = (key: FileViewerMessageKey, params: FileViewerMessageParams, locale: FileViewerLocale) => string | undefined; | ||
| } | ||
| export type FileViewerIworkEmbeddedPreviewMode = 'never' | 'loading' | 'fallback'; | ||
| export interface FileViewerIworkOptions { | ||
| /** Self-hosted module Worker used for ZIP, Snappy, IWA/Protobuf and iWork '09 XML parsing. */ | ||
| workerUrl?: string | URL; | ||
| /** Defaults to true. Disable only in environments without Worker support. */ | ||
| useWorker?: boolean; | ||
| /** Maximum parse time before the Worker is terminated. Defaults to 60 seconds. */ | ||
| workerTimeoutMs?: number; | ||
| /** Maximum total bytes produced while inflating the outer container and Index.zip. Defaults to 256 MiB. */ | ||
| maxUncompressedBytes?: number; | ||
| /** Maximum accepted ZIP compression ratio for a single entry. Defaults to 200. */ | ||
| maxCompressionRatio?: number; | ||
| /** Maximum decoded IWA archive/object count. Defaults to 250,000. */ | ||
| maxObjects?: number; | ||
| /** Maximum decoded image pixels for one media resource. Defaults to 80 megapixels. */ | ||
| maxImagePixels?: number; | ||
| /** Maximum normalized scene/object nesting depth. Defaults to 128. */ | ||
| maxNestingDepth?: number; | ||
| /** Embedded Quick Look images are loading placeholders or explicit parse-failure fallbacks, never fidelity evidence. */ | ||
| embeddedPreview?: FileViewerIworkEmbeddedPreviewMode; | ||
| } | ||
| export interface FileViewerWordPerfectOptions { | ||
| /** Self-hosted Worker that owns WordPerfect signature detection and parsing. */ | ||
| workerUrl?: string | URL; | ||
| /** Self-hosted libwpd/librevenge WebAssembly module. */ | ||
| wasmUrl?: string | URL; | ||
| /** Defaults to true. */ | ||
| useWorker?: boolean; | ||
| /** Maximum parser time before the Worker is terminated. Defaults to 60 seconds. */ | ||
| workerTimeoutMs?: number; | ||
| } | ||
| export interface FileViewerHangulOptions { | ||
| /** Self-hosted module Worker used for bounded HWP v5 CFB and HWPX ZIP/XML parsing. */ | ||
| workerUrl?: string | URL; | ||
| /** Defaults to true. Disable only in environments without Worker support. */ | ||
| useWorker?: boolean; | ||
| /** Maximum parser time before the Worker is terminated. Defaults to 60 seconds. */ | ||
| workerTimeoutMs?: number; | ||
| /** Maximum total uncompressed HWPX entry bytes or individual HWP stream bytes. Defaults to 256 MiB. */ | ||
| maxUncompressedBytes?: number; | ||
| /** Maximum accepted HWPX ZIP compression ratio for a single entry. Defaults to 200. */ | ||
| maxCompressionRatio?: number; | ||
| /** Maximum HWPX ZIP entry count. Defaults to 25,000. */ | ||
| maxEntries?: number; | ||
| /** Maximum HWP record count decoded across one stream. Defaults to 250,000. */ | ||
| maxRecords?: number; | ||
| } | ||
| export type FileRenderExportMode = 'export' | 'print'; | ||
@@ -534,2 +581,7 @@ export type FileViewerRenderPurpose = 'preview' | 'thumbnail'; | ||
| /** | ||
| * Source encoding. Defaults to `auto`: BOM and UTF-16 structure first, | ||
| * then strict UTF-8, with GB18030 (including GBK) as the final fallback. | ||
| */ | ||
| encoding?: 'auto' | 'utf-8' | 'utf-16le' | 'utf-16be' | 'gbk' | 'gb18030'; | ||
| /** | ||
| * Shows the renderer-local source metadata toolbar (file type, indexing | ||
@@ -577,2 +629,8 @@ * status, and line count). Defaults to true. This does not control the | ||
| } | ||
| export interface FileViewerDiagnostic { | ||
| code: string; | ||
| level: 'info' | 'warning' | 'error'; | ||
| message: string; | ||
| detail?: Readonly<Record<string, unknown>>; | ||
| } | ||
| export interface FileViewerOptions { | ||
@@ -588,4 +646,5 @@ theme?: FileViewerThemeMode; | ||
| /** | ||
| * Viewer UI language. `auto` follows the browser language, Chinese browsers | ||
| * resolve to `zh-CN`, and all other languages currently resolve to `en-US`. | ||
| * Viewer UI language. `auto` follows the browser language and resolves the | ||
| * built-in Chinese, English, Japanese, and German locales before falling | ||
| * back to `en-US`. | ||
| */ | ||
@@ -672,2 +731,7 @@ locale?: FileViewerLocale; | ||
| spreadsheet?: FileViewerSpreadsheetOptions; | ||
| iwork?: FileViewerIworkOptions; | ||
| wordPerfect?: FileViewerWordPerfectOptions; | ||
| hangul?: FileViewerHangulOptions; | ||
| /** Receives non-fatal routing, fallback, and capability diagnostics. */ | ||
| onDiagnostic?: (diagnostic: FileViewerDiagnostic) => void; | ||
| typst?: FileViewerTypstOptions; | ||
@@ -1001,2 +1065,4 @@ geo?: FileViewerGeoOptions; | ||
| } | ||
| export type FileViewerFormatSupportLevel = 'high-fidelity' | 'structured' | 'basic' | 'experimental'; | ||
| export type FileViewerFormatStatus = 'stable' | 'experimental'; | ||
| export interface RendererDefinition { | ||
@@ -1008,2 +1074,12 @@ id: string; | ||
| async?: boolean; | ||
| /** Product-level fidelity contract generated from ecosystem/format-catalog.json. */ | ||
| supportLevel?: FileViewerFormatSupportLevel; | ||
| /** Experimental formats are routable but are excluded from stable support counts. */ | ||
| status?: FileViewerFormatStatus; | ||
| /** Owning on-demand renderer package. */ | ||
| packageName?: string; | ||
| /** Presets that assemble this renderer. */ | ||
| presets?: readonly FileViewerRendererPresetName[]; | ||
| containerVersions?: readonly string[]; | ||
| knownLimits?: readonly string[]; | ||
| capabilities?: RendererCapability; | ||
@@ -1010,0 +1086,0 @@ load?: RendererLoader; |
@@ -1,6 +0,6 @@ | ||
| export { DEFAULT_FILE_VIEWER_ARCHIVE_WORKER_PATH, DEFAULT_FILE_VIEWER_ARCHIVE_WASM_PATH, DEFAULT_FILE_VIEWER_CAD_DWF_WASM_PATH, DEFAULT_FILE_VIEWER_CAD_LIBREDWG_SCRIPT_PATH, DEFAULT_FILE_VIEWER_CAD_LIBREDWG_WASM_PATH, DEFAULT_FILE_VIEWER_CAD_RUNTIME_VERSION, DEFAULT_FILE_VIEWER_CAD_WASM_PATH, DEFAULT_FILE_VIEWER_CAD_WORKER_PATH, DEFAULT_FILE_VIEWER_DATA_SQL_WASM_URL, DEFAULT_FILE_VIEWER_DOCX_WORKER_JSZIP_PATH, DEFAULT_FILE_VIEWER_DOCX_WORKER_PATH, DEFAULT_FILE_VIEWER_DOCX_RUNTIME_VERSION, DEFAULT_FILE_VIEWER_PPT_FONT_PATH, DEFAULT_FILE_VIEWER_PPT_FRAME_CACHE_PATH, DEFAULT_FILE_VIEWER_PPT_MODULE_PATH, DEFAULT_FILE_VIEWER_PPT_RUNTIME_PATH, DEFAULT_FILE_VIEWER_PPT_RUNTIME_VERSION, DEFAULT_FILE_VIEWER_PPT_WASM_PATH, DEFAULT_FILE_VIEWER_PPT_WORKER_PATH, DEFAULT_FILE_VIEWER_PRESENTATION_WORKER_PATH, DEFAULT_FILE_VIEWER_RENDERER_ASSET_MANIFESTS, DEFAULT_FILE_VIEWER_SPREADSHEET_WORKER_PATH, DEFAULT_FILE_VIEWER_TYPST_COMPILER_WASM_URL, DEFAULT_FILE_VIEWER_TYPST_RENDERER_WASM_PACKAGE_PATH, DEFAULT_FILE_VIEWER_TYPST_RENDERER_WASM_URL, getFileViewerRendererAssetManifest, listFileViewerRendererAssetManifests, resolveFileViewerArchiveWasmUrl, resolveFileViewerArchiveWorkerUrl, resolveFileViewerAssetUrl, resolveFileViewerCadAssetUrls, resolveFileViewerDataSqlWasmUrl, resolveFileViewerDocxWorkerJsZipUrl, resolveFileViewerDocxWorkerUrl, resolveFileViewerDrawioViewerScriptUrl, resolveFileViewerPresentationWorkerUrl, resolveFileViewerRendererAssets, resolveFileViewerSpreadsheetWorkerUrl, resolveFileViewerTypstCompilerWasmUrl, resolveFileViewerTypstRendererWasmUrl, } from './assets'; | ||
| export { DEFAULT_FILE_VIEWER_ARCHIVE_WORKER_PATH, DEFAULT_FILE_VIEWER_ARCHIVE_WASM_PATH, DEFAULT_FILE_VIEWER_CAD_DWF_WASM_PATH, DEFAULT_FILE_VIEWER_CAD_LIBREDWG_SCRIPT_PATH, DEFAULT_FILE_VIEWER_CAD_LIBREDWG_WASM_PATH, DEFAULT_FILE_VIEWER_CAD_RUNTIME_VERSION, DEFAULT_FILE_VIEWER_CAD_WASM_PATH, DEFAULT_FILE_VIEWER_CAD_WORKER_PATH, DEFAULT_FILE_VIEWER_DATA_SQL_WASM_URL, DEFAULT_FILE_VIEWER_DOCX_WORKER_JSZIP_PATH, DEFAULT_FILE_VIEWER_DOCX_WORKER_PATH, DEFAULT_FILE_VIEWER_DOCX_RUNTIME_VERSION, DEFAULT_FILE_VIEWER_PPT_FONT_PATH, DEFAULT_FILE_VIEWER_PPT_FRAME_CACHE_PATH, DEFAULT_FILE_VIEWER_PPT_MODULE_PATH, DEFAULT_FILE_VIEWER_PPT_RUNTIME_PATH, DEFAULT_FILE_VIEWER_PPT_RUNTIME_VERSION, DEFAULT_FILE_VIEWER_PPT_WASM_PATH, DEFAULT_FILE_VIEWER_PPT_WORKER_PATH, DEFAULT_FILE_VIEWER_PRESENTATION_WORKER_PATH, DEFAULT_FILE_VIEWER_RENDERER_ASSET_MANIFESTS, DEFAULT_FILE_VIEWER_SPREADSHEET_WORKER_PATH, DEFAULT_FILE_VIEWER_IWORK_WORKER_PATH, DEFAULT_FILE_VIEWER_IWORK_WORKER_PACKAGE_PATH, DEFAULT_FILE_VIEWER_HANGUL_WORKER_PATH, DEFAULT_FILE_VIEWER_HANGUL_WORKER_PACKAGE_PATH, DEFAULT_FILE_VIEWER_WORDPERFECT_WORKER_PATH, DEFAULT_FILE_VIEWER_WORDPERFECT_WORKER_PACKAGE_PATH, DEFAULT_FILE_VIEWER_WORDPERFECT_WASM_PATH, DEFAULT_FILE_VIEWER_WORDPERFECT_WASM_PACKAGE_PATH, DEFAULT_FILE_VIEWER_WORDPERFECT_MODULE_PATH, DEFAULT_FILE_VIEWER_WORDPERFECT_MODULE_PACKAGE_PATH, DEFAULT_FILE_VIEWER_TYPST_COMPILER_WASM_URL, DEFAULT_FILE_VIEWER_TYPST_RENDERER_WASM_PACKAGE_PATH, DEFAULT_FILE_VIEWER_TYPST_RENDERER_WASM_URL, getFileViewerRendererAssetManifest, listFileViewerRendererAssetManifests, resolveFileViewerArchiveWasmUrl, resolveFileViewerArchiveWorkerUrl, resolveFileViewerAssetUrl, resolveFileViewerCadAssetUrls, resolveFileViewerDataSqlWasmUrl, resolveFileViewerDocxWorkerJsZipUrl, resolveFileViewerDocxWorkerUrl, resolveFileViewerDrawioViewerScriptUrl, resolveFileViewerPresentationWorkerUrl, resolveFileViewerRendererAssets, resolveFileViewerSpreadsheetWorkerUrl, resolveFileViewerIworkWorkerUrl, resolveFileViewerHangulWorkerUrl, resolveFileViewerWordPerfectWorkerUrl, resolveFileViewerWordPerfectWasmUrl, resolveFileViewerTypstCompilerWasmUrl, resolveFileViewerTypstRendererWasmUrl, } from './assets'; | ||
| export type { FileViewerRendererAssetDefinition, FileViewerRendererAssetKind, FileViewerRendererAssetManifest, FileViewerRendererAssetOptionPath, FileViewerRendererAssetTarget, ResolveFileViewerAssetUrlOptions, ResolveFileViewerRendererAssetsOptions, ResolvedFileViewerCadAssetUrls, ResolvedFileViewerRendererAsset, } from './assets'; | ||
| export { ADAPTER_PRINT_REQUIRED_EXTENSIONS, applyFileViewerZoomAvailability, createUnsupportedAvailability, DEFAULT_OPERATION_AVAILABILITY, DOM_PRINTABLE_EXTENSIONS, getRendererAvailability, isDomPrintableExtension, isKnownNonPrintableExtension, needsDedicatedPrintAdapter, NON_PRINTABLE_EXTENSIONS, resolvePrintAvailability, } from './registry/capabilities'; | ||
| export { DEFAULT_FILE_VIEWER_TEXT_CHUNK_OVERLAP, DEFAULT_FILE_VIEWER_TEXT_CHUNK_SIZE, DEFAULT_FILE_VIEWER_ZOOM_SCALE, buildFileViewerDocumentTextChunks, createEmptyFileViewerSearchState, createFileViewerZoomState, normalizeFileViewerAiOptions, normalizeFileViewerSearchOptions, } from './features/document/model'; | ||
| export { ARCHIVE_EXTENSIONS, DEFAULT_RENDERER_DEFINITIONS, DEFAULT_SUPPORTED_EXTENSIONS, IMAGE_EXTENSIONS, MODEL_EXTENSIONS, TEXT_EXTENSIONS, } from './registry/formats'; | ||
| export { ARCHIVE_EXTENSIONS, DEFAULT_REGISTERED_EXTENSIONS, DEFAULT_RENDERER_DEFINITIONS, DEFAULT_STABLE_SUPPORTED_EXTENSIONS, DEFAULT_SUPPORTED_EXTENSIONS, IMAGE_EXTENSIONS, MODEL_EXTENSIONS, TEXT_EXTENSIONS, } from './registry/formats'; | ||
| export { precheckFileViewerSource } from './source/precheck'; | ||
@@ -21,4 +21,4 @@ export type { FileViewerPrecheckOptions, FileViewerPrecheckReason, FileViewerPrecheckResult, FileViewerPrecheckStatus, } from './source/precheck'; | ||
| export type { CreateFileRenderHandlerLoaderOptions, CreateFileRenderHandlerRegistryOptions, FileRenderHandlerRegistryResult, } from './rendering/handler'; | ||
| export { DEFAULT_FILE_VIEWER_SOURCE_FILENAME, decodeFilename, getExtension, normalizeFileExtension, normalizeFilename, normalizeSource, readFileViewerBuffer, readFileViewerDataUrl, readFileViewerText, resolveFileViewerSourceFilename, wrapFileViewerFileRef, } from './source'; | ||
| export type { FileViewerReadResult, } from './source'; | ||
| export { DEFAULT_FILE_VIEWER_SOURCE_FILENAME, createFileViewerTextDecoder, decodeFileViewerTextBuffer, decodeFilename, getExtension, normalizeFileExtension, normalizeFilename, normalizeSource, isValidFileViewerUtf8, resolveFileViewerTextEncoding, readFileViewerBuffer, readFileViewerDataUrl, readFileViewerText, resolveFileViewerSourceFilename, wrapFileViewerFileRef, } from './source'; | ||
| export type { DecodedFileViewerText, FileViewerReadResult, FileViewerTextEncoding, ResolvedFileViewerTextEncoding, ResolvedFileViewerTextSource, } from './source'; | ||
| export { cancelFileViewerPreviewRequest, DEFAULT_FILE_VIEWER_PREVIEW_LOAD_ERROR_LOGGER, DEFAULT_FILE_VIEWER_STREAMING_PDF_FILENAME, DEFAULT_PDF_RANGE_CHUNK_SIZE, FILE_VIEWER_PREVIEW_LOAD_ERROR_PREFIXES, FILE_VIEWER_REMOTE_MISSING_DATA_ERROR_MESSAGE, applyFileViewerEmptyPreviewState, applyFileViewerPreviewFilenameState, applyFileViewerPreviewRequestResetState, applyFileViewerPreviewSourceUrlState, applyFileViewerReadPreviewState, applyFileViewerRenderReadinessState, commitFileViewerEmptyPreviewResetState, commitFileViewerLoadStartState, commitFileViewerPreviewRequestStartState, commitFileViewerRemoteDownloadState, createFileViewerEmptyPreviewState, createFileViewerLoadStartState, createFileViewerPreviewRequestResetState, createFileViewerPreviewStateTarget, createFileViewerReadPreviewState, createFileViewerRenderCompleteState, createFileViewerRequestController, createFileViewerRequestScope, createFileViewerSourceLoadingActionHandlers, createFileViewerStreamingPdfPlaceholderFile, finalizeFileViewerPreviewLoadState, hasFileViewerPreviewSource, isFileViewerAbortError, isSameOriginUrl, normalizeFileViewerSourceUrl, normalizePdfStreamingMode, reportFileViewerMissingRemoteData, reportFileViewerPreviewLoadError, resolveFileViewerFileRefSourcePlan, resolveFileViewerLoadStartMessage, resolveFileViewerMissingRemoteDataErrorMessage, resolveFileViewerPageHref, resolveFileViewerPreviewLoadErrorMessage, resolveFileViewerPreviewRequestReason, resolveFileViewerRemoteSourcePlan, runFileViewerLocalFilePreview, runFileViewerPreviewComponentUnmount, runFileViewerPreviewRequest, runFileViewerPreviewSourceChange, runFileViewerRemoteFilePreview, runFileViewerReadAndRenderFile, runFileViewerStreamingPdfPreview, shouldStreamPdfUrl, } from './source/loading'; | ||
@@ -30,2 +30,2 @@ export type { CancelFileViewerPreviewRequestInput, CommitFileViewerEmptyPreviewResetStateInput, CommitFileViewerLoadStartStateInput, CommitFileViewerPreviewRequestStartStateInput, CommitFileViewerRenderCompleteStateInput, CommitFileViewerRemoteDownloadStateInput, CreateFileViewerLoadStartStateInput, CreateFileViewerPreviewStateTargetInput, CreateFileViewerReadPreviewStateInput, CreateFileViewerRenderCompleteStateInput, CreateFileViewerSourceLoadingActionHandlersInput, FileViewerEmptyPreviewState, FileViewerFileRefSourcePlan, FileViewerLocalFilePreviewState, FileViewerLoadStartState, FileViewerLocationLike, FileViewerMutableAccessor, FileViewerPreviewComponentUnmountState, FileViewerPreviewLoadErrorKind, FileViewerPreviewLoadErrorLogger, FileViewerPreviewLoadErrorPrefixes, FileViewerPreviewRequestResetState, FileViewerPreviewRequestRunState, FileViewerReadAndRenderFileState, FileViewerReadPreviewState, FileViewerRemoteDownloadState, FileViewerRemoteFileDownloadInput, FileViewerRemoteFilePreviewErrorKind, FileViewerRemoteFilePreviewState, FileViewerRemoteSourcePlan, FileViewerRenderCompleteState, FileViewerRenderReadinessState, FileViewerRequestController, FileViewerRequestScope, FileViewerSourceLoadingActionHandlers, FileViewerStreamingPdfPreviewState, FinalizeFileViewerPreviewLoadStateInput, MutableFileViewerPreviewFilenameState, MutableFileViewerPreviewRequestState, MutableFileViewerPreviewSourceUrlState, MutableFileViewerPreviewState, MutableFileViewerReadPreviewState, MutableFileViewerRenderReadinessState, ReportFileViewerMissingRemoteDataInput, ReportFileViewerPreviewLoadErrorInput, ResolveFileViewerFileRefSourcePlanInput, ResolveFileViewerMissingRemoteDataErrorMessageInput, ResolveFileViewerPreviewLoadErrorMessageInput, ResolveFileViewerPreviewRequestReasonInput, RunFileViewerLocalFilePreviewInput, RunFileViewerPreviewComponentUnmountInput, RunFileViewerPreviewRequestInput, RunFileViewerPreviewSourceChangeInput, RunFileViewerReadAndRenderFileInput, RunFileViewerRemoteFilePreviewInput, RunFileViewerStreamingPdfPreviewInput, } from './source/loading'; | ||
| export type { FileViewerWatermarkPresentationState, FileViewerWatermarkStyle, } from './features/watermark'; | ||
| export type { FileRenderContext, FileRenderExportAdapter, FileRenderExportMode, FileRenderExportOptions, FileRenderHandler, FileRenderHandlerComposite, FileViewerBuiltinRendererPreset, FileViewerAiOptions, FileViewerArchiveEntryActionContext, FileViewerArchiveEntryActionPolicy, FileViewerArchiveEntryActionsOptions, FileViewerArchiveOptions, FileViewerApplyViewStateOptions, FileViewerBeforeOperation, FileViewerCadDwfLineWeightMode, FileViewerCadOptions, FileViewerCadRenderer, FileViewerComponentEmits, FileViewerComponentEventMap, FileViewerComponentProps, FileViewerDocumentAnchor, FileViewerDocumentChunk, FileViewerDocxOptions, FileViewerDrawingOptions, FileViewerDownloadOptions, FileViewerEvent, FileViewerEventHandler, FileViewerEventType, FileViewerExportHtmlOptions, FileViewerFileRef, FileViewerFitMode, FileViewerFitOptions, FileViewerFitRequest, FileViewerFitResize, FileViewerFitResult, FileViewerGeoOptions, FileViewerInstance, FileViewerLifecycleContext, FileViewerLifecycleHooks, FileViewerLifecyclePhase, FileViewerI18nOptions, FileViewerLocale, FileViewerMessageKey, FileViewerMessageParams, FileViewerMessageResolver, FileViewerMessages, FileViewerNavigationState, FileViewerOperationAvailability, FileViewerOperationContext, FileViewerOperationType, FileViewerOptions, FileViewerPdfBoundingBox, FileViewerPdfBoundingBoxOrigin, FileViewerPdfBoundingBoxUnit, FileViewerPdfOptions, FileViewerPresentationOptions, FileViewerPrintMaskOptions, FileViewerPrintMaskRegion, FileViewerPrintOptions, FileViewerPrintStamp, FileViewerPublicApi, FileViewerRenderStateKind, FileViewerRenderedInstance, FileViewerRendererCategory, FileViewerSearchMatch, FileViewerSearchOptions, FileViewerSearchProvider, FileViewerSearchState, FileViewerSource, FileViewerSourceKind, FileViewerSpreadsheetOptions, FileViewerStateDescriptor, FileViewerStateTheme, FileViewerTextOptions, FileViewerResolvedThemeMode, FileViewerThemeMode, FileViewerToolbarActionMap, FileViewerToolbarItem, FileViewerToolbarOptions, FileViewerToolbarPosition, FileViewerResolvedToolbarItem, FileViewerUiDensity, FileViewerUiOptions, FileViewerTypstOptions, FileViewerViewScrollState, FileViewerViewState, FileViewerViewStateChange, FileViewerViewStateChangeAction, FileViewerViewStateChangeSource, FileViewerViewStateProvider, FileViewerWatermarkOptions, FileViewerZoomProvider, FileViewerZoomState, NormalizedFileViewerSource, RenderSurface, RendererCapability, RendererDefinition, RendererLoadContext, RendererLoader, RendererPlugin, RendererRegistry, RendererSession, ViewerCapabilityState, ViewerLifecycleContext, ViewerOperationContext, } from './contracts/types'; | ||
| export type { FileRenderContext, FileRenderExportAdapter, FileRenderExportMode, FileRenderExportOptions, FileRenderHandler, FileRenderHandlerComposite, FileViewerBuiltinRendererPreset, FileViewerAiOptions, FileViewerArchiveEntryActionContext, FileViewerArchiveEntryActionPolicy, FileViewerArchiveEntryActionsOptions, FileViewerArchiveOptions, FileViewerApplyViewStateOptions, FileViewerBeforeOperation, FileViewerCadDwfLineWeightMode, FileViewerCadOptions, FileViewerCadRenderer, FileViewerComponentEmits, FileViewerComponentEventMap, FileViewerComponentProps, FileViewerDocumentAnchor, FileViewerDocumentChunk, FileViewerDocxOptions, FileViewerDrawingOptions, FileViewerDownloadOptions, FileViewerEvent, FileViewerEventHandler, FileViewerEventType, FileViewerExportHtmlOptions, FileViewerFileRef, FileViewerFitMode, FileViewerFitOptions, FileViewerFitRequest, FileViewerFitResize, FileViewerFitResult, FileViewerFormatStatus, FileViewerFormatSupportLevel, FileViewerGeoOptions, FileViewerInstance, FileViewerLifecycleContext, FileViewerLifecycleHooks, FileViewerLifecyclePhase, FileViewerI18nOptions, FileViewerIworkEmbeddedPreviewMode, FileViewerIworkOptions, FileViewerHangulOptions, FileViewerDiagnostic, FileViewerLocale, FileViewerMessageKey, FileViewerMessageParams, FileViewerMessageResolver, FileViewerMessages, FileViewerNavigationState, FileViewerOperationAvailability, FileViewerOperationContext, FileViewerOperationType, FileViewerOptions, FileViewerPdfBoundingBox, FileViewerPdfBoundingBoxOrigin, FileViewerPdfBoundingBoxUnit, FileViewerPdfOptions, FileViewerPresentationOptions, FileViewerPrintMaskOptions, FileViewerPrintMaskRegion, FileViewerPrintOptions, FileViewerPrintStamp, FileViewerPublicApi, FileViewerRenderStateKind, FileViewerRenderedInstance, FileViewerRendererCategory, FileViewerSearchMatch, FileViewerSearchOptions, FileViewerSearchProvider, FileViewerSearchState, FileViewerSource, FileViewerSourceKind, FileViewerSpreadsheetOptions, FileViewerStateDescriptor, FileViewerStateTheme, FileViewerTextOptions, FileViewerResolvedThemeMode, FileViewerThemeMode, FileViewerToolbarActionMap, FileViewerToolbarItem, FileViewerToolbarOptions, FileViewerToolbarPosition, FileViewerResolvedToolbarItem, FileViewerUiDensity, FileViewerUiOptions, FileViewerTypstOptions, FileViewerViewScrollState, FileViewerViewState, FileViewerViewStateChange, FileViewerViewStateChangeAction, FileViewerViewStateChangeSource, FileViewerViewStateProvider, FileViewerWatermarkOptions, FileViewerWordPerfectOptions, FileViewerZoomProvider, FileViewerZoomState, NormalizedFileViewerSource, RenderSurface, RendererCapability, RendererDefinition, RendererLoadContext, RendererLoader, RendererPlugin, RendererRegistry, RendererSession, ViewerCapabilityState, ViewerLifecycleContext, ViewerOperationContext, } from './contracts/types'; |
+3
-3
@@ -6,6 +6,6 @@ // Headless API surface for adapters and non-DOM orchestration. | ||
| // framework wrapper. It is the safest entrypoint for React/Vue/Web packages. | ||
| export { DEFAULT_FILE_VIEWER_ARCHIVE_WORKER_PATH, DEFAULT_FILE_VIEWER_ARCHIVE_WASM_PATH, DEFAULT_FILE_VIEWER_CAD_DWF_WASM_PATH, DEFAULT_FILE_VIEWER_CAD_LIBREDWG_SCRIPT_PATH, DEFAULT_FILE_VIEWER_CAD_LIBREDWG_WASM_PATH, DEFAULT_FILE_VIEWER_CAD_RUNTIME_VERSION, DEFAULT_FILE_VIEWER_CAD_WASM_PATH, DEFAULT_FILE_VIEWER_CAD_WORKER_PATH, DEFAULT_FILE_VIEWER_DATA_SQL_WASM_URL, DEFAULT_FILE_VIEWER_DOCX_WORKER_JSZIP_PATH, DEFAULT_FILE_VIEWER_DOCX_WORKER_PATH, DEFAULT_FILE_VIEWER_DOCX_RUNTIME_VERSION, DEFAULT_FILE_VIEWER_PPT_FONT_PATH, DEFAULT_FILE_VIEWER_PPT_FRAME_CACHE_PATH, DEFAULT_FILE_VIEWER_PPT_MODULE_PATH, DEFAULT_FILE_VIEWER_PPT_RUNTIME_PATH, DEFAULT_FILE_VIEWER_PPT_RUNTIME_VERSION, DEFAULT_FILE_VIEWER_PPT_WASM_PATH, DEFAULT_FILE_VIEWER_PPT_WORKER_PATH, DEFAULT_FILE_VIEWER_PRESENTATION_WORKER_PATH, DEFAULT_FILE_VIEWER_RENDERER_ASSET_MANIFESTS, DEFAULT_FILE_VIEWER_SPREADSHEET_WORKER_PATH, DEFAULT_FILE_VIEWER_TYPST_COMPILER_WASM_URL, DEFAULT_FILE_VIEWER_TYPST_RENDERER_WASM_PACKAGE_PATH, DEFAULT_FILE_VIEWER_TYPST_RENDERER_WASM_URL, getFileViewerRendererAssetManifest, listFileViewerRendererAssetManifests, resolveFileViewerArchiveWasmUrl, resolveFileViewerArchiveWorkerUrl, resolveFileViewerAssetUrl, resolveFileViewerCadAssetUrls, resolveFileViewerDataSqlWasmUrl, resolveFileViewerDocxWorkerJsZipUrl, resolveFileViewerDocxWorkerUrl, resolveFileViewerDrawioViewerScriptUrl, resolveFileViewerPresentationWorkerUrl, resolveFileViewerRendererAssets, resolveFileViewerSpreadsheetWorkerUrl, resolveFileViewerTypstCompilerWasmUrl, resolveFileViewerTypstRendererWasmUrl, } from './assets.js'; | ||
| export { DEFAULT_FILE_VIEWER_ARCHIVE_WORKER_PATH, DEFAULT_FILE_VIEWER_ARCHIVE_WASM_PATH, DEFAULT_FILE_VIEWER_CAD_DWF_WASM_PATH, DEFAULT_FILE_VIEWER_CAD_LIBREDWG_SCRIPT_PATH, DEFAULT_FILE_VIEWER_CAD_LIBREDWG_WASM_PATH, DEFAULT_FILE_VIEWER_CAD_RUNTIME_VERSION, DEFAULT_FILE_VIEWER_CAD_WASM_PATH, DEFAULT_FILE_VIEWER_CAD_WORKER_PATH, DEFAULT_FILE_VIEWER_DATA_SQL_WASM_URL, DEFAULT_FILE_VIEWER_DOCX_WORKER_JSZIP_PATH, DEFAULT_FILE_VIEWER_DOCX_WORKER_PATH, DEFAULT_FILE_VIEWER_DOCX_RUNTIME_VERSION, DEFAULT_FILE_VIEWER_PPT_FONT_PATH, DEFAULT_FILE_VIEWER_PPT_FRAME_CACHE_PATH, DEFAULT_FILE_VIEWER_PPT_MODULE_PATH, DEFAULT_FILE_VIEWER_PPT_RUNTIME_PATH, DEFAULT_FILE_VIEWER_PPT_RUNTIME_VERSION, DEFAULT_FILE_VIEWER_PPT_WASM_PATH, DEFAULT_FILE_VIEWER_PPT_WORKER_PATH, DEFAULT_FILE_VIEWER_PRESENTATION_WORKER_PATH, DEFAULT_FILE_VIEWER_RENDERER_ASSET_MANIFESTS, DEFAULT_FILE_VIEWER_SPREADSHEET_WORKER_PATH, DEFAULT_FILE_VIEWER_IWORK_WORKER_PATH, DEFAULT_FILE_VIEWER_IWORK_WORKER_PACKAGE_PATH, DEFAULT_FILE_VIEWER_HANGUL_WORKER_PATH, DEFAULT_FILE_VIEWER_HANGUL_WORKER_PACKAGE_PATH, DEFAULT_FILE_VIEWER_WORDPERFECT_WORKER_PATH, DEFAULT_FILE_VIEWER_WORDPERFECT_WORKER_PACKAGE_PATH, DEFAULT_FILE_VIEWER_WORDPERFECT_WASM_PATH, DEFAULT_FILE_VIEWER_WORDPERFECT_WASM_PACKAGE_PATH, DEFAULT_FILE_VIEWER_WORDPERFECT_MODULE_PATH, DEFAULT_FILE_VIEWER_WORDPERFECT_MODULE_PACKAGE_PATH, DEFAULT_FILE_VIEWER_TYPST_COMPILER_WASM_URL, DEFAULT_FILE_VIEWER_TYPST_RENDERER_WASM_PACKAGE_PATH, DEFAULT_FILE_VIEWER_TYPST_RENDERER_WASM_URL, getFileViewerRendererAssetManifest, listFileViewerRendererAssetManifests, resolveFileViewerArchiveWasmUrl, resolveFileViewerArchiveWorkerUrl, resolveFileViewerAssetUrl, resolveFileViewerCadAssetUrls, resolveFileViewerDataSqlWasmUrl, resolveFileViewerDocxWorkerJsZipUrl, resolveFileViewerDocxWorkerUrl, resolveFileViewerDrawioViewerScriptUrl, resolveFileViewerPresentationWorkerUrl, resolveFileViewerRendererAssets, resolveFileViewerSpreadsheetWorkerUrl, resolveFileViewerIworkWorkerUrl, resolveFileViewerHangulWorkerUrl, resolveFileViewerWordPerfectWorkerUrl, resolveFileViewerWordPerfectWasmUrl, resolveFileViewerTypstCompilerWasmUrl, resolveFileViewerTypstRendererWasmUrl, } from './assets.js'; | ||
| export { ADAPTER_PRINT_REQUIRED_EXTENSIONS, applyFileViewerZoomAvailability, createUnsupportedAvailability, DEFAULT_OPERATION_AVAILABILITY, DOM_PRINTABLE_EXTENSIONS, getRendererAvailability, isDomPrintableExtension, isKnownNonPrintableExtension, needsDedicatedPrintAdapter, NON_PRINTABLE_EXTENSIONS, resolvePrintAvailability, } from './registry/capabilities.js'; | ||
| export { DEFAULT_FILE_VIEWER_TEXT_CHUNK_OVERLAP, DEFAULT_FILE_VIEWER_TEXT_CHUNK_SIZE, DEFAULT_FILE_VIEWER_ZOOM_SCALE, buildFileViewerDocumentTextChunks, createEmptyFileViewerSearchState, createFileViewerZoomState, normalizeFileViewerAiOptions, normalizeFileViewerSearchOptions, } from './features/document/model.js'; | ||
| export { ARCHIVE_EXTENSIONS, DEFAULT_RENDERER_DEFINITIONS, DEFAULT_SUPPORTED_EXTENSIONS, IMAGE_EXTENSIONS, MODEL_EXTENSIONS, TEXT_EXTENSIONS, } from './registry/formats.js'; | ||
| export { ARCHIVE_EXTENSIONS, DEFAULT_REGISTERED_EXTENSIONS, DEFAULT_RENDERER_DEFINITIONS, DEFAULT_STABLE_SUPPORTED_EXTENSIONS, DEFAULT_SUPPORTED_EXTENSIONS, IMAGE_EXTENSIONS, MODEL_EXTENSIONS, TEXT_EXTENSIONS, } from './registry/formats.js'; | ||
| export { precheckFileViewerSource } from './source/precheck.js'; | ||
@@ -19,5 +19,5 @@ export { FILE_VIEWER_BEFORE_OPERATION_ERROR_PREFIX, DEFAULT_FILE_VIEWER_TOOLBAR_ORDER, FILE_VIEWER_LIFECYCLE_HOOK_ERROR_MESSAGE_PREFIX, FILE_VIEWER_LIFECYCLE_HOOKS, FILE_VIEWER_OPERATION_LABELS, buildFileViewerLifecycleContext, buildFileViewerLifecycleContextFromNormalizedSource, buildFileViewerOperationContext, buildFileViewerOperationContextFromLifecycleState, cloneFileViewerOperationAvailability, createFileViewerLifecycleActions, createFileViewerLifecycleStateController, createFileViewerPublicApi, createFileViewerToolbarActions, createFileViewerToolbarControllerActionHandlers, createFileViewerToolbarZoomSyncSnapshot, DEFAULT_FILE_VIEWER_LIFECYCLE_HOOK_ERROR_LOGGER, DEFAULT_FILE_VIEWER_OPERATION_ERROR_LOGGER, dispatchFileViewerLifecycleEvent, dispatchFileViewerOperationAvailabilityChange, dispatchFileViewerOperationContextEvent, dispatchFileViewerZoomChange, emitFileViewerComponentLifecycleEvent, getFileViewerBeforeOperationHooks, getFileViewerLifecycleHookName, hasVisibleFileViewerToolbarActions, isFileViewerToolbarOperationPermitted, isFileViewerZoomButtonDisabled, normalizeFileViewerToolbar, reportFileViewerLifecycleHookError, reportFileViewerOperationError, resolveFileViewerBeforeOperationErrorMessage, resolveFileViewerLifecycleFallbackSource, resolveFileViewerLifecycleHookErrorMessage, resolveFileViewerOperationAvailability, resolveFileViewerToolbarPosition, resolveFileViewerToolbarOrder, resolveFileViewerToolbarState, resolveVisibleFileViewerToolbar, runFileViewerActiveUnloadComplete, runFileViewerActiveUnloadStart, runFileViewerBeforeOperation, runFileViewerLifecycleHook, runFileViewerToolbarAvailabilitySync, runFileViewerToolbarZoomSync, serializeFileViewerContext, } from './lifecycle/operations.js'; | ||
| export { buildFileRenderContextFromLoadContext, createFileRenderHandlerRegistry, createFileRenderHandlerLoader, FILE_VIEWER_RENDER_SURFACE_BACKGROUND_PROPERTY, normalizeFileViewerRenderSurfaceBackground, syncFileViewerRenderSurfaceBackground, } from './rendering/handler.js'; | ||
| export { DEFAULT_FILE_VIEWER_SOURCE_FILENAME, decodeFilename, getExtension, normalizeFileExtension, normalizeFilename, normalizeSource, readFileViewerBuffer, readFileViewerDataUrl, readFileViewerText, resolveFileViewerSourceFilename, wrapFileViewerFileRef, } from './source/index.js'; | ||
| export { DEFAULT_FILE_VIEWER_SOURCE_FILENAME, createFileViewerTextDecoder, decodeFileViewerTextBuffer, decodeFilename, getExtension, normalizeFileExtension, normalizeFilename, normalizeSource, isValidFileViewerUtf8, resolveFileViewerTextEncoding, readFileViewerBuffer, readFileViewerDataUrl, readFileViewerText, resolveFileViewerSourceFilename, wrapFileViewerFileRef, } from './source/index.js'; | ||
| export { cancelFileViewerPreviewRequest, DEFAULT_FILE_VIEWER_PREVIEW_LOAD_ERROR_LOGGER, DEFAULT_FILE_VIEWER_STREAMING_PDF_FILENAME, DEFAULT_PDF_RANGE_CHUNK_SIZE, FILE_VIEWER_PREVIEW_LOAD_ERROR_PREFIXES, FILE_VIEWER_REMOTE_MISSING_DATA_ERROR_MESSAGE, applyFileViewerEmptyPreviewState, applyFileViewerPreviewFilenameState, applyFileViewerPreviewRequestResetState, applyFileViewerPreviewSourceUrlState, applyFileViewerReadPreviewState, applyFileViewerRenderReadinessState, commitFileViewerEmptyPreviewResetState, commitFileViewerLoadStartState, commitFileViewerPreviewRequestStartState, commitFileViewerRemoteDownloadState, createFileViewerEmptyPreviewState, createFileViewerLoadStartState, createFileViewerPreviewRequestResetState, createFileViewerPreviewStateTarget, createFileViewerReadPreviewState, createFileViewerRenderCompleteState, createFileViewerRequestController, createFileViewerRequestScope, createFileViewerSourceLoadingActionHandlers, createFileViewerStreamingPdfPlaceholderFile, finalizeFileViewerPreviewLoadState, hasFileViewerPreviewSource, isFileViewerAbortError, isSameOriginUrl, normalizeFileViewerSourceUrl, normalizePdfStreamingMode, reportFileViewerMissingRemoteData, reportFileViewerPreviewLoadError, resolveFileViewerFileRefSourcePlan, resolveFileViewerLoadStartMessage, resolveFileViewerMissingRemoteDataErrorMessage, resolveFileViewerPageHref, resolveFileViewerPreviewLoadErrorMessage, resolveFileViewerPreviewRequestReason, resolveFileViewerRemoteSourcePlan, runFileViewerLocalFilePreview, runFileViewerPreviewComponentUnmount, runFileViewerPreviewRequest, runFileViewerPreviewSourceChange, runFileViewerRemoteFilePreview, runFileViewerReadAndRenderFile, runFileViewerStreamingPdfPreview, shouldStreamPdfUrl, } from './source/loading.js'; | ||
| export { DEFAULT_FILE_VIEWER_STATE_THEME, DEFAULT_FILE_VIEWER_UNSUPPORTED_DESCRIPTION, FILE_VIEWER_PREVIEW_MESSAGES, createFileViewerEmptyState, createFileViewerErrorState, createFileViewerPreviewLoadingState, createFileViewerReadyState, createFileViewerUnsupportedState, formatFileViewerErrorMessage, normalizeFileViewerErrorMessage, } from './viewer/state.js'; | ||
| export { buildFileViewerWatermarkBackgroundImage, buildFileViewerWatermarkInlineStyle, buildFileViewerWatermarkStyle, buildFileViewerWatermarkSvg, normalizeFileViewerWatermark, resolveFileViewerWatermarkPresentationState, } from './features/watermark.js'; |
| import type { FileViewerI18nOptions, FileViewerLocale, FileViewerMessageKey, FileViewerMessageParams, FileViewerMessages, FileViewerOptions } from '../contracts/types'; | ||
| export declare const FILE_VIEWER_SUPPORTED_LOCALES: readonly ["zh-CN", "en-US", "ja-JP"]; | ||
| export declare const FILE_VIEWER_SUPPORTED_LOCALES: readonly ["zh-CN", "en-US", "ja-JP", "de-DE"]; | ||
| export type FileViewerResolvedLocale = typeof FILE_VIEWER_SUPPORTED_LOCALES[number]; | ||
@@ -16,7 +16,8 @@ export interface ResolveFileViewerI18nInput { | ||
| 'ja-JP': Record<FileViewerMessageKey, string>; | ||
| 'de-DE': Record<FileViewerMessageKey, string>; | ||
| }>; | ||
| export declare const normalizeFileViewerLocale: (locale?: FileViewerLocale | null) => FileViewerResolvedLocale; | ||
| export declare const resolveFileViewerLocale: (input?: FileViewerI18nInput) => "zh-CN" | "en-US" | "ja-JP"; | ||
| export declare const resolveFileViewerLocale: (input?: FileViewerI18nInput) => "zh-CN" | "en-US" | "ja-JP" | "de-DE"; | ||
| export declare const formatFileViewerMessage: (message: string, params?: FileViewerMessageParams) => string; | ||
| export declare const translateFileViewerMessage: (input: FileViewerI18nInput, key: FileViewerMessageKey, params?: FileViewerMessageParams) => string; | ||
| export declare const createFileViewerTranslator: (input?: FileViewerI18nInput) => (key: FileViewerMessageKey, params?: FileViewerMessageParams) => string; |
@@ -141,2 +141,5 @@ /** | ||
| 'presentation.ppt.error.assetHint': '@file-viewer/ppt モジュール、pptWasmUrl、application/wasm MIME タイプ、Web Crypto、CSP 設定を確認してください。', | ||
| 'presentation.slideshow.start': 'スライドショーを開始', | ||
| 'presentation.slideshow.exit': 'スライドショーを終了', | ||
| 'presentation.slideshow.hint': '← → 移動 · Esc 終了', | ||
| 'archive.error.nestedUnsupported': '.{type} 形式はオンラインでプレビューできません。ダウンロードするか、対応形式へ変換してください。', | ||
@@ -190,2 +193,14 @@ 'archive.loading.readingDirectory': '圧縮ファイルのディレクトリを読み込んでいます...', | ||
| 'media.video.hlsHint': 'HLS はセグメント読み込みに元の URL を優先します。ローカルの単一ファイルプレイリストを渡す場合は、セグメント URL にブラウザーからアクセスできることを確認してください。', | ||
| 'media.video.codecUnsupportedBadge': '互換性のない動画コーデック', | ||
| 'media.video.codecUnsupportedTitle': 'このブラウザーは動画トラックをデコードできません', | ||
| 'media.video.codecUnsupportedDescription': '動画トラックには {codec} が使われています。ブラウザーは MP4 コンテナーを読み取れますが映像フレームをデコードできないため、音声だけが再生されるか黒い画面が表示されることがあります。', | ||
| 'media.video.codecUnsupportedAction': '軽量ソフトウェアデコーダーを起動できませんでした。H.264/AVC、VP9、または AV1 に変換してから、もう一度開いてください。File Viewer が元のファイルをアップロードまたは変更することはありません。', | ||
| 'media.video.softwareLoading': '軽量 MP4V デコーダーをオンデマンドで読み込んでいます…', | ||
| 'media.video.softwareBadge': 'MP4V · 軽量デコード', | ||
| 'media.video.play': '再生', | ||
| 'media.video.pause': '一時停止', | ||
| 'media.video.seek': '動画の進行位置', | ||
| 'media.video.mute': 'ミュート', | ||
| 'media.video.unmute': 'ミュート解除', | ||
| 'media.video.fullscreen': '全画面', | ||
| 'media.midi.title': 'MIDI ファイル', | ||
@@ -192,0 +207,0 @@ 'media.midi.loading': 'MIDI トラックを解析しています...', |
| import { JA_JP_MESSAGES } from './messages.ja.js'; | ||
| export const FILE_VIEWER_SUPPORTED_LOCALES = ['zh-CN', 'en-US', 'ja-JP']; | ||
| import { DE_DE_MESSAGES } from './messages.de.js'; | ||
| export const FILE_VIEWER_SUPPORTED_LOCALES = ['zh-CN', 'en-US', 'ja-JP', 'de-DE']; | ||
| export const FILE_VIEWER_DEFAULT_LOCALE = 'zh-CN'; | ||
@@ -140,2 +141,5 @@ export const FILE_VIEWER_FALLBACK_LOCALE = 'en-US'; | ||
| 'presentation.ppt.error.assetHint': '请检查 @file-viewer/ppt 模块、pptWasmUrl、application/wasm MIME 类型、Web Crypto 和 CSP 配置。', | ||
| 'presentation.slideshow.start': '开始放映', | ||
| 'presentation.slideshow.exit': '退出放映', | ||
| 'presentation.slideshow.hint': '← → 翻页 · Esc 退出', | ||
| 'archive.error.nestedUnsupported': '不支持 .{type} 格式的在线预览,请下载后预览或转换为支持的格式', | ||
@@ -189,2 +193,14 @@ 'archive.loading.readingDirectory': '正在读取压缩包目录...', | ||
| 'media.video.hlsHint': 'HLS 会优先使用原始 URL 加载分片;如果传入的是本地单文件清单,请确保分片地址可被浏览器访问。', | ||
| 'media.video.codecUnsupportedBadge': '视频编码不兼容', | ||
| 'media.video.codecUnsupportedTitle': '当前浏览器无法解码这个视频轨', | ||
| 'media.video.codecUnsupportedDescription': '文件的视频轨使用 {codec}。浏览器能读取 MP4 容器,但没有解码出画面,因此原生播放器可能只播放音频或显示黑屏。', | ||
| 'media.video.codecUnsupportedAction': '轻量软件解码器未能启动,请将视频转换为 H.264/AVC、VP9 或 AV1 后再预览;File Viewer 不会上传或修改原文件。', | ||
| 'media.video.softwareLoading': '正在按需加载轻量 MP4V 解码器…', | ||
| 'media.video.softwareBadge': 'MP4V · 轻量解码', | ||
| 'media.video.play': '播放', | ||
| 'media.video.pause': '暂停', | ||
| 'media.video.seek': '视频进度', | ||
| 'media.video.mute': '静音', | ||
| 'media.video.unmute': '取消静音', | ||
| 'media.video.fullscreen': '全屏', | ||
| 'media.midi.title': 'MIDI 文件', | ||
@@ -578,2 +594,5 @@ 'media.midi.loading': '正在解析 MIDI 轨道...', | ||
| 'presentation.ppt.error.assetHint': 'Check the @file-viewer/ppt module, pptWasmUrl, application/wasm MIME type, Web Crypto, and CSP settings.', | ||
| 'presentation.slideshow.start': 'Start slideshow', | ||
| 'presentation.slideshow.exit': 'Exit slideshow', | ||
| 'presentation.slideshow.hint': '← → navigate · Esc exit', | ||
| 'archive.error.nestedUnsupported': '.{type} cannot be previewed online. Download it or convert it to a supported format.', | ||
@@ -627,2 +646,14 @@ 'archive.loading.readingDirectory': 'Reading archive directory...', | ||
| 'media.video.hlsHint': 'HLS prefers the original URL for segment loading. If the input is a local single-file playlist, make sure segment URLs are reachable by the browser.', | ||
| 'media.video.codecUnsupportedBadge': 'Incompatible video codec', | ||
| 'media.video.codecUnsupportedTitle': 'This browser cannot decode the video track', | ||
| 'media.video.codecUnsupportedDescription': 'The video track uses {codec}. The browser can read the MP4 container but cannot decode video frames, so the native player may play only audio or show a black screen.', | ||
| 'media.video.codecUnsupportedAction': 'The lightweight software decoder could not start. Convert the video to H.264/AVC, VP9, or AV1 and open it again. File Viewer does not upload or modify the original file.', | ||
| 'media.video.softwareLoading': 'Loading the lightweight MP4V decoder on demand…', | ||
| 'media.video.softwareBadge': 'MP4V · lightweight decode', | ||
| 'media.video.play': 'Play', | ||
| 'media.video.pause': 'Pause', | ||
| 'media.video.seek': 'Video progress', | ||
| 'media.video.mute': 'Mute', | ||
| 'media.video.unmute': 'Unmute', | ||
| 'media.video.fullscreen': 'Full screen', | ||
| 'media.midi.title': 'MIDI file', | ||
@@ -885,2 +916,3 @@ 'media.midi.loading': 'Parsing MIDI tracks...', | ||
| 'ja-JP': JA_JP_MESSAGES, | ||
| 'de-DE': DE_DE_MESSAGES, | ||
| }); | ||
@@ -898,2 +930,5 @@ const normalizeLocaleCandidate = (locale) => { | ||
| } | ||
| if (normalized === 'de' || normalized.startsWith('de-')) { | ||
| return 'de-DE'; | ||
| } | ||
| if (normalized === 'en' || normalized.startsWith('en-')) { | ||
@@ -900,0 +935,0 @@ return 'en-US'; |
+5
-5
| import type { FileRenderContext, FileViewerRenderedInstance } from './contracts/types'; | ||
| export { DEFAULT_FILE_VIEWER_ARCHIVE_WORKER_PATH, DEFAULT_FILE_VIEWER_ARCHIVE_WASM_PATH, DEFAULT_FILE_VIEWER_CAD_DWF_WASM_PATH, DEFAULT_FILE_VIEWER_CAD_LIBREDWG_SCRIPT_PATH, DEFAULT_FILE_VIEWER_CAD_LIBREDWG_WASM_PATH, DEFAULT_FILE_VIEWER_CAD_RUNTIME_VERSION, DEFAULT_FILE_VIEWER_CAD_WASM_PATH, DEFAULT_FILE_VIEWER_CAD_WORKER_PATH, DEFAULT_FILE_VIEWER_DATA_SQL_WASM_URL, DEFAULT_FILE_VIEWER_MODEL_RUNTIME_PACKAGE_PATH, DEFAULT_FILE_VIEWER_MODEL_RUNTIME_URL, DEFAULT_FILE_VIEWER_MODEL_IMPORT_LICENSE_PACKAGE_PATH, DEFAULT_FILE_VIEWER_MODEL_IMPORT_LICENSE_URL, DEFAULT_FILE_VIEWER_MODEL_OCCT_LICENSE_PACKAGE_PATH, DEFAULT_FILE_VIEWER_MODEL_OCCT_LICENSE_URL, DEFAULT_FILE_VIEWER_MODEL_WASM_PACKAGE_PATH, DEFAULT_FILE_VIEWER_MODEL_WASM_URL, DEFAULT_FILE_VIEWER_MODEL_WORKER_URL, DEFAULT_FILE_VIEWER_DOCX_WORKER_JSZIP_PATH, DEFAULT_FILE_VIEWER_DOCX_WORKER_PATH, DEFAULT_FILE_VIEWER_DOCX_RUNTIME_VERSION, DEFAULT_FILE_VIEWER_PDF_CMAP_PATH, DEFAULT_FILE_VIEWER_PDF_STANDARD_FONT_PATH, DEFAULT_FILE_VIEWER_PDF_WASM_PATH, DEFAULT_FILE_VIEWER_PDF_WORKER_PATH, DEFAULT_FILE_VIEWER_PPT_FONT_PATH, DEFAULT_FILE_VIEWER_PPT_FRAME_CACHE_PATH, DEFAULT_FILE_VIEWER_PPT_MODULE_PATH, DEFAULT_FILE_VIEWER_PPT_RUNTIME_PATH, DEFAULT_FILE_VIEWER_PPT_RUNTIME_VERSION, DEFAULT_FILE_VIEWER_PPT_WASM_PATH, DEFAULT_FILE_VIEWER_PPT_WORKER_PATH, DEFAULT_FILE_VIEWER_PRESENTATION_WORKER_PATH, DEFAULT_FILE_VIEWER_RENDERER_ASSET_MANIFESTS, DEFAULT_FILE_VIEWER_SPREADSHEET_WORKER_PATH, DEFAULT_FILE_VIEWER_TYPST_COMPILER_WASM_URL, DEFAULT_FILE_VIEWER_TYPST_RENDERER_WASM_URL, DEFAULT_FILE_VIEWER_TYPST_RENDERER_WASM_PACKAGE_PATH, getDefaultFileViewerAssetBaseUrl, getFileViewerRendererAssetManifest, listFileViewerRendererAssetManifests, normalizeFileViewerAssetBaseUrl, resetDefaultFileViewerAssetBaseUrl, resolveFileViewerArchiveWasmUrl, resolveFileViewerArchiveWorkerUrl, resolveFileViewerAssetUrl, resolveFileViewerCadAssetUrls, resolveFileViewerDataSqlWasmUrl, resolveFileViewerDocxWorkerJsZipUrl, resolveFileViewerDocxWorkerUrl, resolveFileViewerDrawioViewerScriptUrl, resolveFileViewerModelAssetUrls, resolveFileViewerPdfAssetUrls, resolveFileViewerPresentationWorkerUrl, resolveFileViewerRendererAssets, resolveFileViewerRuntimeAssetBaseUrl, resolveFileViewerSpreadsheetWorkerUrl, resolveFileViewerTypstCompilerWasmUrl, resolveFileViewerTypstRendererWasmUrl, setDefaultFileViewerAssetBaseUrl, } from './assets'; | ||
| export { ARCHIVE_EXTENSIONS, DEFAULT_RENDERER_DEFINITIONS, DEFAULT_SUPPORTED_EXTENSIONS, IMAGE_EXTENSIONS, MODEL_EXTENSIONS, TEXT_EXTENSIONS, } from './registry/formats'; | ||
| export { DEFAULT_FILE_VIEWER_ARCHIVE_WORKER_PATH, DEFAULT_FILE_VIEWER_ARCHIVE_WASM_PATH, DEFAULT_FILE_VIEWER_CAD_DWF_WASM_PATH, DEFAULT_FILE_VIEWER_CAD_LIBREDWG_SCRIPT_PATH, DEFAULT_FILE_VIEWER_CAD_LIBREDWG_WASM_PATH, DEFAULT_FILE_VIEWER_CAD_RUNTIME_VERSION, DEFAULT_FILE_VIEWER_CAD_WASM_PATH, DEFAULT_FILE_VIEWER_CAD_WORKER_PATH, DEFAULT_FILE_VIEWER_DATA_SQL_WASM_URL, DEFAULT_FILE_VIEWER_MODEL_RUNTIME_PACKAGE_PATH, DEFAULT_FILE_VIEWER_MODEL_RUNTIME_URL, DEFAULT_FILE_VIEWER_MODEL_IMPORT_LICENSE_PACKAGE_PATH, DEFAULT_FILE_VIEWER_MODEL_IMPORT_LICENSE_URL, DEFAULT_FILE_VIEWER_MODEL_OCCT_LICENSE_PACKAGE_PATH, DEFAULT_FILE_VIEWER_MODEL_OCCT_LICENSE_URL, DEFAULT_FILE_VIEWER_MODEL_WASM_PACKAGE_PATH, DEFAULT_FILE_VIEWER_MODEL_WASM_URL, DEFAULT_FILE_VIEWER_MODEL_WORKER_URL, DEFAULT_FILE_VIEWER_DOCX_WORKER_JSZIP_PATH, DEFAULT_FILE_VIEWER_DOCX_WORKER_PATH, DEFAULT_FILE_VIEWER_DOCX_RUNTIME_VERSION, DEFAULT_FILE_VIEWER_PDF_CMAP_PATH, DEFAULT_FILE_VIEWER_PDF_STANDARD_FONT_PATH, DEFAULT_FILE_VIEWER_PDF_WASM_PATH, DEFAULT_FILE_VIEWER_PDF_WORKER_PATH, DEFAULT_FILE_VIEWER_PPT_FONT_PATH, DEFAULT_FILE_VIEWER_PPT_FRAME_CACHE_PATH, DEFAULT_FILE_VIEWER_PPT_MODULE_PATH, DEFAULT_FILE_VIEWER_PPT_RUNTIME_PATH, DEFAULT_FILE_VIEWER_PPT_RUNTIME_VERSION, DEFAULT_FILE_VIEWER_PPT_WASM_PATH, DEFAULT_FILE_VIEWER_PPT_WORKER_PATH, DEFAULT_FILE_VIEWER_PRESENTATION_WORKER_PATH, DEFAULT_FILE_VIEWER_RENDERER_ASSET_MANIFESTS, DEFAULT_FILE_VIEWER_SPREADSHEET_WORKER_PATH, DEFAULT_FILE_VIEWER_IWORK_WORKER_PATH, DEFAULT_FILE_VIEWER_IWORK_WORKER_PACKAGE_PATH, DEFAULT_FILE_VIEWER_HANGUL_WORKER_PATH, DEFAULT_FILE_VIEWER_HANGUL_WORKER_PACKAGE_PATH, DEFAULT_FILE_VIEWER_WORDPERFECT_WORKER_PATH, DEFAULT_FILE_VIEWER_WORDPERFECT_WORKER_PACKAGE_PATH, DEFAULT_FILE_VIEWER_WORDPERFECT_WASM_PATH, DEFAULT_FILE_VIEWER_WORDPERFECT_WASM_PACKAGE_PATH, DEFAULT_FILE_VIEWER_WORDPERFECT_MODULE_PATH, DEFAULT_FILE_VIEWER_WORDPERFECT_MODULE_PACKAGE_PATH, DEFAULT_FILE_VIEWER_TYPST_COMPILER_WASM_URL, DEFAULT_FILE_VIEWER_TYPST_RENDERER_WASM_URL, DEFAULT_FILE_VIEWER_TYPST_RENDERER_WASM_PACKAGE_PATH, getDefaultFileViewerAssetBaseUrl, getFileViewerRendererAssetManifest, listFileViewerRendererAssetManifests, normalizeFileViewerAssetBaseUrl, resetDefaultFileViewerAssetBaseUrl, resolveFileViewerArchiveWasmUrl, resolveFileViewerArchiveWorkerUrl, resolveFileViewerAssetUrl, resolveFileViewerCadAssetUrls, resolveFileViewerDataSqlWasmUrl, resolveFileViewerDocxWorkerJsZipUrl, resolveFileViewerDocxWorkerUrl, resolveFileViewerDrawioViewerScriptUrl, resolveFileViewerModelAssetUrls, resolveFileViewerPdfAssetUrls, resolveFileViewerPresentationWorkerUrl, resolveFileViewerRendererAssets, resolveFileViewerRuntimeAssetBaseUrl, resolveFileViewerSpreadsheetWorkerUrl, resolveFileViewerIworkWorkerUrl, resolveFileViewerHangulWorkerUrl, resolveFileViewerWordPerfectWorkerUrl, resolveFileViewerWordPerfectWasmUrl, resolveFileViewerTypstCompilerWasmUrl, resolveFileViewerTypstRendererWasmUrl, setDefaultFileViewerAssetBaseUrl, } from './assets'; | ||
| export { ARCHIVE_EXTENSIONS, DEFAULT_REGISTERED_EXTENSIONS, DEFAULT_RENDERER_DEFINITIONS, DEFAULT_STABLE_SUPPORTED_EXTENSIONS, DEFAULT_SUPPORTED_EXTENSIONS, IMAGE_EXTENSIONS, MODEL_EXTENSIONS, TEXT_EXTENSIONS, } from './registry/formats'; | ||
| export { precheckFileViewerSource } from './source/precheck'; | ||
@@ -66,4 +66,4 @@ export type { FileViewerPrecheckOptions, FileViewerPrecheckReason, FileViewerPrecheckResult, FileViewerPrecheckStatus, } from './source/precheck'; | ||
| export type { AppendFileViewerStyleOptions, CreateFileViewerRenderSurfaceOptions, CreateFileViewerRenderSurfaceActionHandlersInput, CreateFileViewerRenderReadinessTargetInput, CreateFileViewerRenderSurfaceStateTargetInput, FileViewerStyleHandle, FileViewerRenderSurfaceActionHandlers, FileViewerRenderSurfaceClearState, FileViewerRenderSurfaceState, FileViewerRenderSurfaceMountContext, FileViewerRenderSessionDisposeErrorLogger, MutableFileViewerRenderSurfaceState, ReportFileViewerRenderSessionDisposeErrorInput, ResolvedFileViewerStyleIsolation, ResetFileViewerRenderSurfaceInput, ResolveFileViewerRenderSessionDisposeErrorMessageInput, RunFileViewerRenderSurfaceClearInput, RunFileViewerRenderSurfaceMountInput, } from './rendering/handler'; | ||
| export { DEFAULT_FILE_VIEWER_SOURCE_FILENAME, decodeFilename, getExtension, normalizeFileExtension, normalizeFilename, resolveFileViewerSourceFilename, normalizeSource, readFileViewerBuffer, readFileViewerDataUrl, readFileViewerText, wrapFileViewerFileRef, } from './source'; | ||
| export type { FileViewerReadResult } from './source'; | ||
| export { DEFAULT_FILE_VIEWER_SOURCE_FILENAME, createFileViewerTextDecoder, decodeFileViewerTextBuffer, decodeFilename, getExtension, normalizeFileExtension, normalizeFilename, isValidFileViewerUtf8, resolveFileViewerTextEncoding, resolveFileViewerSourceFilename, normalizeSource, readFileViewerBuffer, readFileViewerDataUrl, readFileViewerText, wrapFileViewerFileRef, } from './source'; | ||
| export type { DecodedFileViewerText, FileViewerReadResult, FileViewerTextEncoding, ResolvedFileViewerTextEncoding, ResolvedFileViewerTextSource, } from './source'; | ||
| export { DEFAULT_FILE_VIEWER_STATE_THEME, DEFAULT_FILE_VIEWER_UNSUPPORTED_DESCRIPTION, FILE_VIEWER_PREVIEW_MESSAGES, createFileViewerEmptyState, createFileViewerErrorState, createFileViewerPreviewLoadingState, createFileViewerReadyState, createFileViewerUnsupportedState, formatFileViewerErrorMessage, normalizeFileViewerErrorMessage, resolveFileViewerRendererInstallHint, } from './viewer/state'; | ||
@@ -94,2 +94,2 @@ export type { FileViewerErrorMessageFormatter, FileViewerRendererInstallHint, } from './viewer/state'; | ||
| export type { CreateFileViewerWorkerControllerOptions, FileViewerWorkerContext, FileViewerWorkerController, FileViewerWorkerErrorHook, FileViewerWorkerEventHandler, FileViewerWorkerFactory, FileViewerWorkerMessageHook, WorkerProvider, WorkerRef, } from './platform/worker'; | ||
| export type { FileViewerAiOptions, FileViewerArchiveEntryActionContext, FileViewerArchiveEntryActionPolicy, FileViewerArchiveEntryActionsOptions, FileViewerArchivePasswordRequestContext, FileViewerArchivePasswordRequestReason, FileViewerArchiveOptions, FileViewerApplyViewStateOptions, FileViewerBeforeOperation, FileViewerCadDwfLineWeightMode, FileViewerCadOptions, FileViewerCadRenderer, FileViewerModelLinearUnit, FileViewerModelOptions, FileViewerComponentEmits, FileViewerComponentEventMap, FileViewerComponentProps, FileViewerDocumentAnchor, FileViewerDocumentChunk, FileViewerDownloadOptions, FileViewerDocxOptions, FileViewerDrawingOptions, FileViewerEvent, FileViewerEventHandler, FileViewerEventType, FileViewerExportHtmlOptions, FileViewerFileRef, FileViewerFitMode, FileViewerFitOptions, FileViewerFitRequest, FileViewerFitResize, FileViewerFitResult, FileViewerGeoBasemapOptions, FileViewerGeoBasemapPreset, FileViewerGeoOptions, FileViewerTiandituMapStyle, FileRenderContext, FileRenderExportAdapter, FileRenderThumbnailAdapter, FileRenderExportMode, FileRenderExportOptions, FileRenderHandler, FileRenderHandlerComposite, FileViewerBuiltinRendererPreset, FileViewerInstance, FileViewerLoadOptions, FileViewerLifecycleContext, FileViewerLifecycleHooks, FileViewerLifecyclePhase, FileViewerI18nOptions, FileViewerLocale, FileViewerMessageKey, FileViewerMessageParams, FileViewerMessageResolver, FileViewerMessages, FileViewerNavigationState, FileViewerOperationAvailability, FileViewerOperationContext, FileViewerOperationType, FileViewerOptions, FileViewerPdfBoundingBox, FileViewerPdfBoundingBoxOrigin, FileViewerPdfBoundingBoxUnit, FileViewerPdfOptions, FileViewerPresentationOptions, FileViewerPrintOptions, FileViewerPrintMaskOptions, FileViewerPrintMaskRegion, FileViewerPrintStamp, FileViewerPublicApi, FileViewerRenderedInstance, FileViewerRendererMode, FileViewerRendererPluginAssetKind, FileViewerRendererPluginAssetManifest, FileViewerRendererPluginAssetEntry, FileViewerRenderStateKind, FileViewerRenderPurpose, FileViewerRendererCategory, FileViewerRendererHandlerRegistration, FileViewerRendererInstallContext, FileViewerRendererPlugin, FileViewerRendererPluginInput, FileViewerRendererPresetInput, FileViewerRendererPresetName, FileViewerRendererPreset, FileViewerSearchMatch, FileViewerSearchOptions, FileViewerSearchProvider, FileViewerSearchState, FileViewerSource, FileViewerSourceKind, FileViewerThumbnailCaptureOptions, FileViewerThumbnailFit, FileViewerThumbnailFormat, FileViewerSpreadsheetOptions, FileViewerStateDescriptor, FileViewerStateTheme, FileViewerStyleIsolation, FileViewerTextOptions, FileViewerResolvedThemeMode, FileViewerThemeMode, FileViewerToolbarActionMap, FileViewerToolbarItem, FileViewerToolbarOptions, FileViewerToolbarPosition, FileViewerResolvedToolbarItem, FileViewerUiDensity, FileViewerUiOptions, FileViewerTypstOptions, FileViewerViewScrollState, FileViewerViewState, FileViewerViewStateChange, FileViewerViewStateChangeAction, FileViewerViewStateChangeSource, FileViewerViewStateProvider, FileViewerWatermarkOptions, FileViewerZoomProvider, FileViewerZoomState, NormalizedFileViewerSource, RendererCapability, RendererDefinition, RendererPlugin, RendererLoadContext, RendererLoader, RendererRegistry, RendererSession, RenderSurface, ViewerCapabilityState, ViewerLifecycleContext, ViewerOperationContext, } from './contracts/types'; | ||
| export type { FileViewerAiOptions, FileViewerArchiveEntryActionContext, FileViewerArchiveEntryActionPolicy, FileViewerArchiveEntryActionsOptions, FileViewerArchivePasswordRequestContext, FileViewerArchivePasswordRequestReason, FileViewerArchiveOptions, FileViewerApplyViewStateOptions, FileViewerBeforeOperation, FileViewerCadDwfLineWeightMode, FileViewerCadOptions, FileViewerCadRenderer, FileViewerModelLinearUnit, FileViewerModelOptions, FileViewerComponentEmits, FileViewerComponentEventMap, FileViewerComponentProps, FileViewerDocumentAnchor, FileViewerDocumentChunk, FileViewerDownloadOptions, FileViewerDocxOptions, FileViewerDrawingOptions, FileViewerEvent, FileViewerEventHandler, FileViewerEventType, FileViewerExportHtmlOptions, FileViewerFileRef, FileViewerFitMode, FileViewerFitOptions, FileViewerFitRequest, FileViewerFitResize, FileViewerFitResult, FileViewerFormatStatus, FileViewerFormatSupportLevel, FileViewerGeoBasemapOptions, FileViewerGeoBasemapPreset, FileViewerGeoOptions, FileViewerTiandituMapStyle, FileRenderContext, FileRenderExportAdapter, FileRenderThumbnailAdapter, FileRenderExportMode, FileRenderExportOptions, FileRenderHandler, FileRenderHandlerComposite, FileViewerBuiltinRendererPreset, FileViewerInstance, FileViewerLoadOptions, FileViewerLifecycleContext, FileViewerLifecycleHooks, FileViewerLifecyclePhase, FileViewerI18nOptions, FileViewerIworkEmbeddedPreviewMode, FileViewerIworkOptions, FileViewerHangulOptions, FileViewerDiagnostic, FileViewerLocale, FileViewerMessageKey, FileViewerMessageParams, FileViewerMessageResolver, FileViewerMessages, FileViewerNavigationState, FileViewerOperationAvailability, FileViewerOperationContext, FileViewerOperationType, FileViewerOptions, FileViewerPdfBoundingBox, FileViewerPdfBoundingBoxOrigin, FileViewerPdfBoundingBoxUnit, FileViewerPdfOptions, FileViewerPresentationOptions, FileViewerPrintOptions, FileViewerPrintMaskOptions, FileViewerPrintMaskRegion, FileViewerPrintStamp, FileViewerPublicApi, FileViewerRenderedInstance, FileViewerRendererMode, FileViewerRendererPluginAssetKind, FileViewerRendererPluginAssetManifest, FileViewerRendererPluginAssetEntry, FileViewerRenderStateKind, FileViewerRenderPurpose, FileViewerRendererCategory, FileViewerRendererHandlerRegistration, FileViewerRendererInstallContext, FileViewerRendererPlugin, FileViewerRendererPluginInput, FileViewerRendererPresetInput, FileViewerRendererPresetName, FileViewerRendererPreset, FileViewerSearchMatch, FileViewerSearchOptions, FileViewerSearchProvider, FileViewerSearchState, FileViewerSource, FileViewerSourceKind, FileViewerThumbnailCaptureOptions, FileViewerThumbnailFit, FileViewerThumbnailFormat, FileViewerSpreadsheetOptions, FileViewerStateDescriptor, FileViewerStateTheme, FileViewerStyleIsolation, FileViewerTextOptions, FileViewerResolvedThemeMode, FileViewerThemeMode, FileViewerToolbarActionMap, FileViewerToolbarItem, FileViewerToolbarOptions, FileViewerToolbarPosition, FileViewerResolvedToolbarItem, FileViewerUiDensity, FileViewerUiOptions, FileViewerTypstOptions, FileViewerViewScrollState, FileViewerViewState, FileViewerViewStateChange, FileViewerViewStateChangeAction, FileViewerViewStateChangeSource, FileViewerViewStateProvider, FileViewerWatermarkOptions, FileViewerWordPerfectOptions, FileViewerZoomProvider, FileViewerZoomState, NormalizedFileViewerSource, RendererCapability, RendererDefinition, RendererPlugin, RendererLoadContext, RendererLoader, RendererRegistry, RendererSession, RenderSurface, ViewerCapabilityState, ViewerLifecycleContext, ViewerOperationContext, } from './contracts/types'; |
+3
-3
@@ -1,3 +0,3 @@ | ||
| export { DEFAULT_FILE_VIEWER_ARCHIVE_WORKER_PATH, DEFAULT_FILE_VIEWER_ARCHIVE_WASM_PATH, DEFAULT_FILE_VIEWER_CAD_DWF_WASM_PATH, DEFAULT_FILE_VIEWER_CAD_LIBREDWG_SCRIPT_PATH, DEFAULT_FILE_VIEWER_CAD_LIBREDWG_WASM_PATH, DEFAULT_FILE_VIEWER_CAD_RUNTIME_VERSION, DEFAULT_FILE_VIEWER_CAD_WASM_PATH, DEFAULT_FILE_VIEWER_CAD_WORKER_PATH, DEFAULT_FILE_VIEWER_DATA_SQL_WASM_URL, DEFAULT_FILE_VIEWER_MODEL_RUNTIME_PACKAGE_PATH, DEFAULT_FILE_VIEWER_MODEL_RUNTIME_URL, DEFAULT_FILE_VIEWER_MODEL_IMPORT_LICENSE_PACKAGE_PATH, DEFAULT_FILE_VIEWER_MODEL_IMPORT_LICENSE_URL, DEFAULT_FILE_VIEWER_MODEL_OCCT_LICENSE_PACKAGE_PATH, DEFAULT_FILE_VIEWER_MODEL_OCCT_LICENSE_URL, DEFAULT_FILE_VIEWER_MODEL_WASM_PACKAGE_PATH, DEFAULT_FILE_VIEWER_MODEL_WASM_URL, DEFAULT_FILE_VIEWER_MODEL_WORKER_URL, DEFAULT_FILE_VIEWER_DOCX_WORKER_JSZIP_PATH, DEFAULT_FILE_VIEWER_DOCX_WORKER_PATH, DEFAULT_FILE_VIEWER_DOCX_RUNTIME_VERSION, DEFAULT_FILE_VIEWER_PDF_CMAP_PATH, DEFAULT_FILE_VIEWER_PDF_STANDARD_FONT_PATH, DEFAULT_FILE_VIEWER_PDF_WASM_PATH, DEFAULT_FILE_VIEWER_PDF_WORKER_PATH, DEFAULT_FILE_VIEWER_PPT_FONT_PATH, DEFAULT_FILE_VIEWER_PPT_FRAME_CACHE_PATH, DEFAULT_FILE_VIEWER_PPT_MODULE_PATH, DEFAULT_FILE_VIEWER_PPT_RUNTIME_PATH, DEFAULT_FILE_VIEWER_PPT_RUNTIME_VERSION, DEFAULT_FILE_VIEWER_PPT_WASM_PATH, DEFAULT_FILE_VIEWER_PPT_WORKER_PATH, DEFAULT_FILE_VIEWER_PRESENTATION_WORKER_PATH, DEFAULT_FILE_VIEWER_RENDERER_ASSET_MANIFESTS, DEFAULT_FILE_VIEWER_SPREADSHEET_WORKER_PATH, DEFAULT_FILE_VIEWER_TYPST_COMPILER_WASM_URL, DEFAULT_FILE_VIEWER_TYPST_RENDERER_WASM_URL, DEFAULT_FILE_VIEWER_TYPST_RENDERER_WASM_PACKAGE_PATH, getDefaultFileViewerAssetBaseUrl, getFileViewerRendererAssetManifest, listFileViewerRendererAssetManifests, normalizeFileViewerAssetBaseUrl, resetDefaultFileViewerAssetBaseUrl, resolveFileViewerArchiveWasmUrl, resolveFileViewerArchiveWorkerUrl, resolveFileViewerAssetUrl, resolveFileViewerCadAssetUrls, resolveFileViewerDataSqlWasmUrl, resolveFileViewerDocxWorkerJsZipUrl, resolveFileViewerDocxWorkerUrl, resolveFileViewerDrawioViewerScriptUrl, resolveFileViewerModelAssetUrls, resolveFileViewerPdfAssetUrls, resolveFileViewerPresentationWorkerUrl, resolveFileViewerRendererAssets, resolveFileViewerRuntimeAssetBaseUrl, resolveFileViewerSpreadsheetWorkerUrl, resolveFileViewerTypstCompilerWasmUrl, resolveFileViewerTypstRendererWasmUrl, setDefaultFileViewerAssetBaseUrl, } from './assets.js'; | ||
| export { ARCHIVE_EXTENSIONS, DEFAULT_RENDERER_DEFINITIONS, DEFAULT_SUPPORTED_EXTENSIONS, IMAGE_EXTENSIONS, MODEL_EXTENSIONS, TEXT_EXTENSIONS, } from './registry/formats.js'; | ||
| export { DEFAULT_FILE_VIEWER_ARCHIVE_WORKER_PATH, DEFAULT_FILE_VIEWER_ARCHIVE_WASM_PATH, DEFAULT_FILE_VIEWER_CAD_DWF_WASM_PATH, DEFAULT_FILE_VIEWER_CAD_LIBREDWG_SCRIPT_PATH, DEFAULT_FILE_VIEWER_CAD_LIBREDWG_WASM_PATH, DEFAULT_FILE_VIEWER_CAD_RUNTIME_VERSION, DEFAULT_FILE_VIEWER_CAD_WASM_PATH, DEFAULT_FILE_VIEWER_CAD_WORKER_PATH, DEFAULT_FILE_VIEWER_DATA_SQL_WASM_URL, DEFAULT_FILE_VIEWER_MODEL_RUNTIME_PACKAGE_PATH, DEFAULT_FILE_VIEWER_MODEL_RUNTIME_URL, DEFAULT_FILE_VIEWER_MODEL_IMPORT_LICENSE_PACKAGE_PATH, DEFAULT_FILE_VIEWER_MODEL_IMPORT_LICENSE_URL, DEFAULT_FILE_VIEWER_MODEL_OCCT_LICENSE_PACKAGE_PATH, DEFAULT_FILE_VIEWER_MODEL_OCCT_LICENSE_URL, DEFAULT_FILE_VIEWER_MODEL_WASM_PACKAGE_PATH, DEFAULT_FILE_VIEWER_MODEL_WASM_URL, DEFAULT_FILE_VIEWER_MODEL_WORKER_URL, DEFAULT_FILE_VIEWER_DOCX_WORKER_JSZIP_PATH, DEFAULT_FILE_VIEWER_DOCX_WORKER_PATH, DEFAULT_FILE_VIEWER_DOCX_RUNTIME_VERSION, DEFAULT_FILE_VIEWER_PDF_CMAP_PATH, DEFAULT_FILE_VIEWER_PDF_STANDARD_FONT_PATH, DEFAULT_FILE_VIEWER_PDF_WASM_PATH, DEFAULT_FILE_VIEWER_PDF_WORKER_PATH, DEFAULT_FILE_VIEWER_PPT_FONT_PATH, DEFAULT_FILE_VIEWER_PPT_FRAME_CACHE_PATH, DEFAULT_FILE_VIEWER_PPT_MODULE_PATH, DEFAULT_FILE_VIEWER_PPT_RUNTIME_PATH, DEFAULT_FILE_VIEWER_PPT_RUNTIME_VERSION, DEFAULT_FILE_VIEWER_PPT_WASM_PATH, DEFAULT_FILE_VIEWER_PPT_WORKER_PATH, DEFAULT_FILE_VIEWER_PRESENTATION_WORKER_PATH, DEFAULT_FILE_VIEWER_RENDERER_ASSET_MANIFESTS, DEFAULT_FILE_VIEWER_SPREADSHEET_WORKER_PATH, DEFAULT_FILE_VIEWER_IWORK_WORKER_PATH, DEFAULT_FILE_VIEWER_IWORK_WORKER_PACKAGE_PATH, DEFAULT_FILE_VIEWER_HANGUL_WORKER_PATH, DEFAULT_FILE_VIEWER_HANGUL_WORKER_PACKAGE_PATH, DEFAULT_FILE_VIEWER_WORDPERFECT_WORKER_PATH, DEFAULT_FILE_VIEWER_WORDPERFECT_WORKER_PACKAGE_PATH, DEFAULT_FILE_VIEWER_WORDPERFECT_WASM_PATH, DEFAULT_FILE_VIEWER_WORDPERFECT_WASM_PACKAGE_PATH, DEFAULT_FILE_VIEWER_WORDPERFECT_MODULE_PATH, DEFAULT_FILE_VIEWER_WORDPERFECT_MODULE_PACKAGE_PATH, DEFAULT_FILE_VIEWER_TYPST_COMPILER_WASM_URL, DEFAULT_FILE_VIEWER_TYPST_RENDERER_WASM_URL, DEFAULT_FILE_VIEWER_TYPST_RENDERER_WASM_PACKAGE_PATH, getDefaultFileViewerAssetBaseUrl, getFileViewerRendererAssetManifest, listFileViewerRendererAssetManifests, normalizeFileViewerAssetBaseUrl, resetDefaultFileViewerAssetBaseUrl, resolveFileViewerArchiveWasmUrl, resolveFileViewerArchiveWorkerUrl, resolveFileViewerAssetUrl, resolveFileViewerCadAssetUrls, resolveFileViewerDataSqlWasmUrl, resolveFileViewerDocxWorkerJsZipUrl, resolveFileViewerDocxWorkerUrl, resolveFileViewerDrawioViewerScriptUrl, resolveFileViewerModelAssetUrls, resolveFileViewerPdfAssetUrls, resolveFileViewerPresentationWorkerUrl, resolveFileViewerRendererAssets, resolveFileViewerRuntimeAssetBaseUrl, resolveFileViewerSpreadsheetWorkerUrl, resolveFileViewerIworkWorkerUrl, resolveFileViewerHangulWorkerUrl, resolveFileViewerWordPerfectWorkerUrl, resolveFileViewerWordPerfectWasmUrl, resolveFileViewerTypstCompilerWasmUrl, resolveFileViewerTypstRendererWasmUrl, setDefaultFileViewerAssetBaseUrl, } from './assets.js'; | ||
| export { ARCHIVE_EXTENSIONS, DEFAULT_REGISTERED_EXTENSIONS, DEFAULT_RENDERER_DEFINITIONS, DEFAULT_STABLE_SUPPORTED_EXTENSIONS, DEFAULT_SUPPORTED_EXTENSIONS, IMAGE_EXTENSIONS, MODEL_EXTENSIONS, TEXT_EXTENSIONS, } from './registry/formats.js'; | ||
| export { precheckFileViewerSource } from './source/precheck.js'; | ||
@@ -174,3 +174,3 @@ export { DEFAULT_FILE_VIEWER_TEXT_CHUNK_OVERLAP, DEFAULT_FILE_VIEWER_TEXT_CHUNK_SIZE, DEFAULT_FILE_VIEWER_ZOOM_SCALE, buildFileViewerDocumentTextChunks, createEmptyFileViewerSearchState, createFileViewerZoomState, normalizeFileViewerAiOptions, normalizeFileViewerSearchOptions, } from './features/document/model.js'; | ||
| export { appendFileViewerStyle, buildFileRenderContextFromLoadContext, applyFileViewerRenderSurfaceState, clearFileViewerRenderSurface, createFileRenderHandlerRendererSession, createFileRenderHandlerRegistry, createFileRenderHandlerLoader, createFileViewerRenderSurfaceActionHandlers, createFileViewerRenderReadinessTarget, createFileViewerRenderSurface, createFileViewerRenderSurfaceState, createFileViewerRenderSurfaceStateTarget, createFileViewerRenderTarget, DEFAULT_FILE_VIEWER_RENDER_TARGET_CLASS, FILE_VIEWER_RENDER_SURFACE_BACKGROUND_PROPERTY, DEFAULT_FILE_VIEWER_RENDER_SESSION_DISPOSE_ERROR_LOGGER, FILE_VIEWER_RENDER_SESSION_DISPOSE_ERROR_MESSAGE, disposeActiveFileViewerRendererSession, disposeFileViewerRendered, disposeFileViewerRendererSession, getFileViewerShadowRootForNode, isFileViewerShadowRoot, normalizeFileViewerStyleIsolation, normalizeFileViewerRenderSurfaceBackground, removeFileViewerRenderTarget, reportFileViewerRenderSessionDisposeError, resetFileViewerRenderSurface, resolveFileViewerStyleIsolation, resolveFileViewerRenderSessionDisposeErrorMessage, runFileViewerRenderSurfaceClear, runFileViewerRenderSurfaceMount, syncFileViewerRenderSurfaceBackground, renderFileViewerHandler, } from './rendering/handler.js'; | ||
| export { DEFAULT_FILE_VIEWER_SOURCE_FILENAME, decodeFilename, getExtension, normalizeFileExtension, normalizeFilename, resolveFileViewerSourceFilename, normalizeSource, readFileViewerBuffer, readFileViewerDataUrl, readFileViewerText, wrapFileViewerFileRef, } from './source/index.js'; | ||
| export { DEFAULT_FILE_VIEWER_SOURCE_FILENAME, createFileViewerTextDecoder, decodeFileViewerTextBuffer, decodeFilename, getExtension, normalizeFileExtension, normalizeFilename, isValidFileViewerUtf8, resolveFileViewerTextEncoding, resolveFileViewerSourceFilename, normalizeSource, readFileViewerBuffer, readFileViewerDataUrl, readFileViewerText, wrapFileViewerFileRef, } from './source/index.js'; | ||
| export { DEFAULT_FILE_VIEWER_STATE_THEME, DEFAULT_FILE_VIEWER_UNSUPPORTED_DESCRIPTION, FILE_VIEWER_PREVIEW_MESSAGES, createFileViewerEmptyState, createFileViewerErrorState, createFileViewerPreviewLoadingState, createFileViewerReadyState, createFileViewerUnsupportedState, formatFileViewerErrorMessage, normalizeFileViewerErrorMessage, resolveFileViewerRendererInstallHint, } from './viewer/state.js'; | ||
@@ -177,0 +177,0 @@ export { buildFileViewerWatermarkBackgroundImage, buildFileViewerWatermarkInlineStyle, buildFileViewerWatermarkStyle, buildFileViewerWatermarkSvg, normalizeFileViewerWatermark, resolveFileViewerWatermarkPresentationState, } from './features/watermark.js'; |
@@ -1,2 +0,2 @@ | ||
| import type { FileViewerArchiveOptions, FileViewerCadOptions, FileViewerDataOptions, FileViewerDocxOptions, FileViewerDrawingOptions, FileViewerModelOptions, FileViewerOptions, FileViewerPdfOptions, FileViewerPresentationOptions, FileViewerSpreadsheetOptions, FileViewerTypstOptions } from '../contracts/types'; | ||
| import type { FileViewerArchiveOptions, FileViewerCadOptions, FileViewerDataOptions, FileViewerDocxOptions, FileViewerDrawingOptions, FileViewerIworkOptions, FileViewerHangulOptions, FileViewerModelOptions, FileViewerOptions, FileViewerPdfOptions, FileViewerPresentationOptions, FileViewerSpreadsheetOptions, FileViewerTypstOptions, FileViewerWordPerfectOptions } from '../contracts/types'; | ||
| export declare const DEFAULT_FILE_VIEWER_ARCHIVE_WORKER_PATH = "vendor/libarchive/worker-bundle.js"; | ||
@@ -16,2 +16,12 @@ export declare const DEFAULT_FILE_VIEWER_ARCHIVE_WASM_PATH = "vendor/libarchive/libarchive.wasm"; | ||
| export declare const DEFAULT_FILE_VIEWER_SPREADSHEET_WORKER_PATH = "vendor/xlsx/sheet.worker.js"; | ||
| export declare const DEFAULT_FILE_VIEWER_IWORK_WORKER_PATH = "vendor/iwork/iwork.worker.js"; | ||
| export declare const DEFAULT_FILE_VIEWER_IWORK_WORKER_PACKAGE_PATH = "@file-viewer/renderer-iwork/worker/iwork.worker.js"; | ||
| export declare const DEFAULT_FILE_VIEWER_HANGUL_WORKER_PATH = "vendor/hangul/hangul.worker.js"; | ||
| export declare const DEFAULT_FILE_VIEWER_HANGUL_WORKER_PACKAGE_PATH = "@file-viewer/renderer-hangul/worker/hangul.worker.js"; | ||
| export declare const DEFAULT_FILE_VIEWER_WORDPERFECT_WORKER_PATH = "vendor/wordperfect/wordperfect.worker.js"; | ||
| export declare const DEFAULT_FILE_VIEWER_WORDPERFECT_WORKER_PACKAGE_PATH = "@file-viewer/renderer-wordperfect/worker/wordperfect.worker.js"; | ||
| export declare const DEFAULT_FILE_VIEWER_WORDPERFECT_WASM_PATH = "vendor/wordperfect/libwpd.wasm"; | ||
| export declare const DEFAULT_FILE_VIEWER_WORDPERFECT_WASM_PACKAGE_PATH = "@file-viewer/renderer-wordperfect/worker/libwpd.wasm"; | ||
| export declare const DEFAULT_FILE_VIEWER_WORDPERFECT_MODULE_PATH = "vendor/wordperfect/libwpd.mjs"; | ||
| export declare const DEFAULT_FILE_VIEWER_WORDPERFECT_MODULE_PACKAGE_PATH = "@file-viewer/renderer-wordperfect/worker/libwpd.mjs"; | ||
| export declare const DEFAULT_FILE_VIEWER_PDF_WORKER_PATH = "vendor/pdf/pdf.worker.mjs"; | ||
@@ -84,3 +94,3 @@ export declare const DEFAULT_FILE_VIEWER_PDF_CMAP_PATH = "vendor/pdf/cmaps/"; | ||
| export type FileViewerRendererAssetTarget = 'public' | 'bundled' | 'external'; | ||
| export type FileViewerRendererAssetOptionPath = 'archive.workerUrl' | 'archive.wasmUrl' | 'cad.wasmPath' | 'cad.workerUrl' | 'cad.dwfWasmUrl' | 'data.sqlWasmUrl' | 'docx.workerJsZipUrl' | 'docx.workerUrl' | 'drawing.viewerScriptUrl' | 'model.workerUrl' | 'model.runtimeUrl' | 'model.wasmUrl' | 'pdf.workerUrl' | 'pdf.cMapUrl' | 'pdf.wasmUrl' | 'pdf.standardFontDataUrl' | 'pdf.cjkFontFallbackPath' | 'presentation.pptModuleUrl' | 'presentation.pptWorkerUrl' | 'presentation.pptWasmUrl' | 'presentation.pptFontUrl' | 'presentation.workerUrl' | 'spreadsheet.workerUrl' | 'typst.compilerWasmUrl' | 'typst.fontAssetsUrl' | 'typst.rendererWasmUrl'; | ||
| export type FileViewerRendererAssetOptionPath = 'archive.workerUrl' | 'archive.wasmUrl' | 'cad.wasmPath' | 'cad.workerUrl' | 'cad.dwfWasmUrl' | 'data.sqlWasmUrl' | 'docx.workerJsZipUrl' | 'docx.workerUrl' | 'drawing.viewerScriptUrl' | 'iwork.workerUrl' | 'hangul.workerUrl' | 'wordPerfect.workerUrl' | 'wordPerfect.wasmUrl' | 'model.workerUrl' | 'model.runtimeUrl' | 'model.wasmUrl' | 'pdf.workerUrl' | 'pdf.cMapUrl' | 'pdf.wasmUrl' | 'pdf.standardFontDataUrl' | 'pdf.cjkFontFallbackPath' | 'presentation.pptModuleUrl' | 'presentation.pptWorkerUrl' | 'presentation.pptWasmUrl' | 'presentation.pptFontUrl' | 'presentation.workerUrl' | 'spreadsheet.workerUrl' | 'typst.compilerWasmUrl' | 'typst.fontAssetsUrl' | 'typst.rendererWasmUrl'; | ||
| export interface FileViewerRendererAssetDefinition { | ||
@@ -120,2 +130,6 @@ id: string; | ||
| export declare const resolveFileViewerSpreadsheetWorkerUrl: (options?: Pick<FileViewerSpreadsheetOptions, "workerUrl"> | null, documentBaseUrl?: string) => string; | ||
| export declare const resolveFileViewerIworkWorkerUrl: (options?: Pick<FileViewerIworkOptions, "workerUrl"> | null, documentBaseUrl?: string) => string; | ||
| export declare const resolveFileViewerHangulWorkerUrl: (options?: Pick<FileViewerHangulOptions, "workerUrl"> | null, documentBaseUrl?: string) => string; | ||
| export declare const resolveFileViewerWordPerfectWorkerUrl: (options?: Pick<FileViewerWordPerfectOptions, "workerUrl"> | null, documentBaseUrl?: string) => string; | ||
| export declare const resolveFileViewerWordPerfectWasmUrl: (options?: Pick<FileViewerWordPerfectOptions, "wasmUrl"> | null, documentBaseUrl?: string) => string; | ||
| export declare const resolveFileViewerPresentationWorkerUrl: (options?: Pick<FileViewerPresentationOptions, "workerUrl"> | null, documentBaseUrl?: string) => string; | ||
@@ -122,0 +136,0 @@ export declare const resolveFileViewerTypstCompilerWasmUrl: (options?: Pick<FileViewerTypstOptions, "compilerWasmUrl"> | null, overrides?: Array<string | undefined>, documentBaseUrl?: string) => string; |
+109
-18
@@ -15,2 +15,12 @@ export const DEFAULT_FILE_VIEWER_ARCHIVE_WORKER_PATH = 'vendor/libarchive/worker-bundle.js'; | ||
| export const DEFAULT_FILE_VIEWER_SPREADSHEET_WORKER_PATH = 'vendor/xlsx/sheet.worker.js'; | ||
| export const DEFAULT_FILE_VIEWER_IWORK_WORKER_PATH = 'vendor/iwork/iwork.worker.js'; | ||
| export const DEFAULT_FILE_VIEWER_IWORK_WORKER_PACKAGE_PATH = '@file-viewer/renderer-iwork/worker/iwork.worker.js'; | ||
| export const DEFAULT_FILE_VIEWER_HANGUL_WORKER_PATH = 'vendor/hangul/hangul.worker.js'; | ||
| export const DEFAULT_FILE_VIEWER_HANGUL_WORKER_PACKAGE_PATH = '@file-viewer/renderer-hangul/worker/hangul.worker.js'; | ||
| export const DEFAULT_FILE_VIEWER_WORDPERFECT_WORKER_PATH = 'vendor/wordperfect/wordperfect.worker.js'; | ||
| export const DEFAULT_FILE_VIEWER_WORDPERFECT_WORKER_PACKAGE_PATH = '@file-viewer/renderer-wordperfect/worker/wordperfect.worker.js'; | ||
| export const DEFAULT_FILE_VIEWER_WORDPERFECT_WASM_PATH = 'vendor/wordperfect/libwpd.wasm'; | ||
| export const DEFAULT_FILE_VIEWER_WORDPERFECT_WASM_PACKAGE_PATH = '@file-viewer/renderer-wordperfect/worker/libwpd.wasm'; | ||
| export const DEFAULT_FILE_VIEWER_WORDPERFECT_MODULE_PATH = 'vendor/wordperfect/libwpd.mjs'; | ||
| export const DEFAULT_FILE_VIEWER_WORDPERFECT_MODULE_PACKAGE_PATH = '@file-viewer/renderer-wordperfect/worker/libwpd.mjs'; | ||
| export const DEFAULT_FILE_VIEWER_PDF_WORKER_PATH = 'vendor/pdf/pdf.worker.mjs'; | ||
@@ -592,3 +602,72 @@ export const DEFAULT_FILE_VIEWER_PDF_CMAP_PATH = 'vendor/pdf/cmaps/'; | ||
| }, | ||
| ...['apple-pages', 'apple-numbers', 'apple-keynote'].map(rendererId => ({ | ||
| rendererId, | ||
| assets: [ | ||
| { | ||
| id: `${rendererId}-iwork-worker`, | ||
| rendererId, | ||
| kind: 'worker', | ||
| target: 'public', | ||
| required: true, | ||
| defaultPath: DEFAULT_FILE_VIEWER_IWORK_WORKER_PATH, | ||
| packagePath: DEFAULT_FILE_VIEWER_IWORK_WORKER_PACKAGE_PATH, | ||
| optionPath: 'iwork.workerUrl', | ||
| description: 'Module Worker for bounded ZIP, Snappy, IWA/Protobuf and iWork 09 XML/APXL parsing.', | ||
| }, | ||
| ], | ||
| })), | ||
| { | ||
| rendererId: 'office-hangul', | ||
| assets: [ | ||
| { | ||
| id: 'hangul-worker', | ||
| rendererId: 'office-hangul', | ||
| kind: 'worker', | ||
| target: 'public', | ||
| required: true, | ||
| defaultPath: DEFAULT_FILE_VIEWER_HANGUL_WORKER_PATH, | ||
| packagePath: DEFAULT_FILE_VIEWER_HANGUL_WORKER_PACKAGE_PATH, | ||
| optionPath: 'hangul.workerUrl', | ||
| description: 'Module Worker for bounded HWP v5 CFB and HWPX ZIP/XML parsing.', | ||
| }, | ||
| ], | ||
| }, | ||
| { | ||
| rendererId: 'office-wordperfect', | ||
| assets: [ | ||
| { | ||
| id: 'wordperfect-worker', | ||
| rendererId: 'office-wordperfect', | ||
| kind: 'worker', | ||
| target: 'public', | ||
| required: true, | ||
| defaultPath: DEFAULT_FILE_VIEWER_WORDPERFECT_WORKER_PATH, | ||
| packagePath: DEFAULT_FILE_VIEWER_WORDPERFECT_WORKER_PACKAGE_PATH, | ||
| optionPath: 'wordPerfect.workerUrl', | ||
| description: 'Module Worker for bounded WordPerfect signature detection and parsing.', | ||
| }, | ||
| { | ||
| id: 'wordperfect-libwpd-wasm', | ||
| rendererId: 'office-wordperfect', | ||
| kind: 'wasm', | ||
| target: 'public', | ||
| required: true, | ||
| defaultPath: DEFAULT_FILE_VIEWER_WORDPERFECT_WASM_PATH, | ||
| packagePath: DEFAULT_FILE_VIEWER_WORDPERFECT_WASM_PACKAGE_PATH, | ||
| optionPath: 'wordPerfect.wasmUrl', | ||
| description: 'MPL-2.0 libwpd/librevenge WebAssembly parser lazy-loaded by the WordPerfect Worker.', | ||
| }, | ||
| { | ||
| id: 'wordperfect-libwpd-module', | ||
| rendererId: 'office-wordperfect', | ||
| kind: 'script', | ||
| target: 'public', | ||
| required: true, | ||
| defaultPath: DEFAULT_FILE_VIEWER_WORDPERFECT_MODULE_PATH, | ||
| packagePath: DEFAULT_FILE_VIEWER_WORDPERFECT_MODULE_PACKAGE_PATH, | ||
| description: 'Emscripten ES module loader for the MPL-2.0 libwpd/librevenge WebAssembly runtime.', | ||
| }, | ||
| ], | ||
| }, | ||
| { | ||
| rendererId: 'typst', | ||
@@ -739,2 +818,6 @@ assets: [ | ||
| }; | ||
| export const resolveFileViewerIworkWorkerUrl = (options, documentBaseUrl) => resolveFileViewerAssetUrl(options === null || options === void 0 ? void 0 : options.workerUrl, DEFAULT_FILE_VIEWER_IWORK_WORKER_PATH, { documentBaseUrl }); | ||
| export const resolveFileViewerHangulWorkerUrl = (options, documentBaseUrl) => resolveFileViewerAssetUrl(options === null || options === void 0 ? void 0 : options.workerUrl, DEFAULT_FILE_VIEWER_HANGUL_WORKER_PATH, { documentBaseUrl }); | ||
| export const resolveFileViewerWordPerfectWorkerUrl = (options, documentBaseUrl) => resolveFileViewerAssetUrl(options === null || options === void 0 ? void 0 : options.workerUrl, DEFAULT_FILE_VIEWER_WORDPERFECT_WORKER_PATH, { documentBaseUrl }); | ||
| export const resolveFileViewerWordPerfectWasmUrl = (options, documentBaseUrl) => resolveFileViewerAssetUrl(options === null || options === void 0 ? void 0 : options.wasmUrl, DEFAULT_FILE_VIEWER_WORDPERFECT_WASM_PATH, { documentBaseUrl }); | ||
| export const resolveFileViewerPresentationWorkerUrl = (options, documentBaseUrl) => { | ||
@@ -769,3 +852,3 @@ return resolveFileViewerAssetUrl(options === null || options === void 0 ? void 0 : options.workerUrl, DEFAULT_FILE_VIEWER_PRESENTATION_WORKER_PATH, { | ||
| const getRendererAssetOptionValue = (options, optionPath) => { | ||
| var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1; | ||
| var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5; | ||
| switch (optionPath) { | ||
@@ -790,36 +873,44 @@ case 'archive.workerUrl': | ||
| return (_j = options === null || options === void 0 ? void 0 : options.drawing) === null || _j === void 0 ? void 0 : _j.viewerScriptUrl; | ||
| case 'iwork.workerUrl': | ||
| return (_k = options === null || options === void 0 ? void 0 : options.iwork) === null || _k === void 0 ? void 0 : _k.workerUrl; | ||
| case 'hangul.workerUrl': | ||
| return (_l = options === null || options === void 0 ? void 0 : options.hangul) === null || _l === void 0 ? void 0 : _l.workerUrl; | ||
| case 'wordPerfect.workerUrl': | ||
| return (_m = options === null || options === void 0 ? void 0 : options.wordPerfect) === null || _m === void 0 ? void 0 : _m.workerUrl; | ||
| case 'wordPerfect.wasmUrl': | ||
| return (_o = options === null || options === void 0 ? void 0 : options.wordPerfect) === null || _o === void 0 ? void 0 : _o.wasmUrl; | ||
| case 'model.workerUrl': | ||
| return (_k = options === null || options === void 0 ? void 0 : options.model) === null || _k === void 0 ? void 0 : _k.workerUrl; | ||
| return (_p = options === null || options === void 0 ? void 0 : options.model) === null || _p === void 0 ? void 0 : _p.workerUrl; | ||
| case 'model.runtimeUrl': | ||
| return (_l = options === null || options === void 0 ? void 0 : options.model) === null || _l === void 0 ? void 0 : _l.runtimeUrl; | ||
| return (_q = options === null || options === void 0 ? void 0 : options.model) === null || _q === void 0 ? void 0 : _q.runtimeUrl; | ||
| case 'model.wasmUrl': | ||
| return (_m = options === null || options === void 0 ? void 0 : options.model) === null || _m === void 0 ? void 0 : _m.wasmUrl; | ||
| return (_r = options === null || options === void 0 ? void 0 : options.model) === null || _r === void 0 ? void 0 : _r.wasmUrl; | ||
| case 'pdf.workerUrl': | ||
| return (_o = options === null || options === void 0 ? void 0 : options.pdf) === null || _o === void 0 ? void 0 : _o.workerUrl; | ||
| return (_s = options === null || options === void 0 ? void 0 : options.pdf) === null || _s === void 0 ? void 0 : _s.workerUrl; | ||
| case 'pdf.cMapUrl': | ||
| return (_p = options === null || options === void 0 ? void 0 : options.pdf) === null || _p === void 0 ? void 0 : _p.cMapUrl; | ||
| return (_t = options === null || options === void 0 ? void 0 : options.pdf) === null || _t === void 0 ? void 0 : _t.cMapUrl; | ||
| case 'pdf.wasmUrl': | ||
| return (_q = options === null || options === void 0 ? void 0 : options.pdf) === null || _q === void 0 ? void 0 : _q.wasmUrl; | ||
| return (_u = options === null || options === void 0 ? void 0 : options.pdf) === null || _u === void 0 ? void 0 : _u.wasmUrl; | ||
| case 'pdf.standardFontDataUrl': | ||
| return (_r = options === null || options === void 0 ? void 0 : options.pdf) === null || _r === void 0 ? void 0 : _r.standardFontDataUrl; | ||
| return (_v = options === null || options === void 0 ? void 0 : options.pdf) === null || _v === void 0 ? void 0 : _v.standardFontDataUrl; | ||
| case 'pdf.cjkFontFallbackPath': | ||
| return (_s = options === null || options === void 0 ? void 0 : options.pdf) === null || _s === void 0 ? void 0 : _s.cjkFontFallbackPath; | ||
| return (_w = options === null || options === void 0 ? void 0 : options.pdf) === null || _w === void 0 ? void 0 : _w.cjkFontFallbackPath; | ||
| case 'presentation.pptModuleUrl': | ||
| return (_t = options === null || options === void 0 ? void 0 : options.presentation) === null || _t === void 0 ? void 0 : _t.pptModuleUrl; | ||
| return (_x = options === null || options === void 0 ? void 0 : options.presentation) === null || _x === void 0 ? void 0 : _x.pptModuleUrl; | ||
| case 'presentation.pptWorkerUrl': | ||
| return (_u = options === null || options === void 0 ? void 0 : options.presentation) === null || _u === void 0 ? void 0 : _u.pptWorkerUrl; | ||
| return (_y = options === null || options === void 0 ? void 0 : options.presentation) === null || _y === void 0 ? void 0 : _y.pptWorkerUrl; | ||
| case 'presentation.pptWasmUrl': | ||
| return (_v = options === null || options === void 0 ? void 0 : options.presentation) === null || _v === void 0 ? void 0 : _v.pptWasmUrl; | ||
| return (_z = options === null || options === void 0 ? void 0 : options.presentation) === null || _z === void 0 ? void 0 : _z.pptWasmUrl; | ||
| case 'presentation.pptFontUrl': | ||
| return (_w = options === null || options === void 0 ? void 0 : options.presentation) === null || _w === void 0 ? void 0 : _w.pptFontUrl; | ||
| return (_0 = options === null || options === void 0 ? void 0 : options.presentation) === null || _0 === void 0 ? void 0 : _0.pptFontUrl; | ||
| case 'presentation.workerUrl': | ||
| return (_x = options === null || options === void 0 ? void 0 : options.presentation) === null || _x === void 0 ? void 0 : _x.workerUrl; | ||
| return (_1 = options === null || options === void 0 ? void 0 : options.presentation) === null || _1 === void 0 ? void 0 : _1.workerUrl; | ||
| case 'spreadsheet.workerUrl': | ||
| return (_y = options === null || options === void 0 ? void 0 : options.spreadsheet) === null || _y === void 0 ? void 0 : _y.workerUrl; | ||
| return (_2 = options === null || options === void 0 ? void 0 : options.spreadsheet) === null || _2 === void 0 ? void 0 : _2.workerUrl; | ||
| case 'typst.compilerWasmUrl': | ||
| return (_z = options === null || options === void 0 ? void 0 : options.typst) === null || _z === void 0 ? void 0 : _z.compilerWasmUrl; | ||
| return (_3 = options === null || options === void 0 ? void 0 : options.typst) === null || _3 === void 0 ? void 0 : _3.compilerWasmUrl; | ||
| case 'typst.fontAssetsUrl': | ||
| return (_0 = options === null || options === void 0 ? void 0 : options.typst) === null || _0 === void 0 ? void 0 : _0.fontAssetsUrl; | ||
| return (_4 = options === null || options === void 0 ? void 0 : options.typst) === null || _4 === void 0 ? void 0 : _4.fontAssetsUrl; | ||
| case 'typst.rendererWasmUrl': | ||
| return (_1 = options === null || options === void 0 ? void 0 : options.typst) === null || _1 === void 0 ? void 0 : _1.rendererWasmUrl; | ||
| return (_5 = options === null || options === void 0 ? void 0 : options.typst) === null || _5 === void 0 ? void 0 : _5.rendererWasmUrl; | ||
| default: | ||
@@ -826,0 +917,0 @@ return undefined; |
@@ -17,7 +17,7 @@ import type { FileRenderExportAdapter, FileViewerOperationAvailability, FileViewerZoomState, RendererDefinition, RendererSession } from '../contracts/types'; | ||
| */ | ||
| export declare const DOM_PRINTABLE_EXTENSIONS: readonly ["pptx", "pptm", "potx", "potm", "ppsx", "ppsm", "ofd", "dxf", "dwg", "dwf", "dwfx", "xps", "excalidraw", "drawio", "dio", "mermaid", "mmd", "plantuml", "puml", "umd", "md", "markdown", "olb", "dra", "txt", "json", "js", "mjs", "cjs", "css", "java", "py", "html", "htm", "jsx", "ts", "tsx", "xml", "log", "vue", "yaml", "yml", "ini", "sh", "bash", "sql", "go", "rs", "php", "c", "cpp", "cc", "h", "hpp", "cs", "diff", "patch", "bundle", "bdl", "jsonc", "json5", "ipynb", "toml", "proto", "hcl", "tex", "gv", "http", "react", "rb", "swift", "kt", "gif", "jpg", "jpeg", "bmp", "tiff", "tif", "png", "svg", "webp", "avif", "ico", "heic", "heif", "jxl"]; | ||
| export declare const DOM_PRINTABLE_EXTENSIONS: readonly ["pptx", "pptm", "potx", "potm", "ppsx", "ppsm", "ofd", "dxf", "dwg", "dwf", "dwfx", "xps", "excalidraw", "drawio", "dio", "mermaid", "mmd", "plantuml", "puml", "umd", "md", "markdown", "olb", "dra", ...("markdown" | "webp" | "jpeg" | "png" | "xyz" | "wasm" | "pdf" | "typst" | "js" | "html" | "svg" | "rb" | "docx" | "docm" | "dotx" | "dotm" | "doc" | "dot" | "ppt" | "pot" | "pptx" | "pptm" | "potx" | "potm" | "ppsx" | "ppsm" | "rtf" | "odt" | "odp" | "xlsx" | "xltx" | "xlsm" | "xlsb" | "xls" | "xlt" | "xla" | "xlam" | "xltm" | "csv" | "tsv" | "ods" | "fods" | "pages" | "numbers" | "key" | "wpd" | "wp" | "wp5" | "wp6" | "dbf" | "ofd" | "hwp" | "hwpx" | "typ" | "zip" | "zipx" | "7z" | "rar" | "tar" | "gz" | "gzip" | "tgz" | "bz2" | "bzip2" | "tbz" | "tbz2" | "xz" | "txz" | "lzma" | "zst" | "tzst" | "cab" | "ar" | "cpio" | "iso" | "xar" | "lha" | "lzh" | "jar" | "war" | "ear" | "apk" | "cbz" | "cbr" | "eml" | "msg" | "mbox" | "olb" | "dra" | "gds" | "oas" | "oasis" | "dxf" | "dwg" | "dwf" | "dwfx" | "xps" | "glb" | "gltf" | "obj" | "stl" | "ply" | "fbx" | "dae" | "3ds" | "3mf" | "amf" | "usd" | "usda" | "usdc" | "usdz" | "kmz" | "step" | "stp" | "iges" | "igs" | "ifc" | "3dm" | "brep" | "pcd" | "wrl" | "vrml" | "vtk" | "vtp" | "geojson" | "kml" | "gpx" | "shp" | "excalidraw" | "drawio" | "dio" | "mermaid" | "mmd" | "plantuml" | "puml" | "xmind" | "epub" | "fb2" | "umd" | "gif" | "jpg" | "bmp" | "tiff" | "tif" | "avif" | "ico" | "heic" | "heif" | "jxl" | "md" | "txt" | "json" | "mjs" | "cjs" | "css" | "java" | "py" | "htm" | "jsx" | "ts" | "tsx" | "xml" | "log" | "vue" | "yaml" | "yml" | "ini" | "sh" | "bash" | "sql" | "go" | "rs" | "php" | "c" | "cpp" | "cc" | "h" | "hpp" | "cs" | "diff" | "patch" | "bundle" | "bdl" | "jsonc" | "json5" | "ipynb" | "toml" | "proto" | "hcl" | "tex" | "gv" | "http" | "react" | "swift" | "kt" | "mp4" | "webm" | "m3u8" | "mp3" | "mpeg" | "wav" | "ogg" | "oga" | "opus" | "m4a" | "aac" | "flac" | "weba" | "midi" | "mid" | "ttf" | "otf" | "woff" | "woff2" | "psd" | "ai" | "eps" | "sqlite" | "parquet" | "avro" | "webarchive")[]]; | ||
| /** | ||
| * 这些格式默认不展示打印按钮,避免导出半截内容。 | ||
| */ | ||
| export declare const NON_PRINTABLE_EXTENSIONS: readonly ["xlsx", "xltx", "xlsm", "xlsb", "xls", "xlt", "xltm", "csv", "tsv", "ods", "fods", "numbers", "zip", "zipx", "7z", "rar", "tar", "gz", "gzip", "tgz", "bz2", "bzip2", "tbz", "tbz2", "xz", "txz", "lzma", "zst", "tzst", "cab", "ar", "cpio", "iso", "xar", "lha", "lzh", "jar", "war", "ear", "apk", "cbz", "cbr", "eml", "msg", "epub", "mp4", "mp3", "mpeg", "wav", "ogg", "oga", "opus", "m4a", "aac", "flac", "weba", "glb", "gltf", "obj", "stl", "ply", "fbx", "dae", "3ds", "3mf", "amf", "usd", "usda", "usdc", "usdz", "kmz", "step", "stp", "iges", "igs", "ifc", "3dm", "brep", "pcd", "wrl", "vrml", "xyz", "vtk", "vtp"]; | ||
| export declare const NON_PRINTABLE_EXTENSIONS: readonly ["xlsx", "xltx", "xlsm", "xlsb", "xls", "xlt", "xltm", "csv", "tsv", "ods", "fods", "numbers", ...("markdown" | "webp" | "jpeg" | "png" | "xyz" | "wasm" | "pdf" | "typst" | "js" | "html" | "svg" | "rb" | "docx" | "docm" | "dotx" | "dotm" | "doc" | "dot" | "ppt" | "pot" | "pptx" | "pptm" | "potx" | "potm" | "ppsx" | "ppsm" | "rtf" | "odt" | "odp" | "xlsx" | "xltx" | "xlsm" | "xlsb" | "xls" | "xlt" | "xla" | "xlam" | "xltm" | "csv" | "tsv" | "ods" | "fods" | "pages" | "numbers" | "key" | "wpd" | "wp" | "wp5" | "wp6" | "dbf" | "ofd" | "hwp" | "hwpx" | "typ" | "zip" | "zipx" | "7z" | "rar" | "tar" | "gz" | "gzip" | "tgz" | "bz2" | "bzip2" | "tbz" | "tbz2" | "xz" | "txz" | "lzma" | "zst" | "tzst" | "cab" | "ar" | "cpio" | "iso" | "xar" | "lha" | "lzh" | "jar" | "war" | "ear" | "apk" | "cbz" | "cbr" | "eml" | "msg" | "mbox" | "olb" | "dra" | "gds" | "oas" | "oasis" | "dxf" | "dwg" | "dwf" | "dwfx" | "xps" | "glb" | "gltf" | "obj" | "stl" | "ply" | "fbx" | "dae" | "3ds" | "3mf" | "amf" | "usd" | "usda" | "usdc" | "usdz" | "kmz" | "step" | "stp" | "iges" | "igs" | "ifc" | "3dm" | "brep" | "pcd" | "wrl" | "vrml" | "vtk" | "vtp" | "geojson" | "kml" | "gpx" | "shp" | "excalidraw" | "drawio" | "dio" | "mermaid" | "mmd" | "plantuml" | "puml" | "xmind" | "epub" | "fb2" | "umd" | "gif" | "jpg" | "bmp" | "tiff" | "tif" | "avif" | "ico" | "heic" | "heif" | "jxl" | "md" | "txt" | "json" | "mjs" | "cjs" | "css" | "java" | "py" | "htm" | "jsx" | "ts" | "tsx" | "xml" | "log" | "vue" | "yaml" | "yml" | "ini" | "sh" | "bash" | "sql" | "go" | "rs" | "php" | "c" | "cpp" | "cc" | "h" | "hpp" | "cs" | "diff" | "patch" | "bundle" | "bdl" | "jsonc" | "json5" | "ipynb" | "toml" | "proto" | "hcl" | "tex" | "gv" | "http" | "react" | "swift" | "kt" | "mp4" | "webm" | "m3u8" | "mp3" | "mpeg" | "wav" | "ogg" | "oga" | "opus" | "m4a" | "aac" | "flac" | "weba" | "midi" | "mid" | "ttf" | "otf" | "woff" | "woff2" | "psd" | "ai" | "eps" | "sqlite" | "parquet" | "avro" | "webarchive")[]]; | ||
| export declare const needsDedicatedPrintAdapter: (extension: string) => boolean; | ||
@@ -24,0 +24,0 @@ export declare const isDomPrintableExtension: (extension: string) => boolean; |
@@ -1,331 +0,5 @@ | ||
| export declare const ARCHIVE_EXTENSIONS: readonly ["zip", "zipx", "7z", "rar", "tar", "gz", "gzip", "tgz", "bz2", "bzip2", "tbz", "tbz2", "xz", "txz", "lzma", "zst", "tzst", "cab", "ar", "cpio", "iso", "xar", "lha", "lzh", "jar", "war", "ear", "apk", "cbz", "cbr"]; | ||
| export declare const MODEL_EXTENSIONS: readonly ["glb", "gltf", "obj", "stl", "ply", "fbx", "dae", "3ds", "3mf", "amf", "usd", "usda", "usdc", "usdz", "kmz", "step", "stp", "iges", "igs", "ifc", "3dm", "brep", "pcd", "wrl", "vrml", "xyz", "vtk", "vtp"]; | ||
| export declare const TEXT_EXTENSIONS: readonly ["txt", "json", "js", "mjs", "cjs", "css", "java", "py", "html", "htm", "jsx", "ts", "tsx", "xml", "log", "vue", "yaml", "yml", "ini", "sh", "bash", "sql", "go", "rs", "php", "c", "cpp", "cc", "h", "hpp", "cs", "diff", "patch", "bundle", "bdl", "jsonc", "json5", "ipynb", "toml", "proto", "hcl", "tex", "gv", "http", "react", "rb", "swift", "kt"]; | ||
| export declare const IMAGE_EXTENSIONS: readonly ["gif", "jpg", "jpeg", "bmp", "tiff", "tif", "png", "svg", "webp", "avif", "ico", "heic", "heif", "jxl"]; | ||
| export declare const DEFAULT_RENDERER_DEFINITIONS: readonly [{ | ||
| readonly id: "office-word-openxml"; | ||
| readonly label: "Word OpenXML"; | ||
| readonly category: "office"; | ||
| readonly extensions: readonly ["docx", "docm", "dotx", "dotm"]; | ||
| readonly async: true; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: "adapter"; | ||
| readonly exportHtml: "adapter"; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "office-word-binary"; | ||
| readonly label: "Word Binary"; | ||
| readonly category: "office"; | ||
| readonly extensions: readonly ["doc", "dot"]; | ||
| readonly async: true; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: "adapter"; | ||
| readonly exportHtml: "adapter"; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "office-presentation-binary"; | ||
| readonly label: "PowerPoint 97–2003"; | ||
| readonly category: "office"; | ||
| readonly extensions: readonly ["ppt"]; | ||
| readonly async: true; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: "adapter"; | ||
| readonly exportHtml: "adapter"; | ||
| readonly zoom: "provider"; | ||
| readonly search: false; | ||
| }; | ||
| }, { | ||
| readonly id: "office-presentation"; | ||
| readonly label: "PowerPoint OpenXML"; | ||
| readonly category: "office"; | ||
| readonly extensions: readonly ["pptx", "pptm", "potx", "potm", "ppsx", "ppsm"]; | ||
| readonly async: true; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: true; | ||
| readonly exportHtml: true; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "open-document"; | ||
| readonly label: "Open Document"; | ||
| readonly category: "office"; | ||
| readonly extensions: readonly ["rtf", "odt", "odp"]; | ||
| readonly async: true; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: true; | ||
| readonly exportHtml: true; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "spreadsheet-openxml"; | ||
| readonly label: "Spreadsheet"; | ||
| readonly category: "office"; | ||
| readonly extensions: readonly ["xlsx", "xltx", "xlsm", "xlsb", "xls", "xlt", "xltm", "csv", "tsv", "ods", "fods", "numbers"]; | ||
| readonly async: true; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: false; | ||
| readonly exportHtml: false; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "pdf"; | ||
| readonly label: "PDF"; | ||
| readonly category: "document"; | ||
| readonly extensions: readonly ["pdf"]; | ||
| readonly async: true; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: "adapter"; | ||
| readonly exportHtml: "adapter"; | ||
| readonly zoom: "provider"; | ||
| readonly search: "provider"; | ||
| }; | ||
| }, { | ||
| readonly id: "ofd"; | ||
| readonly label: "OFD"; | ||
| readonly category: "document"; | ||
| readonly extensions: readonly ["ofd"]; | ||
| readonly async: true; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: true; | ||
| readonly exportHtml: true; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "typst"; | ||
| readonly label: "Typst"; | ||
| readonly category: "document"; | ||
| readonly extensions: readonly ["typ", "typst"]; | ||
| readonly async: true; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: "adapter"; | ||
| readonly exportHtml: "adapter"; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "archive"; | ||
| readonly label: "Archive"; | ||
| readonly category: "archive"; | ||
| readonly extensions: readonly ["zip", "zipx", "7z", "rar", "tar", "gz", "gzip", "tgz", "bz2", "bzip2", "tbz", "tbz2", "xz", "txz", "lzma", "zst", "tzst", "cab", "ar", "cpio", "iso", "xar", "lha", "lzh", "jar", "war", "ear", "apk", "cbz", "cbr"]; | ||
| readonly async: true; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: false; | ||
| readonly exportHtml: false; | ||
| readonly zoom: false; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "email"; | ||
| readonly label: "Email"; | ||
| readonly category: "email"; | ||
| readonly extensions: readonly ["eml", "msg", "mbox"]; | ||
| readonly async: true; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: false; | ||
| readonly exportHtml: true; | ||
| readonly zoom: false; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "eda"; | ||
| readonly label: "EDA"; | ||
| readonly category: "eda"; | ||
| readonly extensions: readonly ["olb", "dra", "gds", "oas", "oasis"]; | ||
| readonly async: true; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: true; | ||
| readonly exportHtml: true; | ||
| readonly zoom: false; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "cad"; | ||
| readonly label: "CAD"; | ||
| readonly category: "cad"; | ||
| readonly extensions: readonly ["dxf", "dwg", "dwf", "dwfx", "xps"]; | ||
| readonly async: true; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: true; | ||
| readonly exportHtml: true; | ||
| readonly zoom: "provider"; | ||
| readonly search: false; | ||
| }; | ||
| }, { | ||
| readonly id: "model"; | ||
| readonly label: "3D Model"; | ||
| readonly category: "model"; | ||
| readonly extensions: readonly ["glb", "gltf", "obj", "stl", "ply", "fbx", "dae", "3ds", "3mf", "amf", "usd", "usda", "usdc", "usdz", "kmz", "step", "stp", "iges", "igs", "ifc", "3dm", "brep", "pcd", "wrl", "vrml", "xyz", "vtk", "vtp"]; | ||
| readonly async: true; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: false; | ||
| readonly exportHtml: false; | ||
| readonly zoom: "provider"; | ||
| readonly search: false; | ||
| }; | ||
| }, { | ||
| readonly id: "geo"; | ||
| readonly label: "Geospatial"; | ||
| readonly category: "geo"; | ||
| readonly extensions: readonly ["geojson", "kml", "gpx", "shp"]; | ||
| readonly async: true; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: true; | ||
| readonly exportHtml: true; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "drawing"; | ||
| readonly label: "Drawing"; | ||
| readonly category: "drawing"; | ||
| readonly extensions: readonly ["excalidraw", "drawio", "dio", "mermaid", "mmd", "plantuml", "puml"]; | ||
| readonly async: true; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: true; | ||
| readonly exportHtml: true; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "mindmap"; | ||
| readonly label: "Mind Map"; | ||
| readonly category: "mindmap"; | ||
| readonly extensions: readonly ["xmind"]; | ||
| readonly async: true; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: true; | ||
| readonly exportHtml: true; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "epub"; | ||
| readonly label: "EPUB"; | ||
| readonly category: "ebook"; | ||
| readonly extensions: readonly ["epub"]; | ||
| readonly async: true; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: false; | ||
| readonly exportHtml: true; | ||
| readonly zoom: false; | ||
| readonly search: "provider"; | ||
| }; | ||
| }, { | ||
| readonly id: "umd"; | ||
| readonly label: "UMD"; | ||
| readonly category: "ebook"; | ||
| readonly extensions: readonly ["umd"]; | ||
| readonly async: true; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: true; | ||
| readonly exportHtml: true; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "image"; | ||
| readonly label: "Image"; | ||
| readonly category: "image"; | ||
| readonly extensions: readonly ["gif", "jpg", "jpeg", "bmp", "tiff", "tif", "png", "svg", "webp", "avif", "ico", "heic", "heif", "jxl"]; | ||
| readonly async: true; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: true; | ||
| readonly exportHtml: true; | ||
| readonly zoom: "provider"; | ||
| readonly search: false; | ||
| }; | ||
| }, { | ||
| readonly id: "markdown"; | ||
| readonly label: "Markdown"; | ||
| readonly category: "markdown"; | ||
| readonly extensions: readonly ["md", "markdown"]; | ||
| readonly async: true; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: true; | ||
| readonly exportHtml: true; | ||
| readonly zoom: false; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "code"; | ||
| readonly label: "Code and Text"; | ||
| readonly category: "code"; | ||
| readonly extensions: readonly ["txt", "json", "js", "mjs", "cjs", "css", "java", "py", "html", "htm", "jsx", "ts", "tsx", "xml", "log", "vue", "yaml", "yml", "ini", "sh", "bash", "sql", "go", "rs", "php", "c", "cpp", "cc", "h", "hpp", "cs", "diff", "patch", "bundle", "bdl", "jsonc", "json5", "ipynb", "toml", "proto", "hcl", "tex", "gv", "http", "react", "rb", "swift", "kt"]; | ||
| readonly async: true; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: true; | ||
| readonly exportHtml: true; | ||
| readonly zoom: false; | ||
| readonly search: true; | ||
| }; | ||
| }, { | ||
| readonly id: "video"; | ||
| readonly label: "Video"; | ||
| readonly category: "media"; | ||
| readonly extensions: readonly ["mp4", "webm", "m3u8"]; | ||
| readonly async: true; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: false; | ||
| readonly exportHtml: false; | ||
| readonly zoom: false; | ||
| readonly search: false; | ||
| }; | ||
| }, { | ||
| readonly id: "audio"; | ||
| readonly label: "Audio"; | ||
| readonly category: "media"; | ||
| readonly extensions: readonly ["mp3", "mpeg", "wav", "ogg", "oga", "opus", "m4a", "aac", "flac", "weba", "midi", "mid"]; | ||
| readonly async: true; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: false; | ||
| readonly exportHtml: false; | ||
| readonly zoom: false; | ||
| readonly search: false; | ||
| }; | ||
| }, { | ||
| readonly id: "data-asset"; | ||
| readonly label: "Data Asset"; | ||
| readonly category: "asset"; | ||
| readonly extensions: readonly ["ttf", "otf", "woff", "woff2", "psd", "ai", "eps", "sqlite", "wasm", "parquet", "avro", "webarchive"]; | ||
| readonly async: true; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: false; | ||
| readonly exportHtml: true; | ||
| readonly zoom: false; | ||
| readonly search: true; | ||
| }; | ||
| }]; | ||
| export declare const DEFAULT_SUPPORTED_EXTENSIONS: readonly ("markdown" | "webp" | "jpeg" | "png" | "xyz" | "wasm" | "pdf" | "typst" | "js" | "html" | "svg" | "rb" | "zip" | "zipx" | "7z" | "rar" | "tar" | "gz" | "gzip" | "tgz" | "bz2" | "bzip2" | "tbz" | "tbz2" | "xz" | "txz" | "lzma" | "zst" | "tzst" | "cab" | "ar" | "cpio" | "iso" | "xar" | "lha" | "lzh" | "jar" | "war" | "ear" | "apk" | "cbz" | "cbr" | "glb" | "gltf" | "obj" | "stl" | "ply" | "fbx" | "dae" | "3ds" | "3mf" | "amf" | "usd" | "usda" | "usdc" | "usdz" | "kmz" | "step" | "stp" | "iges" | "igs" | "ifc" | "3dm" | "brep" | "pcd" | "wrl" | "vrml" | "vtk" | "vtp" | "txt" | "json" | "mjs" | "cjs" | "css" | "java" | "py" | "htm" | "jsx" | "ts" | "tsx" | "xml" | "log" | "vue" | "yaml" | "yml" | "ini" | "sh" | "bash" | "sql" | "go" | "rs" | "php" | "c" | "cpp" | "cc" | "h" | "hpp" | "cs" | "diff" | "patch" | "bundle" | "bdl" | "jsonc" | "json5" | "ipynb" | "toml" | "proto" | "hcl" | "tex" | "gv" | "http" | "react" | "swift" | "kt" | "gif" | "jpg" | "bmp" | "tiff" | "tif" | "avif" | "ico" | "heic" | "heif" | "jxl" | "docx" | "docm" | "dotx" | "dotm" | "doc" | "dot" | "ppt" | "pptx" | "pptm" | "potx" | "potm" | "ppsx" | "ppsm" | "rtf" | "odt" | "odp" | "xlsx" | "xltx" | "xlsm" | "xlsb" | "xls" | "xlt" | "xltm" | "csv" | "tsv" | "ods" | "fods" | "numbers" | "ofd" | "typ" | "eml" | "msg" | "mbox" | "olb" | "dra" | "gds" | "oas" | "oasis" | "dxf" | "dwg" | "dwf" | "dwfx" | "xps" | "geojson" | "kml" | "gpx" | "shp" | "excalidraw" | "drawio" | "dio" | "mermaid" | "mmd" | "plantuml" | "puml" | "xmind" | "epub" | "umd" | "md" | "mp4" | "webm" | "m3u8" | "mp3" | "mpeg" | "wav" | "ogg" | "oga" | "opus" | "m4a" | "aac" | "flac" | "weba" | "midi" | "mid" | "ttf" | "otf" | "woff" | "woff2" | "psd" | "ai" | "eps" | "sqlite" | "parquet" | "avro" | "webarchive")[]; | ||
| export { DEFAULT_REGISTERED_EXTENSIONS, DEFAULT_RENDERER_DEFINITIONS, DEFAULT_STABLE_SUPPORTED_EXTENSIONS, DEFAULT_SUPPORTED_EXTENSIONS, } from './formats.generated'; | ||
| export declare const ARCHIVE_EXTENSIONS: readonly ("markdown" | "webp" | "jpeg" | "png" | "xyz" | "wasm" | "pdf" | "typst" | "js" | "html" | "svg" | "rb" | "docx" | "docm" | "dotx" | "dotm" | "doc" | "dot" | "ppt" | "pot" | "pptx" | "pptm" | "potx" | "potm" | "ppsx" | "ppsm" | "rtf" | "odt" | "odp" | "xlsx" | "xltx" | "xlsm" | "xlsb" | "xls" | "xlt" | "xla" | "xlam" | "xltm" | "csv" | "tsv" | "ods" | "fods" | "pages" | "numbers" | "key" | "wpd" | "wp" | "wp5" | "wp6" | "dbf" | "ofd" | "hwp" | "hwpx" | "typ" | "zip" | "zipx" | "7z" | "rar" | "tar" | "gz" | "gzip" | "tgz" | "bz2" | "bzip2" | "tbz" | "tbz2" | "xz" | "txz" | "lzma" | "zst" | "tzst" | "cab" | "ar" | "cpio" | "iso" | "xar" | "lha" | "lzh" | "jar" | "war" | "ear" | "apk" | "cbz" | "cbr" | "eml" | "msg" | "mbox" | "olb" | "dra" | "gds" | "oas" | "oasis" | "dxf" | "dwg" | "dwf" | "dwfx" | "xps" | "glb" | "gltf" | "obj" | "stl" | "ply" | "fbx" | "dae" | "3ds" | "3mf" | "amf" | "usd" | "usda" | "usdc" | "usdz" | "kmz" | "step" | "stp" | "iges" | "igs" | "ifc" | "3dm" | "brep" | "pcd" | "wrl" | "vrml" | "vtk" | "vtp" | "geojson" | "kml" | "gpx" | "shp" | "excalidraw" | "drawio" | "dio" | "mermaid" | "mmd" | "plantuml" | "puml" | "xmind" | "epub" | "fb2" | "umd" | "gif" | "jpg" | "bmp" | "tiff" | "tif" | "avif" | "ico" | "heic" | "heif" | "jxl" | "md" | "txt" | "json" | "mjs" | "cjs" | "css" | "java" | "py" | "htm" | "jsx" | "ts" | "tsx" | "xml" | "log" | "vue" | "yaml" | "yml" | "ini" | "sh" | "bash" | "sql" | "go" | "rs" | "php" | "c" | "cpp" | "cc" | "h" | "hpp" | "cs" | "diff" | "patch" | "bundle" | "bdl" | "jsonc" | "json5" | "ipynb" | "toml" | "proto" | "hcl" | "tex" | "gv" | "http" | "react" | "swift" | "kt" | "mp4" | "webm" | "m3u8" | "mp3" | "mpeg" | "wav" | "ogg" | "oga" | "opus" | "m4a" | "aac" | "flac" | "weba" | "midi" | "mid" | "ttf" | "otf" | "woff" | "woff2" | "psd" | "ai" | "eps" | "sqlite" | "parquet" | "avro" | "webarchive")[]; | ||
| export declare const MODEL_EXTENSIONS: readonly ("markdown" | "webp" | "jpeg" | "png" | "xyz" | "wasm" | "pdf" | "typst" | "js" | "html" | "svg" | "rb" | "docx" | "docm" | "dotx" | "dotm" | "doc" | "dot" | "ppt" | "pot" | "pptx" | "pptm" | "potx" | "potm" | "ppsx" | "ppsm" | "rtf" | "odt" | "odp" | "xlsx" | "xltx" | "xlsm" | "xlsb" | "xls" | "xlt" | "xla" | "xlam" | "xltm" | "csv" | "tsv" | "ods" | "fods" | "pages" | "numbers" | "key" | "wpd" | "wp" | "wp5" | "wp6" | "dbf" | "ofd" | "hwp" | "hwpx" | "typ" | "zip" | "zipx" | "7z" | "rar" | "tar" | "gz" | "gzip" | "tgz" | "bz2" | "bzip2" | "tbz" | "tbz2" | "xz" | "txz" | "lzma" | "zst" | "tzst" | "cab" | "ar" | "cpio" | "iso" | "xar" | "lha" | "lzh" | "jar" | "war" | "ear" | "apk" | "cbz" | "cbr" | "eml" | "msg" | "mbox" | "olb" | "dra" | "gds" | "oas" | "oasis" | "dxf" | "dwg" | "dwf" | "dwfx" | "xps" | "glb" | "gltf" | "obj" | "stl" | "ply" | "fbx" | "dae" | "3ds" | "3mf" | "amf" | "usd" | "usda" | "usdc" | "usdz" | "kmz" | "step" | "stp" | "iges" | "igs" | "ifc" | "3dm" | "brep" | "pcd" | "wrl" | "vrml" | "vtk" | "vtp" | "geojson" | "kml" | "gpx" | "shp" | "excalidraw" | "drawio" | "dio" | "mermaid" | "mmd" | "plantuml" | "puml" | "xmind" | "epub" | "fb2" | "umd" | "gif" | "jpg" | "bmp" | "tiff" | "tif" | "avif" | "ico" | "heic" | "heif" | "jxl" | "md" | "txt" | "json" | "mjs" | "cjs" | "css" | "java" | "py" | "htm" | "jsx" | "ts" | "tsx" | "xml" | "log" | "vue" | "yaml" | "yml" | "ini" | "sh" | "bash" | "sql" | "go" | "rs" | "php" | "c" | "cpp" | "cc" | "h" | "hpp" | "cs" | "diff" | "patch" | "bundle" | "bdl" | "jsonc" | "json5" | "ipynb" | "toml" | "proto" | "hcl" | "tex" | "gv" | "http" | "react" | "swift" | "kt" | "mp4" | "webm" | "m3u8" | "mp3" | "mpeg" | "wav" | "ogg" | "oga" | "opus" | "m4a" | "aac" | "flac" | "weba" | "midi" | "mid" | "ttf" | "otf" | "woff" | "woff2" | "psd" | "ai" | "eps" | "sqlite" | "parquet" | "avro" | "webarchive")[]; | ||
| export declare const TEXT_EXTENSIONS: readonly ("markdown" | "webp" | "jpeg" | "png" | "xyz" | "wasm" | "pdf" | "typst" | "js" | "html" | "svg" | "rb" | "docx" | "docm" | "dotx" | "dotm" | "doc" | "dot" | "ppt" | "pot" | "pptx" | "pptm" | "potx" | "potm" | "ppsx" | "ppsm" | "rtf" | "odt" | "odp" | "xlsx" | "xltx" | "xlsm" | "xlsb" | "xls" | "xlt" | "xla" | "xlam" | "xltm" | "csv" | "tsv" | "ods" | "fods" | "pages" | "numbers" | "key" | "wpd" | "wp" | "wp5" | "wp6" | "dbf" | "ofd" | "hwp" | "hwpx" | "typ" | "zip" | "zipx" | "7z" | "rar" | "tar" | "gz" | "gzip" | "tgz" | "bz2" | "bzip2" | "tbz" | "tbz2" | "xz" | "txz" | "lzma" | "zst" | "tzst" | "cab" | "ar" | "cpio" | "iso" | "xar" | "lha" | "lzh" | "jar" | "war" | "ear" | "apk" | "cbz" | "cbr" | "eml" | "msg" | "mbox" | "olb" | "dra" | "gds" | "oas" | "oasis" | "dxf" | "dwg" | "dwf" | "dwfx" | "xps" | "glb" | "gltf" | "obj" | "stl" | "ply" | "fbx" | "dae" | "3ds" | "3mf" | "amf" | "usd" | "usda" | "usdc" | "usdz" | "kmz" | "step" | "stp" | "iges" | "igs" | "ifc" | "3dm" | "brep" | "pcd" | "wrl" | "vrml" | "vtk" | "vtp" | "geojson" | "kml" | "gpx" | "shp" | "excalidraw" | "drawio" | "dio" | "mermaid" | "mmd" | "plantuml" | "puml" | "xmind" | "epub" | "fb2" | "umd" | "gif" | "jpg" | "bmp" | "tiff" | "tif" | "avif" | "ico" | "heic" | "heif" | "jxl" | "md" | "txt" | "json" | "mjs" | "cjs" | "css" | "java" | "py" | "htm" | "jsx" | "ts" | "tsx" | "xml" | "log" | "vue" | "yaml" | "yml" | "ini" | "sh" | "bash" | "sql" | "go" | "rs" | "php" | "c" | "cpp" | "cc" | "h" | "hpp" | "cs" | "diff" | "patch" | "bundle" | "bdl" | "jsonc" | "json5" | "ipynb" | "toml" | "proto" | "hcl" | "tex" | "gv" | "http" | "react" | "swift" | "kt" | "mp4" | "webm" | "m3u8" | "mp3" | "mpeg" | "wav" | "ogg" | "oga" | "opus" | "m4a" | "aac" | "flac" | "weba" | "midi" | "mid" | "ttf" | "otf" | "woff" | "woff2" | "psd" | "ai" | "eps" | "sqlite" | "parquet" | "avro" | "webarchive")[]; | ||
| export declare const IMAGE_EXTENSIONS: readonly ("markdown" | "webp" | "jpeg" | "png" | "xyz" | "wasm" | "pdf" | "typst" | "js" | "html" | "svg" | "rb" | "docx" | "docm" | "dotx" | "dotm" | "doc" | "dot" | "ppt" | "pot" | "pptx" | "pptm" | "potx" | "potm" | "ppsx" | "ppsm" | "rtf" | "odt" | "odp" | "xlsx" | "xltx" | "xlsm" | "xlsb" | "xls" | "xlt" | "xla" | "xlam" | "xltm" | "csv" | "tsv" | "ods" | "fods" | "pages" | "numbers" | "key" | "wpd" | "wp" | "wp5" | "wp6" | "dbf" | "ofd" | "hwp" | "hwpx" | "typ" | "zip" | "zipx" | "7z" | "rar" | "tar" | "gz" | "gzip" | "tgz" | "bz2" | "bzip2" | "tbz" | "tbz2" | "xz" | "txz" | "lzma" | "zst" | "tzst" | "cab" | "ar" | "cpio" | "iso" | "xar" | "lha" | "lzh" | "jar" | "war" | "ear" | "apk" | "cbz" | "cbr" | "eml" | "msg" | "mbox" | "olb" | "dra" | "gds" | "oas" | "oasis" | "dxf" | "dwg" | "dwf" | "dwfx" | "xps" | "glb" | "gltf" | "obj" | "stl" | "ply" | "fbx" | "dae" | "3ds" | "3mf" | "amf" | "usd" | "usda" | "usdc" | "usdz" | "kmz" | "step" | "stp" | "iges" | "igs" | "ifc" | "3dm" | "brep" | "pcd" | "wrl" | "vrml" | "vtk" | "vtp" | "geojson" | "kml" | "gpx" | "shp" | "excalidraw" | "drawio" | "dio" | "mermaid" | "mmd" | "plantuml" | "puml" | "xmind" | "epub" | "fb2" | "umd" | "gif" | "jpg" | "bmp" | "tiff" | "tif" | "avif" | "ico" | "heic" | "heif" | "jxl" | "md" | "txt" | "json" | "mjs" | "cjs" | "css" | "java" | "py" | "htm" | "jsx" | "ts" | "tsx" | "xml" | "log" | "vue" | "yaml" | "yml" | "ini" | "sh" | "bash" | "sql" | "go" | "rs" | "php" | "c" | "cpp" | "cc" | "h" | "hpp" | "cs" | "diff" | "patch" | "bundle" | "bdl" | "jsonc" | "json5" | "ipynb" | "toml" | "proto" | "hcl" | "tex" | "gv" | "http" | "react" | "swift" | "kt" | "mp4" | "webm" | "m3u8" | "mp3" | "mpeg" | "wav" | "ogg" | "oga" | "opus" | "m4a" | "aac" | "flac" | "weba" | "midi" | "mid" | "ttf" | "otf" | "woff" | "woff2" | "psd" | "ai" | "eps" | "sqlite" | "parquet" | "avro" | "webarchive")[]; |
+10
-224
@@ -1,224 +0,10 @@ | ||
| export const ARCHIVE_EXTENSIONS = [ | ||
| 'zip', 'zipx', '7z', 'rar', 'tar', 'gz', 'gzip', 'tgz', 'bz2', 'bzip2', 'tbz', 'tbz2', | ||
| 'xz', 'txz', 'lzma', 'zst', 'tzst', 'cab', 'ar', 'cpio', 'iso', 'xar', 'lha', 'lzh', | ||
| 'jar', 'war', 'ear', 'apk', 'cbz', 'cbr', | ||
| ]; | ||
| export const MODEL_EXTENSIONS = [ | ||
| 'glb', 'gltf', 'obj', 'stl', 'ply', 'fbx', 'dae', '3ds', '3mf', 'amf', 'usd', 'usda', | ||
| 'usdc', 'usdz', 'kmz', 'step', 'stp', 'iges', 'igs', 'ifc', '3dm', 'brep', 'pcd', 'wrl', | ||
| 'vrml', 'xyz', 'vtk', 'vtp', | ||
| ]; | ||
| export const TEXT_EXTENSIONS = [ | ||
| 'txt', 'json', 'js', 'mjs', 'cjs', 'css', 'java', 'py', 'html', 'htm', 'jsx', 'ts', | ||
| 'tsx', 'xml', 'log', 'vue', 'yaml', 'yml', 'ini', 'sh', 'bash', 'sql', 'go', 'rs', | ||
| 'php', 'c', 'cpp', 'cc', 'h', 'hpp', 'cs', 'diff', 'patch', 'bundle', 'bdl', | ||
| 'jsonc', 'json5', 'ipynb', 'toml', 'proto', 'hcl', 'tex', 'gv', 'http', 'react', | ||
| 'rb', 'swift', 'kt', | ||
| ]; | ||
| export const IMAGE_EXTENSIONS = [ | ||
| 'gif', 'jpg', 'jpeg', 'bmp', 'tiff', 'tif', 'png', 'svg', 'webp', 'avif', 'ico', | ||
| 'heic', 'heif', 'jxl', | ||
| ]; | ||
| export const DEFAULT_RENDERER_DEFINITIONS = [ | ||
| { | ||
| id: 'office-word-openxml', | ||
| label: 'Word OpenXML', | ||
| category: 'office', | ||
| extensions: ['docx', 'docm', 'dotx', 'dotm'], | ||
| async: true, | ||
| capabilities: { download: true, print: 'adapter', exportHtml: 'adapter', zoom: 'provider', search: true }, | ||
| }, | ||
| { | ||
| id: 'office-word-binary', | ||
| label: 'Word Binary', | ||
| category: 'office', | ||
| extensions: ['doc', 'dot'], | ||
| async: true, | ||
| capabilities: { download: true, print: 'adapter', exportHtml: 'adapter', zoom: 'provider', search: true }, | ||
| }, | ||
| { | ||
| id: 'office-presentation-binary', | ||
| label: 'PowerPoint 97–2003', | ||
| category: 'office', | ||
| extensions: ['ppt'], | ||
| async: true, | ||
| capabilities: { download: true, print: 'adapter', exportHtml: 'adapter', zoom: 'provider', search: false }, | ||
| }, | ||
| { | ||
| id: 'office-presentation', | ||
| label: 'PowerPoint OpenXML', | ||
| category: 'office', | ||
| extensions: ['pptx', 'pptm', 'potx', 'potm', 'ppsx', 'ppsm'], | ||
| async: true, | ||
| capabilities: { download: true, print: true, exportHtml: true, zoom: 'provider', search: true }, | ||
| }, | ||
| { | ||
| id: 'open-document', | ||
| label: 'Open Document', | ||
| category: 'office', | ||
| extensions: ['rtf', 'odt', 'odp'], | ||
| async: true, | ||
| capabilities: { download: true, print: true, exportHtml: true, zoom: 'provider', search: true }, | ||
| }, | ||
| { | ||
| id: 'spreadsheet-openxml', | ||
| label: 'Spreadsheet', | ||
| category: 'office', | ||
| extensions: ['xlsx', 'xltx', 'xlsm', 'xlsb', 'xls', 'xlt', 'xltm', 'csv', 'tsv', 'ods', 'fods', 'numbers'], | ||
| async: true, | ||
| capabilities: { download: true, print: false, exportHtml: false, zoom: 'provider', search: true }, | ||
| }, | ||
| { | ||
| id: 'pdf', | ||
| label: 'PDF', | ||
| category: 'document', | ||
| extensions: ['pdf'], | ||
| async: true, | ||
| capabilities: { download: true, print: 'adapter', exportHtml: 'adapter', zoom: 'provider', search: 'provider' }, | ||
| }, | ||
| { | ||
| id: 'ofd', | ||
| label: 'OFD', | ||
| category: 'document', | ||
| extensions: ['ofd'], | ||
| async: true, | ||
| capabilities: { download: true, print: true, exportHtml: true, zoom: 'provider', search: true }, | ||
| }, | ||
| { | ||
| id: 'typst', | ||
| label: 'Typst', | ||
| category: 'document', | ||
| extensions: ['typ', 'typst'], | ||
| async: true, | ||
| capabilities: { download: true, print: 'adapter', exportHtml: 'adapter', zoom: 'provider', search: true }, | ||
| }, | ||
| { | ||
| id: 'archive', | ||
| label: 'Archive', | ||
| category: 'archive', | ||
| extensions: ARCHIVE_EXTENSIONS, | ||
| async: true, | ||
| capabilities: { download: true, print: false, exportHtml: false, zoom: false, search: true }, | ||
| }, | ||
| { | ||
| id: 'email', | ||
| label: 'Email', | ||
| category: 'email', | ||
| extensions: ['eml', 'msg', 'mbox'], | ||
| async: true, | ||
| capabilities: { download: true, print: false, exportHtml: true, zoom: false, search: true }, | ||
| }, | ||
| { | ||
| id: 'eda', | ||
| label: 'EDA', | ||
| category: 'eda', | ||
| extensions: ['olb', 'dra', 'gds', 'oas', 'oasis'], | ||
| async: true, | ||
| capabilities: { download: true, print: true, exportHtml: true, zoom: false, search: true }, | ||
| }, | ||
| { | ||
| id: 'cad', | ||
| label: 'CAD', | ||
| category: 'cad', | ||
| extensions: ['dxf', 'dwg', 'dwf', 'dwfx', 'xps'], | ||
| async: true, | ||
| capabilities: { download: true, print: true, exportHtml: true, zoom: 'provider', search: false }, | ||
| }, | ||
| { | ||
| id: 'model', | ||
| label: '3D Model', | ||
| category: 'model', | ||
| extensions: MODEL_EXTENSIONS, | ||
| async: true, | ||
| capabilities: { download: true, print: false, exportHtml: false, zoom: 'provider', search: false }, | ||
| }, | ||
| { | ||
| id: 'geo', | ||
| label: 'Geospatial', | ||
| category: 'geo', | ||
| extensions: ['geojson', 'kml', 'gpx', 'shp'], | ||
| async: true, | ||
| capabilities: { download: true, print: true, exportHtml: true, zoom: 'provider', search: true }, | ||
| }, | ||
| { | ||
| id: 'drawing', | ||
| label: 'Drawing', | ||
| category: 'drawing', | ||
| extensions: ['excalidraw', 'drawio', 'dio', 'mermaid', 'mmd', 'plantuml', 'puml'], | ||
| async: true, | ||
| capabilities: { download: true, print: true, exportHtml: true, zoom: 'provider', search: true }, | ||
| }, | ||
| { | ||
| id: 'mindmap', | ||
| label: 'Mind Map', | ||
| category: 'mindmap', | ||
| extensions: ['xmind'], | ||
| async: true, | ||
| capabilities: { download: true, print: true, exportHtml: true, zoom: 'provider', search: true }, | ||
| }, | ||
| { | ||
| id: 'epub', | ||
| label: 'EPUB', | ||
| category: 'ebook', | ||
| extensions: ['epub'], | ||
| async: true, | ||
| capabilities: { download: true, print: false, exportHtml: true, zoom: false, search: 'provider' }, | ||
| }, | ||
| { | ||
| id: 'umd', | ||
| label: 'UMD', | ||
| category: 'ebook', | ||
| extensions: ['umd'], | ||
| async: true, | ||
| capabilities: { download: true, print: true, exportHtml: true, zoom: 'provider', search: true }, | ||
| }, | ||
| { | ||
| id: 'image', | ||
| label: 'Image', | ||
| category: 'image', | ||
| extensions: IMAGE_EXTENSIONS, | ||
| async: true, | ||
| capabilities: { download: true, print: true, exportHtml: true, zoom: 'provider', search: false }, | ||
| }, | ||
| { | ||
| id: 'markdown', | ||
| label: 'Markdown', | ||
| category: 'markdown', | ||
| extensions: ['md', 'markdown'], | ||
| async: true, | ||
| capabilities: { download: true, print: true, exportHtml: true, zoom: false, search: true }, | ||
| }, | ||
| { | ||
| id: 'code', | ||
| label: 'Code and Text', | ||
| category: 'code', | ||
| extensions: TEXT_EXTENSIONS, | ||
| async: true, | ||
| capabilities: { download: true, print: true, exportHtml: true, zoom: false, search: true }, | ||
| }, | ||
| { | ||
| id: 'video', | ||
| label: 'Video', | ||
| category: 'media', | ||
| extensions: ['mp4', 'webm', 'm3u8'], | ||
| async: true, | ||
| capabilities: { download: true, print: false, exportHtml: false, zoom: false, search: false }, | ||
| }, | ||
| { | ||
| id: 'audio', | ||
| label: 'Audio', | ||
| category: 'media', | ||
| extensions: ['mp3', 'mpeg', 'wav', 'ogg', 'oga', 'opus', 'm4a', 'aac', 'flac', 'weba', 'midi', 'mid'], | ||
| async: true, | ||
| capabilities: { download: true, print: false, exportHtml: false, zoom: false, search: false }, | ||
| }, | ||
| { | ||
| id: 'data-asset', | ||
| label: 'Data Asset', | ||
| category: 'asset', | ||
| extensions: ['ttf', 'otf', 'woff', 'woff2', 'psd', 'ai', 'eps', 'sqlite', 'wasm', 'parquet', 'avro', 'webarchive'], | ||
| async: true, | ||
| capabilities: { download: true, print: false, exportHtml: true, zoom: false, search: true }, | ||
| }, | ||
| ]; | ||
| export const DEFAULT_SUPPORTED_EXTENSIONS = Object.freeze(Array.from(new Set(DEFAULT_RENDERER_DEFINITIONS.flatMap(definition => definition.extensions))).sort()); | ||
| export { DEFAULT_REGISTERED_EXTENSIONS, DEFAULT_RENDERER_DEFINITIONS, DEFAULT_STABLE_SUPPORTED_EXTENSIONS, DEFAULT_SUPPORTED_EXTENSIONS, } from './formats.generated.js'; | ||
| import { DEFAULT_RENDERER_DEFINITIONS } from './formats.generated.js'; | ||
| const extensionsFor = (rendererId) => { | ||
| var _a, _b; | ||
| return Object.freeze([...((_b = (_a = DEFAULT_RENDERER_DEFINITIONS.find(definition => definition.id === rendererId)) === null || _a === void 0 ? void 0 : _a.extensions) !== null && _b !== void 0 ? _b : [])]); | ||
| }; | ||
| export const ARCHIVE_EXTENSIONS = extensionsFor('archive'); | ||
| export const MODEL_EXTENSIONS = extensionsFor('model'); | ||
| export const TEXT_EXTENSIONS = extensionsFor('code'); | ||
| export const IMAGE_EXTENSIONS = extensionsFor('image'); |
@@ -16,2 +16,8 @@ import type { FileViewerBuiltinRendererPreset, FileRenderHandler, FileViewerRenderedInstance } from '../contracts/types'; | ||
| readonly async: true; | ||
| readonly supportLevel: "high-fidelity"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-word"; | ||
| readonly presets: readonly ["office", "all"]; | ||
| readonly containerVersions: readonly ["OOXML Transitional", "OOXML Strict"]; | ||
| readonly knownLimits: readonly ["VBA is never executed"]; | ||
| readonly capabilities: { | ||
@@ -30,2 +36,8 @@ readonly download: true; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-word"; | ||
| readonly presets: readonly ["office", "all"]; | ||
| readonly containerVersions: readonly ["Word 97-2003 Binary"]; | ||
| readonly knownLimits: readonly ["Macros are never executed"]; | ||
| readonly capabilities: { | ||
@@ -42,4 +54,10 @@ readonly download: true; | ||
| readonly category: "office"; | ||
| readonly extensions: readonly ["ppt"]; | ||
| readonly extensions: readonly ["ppt", "pot"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-presentation"; | ||
| readonly presets: readonly ["office", "all"]; | ||
| readonly containerVersions: readonly ["PowerPoint 97-2003 Binary"]; | ||
| readonly knownLimits: readonly ["Embedded engine watermark is retained", "Macros are never executed"]; | ||
| readonly capabilities: { | ||
@@ -58,2 +76,8 @@ readonly download: true; | ||
| readonly async: true; | ||
| readonly supportLevel: "high-fidelity"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-presentation"; | ||
| readonly presets: readonly ["office", "all"]; | ||
| readonly containerVersions: readonly ["OOXML Transitional", "OOXML Strict"]; | ||
| readonly knownLimits: readonly ["Macros and external programs are never executed"]; | ||
| readonly capabilities: { | ||
@@ -72,2 +96,8 @@ readonly download: true; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-word"; | ||
| readonly presets: readonly ["office", "all"]; | ||
| readonly containerVersions: readonly ["RTF", "OpenDocument"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
@@ -84,4 +114,10 @@ readonly download: true; | ||
| readonly category: "office"; | ||
| readonly extensions: readonly ["xlsx", "xltx", "xlsm", "xlsb", "xls", "xlt", "xltm", "csv", "tsv", "ods", "fods", "numbers"]; | ||
| readonly extensions: readonly ["xlsx", "xltx", "xlsm", "xlsb", "xls", "xlt", "xla", "xlam", "xltm", "csv", "tsv", "ods", "fods"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-spreadsheet"; | ||
| readonly presets: readonly ["office", "all"]; | ||
| readonly containerVersions: readonly ["OOXML", "BIFF", "OpenDocument", "Delimited text"]; | ||
| readonly knownLimits: readonly ["VBA and add-in code are never executed", "Formula results are read from the saved workbook cache"]; | ||
| readonly capabilities: { | ||
@@ -95,2 +131,97 @@ readonly download: true; | ||
| } | { | ||
| readonly id: "apple-pages"; | ||
| readonly label: "Apple Pages"; | ||
| readonly category: "office"; | ||
| readonly extensions: readonly ["pages"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "high-fidelity"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-iwork"; | ||
| readonly presets: readonly ["office", "all"]; | ||
| readonly containerVersions: readonly ["iWork '09 index.xml(.gz)", "iWork 2013+ IWA"]; | ||
| readonly knownLimits: readonly ["Static preview only", "Encrypted iwpv2 files are detected but not decrypted"]; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: "adapter"; | ||
| readonly exportHtml: "adapter"; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| } | { | ||
| readonly id: "apple-numbers"; | ||
| readonly label: "Apple Numbers"; | ||
| readonly category: "office"; | ||
| readonly extensions: readonly ["numbers"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "high-fidelity"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-iwork"; | ||
| readonly presets: readonly ["office", "all"]; | ||
| readonly containerVersions: readonly ["iWork '09 index.xml", "iWork 2013+ IWA"]; | ||
| readonly knownLimits: readonly ["Formula results are read from the saved document cache", "Encrypted iwpv2 files are detected but not decrypted"]; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: "adapter"; | ||
| readonly exportHtml: "adapter"; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| } | { | ||
| readonly id: "apple-keynote"; | ||
| readonly label: "Apple Keynote"; | ||
| readonly category: "office"; | ||
| readonly extensions: readonly ["key"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "high-fidelity"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-iwork"; | ||
| readonly presets: readonly ["office", "all"]; | ||
| readonly containerVersions: readonly ["iWork '09 index.apxl", "iWork 2013+ IWA"]; | ||
| readonly knownLimits: readonly ["Animations, transitions and video playback are not executed", "Encrypted iwpv2 files are detected but not decrypted"]; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: "adapter"; | ||
| readonly exportHtml: "adapter"; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| } | { | ||
| readonly id: "office-wordperfect"; | ||
| readonly label: "WordPerfect"; | ||
| readonly category: "office"; | ||
| readonly extensions: readonly ["wpd", "wp", "wp5", "wp6"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-wordperfect"; | ||
| readonly presets: readonly ["office", "all"]; | ||
| readonly containerVersions: readonly ["WordPerfect 4.2", "WordPerfect 5.x", "WordPerfect 6+"]; | ||
| readonly knownLimits: readonly ["Macros are never executed", ".wp5 and .wp6 are routing aliases for genuine WP5/WP6 payloads, not separate container formats", "Pagination and unsupported embedded objects are presented as structured static preview"]; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: "adapter"; | ||
| readonly exportHtml: "adapter"; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| } | { | ||
| readonly id: "spreadsheet-dbf"; | ||
| readonly label: "dBASE Table"; | ||
| readonly category: "office"; | ||
| readonly extensions: readonly ["dbf"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-spreadsheet"; | ||
| readonly presets: readonly ["office", "all"]; | ||
| readonly containerVersions: readonly ["dBASE III/IV", "Visual FoxPro"]; | ||
| readonly knownLimits: readonly ["Missing DBT/FPT memo sidecars are reported as incomplete"]; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: false; | ||
| readonly exportHtml: false; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| } | { | ||
| readonly id: "pdf"; | ||
@@ -101,2 +232,8 @@ readonly label: "PDF"; | ||
| readonly async: true; | ||
| readonly supportLevel: "high-fidelity"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-pdf"; | ||
| readonly presets: readonly ["office", "all"]; | ||
| readonly containerVersions: readonly ["PDF"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
@@ -115,2 +252,8 @@ readonly download: true; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-ofd"; | ||
| readonly presets: readonly ["office", "all"]; | ||
| readonly containerVersions: readonly ["OFD"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
@@ -124,2 +267,21 @@ readonly download: true; | ||
| } | { | ||
| readonly id: "office-hangul"; | ||
| readonly label: "Hancom Hangul"; | ||
| readonly category: "office"; | ||
| readonly extensions: readonly ["hwp", "hwpx"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-hangul"; | ||
| readonly presets: readonly ["office", "all"]; | ||
| readonly containerVersions: readonly ["HWP v5 CFB", "HWPX ZIP/XML"]; | ||
| readonly knownLimits: readonly ["Encrypted, DRM-protected and distribution documents are detected but not decrypted", "Charts, OLE objects and advanced drawing effects remain limited in the static structured preview", "HWP v5 pagination is approximated when the binary producer omits usable page geometry"]; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: "adapter"; | ||
| readonly exportHtml: "adapter"; | ||
| readonly zoom: "provider"; | ||
| readonly search: true; | ||
| }; | ||
| } | { | ||
| readonly id: "typst"; | ||
@@ -130,2 +292,8 @@ readonly label: "Typst"; | ||
| readonly async: true; | ||
| readonly supportLevel: "high-fidelity"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-typst"; | ||
| readonly presets: readonly ["all"]; | ||
| readonly containerVersions: readonly ["Typst source"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
@@ -144,2 +312,8 @@ readonly download: true; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-archive"; | ||
| readonly presets: readonly ["all"]; | ||
| readonly containerVersions: readonly ["libarchive-supported containers"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
@@ -158,2 +332,8 @@ readonly download: true; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-email"; | ||
| readonly presets: readonly ["all"]; | ||
| readonly containerVersions: readonly ["MIME", "Outlook MSG", "mbox"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
@@ -172,2 +352,8 @@ readonly download: true; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-eda"; | ||
| readonly presets: readonly ["engineering", "all"]; | ||
| readonly containerVersions: readonly ["OrCAD", "GDSII", "OASIS"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
@@ -186,2 +372,8 @@ readonly download: true; | ||
| readonly async: true; | ||
| readonly supportLevel: "high-fidelity"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-cad"; | ||
| readonly presets: readonly ["engineering", "all"]; | ||
| readonly containerVersions: readonly ["DWG", "DXF", "DWF", "DWFX/XPS"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
@@ -200,2 +392,8 @@ readonly download: true; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-3d"; | ||
| readonly presets: readonly ["engineering", "all"]; | ||
| readonly containerVersions: readonly ["Mesh", "CAD exchange", "scene"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
@@ -214,2 +412,8 @@ readonly download: true; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-geo"; | ||
| readonly presets: readonly ["engineering", "all"]; | ||
| readonly containerVersions: readonly ["GeoJSON", "KML", "GPX", "Shapefile"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
@@ -228,2 +432,8 @@ readonly download: true; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-drawing"; | ||
| readonly presets: readonly ["all"]; | ||
| readonly containerVersions: readonly ["Draw.io", "Excalidraw", "Mermaid", "PlantUML"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
@@ -242,2 +452,8 @@ readonly download: true; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-mindmap"; | ||
| readonly presets: readonly ["all"]; | ||
| readonly containerVersions: readonly ["XMind"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
@@ -256,2 +472,8 @@ readonly download: true; | ||
| readonly async: true; | ||
| readonly supportLevel: "high-fidelity"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-epub"; | ||
| readonly presets: readonly ["all"]; | ||
| readonly containerVersions: readonly ["EPUB 2", "EPUB 3"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
@@ -265,2 +487,21 @@ readonly download: true; | ||
| } | { | ||
| readonly id: "ebook-fb2"; | ||
| readonly label: "FictionBook"; | ||
| readonly category: "ebook"; | ||
| readonly extensions: readonly ["fb2"]; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-epub"; | ||
| readonly presets: readonly ["all"]; | ||
| readonly containerVersions: readonly ["FictionBook 2 XML"]; | ||
| readonly knownLimits: readonly ["External network resources are not loaded"]; | ||
| readonly capabilities: { | ||
| readonly download: true; | ||
| readonly print: true; | ||
| readonly exportHtml: true; | ||
| readonly zoom: false; | ||
| readonly search: true; | ||
| }; | ||
| } | { | ||
| readonly id: "umd"; | ||
@@ -271,2 +512,8 @@ readonly label: "UMD"; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-epub"; | ||
| readonly presets: readonly ["all"]; | ||
| readonly containerVersions: readonly ["UMD"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
@@ -285,2 +532,8 @@ readonly download: true; | ||
| readonly async: true; | ||
| readonly supportLevel: "high-fidelity"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-image"; | ||
| readonly presets: readonly ["lite", "all"]; | ||
| readonly containerVersions: readonly ["Raster", "SVG"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
@@ -299,2 +552,8 @@ readonly download: true; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-text"; | ||
| readonly presets: readonly ["lite", "all"]; | ||
| readonly containerVersions: readonly ["CommonMark/GFM"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
@@ -313,2 +572,8 @@ readonly download: true; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-text"; | ||
| readonly presets: readonly ["lite", "all"]; | ||
| readonly containerVersions: readonly ["Plain text", "source code", "Git bundle"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
@@ -327,2 +592,8 @@ readonly download: true; | ||
| readonly async: true; | ||
| readonly supportLevel: "high-fidelity"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-media"; | ||
| readonly presets: readonly ["lite", "all"]; | ||
| readonly containerVersions: readonly ["Browser media"]; | ||
| readonly knownLimits: readonly ["Codec support follows the browser"]; | ||
| readonly capabilities: { | ||
@@ -341,2 +612,8 @@ readonly download: true; | ||
| readonly async: true; | ||
| readonly supportLevel: "high-fidelity"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-media"; | ||
| readonly presets: readonly ["lite", "all"]; | ||
| readonly containerVersions: readonly ["Browser media", "MIDI"]; | ||
| readonly knownLimits: readonly ["Codec support follows the browser"]; | ||
| readonly capabilities: { | ||
@@ -355,2 +632,8 @@ readonly download: true; | ||
| readonly async: true; | ||
| readonly supportLevel: "structured"; | ||
| readonly status: "stable"; | ||
| readonly packageName: "@file-viewer/renderer-data"; | ||
| readonly presets: readonly ["all"]; | ||
| readonly containerVersions: readonly ["Font", "design", "database", "binary data"]; | ||
| readonly knownLimits: readonly []; | ||
| readonly capabilities: { | ||
@@ -357,0 +640,0 @@ readonly download: true; |
@@ -6,2 +6,11 @@ import type { RendererRegistry } from '../contracts/types'; | ||
| } | ||
| /** | ||
| * Content-signature aware renderers can throw this shape when the filename | ||
| * extension points at the wrong container. The orchestration layer follows the | ||
| * redirect once, using the handler registered for the detected renderer id. | ||
| */ | ||
| export interface FileViewerRendererRedirectError extends Error { | ||
| actualRendererId: string; | ||
| } | ||
| export declare const resolveFileViewerRendererRedirectId: (error: unknown) => string | undefined; | ||
| export interface CreateFileViewerRendererDispatcherOptions<Handler> { | ||
@@ -8,0 +17,0 @@ registry?: RendererRegistry; |
| import { DEFAULT_RENDERER_DEFINITIONS } from '../registry/formats.js'; | ||
| import { createRendererRegistry } from '../registry/registry.js'; | ||
| import { normalizeFileExtension } from '../source/index.js'; | ||
| export const resolveFileViewerRendererRedirectId = (error) => { | ||
| if (!error || typeof error !== 'object' || !('actualRendererId' in error)) { | ||
| return undefined; | ||
| } | ||
| const rendererId = String(error.actualRendererId || '').trim(); | ||
| return rendererId || undefined; | ||
| }; | ||
| export const createFileViewerRendererDispatcher = ({ registry = createRendererRegistry(DEFAULT_RENDERER_DEFINITIONS), handlers, fallbackHandler, fallbackKey = 'error', }) => { | ||
@@ -5,0 +12,0 @@ const handlersByRendererId = Array.from(handlers).reduce((result, entry) => { |
@@ -14,3 +14,3 @@ import type { FileViewerRendererDispatcher } from './dispatcher'; | ||
| export interface RenderFileViewerHandlerInput<Rendered = unknown, Target extends HTMLElement = HTMLElement> { | ||
| dispatcher: Pick<FileViewerRendererDispatcher<FileRenderHandler<Rendered, Target>>, 'resolve'>; | ||
| dispatcher: Pick<FileViewerRendererDispatcher<FileRenderHandler<Rendered, Target>>, 'resolve' | 'handlersByRendererId'>; | ||
| buffer: ArrayBuffer; | ||
@@ -17,0 +17,0 @@ target: Target; |
@@ -9,2 +9,3 @@ // Rendering orchestration layer. | ||
| import { createFileViewerRendererDispatcher } from './dispatcher.js'; | ||
| import { resolveFileViewerRendererRedirectId } from './dispatcher.js'; | ||
| import { createRendererRegistry } from '../registry/registry.js'; | ||
@@ -493,2 +494,3 @@ import { getExtension, normalizeFileExtension } from '../source/index.js'; | ||
| export const renderFileViewerHandler = async ({ dispatcher, buffer, target, type = '', context, throwOnMissingHandler = false, }) => { | ||
| var _a, _b, _c; | ||
| const normalizedType = normalizeFileExtension(type); | ||
@@ -502,3 +504,27 @@ const handler = dispatcher.resolve(normalizedType); | ||
| } | ||
| return handler(buffer, target, normalizedType, context); | ||
| try { | ||
| return await handler(buffer, target, normalizedType, context); | ||
| } | ||
| catch (error) { | ||
| const redirectedRendererId = resolveFileViewerRendererRedirectId(error); | ||
| const redirectedHandler = redirectedRendererId | ||
| ? dispatcher.handlersByRendererId.get(redirectedRendererId) | ||
| : undefined; | ||
| if (!redirectedHandler || redirectedHandler === handler) { | ||
| throw error; | ||
| } | ||
| const redirectedType = ((_a = DEFAULT_RENDERER_DEFINITIONS | ||
| .find(definition => definition.id === redirectedRendererId)) === null || _a === void 0 ? void 0 : _a.extensions[0]) || normalizedType; | ||
| (_c = (_b = context === null || context === void 0 ? void 0 : context.options) === null || _b === void 0 ? void 0 : _b.onDiagnostic) === null || _c === void 0 ? void 0 : _c.call(_b, { | ||
| code: 'renderer-content-signature-redirect', | ||
| level: 'warning', | ||
| message: `File extension .${normalizedType} contains the ${redirectedRendererId} container and was routed as .${redirectedType}.`, | ||
| detail: { | ||
| declaredExtension: normalizedType, | ||
| detectedRendererId: redirectedRendererId, | ||
| routedExtension: redirectedType, | ||
| }, | ||
| }); | ||
| return await redirectedHandler(buffer, target, redirectedType, context); | ||
| } | ||
| }; | ||
@@ -558,3 +584,10 @@ export const createFileRenderHandlerLoader = ({ handler, rendererId, getTarget = context => context.surface.container, createContext = buildFileRenderContextFromLoadContext, destroy, }) => { | ||
| load: createFileRenderHandlerLoader({ | ||
| handler, | ||
| handler: (buffer, target, type, context) => renderFileViewerHandler({ | ||
| dispatcher, | ||
| buffer, | ||
| target, | ||
| type, | ||
| context, | ||
| throwOnMissingHandler: true, | ||
| }), | ||
| rendererId: definition.id, | ||
@@ -561,0 +594,0 @@ getTarget, |
| import type { FileViewerFileRef, FileViewerSource, NormalizedFileViewerSource } from '../contracts/types'; | ||
| export { createFileViewerTextDecoder, decodeFileViewerTextBuffer, isValidFileViewerUtf8, resolveFileViewerTextEncoding, } from './textEncoding'; | ||
| export type { DecodedFileViewerText, FileViewerTextEncoding, ResolvedFileViewerTextEncoding, ResolvedFileViewerTextSource, } from './textEncoding'; | ||
| export type FileViewerReadResult = string | ArrayBuffer | undefined | null; | ||
@@ -3,0 +5,0 @@ export declare const DEFAULT_FILE_VIEWER_SOURCE_FILENAME = "preview.bin"; |
@@ -0,1 +1,2 @@ | ||
| export { createFileViewerTextDecoder, decodeFileViewerTextBuffer, isValidFileViewerUtf8, resolveFileViewerTextEncoding, } from './textEncoding.js'; | ||
| export const DEFAULT_FILE_VIEWER_SOURCE_FILENAME = 'preview.bin'; | ||
@@ -2,0 +3,0 @@ export const normalizeFileExtension = (extension) => { |
@@ -34,2 +34,5 @@ import { normalizeFileExtension } from '../source/index.js'; | ||
| } | ||
| if (locale === 'de-DE') { | ||
| return 'aktuelle Datei'; | ||
| } | ||
| return 'current file'; | ||
@@ -182,3 +185,5 @@ }; | ||
| ? `;厳密に最小構成へ絞る場合は ${installHint.rendererPackage} のみをインストールすることもできます` | ||
| : `; for a strict custom cut, install only ${installHint.rendererPackage}` | ||
| : locale === 'de-DE' | ||
| ? `; für eine strikt minimale Konfiguration installieren Sie nur ${installHint.rendererPackage}` | ||
| : `; for a strict custom cut, install only ${installHint.rendererPackage}` | ||
| : ''; | ||
@@ -275,5 +280,5 @@ return createFileViewerStateDescriptor({ | ||
| } | ||
| return resolveFileViewerLocale(i18n) === 'en-US' | ||
| ? `${prefix}: ${detail}` | ||
| : `${prefix}:${detail}`; | ||
| return resolveFileViewerLocale(i18n) === 'zh-CN' || resolveFileViewerLocale(i18n) === 'ja-JP' | ||
| ? `${prefix}:${detail}` | ||
| : `${prefix}: ${detail}`; | ||
| }; | ||
@@ -280,0 +285,0 @@ export const createFileViewerErrorState = (extension = '', error = undefined, theme = DEFAULT_FILE_VIEWER_STATE_THEME, i18n) => createFileViewerStateDescriptor({ |
+1
-1
| { | ||
| "name": "@file-viewer/core", | ||
| "version": "2.2.9", | ||
| "version": "2.3.0", | ||
| "private": false, | ||
@@ -5,0 +5,0 @@ "type": "module", |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
1027019
13.46%108
5.88%19435
14.48%