@ckeditor/ckeditor5-ai
Version:
AI features for CKEditor 5.
62 lines (61 loc) • 2.02 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/aireviewcore/ui/aireviewcorecustomcheckview
*/
import { type Locale, KeystrokeHandler, FocusTracker } from '@ckeditor/ckeditor5-utils';
import { View, ButtonView, LabeledFieldView, FocusCycler } from '@ckeditor/ckeditor5-ui';
import { AIReviewCorePromptInputView } from './aireviewcorepromptinputview.js';
export declare class AIReviewCoreCustomCheckView extends View {
/**
* Tracks information about DOM focus in the form.
*/
readonly focusTracker: FocusTracker;
/**
* An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
*/
readonly keystrokes: KeystrokeHandler;
/**
* Helps cycling over {@link #_focusables} in the form.
*/
readonly focusCycler: FocusCycler;
prompt: string;
modelId: string;
/**
* Determines the model display mode:
* * 'selector' – shows the dropdown,
* * 'name' – shows the model name,
* * 'hidden' – hides both.
*
* @observable
*/
modelDisplayMode: 'selector' | 'name' | 'hidden';
/**
* The name of the currently active model.
*
* @observable
*/
activeModelName: string | null;
submitButtonView: ButtonView;
cancelButtonView: ButtonView;
promptInputView: LabeledFieldView<AIReviewCorePromptInputView>;
actionsFooterView: View;
constructor(locale: Locale, check: AIReviewCoreCustomCheckView['_check'], hideModels?: boolean);
/**
* @inheritDoc
*/
render(): void;
get modelDefaultValue(): string;
get modelDefaultLabel(): string;
/**
* Resets the form to its default state.
*/
resetToDefault(): void;
/**
* Resets the form validation status.
*/
resetFormValidationStatus(): void;
}
export type CustomCheckFormValidatorCallback = () => string | undefined;