@automattic/jetpack-components 0.53.4 → 0.53.6
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 +10 -0
- package/components/terms-of-service/index.tsx +25 -5
- package/package.json +2 -2
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.53.6] - 2024-05-30
|
|
6
|
+
### Changed
|
|
7
|
+
- Connection: Update connection ToS messaging slightly [#37536]
|
|
8
|
+
|
|
9
|
+
## [0.53.5] - 2024-05-23
|
|
10
|
+
### Changed
|
|
11
|
+
- Updated package dependencies. [#36964]
|
|
12
|
+
|
|
5
13
|
## [0.53.4] - 2024-05-22
|
|
6
14
|
### Changed
|
|
7
15
|
- Internal updates.
|
|
@@ -1043,6 +1051,8 @@
|
|
|
1043
1051
|
### Changed
|
|
1044
1052
|
- Update node version requirement to 14.16.1
|
|
1045
1053
|
|
|
1054
|
+
[0.53.6]: https://github.com/Automattic/jetpack-components/compare/0.53.5...0.53.6
|
|
1055
|
+
[0.53.5]: https://github.com/Automattic/jetpack-components/compare/0.53.4...0.53.5
|
|
1046
1056
|
[0.53.4]: https://github.com/Automattic/jetpack-components/compare/0.53.3...0.53.4
|
|
1047
1057
|
[0.53.3]: https://github.com/Automattic/jetpack-components/compare/0.53.2...0.53.3
|
|
1048
1058
|
[0.53.2]: https://github.com/Automattic/jetpack-components/compare/0.53.1...0.53.2
|
|
@@ -13,17 +13,36 @@ const TermsOfService: React.FC< TermsOfServiceProps > = ( {
|
|
|
13
13
|
} ) => (
|
|
14
14
|
<Text className={ classNames( className, 'terms-of-service' ) }>
|
|
15
15
|
{ multipleButtons ? (
|
|
16
|
-
<MultipleButtonsText />
|
|
16
|
+
<MultipleButtonsText multipleButtonsLabels={ multipleButtons } />
|
|
17
17
|
) : (
|
|
18
18
|
<SingleButtonText agreeButtonLabel={ agreeButtonLabel } />
|
|
19
19
|
) }
|
|
20
20
|
</Text>
|
|
21
21
|
);
|
|
22
22
|
|
|
23
|
-
const MultipleButtonsText = () =>
|
|
24
|
-
|
|
23
|
+
const MultipleButtonsText = ( { multipleButtonsLabels } ) => {
|
|
24
|
+
if ( Array.isArray( multipleButtonsLabels ) && multipleButtonsLabels.length > 1 ) {
|
|
25
|
+
return createInterpolateElement(
|
|
26
|
+
sprintf(
|
|
27
|
+
/* translators: %1$s is button label 1 and %2$s is button label 2 */
|
|
28
|
+
__(
|
|
29
|
+
'By clicking <strong>%1$s</strong> or <strong>%2$s</strong>, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>sync your site‘s data</shareDetailsLink> with us.',
|
|
30
|
+
'jetpack'
|
|
31
|
+
),
|
|
32
|
+
multipleButtonsLabels[ 0 ],
|
|
33
|
+
multipleButtonsLabels[ 1 ]
|
|
34
|
+
),
|
|
35
|
+
{
|
|
36
|
+
strong: <strong />,
|
|
37
|
+
tosLink: <Link slug="wpcom-tos" />,
|
|
38
|
+
shareDetailsLink: <Link slug="jetpack-support-what-data-does-jetpack-sync" />,
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return createInterpolateElement(
|
|
25
44
|
__(
|
|
26
|
-
'By clicking the buttons above, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>
|
|
45
|
+
'By clicking the buttons above, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>sync your site‘s data</shareDetailsLink> with us.',
|
|
27
46
|
'jetpack'
|
|
28
47
|
),
|
|
29
48
|
{
|
|
@@ -31,13 +50,14 @@ const MultipleButtonsText = () =>
|
|
|
31
50
|
shareDetailsLink: <Link slug="jetpack-support-what-data-does-jetpack-sync" />,
|
|
32
51
|
}
|
|
33
52
|
);
|
|
53
|
+
};
|
|
34
54
|
|
|
35
55
|
const SingleButtonText = ( { agreeButtonLabel } ) =>
|
|
36
56
|
createInterpolateElement(
|
|
37
57
|
sprintf(
|
|
38
58
|
/* translators: %s is a button label */
|
|
39
59
|
__(
|
|
40
|
-
'By clicking
|
|
60
|
+
'By clicking <strong>%s</strong>, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>sync your site‘s data</shareDetailsLink> with us.',
|
|
41
61
|
'jetpack'
|
|
42
62
|
),
|
|
43
63
|
agreeButtonLabel
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/jetpack-components",
|
|
3
|
-
"version": "0.53.
|
|
3
|
+
"version": "0.53.6",
|
|
4
4
|
"description": "Jetpack Components Package",
|
|
5
5
|
"author": "Automattic",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"prop-types": "^15.7.2",
|
|
31
31
|
"qrcode.react": "3.1.0",
|
|
32
32
|
"react-slider": "2.0.5",
|
|
33
|
-
"social-logos": "
|
|
33
|
+
"social-logos": "^3.0.1",
|
|
34
34
|
"uplot": "1.6.24",
|
|
35
35
|
"uplot-react": "1.1.4"
|
|
36
36
|
},
|