From faf5be85eaa1827bb54591147c5c4cf0a1431dc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=87=E3=83=AF=E3=83=B3=E3=82=B7=E3=83=A5?= <61188295+Dnouv@users.noreply.github.com> Date: Wed, 21 Aug 2024 00:05:52 +0530 Subject: [PATCH] feat: add new UI context (#794) Co-authored-by: Rafael Tapia --- src/definition/ui/UIActionButtonContext.ts | 1 + .../uikit/IUIKitIncomingInteractionActionButton.ts | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/src/definition/ui/UIActionButtonContext.ts b/src/definition/ui/UIActionButtonContext.ts index 34958a8a9..fe6ccb403 100644 --- a/src/definition/ui/UIActionButtonContext.ts +++ b/src/definition/ui/UIActionButtonContext.ts @@ -4,4 +4,5 @@ export enum UIActionButtonContext { MESSAGE_BOX_ACTION = 'messageBoxAction', USER_DROPDOWN_ACTION = 'userDropdownAction', ROOM_SIDEBAR_ACTION = 'roomSideBarAction', + MESSAGE_TOOLBAR_STARS_ACTION = 'messageToolbarStarsAction', } diff --git a/src/definition/uikit/IUIKitIncomingInteractionActionButton.ts b/src/definition/uikit/IUIKitIncomingInteractionActionButton.ts index beea7181b..9e4d8aa7a 100644 --- a/src/definition/uikit/IUIKitIncomingInteractionActionButton.ts +++ b/src/definition/uikit/IUIKitIncomingInteractionActionButton.ts @@ -64,6 +64,16 @@ interface IUIKitIncomingInteractionActionButtonRoom extends IUIKitIncomingIntera }; } +interface IUIKitIncomingInteractionActionButtonMessageToolbarStars extends IUIKitIncomingInteractionActionButtonBase { + message: IMessage; + room: IRoom; + tmid?: string; + + payload: { + context: 'messageToolbarStarsAction'; + }; +} + interface IUIKitIncomingInteractionActionButtonUserDropdown extends IUIKitIncomingInteractionActionButtonBase { payload: { context: 'userDropdownAction'; @@ -71,6 +81,7 @@ interface IUIKitIncomingInteractionActionButtonUserDropdown extends IUIKitIncomi } export type IUIKitIncomingInteractionActionButton = + | IUIKitIncomingInteractionActionButtonMessageToolbarStars | IUIKitIncomingInteractionActionButtonMessageBox | IUIKitIncomingInteractionActionButtonMessage | IUIKitIncomingInteractionActionButtonRoomSidebar