@duckduckgo/autoconsent 12.6.0 → 12.7.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/addon-firefox/background.bundle.js +0 -1
  3. package/dist/addon-firefox/content.bundle.js +7 -5
  4. package/dist/addon-firefox/manifest.json +1 -1
  5. package/dist/addon-firefox/rules.json +76 -174
  6. package/dist/addon-mv3/background.bundle.js +0 -1
  7. package/dist/addon-mv3/content.bundle.js +7 -5
  8. package/dist/addon-mv3/manifest.json +1 -1
  9. package/dist/addon-mv3/rules.json +76 -174
  10. package/dist/autoconsent.cjs.js +5 -3
  11. package/dist/autoconsent.esm.js +5 -3
  12. package/dist/autoconsent.extra.cjs.js +7 -5
  13. package/dist/autoconsent.extra.esm.js +7 -5
  14. package/dist/autoconsent.playwright.js +83 -179
  15. package/lib/cmps/sourcepoint-frame.ts +11 -3
  16. package/lib/eval-snippets.ts +0 -1
  17. package/lib/filterlist-engine.ts +2 -2
  18. package/package.json +1 -1
  19. package/rules/autoconsent/aa.json +0 -6
  20. package/rules/autoconsent/affinity-serif-com.json +3 -17
  21. package/rules/autoconsent/consent-manager.json +36 -0
  22. package/rules/autoconsent/dpgmedia-nl.json +6 -6
  23. package/rules/autoconsent/ef-ccpa.json +29 -0
  24. package/rules/filterlist.txt +79 -418
  25. package/rules/rules.json +76 -174
  26. package/tests/aa.spec.ts +3 -1
  27. package/tests/admiral.spec.ts +1 -9
  28. package/tests/adroll.spec.ts +0 -2
  29. package/tests/aquasana-com.spec.ts +1 -5
  30. package/tests/consent-manager.spec.ts +3 -0
  31. package/tests/ef-ccpa.spec.ts +3 -0
  32. package/rules/autoconsent/192.json +0 -15
  33. package/rules/autoconsent/1password-com.json +0 -9
  34. package/rules/autoconsent/agolde-com.json +0 -9
  35. package/rules/autoconsent/almacmp.json +0 -13
  36. package/rules/autoconsent/altium-com.json +0 -9
  37. package/tests/192.spec.ts +0 -5
  38. package/tests/1password-com.spec.ts +0 -3
  39. package/tests/agolde-com.spec.ts +0 -3
  40. package/tests/almacmp.spec.ts +0 -3
  41. package/tests/altium-com.spec.ts +0 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duckduckgo/autoconsent",
3
- "version": "12.6.0",
3
+ "version": "12.7.0",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": {
@@ -16,12 +16,6 @@
16
16
  "optIn": [
17
17
  {
18
18
  "hide": "#aa_optoutmulti-Modal,#cookieBannerMessage"
19
- },
20
- {
21
- "waitForThenClick": "#aa_optoutmulti_checkBox"
22
- },
23
- {
24
- "waitForThenClick": "#aa_optoutmulti-Modal button.optoutmulti_button"
25
19
  }
26
20
  ],
27
21
  "optOut": [
@@ -2,26 +2,12 @@
2
2
  "name": "affinity.serif.com",
3
3
  "detectCmp": [
4
4
  {
5
- "exists": ".c-cookie-banner button[data-qa='allow-all-cookies']"
5
+ "exists": ".c-cookie-notice button[data-qa='allow-all-cookies']"
6
6
  }
7
7
  ],
8
- "detectPopup": [{ "visible": ".c-cookie-banner" }],
8
+ "detectPopup": [{ "visible": ".c-cookie-notice" }],
9
9
  "optIn": [{ "click": "button[data-qa=\"allow-all-cookies\"]" }],
10
- "optOut": [
11
- {
12
- "click": "button[data-qa=\"manage-cookies\"]"
13
- },
14
- {
15
- "waitFor": ".c-cookie-banner ~ [role=\"dialog\"]"
16
- },
17
- {
18
- "waitForThenClick": ".c-cookie-banner ~ [role=\"dialog\"] input[type=\"checkbox\"][value=\"true\"]",
19
- "all": true
20
- },
21
- {
22
- "click": ".c-cookie-banner ~ [role=\"dialog\"] .c-modal__action button"
23
- }
24
- ],
10
+ "optOut": [{ "click": "button[data-qa=\"reject-non-essentials\"]" }],
25
11
  "test": [
26
12
  {
27
13
  "wait": 500
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "consent-manager",
3
+ "cosmetic": false,
4
+ "runContext": {
5
+ "main": true,
6
+ "frame": false,
7
+ "urlPattern": "^https://ouraring\\.com"
8
+ },
9
+ "prehideSelectors": [],
10
+ "detectCmp": [
11
+ {
12
+ "exists": "[data-cy=\"consent-manager-banner\"]"
13
+ }
14
+ ],
15
+ "detectPopup": [
16
+ {
17
+ "visible": "[data-cy=\"consent-manager-banner\"]"
18
+ }
19
+ ],
20
+ "optIn": [
21
+ {
22
+ "waitForThenClick": "[data-cy=\"manage_cookies\"]"
23
+ },
24
+ {
25
+ "waitForThenClick": "[data-cy=\"consent-manager-preferences-allow-all\"]"
26
+ }
27
+ ],
28
+ "optOut": [
29
+ {
30
+ "waitForThenClick": "[data-cy=\"manage_cookies\"]"
31
+ },
32
+ {
33
+ "waitForThenClick": "[data-cy=\"consent-manager-preferences-deny-all\"]"
34
+ }
35
+ ]
36
+ }
@@ -1,27 +1,27 @@
1
1
  {
2
2
  "name": "dpgmedia-nl",
3
- "prehideSelectors": ["#pg-shadow-root-host"],
3
+ "prehideSelectors": ["#pg-root-shadow-host"],
4
4
  "detectCmp": [
5
5
  {
6
- "exists": "#pg-shadow-root-host"
6
+ "exists": "#pg-root-shadow-host"
7
7
  }
8
8
  ],
9
9
  "detectPopup": [
10
10
  {
11
- "visible": ["#pg-shadow-root-host", "#pg-modal"]
11
+ "visible": ["#pg-root-shadow-host", "#pg-modal"]
12
12
  }
13
13
  ],
14
14
  "optIn": [
15
15
  {
16
- "waitForThenClick": ["#pg-shadow-root-host", "#pg-accept-btn"]
16
+ "waitForThenClick": ["#pg-root-shadow-host", "#pg-accept-btn"]
17
17
  }
18
18
  ],
19
19
  "optOut": [
20
20
  {
21
- "waitForThenClick": ["#pg-shadow-root-host", "#pg-configure-btn"]
21
+ "waitForThenClick": ["#pg-root-shadow-host", "#pg-configure-btn"]
22
22
  },
23
23
  {
24
- "waitForThenClick": ["#pg-shadow-root-host", "#pg-reject-btn"]
24
+ "waitForThenClick": ["#pg-root-shadow-host", "#pg-reject-btn"]
25
25
  }
26
26
  ]
27
27
  }
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "ef-ccpa",
3
+ "vendorUrl": "https://eforms.com/",
4
+ "cosmetic": false,
5
+ "runContext": {
6
+ "urlPattern": "^https://(www\\.)?eforms\\.com"
7
+ },
8
+ "prehideSelectors": ["#ef-ccpa"],
9
+ "detectCmp": [
10
+ {
11
+ "exists": "#ef-ccpa"
12
+ }
13
+ ],
14
+ "detectPopup": [
15
+ {
16
+ "visible": "#ef-ccpa"
17
+ }
18
+ ],
19
+ "optIn": [
20
+ {
21
+ "waitForThenClick": "#ef-button-ccpa-agree"
22
+ }
23
+ ],
24
+ "optOut": [
25
+ {
26
+ "waitForThenClick": "#ef-button-ccpa-decline"
27
+ }
28
+ ]
29
+ }