/** * @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/changeevents */ /** * The events a review results panel and the change navigation panel raise for the controllers. * * `source` is typed loosely because the panel renders changes differently per mode — AI Review uses the shared * suggestion content part, AI Translate the review tile — and no listener reads it. */ import { type View } from "@ckeditor/ckeditor5-ui"; export type AIReviewCoreDeactivateChangeEventData = { origin: "panel"; id: string; source: View; }; export type AIReviewCoreActivateChangeEvent = { name: "activateChange"; args: [{ id: string; source: View; uiInteraction: "click" | "hover"; }]; }; export type AIReviewCoreDeactivateChangeEvent = { name: "deactivateChange"; args: [AIReviewCoreDeactivateChangeEventData]; }; export type AIReviewCoreAcceptChangeEvent = { name: "acceptChange"; args: [{ id: string; }]; }; export type AIReviewCoreDismissChangeEvent = { name: "dismissChange"; args: [{ id: string; }]; }; export type AIReviewCoreSuggestChangeEvent = { name: "suggestChange"; args: [{ changeId: string; }]; };