From 908771235f48139581d887f903f8d829926876fb Mon Sep 17 00:00:00 2001 From: Half-Shot Date: Tue, 20 May 2025 12:14:20 +0100 Subject: [PATCH] Tidyup --- .../element-web-module-api/src/api/custom-components.ts | 7 +++++++ packages/element-web-module-api/src/api/index.ts | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/packages/element-web-module-api/src/api/custom-components.ts b/packages/element-web-module-api/src/api/custom-components.ts index 244757c6e1..1c1c68b91b 100644 --- a/packages/element-web-module-api/src/api/custom-components.ts +++ b/packages/element-web-module-api/src/api/custom-components.ts @@ -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"; diff --git a/packages/element-web-module-api/src/api/index.ts b/packages/element-web-module-api/src/api/index.ts index 35dd52d967..feb97cbe51 100644 --- a/packages/element-web-module-api/src/api/index.ts +++ b/packages/element-web-module-api/src/api/index.ts @@ -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.