Skip to content

Commit 8906424

Browse files
committed
2.5.2 release
2 parents b6f8c09 + bae6058 commit 8906424

33 files changed

+521
-404
lines changed

CHANGELOG.md

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

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

5+
## [2.5.2] - 2019-04-23
6+
7+
### Fixed
8+
9+
- `moonstone/EditableIntegerPicker` text alignment when not editing the value
10+
- `moonstone/Scroller` to scroll via dragging when the platform has touch support
11+
- `moonstone/VideoPlayer` to continue to display the thumbnail image while the slider is focused
12+
- `ui/Skinnable` to allow overriding default `skinVariant` values
13+
- `ui/Touchable` to prevent events firing on different nodes for the same touch action
14+
- `ui/Touchable` to neither force focus to components nor blur components after they are touched
15+
516
## [2.5.1] - 2019-04-09
617

718
### Fixed

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"lerna": "2.8.0",
3-
"version": "2.5.1",
3+
"version": "2.5.2",
44
"command": {
55
"bootstrap": {
66
"npmClientArgs": [

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "enact",
3-
"version": "2.5.1",
3+
"version": "2.5.2",
44
"description": "Monorepo for all Enact front end libraries.",
55
"private": true,
66
"scripts": {
77
"lerna": "lerna",
88
"bootstrap": "lerna bootstrap --concurrency 1",
99
"publish": "lerna publish --skip-npm --skip-git",
10-
"link-all": "lerna --concurrency 1 exec -- npm --loglevel error link",
11-
"unlink-all": "lerna --concurrency 1 exec -- npm --loglevel error unlink",
10+
"link-all": "lerna --concurrency 1 --ignore enact-sampler exec -- npm --loglevel error link",
11+
"unlink-all": "lerna --concurrency 1 --ignore enact-sampler exec -- npm --loglevel error unlink",
1212
"test": "lerna --concurrency 1 run test",
1313
"clean": "lerna clean"
1414
},

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.5.2] - 2019-04-23
6+
7+
No significant changes.
8+
59
## [2.5.1] - 2019-04-09
610

711
### Fixed

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.5.1",
3+
"version": "2.5.2",
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.5.2] - 2019-04-23
6+
7+
No significant changes.
8+
59
## [2.5.1] - 2019-04-09
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.5.1",
4+
"version": "2.5.2",
55
"description": "Internationalization support for Enact using iLib",
66
"scripts": {
77
"clean": "enact clean",
@@ -41,7 +41,7 @@
4141
]
4242
},
4343
"dependencies": {
44-
"@enact/core": "^2.5.1",
44+
"@enact/core": "^2.5.2",
4545
"prop-types": "15.6.2",
4646
"ramda": "^0.24.1",
4747
"react": "^16.7.0",

packages/moonstone/Button/Button.module.less

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,10 @@
146146

147147
// Skin colors
148148
.applySkins({
149-
color: @moon-button-text-color;
149+
&,
150+
:global(.enact-a11y-high-contrast) & {
151+
color: @moon-button-text-color;
152+
}
150153

151154
.bg {
152155
background-color: @moon-button-bg-color;
@@ -183,8 +186,15 @@
183186
}
184187

185188
.focus({
186-
color: @moon-spotlight-text-color;
187-
background-color: transparent;
189+
// The complexity below overrides the default high-contrast rules and applies
190+
// non-high-contrast rules. The precedence for the general rule is too high for the
191+
// basic button override rule to take effect, so we must overcome it by stacking more
192+
// classes here.
193+
&,
194+
:global(.enact-a11y-high-contrast) &:not(:global(.highContrast)) {
195+
color: @moon-spotlight-text-color;
196+
background-color: transparent;
197+
}
188198

189199
.bg {
190200
background-color: @moon-spotlight-border-color;

packages/moonstone/CHANGELOG.md

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

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

5+
## [2.5.2] - 2019-04-23
6+
7+
### Fixed
8+
9+
- `moonstone/EditableIntegerPicker` text alignment when not editing the value
10+
- `moonstone/Scroller` to scroll via dragging when the platform has touch support
11+
- `moonstone/VideoPlayer` to continue to display the thumbnail image while the slider is focused
12+
513
## [2.5.1] - 2019-04-09
614

715
### Fixed

packages/moonstone/EditableIntegerPicker/EditableIntegerPicker.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,12 +269,17 @@ const EditableIntegerPickerBase = kind({
269269
);
270270
}
271271

272+
let children = label;
273+
if (unit) {
274+
children = `${label} ${unit}`;
275+
}
276+
272277
return (
273278
<PickerItem
274279
key={value}
275280
onClick={onPickerItemClick}
276281
>
277-
{`${label} ${unit}`}
282+
{children}
278283
</PickerItem>
279284
);
280285
},

packages/moonstone/Scrollable/Scrollable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ class ScrollableBase extends Component {
753753

754754
return (
755755
<UiScrollableBase
756-
noScrollByDrag
756+
noScrollByDrag={!platform.touch}
757757
{...rest}
758758
addEventListeners={this.addEventListeners}
759759
applyOverscrollEffect={this.applyOverscrollEffect}

packages/moonstone/Scrollable/ScrollableNative.js

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,6 @@ class ScrollableBaseNative extends Component {
265265
vertical: {before: null, after: null}
266266
}
267267

268-
// browser native scrolling
269-
resetPosition = null // prevent auto-scroll on focus by Spotlight
270-
271268
onMouseDown = (ev) => {
272269
if (this.props['data-spotlight-container-disabled']) {
273270
ev.preventDefault();
@@ -292,20 +289,6 @@ class ScrollableBaseNative extends Component {
292289
}
293290
}
294291

295-
onMouseOver = () => {
296-
this.resetPosition = this.uiRef.current.childRefCurrent.containerRef.current.scrollTop;
297-
}
298-
299-
onMouseMove = () => {
300-
if (this.resetPosition !== null) {
301-
const childContainerRef = this.uiRef.current.childRefCurrent.containerRef;
302-
childContainerRef.current.style.scrollBehavior = null;
303-
childContainerRef.current.scrollTop = this.resetPosition;
304-
childContainerRef.current.style.scrollBehavior = 'smooth';
305-
this.resetPosition = null;
306-
}
307-
}
308-
309292
/*
310293
* wheel event handler;
311294
* - for horizontal scroll, supports wheel action on any children nodes since web engine cannot support this
@@ -704,8 +687,6 @@ class ScrollableBaseNative extends Component {
704687
// FIXME setting event handlers directly to work on the V8 snapshot.
705688
addEventListeners = (childContainerRef) => {
706689
if (childContainerRef.current && childContainerRef.current.addEventListener) {
707-
childContainerRef.current.addEventListener('mouseover', this.onMouseOver, {capture: true});
708-
childContainerRef.current.addEventListener('mousemove', this.onMouseMove, {capture: true});
709690
childContainerRef.current.addEventListener('focusin', this.onFocus);
710691
if (platform.webos) {
711692
childContainerRef.current.addEventListener('webOSVoice', this.onVoice);
@@ -717,8 +698,6 @@ class ScrollableBaseNative extends Component {
717698
// FIXME setting event handlers directly to work on the V8 snapshot.
718699
removeEventListeners = (childContainerRef) => {
719700
if (childContainerRef.current && childContainerRef.current.removeEventListener) {
720-
childContainerRef.current.removeEventListener('mouseover', this.onMouseOver, {capture: true});
721-
childContainerRef.current.removeEventListener('mousemove', this.onMouseMove, {capture: true});
722701
childContainerRef.current.removeEventListener('focusin', this.onFocus);
723702
if (platform.webos) {
724703
childContainerRef.current.removeEventListener('webOSVoice', this.onVoice);
@@ -823,7 +802,7 @@ class ScrollableBaseNative extends Component {
823802

824803
return (
825804
<UiScrollableBaseNative
826-
noScrollByDrag
805+
noScrollByDrag={!platform.touch}
827806
{...rest}
828807
addEventListeners={this.addEventListeners}
829808
applyOverscrollEffect={this.applyOverscrollEffect}

packages/moonstone/TooltipDecorator/TooltipDecorator.js

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,28 @@ const TooltipDecorator = hoc(defaultConfig, (config, Wrapped) => {
106106
tooltipDelay: PropTypes.number,
107107

108108
/**
109-
* Position of the tooltip with respect to the activating control.
109+
* Position of the tooltip with respect to the wrapped component.
110110
*
111-
* * Values: `'above'`, `'above center'`, `'above left'`, `'above right'`, `'below'`,
112-
* `'below center'`, `'below left'`, `'below right'`, `'left bottom'`, `'left middle'`,
113-
* `'left top'`, `'right bottom'`, `'right middle'`, `'right top'`
111+
* | *Value* | *Tooltip Direction* |
112+
* |---|---|
113+
* | `'above'` | Above component, flowing to the right |
114+
* | `'above center'` | Above component, centered |
115+
* | `'above left'` | Above component, flowing to the left |
116+
* | `'above right'` | Above component, flowing to the right |
117+
* | `'below'` | Below component, flowing to the right |
118+
* | `'below center'` | Below component, centered |
119+
* | `'below left'` | Below component, flowing to the right |
120+
* | `'below right'` | Below component, flowing to the right |
121+
* | `'left bottom'` | Left of the component, contents at the bottom |
122+
* | `'left middle'` | Left of the component, contents middle aligned |
123+
* | `'left top'` | Left of the component, contents at the top |
124+
* | `'right bottom'` | Right of the component, contents at the bottom |
125+
* | `'right middle'` | Right of the component, contents middle aligned |
126+
* | `'right top'` | Right of the component, contents at the top |
114127
*
115-
* The values starting with `'left`' and `'right'` place the tooltip on the side
116-
* (sideways tooltip) with two additional positions available, `'top'` and `'bottom'`,
117-
* which place the tooltip content toward the top or bottom, with the tooltip pointer
118-
* middle-aligned to the activator.
128+
* `TooltipDectorator` attempts to choose the best direction to meet layout and language
129+
* requirements. Left and right directions will reverse for RTL languages. Additionally,
130+
* the tooltip will reverse direction if it will prevent overflowing off the viewport
119131
*
120132
* @type {String}
121133
* @default 'above'

packages/moonstone/VideoPlayer/VideoPlayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ const VideoPlayerBase = class extends React.Component {
10171017
}
10181018

10191019
hideFeedback = () => {
1020-
if (this.state.feedbackVisible) {
1020+
if (this.state.feedbackVisible && this.state.feedbackAction !== 'focus') {
10211021
this.setState({
10221022
feedbackVisible: false,
10231023
feedbackAction: 'idle'

0 commit comments

Comments
 (0)