Skip to content

Commit

Permalink
4.5.6 release
Browse files Browse the repository at this point in the history
  • Loading branch information
enact-bot committed Nov 30, 2023
2 parents a621612 + 2e25ed7 commit 99541d1
Show file tree
Hide file tree
Showing 18 changed files with 85 additions and 18 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

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

## [4.5.6] - 2023-11-30

### Fixed

- `ui/Marquee.MarqueeDecorator` to re-render when its size changed

## [4.5.5] - 2023-11-08

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"lerna": "4.0.0",
"version": "4.5.5",
"version": "4.5.6",
"command": {
"bootstrap": {
"ci": false,
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": "4.5.5",
"version": "4.5.6",
"description": "Monorepo for all Enact front end libraries.",
"private": true,
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

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

## [4.5.6] - 2023-11-30

No significant changes.

## [4.5.5] - 2023-11-08

No significant changes.
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": "4.5.5",
"version": "4.5.6",
"description": "Enact is an open source JavaScript framework containing everything you need to create a fast, scalable mobile or web application.",
"repository": {
"type": "git",
Expand Down
4 changes: 4 additions & 0 deletions packages/i18n/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

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

## [4.5.6] - 2023-11-30

No significant changes.

## [4.5.5] - 2023-11-08

### Fixed
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": "4.5.5",
"version": "4.5.6",
"description": "Internationalization support for Enact using iLib",
"repository": {
"type": "git",
Expand Down Expand Up @@ -47,7 +47,7 @@
]
},
"dependencies": {
"@enact/core": "^4.5.5",
"@enact/core": "^4.5.6",
"prop-types": "^15.8.1",
"ramda": "^0.28.0",
"react": "^18.2.0",
Expand Down
4 changes: 4 additions & 0 deletions packages/sampler/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

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

## [4.5.6] - 2023-11-30

No significant changes.

## [4.5.5] - 2023-11-08

No significant changes.
Expand Down
12 changes: 6 additions & 6 deletions packages/sampler/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "enact-sampler",
"version": "4.5.5",
"version": "4.5.6",
"description": "Component and QA samples for Enact",
"private": true,
"main": "index.js",
Expand All @@ -12,11 +12,11 @@
},
"license": "Apache-2.0",
"dependencies": {
"@enact/core": "^4.5.5",
"@enact/i18n": "^4.5.5",
"@enact/spotlight": "^4.5.5",
"@enact/ui": "^4.5.5",
"@enact/webos": "^4.5.5",
"@enact/core": "^4.5.6",
"@enact/i18n": "^4.5.6",
"@enact/spotlight": "^4.5.6",
"@enact/ui": "^4.5.6",
"@enact/webos": "^4.5.6",
"classnames": "^2.3.1",
"ilib": "^14.14.0",
"prop-types": "^15.8.1",
Expand Down
4 changes: 4 additions & 0 deletions packages/spotlight/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

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

## [4.5.6] - 2023-11-30

No significant changes.

## [4.5.5] - 2023-11-08

No significant changes.
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": "4.5.5",
"version": "4.5.6",
"description": "A focus management library",
"repository": {
"type": "git",
Expand All @@ -24,7 +24,7 @@
}
},
"dependencies": {
"@enact/core": "^4.5.5",
"@enact/core": "^4.5.6",
"classnames": "^2.3.1",
"prop-types": "^15.8.1",
"ramda": "^0.28.0",
Expand Down
6 changes: 6 additions & 0 deletions packages/ui/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

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

## [4.5.6] - 2023-11-30

### Fixed

- `ui/Marquee.MarqueeDecorator` to re-render when its size changed

## [4.5.5] - 2023-11-08

No significant changes.
Expand Down
16 changes: 16 additions & 0 deletions packages/ui/Marquee/MarqueeDecorator.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* global ResizeObserver */

import direction from 'direction';
import {on, off} from '@enact/core/dispatcher';
import {forward} from '@enact/core/handle';
Expand Down Expand Up @@ -362,6 +364,7 @@ const MarqueeDecorator = hoc(defaultConfig, (config, Wrapped) => {
this.distance = null;
this.contentFits = null;
this.resizeRegistry = null;
this.resizeObserver = null;
}

componentDidMount () {
Expand All @@ -374,6 +377,14 @@ const MarqueeDecorator = hoc(defaultConfig, (config, Wrapped) => {
}

this.validateTextDirection();

if (typeof ResizeObserver === 'function' && this.node) {
this.resizeObserver = new ResizeObserver(() => {
this.handleResize();
});
this.resizeObserver.observe(this.node);
}

if (this.props.marqueeOn === 'render') {
this.startAnimation(this.props.marqueeOnRenderDelay);
}
Expand Down Expand Up @@ -431,6 +442,11 @@ const MarqueeDecorator = hoc(defaultConfig, (config, Wrapped) => {
this.resizeRegistry.unregister(this.handleResize);
}

if (this.resizeObserver) {
this.resizeObserver.disconnect();
this.resizeObserver = null;
}

off('keydown', this.handlePointerHide, document);
}

Expand Down
19 changes: 19 additions & 0 deletions packages/ui/Marquee/tests/Marquee-specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,25 @@ describe('Marquee', () => {

expect(spy).toHaveBeenCalled();
});

test('should creates and observes with ResizeObserver', () => {
const originalResizeObserver = global.ResizeObserver;

const observe = jest.fn();
global.ResizeObserver = jest.fn(() => ({
observe,
disconnect: jest.fn()
}));

render(<Marquee>{ltrText}</Marquee>);

act(() => jest.advanceTimersByTime(100));

expect(global.ResizeObserver).toHaveBeenCalled();
expect(observe).toHaveBeenCalled();

global.ResizeObserver = originalResizeObserver;
});
});

describe('MarqueeBase', () => {
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": "4.5.5",
"version": "4.5.6",
"description": "A collection of simplified unstyled cross-platform UI components for Enact",
"repository": {
"type": "git",
Expand Down Expand Up @@ -31,7 +31,7 @@
}
},
"dependencies": {
"@enact/core": "^4.5.5",
"@enact/core": "^4.5.6",
"classnames": "^2.3.1",
"direction": "^1.0.4",
"invariant": "^2.2.4",
Expand Down
4 changes: 4 additions & 0 deletions packages/webos/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

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

## [4.5.6] - 2023-11-30

No significant changes.

## [4.5.5] - 2023-11-08

No significant changes.
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": "4.5.5",
"version": "4.5.6",
"description": "webOS support library",
"repository": {
"type": "git",
Expand Down Expand Up @@ -31,7 +31,7 @@
}
},
"dependencies": {
"@enact/core": "^4.5.5",
"@enact/core": "^4.5.6",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down

0 comments on commit 99541d1

Please sign in to comment.