@automattic/jetpack-components 1.1.17 → 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 +13 -0
- package/build/components/admin-page/index.js +1 -1
- package/build/components/boost-score-graph/tooltip.js +2 -2
- package/build/components/pricing-card/index.js +1 -1
- package/build/components/pricing-table/index.js +2 -2
- package/build/components/product-offer/index.js +1 -1
- package/components/admin-page/index.tsx +1 -1
- package/components/boost-score-graph/tooltip.tsx +6 -6
- package/components/pricing-card/index.tsx +1 -1
- package/components/pricing-table/index.tsx +2 -2
- package/components/product-offer/index.tsx +1 -1
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
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
|
+
|
|
9
|
+
## [1.1.18] - 2025-08-11
|
|
10
|
+
### Changed
|
|
11
|
+
- Update package dependencies. [#44677]
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
- I18n: Improve context hints in comments for translators. [#44686]
|
|
15
|
+
|
|
5
16
|
## [1.1.17] - 2025-08-04
|
|
6
17
|
### Changed
|
|
7
18
|
- Internal updates.
|
|
@@ -1493,6 +1504,8 @@
|
|
|
1493
1504
|
### Changed
|
|
1494
1505
|
- Update node version requirement to 14.16.1
|
|
1495
1506
|
|
|
1507
|
+
[1.1.19]: https://github.com/Automattic/jetpack-components/compare/1.1.18...1.1.19
|
|
1508
|
+
[1.1.18]: https://github.com/Automattic/jetpack-components/compare/1.1.17...1.1.18
|
|
1496
1509
|
[1.1.17]: https://github.com/Automattic/jetpack-components/compare/1.1.16...1.1.17
|
|
1497
1510
|
[1.1.16]: https://github.com/Automattic/jetpack-components/compare/1.1.15...1.1.16
|
|
1498
1511
|
[1.1.15]: https://github.com/Automattic/jetpack-components/compare/1.1.14...1.1.15
|
|
@@ -33,7 +33,7 @@ const AdminPage = ({ children, className, moduleName = __('Jetpack', 'jetpack-co
|
|
|
33
33
|
catch (error) {
|
|
34
34
|
// eslint-disable-next-line no-alert
|
|
35
35
|
window.alert(sprintf(
|
|
36
|
-
/* translators:
|
|
36
|
+
/* translators: %s: an error message. */
|
|
37
37
|
__('There was an error testing Jetpack. Error: %s', 'jetpack-components'), error.message));
|
|
38
38
|
}
|
|
39
39
|
}, []);
|
|
@@ -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('
|
|
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('
|
|
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
|
};
|
|
@@ -26,7 +26,7 @@ const PricingCard = ({ currencyCode = 'USD', priceDetails = __('/month, paid yea
|
|
|
26
26
|
const currencyObjectBefore = getCurrencyObject(props.priceBefore, currencyCode);
|
|
27
27
|
const currencyObjectAfter = getCurrencyObject(props.priceAfter, currencyCode);
|
|
28
28
|
return (_jsxs("div", { className: "jp-components__pricing-card", children: [props.icon && (_jsx("div", { className: "jp-components__pricing-card__icon", children: 'string' === typeof props.icon ? (_jsx("img", { src: props.icon, alt: sprintf(
|
|
29
|
-
/* translators:
|
|
29
|
+
/* translators: %s: the product name */
|
|
30
30
|
__('Icon for the product %s', 'jetpack-components'), props.title) })) : (props.icon) })), _jsx("h1", { className: "jp-components__pricing-card__title", children: props.title }), _jsxs("div", { className: "jp-components__pricing-card__pricing", children: [props.priceAfter === 0 && _jsx(LoadingPlaceholder, { width: "100%", height: 48 }), props.priceBefore !== props.priceAfter && props.priceAfter > 0 && (_jsxs("div", { className: "jp-components__pricing-card__price-before", children: [_jsx("span", { className: "jp-components__pricing-card__currency", children: currencyObjectBefore.symbol }), _jsx("span", { className: "jp-components__pricing-card__price", children: currencyObjectBefore.integer }), showPriceDecimals(currencyObjectBefore) && (_jsxs("span", { className: "jp-components__pricing-card__price-decimal", children: [' ', currencyObjectBefore.fraction] })), _jsx("div", { className: "jp-components__pricing-card__price-strikethrough" })] })), props.priceAfter > 0 && (_jsxs(_Fragment, { children: [_jsxs("div", { className: "jp-components__pricing-card__price-after", children: [_jsx("span", { className: "jp-components__pricing-card__currency", children: currencyObjectAfter.symbol }), _jsx("span", { className: "jp-components__pricing-card__price", children: currencyObjectAfter.integer }), showPriceDecimals(currencyObjectAfter) && (_jsx("span", { className: "jp-components__pricing-card__price-decimal", children: currencyObjectAfter.fraction }))] }), _jsx("span", { className: "jp-components__pricing-card__price-details", children: priceDetails })] }))] }), props.children && (_jsx("div", { className: "jp-components__pricing-card__extra-content-wrapper", children: props.children })), props.tosText && _jsx("div", { className: "jp-components__pricing-card__tos", children: props.tosText }), props.ctaText && (_jsxs(_Fragment, { children: [!props.tosText && (_jsx("div", { className: "jp-components__pricing-card__tos", children: _jsx(TermsOfService, { agreeButtonLabel: props.ctaText }) })), _jsx("div", { className: "jp-components__pricing-card__cta", children: _jsx(Button, { className: "jp-components__pricing-card__button", label: props.ctaText, onClick: props.onCtaClick, children: props.ctaText }) })] })), props.infoText && (_jsx("div", { className: "jp-components__pricing-card__info", children: props.infoText }))] }));
|
|
31
31
|
};
|
|
32
32
|
export default PricingCard;
|
|
@@ -16,7 +16,7 @@ const getItemLabels = (isComingSoon, isIncluded, featureNameLabel) => {
|
|
|
16
16
|
if (isComingSoon) {
|
|
17
17
|
return {
|
|
18
18
|
lg: COMING_SOON_TEXT,
|
|
19
|
-
// translators: Name of the current feature
|
|
19
|
+
// translators: %s: Name of the current feature
|
|
20
20
|
default: sprintf(__('%s coming soon', 'jetpack-components'), featureNameLabel),
|
|
21
21
|
};
|
|
22
22
|
}
|
|
@@ -25,7 +25,7 @@ const getItemLabels = (isComingSoon, isIncluded, featureNameLabel) => {
|
|
|
25
25
|
default: isIncluded
|
|
26
26
|
? featureNameLabel
|
|
27
27
|
: sprintf(
|
|
28
|
-
/* translators: Name of the current feature */
|
|
28
|
+
/* translators: %s: Name of the current feature */
|
|
29
29
|
__('%s not included', 'jetpack-components'), featureNameLabel),
|
|
30
30
|
};
|
|
31
31
|
};
|
|
@@ -20,7 +20,7 @@ const ProductOffer = ({ addProductUrl, buttonDisclaimer, buttonText = '', classN
|
|
|
20
20
|
const { isFree, price, currency, offPrice } = pricing;
|
|
21
21
|
const needsPurchase = !isFree && !hasRequiredPlan;
|
|
22
22
|
const defautlButtonText = sprintf(
|
|
23
|
-
/* translators:
|
|
23
|
+
/* translators: %s: the product name. */
|
|
24
24
|
__('Add %s', 'jetpack-components'), title);
|
|
25
25
|
return (_jsxs("div", { className: clsx(styles.wrapper, className, {
|
|
26
26
|
[styles['is-bundle-card']]: isBundle,
|
|
@@ -52,7 +52,7 @@ const AdminPage: FC< AdminPageProps > = ( {
|
|
|
52
52
|
// eslint-disable-next-line no-alert
|
|
53
53
|
window.alert(
|
|
54
54
|
sprintf(
|
|
55
|
-
/* translators:
|
|
55
|
+
/* translators: %s: an error message. */
|
|
56
56
|
__( 'There was an error testing Jetpack. Error: %s', 'jetpack-components' ),
|
|
57
57
|
error.message
|
|
58
58
|
)
|
|
@@ -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( '
|
|
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( '
|
|
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( '
|
|
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( '
|
|
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( '
|
|
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( '
|
|
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>
|
|
@@ -43,7 +43,7 @@ const PricingCard: FC< PricingCardProps > = ( {
|
|
|
43
43
|
<img
|
|
44
44
|
src={ props.icon }
|
|
45
45
|
alt={ sprintf(
|
|
46
|
-
/* translators:
|
|
46
|
+
/* translators: %s: the product name */
|
|
47
47
|
__( 'Icon for the product %s', 'jetpack-components' ),
|
|
48
48
|
props.title
|
|
49
49
|
) }
|
|
@@ -33,7 +33,7 @@ const getItemLabels = ( isComingSoon, isIncluded, featureNameLabel ) => {
|
|
|
33
33
|
if ( isComingSoon ) {
|
|
34
34
|
return {
|
|
35
35
|
lg: COMING_SOON_TEXT,
|
|
36
|
-
// translators: Name of the current feature
|
|
36
|
+
// translators: %s: Name of the current feature
|
|
37
37
|
default: sprintf( __( '%s coming soon', 'jetpack-components' ), featureNameLabel ),
|
|
38
38
|
};
|
|
39
39
|
}
|
|
@@ -43,7 +43,7 @@ const getItemLabels = ( isComingSoon, isIncluded, featureNameLabel ) => {
|
|
|
43
43
|
default: isIncluded
|
|
44
44
|
? featureNameLabel
|
|
45
45
|
: sprintf(
|
|
46
|
-
/* translators: Name of the current feature */
|
|
46
|
+
/* translators: %s: Name of the current feature */
|
|
47
47
|
__( '%s not included', 'jetpack-components' ),
|
|
48
48
|
featureNameLabel
|
|
49
49
|
),
|
|
@@ -42,7 +42,7 @@ const ProductOffer: FC< ProductOfferProps > = ( {
|
|
|
42
42
|
const needsPurchase = ! isFree && ! hasRequiredPlan;
|
|
43
43
|
|
|
44
44
|
const defautlButtonText = sprintf(
|
|
45
|
-
/* translators:
|
|
45
|
+
/* translators: %s: the product name. */
|
|
46
46
|
__( 'Add %s', 'jetpack-components' ),
|
|
47
47
|
title
|
|
48
48
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/jetpack-components",
|
|
3
|
-
"version": "1.1.
|
|
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.
|
|
45
|
-
"@automattic/jetpack-boost-score-api": "^1.0.
|
|
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.
|
|
50
|
-
"@wordpress/components": "
|
|
51
|
-
"@wordpress/compose": "7.
|
|
52
|
-
"@wordpress/data": "10.
|
|
53
|
-
"@wordpress/date": "5.
|
|
54
|
-
"@wordpress/element": "6.
|
|
55
|
-
"@wordpress/i18n": "
|
|
56
|
-
"@wordpress/icons": "10.
|
|
57
|
-
"@wordpress/notices": "5.
|
|
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.
|
|
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",
|