From 8cdf6dbaff4a5e111fbc77a898a502ce133e1afe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20CG?= Date: Fri, 22 Nov 2024 10:15:35 +0100 Subject: [PATCH] feat: add related prompts selection events (#1663) --- .../src/x-modules/related-prompts/events.types.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/x-components/src/x-modules/related-prompts/events.types.ts b/packages/x-components/src/x-modules/related-prompts/events.types.ts index 12d8c1f12..23998df6a 100644 --- a/packages/x-components/src/x-modules/related-prompts/events.types.ts +++ b/packages/x-components/src/x-modules/related-prompts/events.types.ts @@ -13,4 +13,14 @@ export interface RelatedPromptsXEvents { * to conform a valid request. */ RelatedPromptsRequestUpdated: RelatedPromptsRequest | null; + /** + * The selected prompt has changed. + * Payload: The index of the prompt in the RelatedPrompts list or -1 to remove selection. + */ + UserSelectedARelatedPrompt: number; + /** + * The selected next query of the selected prompt has changed. + * Payload: The index of the next query in the NextQueries list or -1 to remove selection. + */ + UserSelectedARelatedPromptQuery: number; }