@automattic/jetpack-scan 1.4.0 → 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,10 +5,19 @@ 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
+
13
+ ## [1.4.1] - 2026-05-19
14
+ ### Changed
15
+ - Update package dependencies. [#48696]
16
+
8
17
  ## [1.4.0] - 2026-05-11
9
18
  ### Added
10
- - ThreatsDataViews: Add an optional `empty` prop that's forwarded to the underlying `DataViews` so consumers can render their own empty-state node instead of DataViews' built-in "no items" body. [#48458]
11
19
  - ThreatsDataViews: Accept `RenderFixModal`, `RenderIgnoreModal`, and `RenderUnignoreModal` props so consumers can route row actions through DataViews-managed confirmation modals. [#48458]
20
+ - ThreatsDataViews: Add an optional `empty` prop that's forwarded to the underlying `DataViews` so consumers can render their own empty-state node instead of DataViews' built-in "no items" body. [#48458]
12
21
  - ThreatsDataViews: Add an optional `onTrackEvent` callback for DataViews-canonical view transition events. [#48458]
13
22
  - ThreatsDataViews: Add an optional `persistKey` prop to persist filters, sort, search, pagination, and layout in local storage. [#48458]
14
23
  - ThreatsDataViews: Add an optional `RenderViewModal` prop for always-available threat detail views. [#48458]
@@ -18,12 +27,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
18
27
  - Badge: Migrated usages to @wordpress/ui Badge. [#48156]
19
28
  - Internal: No longer require automattic/jetpack-changelogger as a per-project dev dependency. [#48225]
20
29
  - Scan Package: Switch the package to source exports so consumers resolve `@automattic/jetpack-scan` directly to `./src/index.ts`. [#48458]
21
- - Update package dependencies. [#47907]
22
- - Update package dependencies. [#48106]
23
- - Update package dependencies. [#48126]
24
- - Update package dependencies. [#48141]
25
- - Update package dependencies. [#48346]
26
30
  - ThreatsDataViews: Anchor the DataViews empty body to `calc(100vh - 320px)` so consumers get a full-height empty state without wiring a custom flex chain. [#48458]
31
+ - Update package dependencies. [#47907] [#48106] [#48126] [#48141] [#48346]
27
32
 
28
33
  ## [1.3.0] - 2026-04-11
29
34
  ### Changed
@@ -195,6 +200,8 @@ 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
204
+ [1.4.1]: https://github.com/Automattic/jetpack-scan/compare/v1.4.0...v1.4.1
198
205
  [1.4.0]: https://github.com/Automattic/jetpack-scan/compare/v1.3.0...v1.4.0
199
206
  [1.3.0]: https://github.com/Automattic/jetpack-scan/compare/v1.2.2...v1.3.0
200
207
  [1.2.2]: https://github.com/Automattic/jetpack-scan/compare/v1.2.1...v1.2.2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/jetpack-scan",
3
- "version": "1.4.0",
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,33 +27,33 @@
27
27
  "typecheck": "tsgo --noEmit"
28
28
  },
29
29
  "dependencies": {
30
- "@automattic/jetpack-api": "^1.0.24",
31
- "@automattic/jetpack-base-styles": "^1.2.1",
32
- "@automattic/jetpack-components": "^1.11.0",
33
- "@wordpress/api-fetch": "7.44.0",
34
- "@wordpress/components": "32.6.0",
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.44.0",
37
- "@wordpress/element": "6.44.0",
38
- "@wordpress/i18n": "6.17.0",
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.11.0",
40
+ "@wordpress/theme": "0.13.0",
41
41
  "@wordpress/ui": "0.11.0",
42
- "@wordpress/url": "4.44.0",
42
+ "@wordpress/url": "4.46.0",
43
43
  "debug": "4.4.3"
44
44
  },
45
45
  "devDependencies": {
46
- "@storybook/addon-docs": "10.3.5",
47
- "@storybook/react": "10.3.5",
46
+ "@storybook/addon-docs": "10.3.6",
47
+ "@storybook/react": "10.3.6",
48
48
  "@testing-library/dom": "10.4.1",
49
49
  "@testing-library/react": "16.3.2",
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.3.0",
53
+ "jest": "30.4.2",
54
54
  "react": "^18.2.0",
55
55
  "react-dom": "^18.2.0",
56
- "storybook": "10.3.5",
56
+ "storybook": "10.3.6",
57
57
  "typescript": "5.9.3"
58
58
  },
59
59
  "peerDependencies": {
@@ -1,5 +1,6 @@
1
- import { ContextualUpgradeTrigger, Text } from '@automattic/jetpack-components';
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
- <ContextualUpgradeTrigger
52
- description={ __(
53
- 'Looking for advanced scan results and one-click fixes?',
54
- 'jetpack-scan'
55
- ) }
56
- cta={ __( 'Upgrade Jetpack now', 'jetpack-scan' ) }
57
- onClick={ handleUpgradeClick }
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
  );