@faststore/ui 1.8.51 → 1.9.2

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
@@ -3,6 +3,36 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.9.2](https://github.com/vtex/faststore/compare/v1.9.1...v1.9.2) (2022-06-09)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * some ts errors ([#1352](https://github.com/vtex/faststore/issues/1352)) ([5268188](https://github.com/vtex/faststore/commit/5268188fa984df4ce775c996934a0462a76244ce))
12
+
13
+
14
+
15
+
16
+
17
+ ## 1.9.1 (2022-06-09)
18
+
19
+ **Note:** Version bump only for package @faststore/ui
20
+
21
+
22
+
23
+
24
+
25
+ ## [1.8.52](https://github.com/vtex/faststore/compare/v1.8.51...v1.8.52) (2022-06-03)
26
+
27
+
28
+ ### Features
29
+
30
+ * **ui:** Fix OutOfStock nested components ([#1341](https://github.com/vtex/faststore/issues/1341)) ([0bd85a6](https://github.com/vtex/faststore/commit/0bd85a6bd334c014559eced5a617a1476bfd8171))
31
+
32
+
33
+
34
+
35
+
6
36
  ## 1.8.51 (2022-06-03)
7
37
 
8
38
 
@@ -5,5 +5,7 @@ export declare type SpinnerProps = {
5
5
  */
6
6
  testId?: string;
7
7
  };
8
- declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<HTMLDivElement>>;
8
+ declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & {
9
+ children?: React.ReactNode;
10
+ } & React.RefAttributes<HTMLDivElement>>;
9
11
  export default Spinner;
@@ -6,4 +6,4 @@ export declare type OutOfStockMessageProps = {
6
6
  */
7
7
  as?: 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'div' | 'span';
8
8
  } & OutOfStockBaseProps;
9
- export declare const OutOfStockMessage: ({ as: MessageComponent, testId, children, }: OutOfStockMessageProps) => JSX.Element;
9
+ export declare const OutOfStockMessage: ({ as: MessageComponent, testId, children, ...otherProps }: OutOfStockMessageProps) => JSX.Element;
@@ -6,4 +6,4 @@ export declare type OutOfStockTitleProps = {
6
6
  */
7
7
  as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p';
8
8
  } & OutOfStockBaseProps;
9
- export declare const OutOfStockTitle: ({ as: TitleComponent, testId, children, }: OutOfStockTitleProps) => JSX.Element;
9
+ export declare const OutOfStockTitle: ({ as: TitleComponent, testId, children, ...otherProps }: OutOfStockTitleProps) => JSX.Element;
@@ -1984,23 +1984,25 @@ const OutOfStock = ({
1984
1984
  const OutOfStockMessage = ({
1985
1985
  as: MessageComponent = 'p',
1986
1986
  testId = 'store-out-of-stock-message',
1987
- children
1987
+ children,
1988
+ ...otherProps
1988
1989
  }) => {
1989
- return React__default.createElement(MessageComponent, {
1990
+ return React__default.createElement(MessageComponent, Object.assign({
1990
1991
  "data-out-of-stock-message": true,
1991
1992
  "data-testid": testId
1992
- }, children);
1993
+ }, otherProps), children);
1993
1994
  };
1994
1995
 
1995
1996
  const OutOfStockTitle = ({
1996
1997
  as: TitleComponent = 'h2',
1997
1998
  testId = 'store-out-of-stock-title',
1998
- children
1999
+ children,
2000
+ ...otherProps
1999
2001
  }) => {
2000
- return React__default.createElement(TitleComponent, {
2002
+ return React__default.createElement(TitleComponent, Object.assign({
2001
2003
  "data-out-of-stock-title": true,
2002
2004
  "data-testid": testId
2003
- }, children);
2005
+ }, otherProps), children);
2004
2006
  };
2005
2007
 
2006
2008
  const Hero = /*#__PURE__*/React.forwardRef(function Hero({