Skip to content

v0.7.0

Choose a tag to compare

@liamross liamross released this 04 Dec 20:27
· 44 commits to master since this release

Note: file functionality within toolkit v7 and above requires WebViewer v7 or higher. If you are on a previous version of WebViewer, you can use v0.6.0 of the toolkit:

# Yarn
yarn add @pdftron/webviewer-react-toolkit@0.6.0

# npm
npm install @pdftron/webviewer-react-toolkit@0.6.0

⚠ BREAKING CHANGES

  • file: file now takes pageNumber instead of pageIndex, since WebViewer API has changed in version 7 to take 1-indexed page number values
  • WebViewer: due to breaking changes in WebViewer v7, the toolkit will no longer work with previous version of WebViewer

Features

  • file: pageNumber prop replaces pageIndex to match WebViewer API (216b588)
  • FileOrganizer: thumbnailSize prop, fixed thumbnail auto size check (9c3d65b)

Bug Fixes

  • FileOrganizer: fixed bug that skipped setting thumbnail size (c25d758)
  • useFileSubscribe: correct typing of hook output (953a352)

Build and Dependencies

  • WebViewer: peer dependency on version >=7 of WebViewer (28450e6)