mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-04 19:56:45 +02:00
Remove WidgetKind and fix header
This commit is contained in:
parent
a5ec21bd06
commit
4614d2f395
@ -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;
|
||||
|
||||
@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user