feat: Update plugin manager integration with lucide-react icons and improve RoomInput component logic

This commit is contained in:
2026-07-06 01:30:25 +10:00
parent c57797ffe4
commit 1f71fd7a51
7 changed files with 62 additions and 42 deletions

View File

@@ -105,6 +105,7 @@ interface PluginContext {
pluginId: string;
matrixClient: MatrixClient;
React: typeof import('react');
lucide: typeof import('lucide-react');
commands: CommandsAPI;
messages: MessagesAPI;
@@ -416,6 +417,8 @@ interface UIButtonDefinition {
location: UILocation;
label: string;
icon?: string;
/** Lucide icon name, e.g. `ImagePlay`. Also supported via `icon: 'lucide:ImagePlay'`. */
lucideIcon?: string;
position?: UIButtonPosition;
onClick?: () => void | Promise<void>;
}