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.
@@ -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 PopupFormsWidget {
2
+ export declare class WebPopupsWidget {
3
3
  private readonly pw;
4
4
  private isRecurringVisitor;
5
- private readonly loadedForms;
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 loadPopupForm;
14
+ private loadWebPopup;
15
15
  private renderForCurrentPage;
16
16
  private cancelPendingForUnmatchedPages;
17
17
  private subscribeToNavigation;
@@ -1,4 +1,4 @@
1
- export declare const POPUP_FORMS_WIDGET_NAMESPACE = "pushwoosh-popup-forms";
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";
@@ -0,0 +1,2 @@
1
+ import type { WebPopup } from './types';
2
+ export declare const getWebPopups: (features: unknown) => Array<WebPopup>;
@@ -0,0 +1,2 @@
1
+ import { type WebPopupContent } from './types';
2
+ export declare const renderWebPopup: (container: HTMLElement, content: WebPopupContent) => void;
@@ -1,7 +1,7 @@
1
- export type IPopupFormsConfig = {
1
+ export type IWebPopupsConfig = {
2
2
  enable: boolean;
3
3
  };
4
- export type PopupForm = {
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 PopupFormContent = {
13
+ export type WebPopupContent = {
14
14
  code: string;
15
15
  json: string;
16
16
  html: string | null;
@@ -1,2 +0,0 @@
1
- import type { PopupForm } from './types';
2
- export declare const getPopupForms: (features: unknown) => Array<PopupForm>;
@@ -1,2 +0,0 @@
1
- import { type PopupFormContent } from './types';
2
- export declare const renderPopupForm: (container: HTMLElement, content: PopupFormContent) => void;