@duckduckgo/autoconsent 10.6.3 → 10.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.
@@ -4986,6 +4986,35 @@
4986
4986
  }
4987
4987
  ]
4988
4988
  },
4989
+ {
4990
+ name: "espace-personnel.agirc-arrco.fr",
4991
+ runContext: {
4992
+ urlPattern: "^https://espace-personnel\\.agirc-arrco\\.fr/"
4993
+ },
4994
+ prehideSelectors: [
4995
+ ".cdk-overlay-container"
4996
+ ],
4997
+ detectCmp: [
4998
+ {
4999
+ exists: ".cdk-overlay-container app-esaa-cookie-component"
5000
+ }
5001
+ ],
5002
+ detectPopup: [
5003
+ {
5004
+ visible: ".cdk-overlay-container app-esaa-cookie-component"
5005
+ }
5006
+ ],
5007
+ optIn: [
5008
+ {
5009
+ waitForThenClick: ".btn-cookie-accepter"
5010
+ }
5011
+ ],
5012
+ optOut: [
5013
+ {
5014
+ waitForThenClick: ".btn-cookie-refuser"
5015
+ }
5016
+ ]
5017
+ },
4989
5018
  {
4990
5019
  name: "etsy",
4991
5020
  prehideSelectors: [
@@ -8135,9 +8164,8 @@
8135
8164
  name: "termsfeed3",
8136
8165
  vendorUrl: "https://termsfeed.com",
8137
8166
  comment: "v3.x.x",
8138
- cosmetic: true,
8139
8167
  prehideSelectors: [
8140
- ".cc_dialog.cc_css_reboot"
8168
+ ".cc_dialog.cc_css_reboot,.cc_overlay_lock"
8141
8169
  ],
8142
8170
  detectCmp: [
8143
8171
  {
@@ -8156,7 +8184,25 @@
8156
8184
  ],
8157
8185
  optOut: [
8158
8186
  {
8159
- hide: ".cc_dialog.cc_css_reboot"
8187
+ if: {
8188
+ exists: ".cc_dialog.cc_css_reboot .cc_b_cp"
8189
+ },
8190
+ then: [
8191
+ {
8192
+ click: ".cc_dialog.cc_css_reboot .cc_b_cp"
8193
+ },
8194
+ {
8195
+ waitForVisible: ".cookie-consent-preferences-dialog .cc_cp_f_save button"
8196
+ },
8197
+ {
8198
+ waitForThenClick: ".cookie-consent-preferences-dialog .cc_cp_f_save button"
8199
+ }
8200
+ ],
8201
+ else: [
8202
+ {
8203
+ hide: ".cc_dialog.cc_css_reboot,.cc_overlay_lock"
8204
+ }
8205
+ ]
8160
8206
  }
8161
8207
  ]
8162
8208
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duckduckgo/autoconsent",
3
- "version": "10.6.3",
3
+ "version": "10.7.0",
4
4
  "description": "",
5
5
  "main": "dist/autoconsent.cjs.js",
6
6
  "module": "dist/autoconsent.esm.js",
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "espace-personnel.agirc-arrco.fr",
3
+ "runContext": {
4
+ "urlPattern": "^https://espace-personnel\\.agirc-arrco\\.fr/"
5
+ },
6
+ "prehideSelectors": [
7
+ ".cdk-overlay-container"
8
+ ],
9
+ "detectCmp": [
10
+ {
11
+ "exists": ".cdk-overlay-container app-esaa-cookie-component"
12
+ }
13
+ ],
14
+ "detectPopup": [
15
+ {
16
+ "visible": ".cdk-overlay-container app-esaa-cookie-component"
17
+ }
18
+ ],
19
+ "optIn": [
20
+ {
21
+ "waitForThenClick": ".btn-cookie-accepter"
22
+ }
23
+ ],
24
+ "optOut": [
25
+ {
26
+ "waitForThenClick": ".btn-cookie-refuser"
27
+ }
28
+ ]
29
+ }
@@ -2,8 +2,7 @@
2
2
  "name": "termsfeed3",
3
3
  "vendorUrl": "https://termsfeed.com",
4
4
  "comment": "v3.x.x",
5
- "cosmetic": true,
6
- "prehideSelectors": [".cc_dialog.cc_css_reboot"],
5
+ "prehideSelectors": [".cc_dialog.cc_css_reboot,.cc_overlay_lock"],
7
6
  "detectCmp": [
8
7
  {
9
8
  "exists": ".cc_dialog.cc_css_reboot"
@@ -21,7 +20,15 @@
21
20
  ],
22
21
  "optOut": [
23
22
  {
24
- "hide": ".cc_dialog.cc_css_reboot"
23
+ "if": { "exists": ".cc_dialog.cc_css_reboot .cc_b_cp" },
24
+ "then": [
25
+ { "click": ".cc_dialog.cc_css_reboot .cc_b_cp" },
26
+ { "waitForVisible": ".cookie-consent-preferences-dialog .cc_cp_f_save button" },
27
+ { "waitForThenClick": ".cookie-consent-preferences-dialog .cc_cp_f_save button" }
28
+ ],
29
+ "else": [
30
+ { "hide": ".cc_dialog.cc_css_reboot,.cc_overlay_lock" }
31
+ ]
25
32
  }
26
33
  ]
27
34
  }
package/rules/rules.json CHANGED
@@ -2611,6 +2611,35 @@
2611
2611
  }
2612
2612
  ]
2613
2613
  },
2614
+ {
2615
+ "name": "espace-personnel.agirc-arrco.fr",
2616
+ "runContext": {
2617
+ "urlPattern": "^https://espace-personnel\\.agirc-arrco\\.fr/"
2618
+ },
2619
+ "prehideSelectors": [
2620
+ ".cdk-overlay-container"
2621
+ ],
2622
+ "detectCmp": [
2623
+ {
2624
+ "exists": ".cdk-overlay-container app-esaa-cookie-component"
2625
+ }
2626
+ ],
2627
+ "detectPopup": [
2628
+ {
2629
+ "visible": ".cdk-overlay-container app-esaa-cookie-component"
2630
+ }
2631
+ ],
2632
+ "optIn": [
2633
+ {
2634
+ "waitForThenClick": ".btn-cookie-accepter"
2635
+ }
2636
+ ],
2637
+ "optOut": [
2638
+ {
2639
+ "waitForThenClick": ".btn-cookie-refuser"
2640
+ }
2641
+ ]
2642
+ },
2614
2643
  {
2615
2644
  "name": "etsy",
2616
2645
  "prehideSelectors": [
@@ -5760,9 +5789,8 @@
5760
5789
  "name": "termsfeed3",
5761
5790
  "vendorUrl": "https://termsfeed.com",
5762
5791
  "comment": "v3.x.x",
5763
- "cosmetic": true,
5764
5792
  "prehideSelectors": [
5765
- ".cc_dialog.cc_css_reboot"
5793
+ ".cc_dialog.cc_css_reboot,.cc_overlay_lock"
5766
5794
  ],
5767
5795
  "detectCmp": [
5768
5796
  {
@@ -5781,7 +5809,25 @@
5781
5809
  ],
5782
5810
  "optOut": [
5783
5811
  {
5784
- "hide": ".cc_dialog.cc_css_reboot"
5812
+ "if": {
5813
+ "exists": ".cc_dialog.cc_css_reboot .cc_b_cp"
5814
+ },
5815
+ "then": [
5816
+ {
5817
+ "click": ".cc_dialog.cc_css_reboot .cc_b_cp"
5818
+ },
5819
+ {
5820
+ "waitForVisible": ".cookie-consent-preferences-dialog .cc_cp_f_save button"
5821
+ },
5822
+ {
5823
+ "waitForThenClick": ".cookie-consent-preferences-dialog .cc_cp_f_save button"
5824
+ }
5825
+ ],
5826
+ "else": [
5827
+ {
5828
+ "hide": ".cc_dialog.cc_css_reboot,.cc_overlay_lock"
5829
+ }
5830
+ ]
5785
5831
  }
5786
5832
  ]
5787
5833
  },
@@ -0,0 +1,5 @@
1
+ import generateCMPTests from "../playwright/runner";
2
+
3
+ generateCMPTests('espace-personnel.agirc-arrco.fr', [
4
+ 'https://espace-personnel.agirc-arrco.fr/public/signup/creation-compte/standard/1/votre-identite'
5
+ ]);