@duckduckgo/autoconsent 18.0.0 → 18.1.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 (42) hide show
  1. package/.github/workflows/ddg-release.yml +6 -3
  2. package/CHANGELOG.md +23 -0
  3. package/dist/addon-firefox/background.bundle.js +2 -1
  4. package/dist/addon-firefox/compact-rules.json +1 -1
  5. package/dist/addon-firefox/content.bundle.js +6 -8
  6. package/dist/addon-firefox/manifest.json +1 -1
  7. package/dist/addon-firefox/rule-index.json +1 -1
  8. package/dist/addon-firefox/rules.json +1 -1
  9. package/dist/addon-mv3/background.bundle.js +2 -1
  10. package/dist/addon-mv3/compact-rules.json +1 -1
  11. package/dist/addon-mv3/content.bundle.js +6 -8
  12. package/dist/addon-mv3/manifest.json +1 -1
  13. package/dist/addon-mv3/rule-index.json +1 -1
  14. package/dist/addon-mv3/rules.json +1 -1
  15. package/dist/autoconsent.cjs.js +6 -8
  16. package/dist/autoconsent.esm.js +6 -8
  17. package/dist/autoconsent.playwright.js +6 -8
  18. package/dist/autoconsent.standalone.js +7 -9
  19. package/dist/types/cmps/tiktok.d.ts +0 -2
  20. package/dist/types/eval-snippets.d.ts +1 -0
  21. package/lib/cmps/evidon.ts +5 -4
  22. package/lib/cmps/tiktok.ts +0 -5
  23. package/lib/eval-snippets.ts +1 -0
  24. package/package.json +1 -1
  25. package/rules/autoconsent/hmgroup-turbocookie.json +18 -0
  26. package/rules/autoconsent/hmrc-tracking-consent.json +40 -0
  27. package/rules/autoconsent/meta-cookie-dialog-v2.json +40 -0
  28. package/rules/autoconsent/reverb-gdpr-nag.json +18 -0
  29. package/rules/autoconsent/reverb.json +24 -0
  30. package/rules/autoconsent/zoho.json +23 -0
  31. package/rules/compact-rules.json +1 -1
  32. package/rules/rule-index.json +1 -1
  33. package/rules/rules.json +1 -1
  34. package/tests/evidon.spec.ts +2 -1
  35. package/tests/hmgroup-turbocookie.spec.ts +7 -0
  36. package/tests/hmrc-tracking-consent.spec.ts +7 -0
  37. package/tests/meta-cookie-dialog-v2.spec.ts +10 -0
  38. package/tests/reverb.spec.ts +7 -0
  39. package/tests/tiktok.spec.ts +2 -2
  40. package/tests/zoho.spec.ts +5 -0
  41. package/rules/generated/auto_GB_capcut.com_0.json +0 -28
  42. package/tests/generated/auto_GB_capcut.com_0.spec.ts +0 -2
@@ -4,7 +4,8 @@ generateCMPTests(
4
4
  'Evidon',
5
5
  [
6
6
  'https://www.crunchyroll.com/',
7
- 'https://www.kia.com/us/en', // "I agree" button is actually a decline button
7
+ 'https://www.computershare.com/',
8
+ 'https://www.motorola.com/', // barrier layout in the EU and UK
8
9
  ],
9
10
  {
10
11
  testOptIn: false,
@@ -0,0 +1,7 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('hmgroup-turbocookie', [
4
+ 'https://www2.hm.com/ja_jp/productpage.1374063001.html',
5
+ 'https://www2.hm.com/en_gb/index.html',
6
+ 'https://www.cos.com/en-gb',
7
+ ]);
@@ -0,0 +1,7 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('hmrc-tracking-consent', [
4
+ 'https://www.tax.service.gov.uk/guidance/apply-to-pay-ni-contributions-abroad/start/about-this-form',
5
+ 'https://www.tax.service.gov.uk/estimate-paye-take-home-pay/your-pay',
6
+ 'https://www.tax.service.gov.uk/ask-hmrc/chat/self-assessment',
7
+ ]);
@@ -0,0 +1,10 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('meta-cookie-dialog-v2', ['https://www.meta.com/'], {
4
+ skipRegions: ['US'],
5
+ });
6
+
7
+ generateCMPTests('meta-cookie-dialog-v2', ['https://www.meta.com/'], {
8
+ mobile: true,
9
+ skipRegions: ['US'],
10
+ });
@@ -0,0 +1,7 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ // rejecting reloads the page, where reverb-gdpr-nag closes the remaining EU notice
4
+ generateCMPTests('reverb', ['https://reverb.com/marketplace'], {
5
+ testSelfTest: false,
6
+ expectedRuns: 2,
7
+ });
@@ -1,10 +1,10 @@
1
1
  import generateCMPTests from '../playwright/runner';
2
2
 
3
- generateCMPTests('tiktok.com', ['https://tiktok.com/'], {
3
+ generateCMPTests('tiktok.com', ['https://tiktok.com/', 'https://www.capcut.com/'], {
4
4
  skipRegions: ['US'],
5
5
  });
6
6
 
7
- generateCMPTests('tiktok.com', ['https://tiktok.com/'], {
7
+ generateCMPTests('tiktok.com', ['https://tiktok.com/', 'https://www.capcut.com/'], {
8
8
  skipRegions: ['US'],
9
9
  mobile: true,
10
10
  });
@@ -0,0 +1,5 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('zoho', ['https://www.zoho.com/', 'https://www.zohocorp.com/', 'https://www.arattai.in/'], {
4
+ skipRegions: ['US'],
5
+ });
@@ -1,28 +0,0 @@
1
- {
2
- "name": "auto_GB_capcut.com_0",
3
- "vendorUrl": "https://www.capcut.com/",
4
- "cosmetic": false,
5
- "runContext": {
6
- "main": true,
7
- "frame": false,
8
- "urlPattern": "^https?://(www\\.)?capcut\\.com/"
9
- },
10
- "prehideSelectors": [],
11
- "detectCmp": [
12
- {
13
- "exists": "body:not([id]) > div#root > div:nth-child(3):not([id]) > div:nth-child(3):not([id]) > button:nth-child(1):not([id])"
14
- }
15
- ],
16
- "detectPopup": [
17
- {
18
- "visible": "body:not([id]) > div#root > div:nth-child(3):not([id]) > div:nth-child(3):not([id]) > button:nth-child(1):not([id])"
19
- }
20
- ],
21
- "optIn": [],
22
- "optOut": [
23
- {
24
- "waitForThenClick": "body:not([id]) > div#root > div:nth-child(3):not([id]) > div:nth-child(3):not([id]) > button:nth-child(1):not([id])",
25
- "comment": "Decline all"
26
- }
27
- ]
28
- }
@@ -1,2 +0,0 @@
1
- import generateCMPTests from '../../playwright/runner';
2
- generateCMPTests('auto_GB_capcut.com_0', ['https://www.capcut.com/'], { testOptIn: false, testSelfTest: false, onlyRegions: ['GB'] });