@automattic/jetpack-components 0.40.2 → 0.40.4
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,15 @@
|
|
|
2
2
|
|
|
3
3
|
### This is a list detailing changes for the Jetpack RNA Components package releases.
|
|
4
4
|
|
|
5
|
+
## [0.40.4] - 2023-07-18
|
|
6
|
+
### Changed
|
|
7
|
+
- Use Connection initial state for fetching Calypso Env. [#31906]
|
|
8
|
+
- Code quality improvements. [#31684]
|
|
9
|
+
|
|
10
|
+
## [0.40.3] - 2023-07-17
|
|
11
|
+
### Changed
|
|
12
|
+
- Updated package dependencies. [#31872]
|
|
13
|
+
|
|
5
14
|
## [0.40.2] - 2023-07-11
|
|
6
15
|
### Changed
|
|
7
16
|
- Updated package dependencies. [#31785]
|
|
@@ -763,6 +772,8 @@
|
|
|
763
772
|
### Changed
|
|
764
773
|
- Update node version requirement to 14.16.1
|
|
765
774
|
|
|
775
|
+
[0.40.4]: https://github.com/Automattic/jetpack-components/compare/0.40.3...0.40.4
|
|
776
|
+
[0.40.3]: https://github.com/Automattic/jetpack-components/compare/0.40.2...0.40.3
|
|
766
777
|
[0.40.2]: https://github.com/Automattic/jetpack-components/compare/0.40.1...0.40.2
|
|
767
778
|
[0.40.1]: https://github.com/Automattic/jetpack-components/compare/0.40.0...0.40.1
|
|
768
779
|
[0.40.0]: https://github.com/Automattic/jetpack-components/compare/0.39.0...0.40.0
|
|
@@ -81,7 +81,7 @@ export const BoostScoreBar: FunctionComponent< BoostScoreBarProps > = ( {
|
|
|
81
81
|
<div className="jb-score-bar__score">{ score }</div>
|
|
82
82
|
) }
|
|
83
83
|
|
|
84
|
-
{ showPrevScores && prevScore && prevScore < score && (
|
|
84
|
+
{ showPrevScores && !! prevScore && prevScore < score && (
|
|
85
85
|
<div
|
|
86
86
|
className="jb-score-bar__no_boost_score"
|
|
87
87
|
style={ { left: `min(${ prevScoreOffset }%, calc( 100% - var(--clearance-space))` } }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/jetpack-components",
|
|
3
|
-
"version": "0.40.
|
|
3
|
+
"version": "0.40.4",
|
|
4
4
|
"description": "Jetpack Components Package",
|
|
5
5
|
"author": "Automattic",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@automattic/jetpack-base-styles": "^0.6.3",
|
|
33
|
-
"@babel/core": "7.
|
|
34
|
-
"@babel/preset-react": "7.
|
|
33
|
+
"@babel/core": "7.22.9",
|
|
34
|
+
"@babel/preset-react": "7.22.5",
|
|
35
35
|
"@jest/globals": "29.4.3",
|
|
36
|
-
"@storybook/addon-actions": "7.0.
|
|
37
|
-
"@storybook/blocks": "7.0.
|
|
38
|
-
"@storybook/react": "7.0.
|
|
36
|
+
"@storybook/addon-actions": "7.0.27",
|
|
37
|
+
"@storybook/blocks": "7.0.27",
|
|
38
|
+
"@storybook/react": "7.0.27",
|
|
39
39
|
"@testing-library/dom": "8.19.1",
|
|
40
40
|
"@testing-library/react": "13.4.0",
|
|
41
41
|
"@testing-library/user-event": "14.4.3",
|
|
@@ -25,7 +25,7 @@ export default function getRedirectUrl( source: string, args: GetRedirectUrlArgs
|
|
|
25
25
|
|
|
26
26
|
let calypsoEnv;
|
|
27
27
|
if ( typeof window !== 'undefined' ) {
|
|
28
|
-
calypsoEnv = window
|
|
28
|
+
calypsoEnv = window?.JP_CONNECTION_INITIAL_STATE?.calypsoEnv;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
if ( source.search( 'https://' ) === 0 ) {
|
|
@@ -38,9 +38,9 @@ export default function getRedirectUrl( source: string, args: GetRedirectUrlArgs
|
|
|
38
38
|
queryVars.source = encodeURIComponent( source );
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
for ( const argName in args ) {
|
|
42
42
|
queryVars[ argName ] = encodeURIComponent( args[ argName ] );
|
|
43
|
-
}
|
|
43
|
+
}
|
|
44
44
|
|
|
45
45
|
if (
|
|
46
46
|
! Object.keys( queryVars ).includes( 'site' ) &&
|