@automattic/jetpack-ai-client 0.21.0 → 0.22.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.22.0] - 2024-10-21
|
|
9
|
+
### Changed
|
|
10
|
+
- AI Client: Add types for AI assistant feature payload data branch featuresControl. [#39826]
|
|
11
|
+
|
|
8
12
|
## [0.21.0] - 2024-10-14
|
|
9
13
|
### Added
|
|
10
14
|
- AI Client: Add image styles 'auto' and 'none' to the logo generator. Order styles so those are on top in the dropdown selector. [#39689]
|
|
@@ -435,6 +439,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
435
439
|
- Updated package dependencies. [#31659]
|
|
436
440
|
- Updated package dependencies. [#31785]
|
|
437
441
|
|
|
442
|
+
[0.22.0]: https://github.com/Automattic/jetpack-ai-client/compare/v0.21.0...v0.22.0
|
|
438
443
|
[0.21.0]: https://github.com/Automattic/jetpack-ai-client/compare/v0.20.1...v0.21.0
|
|
439
444
|
[0.20.1]: https://github.com/Automattic/jetpack-ai-client/compare/v0.20.0...v0.20.1
|
|
440
445
|
[0.20.0]: https://github.com/Automattic/jetpack-ai-client/compare/v0.19.0...v0.20.0
|
|
@@ -59,11 +59,9 @@ export type LogoGeneratorFeatureControl = FeatureControl & {
|
|
|
59
59
|
};
|
|
60
60
|
export type FeatureControl = {
|
|
61
61
|
enabled: boolean;
|
|
62
|
-
'min-jetpack-version': string;
|
|
63
|
-
[key: string]: FeatureControl | LogoGeneratorFeatureControl | boolean | string;
|
|
64
62
|
};
|
|
65
63
|
export type FeaturesControl = {
|
|
66
|
-
[key: string]: FeatureControl;
|
|
64
|
+
[key: string]: FeatureControl | LogoGeneratorFeatureControl;
|
|
67
65
|
};
|
|
68
66
|
export type AiFeatureProps = {
|
|
69
67
|
hasFeature: boolean;
|
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
|
+
"version": "0.22.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": {
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"types": "./build/index.d.ts",
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@automattic/jetpack-base-styles": "^0.6.34",
|
|
47
|
-
"@automattic/jetpack-connection": "^0.35.
|
|
48
|
-
"@automattic/jetpack-shared-extension-utils": "^0.15.
|
|
47
|
+
"@automattic/jetpack-connection": "^0.35.14",
|
|
48
|
+
"@automattic/jetpack-shared-extension-utils": "^0.15.14",
|
|
49
49
|
"@microsoft/fetch-event-source": "2.0.1",
|
|
50
50
|
"@types/react": "18.3.3",
|
|
51
51
|
"@types/wordpress__block-editor": "11.5.15",
|
|
@@ -95,11 +95,11 @@ export type LogoGeneratorFeatureControl = FeatureControl & {
|
|
|
95
95
|
|
|
96
96
|
export type FeatureControl = {
|
|
97
97
|
enabled: boolean;
|
|
98
|
-
'min-jetpack-version': string;
|
|
99
|
-
[ key: string ]: FeatureControl | LogoGeneratorFeatureControl | boolean | string;
|
|
100
98
|
};
|
|
101
99
|
|
|
102
|
-
export type FeaturesControl = {
|
|
100
|
+
export type FeaturesControl = {
|
|
101
|
+
[ key: string ]: FeatureControl | LogoGeneratorFeatureControl;
|
|
102
|
+
};
|
|
103
103
|
|
|
104
104
|
export type AiFeatureProps = {
|
|
105
105
|
hasFeature: boolean;
|