@automattic/jetpack-connection 1.4.47 → 1.4.49

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,16 @@
2
2
 
3
3
  ### This is a list detailing changes for the Jetpack RNA Connection Component releases.
4
4
 
5
+ ## [1.4.49] - 2026-05-11
6
+ ### Changed
7
+ - Components: Use Link from `@wordpress/ui` instead of ExternalLink. [#48529]
8
+
9
+ ## [1.4.48] - 2026-05-04
10
+ ### Changed
11
+ - ConnectScreen: Rewrite the private-network error message to reference WordPress.com (the connection target) instead of Jetpack, so the copy reads consistently for any plugin that uses the connection package. [#48263]
12
+ - Internal: No longer require automattic/jetpack-changelogger as a per-project dev dependency. [#48225]
13
+ - Replace deprecated jetpack-components Spinner with WordPress Core Spinner. [#47451]
14
+
5
15
  ## [1.4.47] - 2026-04-27
6
16
  ### Changed
7
17
  - Update dependencies.
@@ -1324,6 +1334,8 @@
1324
1334
  - `Main` and `ConnectUser` components added.
1325
1335
  - `JetpackRestApiClient` API client added.
1326
1336
 
1337
+ [1.4.49]: https://github.com/Automattic/jetpack-connection-js/compare/v1.4.48...v1.4.49
1338
+ [1.4.48]: https://github.com/Automattic/jetpack-connection-js/compare/v1.4.47...v1.4.48
1327
1339
  [1.4.47]: https://github.com/Automattic/jetpack-connection-js/compare/v1.4.46...v1.4.47
1328
1340
  [1.4.46]: https://github.com/Automattic/jetpack-connection-js/compare/v1.4.45...v1.4.46
1329
1341
  [1.4.45]: https://github.com/Automattic/jetpack-connection-js/compare/v1.4.44...v1.4.45
@@ -44,7 +44,7 @@ const getErrorMessage = ( errorCode, isOfflineMode ) => {
44
44
  case 'fail_subdomain_wpcom':
45
45
  case 'siteurl_private_ip':
46
46
  return __(
47
- 'Your site host is on a private network. Jetpack can only connect to public sites.',
47
+ 'Your site host is on a private network. Sites can connect to WordPress.com only on public sites.',
48
48
  'jetpack-connection-js'
49
49
  );
50
50
  case 'connection_disabled':
@@ -1,5 +1,4 @@
1
- import { Spinner } from '@automattic/jetpack-components';
2
- import { Icon, Notice, Path, SVG } from '@wordpress/components';
1
+ import { Icon, Notice, Path, SVG, Spinner } from '@wordpress/components';
3
2
  import { __, sprintf } from '@wordpress/i18n';
4
3
  import PropTypes from 'prop-types';
5
4
  import styles from './styles.module.scss';
@@ -44,7 +43,7 @@ const ConnectionErrorNotice = ( {
44
43
  return (
45
44
  <Notice status={ 'error' } isDismissible={ false } className={ wrapperClassName }>
46
45
  <div className={ styles.message }>
47
- <Spinner color="#B32D2E" size={ 24 } />
46
+ <Spinner />
48
47
  { __( 'Reconnecting Jetpack', 'jetpack-connection-js' ) }
49
48
  </div>
50
49
  </Notice>
@@ -149,7 +149,8 @@
149
149
  margin-right: calc(var(--spacing-base) * 2); // 16px
150
150
  }
151
151
 
152
- :global(.jp-components-spinner) {
152
+ :global(.jp-components-spinner),
153
+ :global(.components-spinner) {
153
154
  margin-right: calc(var(--spacing-base) * 2); // 16px
154
155
  }
155
156
  }
@@ -1,7 +1,8 @@
1
1
  import { getRedirectUrl } from '@automattic/jetpack-components';
2
- import { Button, ExternalLink } from '@wordpress/components';
2
+ import { Button } from '@wordpress/components';
3
3
  import { createInterpolateElement } from '@wordpress/element';
4
4
  import { __ } from '@wordpress/i18n';
5
+ import { Link } from '@wordpress/ui';
5
6
  import PropTypes from 'prop-types';
6
7
  import { Fragment, useCallback, useEffect } from 'react';
7
8
  import ConnectedPlugins from '../../connected-plugins';
@@ -132,7 +133,6 @@ const StepDisconnect = props => {
132
133
  { disconnectStepComponent }
133
134
  { renderFallbackOutput() }
134
135
  </div>
135
-
136
136
  <div className="jp-connection__disconnect-dialog__actions">
137
137
  <div className="jp-row">
138
138
  <div className="lg-col-span-8 md-col-span-9 sm-col-span-4">
@@ -145,7 +145,8 @@ const StepDisconnect = props => {
145
145
  {
146
146
  strong: <strong></strong>,
147
147
  jpConnectionInfoLink: (
148
- <ExternalLink
148
+ <Link
149
+ openInNewTab
149
150
  href={ getRedirectUrl(
150
151
  'why-the-wordpress-com-connection-is-important-for-jetpack'
151
152
  ) }
@@ -154,7 +155,8 @@ const StepDisconnect = props => {
154
155
  />
155
156
  ),
156
157
  jpSupportLink: (
157
- <ExternalLink
158
+ <Link
159
+ openInNewTab
158
160
  href={ getRedirectUrl( 'jetpack-support' ) }
159
161
  className="jp-connection__disconnect-dialog__link"
160
162
  onClick={ trackSupportClick }
@@ -5,10 +5,11 @@ import jetpackAnalytics from '@automattic/jetpack-analytics';
5
5
  import restApi from '@automattic/jetpack-api';
6
6
  import { Button, getRedirectUrl, Text } from '@automattic/jetpack-components';
7
7
  import { isWoASite } from '@automattic/jetpack-script-data';
8
- import { ExternalLink, Modal } from '@wordpress/components';
8
+ import { Modal } from '@wordpress/components';
9
9
  import { createInterpolateElement } from '@wordpress/element';
10
10
  import { __ } from '@wordpress/i18n';
11
11
  import { Icon, chevronRight, external } from '@wordpress/icons';
12
+ import { Link } from '@wordpress/ui';
12
13
  import clsx from 'clsx';
13
14
  import PropTypes from 'prop-types';
14
15
  import { useCallback, useEffect, useState, useMemo } from 'react';
@@ -292,19 +293,21 @@ const HelpFooter = ( { onClose, disabled } ) => {
292
293
  {
293
294
  strong: <strong></strong>,
294
295
  connectionInfoLink: (
295
- <ExternalLink
296
+ <Link
297
+ openInNewTab
296
298
  href={ getRedirectUrl(
297
299
  'why-the-wordpress-com-connection-is-important-for-jetpack'
298
300
  ) }
299
- className="jp-connection__manage-dialog__link"
300
301
  // TODO add click track
302
+ className="jp-connection__manage-dialog__link"
301
303
  />
302
304
  ),
303
305
  supportLink: (
304
- <ExternalLink
306
+ <Link
307
+ openInNewTab
305
308
  href={ getRedirectUrl( 'jetpack-support' ) }
306
- className="jp-connection__manage-dialog__link"
307
309
  // TODO add click track
310
+ className="jp-connection__manage-dialog__link"
308
311
  />
309
312
  ),
310
313
  }
@@ -4,10 +4,11 @@
4
4
  import jetpackAnalytics from '@automattic/jetpack-analytics';
5
5
  import restApi from '@automattic/jetpack-api';
6
6
  import { getRedirectUrl } from '@automattic/jetpack-components';
7
- import { ExternalLink, Modal, Button } from '@wordpress/components';
7
+ import { Modal, Button } from '@wordpress/components';
8
8
  import { createInterpolateElement } from '@wordpress/element';
9
9
  import { __ } from '@wordpress/i18n';
10
10
  import { Icon, chevronRight, external } from '@wordpress/icons';
11
+ import { Link } from '@wordpress/ui';
11
12
  import clsx from 'clsx';
12
13
  import PropTypes from 'prop-types';
13
14
  import { useCallback, useState, useEffect } from 'react';
@@ -122,7 +123,6 @@ const OwnerDisconnectDialog = ( {
122
123
  action="check-users"
123
124
  />
124
125
  </div>
125
-
126
126
  <div className="jp-connection__disconnect-dialog__actions">
127
127
  <div className="jp-row">
128
128
  <div className="lg-col-span-8 md-col-span-9 sm-col-span-4">
@@ -135,7 +135,8 @@ const OwnerDisconnectDialog = ( {
135
135
  {
136
136
  strong: <strong></strong>,
137
137
  connectionInfoLink: (
138
- <ExternalLink
138
+ <Link
139
+ openInNewTab
139
140
  href={ getRedirectUrl(
140
141
  'why-the-wordpress-com-connection-is-important-for-jetpack'
141
142
  ) }
@@ -143,7 +144,8 @@ const OwnerDisconnectDialog = ( {
143
144
  />
144
145
  ),
145
146
  supportLink: (
146
- <ExternalLink
147
+ <Link
148
+ openInNewTab
147
149
  href={ getRedirectUrl( 'jetpack-support' ) }
148
150
  className="jp-connection__disconnect-dialog__link"
149
151
  />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/jetpack-connection",
3
- "version": "1.4.47",
3
+ "version": "1.4.49",
4
4
  "description": "Jetpack Connection Component",
5
5
  "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/connection/#readme",
6
6
  "bugs": {
@@ -28,11 +28,11 @@
28
28
  "typecheck": "tsgo --noEmit"
29
29
  },
30
30
  "dependencies": {
31
- "@automattic/jetpack-analytics": "^1.0.10",
32
- "@automattic/jetpack-api": "^1.0.23",
33
- "@automattic/jetpack-components": "^1.9.0",
34
- "@automattic/jetpack-config": "^1.0.8",
35
- "@automattic/jetpack-script-data": "^0.6.2",
31
+ "@automattic/jetpack-analytics": "^1.0.11",
32
+ "@automattic/jetpack-api": "^1.0.24",
33
+ "@automattic/jetpack-components": "^1.11.0",
34
+ "@automattic/jetpack-config": "^1.0.9",
35
+ "@automattic/jetpack-script-data": "^0.6.3",
36
36
  "@wordpress/base-styles": "6.20.0",
37
37
  "@wordpress/browserslist-config": "6.44.0",
38
38
  "@wordpress/components": "32.6.0",
@@ -40,13 +40,14 @@
40
40
  "@wordpress/element": "6.44.0",
41
41
  "@wordpress/i18n": "6.17.0",
42
42
  "@wordpress/icons": "12.2.0",
43
+ "@wordpress/ui": "0.11.0",
43
44
  "@wordpress/url": "4.44.0",
44
45
  "clsx": "2.1.1",
45
46
  "debug": "4.4.3",
46
47
  "prop-types": "^15.7.2"
47
48
  },
48
49
  "devDependencies": {
49
- "@automattic/jetpack-base-styles": "^1.1.0",
50
+ "@automattic/jetpack-base-styles": "^1.2.1",
50
51
  "@babel/core": "7.29.0",
51
52
  "@babel/preset-react": "7.28.5",
52
53
  "@testing-library/dom": "10.4.1",