@ckeditor/ckeditor5-ai 49.0.0-alpha.1 → 49.0.0-alpha.11
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/dist/aiballoon/aiballoon.d.ts +4 -0
- package/dist/aichat/aichatui.d.ts +9 -5
- package/dist/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.d.ts +7 -0
- package/dist/aireviewcore/model/aireviewcheckrun.d.ts +14 -0
- package/dist/aireviewcore/ui/aireviewcorereviewchecklistview.d.ts +0 -4
- package/dist/aireviewcore/ui/aireviewcorereviewcommandlistitemview.d.ts +0 -2
- package/dist/index-editor.css +125 -98
- package/dist/index.css +125 -98
- package/dist/index.js +19 -19
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- 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
|
-
*
|
|
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
|
-
|
|
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`
|