@duckduckgo/autoconsent 16.34.0 → 16.35.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.34.0",
3
+ "version": "16.35.0",
4
4
  "description": "",
5
5
  "types": "./dist/types/web.d.ts",
6
6
  "exports": {
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "coolblue",
3
+ "_metadata": {
4
+ "vendorUrl": "https://www.coolblue.nl/"
5
+ },
6
+ "cosmetic": false,
7
+ "runContext": {
8
+ "main": true,
9
+ "frame": false
10
+ },
11
+ "prehideSelectors": ["dialog:has(#cookie-banner-2025-form)"],
12
+ "detectCmp": [
13
+ {
14
+ "exists": "#cookie-banner-2025-form"
15
+ }
16
+ ],
17
+ "detectPopup": [
18
+ {
19
+ "visible": "button[form=\"cookie-banner-2025-form\"][name=\"accept_cookie\"]"
20
+ }
21
+ ],
22
+ "optIn": [
23
+ {
24
+ "waitForThenClick": "button[form=\"cookie-banner-2025-form\"][name=\"accept_cookie\"][value=\"all_categories\"]"
25
+ }
26
+ ],
27
+ "optOut": [
28
+ {
29
+ "comment": "Submits the banner with only the pre-checked strictly necessary categories",
30
+ "waitForThenClick": "button[form=\"cookie-banner-2025-form\"][name=\"accept_cookie\"][value=\"selection\"]"
31
+ }
32
+ ]
33
+ }
@@ -6,6 +6,7 @@
6
6
  "urlPattern": "^https://([a-z]*\\.)?postnl\\.nl/"
7
7
  },
8
8
  "prehideSelectors": ["pnl-cookie-wall-widget"],
9
+ "minimumRuleStepVersion": 2,
9
10
  "detectCmp": [
10
11
  {
11
12
  "exists": "pnl-cookie-wall-widget"
@@ -13,17 +14,41 @@
13
14
  ],
14
15
  "detectPopup": [
15
16
  {
16
- "visible": "pnl-cookie-wall-widget"
17
+ "visible": ["pnl-cookie-wall-widget", ".pnl-cookie-wall"]
17
18
  }
18
19
  ],
19
20
  "optIn": [
20
21
  {
21
- "waitForThenClick": ["pnl-cookie-wall-widget", "button.pci-button--primary"]
22
+ "waitForThenClick": ["pnl-cookie-wall-widget", ".cookie-overview__footer button.stamp-button--variant-primary"]
23
+ },
24
+ {
25
+ "waitForVisible": ["pnl-cookie-wall-widget", ".pnl-cookie-wall"],
26
+ "check": "none",
27
+ "timeout": 3000,
28
+ "optional": true
29
+ },
30
+ {
31
+ "comment": "the wall locks and dims body via inline styles, and sometimes fails to restore them",
32
+ "setStyle": "",
33
+ "selector": "body",
34
+ "optional": true
22
35
  }
23
36
  ],
24
37
  "optOut": [
25
38
  {
26
- "waitForThenClick": ["pnl-cookie-wall-widget", "button.pci-button--secondary"]
39
+ "waitForThenClick": ["pnl-cookie-wall-widget", ".cookie-overview__footer button.stamp-button--variant-secondary:last-child"]
40
+ },
41
+ {
42
+ "waitForVisible": ["pnl-cookie-wall-widget", ".pnl-cookie-wall"],
43
+ "check": "none",
44
+ "timeout": 3000,
45
+ "optional": true
46
+ },
47
+ {
48
+ "comment": "the wall locks and dims body via inline styles, and sometimes fails to restore them",
49
+ "setStyle": "",
50
+ "selector": "body",
51
+ "optional": true
27
52
  }
28
53
  ],
29
54
  "test": [
@@ -17,14 +17,19 @@
17
17
  {
18
18
  "if": { "exists": "[data-a-target=\"consent-banner-accept\"]" },
19
19
  "then": [
20
- { "click": "[data-a-target=\"consent-banner\"] button:not([data-a-target])" },
20
+ {
21
+ "waitForThenClick": "[data-a-target=\"consent-banner\"] button:not([data-a-target])",
22
+ "retry": 3,
23
+ "retryInterval": 1000
24
+ },
21
25
  { "waitForVisible": "[data-a-target=\"consent-banner\"]", "check": "none" }
22
26
  ],
23
27
  "else": [
24
- { "click": "button[data-a-target=\"consent-banner-manage-preferences\"]" },
25
- { "waitFor": "input[type=checkbox][data-a-target=tw-checkbox]" },
28
+ { "waitForThenClick": "button[data-a-target=\"consent-banner-manage-preferences\"]" },
29
+ { "waitFor": "input[type=checkbox][data-a-target=tw-checkbox]:not([disabled])" },
26
30
  {
27
31
  "click": "input[type=checkbox][data-a-target=tw-checkbox]:not(:checked):not([disabled])",
32
+ "all": true,
28
33
  "optional": true
29
34
  },
30
35
  { "waitForThenClick": "[data-a-target=consent-modal-save]" },