@automattic/jetpack-ai-client 0.4.1 → 0.5.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
|
+
## [0.5.1] - 2024-01-29
|
|
9
|
+
### Changed
|
|
10
|
+
- Update dependencies. [#35170]
|
|
11
|
+
|
|
12
|
+
## [0.5.0] - 2024-01-25
|
|
13
|
+
### Changed
|
|
14
|
+
- AI Control: Do not call onAccept from the discard handler. A fix has been put in place on #35236. [#35238]
|
|
15
|
+
|
|
8
16
|
## [0.4.1] - 2024-01-22
|
|
9
17
|
### Changed
|
|
10
18
|
- Update dependencies. [#35117]
|
|
@@ -191,6 +199,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
191
199
|
- Updated package dependencies. [#31659]
|
|
192
200
|
- Updated package dependencies. [#31785]
|
|
193
201
|
|
|
202
|
+
[0.5.1]: https://github.com/Automattic/jetpack-ai-client/compare/v0.5.0...v0.5.1
|
|
203
|
+
[0.5.0]: https://github.com/Automattic/jetpack-ai-client/compare/v0.4.1...v0.5.0
|
|
194
204
|
[0.4.1]: https://github.com/Automattic/jetpack-ai-client/compare/v0.4.0...v0.4.1
|
|
195
205
|
[0.4.0]: https://github.com/Automattic/jetpack-ai-client/compare/v0.3.1...v0.4.0
|
|
196
206
|
[0.3.1]: https://github.com/Automattic/jetpack-ai-client/compare/v0.3.0...v0.3.1
|
|
@@ -60,7 +60,6 @@ export function AIControl({ disabled = false, value = '', placeholder = '', show
|
|
|
60
60
|
}, [lastValue, state]);
|
|
61
61
|
const discardHandler = useCallback(() => {
|
|
62
62
|
onDiscard?.();
|
|
63
|
-
onAccept?.();
|
|
64
63
|
}, []);
|
|
65
64
|
const cancelEdit = useCallback(() => {
|
|
66
65
|
onChange(lastValue || '');
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"private": false,
|
|
3
3
|
"name": "@automattic/jetpack-ai-client",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.5.1",
|
|
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",
|
|
7
7
|
"bugs": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"types": "./build/index.d.ts",
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@automattic/jetpack-base-styles": "^0.6.15",
|
|
42
|
-
"@automattic/jetpack-connection": "^0.31.
|
|
43
|
-
"@automattic/jetpack-shared-extension-utils": "^0.
|
|
42
|
+
"@automattic/jetpack-connection": "^0.31.2",
|
|
43
|
+
"@automattic/jetpack-shared-extension-utils": "^0.14.0",
|
|
44
44
|
"@microsoft/fetch-event-source": "2.0.1",
|
|
45
45
|
"@types/react": "18.2.33",
|
|
46
46
|
"@wordpress/api-fetch": "6.45.0",
|