Remove WidgetKind and fix header

This commit is contained in:
David Langley 2026-02-18 18:43:26 +00:00
parent a5ec21bd06
commit 4614d2f395
2 changed files with 1 additions and 13 deletions

View File

@ -441,12 +441,8 @@ export type WidgetDescriptor = {
type: string;
origin: string;
roomId?: string;
kind: WidgetKind;
};
// @alpha
export type WidgetKind = "room" | "account" | "modal";
// @alpha
export interface WidgetLifecycleApi {
registerCapabilitiesApprover(approver: CapabilitiesApprover): void;

View File

@ -1,16 +1,10 @@
/*
Copyright 2026 New Vector Ltd.
Copyright 2026 Element Creations Ltd.
SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
Please see LICENSE files in the repository root for full details.
*/
/**
* The scope of a widget: room-scoped, user-scoped (account), or an ephemeral modal overlay.
* @alpha Subject to change.
*/
export type WidgetKind = "room" | "account" | "modal";
/**
* A description of a widget passed to approver callbacks.
* Contains the information needed to make approval decisions.
@ -29,8 +23,6 @@ export type WidgetDescriptor = {
origin: string;
/** The room ID the widget belongs to, if it is a room widget. */
roomId?: string;
/** The scope of the widget. */
kind: WidgetKind;
};
/**