web-push-notifications 3.58.0 → 3.61.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/modules/Api/Api.d.ts +3 -0
- package/modules/ApiClient/ApiClient.d.ts +1 -0
- package/modules/ApiClient/ApiClient.types.d.ts +8 -1
- package/npm.js +1 -1
- package/npm.js.map +1 -1
- package/package.json +3 -3
- package/service-worker.js +1 -1
- package/service-worker.js.map +1 -1
- package/widget-inbox.js +1 -1
- package/widget-inbox.js.map +1 -1
- package/widget-subscribe-popup.js +1 -1
- package/widget-subscribe-popup.js.map +1 -1
- package/widget-subscription-button.js +1 -1
- package/widget-subscription-button.js.map +1 -1
- package/widget-subscription-prompt.js +1 -1
- package/widget-subscription-prompt.js.map +1 -1
- package/widget-web-popups.js +1 -1
- package/widget-web-popups.js.map +1 -1
- package/widgets/WebPopups/constants.d.ts +0 -2
- package/widgets/WebPopups/renderer.d.ts +15 -2
- package/pushwoosh-web-notifications.d.ts +0 -1
- package/pushwoosh-widget-inbox.d.ts +0 -1
- package/pushwoosh-widget-subscribe-popup.d.ts +0 -1
- package/pushwoosh-widget-subscription-button.d.ts +0 -1
- package/pushwoosh-widget-subscription-prompt.d.ts +0 -1
- package/pushwoosh-widget-web-popups.d.ts +0 -1
- package/widgets/WebPopups/helpers.d.ts +0 -2
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
export declare const WEB_POPUPS_WIDGET_NAMESPACE = "pushwoosh-web-popups";
|
|
2
|
-
export declare const DEFAULT_DOCUMENT_WIDTH = 600;
|
|
3
2
|
export declare const POPUP_HOST_Z_INDEX = 2147483647;
|
|
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,2 +1,15 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
|
|
1
|
+
import { type WebPopupParams } from 'smart-blocks-utils';
|
|
2
|
+
/**
|
|
3
|
+
* Parse stored popup json into the renderable model. Returns null for
|
|
4
|
+
* anything that is not a supported {version: 1, params} popup with at least
|
|
5
|
+
* one resolvable page — including legacy pre-engine content (no `version`
|
|
6
|
+
* field), which is deliberately unrenderable.
|
|
7
|
+
*/
|
|
8
|
+
export declare const parseWebPopupContent: (json: string) => WebPopupParams | null;
|
|
9
|
+
/**
|
|
10
|
+
* Mount the popup into the shadow-root container. The reader draws the whole
|
|
11
|
+
* chrome itself: page-dim overlay (click closes), fixed viewport placement,
|
|
12
|
+
* enter animation, the close button — and owns page switching for multi-page
|
|
13
|
+
* popups (buttons with a `page` action).
|
|
14
|
+
*/
|
|
15
|
+
export declare const renderWebPopup: (container: HTMLElement, params: WebPopupParams, onRequestClose: () => void) => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|