@duckduckgo/autoconsent 6.1.0 → 6.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.
@@ -19,6 +19,7 @@ export const snippets = {
19
19
 
20
20
  // declarative rules
21
21
  EVAL_ADROLL_0: () => !document.cookie.includes('__adroll_fpc'),
22
+ EVAL_ALMACMP_0: () => document.cookie.includes('"name":"Google","consent":false'),
22
23
  EVAL_AFFINITY_SERIF_COM_0: () => document.cookie.includes('serif_manage_cookies_viewed') && !document.cookie.includes('serif_allow_analytics'),
23
24
  EVAL_AXEPTIO_0: () => document.cookie.includes('axeptio_authorized_vendors=%2C%2C'),
24
25
  EVAL_BING_0: () => document.cookie.includes('AL=0') && document.cookie.includes('AD=0') && document.cookie.includes('SM=0'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duckduckgo/autoconsent",
3
- "version": "6.1.0",
3
+ "version": "6.2.0",
4
4
  "description": "",
5
5
  "main": "dist/autoconsent.cjs.js",
6
6
  "module": "dist/autoconsent.esm.js",
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "almacmp",
3
+ "prehideSelectors": ["#alma-cmpv2-container"],
4
+ "detectCmp": [{ "exists": "#alma-cmpv2-container" }],
5
+ "detectPopup": [{ "visible": "#alma-cmpv2-container #almacmp-modal-layer1" }],
6
+ "optIn": [ { "waitForThenClick": "#alma-cmpv2-container #almacmp-modal-layer1 #almacmp-modalConfirmBtn" } ],
7
+ "optOut": [
8
+ { "waitForThenClick": "#alma-cmpv2-container #almacmp-modal-layer1 #almacmp-modalSettingBtn" },
9
+ { "waitFor": "#alma-cmpv2-container #almacmp-modal-layer2" },
10
+ { "waitForThenClick": "#alma-cmpv2-container #almacmp-modal-layer2 #almacmp-reject-all-layer2" }
11
+ ],
12
+ "test": [
13
+ { "eval": "EVAL_ALMACMP_0" }
14
+ ]
15
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "tropicfeel-com",
3
+ "prehideSelectors": ["#shopify-section-cookies-controller"],
4
+ "detectCmp": [{ "exists": "#shopify-section-cookies-controller" }],
5
+ "detectPopup": [{
6
+ "visible": "#shopify-section-cookies-controller #cookies-controller-main-pane",
7
+ "check": "any"
8
+ }],
9
+ "optIn": [
10
+ { "waitForThenClick": "#cookies-controller-main-pane form[data-form-allow-all] button" }
11
+ ],
12
+ "optOut": [
13
+ { "click": "#cookies-controller-main-pane a[data-tab-target=manage-cookies]" },
14
+ { "waitFor": "#manage-cookies-pane.active" },
15
+ { "click": "#manage-cookies-pane.active input[type=checkbox][checked]:not([disabled])", "all": true },
16
+ { "click": "#manage-cookies-pane.active button[type=submit]" }
17
+ ],
18
+ "test": [
19
+ ]
20
+ }
package/rules/rules.json CHANGED
@@ -190,6 +190,43 @@
190
190
  }
191
191
  ]
192
192
  },
193
+ {
194
+ "name": "almacmp",
195
+ "prehideSelectors": [
196
+ "#alma-cmpv2-container"
197
+ ],
198
+ "detectCmp": [
199
+ {
200
+ "exists": "#alma-cmpv2-container"
201
+ }
202
+ ],
203
+ "detectPopup": [
204
+ {
205
+ "visible": "#alma-cmpv2-container #almacmp-modal-layer1"
206
+ }
207
+ ],
208
+ "optIn": [
209
+ {
210
+ "waitForThenClick": "#alma-cmpv2-container #almacmp-modal-layer1 #almacmp-modalConfirmBtn"
211
+ }
212
+ ],
213
+ "optOut": [
214
+ {
215
+ "waitForThenClick": "#alma-cmpv2-container #almacmp-modal-layer1 #almacmp-modalSettingBtn"
216
+ },
217
+ {
218
+ "waitFor": "#alma-cmpv2-container #almacmp-modal-layer2"
219
+ },
220
+ {
221
+ "waitForThenClick": "#alma-cmpv2-container #almacmp-modal-layer2 #almacmp-reject-all-layer2"
222
+ }
223
+ ],
224
+ "test": [
225
+ {
226
+ "eval": "EVAL_ALMACMP_0"
227
+ }
228
+ ]
229
+ },
193
230
  {
194
231
  "name": "altium.com",
195
232
  "cosmetic": true,
@@ -4298,6 +4335,44 @@
4298
4335
  }
4299
4336
  ]
4300
4337
  },
4338
+ {
4339
+ "name": "tropicfeel-com",
4340
+ "prehideSelectors": [
4341
+ "#shopify-section-cookies-controller"
4342
+ ],
4343
+ "detectCmp": [
4344
+ {
4345
+ "exists": "#shopify-section-cookies-controller"
4346
+ }
4347
+ ],
4348
+ "detectPopup": [
4349
+ {
4350
+ "visible": "#shopify-section-cookies-controller #cookies-controller-main-pane",
4351
+ "check": "any"
4352
+ }
4353
+ ],
4354
+ "optIn": [
4355
+ {
4356
+ "waitForThenClick": "#cookies-controller-main-pane form[data-form-allow-all] button"
4357
+ }
4358
+ ],
4359
+ "optOut": [
4360
+ {
4361
+ "click": "#cookies-controller-main-pane a[data-tab-target=manage-cookies]"
4362
+ },
4363
+ {
4364
+ "waitFor": "#manage-cookies-pane.active"
4365
+ },
4366
+ {
4367
+ "click": "#manage-cookies-pane.active input[type=checkbox][checked]:not([disabled])",
4368
+ "all": true
4369
+ },
4370
+ {
4371
+ "click": "#manage-cookies-pane.active button[type=submit]"
4372
+ }
4373
+ ],
4374
+ "test": []
4375
+ },
4301
4376
  {
4302
4377
  "name": "true-car",
4303
4378
  "runContext": {
@@ -0,0 +1,5 @@
1
+ import generateCMPTests from "../playwright/runner";
2
+
3
+ generateCMPTests('almacmp', [
4
+ 'https://www.iltalehti.fi/',
5
+ ], {});
@@ -1,5 +1,5 @@
1
1
  import generateCMPTests from "../playwright/runner";
2
2
 
3
3
  generateCMPTests('Test page cosmetic CMP', [
4
- 'https://privacy-test-pages.glitch.me/features/autoconsent/banner.html'
4
+ 'https://privacy-test-pages.site/features/autoconsent/banner.html'
5
5
  ]);
@@ -1,5 +1,5 @@
1
1
  import generateCMPTests from "../playwright/runner";
2
2
 
3
3
  generateCMPTests('Test page CMP', [
4
- 'https://privacy-test-pages.glitch.me/features/autoconsent/'
4
+ 'https://privacy-test-pages.site/features/autoconsent/'
5
5
  ]);
@@ -0,0 +1,7 @@
1
+ import generateCMPTests from "../playwright/runner";
2
+
3
+ generateCMPTests('tropicfeel-com', [
4
+ 'https://shop.tropicfeel.com/',
5
+ ], {
6
+ skipRegions: [],
7
+ });