mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-12-04 16:53:09 +00:00
Add some experimental module interfaces
...with somewhat placeholder names as they're the best I can think of right now: * 'Extras': To add new bits of UI to places (specifically the space panel) * 'Builtins': For modules to render components that are part of Element Web * 'Navigation': For modules to add paths to the URL router
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
Copyright 2025 New Vector Ltd.
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
export interface RoomViewProps {
|
||||
roomId?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Exposes components that are part of Element Web to allow modules to render them
|
||||
* as part of their custom components (because they can't import the components from
|
||||
* Element Web since it would cause a dependency cycle)
|
||||
*/
|
||||
export interface BuiltinsApi {
|
||||
getRoomViewComponent(): React.ComponentType<RoomViewProps>;
|
||||
}
|
||||
Reference in New Issue
Block a user