@enact/ui 5.0.0-alpha.2 → 5.0.0-alpha.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 CHANGED
@@ -2,6 +2,22 @@
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.0.0-alpha.3] - 2024-12-02
6
+
7
+ ### Fixed
8
+
9
+ - `ui/VirtualList` to re-render when the each size of variable sized items changed
10
+
11
+ ## [4.9.4] - 2024-11-19
12
+
13
+ ### Fixed
14
+
15
+ - `ui/VirtualList` to re-render when the each size of variable sized items changed
16
+
17
+ ## [4.9.3] - 2024-10-29
18
+
19
+ No significant changes.
20
+
5
21
  ## [5.0.0-alpha.2] - 2024-10-08
6
22
 
7
23
  ### Added
@@ -25,7 +25,7 @@ bubble up to `window` regardless of which component is focused.
25
25
  innermost instance (in terms of the component hierarchy) have the first opportunity to handle
26
26
  the event before its container components.
27
27
  */
28
- modal?: string;
28
+ modal?: boolean;
29
29
  /**
30
30
  * The component that will contain the wrapped component.
31
31
  *
@@ -80,7 +80,7 @@ var defaultConfig = {
80
80
  * innermost instance (in terms of the component hierarchy) have the first opportunity to handle
81
81
  * the event before its container components.
82
82
  *
83
- * @type {String}
83
+ * @type {Boolean}
84
84
  * @default false
85
85
  * @memberof ui/Cancelable.Cancelable.defaultConfig
86
86
  */
@@ -125,7 +125,7 @@ var defaultConfig = {
125
125
  * // to handle the event (e.g. invoking an event handler from `props`).
126
126
  *
127
127
  * // Stop upstream instances of Cancelable from handling the event
128
- * ev.stopPropagaion();
128
+ * ev.stopPropagation();
129
129
  * }},
130
130
  * MyComponent
131
131
  * );
@@ -30,7 +30,7 @@ var cancelHandlers = [
30
30
  var forCancel = exports.forCancel = function forCancel(ev) {
31
31
  var ok = false;
32
32
  cancelHandlers.forEach(function (fn) {
33
- // if any handler returns true, we don't need to call any more
33
+ // if any handler returns true, we don't need to call anymore
34
34
  ok = ok || fn(ev);
35
35
  });
36
36
  return ok;
@@ -79,7 +79,7 @@ var FloatingLayerBase = exports.FloatingLayerBase = /*#__PURE__*/function (_Comp
79
79
  return _createClass(FloatingLayerBase, [{
80
80
  key: "componentDidMount",
81
81
  value: function componentDidMount() {
82
- // Must register first in order to obtain the floating layer node reference before tryinging
82
+ // Must register first in order to obtain the floating layer node reference before trying
83
83
  // to render into it
84
84
  if (this.context && typeof this.context === 'function') {
85
85
  this.controller = this.context(this.handleNotify.bind(this));
@@ -78,7 +78,7 @@ describe('FloatingLayer Specs', function () {
78
78
  var actual = handleClose.mock.calls.length && handleClose.mock.calls[0][0];
79
79
  expect(actual).toMatchObject(expectedType);
80
80
  });
81
- test('should fire onDimiss event with type and detail info when FloatingLayer is closed', function () {
81
+ test('should fire onDismiss event with type and detail info when FloatingLayer is closed', function () {
82
82
  var handleDismiss = jest.fn();
83
83
  (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Root, {
84
84
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_FloatingLayer.FloatingLayer, {
@@ -51,7 +51,7 @@ corresponding internal elements and states of this component.
51
51
  * * `'title'` and `'subtitle'` are generally considered to be used only once on a given screen.
52
52
  * * `'large'` , `'medium'` , `'small'` , and `'tiny'` are typically used as section headings
53
53
  for content on a screen, starting with `'large'` for the first tier of information
54
- followed by `'medium'` for the next, and so fourth.
54
+ followed by `'medium'` for the next, and so forth.
55
55
  *
56
56
  * If the `spacing` prop is not set (defaulting to "auto"), these values automatically set
57
57
  the spacing to the correlated names.
@@ -87,7 +87,7 @@ var HeadingBase = exports.HeadingBase = (0, _kind["default"])({
87
87
  * * `'title'` and `'subtitle'` are generally considered to be used only once on a given screen.
88
88
  * * `'large'`, `'medium'`, `'small'`, and `'tiny'` are typically used as section headings
89
89
  * for content on a screen, starting with `'large'` for the first tier of information
90
- * followed by `'medium'` for the next, and so fourth.
90
+ * followed by `'medium'` for the next, and so forth.
91
91
  *
92
92
  * If the `spacing` prop is not set (defaulting to "auto"), these values automatically set
93
93
  * the spacing to the correlated names.
package/Layout/Cell.js CHANGED
@@ -122,7 +122,7 @@ var CellBase = exports.CellBase = (0, _kind["default"])({
122
122
  * the maximum size, shrinking as necessary, to fit the content.
123
123
  *
124
124
  * When used in conjunction with {@link ui/Layout.CellBase.grow|grow}, the size will be the
125
- * minimunm size, growing as necessary, to fit the container.
125
+ * minimum size, growing as necessary, to fit the container.
126
126
  *
127
127
  * E.g.
128
128
  * * `size="400px"` -> cell will be 400px, regardless of the dimensions of your content
@@ -179,7 +179,7 @@ var CellBase = exports.CellBase = (0, _kind["default"])({
179
179
  return _objectSpread(_objectSpread({}, _style), {}, {
180
180
  alignSelf: toFlexAlign(align),
181
181
  flexBasis: shrink ? null : size,
182
- // Setting 100% below in the presence of `shrink`` and absense of `size` prevents overflow
182
+ // Setting 100% below in the presence of `shrink`` and absence of `size` prevents overflow
183
183
  '--cell-size': cellSize
184
184
  });
185
185
  }
@@ -69,7 +69,7 @@ for more details.
69
69
  the maximum size, shrinking as necessary, to fit the content.
70
70
  *
71
71
  * When used in conjunction with , the size will be the
72
- minimunm size, growing as necessary, to fit the container.
72
+ minimum size, growing as necessary, to fit the container.
73
73
  *
74
74
  * E.g.
75
75
  * * `size="400px"` -> cell will be 400px, regardless of the dimensions of your content
package/Layout/Layout.js CHANGED
@@ -41,7 +41,7 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
41
41
  * A convenient tool for laying-out content using `Layout`, `Cell`, `Row`, and `Column`.
42
42
  *
43
43
  * Layout is a powerful and versatile tool used for arranging content on the screen. On a conceptual
44
- * level, it mixes the best parts of HTML tables wtih the best parts of HTML framesets, both of
44
+ * level, it mixes the best parts of HTML tables with the best parts of HTML framesets, both of
45
45
  * which were largely abandoned for their drawbacks, ignoring their strengths. A `Layout` is simply
46
46
  * a container for `Cell`, the only "legal" child. Conversely, `Cell` may only be used in a
47
47
  * `Layout`. Cells in a Layout can either be positioned next to each other (horizontally) or
@@ -50,7 +50,7 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
50
50
  *
51
51
  * The `Row` and `Column` layout presets describe the direction of layout for their children. This
52
52
  * can sometimes cause confusion. A `Row` of children naturally forms a _layout_ whose children can
53
- * have the _appearance_ of columns. To keep things clear, think about the layout rather than the
53
+ * have the _appearance_ of columns. To keep things clear, think about the layout rather than
54
54
  * what the children themselves represent.
55
55
  *
56
56
  * `Layout` is an implementation of flex-box, but with built-in rails, properties, and features to
@@ -721,7 +721,7 @@ var MarqueeDecorator = exports.MarqueeDecorator = (0, _hoc["default"])(defaultCo
721
721
  * Calculates if the marquee should animate
722
722
  *
723
723
  * @param {Number} distance Amount of overflow in pixels
724
- * @returns {Boolean} `true` if it should animated
724
+ * @returns {Boolean} `true` if it should animate
725
725
  */
726
726
  }, {
727
727
  key: "shouldAnimate",
@@ -31,7 +31,7 @@ data. See for more information.
31
31
  */
32
32
  childProp?: string;
33
33
  /**
34
- * Component type to wrap around all of the repeated elements.
34
+ * Component type to wrap around all the repeated elements.
35
35
  *
36
36
  * This can be a string describing a DOM node or React component (e.g. `'div'` or `Layout` ).
37
37
  */
@@ -73,7 +73,7 @@ var RepeaterBase = exports.RepeaterBase = (0, _kind["default"])({
73
73
  */
74
74
  childProp: _propTypes2["default"].string,
75
75
  /**
76
- * Component type to wrap around all of the repeated elements.
76
+ * Component type to wrap around all the repeated elements.
77
77
  *
78
78
  * This can be a string describing a DOM node or React component (e.g. `'div'` or `Layout`).
79
79
  *
@@ -160,7 +160,7 @@ var RouterBase = exports.RouterBase = (_Class = /*#__PURE__*/function (_ReactCom
160
160
  * Routes defined as an object rather than via JSX.
161
161
  *
162
162
  * If specified, `routes` will take
163
- * precendence over a JSX definition.
163
+ * precedence over a JSX definition.
164
164
  *
165
165
  * ```JavaScript
166
166
  * const routes = {
@@ -116,7 +116,7 @@ var defaultConfig = {
116
116
  *
117
117
  * Example:
118
118
  * ```
119
- * const MyApp = ({skinName, ...rest) => (<div {...props}>{skinName}</div>);
119
+ * const MyApp = ({skinName, ...rest}) => (<div {...props}>{skinName}</div>);
120
120
  * ...
121
121
  * App = Skinnable({
122
122
  * prop: 'skinName',
package/Skinnable/util.js CHANGED
@@ -65,7 +65,7 @@ function determineVariants(defaultVariants, allowedVariants, authorVariants, par
65
65
  authorVariants = objectify(authorVariants);
66
66
  parentVariants = objectify(parentVariants);
67
67
 
68
- // Merge all of the variants objects, preferring values in objects from left to right.
68
+ // Merge all the variants objects, preferring values in objects from left to right.
69
69
  var mergedObj = [defaultVariants, parentVariants, authorVariants].reduce(function (obj, a) {
70
70
  if (a) {
71
71
  Object.keys(a).forEach(function (key) {
package/Slider/Knob.js CHANGED
@@ -54,7 +54,7 @@ var Knob = exports.Knob = (0, _kind["default"])({
54
54
  * * `orientation` - The value of the `orientation` prop from the slider
55
55
  * * `proportion` - The value of the `proportion` prop from the knob
56
56
  *
57
- * This prop accepts either a Component (e.g. `MyTooltip`} which will be instantiated with
57
+ * This prop accepts either a Component (e.g. `MyTooltip`) which will be instantiated with
58
58
  * the above props or a component instance (e.g. `<MyTooltip customProp="value" />`) which
59
59
  * will have its props merged with the above props.
60
60
  *
@@ -25,7 +25,7 @@ and `max` props of the slider.
25
25
  * * `orientation` - The value of the `orientation` prop from the slider
26
26
  * * `proportion` - The value of the `proportion` prop from the knob
27
27
  *
28
- * This prop accepts either a Component (e.g. `MyTooltip` } which will be instantiated with
28
+ * This prop accepts either a Component (e.g. `MyTooltip` ) which will be instantiated with
29
29
  the above props or a component instance (e.g. `<MyTooltip customProp="value" />` ) which
30
30
  will have its props merged with the above props.
31
31
  */
@@ -53,7 +53,7 @@ export interface SliderBaseProps {
53
53
  * * progress - The `value` as a proportion between `min` and `max`
54
54
  * * progressAnchor - The value of `progressAnchor`
55
55
  *
56
- * This prop accepts either a Component (e.g. `MyProgress` } which will be instantiated with
56
+ * This prop accepts either a Component (e.g. `MyProgress` ) which will be instantiated with
57
57
  the above props or a component instance (e.g. `<MyProgress customProp="value" />` ) which
58
58
  will have its props merged with the above props.
59
59
  */
@@ -99,7 +99,7 @@ corresponding internal elements and states of this component.
99
99
  * * `tooltipComponent` - The value of `tooltipComponent`
100
100
  * * `value` - The value of `value`
101
101
  *
102
- * This prop accepts either a Component (e.g. `MyKnob` } which will be instantiated with
102
+ * This prop accepts either a Component (e.g. `MyKnob` ) which will be instantiated with
103
103
  the above props or a component instance (e.g. `<MyKnob customProp="value" />` ) which
104
104
  will have its props merged with the above props.
105
105
  */
@@ -158,7 +158,7 @@ than always from the start of the slider.
158
158
  * * `orientation` - The value of the `orientation` prop from the slider
159
159
  * * `proportion` - The `value` as a proportion between `min` and `max`
160
160
  *
161
- * This prop accepts either a Component (e.g. `MyTooltip` } which will be instantiated with
161
+ * This prop accepts either a Component (e.g. `MyTooltip` ) which will be instantiated with
162
162
  the above props or a component instance (e.g. `<MyTooltip customProp="value" />` ) which
163
163
  will have its props merged with the above props.
164
164
  */
package/Slider/Slider.js CHANGED
@@ -60,7 +60,7 @@ var SliderBase = exports.SliderBase = (0, _kind["default"])({
60
60
  * * progress - The `value` as a proportion between `min` and `max`
61
61
  * * progressAnchor - The value of `progressAnchor`
62
62
  *
63
- * This prop accepts either a Component (e.g. `MyProgress`} which will be instantiated with
63
+ * This prop accepts either a Component (e.g. `MyProgress`) which will be instantiated with
64
64
  * the above props or a component instance (e.g. `<MyProgress customProp="value" />`) which
65
65
  * will have its props merged with the above props.
66
66
  *
@@ -126,7 +126,7 @@ var SliderBase = exports.SliderBase = (0, _kind["default"])({
126
126
  * * `tooltipComponent` - The value of `tooltipComponent`
127
127
  * * `value` - The value of `value`
128
128
  *
129
- * This prop accepts either a Component (e.g. `MyKnob`} which will be instantiated with
129
+ * This prop accepts either a Component (e.g. `MyKnob`) which will be instantiated with
130
130
  * the above props or a component instance (e.g. `<MyKnob customProp="value" />`) which
131
131
  * will have its props merged with the above props.
132
132
  *
@@ -219,7 +219,7 @@ var SliderBase = exports.SliderBase = (0, _kind["default"])({
219
219
  * * `orientation` - The value of the `orientation` prop from the slider
220
220
  * * `proportion` - The `value` as a proportion between `min` and `max`
221
221
  *
222
- * This prop accepts either a Component (e.g. `MyTooltip`} which will be instantiated with
222
+ * This prop accepts either a Component (e.g. `MyTooltip`) which will be instantiated with
223
223
  * the above props or a component instance (e.g. `<MyTooltip customProp="value" />`) which
224
224
  * will have its props merged with the above props.
225
225
  *
@@ -110,8 +110,8 @@ function distribute(_ref) {
110
110
  /**
111
111
  * Distributes `children` into the configured `slots`.
112
112
  *
113
- * `useSlots` iterates over all of the `children` in `props` and distributes any children based on
114
- * the followig rules:
113
+ * `useSlots` iterates over all the `children` in `props` and distributes any children based on
114
+ * the following rules:
115
115
  *
116
116
  * * If the child has a `slot` property matching a valid slot, or
117
117
  * * If the component for the child has the `defaultSlot` static member matching a valid slot, or
@@ -12,7 +12,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
12
12
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
13
13
  // It's possible that emitting `onTap` will cause a DOM change before the mousedown fires resulting
14
14
  // in multiple tap/click events for the same user action. To avoid this, we store the last touchend
15
- // target and timestamp to compare against the next mouse down. If the timestamp is different (e.g
15
+ // target and timestamp to compare against the next mouse down. If the timestamp is different (e.g.
16
16
  // we're on a hybrid device that emitted a touch event but the next was a mouse event) or the target
17
17
  // is the same (or no previous target was set if no touch events have been emitted), we allow the
18
18
  // mousedown *across Touchable instances*.
@@ -31,7 +31,7 @@ var clone = function clone(o) {
31
31
  return Object.assign({}, o);
32
32
  };
33
33
 
34
- // Merges two configuation objects while retaining only the allowed keys
34
+ // Merges two configuration objects while retaining only the allowed keys
35
35
  var mergeGestureConfig = function mergeGestureConfig(current, update, allowed) {
36
36
  var cfg = _objectSpread(_objectSpread({}, current), update);
37
37
  Object.keys(cfg).forEach(function (key) {
@@ -93,7 +93,7 @@ all, which makes it less useful for transitioning from a place already on the
93
93
  screen.
94
94
  * * `'clip'` - This is useful for showing a component that transitions-in from a location
95
95
  that is already on the screen. Examples would be an expanding header or an
96
- accordion. This type does affects layout, its current size will push other sibling
96
+ accordion. This type does affect layout, its current size will push other sibling
97
97
  elements to make room for itself. Because of this, repainting the layout does happen
98
98
  during transition.
99
99
  * * `'fade'` - Fade the components onto the screen, from 0 opacity (completely invisible)
@@ -133,7 +133,7 @@ export interface TransitionProps {
133
133
  `'medium'` (500ms) is default when no others are specified.
134
134
  *
135
135
  * Any valid CSS duration value is also accepted, e.g. "200ms" or "3s". Pure numeric values
136
- are also supported and treated as miliseconds.
136
+ are also supported and treated as milliseconds.
137
137
  */
138
138
  duration?: string | number;
139
139
  /**
@@ -169,7 +169,7 @@ all, which makes it less useful for transitioning from a place already on the
169
169
  screen.
170
170
  * * `'clip'` - This is useful for showing a component that transitions-in from a location
171
171
  that is already on the screen. Examples would be an expanding header or an
172
- accordion. This type does affects layout, its current size will push other sibling
172
+ accordion. This type does affect layout, its current size will push other sibling
173
173
  elements to make room for itself. Because of this, repainting the layout does happen
174
174
  during transition.
175
175
  * * `'fade'` - Fade the components onto the screen, from 0 opacity (completely invisible)
@@ -190,7 +190,7 @@ var TransitionBase = exports.TransitionBase = (0, _kind["default"])({
190
190
  * screen.
191
191
  * * `'clip'` - This is useful for showing a component that transitions-in from a location
192
192
  * that is already on the screen. Examples would be an expanding header or an
193
- * accordion. This type does affects layout, its current size will push other sibling
193
+ * accordion. This type does affect layout, its current size will push other sibling
194
194
  * elements to make room for itself. Because of this, repainting the layout does happen
195
195
  * during transition.
196
196
  * * `'fade'` - Fade the components onto the screen, from 0 opacity (completely invisible)
@@ -246,7 +246,7 @@ var TransitionBase = exports.TransitionBase = (0, _kind["default"])({
246
246
  if (type === 'clip' && (direction === 'left' || direction === 'right')) {
247
247
  style.width = clipWidth;
248
248
  } else if ((type === 'fade' || type === 'slide') && duration && !css[duration]) {
249
- // If it's a number, assume it's miliseconds, if not, assume it's already a CSS duration string (like "200ms" or "2s")
249
+ // If it's a number, assume it's milliseconds, if not, assume it's already a CSS duration string (like "200ms" or "2s")
250
250
  style.transitionDuration = formatter(duration);
251
251
  }
252
252
  return style;
@@ -268,7 +268,7 @@ var TransitionBase = exports.TransitionBase = (0, _kind["default"])({
268
268
  }
269
269
  // If duration isn't a known named string, assume it is a CSS duration value
270
270
  if (duration && !css[duration]) {
271
- // If it's a number, assume it's miliseconds, if not, assume it's already a CSS duration string (like "200ms" or "2s")
271
+ // If it's a number, assume it's milliseconds, if not, assume it's already a CSS duration string (like "200ms" or "2s")
272
272
  _style.transitionDuration = formatter(duration);
273
273
  }
274
274
  }
@@ -500,7 +500,7 @@ Transition.propTypes = /** @lends ui/Transition.Transition.prototype */{
500
500
  * `'medium'` (500ms) is default when no others are specified.
501
501
  *
502
502
  * Any valid CSS duration value is also accepted, e.g. "200ms" or "3s". Pure numeric values
503
- * are also supported and treated as miliseconds.
503
+ * are also supported and treated as milliseconds.
504
504
  *
505
505
  * @type {String|Number}
506
506
  * @default 'medium'
@@ -555,7 +555,7 @@ Transition.propTypes = /** @lends ui/Transition.Transition.prototype */{
555
555
  * screen.
556
556
  * * `'clip'` - This is useful for showing a component that transitions-in from a location
557
557
  * that is already on the screen. Examples would be an expanding header or an
558
- * accordion. This type does affects layout, its current size will push other sibling
558
+ * accordion. This type does affect layout, its current size will push other sibling
559
559
  * elements to make room for itself. Because of this, repainting the layout does happen
560
560
  * during transition.
561
561
  * * `'fade'` - Fade the components onto the screen, from 0 opacity (completely invisible)
@@ -90,7 +90,7 @@ describe('Transition Specs', function () {
90
90
  var actual = _react.screen.getByTestId('transition');
91
91
  expect(actual).toHaveClass(expected);
92
92
  });
93
- test('should fire \'onShow\' event with type when \'visible\' prop bacomes true', function () {
93
+ test('should fire \'onShow\' event with type when \'visible\' prop becomes true', function () {
94
94
  var handleShow = jest.fn();
95
95
  var ChildNode = function ChildNode(props) {
96
96
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread(_objectSpread({}, props), {}, {
@@ -118,7 +118,7 @@ describe('Transition Specs', function () {
118
118
  expect(handleShow).toBeCalledTimes(expected);
119
119
  expect(actual).toMatchObject(expectedType);
120
120
  });
121
- test('should fire \'onHide\' event with type when \'visible\' prop bacomes false', function () {
121
+ test('should fire \'onHide\' event with type when \'visible\' prop becomes false', function () {
122
122
  var handleHide = jest.fn();
123
123
  var ChildNode = function ChildNode(props) {
124
124
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread(_objectSpread({}, props), {}, {
@@ -124,7 +124,7 @@ var SlideRightArranger = exports.SlideRightArranger = SlideArranger({
124
124
  });
125
125
 
126
126
  /**
127
- * An arranger that enters from the right and leaves to the left..
127
+ * An arranger that enters from the right and leaves to the left.
128
128
  *
129
129
  * @type {Arranger}
130
130
  * @memberof ui/ViewManager
@@ -135,7 +135,7 @@ var SlideLeftArranger = exports.SlideLeftArranger = SlideArranger({
135
135
  });
136
136
 
137
137
  /**
138
- * An arranger that enters from the bottom and leaves to the top..
138
+ * An arranger that enters from the bottom and leaves to the top.
139
139
  *
140
140
  * @type {Arranger}
141
141
  * @memberof ui/ViewManager
@@ -146,7 +146,7 @@ var SlideTopArranger = exports.SlideTopArranger = SlideArranger({
146
146
  });
147
147
 
148
148
  /**
149
- * An arranger that enters from the top and leaves to the bottom..
149
+ * An arranger that enters from the top and leaves to the bottom.
150
150
  *
151
151
  * @type {Arranger}
152
152
  * @memberof ui/ViewManager
@@ -156,15 +156,15 @@ export function SlideArranger(config: object): Arranger;
156
156
  */
157
157
  export declare const SlideRightArranger: Arranger;
158
158
  /**
159
- * An arranger that enters from the right and leaves to the left..
159
+ * An arranger that enters from the right and leaves to the left.
160
160
  */
161
161
  export declare const SlideLeftArranger: Arranger;
162
162
  /**
163
- * An arranger that enters from the bottom and leaves to the top..
163
+ * An arranger that enters from the bottom and leaves to the top.
164
164
  */
165
165
  export declare const SlideTopArranger: Arranger;
166
166
  /**
167
- * An arranger that enters from the top and leaves to the bottom..
167
+ * An arranger that enters from the top and leaves to the bottom.
168
168
  */
169
169
  export declare const SlideBottomArranger: Arranger;
170
170
 
@@ -387,7 +387,6 @@ 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;
391
390
  var deferScrollTo = false;
392
391
  var _this$state = this.state,
393
392
  firstIndex = _this$state.firstIndex,
@@ -442,11 +441,7 @@ var VirtualListBasic = exports.VirtualListBasic = /*#__PURE__*/function (_Compon
442
441
  this.indexToScrollIntoView = -1;
443
442
  }
444
443
  }
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))) {
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) || !(0, _util.shallowEqual)(prevProps.itemSizes, this.props.itemSizes)) {
450
445
  var _this$getXY = this.getXY(this.scrollPosition, 0),
451
446
  x = _this$getXY.x,
452
447
  y = _this$getXY.y;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enact/ui",
3
- "version": "5.0.0-alpha.2",
3
+ "version": "5.0.0-alpha.3",
4
4
  "description": "A collection of simplified unstyled cross-platform UI components for Enact",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,8 +32,8 @@
32
32
  }
33
33
  },
34
34
  "dependencies": {
35
- "@enact/core": "^5.0.0-alpha.2",
36
- "@enact/i18n": "^5.0.0-alpha.2",
35
+ "@enact/core": "^5.0.0-alpha.3",
36
+ "@enact/i18n": "^5.0.0-alpha.3",
37
37
  "classnames": "^2.5.1",
38
38
  "ilib": "^14.20.0",
39
39
  "invariant": "^2.2.4",
@@ -25,7 +25,7 @@ export function ResolutionDecorator<P>(
25
25
  ): React.ComponentType<P & ResolutionDecoratorProps>;
26
26
 
27
27
  /**
28
- * Object that stores all of the pixel conversion factors to each keyed unit.
28
+ * Object that stores the pixel conversion factors to each keyed unit.
29
29
  */
30
30
  export declare const unitToPixelFactors: object;
31
31
  /**
@@ -38,7 +38,7 @@ var baseScreen,
38
38
  config;
39
39
 
40
40
  /**
41
- * Object that stores all of the pixel conversion factors to each keyed unit.
41
+ * Object that stores the pixel conversion factors to each keyed unit.
42
42
  *
43
43
  * @type {Object}
44
44
  * @memberof ui/resolution
@@ -20,7 +20,7 @@
20
20
 
21
21
  // Applies RTL-compatible start and end position to a selector
22
22
  // Simple "when" here just assumes that if the first argument is a list with more than 1 entry,
23
- // then units are correct. If it's just 1, then we varify the value is a number (measurement).
23
+ // then units are correct. If it's just 1, then we verify the value is a number (measurement).
24
24
  .position-start-end (@trbl; @target: "") when (length(@trbl) > 1) or (@target = parent) or (@target = self) or (@target = "") {
25
25
  .position(@trbl);
26
26
 
@@ -305,13 +305,13 @@
305
305
  .buildLocaleFont(@fontName; @locale; @value);
306
306
  });
307
307
  }
308
- // Interpret individual font defiintions: (set1)
308
+ // Interpret individual font definitions: (set1)
309
309
  & when (not(@isCollection)) {
310
310
  .buildLocaleFont(@fontName; @locale; @specs);
311
311
  }
312
312
  // .debugLessTypes(@specs);
313
313
 
314
- // Note: The above `when` code will ignore defiintions like the following, because the way
314
+ // Note: The above `when` code will ignore definitions like the following, because the way
315
315
  // LESS works, it can't (at this time) differentiate between a space separated list and a
316
316
  // comma separated list, making it impossible to differentiate a single set of font rules
317
317
  // with multiple values vs multiple sets with a single value in each.