@automattic/jetpack-components 1.1.18 → 1.1.19

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
+ ## [1.1.19] - 2025-08-13
6
+ ### Changed
7
+ - Update package dependencies. [#44701]
8
+
5
9
  ## [1.1.18] - 2025-08-11
6
10
  ### Changed
7
11
  - Update package dependencies. [#44677]
@@ -1500,6 +1504,7 @@
1500
1504
  ### Changed
1501
1505
  - Update node version requirement to 14.16.1
1502
1506
 
1507
+ [1.1.19]: https://github.com/Automattic/jetpack-components/compare/1.1.18...1.1.19
1503
1508
  [1.1.18]: https://github.com/Automattic/jetpack-components/compare/1.1.17...1.1.18
1504
1509
  [1.1.17]: https://github.com/Automattic/jetpack-components/compare/1.1.16...1.1.17
1505
1510
  [1.1.16]: https://github.com/Automattic/jetpack-components/compare/1.1.15...1.1.16
@@ -16,7 +16,7 @@ export const Tooltip = ({ period }) => {
16
16
  }
17
17
  return (_jsxs("div", { className: "jb-score-tooltip", children: [_jsx("div", { className: "jb-score-tooltip__date", children: date }), _jsxs("div", { className: "jb-score-tooltip__row", children: [_jsx("div", { className: "jb-score-tooltip__column", children: __('Overall score', 'jetpack-components') }), _jsx("div", { className: "jb-score-tooltip__column", children: scoreLetter })] }), _jsx("hr", {}), _jsxs("div", { className: "jb-score-tooltip__row", children: [_jsx("div", { className: "jb-score-tooltip__column", children: __('Desktop score', 'jetpack-components') }), _jsx("div", { className: "jb-score-tooltip__column", children:
18
18
  /* translators: %d is the score */
19
- sprintf(__('%d / 100', 'jetpack-components'), desktop_overall_score) })] }), typeof desktop_lcp === 'number' && (_jsxs("div", { className: "jb-score-tooltip__row jb-score-tooltip__row--secondary", children: [_jsx("div", { className: "jb-score-tooltip__column", children: __('Largest Contentful Paint', 'jetpack-components') }), _jsx("div", { className: "jb-score-tooltip__column", children: sprintf('%0.2fs', desktop_lcp) })] })), typeof desktop_tbt === 'number' && (_jsxs("div", { className: "jb-score-tooltip__row jb-score-tooltip__row--secondary", children: [_jsx("div", { className: "jb-score-tooltip__column", children: __('Total Blocking Time', 'jetpack-components') }), _jsx("div", { className: "jb-score-tooltip__column", children: sprintf('%0.2fs', desktop_tbt) })] })), typeof desktop_cls === 'number' && (_jsxs("div", { className: "jb-score-tooltip__row jb-score-tooltip__row--secondary", children: [_jsx("div", { className: "jb-score-tooltip__column", children: __('Cumulative Layout Shift', 'jetpack-components') }), _jsx("div", { className: "jb-score-tooltip__column", children: sprintf('%0.2f', desktop_cls) })] })), _jsx("hr", {}), _jsxs("div", { className: "jb-score-tooltip__row", children: [_jsx("div", { className: "jb-score-tooltip__column", children: __('Mobile score', 'jetpack-components') }), _jsx("div", { className: "jb-score-tooltip__column", children:
19
+ sprintf(__('%d / 100', 'jetpack-components'), desktop_overall_score) })] }), typeof desktop_lcp === 'number' && (_jsxs("div", { className: "jb-score-tooltip__row jb-score-tooltip__row--secondary", children: [_jsx("div", { className: "jb-score-tooltip__column", children: __('Largest Contentful Paint', 'jetpack-components') }), _jsx("div", { className: "jb-score-tooltip__column", children: sprintf('%.2fs', desktop_lcp) })] })), typeof desktop_tbt === 'number' && (_jsxs("div", { className: "jb-score-tooltip__row jb-score-tooltip__row--secondary", children: [_jsx("div", { className: "jb-score-tooltip__column", children: __('Total Blocking Time', 'jetpack-components') }), _jsx("div", { className: "jb-score-tooltip__column", children: sprintf('%.2fs', desktop_tbt) })] })), typeof desktop_cls === 'number' && (_jsxs("div", { className: "jb-score-tooltip__row jb-score-tooltip__row--secondary", children: [_jsx("div", { className: "jb-score-tooltip__column", children: __('Cumulative Layout Shift', 'jetpack-components') }), _jsx("div", { className: "jb-score-tooltip__column", children: sprintf('%.2f', desktop_cls) })] })), _jsx("hr", {}), _jsxs("div", { className: "jb-score-tooltip__row", children: [_jsx("div", { className: "jb-score-tooltip__column", children: __('Mobile score', 'jetpack-components') }), _jsx("div", { className: "jb-score-tooltip__column", children:
20
20
  /* translators: %d is the score */
21
- sprintf(__('%d / 100', 'jetpack-components'), mobile_overall_score) })] }), typeof mobile_lcp === 'number' && (_jsxs("div", { className: "jb-score-tooltip__row jb-score-tooltip__row--secondary", children: [_jsx("div", { className: "jb-score-tooltip__column", children: __('Largest Contentful Paint', 'jetpack-components') }), _jsx("div", { className: "jb-score-tooltip__column", children: sprintf('%0.2fs', mobile_lcp) })] })), typeof mobile_tbt === 'number' && (_jsxs("div", { className: "jb-score-tooltip__row jb-score-tooltip__row--secondary", children: [_jsx("div", { className: "jb-score-tooltip__column", children: __('Total Blocking Time', 'jetpack-components') }), _jsx("div", { className: "jb-score-tooltip__column", children: sprintf('%0.2fs', mobile_tbt) })] })), typeof mobile_cls === 'number' && (_jsxs("div", { className: "jb-score-tooltip__row jb-score-tooltip__row--secondary", children: [_jsx("div", { className: "jb-score-tooltip__column", children: __('Cumulative Layout Shift', 'jetpack-components') }), _jsx("div", { className: "jb-score-tooltip__column", children: sprintf('%0.2f', mobile_cls) })] })), _jsx("div", { className: "jb-score-tooltip__pointer" })] }));
21
+ sprintf(__('%d / 100', 'jetpack-components'), mobile_overall_score) })] }), typeof mobile_lcp === 'number' && (_jsxs("div", { className: "jb-score-tooltip__row jb-score-tooltip__row--secondary", children: [_jsx("div", { className: "jb-score-tooltip__column", children: __('Largest Contentful Paint', 'jetpack-components') }), _jsx("div", { className: "jb-score-tooltip__column", children: sprintf('%.2fs', mobile_lcp) })] })), typeof mobile_tbt === 'number' && (_jsxs("div", { className: "jb-score-tooltip__row jb-score-tooltip__row--secondary", children: [_jsx("div", { className: "jb-score-tooltip__column", children: __('Total Blocking Time', 'jetpack-components') }), _jsx("div", { className: "jb-score-tooltip__column", children: sprintf('%.2fs', mobile_tbt) })] })), typeof mobile_cls === 'number' && (_jsxs("div", { className: "jb-score-tooltip__row jb-score-tooltip__row--secondary", children: [_jsx("div", { className: "jb-score-tooltip__column", children: __('Cumulative Layout Shift', 'jetpack-components') }), _jsx("div", { className: "jb-score-tooltip__column", children: sprintf('%.2f', mobile_cls) })] })), _jsx("div", { className: "jb-score-tooltip__pointer" })] }));
22
22
  };
@@ -53,7 +53,7 @@ export const Tooltip: FunctionComponent = ( { period }: { period: Period } ) =>
53
53
  <div className="jb-score-tooltip__column">
54
54
  { __( 'Largest Contentful Paint', 'jetpack-components' ) }
55
55
  </div>
56
- <div className="jb-score-tooltip__column">{ sprintf( '%0.2fs', desktop_lcp ) }</div>
56
+ <div className="jb-score-tooltip__column">{ sprintf( '%.2fs', desktop_lcp ) }</div>
57
57
  </div>
58
58
  ) }
59
59
  { typeof desktop_tbt === 'number' && (
@@ -61,7 +61,7 @@ export const Tooltip: FunctionComponent = ( { period }: { period: Period } ) =>
61
61
  <div className="jb-score-tooltip__column">
62
62
  { __( 'Total Blocking Time', 'jetpack-components' ) }
63
63
  </div>
64
- <div className="jb-score-tooltip__column">{ sprintf( '%0.2fs', desktop_tbt ) }</div>
64
+ <div className="jb-score-tooltip__column">{ sprintf( '%.2fs', desktop_tbt ) }</div>
65
65
  </div>
66
66
  ) }
67
67
  { typeof desktop_cls === 'number' && (
@@ -69,7 +69,7 @@ export const Tooltip: FunctionComponent = ( { period }: { period: Period } ) =>
69
69
  <div className="jb-score-tooltip__column">
70
70
  { __( 'Cumulative Layout Shift', 'jetpack-components' ) }
71
71
  </div>
72
- <div className="jb-score-tooltip__column">{ sprintf( '%0.2f', desktop_cls ) }</div>
72
+ <div className="jb-score-tooltip__column">{ sprintf( '%.2f', desktop_cls ) }</div>
73
73
  </div>
74
74
  ) }
75
75
  <hr />
@@ -89,7 +89,7 @@ export const Tooltip: FunctionComponent = ( { period }: { period: Period } ) =>
89
89
  <div className="jb-score-tooltip__column">
90
90
  { __( 'Largest Contentful Paint', 'jetpack-components' ) }
91
91
  </div>
92
- <div className="jb-score-tooltip__column">{ sprintf( '%0.2fs', mobile_lcp ) }</div>
92
+ <div className="jb-score-tooltip__column">{ sprintf( '%.2fs', mobile_lcp ) }</div>
93
93
  </div>
94
94
  ) }
95
95
  { typeof mobile_tbt === 'number' && (
@@ -97,7 +97,7 @@ export const Tooltip: FunctionComponent = ( { period }: { period: Period } ) =>
97
97
  <div className="jb-score-tooltip__column">
98
98
  { __( 'Total Blocking Time', 'jetpack-components' ) }
99
99
  </div>
100
- <div className="jb-score-tooltip__column">{ sprintf( '%0.2fs', mobile_tbt ) }</div>
100
+ <div className="jb-score-tooltip__column">{ sprintf( '%.2fs', mobile_tbt ) }</div>
101
101
  </div>
102
102
  ) }
103
103
  { typeof mobile_cls === 'number' && (
@@ -105,7 +105,7 @@ export const Tooltip: FunctionComponent = ( { period }: { period: Period } ) =>
105
105
  <div className="jb-score-tooltip__column">
106
106
  { __( 'Cumulative Layout Shift', 'jetpack-components' ) }
107
107
  </div>
108
- <div className="jb-score-tooltip__column">{ sprintf( '%0.2f', mobile_cls ) }</div>
108
+ <div className="jb-score-tooltip__column">{ sprintf( '%.2f', mobile_cls ) }</div>
109
109
  </div>
110
110
  ) }
111
111
  <div className="jb-score-tooltip__pointer"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/jetpack-components",
3
- "version": "1.1.18",
3
+ "version": "1.1.19",
4
4
  "description": "Jetpack Components Package",
5
5
  "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/components/#readme",
6
6
  "bugs": {
@@ -41,20 +41,20 @@
41
41
  ],
42
42
  "dependencies": {
43
43
  "@automattic/format-currency": "1.0.1",
44
- "@automattic/jetpack-api": "^1.0.7",
45
- "@automattic/jetpack-boost-score-api": "^1.0.9",
44
+ "@automattic/jetpack-api": "^1.0.8",
45
+ "@automattic/jetpack-boost-score-api": "^1.0.10",
46
46
  "@automattic/jetpack-script-data": "^0.5.1",
47
47
  "@automattic/number-formatters": "^1.0.10",
48
48
  "@babel/runtime": "^7",
49
- "@wordpress/browserslist-config": "6.27.0",
50
- "@wordpress/components": "30.0.0",
51
- "@wordpress/compose": "7.27.0",
52
- "@wordpress/data": "10.27.0",
53
- "@wordpress/date": "5.27.0",
54
- "@wordpress/element": "6.27.0",
55
- "@wordpress/i18n": "6.0.0",
56
- "@wordpress/icons": "10.27.0",
57
- "@wordpress/notices": "5.27.0",
49
+ "@wordpress/browserslist-config": "6.28.0",
50
+ "@wordpress/components": "30.1.0",
51
+ "@wordpress/compose": "7.28.0",
52
+ "@wordpress/data": "10.28.0",
53
+ "@wordpress/date": "5.28.0",
54
+ "@wordpress/element": "6.28.0",
55
+ "@wordpress/i18n": "6.1.0",
56
+ "@wordpress/icons": "10.28.0",
57
+ "@wordpress/notices": "5.28.0",
58
58
  "clsx": "2.1.1",
59
59
  "prop-types": "^15.7.2",
60
60
  "qrcode.react": "4.2.0",
@@ -64,7 +64,7 @@
64
64
  "uplot-react": "1.1.4"
65
65
  },
66
66
  "devDependencies": {
67
- "@automattic/jetpack-base-styles": "^1.0.7",
67
+ "@automattic/jetpack-base-styles": "^1.0.8",
68
68
  "@babel/core": "7.28.0",
69
69
  "@babel/preset-react": "7.27.1",
70
70
  "@jest/globals": "30.0.4",