@automattic/jetpack-ai-client 0.34.15 → 0.34.17
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.17] - 2026-05-19
|
|
9
|
+
### Changed
|
|
10
|
+
- Update package dependencies. [#48696]
|
|
11
|
+
|
|
12
|
+
## [0.34.16] - 2026-05-11
|
|
13
|
+
### Changed
|
|
14
|
+
- Components: Use Link from `@wordpress/ui` instead of ExternalLink. [#48529]
|
|
15
|
+
|
|
8
16
|
## [0.34.15] - 2026-05-04
|
|
9
17
|
### Changed
|
|
10
18
|
- Internal: No longer require automattic/jetpack-changelogger as a per-project dev dependency. [#48225]
|
|
@@ -868,6 +876,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
868
876
|
- AI Client: stop using smart document visibility handling on the fetchEventSource library, so it does not restart the completion when changing tabs. [#32004]
|
|
869
877
|
- Updated package dependencies. [#31468] [#31659] [#31785]
|
|
870
878
|
|
|
879
|
+
[0.34.17]: https://github.com/Automattic/jetpack-ai-client/compare/v0.34.16...v0.34.17
|
|
880
|
+
[0.34.16]: https://github.com/Automattic/jetpack-ai-client/compare/v0.34.15...v0.34.16
|
|
871
881
|
[0.34.15]: https://github.com/Automattic/jetpack-ai-client/compare/v0.34.14...v0.34.15
|
|
872
882
|
[0.34.14]: https://github.com/Automattic/jetpack-ai-client/compare/v0.34.13...v0.34.14
|
|
873
883
|
[0.34.13]: https://github.com/Automattic/jetpack-ai-client/compare/v0.34.12...v0.34.13
|
|
@@ -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 {
|
|
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(
|
|
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(
|
|
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.
|
|
3
|
+
"version": "0.34.17",
|
|
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.2.
|
|
36
|
-
"@automattic/jetpack-components": "^1.
|
|
37
|
-
"@automattic/jetpack-connection": "^1.4.
|
|
35
|
+
"@automattic/jetpack-base-styles": "^1.2.3",
|
|
36
|
+
"@automattic/jetpack-components": "^1.11.2",
|
|
37
|
+
"@automattic/jetpack-connection": "^1.4.51",
|
|
38
38
|
"@automattic/jetpack-explat": "workspace:*",
|
|
39
|
-
"@automattic/jetpack-script-data": "^0.6.
|
|
40
|
-
"@automattic/jetpack-shared-extension-utils": "^1.5.
|
|
39
|
+
"@automattic/jetpack-script-data": "^0.6.4",
|
|
40
|
+
"@automattic/jetpack-shared-extension-utils": "^1.5.15",
|
|
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",
|
|
@@ -64,14 +65,14 @@
|
|
|
64
65
|
"turndown": "7.1.2"
|
|
65
66
|
},
|
|
66
67
|
"devDependencies": {
|
|
67
|
-
"@storybook/addon-docs": "10.3.
|
|
68
|
-
"@storybook/react": "10.3.
|
|
68
|
+
"@storybook/addon-docs": "10.3.6",
|
|
69
|
+
"@storybook/react": "10.3.6",
|
|
69
70
|
"@testing-library/dom": "10.4.1",
|
|
70
71
|
"@types/markdown-it": "14.1.2",
|
|
71
72
|
"@types/turndown": "5.0.6",
|
|
72
73
|
"@typescript/native-preview": "7.0.0-dev.20260225.1",
|
|
73
74
|
"jest": "30.3.0",
|
|
74
|
-
"storybook": "10.3.
|
|
75
|
+
"storybook": "10.3.6",
|
|
75
76
|
"typescript": "5.9.3"
|
|
76
77
|
}
|
|
77
78
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
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
|
-
<
|
|
130
|
+
<Link openInNewTab href="https://jetpack.com/redirect/?source=ai-guidelines">
|
|
130
131
|
{ __( 'Learn more', 'jetpack-ai-client' ) }
|
|
131
|
-
</
|
|
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
|
-
<
|
|
173
|
+
<Link
|
|
174
|
+
openInNewTab
|
|
173
175
|
href="https://jetpack.com/redirect/?source=ai-assistant-fair-usage-policy"
|
|
174
176
|
children={ null }
|
|
175
177
|
/>
|