@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 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;utf8,<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: "" }));
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.8",
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.1",
49
- "@automattic/jetpack-components": "^0.72.4",
50
- "@automattic/jetpack-connection": "^0.39.11",
51
- "@automattic/jetpack-shared-extension-utils": "^0.19.0",
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.21.0",
57
- "@wordpress/base-styles": "5.21.0",
58
- "@wordpress/blob": "4.21.0",
59
- "@wordpress/blocks": "14.10.0",
60
- "@wordpress/block-editor": "14.16.0",
61
- "@wordpress/components": "29.7.0",
62
- "@wordpress/compose": "7.21.0",
63
- "@wordpress/data": "10.21.0",
64
- "@wordpress/editor": "14.21.0",
65
- "@wordpress/element": "6.21.0",
66
- "@wordpress/i18n": "5.21.0",
67
- "@wordpress/icons": "10.21.0",
68
- "@wordpress/primitives": "4.21.0",
69
- "@wordpress/url": "4.21.0",
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: 0px 12px 15px 0px rgba(0, 0, 0, 0.12), 0px 3px 9px 0px rgba(0, 0, 0, 0.12), 0px 1px 3px 0px rgba(0, 0, 0, 0.15);
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);
@@ -70,7 +70,7 @@
70
70
  width: 100%;
71
71
  margin-top: 24px;
72
72
 
73
- & > .jetpack-ai-upgrade-banner {
73
+ > .jetpack-ai-upgrade-banner {
74
74
  margin-bottom: 8px;
75
75
  }
76
76
  }
@@ -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;utf8,<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>"
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
  );
@@ -6,7 +6,7 @@
6
6
  display: flex;
7
7
  flex-direction: column;
8
8
 
9
- & > span {
9
+ > span {
10
10
  display: flex;
11
11
  justify-content: space-between;
12
12
  align-items: center;
@@ -63,7 +63,7 @@
63
63
  width: 100%;
64
64
  margin-top: 24px;
65
65
 
66
- & > .jetpack-ai-upgrade-banner {
66
+ > .jetpack-ai-upgrade-banner {
67
67
  margin-bottom: 8px;
68
68
  }
69
69
  }
@@ -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;
@@ -33,7 +33,7 @@
33
33
  gap: 16px;
34
34
  align-items: center;
35
35
 
36
- & > svg {
36
+ > svg {
37
37
  margin: 0;
38
38
  color: #008710;
39
39
  }
@@ -17,7 +17,7 @@
17
17
 
18
18
  .jetpack-ai-fair-usage-notice-muted-variant {
19
19
  line-height: 1.4;
20
- margin: 0px;
20
+ margin: 0;
21
21
  text-wrap: pretty;
22
22
  font-size: calc(13px);
23
23
  font-weight: 400;
@@ -106,7 +106,7 @@
106
106
  line-height: 21px;
107
107
  display: flex;
108
108
 
109
- & .prompt-footer__icon {
109
+ .prompt-footer__icon {
110
110
  height: 20px;
111
111
  width: 20px;
112
112