@automattic/jetpack-components 0.51.0 → 0.52.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 +11 -0
- package/components/action-button/index.jsx +14 -3
- package/package.json +17 -17
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
### This is a list detailing changes for the Jetpack RNA Components package releases.
|
|
4
4
|
|
|
5
|
+
## [0.52.1] - 2024-05-06
|
|
6
|
+
### Changed
|
|
7
|
+
- Updated package dependencies. [#37147] [#37148] [#37160]
|
|
8
|
+
|
|
9
|
+
## [0.52.0] - 2024-04-11
|
|
10
|
+
### Added
|
|
11
|
+
- Added connected card to the A4A plugin. [#36747]
|
|
12
|
+
- Jetpack Components: add a new prop for custom classes for the ActionButton component [#36771]
|
|
13
|
+
|
|
5
14
|
## [0.51.0] - 2024-04-08
|
|
6
15
|
### Added
|
|
7
16
|
- Added AutomatticIconLogo and AutomatticForAgenciesLogo components. [#36664]
|
|
@@ -1003,6 +1012,8 @@
|
|
|
1003
1012
|
### Changed
|
|
1004
1013
|
- Update node version requirement to 14.16.1
|
|
1005
1014
|
|
|
1015
|
+
[0.52.1]: https://github.com/Automattic/jetpack-components/compare/0.52.0...0.52.1
|
|
1016
|
+
[0.52.0]: https://github.com/Automattic/jetpack-components/compare/0.51.0...0.52.0
|
|
1006
1017
|
[0.51.0]: https://github.com/Automattic/jetpack-components/compare/0.50.5...0.51.0
|
|
1007
1018
|
[0.50.5]: https://github.com/Automattic/jetpack-components/compare/0.50.4...0.50.5
|
|
1008
1019
|
[0.50.4]: https://github.com/Automattic/jetpack-components/compare/0.50.3...0.50.4
|
|
@@ -23,19 +23,30 @@ import styles from './style.module.scss';
|
|
|
23
23
|
* @returns {React.Component} The `ActionButton` component.
|
|
24
24
|
*/
|
|
25
25
|
const ActionButton = props => {
|
|
26
|
-
const {
|
|
26
|
+
const {
|
|
27
|
+
label,
|
|
28
|
+
onClick,
|
|
29
|
+
isLoading,
|
|
30
|
+
loadingText,
|
|
31
|
+
isDisabled,
|
|
32
|
+
displayError,
|
|
33
|
+
errorMessage,
|
|
34
|
+
customClass,
|
|
35
|
+
} = props;
|
|
36
|
+
|
|
37
|
+
const loadingContent = loadingText || <Spinner />;
|
|
27
38
|
|
|
28
39
|
return (
|
|
29
40
|
<>
|
|
30
41
|
{
|
|
31
42
|
<Button
|
|
32
|
-
className={ classNames( styles.button, 'jp-action-button--button' ) }
|
|
43
|
+
className={ classNames( styles.button, 'jp-action-button--button', customClass ) }
|
|
33
44
|
label={ label }
|
|
34
45
|
onClick={ onClick }
|
|
35
46
|
variant="primary"
|
|
36
47
|
disabled={ isLoading || isDisabled }
|
|
37
48
|
>
|
|
38
|
-
{ isLoading ?
|
|
49
|
+
{ isLoading ? loadingContent : label }
|
|
39
50
|
</Button>
|
|
40
51
|
}
|
|
41
52
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/jetpack-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.52.1",
|
|
4
4
|
"description": "Jetpack Components Package",
|
|
5
5
|
"author": "Automattic",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -15,16 +15,16 @@
|
|
|
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.29",
|
|
19
19
|
"@babel/runtime": "^7",
|
|
20
|
-
"@wordpress/browserslist-config": "5.
|
|
21
|
-
"@wordpress/components": "27.
|
|
22
|
-
"@wordpress/compose": "6.
|
|
23
|
-
"@wordpress/data": "9.
|
|
24
|
-
"@wordpress/date": "4.
|
|
25
|
-
"@wordpress/element": "5.
|
|
26
|
-
"@wordpress/i18n": "4.
|
|
27
|
-
"@wordpress/icons": "9.
|
|
20
|
+
"@wordpress/browserslist-config": "5.39.0",
|
|
21
|
+
"@wordpress/components": "27.4.0",
|
|
22
|
+
"@wordpress/compose": "6.33.0",
|
|
23
|
+
"@wordpress/data": "9.26.0",
|
|
24
|
+
"@wordpress/date": "4.56.0",
|
|
25
|
+
"@wordpress/element": "5.33.0",
|
|
26
|
+
"@wordpress/i18n": "4.56.0",
|
|
27
|
+
"@wordpress/icons": "9.47.0",
|
|
28
28
|
"classnames": "2.3.2",
|
|
29
29
|
"prop-types": "^15.7.2",
|
|
30
30
|
"qrcode.react": "3.1.0",
|
|
@@ -34,22 +34,22 @@
|
|
|
34
34
|
"uplot-react": "1.1.4"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@automattic/jetpack-base-styles": "^0.6.
|
|
37
|
+
"@automattic/jetpack-base-styles": "^0.6.24",
|
|
38
38
|
"@babel/core": "7.24.0",
|
|
39
39
|
"@babel/preset-react": "7.23.3",
|
|
40
40
|
"@jest/globals": "29.4.3",
|
|
41
|
-
"@storybook/addon-actions": "8.0.
|
|
42
|
-
"@storybook/blocks": "8.0.
|
|
43
|
-
"@storybook/react": "8.0.
|
|
41
|
+
"@storybook/addon-actions": "8.0.9",
|
|
42
|
+
"@storybook/blocks": "8.0.9",
|
|
43
|
+
"@storybook/react": "8.0.9",
|
|
44
44
|
"@testing-library/dom": "9.3.4",
|
|
45
45
|
"@testing-library/react": "14.2.1",
|
|
46
46
|
"@testing-library/user-event": "14.5.2",
|
|
47
47
|
"@types/jest": "29.5.12",
|
|
48
48
|
"@types/qrcode.react": "1.0.5",
|
|
49
|
-
"@types/react": "18.
|
|
50
|
-
"@types/react-dom": "18.
|
|
49
|
+
"@types/react": "18.3.1",
|
|
50
|
+
"@types/react-dom": "18.3.0",
|
|
51
51
|
"@types/react-slider": "1.3.6",
|
|
52
|
-
"@types/react-test-renderer": "18.0
|
|
52
|
+
"@types/react-test-renderer": "18.3.0",
|
|
53
53
|
"@types/testing-library__jest-dom": "5.14.9",
|
|
54
54
|
"jest": "29.7.0",
|
|
55
55
|
"jest-environment-jsdom": "29.7.0",
|