@automattic/jetpack-ai-client 0.1.8 → 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,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.1.10] - 2023-09-28
9
+ ### Added
10
+ - AI Client: Add keyboard shortcut text next to Stop action [#33271]
11
+
12
+ ## [0.1.9] - 2023-09-25
13
+ ### Added
14
+ - Export GuidelineMessage for use in other blocks. [#33180]
15
+
8
16
  ## [0.1.8] - 2023-09-19
9
17
  ### Added
10
18
  - AI Client: Add support for the jetpack-ai role on the prompt messages. [#33052]
@@ -128,6 +136,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
128
136
  - Updated package dependencies. [#31659]
129
137
  - Updated package dependencies. [#31785]
130
138
 
139
+ [0.1.10]: https://github.com/Automattic/jetpack-ai-client/compare/v0.1.9...v0.1.10
140
+ [0.1.9]: https://github.com/Automattic/jetpack-ai-client/compare/v0.1.8...v0.1.9
131
141
  [0.1.8]: https://github.com/Automattic/jetpack-ai-client/compare/v0.1.7...v0.1.8
132
142
  [0.1.7]: https://github.com/Automattic/jetpack-ai-client/compare/v0.1.6...v0.1.7
133
143
  [0.1.6]: https://github.com/Automattic/jetpack-ai-client/compare/v0.1.5...v0.1.6
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.8",
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": {
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@automattic/jetpack-base-styles": "^0.6.9",
36
- "@automattic/jetpack-connection": "^0.29.10",
36
+ "@automattic/jetpack-connection": "^0.30.0",
37
37
  "@automattic/jetpack-shared-extension-utils": "^0.12.0",
38
38
  "@microsoft/fetch-event-source": "2.0.1",
39
39
  "@wordpress/api-fetch": "6.38.0",
@@ -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>
@@ -1,3 +1,4 @@
1
1
  export { default as AIControl } from './ai-control';
2
2
  export { default as AiStatusIndicator } from './ai-status-indicator';
3
3
  export { default as AudioDurationDisplay } from './audio-duration-display';
4
+ export { GuidelineMessage } from './ai-control/message';