@duckduckgo/autoconsent 5.0.1 → 5.2.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/CHANGELOG.md CHANGED
@@ -1,3 +1,46 @@
1
+ # v5.2.0 (Thu Aug 03 2023)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - Bump tslib from 2.5.3 to 2.6.1 [#217](https://github.com/duckduckgo/autoconsent/pull/217) ([@dependabot[bot]](https://github.com/dependabot[bot]))
6
+ - Bump @puppeteer/replay from 2.11.0 to 2.13.2 [#216](https://github.com/duckduckgo/autoconsent/pull/216) ([@dependabot[bot]](https://github.com/dependabot[bot]))
7
+ - Bump eslint from 8.45.0 to 8.46.0 [#215](https://github.com/duckduckgo/autoconsent/pull/215) ([@dependabot[bot]](https://github.com/dependabot[bot]))
8
+
9
+ #### 🐛 Bug Fix
10
+
11
+ - Bump @types/chrome from 0.0.241 to 0.0.242 [#218](https://github.com/duckduckgo/autoconsent/pull/218) ([@dependabot[bot]](https://github.com/dependabot[bot]))
12
+ - Add rules for twitch.tv and kleinanzeigen.de [#220](https://github.com/duckduckgo/autoconsent/pull/220) ([@muodov](https://github.com/muodov))
13
+
14
+ #### Authors: 2
15
+
16
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
17
+ - Maxim Tsoy ([@muodov](https://github.com/muodov))
18
+
19
+ ---
20
+
21
+ # v5.1.0 (Mon Jul 31 2023)
22
+
23
+ #### 🚀 Enhancement
24
+
25
+ - Bump @playwright/test from 1.35.1 to 1.36.2 [#213](https://github.com/duckduckgo/autoconsent/pull/213) ([@dependabot[bot]](https://github.com/dependabot[bot]))
26
+
27
+ #### 🐛 Bug Fix
28
+
29
+ - Fix usercentrics-api [#214](https://github.com/duckduckgo/autoconsent/pull/214) ([@muodov](https://github.com/muodov))
30
+
31
+ #### 🔩 Dependency Updates
32
+
33
+ - Bump eslint from 8.43.0 to 8.45.0 [#208](https://github.com/duckduckgo/autoconsent/pull/208) ([@dependabot[bot]](https://github.com/dependabot[bot]))
34
+ - Bump @types/chrome from 0.0.237 to 0.0.241 [#206](https://github.com/duckduckgo/autoconsent/pull/206) ([@dependabot[bot]](https://github.com/dependabot[bot]))
35
+ - Bump @typescript-eslint/parser from 5.60.0 to 5.62.0 [#203](https://github.com/duckduckgo/autoconsent/pull/203) ([@dependabot[bot]](https://github.com/dependabot[bot]))
36
+
37
+ #### Authors: 2
38
+
39
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
40
+ - Maxim Tsoy ([@muodov](https://github.com/muodov))
41
+
42
+ ---
43
+
1
44
  # v5.0.1 (Tue Jul 18 2023)
2
45
 
3
46
  #### 🐛 Bug Fix
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 2,
3
3
  "name": "Autoconsent",
4
- "version": "2023.7.13",
4
+ "version": "2023.7.31",
5
5
  "background": {
6
6
  "scripts": [
7
7
  "background.bundle.js"
@@ -2408,12 +2408,12 @@
2408
2408
  ],
2409
2409
  "detectCmp": [
2410
2410
  {
2411
- "exists": ".consent-banner"
2411
+ "exists": ".consent-banner .consent-banner__actions"
2412
2412
  }
2413
2413
  ],
2414
2414
  "detectPopup": [
2415
2415
  {
2416
- "exists": ".consent-banner"
2416
+ "visible": ".consent-banner .consent-banner__actions"
2417
2417
  }
2418
2418
  ],
2419
2419
  "optIn": [
@@ -2517,6 +2517,73 @@
2517
2517
  ],
2518
2518
  "test": []
2519
2519
  },
2520
+ {
2521
+ "name": "kleinanzeigen-de",
2522
+ "runContext": {
2523
+ "urlPattern": "^https?://(www\\.)?kleinanzeigen\\.de"
2524
+ },
2525
+ "prehideSelectors": [
2526
+ "#gdpr-banner-container"
2527
+ ],
2528
+ "detectCmp": [
2529
+ {
2530
+ "any": [
2531
+ {
2532
+ "exists": "#gdpr-banner-container #gdpr-banner [data-testid=gdpr-banner-cmp-button]"
2533
+ },
2534
+ {
2535
+ "exists": "#ConsentManagementPage"
2536
+ }
2537
+ ]
2538
+ }
2539
+ ],
2540
+ "detectPopup": [
2541
+ {
2542
+ "any": [
2543
+ {
2544
+ "visible": "#gdpr-banner-container #gdpr-banner [data-testid=gdpr-banner-cmp-button]"
2545
+ },
2546
+ {
2547
+ "visible": "#ConsentManagementPage"
2548
+ }
2549
+ ]
2550
+ }
2551
+ ],
2552
+ "optIn": [
2553
+ {
2554
+ "if": {
2555
+ "exists": "#gdpr-banner-container #gdpr-banner"
2556
+ },
2557
+ "then": [
2558
+ {
2559
+ "click": "#gdpr-banner-container #gdpr-banner [data-testid=gdpr-banner-accept]"
2560
+ }
2561
+ ],
2562
+ "else": [
2563
+ {
2564
+ "click": "#ConsentManagementPage .Button-primary"
2565
+ }
2566
+ ]
2567
+ }
2568
+ ],
2569
+ "optOut": [
2570
+ {
2571
+ "if": {
2572
+ "exists": "#gdpr-banner-container #gdpr-banner"
2573
+ },
2574
+ "then": [
2575
+ {
2576
+ "click": "#gdpr-banner-container #gdpr-banner [data-testid=gdpr-banner-cmp-button]"
2577
+ }
2578
+ ],
2579
+ "else": [
2580
+ {
2581
+ "click": "#ConsentManagementPage .Button-secondary"
2582
+ }
2583
+ ]
2584
+ }
2585
+ ]
2586
+ },
2520
2587
  {
2521
2588
  "name": "linkedin.com",
2522
2589
  "prehideSelectors": [
@@ -4291,6 +4358,55 @@
4291
4358
  }
4292
4359
  ]
4293
4360
  },
4361
+ {
4362
+ "name": "twitch.tv",
4363
+ "runContext": {
4364
+ "urlPattern": "^https?://(www\\.)?twitch\\.tv"
4365
+ },
4366
+ "prehideSelectors": [
4367
+ "div:has(> .consent-banner .consent-banner__content--gdpr-v2),.ReactModalPortal:has([data-a-target=consent-modal-save])"
4368
+ ],
4369
+ "detectCmp": [
4370
+ {
4371
+ "exists": ".consent-banner .consent-banner__content--gdpr-v2"
4372
+ }
4373
+ ],
4374
+ "detectPopup": [
4375
+ {
4376
+ "visible": ".consent-banner .consent-banner__content--gdpr-v2"
4377
+ }
4378
+ ],
4379
+ "optIn": [
4380
+ {
4381
+ "click": "button[data-a-target=\"consent-banner-accept\"]"
4382
+ }
4383
+ ],
4384
+ "optOut": [
4385
+ {
4386
+ "hide": [
4387
+ "div:has(> .consent-banner .consent-banner__content--gdpr-v2)"
4388
+ ]
4389
+ },
4390
+ {
4391
+ "click": "button[data-a-target=\"consent-banner-manage-preferences\"]"
4392
+ },
4393
+ {
4394
+ "waitFor": "input[type=checkbox][data-a-target=tw-checkbox]"
4395
+ },
4396
+ {
4397
+ "click": "input[type=checkbox][data-a-target=tw-checkbox][checked]:not([disabled])",
4398
+ "all": true,
4399
+ "optional": true
4400
+ },
4401
+ {
4402
+ "waitForThenClick": "[data-a-target=consent-modal-save]"
4403
+ },
4404
+ {
4405
+ "waitForVisible": ".ReactModalPortal:has([data-a-target=consent-modal-save])",
4406
+ "check": "none"
4407
+ }
4408
+ ]
4409
+ },
4294
4410
  {
4295
4411
  "name": "twitter",
4296
4412
  "runContext": {
@@ -4472,6 +4588,12 @@
4472
4588
  "detectPopup": [
4473
4589
  {
4474
4590
  "eval": "typeof UC_UI === 'object'"
4591
+ },
4592
+ {
4593
+ "exists": [
4594
+ "#usercentrics-root",
4595
+ "[data-testid=uc-container]"
4596
+ ]
4475
4597
  }
4476
4598
  ],
4477
4599
  "optIn": [
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "Autoconsent",
4
- "version": "2023.7.13",
4
+ "version": "2023.7.31",
5
5
  "background": {
6
6
  "service_worker": "background.bundle.js"
7
7
  },
@@ -2408,12 +2408,12 @@
2408
2408
  ],
2409
2409
  "detectCmp": [
2410
2410
  {
2411
- "exists": ".consent-banner"
2411
+ "exists": ".consent-banner .consent-banner__actions"
2412
2412
  }
2413
2413
  ],
2414
2414
  "detectPopup": [
2415
2415
  {
2416
- "exists": ".consent-banner"
2416
+ "visible": ".consent-banner .consent-banner__actions"
2417
2417
  }
2418
2418
  ],
2419
2419
  "optIn": [
@@ -2517,6 +2517,73 @@
2517
2517
  ],
2518
2518
  "test": []
2519
2519
  },
2520
+ {
2521
+ "name": "kleinanzeigen-de",
2522
+ "runContext": {
2523
+ "urlPattern": "^https?://(www\\.)?kleinanzeigen\\.de"
2524
+ },
2525
+ "prehideSelectors": [
2526
+ "#gdpr-banner-container"
2527
+ ],
2528
+ "detectCmp": [
2529
+ {
2530
+ "any": [
2531
+ {
2532
+ "exists": "#gdpr-banner-container #gdpr-banner [data-testid=gdpr-banner-cmp-button]"
2533
+ },
2534
+ {
2535
+ "exists": "#ConsentManagementPage"
2536
+ }
2537
+ ]
2538
+ }
2539
+ ],
2540
+ "detectPopup": [
2541
+ {
2542
+ "any": [
2543
+ {
2544
+ "visible": "#gdpr-banner-container #gdpr-banner [data-testid=gdpr-banner-cmp-button]"
2545
+ },
2546
+ {
2547
+ "visible": "#ConsentManagementPage"
2548
+ }
2549
+ ]
2550
+ }
2551
+ ],
2552
+ "optIn": [
2553
+ {
2554
+ "if": {
2555
+ "exists": "#gdpr-banner-container #gdpr-banner"
2556
+ },
2557
+ "then": [
2558
+ {
2559
+ "click": "#gdpr-banner-container #gdpr-banner [data-testid=gdpr-banner-accept]"
2560
+ }
2561
+ ],
2562
+ "else": [
2563
+ {
2564
+ "click": "#ConsentManagementPage .Button-primary"
2565
+ }
2566
+ ]
2567
+ }
2568
+ ],
2569
+ "optOut": [
2570
+ {
2571
+ "if": {
2572
+ "exists": "#gdpr-banner-container #gdpr-banner"
2573
+ },
2574
+ "then": [
2575
+ {
2576
+ "click": "#gdpr-banner-container #gdpr-banner [data-testid=gdpr-banner-cmp-button]"
2577
+ }
2578
+ ],
2579
+ "else": [
2580
+ {
2581
+ "click": "#ConsentManagementPage .Button-secondary"
2582
+ }
2583
+ ]
2584
+ }
2585
+ ]
2586
+ },
2520
2587
  {
2521
2588
  "name": "linkedin.com",
2522
2589
  "prehideSelectors": [
@@ -4291,6 +4358,55 @@
4291
4358
  }
4292
4359
  ]
4293
4360
  },
4361
+ {
4362
+ "name": "twitch.tv",
4363
+ "runContext": {
4364
+ "urlPattern": "^https?://(www\\.)?twitch\\.tv"
4365
+ },
4366
+ "prehideSelectors": [
4367
+ "div:has(> .consent-banner .consent-banner__content--gdpr-v2),.ReactModalPortal:has([data-a-target=consent-modal-save])"
4368
+ ],
4369
+ "detectCmp": [
4370
+ {
4371
+ "exists": ".consent-banner .consent-banner__content--gdpr-v2"
4372
+ }
4373
+ ],
4374
+ "detectPopup": [
4375
+ {
4376
+ "visible": ".consent-banner .consent-banner__content--gdpr-v2"
4377
+ }
4378
+ ],
4379
+ "optIn": [
4380
+ {
4381
+ "click": "button[data-a-target=\"consent-banner-accept\"]"
4382
+ }
4383
+ ],
4384
+ "optOut": [
4385
+ {
4386
+ "hide": [
4387
+ "div:has(> .consent-banner .consent-banner__content--gdpr-v2)"
4388
+ ]
4389
+ },
4390
+ {
4391
+ "click": "button[data-a-target=\"consent-banner-manage-preferences\"]"
4392
+ },
4393
+ {
4394
+ "waitFor": "input[type=checkbox][data-a-target=tw-checkbox]"
4395
+ },
4396
+ {
4397
+ "click": "input[type=checkbox][data-a-target=tw-checkbox][checked]:not([disabled])",
4398
+ "all": true,
4399
+ "optional": true
4400
+ },
4401
+ {
4402
+ "waitForThenClick": "[data-a-target=consent-modal-save]"
4403
+ },
4404
+ {
4405
+ "waitForVisible": ".ReactModalPortal:has([data-a-target=consent-modal-save])",
4406
+ "check": "none"
4407
+ }
4408
+ ]
4409
+ },
4294
4410
  {
4295
4411
  "name": "twitter",
4296
4412
  "runContext": {
@@ -4472,6 +4588,12 @@
4472
4588
  "detectPopup": [
4473
4589
  {
4474
4590
  "eval": "typeof UC_UI === 'object'"
4591
+ },
4592
+ {
4593
+ "exists": [
4594
+ "#usercentrics-root",
4595
+ "[data-testid=uc-container]"
4596
+ ]
4475
4597
  }
4476
4598
  ],
4477
4599
  "optIn": [