@enact/spotlight
Advanced tools
Changelog
[2.0.0-rc.2] - 2018-07-16
spotlight
debugging to visualize which components will be targeted as the next component for any 5-way directionmoonstone/Input
to not focus by tab keymoonstone/Picker
to properly set focus when navigating between buttonsmoonstone/ProgressBar.ProgressBarTooltip
unknown props warningmoonstone/Scrollable
to disable spotlight container during flick events only when contents can scrollmoonstone/Scroller
, moonstone/VirtualList.VirtualGridList
, and moonstone/VirtualList.VirtualList
to scroll properly when animate
is false via scrollTo
moonstone/Scroller
, moonstone/VirtualList.VirtualGridList
, and moonstone/VirtualList.VirtualList
page controls to stop propagating an event when the event is handledmoonstone/Scroller
, moonstone/VirtualList.VirtualGridList
, and moonstone/VirtualList.VirtualList
to hide overscroll effect when focus is moved from a disabled paging control button to the opposite buttonmoonstone/Scroller
, moonstone/VirtualList.VirtualGridList
, and moonstone/VirtualList.VirtualList
to show overscroll effect when reaching the edge for the first time by wheelmoonstone/VideoPlayer
to display feedback tooltip when pointer leaves slider while playingmoonstone/VirtualList
and moonstone/VirtualGridList
to restore focus on items focused by pointerChangelog
[2.0.0-rc.1] - 2018-07-09
core/util.withContextFromProps
functioni18n/I18nDecorator.contextTypes
, replaced by i18n/I18nDecorator.I18nContextDecorator
moonstone/Button
built-in support for tooltipsui/FloatingLayer.contextTypes
exportui/Marquee.controlContextTypes
exportui/Placeholder.contextTypes
exportui/Resizable.contextTypes
exporti18n/I18nDecorator.I18nContextDecorator
HOC to support notification of locale changesmoonstone/VirtualList.VirtualList
and moonstone/VirtualList.VirtualGridList
support data-webos-voice-focused
and data-webos-voice-group-label
moonstone/Spinner
to blur Spotlight when the spinner is activei18n/Uppercase
to apply the designated casing
prop format to each child instead of only the first childmoonstone/Scroller.Scroller
, moonstone/VirtualList.VirtualGridList
, and moonstone/VirtualList.VirtualList
to handle direction, page up, and page down keys properly on page controls them when focusableScrollbar
is falsemoonstone/Scroller.Scroller
, moonstone/VirtualList.VirtualGridList
, and moonstone/VirtualList.VirtualList
to handle a page up or down key in pointer modemoonstone/VideoPlayer.MediaControls
to correctly handle more button color when the prop is not specifiedChangelog
[2.0.0-beta.9] - 2018-07-02
moonstone/ContextualPopupDecorator
instance method positionContextualPopup()
moonstone/MoonstoneDecorator
config property disableFullscreen
to prevent the decorator from filling the entire screenmoonstone/Scroller
prop onUpdate
moonstone/Scrollable
to update scroll properly on pointer clickmoonstone/TooltipDecorator
to prevent unnecessary re-renders when losing focusmoonstone/TooltipDecorator
to not dismiss the tooltip on pointer clickChangelog
[2.0.0-beta.8] - 2018-06-25
moonstone/Scroller.Scroller
, moonstone/VirtualList.VirtualGridList
, and moonstone/VirtualList.VirtualList
support for scrolling via voice control on webOSmoonstone/Scroller.Scroller
, moonstone/VirtualList.VirtualGridList
, and moonstone/VirtualList.VirtualList
overscroll effect when the edges are reachedmoonstone/Divider
property marqueeOn
default value to render
moonstone/Scroller.Scroller
, moonstone/VirtualList.VirtualGridList
, and moonstone/VirtualList.VirtualList
scrollbar button to move a previous or next page when pressing a page up or down key instead of releasing itmoonstone/VideoPlayer
to prevent updating state when the source is changed to the preload source, but the current preload source is the samemoonstone/MediaOverlay
to marquee correctlymoonstone/MediaOverlay
to match UX guidelinesspotlight/Spottable
to retain focus for disabled component after updatesspotlight/Spottable
to emulate onMouseUp
events that occur immediately after a non-enter key pressspotlight/Spottable
to prevent scroll on focus on webOSui/VirtualList
to allow scrolling on focus by default on webOSChangelog
[2.0.0-beta.7] - 2018-06-11
i18n/Uppercase
property preserveCase
, replaced by casing
moonstone/Dialog
properties preserveCase
and showDivider
, replaced by casing
and noDivider
respectivelymoonstone/Divider
property preserveCase
, replaced by casing
moonstone/ExpandableInput
property onInputChange
, replaced by onChange
moonstone/MoonstoneDecorator.TextSizeDecorator
, replaced by moonstone/MoonstoneDecorator.AccessibilityDecorator
moonstone/Panels.Header
property preserveCase
, replaced by casing
moonstone/Panels.Panel
property noAutoFocus
, replaced by autoFocus
moonstone/TooltipDecorator
property tooltipPreserveCase
, replaced by tooltipCasing
ui/FloatingLayer.FloatingLayerBase
exportmoonstone/VideoPlayer
to allow spotlight focus to move left and right from MediaControls
moonstone/VideoPlayer
to disable bottom controls when loading until it's playableui/FloatingLayer
to call onOpen
only after it is renderedmoonstone/EditableIntegerPicker
to disable itself when on a range consisting of a single static valuemoonstone/Picker
to disable itself when containing fewer than two itemsmoonstone/Popup
to spot its content correctly when open
by defaultmoonstone/RangePicker
to disable itself when on a range consisting of a single static valuemoonstone/TooltipDecorator
to hide when onDismiss
has been invokedmoonstone/VideoPlayer
to show media controls when pressing down in pointer modemoonstone/VideoPlayer
to provide a more natural 5-way focus behaviormoonstone/VideoPlayer.MediaControls
to handle left and right key to jump when moonstone/VideoPlayer
is focusedui/MarqueeDecorator
to stop marqueeing when using hover and pointer hidesChangelog
[2.0.0-beta.6] - 2018-06-04
moonstone/IncrementSlider
prop children
which was no longer supported for setting the tooltip (since 2.0.0-beta.1)moonstone/Scroller
to check focus possibilities first then go to fallback at the top of the container of focused itemmoonstone/Scroller
to scroll by page when focus was at the edge of the viewportmoonstone/ToggleButton
padding and orientation for RTLmoonstone/VideoPlayer
to not hide title and info section when showing more componentsmoonstone/VideoPlayer
to select a position in slider to seek in 5-way modemoonstone/VideoPlayer
to show thumbnail only when focused on sliderspotlight
to provide more natural 5-way behaviorspotlight
to handle pointer events only when pointer has movedspotlight
to update the last focused container when unable to set focus within that containerspotlight/Spottable
to not trigger a scroll on focus on webOSui/FloatingLayer
to render correctly if already opened at mounting timewebos/speech
method readAlert
to subscribe to changes in audio guidance to improve speech response timeChangelog
[2.0.0-beta.5] - 2018-05-29
moonstone/Popup
, moonstone/Dialog
and moonstone/Notification
property spotlightRestrict
option 'none'
moonstone/VideoPlayer
prop preloadSource
, to be replaced by moonstone/VideoPlayer.Video
prop preloadSource
moonstone/Button
and moonstone/IconButton
allowed value 'opaque'
from prop backgroundOpacity
which was the default and therefore has the same effect as omitting the propmoonstone/VideoPlayer
props selection
and onSeekOutsideRange
to support selecting a range and notification of interactions outside of that rangemoonstone/VideoPlayer.Video
component to support preloading video sourcesui/FloatingLayerDecorator
imperative API to close all floating layers registered in the same idui/ProgressBar
and ui/Slider
prop progressAnchor
to configure from where in the progress bar or slider progress should beginui/Slider
prop progressBarComponent
to support customization of progress bar within a sliderui/ForwardRef
HOC to adapt React.forwardRef
to HOC chainsui/Media
componentmoonstone/VideoPlayer.videoComponent
prop to default to ui/Media.Media
instead of 'video'
. As a result, to use a custom video element, one must pass an instance of ui/Media
with its mediaComponent
prop set to the desired element.moonstone/ContextualPopupDecorator
to properly stop propagating keydown event if fired from the popup containermoonstone/Slider
to read when knob gains focus or for a change in valuemoonstone/Scroller
to not cut off Expandables when scrollbar appearsmoonstone/VideoPlayer
to correctly read out when play button is pressedui/MarqueeController
to update hovered state when pointer hidesui/Touchable
to end gestures when focus is lostui/VirtualList.VirtualList
and ui/VirtualList.VirtualGridList
to prevent items overlap with scroll buttonsChangelog
[2.0.0-beta.4] - 2018-05-21
core/handle.handle
utility bindAs
to facilitate debugging and binding handlers to component instancesmoonstone/Button
and moonstone/IconButton
class name small
to the list of allowed css
overridesmoonstone/ProgressBar
prop highlighted
for when the UX needs to call special attention to a progress barmoonstone/ContextualPopupDecorator
to not set focus to activator when closing if focus was set elsewheremoonstone/IconButton
to allow external customization of vertical alignment of its Icon
by setting line-height
moonstone/Marquee.MarqueeController
to not cancel valid animationsmoonstone/VideoPlayer
feedback and feedback icon to hide properly on play/pause/fast forward/rewindmoonstone/VideoPlayer
to correctly focus to default media controls componentmoonstone/VideoPlayer
to show controls on mount and when playing next preload videomoonstone/VirtualList
, moonstone/VirtualGridList
, ui/VirtualList
, and ui/VirtualGridList
samples to show items properly when dataSize
is greater than 1000spotlight/Spottable
to not make components spottable when spotlightDisabled
is setui/Touchable
to guard against null eventsChangelog
[2.0.0-beta.3] - 2018-05-14
moonstone/SelectableItem.SelectableItemDecorator
ui/Touchable
support to fire onTap
when a click
event occursmoonstone/ToggleItem
to forward native events on onFocus
and onBlur
moonstone/Input
and moonstone/ExpandableInput
to support forwarding valid <input>
props to the contained <input>
nodemoonstone/ToggleButton
to fire onToggle
when toggledui/Touchable
custom events onDown
, onUp
, onMove
, and onTap
to use the event name as the type
rather than the shorter name (e.g. onTap
rather than tap
)ui/Toggleable
to forward events on activate
and deactivate
instead of firing toggled payload. Use toggle
to handle toggled payload from the event.moonstone/VirtualList.VirtualList
, moonstone/VirtualList.VirtualGridList
, and moonstone/Scroller.Scroller
to ignore any user key events in pointer modemoonstone/Image
so it automatically swaps the src
to the appropriate resolution dynamically as the screen resizesmoonstone/Popup
to support all spotlightRestrict
optionsmoonstone
component disabled
colors to match the most recent design guidelines (from 30% to 60% opacity)moonstone/ExpandableInput
spotlight behavior when leaving the component via 5-wayspotlight
to retry setting focus when the window is activatedspotlight
handling of 5-way events after the pointer hidesChangelog
[2.0.0-beta.2] - 2018-05-07
core/dispatcher.on
to not add duplicate event handlersmoonstone/IconButton
to allow theme-style customization, like it claimed was possiblemoonstone/ExpandableItem
and related expandables to deal with disabled items and the autoClose
, lockBottom
and noLockBottom
propsmoonstone/Slider
not to fire onChange
event when 5-ways out of boundarymoonstone/ToggleButton
layout for RTL localesmoonstone/Item
, moonstone/SlotItem
, moonstone/ToggleItem
to not apply duplicate className
valuesmoonstone/VirtualList.VirtualList
, moonstone/VirtualList.VirtualGridList
, and moonstone/Scroller.Scroller
scrollbar button's aria-label in RTLmoonstone/VirtualList.VirtualList
and moonstone/VirtualList.VirtualGridList
to scroll properly with all disabled itemsmoonstone/VirtualList.VirtualList
and moonstone/VirtualList.VirtualGridList
to not scroll on focus when jumpingspotlight/Spottable
to not add a focused state when a component had already been set as disabledui/Marquee
to always marquee when marqueeOn
is set to 'render'
ui/Item
to use its natural width rather than imposing a 100% width allowing inline Items to be the correct widthui/Marquee.MarqueeDecorator
to correctly reset animation when children
updates