@automattic/jetpack-components 0.65.5 → 0.66.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 +13 -0
- package/components/notice/style.module.scss +4 -3
- package/components/number-control/index.jsx +20 -0
- package/index.ts +1 -0
- package/package.json +20 -19
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
### This is a list detailing changes for the Jetpack RNA Components package releases.
|
|
4
4
|
|
|
5
|
+
## [0.66.1] - 2025-02-11
|
|
6
|
+
### Changed
|
|
7
|
+
- Internal updates.
|
|
8
|
+
|
|
9
|
+
## [0.66.0] - 2025-02-05
|
|
10
|
+
### Added
|
|
11
|
+
- jetpack-components: Export the getRedirectUrl function with subpath [#41078]
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
- Updated package dependencies. [#41486] [#41491] [#41577]
|
|
15
|
+
|
|
5
16
|
## [0.65.5] - 2025-02-03
|
|
6
17
|
### Changed
|
|
7
18
|
- Updated package dependencies. [#41286]
|
|
@@ -1275,6 +1286,8 @@
|
|
|
1275
1286
|
### Changed
|
|
1276
1287
|
- Update node version requirement to 14.16.1
|
|
1277
1288
|
|
|
1289
|
+
[0.66.1]: https://github.com/Automattic/jetpack-components/compare/0.66.0...0.66.1
|
|
1290
|
+
[0.66.0]: https://github.com/Automattic/jetpack-components/compare/0.65.5...0.66.0
|
|
1278
1291
|
[0.65.5]: https://github.com/Automattic/jetpack-components/compare/0.65.4...0.65.5
|
|
1279
1292
|
[0.65.4]: https://github.com/Automattic/jetpack-components/compare/0.65.3...0.65.4
|
|
1280
1293
|
[0.65.3]: https://github.com/Automattic/jetpack-components/compare/0.65.2...0.65.3
|
|
@@ -19,13 +19,14 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.close-button {
|
|
22
|
-
|
|
23
|
-
height: calc( var( --spacing-base ) * 3 );
|
|
24
|
-
|
|
22
|
+
padding: 0;
|
|
25
23
|
background-color: transparent;
|
|
26
24
|
border: none;
|
|
27
25
|
cursor: pointer;
|
|
28
26
|
outline: none;
|
|
27
|
+
svg {
|
|
28
|
+
display: block;
|
|
29
|
+
}
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
// Mobile layout differences.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__experimentalNumberControl as ExperimentalNumberControl, // eslint-disable-line @wordpress/no-unsafe-wp-apis
|
|
3
|
+
TextControl,
|
|
4
|
+
} from '@wordpress/components';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* This uses the experimental NumberControl from the block
|
|
8
|
+
* editor where available, otherwise it falls back to a
|
|
9
|
+
* standard TextControl, limited to numbers.
|
|
10
|
+
*
|
|
11
|
+
* @param {any} props - the NumberControl component props
|
|
12
|
+
* @return {object} - NumberControl component
|
|
13
|
+
*/
|
|
14
|
+
const NumberControl =
|
|
15
|
+
ExperimentalNumberControl ||
|
|
16
|
+
function CustomNumberControl( props ) {
|
|
17
|
+
return <TextControl type="number" inputMode="numeric" { ...props } />;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export default NumberControl;
|
package/index.ts
CHANGED
|
@@ -49,6 +49,7 @@ export { default as ThreatSeverityBadge } from './components/threat-severity-bad
|
|
|
49
49
|
export { default as ThreatsDataViews } from './components/threats-data-views';
|
|
50
50
|
export { default as Text, H2, H3, Title } from './components/text';
|
|
51
51
|
export { default as ToggleControl } from './components/toggle-control';
|
|
52
|
+
export { default as NumberControl } from './components/number-control';
|
|
52
53
|
export { default as numberFormat } from './components/number-format';
|
|
53
54
|
export { default as QRCode } from './components/qr-code';
|
|
54
55
|
export { default as Button } from './components/button';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/jetpack-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.66.1",
|
|
4
4
|
"description": "Jetpack Components Package",
|
|
5
5
|
"author": "Automattic",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -15,20 +15,20 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@automattic/format-currency": "1.0.1",
|
|
18
|
-
"@automattic/jetpack-boost-score-api": "^0.1.
|
|
19
|
-
"@automattic/jetpack-api": "^0.
|
|
20
|
-
"@automattic/jetpack-scan": "^0.5.
|
|
18
|
+
"@automattic/jetpack-boost-score-api": "^0.1.55",
|
|
19
|
+
"@automattic/jetpack-api": "^0.18.0",
|
|
20
|
+
"@automattic/jetpack-scan": "^0.5.6",
|
|
21
21
|
"@babel/runtime": "^7",
|
|
22
|
-
"@wordpress/browserslist-config": "6.
|
|
23
|
-
"@wordpress/components": "29.
|
|
24
|
-
"@wordpress/compose": "7.
|
|
25
|
-
"@wordpress/data": "10.
|
|
26
|
-
"@wordpress/dataviews": "4.
|
|
27
|
-
"@wordpress/date": "5.
|
|
28
|
-
"@wordpress/element": "6.
|
|
29
|
-
"@wordpress/i18n": "5.
|
|
30
|
-
"@wordpress/icons": "10.
|
|
31
|
-
"@wordpress/notices": "5.
|
|
22
|
+
"@wordpress/browserslist-config": "6.17.0",
|
|
23
|
+
"@wordpress/components": "29.3.0",
|
|
24
|
+
"@wordpress/compose": "7.17.0",
|
|
25
|
+
"@wordpress/data": "10.17.0",
|
|
26
|
+
"@wordpress/dataviews": "4.13.0",
|
|
27
|
+
"@wordpress/date": "5.17.0",
|
|
28
|
+
"@wordpress/element": "6.17.0",
|
|
29
|
+
"@wordpress/i18n": "5.17.0",
|
|
30
|
+
"@wordpress/icons": "10.17.0",
|
|
31
|
+
"@wordpress/notices": "5.17.0",
|
|
32
32
|
"clsx": "2.1.1",
|
|
33
33
|
"prop-types": "^15.7.2",
|
|
34
34
|
"qrcode.react": "4.2.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"uplot-react": "1.1.4"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@automattic/jetpack-base-styles": "^0.6.
|
|
41
|
+
"@automattic/jetpack-base-styles": "^0.6.42",
|
|
42
42
|
"@babel/core": "7.26.0",
|
|
43
43
|
"@babel/preset-react": "7.26.3",
|
|
44
44
|
"@jest/globals": "29.4.3",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"@storybook/blocks": "8.4.7",
|
|
47
47
|
"@storybook/react": "8.4.7",
|
|
48
48
|
"@testing-library/dom": "10.4.0",
|
|
49
|
-
"@testing-library/react": "16.0
|
|
50
|
-
"@testing-library/user-event": "14.
|
|
51
|
-
"@types/jest": "29.5.
|
|
49
|
+
"@testing-library/react": "16.2.0",
|
|
50
|
+
"@testing-library/user-event": "14.6.1",
|
|
51
|
+
"@types/jest": "29.5.14",
|
|
52
52
|
"@types/react": "18.3.18",
|
|
53
53
|
"@types/react-dom": "18.3.5",
|
|
54
54
|
"@types/react-slider": "1.3.6",
|
|
@@ -72,7 +72,8 @@
|
|
|
72
72
|
"extends @wordpress/browserslist-config"
|
|
73
73
|
],
|
|
74
74
|
"exports": {
|
|
75
|
-
".": "./index.ts"
|
|
75
|
+
".": "./index.ts",
|
|
76
|
+
"./tools/jp-redirect": "./tools/jp-redirect/index.ts"
|
|
76
77
|
},
|
|
77
78
|
"sideEffects": [
|
|
78
79
|
"*.css",
|