@ckeditor/ckeditor5-ai 49.0.0-alpha.1 → 49.0.0-alpha.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.
Files changed (124) hide show
  1. package/dist/aiballoon/aiballoon.d.ts +4 -0
  2. package/dist/aichat/aichatui.d.ts +9 -5
  3. package/dist/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.d.ts +7 -0
  4. package/dist/aireviewcore/model/aireviewcheckrun.d.ts +14 -0
  5. package/dist/aireviewcore/ui/aireviewcorereviewchecklistview.d.ts +0 -4
  6. package/dist/aireviewcore/ui/aireviewcorereviewcommandlistitemview.d.ts +0 -2
  7. package/dist/index-editor.css +125 -98
  8. package/dist/index.css +125 -98
  9. package/dist/index.js +19 -19
  10. package/dist/translations/af.umd.js +1 -1
  11. package/dist/translations/ar.js +1 -1
  12. package/dist/translations/ar.umd.js +1 -1
  13. package/dist/translations/ast.umd.js +1 -1
  14. package/dist/translations/az.umd.js +1 -1
  15. package/dist/translations/be.umd.js +1 -1
  16. package/dist/translations/bg.js +1 -1
  17. package/dist/translations/bg.umd.js +1 -1
  18. package/dist/translations/bn.js +1 -1
  19. package/dist/translations/bn.umd.js +1 -1
  20. package/dist/translations/bs.umd.js +1 -1
  21. package/dist/translations/ca.js +1 -1
  22. package/dist/translations/ca.umd.js +1 -1
  23. package/dist/translations/cs.js +1 -1
  24. package/dist/translations/cs.umd.js +1 -1
  25. package/dist/translations/da.js +1 -1
  26. package/dist/translations/da.umd.js +1 -1
  27. package/dist/translations/de-ch.umd.js +1 -1
  28. package/dist/translations/de.js +1 -1
  29. package/dist/translations/de.umd.js +1 -1
  30. package/dist/translations/el.js +1 -1
  31. package/dist/translations/el.umd.js +1 -1
  32. package/dist/translations/en-au.js +1 -1
  33. package/dist/translations/en-au.umd.js +1 -1
  34. package/dist/translations/en-gb.js +1 -1
  35. package/dist/translations/en-gb.umd.js +1 -1
  36. package/dist/translations/en.js +1 -1
  37. package/dist/translations/en.umd.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.umd.js +1 -1
  40. package/dist/translations/es.js +1 -1
  41. package/dist/translations/es.umd.js +1 -1
  42. package/dist/translations/et.js +1 -1
  43. package/dist/translations/et.umd.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.umd.js +1 -1
  46. package/dist/translations/fi.js +1 -1
  47. package/dist/translations/fi.umd.js +1 -1
  48. package/dist/translations/fr.js +1 -1
  49. package/dist/translations/fr.umd.js +1 -1
  50. package/dist/translations/gl.umd.js +1 -1
  51. package/dist/translations/gu.umd.js +1 -1
  52. package/dist/translations/he.js +1 -1
  53. package/dist/translations/he.umd.js +1 -1
  54. package/dist/translations/hi.js +1 -1
  55. package/dist/translations/hi.umd.js +1 -1
  56. package/dist/translations/hr.umd.js +1 -1
  57. package/dist/translations/hu.js +1 -1
  58. package/dist/translations/hu.umd.js +1 -1
  59. package/dist/translations/hy.umd.js +1 -1
  60. package/dist/translations/id.js +1 -1
  61. package/dist/translations/id.umd.js +1 -1
  62. package/dist/translations/it.js +1 -1
  63. package/dist/translations/it.umd.js +1 -1
  64. package/dist/translations/ja.js +1 -1
  65. package/dist/translations/ja.umd.js +1 -1
  66. package/dist/translations/jv.umd.js +1 -1
  67. package/dist/translations/kk.umd.js +1 -1
  68. package/dist/translations/km.umd.js +1 -1
  69. package/dist/translations/kn.umd.js +1 -1
  70. package/dist/translations/ko.js +1 -1
  71. package/dist/translations/ko.umd.js +1 -1
  72. package/dist/translations/ku.umd.js +1 -1
  73. package/dist/translations/lt.js +1 -1
  74. package/dist/translations/lt.umd.js +1 -1
  75. package/dist/translations/lv.js +1 -1
  76. package/dist/translations/lv.umd.js +1 -1
  77. package/dist/translations/ms.js +1 -1
  78. package/dist/translations/ms.umd.js +1 -1
  79. package/dist/translations/nb.umd.js +1 -1
  80. package/dist/translations/ne.umd.js +1 -1
  81. package/dist/translations/nl.js +1 -1
  82. package/dist/translations/nl.umd.js +1 -1
  83. package/dist/translations/no.js +1 -1
  84. package/dist/translations/no.umd.js +1 -1
  85. package/dist/translations/oc.umd.js +1 -1
  86. package/dist/translations/pl.js +1 -1
  87. package/dist/translations/pl.umd.js +1 -1
  88. package/dist/translations/pt-br.js +1 -1
  89. package/dist/translations/pt-br.umd.js +1 -1
  90. package/dist/translations/pt.js +1 -1
  91. package/dist/translations/pt.umd.js +1 -1
  92. package/dist/translations/ro.js +1 -1
  93. package/dist/translations/ro.umd.js +1 -1
  94. package/dist/translations/ru.js +1 -1
  95. package/dist/translations/ru.umd.js +1 -1
  96. package/dist/translations/si.umd.js +1 -1
  97. package/dist/translations/sk.js +1 -1
  98. package/dist/translations/sk.umd.js +1 -1
  99. package/dist/translations/sl.umd.js +1 -1
  100. package/dist/translations/sq.umd.js +1 -1
  101. package/dist/translations/sr-latn.umd.js +1 -1
  102. package/dist/translations/sr.js +1 -1
  103. package/dist/translations/sr.umd.js +1 -1
  104. package/dist/translations/sv.js +1 -1
  105. package/dist/translations/sv.umd.js +1 -1
  106. package/dist/translations/th.js +1 -1
  107. package/dist/translations/th.umd.js +1 -1
  108. package/dist/translations/ti.umd.js +1 -1
  109. package/dist/translations/tk.umd.js +1 -1
  110. package/dist/translations/tr.js +1 -1
  111. package/dist/translations/tr.umd.js +1 -1
  112. package/dist/translations/tt.umd.js +1 -1
  113. package/dist/translations/ug.umd.js +1 -1
  114. package/dist/translations/uk.js +1 -1
  115. package/dist/translations/uk.umd.js +1 -1
  116. package/dist/translations/ur.umd.js +1 -1
  117. package/dist/translations/uz.umd.js +1 -1
  118. package/dist/translations/vi.js +1 -1
  119. package/dist/translations/vi.umd.js +1 -1
  120. package/dist/translations/zh-cn.js +1 -1
  121. package/dist/translations/zh-cn.umd.js +1 -1
  122. package/dist/translations/zh.js +1 -1
  123. package/dist/translations/zh.umd.js +1 -1
  124. package/package.json +30 -30
@@ -64,6 +64,10 @@ export declare class AIBalloon extends ContextPlugin {
64
64
  * Closes the currently open AI Balloon dialog.
65
65
  */
66
66
  close(): void;
67
+ /**
68
+ * @inheritDoc
69
+ */
70
+ override destroy(): void;
67
71
  }
68
72
  /**
69
73
  * Event fired when the AI balloon dialog is closed. As opposed to `beforeDialogClosed`, this event is fired
@@ -96,6 +96,9 @@ export declare class AIChatUI extends ContextPlugin {
96
96
  addFeedItemAISuggestion(reply: AIReply): Promise<void>;
97
97
  /**
98
98
  * Adds an interaction header to the chat feed.
99
+ *
100
+ * The header stays hidden until the reply that follows it starts streaming (see {@link #addFeedItemAIReply}), or until the
101
+ * interaction ends, whichever comes first. It is revealed with {@link #showFeedInteractionHeader}.
99
102
  */
100
103
  addFeedInteractionHeader(interaction: AIChatInteraction, capabilities: AICapabilitiesConfig): Promise<void>;
101
104
  /**
@@ -111,12 +114,13 @@ export declare class AIChatUI extends ContextPlugin {
111
114
  */
112
115
  hasFeedItem(id: string): boolean;
113
116
  /**
114
- * Updates the visibility of the interaction header in the chat feed.
117
+ * Reveals the interaction headers (the "used web search/reasoning" information) of the given interaction in the chat feed.
118
+ *
119
+ * The headers are added to the feed by tasks enqueued in the promise queue (see {@link #addFeedInteractionHeader}), so call it
120
+ * only when it is certain that those tasks have already run: from a task enqueued later, or once the queue is drained
121
+ * or aborted. Called too early, it could run before the header is added and silently do nothing.
115
122
  */
116
- updateFeedInteractionHeader(options: {
117
- isVisible: boolean;
118
- id: string;
119
- }): void;
123
+ showFeedInteractionHeader(id: string): void;
120
124
  /**
121
125
  * Updates the content of an AI reply in the chat feed.
122
126
  */
@@ -18,6 +18,13 @@ export declare class AISuggestionContentPartStateView extends View {
18
18
  state: AISuggestionContentPartState;
19
19
  outdatedReason: AIReplyChangeGroupOutdatedReason | undefined;
20
20
  isVisible: boolean;
21
+ /**
22
+ * Size tier of the state pill. Use `'large'` when the pill takes the place of regular-sized buttons.
23
+ *
24
+ * @observable
25
+ * @default 'small'
26
+ */
27
+ size: "small" | "large";
21
28
  constructor(locale: Locale, translationKeys?: AISuggestionContentPartTranslationKeys);
22
29
  /**
23
30
  * Sets the state of the view.
@@ -105,6 +105,20 @@ export declare abstract class AIReviewCheckRun extends AIReviewCheckRunBase {
105
105
  */
106
106
  getChangePosition(changeId: string): number;
107
107
  /**
108
+ * The first pending change after `changeId`, wrapping around after the last change. The `changeId` change
109
+ * does not have to be pending itself, so a resolved change still gives the place to move on from.
110
+ *
111
+ * Returns `undefined` when `changeId` is unknown or no other change is pending.
112
+ */
113
+ getNextPendingChange(changeId: string): AIReviewCheckResultChange | undefined;
114
+ /**
115
+ * The last pending change before `changeId`, wrapping around before the first change. The `changeId` change
116
+ * does not have to be pending itself, so a resolved change still gives the place to move on from.
117
+ *
118
+ * Returns `undefined` when `changeId` is unknown or no other change is pending.
119
+ */
120
+ getPreviousPendingChange(changeId: string): AIReviewCheckResultChange | undefined;
121
+ /**
108
122
  * The number of changes produced by this run, regardless of their status (pending, accepted, rejected, outdated).
109
123
  */
110
124
  get totalChangesCount(): number;
@@ -16,8 +16,6 @@ import { AIReviewCoreReviewCommandListItemView } from "./aireviewcorereviewcomma
16
16
  export declare class AIReviewCoreReviewCheckListView extends AIReviewCoreAbstractCheckListView {
17
17
  constructor(locale: Locale);
18
18
  /**
19
- * @inheritDoc
20
- *
21
19
  * Non-parameterized checks render before parameterized ones (see `_setupTemplate()`), so the
22
20
  * per-item index must follow that same visual order, not the original `checks` order. Otherwise
23
21
  * the entrance-animation stagger delay (`--ck-ai-review-check-list-item-index`) falls out of sync
@@ -37,8 +35,6 @@ export declare class AIReviewCoreReviewCheckListView extends AIReviewCoreAbstrac
37
35
  */
38
36
  protected override _onChecksSet(): void;
39
37
  /**
40
- * @inheritDoc
41
- *
42
38
  * Non-parameterized group first, then parameterized (this is render order, see `_setupTemplate()`).
43
39
  */
44
40
  override getCheckViews(): Array<AIReviewCoreReviewCommandListItemView>;
@@ -28,8 +28,6 @@ export declare class AIReviewCoreReviewCommandListItemView extends ListItemView
28
28
  readonly check: AIReviewCheck;
29
29
  constructor(locale: Locale, check: AIReviewCheck, index: number, hideModels?: boolean);
30
30
  /**
31
- * @inheritDoc
32
- *
33
31
  * The template above replaces {@link module:ui/list/listitemview~ListItemView}'s own template
34
32
  * (and, with it, its `children` collection) with markup of its own, so the base class's
35
33
  * `focus()` -- which focuses `children.first` -- would find nothing to focus. Focus `#_headerView`