@automattic/jetpack-connection 1.4.64 → 1.4.66
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,14 @@
|
|
|
2
2
|
|
|
3
3
|
### This is a list detailing changes for the Jetpack RNA Connection Component releases.
|
|
4
4
|
|
|
5
|
+
## [1.4.66] - 2026-06-26
|
|
6
|
+
### Changed
|
|
7
|
+
- Internal updates.
|
|
8
|
+
|
|
9
|
+
## [1.4.65] - 2026-06-25
|
|
10
|
+
### Fixed
|
|
11
|
+
- Connect screen: Accept React synthetic events on the connect button click handler to satisfy the `@wordpress/ui` 0.15 Button `onClick` type. [#49795]
|
|
12
|
+
|
|
5
13
|
## [1.4.64] - 2026-06-24
|
|
6
14
|
### Changed
|
|
7
15
|
- Internal updates.
|
|
@@ -1397,6 +1405,8 @@
|
|
|
1397
1405
|
- `Main` and `ConnectUser` components added.
|
|
1398
1406
|
- `JetpackRestApiClient` API client added.
|
|
1399
1407
|
|
|
1408
|
+
[1.4.66]: https://github.com/Automattic/jetpack-connection-js/compare/v1.4.65...v1.4.66
|
|
1409
|
+
[1.4.65]: https://github.com/Automattic/jetpack-connection-js/compare/v1.4.64...v1.4.65
|
|
1400
1410
|
[1.4.64]: https://github.com/Automattic/jetpack-connection-js/compare/v1.4.63...v1.4.64
|
|
1401
1411
|
[1.4.63]: https://github.com/Automattic/jetpack-connection-js/compare/v1.4.62...v1.4.63
|
|
1402
1412
|
[1.4.62]: https://github.com/Automattic/jetpack-connection-js/compare/v1.4.61...v1.4.62
|
|
@@ -5,7 +5,7 @@ import { Button } from '@wordpress/ui';
|
|
|
5
5
|
import ConnectScreenLayout from '../layout';
|
|
6
6
|
import type { Props as ConnectScreenProps } from '../basic';
|
|
7
7
|
import type { WithRequired } from '../types';
|
|
8
|
-
import type { FC } from 'react';
|
|
8
|
+
import type { FC, SyntheticEvent } from 'react';
|
|
9
9
|
import './style.scss';
|
|
10
10
|
|
|
11
11
|
type SharedProps = Pick<
|
|
@@ -23,7 +23,7 @@ type OwnProps = {
|
|
|
23
23
|
// Whether the connection status is still loading
|
|
24
24
|
isLoading?: boolean;
|
|
25
25
|
// Callback to be called on button click
|
|
26
|
-
handleButtonClick?: ( e
|
|
26
|
+
handleButtonClick?: ( e?: Event | SyntheticEvent ) => void;
|
|
27
27
|
// Whether the error message appears or not
|
|
28
28
|
displayButtonError?: boolean;
|
|
29
29
|
// The connection error code
|
|
@@ -9,6 +9,7 @@ import type {
|
|
|
9
9
|
UseConnectionProps,
|
|
10
10
|
UseConnectionReturn,
|
|
11
11
|
} from './types.ts';
|
|
12
|
+
import type { SyntheticEvent } from 'react';
|
|
12
13
|
|
|
13
14
|
type StoreSelector = ( storeId: string ) => Record< string, ( ...args: unknown[] ) => unknown >;
|
|
14
15
|
|
|
@@ -96,7 +97,7 @@ export default function useConnection( {
|
|
|
96
97
|
* @param {Event} [e] - Event that dispatched handleRegisterSite
|
|
97
98
|
* @return Promise when running the site connection process. Otherwise, nothing.
|
|
98
99
|
*/
|
|
99
|
-
const handleRegisterSite = ( e?: Event ): Promise< unknown > => {
|
|
100
|
+
const handleRegisterSite = ( e?: Event | SyntheticEvent ): Promise< unknown > => {
|
|
100
101
|
e && e.preventDefault();
|
|
101
102
|
|
|
102
103
|
if ( isRegistered ) {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { SyntheticEvent } from 'react';
|
|
2
|
+
|
|
1
3
|
export interface UseConnectionProps {
|
|
2
4
|
/**
|
|
3
5
|
* The registration nonce.
|
|
@@ -61,7 +63,7 @@ export interface RegistrationError {
|
|
|
61
63
|
}
|
|
62
64
|
|
|
63
65
|
export interface UseConnectionReturn {
|
|
64
|
-
handleRegisterSite: ( e?: Event ) => Promise< unknown >;
|
|
66
|
+
handleRegisterSite: ( e?: Event | SyntheticEvent ) => Promise< unknown >;
|
|
65
67
|
handleConnectUser: () => Promise< unknown >;
|
|
66
68
|
refreshConnectedPlugins: () => Promise< unknown >;
|
|
67
69
|
isRegistered: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/jetpack-connection",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.66",
|
|
4
4
|
"description": "Jetpack Connection Component",
|
|
5
5
|
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/connection/#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@automattic/jetpack-analytics": "^1.0.15",
|
|
34
34
|
"@automattic/jetpack-api": "^1.0.30",
|
|
35
|
-
"@automattic/jetpack-components": "^1.12.
|
|
35
|
+
"@automattic/jetpack-components": "^1.12.13",
|
|
36
36
|
"@automattic/jetpack-config": "^1.0.13",
|
|
37
37
|
"@automattic/jetpack-script-data": "^0.6.4",
|
|
38
38
|
"@wordpress/base-styles": "10.0.1",
|
|
@@ -51,7 +51,6 @@
|
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@automattic/jetpack-base-styles": "^1.2.7",
|
|
53
53
|
"@babel/core": "7.29.7",
|
|
54
|
-
"@babel/preset-react": "7.29.7",
|
|
55
54
|
"@testing-library/dom": "10.4.1",
|
|
56
55
|
"@testing-library/react": "16.3.2",
|
|
57
56
|
"@testing-library/user-event": "14.6.1",
|