@ckeditor/ckeditor5-ai
Version:
AI features for CKEditor 5.
42 lines (41 loc) • 1.58 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/feed/aichatfeedcustomelementview
* @publicApi
*/
import { AIChatFeedItemView, type AIChatItemViewOptions } from './aichatfeeditemview.js';
/**
* A view for a custom UI element in the AI chat feed.
*
* @experimental **Experimental:** This is a production-ready API but may change in minor releases
* without the standard deprecation policy. Check the changelog for migration guidance.
*/
export declare class AIChatFeedCustomElementView extends AIChatFeedItemView<AIChatFeedCustomElementViewOptions> {
/**
* @inheritDoc
*/
constructor(options: AIChatFeedCustomElementViewOptions);
/**
* Renders the custom element view and inserts the provided content into the DOM.
*
* @experimental **Experimental:** This is a production-ready API but may change in minor releases
* without the standard deprecation policy. Check the changelog for migration guidance.
*/
render(): Promise<void>;
}
/**
* Options for the {@link module:ai/aichat/ui/feed/aichatfeedcustomelementview~AIChatFeedCustomElementView} class.
*/
export interface AIChatFeedCustomElementViewOptions extends AIChatItemViewOptions {
/**
* Initial content of the UI element.
*/
content: HTMLElement | string;
/**
* The ID for the custom element wrapper container, set as `data-cke-ai-id` attribute.
*/
id: string;
}