@enact/ui 4.7.6 → 4.7.8

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.
Files changed (40) hide show
  1. package/AnnounceDecorator/AnnounceDecorator.d.ts +1 -1
  2. package/BodyText/BodyText.d.ts +1 -1
  3. package/Button/Button.d.ts +1 -1
  4. package/CHANGELOG.md +10 -0
  5. package/Cancelable/Cancelable.d.ts +2 -2
  6. package/Changeable/Changeable.d.ts +2 -2
  7. package/FloatingLayer/index.d.ts +2 -2
  8. package/ForwardRef/ForwardRef.d.ts +2 -2
  9. package/Group/Group.d.ts +1 -1
  10. package/Heading/Heading.d.ts +1 -1
  11. package/Icon/Icon.d.ts +1 -1
  12. package/IconButton/IconButton.d.ts +1 -1
  13. package/Image/Image.d.ts +1 -1
  14. package/ImageItem/ImageItem.d.ts +1 -1
  15. package/Item/Item.d.ts +1 -1
  16. package/LabeledIcon/LabeledIcon.d.ts +1 -1
  17. package/Layout/Layout.d.ts +2 -2
  18. package/Marquee/MarqueeDecorator.js +23 -11
  19. package/Marquee/index.d.ts +14 -14
  20. package/Marquee/tests/Marquee-specs.js +34 -0
  21. package/Measurable/Measurable.d.ts +2 -2
  22. package/Media/Media.d.ts +1 -1
  23. package/Placeholder/index.d.ts +4 -4
  24. package/ProgressBar/ProgressBar.d.ts +1 -1
  25. package/RadioDecorator/RadioDecorator.d.ts +3 -3
  26. package/Repeater/Repeater.d.ts +1 -1
  27. package/Resizable/Resizable.d.ts +2 -2
  28. package/Routable/Routable.d.ts +3 -3
  29. package/Skinnable/Skinnable.d.ts +2 -2
  30. package/Slider/Slider.d.ts +1 -1
  31. package/SlotItem/SlotItem.d.ts +1 -1
  32. package/Slottable/Slottable.d.ts +2 -2
  33. package/Spinner/Spinner.d.ts +1 -1
  34. package/ToggleItem/ToggleItem.d.ts +1 -1
  35. package/Toggleable/Toggleable.d.ts +2 -2
  36. package/Touchable/Touchable.d.ts +2 -2
  37. package/ViewManager/ViewManager.d.ts +2 -2
  38. package/VirtualList/VirtualList.d.ts +2 -4
  39. package/package.json +2 -2
  40. package/resolution/index.d.ts +5 -7
@@ -14,7 +14,7 @@ export interface AnnounceDecoratorProps {
14
14
  children?: React.ReactNode;
15
15
  }
16
16
  export function AnnounceDecorator<P>(
17
- Component: React.ComponentType<P> | string
17
+ Component: React.ComponentType<P> | string,
18
18
  ): React.ComponentType<P & AnnounceDecoratorProps>;
19
19
 
20
20
  export interface AnnounceProps {
@@ -47,7 +47,7 @@ export class BodyTextBase extends React.Component<
47
47
 
48
48
  export interface BodyTextDecoratorProps extends ui_ForwardRef_ForwardRefProps {}
49
49
  export function BodyTextDecorator<P>(
50
- Component: React.ComponentType<P> | string
50
+ Component: React.ComponentType<P> | string,
51
51
  ): React.ComponentType<P & BodyTextDecoratorProps>;
52
52
 
53
53
  export interface BodyTextProps
@@ -109,7 +109,7 @@ export class ButtonBase extends React.Component<
109
109
 
110
110
  export interface ButtonDecoratorProps extends ui_Touchable_TouchableProps {}
111
111
  export function ButtonDecorator<P>(
112
- Component: React.ComponentType<P> | string
112
+ Component: React.ComponentType<P> | string,
113
113
  ): React.ComponentType<P & ButtonDecoratorProps>;
114
114
 
115
115
  export interface ButtonProps
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.7.8] - 2023-11-17
6
+
7
+ ### Fixed
8
+
9
+ - `ui/Marquee.MarqueeDecorator` to re-render when its size changed
10
+
11
+ ## [4.7.7] - 2023-11-09
12
+
13
+ No significant changes.
14
+
5
15
  ## [4.7.6] - 2023-09-20
6
16
 
7
17
  No significant changes.
@@ -45,11 +45,11 @@ invoked.
45
45
  }
46
46
  export function Cancelable<P>(
47
47
  config: CancelableConfig,
48
- Component: React.ComponentType<P> | string
48
+ Component: React.ComponentType<P> | string,
49
49
  ): React.ComponentType<P & CancelableProps>;
50
50
 
51
51
  export function Cancelable<P>(
52
- Component: React.ComponentType<P> | string
52
+ Component: React.ComponentType<P> | string,
53
53
  ): React.ComponentType<P & CancelableProps>;
54
54
 
55
55
  /**
@@ -44,11 +44,11 @@ configuration.
44
44
  }
45
45
  export function Changeable<P>(
46
46
  config: ChangeableConfig,
47
- Component: React.ComponentType<P> | string
47
+ Component: React.ComponentType<P> | string,
48
48
  ): React.ComponentType<P & ChangeableProps>;
49
49
 
50
50
  export function Changeable<P>(
51
- Component: React.ComponentType<P> | string
51
+ Component: React.ComponentType<P> | string,
52
52
  ): React.ComponentType<P & ChangeableProps>;
53
53
 
54
54
  export default Changeable;
@@ -22,11 +22,11 @@ certain styles to the wrapped component and not to the float layer.
22
22
  export interface FloatingLayerDecoratorProps {}
23
23
  export function FloatingLayerDecorator<P>(
24
24
  config: FloatingLayerDecoratorConfig,
25
- Component: React.ComponentType<P> | string
25
+ Component: React.ComponentType<P> | string,
26
26
  ): React.ComponentType<P & FloatingLayerDecoratorProps>;
27
27
 
28
28
  export function FloatingLayerDecorator<P>(
29
- Component: React.ComponentType<P> | string
29
+ Component: React.ComponentType<P> | string,
30
30
  ): React.ComponentType<P & FloatingLayerDecoratorProps>;
31
31
 
32
32
  export interface FloatingLayerBaseProps {
@@ -12,11 +12,11 @@ export interface ForwardRefConfig extends Object {
12
12
  export interface ForwardRefProps {}
13
13
  export function ForwardRef<P>(
14
14
  config: ForwardRefConfig,
15
- Component: React.ComponentType<P> | string
15
+ Component: React.ComponentType<P> | string,
16
16
  ): React.ComponentType<P & ForwardRefProps>;
17
17
 
18
18
  export function ForwardRef<P>(
19
- Component: React.ComponentType<P> | string
19
+ Component: React.ComponentType<P> | string,
20
20
  ): React.ComponentType<P & ForwardRefProps>;
21
21
 
22
22
  export default ForwardRef;
package/Group/Group.d.ts CHANGED
@@ -101,7 +101,7 @@ export class Group extends React.Component<
101
101
  export interface GroupDecoratorProps
102
102
  extends Merge<ui_ForwardRef_ForwardRefProps, ui_Changeable_ChangeableProps> {}
103
103
  export function GroupDecorator<P>(
104
- Component: React.ComponentType<P> | string
104
+ Component: React.ComponentType<P> | string,
105
105
  ): React.ComponentType<P & GroupDecoratorProps>;
106
106
 
107
107
  export default Group;
@@ -83,7 +83,7 @@ export class Heading extends React.Component<
83
83
 
84
84
  export interface HeadingDecoratorProps extends ui_ForwardRef_ForwardRefProps {}
85
85
  export function HeadingDecorator<P>(
86
- Component: React.ComponentType<P> | string
86
+ Component: React.ComponentType<P> | string,
87
87
  ): React.ComponentType<P & HeadingDecoratorProps>;
88
88
 
89
89
  export default Heading;
package/Icon/Icon.d.ts CHANGED
@@ -72,7 +72,7 @@ export class IconBase extends React.Component<
72
72
 
73
73
  export interface IconDecoratorProps extends ui_ForwardRef_ForwardRefProps {}
74
74
  export function IconDecorator<P>(
75
- Component: React.ComponentType<P> | string
75
+ Component: React.ComponentType<P> | string,
76
76
  ): React.ComponentType<P & IconDecoratorProps>;
77
77
 
78
78
  export interface IconProps
@@ -89,7 +89,7 @@ export class IconButtonBase extends React.Component<
89
89
  export interface IconButtonDecoratorProps
90
90
  extends Merge<ui_ForwardRef_ForwardRefProps, ui_Touchable_TouchableProps> {}
91
91
  export function IconButtonDecorator<P>(
92
- Component: React.ComponentType<P> | string
92
+ Component: React.ComponentType<P> | string,
93
93
  ): React.ComponentType<P & IconButtonDecoratorProps>;
94
94
 
95
95
  export interface IconButtonProps
package/Image/Image.d.ts CHANGED
@@ -107,7 +107,7 @@ export class Image extends React.Component<
107
107
 
108
108
  export interface ImageDecoratorProps extends ui_ForwardRef_ForwardRefProps {}
109
109
  export function ImageDecorator<P>(
110
- Component: React.ComponentType<P> | string
110
+ Component: React.ComponentType<P> | string,
111
111
  ): React.ComponentType<P & ImageDecoratorProps>;
112
112
 
113
113
  export default Image;
@@ -64,7 +64,7 @@ export class ImageItemBase extends React.Component<
64
64
  export interface ImageItemDecoratorProps
65
65
  extends ui_ForwardRef_ForwardRefProps {}
66
66
  export function ImageItemDecorator<P>(
67
- Component: React.ComponentType<P> | string
67
+ Component: React.ComponentType<P> | string,
68
68
  ): React.ComponentType<P & ImageItemDecoratorProps>;
69
69
 
70
70
  export interface ImageItemProps
package/Item/Item.d.ts CHANGED
@@ -48,7 +48,7 @@ export class ItemBase extends React.Component<
48
48
  export interface ItemDecoratorProps
49
49
  extends Merge<ui_ForwardRef_ForwardRefProps, ui_Touchable_TouchableProps> {}
50
50
  export function ItemDecorator<P>(
51
- Component: React.ComponentType<P> | string
51
+ Component: React.ComponentType<P> | string,
52
52
  ): React.ComponentType<P & ItemDecoratorProps>;
53
53
 
54
54
  export interface ItemProps
@@ -104,7 +104,7 @@ export class LabeledIconBase extends React.Component<
104
104
  export interface LabeledIconDecoratorProps
105
105
  extends ui_Slottable_SlottableProps {}
106
106
  export function LabeledIconDecorator<P>(
107
- Component: React.ComponentType<P> | string
107
+ Component: React.ComponentType<P> | string,
108
108
  ): React.ComponentType<P & LabeledIconDecoratorProps>;
109
109
 
110
110
  export interface LabeledIconProps
@@ -193,7 +193,7 @@ export class LayoutBase extends React.Component<
193
193
 
194
194
  export interface CellDecoratorProps extends ui_ForwardRef_ForwardRefProps {}
195
195
  export function CellDecorator<P>(
196
- Component: React.ComponentType<P> | string
196
+ Component: React.ComponentType<P> | string,
197
197
  ): React.ComponentType<P & CellDecoratorProps>;
198
198
 
199
199
  export interface CellProps
@@ -209,7 +209,7 @@ export class Cell extends React.Component<
209
209
 
210
210
  export interface LayoutDecoratorProps extends ui_ForwardRef_ForwardRefProps {}
211
211
  export function LayoutDecorator<P>(
212
- Component: React.ComponentType<P> | string
212
+ Component: React.ComponentType<P> | string,
213
213
  ): React.ComponentType<P & LayoutDecoratorProps>;
214
214
 
215
215
  export interface LayoutProps
@@ -39,7 +39,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
39
39
  function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
40
40
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
41
41
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
42
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } // The minimum number of milliseconds to wait before resetting the marquee position after it finishes.
42
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /* global ResizeObserver */ // The minimum number of milliseconds to wait before resetting the marquee position after it finishes.
43
43
  var MINIMUM_MARQUEE_RESET_DELAY = 40;
44
44
 
45
45
  /**
@@ -444,11 +444,13 @@ var MarqueeDecorator = (0, _hoc["default"])(defaultConfig, function (config, Wra
444
444
  _this.distance = null;
445
445
  _this.contentFits = null;
446
446
  _this.resizeRegistry = null;
447
+ _this.resizeObserver = null;
447
448
  return _this;
448
449
  }
449
450
  _createClass(_class, [{
450
451
  key: "componentDidMount",
451
452
  value: function componentDidMount() {
453
+ var _this2 = this;
452
454
  if (this.context && this.context.register) {
453
455
  this.sync = true;
454
456
  this.context.register(this, {
@@ -457,6 +459,12 @@ var MarqueeDecorator = (0, _hoc["default"])(defaultConfig, function (config, Wra
457
459
  });
458
460
  }
459
461
  this.validateTextDirection();
462
+ if (typeof ResizeObserver === 'function' && this.node) {
463
+ this.resizeObserver = new ResizeObserver(function () {
464
+ _this2.handleResize();
465
+ });
466
+ this.resizeObserver.observe(this.node);
467
+ }
460
468
  if (this.props.marqueeOn === 'render') {
461
469
  this.startAnimation(this.props.marqueeOnRenderDelay);
462
470
  }
@@ -506,6 +514,10 @@ var MarqueeDecorator = (0, _hoc["default"])(defaultConfig, function (config, Wra
506
514
  if (this.resizeRegistry) {
507
515
  this.resizeRegistry.unregister(this.handleResize);
508
516
  }
517
+ if (this.resizeObserver) {
518
+ this.resizeObserver.disconnect();
519
+ this.resizeObserver = null;
520
+ }
509
521
  (0, _dispatcher.off)('keydown', this.handlePointerHide, document);
510
522
  }
511
523
  }, {
@@ -549,14 +561,14 @@ var MarqueeDecorator = (0, _hoc["default"])(defaultConfig, function (config, Wra
549
561
  }, {
550
562
  key: "setTimeout",
551
563
  value: function setTimeout(fn) {
552
- var _this2 = this;
564
+ var _this3 = this;
553
565
  var time = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
554
566
  var state = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : TimerState.CLEAR;
555
567
  this.clearTimeout();
556
568
  if (window) {
557
569
  this.timerState = state;
558
570
  this.timer = window.setTimeout(function () {
559
- _this2.timerState = TimerState.CLEAR;
571
+ _this3.timerState = TimerState.CLEAR;
560
572
  fn();
561
573
  }, time);
562
574
  }
@@ -740,9 +752,9 @@ var MarqueeDecorator = (0, _hoc["default"])(defaultConfig, function (config, Wra
740
752
  }, {
741
753
  key: "validateTextDirection",
742
754
  value: function validateTextDirection() {
743
- var _this3 = this;
755
+ var _this4 = this;
744
756
  this.setState(function (state, props) {
745
- var rtl = determineTextDirection(_this3.node, props.rtl, props.forceDirection);
757
+ var rtl = determineTextDirection(_this4.node, props.rtl, props.forceDirection);
746
758
  return state.rtl === rtl ? null : {
747
759
  rtl: rtl
748
760
  };
@@ -825,16 +837,16 @@ var MarqueeDecorator = (0, _hoc["default"])(defaultConfig, function (config, Wra
825
837
  }, {
826
838
  key: "render",
827
839
  value: function render() {
828
- var _this4 = this;
840
+ var _this5 = this;
829
841
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Resizable.ResizeContext.Consumer, {
830
842
  children: function children(register) {
831
- if (!_this4.resizeRegistry && register) {
832
- _this4.resizeRegistry = register(_this4.handleResize);
843
+ if (!_this5.resizeRegistry && register) {
844
+ _this5.resizeRegistry = register(_this5.handleResize);
833
845
  }
834
- if (_this4.props.marqueeDisabled) {
835
- return _this4.renderWrapped();
846
+ if (_this5.props.marqueeDisabled) {
847
+ return _this5.renderWrapped();
836
848
  } else {
837
- return _this4.renderMarquee();
849
+ return _this5.renderMarquee();
838
850
  }
839
851
  }
840
852
  });
@@ -100,13 +100,23 @@ started when sibling components are focused.
100
100
  export interface MarqueeControllerProps {}
101
101
  export function MarqueeController<P>(
102
102
  config: MarqueeControllerConfig,
103
- Component: React.ComponentType<P> | string
103
+ Component: React.ComponentType<P> | string,
104
104
  ): React.ComponentType<P & MarqueeControllerProps>;
105
105
 
106
106
  export function MarqueeController<P>(
107
- Component: React.ComponentType<P> | string
107
+ Component: React.ComponentType<P> | string,
108
108
  ): React.ComponentType<P & MarqueeControllerProps>;
109
109
 
110
+ export interface MarqueeProps
111
+ extends Merge<MarqueeBaseProps, MarqueeDecoratorProps> {}
112
+ /**
113
+ * A minimally-styled marquee component.
114
+ */
115
+
116
+ export class Marquee extends React.Component<
117
+ Merge<React.HTMLProps<HTMLElement>, MarqueeProps>
118
+ > {}
119
+
110
120
  export interface MarqueeDecoratorConfig extends Object {
111
121
  /**
112
122
  * Property containing the callback to stop the animation when `marqueeOn` is `'focus'`
@@ -238,21 +248,11 @@ will be scaled automatically for the current resolution using .
238
248
  }
239
249
  export function MarqueeDecorator<P>(
240
250
  config: MarqueeDecoratorConfig,
241
- Component: React.ComponentType<P> | string
251
+ Component: React.ComponentType<P> | string,
242
252
  ): React.ComponentType<P & MarqueeDecoratorProps>;
243
253
 
244
254
  export function MarqueeDecorator<P>(
245
- Component: React.ComponentType<P> | string
255
+ Component: React.ComponentType<P> | string,
246
256
  ): React.ComponentType<P & MarqueeDecoratorProps>;
247
257
 
248
- export interface MarqueeProps
249
- extends Merge<MarqueeBaseProps, MarqueeDecoratorProps> {}
250
- /**
251
- * A minimally-styled marquee component.
252
- */
253
-
254
- export class Marquee extends React.Component<
255
- Merge<React.HTMLProps<HTMLElement>, MarqueeProps>
256
- > {}
257
-
258
258
  export default Marquee;
@@ -45,6 +45,23 @@ beforeEach(function () {
45
45
  }]);
46
46
  return IntersectionObserver;
47
47
  }();
48
+ global.ResizeObserver = /*#__PURE__*/function () {
49
+ function ResizeObserver() {
50
+ _classCallCheck(this, ResizeObserver);
51
+ }
52
+ _createClass(ResizeObserver, [{
53
+ key: "disconnect",
54
+ value: function disconnect() {
55
+ return null;
56
+ }
57
+ }, {
58
+ key: "observe",
59
+ value: function observe() {
60
+ return _observe;
61
+ }
62
+ }]);
63
+ return ResizeObserver;
64
+ }();
48
65
  });
49
66
  afterEach(function () {
50
67
  jest.useRealTimers();
@@ -300,6 +317,23 @@ describe('Marquee', function () {
300
317
  _react.fireEvent.mouseLeave(marquee);
301
318
  expect(spy).toHaveBeenCalled();
302
319
  });
320
+ test('should creates and observes with ResizeObserver', function () {
321
+ var observe = jest.fn();
322
+ global.ResizeObserver = jest.fn(function () {
323
+ return {
324
+ observe: observe,
325
+ disconnect: jest.fn()
326
+ };
327
+ });
328
+ (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Marquee, {
329
+ children: ltrText
330
+ }));
331
+ (0, _react.act)(function () {
332
+ return jest.advanceTimersByTime(100);
333
+ });
334
+ expect(global.ResizeObserver).toHaveBeenCalled();
335
+ expect(observe).toHaveBeenCalled();
336
+ });
303
337
  });
304
338
  describe('MarqueeBase', function () {
305
339
  // Computed Property Tests
@@ -16,11 +16,11 @@ export interface MeasurableConfig extends Object {
16
16
  export interface MeasurableProps {}
17
17
  export function Measurable<P>(
18
18
  config: MeasurableConfig,
19
- Component: React.ComponentType<P> | string
19
+ Component: React.ComponentType<P> | string,
20
20
  ): React.ComponentType<P & MeasurableProps>;
21
21
 
22
22
  export function Measurable<P>(
23
- Component: React.ComponentType<P> | string
23
+ Component: React.ComponentType<P> | string,
24
24
  ): React.ComponentType<P & MeasurableProps>;
25
25
 
26
26
  export default Measurable;
package/Media/Media.d.ts CHANGED
@@ -21,7 +21,7 @@ getKeyFromSource([
21
21
  ```
22
22
  */
23
23
  export function getKeyFromSource(
24
- source: string | JSX.Element | JSX.Element[]
24
+ source: string | JSX.Element | JSX.Element[],
25
25
  ): string;
26
26
  /**
27
27
  * Maps standard media event `type` values to React-style callback prop names
@@ -16,11 +16,11 @@ export interface PlaceholderDecoratorConfig extends Object {
16
16
  export interface PlaceholderDecoratorProps {}
17
17
  export function PlaceholderDecorator<P>(
18
18
  config: PlaceholderDecoratorConfig,
19
- Component: React.ComponentType<P> | string
19
+ Component: React.ComponentType<P> | string,
20
20
  ): React.ComponentType<P & PlaceholderDecoratorProps>;
21
21
 
22
22
  export function PlaceholderDecorator<P>(
23
- Component: React.ComponentType<P> | string
23
+ Component: React.ComponentType<P> | string,
24
24
  ): React.ComponentType<P & PlaceholderDecoratorProps>;
25
25
 
26
26
  export interface PlaceholderControllerDecoratorConfig extends Object {
@@ -45,9 +45,9 @@ replacing the placeholder component with the true component.
45
45
  export interface PlaceholderControllerDecoratorProps {}
46
46
  export function PlaceholderControllerDecorator<P>(
47
47
  config: PlaceholderControllerDecoratorConfig,
48
- Component: React.ComponentType<P> | string
48
+ Component: React.ComponentType<P> | string,
49
49
  ): React.ComponentType<P & PlaceholderControllerDecoratorProps>;
50
50
 
51
51
  export function PlaceholderControllerDecorator<P>(
52
- Component: React.ComponentType<P> | string
52
+ Component: React.ComponentType<P> | string,
53
53
  ): React.ComponentType<P & PlaceholderControllerDecoratorProps>;
@@ -73,7 +73,7 @@ export class ProgressBarBase extends React.Component<
73
73
  export interface ProgressBarDecoratorProps
74
74
  extends ui_ForwardRef_ForwardRefProps {}
75
75
  export function ProgressBarDecorator<P>(
76
- Component: React.ComponentType<P> | string
76
+ Component: React.ComponentType<P> | string,
77
77
  ): React.ComponentType<P & ProgressBarDecoratorProps>;
78
78
 
79
79
  export interface ProgressBarProps
@@ -5,7 +5,7 @@ type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
5
5
 
6
6
  export interface RadioControllerDecoratorProps {}
7
7
  export function RadioControllerDecorator<P>(
8
- Component: React.ComponentType<P> | string
8
+ Component: React.ComponentType<P> | string,
9
9
  ): React.ComponentType<P & RadioControllerDecoratorProps>;
10
10
 
11
11
  export interface RadioDecoratorConfig extends Object {
@@ -25,11 +25,11 @@ export interface RadioDecoratorConfig extends Object {
25
25
  export interface RadioDecoratorProps {}
26
26
  export function RadioDecorator<P>(
27
27
  config: RadioDecoratorConfig,
28
- Component: React.ComponentType<P> | string
28
+ Component: React.ComponentType<P> | string,
29
29
  ): React.ComponentType<P & RadioDecoratorProps>;
30
30
 
31
31
  export function RadioDecorator<P>(
32
- Component: React.ComponentType<P> | string
32
+ Component: React.ComponentType<P> | string,
33
33
  ): React.ComponentType<P & RadioDecoratorProps>;
34
34
 
35
35
  export default RadioDecorator;
@@ -63,7 +63,7 @@ export class RepeaterBase extends React.Component<
63
63
 
64
64
  export interface RepeaterDecoratorProps extends ui_ForwardRef_ForwardRefProps {}
65
65
  export function RepeaterDecorator<P>(
66
- Component: React.ComponentType<P> | string
66
+ Component: React.ComponentType<P> | string,
67
67
  ): React.ComponentType<P & RepeaterDecoratorProps>;
68
68
 
69
69
  export interface RepeaterProps
@@ -21,11 +21,11 @@ needed) to the parent component.
21
21
  export interface ResizableProps {}
22
22
  export function Resizable<P>(
23
23
  config: ResizableConfig,
24
- Component: React.ComponentType<P> | string
24
+ Component: React.ComponentType<P> | string,
25
25
  ): React.ComponentType<P & ResizableProps>;
26
26
 
27
27
  export function Resizable<P>(
28
- Component: React.ComponentType<P> | string
28
+ Component: React.ComponentType<P> | string,
29
29
  ): React.ComponentType<P & ResizableProps>;
30
30
 
31
31
  export default Resizable;
@@ -42,11 +42,11 @@ of strings ( `['app', 'home', 'settings']` ).
42
42
  }
43
43
  export function Routable<P>(
44
44
  config: RoutableConfig,
45
- Component: React.ComponentType<P> | string
45
+ Component: React.ComponentType<P> | string,
46
46
  ): React.ComponentType<P & RoutableProps>;
47
47
 
48
48
  export function Routable<P>(
49
- Component: React.ComponentType<P> | string
49
+ Component: React.ComponentType<P> | string,
50
50
  ): React.ComponentType<P & RoutableProps>;
51
51
 
52
52
  export interface LinkProps extends Merge<LinkBaseProps, LinkableProps> {
@@ -142,7 +142,7 @@ export class Route extends React.Component<
142
142
 
143
143
  export interface LinkableProps {}
144
144
  export function Linkable<P>(
145
- Component: React.ComponentType<P> | string
145
+ Component: React.ComponentType<P> | string,
146
146
  ): React.ComponentType<P & LinkableProps>;
147
147
 
148
148
  export default Routable;
@@ -84,11 +84,11 @@ back to the defaultVariant or parent variant, in that order.
84
84
  }
85
85
  export function Skinnable<P>(
86
86
  config: SkinnableConfig,
87
- Component: React.ComponentType<P> | string
87
+ Component: React.ComponentType<P> | string,
88
88
  ): React.ComponentType<P & SkinnableProps>;
89
89
 
90
90
  export function Skinnable<P>(
91
- Component: React.ComponentType<P> | string
91
+ Component: React.ComponentType<P> | string,
92
92
  ): React.ComponentType<P & SkinnableProps>;
93
93
 
94
94
  export default Skinnable;
@@ -181,7 +181,7 @@ export class SliderBase extends React.Component<
181
181
  export interface SliderDecoratorProps
182
182
  extends Merge<ui_Changeable_ChangeableProps, ui_Touchable_TouchableProps> {}
183
183
  export function SliderDecorator<P>(
184
- Component: React.ComponentType<P> | string
184
+ Component: React.ComponentType<P> | string,
185
185
  ): React.ComponentType<P & SliderDecoratorProps>;
186
186
 
187
187
  export interface SliderProps
@@ -87,7 +87,7 @@ export class SlotItemBase extends React.Component<
87
87
  export interface SlotItemDecoratorProps
88
88
  extends Merge<ui_Slottable_SlottableProps, ui_ForwardRef_ForwardRefProps> {}
89
89
  export function SlotItemDecorator<P>(
90
- Component: React.ComponentType<P> | string
90
+ Component: React.ComponentType<P> | string,
91
91
  ): React.ComponentType<P & SlotItemDecoratorProps>;
92
92
 
93
93
  export interface SlotItemProps
@@ -12,11 +12,11 @@ export interface SlottableConfig extends Object {
12
12
  export interface SlottableProps {}
13
13
  export function Slottable<P>(
14
14
  config: SlottableConfig,
15
- Component: React.ComponentType<P> | string
15
+ Component: React.ComponentType<P> | string,
16
16
  ): React.ComponentType<P & SlottableProps>;
17
17
 
18
18
  export function Slottable<P>(
19
- Component: React.ComponentType<P> | string
19
+ Component: React.ComponentType<P> | string,
20
20
  ): React.ComponentType<P & SlottableProps>;
21
21
 
22
22
  export default Slottable;
@@ -76,7 +76,7 @@ export class SpinnerBase extends React.Component<
76
76
 
77
77
  export interface SpinnerDecoratorProps extends ui_ForwardRef_ForwardRefProps {}
78
78
  export function SpinnerDecorator<P>(
79
- Component: React.ComponentType<P> | string
79
+ Component: React.ComponentType<P> | string,
80
80
  ): React.ComponentType<P & SpinnerDecoratorProps>;
81
81
 
82
82
  export interface SpinnerProps
@@ -108,7 +108,7 @@ export interface ToggleItemDecoratorProps
108
108
  ui_Toggleable_ToggleableProps
109
109
  > {}
110
110
  export function ToggleItemDecorator<P>(
111
- Component: React.ComponentType<P> | string
111
+ Component: React.ComponentType<P> | string,
112
112
  ): React.ComponentType<P & ToggleItemDecoratorProps>;
113
113
 
114
114
  export interface ToggleItemProps
@@ -93,11 +93,11 @@ defined by its configuration.
93
93
  }
94
94
  export function Toggleable<P>(
95
95
  config: ToggleableConfig,
96
- Component: React.ComponentType<P> | string
96
+ Component: React.ComponentType<P> | string,
97
97
  ): React.ComponentType<P & ToggleableProps>;
98
98
 
99
99
  export function Toggleable<P>(
100
- Component: React.ComponentType<P> | string
100
+ Component: React.ComponentType<P> | string,
101
101
  ): React.ComponentType<P & ToggleableProps>;
102
102
 
103
103
  export default Toggleable;
@@ -141,11 +141,11 @@ pinchConfig.minScale and pinchConfig.maxScale.
141
141
  }
142
142
  export function Touchable<P>(
143
143
  config: TouchableConfig,
144
- Component: React.ComponentType<P> | string
144
+ Component: React.ComponentType<P> | string,
145
145
  ): React.ComponentType<P & TouchableProps>;
146
146
 
147
147
  export function Touchable<P>(
148
- Component: React.ComponentType<P> | string
148
+ Component: React.ComponentType<P> | string,
149
149
  ): React.ComponentType<P & TouchableProps>;
150
150
 
151
151
  /**
@@ -126,7 +126,7 @@ export interface ArrangerCallback {
126
126
  /**
127
127
  * Animation configuration object.
128
128
  */
129
- config: object
129
+ config: object,
130
130
  ): any;
131
131
  }
132
132
  /**
@@ -171,7 +171,7 @@ export declare const SlideBottomArranger: Arranger;
171
171
  export interface ViewManagerDecoratorProps
172
172
  extends ui_ForwardRef_ForwardRefProps {}
173
173
  export function ViewManagerDecorator<P>(
174
- Component: React.ComponentType<P> | string
174
+ Component: React.ComponentType<P> | string,
175
175
  ): React.ComponentType<P & ViewManagerDecoratorProps>;
176
176
 
177
177
  export interface ViewManagerProps
@@ -13,8 +13,7 @@ export interface gridListItemSizeShape {
13
13
  /**
14
14
  * The minimum width of the grid list item.
15
15
  */
16
- minWidth: number
17
- /**
16
+ minWidth: number /**
18
17
  * The minimum height of the grid list item.
19
18
  */;
20
19
  minHeight: number;
@@ -162,8 +161,7 @@ export interface itemSizesShape {
162
161
  /**
163
162
  * The minimum size of the list item.
164
163
  */
165
- minSize: number
166
- /**
164
+ minSize: number /**
167
165
  * An array of the list item size. If it is not defined, the list items will render with the `minSize` size.
168
166
  */;
169
167
  size: number[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enact/ui",
3
- "version": "4.7.6",
3
+ "version": "4.7.8",
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.6",
34
+ "@enact/core": "^4.7.8",
35
35
  "classnames": "^2.3.2",
36
36
  "direction": "^1.0.4",
37
37
  "invariant": "^2.2.4",
@@ -17,11 +17,11 @@ screen types.
17
17
  export interface ResolutionDecoratorProps {}
18
18
  export function ResolutionDecorator<P>(
19
19
  config: ResolutionDecoratorConfig,
20
- Component: React.ComponentType<P> | string
20
+ Component: React.ComponentType<P> | string,
21
21
  ): React.ComponentType<P & ResolutionDecoratorProps>;
22
22
 
23
23
  export function ResolutionDecorator<P>(
24
- Component: React.ComponentType<P> | string
24
+ Component: React.ComponentType<P> | string,
25
25
  ): React.ComponentType<P & ResolutionDecoratorProps>;
26
26
 
27
27
  /**
@@ -143,12 +143,10 @@ export interface selectSrcOptions {
143
143
  /**
144
144
  * HD / 720p Resolution image asset source URI/URL
145
145
  */
146
- hd?: string
147
- /**
146
+ hd?: string /**
148
147
  * FHD / 1080p Resolution image asset source URI/URL
149
148
  */;
150
- fhd?: string
151
- /**
149
+ fhd?: string /**
152
150
  * UHD / 4K Resolution image asset source URI/URL
153
151
  */;
154
152
  uhd?: string;
@@ -179,7 +177,7 @@ const src = {
179
177
  ```
180
178
  */
181
179
  export function selectSrc(
182
- src: string | ui_resolution_selectSrcSrcOptions
180
+ src: string | ui_resolution_selectSrcSrcOptions,
183
181
  ): string;
184
182
  /**
185
183
  * This will need to be re-run any time the screen size changes, so all the values can be re-cached.