@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 +5 -0
- package/build/components/action-button/index.d.ts +10 -10
- package/build/components/action-button/index.js +1 -1
- package/build/components/action-popover/types.d.ts +0 -1
- package/build/components/admin-page/types.d.ts +0 -1
- package/build/components/admin-section/types.d.ts +0 -1
- package/build/components/boost-score-graph/uplot-line-chart.js +2 -2
- package/build/components/icon-tooltip/index.js +1 -1
- package/build/components/icon-tooltip/types.d.ts +0 -1
- package/build/components/layout/types.d.ts +0 -1
- package/build/components/popover/index.d.ts +0 -1
- package/build/components/pricing-table/types.d.ts +0 -1
- package/build/components/product-offer/types.d.ts +0 -1
- package/build/components/product-price/types.d.ts +0 -1
- package/build/components/radio-control/index.d.ts +0 -1
- package/build/components/spinner/index.d.ts +3 -3
- package/build/components/spinner/index.js +1 -1
- package/build/components/split-button/types.d.ts +0 -1
- package/build/components/stat-card/types.d.ts +0 -1
- package/build/components/status/index.d.ts +0 -1
- package/build/components/terms-of-service/index.d.ts +0 -1
- package/build/components/theme-provider/types.d.ts +0 -1
- package/build/components/toggle-control/index.d.ts +0 -1
- package/components/action-button/index.jsx +1 -1
- package/package.json +4 -4
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.
|
|
10
|
+
* @return {React.ReactNode} The `ActionButton` component.
|
|
11
11
|
*/
|
|
12
|
-
declare function ActionButton(props: object): React.
|
|
12
|
+
declare function ActionButton(props: object): React.ReactNode;
|
|
13
13
|
declare namespace ActionButton {
|
|
14
14
|
namespace propTypes {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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.
|
|
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;
|
|
@@ -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 = {
|
|
@@ -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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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 = {
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
61
|
+
"typescript": "5.8.2",
|
|
62
62
|
"webpack": "5.94.0",
|
|
63
63
|
"webpack-cli": "6.0.1"
|
|
64
64
|
},
|