web-push-notifications 3.62.8 → 3.62.10

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.
@@ -20,6 +20,7 @@ export declare class WebPopupsWidget {
20
20
  private checkCanBeShownByDeviceTypeCondition;
21
21
  private checkCanBeShownByFrequencyCondition;
22
22
  private checkCanBeShownByMatchingPagesCondition;
23
+ private matchPageRule;
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 PageRuleOperator = 'EQUALS' | 'STARTS_WITH' | (string & {});
5
+ export type PageRule = {
6
+ path: string;
7
+ operator: PageRuleOperator;
8
+ };
4
9
  export type WebPopup = {
5
10
  code: string;
6
11
  popup_form_content_code?: string;
@@ -8,6 +13,8 @@ export type WebPopup = {
8
13
  device_type: 'ALL' | 'DESKTOP' | 'MOBILE';
9
14
  visitors_type: 'ALL' | 'NEW' | 'RECURRING';
10
15
  matching_pages: string[];
16
+ matching_page_rules?: PageRule[];
17
+ excluded_pages?: PageRule[];
11
18
  delay: number;
12
19
  frequency: 'ONCE' | 'ONCE_PER_SESSION' | 'EVERY_VISIT';
13
20
  };