# Changelog

## 1.5.0 - 2026-04-17

- Replaced `@vue-office/pdf` with `pdfjs-dist` for PDF inset rendering — eliminates the 5-page virtual-scroll cap and renders all pages directly
- PDF worker is now fully offline: bundled as a raw string via `?raw` import and served from a Blob URL with no CDN dependency
- Copyright protection upgraded: branding removal now triggers a full-screen lock overlay that disables all SDK functionality instead of a dismissible warning
- Fixed: copyright tamper detection did not activate the lock when the branding element was removed via `element.remove()`
- Fixed: false copyright lock could fire during Viewer initialisation when the branding element had not yet laid out
- Fixed: PDF pages were silently skipped on first render because the canvas default width (300 px) was mistaken for an already-rendered state — replaced with a `Set`-based rendered-page tracker
- Added smart loading message: large PDF files (> 5 MB) now display file size and current phase (`reading` / `parsing`) in the loading indicator
- Removed unused dev dependencies: `@vue-office/pdf`, `@rollup/plugin-commonjs`, `@rollup/plugin-inject`, `rollup-plugin-polyfill-node`, `vue-demi`

## 1.3.0 - 2026-04-07

- Added first-wave 3D model preview support for `GLB / glTF / STL`
- Added runtime 3D APIs for camera reset, auto-rotate, wireframe, animation, screenshot capture, background/environment, and light/material tuning
- Added 3D preset export/application APIs plus built-in scene presets for product showcase, white model review, night outline, and warm gallery
- Improved 3D runtime loading with async chunking for the renderer, loaders, controls, and Draco decoder
- Expanded the full vanilla HTML demo with 3D samples, debug controls, tuning panels, preset import/export, and built-in preset selection

## 1.2.2 - 2026-04-06

- Expanded video preview capabilities with resume playback, callbacks, runtime control APIs, and configurable toolbar/custom control items
- Added `video.nativeControls` so native browser controls can be toggled independently from SDK controls
- Fixed initial video state syncing so custom controls can render immediately after upload or metadata load
- Fixed video toolbar `More` menu overlay layering inside the viewer toolbar
- Added a visual video control debug panel to the full vanilla HTML demo and improved local asset loading fallback order

## 1.2.1 - 2026-04-03

- Added `cad` as a first-class preview type with built-in DXF rendering
- Added `cad.preview`, `cad.previewUrl`, and `cad.adapter` for converted CAD assets such as `DWG / DWF`
- Added DXF worker fallback logic so stalled worker parsing can fall back to main-thread rendering
- Added a standalone CAD demo page and enabled CAD testing in the full vanilla HTML demo
- Updated README and API docs with CAD preview usage and type definitions

## 1.2.0 - 2026-04-02

- Added CSV / TSV preview support with delimiter detection and table rendering
- Added native video preview support for `mp4`, `webm`, `ogg`, `ogv`, and `mov`
- Improved HTML, image, and dynamic file-type routing inside the viewer
- Fixed CSV preview overflow so large tables stay within the viewer layout
- Fixed video loading flow for local upload and remote preview cases
- Hardened branding protection so CSS hiding can trigger warning and self-recovery more reliably

## 1.1.4 - 2026-03-31

- Improved HTML preview rendering for local files and remote HTML content
- Added explicit HTML and image preview branches to the viewer runtime
- Moved the branding footer to the bottom of the viewer with dedicated footer styles
- Updated the vanilla HTML demo to support direct `.html` and `.htm` uploads
