Releases: JSv4/react-docxodus-viewer
Releases · JSv4/react-docxodus-viewer
v0.6.0
What's new
warmupprop —DocumentViewernow accepts an optionalwarmupboolean. Whentrue, the viewer eagerly calls the docxodus worker's newprepare()API on mount, pre-warming the .NET comparison assemblies so the first document comparison avoids the ~3s assembly-load latency. The call is idempotent and fire-and-forget; warmup failures never surface as viewer errors. Applies in worker mode only (no-op whenuseWorker={false}).- docxodus bumped to
^6.2.0with refreshed bundled WASM files; peer dependency raised todocxodus >=6.2.
Full Changelog: v0.5.1...v0.6.0
v0.5.1
Highlights
- Upgrade to docxodus 6.0.0.
peerDependencies.docxodusis now>=6.0(was>=4.0); consumers must upgrade alongside. - Bundled WASM assets refreshed from docxodus 6.0.0.
Since v0.4.1
- Add
toolbarActionsAPI, icon-button open mode,defaultZoom, and tighter zoom controls - Tighten gap between zoom controls and custom toolbar actions
- Fix narrow-viewport toolbar overflow; add
fitModeand--page-gapCSS variable - Upgrade to docxodus 5.3.0 / 5.4.0 (intermediate); add unsupported-content placeholders, language override, and stable layout sizing
- Make deleted/moved content non-selectable for cleaner copy/paste
- Fix invisible text on Android Chrome
- Dev-dependency and CI action updates
Upgrade notes
Consumers of react-docxodus-viewer must install docxodus@^6.0.0.
v0.2.1
What's New in v0.2.1
Dependency Updates
- docxodus 4.0.3 - Fixes blocking issues in
useConversion,useComparison,useAnnotations, anduseDocumentStructureReact hooks
What's New in v0.2.0
Performance Improvements
- Web Worker enabled by default - DOCX conversion now runs in a background thread, keeping the UI responsive
- Progressive loading placeholders - Shows page placeholders with estimated dimensions while documents convert using
getDocumentMetadata()
RevisionPanel Enhancements
- Fixed format change display - Filters out raw XML data and shows clean property changes (e.g., "Font Size: 12 → 14")
- Move revision support - Properly displays moved content with group ID badges linking source/destination
- Improved styling - Better layout for format changes with old/new value pairing
UI Improvements
- Constrained viewport height - Viewer defaults to 80vh with internal scrolling
- Customizable height - New CSS variables:
--rdv-height,--rdv-max-height,--rdv-min-height - Smooth scrolling - Footnote/endnote clicks scroll smoothly within the component
Full Changelog
v0.1.1
What's New
docxodus v4.0 Support
- Upgraded to docxodus v4.0 with new features
Web Worker Support
- Added
useWorkerprop for non-blocking document conversion - Large documents no longer freeze the UI during conversion
- Export
isWorkerSupported()helper for feature detection
WASM Auto-Detection
wasmBasePathprop is now optional- WASM files are auto-detected from module location
RevisionViewer Integration
- Integrated revision viewer as a tab within DocumentViewer
- Auto-detects tracked changes in documents
- Filter revisions by type
Usage
import { DocumentViewer } from 'react-docxodus-viewer';
import 'react-docxodus-viewer/styles.css';
// Basic usage (WASM auto-detected)
<DocumentViewer />
// With worker for large documents
<DocumentViewer useWorker />Breaking Changes
- Requires
docxodus >= 4.0as peer dependency