Custom component concept piece

This commit is contained in:
Half-Shot
2025-05-16 15:49:07 +01:00
parent 079f3392bb
commit c9ea5f8f4f
4 changed files with 349 additions and 233 deletions
@@ -10,6 +10,7 @@ import { LegacyModuleApiExtension } from "./legacy-modules";
import { LegacyCustomisationsApiExtension } from "./legacy-customisations";
import { ConfigApi } from "./config";
import { I18nApi } from "./i18n";
import { CustomComponentsApi, CustomComponentTarget } from "./custom-components";
/**
* Module interface for modules to implement.
@@ -86,6 +87,8 @@ export interface Api extends LegacyModuleApiExtension, LegacyCustomisationsApiEx
* @public
*/
readonly rootNode: HTMLElement;
readonly customComponents: CustomComponentsApi;
/**
* Create a ReactDOM root for rendering React components.
* Exposed to allow modules to avoid needing to bundle their own ReactDOM.