@automattic/jetpack-components 0.53.5 → 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
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
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
|
+
|
|
5
9
|
## [0.53.5] - 2024-05-23
|
|
6
10
|
### Changed
|
|
7
11
|
- Updated package dependencies. [#36964]
|
|
@@ -1047,6 +1051,7 @@
|
|
|
1047
1051
|
### Changed
|
|
1048
1052
|
- Update node version requirement to 14.16.1
|
|
1049
1053
|
|
|
1054
|
+
[0.53.6]: https://github.com/Automattic/jetpack-components/compare/0.53.5...0.53.6
|
|
1050
1055
|
[0.53.5]: https://github.com/Automattic/jetpack-components/compare/0.53.4...0.53.5
|
|
1051
1056
|
[0.53.4]: https://github.com/Automattic/jetpack-components/compare/0.53.3...0.53.4
|
|
1052
1057
|
[0.53.3]: https://github.com/Automattic/jetpack-components/compare/0.53.2...0.53.3
|
|
@@ -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": "^3.0.
|
|
33
|
+
"social-logos": "^3.0.1",
|
|
34
34
|
"uplot": "1.6.24",
|
|
35
35
|
"uplot-react": "1.1.4"
|
|
36
36
|
},
|