@automattic/jetpack-components 1.11.2 → 1.12.0
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 +20 -0
- package/build/components/admin-page/style.module.scss +25 -9
- package/build/components/contextual-upgrade-trigger/index.d.ts +15 -0
- package/build/components/contextual-upgrade-trigger/index.js +15 -0
- package/build/components/jetpack-footer/index.js +1 -2
- package/build/components/jetpack-footer/types.d.ts +0 -1
- package/build/components/pricing-card/index.js +1 -1
- package/build/components/terms-of-service/index.js +5 -1
- package/build/components/upsell-banner/index.js +1 -1
- package/components/admin-page/style.module.scss +25 -9
- package/components/contextual-upgrade-trigger/index.tsx +15 -0
- package/components/jetpack-footer/index.tsx +4 -10
- package/components/jetpack-footer/types.ts +0 -1
- package/components/pricing-card/index.tsx +1 -1
- package/components/terms-of-service/index.tsx +5 -1
- package/components/upsell-banner/index.tsx +1 -1
- package/package.json +30 -18
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
### This is a list detailing changes for the Jetpack RNA Components package releases.
|
|
4
4
|
|
|
5
|
+
## [1.12.0] - 2026-05-25
|
|
6
|
+
### Added
|
|
7
|
+
- Add subpath exports for `Button`, `PricingTable`, and `ProductPrice` so they can be imported directly from bundles that cannot import the package barrel. [#49063]
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
- Replace self-imports via package name with relative imports to remove circular-dep risk. [#49096]
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- AdminPage: Update the header-height tab-shift rule so it keeps matching after `@wordpress/admin-ui` 2.1 changed the page header element from `<header>` to `<div>`. [#49101]
|
|
14
|
+
- AdminPage: Keep header height consistent across tabs so the tab strip no longer shifts vertically when switching tabs. [#49080]
|
|
15
|
+
- AdminPage: Update the SCSS module's `> header` selectors to `> :first-child` so they keep matching after `@wordpress/admin-ui` 2.1 changed the page header element from `<header>` to `<div>`. [#49018]
|
|
16
|
+
|
|
17
|
+
## [1.11.3] - 2026-05-21
|
|
18
|
+
### Changed
|
|
19
|
+
- Mark ContextualUpgradeTrigger as @deprecated. Use Notice from @wordpress/ui instead. The implementation is unchanged. [#48909]
|
|
20
|
+
- Update package dependencies. [#48405]
|
|
21
|
+
- Update package dependencies. [#49012]
|
|
22
|
+
|
|
5
23
|
## [1.11.2] - 2026-05-19
|
|
6
24
|
### Changed
|
|
7
25
|
- Deprecate Status; inline @wordpress/ui Text in consumers. [#48711]
|
|
@@ -1788,6 +1806,8 @@
|
|
|
1788
1806
|
### Changed
|
|
1789
1807
|
- Update node version requirement to 14.16.1
|
|
1790
1808
|
|
|
1809
|
+
[1.12.0]: https://github.com/Automattic/jetpack-components/compare/1.11.3...1.12.0
|
|
1810
|
+
[1.11.3]: https://github.com/Automattic/jetpack-components/compare/1.11.2...1.11.3
|
|
1791
1811
|
[1.11.2]: https://github.com/Automattic/jetpack-components/compare/1.11.1...1.11.2
|
|
1792
1812
|
[1.11.1]: https://github.com/Automattic/jetpack-components/compare/1.11.0...1.11.1
|
|
1793
1813
|
[1.11.0]: https://github.com/Automattic/jetpack-components/compare/1.10.0...1.11.0
|
|
@@ -15,15 +15,16 @@
|
|
|
15
15
|
// https://github.com/WordPress/gutenberg/issues/75428
|
|
16
16
|
|
|
17
17
|
// Anchor: `.jp-admin-page__page` is the className we pass to admin-ui's
|
|
18
|
-
// <Page>; admin-ui 2.
|
|
19
|
-
//
|
|
20
|
-
|
|
18
|
+
// <Page>; admin-ui ≥ 2.1.0 renders the header as a `<div>` (was `<header>`
|
|
19
|
+
// in 2.0). Target it positionally as `> :first-child` so we don't couple
|
|
20
|
+
// to the element tag or admin-ui's CSS-Modules-hashed class names.
|
|
21
|
+
&.without-bottom-border :global(.jp-admin-page__page > :first-child) {
|
|
21
22
|
border-bottom: none;
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
// Disable sticky header until we make it work better across all pages.
|
|
25
26
|
// JETPACK-1386
|
|
26
|
-
:global(.jp-admin-page__page >
|
|
27
|
+
:global(.jp-admin-page__page > :first-child) {
|
|
27
28
|
position: relative;
|
|
28
29
|
z-index: 1;
|
|
29
30
|
}
|
|
@@ -34,15 +35,30 @@
|
|
|
34
35
|
clear: both;
|
|
35
36
|
}
|
|
36
37
|
|
|
37
|
-
// admin-ui
|
|
38
|
-
//
|
|
39
|
-
//
|
|
40
|
-
//
|
|
38
|
+
// admin-ui's header `visual` slot is a 24px grid box but does not center
|
|
39
|
+
// its contents. Our JetpackLogo is 20px tall, so without this it pins to
|
|
40
|
+
// the top-left of the cell and looks misaligned vs. the title. admin-ui
|
|
41
|
+
// ships the slot as `<div aria-hidden="true">` in the header.
|
|
41
42
|
// TODO: remove once upstream centers contents in `.header-visual`.
|
|
42
|
-
:global(.jp-admin-page__page >
|
|
43
|
+
:global(.jp-admin-page__page > :first-child [aria-hidden="true"]) {
|
|
43
44
|
place-items: center;
|
|
44
45
|
}
|
|
45
46
|
|
|
47
|
+
// Keep the header a constant height across tabs. The content row's height
|
|
48
|
+
// is driven by its tallest child (the `actions` slot), so tabs with
|
|
49
|
+
// differently-sized action controls — or none at all — render headers of
|
|
50
|
+
// different heights, which shifts the tab strip below them vertically.
|
|
51
|
+
// Reserve the standard 40px WP control height as a floor and center the
|
|
52
|
+
// row's items so a shorter control neither stretches nor collapses it.
|
|
53
|
+
// The content row is identified by the visual logo slot it contains
|
|
54
|
+
// (`aria-hidden="true"`), so a breadcrumbs-only header isn't affected.
|
|
55
|
+
// `> :first-child` targets the page header positionally (a `<div>` in
|
|
56
|
+
// admin-ui ≥ 2.1, a `<header>` in 2.0) — matching the sibling rules above.
|
|
57
|
+
:global(.jp-admin-page__page > :first-child > div:has([aria-hidden="true"])) {
|
|
58
|
+
min-height: 40px;
|
|
59
|
+
align-items: center;
|
|
60
|
+
}
|
|
61
|
+
|
|
46
62
|
.admin-page-header {
|
|
47
63
|
display: flex;
|
|
48
64
|
align-items: center;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
import { CutBaseProps } from './types.ts';
|
|
2
2
|
import type { FC } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* ContextualUpgradeTrigger component.
|
|
5
|
+
*
|
|
6
|
+
* @deprecated Use `Notice` from `@wordpress/ui` instead. Compose with `Notice.Root` (`intent="info"`), `Notice.Description` for the body, and `Notice.Actions` + `Notice.ActionLink` / `Notice.ActionButton` for the CTA. See https://github.com/Automattic/jetpack/issues/48160 for migration guidance.
|
|
7
|
+
*
|
|
8
|
+
* @param props - The component properties.
|
|
9
|
+
* @param props.description - The body copy describing the upgrade context.
|
|
10
|
+
* @param props.cta - The CTA label.
|
|
11
|
+
* @param props.onClick - Click handler when rendered as a button.
|
|
12
|
+
* @param props.href - When provided, renders as an anchor instead of a button.
|
|
13
|
+
* @param props.openInNewTab - Whether to open the link in a new tab.
|
|
14
|
+
* @param props.className - Optional class for the root element.
|
|
15
|
+
* @param props.tooltipText - Optional tooltip body shown next to the description.
|
|
16
|
+
* @return The rendered upgrade trigger.
|
|
17
|
+
*/
|
|
3
18
|
declare const ContextualUpgradeTrigger: FC<CutBaseProps>;
|
|
4
19
|
export default ContextualUpgradeTrigger;
|
|
@@ -4,6 +4,21 @@ import clsx from 'clsx';
|
|
|
4
4
|
import IconTooltip from '../icon-tooltip/index.js';
|
|
5
5
|
import Text from '../text/index.js';
|
|
6
6
|
import styles from './style.module.scss';
|
|
7
|
+
/**
|
|
8
|
+
* ContextualUpgradeTrigger component.
|
|
9
|
+
*
|
|
10
|
+
* @deprecated Use `Notice` from `@wordpress/ui` instead. Compose with `Notice.Root` (`intent="info"`), `Notice.Description` for the body, and `Notice.Actions` + `Notice.ActionLink` / `Notice.ActionButton` for the CTA. See https://github.com/Automattic/jetpack/issues/48160 for migration guidance.
|
|
11
|
+
*
|
|
12
|
+
* @param props - The component properties.
|
|
13
|
+
* @param props.description - The body copy describing the upgrade context.
|
|
14
|
+
* @param props.cta - The CTA label.
|
|
15
|
+
* @param props.onClick - Click handler when rendered as a button.
|
|
16
|
+
* @param props.href - When provided, renders as an anchor instead of a button.
|
|
17
|
+
* @param props.openInNewTab - Whether to open the link in a new tab.
|
|
18
|
+
* @param props.className - Optional class for the root element.
|
|
19
|
+
* @param props.tooltipText - Optional tooltip body shown next to the description.
|
|
20
|
+
* @return The rendered upgrade trigger.
|
|
21
|
+
*/
|
|
7
22
|
const ContextualUpgradeTrigger = ({ description, cta, onClick, href, openInNewTab = false, className, tooltipText = '', }) => {
|
|
8
23
|
const Tag = href !== undefined ? 'a' : 'button';
|
|
9
24
|
const tagProps = Tag === 'a' ? { href, ...(openInNewTab && { target: '_blank' }) } : { onClick };
|
|
@@ -35,8 +35,7 @@ const JetpackFooter = ({ className, menu, ...otherProps }) => {
|
|
|
35
35
|
_jsxs(Stack, { className: "jetpack-footer__logo", direction: "row", gap: "sm", align: "center", children: [
|
|
36
36
|
_jsx(JetpackLogo, { showText: false, height: 16, "aria-hidden": "true" }), _jsx(Text, { variant: "body-md", children: "Jetpack" })
|
|
37
37
|
] }), _jsx(Stack, { render: _jsx("ul", {}), direction: "row", gap: "lg", wrap: "wrap", children: items.map(item => {
|
|
38
|
-
|
|
39
|
-
return (_jsx("li", { children: _jsx(Text, { variant: "body-md", className: "jetpack-footer__menu-item", render: isButton ? (_jsx(Link, { render: _jsx("span", {}), tone: "neutral", variant: "default", role: item.role, tabIndex: 0, onClick: item.onClick || undefined, onKeyDown: item.onKeyDown || undefined })) : (_jsx(Link, { tone: "neutral", variant: "default", href: item.href || '', title: item.title || '', role: item.role, onClick: item.onClick || undefined, onKeyDown: item.onKeyDown || undefined })), children: item.label }) }, item.label));
|
|
38
|
+
return (_jsx("li", { children: _jsx(Text, { variant: "body-md", className: "jetpack-footer__menu-item", render: !item.href ? (_jsx(Link, { render: _jsx("span", {}), tabIndex: 0, title: item.title || '', onClick: item.onClick || undefined, onKeyDown: item.onKeyDown || undefined, role: "button" })) : (_jsx(Link, { href: item.href, title: item.title || '', onClick: item.onClick || undefined, onKeyDown: item.onKeyDown || undefined })), children: item.label }) }, item.label));
|
|
40
39
|
}) }), _jsx("a", { className: "jetpack-footer__a8c", href: getRedirectUrl('a8c-about'), rel: "noopener noreferrer", target: "_blank", children: _jsx(AutomatticBylineLogo, { height: 8 }) })
|
|
41
40
|
] }));
|
|
42
41
|
};
|
|
@@ -2,7 +2,7 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
import { getCurrencyObject } from '@automattic/number-formatters';
|
|
3
3
|
import { Button } from '@wordpress/components';
|
|
4
4
|
import { sprintf, __ } from '@wordpress/i18n';
|
|
5
|
-
import
|
|
5
|
+
import LoadingPlaceholder from '../loading-placeholder/index.js';
|
|
6
6
|
import TermsOfService from '../terms-of-service/index.js';
|
|
7
7
|
import './style.scss';
|
|
8
8
|
/**
|
|
@@ -3,7 +3,11 @@ import { createInterpolateElement } from '@wordpress/element';
|
|
|
3
3
|
import { __, sprintf } from '@wordpress/i18n';
|
|
4
4
|
import { Link } from '@wordpress/ui';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
|
-
import
|
|
6
|
+
// Deep import rather than the package barrel (`../../index.ts`): the barrel
|
|
7
|
+
// pulls in heavy, asset-importing components (e.g. boost-score-graph) that the
|
|
8
|
+
// wp-build esbuild pipeline can't bundle, which breaks any wp-build dashboard
|
|
9
|
+
// that deep-imports pricing-table (which renders TermsOfService).
|
|
10
|
+
import getRedirectUrl from '../../tools/jp-redirect/index.js';
|
|
7
11
|
import Text from '../text/index.js';
|
|
8
12
|
import './styles.scss';
|
|
9
13
|
const TermsOfService = ({ className, multipleButtons, agreeButtonLabel, isTextOnly, ...textProps }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Card, CardBody } from '@wordpress/components';
|
|
3
3
|
import { createInterpolateElement } from '@wordpress/element';
|
|
4
|
-
import
|
|
4
|
+
import Button from '../button/index.js';
|
|
5
5
|
import './style.scss';
|
|
6
6
|
/**
|
|
7
7
|
* Upsell banner component.
|
|
@@ -15,15 +15,16 @@
|
|
|
15
15
|
// https://github.com/WordPress/gutenberg/issues/75428
|
|
16
16
|
|
|
17
17
|
// Anchor: `.jp-admin-page__page` is the className we pass to admin-ui's
|
|
18
|
-
// <Page>; admin-ui 2.
|
|
19
|
-
//
|
|
20
|
-
|
|
18
|
+
// <Page>; admin-ui ≥ 2.1.0 renders the header as a `<div>` (was `<header>`
|
|
19
|
+
// in 2.0). Target it positionally as `> :first-child` so we don't couple
|
|
20
|
+
// to the element tag or admin-ui's CSS-Modules-hashed class names.
|
|
21
|
+
&.without-bottom-border :global(.jp-admin-page__page > :first-child) {
|
|
21
22
|
border-bottom: none;
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
// Disable sticky header until we make it work better across all pages.
|
|
25
26
|
// JETPACK-1386
|
|
26
|
-
:global(.jp-admin-page__page >
|
|
27
|
+
:global(.jp-admin-page__page > :first-child) {
|
|
27
28
|
position: relative;
|
|
28
29
|
z-index: 1;
|
|
29
30
|
}
|
|
@@ -34,15 +35,30 @@
|
|
|
34
35
|
clear: both;
|
|
35
36
|
}
|
|
36
37
|
|
|
37
|
-
// admin-ui
|
|
38
|
-
//
|
|
39
|
-
//
|
|
40
|
-
//
|
|
38
|
+
// admin-ui's header `visual` slot is a 24px grid box but does not center
|
|
39
|
+
// its contents. Our JetpackLogo is 20px tall, so without this it pins to
|
|
40
|
+
// the top-left of the cell and looks misaligned vs. the title. admin-ui
|
|
41
|
+
// ships the slot as `<div aria-hidden="true">` in the header.
|
|
41
42
|
// TODO: remove once upstream centers contents in `.header-visual`.
|
|
42
|
-
:global(.jp-admin-page__page >
|
|
43
|
+
:global(.jp-admin-page__page > :first-child [aria-hidden="true"]) {
|
|
43
44
|
place-items: center;
|
|
44
45
|
}
|
|
45
46
|
|
|
47
|
+
// Keep the header a constant height across tabs. The content row's height
|
|
48
|
+
// is driven by its tallest child (the `actions` slot), so tabs with
|
|
49
|
+
// differently-sized action controls — or none at all — render headers of
|
|
50
|
+
// different heights, which shifts the tab strip below them vertically.
|
|
51
|
+
// Reserve the standard 40px WP control height as a floor and center the
|
|
52
|
+
// row's items so a shorter control neither stretches nor collapses it.
|
|
53
|
+
// The content row is identified by the visual logo slot it contains
|
|
54
|
+
// (`aria-hidden="true"`), so a breadcrumbs-only header isn't affected.
|
|
55
|
+
// `> :first-child` targets the page header positionally (a `<div>` in
|
|
56
|
+
// admin-ui ≥ 2.1, a `<header>` in 2.0) — matching the sibling rules above.
|
|
57
|
+
:global(.jp-admin-page__page > :first-child > div:has([aria-hidden="true"])) {
|
|
58
|
+
min-height: 40px;
|
|
59
|
+
align-items: center;
|
|
60
|
+
}
|
|
61
|
+
|
|
46
62
|
.admin-page-header {
|
|
47
63
|
display: flex;
|
|
48
64
|
align-items: center;
|
|
@@ -6,6 +6,21 @@ import styles from './style.module.scss';
|
|
|
6
6
|
import { CutBaseProps } from './types.ts';
|
|
7
7
|
import type { FC } from 'react';
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* ContextualUpgradeTrigger component.
|
|
11
|
+
*
|
|
12
|
+
* @deprecated Use `Notice` from `@wordpress/ui` instead. Compose with `Notice.Root` (`intent="info"`), `Notice.Description` for the body, and `Notice.Actions` + `Notice.ActionLink` / `Notice.ActionButton` for the CTA. See https://github.com/Automattic/jetpack/issues/48160 for migration guidance.
|
|
13
|
+
*
|
|
14
|
+
* @param props - The component properties.
|
|
15
|
+
* @param props.description - The body copy describing the upgrade context.
|
|
16
|
+
* @param props.cta - The CTA label.
|
|
17
|
+
* @param props.onClick - Click handler when rendered as a button.
|
|
18
|
+
* @param props.href - When provided, renders as an anchor instead of a button.
|
|
19
|
+
* @param props.openInNewTab - Whether to open the link in a new tab.
|
|
20
|
+
* @param props.className - Optional class for the root element.
|
|
21
|
+
* @param props.tooltipText - Optional tooltip body shown next to the description.
|
|
22
|
+
* @return The rendered upgrade trigger.
|
|
23
|
+
*/
|
|
9
24
|
const ContextualUpgradeTrigger: FC< CutBaseProps > = ( {
|
|
10
25
|
description,
|
|
11
26
|
cta,
|
|
@@ -64,31 +64,25 @@ const JetpackFooter: FC< JetpackFooterProps > = ( { className, menu, ...otherPro
|
|
|
64
64
|
</Stack>
|
|
65
65
|
<Stack render={ <ul /> } direction="row" gap="lg" wrap="wrap">
|
|
66
66
|
{ items.map( item => {
|
|
67
|
-
const isButton = item.role === 'button';
|
|
68
|
-
|
|
69
67
|
return (
|
|
70
68
|
<li key={ item.label }>
|
|
71
69
|
<Text
|
|
72
70
|
variant="body-md"
|
|
73
71
|
className="jetpack-footer__menu-item"
|
|
74
72
|
render={
|
|
75
|
-
|
|
73
|
+
! item.href ? (
|
|
76
74
|
<Link
|
|
77
75
|
render={ <span /> }
|
|
78
|
-
tone="neutral"
|
|
79
|
-
variant="default"
|
|
80
|
-
role={ item.role }
|
|
81
76
|
tabIndex={ 0 }
|
|
77
|
+
title={ item.title || '' }
|
|
82
78
|
onClick={ item.onClick || undefined }
|
|
83
79
|
onKeyDown={ item.onKeyDown || undefined }
|
|
80
|
+
role="button"
|
|
84
81
|
/>
|
|
85
82
|
) : (
|
|
86
83
|
<Link
|
|
87
|
-
|
|
88
|
-
variant="default"
|
|
89
|
-
href={ item.href || '' }
|
|
84
|
+
href={ item.href }
|
|
90
85
|
title={ item.title || '' }
|
|
91
|
-
role={ item.role }
|
|
92
86
|
onClick={ item.onClick || undefined }
|
|
93
87
|
onKeyDown={ item.onKeyDown || undefined }
|
|
94
88
|
/>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getCurrencyObject } from '@automattic/number-formatters';
|
|
2
2
|
import { Button } from '@wordpress/components';
|
|
3
3
|
import { sprintf, __ } from '@wordpress/i18n';
|
|
4
|
-
import
|
|
4
|
+
import LoadingPlaceholder from '../loading-placeholder/index.tsx';
|
|
5
5
|
import TermsOfService from '../terms-of-service/index.tsx';
|
|
6
6
|
import type { PricingCardProps } from './types.ts';
|
|
7
7
|
import type { CurrencyObject } from '@automattic/number-formatters';
|
|
@@ -2,7 +2,11 @@ import { createInterpolateElement } from '@wordpress/element';
|
|
|
2
2
|
import { __, sprintf } from '@wordpress/i18n';
|
|
3
3
|
import { Link } from '@wordpress/ui';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import
|
|
5
|
+
// Deep import rather than the package barrel (`../../index.ts`): the barrel
|
|
6
|
+
// pulls in heavy, asset-importing components (e.g. boost-score-graph) that the
|
|
7
|
+
// wp-build esbuild pipeline can't bundle, which breaks any wp-build dashboard
|
|
8
|
+
// that deep-imports pricing-table (which renders TermsOfService).
|
|
9
|
+
import getRedirectUrl from '../../tools/jp-redirect/index.ts';
|
|
6
10
|
import Text from '../text/index.tsx';
|
|
7
11
|
import type { TermsOfServiceProps } from './types.ts';
|
|
8
12
|
import type { FC, ReactNode } from 'react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Card, CardBody } from '@wordpress/components';
|
|
2
2
|
import { createInterpolateElement } from '@wordpress/element';
|
|
3
|
-
import
|
|
3
|
+
import Button from '../button/index.tsx';
|
|
4
4
|
import { UpsellBannerProps } from './types.ts';
|
|
5
5
|
import type { FC, ReactNode } from 'react';
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/jetpack-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"description": "Jetpack Components Package",
|
|
5
5
|
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/components/#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
"types": "./build/components/admin-page/index.d.ts",
|
|
27
27
|
"default": "./build/components/admin-page/index.js"
|
|
28
28
|
},
|
|
29
|
+
"./button": {
|
|
30
|
+
"types": "./build/components/button/index.d.ts",
|
|
31
|
+
"default": "./build/components/button/index.js"
|
|
32
|
+
},
|
|
29
33
|
"./global-notices": {
|
|
30
34
|
"types": "./build/components/global-notices/index.d.ts",
|
|
31
35
|
"default": "./build/components/global-notices/index.js"
|
|
@@ -42,6 +46,14 @@
|
|
|
42
46
|
"types": "./build/components/jetpack-logo/index.d.ts",
|
|
43
47
|
"default": "./build/components/jetpack-logo/index.js"
|
|
44
48
|
},
|
|
49
|
+
"./pricing-table": {
|
|
50
|
+
"types": "./build/components/pricing-table/index.d.ts",
|
|
51
|
+
"default": "./build/components/pricing-table/index.js"
|
|
52
|
+
},
|
|
53
|
+
"./product-price": {
|
|
54
|
+
"types": "./build/components/product-price/index.d.ts",
|
|
55
|
+
"default": "./build/components/product-price/index.js"
|
|
56
|
+
},
|
|
45
57
|
"./tools/jp-redirect": {
|
|
46
58
|
"types": "./build/tools/jp-redirect/index.d.ts",
|
|
47
59
|
"default": "./build/tools/jp-redirect/index.js"
|
|
@@ -61,38 +73,38 @@
|
|
|
61
73
|
],
|
|
62
74
|
"dependencies": {
|
|
63
75
|
"@automattic/format-currency": "1.0.1",
|
|
64
|
-
"@automattic/jetpack-api": "^1.0.
|
|
65
|
-
"@automattic/jetpack-boost-score-api": "^1.0.
|
|
76
|
+
"@automattic/jetpack-api": "^1.0.26",
|
|
77
|
+
"@automattic/jetpack-boost-score-api": "^1.0.43",
|
|
66
78
|
"@automattic/jetpack-script-data": "^0.6.4",
|
|
67
|
-
"@automattic/number-formatters": "^1.
|
|
79
|
+
"@automattic/number-formatters": "^1.2.0",
|
|
68
80
|
"@babel/runtime": "^7",
|
|
69
81
|
"@gravatar-com/hovercards": "0.16.0",
|
|
70
|
-
"@wordpress/admin-ui": "2.
|
|
71
|
-
"@wordpress/browserslist-config": "6.
|
|
72
|
-
"@wordpress/components": "
|
|
73
|
-
"@wordpress/compose": "7.
|
|
74
|
-
"@wordpress/data": "10.
|
|
75
|
-
"@wordpress/date": "5.
|
|
76
|
-
"@wordpress/element": "6.
|
|
77
|
-
"@wordpress/i18n": "6.
|
|
82
|
+
"@wordpress/admin-ui": "2.1.0",
|
|
83
|
+
"@wordpress/browserslist-config": "6.46.0",
|
|
84
|
+
"@wordpress/components": "33.1.0",
|
|
85
|
+
"@wordpress/compose": "7.46.0",
|
|
86
|
+
"@wordpress/data": "10.46.0",
|
|
87
|
+
"@wordpress/date": "5.46.0",
|
|
88
|
+
"@wordpress/element": "6.46.0",
|
|
89
|
+
"@wordpress/i18n": "6.19.0",
|
|
78
90
|
"@wordpress/icons": "12.2.0",
|
|
79
|
-
"@wordpress/notices": "5.
|
|
80
|
-
"@wordpress/theme": "0.
|
|
91
|
+
"@wordpress/notices": "5.46.0",
|
|
92
|
+
"@wordpress/theme": "0.13.0",
|
|
81
93
|
"@wordpress/ui": "0.11.0",
|
|
82
94
|
"clsx": "2.1.1",
|
|
83
95
|
"js-sha256": "0.11.1",
|
|
84
96
|
"prop-types": "^15.7.2",
|
|
85
97
|
"qrcode.react": "4.2.0",
|
|
86
98
|
"react-slider": "2.0.5",
|
|
87
|
-
"social-logos": "^3.3.
|
|
99
|
+
"social-logos": "^3.3.16",
|
|
88
100
|
"uplot": "1.6.31",
|
|
89
101
|
"uplot-react": "1.1.4"
|
|
90
102
|
},
|
|
91
103
|
"devDependencies": {
|
|
92
|
-
"@automattic/jetpack-base-styles": "^1.2.
|
|
104
|
+
"@automattic/jetpack-base-styles": "^1.2.4",
|
|
93
105
|
"@babel/core": "7.29.0",
|
|
94
106
|
"@babel/preset-react": "7.28.5",
|
|
95
|
-
"@jest/globals": "30.
|
|
107
|
+
"@jest/globals": "30.4.1",
|
|
96
108
|
"@storybook/addon-docs": "10.3.6",
|
|
97
109
|
"@storybook/react": "10.3.6",
|
|
98
110
|
"@testing-library/dom": "10.4.1",
|
|
@@ -103,7 +115,7 @@
|
|
|
103
115
|
"@types/react-dom": "18.3.7",
|
|
104
116
|
"@types/react-slider": "1.3.6",
|
|
105
117
|
"@typescript/native-preview": "7.0.0-dev.20260225.1",
|
|
106
|
-
"jest": "30.
|
|
118
|
+
"jest": "30.4.2",
|
|
107
119
|
"react": "18.3.1",
|
|
108
120
|
"react-dom": "18.3.1",
|
|
109
121
|
"require-from-string": "2.0.2",
|