@automattic/jetpack-ai-client 0.25.4 → 0.25.6

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,18 @@ 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.25.6] - 2025-01-20
9
+ ### Changed
10
+ - Updated package dependencies. [#41099]
11
+
12
+ ## [0.25.5] - 2025-01-06
13
+ ### Changed
14
+ - Updated package dependencies. [#40798] [#40810] [#40811] [#40841]
15
+
16
+ ### Fixed
17
+ - AI Client: Add style parameter to first logo generator so it doesn't fall in a DALL-E situation. [#40807]
18
+ - Jetpack AI: Switch tracking data to camel_case to maintain Tracks' required property format. [#40774]
19
+
8
20
  ## [0.25.4] - 2024-12-30
9
21
  ### Added
10
22
  - AI Client: Add thumbs feedback on AI Assistant. [#40728]
@@ -494,6 +506,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
494
506
  - AI Client: stop using smart document visibility handling on the fetchEventSource library, so it does not restart the completion when changing tabs. [#32004]
495
507
  - Updated package dependencies. [#31468] [#31659] [#31785]
496
508
 
509
+ [0.25.6]: https://github.com/Automattic/jetpack-ai-client/compare/v0.25.5...v0.25.6
510
+ [0.25.5]: https://github.com/Automattic/jetpack-ai-client/compare/v0.25.4...v0.25.5
497
511
  [0.25.4]: https://github.com/Automattic/jetpack-ai-client/compare/v0.25.3...v0.25.4
498
512
  [0.25.3]: https://github.com/Automattic/jetpack-ai-client/compare/v0.25.2...v0.25.3
499
513
  [0.25.2]: https://github.com/Automattic/jetpack-ai-client/compare/v0.25.1...v0.25.2
@@ -56,9 +56,9 @@ export default function AiFeedbackThumbs({ disabled = false, iconSize = 24, rate
56
56
  tracks.recordEvent('jetpack_ai_feedback', {
57
57
  type: feature,
58
58
  rating: aiRating,
59
- mediaLibraryId: options.mediaLibraryId || null,
59
+ media_library_id: options.mediaLibraryId || null,
60
60
  prompt: options.prompt || null,
61
- revisedPrompt: options.revisedPrompt || null,
61
+ revised_prompt: options.revisedPrompt || null,
62
62
  block: options.block || null,
63
63
  });
64
64
  }
@@ -55,7 +55,7 @@ export const GeneratorModal = ({ isOpen, onClose, onApplyLogo, onReload = null,
55
55
  setInitialPrompt(prompt);
56
56
  // Then generate the logo based on the prompt.
57
57
  setLoadingState('generating');
58
- await generateLogo({ prompt });
58
+ await generateLogo({ prompt, style: 'none' });
59
59
  setLoadingState(null);
60
60
  }
61
61
  catch (error) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@automattic/jetpack-ai-client",
4
- "version": "0.25.4",
4
+ "version": "0.25.6",
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": {
@@ -24,15 +24,15 @@
24
24
  },
25
25
  "type": "module",
26
26
  "devDependencies": {
27
- "@storybook/addon-actions": "8.3.5",
28
- "@storybook/blocks": "8.3.5",
29
- "@storybook/preview-api": "8.3.5",
30
- "@storybook/react": "8.3.5",
27
+ "@storybook/addon-actions": "8.4.7",
28
+ "@storybook/blocks": "8.4.7",
29
+ "@storybook/preview-api": "8.4.7",
30
+ "@storybook/react": "8.4.7",
31
31
  "@types/markdown-it": "14.1.2",
32
32
  "@types/turndown": "5.0.5",
33
33
  "jest": "^29.6.2",
34
34
  "jest-environment-jsdom": "29.7.0",
35
- "storybook": "8.3.5",
35
+ "storybook": "8.4.7",
36
36
  "typescript": "5.0.4"
37
37
  },
38
38
  "exports": {
@@ -44,25 +44,25 @@
44
44
  "main": "./build/index.js",
45
45
  "types": "./build/index.d.ts",
46
46
  "dependencies": {
47
- "@automattic/jetpack-base-styles": "^0.6.39",
48
- "@automattic/jetpack-connection": "^0.36.2",
49
- "@automattic/jetpack-shared-extension-utils": "^0.16.2",
47
+ "@automattic/jetpack-base-styles": "^0.6.40",
48
+ "@automattic/jetpack-connection": "^0.36.4",
49
+ "@automattic/jetpack-shared-extension-utils": "^0.16.4",
50
50
  "@microsoft/fetch-event-source": "2.0.1",
51
- "@types/react": "18.3.12",
52
- "@types/wordpress__block-editor": "11.5.15",
53
- "@wordpress/api-fetch": "7.14.0",
54
- "@wordpress/base-styles": "5.14.0",
55
- "@wordpress/blob": "4.14.0",
56
- "@wordpress/block-editor": "14.9.0",
57
- "@wordpress/components": "29.0.0",
58
- "@wordpress/compose": "7.14.0",
59
- "@wordpress/data": "10.14.0",
60
- "@wordpress/element": "6.14.0",
61
- "@wordpress/i18n": "5.14.0",
62
- "@wordpress/icons": "10.14.0",
51
+ "@types/react": "18.3.18",
52
+ "@types/wordpress__block-editor": "11.5.16",
53
+ "@wordpress/api-fetch": "7.16.0",
54
+ "@wordpress/base-styles": "5.16.0",
55
+ "@wordpress/blob": "4.16.0",
56
+ "@wordpress/block-editor": "14.11.0",
57
+ "@wordpress/components": "29.2.0",
58
+ "@wordpress/compose": "7.16.0",
59
+ "@wordpress/data": "10.16.0",
60
+ "@wordpress/element": "6.16.0",
61
+ "@wordpress/i18n": "5.16.0",
62
+ "@wordpress/icons": "10.16.0",
63
63
  "clsx": "2.1.1",
64
- "debug": "4.3.4",
65
- "markdown-it": "14.0.0",
64
+ "debug": "4.4.0",
65
+ "markdown-it": "14.1.0",
66
66
  "react": "18.3.1",
67
67
  "react-dom": "18.3.1",
68
68
  "turndown": "7.1.2"
@@ -96,9 +96,9 @@ export default function AiFeedbackThumbs( {
96
96
  tracks.recordEvent( 'jetpack_ai_feedback', {
97
97
  type: feature,
98
98
  rating: aiRating,
99
- mediaLibraryId: options.mediaLibraryId || null,
99
+ media_library_id: options.mediaLibraryId || null,
100
100
  prompt: options.prompt || null,
101
- revisedPrompt: options.revisedPrompt || null,
101
+ revised_prompt: options.revisedPrompt || null,
102
102
  block: options.block || null,
103
103
  } );
104
104
  }
@@ -91,7 +91,7 @@ export const GeneratorModal: React.FC< GeneratorModalProps > = ( {
91
91
 
92
92
  // Then generate the logo based on the prompt.
93
93
  setLoadingState( 'generating' );
94
- await generateLogo( { prompt } );
94
+ await generateLogo( { prompt, style: 'none' } );
95
95
  setLoadingState( null );
96
96
  } catch ( error ) {
97
97
  debug( 'Error generating first logo', error );