@automattic/jetpack-connection 1.4.52 → 1.4.53

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,11 @@
2
2
 
3
3
  ### This is a list detailing changes for the Jetpack RNA Connection Component releases.
4
4
 
5
+ ## [1.4.53] - 2026-05-25
6
+ ### Added
7
+ - Add direct `useProductCheckoutWorkflow` hook export. [#49032]
8
+ - Expose the `useConnectionErrorNotice` hook and `ConnectionError` component via a dedicated sub-path so consumers can opt out of the full package barrel. [#48829]
9
+
5
10
  ## [1.4.52] - 2026-05-21
6
11
  ### Changed
7
12
  - Update package dependencies. [#48405]
@@ -1347,6 +1352,7 @@
1347
1352
  - `Main` and `ConnectUser` components added.
1348
1353
  - `JetpackRestApiClient` API client added.
1349
1354
 
1355
+ [1.4.53]: https://github.com/Automattic/jetpack-connection-js/compare/v1.4.52...v1.4.53
1350
1356
  [1.4.52]: https://github.com/Automattic/jetpack-connection-js/compare/v1.4.51...v1.4.52
1351
1357
  [1.4.51]: https://github.com/Automattic/jetpack-connection-js/compare/v1.4.50...v1.4.51
1352
1358
  [1.4.50]: https://github.com/Automattic/jetpack-connection-js/compare/v1.4.49...v1.4.50
@@ -3,8 +3,8 @@ import { getScriptData } from '@automattic/jetpack-script-data';
3
3
  import { useDispatch, useSelect } from '@wordpress/data';
4
4
  import debugFactory from 'debug';
5
5
  import { useEffect, useState, useMemo } from 'react';
6
- import { getCalypsoOrigin } from '@automattic/jetpack-connection';
7
6
  import useConnection from '../../components/use-connection';
7
+ import getCalypsoOrigin from '../../helpers/get-calypso-origin';
8
8
  import { STORE_ID } from '../../state/store.jsx';
9
9
  import type { UseProductCheckoutWorkflowProps } from './types';
10
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/jetpack-connection",
3
- "version": "1.4.52",
3
+ "version": "1.4.53",
4
4
  "description": "Jetpack Connection Component",
5
5
  "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/connection/#readme",
6
6
  "bugs": {
@@ -20,7 +20,9 @@
20
20
  "type": "module",
21
21
  "exports": {
22
22
  ".": "./index.jsx",
23
- "./use-connection": "./components/use-connection/index.ts"
23
+ "./hooks/use-product-checkout-workflow": "./hooks/use-product-checkout-workflow/index.tsx",
24
+ "./use-connection": "./components/use-connection/index.ts",
25
+ "./use-connection-error-notice": "./hooks/use-connection-error-notice/index.tsx"
24
26
  },
25
27
  "scripts": {
26
28
  "test": "NODE_OPTIONS=--experimental-vm-modules jest",
@@ -30,7 +32,7 @@
30
32
  "dependencies": {
31
33
  "@automattic/jetpack-analytics": "^1.0.13",
32
34
  "@automattic/jetpack-api": "^1.0.26",
33
- "@automattic/jetpack-components": "^1.11.3",
35
+ "@automattic/jetpack-components": "^1.12.0",
34
36
  "@automattic/jetpack-config": "^1.0.11",
35
37
  "@automattic/jetpack-script-data": "^0.6.4",
36
38
  "@wordpress/base-styles": "8.0.0",