Document viewer
E show document inside dialog, using renderer registry based on MIME type.
PDF, spreadsheet, document and archive viewers with compare and highlight features.
lr-document-viewer
import '@aceshooting/lyra-ui/components/lr-document-viewer.js';Components wey relate
- DOCX viewer — E convert DOCX to safe semantic HTML through mammoth converter.
- E-book viewer — E show EPUB with chapter navigation through optional epub.js peer.
- Email viewer — E read .eml and show headers, safe message body and attachments.
- GeoJSON viewer — E fetch and check GeoJSON, then draw im features on map.
- Highlight layer — Overlay wey draw clickable highlight rectangles on positioned document content.
- HTML viewer — E fetch URL and show HTML safely after sanitizing am.