Remove WidgetKind and fix header
This commit is contained in:
@@ -441,12 +441,8 @@ export type WidgetDescriptor = {
|
|||||||
type: string;
|
type: string;
|
||||||
origin: string;
|
origin: string;
|
||||||
roomId?: string;
|
roomId?: string;
|
||||||
kind: WidgetKind;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// @alpha
|
|
||||||
export type WidgetKind = "room" | "account" | "modal";
|
|
||||||
|
|
||||||
// @alpha
|
// @alpha
|
||||||
export interface WidgetLifecycleApi {
|
export interface WidgetLifecycleApi {
|
||||||
registerCapabilitiesApprover(approver: CapabilitiesApprover): void;
|
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
|
SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||||
Please see LICENSE files in the repository root for full details.
|
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.
|
* A description of a widget passed to approver callbacks.
|
||||||
* Contains the information needed to make approval decisions.
|
* Contains the information needed to make approval decisions.
|
||||||
@@ -29,8 +23,6 @@ export type WidgetDescriptor = {
|
|||||||
origin: string;
|
origin: string;
|
||||||
/** The room ID the widget belongs to, if it is a room widget. */
|
/** The room ID the widget belongs to, if it is a room widget. */
|
||||||
roomId?: string;
|
roomId?: string;
|
||||||
/** The scope of the widget. */
|
|
||||||
kind: WidgetKind;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user