Skip to content

Latest commit

 

History

History
331 lines (228 loc) · 28.5 KB

CHANGELOG.md

File metadata and controls

331 lines (228 loc) · 28.5 KB

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

0.7.11 (2023-03-07)

0.7.10 (2023-03-06)

0.7.9 (2023-03-06)

0.7.8 (2023-03-06)

0.7.7 (2023-03-06)

0.7.6 (2023-03-06)

0.7.5 (2021-10-20)

0.7.4 (2021-10-13)

0.7.3 (2021-10-07)

0.7.2 (2021-04-01)

Features

  • make dnd provider optional (252a64c)

0.7.1 (2021-01-29)

Features

  • Choice: redesign of choice including disabled state and spacing (2cd10e9)

0.7.0 (2020-12-04)

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/[email protected]

# npm
npm install @pdftron/[email protected]

⚠ 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)

0.6.0 (2020-06-26)

⚠ BREAKING CHANGES

  • Thumbnail: removed throttle and isShownOnLoad props as they are no longer required due to ability to cancel position in global queue

Features

  • Choice: added center prop to vertically center the choice (2c6af08)
  • FileOrganizer: added gridRef prop to allow access to react-window grid (77c0c0e)
  • Thumbnail: if label is empty string and no onRename given, hide thumbnail label (04b791e)
  • Toast: added loading toast (95364f5)
  • ToastProvider: added modify toast and exists methods (f04731f)
  • ToastProvider: new props to control position of toast (190c642)

Bug Fixes

  • Button: restored broken padding on small button (f03b079)
  • ToastProvider: using refs to keep exists query up to date (b10d04e)

Refactors

  • useFocusTrap: reduced loop iterations when finding focus index (1fd5232)
  • Thumbnail: queue for expensive file operations (3eb2e55)
  • Thumbnail: fewer file value subscriptions (a148935)

Build and Dependencies

  • dependencies: updated project dependencies (d30a518)
  • Draggable: updated react-dnd-multi-backend (5921815)

0.5.0 (2020-04-29)

⚠ BREAKING CHANGES

  • useFileSubscribe: removed options and replaced with optional throttle
  • useManagedFiles: removed selectWithoutShift option, added preventMultiSelect option, shift no longer multi selects, instead it range selects multiple files, while pressing command or control will allow adding multiple single files to the selection

Features

  • Choice: added props to make choice a switch and move label to left (1b51df0)
  • file: can add license key to enable full file functionality (517f605)
  • file: can provide optional id during instantiation (50094df)
  • file: generate thumbnail exits early if file type is not supported (6963e18)
  • file: improved methods for setting global or local license (94d827a)
  • FilePlaceholder: added file placeholder component (fe5e028)
  • Image: added pending prop to manually set loading state to true (83a1261)
  • Image: can handle rejected or falsy src with onRenderFallback (0e3cec5)
  • Modal: added noUnmount prop to disable modal unmount when closed (313341d)
  • Modal: added wrapperClassName prop (9f1348d)
  • Modal: fullWidth prop removes max width (82c3ab3)
  • Modal: header is now optional (c48b234)
  • Thumbnail: consume errors from useFile for image loading (f093aea)
  • Thumbnail: white background color on thumbnail image (fbb8366)
  • useFile: added errors to useFile output (67a77af)
  • useManagedFiles: easyMultiSelect option (f272fbe)
  • useManagedFiles: shift for range select, meta or ctrl for multi (b8e7775)

Bug Fixes

  • getThumbnail: fixed empty resolve bug (21da478)
  • getThumbnail: removed unnecessary operations (bf4c9df)
  • Modal: click on modal no longer closes if background click enabled (340b871)
  • Modal: fixed focus lock logic (43bfc3a)
  • Modal: if noUnmount is true use visibility instead of display none (bf4b04c)
  • Modal: removed width auto above mobile (a673f2c)
  • Thumbnail: focus now appears on arrow nav as well as tabbing (70efd90)
  • Thumbnail: prevent image drag from interfering with file dragging (53dfa12)
  • useFileSubscribe: value getter ref to prevent infinite looping (276a9bf)
  • useFocusTrap: fix infinite loop while server-side rendering (77681c3)

0.4.1 (2020-04-09)

⚠ BREAKING CHANGES

  • Image: can no longer manually specify image loading, can now use native loading prop to mark an image for lazy loading
  • Image: no longer accepts classes prop, image and loading placeholder are no longer wrapped by a div

Features

  • file: freezeThumbnail prevents thumbnail updates (0cf27e7)
  • FilePicker: created file picker component (1d317de)
  • icons: added download icon (3bc32a7)
  • icons: added menu icon (71f3183)
  • Image: simplify image component (7db5cf5)
  • Input: added leftElement and updated search example (d0e0d60)
  • Input: correct color and alignment of icons (da5356b)
  • Thumbnail: always show toolbuttons on mobile (a4f96a0)
  • Thumbnail: image class name prop (26aeca3)
  • Thumbnail: only show focus state when using keyboard navigation (420a156)
  • ThumbnailSkeleton: skeleton loader for thumbnail (0f994f3)

Bug Fixes

  • file: parse extension from set name (b37a1f7)
  • Image: removed loading prop as it clashed with image loading prop (2cc917c)
  • Overlay: check for document to prevent serverside errors (e421805)
  • Overlay: do not generate overlay if window does not exist (742939f)

Styles

  • EditableText: prevent letter cut off (a54ee71)
  • FilePicker: trim long file names (1e99fc9)

Build and Dependencies

  • compiler: compile to es5 rather than es2015 (73fef01)

0.3.2 (2020-03-11)

Features

  • Choice: choice component for radio buttons or checkboxes (124bcb1)
  • icons: added Check and Circle icons (8f81fba)
  • Input: narrowed possible input types (5885568)
  • Label: optional text for label (71341c0)
  • useID: new hook to generate IDs if not given (a5775a6)

Styles

  • colors: lightened font secondary in light theme (0a73451)

0.3.1 (2020-03-09)

Features

  • Label: added a generic form field label (88d3d3f)

0.3.0 (2020-03-04)

⚠ BREAKING CHANGES

  • Toast: prop toastType renamed to message, as it will now be used across multiple components

Features

  • a11y: added aria-labels to close buttons of modal and toast (fab395f)
  • Icon: added icon component for using included or custom icons (741b6e5)
  • icons: added ChevronDown and RotateRight icons (af137c6)
  • icons: added Hide, Show and Search icons (4cf10f5)
  • Input: added input component (394a7be)
  • Input: rightElement prop for adding custom right element (9f441b1)
  • Toast: renamed toastType prop to message (238630f)
  • ToolButton: added expandProps for expandable menu button (a65a7e3)

Bug Fixes

  • Button: fix font color icon buttons (a04522e)
  • Icon: display inline for icon (2a67871)
  • Thumbnail: fixed issue with keys not registering on tool buttons (e24afb5)
  • useAccessibleFocus: remove all listeners when no subscribers (3ab273f)

Styles

  • colors: added focus shadows for message colors (fc9eaa2)
  • Icon: flex center items within icon (df5c160)

Refactors

  • id: switched to sequential ID generation (65eb0b3)
  • useAccessibleFocus: simplify observable class (03c648d)

0.2.1 (2020-02-26)

Features

  • Modal: improved accessibility on modal (9613ba7)
  • Toast: improved accessibility on toast (cf0e696)

Bug Fixes

  • Button: no longer shows hover or active style when disabled (43f8895)
  • ToastProvider: cancel close timeout on unmount (ab9dcd9)
  • ToastProvider: remove pointer events on toast wrapper (e802738)

Styles

  • Button: opacity on internals when disabled (21eeb27)
  • ButtonGroup: can nest groups for more complex layouts (d531544)
  • font: added Tahoma as backup font, made font-family a variable (3d1756b)
  • mixins: added padding-bottom mixin (704fb11)
  • Modal: allow scrolling modal if height is greater than screen (1f508e1)

0.2.0 (2020-02-24)

⚠ BREAKING CHANGES

  • FileOrganizer: removed virtualizeThreshold prop since the organizer is always virtualized
  • Thumbnail: removed hideExtension prop, no longer necessary since Thumbnail will not display extension due to it being included in File.name

Features

  • ButtonGroup: added prop to center buttons on mobile widths (a3e10be)
  • File: added clone function to safely duplicate files (2597af1)
  • File: added updateDocumentObj method for updating documentObj (57d1760)
  • File: clone accepts overrides arg to override any properties (84a1e6c)
  • FileOrganizer: grid size based on first item, not hard-coded (30eada0)
  • FileOrganizer: is now always virtualized and full height (96aa70e), closes #9
  • FileOrganizer: multi-directional movement and focusing (a835a48)
  • ToastProvider: added noTimeout prop to persist specified types (d783400)

Bug Fixes

  • Draggable: prevent flicker when dragging items (d0740ad), closes #6
  • Overlay: position fixed instead of absolute (5eb0fe8)
  • Thumbnail: no longer displays extension, now included in name (6360abd)

Build and Dependencies

0.1.0 (2020-02-19)

⚠ BREAKING CHANGES

  • breakpoints: media queries do not work with CSS variables, so created new Sass file for breakpoints, and removed breakpoints from mixins file
  • colors: since color-blue-gray-4 was unused, shifted every color-blue-gray over so there is no longer a color-blue-gray-7, and every color above color-blue-gray-3 has been updated
  • css: renamed tablet-lower-boundary to breakpoint-tablet, and desktop-lower-boundary to breakpoint-desktop
  • Overlay: removed blockClicks and darkOverlay from Overlay, will be moved into components that require these properties
  • padding: padding-half renamed to padding-small, padding-small renamed to padding-medium
  • renamed white color variables to contrast since they are no longer white when dark theme is enabled
  • sass and css are now in /dist/scss and /dist/css respectively (moved from /lib/)

Features

  • ButtonGroup: added button group for easy button layout (9457c44)
  • FocusTrap: added FocusTrap and useFocusTrap hook (b691590)
  • IconButton: added icon button (6fa450b)
  • icons: exposed single and multi page icons (a45e459)
  • icons: exposed some icons that are used internally (0a35b58)
  • Modal: added focus lock to modal to ensure user can't tab out (7b005a8)
  • Modal: added modal component for displaying confirmations and info (8a69e44)
  • Overlay: created component (946772c)
  • Toast: added the Toast visual component (b7b5eb0)
  • ToastProvider: added toast provider to access toast management (1452669)
  • ToastProvider: if added toast has timeout of 0 will not timeout (c8c4f3c)
  • useToast: added hook for accessing adding and removal of toasts (34b7e5d)
  • useUnmountDelay: added hook for delayed unmounts, used in Modal (1ef4338)

Bug Fixes

  • Button: now works with svg icon children (2c40b9d)
  • css: breakpoints renamed to breakpoint-<device> (e0aeafc)
  • FileOrganizer: fix to spacing issue with non-virtualized items (804aa66), closes #1
  • Overlay: no longer unmounts when first item removed (52ae549)

Styles

  • breakpoints: moved breakpoints to own file, removed CSS variables (39b1c4c)
  • colors: removed unused color-blue-gray-4 (89a4a5a)
  • font: made webkit font smoothing auto instead of antialiased (0b2dca7)
  • IconButton: added padding to make button square given square icon (39caaca)
  • mixins: use CSS variables in mixins instead of Sass variables (4fbe555)
  • padding: renamed paddings to be more obvious as to size (bef4c39)
  • Spinner: references new spinner mixin for animation (477cdc1)
  • theme: implemented dark theme across all components and docs (5e075cb)

Refactors

  • Draggable: prevent unnecessary onDragChange calls (5ec004a)
  • Overlay: correct memoization of props to avoid rerenders (6e2879c)

Build and Dependencies

  • building sass and css into dist directory (3a32dfc)
  • added esm build process and added tslib dependency (161e2b1)