@automattic/jetpack-components 0.65.5 → 0.66.0
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 +8 -0
- 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,13 @@
|
|
|
2
2
|
|
|
3
3
|
### This is a list detailing changes for the Jetpack RNA Components package releases.
|
|
4
4
|
|
|
5
|
+
## [0.66.0] - 2025-02-05
|
|
6
|
+
### Added
|
|
7
|
+
- jetpack-components: Export the getRedirectUrl function with subpath [#41078]
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
- Updated package dependencies. [#41486] [#41491] [#41577]
|
|
11
|
+
|
|
5
12
|
## [0.65.5] - 2025-02-03
|
|
6
13
|
### Changed
|
|
7
14
|
- Updated package dependencies. [#41286]
|
|
@@ -1275,6 +1282,7 @@
|
|
|
1275
1282
|
### Changed
|
|
1276
1283
|
- Update node version requirement to 14.16.1
|
|
1277
1284
|
|
|
1285
|
+
[0.66.0]: https://github.com/Automattic/jetpack-components/compare/0.65.5...0.66.0
|
|
1278
1286
|
[0.65.5]: https://github.com/Automattic/jetpack-components/compare/0.65.4...0.65.5
|
|
1279
1287
|
[0.65.4]: https://github.com/Automattic/jetpack-components/compare/0.65.3...0.65.4
|
|
1280
1288
|
[0.65.3]: https://github.com/Automattic/jetpack-components/compare/0.65.2...0.65.3
|
|
@@ -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.0",
|
|
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",
|