@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 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
@@ -268,7 +268,7 @@ var GridListImageItem = (0, _kind["default"])({
268
268
  }, {
269
269
  name: 'ui/GridListImageItem',
270
270
  replacedBy: 'ui/ImageItem',
271
- until: '4.0.0'
271
+ until: '5.0.0'
272
272
  })
273
273
  });
274
274
  exports.GridListImageItem = GridListImageItem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enact/ui",
3
- "version": "4.5.0-beta.1",
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-beta.1",
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",
@@ -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
- if (propsHandleResizeWindow) {
440
- propsHandleResizeWindow();
441
- }
442
-
443
- if (scrollMode === 'translate') {
444
- scrollTo({
445
- position: {
446
- x: 0,
447
- y: 0
448
- },
449
- animate: false
450
- });
451
- } else {
452
- scrollContentHandle.current.scrollToPosition(0, 0, 'instant');
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();