@automattic/jetpack-connection 0.34.0 → 0.34.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
@@ -2,6 +2,17 @@
2
2
 
3
3
  ### This is a list detailing changes for the Jetpack RNA Connection Component releases.
4
4
 
5
+ ## [0.34.2] - 2024-08-09
6
+ ### Added
7
+ - React 19 compatibility: Making sure useRef includes an argument. [#38765]
8
+
9
+ ### Removed
10
+ - Tests: Removed react-test-renderer. [#38755]
11
+
12
+ ## [0.34.1] - 2024-07-22
13
+ ### Added
14
+ - Display the proper error message for suspended sites on site registration. [#38359]
15
+
5
16
  ## [0.34.0] - 2024-07-18
6
17
  ### Changed
7
18
  - Connection Screen: remove mention of Stats from the list of available free features. [#38328]
@@ -801,6 +812,8 @@
801
812
  - `Main` and `ConnectUser` components added.
802
813
  - `JetpackRestApiClient` API client added.
803
814
 
815
+ [0.34.2]: https://github.com/Automattic/jetpack-connection-js/compare/v0.34.1...v0.34.2
816
+ [0.34.1]: https://github.com/Automattic/jetpack-connection-js/compare/v0.34.0...v0.34.1
804
817
  [0.34.0]: https://github.com/Automattic/jetpack-connection-js/compare/v0.33.19...v0.34.0
805
818
  [0.33.19]: https://github.com/Automattic/jetpack-connection-js/compare/v0.33.18...v0.33.19
806
819
  [0.33.18]: https://github.com/Automattic/jetpack-connection-js/compare/v0.33.17...v0.33.18
@@ -48,6 +48,8 @@ const getErrorMessage = ( errorCode, isOfflineMode ) => {
48
48
  'Your site host is on a private network. Jetpack can only connect to public sites.',
49
49
  'jetpack'
50
50
  );
51
+ case 'connection_disabled':
52
+ return __( 'This site has been suspended.', 'jetpack' );
51
53
  }
52
54
 
53
55
  if ( isOfflineMode ) {
@@ -34,8 +34,8 @@ const InPlaceConnection = props => {
34
34
  } = props;
35
35
  let { height = '300' } = props;
36
36
 
37
- const iframeWrapRef = useRef();
38
- const iframeRef = useRef();
37
+ const iframeWrapRef = useRef( undefined );
38
+ const iframeRef = useRef( undefined );
39
39
 
40
40
  /**
41
41
  * Handles messages received from inside the iframe.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/jetpack-connection",
3
- "version": "0.34.0",
3
+ "version": "0.34.2",
4
4
  "description": "Jetpack Connection Component",
5
5
  "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/connection/#readme",
6
6
  "bugs": {
@@ -16,7 +16,7 @@
16
16
  "dependencies": {
17
17
  "@automattic/jetpack-analytics": "^0.1.29",
18
18
  "@automattic/jetpack-api": "^0.17.9",
19
- "@automattic/jetpack-components": "^0.54.4",
19
+ "@automattic/jetpack-components": "^0.55.6",
20
20
  "@automattic/jetpack-config": "^0.1.24",
21
21
  "@wordpress/base-styles": "5.2.0",
22
22
  "@wordpress/browserslist-config": "6.2.0",
@@ -41,8 +41,7 @@
41
41
  "jest": "29.7.0",
42
42
  "jest-environment-jsdom": "29.7.0",
43
43
  "react": "18.3.1",
44
- "react-dom": "18.3.1",
45
- "react-test-renderer": "18.3.1"
44
+ "react-dom": "18.3.1"
46
45
  },
47
46
  "peerDependencies": {
48
47
  "react": "^18.0.0",