@automattic/jetpack-components 0.66.0 → 0.67.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.
Files changed (75) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/components/action-button/index.jsx +1 -1
  3. package/components/action-popover/index.tsx +5 -5
  4. package/components/admin-page/index.tsx +5 -5
  5. package/components/admin-page/types.ts +1 -1
  6. package/components/admin-section/basic/index.tsx +1 -1
  7. package/components/admin-section/hero/index.tsx +1 -1
  8. package/components/automattic-byline-logo/index.tsx +1 -1
  9. package/components/boost-score-bar/index.tsx +2 -2
  10. package/components/boost-score-graph/annotations-plugin.ts +1 -1
  11. package/components/boost-score-graph/index.tsx +3 -3
  12. package/components/boost-score-graph/tooltip.tsx +1 -1
  13. package/components/boost-score-graph/tooltips-plugin.ts +2 -2
  14. package/components/boost-score-graph/uplot-line-chart.tsx +9 -9
  15. package/components/boost-score-graph/use-boost-score-transform.ts +1 -1
  16. package/components/button/index.tsx +1 -1
  17. package/components/contextual-upgrade-trigger/index.tsx +3 -3
  18. package/components/copy-to-clipboard/index.tsx +3 -3
  19. package/components/copy-to-clipboard/types.ts +1 -1
  20. package/components/decorative-card/index.tsx +1 -1
  21. package/components/dialog/index.tsx +3 -3
  22. package/components/diff-viewer/index.tsx +2 -2
  23. package/components/global-notices/global-notices.tsx +1 -1
  24. package/components/global-notices/index.ts +2 -2
  25. package/components/gridicon/index.tsx +1 -1
  26. package/components/icon-tooltip/index.tsx +3 -3
  27. package/components/icons/index.tsx +1 -1
  28. package/components/indeterminate-progress-bar/index.tsx +1 -1
  29. package/components/jetpack-footer/index.tsx +7 -7
  30. package/components/jetpack-logo/index.tsx +1 -1
  31. package/components/jetpack-protect-logo/index.tsx +1 -1
  32. package/components/jetpack-search-logo/index.tsx +1 -1
  33. package/components/jetpack-vaultpress-backup-logo/index.tsx +1 -1
  34. package/components/jetpack-videopress-logo/index.tsx +1 -1
  35. package/components/layout/col/index.tsx +1 -1
  36. package/components/layout/container/index.tsx +1 -1
  37. package/components/notice/style.module.scss +4 -3
  38. package/components/number-format/index.ts +1 -1
  39. package/components/number-slider/index.tsx +1 -1
  40. package/components/pricing-card/index.tsx +3 -3
  41. package/components/pricing-table/index.tsx +5 -5
  42. package/components/pricing-table/types.ts +1 -1
  43. package/components/product-offer/icons-card.tsx +2 -2
  44. package/components/product-offer/index.tsx +9 -9
  45. package/components/product-offer/product-offer-header.tsx +2 -2
  46. package/components/product-offer/types.ts +2 -2
  47. package/components/product-price/index.tsx +4 -4
  48. package/components/product-price/price.tsx +2 -2
  49. package/components/progress-bar/index.tsx +1 -1
  50. package/components/record-meter-bar/index.tsx +1 -1
  51. package/components/split-button/index.tsx +1 -1
  52. package/components/stat-card/index.tsx +3 -3
  53. package/components/status/index.tsx +1 -1
  54. package/components/terms-of-service/index.tsx +3 -3
  55. package/components/terms-of-service/types.ts +1 -1
  56. package/components/testimonials/index.tsx +3 -3
  57. package/components/testimonials/testimonial.tsx +1 -1
  58. package/components/text/index.tsx +3 -3
  59. package/components/text/types.ts +1 -1
  60. package/components/theme-provider/index.tsx +1 -1
  61. package/components/threat-modal/fixer-state-notice.tsx +1 -1
  62. package/components/threat-modal/index.tsx +4 -3
  63. package/components/threat-modal/threat-actions.tsx +2 -2
  64. package/components/threat-modal/threat-fix-confirmation.tsx +6 -6
  65. package/components/threat-modal/threat-fix-details.tsx +3 -3
  66. package/components/threat-modal/threat-notice.tsx +1 -1
  67. package/components/threat-modal/threat-summary.tsx +2 -2
  68. package/components/threat-modal/threat-technical-details.tsx +3 -3
  69. package/components/threat-severity-badge/index.tsx +1 -1
  70. package/components/threats-data-views/index.tsx +5 -5
  71. package/components/upsell-banner/index.tsx +1 -1
  72. package/components/zendesk-chat/index.tsx +2 -2
  73. package/index.ts +67 -67
  74. package/package.json +2 -2
  75. package/tools/pricing-utils/index.ts +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  ### This is a list detailing changes for the Jetpack RNA Components package releases.
4
4
 
5
+ ## [0.67.0] - 2025-02-17
6
+ ### Added
7
+ - Use full import paths with JS extensions. [#41524]
8
+
9
+ ## [0.66.1] - 2025-02-11
10
+ ### Changed
11
+ - Internal updates.
12
+
5
13
  ## [0.66.0] - 2025-02-05
6
14
  ### Added
7
15
  - jetpack-components: Export the getRedirectUrl function with subpath [#41078]
@@ -1282,6 +1290,8 @@
1282
1290
  ### Changed
1283
1291
  - Update node version requirement to 14.16.1
1284
1292
 
1293
+ [0.67.0]: https://github.com/Automattic/jetpack-components/compare/0.66.1...0.67.0
1294
+ [0.66.1]: https://github.com/Automattic/jetpack-components/compare/0.66.0...0.66.1
1285
1295
  [0.66.0]: https://github.com/Automattic/jetpack-components/compare/0.65.5...0.66.0
1286
1296
  [0.65.5]: https://github.com/Automattic/jetpack-components/compare/0.65.4...0.65.5
1287
1297
  [0.65.4]: https://github.com/Automattic/jetpack-components/compare/0.65.3...0.65.4
@@ -9,7 +9,7 @@ import PropTypes from 'prop-types';
9
9
  * Internal dependencies
10
10
  */
11
11
  import React from 'react';
12
- import Button from '../button';
12
+ import Button from '../button/index.js';
13
13
  import styles from './style.module.scss';
14
14
 
15
15
  /**
@@ -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';
8
- import useBreakpointMatch from '../layout/use-breakpoint-match';
9
- import Text from '../text';
7
+ import Button from '../button/index.js';
8
+ import useBreakpointMatch from '../layout/use-breakpoint-match/index.js';
9
+ import Text from '../text/index.js';
10
10
  /**
11
11
  * Internal dependencies
12
12
  */
13
- import ThemeProvider from '../theme-provider';
13
+ import ThemeProvider from '../theme-provider/index.js';
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.js';
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';
6
- import JetpackLogo from '../jetpack-logo';
7
- import Col from '../layout/col';
8
- import Container from '../layout/container';
5
+ import JetpackFooter from '../jetpack-footer/index.js';
6
+ import JetpackLogo from '../jetpack-logo/index.js';
7
+ import Col from '../layout/col/index.js';
8
+ import Container from '../layout/container/index.js';
9
9
  import styles from './style.module.scss';
10
- import type { AdminPageProps } from './types';
10
+ import type { AdminPageProps } from './types.js';
11
11
  import type React from 'react';
12
12
 
13
13
  /**
@@ -1,4 +1,4 @@
1
- import type { JetpackFooterMenuItem } from '../jetpack-footer/types';
1
+ import type { JetpackFooterMenuItem } from '../jetpack-footer/types.js';
2
2
 
3
3
  export type AdminPageProps = {
4
4
  /**
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import styles from './style.module.scss';
3
- import type { AdminSectionBaseProps } from '../types';
3
+ import type { AdminSectionBaseProps } from '../types.js';
4
4
 
5
5
  /**
6
6
  * This is the wrapper component to build sections within your admin page.
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import styles from './style.module.scss';
3
- import type { AdminSectionBaseProps } from '../types';
3
+ import type { AdminSectionBaseProps } from '../types.js';
4
4
 
5
5
  /**
6
6
  * The wrapper component for a Hero Section to be used in admin pages.
@@ -1,7 +1,7 @@
1
1
  import { __ } from '@wordpress/i18n';
2
2
  import clsx from 'clsx';
3
3
  import React from 'react';
4
- import { AutomatticBylineLogoProps } from './types';
4
+ import { AutomatticBylineLogoProps } from './types.js';
5
5
 
6
6
  /**
7
7
  * Automattic "By line" Logo component.
@@ -1,7 +1,7 @@
1
1
  import { __ } from '@wordpress/i18n';
2
2
  import clsx from 'clsx';
3
- import Gridicon from '../gridicon';
4
- import type { BoostScoreBarProps } from './types';
3
+ import Gridicon from '../gridicon/index.js';
4
+ import type { BoostScoreBarProps } from './types.js';
5
5
  import type { FunctionComponent } from 'react';
6
6
 
7
7
  import './style.scss';
@@ -1,5 +1,5 @@
1
1
  import uPlot from 'uplot';
2
- import { Annotation } from '.';
2
+ import { Annotation } from './index.js';
3
3
 
4
4
  import './style-annotation.scss';
5
5
 
@@ -1,7 +1,7 @@
1
1
  import React, { type FunctionComponent } from 'react';
2
- import Text from '../text';
3
- import Background from './background';
4
- import UplotLineChart from './uplot-line-chart';
2
+ import Text from '../text/index.js';
3
+ import Background from './background.js';
4
+ import UplotLineChart from './uplot-line-chart.js';
5
5
  import './style.scss';
6
6
 
7
7
  export interface Period {
@@ -3,7 +3,7 @@ import { dateI18n } from '@wordpress/date';
3
3
  import { __, sprintf } from '@wordpress/i18n';
4
4
  import { type FunctionComponent } from 'react';
5
5
  import './style-tooltip.scss';
6
- import { Period } from '.';
6
+ import { Period } from './index.js';
7
7
 
8
8
  export const Tooltip: FunctionComponent = ( { period }: { period: Period } ) => {
9
9
  if ( ! period || ! period.dimensions || ! period.timestamp ) {
@@ -1,7 +1,7 @@
1
1
  import ReactDOM from 'react-dom/client';
2
2
  import uPlot from 'uplot';
3
- import { Tooltip } from './tooltip';
4
- import { Period } from '.';
3
+ import { Tooltip } from './tooltip.js';
4
+ import { Period } from './index.js';
5
5
 
6
6
  /**
7
7
  * Custom tooltips plugin for uPlot.
@@ -2,15 +2,15 @@ import { __ } from '@wordpress/i18n';
2
2
  import React, { useMemo, useRef, useCallback } from 'react';
3
3
  import uPlot from 'uplot';
4
4
  import UplotReact from 'uplot-react';
5
- import { getUserLocale } from '../../lib/locale';
6
- import numberFormat from '../number-format';
7
- import { annotationsPlugin } from './annotations-plugin';
8
- import { dayHighlightPlugin } from './day-highlight-plugin';
9
- import getDateFormat from './get-date-format';
10
- import { tooltipsPlugin } from './tooltips-plugin';
11
- import { useBoostScoreTransform } from './use-boost-score-transform';
12
- import useResize from './use-resize';
13
- import { type Annotation, Period } from '.';
5
+ import { getUserLocale } from '../../lib/locale/index.js';
6
+ import numberFormat from '../number-format/index.js';
7
+ import { annotationsPlugin } from './annotations-plugin.js';
8
+ import { dayHighlightPlugin } from './day-highlight-plugin.js';
9
+ import getDateFormat from './get-date-format.js';
10
+ import { tooltipsPlugin } from './tooltips-plugin.js';
11
+ import { useBoostScoreTransform } from './use-boost-score-transform.js';
12
+ import useResize from './use-resize.js';
13
+ import { type Annotation, Period } from './index.js';
14
14
  import './style-uplot.scss';
15
15
 
16
16
  const DEFAULT_DIMENSIONS = {
@@ -1,5 +1,5 @@
1
1
  import { useMemo } from 'react';
2
- import { Period } from './index';
2
+ import { Period } from './index.js';
3
3
 
4
4
  type ScoreGraphAlignedData = [
5
5
  number[], // timestamps
@@ -10,7 +10,7 @@ import React, { forwardRef } from 'react';
10
10
  * Internal dependencies
11
11
  */
12
12
  import styles from './style.module.scss';
13
- import type { ButtonProps } from './types';
13
+ import type { ButtonProps } from './types.js';
14
14
 
15
15
  /**
16
16
  * Button component
@@ -1,9 +1,9 @@
1
1
  import { Icon, arrowRight } from '@wordpress/icons';
2
2
  import clsx from 'clsx';
3
- import IconTooltip from '../icon-tooltip';
4
- import Text from '../text';
3
+ import IconTooltip from '../icon-tooltip/index.js';
4
+ import Text from '../text/index.js';
5
5
  import styles from './style.module.scss';
6
- import { CutBaseProps } from './types';
6
+ import { CutBaseProps } from './types.js';
7
7
  import type React from 'react';
8
8
 
9
9
  const ContextualUpgradeTrigger: React.FC< CutBaseProps > = ( {
@@ -1,9 +1,9 @@
1
1
  import { useCopyToClipboard } from '@wordpress/compose';
2
2
  import { useState, useRef, useEffect } from '@wordpress/element';
3
3
  import { __ } from '@wordpress/i18n';
4
- import Button from '../button';
5
- import { ClipboardIcon, CheckmarkIcon } from '../icons';
6
- import { CopyToClipboardProps } from './types';
4
+ import Button from '../button/index.js';
5
+ import { ClipboardIcon, CheckmarkIcon } from '../icons/index.js';
6
+ import { CopyToClipboardProps } from './types.js';
7
7
  import type React from 'react';
8
8
 
9
9
  export const CopyToClipboard: React.FC< CopyToClipboardProps > = ( {
@@ -1,4 +1,4 @@
1
- import { ButtonProps } from '../button/types';
1
+ import { ButtonProps } from '../button/types.js';
2
2
 
3
3
  export type CopyToClipboardProps = ButtonProps & {
4
4
  buttonStyle?: 'icon' | 'text' | 'icon-text';
@@ -1,4 +1,4 @@
1
- import type { DecorativeCardProps } from './types';
1
+ import type { DecorativeCardProps } from './types.js';
2
2
  import type React from 'react';
3
3
  import './style.scss';
4
4
 
@@ -1,8 +1,8 @@
1
1
  import clsx from 'clsx';
2
2
  import React from 'react';
3
- import Col from '../layout/col';
4
- import Container from '../layout/container';
5
- import useBreakpointMatch from '../layout/use-breakpoint-match';
3
+ import Col from '../layout/col/index.js';
4
+ import Container from '../layout/container/index.js';
5
+ import useBreakpointMatch from '../layout/use-breakpoint-match/index.js';
6
6
  import styles from './style.module.scss';
7
7
 
8
8
  type DialogProps = {
@@ -1,6 +1,6 @@
1
1
  import { Fragment } from 'react';
2
- import parseFilename from './parse-filename';
3
- import parsePatch from './parse-patch';
2
+ import parseFilename from './parse-filename.js';
3
+ import parsePatch from './parse-patch.js';
4
4
  import styles from './styles.module.scss';
5
5
 
6
6
  const filename = ( {
@@ -1,6 +1,6 @@
1
1
  import { SnackbarList } from '@wordpress/components';
2
2
  import styles from './styles.module.scss';
3
- import { useGlobalNotices } from './use-global-notices';
3
+ import { useGlobalNotices } from './use-global-notices.js';
4
4
 
5
5
  export type GlobalNoticesProps = {
6
6
  maxVisibleNotices?: number;
@@ -1,3 +1,3 @@
1
- export * from './global-notices';
2
- export * from './use-global-notices';
1
+ export * from './global-notices.js';
2
+ export * from './use-global-notices.js';
3
3
  export { store as globalNoticesStore } from '@wordpress/notices';
@@ -9,7 +9,7 @@ import { __ } from '@wordpress/i18n';
9
9
  import clsx from 'clsx';
10
10
  import { Component } from 'react';
11
11
  import './style.scss';
12
- import { GridiconProps } from './types';
12
+ import { GridiconProps } from './types.js';
13
13
 
14
14
  class Gridicon extends Component< GridiconProps > {
15
15
  static defaultProps = {
@@ -1,9 +1,9 @@
1
1
  import { Popover } from '@wordpress/components';
2
2
  import clsx from 'clsx';
3
3
  import React, { useCallback, useState } from 'react';
4
- import Button from '../button';
5
- import Gridicon from '../gridicon/index';
6
- import { IconTooltipProps, Placement, Position } from './types';
4
+ import Button from '../button/index.js';
5
+ import Gridicon from '../gridicon/index.js';
6
+ import { IconTooltipProps, Placement, Position } from './types.js';
7
7
 
8
8
  import './style.scss';
9
9
 
@@ -2,7 +2,7 @@ import { Path, SVG, G, Polygon } from '@wordpress/components';
2
2
  import clsx from 'clsx';
3
3
  import { SocialLogo } from 'social-logos';
4
4
  import styles from './style.module.scss';
5
- import { BaseIconProps } from './types';
5
+ import { BaseIconProps } from './types.js';
6
6
  import type React from 'react';
7
7
 
8
8
  /**
@@ -7,7 +7,7 @@ import clsx from 'clsx';
7
7
  * Internal dependencies
8
8
  */
9
9
  import styles from './style.module.scss';
10
- import { IndeterminateProgressBarProps } from './types';
10
+ import { IndeterminateProgressBarProps } from './types.js';
11
11
  import type React from 'react';
12
12
 
13
13
  /**
@@ -3,14 +3,14 @@ import { __, _x } from '@wordpress/i18n';
3
3
  import { Icon, external } from '@wordpress/icons';
4
4
  import clsx from 'clsx';
5
5
  import React from 'react';
6
- import { getRedirectUrl } from '../..';
7
- import { STORE_ID as CONNECTION_STORE_ID } from '../../../../js-packages/connection/state/store';
8
- import getSiteAdminUrl from '../../tools/get-site-admin-url';
9
- import AutomatticBylineLogo from '../automattic-byline-logo';
6
+ import { STORE_ID as CONNECTION_STORE_ID } from '../../../../js-packages/connection/state/store.jsx';
7
+ import { getRedirectUrl } from '../../index.js';
8
+ import getSiteAdminUrl from '../../tools/get-site-admin-url/index.js';
9
+ import AutomatticBylineLogo from '../automattic-byline-logo/index.js';
10
10
  import './style.scss';
11
- import JetpackLogo from '../jetpack-logo';
12
- import useBreakpointMatch from '../layout/use-breakpoint-match';
13
- import type { JetpackFooterProps, JetpackFooterMenuItem } from './types';
11
+ import JetpackLogo from '../jetpack-logo/index.js';
12
+ import useBreakpointMatch from '../layout/use-breakpoint-match/index.js';
13
+ import type { JetpackFooterProps, JetpackFooterMenuItem } from './types.js';
14
14
 
15
15
  const JetpackIcon: React.FC = () => (
16
16
  <JetpackLogo logoColor="#000" showText={ false } height={ 16 } aria-hidden="true" />
@@ -1,7 +1,7 @@
1
1
  import { __ } from '@wordpress/i18n';
2
2
  import clsx from 'clsx';
3
3
  import React from 'react';
4
- import { JetpackLogoProps } from './types';
4
+ import { JetpackLogoProps } from './types.js';
5
5
 
6
6
  const JetpackLogo: React.FC< JetpackLogoProps > = ( {
7
7
  logoColor = '#069e08',
@@ -1,7 +1,7 @@
1
1
  import { __ } from '@wordpress/i18n';
2
2
  import clsx from 'clsx';
3
3
  import React from 'react';
4
- import { JetpackProtectLogoProps } from './types';
4
+ import { JetpackProtectLogoProps } from './types.js';
5
5
 
6
6
  const JetpackProtectLogo: React.FC< JetpackProtectLogoProps > = ( {
7
7
  logoColor = '#069e08',
@@ -1,7 +1,7 @@
1
1
  import { __ } from '@wordpress/i18n';
2
2
  import clsx from 'clsx';
3
3
  import React from 'react';
4
- import { JetpackSearchLogoProps } from './types';
4
+ import { JetpackSearchLogoProps } from './types.js';
5
5
 
6
6
  const JetpackSearchLogo: React.FC< JetpackSearchLogoProps > = ( {
7
7
  logoColor = '#069e08',
@@ -1,7 +1,7 @@
1
1
  import { __ } from '@wordpress/i18n';
2
2
  import clsx from 'clsx';
3
3
  import React from 'react';
4
- import { JetpackLogoProps } from './types';
4
+ import { JetpackLogoProps } from './types.js';
5
5
 
6
6
  const JetpackVaultPressBackupLogo: React.FC< JetpackLogoProps > = ( {
7
7
  showText = true,
@@ -1,7 +1,7 @@
1
1
  import { __ } from '@wordpress/i18n';
2
2
  import clsx from 'clsx';
3
3
  import React from 'react';
4
- import { JetpackLogoProps } from './types';
4
+ import { JetpackLogoProps } from './types.js';
5
5
 
6
6
  const JetpackVideoPressLogo: React.FC< JetpackLogoProps > = ( {
7
7
  showText = true,
@@ -1,6 +1,6 @@
1
1
  import clsx from 'clsx';
2
2
  import { createElement } from 'react';
3
- import { ColProps } from '../types';
3
+ import { ColProps } from '../types.js';
4
4
  import styles from './style.module.scss';
5
5
  import type React from 'react';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import clsx from 'clsx';
2
2
  import { createElement, forwardRef, useMemo } from 'react';
3
- import { ContainerProps } from '../types';
3
+ import { ContainerProps } from '../types.js';
4
4
  import styles from './style.module.scss';
5
5
  import type React from 'react';
6
6
 
@@ -19,13 +19,14 @@
19
19
  }
20
20
 
21
21
  .close-button {
22
- width: calc( var( --spacing-base ) * 3 );
23
- height: calc( var( --spacing-base ) * 3 );
24
-
22
+ padding: 0;
25
23
  background-color: transparent;
26
24
  border: none;
27
25
  cursor: pointer;
28
26
  outline: none;
27
+ svg {
28
+ display: block;
29
+ }
29
30
  }
30
31
 
31
32
  // Mobile layout differences.
@@ -1,4 +1,4 @@
1
- import { getUserLocale } from '../../lib/locale';
1
+ import { getUserLocale } from '../../lib/locale/index.js';
2
2
 
3
3
  /**
4
4
  * Format a number using the locale in use by the user viewing the page.
@@ -1,7 +1,7 @@
1
1
  import clsx from 'clsx';
2
2
  import React from 'react';
3
3
  import ReactSlider from 'react-slider';
4
- import { NumberSliderProps } from './types';
4
+ import { NumberSliderProps } from './types.js';
5
5
  import './style.scss';
6
6
 
7
7
  /**
@@ -2,9 +2,9 @@ import { getCurrencyObject } from '@automattic/format-currency';
2
2
  import { Button } from '@wordpress/components';
3
3
  import { sprintf, __ } from '@wordpress/i18n';
4
4
  import { LoadingPlaceholder } from '@automattic/jetpack-components';
5
- import TermsOfService from '../terms-of-service';
6
- import type { PricingCardProps } from './types';
7
- import type { CurrencyObject } from '@automattic/format-currency/src/types';
5
+ import TermsOfService from '../terms-of-service/index.js';
6
+ import type { PricingCardProps } from './types.js';
7
+ import type { CurrencyObject } from '@automattic/format-currency/src/types.js';
8
8
  import type React from 'react';
9
9
 
10
10
  import './style.scss';
@@ -10,17 +10,17 @@ import React, {
10
10
  ReactElement,
11
11
  CSSProperties,
12
12
  } from 'react';
13
- import IconTooltip from '../icon-tooltip';
14
- import useBreakpointMatch from '../layout/use-breakpoint-match';
15
- import TermsOfService from '../terms-of-service';
16
- import Text from '../text';
13
+ import IconTooltip from '../icon-tooltip/index.js';
14
+ import useBreakpointMatch from '../layout/use-breakpoint-match/index.js';
15
+ import TermsOfService from '../terms-of-service/index.js';
16
+ import Text from '../text/index.js';
17
17
  import styles from './styles.module.scss';
18
18
  import {
19
19
  PricingTableProps,
20
20
  PricingTableColumnProps,
21
21
  PricingTableHeaderProps,
22
22
  PricingTableItemProps,
23
- } from './types';
23
+ } from './types.js';
24
24
 
25
25
  const INCLUDED_TEXT = __( 'Included', 'jetpack-components' );
26
26
  const NOT_INCLUDED_TEXT = __( 'Not included', 'jetpack-components' );
@@ -1,4 +1,4 @@
1
- import type { Placement } from '../icon-tooltip/types';
1
+ import type { Placement } from '../icon-tooltip/types.js';
2
2
 
3
3
  export type PricingTableProps = {
4
4
  /**
@@ -1,8 +1,8 @@
1
1
  import { Icon, plus } from '@wordpress/icons';
2
2
  import React, { Fragment } from 'react';
3
- import { getIconBySlug } from '../icons/index';
3
+ import { getIconBySlug } from '../icons/index.js';
4
4
  import styles from './style.module.scss';
5
- import { IconsCardProps } from './types';
5
+ import { IconsCardProps } from './types.js';
6
6
 
7
7
  /**
8
8
  * Icons composition for a bundle product,
@@ -1,15 +1,15 @@
1
1
  import { __, sprintf } from '@wordpress/i18n';
2
2
  import { Icon, check } from '@wordpress/icons';
3
3
  import clsx from 'clsx';
4
- import Alert from '../alert';
5
- import Button from '../button/index';
6
- import { CheckmarkIcon } from '../icons/index';
7
- import ProductPrice from '../product-price/index';
8
- import Text, { H3, Title } from '../text/index';
9
- import { IconsCard } from './icons-card';
10
- import { ProductOfferHeader } from './product-offer-header';
4
+ import Alert from '../alert/index.js';
5
+ import Button from '../button/index.js';
6
+ import { CheckmarkIcon } from '../icons/index.js';
7
+ import ProductPrice from '../product-price/index.js';
8
+ import Text, { H3, Title } from '../text/index.js';
9
+ import { IconsCard } from './icons-card.js';
10
+ import { ProductOfferHeader } from './product-offer-header.js';
11
11
  import styles from './style.module.scss';
12
- import { ProductOfferProps } from './types';
12
+ import { ProductOfferProps } from './types.js';
13
13
  import type React from 'react';
14
14
 
15
15
  /**
@@ -112,4 +112,4 @@ const ProductOffer: React.FC< ProductOfferProps > = ( {
112
112
  };
113
113
 
114
114
  export default ProductOffer;
115
- export * from './icons-card';
115
+ export * from './icons-card.js';
@@ -1,8 +1,8 @@
1
1
  import { __ } from '@wordpress/i18n';
2
2
  import { Icon, starFilled as star } from '@wordpress/icons';
3
- import Text from '../text/index';
3
+ import Text from '../text/index.js';
4
4
  import styles from './style.module.scss';
5
- import { ProductOfferHeaderProps } from './types';
5
+ import { ProductOfferHeaderProps } from './types.js';
6
6
  import type React from 'react';
7
7
 
8
8
  /**
@@ -1,5 +1,5 @@
1
- import { ProductPriceProps } from '../product-price/types';
2
- import type { JetpackIconSlug } from '../icons';
1
+ import { ProductPriceProps } from '../product-price/types.js';
2
+ import type { JetpackIconSlug } from '../icons/index.js';
3
3
 
4
4
  export type ProductOfferProps = {
5
5
  /**
@@ -6,10 +6,10 @@ import clsx from 'clsx';
6
6
  /*
7
7
  * Internal dependencies
8
8
  */
9
- import Text from '../text';
10
- import { Price } from './price';
9
+ import Text from '../text/index.js';
10
+ import { Price } from './price.js';
11
11
  import styles from './style.module.scss';
12
- import type { ProductPriceProps } from './types';
12
+ import type { ProductPriceProps } from './types.js';
13
13
  import type React from 'react';
14
14
 
15
15
  /**
@@ -87,4 +87,4 @@ const ProductPrice: React.FC< ProductPriceProps > = ( {
87
87
  };
88
88
 
89
89
  export default ProductPrice;
90
- export * from './price';
90
+ export * from './price.js';
@@ -1,8 +1,8 @@
1
1
  import { getCurrencyObject } from '@automattic/format-currency';
2
2
  import clsx from 'clsx';
3
- import Text from '../text';
3
+ import Text from '../text/index.js';
4
4
  import styles from './style.module.scss';
5
- import type { PriceProps } from './types';
5
+ import type { PriceProps } from './types.js';
6
6
  import type React from 'react';
7
7
 
8
8
  /**
@@ -6,7 +6,7 @@ import clsx from 'clsx';
6
6
  * Internal dependencies
7
7
  */
8
8
  import styles from './style.module.scss';
9
- import { ProgressBarProps } from './types';
9
+ import { ProgressBarProps } from './types.js';
10
10
  import type React from 'react';
11
11
 
12
12
  /**
@@ -1,7 +1,7 @@
1
1
  import { __ } from '@wordpress/i18n';
2
2
  import clsx from 'clsx';
3
3
  import React, { useMemo } from 'react';
4
- import numberFormat from '../number-format';
4
+ import numberFormat from '../number-format/index.js';
5
5
 
6
6
  import './style.scss';
7
7
 
@@ -1,6 +1,6 @@
1
1
  import { ButtonGroup, Button, DropdownMenu } from '@wordpress/components';
2
2
  import styles from './style.module.scss';
3
- import { SplitButtonProps } from './types';
3
+ import { SplitButtonProps } from './types.js';
4
4
  import type React from 'react';
5
5
 
6
6
  const DownIcon = () => (
@@ -6,10 +6,10 @@ import clsx from 'clsx';
6
6
  /**
7
7
  * Internal dependencies
8
8
  */
9
- import numberFormat from '../number-format';
10
- import Text from '../text';
9
+ import numberFormat from '../number-format/index.js';
10
+ import Text from '../text/index.js';
11
11
  import styles from './style.module.scss';
12
- import { StatCardProps } from './types';
12
+ import { StatCardProps } from './types.js';
13
13
  import type React from 'react';
14
14
 
15
15
  /**
@@ -1,6 +1,6 @@
1
1
  import { __ } from '@wordpress/i18n';
2
2
  import clsx from 'clsx';
3
- import Text from '../text';
3
+ import Text from '../text/index.js';
4
4
  import styles from './style.module.scss';
5
5
 
6
6
  interface StatusProps {
@@ -1,9 +1,9 @@
1
1
  import { createInterpolateElement } from '@wordpress/element';
2
2
  import { __, sprintf } from '@wordpress/i18n';
3
3
  import clsx from 'clsx';
4
- import { getRedirectUrl } from '../../../components';
5
- import Text from '../text';
6
- import type { TermsOfServiceProps } from './types';
4
+ import { getRedirectUrl } from '../../../components/index.js';
5
+ import Text from '../text/index.js';
6
+ import type { TermsOfServiceProps } from './types.js';
7
7
  import './styles.scss';
8
8
 
9
9
  const TermsOfService: React.FC< TermsOfServiceProps > = ( {
@@ -1,4 +1,4 @@
1
- import { TextProps } from '../text/types';
1
+ import { TextProps } from '../text/types.js';
2
2
 
3
3
  type MultipleButtonsProps = {
4
4
  /**
@@ -1,7 +1,7 @@
1
1
  import { useState, useCallback } from '@wordpress/element';
2
- import Gridicon from '../gridicon';
3
- import { Testimonial } from './testimonial';
4
- import { TestimonialsType } from './types';
2
+ import Gridicon from '../gridicon/index.js';
3
+ import { Testimonial } from './testimonial.js';
4
+ import { TestimonialsType } from './types.js';
5
5
 
6
6
  const Testimonials: TestimonialsType = ( { testimonials } ) => {
7
7
  const [ currentTestimonialIndex, setcurrentTestimonialIndex ] = useState( 0 );
@@ -1,5 +1,5 @@
1
1
  import clsx from 'clsx';
2
- import type { TestimonialType } from './types';
2
+ import type { TestimonialType } from './types.js';
3
3
 
4
4
  import './style.scss';
5
5
 
@@ -1,8 +1,8 @@
1
1
  import clsx from 'clsx';
2
2
  import React, { forwardRef, useMemo } from 'react';
3
- import { BOX_MODEL_VALUES, VARIANTS_MAPPING } from './constants';
3
+ import { BOX_MODEL_VALUES, VARIANTS_MAPPING } from './constants.js';
4
4
  import styles from './style.module.scss';
5
- import type { H3Props, TextProps, TitleProps } from './types';
5
+ import type { H3Props, TextProps, TitleProps } from './types.js';
6
6
 
7
7
  /**
8
8
  * Text component.
@@ -87,4 +87,4 @@ export const Title: React.FC< TitleProps > = ( {
87
87
  </Text>
88
88
  );
89
89
 
90
- export * from './constants';
90
+ export * from './constants.js';
@@ -1,4 +1,4 @@
1
- import { VARIANTS_MAPPING } from './constants';
1
+ import { VARIANTS_MAPPING } from './constants.js';
2
2
  import type React from 'react';
3
3
 
4
4
  export type SpacingValue = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
@@ -1,6 +1,6 @@
1
1
  import React, { useLayoutEffect, useRef } from 'react';
2
2
  import styles from './globals.module.scss';
3
- import { ThemeInstance, ThemeProviderProps } from './types';
3
+ import { ThemeInstance, ThemeProviderProps } from './types.js';
4
4
 
5
5
  export const typography = {
6
6
  // Headline
@@ -1,7 +1,7 @@
1
1
  import { __ } from '@wordpress/i18n';
2
2
  import { useMemo } from 'react';
3
3
  import styles from './styles.module.scss';
4
- import ThreatNotice from './threat-notice';
4
+ import ThreatNotice from './threat-notice.js';
5
5
 
6
6
  /**
7
7
  * FixerStateNotice component
@@ -1,10 +1,11 @@
1
1
  import { type Threat } from '@automattic/jetpack-scan';
2
2
  import { Modal } from '@wordpress/components';
3
3
  import { createContext } from 'react';
4
- import Text from '../text';
5
- import ThreatSeverityBadge from '../threat-severity-badge';
4
+ import Text from '../text/index.js';
5
+ import ThreatSeverityBadge from '../threat-severity-badge/index.js';
6
6
  import styles from './styles.module.scss';
7
- import ThreatFixConfirmation from './threat-fix-confirmation';
7
+ import ThreatFixConfirmation from './threat-fix-confirmation.js';
8
+
8
9
  interface ThreatModalContextType {
9
10
  closeModal: () => void;
10
11
  threat: Threat;
@@ -2,9 +2,9 @@ import { getFixerState, getDetailedFixerAction } from '@automattic/jetpack-scan'
2
2
  import { __ } from '@wordpress/i18n';
3
3
  import { useCallback, useContext, useMemo } from 'react';
4
4
  import { Button } from '@automattic/jetpack-components';
5
- import FixerStateNotice from './fixer-state-notice';
5
+ import FixerStateNotice from './fixer-state-notice.js';
6
6
  import styles from './styles.module.scss';
7
- import { ThreatModalContext } from '.';
7
+ import { ThreatModalContext } from './index.js';
8
8
 
9
9
  /**
10
10
  * ThreatActions component
@@ -1,11 +1,11 @@
1
1
  import { __ } from '@wordpress/i18n';
2
2
  import { useContext } from 'react';
3
- import ThreatActions from './threat-actions';
4
- import ThreatFixDetails from './threat-fix-details';
5
- import ThreatNotice from './threat-notice';
6
- import ThreatSummary from './threat-summary';
7
- import ThreatTechnicalDetails from './threat-technical-details';
8
- import { ThreatModalContext } from '.';
3
+ import ThreatActions from './threat-actions.js';
4
+ import ThreatFixDetails from './threat-fix-details.js';
5
+ import ThreatNotice from './threat-notice.js';
6
+ import ThreatSummary from './threat-summary.js';
7
+ import ThreatTechnicalDetails from './threat-technical-details.js';
8
+ import { ThreatModalContext } from './index.js';
9
9
 
10
10
  /**
11
11
  * ThreatFixConfirmation component
@@ -1,10 +1,10 @@
1
1
  import { getFixerDescription } from '@automattic/jetpack-scan';
2
2
  import { __, sprintf } from '@wordpress/i18n';
3
3
  import React, { useMemo, useContext } from 'react';
4
- import ContextualUpgradeTrigger from '../contextual-upgrade-trigger';
5
- import Text from '../text';
4
+ import ContextualUpgradeTrigger from '../contextual-upgrade-trigger/index.js';
5
+ import Text from '../text/index.js';
6
6
  import styles from './styles.module.scss';
7
- import { ThreatModalContext } from '.';
7
+ import { ThreatModalContext } from './index.js';
8
8
 
9
9
  /**
10
10
  * ThreatFixDetails component
@@ -4,7 +4,7 @@ import { Icon, warning } from '@wordpress/icons';
4
4
  import { useContext } from 'react';
5
5
  import { Text, Button } from '@automattic/jetpack-components';
6
6
  import styles from './styles.module.scss';
7
- import { ThreatModalContext } from '.';
7
+ import { ThreatModalContext } from './index.js';
8
8
 
9
9
  /**
10
10
  * ThreatNotice component
@@ -1,9 +1,9 @@
1
1
  import { __ } from '@wordpress/i18n';
2
2
  import { useContext } from 'react';
3
3
  import { Button } from '@automattic/jetpack-components';
4
- import Text from '../text';
4
+ import Text from '../text/index.js';
5
5
  import styles from './styles.module.scss';
6
- import { ThreatModalContext } from '.';
6
+ import { ThreatModalContext } from './index.js';
7
7
 
8
8
  /**
9
9
  * ThreatSummary component
@@ -2,10 +2,10 @@ import { __ } from '@wordpress/i18n';
2
2
  import { chevronDown, chevronUp, Icon } from '@wordpress/icons';
3
3
  import { useState, useCallback, useContext } from 'react';
4
4
  import { Text, Button } from '@automattic/jetpack-components';
5
- import DiffViewer from '../diff-viewer';
6
- import MarkedLines from '../marked-lines';
5
+ import DiffViewer from '../diff-viewer/index.js';
6
+ import MarkedLines from '../marked-lines/index.js';
7
7
  import styles from './styles.module.scss';
8
- import { ThreatModalContext } from '.';
8
+ import { ThreatModalContext } from './index.js';
9
9
 
10
10
  /**
11
11
  * ThreatTechnicalDetails component
@@ -1,5 +1,5 @@
1
1
  import { _x } from '@wordpress/i18n';
2
- import Badge from '../badge';
2
+ import Badge from '../badge/index.js';
3
3
 
4
4
  const ThreatSeverityBadge = ( { severity } ) => {
5
5
  if ( severity >= 5 ) {
@@ -15,9 +15,9 @@ import { dateI18n } from '@wordpress/date';
15
15
  import { __ } from '@wordpress/i18n';
16
16
  import { Icon } from '@wordpress/icons';
17
17
  import { useCallback, useMemo, useState } from 'react';
18
- import Badge from '../badge';
19
- import ThreatFixerButton from '../threat-fixer-button';
20
- import ThreatSeverityBadge from '../threat-severity-badge';
18
+ import Badge from '../badge/index.js';
19
+ import ThreatFixerButton from '../threat-fixer-button/index.js';
20
+ import ThreatSeverityBadge from '../threat-severity-badge/index.js';
21
21
  import {
22
22
  THREAT_ACTION_FIX,
23
23
  THREAT_ACTION_IGNORE,
@@ -38,9 +38,9 @@ import {
38
38
  THREAT_ICONS,
39
39
  THREAT_STATUSES,
40
40
  THREAT_TYPES,
41
- } from './constants';
41
+ } from './constants.js';
42
42
  import styles from './styles.module.scss';
43
- import ThreatsStatusToggleGroupControl from './threats-status-toggle-group-control';
43
+ import ThreatsStatusToggleGroupControl from './threats-status-toggle-group-control.js';
44
44
 
45
45
  /**
46
46
  * DataViews component for displaying security threats.
@@ -2,7 +2,7 @@ import { Card, CardBody } from '@wordpress/components';
2
2
  import { createInterpolateElement } from '@wordpress/element';
3
3
  import React from 'react';
4
4
  import { Button } from '@automattic/jetpack-components';
5
- import { UpsellBannerProps } from './types';
5
+ import { UpsellBannerProps } from './types.js';
6
6
 
7
7
  import './style.scss';
8
8
 
@@ -1,6 +1,6 @@
1
1
  import { useEffect, useCallback } from 'react';
2
- import { chatKey } from './constants';
3
- import type { ZendeskChatType } from './types';
2
+ import { chatKey } from './constants.js';
3
+ import type { ZendeskChatType } from './types.js';
4
4
 
5
5
  export const ZendeskChat: ZendeskChatType = ( { jwt_token } ) => {
6
6
  const authenticateUser = useCallback( () => {
package/index.ts CHANGED
@@ -14,75 +14,75 @@ 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
16
 
17
- export { default as JetpackLogo } from './components/jetpack-logo';
18
- export { default as JetpackSearchLogo } from './components/jetpack-search-logo';
19
- export { default as JetpackProtectLogo } from './components/jetpack-protect-logo';
20
- export { default as JetpackVaultPressBackupLogo } from './components/jetpack-vaultpress-backup-logo';
21
- export { default as JetpackVideoPressLogo } from './components/jetpack-videopress-logo';
22
- export { default as getRedirectUrl } from './tools/jp-redirect';
23
- export { default as getProductCheckoutUrl } from './tools/get-product-checkout-url';
24
- export { isFirstMonthTrial } from './tools/pricing-utils';
25
- export { default as AutomatticBylineLogo } from './components/automattic-byline-logo';
26
- export { default as AutomatticIconLogo } from './components/automattic-icon-logo';
27
- export { default as AutomatticForAgenciesLogo } from './components/automattic-for-agencies-logo';
28
- export { default as JetpackFooter } from './components/jetpack-footer';
29
- export { default as Spinner } from './components/spinner';
30
- export { default as Gridicon } from './components/gridicon';
31
- export { default as IconTooltip } from './components/icon-tooltip';
32
- export { default as ActionButton } from './components/action-button';
33
- export { default as PricingCard } from './components/pricing-card';
34
- export { default as NumberSlider } from './components/number-slider';
35
- export { default as AdminSection } from './components/admin-section/basic';
36
- export { default as AdminSectionHero } from './components/admin-section/hero';
37
- export { default as AdminPage } from './components/admin-page';
38
- export { default as DecorativeCard } from './components/decorative-card';
39
- export { default as Col } from './components/layout/col';
40
- export { default as Testimonials } from './components/testimonials';
41
- export { default as Container } from './components/layout/container';
42
- export { default as useBreakpointMatch } from './components/layout/use-breakpoint-match';
43
- export { default as CopyToClipboard } from './components/copy-to-clipboard';
44
- export * from './components/icons';
45
- export { default as SplitButton } from './components/split-button';
46
- export { default as ThemeProvider } from './components/theme-provider';
47
- export { default as ThreatFixerButton } from './components/threat-fixer-button';
48
- export { default as ThreatSeverityBadge } from './components/threat-severity-badge';
49
- export { default as ThreatsDataViews } from './components/threats-data-views';
50
- export { default as Text, H2, H3, Title } from './components/text';
51
- export { default as ToggleControl } from './components/toggle-control';
52
- export { default as NumberControl } from './components/number-control';
53
- export { default as numberFormat } from './components/number-format';
54
- export { default as QRCode } from './components/qr-code';
55
- export { default as Button } from './components/button';
56
- export type { ButtonProps } from './components/button/types';
57
- export { default as LoadingPlaceholder } from './components/loading-placeholder';
58
- export { default as TermsOfService } from './components/terms-of-service';
59
- export { default as Chip } from './components/chip';
17
+ export { default as JetpackLogo } from './components/jetpack-logo/index.js';
18
+ export { default as JetpackSearchLogo } from './components/jetpack-search-logo/index.js';
19
+ export { default as JetpackProtectLogo } from './components/jetpack-protect-logo/index.js';
20
+ export { default as JetpackVaultPressBackupLogo } from './components/jetpack-vaultpress-backup-logo/index.js';
21
+ export { default as JetpackVideoPressLogo } from './components/jetpack-videopress-logo/index.js';
22
+ export { default as getRedirectUrl } from './tools/jp-redirect/index.js';
23
+ export { default as getProductCheckoutUrl } from './tools/get-product-checkout-url/index.js';
24
+ export { isFirstMonthTrial } from './tools/pricing-utils/index.js';
25
+ export { default as AutomatticBylineLogo } from './components/automattic-byline-logo/index.js';
26
+ export { default as AutomatticIconLogo } from './components/automattic-icon-logo/index.js';
27
+ export { default as AutomatticForAgenciesLogo } from './components/automattic-for-agencies-logo/index.js';
28
+ export { default as JetpackFooter } from './components/jetpack-footer/index.js';
29
+ export { default as Spinner } from './components/spinner/index.js';
30
+ export { default as Gridicon } from './components/gridicon/index.js';
31
+ export { default as IconTooltip } from './components/icon-tooltip/index.js';
32
+ export { default as ActionButton } from './components/action-button/index.js';
33
+ export { default as PricingCard } from './components/pricing-card/index.js';
34
+ export { default as NumberSlider } from './components/number-slider/index.js';
35
+ export { default as AdminSection } from './components/admin-section/basic/index.js';
36
+ export { default as AdminSectionHero } from './components/admin-section/hero/index.js';
37
+ export { default as AdminPage } from './components/admin-page/index.js';
38
+ export { default as DecorativeCard } from './components/decorative-card/index.js';
39
+ export { default as Col } from './components/layout/col/index.js';
40
+ export { default as Testimonials } from './components/testimonials/index.js';
41
+ export { default as Container } from './components/layout/container/index.js';
42
+ export { default as useBreakpointMatch } from './components/layout/use-breakpoint-match/index.js';
43
+ export { default as CopyToClipboard } from './components/copy-to-clipboard/index.js';
44
+ export * from './components/icons/index.js';
45
+ export { default as SplitButton } from './components/split-button/index.js';
46
+ export { default as ThemeProvider } from './components/theme-provider/index.js';
47
+ export { default as ThreatFixerButton } from './components/threat-fixer-button/index.js';
48
+ export { default as ThreatSeverityBadge } from './components/threat-severity-badge/index.js';
49
+ export { default as ThreatsDataViews } from './components/threats-data-views/index.js';
50
+ export { default as Text, H2, H3, Title } from './components/text/index.js';
51
+ export { default as ToggleControl } from './components/toggle-control/index.js';
52
+ export { default as NumberControl } from './components/number-control/index.js';
53
+ export { default as numberFormat } from './components/number-format/index.js';
54
+ export { default as QRCode } from './components/qr-code/index.js';
55
+ export { default as Button } from './components/button/index.js';
56
+ export type { ButtonProps } from './components/button/types.js';
57
+ export { default as LoadingPlaceholder } from './components/loading-placeholder/index.js';
58
+ export { default as TermsOfService } from './components/terms-of-service/index.js';
59
+ export { default as Chip } from './components/chip/index.js';
60
60
  export {
61
61
  default as PricingTable,
62
62
  PricingTableColumn,
63
63
  PricingTableHeader,
64
64
  PricingTableItem,
65
- } from './components/pricing-table';
66
- export { default as BoostScoreBar } from './components/boost-score-bar';
67
- export { default as BoostScoreGraph } from './components/boost-score-graph';
68
- export { default as ProductPrice } from './components/product-price';
69
- export { default as ProductOffer, IconsCard } from './components/product-offer';
70
- export { default as Dialog } from './components/dialog';
71
- export { default as DonutMeter } from './components/donut-meter';
72
- export { default as RecordMeterBar } from './components/record-meter-bar';
73
- export { default as ContextualUpgradeTrigger } from './components/contextual-upgrade-trigger';
74
- export { default as Alert } from './components/alert';
75
- export { default as Notice } from './components/notice';
76
- export { default as Popover } from './components/popover';
77
- export { default as Status } from './components/status';
78
- export { default as IndeterminateProgressBar } from './components/indeterminate-progress-bar';
79
- export { default as ActionPopover } from './components/action-popover';
80
- export { default as ZendeskChat } from './components/zendesk-chat';
81
- export { default as ProgressBar } from './components/progress-bar';
82
- export { default as UpsellBanner } from './components/upsell-banner';
83
- export { getUserLocale, cleanLocale } from './lib/locale';
84
- export { default as RadioControl } from './components/radio-control';
85
- export { default as StatCard } from './components/stat-card';
86
- export { default as DiffViewer } from './components/diff-viewer';
87
- export { default as MarkedLines } from './components/marked-lines';
88
- export * from './components/global-notices';
65
+ } from './components/pricing-table/index.js';
66
+ export { default as BoostScoreBar } from './components/boost-score-bar/index.js';
67
+ export { default as BoostScoreGraph } from './components/boost-score-graph/index.js';
68
+ export { default as ProductPrice } from './components/product-price/index.js';
69
+ export { default as ProductOffer, IconsCard } from './components/product-offer/index.js';
70
+ export { default as Dialog } from './components/dialog/index.js';
71
+ export { default as DonutMeter } from './components/donut-meter/index.js';
72
+ export { default as RecordMeterBar } from './components/record-meter-bar/index.js';
73
+ export { default as ContextualUpgradeTrigger } from './components/contextual-upgrade-trigger/index.js';
74
+ export { default as Alert } from './components/alert/index.js';
75
+ export { default as Notice } from './components/notice/index.js';
76
+ export { default as Popover } from './components/popover/index.js';
77
+ export { default as Status } from './components/status/index.js';
78
+ export { default as IndeterminateProgressBar } from './components/indeterminate-progress-bar/index.js';
79
+ export { default as ActionPopover } from './components/action-popover/index.js';
80
+ export { default as ZendeskChat } from './components/zendesk-chat/index.js';
81
+ export { default as ProgressBar } from './components/progress-bar/index.js';
82
+ export { default as UpsellBanner } from './components/upsell-banner/index.js';
83
+ export { getUserLocale, cleanLocale } from './lib/locale/index.js';
84
+ export { default as RadioControl } from './components/radio-control/index.js';
85
+ export { default as StatCard } from './components/stat-card/index.js';
86
+ export { default as DiffViewer } from './components/diff-viewer/index.js';
87
+ export { default as MarkedLines } from './components/marked-lines/index.js';
88
+ export * from './components/global-notices/index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/jetpack-components",
3
- "version": "0.66.0",
3
+ "version": "0.67.0",
4
4
  "description": "Jetpack Components Package",
5
5
  "author": "Automattic",
6
6
  "license": "GPL-2.0-or-later",
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@automattic/format-currency": "1.0.1",
18
- "@automattic/jetpack-boost-score-api": "^0.1.55",
18
+ "@automattic/jetpack-boost-score-api": "^0.1.56",
19
19
  "@automattic/jetpack-api": "^0.18.0",
20
20
  "@automattic/jetpack-scan": "^0.5.6",
21
21
  "@babel/runtime": "^7",
@@ -1,4 +1,4 @@
1
- import { IntroOffer } from './types';
1
+ import { IntroOffer } from './types.js';
2
2
 
3
3
  /**
4
4
  * Returns whether an Introductory Offer is a first month trial