@automattic/jetpack-ai-client 0.34.14 → 0.34.16

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
+ ## [0.34.16] - 2026-05-11
9
+ ### Changed
10
+ - Components: Use Link from `@wordpress/ui` instead of ExternalLink. [#48529]
11
+
12
+ ## [0.34.15] - 2026-05-04
13
+ ### Changed
14
+ - Internal: No longer require automattic/jetpack-changelogger as a per-project dev dependency. [#48225]
15
+
8
16
  ## [0.34.14] - 2026-04-27
9
17
  ### Changed
10
18
  - Internal updates.
@@ -864,6 +872,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
864
872
  - AI Client: stop using smart document visibility handling on the fetchEventSource library, so it does not restart the completion when changing tabs. [#32004]
865
873
  - Updated package dependencies. [#31468] [#31659] [#31785]
866
874
 
875
+ [0.34.16]: https://github.com/Automattic/jetpack-ai-client/compare/v0.34.15...v0.34.16
876
+ [0.34.15]: https://github.com/Automattic/jetpack-ai-client/compare/v0.34.14...v0.34.15
867
877
  [0.34.14]: https://github.com/Automattic/jetpack-ai-client/compare/v0.34.13...v0.34.14
868
878
  [0.34.13]: https://github.com/Automattic/jetpack-ai-client/compare/v0.34.12...v0.34.13
869
879
  [0.34.12]: https://github.com/Automattic/jetpack-ai-client/compare/v0.34.11...v0.34.12
@@ -2,10 +2,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  /**
3
3
  * External dependencies
4
4
  */
5
- import { ExternalLink, Button } from '@wordpress/components';
5
+ import { Button } from '@wordpress/components';
6
6
  import { createInterpolateElement } from '@wordpress/element';
7
7
  import { __, sprintf } from '@wordpress/i18n';
8
8
  import { Icon, check } from '@wordpress/icons';
9
+ import { Link } from '@wordpress/ui';
9
10
  import clsx from 'clsx';
10
11
  /**
11
12
  * Internal dependencies
@@ -48,7 +49,7 @@ export default function Message({ severity = MESSAGE_SEVERITY_INFO, icon = null,
48
49
  * @return {ReactElement} - Learn more link component.
49
50
  */
50
51
  function LearnMoreLink() {
51
- return (_jsx(ExternalLink, { href: "https://jetpack.com/redirect/?source=ai-guidelines", children: __('Learn more', 'jetpack-ai-client') }));
52
+ return (_jsx(Link, { openInNewTab: true, href: "https://jetpack.com/redirect/?source=ai-guidelines", children: __('Learn more', 'jetpack-ai-client') }));
52
53
  }
53
54
  /**
54
55
  * React component to render a guideline message.
@@ -75,7 +76,7 @@ export function GuidelineMessage({ aiFeedbackThumbsOptions = {
75
76
  export function FairUsageLimitMessage() {
76
77
  const message = __("You've reached this month's request limit, per our <link>fair usage policy</link>", 'jetpack-ai-client');
77
78
  const element = createInterpolateElement(message, {
78
- link: (_jsx(ExternalLink, { href: "https://jetpack.com/redirect/?source=ai-assistant-fair-usage-policy", children: null })),
79
+ link: (_jsx(Link, { openInNewTab: true, href: "https://jetpack.com/redirect/?source=ai-assistant-fair-usage-policy", children: null })),
79
80
  });
80
81
  return _jsx(Message, { severity: MESSAGE_SEVERITY_WARNING, children: element });
81
82
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/jetpack-ai-client",
3
- "version": "0.34.14",
3
+ "version": "0.34.16",
4
4
  "private": false,
5
5
  "description": "A JS client for consuming Jetpack AI services",
6
6
  "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/ai-client/#readme",
@@ -32,12 +32,12 @@
32
32
  "watch": "tsgo --watch --pretty"
33
33
  },
34
34
  "dependencies": {
35
- "@automattic/jetpack-base-styles": "^1.1.0",
36
- "@automattic/jetpack-components": "^1.9.0",
37
- "@automattic/jetpack-connection": "^1.4.47",
35
+ "@automattic/jetpack-base-styles": "^1.2.1",
36
+ "@automattic/jetpack-components": "^1.11.0",
37
+ "@automattic/jetpack-connection": "^1.4.49",
38
38
  "@automattic/jetpack-explat": "workspace:*",
39
- "@automattic/jetpack-script-data": "^0.6.2",
40
- "@automattic/jetpack-shared-extension-utils": "^1.5.11",
39
+ "@automattic/jetpack-script-data": "^0.6.3",
40
+ "@automattic/jetpack-shared-extension-utils": "^1.5.13",
41
41
  "@microsoft/fetch-event-source": "2.0.1",
42
42
  "@types/jest": "30.0.0",
43
43
  "@types/react": "18.3.28",
@@ -55,6 +55,7 @@
55
55
  "@wordpress/i18n": "6.17.0",
56
56
  "@wordpress/icons": "12.2.0",
57
57
  "@wordpress/primitives": "4.44.0",
58
+ "@wordpress/ui": "0.11.0",
58
59
  "@wordpress/url": "4.44.0",
59
60
  "clsx": "2.1.1",
60
61
  "debug": "4.4.3",
@@ -1,10 +1,11 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- import { ExternalLink, Button } from '@wordpress/components';
4
+ import { Button } from '@wordpress/components';
5
5
  import { createInterpolateElement } from '@wordpress/element';
6
6
  import { __, sprintf } from '@wordpress/i18n';
7
7
  import { Icon, check } from '@wordpress/icons';
8
+ import { Link } from '@wordpress/ui';
8
9
  import clsx from 'clsx';
9
10
  /**
10
11
  * Internal dependencies
@@ -126,9 +127,9 @@ export default function Message( {
126
127
  */
127
128
  function LearnMoreLink(): ReactElement {
128
129
  return (
129
- <ExternalLink href="https://jetpack.com/redirect/?source=ai-guidelines">
130
+ <Link openInNewTab href="https://jetpack.com/redirect/?source=ai-guidelines">
130
131
  { __( 'Learn more', 'jetpack-ai-client' ) }
131
- </ExternalLink>
132
+ </Link>
132
133
  );
133
134
  }
134
135
 
@@ -169,7 +170,8 @@ export function FairUsageLimitMessage(): ReactElement {
169
170
  );
170
171
  const element = createInterpolateElement( message, {
171
172
  link: (
172
- <ExternalLink
173
+ <Link
174
+ openInNewTab
173
175
  href="https://jetpack.com/redirect/?source=ai-assistant-fair-usage-policy"
174
176
  children={ null }
175
177
  />