@automattic/jetpack-ai-client 0.4.1 → 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,10 @@ 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
+
8
12
  ## [0.4.1] - 2024-01-22
9
13
  ### Changed
10
14
  - Update dependencies. [#35117]
@@ -191,6 +195,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
191
195
  - Updated package dependencies. [#31659]
192
196
  - Updated package dependencies. [#31785]
193
197
 
198
+ [0.5.0]: https://github.com/Automattic/jetpack-ai-client/compare/v0.4.1...v0.5.0
194
199
  [0.4.1]: https://github.com/Automattic/jetpack-ai-client/compare/v0.4.0...v0.4.1
195
200
  [0.4.0]: https://github.com/Automattic/jetpack-ai-client/compare/v0.3.1...v0.4.0
196
201
  [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.1",
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": {
@@ -118,7 +118,6 @@ export function AIControl(
118
118
 
119
119
  const discardHandler = useCallback( () => {
120
120
  onDiscard?.();
121
- onAccept?.();
122
121
  }, [] );
123
122
 
124
123
  const cancelEdit = useCallback( () => {