@ckeditor/ckeditor5-ai
Version:
AI features for CKEditor 5.
33 lines (32 loc) • 1.15 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/aiwebsourcesview
*/
import { View, ButtonView, BalloonPanelView, type BodyCollection } from '@ckeditor/ckeditor5-ui';
import { type Locale } from '@ckeditor/ckeditor5-utils';
import { type AISource } from '../../aiconnector.js';
/**
* The view that displays the web sources of the suggestion.
*
* Web sources are pills with a balloon tooltip that displays the source title and URL. When hovered, the tooltip is displayed.
*/
export declare class AIWebSourcesView extends View {
/**
* Whether the web sources are visible.
*/
isVisible: boolean;
constructor(locale: Locale, bodyCollection: BodyCollection);
/**
* Adds a new source pill to the view.
*/
addSource(source: AISource): void;
}
/**
* A single web source pill view.
*/
export declare class AIWebSourceView extends ButtonView {
constructor(locale: Locale, source: AISource, balloonPanelView: BalloonPanelView);
}