@automattic/jetpack-ai-client 0.1.9 → 0.1.10

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.1.10] - 2023-09-28
9
+ ### Added
10
+ - AI Client: Add keyboard shortcut text next to Stop action [#33271]
11
+
8
12
  ## [0.1.9] - 2023-09-25
9
13
  ### Added
10
14
  - Export GuidelineMessage for use in other blocks. [#33180]
@@ -132,6 +136,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
132
136
  - Updated package dependencies. [#31659]
133
137
  - Updated package dependencies. [#31785]
134
138
 
139
+ [0.1.10]: https://github.com/Automattic/jetpack-ai-client/compare/v0.1.9...v0.1.10
135
140
  [0.1.9]: https://github.com/Automattic/jetpack-ai-client/compare/v0.1.8...v0.1.9
136
141
  [0.1.8]: https://github.com/Automattic/jetpack-ai-client/compare/v0.1.7...v0.1.8
137
142
  [0.1.7]: https://github.com/Automattic/jetpack-ai-client/compare/v0.1.6...v0.1.7
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@automattic/jetpack-ai-client",
4
- "version": "0.1.9",
4
+ "version": "0.1.10",
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": {
@@ -143,7 +143,7 @@ export function AIControl(
143
143
  { ! loading ? (
144
144
  <Button
145
145
  className={ actionButtonClasses }
146
- onClick={ () => onSend( value ) }
146
+ onClick={ () => onSend?.( value ) }
147
147
  isSmall={ true }
148
148
  disabled={ ! value?.length || disabled }
149
149
  label={ __( 'Send request', 'jetpack-ai-client' ) }
@@ -159,7 +159,7 @@ export function AIControl(
159
159
  label={ __( 'Stop request', 'jetpack-ai-client' ) }
160
160
  >
161
161
  <Icon icon={ closeSmall } />
162
- { showButtonLabels && __( 'Stop', 'jetpack-ai-client' ) }
162
+ { showButtonLabels && __( 'Stop (ESC)', 'jetpack-ai-client' ) }
163
163
  </Button>
164
164
  ) }
165
165
  </div>