@automattic/jetpack-shared-extension-utils 0.19.2 → 0.20.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,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.20.0] - 2025-05-19
|
|
9
|
+
### Added
|
|
10
|
+
- AI Assistant: Retrieve Chrome AI token from AI Features response and inject it from the frontend. [#43442]
|
|
11
|
+
|
|
12
|
+
## [0.19.3] - 2025-05-12
|
|
13
|
+
### Changed
|
|
14
|
+
- Update dependencies. [#43068]
|
|
15
|
+
|
|
8
16
|
## [0.19.2] - 2025-05-05
|
|
9
17
|
### Changed
|
|
10
18
|
- Update package dependencies. [#43320] [#43326]
|
|
@@ -621,6 +629,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
621
629
|
### Changed
|
|
622
630
|
- Core: prepare utility for release
|
|
623
631
|
|
|
632
|
+
[0.20.0]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.19.3...0.20.0
|
|
633
|
+
[0.19.3]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.19.2...0.19.3
|
|
624
634
|
[0.19.2]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.19.1...0.19.2
|
|
625
635
|
[0.19.1]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.19.0...0.19.1
|
|
626
636
|
[0.19.0]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.18.11...0.19.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/jetpack-shared-extension-utils",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "Utility functions used by the block editor extensions",
|
|
5
5
|
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/shared-extension-utils/#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@automattic/color-studio": "4.1.0",
|
|
22
22
|
"@automattic/jetpack-analytics": "^0.1.36",
|
|
23
|
-
"@automattic/jetpack-base-styles": "^0.7.
|
|
24
|
-
"@automattic/jetpack-components": "^0.
|
|
25
|
-
"@automattic/jetpack-connection": "^0.39.
|
|
23
|
+
"@automattic/jetpack-base-styles": "^0.7.4",
|
|
24
|
+
"@automattic/jetpack-components": "^0.73.1",
|
|
25
|
+
"@automattic/jetpack-connection": "^0.39.15",
|
|
26
26
|
"@automattic/jetpack-script-data": "^0.4.1",
|
|
27
27
|
"@wordpress/api-fetch": "7.22.0",
|
|
28
28
|
"@wordpress/block-editor": "14.17.0",
|
|
@@ -91,6 +91,10 @@ export type FeatureControl = {
|
|
|
91
91
|
|
|
92
92
|
export type FeaturesControl = { [ key: string ]: FeatureControl };
|
|
93
93
|
|
|
94
|
+
export type ChromeAiTokens = {
|
|
95
|
+
[ key: string ]: string;
|
|
96
|
+
};
|
|
97
|
+
|
|
94
98
|
export type AiFeatureProps = {
|
|
95
99
|
hasFeature: boolean;
|
|
96
100
|
isOverLimit: boolean;
|
|
@@ -114,6 +118,7 @@ export type AiFeatureProps = {
|
|
|
114
118
|
};
|
|
115
119
|
};
|
|
116
120
|
featuresControl?: FeaturesControl;
|
|
121
|
+
chromeAiTokens?: ChromeAiTokens;
|
|
117
122
|
};
|
|
118
123
|
|
|
119
124
|
// Type used in the `wordpress-com/plans` store.
|
|
@@ -158,4 +163,5 @@ export type SiteAIAssistantFeatureEndpointResponseProps = {
|
|
|
158
163
|
};
|
|
159
164
|
};
|
|
160
165
|
'features-control'?: FeaturesControl;
|
|
166
|
+
'chrome-ai-tokens'?: ChromeAiTokens;
|
|
161
167
|
};
|