@automattic/jetpack-shared-extension-utils 2.0.31 → 2.1.1

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
@@ -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.1] - 2026-10-15
9
+ ### Changed
10
+ - Update package dependencies. [#53004]
11
+
12
+ ## [2.1.0] - 2026-10-14
13
+ ### Added
14
+ - Add getJetpackAiManageUrl(), the URL where Jetpack AI is managed on the site. [#53519]
15
+
8
16
  ## [2.0.31] - 2026-10-12
9
17
  ### Changed
10
18
  - Update dependencies. [#53301]
@@ -1108,6 +1116,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1108
1116
  ### Changed
1109
1117
  - Core: prepare utility for release
1110
1118
 
1119
+ [2.1.1]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/2.1.0...2.1.1
1120
+ [2.1.0]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/2.0.31...2.1.0
1111
1121
  [2.0.31]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/2.0.30...2.0.31
1112
1122
  [2.0.30]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/2.0.29...2.0.30
1113
1123
  [2.0.29]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/2.0.28...2.0.29
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.31",
3
+ "version": "2.1.1",
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,25 +29,25 @@
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.17",
33
- "@automattic/jetpack-components": "^4.0.2",
34
- "@automattic/jetpack-connection": "^2.11.1",
35
- "@automattic/jetpack-script-data": "^0.6.9",
36
- "@automattic/jetpack-shared-stores": "^0.2.14",
32
+ "@automattic/jetpack-base-styles": "^1.2.18",
33
+ "@automattic/jetpack-components": "^4.0.4",
34
+ "@automattic/jetpack-connection": "^2.12.1",
35
+ "@automattic/jetpack-script-data": "^0.6.10",
36
+ "@automattic/jetpack-shared-stores": "^0.2.16",
37
37
  "@types/jest": "30.0.0",
38
- "@wordpress/api-fetch": "7.55.0",
39
- "@wordpress/block-editor": "17.1.0",
40
- "@wordpress/components": "40.1.0",
41
- "@wordpress/compose": "8.8.0",
42
- "@wordpress/data": "10.55.0",
43
- "@wordpress/dom-ready": "4.55.0",
44
- "@wordpress/element": "8.7.0",
45
- "@wordpress/hooks": "4.55.0",
46
- "@wordpress/i18n": "6.28.0",
47
- "@wordpress/plugins": "7.55.0",
48
- "@wordpress/primitives": "4.55.0",
49
- "@wordpress/ui": "0.22.0",
50
- "@wordpress/url": "4.55.0",
38
+ "@wordpress/api-fetch": "7.57.0",
39
+ "@wordpress/block-editor": "18.1.0",
40
+ "@wordpress/components": "42.0.0",
41
+ "@wordpress/compose": "8.10.0",
42
+ "@wordpress/data": "10.57.0",
43
+ "@wordpress/dom-ready": "4.57.0",
44
+ "@wordpress/element": "9.0.0",
45
+ "@wordpress/hooks": "4.57.0",
46
+ "@wordpress/i18n": "6.30.0",
47
+ "@wordpress/plugins": "7.57.0",
48
+ "@wordpress/primitives": "4.57.0",
49
+ "@wordpress/ui": "0.24.0",
50
+ "@wordpress/url": "4.57.0",
51
51
  "clsx": "2.1.1",
52
52
  "debug": "4.4.3",
53
53
  "social-logos": "^3.4.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
+ }