@automattic/jetpack-ai-client 0.4.0 → 0.5.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
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.0] - 2024-01-25
|
|
9
|
+
### Changed
|
|
10
|
+
- AI Control: Do not call onAccept from the discard handler. A fix has been put in place on #35236. [#35238]
|
|
11
|
+
|
|
12
|
+
## [0.4.1] - 2024-01-22
|
|
13
|
+
### Changed
|
|
14
|
+
- Update dependencies. [#35117]
|
|
15
|
+
|
|
8
16
|
## [0.4.0] - 2024-01-15
|
|
9
17
|
### Added
|
|
10
18
|
- AI Client: introduce bannerComponent prop, React.Element, to render on top of the AI Control [#34918]
|
|
@@ -187,6 +195,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
187
195
|
- Updated package dependencies. [#31659]
|
|
188
196
|
- Updated package dependencies. [#31785]
|
|
189
197
|
|
|
198
|
+
[0.5.0]: https://github.com/Automattic/jetpack-ai-client/compare/v0.4.1...v0.5.0
|
|
199
|
+
[0.4.1]: https://github.com/Automattic/jetpack-ai-client/compare/v0.4.0...v0.4.1
|
|
190
200
|
[0.4.0]: https://github.com/Automattic/jetpack-ai-client/compare/v0.3.1...v0.4.0
|
|
191
201
|
[0.3.1]: https://github.com/Automattic/jetpack-ai-client/compare/v0.3.0...v0.3.1
|
|
192
202
|
[0.3.0]: https://github.com/Automattic/jetpack-ai-client/compare/v0.2.1...v0.3.0
|
|
@@ -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.0",
|
|
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.
|
|
43
|
-
"@automattic/jetpack-shared-extension-utils": "^0.13.
|
|
42
|
+
"@automattic/jetpack-connection": "^0.31.1",
|
|
43
|
+
"@automattic/jetpack-shared-extension-utils": "^0.13.10",
|
|
44
44
|
"@microsoft/fetch-event-source": "2.0.1",
|
|
45
45
|
"@types/react": "18.2.33",
|
|
46
46
|
"@wordpress/api-fetch": "6.45.0",
|