Skip to content

Latest commit

 

History

History
363 lines (235 loc) · 10.5 KB

CHANGELOG.md

File metadata and controls

363 lines (235 loc) · 10.5 KB

Changelog

All notable changes to this project will be documented in this file.

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

Changed

  • Emit all kind of the TouchEvents if reader is not selectable.

Fixed

  • Fix offset restoration bug in IMAGE viewer

Fixed

  • Fix problem status isReadyToRead was set true at the wrong time

Fixed

  • AnnotationStore's bug was fixed.

Fixed

  • Improve page calculation for viewType === IMAGE
  • Implement lazy loading

Fixed

  • The children of <Reader> component are mounted regardless of status of contents loading.
  • Hide annotation's rects outside content area

Changed

  • Upgrade @ridi/reader.js package

Changed

  • Renamed setting fontSizeInPx -> fontSizeInEm
  • Upgrade some dev dependencies

Fixed

  • Fix content style

Changed

  • Upgrade @ridi/reader.js

Added

  • Add SCROLL_DEBOUNCED event

Added

  • Add a hook afterContentCalculated

Added

  • Add getOffsetFromSerializedRange and getOffsetFromAnchor methods to ReaderJsHelper
  • Add a hook beforeContentCalculated for calculation service

Fixed

  • Fix SelectionLayer(svg) layer style
  • Prevent uncaught errors from Promise

Changed

  • Remove Events.TOUCH_ANNOTATION and treat as a sort of Events.TOUCH

Fixed

  • Fix issue window resizing cannot trigger recalculation on image + scroll view mode

Fixed

  • Invalidate all calculations after SET_ANNOTATIONS event is occurred

Added

  • Revise images in HTML content via @ridi/reader.js
  • Content caching revised <img> tag (contains width and height property)

Added

  • Added more events related with annotation

Fixed

  • Give more accurate meaning to calculations.contents[].isCalculated in Redux
  • Fix SettingConnector.getContainerWidthInternal() calculation

Changed

  • Selection(Annotation) property renaming: style -> color
  • Make RxJS-based SelectionStore replacing with Redux-based SelectionConnector

Fixed

  • Fix Range.expand() error in the Electron environment
  • Fix Some circular dependency issues

Changed

  • Add constants entry to build option

Fixed

  • Fix recalculation bug on image viewer

Fixed

  • Fix calculation issue when viewType === PAGE and contentFormat === IMAGE

Added

  • Add additional information viewPortRange to current redux store

Fixed

  • Load reader.js using user touching position instead of current in redux store

Changed

  • Upgrade and modify .release-it.json script

Fixed

  • Fix selection issue when two contents in the screen on viewType === Scroll

Added

  • Selection / Annotation management PR#88

Breaking Changes

  • Lifecycle management with RxJs PR#90

Fixed

  • Remove duplicated action for calculation offset update PR#83

Added

  • Provide new actions (load and unload) to be available saving/restore current states
  • Add new Redux states (status.isLoaded, calculations.contents[].offset, calculations.footer.offset)

Changed

  • Add default gap between contents on scroll mode

Fixed

  • Make sure moveToOffset() be called whenever current content is changed on page mode
  • Fix calculation error on getting height from scrolled contents

Changed

  • <Reader> allows its children
  • Babel upgraded v7.0

Removed

  • Remove internal loading/error indicators

Changed

  • Published as multiple modules

Added

  • status.isReadyToRead in Redux store to improvement on user-side performance
    • Though page calculation is not completed, status.isReadyToRead can be true when current content(current.contentIndex) is ready to read.

Changed

  • Separate action of loading contents
    • setContents action -> setContentsByUri, setContentsByValue actions
  • READER:SCROLLED action -> onScrolled property of <Reader>

Fixed

  • Adaptively using useCapture or options parameter for addEventListener, removeEventListener according to browser supports
  • Manage properly Reader.js lifecycle

Changed

  • onTouched(event) property will be called with event parameter.
  • CommonUi -> BrowserWrapper

Removed

  • onMoveWrongDirection property was removed.
  • No more handling current offset triggered by click, touch and keyboard events.
  • CommonUi

Fixed

  • Resolve some performance issues

Changed

  • All settings using level will use actual numeric value.
    • fontSizeLevel => fontSizeInPx
    • paddingLevel => contentPaddingInPercent
    • contentWidthLevel => contentWidthInPercent
    • lineHeightLevel => lineHeightInEm
    • columnGap => columnGapInPercent

Fixed

  • At scroll view, calculations total(=total height) was adjusted.

Changed

  • Change default Webpack's mode value to production
  • setting.updateSetting() calls calculations.invalidate()
  • HTML page view was applied paddingLevel setting
  • Move all calculations related with layout to SettingConnector

Fixed

  • Fix using setting maxWidth value from setting.maxWidth instead of props.maxWidth
  • Fix wrong page calculation

!! Breaking Changes !!

Added

  • New features
    • Double page view
    • Set blank as a first page
    • Handling with keyboard event for changing offset
  • Introduce new settings
    • columnsInPage
    • columnGap
    • startWithBlankPage
    • maxWidth
    • contentFooterHeight
    • containerHorizontalMargin
    • containerVerticalMargin
    • extendedSideTouchWidth

Changed

  • Refactoring almost overall for rendering multiple spines stably
  • Rename: <ViewerScreen> -> <Reader>
  • Rename: classes extended Connector -> ...Connector

Removed

  • Removed settings:
    • isFullScreen
    • availableViewType
  • Update dependencies (includes settings for Greenkeeper)
    • styled-components 2.x.x => 3.x.x
    • webpack-manifest-plugin(dev): 1.x.x => 2.x.x
    • And some minor version updates...
  • Add peer dependencies: react, redux, react-dom, react-redux
  • Reduce library bundle size by excluding peer dependencies from bundled file