@metamask-previews/notification-controller
Advanced tools
Comparing version 5.0.1-preview-a3500873 to 5.0.1-preview-a8ffe8e
@@ -7,3 +7,3 @@ import type { ControllerGetStateAction, ControllerStateChangeEvent, RestrictedControllerMessenger } from '@metamask/base-controller'; | ||
*/ | ||
export declare type NotificationControllerState = { | ||
export type NotificationControllerState = { | ||
notifications: Record<string, Notification>; | ||
@@ -19,3 +19,3 @@ }; | ||
*/ | ||
export declare type Notification = { | ||
export type Notification = { | ||
id: string; | ||
@@ -28,22 +28,22 @@ origin: string; | ||
declare const name = "NotificationController"; | ||
export declare type NotificationControllerStateChange = ControllerStateChangeEvent<typeof name, NotificationControllerState>; | ||
export declare type GetNotificationControllerState = ControllerGetStateAction<typeof name, NotificationControllerState>; | ||
export declare type ShowNotification = { | ||
export type NotificationControllerStateChange = ControllerStateChangeEvent<typeof name, NotificationControllerState>; | ||
export type GetNotificationControllerState = ControllerGetStateAction<typeof name, NotificationControllerState>; | ||
export type ShowNotification = { | ||
type: `${typeof name}:show`; | ||
handler: NotificationController['show']; | ||
}; | ||
export declare type DismissNotification = { | ||
export type DismissNotification = { | ||
type: `${typeof name}:dismiss`; | ||
handler: NotificationController['dismiss']; | ||
}; | ||
export declare type MarkNotificationRead = { | ||
export type MarkNotificationRead = { | ||
type: `${typeof name}:markRead`; | ||
handler: NotificationController['markRead']; | ||
}; | ||
export declare type ClearNotifications = { | ||
export type ClearNotifications = { | ||
type: `${typeof name}:clear`; | ||
handler: NotificationController['clear']; | ||
}; | ||
export declare type NotificationControllerActions = GetNotificationControllerState | ShowNotification | DismissNotification | MarkNotificationRead | ClearNotifications; | ||
export declare type NotificationControllerMessenger = RestrictedControllerMessenger<typeof name, NotificationControllerActions, NotificationControllerStateChange, never, never>; | ||
export type NotificationControllerActions = GetNotificationControllerState | ShowNotification | DismissNotification | MarkNotificationRead | ClearNotifications; | ||
export type NotificationControllerMessenger = RestrictedControllerMessenger<typeof name, NotificationControllerActions, NotificationControllerStateChange, never, never>; | ||
/** | ||
@@ -50,0 +50,0 @@ * Controller that handles storing notifications and showing them to the user |
{ | ||
"name": "@metamask-previews/notification-controller", | ||
"version": "5.0.1-preview-a3500873", | ||
"version": "5.0.1-preview-a8ffe8e", | ||
"description": "Manages display of notifications within MetaMask", | ||
@@ -56,3 +56,3 @@ "keywords": [ | ||
"typedoc-plugin-missing-exports": "^2.0.0", | ||
"typescript": "~4.8.4" | ||
"typescript": "~4.9.5" | ||
}, | ||
@@ -59,0 +59,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
80106