@automattic/jetpack-scan 1.4.1 → 1.4.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
CHANGED
|
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.4.2] - 2026-05-25
|
|
9
|
+
### Changed
|
|
10
|
+
- Replace internal `ContextualUpgradeTrigger` upgrade prompts with `@wordpress/ui` `Notice` composition. [#48909]
|
|
11
|
+
- Update package dependencies. [#48405] [#49012]
|
|
12
|
+
|
|
8
13
|
## [1.4.1] - 2026-05-19
|
|
9
14
|
### Changed
|
|
10
15
|
- Update package dependencies. [#48696]
|
|
@@ -195,6 +200,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
195
200
|
### Removed
|
|
196
201
|
- Updated dependencies. [#39754]
|
|
197
202
|
|
|
203
|
+
[1.4.2]: https://github.com/Automattic/jetpack-scan/compare/v1.4.1...v1.4.2
|
|
198
204
|
[1.4.1]: https://github.com/Automattic/jetpack-scan/compare/v1.4.0...v1.4.1
|
|
199
205
|
[1.4.0]: https://github.com/Automattic/jetpack-scan/compare/v1.3.0...v1.4.0
|
|
200
206
|
[1.3.0]: https://github.com/Automattic/jetpack-scan/compare/v1.2.2...v1.3.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/jetpack-scan",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A JS client for consuming Jetpack Scan services",
|
|
6
6
|
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/scan/#readme",
|
|
@@ -27,19 +27,19 @@
|
|
|
27
27
|
"typecheck": "tsgo --noEmit"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@automattic/jetpack-api": "^1.0.
|
|
31
|
-
"@automattic/jetpack-base-styles": "^1.2.
|
|
32
|
-
"@automattic/jetpack-components": "^1.
|
|
33
|
-
"@wordpress/api-fetch": "7.
|
|
34
|
-
"@wordpress/components": "
|
|
30
|
+
"@automattic/jetpack-api": "^1.0.26",
|
|
31
|
+
"@automattic/jetpack-base-styles": "^1.2.4",
|
|
32
|
+
"@automattic/jetpack-components": "^1.12.0",
|
|
33
|
+
"@wordpress/api-fetch": "7.46.0",
|
|
34
|
+
"@wordpress/components": "33.1.0",
|
|
35
35
|
"@wordpress/dataviews": "14.1.0",
|
|
36
|
-
"@wordpress/date": "5.
|
|
37
|
-
"@wordpress/element": "6.
|
|
38
|
-
"@wordpress/i18n": "6.
|
|
36
|
+
"@wordpress/date": "5.46.0",
|
|
37
|
+
"@wordpress/element": "6.46.0",
|
|
38
|
+
"@wordpress/i18n": "6.19.0",
|
|
39
39
|
"@wordpress/icons": "12.2.0",
|
|
40
|
-
"@wordpress/theme": "0.
|
|
40
|
+
"@wordpress/theme": "0.13.0",
|
|
41
41
|
"@wordpress/ui": "0.11.0",
|
|
42
|
-
"@wordpress/url": "4.
|
|
42
|
+
"@wordpress/url": "4.46.0",
|
|
43
43
|
"debug": "4.4.3"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@types/jest": "30.0.0",
|
|
51
51
|
"@types/react": "18.3.28",
|
|
52
52
|
"@typescript/native-preview": "7.0.0-dev.20260225.1",
|
|
53
|
-
"jest": "30.
|
|
53
|
+
"jest": "30.4.2",
|
|
54
54
|
"react": "^18.2.0",
|
|
55
55
|
"react-dom": "^18.2.0",
|
|
56
56
|
"storybook": "10.3.6",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Text } from '@automattic/jetpack-components';
|
|
2
2
|
import { __, sprintf } from '@wordpress/i18n';
|
|
3
|
+
import { Notice } from '@wordpress/ui';
|
|
3
4
|
import { useMemo, useContext } from 'react';
|
|
4
5
|
import { getFixerDescription } from '@automattic/jetpack-scan';
|
|
5
6
|
import { ThreatModalContext } from './index.tsx';
|
|
@@ -48,14 +49,16 @@ const ThreatFixDetails = (): JSX.Element => {
|
|
|
48
49
|
<Text variant="title-small">{ title }</Text>
|
|
49
50
|
<Text>{ fix }</Text>
|
|
50
51
|
{ handleUpgradeClick && (
|
|
51
|
-
<
|
|
52
|
-
|
|
53
|
-
'Looking for advanced scan results and one-click fixes?',
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
52
|
+
<Notice.Root intent="info">
|
|
53
|
+
<Notice.Description>
|
|
54
|
+
{ __( 'Looking for advanced scan results and one-click fixes?', 'jetpack-scan' ) }
|
|
55
|
+
</Notice.Description>
|
|
56
|
+
<Notice.Actions>
|
|
57
|
+
<Notice.ActionButton onClick={ handleUpgradeClick }>
|
|
58
|
+
{ __( 'Upgrade Jetpack now', 'jetpack-scan' ) }
|
|
59
|
+
</Notice.ActionButton>
|
|
60
|
+
</Notice.Actions>
|
|
61
|
+
</Notice.Root>
|
|
59
62
|
) }
|
|
60
63
|
</div>
|
|
61
64
|
);
|