web-push-notifications 3.62.8 → 3.62.9
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 +1 -1
- 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/WebPopupsWidget.d.ts +1 -0
- package/widgets/WebPopups/types.d.ts +6 -0
|
@@ -20,6 +20,7 @@ export declare class WebPopupsWidget {
|
|
|
20
20
|
private checkCanBeShownByDeviceTypeCondition;
|
|
21
21
|
private checkCanBeShownByFrequencyCondition;
|
|
22
22
|
private checkCanBeShownByMatchingPagesCondition;
|
|
23
|
+
private matchExcludedPage;
|
|
23
24
|
private checkCanBeShownByVisitorsTypeCondition;
|
|
24
25
|
private markAsShown;
|
|
25
26
|
private getSessionStorageKey;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
export type IWebPopupsConfig = {
|
|
2
2
|
enable: boolean;
|
|
3
3
|
};
|
|
4
|
+
export type ExcludedPageOperator = 'EQUALS' | 'STARTS_WITH' | (string & {});
|
|
5
|
+
export type ExcludedPage = {
|
|
6
|
+
path: string;
|
|
7
|
+
operator: ExcludedPageOperator;
|
|
8
|
+
};
|
|
4
9
|
export type WebPopup = {
|
|
5
10
|
code: string;
|
|
6
11
|
popup_form_content_code?: string;
|
|
@@ -8,6 +13,7 @@ export type WebPopup = {
|
|
|
8
13
|
device_type: 'ALL' | 'DESKTOP' | 'MOBILE';
|
|
9
14
|
visitors_type: 'ALL' | 'NEW' | 'RECURRING';
|
|
10
15
|
matching_pages: string[];
|
|
16
|
+
excluded_pages?: ExcludedPage[];
|
|
11
17
|
delay: number;
|
|
12
18
|
frequency: 'ONCE' | 'ONCE_PER_SESSION' | 'EVERY_VISIT';
|
|
13
19
|
};
|