@automattic/jetpack-components 0.72.0 → 0.72.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ### This is a list detailing changes for the Jetpack RNA Components package releases.
4
4
 
5
+ ## [0.72.1] - 2025-04-01
6
+ ### Changed
7
+ - Update package dependencies. [#42762]
8
+
5
9
  ## [0.72.0] - 2025-03-31
6
10
  ### Added
7
11
  - Add dot-page component. [#42625]
@@ -1343,6 +1347,7 @@
1343
1347
  ### Changed
1344
1348
  - Update node version requirement to 14.16.1
1345
1349
 
1350
+ [0.72.1]: https://github.com/Automattic/jetpack-components/compare/0.72.0...0.72.1
1346
1351
  [0.72.0]: https://github.com/Automattic/jetpack-components/compare/0.71.0...0.72.0
1347
1352
  [0.71.0]: https://github.com/Automattic/jetpack-components/compare/0.70.1...0.71.0
1348
1353
  [0.70.1]: https://github.com/Automattic/jetpack-components/compare/0.70.0...0.70.1
@@ -7,19 +7,19 @@ export default ActionButton;
7
7
  * It is useful to async actions when the user has to wait the result of a request or process.
8
8
  *
9
9
  * @param {object} props - The properties.
10
- * @return {React.Component} The `ActionButton` component.
10
+ * @return {React.ReactNode} The `ActionButton` component.
11
11
  */
12
- declare function ActionButton(props: object): React.Component;
12
+ declare function ActionButton(props: object): React.ReactNode;
13
13
  declare namespace ActionButton {
14
14
  namespace propTypes {
15
- const label: any;
16
- const onClick: any;
17
- const isLoading: any;
18
- const isDisabled: any;
19
- const displayError: any;
20
- const errorMessage: any;
21
- const variant: any;
22
- const isExternalLink: any;
15
+ let label: any;
16
+ let onClick: any;
17
+ let isLoading: any;
18
+ let isDisabled: any;
19
+ let displayError: any;
20
+ let errorMessage: any;
21
+ let variant: any;
22
+ let isExternalLink: any;
23
23
  }
24
24
  }
25
25
  import React from 'react';
@@ -20,7 +20,7 @@ import styles from './style.module.scss';
20
20
  * It is useful to async actions when the user has to wait the result of a request or process.
21
21
  *
22
22
  * @param {object} props - The properties.
23
- * @return {React.Component} The `ActionButton` component.
23
+ * @return {React.ReactNode} The `ActionButton` component.
24
24
  */
25
25
  const ActionButton = props => {
26
26
  const { label, onClick, isLoading = false, loadingText, isDisabled, displayError = false, errorMessage = __('An error occurred. Please try again.', 'jetpack-components'), variant = 'primary', isExternalLink = false, customClass, } = props;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" resolution-mode="require"/>
2
1
  /**
3
2
  * Types
4
3
  */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" resolution-mode="require"/>
2
1
  import type { JetpackFooterMenuItem } from '../jetpack-footer/types.js';
3
2
  export type AdminPageProps = {
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" resolution-mode="require"/>
2
1
  export type AdminSectionBaseProps = {
3
2
  /**
4
3
  * The section content
@@ -33,7 +33,7 @@ function createSerieInfo(label, score) {
33
33
  gradient.addColorStop(0, getColor(score, '44'));
34
34
  gradient.addColorStop(1, getColor(score, '11'));
35
35
  return gradient;
36
- },
36
+ }, // use the gradient as fill for the series
37
37
  width: 2,
38
38
  paths: (u, seriesIdx, idx0, idx1) => {
39
39
  return spline?.()(u, seriesIdx, idx0, idx1) || null;
@@ -115,7 +115,7 @@ export default function UplotLineChart({ range, periods, annotations = [] }) {
115
115
  space: 100,
116
116
  size: 30,
117
117
  grid: {
118
- stroke: 'rgba(220, 220, 222, 0.5)',
118
+ stroke: 'rgba(220, 220, 222, 0.5)', // #DCDCDE with 0.5 opacity
119
119
  width: 1,
120
120
  },
121
121
  ticks: {
@@ -39,7 +39,7 @@ const IconTooltip = ({ className = '', iconClassName = '', placement = 'bottom-e
39
39
  noArrow: false,
40
40
  resize: false,
41
41
  flip: false,
42
- offset,
42
+ offset, // The distance (in px) between the anchor and the popover.
43
43
  focusOnMount: 'container',
44
44
  onClose: hideTooltip,
45
45
  className: 'icon-tooltip-container',
@@ -1,4 +1,3 @@
1
- /// <reference types="react" resolution-mode="require"/>
2
1
  export type Placement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end';
3
2
  export type Position = 'top left' | 'top center' | 'top right' | 'bottom left' | 'bottom center' | 'bottom right';
4
3
  export type IconTooltipProps = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" resolution-mode="require"/>
2
1
  type ColSpan = number | {
3
2
  start: number;
4
3
  end: number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" resolution-mode="require"/>
2
1
  import './style.scss';
3
2
  type PopoverProps = {
4
3
  action: React.ReactNode;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" resolution-mode="require"/>
2
1
  import type { Placement } from '../icon-tooltip/types.js';
3
2
  export type PricingTableProps = {
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" resolution-mode="require"/>
2
1
  import { ProductPriceProps } from '../product-price/types.js';
3
2
  import type { JetpackIconSlug } from '../icons/index.js';
4
3
  export type ProductOfferProps = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" resolution-mode="require"/>
2
1
  export type ProductPriceProps = {
3
2
  /**
4
3
  * Product price.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" resolution-mode="require"/>
2
1
  interface RadioControlProps {
3
2
  /** The current value. */
4
3
  selected: string;
@@ -6,8 +6,8 @@ declare function Spinner({ color, className, size }: {
6
6
  }): import("react/jsx-runtime").JSX.Element;
7
7
  declare namespace Spinner {
8
8
  namespace propTypes {
9
- const color: any;
10
- const className: any;
11
- const size: any;
9
+ let color: any;
10
+ let className: any;
11
+ let size: any;
12
12
  }
13
13
  }
@@ -7,7 +7,7 @@ const Spinner = ({ color = '#FFFFFF', className = '', size = 20 }) => {
7
7
  const styleOuter = {
8
8
  width: size,
9
9
  height: size,
10
- fontSize: size,
10
+ fontSize: size, // allows border-width to be specified in em units
11
11
  borderTopColor: color,
12
12
  };
13
13
  const styleInner = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" resolution-mode="require"/>
2
1
  /**
3
2
  * External dependencies
4
3
  */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" resolution-mode="require"/>
2
1
  export type StatCardProps = {
3
2
  /**
4
3
  * Custom className to be inserted.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" resolution-mode="require"/>
2
1
  interface StatusProps {
3
2
  status?: 'active' | 'error' | 'inactive' | 'action' | 'initializing';
4
3
  label?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" resolution-mode="require"/>
2
1
  import type { TermsOfServiceProps } from './types.js';
3
2
  import './styles.scss';
4
3
  declare const TermsOfService: React.FC<TermsOfServiceProps>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" resolution-mode="require"/>
2
1
  export type ThemeProviderProps = {
3
2
  /**
4
3
  * An optional id to register and identify the provider instance.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" resolution-mode="require"/>
2
1
  interface ToggleControlProps {
3
2
  /** Whether or not the toggle is currently enabled. */
4
3
  checked?: boolean;
@@ -20,7 +20,7 @@ import styles from './style.module.scss';
20
20
  * It is useful to async actions when the user has to wait the result of a request or process.
21
21
  *
22
22
  * @param {object} props - The properties.
23
- * @return {React.Component} The `ActionButton` component.
23
+ * @return {React.ReactNode} The `ActionButton` component.
24
24
  */
25
25
  const ActionButton = props => {
26
26
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/jetpack-components",
3
- "version": "0.72.0",
3
+ "version": "0.72.1",
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.60",
18
+ "@automattic/jetpack-boost-score-api": "^0.1.61",
19
19
  "@automattic/jetpack-api": "^0.20.0",
20
20
  "@automattic/jetpack-script-data": "^0.3.0",
21
21
  "@babel/runtime": "^7",
@@ -32,7 +32,7 @@
32
32
  "prop-types": "^15.7.2",
33
33
  "qrcode.react": "4.2.0",
34
34
  "react-slider": "2.0.5",
35
- "social-logos": "^3.1.18",
35
+ "social-logos": "^3.1.19",
36
36
  "uplot": "1.6.31",
37
37
  "uplot-react": "1.1.4"
38
38
  },
@@ -58,7 +58,7 @@
58
58
  "require-from-string": "2.0.2",
59
59
  "storybook": "8.6.7",
60
60
  "ts-dedent": "2.2.0",
61
- "typescript": "5.0.4",
61
+ "typescript": "5.8.2",
62
62
  "webpack": "5.94.0",
63
63
  "webpack-cli": "6.0.1"
64
64
  },