feat(builtins): add hideHeader and hideComposer props to RoomViewProps and renderRoomView

This commit is contained in:
Florian Duros
2025-10-28 16:06:28 +01:00
parent 4698f68d8a
commit 81212a3c16
@@ -14,6 +14,14 @@ export interface RoomViewProps {
* The ID of the room to render. * The ID of the room to render.
*/ */
roomId?: string; roomId?: string;
/*
* If true, the room header will be hidden.
*/
hideHeader?: boolean;
/*
* If true, the message composer will be hidden.
*/
hideComposer?: boolean;
} }
/** /**
@@ -38,6 +46,7 @@ export interface BuiltinsApi {
* *
* @alpha * @alpha
* @param roomId - Id of the room * @param roomId - Id of the room
* @param props - Additional props to pass to the room view
*/ */
renderRoomView(roomId: string): React.ReactNode; renderRoomView(roomId: string, props?: Omit<RoomViewProps, "roomId">): React.ReactNode;
} }