@duckduckgo/autoconsent 14.83.0 → 14.84.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duckduckgo/autoconsent",
3
- "version": "14.83.0",
3
+ "version": "14.84.1",
4
4
  "description": "",
5
5
  "types": "./dist/types/web.d.ts",
6
6
  "exports": {
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "escaparium.ca",
3
+ "vendorUrl": "https://www.escaparium.ca/",
4
+ "runContext": {
5
+ "urlPattern": "^https://(www\\.)?escaparium\\.ca/"
6
+ },
7
+ "detectCmp": [
8
+ {
9
+ "exists": "div#klaro"
10
+ }
11
+ ],
12
+ "detectPopup": [
13
+ {
14
+ "visible": "xpath///div[contains(@class,'pointer-events-none')]//button[normalize-space()='Accept all' or normalize-space()='Tout accepter']"
15
+ }
16
+ ],
17
+ "optIn": [
18
+ {
19
+ "waitForThenClick": "xpath///button[normalize-space()='Accept all' or normalize-space()='Tout accepter']"
20
+ }
21
+ ],
22
+ "optOut": [
23
+ {
24
+ "waitForThenClick": "xpath///button[normalize-space()='Customize' or normalize-space()='Personnaliser']"
25
+ },
26
+ {
27
+ "waitForThenClick": "xpath///button[normalize-space()='Decline' or normalize-space()='Refuser']"
28
+ }
29
+ ],
30
+ "test": [
31
+ {
32
+ "cookieContains": "escaparium_cookie_consent_decided=1"
33
+ }
34
+ ]
35
+ }
@@ -5,7 +5,7 @@
5
5
  "runContext": {
6
6
  "urlPattern": "^https://(www\\.)?tesco\\.com/"
7
7
  },
8
- "prehideSelectors": ["[class*=CookieBanner__Sizer]"],
8
+ "prehideSelectors": ["[aria-label=consent-banner]"],
9
9
  "detectCmp": [
10
10
  {
11
11
  "exists": "[aria-label=consent-banner]"
@@ -18,7 +18,7 @@
18
18
  ],
19
19
  "optIn": [
20
20
  {
21
- "wait": 1000
21
+ "waitFor": "#onetrust-pc-sdk"
22
22
  },
23
23
  {
24
24
  "waitForThenClick": "xpath///button[contains(., 'Accept all')]"
@@ -26,10 +26,15 @@
26
26
  ],
27
27
  "optOut": [
28
28
  {
29
- "wait": 1000
29
+ "waitFor": "#onetrust-pc-sdk"
30
30
  },
31
31
  {
32
32
  "waitForThenClick": "xpath///button[contains(., 'Reject all')]"
33
33
  }
34
+ ],
35
+ "test": [
36
+ {
37
+ "cookieContains": "interactionCount=1"
38
+ }
34
39
  ]
35
40
  }