@automattic/jetpack-components 0.53.5 → 0.53.7

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.53.7] - 2024-06-05
6
+ ### Changed
7
+ - Updated package dependencies. [#37669]
8
+
9
+ ## [0.53.6] - 2024-05-30
10
+ ### Changed
11
+ - Connection: Update connection ToS messaging slightly [#37536]
12
+
5
13
  ## [0.53.5] - 2024-05-23
6
14
  ### Changed
7
15
  - Updated package dependencies. [#36964]
@@ -1047,6 +1055,8 @@
1047
1055
  ### Changed
1048
1056
  - Update node version requirement to 14.16.1
1049
1057
 
1058
+ [0.53.7]: https://github.com/Automattic/jetpack-components/compare/0.53.6...0.53.7
1059
+ [0.53.6]: https://github.com/Automattic/jetpack-components/compare/0.53.5...0.53.6
1050
1060
  [0.53.5]: https://github.com/Automattic/jetpack-components/compare/0.53.4...0.53.5
1051
1061
  [0.53.4]: https://github.com/Automattic/jetpack-components/compare/0.53.3...0.53.4
1052
1062
  [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
- createInterpolateElement(
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>share details</shareDetailsLink> with WordPress.com.',
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 the <strong>%s</strong> button, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>share details</shareDetailsLink> with WordPress.com.',
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.5",
3
+ "version": "0.53.7",
4
4
  "description": "Jetpack Components Package",
5
5
  "author": "Automattic",
6
6
  "license": "GPL-2.0-or-later",
@@ -15,27 +15,27 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@automattic/format-currency": "1.0.1",
18
- "@automattic/jetpack-boost-score-api": "^0.1.30",
18
+ "@automattic/jetpack-boost-score-api": "^0.1.31",
19
19
  "@babel/runtime": "^7",
20
- "@wordpress/browserslist-config": "5.40.0",
21
- "@wordpress/components": "27.5.0",
22
- "@wordpress/compose": "6.34.0",
23
- "@wordpress/data": "9.27.0",
24
- "@wordpress/date": "4.57.0",
25
- "@wordpress/element": "5.34.0",
26
- "@wordpress/i18n": "4.57.0",
27
- "@wordpress/icons": "9.48.0",
28
- "@wordpress/notices": "4.25.0",
20
+ "@wordpress/browserslist-config": "6.0.0",
21
+ "@wordpress/components": "28.0.0",
22
+ "@wordpress/compose": "7.0.0",
23
+ "@wordpress/data": "10.0.0",
24
+ "@wordpress/date": "5.0.0",
25
+ "@wordpress/element": "6.0.0",
26
+ "@wordpress/i18n": "5.0.0",
27
+ "@wordpress/icons": "10.0.0",
28
+ "@wordpress/notices": "5.0.0",
29
29
  "classnames": "2.3.2",
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.0",
33
+ "social-logos": "^3.0.2",
34
34
  "uplot": "1.6.24",
35
35
  "uplot-react": "1.1.4"
36
36
  },
37
37
  "devDependencies": {
38
- "@automattic/jetpack-base-styles": "^0.6.25",
38
+ "@automattic/jetpack-base-styles": "^0.6.26",
39
39
  "@babel/core": "7.24.0",
40
40
  "@babel/preset-react": "7.23.3",
41
41
  "@jest/globals": "29.4.3",