@automattic/jetpack-connection 0.35.9 → 0.35.11
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
|
+
## [0.35.11] - 2024-10-07
|
|
6
|
+
### Changed
|
|
7
|
+
- Updated package dependencies. [#39594]
|
|
8
|
+
|
|
9
|
+
## [0.35.10] - 2024-09-30
|
|
10
|
+
### Changed
|
|
11
|
+
- Fetch adminUrl current value on function run [#39578]
|
|
12
|
+
|
|
5
13
|
## [0.35.9] - 2024-09-25
|
|
6
14
|
### Changed
|
|
7
15
|
- Update dependencies.
|
|
@@ -855,6 +863,8 @@
|
|
|
855
863
|
- `Main` and `ConnectUser` components added.
|
|
856
864
|
- `JetpackRestApiClient` API client added.
|
|
857
865
|
|
|
866
|
+
[0.35.11]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.10...v0.35.11
|
|
867
|
+
[0.35.10]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.9...v0.35.10
|
|
858
868
|
[0.35.9]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.8...v0.35.9
|
|
859
869
|
[0.35.8]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.7...v0.35.8
|
|
860
870
|
[0.35.7]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.6...v0.35.7
|
|
@@ -15,7 +15,7 @@ const {
|
|
|
15
15
|
apiNonce,
|
|
16
16
|
siteSuffix: defaultSiteSuffix,
|
|
17
17
|
} = window?.JP_CONNECTION_INITIAL_STATE || getScriptData()?.connection || {};
|
|
18
|
-
const defaultAdminUrl =
|
|
18
|
+
const defaultAdminUrl = () =>
|
|
19
19
|
typeof window !== 'undefined' ? window?.myJetpackInitialState?.adminUrl : null;
|
|
20
20
|
|
|
21
21
|
/**
|
|
@@ -38,7 +38,7 @@ export default function useProductCheckoutWorkflow( {
|
|
|
38
38
|
productSlug,
|
|
39
39
|
redirectUrl,
|
|
40
40
|
siteSuffix = defaultSiteSuffix,
|
|
41
|
-
adminUrl = defaultAdminUrl,
|
|
41
|
+
adminUrl = defaultAdminUrl(),
|
|
42
42
|
connectAfterCheckout = false,
|
|
43
43
|
siteProductAvailabilityHandler = null,
|
|
44
44
|
quantity = null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/jetpack-connection",
|
|
3
|
-
"version": "0.35.
|
|
3
|
+
"version": "0.35.11",
|
|
4
4
|
"description": "Jetpack Connection Component",
|
|
5
5
|
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/connection/#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -15,23 +15,23 @@
|
|
|
15
15
|
"license": "GPL-2.0-or-later",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@automattic/jetpack-analytics": "^0.1.31",
|
|
18
|
-
"@automattic/jetpack-api": "^0.17.
|
|
19
|
-
"@automattic/jetpack-components": "^0.56.
|
|
18
|
+
"@automattic/jetpack-api": "^0.17.14",
|
|
19
|
+
"@automattic/jetpack-components": "^0.56.2",
|
|
20
20
|
"@automattic/jetpack-config": "^0.1.25",
|
|
21
21
|
"@automattic/jetpack-script-data": "^0.1.2",
|
|
22
|
-
"@wordpress/base-styles": "5.
|
|
23
|
-
"@wordpress/browserslist-config": "6.
|
|
24
|
-
"@wordpress/components": "28.
|
|
25
|
-
"@wordpress/data": "10.
|
|
26
|
-
"@wordpress/element": "6.
|
|
27
|
-
"@wordpress/i18n": "5.
|
|
28
|
-
"@wordpress/icons": "10.
|
|
22
|
+
"@wordpress/base-styles": "5.8.1",
|
|
23
|
+
"@wordpress/browserslist-config": "6.8.1",
|
|
24
|
+
"@wordpress/components": "28.8.4",
|
|
25
|
+
"@wordpress/data": "10.8.3",
|
|
26
|
+
"@wordpress/element": "6.8.1",
|
|
27
|
+
"@wordpress/i18n": "5.8.2",
|
|
28
|
+
"@wordpress/icons": "10.8.2",
|
|
29
29
|
"clsx": "2.1.1",
|
|
30
30
|
"debug": "4.3.4",
|
|
31
31
|
"prop-types": "^15.7.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@automattic/jetpack-base-styles": "^0.6.
|
|
34
|
+
"@automattic/jetpack-base-styles": "^0.6.33",
|
|
35
35
|
"@babel/core": "7.24.7",
|
|
36
36
|
"@babel/preset-react": "7.24.7",
|
|
37
37
|
"@storybook/addon-actions": "8.2.9",
|