@automattic/jetpack-components 0.48.0 → 0.48.2
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/icon-tooltip/index.tsx +8 -2
- package/package.json +14 -14
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.48.2] - 2024-02-13
|
|
6
|
+
### Changed
|
|
7
|
+
- Updated package dependencies. [#35608]
|
|
8
|
+
|
|
9
|
+
## [0.48.1] - 2024-02-05
|
|
10
|
+
### Changed
|
|
11
|
+
- Update clicking an icon tooltip to cause the tooltip to show/hide instead of always showing. [#35312]
|
|
12
|
+
- Updated package dependencies.
|
|
13
|
+
|
|
5
14
|
## [0.48.0] - 2024-01-29
|
|
6
15
|
### Changed
|
|
7
16
|
- Move the UpsellBanner component to js-packages/components [#35228]
|
|
@@ -932,6 +941,8 @@
|
|
|
932
941
|
### Changed
|
|
933
942
|
- Update node version requirement to 14.16.1
|
|
934
943
|
|
|
944
|
+
[0.48.2]: https://github.com/Automattic/jetpack-components/compare/0.48.1...0.48.2
|
|
945
|
+
[0.48.1]: https://github.com/Automattic/jetpack-components/compare/0.48.0...0.48.1
|
|
935
946
|
[0.48.0]: https://github.com/Automattic/jetpack-components/compare/0.47.0...0.48.0
|
|
936
947
|
[0.47.0]: https://github.com/Automattic/jetpack-components/compare/0.46.0...0.47.0
|
|
937
948
|
[0.46.0]: https://github.com/Automattic/jetpack-components/compare/0.45.10...0.46.0
|
|
@@ -44,8 +44,14 @@ const IconTooltip: React.FC< IconTooltipProps > = ( {
|
|
|
44
44
|
} ) => {
|
|
45
45
|
const POPOVER_HELPER_WIDTH = 124;
|
|
46
46
|
const [ isVisible, setIsVisible ] = useState( false );
|
|
47
|
-
const showTooltip = useCallback( () => setIsVisible( true ), [ setIsVisible ] );
|
|
48
47
|
const hideTooltip = useCallback( () => setIsVisible( false ), [ setIsVisible ] );
|
|
48
|
+
const toggleTooltip = useCallback(
|
|
49
|
+
e => {
|
|
50
|
+
e.preventDefault();
|
|
51
|
+
setIsVisible( ! isVisible );
|
|
52
|
+
},
|
|
53
|
+
[ isVisible, setIsVisible ]
|
|
54
|
+
);
|
|
49
55
|
|
|
50
56
|
const args = {
|
|
51
57
|
// To be compatible with deprecating prop `position`.
|
|
@@ -75,7 +81,7 @@ const IconTooltip: React.FC< IconTooltipProps > = ( {
|
|
|
75
81
|
return (
|
|
76
82
|
<div className={ wrapperClassNames } data-testid="icon-tooltip_wrapper">
|
|
77
83
|
{ ! isAnchorWrapper && (
|
|
78
|
-
<Button variant="link"
|
|
84
|
+
<Button variant="link" onMouseDown={ toggleTooltip }>
|
|
79
85
|
<Gridicon className={ iconClassName } icon={ iconCode } size={ iconSize } />
|
|
80
86
|
</Button>
|
|
81
87
|
) }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/jetpack-components",
|
|
3
|
-
"version": "0.48.
|
|
3
|
+
"version": "0.48.2",
|
|
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.22",
|
|
19
19
|
"@babel/runtime": "^7",
|
|
20
|
-
"@wordpress/browserslist-config": "5.
|
|
21
|
-
"@wordpress/components": "
|
|
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.34.0",
|
|
21
|
+
"@wordpress/components": "26.0.0",
|
|
22
|
+
"@wordpress/compose": "6.28.0",
|
|
23
|
+
"@wordpress/data": "9.21.0",
|
|
24
|
+
"@wordpress/date": "4.51.0",
|
|
25
|
+
"@wordpress/element": "5.28.0",
|
|
26
|
+
"@wordpress/i18n": "4.51.0",
|
|
27
|
+
"@wordpress/icons": "9.42.0",
|
|
28
28
|
"classnames": "2.3.2",
|
|
29
29
|
"prop-types": "^15.7.2",
|
|
30
30
|
"qrcode.react": "3.1.0",
|
|
@@ -34,17 +34,17 @@
|
|
|
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.17",
|
|
38
38
|
"@babel/core": "7.23.5",
|
|
39
39
|
"@babel/preset-react": "7.23.3",
|
|
40
40
|
"@jest/globals": "29.4.3",
|
|
41
41
|
"@storybook/addon-actions": "7.6.5",
|
|
42
42
|
"@storybook/blocks": "7.6.5",
|
|
43
43
|
"@storybook/react": "7.6.5",
|
|
44
|
-
"@testing-library/dom": "9.3.
|
|
45
|
-
"@testing-library/react": "14.
|
|
44
|
+
"@testing-library/dom": "9.3.4",
|
|
45
|
+
"@testing-library/react": "14.2.0",
|
|
46
46
|
"@testing-library/user-event": "14.5.2",
|
|
47
|
-
"@types/jest": "29.5.
|
|
47
|
+
"@types/jest": "29.5.12",
|
|
48
48
|
"@types/qrcode.react": "1.0.4",
|
|
49
49
|
"@types/react": "18.2.33",
|
|
50
50
|
"@types/react-dom": "18.2.14",
|