@enact/ui 4.9.1 → 4.9.3
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/VirtualList/VirtualListBasic.js +6 -1
- package/package.json +2 -2
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
|
+
## [4.9.3] - 2024-10-29
|
|
6
|
+
|
|
7
|
+
No significant changes.
|
|
8
|
+
|
|
9
|
+
## [4.9.2] - 2024-09-26
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- `ui/VirtualList` to update its scroll bounds when the total size of items is changed
|
|
14
|
+
|
|
5
15
|
## [4.9.1] - 2024-09-09
|
|
6
16
|
|
|
7
17
|
### Fixed
|
|
@@ -387,6 +387,7 @@ var VirtualListBasic = exports.VirtualListBasic = /*#__PURE__*/function (_Compon
|
|
|
387
387
|
}, {
|
|
388
388
|
key: "componentDidUpdate",
|
|
389
389
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
390
|
+
var _prevProps$itemSizes, _this$props$itemSizes;
|
|
390
391
|
var deferScrollTo = false;
|
|
391
392
|
var _this$state = this.state,
|
|
392
393
|
firstIndex = _this$state.firstIndex,
|
|
@@ -441,7 +442,11 @@ var VirtualListBasic = exports.VirtualListBasic = /*#__PURE__*/function (_Compon
|
|
|
441
442
|
this.indexToScrollIntoView = -1;
|
|
442
443
|
}
|
|
443
444
|
}
|
|
444
|
-
if (prevProps.direction !== this.props.direction || prevProps.overhang !== this.props.overhang || prevProps.spacing !== this.props.spacing || !(0, _equals["default"])(prevProps.itemSize, this.props.itemSize)) {
|
|
445
|
+
if (prevProps.direction !== this.props.direction || prevProps.overhang !== this.props.overhang || prevProps.spacing !== this.props.spacing || !(0, _equals["default"])(prevProps.itemSize, this.props.itemSize) || ((_prevProps$itemSizes = prevProps.itemSizes) === null || _prevProps$itemSizes === void 0 ? void 0 : _prevProps$itemSizes.reduce(function (acc, cur) {
|
|
446
|
+
return acc + cur;
|
|
447
|
+
}, 0)) !== ((_this$props$itemSizes = this.props.itemSizes) === null || _this$props$itemSizes === void 0 ? void 0 : _this$props$itemSizes.reduce(function (acc, cur) {
|
|
448
|
+
return acc + cur;
|
|
449
|
+
}, 0))) {
|
|
445
450
|
var _this$getXY = this.getXY(this.scrollPosition, 0),
|
|
446
451
|
x = _this$getXY.x,
|
|
447
452
|
y = _this$getXY.y;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enact/ui",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.3",
|
|
4
4
|
"description": "A collection of simplified unstyled cross-platform UI components for Enact",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@enact/core": "^4.9.
|
|
35
|
+
"@enact/core": "^4.9.3",
|
|
36
36
|
"classnames": "^2.5.1",
|
|
37
37
|
"direction": "^1.0.4",
|
|
38
38
|
"invariant": "^2.2.4",
|