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:
@@ -15,6 +15,8 @@ import { NavigationApi } from "./navigation.ts";
|
||||
import { DialogApiExtension } from "./dialog.ts";
|
||||
import { AccountAuthApiExtension } from "./auth.ts";
|
||||
import { ProfileApiExtension } from "./profile.ts";
|
||||
import { ExtrasApi } from "./extras.ts";
|
||||
import { BuiltinsApi } from "./builtins.ts";
|
||||
|
||||
/**
|
||||
* Module interface for modules to implement.
|
||||
@@ -103,12 +105,16 @@ export interface Api
|
||||
*/
|
||||
readonly customComponents: CustomComponentsApi;
|
||||
|
||||
readonly builtins: BuiltinsApi;
|
||||
|
||||
/**
|
||||
* API to navigate the application.
|
||||
* @public
|
||||
*/
|
||||
readonly navigation: NavigationApi;
|
||||
|
||||
readonly extras: ExtrasApi;
|
||||
|
||||
/**
|
||||
* Create a ReactDOM root for rendering React components.
|
||||
* Exposed to allow modules to avoid needing to bundle their own ReactDOM.
|
||||
|
||||
Reference in New Issue
Block a user