web-push-notifications 3.55.0 → 3.56.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.
- package/core/Pushwoosh.types.d.ts +2 -2
- package/core/events.types.d.ts +2 -2
- package/modules/Data/Data.d.ts +2 -2
- package/npm.js +1 -1
- package/npm.js.map +1 -1
- package/package.json +1 -1
- package/pushwoosh-web-notifications.d.ts +1 -0
- package/pushwoosh-widget-inbox.d.ts +1 -0
- package/pushwoosh-widget-subscribe-popup.d.ts +1 -0
- package/pushwoosh-widget-subscription-button.d.ts +1 -0
- package/pushwoosh-widget-subscription-prompt.d.ts +1 -0
- package/pushwoosh-widget-web-popups.d.ts +1 -0
- package/service-worker.js +1 -1
- package/service-worker.js.map +1 -1
- package/widget-web-popups.d.ts +1 -0
- package/widgets/{PopupForms/PopupFormsWidget.d.ts → WebPopups/WebPopupsWidget.d.ts} +3 -3
- package/widgets/{PopupForms → WebPopups}/constants.d.ts +1 -1
- package/widgets/WebPopups/helpers.d.ts +2 -0
- package/widgets/WebPopups/renderer.d.ts +2 -0
- package/widgets/{PopupForms → WebPopups}/types.d.ts +3 -3
- package/widgets/PopupForms/helpers.d.ts +0 -2
- package/widgets/PopupForms/renderer.d.ts +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WebPopupsWidget } from './widgets/WebPopups/WebPopupsWidget';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type Pushwoosh } from '../../core/Pushwoosh';
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class WebPopupsWidget {
|
|
3
3
|
private readonly pw;
|
|
4
4
|
private isRecurringVisitor;
|
|
5
|
-
private readonly
|
|
5
|
+
private readonly loadedPopups;
|
|
6
6
|
private readonly pendingTimers;
|
|
7
7
|
private isNavigationSubscribed;
|
|
8
8
|
private openPopupsCount;
|
|
@@ -11,7 +11,7 @@ export declare class PopupFormsWidget {
|
|
|
11
11
|
private unlockBodyScroll;
|
|
12
12
|
constructor(pw: Pushwoosh);
|
|
13
13
|
run(): Promise<void>;
|
|
14
|
-
private
|
|
14
|
+
private loadWebPopup;
|
|
15
15
|
private renderForCurrentPage;
|
|
16
16
|
private cancelPendingForUnmatchedPages;
|
|
17
17
|
private subscribeToNavigation;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const WEB_POPUPS_WIDGET_NAMESPACE = "pushwoosh-web-popups";
|
|
2
2
|
export declare const DEFAULT_DOCUMENT_WIDTH = 600;
|
|
3
3
|
export declare const POPUP_HOST_Z_INDEX = 2147483647;
|
|
4
4
|
export declare const POPUP_STYLES = "\n .close {\n position: fixed;\n top: 16px;\n right: 16px;\n width: 32px;\n height: 32px;\n padding: 0;\n border: none;\n border-radius: 50%;\n background: rgba(255, 255, 255, 0.9);\n cursor: pointer;\n font-size: 24px;\n line-height: 1;\n color: #333;\n }\n";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type IWebPopupsConfig = {
|
|
2
2
|
enable: boolean;
|
|
3
3
|
};
|
|
4
|
-
export type
|
|
4
|
+
export type WebPopup = {
|
|
5
5
|
code: string;
|
|
6
6
|
popup_form_content_code: string;
|
|
7
7
|
device_type: 'ALL' | 'DESKTOP' | 'MOBILE';
|
|
@@ -10,7 +10,7 @@ export type PopupForm = {
|
|
|
10
10
|
delay: number;
|
|
11
11
|
frequency: 'ONCE' | 'ONCE_PER_SESSION' | 'EVERY_VISIT';
|
|
12
12
|
};
|
|
13
|
-
export type
|
|
13
|
+
export type WebPopupContent = {
|
|
14
14
|
code: string;
|
|
15
15
|
json: string;
|
|
16
16
|
html: string | null;
|