@enact/ui 4.7.1 → 4.7.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.
@@ -1,7 +1,7 @@
1
1
  // Type definitions for ui/BodyText
2
2
 
3
- import * as React from "react";
4
3
  import { ForwardRefProps as ui_ForwardRef_ForwardRefProps } from "@enact/ui/ForwardRef";
4
+ import * as React from "react";
5
5
 
6
6
  type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
7
7
  type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
@@ -1,7 +1,7 @@
1
1
  // Type definitions for ui/Button
2
2
 
3
- import * as React from "react";
4
3
  import { TouchableProps as ui_Touchable_TouchableProps } from "@enact/ui/Touchable";
4
+ import * as React from "react";
5
5
 
6
6
  type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
7
7
  type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
package/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
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.7.3] - 2023-08-10
6
+
7
+ No significant changes.
8
+
9
+ ## [4.7.2] - 2023-07-14
10
+
11
+ No significant changes.
12
+
13
+ ## [4.5.4] - 2023-06-07
14
+
15
+ ### Fixed
16
+
17
+ - `ui/Scroller` and `ui/VirtualList` to pass scrolling state properly to UI libraries
18
+
5
19
  ## [4.7.1] - 2023-06-02
6
20
 
7
21
  No significant changes.
package/Group/Group.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  // Type definitions for ui/Group
2
2
 
3
- import * as React from "react";
4
3
  import { ForwardRefProps as ui_ForwardRef_ForwardRefProps } from "@enact/ui/ForwardRef";
5
4
  import { ChangeableProps as ui_Changeable_ChangeableProps } from "@enact/ui/Changeable";
5
+ import * as React from "react";
6
6
 
7
7
  type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
8
8
  type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
@@ -1,7 +1,7 @@
1
1
  // Type definitions for ui/Heading
2
2
 
3
- import * as React from "react";
4
3
  import { ForwardRefProps as ui_ForwardRef_ForwardRefProps } from "@enact/ui/ForwardRef";
4
+ import * as React from "react";
5
5
 
6
6
  type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
7
7
  type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
package/Icon/Icon.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Type definitions for ui/Icon
2
2
 
3
- import * as React from "react";
4
3
  import { ForwardRefProps as ui_ForwardRef_ForwardRefProps } from "@enact/ui/ForwardRef";
4
+ import * as React from "react";
5
5
 
6
6
  type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
7
7
  type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
@@ -1,8 +1,8 @@
1
1
  // Type definitions for ui/IconButton
2
2
 
3
- import * as React from "react";
4
3
  import { ForwardRefProps as ui_ForwardRef_ForwardRefProps } from "@enact/ui/ForwardRef";
5
4
  import { TouchableProps as ui_Touchable_TouchableProps } from "@enact/ui/Touchable";
5
+ import * as React from "react";
6
6
 
7
7
  type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
8
8
  type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
package/Image/Image.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Type definitions for ui/Image
2
2
 
3
- import * as React from "react";
4
3
  import { ForwardRefProps as ui_ForwardRef_ForwardRefProps } from "@enact/ui/ForwardRef";
4
+ import * as React from "react";
5
5
 
6
6
  type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
7
7
  type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
@@ -1,7 +1,7 @@
1
1
  // Type definitions for ui/ImageItem
2
2
 
3
- import * as React from "react";
4
3
  import { ForwardRefProps as ui_ForwardRef_ForwardRefProps } from "@enact/ui/ForwardRef";
4
+ import * as React from "react";
5
5
 
6
6
  type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
7
7
  type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
package/Item/Item.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  // Type definitions for ui/Item
2
2
 
3
- import * as React from "react";
4
3
  import { ForwardRefProps as ui_ForwardRef_ForwardRefProps } from "@enact/ui/ForwardRef";
5
4
  import { TouchableProps as ui_Touchable_TouchableProps } from "@enact/ui/Touchable";
5
+ import * as React from "react";
6
6
 
7
7
  type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
8
8
  type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
@@ -1,7 +1,7 @@
1
1
  // Type definitions for ui/LabeledIcon
2
2
 
3
- import * as React from "react";
4
3
  import { SlottableProps as ui_Slottable_SlottableProps } from "@enact/ui/Slottable";
4
+ import * as React from "react";
5
5
 
6
6
  type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
7
7
  type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
@@ -1,7 +1,7 @@
1
1
  // Type definitions for ui/Layout
2
2
 
3
- import * as React from "react";
4
3
  import { ForwardRefProps as ui_ForwardRef_ForwardRefProps } from "@enact/ui/ForwardRef";
4
+ import * as React from "react";
5
5
 
6
6
  type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
7
7
  type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
@@ -1,7 +1,7 @@
1
1
  // Type definitions for ui/ProgressBar
2
2
 
3
- import * as React from "react";
4
3
  import { ForwardRefProps as ui_ForwardRef_ForwardRefProps } from "@enact/ui/ForwardRef";
4
+ import * as React from "react";
5
5
 
6
6
  type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
7
7
  type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
@@ -1,7 +1,7 @@
1
1
  // Type definitions for ui/Repeater
2
2
 
3
- import * as React from "react";
4
3
  import { ForwardRefProps as ui_ForwardRef_ForwardRefProps } from "@enact/ui/ForwardRef";
4
+ import * as React from "react";
5
5
 
6
6
  type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
7
7
  type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
@@ -1,8 +1,8 @@
1
1
  // Type definitions for ui/Slider
2
2
 
3
- import * as React from "react";
4
3
  import { ChangeableProps as ui_Changeable_ChangeableProps } from "@enact/ui/Changeable";
5
4
  import { TouchableProps as ui_Touchable_TouchableProps } from "@enact/ui/Touchable";
5
+ import * as React from "react";
6
6
 
7
7
  type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
8
8
  type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
@@ -1,8 +1,8 @@
1
1
  // Type definitions for ui/SlotItem
2
2
 
3
- import * as React from "react";
4
3
  import { SlottableProps as ui_Slottable_SlottableProps } from "@enact/ui/Slottable";
5
4
  import { ForwardRefProps as ui_ForwardRef_ForwardRefProps } from "@enact/ui/ForwardRef";
5
+ import * as React from "react";
6
6
 
7
7
  type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
8
8
  type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
@@ -1,7 +1,7 @@
1
1
  // Type definitions for ui/Spinner
2
2
 
3
- import * as React from "react";
4
3
  import { ForwardRefProps as ui_ForwardRef_ForwardRefProps } from "@enact/ui/ForwardRef";
4
+ import * as React from "react";
5
5
 
6
6
  type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
7
7
  type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
@@ -1,9 +1,9 @@
1
1
  // Type definitions for ui/ToggleItem
2
2
 
3
- import * as React from "react";
4
3
  import { ForwardRefProps as ui_ForwardRef_ForwardRefProps } from "@enact/ui/ForwardRef";
5
4
  import { TouchableProps as ui_Touchable_TouchableProps } from "@enact/ui/Touchable";
6
5
  import { ToggleableProps as ui_Toggleable_ToggleableProps } from "@enact/ui/Toggleable";
6
+ import * as React from "react";
7
7
 
8
8
  type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
9
9
  type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
@@ -1,7 +1,7 @@
1
1
  // Type definitions for ui/ViewManager
2
2
 
3
- import * as React from "react";
4
3
  import { ForwardRefProps as ui_ForwardRef_ForwardRefProps } from "@enact/ui/ForwardRef";
4
+ import * as React from "react";
5
5
 
6
6
  type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
7
7
  type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
@@ -88,7 +88,6 @@ var VirtualListBasic = /*#__PURE__*/function (_Component) {
88
88
  function VirtualListBasic(_props) {
89
89
  var _this;
90
90
  _classCallCheck(this, VirtualListBasic);
91
- var nextState = null;
92
91
  _this = _super.call(this, _props);
93
92
  _this.displayName = 'ui:VirtualListBasic';
94
93
  _this.scrollBounds = {
@@ -346,18 +345,18 @@ var VirtualListBasic = /*#__PURE__*/function (_Component) {
346
345
  };
347
346
  _this.contentRef = /*#__PURE__*/(0, _react.createRef)();
348
347
  _this.itemContainerRefs = [];
349
- if (_props.clientSize) {
350
- _this.calculateMetrics(_props);
351
- nextState = _this.getStatesAndUpdateBounds(_props);
352
- }
353
- _this.state = _objectSpread({
348
+ _this.state = {
354
349
  firstIndex: 0,
355
350
  numOfItems: 0,
356
351
  prevChildProps: null,
357
352
  prevFirstIndex: 0,
358
353
  updateFrom: 0,
359
354
  updateTo: 0
360
- }, nextState);
355
+ };
356
+ if (_props.clientSize) {
357
+ _this.calculateMetrics(_props);
358
+ Object.assign(_this.state, _this.getStatesAndUpdateBounds(_props));
359
+ }
361
360
  return _this;
362
361
  }
363
362
  _createClass(VirtualListBasic, [{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enact/ui",
3
- "version": "4.7.1",
3
+ "version": "4.7.3",
4
4
  "description": "A collection of simplified unstyled cross-platform UI components for Enact",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  "dependencies": {
34
- "@enact/core": "^4.7.1",
34
+ "@enact/core": "^4.7.3",
35
35
  "classnames": "^2.3.2",
36
36
  "direction": "^1.0.4",
37
37
  "invariant": "^2.2.4",
File without changes
package/index.d.ts DELETED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes