@automattic/jetpack-components 0.72.2 → 0.72.4
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 +18 -0
- package/build/components/action-button/index.js +1 -1
- package/build/components/action-popover/index.d.ts +1 -1
- package/build/components/action-popover/index.js +4 -4
- package/build/components/admin-page/index.d.ts +1 -1
- package/build/components/admin-page/index.js +4 -4
- package/build/components/admin-page/types.d.ts +1 -1
- package/build/components/admin-section/basic/index.d.ts +1 -1
- package/build/components/admin-section/hero/index.d.ts +1 -1
- package/build/components/automattic-byline-logo/index.d.ts +1 -1
- package/build/components/boost-score-bar/index.d.ts +1 -1
- package/build/components/boost-score-bar/index.js +1 -1
- package/build/components/boost-score-graph/annotations-plugin.d.ts +1 -1
- package/build/components/boost-score-graph/index.js +3 -3
- package/build/components/boost-score-graph/tooltips-plugin.d.ts +1 -1
- package/build/components/boost-score-graph/tooltips-plugin.js +1 -1
- package/build/components/boost-score-graph/uplot-line-chart.d.ts +1 -1
- package/build/components/boost-score-graph/uplot-line-chart.js +8 -8
- package/build/components/boost-score-graph/use-boost-score-transform.d.ts +1 -1
- package/build/components/button/index.d.ts +1 -1
- package/build/components/contextual-upgrade-trigger/index.d.ts +1 -1
- package/build/components/contextual-upgrade-trigger/index.js +2 -2
- package/build/components/copy-to-clipboard/index.d.ts +1 -1
- package/build/components/copy-to-clipboard/index.js +2 -2
- package/build/components/copy-to-clipboard/types.d.ts +1 -1
- package/build/components/decorative-card/index.d.ts +1 -1
- package/build/components/dialog/index.js +3 -3
- package/build/components/diff-viewer/index.js +2 -2
- package/build/components/dot-pager/index.js +1 -1
- package/build/components/global-notices/global-notices.js +1 -1
- package/build/components/global-notices/index.d.ts +2 -2
- package/build/components/global-notices/index.js +2 -2
- package/build/components/gridicon/index.d.ts +1 -1
- package/build/components/icon-tooltip/index.d.ts +1 -1
- package/build/components/icon-tooltip/index.js +2 -2
- package/build/components/icons/index.d.ts +1 -1
- package/build/components/indeterminate-progress-bar/index.d.ts +1 -1
- package/build/components/jetpack-footer/index.d.ts +1 -1
- package/build/components/jetpack-footer/index.js +5 -5
- package/build/components/jetpack-logo/index.d.ts +1 -1
- package/build/components/jetpack-protect-logo/index.d.ts +1 -1
- package/build/components/jetpack-search-logo/index.d.ts +1 -1
- package/build/components/jetpack-vaultpress-backup-logo/index.d.ts +1 -1
- package/build/components/jetpack-videopress-logo/index.d.ts +1 -1
- package/build/components/layout/col/index.d.ts +1 -1
- package/build/components/layout/container/index.d.ts +1 -1
- package/build/components/number-format/index.js +1 -1
- package/build/components/number-slider/index.d.ts +1 -1
- package/build/components/pricing-card/index.d.ts +1 -1
- package/build/components/pricing-card/index.js +1 -1
- package/build/components/pricing-table/index.d.ts +1 -1
- package/build/components/pricing-table/index.js +4 -4
- package/build/components/pricing-table/types.d.ts +1 -1
- package/build/components/product-offer/icons-card.d.ts +1 -1
- package/build/components/product-offer/icons-card.js +1 -1
- package/build/components/product-offer/index.d.ts +2 -2
- package/build/components/product-offer/index.js +8 -8
- package/build/components/product-offer/product-offer-header.d.ts +1 -1
- package/build/components/product-offer/product-offer-header.js +1 -1
- package/build/components/product-offer/types.d.ts +2 -2
- package/build/components/product-price/index.d.ts +2 -2
- package/build/components/product-price/index.js +3 -3
- package/build/components/product-price/price.d.ts +1 -1
- package/build/components/product-price/price.js +1 -1
- package/build/components/progress-bar/index.d.ts +1 -1
- package/build/components/record-meter-bar/index.js +1 -1
- package/build/components/split-button/index.d.ts +1 -1
- package/build/components/stat-card/index.d.ts +1 -1
- package/build/components/stat-card/index.js +2 -2
- package/build/components/status/index.js +1 -1
- package/build/components/terms-of-service/index.d.ts +1 -1
- package/build/components/terms-of-service/index.js +2 -2
- package/build/components/terms-of-service/types.d.ts +1 -1
- package/build/components/testimonials/index.d.ts +1 -1
- package/build/components/testimonials/index.js +2 -2
- package/build/components/testimonials/testimonial.d.ts +1 -1
- package/build/components/text/index.d.ts +2 -2
- package/build/components/text/index.js +2 -2
- package/build/components/text/types.d.ts +1 -1
- package/build/components/theme-provider/index.d.ts +1 -1
- package/build/components/upsell-banner/index.d.ts +1 -1
- package/build/components/zendesk-chat/index.d.ts +1 -1
- package/build/components/zendesk-chat/index.js +1 -1
- package/build/index.d.ts +66 -66
- package/build/index.js +65 -65
- package/build/tools/jp-redirect/index.d.ts +1 -1
- package/build/tools/pricing-utils/index.d.ts +1 -1
- package/components/action-button/index.jsx +1 -1
- package/components/action-popover/index.tsx +5 -5
- package/components/admin-page/index.tsx +5 -5
- package/components/admin-page/style.module.scss +2 -2
- package/components/admin-page/types.ts +1 -1
- package/components/admin-section/basic/index.tsx +1 -1
- package/components/admin-section/hero/index.tsx +1 -1
- package/components/alert/style.module.scss +4 -0
- package/components/automattic-byline-logo/index.tsx +1 -1
- package/components/boost-score-bar/index.tsx +2 -2
- package/components/boost-score-bar/style.scss +6 -0
- package/components/boost-score-graph/annotations-plugin.ts +1 -1
- package/components/boost-score-graph/index.tsx +3 -3
- package/components/boost-score-graph/style-annotation.scss +3 -1
- package/components/boost-score-graph/style-tooltip.scss +1 -1
- package/components/boost-score-graph/tooltip.tsx +1 -1
- package/components/boost-score-graph/tooltips-plugin.ts +2 -2
- package/components/boost-score-graph/uplot-line-chart.tsx +9 -9
- package/components/boost-score-graph/use-boost-score-transform.ts +1 -1
- package/components/button/index.tsx +1 -1
- package/components/button/style.module.scss +2 -0
- package/components/contextual-upgrade-trigger/index.tsx +3 -3
- package/components/contextual-upgrade-trigger/style.module.scss +3 -2
- package/components/copy-to-clipboard/index.tsx +3 -3
- package/components/copy-to-clipboard/types.ts +1 -1
- package/components/decorative-card/index.tsx +1 -1
- package/components/decorative-card/style.scss +3 -3
- package/components/dialog/index.tsx +3 -3
- package/components/dialog/style.module.scss +1 -0
- package/components/diff-viewer/index.tsx +2 -2
- package/components/donut-meter/style.scss +3 -0
- package/components/dot-pager/index.tsx +1 -1
- package/components/dot-pager/style.scss +4 -0
- package/components/global-notices/global-notices.tsx +1 -1
- package/components/global-notices/index.ts +2 -2
- package/components/global-notices/styles.module.scss +1 -0
- package/components/gridicon/index.tsx +1 -1
- package/components/icon-tooltip/index.tsx +3 -3
- package/components/icon-tooltip/style.scss +3 -0
- package/components/icons/index.tsx +1 -1
- package/components/icons/style.module.scss +14 -1
- package/components/indeterminate-progress-bar/index.tsx +1 -1
- package/components/indeterminate-progress-bar/style.module.scss +2 -0
- package/components/jetpack-footer/index.tsx +6 -6
- package/components/jetpack-footer/style.scss +3 -0
- package/components/jetpack-logo/index.tsx +1 -1
- package/components/jetpack-protect-logo/index.tsx +1 -1
- package/components/jetpack-search-logo/index.tsx +1 -1
- package/components/jetpack-vaultpress-backup-logo/index.tsx +1 -1
- package/components/jetpack-videopress-logo/index.tsx +1 -1
- package/components/layout/breakpoints.module.scss +1 -0
- package/components/layout/col/index.tsx +1 -1
- package/components/layout/col/style.module.scss +3 -1
- package/components/layout/container/index.tsx +1 -1
- package/components/layout/container/style.module.scss +1 -1
- package/components/loading-placeholder/style.module.scss +3 -0
- package/components/notice/style.module.scss +3 -0
- package/components/number-format/index.ts +1 -1
- package/components/number-slider/index.tsx +1 -1
- package/components/number-slider/style.scss +3 -1
- package/components/popover/style.scss +1 -1
- package/components/pricing-card/index.tsx +2 -2
- package/components/pricing-card/style.scss +1 -0
- package/components/pricing-table/index.tsx +5 -5
- package/components/pricing-table/styles.module.scss +3 -1
- package/components/pricing-table/types.ts +1 -1
- package/components/product-offer/icons-card.tsx +2 -2
- package/components/product-offer/index.tsx +9 -9
- package/components/product-offer/product-offer-header.tsx +2 -2
- package/components/product-offer/types.ts +2 -2
- package/components/product-price/index.tsx +4 -4
- package/components/product-price/price.tsx +2 -2
- package/components/product-price/style.module.scss +2 -1
- package/components/progress-bar/index.tsx +1 -1
- package/components/radio-control/styles.module.scss +4 -0
- package/components/record-meter-bar/index.tsx +1 -1
- package/components/record-meter-bar/style.scss +5 -0
- package/components/spinner/style.scss +4 -3
- package/components/split-button/index.tsx +1 -1
- package/components/stat-card/index.tsx +3 -3
- package/components/status/index.tsx +1 -1
- package/components/status/style.module.scss +5 -0
- package/components/terms-of-service/index.tsx +3 -3
- package/components/terms-of-service/types.ts +1 -1
- package/components/testimonials/index.tsx +3 -3
- package/components/testimonials/style.scss +1 -0
- package/components/testimonials/testimonial.tsx +1 -1
- package/components/text/index.tsx +3 -3
- package/components/text/style.module.scss +2 -0
- package/components/text/types.ts +1 -1
- package/components/theme-provider/globals.module.scss +1 -0
- package/components/theme-provider/index.tsx +1 -1
- package/components/toggle-control/styles.module.scss +3 -0
- package/components/upsell-banner/index.tsx +1 -1
- package/components/upsell-banner/style.scss +2 -1
- package/components/zendesk-chat/index.tsx +2 -2
- package/index.ts +66 -66
- package/package.json +7 -6
- package/tools/jp-redirect/index.ts +1 -1
- package/tools/pricing-utils/index.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { __ } from '@wordpress/i18n';
|
|
3
3
|
import { Icon, starFilled as star } from '@wordpress/icons';
|
|
4
|
-
import Text from
|
|
4
|
+
import Text from "../text/index.js";
|
|
5
5
|
import styles from './style.module.scss';
|
|
6
6
|
/**
|
|
7
7
|
* Product Detail Card Header component.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProductPriceProps } from '../product-price/types.
|
|
2
|
-
import type { JetpackIconSlug } from '../icons/index.
|
|
1
|
+
import { ProductPriceProps } from '../product-price/types.ts';
|
|
2
|
+
import type { JetpackIconSlug } from '../icons/index.tsx';
|
|
3
3
|
export type ProductOfferProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Product slug.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ProductPriceProps } from './types.
|
|
1
|
+
import type { ProductPriceProps } from './types.ts';
|
|
2
2
|
import type React from 'react';
|
|
3
3
|
/**
|
|
4
4
|
* React component to render the price.
|
|
@@ -8,4 +8,4 @@ import type React from 'react';
|
|
|
8
8
|
*/
|
|
9
9
|
declare const ProductPrice: React.FC<ProductPriceProps>;
|
|
10
10
|
export default ProductPrice;
|
|
11
|
-
export * from './price.
|
|
11
|
+
export * from './price.tsx';
|
|
@@ -7,8 +7,8 @@ import clsx from 'clsx';
|
|
|
7
7
|
/*
|
|
8
8
|
* Internal dependencies
|
|
9
9
|
*/
|
|
10
|
-
import Text from
|
|
11
|
-
import { Price } from
|
|
10
|
+
import Text from "../text/index.js";
|
|
11
|
+
import { Price } from "./price.js";
|
|
12
12
|
import styles from './style.module.scss';
|
|
13
13
|
/**
|
|
14
14
|
* React component to render the price.
|
|
@@ -29,4 +29,4 @@ const ProductPrice = ({ price, offPrice, currency = '', showNotOffPrice = true,
|
|
|
29
29
|
return (_jsxs(_Fragment, { children: [_jsx("div", { className: styles.container, children: _jsxs("div", { className: clsx(styles['price-container'], 'product-price_container'), children: [_jsx(Price, { value: offPrice ?? price, currency: currency, isOff: !isNotConvenientPrice, hidePriceFraction: hidePriceFraction }), showNotOffPrice && (_jsx(Price, { value: price, currency: currency, isOff: false, hidePriceFraction: hidePriceFraction })), discountElt && (_jsx(Text, { className: clsx(styles['promo-label'], 'product-price_promo_label'), children: discountElt }))] }) }), _jsxs("div", { className: styles.footer, children: [children ? (children) : (_jsx(Text, { className: clsx(styles.legend, 'product-price_legend'), children: legend })), promoLabel && (_jsx(Text, { className: clsx(styles['promo-label'], 'product-price_promo_label'), children: promoLabel }))] })] }));
|
|
30
30
|
};
|
|
31
31
|
export default ProductPrice;
|
|
32
|
-
export * from
|
|
32
|
+
export * from "./price.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { getCurrencyObject } from '@automattic/format-currency';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import Text from
|
|
4
|
+
import Text from "../text/index.js";
|
|
5
5
|
import styles from './style.module.scss';
|
|
6
6
|
/**
|
|
7
7
|
* React component to render a Price composition.
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { __ } from '@wordpress/i18n';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useMemo } from 'react';
|
|
5
|
-
import numberFormat from
|
|
5
|
+
import numberFormat from "../number-format/index.js";
|
|
6
6
|
import './style.scss';
|
|
7
7
|
/**
|
|
8
8
|
* Generate Record Meter bar
|
|
@@ -7,8 +7,8 @@ import clsx from 'clsx';
|
|
|
7
7
|
/**
|
|
8
8
|
* Internal dependencies
|
|
9
9
|
*/
|
|
10
|
-
import numberFormat from
|
|
11
|
-
import Text from
|
|
10
|
+
import numberFormat from "../number-format/index.js";
|
|
11
|
+
import Text from "../text/index.js";
|
|
12
12
|
import styles from './style.module.scss';
|
|
13
13
|
/**
|
|
14
14
|
* StatCard component
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { __ } from '@wordpress/i18n';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import Text from
|
|
4
|
+
import Text from "../text/index.js";
|
|
5
5
|
import styles from './style.module.scss';
|
|
6
6
|
const Status = ({ className, label, status = 'inactive' }) => {
|
|
7
7
|
const defaultLabels = {
|
|
@@ -2,8 +2,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { createInterpolateElement } from '@wordpress/element';
|
|
3
3
|
import { __, sprintf } from '@wordpress/i18n';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import { getRedirectUrl } from
|
|
6
|
-
import Text from
|
|
5
|
+
import { getRedirectUrl } from "../../index.js";
|
|
6
|
+
import Text from "../text/index.js";
|
|
7
7
|
import './styles.scss';
|
|
8
8
|
const TermsOfService = ({ className, multipleButtons, agreeButtonLabel, isTextOnly, ...textProps }) => {
|
|
9
9
|
const getTOSContent = () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useCallback } from '@wordpress/element';
|
|
3
|
-
import Gridicon from
|
|
4
|
-
import { Testimonial } from
|
|
3
|
+
import Gridicon from "../gridicon/index.js";
|
|
4
|
+
import { Testimonial } from "./testimonial.js";
|
|
5
5
|
const Testimonials = ({ testimonials }) => {
|
|
6
6
|
const [currentTestimonialIndex, setcurrentTestimonialIndex] = useState(0);
|
|
7
7
|
const incrementTestimonial = useCallback(() => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { H3Props, TextProps, TitleProps } from './types.
|
|
2
|
+
import type { H3Props, TextProps, TitleProps } from './types.ts';
|
|
3
3
|
/**
|
|
4
4
|
* Text component.
|
|
5
5
|
*
|
|
@@ -29,4 +29,4 @@ export declare const H3: React.FC<H3Props>;
|
|
|
29
29
|
* @return {React.ReactElement} - JSX.Element
|
|
30
30
|
*/
|
|
31
31
|
export declare const Title: React.FC<TitleProps>;
|
|
32
|
-
export * from './constants.
|
|
32
|
+
export * from './constants.ts';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { forwardRef, useMemo } from 'react';
|
|
4
|
-
import { BOX_MODEL_VALUES, VARIANTS_MAPPING } from
|
|
4
|
+
import { BOX_MODEL_VALUES, VARIANTS_MAPPING } from "./constants.js";
|
|
5
5
|
import styles from './style.module.scss';
|
|
6
6
|
/**
|
|
7
7
|
* Text component.
|
|
@@ -50,4 +50,4 @@ export const H3 = ({ children, weight = 'bold', ...componentProps }) => {
|
|
|
50
50
|
* @return {React.ReactElement} - JSX.Element
|
|
51
51
|
*/
|
|
52
52
|
export const Title = ({ children, size = 'medium', ...componentProps }) => (_jsx(Text, { variant: `title-${size}`, mb: 1, ...componentProps, children: children }));
|
|
53
|
-
export * from
|
|
53
|
+
export * from "./constants.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useCallback } from 'react';
|
|
3
|
-
import { chatKey } from
|
|
3
|
+
import { chatKey } from "./constants.js";
|
|
4
4
|
export const ZendeskChat = ({ jwt_token }) => {
|
|
5
5
|
const authenticateUser = useCallback(() => {
|
|
6
6
|
if (typeof window !== 'undefined' && typeof window.zE === 'function') {
|
package/build/index.d.ts
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
export { default as JetpackLogo } from './components/jetpack-logo/index.
|
|
2
|
-
export { default as JetpackSearchLogo } from './components/jetpack-search-logo/index.
|
|
3
|
-
export { default as JetpackProtectLogo } from './components/jetpack-protect-logo/index.
|
|
4
|
-
export { default as JetpackVaultPressBackupLogo } from './components/jetpack-vaultpress-backup-logo/index.
|
|
5
|
-
export { default as JetpackVideoPressLogo } from './components/jetpack-videopress-logo/index.
|
|
6
|
-
export { default as getRedirectUrl } from './tools/jp-redirect/index.
|
|
7
|
-
export { default as getProductCheckoutUrl } from './tools/get-product-checkout-url/index.
|
|
8
|
-
export { isFirstMonthTrial } from './tools/pricing-utils/index.
|
|
9
|
-
export { default as AutomatticBylineLogo } from './components/automattic-byline-logo/index.
|
|
10
|
-
export { default as AutomatticIconLogo } from './components/automattic-icon-logo/index.
|
|
11
|
-
export { default as AutomatticForAgenciesLogo } from './components/automattic-for-agencies-logo/index.
|
|
12
|
-
export { default as JetpackFooter } from './components/jetpack-footer/index.
|
|
13
|
-
export { default as Spinner } from './components/spinner/index.
|
|
14
|
-
export { default as Gridicon } from './components/gridicon/index.
|
|
15
|
-
export { default as IconTooltip } from './components/icon-tooltip/index.
|
|
16
|
-
export { default as ActionButton } from './components/action-button/index.
|
|
17
|
-
export { default as PricingCard } from './components/pricing-card/index.
|
|
18
|
-
export { default as NumberSlider } from './components/number-slider/index.
|
|
19
|
-
export { default as AdminSection } from './components/admin-section/basic/index.
|
|
20
|
-
export { default as AdminSectionHero } from './components/admin-section/hero/index.
|
|
21
|
-
export { default as AdminPage } from './components/admin-page/index.
|
|
22
|
-
export { default as DecorativeCard } from './components/decorative-card/index.
|
|
23
|
-
export { default as Col } from './components/layout/col/index.
|
|
24
|
-
export { default as Testimonials } from './components/testimonials/index.
|
|
25
|
-
export { default as Container } from './components/layout/container/index.
|
|
26
|
-
export { default as useBreakpointMatch } from './components/layout/use-breakpoint-match/index.
|
|
27
|
-
export { default as CopyToClipboard } from './components/copy-to-clipboard/index.
|
|
28
|
-
export * from './components/icons/index.
|
|
29
|
-
export { default as SplitButton } from './components/split-button/index.
|
|
30
|
-
export { default as ThemeProvider } from './components/theme-provider/index.
|
|
31
|
-
export { default as Text, H2, H3, Title } from './components/text/index.
|
|
32
|
-
export { default as ToggleControl } from './components/toggle-control/index.
|
|
33
|
-
export { default as NumberControl } from './components/number-control/index.
|
|
34
|
-
export { default as numberFormat } from './components/number-format/index.
|
|
35
|
-
export { default as QRCode } from './components/qr-code/index.
|
|
36
|
-
export { default as Button } from './components/button/index.
|
|
37
|
-
export type { ButtonProps } from './components/button/types.
|
|
38
|
-
export { default as LoadingPlaceholder } from './components/loading-placeholder/index.
|
|
39
|
-
export { default as TermsOfService } from './components/terms-of-service/index.
|
|
40
|
-
export { default as Badge } from './components/badge/index.
|
|
41
|
-
export { default as Chip } from './components/chip/index.
|
|
42
|
-
export { default as PricingTable, PricingTableColumn, PricingTableHeader, PricingTableItem, } from './components/pricing-table/index.
|
|
43
|
-
export { default as BoostScoreBar } from './components/boost-score-bar/index.
|
|
44
|
-
export { default as BoostScoreGraph } from './components/boost-score-graph/index.
|
|
45
|
-
export { default as ProductPrice } from './components/product-price/index.
|
|
46
|
-
export { default as ProductOffer, IconsCard } from './components/product-offer/index.
|
|
47
|
-
export { default as Dialog } from './components/dialog/index.
|
|
48
|
-
export { default as DotPager } from './components/dot-pager/index.
|
|
49
|
-
export { default as DonutMeter } from './components/donut-meter/index.
|
|
50
|
-
export { default as RecordMeterBar } from './components/record-meter-bar/index.
|
|
51
|
-
export { default as ContextualUpgradeTrigger } from './components/contextual-upgrade-trigger/index.
|
|
52
|
-
export { default as Alert } from './components/alert/index.
|
|
53
|
-
export { default as Notice } from './components/notice/index.
|
|
54
|
-
export { default as Popover } from './components/popover/index.
|
|
55
|
-
export { default as Status } from './components/status/index.
|
|
56
|
-
export { default as IndeterminateProgressBar } from './components/indeterminate-progress-bar/index.
|
|
57
|
-
export { default as ActionPopover } from './components/action-popover/index.
|
|
58
|
-
export { default as ZendeskChat } from './components/zendesk-chat/index.
|
|
59
|
-
export { default as ProgressBar } from './components/progress-bar/index.
|
|
60
|
-
export { default as UpsellBanner } from './components/upsell-banner/index.
|
|
61
|
-
export { getUserLocale, cleanLocale } from './lib/locale/index.
|
|
62
|
-
export { default as RadioControl } from './components/radio-control/index.
|
|
63
|
-
export { default as StatCard } from './components/stat-card/index.
|
|
64
|
-
export { default as DiffViewer } from './components/diff-viewer/index.
|
|
65
|
-
export { default as MarkedLines } from './components/marked-lines/index.
|
|
66
|
-
export * from './components/global-notices/index.
|
|
1
|
+
export { default as JetpackLogo } from './components/jetpack-logo/index.tsx';
|
|
2
|
+
export { default as JetpackSearchLogo } from './components/jetpack-search-logo/index.tsx';
|
|
3
|
+
export { default as JetpackProtectLogo } from './components/jetpack-protect-logo/index.tsx';
|
|
4
|
+
export { default as JetpackVaultPressBackupLogo } from './components/jetpack-vaultpress-backup-logo/index.tsx';
|
|
5
|
+
export { default as JetpackVideoPressLogo } from './components/jetpack-videopress-logo/index.tsx';
|
|
6
|
+
export { default as getRedirectUrl } from './tools/jp-redirect/index.ts';
|
|
7
|
+
export { default as getProductCheckoutUrl } from './tools/get-product-checkout-url/index.ts';
|
|
8
|
+
export { isFirstMonthTrial } from './tools/pricing-utils/index.ts';
|
|
9
|
+
export { default as AutomatticBylineLogo } from './components/automattic-byline-logo/index.tsx';
|
|
10
|
+
export { default as AutomatticIconLogo } from './components/automattic-icon-logo/index.tsx';
|
|
11
|
+
export { default as AutomatticForAgenciesLogo } from './components/automattic-for-agencies-logo/index.tsx';
|
|
12
|
+
export { default as JetpackFooter } from './components/jetpack-footer/index.tsx';
|
|
13
|
+
export { default as Spinner } from './components/spinner/index.jsx';
|
|
14
|
+
export { default as Gridicon } from './components/gridicon/index.tsx';
|
|
15
|
+
export { default as IconTooltip } from './components/icon-tooltip/index.tsx';
|
|
16
|
+
export { default as ActionButton } from './components/action-button/index.jsx';
|
|
17
|
+
export { default as PricingCard } from './components/pricing-card/index.tsx';
|
|
18
|
+
export { default as NumberSlider } from './components/number-slider/index.tsx';
|
|
19
|
+
export { default as AdminSection } from './components/admin-section/basic/index.tsx';
|
|
20
|
+
export { default as AdminSectionHero } from './components/admin-section/hero/index.tsx';
|
|
21
|
+
export { default as AdminPage } from './components/admin-page/index.tsx';
|
|
22
|
+
export { default as DecorativeCard } from './components/decorative-card/index.tsx';
|
|
23
|
+
export { default as Col } from './components/layout/col/index.tsx';
|
|
24
|
+
export { default as Testimonials } from './components/testimonials/index.tsx';
|
|
25
|
+
export { default as Container } from './components/layout/container/index.tsx';
|
|
26
|
+
export { default as useBreakpointMatch } from './components/layout/use-breakpoint-match/index.ts';
|
|
27
|
+
export { default as CopyToClipboard } from './components/copy-to-clipboard/index.tsx';
|
|
28
|
+
export * from './components/icons/index.tsx';
|
|
29
|
+
export { default as SplitButton } from './components/split-button/index.tsx';
|
|
30
|
+
export { default as ThemeProvider } from './components/theme-provider/index.tsx';
|
|
31
|
+
export { default as Text, H2, H3, Title } from './components/text/index.tsx';
|
|
32
|
+
export { default as ToggleControl } from './components/toggle-control/index.tsx';
|
|
33
|
+
export { default as NumberControl } from './components/number-control/index.jsx';
|
|
34
|
+
export { default as numberFormat } from './components/number-format/index.ts';
|
|
35
|
+
export { default as QRCode } from './components/qr-code/index.tsx';
|
|
36
|
+
export { default as Button } from './components/button/index.tsx';
|
|
37
|
+
export type { ButtonProps } from './components/button/types.ts';
|
|
38
|
+
export { default as LoadingPlaceholder } from './components/loading-placeholder/index.tsx';
|
|
39
|
+
export { default as TermsOfService } from './components/terms-of-service/index.tsx';
|
|
40
|
+
export { default as Badge } from './components/badge/index.tsx';
|
|
41
|
+
export { default as Chip } from './components/chip/index.tsx';
|
|
42
|
+
export { default as PricingTable, PricingTableColumn, PricingTableHeader, PricingTableItem, } from './components/pricing-table/index.tsx';
|
|
43
|
+
export { default as BoostScoreBar } from './components/boost-score-bar/index.tsx';
|
|
44
|
+
export { default as BoostScoreGraph } from './components/boost-score-graph/index.tsx';
|
|
45
|
+
export { default as ProductPrice } from './components/product-price/index.tsx';
|
|
46
|
+
export { default as ProductOffer, IconsCard } from './components/product-offer/index.tsx';
|
|
47
|
+
export { default as Dialog } from './components/dialog/index.tsx';
|
|
48
|
+
export { default as DotPager } from './components/dot-pager/index.tsx';
|
|
49
|
+
export { default as DonutMeter } from './components/donut-meter/index.tsx';
|
|
50
|
+
export { default as RecordMeterBar } from './components/record-meter-bar/index.tsx';
|
|
51
|
+
export { default as ContextualUpgradeTrigger } from './components/contextual-upgrade-trigger/index.tsx';
|
|
52
|
+
export { default as Alert } from './components/alert/index.tsx';
|
|
53
|
+
export { default as Notice } from './components/notice/index.tsx';
|
|
54
|
+
export { default as Popover } from './components/popover/index.tsx';
|
|
55
|
+
export { default as Status } from './components/status/index.tsx';
|
|
56
|
+
export { default as IndeterminateProgressBar } from './components/indeterminate-progress-bar/index.tsx';
|
|
57
|
+
export { default as ActionPopover } from './components/action-popover/index.tsx';
|
|
58
|
+
export { default as ZendeskChat } from './components/zendesk-chat/index.tsx';
|
|
59
|
+
export { default as ProgressBar } from './components/progress-bar/index.tsx';
|
|
60
|
+
export { default as UpsellBanner } from './components/upsell-banner/index.tsx';
|
|
61
|
+
export { getUserLocale, cleanLocale } from './lib/locale/index.ts';
|
|
62
|
+
export { default as RadioControl } from './components/radio-control/index.tsx';
|
|
63
|
+
export { default as StatCard } from './components/stat-card/index.tsx';
|
|
64
|
+
export { default as DiffViewer } from './components/diff-viewer/index.tsx';
|
|
65
|
+
export { default as MarkedLines } from './components/marked-lines/index.tsx';
|
|
66
|
+
export * from './components/global-notices/index.ts';
|
package/build/index.js
CHANGED
|
@@ -13,68 +13,68 @@ You should have received a copy of the GNU General Public License
|
|
|
13
13
|
along with this program; if not, write to the Free Software
|
|
14
14
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
15
15
|
*/
|
|
16
|
-
export { default as JetpackLogo } from
|
|
17
|
-
export { default as JetpackSearchLogo } from
|
|
18
|
-
export { default as JetpackProtectLogo } from
|
|
19
|
-
export { default as JetpackVaultPressBackupLogo } from
|
|
20
|
-
export { default as JetpackVideoPressLogo } from
|
|
21
|
-
export { default as getRedirectUrl } from
|
|
22
|
-
export { default as getProductCheckoutUrl } from
|
|
23
|
-
export { isFirstMonthTrial } from
|
|
24
|
-
export { default as AutomatticBylineLogo } from
|
|
25
|
-
export { default as AutomatticIconLogo } from
|
|
26
|
-
export { default as AutomatticForAgenciesLogo } from
|
|
27
|
-
export { default as JetpackFooter } from
|
|
28
|
-
export { default as Spinner } from './components/spinner/index.
|
|
29
|
-
export { default as Gridicon } from
|
|
30
|
-
export { default as IconTooltip } from
|
|
31
|
-
export { default as ActionButton } from './components/action-button/index.
|
|
32
|
-
export { default as PricingCard } from
|
|
33
|
-
export { default as NumberSlider } from
|
|
34
|
-
export { default as AdminSection } from
|
|
35
|
-
export { default as AdminSectionHero } from
|
|
36
|
-
export { default as AdminPage } from
|
|
37
|
-
export { default as DecorativeCard } from
|
|
38
|
-
export { default as Col } from
|
|
39
|
-
export { default as Testimonials } from
|
|
40
|
-
export { default as Container } from
|
|
41
|
-
export { default as useBreakpointMatch } from
|
|
42
|
-
export { default as CopyToClipboard } from
|
|
43
|
-
export * from
|
|
44
|
-
export { default as SplitButton } from
|
|
45
|
-
export { default as ThemeProvider } from
|
|
46
|
-
export { default as Text, H2, H3, Title } from
|
|
47
|
-
export { default as ToggleControl } from
|
|
48
|
-
export { default as NumberControl } from './components/number-control/index.
|
|
49
|
-
export { default as numberFormat } from
|
|
50
|
-
export { default as QRCode } from
|
|
51
|
-
export { default as Button } from
|
|
52
|
-
export { default as LoadingPlaceholder } from
|
|
53
|
-
export { default as TermsOfService } from
|
|
54
|
-
export { default as Badge } from
|
|
55
|
-
export { default as Chip } from
|
|
56
|
-
export { default as PricingTable, PricingTableColumn, PricingTableHeader, PricingTableItem, } from
|
|
57
|
-
export { default as BoostScoreBar } from
|
|
58
|
-
export { default as BoostScoreGraph } from
|
|
59
|
-
export { default as ProductPrice } from
|
|
60
|
-
export { default as ProductOffer, IconsCard } from
|
|
61
|
-
export { default as Dialog } from
|
|
62
|
-
export { default as DotPager } from
|
|
63
|
-
export { default as DonutMeter } from
|
|
64
|
-
export { default as RecordMeterBar } from
|
|
65
|
-
export { default as ContextualUpgradeTrigger } from
|
|
66
|
-
export { default as Alert } from
|
|
67
|
-
export { default as Notice } from
|
|
68
|
-
export { default as Popover } from
|
|
69
|
-
export { default as Status } from
|
|
70
|
-
export { default as IndeterminateProgressBar } from
|
|
71
|
-
export { default as ActionPopover } from
|
|
72
|
-
export { default as ZendeskChat } from
|
|
73
|
-
export { default as ProgressBar } from
|
|
74
|
-
export { default as UpsellBanner } from
|
|
75
|
-
export { getUserLocale, cleanLocale } from
|
|
76
|
-
export { default as RadioControl } from
|
|
77
|
-
export { default as StatCard } from
|
|
78
|
-
export { default as DiffViewer } from
|
|
79
|
-
export { default as MarkedLines } from
|
|
80
|
-
export * from
|
|
16
|
+
export { default as JetpackLogo } from "./components/jetpack-logo/index.js";
|
|
17
|
+
export { default as JetpackSearchLogo } from "./components/jetpack-search-logo/index.js";
|
|
18
|
+
export { default as JetpackProtectLogo } from "./components/jetpack-protect-logo/index.js";
|
|
19
|
+
export { default as JetpackVaultPressBackupLogo } from "./components/jetpack-vaultpress-backup-logo/index.js";
|
|
20
|
+
export { default as JetpackVideoPressLogo } from "./components/jetpack-videopress-logo/index.js";
|
|
21
|
+
export { default as getRedirectUrl } from "./tools/jp-redirect/index.js";
|
|
22
|
+
export { default as getProductCheckoutUrl } from "./tools/get-product-checkout-url/index.js";
|
|
23
|
+
export { isFirstMonthTrial } from "./tools/pricing-utils/index.js";
|
|
24
|
+
export { default as AutomatticBylineLogo } from "./components/automattic-byline-logo/index.js";
|
|
25
|
+
export { default as AutomatticIconLogo } from "./components/automattic-icon-logo/index.js";
|
|
26
|
+
export { default as AutomatticForAgenciesLogo } from "./components/automattic-for-agencies-logo/index.js";
|
|
27
|
+
export { default as JetpackFooter } from "./components/jetpack-footer/index.js";
|
|
28
|
+
export { default as Spinner } from './components/spinner/index.jsx';
|
|
29
|
+
export { default as Gridicon } from "./components/gridicon/index.js";
|
|
30
|
+
export { default as IconTooltip } from "./components/icon-tooltip/index.js";
|
|
31
|
+
export { default as ActionButton } from './components/action-button/index.jsx';
|
|
32
|
+
export { default as PricingCard } from "./components/pricing-card/index.js";
|
|
33
|
+
export { default as NumberSlider } from "./components/number-slider/index.js";
|
|
34
|
+
export { default as AdminSection } from "./components/admin-section/basic/index.js";
|
|
35
|
+
export { default as AdminSectionHero } from "./components/admin-section/hero/index.js";
|
|
36
|
+
export { default as AdminPage } from "./components/admin-page/index.js";
|
|
37
|
+
export { default as DecorativeCard } from "./components/decorative-card/index.js";
|
|
38
|
+
export { default as Col } from "./components/layout/col/index.js";
|
|
39
|
+
export { default as Testimonials } from "./components/testimonials/index.js";
|
|
40
|
+
export { default as Container } from "./components/layout/container/index.js";
|
|
41
|
+
export { default as useBreakpointMatch } from "./components/layout/use-breakpoint-match/index.js";
|
|
42
|
+
export { default as CopyToClipboard } from "./components/copy-to-clipboard/index.js";
|
|
43
|
+
export * from "./components/icons/index.js";
|
|
44
|
+
export { default as SplitButton } from "./components/split-button/index.js";
|
|
45
|
+
export { default as ThemeProvider } from "./components/theme-provider/index.js";
|
|
46
|
+
export { default as Text, H2, H3, Title } from "./components/text/index.js";
|
|
47
|
+
export { default as ToggleControl } from "./components/toggle-control/index.js";
|
|
48
|
+
export { default as NumberControl } from './components/number-control/index.jsx';
|
|
49
|
+
export { default as numberFormat } from "./components/number-format/index.js";
|
|
50
|
+
export { default as QRCode } from "./components/qr-code/index.js";
|
|
51
|
+
export { default as Button } from "./components/button/index.js";
|
|
52
|
+
export { default as LoadingPlaceholder } from "./components/loading-placeholder/index.js";
|
|
53
|
+
export { default as TermsOfService } from "./components/terms-of-service/index.js";
|
|
54
|
+
export { default as Badge } from "./components/badge/index.js";
|
|
55
|
+
export { default as Chip } from "./components/chip/index.js";
|
|
56
|
+
export { default as PricingTable, PricingTableColumn, PricingTableHeader, PricingTableItem, } from "./components/pricing-table/index.js";
|
|
57
|
+
export { default as BoostScoreBar } from "./components/boost-score-bar/index.js";
|
|
58
|
+
export { default as BoostScoreGraph } from "./components/boost-score-graph/index.js";
|
|
59
|
+
export { default as ProductPrice } from "./components/product-price/index.js";
|
|
60
|
+
export { default as ProductOffer, IconsCard } from "./components/product-offer/index.js";
|
|
61
|
+
export { default as Dialog } from "./components/dialog/index.js";
|
|
62
|
+
export { default as DotPager } from "./components/dot-pager/index.js";
|
|
63
|
+
export { default as DonutMeter } from "./components/donut-meter/index.js";
|
|
64
|
+
export { default as RecordMeterBar } from "./components/record-meter-bar/index.js";
|
|
65
|
+
export { default as ContextualUpgradeTrigger } from "./components/contextual-upgrade-trigger/index.js";
|
|
66
|
+
export { default as Alert } from "./components/alert/index.js";
|
|
67
|
+
export { default as Notice } from "./components/notice/index.js";
|
|
68
|
+
export { default as Popover } from "./components/popover/index.js";
|
|
69
|
+
export { default as Status } from "./components/status/index.js";
|
|
70
|
+
export { default as IndeterminateProgressBar } from "./components/indeterminate-progress-bar/index.js";
|
|
71
|
+
export { default as ActionPopover } from "./components/action-popover/index.js";
|
|
72
|
+
export { default as ZendeskChat } from "./components/zendesk-chat/index.js";
|
|
73
|
+
export { default as ProgressBar } from "./components/progress-bar/index.js";
|
|
74
|
+
export { default as UpsellBanner } from "./components/upsell-banner/index.js";
|
|
75
|
+
export { getUserLocale, cleanLocale } from "./lib/locale/index.js";
|
|
76
|
+
export { default as RadioControl } from "./components/radio-control/index.js";
|
|
77
|
+
export { default as StatCard } from "./components/stat-card/index.js";
|
|
78
|
+
export { default as DiffViewer } from "./components/diff-viewer/index.js";
|
|
79
|
+
export { default as MarkedLines } from "./components/marked-lines/index.js";
|
|
80
|
+
export * from "./components/global-notices/index.js";
|
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
import { Popover } from '@wordpress/components';
|
|
5
5
|
import { __, sprintf } from '@wordpress/i18n';
|
|
6
6
|
import { close } from '@wordpress/icons';
|
|
7
|
-
import Button from '../button/index.
|
|
8
|
-
import useBreakpointMatch from '../layout/use-breakpoint-match/index.
|
|
9
|
-
import Text from '../text/index.
|
|
7
|
+
import Button from '../button/index.tsx';
|
|
8
|
+
import useBreakpointMatch from '../layout/use-breakpoint-match/index.ts';
|
|
9
|
+
import Text from '../text/index.tsx';
|
|
10
10
|
/**
|
|
11
11
|
* Internal dependencies
|
|
12
12
|
*/
|
|
13
|
-
import ThemeProvider from '../theme-provider/index.
|
|
13
|
+
import ThemeProvider from '../theme-provider/index.tsx';
|
|
14
14
|
import styles from './styles.module.scss';
|
|
15
15
|
/**
|
|
16
16
|
* Types
|
|
17
17
|
*/
|
|
18
|
-
import { ActionPopoverProps } from './types.
|
|
18
|
+
import { ActionPopoverProps } from './types.ts';
|
|
19
19
|
import type React from 'react';
|
|
20
20
|
|
|
21
21
|
const ActionPopover = ( {
|
|
@@ -2,12 +2,12 @@ import restApi from '@automattic/jetpack-api';
|
|
|
2
2
|
import { __, sprintf } from '@wordpress/i18n';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useEffect, useCallback } from 'react';
|
|
5
|
-
import JetpackFooter from '../jetpack-footer/index.
|
|
6
|
-
import JetpackLogo from '../jetpack-logo/index.
|
|
7
|
-
import Col from '../layout/col/index.
|
|
8
|
-
import Container from '../layout/container/index.
|
|
5
|
+
import JetpackFooter from '../jetpack-footer/index.tsx';
|
|
6
|
+
import JetpackLogo from '../jetpack-logo/index.tsx';
|
|
7
|
+
import Col from '../layout/col/index.tsx';
|
|
8
|
+
import Container from '../layout/container/index.tsx';
|
|
9
9
|
import styles from './style.module.scss';
|
|
10
|
-
import type { AdminPageProps } from './types.
|
|
10
|
+
import type { AdminPageProps } from './types.ts';
|
|
11
11
|
import type React from 'react';
|
|
12
12
|
|
|
13
13
|
/**
|