web-push-notifications 3.90.1 → 3.91.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.
@@ -0,0 +1,10 @@
1
+ import { type InboxWidgetAppearance, type InboxWidgetMessage } from '@pushwoosh/websdk-common/inbox';
2
+ import { type IInboxMessagePublic } from '../../models/InboxMessages.types';
3
+ /** Clicks the reader reports back; the widget owns the actions, this module only renders. */
4
+ export type InboxWidgetHandlers = {
5
+ onMessageClick: (code: string) => void;
6
+ onMessageRemove: (code: string) => void;
7
+ onSlideLinkClick: (code: string, link: string) => void;
8
+ };
9
+ export declare const toInboxWidgetMessage: (message: IInboxMessagePublic) => InboxWidgetMessage;
10
+ export declare const renderInboxWidget: (container: HTMLElement, messages: Array<IInboxMessagePublic>, appearance: InboxWidgetAppearance, handlers: InboxWidgetHandlers) => void;
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- import { type IInboxMessagePublic } from '../../models/InboxMessages.types';
2
- export declare const widgetTemplate: (title: string) => string;
3
- export declare const widgetTemplateEmpty: (emptyInboxIconUrl: string, emptyInboxTitle: string, emptyInboxText: string) => string;
4
- export declare const messageTemplate: (message: IInboxMessagePublic, activeSlide?: number) => string;