@automattic/jetpack-components 1.1.17 → 1.1.18
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 +8 -0
- package/build/components/admin-page/index.js +1 -1
- 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/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,13 @@
|
|
|
2
2
|
|
|
3
3
|
### This is a list detailing changes for the Jetpack RNA Components package releases.
|
|
4
4
|
|
|
5
|
+
## [1.1.18] - 2025-08-11
|
|
6
|
+
### Changed
|
|
7
|
+
- Update package dependencies. [#44677]
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
- I18n: Improve context hints in comments for translators. [#44686]
|
|
11
|
+
|
|
5
12
|
## [1.1.17] - 2025-08-04
|
|
6
13
|
### Changed
|
|
7
14
|
- Internal updates.
|
|
@@ -1493,6 +1500,7 @@
|
|
|
1493
1500
|
### Changed
|
|
1494
1501
|
- Update node version requirement to 14.16.1
|
|
1495
1502
|
|
|
1503
|
+
[1.1.18]: https://github.com/Automattic/jetpack-components/compare/1.1.17...1.1.18
|
|
1496
1504
|
[1.1.17]: https://github.com/Automattic/jetpack-components/compare/1.1.16...1.1.17
|
|
1497
1505
|
[1.1.16]: https://github.com/Automattic/jetpack-components/compare/1.1.15...1.1.16
|
|
1498
1506
|
[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
|
}, []);
|
|
@@ -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
|
)
|
|
@@ -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.18",
|
|
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.7",
|
|
45
|
+
"@automattic/jetpack-boost-score-api": "^1.0.9",
|
|
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.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",
|
|
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.7",
|
|
68
68
|
"@babel/core": "7.28.0",
|
|
69
69
|
"@babel/preset-react": "7.27.1",
|
|
70
70
|
"@jest/globals": "30.0.4",
|