@ckeditor/ckeditor5-ai
Version:
AI features for CKEditor 5.
43 lines (42 loc) • 1.19 kB
TypeScript
/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/
/**
* @module ai/aicore/ui/suggestioncontainer/aisuggestionheaderview
*/
import { type Locale } from '@ckeditor/ckeditor5-utils';
import { ButtonView, View } from '@ckeditor/ckeditor5-ui';
/**
* The header of the suggestion container.
*
* It contains a title, a toggle button to show/hide the changes and an icon.
*/
export declare class AISuggestionHeaderView extends View<HTMLDivElement> {
/**
* Specifies whether the show changes toggle should be visible or not.
*/
isShowChangesToggleVisible: boolean;
/**
* @inheritDoc
*/
constructor(locale: Locale, options: {
showDiff: boolean;
showHeader?: boolean;
});
}
/**
* The view that displays the toggle button to show/hide the changes.
*/
export declare class ShowChangesToggleView extends ButtonView {
/**
* @inheritDoc
*/
render(): void;
}
export type AISuggestionHeaderToggleShowChangesEvent = {
name: 'toggleShowChanges';
args: [{
isOn: boolean;
}];
};