@automattic/jetpack-shared-extension-utils 0.19.3 → 0.20.1
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.1] - 2025-05-22
|
|
9
|
+
### Changed
|
|
10
|
+
- Update dependencies. [#43068]
|
|
11
|
+
|
|
12
|
+
## [0.20.0] - 2025-05-19
|
|
13
|
+
### Added
|
|
14
|
+
- AI Assistant: Retrieve Chrome AI token from AI Features response and inject it from the frontend. [#43442]
|
|
15
|
+
|
|
8
16
|
## [0.19.3] - 2025-05-12
|
|
9
17
|
### Changed
|
|
10
18
|
- Update dependencies. [#43068]
|
|
@@ -625,6 +633,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
625
633
|
### Changed
|
|
626
634
|
- Core: prepare utility for release
|
|
627
635
|
|
|
636
|
+
[0.20.1]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.20.0...0.20.1
|
|
637
|
+
[0.20.0]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.19.3...0.20.0
|
|
628
638
|
[0.19.3]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.19.2...0.19.3
|
|
629
639
|
[0.19.2]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.19.1...0.19.2
|
|
630
640
|
[0.19.1]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.19.0...0.19.1
|
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.1",
|
|
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": {
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"@automattic/color-studio": "4.1.0",
|
|
22
22
|
"@automattic/jetpack-analytics": "^0.1.36",
|
|
23
23
|
"@automattic/jetpack-base-styles": "^0.7.4",
|
|
24
|
-
"@automattic/jetpack-components": "^0.73.
|
|
25
|
-
"@automattic/jetpack-connection": "^0.39.
|
|
24
|
+
"@automattic/jetpack-components": "^0.73.2",
|
|
25
|
+
"@automattic/jetpack-connection": "^0.39.16",
|
|
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
|
};
|