@automattic/jetpack-connection 0.35.8 → 0.35.10
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.10] - 2024-09-30
|
|
6
|
+
### Changed
|
|
7
|
+
- Fetch adminUrl current value on function run [#39578]
|
|
8
|
+
|
|
9
|
+
## [0.35.9] - 2024-09-25
|
|
10
|
+
### Changed
|
|
11
|
+
- Update dependencies.
|
|
12
|
+
|
|
5
13
|
## [0.35.8] - 2024-09-16
|
|
6
14
|
### Changed
|
|
7
15
|
- Updated package dependencies. [#39332]
|
|
@@ -851,6 +859,8 @@
|
|
|
851
859
|
- `Main` and `ConnectUser` components added.
|
|
852
860
|
- `JetpackRestApiClient` API client added.
|
|
853
861
|
|
|
862
|
+
[0.35.10]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.9...v0.35.10
|
|
863
|
+
[0.35.9]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.8...v0.35.9
|
|
854
864
|
[0.35.8]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.7...v0.35.8
|
|
855
865
|
[0.35.7]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.6...v0.35.7
|
|
856
866
|
[0.35.6]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.5...v0.35.6
|
|
@@ -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.10",
|
|
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.31",
|
|
18
18
|
"@automattic/jetpack-api": "^0.17.13",
|
|
19
|
-
"@automattic/jetpack-components": "^0.
|
|
19
|
+
"@automattic/jetpack-components": "^0.56.0",
|
|
20
20
|
"@automattic/jetpack-config": "^0.1.25",
|
|
21
21
|
"@automattic/jetpack-script-data": "^0.1.2",
|
|
22
22
|
"@wordpress/base-styles": "5.7.0",
|