@enact/ui 4.5.0-beta.1 → 4.5.0-rc.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 +8 -0
- package/GridListImageItem/GridListImageItem.js +1 -1
- package/package.json +2 -2
- package/useScroll/useScroll.js +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -2,8 +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.5.0-rc.1] - 2022-06-23
|
|
6
|
+
|
|
7
|
+
No significant changes.
|
|
8
|
+
|
|
5
9
|
## [4.5.0-beta.1] - 2022-05-31
|
|
6
10
|
|
|
11
|
+
### Deprecated
|
|
12
|
+
|
|
13
|
+
- `ui/GridListImageItem`, to be removed in 5.0.0. Use `ui/ImageItem` instead
|
|
14
|
+
|
|
7
15
|
### Added
|
|
8
16
|
|
|
9
17
|
- `ui/FloatingLayer` to add `detail` property containing `inputType` in `onDismiss` event payload
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enact/ui",
|
|
3
|
-
"version": "4.5.0-
|
|
3
|
+
"version": "4.5.0-rc.1",
|
|
4
4
|
"description": "A collection of simplified unstyled cross-platform UI components for Enact",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@enact/core": "^4.5.0-
|
|
28
|
+
"@enact/core": "^4.5.0-rc.1",
|
|
29
29
|
"classnames": "^2.3.1",
|
|
30
30
|
"direction": "^1.0.4",
|
|
31
31
|
"invariant": "^2.2.4",
|
package/useScroll/useScroll.js
CHANGED
|
@@ -436,20 +436,20 @@ var useScrollBase = function useScrollBase(props) {
|
|
|
436
436
|
var propsHandleResizeWindow = props.handleResizeWindow; // `handleSize` in `ui/resolution.ResolutionDecorator` should be executed first.
|
|
437
437
|
|
|
438
438
|
setTimeout(function () {
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
|
|
439
|
+
var handleResizeResult = propsHandleResizeWindow === null || propsHandleResizeWindow === void 0 ? void 0 : propsHandleResizeWindow();
|
|
440
|
+
|
|
441
|
+
if (handleResizeResult) {
|
|
442
|
+
if (scrollMode === 'translate') {
|
|
443
|
+
scrollTo({
|
|
444
|
+
position: {
|
|
445
|
+
x: 0,
|
|
446
|
+
y: 0
|
|
447
|
+
},
|
|
448
|
+
animate: false
|
|
449
|
+
});
|
|
450
|
+
} else {
|
|
451
|
+
scrollContentHandle.current.scrollToPosition(0, 0, 'instant');
|
|
452
|
+
}
|
|
453
453
|
}
|
|
454
454
|
|
|
455
455
|
enqueueForceUpdate();
|