web-push-notifications 3.62.11 → 3.62.12
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/npm.js +1 -1
- package/package.json +2 -2
- 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/widget-web-popups.js +1 -1
- package/widget-web-popups.js.map +1 -1
- package/widgets/WebPopups/constants.d.ts +1 -0
- package/widgets/WebPopups/renderer.d.ts +2 -1
- package/widgets/WebPopups/subscriptionFormApi.d.ts +13 -0
|
@@ -2,3 +2,4 @@ export declare const WEB_POPUPS_WIDGET_NAMESPACE = "pushwoosh-web-popups";
|
|
|
2
2
|
export declare const POPUP_HOST_Z_INDEX = 2147483647;
|
|
3
3
|
export declare const SUBSCRIPTION_FORMS_WIDGET_URL = "https://cdn.pushwoosh.com/subscription-forms/widget.js";
|
|
4
4
|
export declare const SUBSCRIPTION_FORMS_WIDGET_TAG = "pushwoosh-subscribe-widget";
|
|
5
|
+
export declare const SUBSCRIPTION_FORMS_API_URL = "https://subscription-form.svc-nue.pushwoosh.com/api/v1";
|
|
@@ -10,6 +10,7 @@ export declare const parseWebPopupContent: (json: string) => WebPopupParams | nu
|
|
|
10
10
|
* Mount the popup into the shadow-root container. The reader draws the whole
|
|
11
11
|
* chrome itself: page-dim overlay (click closes), fixed viewport placement,
|
|
12
12
|
* enter animation, the close button — and owns page switching for multi-page
|
|
13
|
-
* popups (buttons with a `page` action).
|
|
13
|
+
* popups (buttons with a `page` action). Email-subscription-form slots
|
|
14
|
+
* submit through the subscription-form service.
|
|
14
15
|
*/
|
|
15
16
|
export declare const renderWebPopup: (container: HTMLElement, params: WebPopupParams, onRequestClose: () => void) => void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type WebPopupFormSubmitHandler } from 'smart-blocks-utils';
|
|
2
|
+
/**
|
|
3
|
+
* The reader's `onSubmitForm` handler: POST the slot's payload to the bound
|
|
4
|
+
* form's submit endpoint. Throws on transport errors and unrecognized
|
|
5
|
+
* results — the form slot shows its generic retryable error then; the
|
|
6
|
+
* reader doesn't log, so the failure is recorded here before rethrowing.
|
|
7
|
+
*/
|
|
8
|
+
export declare const submitSubscriptionForm: WebPopupFormSubmitHandler;
|
|
9
|
+
/**
|
|
10
|
+
* Fire-and-forget view stat for a popup-embedded form — the denominator of
|
|
11
|
+
* the form's conversion rate. Never blocks or breaks the popup itself.
|
|
12
|
+
*/
|
|
13
|
+
export declare const recordSubscriptionFormView: (formCode: string, hwid: string) => void;
|