web-push-notifications 3.113.1 → 3.116.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/CHANGELOG.md +22 -0
- package/core/Pushwoosh.types.d.ts +1 -0
- package/models/NotificationPayload.types.d.ts +1 -0
- package/models/__tests__/NotificationPayload.buttons.test.d.ts +1 -0
- package/modules/Api/Api.d.ts +2 -2
- package/modules/ApiClient/ApiClient.types.d.ts +3 -1
- package/npm.js +1 -1
- package/npm.js.map +1 -1
- package/package.json +1 -1
- 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-subscription.js.map +1 -1
- package/widget-web-popups.js +1 -1
- package/widget-web-popups.js.map +1 -1
- package/widgets/WebPopups/WebPopupsWidget.d.ts +1 -1
- package/widgets/WebPopups/deviceSubmitApi.d.ts +1 -1
- package/widgets/WebPopups/renderer.d.ts +1 -1
|
@@ -30,7 +30,7 @@ export declare class WebPopupsWidget implements IWebPopupsPublicApi {
|
|
|
30
30
|
private badClickSelectors;
|
|
31
31
|
private openPopupsCount;
|
|
32
32
|
private bodyOverflowBeforeLock;
|
|
33
|
-
/** Built once from `pw`: the device-API side of the choice/rating
|
|
33
|
+
/** Built once from `pw`: the device-API side of the choice/rating slots. */
|
|
34
34
|
private readonly submitHandlers;
|
|
35
35
|
/** EMBEDDED campaigns: blocks inside page elements, outside the popup pipeline. */
|
|
36
36
|
private readonly embedded;
|
|
@@ -2,5 +2,5 @@ import { type WebPopupChoiceSubmitHandler, type WebPopupFormValuesSubmitHandler,
|
|
|
2
2
|
import { type Pushwoosh } from '../../core/Pushwoosh';
|
|
3
3
|
export declare function createChoiceSubmitHandler(pw: Pushwoosh): WebPopupChoiceSubmitHandler;
|
|
4
4
|
export declare function createRatingSubmitHandler(pw: Pushwoosh): WebPopupRatingSubmitHandler;
|
|
5
|
-
export declare function createSubscribeHandler(pw: Pushwoosh): () => Promise<WebPopupSubscribeResult>;
|
|
5
|
+
export declare function createSubscribeHandler(pw: Pushwoosh, campaignCode?: string): () => Promise<WebPopupSubscribeResult>;
|
|
6
6
|
export declare function createFormValuesSubmitHandler(pw: Pushwoosh, campaignCode: string): WebPopupFormValuesSubmitHandler;
|
|
@@ -3,11 +3,11 @@ import { type WebPopupChoiceSubmitHandler, type WebPopupColorSchemePref, type We
|
|
|
3
3
|
export type WebPopupDeviceHandlers = {
|
|
4
4
|
onSubmitChoice: WebPopupChoiceSubmitHandler;
|
|
5
5
|
onSubmitRating: WebPopupRatingSubmitHandler;
|
|
6
|
-
onRequestSubscribe: () => Promise<WebPopupSubscribeResult>;
|
|
7
6
|
products: WebPopupProductsHost;
|
|
8
7
|
};
|
|
9
8
|
export type WebPopupSubmitHandlers = WebPopupDeviceHandlers & {
|
|
10
9
|
onSubmitFormValues: WebPopupFormValuesSubmitHandler;
|
|
10
|
+
onRequestSubscribe: () => Promise<WebPopupSubscribeResult>;
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
13
|
* Parse stored popup json into the renderable model. Returns null for
|