@automattic/jetpack-ai-client 0.27.8 → 0.27.10
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 +15 -0
- package/build/components/ai-image/components/carrousel.js +1 -1
- package/package.json +19 -19
- package/src/components/ai-control/style.scss +1 -1
- package/src/components/ai-image/components/ai-image-modal.scss +1 -1
- package/src/components/ai-image/components/carrousel.tsx +1 -1
- package/src/components/ai-image/components/usage-counter.scss +1 -1
- package/src/components/ai-image/style.scss +1 -1
- package/src/components/message/style.scss +1 -0
- package/src/components/modal/style.scss +1 -1
- package/src/components/quota-exceeded-message/style.scss +1 -1
- package/src/logo-generator/components/prompt.scss +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,19 @@ 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.27.10] - 2025-05-05
|
|
9
|
+
### Changed
|
|
10
|
+
- Update package dependencies. [#43326]
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- Linting: Address final rules in WordPress Stylelint config. [#43296]
|
|
14
|
+
- Linting: Do additional stylesheet cleanup. [#43247]
|
|
15
|
+
|
|
16
|
+
## [0.27.9] - 2025-04-28
|
|
17
|
+
### Fixed
|
|
18
|
+
- Code: Remove unneeded `data:` URI components. [#43227]
|
|
19
|
+
- Linting: Fix more Stylelint violations. [#43213]
|
|
20
|
+
|
|
8
21
|
## [0.27.8] - 2025-04-14
|
|
9
22
|
### Changed
|
|
10
23
|
- Adjust relative imports in TypeScript sources to use correct extensions after enabling TypeScript's new `rewriteRelativeImportExtensions` option. [#42990]
|
|
@@ -591,6 +604,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
591
604
|
- AI Client: stop using smart document visibility handling on the fetchEventSource library, so it does not restart the completion when changing tabs. [#32004]
|
|
592
605
|
- Updated package dependencies. [#31468] [#31659] [#31785]
|
|
593
606
|
|
|
607
|
+
[0.27.10]: https://github.com/Automattic/jetpack-ai-client/compare/v0.27.9...v0.27.10
|
|
608
|
+
[0.27.9]: https://github.com/Automattic/jetpack-ai-client/compare/v0.27.8...v0.27.9
|
|
594
609
|
[0.27.8]: https://github.com/Automattic/jetpack-ai-client/compare/v0.27.7...v0.27.8
|
|
595
610
|
[0.27.7]: https://github.com/Automattic/jetpack-ai-client/compare/v0.27.6...v0.27.7
|
|
596
611
|
[0.27.6]: https://github.com/Automattic/jetpack-ai-client/compare/v0.27.5...v0.27.6
|
|
@@ -19,7 +19,7 @@ import './carrousel.scss';
|
|
|
19
19
|
* @return {React.ReactElement} - rendered component.
|
|
20
20
|
*/
|
|
21
21
|
function BlankImage({ children, isDotted = false, contentClassName = '' }) {
|
|
22
|
-
const blankImage = (_jsx("img", { className: "ai-assistant-image__carrousel-image", src: "data:image/svg+xml
|
|
22
|
+
const blankImage = (_jsx("img", { className: "ai-assistant-image__carrousel-image", src: "data:image/svg+xml,<svg viewBox='0 0 1 1' width='1024' height='768' xmlns='http://www.w3.org/2000/svg'><path d='M0 0 L1 0 L1 1 L0 1 L0 0 Z' fill='none' /></svg>", alt: "" }));
|
|
23
23
|
return (_jsxs("div", { className: "ai-assistant-image__blank", children: [blankImage, _jsx("div", { className: clsx('ai-assistant-image__blank-content', contentClassName, {
|
|
24
24
|
'is-dotted': isDotted,
|
|
25
25
|
}), children: children })] }));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"private": false,
|
|
3
3
|
"name": "@automattic/jetpack-ai-client",
|
|
4
|
-
"version": "0.27.
|
|
4
|
+
"version": "0.27.10",
|
|
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": {
|
|
@@ -45,28 +45,28 @@
|
|
|
45
45
|
"main": "./build/index.js",
|
|
46
46
|
"types": "./build/index.d.ts",
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@automattic/jetpack-base-styles": "^0.7.
|
|
49
|
-
"@automattic/jetpack-components": "^0.72.
|
|
50
|
-
"@automattic/jetpack-connection": "^0.39.
|
|
51
|
-
"@automattic/jetpack-shared-extension-utils": "^0.19.
|
|
48
|
+
"@automattic/jetpack-base-styles": "^0.7.3",
|
|
49
|
+
"@automattic/jetpack-components": "^0.72.6",
|
|
50
|
+
"@automattic/jetpack-connection": "^0.39.13",
|
|
51
|
+
"@automattic/jetpack-shared-extension-utils": "^0.19.2",
|
|
52
52
|
"@microsoft/fetch-event-source": "2.0.1",
|
|
53
53
|
"@types/jest": "29.5.14",
|
|
54
54
|
"@types/react": "18.3.18",
|
|
55
55
|
"@types/wordpress__block-editor": "11.5.16",
|
|
56
|
-
"@wordpress/api-fetch": "7.
|
|
57
|
-
"@wordpress/base-styles": "5.
|
|
58
|
-
"@wordpress/blob": "4.
|
|
59
|
-
"@wordpress/blocks": "14.
|
|
60
|
-
"@wordpress/block-editor": "14.
|
|
61
|
-
"@wordpress/components": "29.
|
|
62
|
-
"@wordpress/compose": "7.
|
|
63
|
-
"@wordpress/data": "10.
|
|
64
|
-
"@wordpress/editor": "14.
|
|
65
|
-
"@wordpress/element": "6.
|
|
66
|
-
"@wordpress/i18n": "5.
|
|
67
|
-
"@wordpress/icons": "10.
|
|
68
|
-
"@wordpress/primitives": "4.
|
|
69
|
-
"@wordpress/url": "4.
|
|
56
|
+
"@wordpress/api-fetch": "7.22.0",
|
|
57
|
+
"@wordpress/base-styles": "5.22.0",
|
|
58
|
+
"@wordpress/blob": "4.22.0",
|
|
59
|
+
"@wordpress/blocks": "14.11.0",
|
|
60
|
+
"@wordpress/block-editor": "14.17.0",
|
|
61
|
+
"@wordpress/components": "29.8.0",
|
|
62
|
+
"@wordpress/compose": "7.22.0",
|
|
63
|
+
"@wordpress/data": "10.22.0",
|
|
64
|
+
"@wordpress/editor": "14.22.0",
|
|
65
|
+
"@wordpress/element": "6.22.0",
|
|
66
|
+
"@wordpress/i18n": "5.22.0",
|
|
67
|
+
"@wordpress/icons": "10.22.0",
|
|
68
|
+
"@wordpress/primitives": "4.22.0",
|
|
69
|
+
"@wordpress/url": "4.22.0",
|
|
70
70
|
"clsx": "2.1.1",
|
|
71
71
|
"debug": "4.4.0",
|
|
72
72
|
"markdown-it": "14.1.0",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
.jetpack-components-ai-control__container {
|
|
9
9
|
color: var( --jp-gray-80 );
|
|
10
10
|
background-color: var( --jp-white );
|
|
11
|
-
box-shadow:
|
|
11
|
+
box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.12), 0 3px 9px 0 rgba(0, 0, 0, 0.12), 0 1px 3px 0 rgba(0, 0, 0, 0.15);
|
|
12
12
|
font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
13
13
|
border-radius: 6px;
|
|
14
14
|
border: 1px solid var(--gutenberg-gray-400, #CCC);
|
|
@@ -42,7 +42,7 @@ function BlankImage( { children, isDotted = false, contentClassName = '' }: Blan
|
|
|
42
42
|
const blankImage = (
|
|
43
43
|
<img
|
|
44
44
|
className="ai-assistant-image__carrousel-image"
|
|
45
|
-
src="data:image/svg+xml
|
|
45
|
+
src="data:image/svg+xml,<svg viewBox='0 0 1 1' width='1024' height='768' xmlns='http://www.w3.org/2000/svg'><path d='M0 0 L1 0 L1 1 L0 1 L0 0 Z' fill='none' /></svg>"
|
|
46
46
|
alt=""
|
|
47
47
|
/>
|
|
48
48
|
);
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
.jetpack-ai-assistant__message-content {
|
|
19
19
|
flex-grow: 2;
|
|
20
20
|
margin: 0 8px;
|
|
21
|
+
// stylelint-disable-next-line declaration-property-unit-allowed-list -- this should be changed to a unitless value: https://developer.wordpress.org/coding-standards/wordpress-coding-standards/css/#values
|
|
21
22
|
line-height: 1.4em;
|
|
22
23
|
display: flex;
|
|
23
24
|
gap: 4px;
|