This commit is contained in:
Half-Shot
2025-05-20 12:14:20 +01:00
parent e972c05ccc
commit 908771235f
2 changed files with 12 additions and 1 deletions
@@ -1,3 +1,10 @@
/*
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.
*/
import type { JSX } from "react";
import type { MatrixEvent } from "matrix-js-sdk";
@@ -10,7 +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";
import { CustomComponentsApi } from "./custom-components";
/**
* Module interface for modules to implement.
@@ -88,6 +88,10 @@ export interface Api extends LegacyModuleApiExtension, LegacyCustomisationsApiEx
*/
readonly rootNode: HTMLElement;
/**
* The custom components API.
* @public
*/
readonly customComponents: CustomComponentsApi;
/**
* Create a ReactDOM root for rendering React components.