Skip to content

Commit 790384a

Browse files
committed
2.0.0-beta.5 release
2 parents d295807 + 6b35e74 commit 790384a

20 files changed

Lines changed: 333 additions & 275 deletions

CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,38 @@
22

33
The following is a curated list of changes in the Enact project, newest changes on the top.
44

5+
## [2.0.0-beta.5] - 2018-05-29
6+
7+
### Removed
8+
9+
- `moonstone/Popup`, `moonstone/Dialog` and `moonstone/Notification` property `spotlightRestrict` option `'none'`
10+
- `moonstone/VideoPlayer` prop `preloadSource`, to be replaced by `moonstone/VideoPlayer.Video` prop `preloadSource`
11+
- `moonstone/Button` and `moonstone/IconButton` allowed value `'opaque'` from prop `backgroundOpacity` which was the default and therefore has the same effect as omitting the prop
12+
13+
### Added
14+
15+
- `moonstone/VideoPlayer` props `selection` and `onSeekOutsideRange` to support selecting a range and notification of interactions outside of that range
16+
- `moonstone/VideoPlayer.Video` component to support preloading video sources
17+
- `ui/FloatingLayerDecorator` imperative API to close all floating layers registered in the same id
18+
- `ui/ProgressBar` and `ui/Slider` prop `progressAnchor` to configure from where in the progress bar or slider progress should begin
19+
- `ui/Slider` prop `progressBarComponent` to support customization of progress bar within a slider
20+
- `ui/ForwardRef` HOC to adapt `React.forwardRef` to HOC chains
21+
- `ui/Media` component
22+
23+
### Changed
24+
25+
- `moonstone/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.
26+
27+
### Fixed
28+
29+
- `moonstone/ContextualPopupDecorator` to properly stop propagating keydown event if fired from the popup container
30+
- `moonstone/Slider` to read when knob gains focus or for a change in value
31+
- `moonstone/Scroller` to not cut off Expandables when scrollbar appears
32+
- `moonstone/VideoPlayer` to correctly read out when play button is pressed
33+
- `ui/MarqueeController` to update hovered state when pointer hides
34+
- `ui/Touchable` to end gestures when focus is lost
35+
- `ui/VirtualList.VirtualList` and `ui/VirtualList.VirtualGridList` to prevent items overlap with scroll buttons
36+
537
## [2.0.0-beta.4] - 2018-05-21
638

739
### Added

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"lerna": "2.8.0",
3-
"version": "2.0.0-beta.4"
3+
"version": "2.0.0-beta.5"
44
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "enact",
3-
"version": "2.0.0-beta.4",
3+
"version": "2.0.0-beta.5",
44
"description": "Monorepo for all Enact front end libraries.",
55
"private": true,
66
"scripts": {

packages/core/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
The following is a curated list of changes in the Enact core module, newest changes on the top.
44

5+
## [2.0.0-beta.5] - 2018-05-29
6+
7+
No significant changes.
8+
59
## [2.0.0-beta.4] - 2018-05-21
610

711
### Added

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@enact/core",
3-
"version": "2.0.0-beta.4",
3+
"version": "2.0.0-beta.5",
44
"description": "Enact is an open source JavaScript framework containing everything you need to create a fast, scalable mobile or web application.",
55
"main": "index.js",
66
"scripts": {

packages/i18n/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
The following is a curated list of changes in the Enact i18n module, newest changes on the top.
44

5+
## [2.0.0-beta.5] - 2018-05-29
6+
7+
No significant changes.
8+
59
## [2.0.0-beta.4] - 2018-05-21
610

711
No significant changes.

packages/i18n/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@enact/i18n",
33
"main": "./src/index.js",
4-
"version": "2.0.0-beta.4",
4+
"version": "2.0.0-beta.5",
55
"description": "Internationalization support for Enact using iLib",
66
"scripts": {
77
"clean": "enact clean",
@@ -34,7 +34,7 @@
3434
"extends": "enact/strict"
3535
},
3636
"dependencies": {
37-
"@enact/core": "^2.0.0-beta.4",
37+
"@enact/core": "^2.0.0-beta.5",
3838
"prop-types": "^15.6.0",
3939
"ramda": "^0.24.1",
4040
"react": "^16.3.2",

packages/moonstone/CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
The following is a curated list of changes in the Enact moonstone module, newest changes on the top.
44

5-
## [unreleased]
5+
## [2.0.0-beta.5] - 2018-05-29
66

77
### Removed
88

@@ -22,8 +22,8 @@ The following is a curated list of changes in the Enact moonstone module, newest
2222
### Fixed
2323

2424
- `moonstone/ContextualPopupDecorator` to properly stop propagating keydown event if fired from the popup container
25-
- `moonstone/Slider` to read when focus to knob or change value
26-
- `moonstone/Scroller` to not cut off expandables when scrollbar appears
25+
- `moonstone/Slider` to read when knob gains focus or for a change in value
26+
- `moonstone/Scroller` to not cut off Expandables when scrollbar appears
2727
- `moonstone/VideoPlayer` to correctly read out when play button is pressed
2828

2929
## [2.0.0-beta.4] - 2018-05-21

packages/moonstone/VideoPlayer/Video.js

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ const VideoBase = class extends React.Component {
2121
static displayName = 'Video'
2222

2323
static propTypes = /** @lends moonstone/VideoPlayer.Video.prototype */ {
24+
/**
25+
* When `true`, automatically play the video after it has loaded
26+
*
27+
* @type {Boolean}
28+
* @default false
29+
* @public
30+
*/
31+
autoPlay: PropTypes.bool,
2432

2533
/**
2634
* Video component to use. The default (`'video'`) renders an `HTMLVideoElement`. Custom
@@ -52,15 +60,6 @@ const VideoBase = class extends React.Component {
5260
*/
5361
mediaComponent: PropTypes.oneOfType([PropTypes.string, PropTypes.func, PropTypes.element]),
5462

55-
/**
56-
* Disable automatically playing the video after it has loaded
57-
*
58-
* @type {Boolean}
59-
* @default false
60-
* @public
61-
*/
62-
noAutoPlay: PropTypes.bool,
63-
6463
/**
6564
* The video source to be preloaded. Expects a `<source>` node.
6665
*
@@ -167,7 +166,7 @@ const VideoBase = class extends React.Component {
167166
}
168167

169168
autoPlay () {
170-
if (this.props.noAutoPlay) return;
169+
if (!this.props.autoPlay) return;
171170

172171
this.video.play();
173172
}
@@ -186,7 +185,6 @@ const VideoBase = class extends React.Component {
186185

187186
render () {
188187
const {
189-
noAutoPlay,
190188
preloadSource,
191189
source,
192190
mediaComponent,
@@ -208,7 +206,6 @@ const VideoBase = class extends React.Component {
208206
{sourceKey ? (
209207
<Media
210208
{...rest}
211-
autoPlay={!noAutoPlay}
212209
className={css.video}
213210
controls={false}
214211
key={sourceKey}

packages/moonstone/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@enact/moonstone",
3-
"version": "2.0.0-beta.4",
3+
"version": "2.0.0-beta.5",
44
"description": "Large-screen/TV support library for Enact, containing a variety of UI components.",
55
"main": "index.js",
66
"scripts": {
@@ -28,10 +28,10 @@
2828
"extends": "enact/strict"
2929
},
3030
"dependencies": {
31-
"@enact/core": "^2.0.0-beta.4",
32-
"@enact/i18n": "^2.0.0-beta.4",
33-
"@enact/spotlight": "^2.0.0-beta.4",
34-
"@enact/ui": "^2.0.0-beta.4",
31+
"@enact/core": "^2.0.0-beta.5",
32+
"@enact/i18n": "^2.0.0-beta.5",
33+
"@enact/spotlight": "^2.0.0-beta.5",
34+
"@enact/ui": "^2.0.0-beta.5",
3535
"classnames": "^2.2.5",
3636
"eases": "^1.0.8",
3737
"invariant": "^2.2.2",

0 commit comments

Comments
 (0)