@automattic/jetpack-components 0.55.2 → 0.55.4
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,14 @@
|
|
|
2
2
|
|
|
3
3
|
### This is a list detailing changes for the Jetpack RNA Components package releases.
|
|
4
4
|
|
|
5
|
+
## [0.55.4] - 2024-08-01
|
|
6
|
+
### Added
|
|
7
|
+
- Update Welcome Banner and set async site-only connection [#38534]
|
|
8
|
+
|
|
9
|
+
## [0.55.3] - 2024-07-30
|
|
10
|
+
### Changed
|
|
11
|
+
- React: Changing global JSX namespace to React.JSX [#38585]
|
|
12
|
+
|
|
5
13
|
## [0.55.2] - 2024-07-26
|
|
6
14
|
### Added
|
|
7
15
|
- Export button props type to be used elsewhere [#38549]
|
|
@@ -1102,6 +1110,8 @@
|
|
|
1102
1110
|
### Changed
|
|
1103
1111
|
- Update node version requirement to 14.16.1
|
|
1104
1112
|
|
|
1113
|
+
[0.55.4]: https://github.com/Automattic/jetpack-components/compare/0.55.3...0.55.4
|
|
1114
|
+
[0.55.3]: https://github.com/Automattic/jetpack-components/compare/0.55.2...0.55.3
|
|
1105
1115
|
[0.55.2]: https://github.com/Automattic/jetpack-components/compare/0.55.1...0.55.2
|
|
1106
1116
|
[0.55.1]: https://github.com/Automattic/jetpack-components/compare/0.55.0...0.55.1
|
|
1107
1117
|
[0.55.0]: https://github.com/Automattic/jetpack-components/compare/0.54.4...0.55.0
|
|
@@ -9,7 +9,7 @@ interface StatusProps {
|
|
|
9
9
|
className?: string;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
const Status = ( { className, label, status = 'inactive' }: StatusProps ): JSX.Element => {
|
|
12
|
+
const Status = ( { className, label, status = 'inactive' }: StatusProps ): React.JSX.Element => {
|
|
13
13
|
const defaultLabels: Record< string, string > = {
|
|
14
14
|
active: __( 'Active', 'jetpack' ),
|
|
15
15
|
error: __( 'Error', 'jetpack' ),
|
|
@@ -10,8 +10,9 @@ const TermsOfService: React.FC< TermsOfServiceProps > = ( {
|
|
|
10
10
|
className,
|
|
11
11
|
multipleButtons,
|
|
12
12
|
agreeButtonLabel,
|
|
13
|
+
...textProps
|
|
13
14
|
} ) => (
|
|
14
|
-
<Text className={ clsx( className, 'terms-of-service' ) }>
|
|
15
|
+
<Text className={ clsx( className, 'terms-of-service' ) } { ...textProps }>
|
|
15
16
|
{ multipleButtons ? (
|
|
16
17
|
<MultipleButtonsText multipleButtonsLabels={ multipleButtons } />
|
|
17
18
|
) : (
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { TextProps } from '../text/types';
|
|
2
|
+
|
|
1
3
|
type MultipleButtonsProps = {
|
|
2
4
|
/**
|
|
3
5
|
* Indicates whether there are multiple buttons present that would imply agreement if clicked.
|
|
@@ -22,9 +24,24 @@ type SingleButtonProps = {
|
|
|
22
24
|
agreeButtonLabel: string;
|
|
23
25
|
};
|
|
24
26
|
|
|
25
|
-
export type TermsOfServiceProps =
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
export type TermsOfServiceProps = Pick<
|
|
28
|
+
TextProps,
|
|
29
|
+
| 'variant'
|
|
30
|
+
| 'm'
|
|
31
|
+
| 'mt'
|
|
32
|
+
| 'mr'
|
|
33
|
+
| 'mb'
|
|
34
|
+
| 'ml'
|
|
35
|
+
| 'mx'
|
|
36
|
+
| 'my'
|
|
37
|
+
| 'p'
|
|
38
|
+
| 'pt'
|
|
39
|
+
| 'pr'
|
|
40
|
+
| 'pb'
|
|
41
|
+
| 'pl'
|
|
42
|
+
| 'px'
|
|
43
|
+
| 'py'
|
|
44
|
+
| 'className'
|
|
45
|
+
| 'component'
|
|
46
|
+
> &
|
|
47
|
+
( MultipleButtonsProps | SingleButtonProps );
|