v5.0.0
This release largely cleans up options that added extra complexity but no real value to the module as they can be handled directly by the client.
- Where button options have been removed, the same functionality can be achieved by adding a custom button via the
toolbar-buttons
option. - Where default modals, such as the share modal, the same functionality can be achieved by adding a custom modal using the
lv-modal
component.
See the docs for more details.
Breaking changes
- The
navigation
viewer config option has been removed - The
generator
task config option has been removed - The
creator
task config option has been removed - The
buttons
viewer config option has split intotoolbar-buttons
andsidebar-buttons
- The
like
button has been remove, along with theliked
task config option - The
show-note
options has been removed - The
share
button and modal have been removed - Dropped support for node.js <= 5
Features
- Custom toolbar buttons can be added via the
toolbar-buttons
viewer config option - All toolbar button clicks will emit a
toolbarbtnclick
event - Custom modals can be added with the
lv-modal
component - Add
disable-modals
option, so that the client can use their own - Task
target
configurations containing aFragmentSelector
are highlighted (rather than having to specify additionalhighlights
orbounds
options)