@automattic/jetpack-shared-extension-utils 2.0.30 → 2.1.0
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 +10 -0
- package/index.js +1 -0
- package/package.json +6 -6
- package/src/get-jetpack-ai-manage-url.js +12 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [2.1.0] - 2026-10-14
|
|
9
|
+
### Added
|
|
10
|
+
- Add getJetpackAiManageUrl(), the URL where Jetpack AI is managed on the site. [#53519]
|
|
11
|
+
|
|
12
|
+
## [2.0.31] - 2026-10-12
|
|
13
|
+
### Changed
|
|
14
|
+
- Update dependencies. [#53301]
|
|
15
|
+
|
|
8
16
|
## [2.0.30] - 2026-10-07
|
|
9
17
|
### Changed
|
|
10
18
|
- Update dependencies. [#53250]
|
|
@@ -1104,6 +1112,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
1104
1112
|
### Changed
|
|
1105
1113
|
- Core: prepare utility for release
|
|
1106
1114
|
|
|
1115
|
+
[2.1.0]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/2.0.31...2.1.0
|
|
1116
|
+
[2.0.31]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/2.0.30...2.0.31
|
|
1107
1117
|
[2.0.30]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/2.0.29...2.0.30
|
|
1108
1118
|
[2.0.29]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/2.0.28...2.0.29
|
|
1109
1119
|
[2.0.28]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/2.0.27...2.0.28
|
package/index.js
CHANGED
|
@@ -25,6 +25,7 @@ export { getBlockIconComponent, getBlockIconProp } from './src/get-block-icon-fr
|
|
|
25
25
|
export { default as getJetpackBlocksVariation } from './src/get-jetpack-blocks-variation';
|
|
26
26
|
export { store, JETPACK_MODULES_STORE_ID } from '@automattic/jetpack-shared-stores';
|
|
27
27
|
export { default as isMyJetpackAvailable } from './src/is-my-jetpack-available';
|
|
28
|
+
export { default as getJetpackAiManageUrl } from './src/get-jetpack-ai-manage-url';
|
|
28
29
|
export { default as hasFeatureFlag } from './src/has-feature-flag';
|
|
29
30
|
export * from './src/libs';
|
|
30
31
|
export { default as useUpgradeFlow } from './src/hooks/use-upgrade-flow';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/jetpack-shared-extension-utils",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Utility functions used by the block editor extensions",
|
|
5
5
|
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/shared-extension-utils/#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@automattic/color-studio": "4.1.0",
|
|
31
31
|
"@automattic/jetpack-analytics": "^1.0.16",
|
|
32
|
-
"@automattic/jetpack-base-styles": "^1.2.
|
|
33
|
-
"@automattic/jetpack-components": "^4.0.
|
|
34
|
-
"@automattic/jetpack-connection": "^2.
|
|
35
|
-
"@automattic/jetpack-script-data": "^0.6.
|
|
36
|
-
"@automattic/jetpack-shared-stores": "^0.2.
|
|
32
|
+
"@automattic/jetpack-base-styles": "^1.2.17",
|
|
33
|
+
"@automattic/jetpack-components": "^4.0.3",
|
|
34
|
+
"@automattic/jetpack-connection": "^2.12.0",
|
|
35
|
+
"@automattic/jetpack-script-data": "^0.6.10",
|
|
36
|
+
"@automattic/jetpack-shared-stores": "^0.2.15",
|
|
37
37
|
"@types/jest": "30.0.0",
|
|
38
38
|
"@wordpress/api-fetch": "7.55.0",
|
|
39
39
|
"@wordpress/block-editor": "17.1.0",
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { getMyJetpackUrl, getScriptData } from '@automattic/jetpack-script-data';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Return the URL where Jetpack AI is managed on this site, as printed by My Jetpack.
|
|
5
|
+
*
|
|
6
|
+
* Falls back to My Jetpack's AI page when the site did not print one.
|
|
7
|
+
*
|
|
8
|
+
* @return {string} The Jetpack AI manage URL.
|
|
9
|
+
*/
|
|
10
|
+
export default function getJetpackAiManageUrl() {
|
|
11
|
+
return getScriptData()?.myJetpack?.aiManageUrl || getMyJetpackUrl( '#/jetpack-ai' );
|
|
12
|
+
}
|