web-push-notifications 3.118.1 → 3.122.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -42,6 +42,9 @@ export declare class PWInboxWidget {
42
42
  private syncMessages;
43
43
  private updateInbox;
44
44
  private performMessageAction;
45
+ private performButtonAction;
46
+ private copyText;
47
+ private showToast;
45
48
  private removeMessages;
46
49
  private onTriggerClickHandler;
47
50
  private onWidgetClickHandler;
@@ -1,6 +1,8 @@
1
1
  import { type IConfigStyles, type IInboxWidgetConfig } from './inbox_widget.types';
2
2
  /** Shortest gap between two server refreshes triggered by opening the widget. */
3
3
  export declare const SYNC_INTERVAL: number;
4
+ /** How long the copy confirmation stays on screen. */
5
+ export declare const COPY_TOAST_DURATION = 1500;
4
6
  export declare const STYLE_PREFIX = "pw-inbox";
5
7
  export declare const CONFIG_STYLES: Array<IConfigStyles>;
6
8
  export declare const TRIGGER_CONFIG_STYLES: Array<IConfigStyles>;
@@ -5,6 +5,7 @@ export type InboxWidgetHandlers = {
5
5
  onMessageClick: (code: string) => void;
6
6
  onMessageRemove: (code: string) => void;
7
7
  onSlideLinkClick: (code: string, link: string) => void;
8
+ onButtonClick: (code: string, index: number) => void;
8
9
  };
9
10
  export declare const toInboxWidgetMessage: (message: IInboxMessagePublic) => InboxWidgetMessage;
10
11
  export declare const renderInboxWidget: (container: HTMLElement, messages: Array<IInboxMessagePublic>, appearance: InboxWidgetAppearance, handlers: InboxWidgetHandlers) => void;