@automattic/jetpack-components 0.43.0 → 0.43.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,11 @@
|
|
|
2
2
|
|
|
3
3
|
### This is a list detailing changes for the Jetpack RNA Components package releases.
|
|
4
4
|
|
|
5
|
+
## [0.43.1] - 2023-10-10
|
|
6
|
+
### Changed
|
|
7
|
+
- Boost Score Graph: Show a straight line before the first data point. [#33133]
|
|
8
|
+
- Updated package dependencies. [#33428]
|
|
9
|
+
|
|
5
10
|
## [0.43.0] - 2023-10-03
|
|
6
11
|
### Added
|
|
7
12
|
- Added new sharing icon [#33244]
|
|
@@ -830,6 +835,7 @@
|
|
|
830
835
|
### Changed
|
|
831
836
|
- Update node version requirement to 14.16.1
|
|
832
837
|
|
|
838
|
+
[0.43.1]: https://github.com/Automattic/jetpack-components/compare/0.43.0...0.43.1
|
|
833
839
|
[0.43.0]: https://github.com/Automattic/jetpack-components/compare/0.42.5...0.43.0
|
|
834
840
|
[0.42.5]: https://github.com/Automattic/jetpack-components/compare/0.42.4...0.42.5
|
|
835
841
|
[0.42.4]: https://github.com/Automattic/jetpack-components/compare/0.42.3...0.42.4
|
|
@@ -61,6 +61,17 @@ export const BoostScoreGraph: FunctionComponent< BoostScoreGraphProps > = ( {
|
|
|
61
61
|
startDate = Math.min( periods[ 0 ].timestamp, dayBeforeEndDate );
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
+
// Add a fake period before the start date to make the chart look better
|
|
65
|
+
if ( periods.length > 0 ) {
|
|
66
|
+
periods = [
|
|
67
|
+
{
|
|
68
|
+
timestamp: startDate - 24 * 60 * 60 * 1000,
|
|
69
|
+
dimensions: periods[ 0 ].dimensions,
|
|
70
|
+
},
|
|
71
|
+
...periods,
|
|
72
|
+
];
|
|
73
|
+
}
|
|
74
|
+
|
|
64
75
|
return (
|
|
65
76
|
<div className="jb-score-graph">
|
|
66
77
|
{ title && <Text variant="title-medium">{ title }</Text> }
|
|
@@ -31,6 +31,7 @@ const StatCard = ( { className, icon, label, value, variant = 'square' }: StatCa
|
|
|
31
31
|
<div className={ classnames( styles.info ) }>
|
|
32
32
|
<Text className={ styles.label }>{ label }</Text>
|
|
33
33
|
{ variant === 'square' ? (
|
|
34
|
+
// @todo Switch to `placement` once WordPress 6.4 is the minimum.
|
|
34
35
|
<Tooltip text={ formattedValue } position="top center">
|
|
35
36
|
<Text variant="headline-small" className={ classnames( styles.value ) }>
|
|
36
37
|
{ compactValue }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/jetpack-components",
|
|
3
|
-
"version": "0.43.
|
|
3
|
+
"version": "0.43.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.12",
|
|
19
19
|
"@babel/runtime": "^7",
|
|
20
|
-
"@wordpress/browserslist-config": "5.
|
|
21
|
-
"@wordpress/components": "25.
|
|
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.26.0",
|
|
21
|
+
"@wordpress/components": "25.9.0",
|
|
22
|
+
"@wordpress/compose": "6.20.0",
|
|
23
|
+
"@wordpress/data": "9.13.0",
|
|
24
|
+
"@wordpress/date": "4.43.0",
|
|
25
|
+
"@wordpress/element": "5.20.0",
|
|
26
|
+
"@wordpress/i18n": "4.43.0",
|
|
27
|
+
"@wordpress/icons": "9.34.0",
|
|
28
28
|
"classnames": "2.3.2",
|
|
29
29
|
"prop-types": "^15.7.2",
|
|
30
30
|
"qrcode.react": "3.1.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"uplot-react": "1.1.4"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@automattic/jetpack-base-styles": "^0.6.
|
|
36
|
+
"@automattic/jetpack-base-styles": "^0.6.10",
|
|
37
37
|
"@babel/core": "7.22.17",
|
|
38
38
|
"@babel/preset-react": "7.22.15",
|
|
39
39
|
"@jest/globals": "29.4.3",
|