@automattic/jetpack-ai-client 0.25.4 → 0.25.5
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 +9 -0
- package/build/ai-client/src/components/ai-feedback/index.js +2 -2
- package/build/ai-client/src/logo-generator/components/generator-modal.js +1 -1
- package/package.json +12 -12
- package/src/components/ai-feedback/index.tsx +2 -2
- package/src/logo-generator/components/generator-modal.tsx +1 -1
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.25.5] - 2025-01-06
|
|
9
|
+
### Changed
|
|
10
|
+
- Updated package dependencies. [#40798] [#40810] [#40811] [#40841]
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- AI Client: Add style parameter to first logo generator so it doesn't fall in a DALL-E situation. [#40807]
|
|
14
|
+
- Jetpack AI: Switch tracking data to camel_case to maintain Tracks' required property format. [#40774]
|
|
15
|
+
|
|
8
16
|
## [0.25.4] - 2024-12-30
|
|
9
17
|
### Added
|
|
10
18
|
- AI Client: Add thumbs feedback on AI Assistant. [#40728]
|
|
@@ -494,6 +502,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
494
502
|
- AI Client: stop using smart document visibility handling on the fetchEventSource library, so it does not restart the completion when changing tabs. [#32004]
|
|
495
503
|
- Updated package dependencies. [#31468] [#31659] [#31785]
|
|
496
504
|
|
|
505
|
+
[0.25.5]: https://github.com/Automattic/jetpack-ai-client/compare/v0.25.4...v0.25.5
|
|
497
506
|
[0.25.4]: https://github.com/Automattic/jetpack-ai-client/compare/v0.25.3...v0.25.4
|
|
498
507
|
[0.25.3]: https://github.com/Automattic/jetpack-ai-client/compare/v0.25.2...v0.25.3
|
|
499
508
|
[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
|
-
|
|
59
|
+
media_library_id: options.mediaLibraryId || null,
|
|
60
60
|
prompt: options.prompt || null,
|
|
61
|
-
|
|
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
|
+
"version": "0.25.5",
|
|
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.
|
|
28
|
-
"@storybook/blocks": "8.
|
|
29
|
-
"@storybook/preview-api": "8.
|
|
30
|
-
"@storybook/react": "8.
|
|
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.
|
|
35
|
+
"storybook": "8.4.7",
|
|
36
36
|
"typescript": "5.0.4"
|
|
37
37
|
},
|
|
38
38
|
"exports": {
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"types": "./build/index.d.ts",
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@automattic/jetpack-base-styles": "^0.6.39",
|
|
48
|
-
"@automattic/jetpack-connection": "^0.36.
|
|
49
|
-
"@automattic/jetpack-shared-extension-utils": "^0.16.
|
|
48
|
+
"@automattic/jetpack-connection": "^0.36.3",
|
|
49
|
+
"@automattic/jetpack-shared-extension-utils": "^0.16.3",
|
|
50
50
|
"@microsoft/fetch-event-source": "2.0.1",
|
|
51
|
-
"@types/react": "18.3.
|
|
52
|
-
"@types/wordpress__block-editor": "11.5.
|
|
51
|
+
"@types/react": "18.3.18",
|
|
52
|
+
"@types/wordpress__block-editor": "11.5.16",
|
|
53
53
|
"@wordpress/api-fetch": "7.14.0",
|
|
54
54
|
"@wordpress/base-styles": "5.14.0",
|
|
55
55
|
"@wordpress/blob": "4.14.0",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"@wordpress/i18n": "5.14.0",
|
|
62
62
|
"@wordpress/icons": "10.14.0",
|
|
63
63
|
"clsx": "2.1.1",
|
|
64
|
-
"debug": "4.
|
|
65
|
-
"markdown-it": "14.
|
|
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
|
-
|
|
99
|
+
media_library_id: options.mediaLibraryId || null,
|
|
100
100
|
prompt: options.prompt || null,
|
|
101
|
-
|
|
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 );
|