Skip to content

Commit

Permalink
2.3.0-alpha.4 release
Browse files Browse the repository at this point in the history
  • Loading branch information
JayCanuck committed Feb 12, 2019
2 parents 482a111 + 5005091 commit 139f360
Show file tree
Hide file tree
Showing 12 changed files with 66 additions and 59 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"lerna": "2.8.0",
"version": "2.3.0-alpha.3",
"version": "2.3.0-alpha.4",
"command": {
"bootstrap": {
"npmClientArgs": [
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "enact",
"version": "2.3.0-alpha.3",
"version": "2.3.0-alpha.4",
"description": "Monorepo for all Enact front end libraries.",
"private": true,
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@enact/core",
"version": "2.3.0-alpha.3",
"version": "2.3.0-alpha.4",
"description": "Enact is an open source JavaScript framework containing everything you need to create a fast, scalable mobile or web application.",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions packages/i18n/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@enact/i18n",
"main": "./src/index.js",
"version": "2.3.0-alpha.3",
"version": "2.3.0-alpha.4",
"description": "Internationalization support for Enact using iLib",
"scripts": {
"clean": "enact clean",
Expand Down Expand Up @@ -34,7 +34,7 @@
"extends": "enact/strict"
},
"dependencies": {
"@enact/core": "^2.3.0-alpha.3",
"@enact/core": "^2.3.0-alpha.4",
"prop-types": "15.6.2",
"ramda": "^0.24.1",
"react": "^16.7.0",
Expand Down
21 changes: 14 additions & 7 deletions packages/moonstone/VideoPlayer/VideoPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,16 @@ const ControlsContainer = SpotlightContainerDecorator(
'div'
);

const memoGetDurFmt = memoize((/* locale */) => new DurationFmt({
length: 'medium', style: 'clock', useNative: false
}));

const getDurFmt = (locale) => {
if (typeof window === 'undefined') return null;

return memoGetDurFmt(locale);
}

const forwardWithState = (type) => adaptEvent(call('addStateToEvent'), forwardWithPrevent(type));

// provide forwarding of events on media controls
Expand Down Expand Up @@ -798,9 +808,6 @@ const VideoPlayerBase = class extends React.Component {
//
// Internal Methods
//
getDurFmt = memoize((/* locale */) => new DurationFmt({
length: 'medium', style: 'clock', useNative: false
}));

announceJob = new Job(msg => (this.announceRef && this.announceRef.announce(msg)), 200)

Expand Down Expand Up @@ -1118,7 +1125,7 @@ const VideoPlayerBase = class extends React.Component {

this.showMiniFeedback = true;
this.jump(jumpBy);
this.announceJob.startAfter(500, secondsToTime(this.video.currentTime, this.getDurFmt(this.props.locale), {includeHour: true}));
this.announceJob.startAfter(500, secondsToTime(this.video.currentTime, getDurFmt(this.props.locale), {includeHour: true}));
}
}

Expand Down Expand Up @@ -1614,7 +1621,7 @@ const VideoPlayerBase = class extends React.Component {

if (!isNaN(seconds)) {
this.sliderTooltipTimeJob.throttle(seconds);
const knobTime = secondsToTime(seconds, this.getDurFmt(this.props.locale), {includeHour: true});
const knobTime = secondsToTime(seconds, getDurFmt(this.props.locale), {includeHour: true});

forward('onScrub', {...ev, seconds}, this.props);

Expand All @@ -1635,7 +1642,7 @@ const VideoPlayerBase = class extends React.Component {

if (!isNaN(seconds)) {
this.sliderTooltipTimeJob.throttle(seconds);
const knobTime = secondsToTime(seconds, this.getDurFmt(this.props.locale), {includeHour: true});
const knobTime = secondsToTime(seconds, getDurFmt(this.props.locale), {includeHour: true});

forward('onScrub', {
detached: this.sliderScrubbing,
Expand Down Expand Up @@ -1819,7 +1826,7 @@ const VideoPlayerBase = class extends React.Component {
proportionSelection = selection.map(t => t / this.state.duration);
}

const durFmt = this.getDurFmt(locale);
const durFmt = getDurFmt(locale);

return (
<RootContainer
Expand Down
10 changes: 5 additions & 5 deletions packages/moonstone/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@enact/moonstone",
"version": "2.3.0-alpha.3",
"version": "2.3.0-alpha.4",
"description": "Large-screen/TV support library for Enact, containing a variety of UI components.",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -28,10 +28,10 @@
"extends": "enact/strict"
},
"dependencies": {
"@enact/core": "^2.3.0-alpha.3",
"@enact/i18n": "^2.3.0-alpha.3",
"@enact/spotlight": "^2.3.0-alpha.3",
"@enact/ui": "^2.3.0-alpha.3",
"@enact/core": "^2.3.0-alpha.4",
"@enact/i18n": "^2.3.0-alpha.4",
"@enact/spotlight": "^2.3.0-alpha.4",
"@enact/ui": "^2.3.0-alpha.4",
"classnames": "^2.2.5",
"eases": "^1.0.8",
"invariant": "^2.2.2",
Expand Down
56 changes: 28 additions & 28 deletions packages/sampler/npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions packages/sampler/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "enact-sampler",
"version": "2.3.0-alpha.3",
"version": "2.3.0-alpha.4",
"description": "Component and QA samples for Enact",
"private": true,
"main": "index.js",
Expand All @@ -17,12 +17,12 @@
"extends": "enact/strict"
},
"dependencies": {
"@enact/core": "^2.3.0-alpha.3",
"@enact/i18n": "^2.3.0-alpha.3",
"@enact/moonstone": "^2.3.0-alpha.3",
"@enact/spotlight": "^2.3.0-alpha.3",
"@enact/ui": "^2.3.0-alpha.3",
"@enact/webos": "^2.3.0-alpha.3",
"@enact/core": "^2.3.0-alpha.4",
"@enact/i18n": "^2.3.0-alpha.4",
"@enact/moonstone": "^2.3.0-alpha.4",
"@enact/spotlight": "^2.3.0-alpha.4",
"@enact/ui": "^2.3.0-alpha.4",
"@enact/webos": "^2.3.0-alpha.4",
"react": "^16.7.0",
"react-dom": "^16.7.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/spotlight/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@enact/spotlight",
"version": "2.3.0-alpha.3",
"version": "2.3.0-alpha.4",
"description": "A focus management library",
"main": "src/spotlight.js",
"scripts": {
Expand All @@ -21,7 +21,7 @@
"extends": "enact/strict"
},
"dependencies": {
"@enact/core": "^2.3.0-alpha.3",
"@enact/core": "^2.3.0-alpha.4",
"prop-types": "15.6.2",
"ramda": "^0.24.1",
"react": "^16.7.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@enact/ui",
"version": "2.3.0-alpha.3",
"version": "2.3.0-alpha.4",
"description": "A collection of simplified unstyled cross-platform UI components for Enact",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -28,7 +28,7 @@
"extends": "enact/strict"
},
"dependencies": {
"@enact/core": "^2.3.0-alpha.3",
"@enact/core": "^2.3.0-alpha.4",
"classnames": "^2.2.5",
"direction": "^1.0.1",
"invariant": "^2.2.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/webos/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@enact/webos",
"version": "2.3.0-alpha.3",
"version": "2.3.0-alpha.4",
"description": "webOS support library",
"main": "index.js",
"scripts": {
Expand All @@ -26,7 +26,7 @@
"extends": "enact/strict"
},
"dependencies": {
"@enact/core": "^2.3.0-alpha.3",
"@enact/core": "^2.3.0-alpha.4",
"prop-types": "15.6.2",
"react": "^16.7.0",
"react-dom": "^16.7.0"
Expand Down

0 comments on commit 139f360

Please sign in to comment.