Skip to content

Commit faefbd3

Browse files
committed
Updat api doc
1 parent b91a280 commit faefbd3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/element-web-module-api/element-web-module-api.api.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export interface Api extends LegacyModuleApiExtension, LegacyCustomisationsApiEx
5454
readonly i18n: I18nApi;
5555
readonly navigation: NavigationApi;
5656
readonly rootNode: HTMLElement;
57+
readonly stores: StoresApi;
5758
}
5859

5960
// @alpha
@@ -337,6 +338,12 @@ export interface RoomListCustomisations<Room> {
337338
isRoomVisible?(room: Room): boolean;
338339
}
339340

341+
// @public
342+
export interface RoomListStoreApi {
343+
getRooms(): Room[];
344+
waitForReady(): Promise<void>;
345+
}
346+
340347
// @alpha
341348
export interface RoomViewProps {
342349
roomId?: string;
@@ -355,6 +362,11 @@ export interface SpacePanelItemProps {
355362
tooltip?: string;
356363
}
357364

365+
// @public
366+
export interface StoresApi {
367+
getRoomListStore(): RoomListStoreApi;
368+
}
369+
358370
// @public
359371
export type Translations = Record<string, {
360372
[ietfLanguageTag: string]: string;

0 commit comments

Comments
 (0)