@duckduckgo/autoconsent 16.22.0 → 16.23.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duckduckgo/autoconsent",
3
- "version": "16.22.0",
3
+ "version": "16.23.0",
4
4
  "description": "",
5
5
  "types": "./dist/types/web.d.ts",
6
6
  "exports": {
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "check24",
3
+ "prehideSelectors": [".c24-cookie-consent-wrapper"],
4
+ "detectCmp": [
5
+ {
6
+ "exists": ".c24-cookie-consent-wrapper .c24-cookie-consent-functional"
7
+ }
8
+ ],
9
+ "detectPopup": [
10
+ {
11
+ "visible": ".c24-cookie-consent-notice"
12
+ }
13
+ ],
14
+ "optIn": [
15
+ {
16
+ "waitForThenClick": ".c24-cookie-consent-notice .c24-cookie-consent-button:not(.c24-cookie-consent-button-secondary)"
17
+ }
18
+ ],
19
+ "optOut": [
20
+ {
21
+ "waitForThenClick": ".c24-cookie-consent-wrapper .c24-cookie-consent-functional"
22
+ }
23
+ ],
24
+ "test": [
25
+ {
26
+ "visible": ".c24-cookie-consent-wrapper",
27
+ "check": "none"
28
+ }
29
+ ]
30
+ }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "paypal-us",
3
- "prehideSelectors": ["#ccpaCookieContent_wrapper, article.ppvx_modal--overpanel"],
4
- "detectCmp": [{ "exists": "#ccpaCookieBanner, .privacy-sheet-content" }],
5
- "detectPopup": [{ "visible": "#ccpaCookieBanner, .privacy-sheet-content" }],
3
+ "prehideSelectors": ["#ccpaCookieContent_wrapper, article.ppvx_modal--overpanel, #cookiePrefsModal"],
4
+ "detectCmp": [{ "exists": "#ccpaCookieBanner, .privacy-sheet-content, #cookiePrefsModal" }],
5
+ "detectPopup": [{ "visible": "#ccpaCookieBanner, .privacy-sheet-content, #cookiePrefsModal" }],
6
6
  "optIn": [{ "click": "#acceptAllButton" }],
7
7
  "optOut": [
8
8
  {
@@ -13,13 +13,27 @@
13
13
  "if": { "exists": "a#manageCookiesLink" },
14
14
  "then": [{ "click": "a#manageCookiesLink" }],
15
15
  "else": [
16
- { "waitForVisible": ".privacy-sheet-content #formContent" },
17
16
  {
18
- "click": "#formContent .cookiepref-11m2iee-checkbox_base input:checked",
19
- "all": true,
20
- "optional": true
21
- },
22
- { "click": ".cookieAction.saveCookie,.confirmCookie #submitCookiesBtn" }
17
+ "if": { "exists": "#cookiePrefsModal" },
18
+ "then": [
19
+ { "waitForVisible": "#cookiePrefsModal #submitCookiesBtn, .confirmCookie #submitCookiesBtn" },
20
+ {
21
+ "click": "#cookiePrefsModal input[type='checkbox']:checked",
22
+ "all": true,
23
+ "optional": true
24
+ },
25
+ { "click": "#cookiePrefsModal #submitCookiesBtn, .confirmCookie #submitCookiesBtn" }
26
+ ],
27
+ "else": [
28
+ { "waitForVisible": ".privacy-sheet-content #formContent" },
29
+ {
30
+ "click": "#formContent .cookiepref-11m2iee-checkbox_base input:checked",
31
+ "all": true,
32
+ "optional": true
33
+ },
34
+ { "click": ".cookieAction.saveCookie,.confirmCookie #submitCookiesBtn" }
35
+ ]
36
+ }
23
37
  ]
24
38
  }
25
39
  ]
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "uwv-nl",
3
+ "_metadata": {
4
+ "vendorUrl": "https://www.uwv.nl/"
5
+ },
6
+ "cosmetic": false,
7
+ "runContext": {
8
+ "main": true,
9
+ "frame": false,
10
+ "urlPattern": "^https?://(?:www\\.)?uwv\\.nl/"
11
+ },
12
+ "prehideSelectors": ["#js-pw-consent-wrapper bgl-modal[test-id='cookie-modal']"],
13
+ "detectCmp": [
14
+ {
15
+ "exists": "#js-pw-consent-wrapper bgl-modal[test-id='cookie-modal']"
16
+ }
17
+ ],
18
+ "detectPopup": [
19
+ {
20
+ "visible": "#js-pw-consent-wrapper [data-ta-id='pw-consent-rejectAllButton']"
21
+ }
22
+ ],
23
+ "optIn": [
24
+ {
25
+ "waitForThenClick": "#js-pw-consent-wrapper [data-ta-id='pw-consent-acceptAllButton']"
26
+ }
27
+ ],
28
+ "optOut": [
29
+ {
30
+ "waitForThenClick": "#js-pw-consent-wrapper [data-ta-id='pw-consent-rejectAllButton']"
31
+ }
32
+ ],
33
+ "test": [
34
+ {
35
+ "waitForVisible": "#js-pw-consent-wrapper [data-ta-id='pw-consent-rejectAllButton']",
36
+ "check": "none",
37
+ "timeout": 2000
38
+ }
39
+ ]
40
+ }