@ckeditor/ckeditor5-ai
Version:
AI features for CKEditor 5.
46 lines (45 loc) • 1.73 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/aichat/ui/aichatview
*/
import { type Locale } from '@ckeditor/ckeditor5-utils';
import { View } from '@ckeditor/ckeditor5-ui';
import { AIChatFeedView } from './aichatfeedview.js';
import { AIChatControlsView } from './aichatcontrolsview.js';
import { AIHeaderView } from '../../aicore/ui/aiheaderview.js';
import { AIDisclaimerView } from '../../aicore/ui/aidisclaimerview.js';
import { type AIContextProvider, type AIContextResourceState } from '../../aichat/model/aichatcontext.js';
import '../../../theme/common/ainotification.css';
import '../../../theme/common/aibutton.css';
import '../../../theme/common/aicolor.css';
import '../../../theme/common/aitrackchanges.css';
/**
* The main view of the AI chat plugin.
*
* It contains the header, feed and controls views.
*/
export declare class AIChatView extends View {
chatHeader: AIHeaderView;
chatFeed: AIChatFeedView;
chatControls: AIChatControlsView;
chatDisclaimer: AIDisclaimerView;
constructor(locale: Locale, options: {
showResizeButton: boolean;
contextResourcesSearchInputVisibleFrom?: number;
});
/**
* Populates a source resource balloon with loaded resources.
*/
populateSourceResourceBalloon(sourceId: string, source: AIContextProvider, resources: Array<AIContextResourceState>, uid: string): void;
/**
* Closes the source resource balloon and cleans up its state.
*/
closeSourceResourceBalloon(sourceId: string): void;
/**
* @inheritDoc
*/
destroy(): void;
}