All notable changes to @awacloud/viewer will be documented in this file.

The format is based on Keep a Changelog, and this package adheres to Semantic Versioning.

See README.md for the usage guide.

[Unreleased]

[0.1.0] - 2026-11-19

Added

  • PDF. One canvas per page, drawn when it nears the screen: vector paths, colour spaces, images, shadings, embedded TrueType outlines and annotation appearances, with a selectable text layer that screen readers read and web links that can be clicked. A file encrypted without a reading password opens; a file that needs a password is refused with an explanation.
  • Word processing (DOCX, ODT). Paper sheets with the style cascade, lists with real counters, tables (widths, merged cells, borders, shading), images, links and footnotes (DOCX), cut at explicit page breaks.
  • Spreadsheets (XLSX, ODS). One grid per visible sheet with sticky row and column headers, column widths, row heights, merged cells and cell styles; hidden rows and columns are left out and values are shown as last saved, XLSX number formats in the reader's locale.
  • Presentations (PPTX, ODP). One page per slide, real text scaled per zoom, with layout and master inheritance, theme colours, backgrounds, pictures and tables (PPTX).
  • Markdown and plain text. A paper sheet for Markdown, rendered in safe mode with remote images not loaded, and for .txt, .csv and .log files.
  • Legacy Office files (DOC, XLS, PPT). Detected and explained; they are not drawn.
  • Honest reporting. Whatever a view cannot draw is counted and listed under "Document details", "What this view leaves out"; an empty list says "no omission recorded".
  • An embeddable component. mountViewer() mounts AWA Viewer inside any page and the <awa-viewer> element does the same from markup, with locale and headingOffset options, open, error and close callbacks, keyboard control on its own element and light DOM so the host's design tokens apply. It owns no route and never touches the page's location or history.
  • An installable PWA. The standalone page declares file handlers, so an installed AWA Viewer opens PDF, Office, OpenDocument, Markdown and text files from the system, one window per file; files dropped together open the first and offer the others in new windows, one per click. A release is pre-cached whole at install and served cache-first, so AWA Viewer works offline after its first visit, and an update installs beside the running one and waits for "Update now" or "Later". Documents never pass through the service worker.
  • A help panel. A modal panel over the app, closed by its button or Escape, in English and French: how to open and read, keyboard shortcuts, installing in each browser, updates and offline use. It works offline.
  • Showcase samples. Six sample documents (PDF, Word, OpenDocument, Excel, PowerPoint, Markdown) in the reader's language, opened on demand from the page under the dropzone.
  • Copy with formatting. The toolbar's new button (and Ctrl+Shift+C / Cmd+Shift+C) copies the open document to the clipboard with its headings, emphasis, lists, tables, links and, from Word and OpenDocument text, pictures, ready to paste into a word processor; the Help page lists it. Fonts, colours, page layout and PDF pictures are not carried. A card over the document confirms the copy (or says why it failed) for a few seconds. tests/copy.e2e.mjs proves it in Chromium against the real page.
  • Icons Windows draws without downsampling. The manifest lists 16, 32, 48 and 256 px icons beside 192 and 512 px, for the .ico Chrome writes when the app is installed on Windows, and the pages link a multi-size favicon.ico (16 to 256 px). All drawn by bun run icons from the shapes of icon.svg. The README says what this does and does not prove about the lost-icon symptom, and how to repair a lost icon.
  • File name in the header. While a document is open, the header line shows its file name (cut with an ellipsis on one line, the full name on hover), also on small screens; with no document the tagline is back, and a language change keeps the name.

Changed

  • Precompressed JavaScript. bun run build now ends with the demos' gzip-dist step: every file of 512 B or more that is not already compressed gets a gzip-9 .gz twin (src/main.js 2,193,424 B → 629,241 B), which the site host serves to a client that accepts gzip. The service worker's pre-cache list is unchanged (no .gz).
  • The embeddable core (mountViewer, <awa-viewer>, the painters and the stylesheets) now lives in @awacloud/oview. This package is the standalone PWA over it.
  • The install prompt, the update flow and the service worker now use @awacloud/fw's installPrompt, swUpdate and precache.
  • About in the Help form. The About dialog takes the Help dialog's look, its height fitted to its content (long content scrolls inside): the title with the version under it and a × close button in the head, a scrollable body (copyright, check for updates, offline line, "Made by AwaCloud", licences) and the Close button after it; the focus returns to the About button.

Removed

  • The @awacloud/viewer exports (., ./element.js, ./viewer.css, ./tokens.css): import @awacloud/oview instead.

Live on viewer.awacloud.com since 2026-10-19.