@enact/ui 5.1.0 → 5.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/Card/Card.js +1 -1
- package/FloatingLayer/tests/FloatingLayer-specs.js +1 -1
- package/Media/tests/Media-specs.js +2 -2
- package/Transition/tests/Transition-specs.js +2 -2
- package/ViewManager/tests/View-specs.js +1 -1
- package/VirtualList/tests/VirtualGridList-specs.js +2 -2
- package/VirtualList/tests/VirtualList-specs.js +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
The following is a curated list of changes in the Enact ui module, newest changes on the top.
|
|
4
4
|
|
|
5
|
+
## [5.2.1] - 2025-09-02
|
|
6
|
+
|
|
7
|
+
No significant changes.
|
|
8
|
+
|
|
9
|
+
## [5.2.0] - 2025-08-08
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- `ui/Card` to properly set image size in vertical orientation
|
|
14
|
+
|
|
5
15
|
## [5.1.0] - 2025-07-11
|
|
6
16
|
|
|
7
17
|
### Added
|
package/Card/Card.js
CHANGED
|
@@ -167,7 +167,7 @@ var CardBase = exports.CardBase = (0, _kind["default"])({
|
|
|
167
167
|
component: ImageOverride,
|
|
168
168
|
imageComponent: imageComponent,
|
|
169
169
|
placeholder: placeholder,
|
|
170
|
-
shrink:
|
|
170
|
+
shrink: true,
|
|
171
171
|
src: src
|
|
172
172
|
}), children ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Layout.Cell, {
|
|
173
173
|
className: css.children,
|
|
@@ -49,7 +49,7 @@ describe('FloatingLayer Specs', function () {
|
|
|
49
49
|
type: 'onOpen'
|
|
50
50
|
};
|
|
51
51
|
var actual = handleOpen.mock.calls.length && handleOpen.mock.calls[0][0];
|
|
52
|
-
expect(handleOpen).
|
|
52
|
+
expect(handleOpen).toHaveBeenCalledTimes(expected);
|
|
53
53
|
expect(actual).toMatchObject(expectedType);
|
|
54
54
|
});
|
|
55
55
|
test('should fire onClose event with type when FloatingLayer is closed', function () {
|
|
@@ -64,7 +64,7 @@ describe('Media', function () {
|
|
|
64
64
|
var video = _react.screen.getByTestId('media-id');
|
|
65
65
|
var canPlayEvent = (0, _react.createEvent)('canplay', video);
|
|
66
66
|
(0, _react.fireEvent)(video, canPlayEvent);
|
|
67
|
-
expect(handleCanPlay).
|
|
67
|
+
expect(handleCanPlay).toHaveBeenCalled();
|
|
68
68
|
});
|
|
69
69
|
test('should fire `onCustom` when custom event is fired', function () {
|
|
70
70
|
var handleCustom = jest.fn();
|
|
@@ -77,7 +77,7 @@ describe('Media', function () {
|
|
|
77
77
|
var video = _react.screen.getByTestId('media-id');
|
|
78
78
|
var customEvent = (0, _react.createEvent)('custom', video);
|
|
79
79
|
(0, _react.fireEvent)(video, customEvent);
|
|
80
|
-
expect(handleCustom).
|
|
80
|
+
expect(handleCustom).toHaveBeenCalled();
|
|
81
81
|
});
|
|
82
82
|
test('should call load', function () {
|
|
83
83
|
var ref = /*#__PURE__*/(0, _react2.createRef)();
|
|
@@ -114,7 +114,7 @@ describe('Transition Specs', function () {
|
|
|
114
114
|
type: 'onShow'
|
|
115
115
|
};
|
|
116
116
|
var actual = handleShow.mock.calls.length && handleShow.mock.calls[0][0];
|
|
117
|
-
expect(handleShow).
|
|
117
|
+
expect(handleShow).toHaveBeenCalledTimes(expected);
|
|
118
118
|
expect(actual).toMatchObject(expectedType);
|
|
119
119
|
});
|
|
120
120
|
test('should fire \'onHide\' event with type when \'visible\' prop becomes false', function () {
|
|
@@ -142,7 +142,7 @@ describe('Transition Specs', function () {
|
|
|
142
142
|
type: 'onHide'
|
|
143
143
|
};
|
|
144
144
|
var actual = handleHide.mock.calls.length && handleHide.mock.calls[0][0];
|
|
145
|
-
expect(handleHide).
|
|
145
|
+
expect(handleHide).toHaveBeenCalledTimes(expected);
|
|
146
146
|
expect(actual).toMatchObject(expectedType);
|
|
147
147
|
});
|
|
148
148
|
|
|
@@ -267,7 +267,7 @@ describe('View', function () {
|
|
|
267
267
|
(0, _react.act)(function () {
|
|
268
268
|
return ref.current.componentWillEnter();
|
|
269
269
|
});
|
|
270
|
-
expect(arranger.enter).
|
|
270
|
+
expect(arranger.enter).toHaveBeenCalledWith(arrangerStruct);
|
|
271
271
|
});
|
|
272
272
|
});
|
|
273
273
|
});
|
|
@@ -491,7 +491,7 @@ describe('VirtualGridList', function () {
|
|
|
491
491
|
return jest.advanceTimersByTime(1000);
|
|
492
492
|
}); // Wait onScrollStop
|
|
493
493
|
|
|
494
|
-
expect(fn).
|
|
494
|
+
expect(fn).toHaveBeenCalled();
|
|
495
495
|
});
|
|
496
496
|
test('should not scroll by wheel when `noScrollByWheel` prop is true', function (done) {
|
|
497
497
|
var fn = jest.fn();
|
|
@@ -544,7 +544,7 @@ describe('VirtualGridList', function () {
|
|
|
544
544
|
return jest.advanceTimersByTime(1000);
|
|
545
545
|
}); // Wait onScrollStop
|
|
546
546
|
|
|
547
|
-
expect(fn).
|
|
547
|
+
expect(fn).toHaveBeenCalled();
|
|
548
548
|
}));
|
|
549
549
|
test('should not scroll by key', function (done) {
|
|
550
550
|
var fn = jest.fn();
|
|
@@ -577,7 +577,7 @@ describe('VirtualList', function () {
|
|
|
577
577
|
return jest.advanceTimersByTime(1000);
|
|
578
578
|
}); // Wait onScrollStop
|
|
579
579
|
|
|
580
|
-
expect(fn).
|
|
580
|
+
expect(fn).toHaveBeenCalled();
|
|
581
581
|
});
|
|
582
582
|
test('should not scroll by wheel when `noScrollByWheel` prop is true', function (done) {
|
|
583
583
|
var fn = jest.fn();
|
|
@@ -630,7 +630,7 @@ describe('VirtualList', function () {
|
|
|
630
630
|
return jest.advanceTimersByTime(1000);
|
|
631
631
|
}); // Wait onScrollStop
|
|
632
632
|
|
|
633
|
-
expect(fn).
|
|
633
|
+
expect(fn).toHaveBeenCalled();
|
|
634
634
|
}));
|
|
635
635
|
test('should not scroll by key', function (done) {
|
|
636
636
|
var fn = jest.fn();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enact/ui",
|
|
3
|
-
"version": "5.1
|
|
3
|
+
"version": "5.2.1",
|
|
4
4
|
"description": "A collection of simplified unstyled cross-platform UI components for Enact",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@enact/core": "^5.1
|
|
36
|
-
"@enact/i18n": "^5.1
|
|
35
|
+
"@enact/core": "^5.2.1",
|
|
36
|
+
"@enact/i18n": "^5.2.1",
|
|
37
37
|
"classnames": "^2.5.1",
|
|
38
38
|
"ilib": "^14.21.1",
|
|
39
39
|
"invariant": "^2.2.4",
|
|
40
40
|
"prop-types": "^15.8.1",
|
|
41
|
-
"ramda": "^0.
|
|
41
|
+
"ramda": "^0.31.3",
|
|
42
42
|
"react": "^19.1.0",
|
|
43
43
|
"react-dom": "^19.1.0",
|
|
44
44
|
"react-is": "^19.1.0",
|