@automattic/jetpack-components 0.63.0 → 0.64.1

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 (44) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/components/action-button/index.jsx +9 -2
  3. package/components/action-popover/index.tsx +1 -1
  4. package/components/admin-page/index.tsx +1 -1
  5. package/components/automattic-byline-logo/index.tsx +1 -1
  6. package/components/boost-score-bar/index.tsx +2 -2
  7. package/components/boost-score-graph/tooltip.tsx +21 -11
  8. package/components/boost-score-graph/tooltips-plugin.ts +2 -3
  9. package/components/boost-score-graph/uplot-line-chart.tsx +3 -3
  10. package/components/button/index.tsx +1 -1
  11. package/components/copy-to-clipboard/index.tsx +2 -2
  12. package/components/gridicon/index.tsx +19 -19
  13. package/components/indeterminate-progress-bar/index.tsx +1 -1
  14. package/components/jetpack-footer/index.tsx +10 -10
  15. package/components/jetpack-logo/index.tsx +1 -1
  16. package/components/jetpack-protect-logo/index.tsx +1 -1
  17. package/components/jetpack-search-logo/index.tsx +1 -1
  18. package/components/jetpack-vaultpress-backup-logo/index.tsx +1 -1
  19. package/components/jetpack-videopress-logo/index.tsx +3 -1
  20. package/components/number-slider/index.tsx +1 -1
  21. package/components/pricing-card/index.tsx +3 -3
  22. package/components/pricing-table/index.tsx +8 -8
  23. package/components/product-offer/index.tsx +3 -3
  24. package/components/product-offer/product-offer-header.tsx +1 -1
  25. package/components/product-price/index.tsx +2 -2
  26. package/components/record-meter-bar/index.tsx +3 -3
  27. package/components/status/index.tsx +5 -5
  28. package/components/terms-of-service/index.tsx +3 -3
  29. package/components/threat-fixer-button/index.tsx +5 -5
  30. package/components/threat-modal/fixer-state-notice.tsx +6 -6
  31. package/components/threat-modal/threat-actions.tsx +4 -4
  32. package/components/threat-modal/threat-fix-confirmation.tsx +5 -5
  33. package/components/threat-modal/threat-fix-details.tsx +9 -6
  34. package/components/threat-modal/threat-notice.tsx +3 -3
  35. package/components/threat-modal/threat-summary.tsx +2 -2
  36. package/components/threat-modal/threat-technical-details.tsx +4 -4
  37. package/components/threat-severity-badge/index.tsx +5 -3
  38. package/components/threats-data-views/constants.ts +7 -7
  39. package/components/threats-data-views/index.tsx +34 -24
  40. package/components/threats-data-views/styles.module.scss +2 -3
  41. package/components/threats-data-views/threats-status-toggle-group-control.tsx +24 -26
  42. package/components/upsell-banner/index.tsx +1 -1
  43. package/components/zendesk-chat/types.ts +1 -1
  44. package/package.json +15 -15
package/CHANGELOG.md CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  ### This is a list detailing changes for the Jetpack RNA Components package releases.
4
4
 
5
+ ## [0.64.1] - 2024-12-09
6
+ ### Removed
7
+ - Remove bulk action support from the ThreatsDataViews component. [#40483]
8
+
9
+ ### Fixed
10
+ - Fixed threat type values and labels. [#40467]
11
+
12
+ ## [0.64.0] - 2024-12-04
13
+ ### Changed
14
+ - Changed text domain from 'jetpack' to 'jetpack-components'. [#40368]
15
+ - Minor enhancements to the ThreatsDataViews component [#40398]
16
+ - Updated package dependencies. [#40363]
17
+
5
18
  ## [0.63.0] - 2024-11-26
6
19
  ### Changed
7
20
  - Updates ThreatModal flow [#40214]
@@ -1230,6 +1243,8 @@
1230
1243
  ### Changed
1231
1244
  - Update node version requirement to 14.16.1
1232
1245
 
1246
+ [0.64.1]: https://github.com/Automattic/jetpack-components/compare/0.64.0...0.64.1
1247
+ [0.64.0]: https://github.com/Automattic/jetpack-components/compare/0.63.0...0.64.0
1233
1248
  [0.63.0]: https://github.com/Automattic/jetpack-components/compare/0.62.0...0.63.0
1234
1249
  [0.62.0]: https://github.com/Automattic/jetpack-components/compare/0.61.0...0.62.0
1235
1250
  [0.61.0]: https://github.com/Automattic/jetpack-components/compare/0.60.0...0.61.0
@@ -30,7 +30,9 @@ const ActionButton = props => {
30
30
  loadingText,
31
31
  isDisabled,
32
32
  displayError = false,
33
- errorMessage = __( 'An error occurred. Please try again.', 'jetpack' ),
33
+ errorMessage = __( 'An error occurred. Please try again.', 'jetpack-components' ),
34
+ variant = 'primary',
35
+ isExternalLink = false,
34
36
  customClass,
35
37
  } = props;
36
38
 
@@ -43,7 +45,8 @@ const ActionButton = props => {
43
45
  className={ clsx( styles.button, 'jp-action-button--button', customClass ) }
44
46
  label={ label }
45
47
  onClick={ onClick }
46
- variant="primary"
48
+ variant={ isExternalLink ? 'link' : variant }
49
+ isExternalLink={ isExternalLink }
47
50
  disabled={ isLoading || isDisabled }
48
51
  >
49
52
  { isLoading ? loadingContent : label }
@@ -70,6 +73,10 @@ ActionButton.propTypes = {
70
73
  displayError: PropTypes.bool,
71
74
  /** The error message string */
72
75
  errorMessage: PropTypes.oneOfType( [ PropTypes.string, PropTypes.element ] ),
76
+ /** The type/variant of button */
77
+ variant: PropTypes.arrayOf( PropTypes.oneOf( [ 'primary', 'secondary', 'link' ] ) ),
78
+ /** Will display the button as a link with an external icon. */
79
+ isExternalLink: PropTypes.bool,
73
80
  };
74
81
 
75
82
  export default ActionButton;
@@ -54,7 +54,7 @@ const ActionPopover = ( {
54
54
  if ( showSteps ) {
55
55
  stepsText = sprintf(
56
56
  /* translators: 1 Current step, 2 Total steps */
57
- __( '%1$d of %2$d', 'jetpack' ),
57
+ __( '%1$d of %2$d', 'jetpack-components' ),
58
58
  step,
59
59
  totalSteps
60
60
  );
@@ -18,7 +18,7 @@ import type React from 'react';
18
18
  */
19
19
  const AdminPage: React.FC< AdminPageProps > = ( {
20
20
  children,
21
- moduleName = __( 'Jetpack', 'jetpack' ),
21
+ moduleName = __( 'Jetpack', 'jetpack-components' ),
22
22
  moduleNameHref,
23
23
  showHeader = true,
24
24
  showFooter = true,
@@ -10,7 +10,7 @@ import { AutomatticBylineLogoProps } from './types';
10
10
  * @return {React.ReactNode} AutomatticBylineLogo component.
11
11
  */
12
12
  const AutomatticBylineLogo: React.FC< AutomatticBylineLogoProps > = ( {
13
- title = __( 'An Automattic Airline', 'jetpack' ),
13
+ title = __( 'An Automattic Airline', 'jetpack-components' ),
14
14
  height = 7,
15
15
  className,
16
16
  ...otherProps
@@ -20,8 +20,8 @@ export const BoostScoreBar: FunctionComponent< BoostScoreBarProps > = ( {
20
20
  }
21
21
 
22
22
  const prevScoreOffset = ( prevScore / score ) * 100;
23
- const desktopIconLabel = __( 'Desktop score', 'jetpack' );
24
- const mobileIconLabel = __( 'Mobile score', 'jetpack' );
23
+ const desktopIconLabel = __( 'Desktop score', 'jetpack-components' );
24
+ const mobileIconLabel = __( 'Mobile score', 'jetpack-components' );
25
25
 
26
26
  const getIcon = () => {
27
27
  if ( scoreBarType === 'desktop' ) {
@@ -31,69 +31,79 @@ export const Tooltip: FunctionComponent = ( { period }: { period: Period } ) =>
31
31
  <div className="jb-score-tooltip">
32
32
  <div className="jb-score-tooltip__date">{ date }</div>
33
33
  <div className="jb-score-tooltip__row">
34
- <div className="jb-score-tooltip__column">{ __( 'Overall score', 'jetpack' ) }</div>
34
+ <div className="jb-score-tooltip__column">
35
+ { __( 'Overall score', 'jetpack-components' ) }
36
+ </div>
35
37
  <div className="jb-score-tooltip__column">{ scoreLetter }</div>
36
38
  </div>
37
39
  <hr />
38
40
  <div className="jb-score-tooltip__row">
39
- <div className="jb-score-tooltip__column">{ __( 'Desktop score', 'jetpack' ) }</div>
41
+ <div className="jb-score-tooltip__column">
42
+ { __( 'Desktop score', 'jetpack-components' ) }
43
+ </div>
40
44
  <div className="jb-score-tooltip__column">
41
45
  {
42
46
  /* translators: %d is the score */
43
- sprintf( __( '%d / 100', 'jetpack' ), desktop_overall_score )
47
+ sprintf( __( '%d / 100', 'jetpack-components' ), desktop_overall_score )
44
48
  }
45
49
  </div>
46
50
  </div>
47
51
  { typeof desktop_lcp === 'number' && (
48
52
  <div className="jb-score-tooltip__row jb-score-tooltip__row--secondary">
49
53
  <div className="jb-score-tooltip__column">
50
- { __( 'Largest Contentful Paint', 'jetpack' ) }
54
+ { __( 'Largest Contentful Paint', 'jetpack-components' ) }
51
55
  </div>
52
56
  <div className="jb-score-tooltip__column">{ sprintf( '%0.2fs', desktop_lcp ) }</div>
53
57
  </div>
54
58
  ) }
55
59
  { typeof desktop_tbt === 'number' && (
56
60
  <div className="jb-score-tooltip__row jb-score-tooltip__row--secondary">
57
- <div className="jb-score-tooltip__column">{ __( 'Total Blocking Time', 'jetpack' ) }</div>
61
+ <div className="jb-score-tooltip__column">
62
+ { __( 'Total Blocking Time', 'jetpack-components' ) }
63
+ </div>
58
64
  <div className="jb-score-tooltip__column">{ sprintf( '%0.2fs', desktop_tbt ) }</div>
59
65
  </div>
60
66
  ) }
61
67
  { typeof desktop_cls === 'number' && (
62
68
  <div className="jb-score-tooltip__row jb-score-tooltip__row--secondary">
63
69
  <div className="jb-score-tooltip__column">
64
- { __( 'Cumulative Layout Shift', 'jetpack' ) }
70
+ { __( 'Cumulative Layout Shift', 'jetpack-components' ) }
65
71
  </div>
66
72
  <div className="jb-score-tooltip__column">{ sprintf( '%0.2f', desktop_cls ) }</div>
67
73
  </div>
68
74
  ) }
69
75
  <hr />
70
76
  <div className="jb-score-tooltip__row">
71
- <div className="jb-score-tooltip__column">{ __( 'Mobile score', 'jetpack' ) }</div>
77
+ <div className="jb-score-tooltip__column">
78
+ { __( 'Mobile score', 'jetpack-components' ) }
79
+ </div>
72
80
  <div className="jb-score-tooltip__column">
73
81
  {
74
82
  /* translators: %d is the score */
75
- sprintf( __( '%d / 100', 'jetpack' ), mobile_overall_score )
83
+ sprintf( __( '%d / 100', 'jetpack-components' ), mobile_overall_score )
76
84
  }
77
85
  </div>
78
86
  </div>
79
87
  { typeof mobile_lcp === 'number' && (
80
88
  <div className="jb-score-tooltip__row jb-score-tooltip__row--secondary">
81
89
  <div className="jb-score-tooltip__column">
82
- { __( 'Largest Contentful Paint', 'jetpack' ) }
90
+ { __( 'Largest Contentful Paint', 'jetpack-components' ) }
83
91
  </div>
84
92
  <div className="jb-score-tooltip__column">{ sprintf( '%0.2fs', mobile_lcp ) }</div>
85
93
  </div>
86
94
  ) }
87
95
  { typeof mobile_tbt === 'number' && (
88
96
  <div className="jb-score-tooltip__row jb-score-tooltip__row--secondary">
89
- <div className="jb-score-tooltip__column">{ __( 'Total Blocking Time', 'jetpack' ) }</div>
97
+ <div className="jb-score-tooltip__column">
98
+ { __( 'Total Blocking Time', 'jetpack-components' ) }
99
+ </div>
90
100
  <div className="jb-score-tooltip__column">{ sprintf( '%0.2fs', mobile_tbt ) }</div>
91
101
  </div>
92
102
  ) }
93
103
  { typeof mobile_cls === 'number' && (
94
104
  <div className="jb-score-tooltip__row jb-score-tooltip__row--secondary">
95
105
  <div className="jb-score-tooltip__column">
96
- { __( 'Cumulative Layout Shift', 'jetpack' ) }
106
+ { __( 'Cumulative Layout Shift', 'jetpack-components' ) }
97
107
  </div>
98
108
  <div className="jb-score-tooltip__column">{ sprintf( '%0.2f', mobile_cls ) }</div>
99
109
  </div>
@@ -17,10 +17,9 @@ export function tooltipsPlugin( periods ) {
17
17
  /**
18
18
  * Initializes the tooltips plugin.
19
19
  *
20
- * @param {uPlot} u - The uPlot instance.
21
- * @param {object} _opts - Options for the uPlot instance.
20
+ * @param {uPlot} u - The uPlot instance.
22
21
  */
23
- function init( u: uPlot, _opts: object ) {
22
+ function init( u: uPlot ) {
24
23
  container.classList.add( 'jb-score-tooltips-container' );
25
24
  if ( ! reactDom ) {
26
25
  reactDom = ReactDOM.createRoot( reactRoot );
@@ -151,7 +151,7 @@ export default function UplotLineChart( { range, periods, annotations = [] }: Up
151
151
  },
152
152
  series: [
153
153
  {
154
- label: __( 'Date', 'jetpack' ),
154
+ label: __( 'Date', 'jetpack-components' ),
155
155
  value: ( self: uPlot, rawValue: number ) => {
156
156
  // outputs legend content - value available when mouse is hovering the chart
157
157
  if ( ! rawValue ) {
@@ -161,8 +161,8 @@ export default function UplotLineChart( { range, periods, annotations = [] }: Up
161
161
  return date.toLocaleDateString( getUserLocale() );
162
162
  },
163
163
  },
164
- createSerieInfo( __( 'Desktop', 'jetpack' ), lastDesktopScore ),
165
- createSerieInfo( __( 'Mobile', 'jetpack' ), lastMobileScore ),
164
+ createSerieInfo( __( 'Desktop', 'jetpack-components' ), lastDesktopScore ),
165
+ createSerieInfo( __( 'Mobile', 'jetpack-components' ), lastMobileScore ),
166
166
  ],
167
167
  scales: {
168
168
  x: {
@@ -55,7 +55,7 @@ const Button = forwardRef< HTMLInputElement, ButtonProps >( ( props, ref ) => {
55
55
  <VisuallyHidden as="span">
56
56
  {
57
57
  /* translators: accessibility text */
58
- __( '(opens in a new tab)', 'jetpack' )
58
+ __( '(opens in a new tab)', 'jetpack-components' )
59
59
  }
60
60
  </VisuallyHidden>
61
61
  </>
@@ -47,10 +47,10 @@ export const CopyToClipboard: React.FC< CopyToClipboardProps > = ( {
47
47
  icon = hasCopied ? <CheckmarkIcon /> : <ClipboardIcon />;
48
48
  }
49
49
 
50
- const defaultLabel = __( 'Copy to clipboard', 'jetpack' );
50
+ const defaultLabel = __( 'Copy to clipboard', 'jetpack-components' );
51
51
 
52
52
  if ( 'icon' !== buttonStyle ) {
53
- label = hasCopied ? __( 'Copied!', 'jetpack' ) : defaultLabel;
53
+ label = hasCopied ? __( 'Copied!', 'jetpack-components' ) : defaultLabel;
54
54
  }
55
55
 
56
56
  return (
@@ -48,45 +48,45 @@ class Gridicon extends Component< GridiconProps > {
48
48
  default:
49
49
  return '';
50
50
  case 'gridicons-audio':
51
- return __( 'Has audio.', 'jetpack' );
51
+ return __( 'Has audio.', 'jetpack-components' );
52
52
  case 'gridicons-arrow-left':
53
- return __( 'Arrow left', 'jetpack' );
53
+ return __( 'Arrow left', 'jetpack-components' );
54
54
  case 'gridicons-arrow-right':
55
- return __( 'Arrow right', 'jetpack' );
55
+ return __( 'Arrow right', 'jetpack-components' );
56
56
  case 'gridicons-calendar':
57
- return __( 'Is an event.', 'jetpack' );
57
+ return __( 'Is an event.', 'jetpack-components' );
58
58
  case 'gridicons-cart':
59
- return __( 'Is a product.', 'jetpack' );
59
+ return __( 'Is a product.', 'jetpack-components' );
60
60
  case 'chevron-down':
61
- return __( 'Show filters', 'jetpack' );
61
+ return __( 'Show filters', 'jetpack-components' );
62
62
  case 'gridicons-comment':
63
- return __( 'Matching comment.', 'jetpack' );
63
+ return __( 'Matching comment.', 'jetpack-components' );
64
64
  case 'gridicons-cross':
65
- return __( 'Close.', 'jetpack' );
65
+ return __( 'Close.', 'jetpack-components' );
66
66
  case 'gridicons-filter':
67
- return __( 'Toggle search filters.', 'jetpack' );
67
+ return __( 'Toggle search filters.', 'jetpack-components' );
68
68
  case 'gridicons-folder':
69
- return __( 'Category', 'jetpack' );
69
+ return __( 'Category', 'jetpack-components' );
70
70
  case 'gridicons-help-outline':
71
- return __( 'Help', 'jetpack' );
71
+ return __( 'Help', 'jetpack-components' );
72
72
  case 'gridicons-info':
73
73
  case 'gridicons-info-outline':
74
- return __( 'Information.', 'jetpack' );
74
+ return __( 'Information.', 'jetpack-components' );
75
75
  case 'gridicons-image-multiple':
76
- return __( 'Has multiple images.', 'jetpack' );
76
+ return __( 'Has multiple images.', 'jetpack-components' );
77
77
  case 'gridicons-image':
78
- return __( 'Has an image.', 'jetpack' );
78
+ return __( 'Has an image.', 'jetpack-components' );
79
79
  case 'gridicons-page':
80
- return __( 'Page', 'jetpack' );
80
+ return __( 'Page', 'jetpack-components' );
81
81
  case 'gridicons-post':
82
- return __( 'Post', 'jetpack' );
82
+ return __( 'Post', 'jetpack-components' );
83
83
  case 'gridicons-jetpack-search':
84
84
  case 'gridicons-search':
85
- return __( 'Magnifying Glass', 'jetpack' );
85
+ return __( 'Magnifying Glass', 'jetpack-components' );
86
86
  case 'gridicons-tag':
87
- return __( 'Tag', 'jetpack' );
87
+ return __( 'Tag', 'jetpack-components' );
88
88
  case 'gridicons-video':
89
- return __( 'Has a video.', 'jetpack' );
89
+ return __( 'Has a video.', 'jetpack-components' );
90
90
  }
91
91
  }
92
92
 
@@ -20,7 +20,7 @@ const IndeterminateProgressBar: React.FC< IndeterminateProgressBarProps > = ( {
20
20
  return (
21
21
  <div
22
22
  className={ clsx( className, styles[ 'indeterminate-progress-bar' ] ) }
23
- aria-label={ __( 'Indeterminate Progress Bar', 'jetpack' ) }
23
+ aria-label={ __( 'Indeterminate Progress Bar', 'jetpack-components' ) }
24
24
  />
25
25
  );
26
26
  };
@@ -22,7 +22,7 @@ const ExternalIcon: React.FC = () => (
22
22
  <span className="jp-dashboard-footer__accessible-external-link">
23
23
  {
24
24
  /* translators: accessibility text */
25
- __( '(opens in a new tab)', 'jetpack' )
25
+ __( '(opens in a new tab)', 'jetpack-components' )
26
26
  }
27
27
  </span>
28
28
  </>
@@ -35,7 +35,7 @@ const ExternalIcon: React.FC = () => (
35
35
  * @return {React.ReactNode} JetpackFooter component.
36
36
  */
37
37
  const JetpackFooter: React.FC< JetpackFooterProps > = ( {
38
- moduleName = __( 'Jetpack', 'jetpack' ),
38
+ moduleName = __( 'Jetpack', 'jetpack-components' ),
39
39
  className,
40
40
  moduleNameHref = 'https://jetpack.com',
41
41
  menu,
@@ -69,8 +69,8 @@ const JetpackFooter: React.FC< JetpackFooterProps > = ( {
69
69
 
70
70
  let items: JetpackFooterMenuItem[] = [
71
71
  {
72
- label: _x( 'About', 'Link to learn more about Jetpack.', 'jetpack' ),
73
- title: __( 'About Jetpack', 'jetpack' ),
72
+ label: _x( 'About', 'Link to learn more about Jetpack.', 'jetpack-components' ),
73
+ title: __( 'About Jetpack', 'jetpack-components' ),
74
74
  href: areAdminLinksEnabled
75
75
  ? new URL( 'admin.php?page=jetpack_about', siteAdminUrl ).href
76
76
  : getRedirectUrl( 'jetpack-about' ),
@@ -78,8 +78,8 @@ const JetpackFooter: React.FC< JetpackFooterProps > = ( {
78
78
  onClick: onAboutClick,
79
79
  },
80
80
  {
81
- label: _x( 'Privacy', 'Shorthand for Privacy Policy.', 'jetpack' ),
82
- title: __( "Automattic's Privacy Policy", 'jetpack' ),
81
+ label: _x( 'Privacy', 'Shorthand for Privacy Policy.', 'jetpack-components' ),
82
+ title: __( "Automattic's Privacy Policy", 'jetpack-components' ),
83
83
  href: areAdminLinksEnabled
84
84
  ? new URL( 'admin.php?page=jetpack#/privacy', siteAdminUrl ).href
85
85
  : getRedirectUrl( 'a8c-privacy' ),
@@ -87,8 +87,8 @@ const JetpackFooter: React.FC< JetpackFooterProps > = ( {
87
87
  onClick: onPrivacyClick,
88
88
  },
89
89
  {
90
- label: _x( 'Terms', 'Shorthand for Terms of Service.', 'jetpack' ),
91
- title: __( 'WordPress.com Terms of Service', 'jetpack' ),
90
+ label: _x( 'Terms', 'Shorthand for Terms of Service.', 'jetpack-components' ),
91
+ title: __( 'WordPress.com Terms of Service', 'jetpack-components' ),
92
92
  href: getRedirectUrl( 'wpcom-tos' ),
93
93
  target: '_blank',
94
94
  onClick: onTermsClick,
@@ -117,7 +117,7 @@ const JetpackFooter: React.FC< JetpackFooterProps > = ( {
117
117
  },
118
118
  className
119
119
  ) }
120
- aria-label={ __( 'Jetpack', 'jetpack' ) }
120
+ aria-label={ __( 'Jetpack', 'jetpack-components' ) }
121
121
  { ...otherProps }
122
122
  >
123
123
  <ul>
@@ -160,7 +160,7 @@ const JetpackFooter: React.FC< JetpackFooterProps > = ( {
160
160
  ? new URL( 'admin.php?page=jetpack_about', siteAdminUrl ).href
161
161
  : getRedirectUrl( 'a8c-about' )
162
162
  }
163
- aria-label={ __( 'An Automattic Airline', 'jetpack' ) }
163
+ aria-label={ __( 'An Automattic Airline', 'jetpack-components' ) }
164
164
  >
165
165
  <AutomatticBylineLogo aria-hidden="true" />
166
166
  </a>
@@ -25,7 +25,7 @@ const JetpackLogo: React.FC< JetpackLogoProps > = ( {
25
25
  // role="img" is required to prevent VoiceOver on Safari reading the content of the SVG
26
26
  role="img"
27
27
  >
28
- <title id="jetpack-logo-title">{ __( 'Jetpack Logo', 'jetpack' ) }</title>
28
+ <title id="jetpack-logo-title">{ __( 'Jetpack Logo', 'jetpack-components' ) }</title>
29
29
  <path
30
30
  fill={ logoColor }
31
31
  d="M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z M15,19H7l8-16V19z M17,29V13h8L17,29z"
@@ -25,7 +25,7 @@ const JetpackProtectLogo: React.FC< JetpackProtectLogoProps > = ( {
25
25
  // role="img" is required to prevent VoiceOver on Safari reading the content of the SVG
26
26
  role="img"
27
27
  >
28
- <title id="jetpack-logo-title">{ __( 'Jetpack Protect Logo', 'jetpack' ) }</title>
28
+ <title id="jetpack-logo-title">{ __( 'Jetpack Protect Logo', 'jetpack-components' ) }</title>
29
29
 
30
30
  <path
31
31
  d="M20.1063 40.2111C31.2106 40.2111 40.2126 31.2091 40.2126 20.1048C40.2126 9.00048 31.2106 0 20.1063 0C9.00197 0 0 9.00197 0 20.1063C0 31.2106 9.00197 40.2111 20.1063 40.2111Z"
@@ -23,7 +23,7 @@ const JetpackSearchLogo: React.FC< JetpackSearchLogoProps > = ( {
23
23
  aria-labelledby="jetpack-logo-title"
24
24
  { ...otherProps }
25
25
  >
26
- <desc id="jetpack-logo-title">{ __( 'Jetpack Search Logo', 'jetpack' ) }</desc>
26
+ <desc id="jetpack-logo-title">{ __( 'Jetpack Search Logo', 'jetpack-components' ) }</desc>
27
27
  { showText && (
28
28
  <>
29
29
  <path
@@ -23,7 +23,7 @@ const JetpackVaultPressBackupLogo: React.FC< JetpackLogoProps > = ( {
23
23
  { ...otherProps }
24
24
  >
25
25
  <desc id="jetpack-vaultpress-backup-logo-title">
26
- { __( 'VaultPress Backup Logo', 'jetpack' ) }
26
+ { __( 'VaultPress Backup Logo', 'jetpack-components' ) }
27
27
  </desc>
28
28
  <path
29
29
  d="M2.88004 8.56455C2.86398 8.45217 2.85596 8.34783 2.85596 8.2515C2.85596 7.91438 2.93622 7.60134 3.09676 7.31237C3.30546 6.92709 3.6185 6.63813 4.03589 6.44548L15.1128 2.49632C15.3055 2.43211 15.5061 2.4 15.7148 2.4L16.3168 2.49632L27.3937 6.44548C27.8111 6.63813 28.1242 6.92709 28.3329 7.31237C28.4934 7.61739 28.5737 7.93043 28.5737 8.2515C28.5737 8.34783 28.5657 8.45217 28.5496 8.56455C28.5496 8.5806 28.5416 8.62876 28.5255 8.70903C28.3971 9.28696 28.2526 9.87291 28.0921 10.4669C27.9315 11.0448 27.6426 12.0321 27.2252 13.4288C26.8078 14.8254 26.2941 16.206 25.684 17.5706C25.0901 18.9351 24.3837 20.412 23.565 22.0013C22.7623 23.5746 21.775 25.1237 20.6031 26.6488C19.4473 28.1739 18.2111 29.5304 16.8948 30.7184C16.5737 31.0395 16.1723 31.2 15.6907 31.2C15.2412 31.2 14.856 31.0395 14.5349 30.7184C12.8974 29.2575 11.3804 27.4997 9.98372 25.4448C8.58706 23.39 7.47937 21.4796 6.66064 19.7137C5.84191 17.9478 5.1195 16.1579 4.49342 14.3438C3.88338 12.5137 3.47402 11.1813 3.26532 10.3465C3.07268 9.51171 2.94425 8.91773 2.88004 8.56455ZM3.93957 8.70903C3.97168 8.91773 4.03589 9.2388 4.13221 9.67224C4.24459 10.0896 4.44525 10.804 4.73422 11.8154C5.02318 12.8107 5.34425 13.8381 5.69743 14.8977C6.06666 15.9411 6.55629 17.1532 7.16632 18.5338C7.79241 19.8983 8.45863 21.2067 9.16499 22.4589C9.88739 23.711 10.7543 24.9953 11.7657 26.3117C12.777 27.6281 13.8446 28.792 14.9683 29.8033C15.1931 29.9639 15.4419 30.0441 15.7148 30.0441C15.9877 30.0441 16.2205 29.9639 16.4131 29.8033C17.9703 28.4067 19.4071 26.7291 20.7235 24.7706C22.056 22.812 23.0994 21.006 23.8539 19.3525C24.6245 17.6829 25.3068 15.9652 25.9008 14.1993C26.4948 12.4174 26.88 11.1572 27.0566 10.4187C27.2493 9.68027 27.3777 9.11037 27.4419 8.70903C27.458 8.62876 27.466 8.5485 27.466 8.46823C27.482 8.29164 27.4419 8.11505 27.3456 7.93846C27.2172 7.6816 27.0245 7.50502 26.7677 7.4087L16.076 3.55585C16.0279 3.55585 15.9636 3.54783 15.8834 3.53177C15.8031 3.51572 15.7389 3.50769 15.6907 3.50769L15.3536 3.55585L4.66198 7.4087C4.40512 7.50502 4.21248 7.6816 4.08405 7.93846C3.98773 8.11505 3.93154 8.29967 3.91549 8.49231C3.91549 8.57258 3.92352 8.64482 3.93957 8.70903ZM7.98505 9.67224H12.0305L15.6907 19.0635L19.3991 9.67224H23.4446C23.3483 9.91304 23.2198 10.2662 23.0593 10.7318C22.8988 11.1813 22.7463 11.5906 22.6018 11.9599C22.4573 12.3291 22.3048 12.6742 22.1442 12.9953C22.1121 13.0595 22.056 13.1077 21.9757 13.1398C21.9115 13.1719 21.8312 13.204 21.7349 13.2361C21.6386 13.2522 21.5663 13.2682 21.5182 13.2843C21.4379 13.3324 21.3657 13.3886 21.3014 13.4528C21.2533 13.501 21.2051 13.5732 21.157 13.6696C21.1249 13.7498 21.0927 13.814 21.0606 13.8622C21.0446 13.9104 21.0125 13.9987 20.9643 14.1271C20.9322 14.2395 20.9081 14.3117 20.8921 14.3438L20.3142 15.7886C18.5804 20.1712 17.5529 22.7719 17.2319 23.5906H14.1978L12.8974 20.412C12.769 20.0268 12.5443 19.4488 12.2232 18.6783C12.0948 18.293 11.87 17.715 11.5489 16.9445L10.8265 15.1625C10.7623 15.0181 10.6901 14.8254 10.6098 14.5846C10.5295 14.3438 10.4412 14.1271 10.3449 13.9344C10.2647 13.7418 10.1523 13.5572 10.0078 13.3806C9.94358 13.3164 9.87134 13.2763 9.79107 13.2602C9.71081 13.2281 9.62251 13.212 9.52619 13.212C9.42987 13.212 9.36565 13.204 9.33355 13.188C8.93221 12.2087 8.48271 11.0368 7.98505 9.67224Z"
@@ -22,7 +22,9 @@ const JetpackVideoPressLogo: React.FC< JetpackLogoProps > = ( {
22
22
  height={ height }
23
23
  { ...otherProps }
24
24
  >
25
- <desc id="jetpack-videopress-logo-title">{ __( 'VideoPress Logo', 'jetpack' ) }</desc>
25
+ <desc id="jetpack-videopress-logo-title">
26
+ { __( 'VideoPress Logo', 'jetpack-components' ) }
27
+ </desc>
26
28
  { showText ? (
27
29
  <>
28
30
  <path
@@ -68,7 +68,7 @@ const NumberSlider: React.FC< NumberSliderProps > = ( {
68
68
  min={ minValue }
69
69
  step={ step }
70
70
  renderThumb={ renderThumbCallback } // eslint-disable-line react/jsx-no-bind
71
- onChange={ onChange } // eslint-disable-line react/jsx-no-bind
71
+ onChange={ onChange }
72
72
  onBeforeChange={ onBeforeChangeCallback } // eslint-disable-line react/jsx-no-bind
73
73
  onAfterChange={ onAfterChangeCallback } // eslint-disable-line react/jsx-no-bind
74
74
  />
@@ -1,7 +1,7 @@
1
1
  import { getCurrencyObject } from '@automattic/format-currency';
2
- import { LoadingPlaceholder } from '@automattic/jetpack-components';
3
2
  import { Button } from '@wordpress/components';
4
3
  import { sprintf, __ } from '@wordpress/i18n';
4
+ import { LoadingPlaceholder } from '@automattic/jetpack-components';
5
5
  import TermsOfService from '../terms-of-service';
6
6
  import type { PricingCardProps } from './types';
7
7
  import type { CurrencyObject } from '@automattic/format-currency/src/types';
@@ -29,7 +29,7 @@ const showPriceDecimals = ( currencyObject: CurrencyObject ): boolean => {
29
29
  */
30
30
  const PricingCard: React.FC< PricingCardProps > = ( {
31
31
  currencyCode = 'USD',
32
- priceDetails = __( '/month, paid yearly', 'jetpack' ),
32
+ priceDetails = __( '/month, paid yearly', 'jetpack-components' ),
33
33
  ...props
34
34
  } ) => {
35
35
  const currencyObjectBefore = getCurrencyObject( props.priceBefore, currencyCode );
@@ -44,7 +44,7 @@ const PricingCard: React.FC< PricingCardProps > = ( {
44
44
  src={ props.icon }
45
45
  alt={ sprintf(
46
46
  /* translators: placeholder is a product name */
47
- __( 'Icon for the product %s', 'jetpack' ),
47
+ __( 'Icon for the product %s', 'jetpack-components' ),
48
48
  props.title
49
49
  ) }
50
50
  />
@@ -1,15 +1,15 @@
1
1
  import { __, sprintf } from '@wordpress/i18n';
2
2
  import { Icon, check, closeSmall } from '@wordpress/icons';
3
3
  import clsx from 'clsx';
4
- import {
4
+ import React, {
5
5
  createContext,
6
6
  useContext,
7
7
  Children,
8
8
  cloneElement,
9
9
  PropsWithChildren,
10
10
  ReactElement,
11
+ CSSProperties,
11
12
  } from 'react';
12
- import React, { CSSProperties } from 'react';
13
13
  import IconTooltip from '../icon-tooltip';
14
14
  import useBreakpointMatch from '../layout/use-breakpoint-match';
15
15
  import TermsOfService from '../terms-of-service';
@@ -22,9 +22,9 @@ import {
22
22
  PricingTableItemProps,
23
23
  } from './types';
24
24
 
25
- const INCLUDED_TEXT = __( 'Included', 'jetpack' );
26
- const NOT_INCLUDED_TEXT = __( 'Not included', 'jetpack' );
27
- const COMING_SOON_TEXT = __( 'Coming soon', 'jetpack' );
25
+ const INCLUDED_TEXT = __( 'Included', 'jetpack-components' );
26
+ const NOT_INCLUDED_TEXT = __( 'Not included', 'jetpack-components' );
27
+ const COMING_SOON_TEXT = __( 'Coming soon', 'jetpack-components' );
28
28
 
29
29
  const PricingTableContext = createContext( undefined );
30
30
 
@@ -33,7 +33,7 @@ const getItemLabels = ( isComingSoon, isIncluded, featureNameLabel ) => {
33
33
  return {
34
34
  lg: COMING_SOON_TEXT,
35
35
  // translators: Name of the current feature
36
- default: sprintf( __( '%s coming soon', 'jetpack' ), featureNameLabel ),
36
+ default: sprintf( __( '%s coming soon', 'jetpack-components' ), featureNameLabel ),
37
37
  };
38
38
  }
39
39
 
@@ -43,7 +43,7 @@ const getItemLabels = ( isComingSoon, isIncluded, featureNameLabel ) => {
43
43
  ? featureNameLabel
44
44
  : sprintf(
45
45
  /* translators: Name of the current feature */
46
- __( '%s not included', 'jetpack' ),
46
+ __( '%s not included', 'jetpack-components' ),
47
47
  featureNameLabel
48
48
  ),
49
49
  };
@@ -186,7 +186,7 @@ const PricingTable: React.FC< PricingTableProps > = ( {
186
186
  <Text variant="body-small">
187
187
  { __(
188
188
  'Reduced pricing is a limited offer for the first year and renews at regular price.',
189
- 'jetpack'
189
+ 'jetpack-components'
190
190
  ) }
191
191
  </Text>
192
192
  ) }
@@ -43,7 +43,7 @@ const ProductOffer: React.FC< ProductOfferProps > = ( {
43
43
 
44
44
  const defautlButtonText = sprintf(
45
45
  /* translators: placeholder is product name. */
46
- __( 'Add %s', 'jetpack' ),
46
+ __( 'Add %s', 'jetpack-components' ),
47
47
  title
48
48
  );
49
49
 
@@ -79,7 +79,7 @@ const ProductOffer: React.FC< ProductOfferProps > = ( {
79
79
  <ProductPrice price={ price } offPrice={ offPrice } currency={ currency } />
80
80
  ) }
81
81
 
82
- { isFree && <H3>{ __( 'Free', 'jetpack' ) }</H3> }
82
+ { isFree && <H3>{ __( 'Free', 'jetpack-components' ) }</H3> }
83
83
 
84
84
  <Alert level="error" showIcon={ !! error }>
85
85
  { error }
@@ -103,7 +103,7 @@ const ProductOffer: React.FC< ProductOfferProps > = ( {
103
103
  { isBundle && hasRequiredPlan && (
104
104
  <div className={ styles[ 'product-has-required-plan' ] }>
105
105
  <CheckmarkIcon size={ 36 } />
106
- <Text>{ __( 'Active on your site', 'jetpack' ) }</Text>
106
+ <Text>{ __( 'Active on your site', 'jetpack-components' ) }</Text>
107
107
  </div>
108
108
  ) }
109
109
  </div>
@@ -12,7 +12,7 @@ import type React from 'react';
12
12
  * @return {React.ReactNode} ProductOfferHeader react component.
13
13
  */
14
14
  export const ProductOfferHeader: React.FC< ProductOfferHeaderProps > = ( {
15
- title = __( 'Popular upgrade', 'jetpack' ),
15
+ title = __( 'Popular upgrade', 'jetpack-components' ),
16
16
  } ) => {
17
17
  return (
18
18
  <div className={ styles[ 'card-header' ] }>
@@ -25,7 +25,7 @@ const ProductPrice: React.FC< ProductPriceProps > = ( {
25
25
  showNotOffPrice = true,
26
26
  hideDiscountLabel = true,
27
27
  promoLabel = '',
28
- legend = __( '/month, paid yearly', 'jetpack' ),
28
+ legend = __( '/month, paid yearly', 'jetpack-components' ),
29
29
  isNotConvenientPrice = false,
30
30
  hidePriceFraction = false,
31
31
  children,
@@ -43,7 +43,7 @@ const ProductPrice: React.FC< ProductPriceProps > = ( {
43
43
 
44
44
  const showDiscountLabel = ! hideDiscountLabel && discount && discount > 0;
45
45
 
46
- const discountElt = showDiscountLabel ? discount + __( '% off', 'jetpack' ) : null;
46
+ const discountElt = showDiscountLabel ? discount + __( '% off', 'jetpack-components' ) : null;
47
47
 
48
48
  return (
49
49
  <>
@@ -139,11 +139,11 @@ const RecordMeterBar: React.FC< RecordMeterBarProps > = ( {
139
139
  </ul>
140
140
  </div>
141
141
  <table className="screen-reader-text">
142
- <caption>{ tableCaption || __( 'Summary of the records', 'jetpack' ) }</caption>
142
+ <caption>{ tableCaption || __( 'Summary of the records', 'jetpack-components' ) }</caption>
143
143
  <tbody>
144
144
  <tr>
145
- <th scope="col">{ recordTypeLabel || __( 'Record type', 'jetpack' ) }</th>
146
- <th scope="col">{ recordCountLabel || __( 'Record count', 'jetpack' ) }</th>
145
+ <th scope="col">{ recordTypeLabel || __( 'Record type', 'jetpack-components' ) }</th>
146
+ <th scope="col">{ recordCountLabel || __( 'Record count', 'jetpack-components' ) }</th>
147
147
  </tr>
148
148
  { itemsToRender.map( ( { label, count } ) => {
149
149
  return (
@@ -11,11 +11,11 @@ interface StatusProps {
11
11
 
12
12
  const Status = ( { className, label, status = 'inactive' }: StatusProps ): React.JSX.Element => {
13
13
  const defaultLabels: Record< string, string > = {
14
- active: __( 'Active', 'jetpack' ),
15
- error: __( 'Error', 'jetpack' ),
16
- action: __( 'Action needed', 'jetpack' ),
17
- inactive: __( 'Inactive', 'jetpack' ),
18
- initializing: __( 'Setting up', 'jetpack' ),
14
+ active: __( 'Active', 'jetpack-components' ),
15
+ error: __( 'Error', 'jetpack-components' ),
16
+ action: __( 'Action needed', 'jetpack-components' ),
17
+ inactive: __( 'Inactive', 'jetpack-components' ),
18
+ initializing: __( 'Setting up', 'jetpack-components' ),
19
19
  };
20
20
 
21
21
  return (