@automattic/jetpack-ai-client 0.24.0 → 0.24.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,13 @@ 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.24.1] - 2024-11-04
9
+ ### Added
10
+ - Enable test coverage. [#39961]
11
+
12
+ ### Fixed
13
+ - Jetpack AI: Fix for the "Generate with AI" for images text box triggering P2 keyboard shortcuts. [#39964]
14
+
8
15
  ## [0.24.0] - 2024-10-29
9
16
  ### Added
10
17
  - AI Client: export image generator hook constants [#39917]
@@ -451,6 +458,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
451
458
  - Updated package dependencies. [#31659]
452
459
  - Updated package dependencies. [#31785]
453
460
 
461
+ [0.24.1]: https://github.com/Automattic/jetpack-ai-client/compare/v0.24.0...v0.24.1
454
462
  [0.24.0]: https://github.com/Automattic/jetpack-ai-client/compare/v0.23.0...v0.24.0
455
463
  [0.23.0]: https://github.com/Automattic/jetpack-ai-client/compare/v0.22.0...v0.23.0
456
464
  [0.22.0]: https://github.com/Automattic/jetpack-ai-client/compare/v0.21.0...v0.22.0
@@ -46,6 +46,7 @@ export const AiModalPromptInput = ({ prompt = '', setPrompt = () => { }, disable
46
46
  event.preventDefault();
47
47
  generateHandler();
48
48
  }
49
+ event.stopPropagation();
49
50
  };
50
51
  return (_jsxs("div", { className: "jetpack-ai-logo-generator__prompt-query", children: [_jsx("div", { role: "textbox", tabIndex: 0, ref: inputRef, contentEditable: !disabled,
51
52
  // The content editable div is expected to be updated by the enhance prompt, so warnings are suppressed
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@automattic/jetpack-ai-client",
4
- "version": "0.24.0",
4
+ "version": "0.24.1",
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": {
@@ -19,6 +19,7 @@
19
19
  "clean": "rm -rf build/",
20
20
  "compile-ts": "tsc --pretty",
21
21
  "test": "NODE_OPTIONS=--experimental-vm-modules jest",
22
+ "test-coverage": "pnpm run test --coverage",
22
23
  "watch": "tsc --watch --pretty"
23
24
  },
24
25
  "type": "module",
@@ -44,8 +45,8 @@
44
45
  "types": "./build/index.d.ts",
45
46
  "dependencies": {
46
47
  "@automattic/jetpack-base-styles": "^0.6.34",
47
- "@automattic/jetpack-connection": "^0.35.14",
48
- "@automattic/jetpack-shared-extension-utils": "^0.15.14",
48
+ "@automattic/jetpack-connection": "^0.35.15",
49
+ "@automattic/jetpack-shared-extension-utils": "^0.15.15",
49
50
  "@microsoft/fetch-event-source": "2.0.1",
50
51
  "@types/react": "18.3.3",
51
52
  "@types/wordpress__block-editor": "11.5.15",
@@ -84,6 +84,7 @@ export const AiModalPromptInput = ( {
84
84
  event.preventDefault();
85
85
  generateHandler();
86
86
  }
87
+ event.stopPropagation();
87
88
  };
88
89
 
89
90
  return (