@automattic/jetpack-connection 0.35.9 → 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,10 @@
|
|
|
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
|
+
|
|
5
9
|
## [0.35.9] - 2024-09-25
|
|
6
10
|
### Changed
|
|
7
11
|
- Update dependencies.
|
|
@@ -855,6 +859,7 @@
|
|
|
855
859
|
- `Main` and `ConnectUser` components added.
|
|
856
860
|
- `JetpackRestApiClient` API client added.
|
|
857
861
|
|
|
862
|
+
[0.35.10]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.9...v0.35.10
|
|
858
863
|
[0.35.9]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.8...v0.35.9
|
|
859
864
|
[0.35.8]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.7...v0.35.8
|
|
860
865
|
[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