web-push-notifications 3.78.0 → 3.80.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/npm.js +1 -1
- package/package.json +2 -2
- package/service-worker.js +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 +2 -1
- package/widgets/WebPopups/renderer.d.ts +2 -1
|
@@ -15,7 +15,7 @@ export declare class WebPopupsWidget implements IWebPopupsPublicApi {
|
|
|
15
15
|
private isNavigationSubscribed;
|
|
16
16
|
private openPopupsCount;
|
|
17
17
|
private bodyOverflowBeforeLock;
|
|
18
|
-
/** Built once from `pw`: the device-API side of the choice/rating slots. */
|
|
18
|
+
/** Built once from `pw`: the device-API side of the choice/rating/subscribe slots. */
|
|
19
19
|
private readonly submitHandlers;
|
|
20
20
|
private readyResolve;
|
|
21
21
|
private readonly readyPromise;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { type WebPopupChoiceSubmitHandler, type WebPopupRatingSubmitHandler } from 'smart-blocks-utils';
|
|
1
|
+
import { type WebPopupChoiceSubmitHandler, type WebPopupRatingSubmitHandler, type WebPopupSubscribeResult } from 'smart-blocks-utils';
|
|
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>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { type WebPopupChoiceSubmitHandler, type WebPopupColorSchemePref, type WebPopupParams, type WebPopupRatingSubmitHandler } from 'smart-blocks-utils';
|
|
1
|
+
import { type WebPopupChoiceSubmitHandler, type WebPopupColorSchemePref, type WebPopupParams, type WebPopupRatingSubmitHandler, type WebPopupSubscribeResult } from 'smart-blocks-utils';
|
|
2
2
|
/** The device-API handlers, passed in rather than imported: this module renders, it doesn't know the core. */
|
|
3
3
|
export type WebPopupSubmitHandlers = {
|
|
4
4
|
onSubmitChoice: WebPopupChoiceSubmitHandler;
|
|
5
5
|
onSubmitRating: WebPopupRatingSubmitHandler;
|
|
6
|
+
onRequestSubscribe: () => Promise<WebPopupSubscribeResult>;
|
|
6
7
|
};
|
|
7
8
|
/**
|
|
8
9
|
* Parse stored popup json into the renderable model. Returns null for
|