From 0cb14cb5d97fd36c2dd00e5a3ca21fdaa00eb2a6 Mon Sep 17 00:00:00 2001 From: Charles de Dreuille Date: Mon, 9 Feb 2026 12:35:15 +0000 Subject: [PATCH] Improve report Signed-off-by: Charles de Dreuille --- packages/frontend-plugin-api/report.api.md | 10 +++++++--- plugins/app/report.api.md | 8 ++++---- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/packages/frontend-plugin-api/report.api.md b/packages/frontend-plugin-api/report.api.md index fdcbd161d9..c209874e46 100644 --- a/packages/frontend-plugin-api/report.api.md +++ b/packages/frontend-plugin-api/report.api.md @@ -1937,10 +1937,8 @@ export const swappableComponentsApiRef: ApiRef_2; // @public export type ToastApi = { - post(toast: ToastApiMessage): string; - close(key: string): void; + post(toast: ToastApiMessage): ToastApiPostResult; toast$(): Observable; - close$(): Observable; }; // @public @@ -1955,6 +1953,12 @@ export type ToastApiMessage = { // @public export type ToastApiMessageWithKey = ToastApiMessage & { key: string; + close(): void; +}; + +// @public +export type ToastApiPostResult = { + close(): void; }; // @public diff --git a/plugins/app/report.api.md b/plugins/app/report.api.md index e294a54f30..6389ea7c4c 100644 --- a/plugins/app/report.api.md +++ b/plugins/app/report.api.md @@ -1021,10 +1021,7 @@ const appPlugin: OverridableFrontendPlugin< export default appPlugin; // @public -export function ToastDisplay(props: ToastDisplayProps): JSX_3.Element; - -// @public -export interface ToastDisplayProps { +export interface ToastApiMessageDisplayProps { // @deprecated anchorOrigin?: { vertical: 'top' | 'bottom'; @@ -1033,5 +1030,8 @@ export interface ToastDisplayProps { transientTimeoutMs?: number; } +// @public +export function ToastDisplay(props: ToastApiMessageDisplayProps): JSX_3.Element; + // (No @packageDocumentation comment for this package) ```