Skip to content

v0.2.0-rc.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@mirisuzanne mirisuzanne released this 21 Nov 17:23
· 2 commits to main since this release
df3d7c7
  • 🚀 NEW: The key-control attribute
    accepts values of none or escape,
    to turn off keyboard navigation
    (and optionally leave escape-to-blur intact).
    This attribute can be applied to individual elements in a deck,
    for more detailed control --
    eg turning off navigation while a form has focus.
  • 🚀 NEW: Provide a slide-deck.webc component.
  • 🚀 NEW: All attributes have associated getters and setters:
    • key-control -> keyControl (boolean | 'none' | 'escape')
    • follow-active -> followActive (boolean)
    • full-screen -> fullScreen (boolean)
    • slide-view -> slideView (string)
  • 🚀 NEW: Use the ?slide-view=viewName query parameter
    to create links to specific slide views.
    When present on load, the query parameter will override
    the session storage as well as any hardcoded attribute value.
  • 💥 BREAKING: The slideView property setter
    should be used for changing views,
    rather than manipulating the slide-view attribute directly.
    This will also update session storage and the url query parameter.
  • 💥 BREAKING: When the start and resume events are fired,
    the slide-deck is put into a publicView
    (the default is slideshow).
    When the join-as-speaker event is fired,
    the slide-deck is put into a privateView
    (the default is speaker).
    These can be changed by setting the
    publicView and privateView properties with JS,
    or by setting the public-view and private-view attributes in HTML.
  • 💥 BREAKING: Renamed the custom event handlers and matching public methods:
    • reset = reset()
    • join = join()
    • resume = resume()
    • start = start()
    • join-as-speaker = joinAsSpeaker()
    • blank-slide = blankSlide()
    • next = next()
    • previous = previous()
    • to-slide = toSlide()
    • to-saved = toSavedSlide()
    • scroll-to-active = scrollToActive()
    • full-screen = toggleFullScreen()
    • key-control = toggleKeyControl()
    • follow-active = toggleFollowActive()
  • 🐞 FIXED: Keyboard events are given proper priority, so that
    (for example) you can open the control panel from a blank slide
  • 👀 INTERNAL: Renamed static storageKeys to storeValues,
    and static controlKeys to navKeys for clarity.