@automattic/jetpack-ai-client 0.34.12 → 0.34.14

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,15 @@ 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.34.14] - 2026-04-27
9
+ ### Changed
10
+ - Internal updates.
11
+
12
+ ## [0.34.13] - 2026-04-20
13
+ ### Changed
14
+ - Update dependencies. [#48138]
15
+ - Update package dependencies. [#48106] [#48126] [#48141]
16
+
8
17
  ## [0.34.12] - 2026-04-15
9
18
  ### Changed
10
19
  - Update package dependencies. [#47907]
@@ -855,6 +864,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
855
864
  - AI Client: stop using smart document visibility handling on the fetchEventSource library, so it does not restart the completion when changing tabs. [#32004]
856
865
  - Updated package dependencies. [#31468] [#31659] [#31785]
857
866
 
867
+ [0.34.14]: https://github.com/Automattic/jetpack-ai-client/compare/v0.34.13...v0.34.14
868
+ [0.34.13]: https://github.com/Automattic/jetpack-ai-client/compare/v0.34.12...v0.34.13
858
869
  [0.34.12]: https://github.com/Automattic/jetpack-ai-client/compare/v0.34.11...v0.34.12
859
870
  [0.34.11]: https://github.com/Automattic/jetpack-ai-client/compare/v0.34.10...v0.34.11
860
871
  [0.34.10]: https://github.com/Automattic/jetpack-ai-client/compare/v0.34.9...v0.34.10
@@ -1,80 +1,80 @@
1
1
  export declare const LANGUAGE_MAP: {
2
2
  en: {
3
- label: import("@wordpress/i18n").TranslatableText<"English">;
3
+ label: import("@wordpress/i18n").TransformedText<"English">;
4
4
  };
5
5
  es: {
6
- label: import("@wordpress/i18n").TranslatableText<"Spanish">;
6
+ label: import("@wordpress/i18n").TransformedText<"Spanish">;
7
7
  };
8
8
  fr: {
9
- label: import("@wordpress/i18n").TranslatableText<"French">;
9
+ label: import("@wordpress/i18n").TransformedText<"French">;
10
10
  };
11
11
  de: {
12
- label: import("@wordpress/i18n").TranslatableText<"German">;
12
+ label: import("@wordpress/i18n").TransformedText<"German">;
13
13
  };
14
14
  it: {
15
- label: import("@wordpress/i18n").TranslatableText<"Italian">;
15
+ label: import("@wordpress/i18n").TransformedText<"Italian">;
16
16
  };
17
17
  pt: {
18
- label: import("@wordpress/i18n").TranslatableText<"Portuguese">;
18
+ label: import("@wordpress/i18n").TransformedText<"Portuguese">;
19
19
  };
20
20
  ru: {
21
- label: import("@wordpress/i18n").TranslatableText<"Russian">;
21
+ label: import("@wordpress/i18n").TransformedText<"Russian">;
22
22
  };
23
23
  zh: {
24
- label: import("@wordpress/i18n").TranslatableText<"Chinese">;
24
+ label: import("@wordpress/i18n").TransformedText<"Chinese">;
25
25
  };
26
26
  ja: {
27
- label: import("@wordpress/i18n").TranslatableText<"Japanese">;
27
+ label: import("@wordpress/i18n").TransformedText<"Japanese">;
28
28
  };
29
29
  ar: {
30
- label: import("@wordpress/i18n").TranslatableText<"Arabic">;
30
+ label: import("@wordpress/i18n").TransformedText<"Arabic">;
31
31
  };
32
32
  hi: {
33
- label: import("@wordpress/i18n").TranslatableText<"Hindi">;
33
+ label: import("@wordpress/i18n").TransformedText<"Hindi">;
34
34
  };
35
35
  ko: {
36
- label: import("@wordpress/i18n").TranslatableText<"Korean">;
36
+ label: import("@wordpress/i18n").TransformedText<"Korean">;
37
37
  };
38
38
  };
39
39
  export declare const PROMPT_TONES_MAP: {
40
40
  formal: {
41
- label: import("@wordpress/i18n").TranslatableText<"Formal">;
41
+ label: import("@wordpress/i18n").TransformedText<"Formal">;
42
42
  emoji: string;
43
43
  };
44
44
  informal: {
45
- label: import("@wordpress/i18n").TranslatableText<"Informal">;
45
+ label: import("@wordpress/i18n").TransformedText<"Informal">;
46
46
  emoji: string;
47
47
  };
48
48
  optimistic: {
49
- label: import("@wordpress/i18n").TranslatableText<"Optimistic">;
49
+ label: import("@wordpress/i18n").TransformedText<"Optimistic">;
50
50
  emoji: string;
51
51
  };
52
52
  humorous: {
53
- label: import("@wordpress/i18n").TranslatableText<"Humorous">;
53
+ label: import("@wordpress/i18n").TransformedText<"Humorous">;
54
54
  emoji: string;
55
55
  };
56
56
  serious: {
57
- label: import("@wordpress/i18n").TranslatableText<"Serious">;
57
+ label: import("@wordpress/i18n").TransformedText<"Serious">;
58
58
  emoji: string;
59
59
  };
60
60
  skeptical: {
61
- label: import("@wordpress/i18n").TranslatableText<"Skeptical">;
61
+ label: import("@wordpress/i18n").TransformedText<"Skeptical">;
62
62
  emoji: string;
63
63
  };
64
64
  empathetic: {
65
- label: import("@wordpress/i18n").TranslatableText<"Empathetic">;
65
+ label: import("@wordpress/i18n").TransformedText<"Empathetic">;
66
66
  emoji: string;
67
67
  };
68
68
  confident: {
69
- label: import("@wordpress/i18n").TranslatableText<"Confident">;
69
+ label: import("@wordpress/i18n").TransformedText<"Confident">;
70
70
  emoji: string;
71
71
  };
72
72
  passionate: {
73
- label: import("@wordpress/i18n").TranslatableText<"Passionate">;
73
+ label: import("@wordpress/i18n").TransformedText<"Passionate">;
74
74
  emoji: string;
75
75
  };
76
76
  provocative: {
77
- label: import("@wordpress/i18n").TranslatableText<"Provocative">;
77
+ label: import("@wordpress/i18n").TransformedText<"Provocative">;
78
78
  emoji: string;
79
79
  };
80
80
  };
@@ -92,18 +92,18 @@ export declare const PROMPT_TYPE_USER_PROMPT: "userPrompt";
92
92
  export declare const PROMPT_TYPE_JETPACK_FORM_CUSTOM_PROMPT: "jetpackFormCustomPrompt";
93
93
  export declare const PROMPT_TYPE_TRANSFORM_LIST_TO_TABLE: "transformListToTable";
94
94
  export declare const PROMPT_TYPE_WRITE_POST_FROM_LIST: "writePostFromList";
95
- export declare const TRANSLATE_LABEL: import("@wordpress/i18n").TranslatableText<"Translate">;
96
- export declare const TONE_LABEL: import("@wordpress/i18n").TranslatableText<"Change tone">;
97
- export declare const CORRECT_SPELLING_LABEL: import("@wordpress/i18n").TranslatableText<"Correct spelling and grammar">;
98
- export declare const SIMPLIFY_LABEL: import("@wordpress/i18n").TranslatableText<"Simplify">;
99
- export declare const SUMMARIZE_LABEL: import("@wordpress/i18n").TranslatableText<"Summarize">;
100
- export declare const MAKE_SHORTER_LABEL: import("@wordpress/i18n").TranslatableText<"Make shorter">;
101
- export declare const MAKE_LONGER_LABEL: import("@wordpress/i18n").TranslatableText<"Expand">;
102
- export declare const TURN_LIST_INTO_TABLE_LABEL: import("@wordpress/i18n").TranslatableText<"Turn list into a table">;
103
- export declare const WRITE_POST_FROM_LIST_LABEL: import("@wordpress/i18n").TranslatableText<"Write a post from this list">;
104
- export declare const GENERATE_TITLE_LABEL: import("@wordpress/i18n").TranslatableText<"Generate a post title">;
105
- export declare const SUMMARY_BASED_ON_TITLE_LABEL: import("@wordpress/i18n").TranslatableText<"Summary based on title">;
106
- export declare const CONTINUE_LABEL: import("@wordpress/i18n").TranslatableText<"Continue writing">;
95
+ export declare const TRANSLATE_LABEL: import("@wordpress/i18n").TransformedText<"Translate">;
96
+ export declare const TONE_LABEL: import("@wordpress/i18n").TransformedText<"Change tone">;
97
+ export declare const CORRECT_SPELLING_LABEL: import("@wordpress/i18n").TransformedText<"Correct spelling and grammar">;
98
+ export declare const SIMPLIFY_LABEL: import("@wordpress/i18n").TransformedText<"Simplify">;
99
+ export declare const SUMMARIZE_LABEL: import("@wordpress/i18n").TransformedText<"Summarize">;
100
+ export declare const MAKE_SHORTER_LABEL: import("@wordpress/i18n").TransformedText<"Make shorter">;
101
+ export declare const MAKE_LONGER_LABEL: import("@wordpress/i18n").TransformedText<"Expand">;
102
+ export declare const TURN_LIST_INTO_TABLE_LABEL: import("@wordpress/i18n").TransformedText<"Turn list into a table">;
103
+ export declare const WRITE_POST_FROM_LIST_LABEL: import("@wordpress/i18n").TransformedText<"Write a post from this list">;
104
+ export declare const GENERATE_TITLE_LABEL: import("@wordpress/i18n").TransformedText<"Generate a post title">;
105
+ export declare const SUMMARY_BASED_ON_TITLE_LABEL: import("@wordpress/i18n").TransformedText<"Summary based on title">;
106
+ export declare const CONTINUE_LABEL: import("@wordpress/i18n").TransformedText<"Continue writing">;
107
107
  export declare const PLACEMENT_JETPACK_SIDEBAR: "jetpack-sidebar";
108
108
  export declare const PLACEMENT_DOCUMENT_SETTINGS: "document-settings";
109
109
  export declare const PLACEMENT_PRE_PUBLISH: "pre-publish";
@@ -1,6 +1,6 @@
1
1
  declare const usePostContent: () => {
2
2
  getPostContent: (preprocess?: (serialized: string) => string) => string;
3
3
  isEditedPostEmpty: () => boolean;
4
- getSerializedPostContent: () => any;
4
+ getSerializedPostContent: () => string;
5
5
  };
6
6
  export default usePostContent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/jetpack-ai-client",
3
- "version": "0.34.12",
3
+ "version": "0.34.14",
4
4
  "private": false,
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",
@@ -32,30 +32,30 @@
32
32
  "watch": "tsgo --watch --pretty"
33
33
  },
34
34
  "dependencies": {
35
- "@automattic/jetpack-base-styles": "^1.0.21",
36
- "@automattic/jetpack-components": "^1.8.2",
37
- "@automattic/jetpack-connection": "^1.4.45",
35
+ "@automattic/jetpack-base-styles": "^1.1.0",
36
+ "@automattic/jetpack-components": "^1.9.0",
37
+ "@automattic/jetpack-connection": "^1.4.47",
38
38
  "@automattic/jetpack-explat": "workspace:*",
39
39
  "@automattic/jetpack-script-data": "^0.6.2",
40
- "@automattic/jetpack-shared-extension-utils": "^1.5.9",
40
+ "@automattic/jetpack-shared-extension-utils": "^1.5.11",
41
41
  "@microsoft/fetch-event-source": "2.0.1",
42
42
  "@types/jest": "30.0.0",
43
43
  "@types/react": "18.3.28",
44
- "@types/wordpress__block-editor": "15.0.5",
45
- "@wordpress/api-fetch": "7.43.0",
46
- "@wordpress/base-styles": "6.19.0",
47
- "@wordpress/blob": "4.43.0",
48
- "@wordpress/block-editor": "15.16.0",
49
- "@wordpress/blocks": "15.16.0",
50
- "@wordpress/components": "32.5.0",
51
- "@wordpress/compose": "7.43.0",
52
- "@wordpress/data": "10.43.0",
53
- "@wordpress/editor": "14.43.0",
54
- "@wordpress/element": "6.43.0",
55
- "@wordpress/i18n": "6.16.0",
56
- "@wordpress/icons": "12.1.0",
57
- "@wordpress/primitives": "4.43.0",
58
- "@wordpress/url": "4.43.0",
44
+ "@types/wordpress__block-editor": "15.0.6",
45
+ "@wordpress/api-fetch": "7.44.0",
46
+ "@wordpress/base-styles": "6.20.0",
47
+ "@wordpress/blob": "4.44.0",
48
+ "@wordpress/block-editor": "15.17.0",
49
+ "@wordpress/blocks": "15.17.0",
50
+ "@wordpress/components": "32.6.0",
51
+ "@wordpress/compose": "7.44.0",
52
+ "@wordpress/data": "10.44.0",
53
+ "@wordpress/editor": "14.44.0",
54
+ "@wordpress/element": "6.44.0",
55
+ "@wordpress/i18n": "6.17.0",
56
+ "@wordpress/icons": "12.2.0",
57
+ "@wordpress/primitives": "4.44.0",
58
+ "@wordpress/url": "4.44.0",
59
59
  "clsx": "2.1.1",
60
60
  "debug": "4.4.3",
61
61
  "markdown-it": "14.1.1",
@@ -64,14 +64,14 @@
64
64
  "turndown": "7.1.2"
65
65
  },
66
66
  "devDependencies": {
67
- "@storybook/addon-docs": "10.3.3",
68
- "@storybook/react": "10.3.3",
67
+ "@storybook/addon-docs": "10.3.5",
68
+ "@storybook/react": "10.3.5",
69
69
  "@testing-library/dom": "10.4.1",
70
70
  "@types/markdown-it": "14.1.2",
71
71
  "@types/turndown": "5.0.6",
72
72
  "@typescript/native-preview": "7.0.0-dev.20260225.1",
73
73
  "jest": "30.3.0",
74
- "storybook": "10.3.3",
74
+ "storybook": "10.3.5",
75
75
  "typescript": "5.9.3"
76
76
  }
77
77
  }