@duckduckgo/autoconsent 18.8.0 → 18.9.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 (36) hide show
  1. package/.github/dependabot.yml +1 -0
  2. package/.github/workflows/checks.yml +1 -0
  3. package/CHANGELOG.md +29 -0
  4. package/dist/addon-firefox/background.bundle.js +11 -14
  5. package/dist/addon-firefox/compact-rules.json +1 -1
  6. package/dist/addon-firefox/content.bundle.js +10 -3
  7. package/dist/addon-firefox/manifest.json +1 -1
  8. package/dist/addon-firefox/popup.bundle.js +11 -14
  9. package/dist/addon-firefox/rule-index.json +1 -1
  10. package/dist/addon-firefox/rules.json +1 -1
  11. package/dist/addon-mv3/background.bundle.js +11 -14
  12. package/dist/addon-mv3/compact-rules.json +1 -1
  13. package/dist/addon-mv3/content.bundle.js +10 -3
  14. package/dist/addon-mv3/manifest.json +1 -1
  15. package/dist/addon-mv3/popup.bundle.js +11 -14
  16. package/dist/addon-mv3/rule-index.json +1 -1
  17. package/dist/addon-mv3/rules.json +1 -1
  18. package/dist/autoconsent.cjs.js +10 -3
  19. package/dist/autoconsent.esm.js +10 -3
  20. package/dist/autoconsent.playwright.js +10 -3
  21. package/dist/autoconsent.standalone.js +11 -4
  22. package/lib/cmps/trustarc-top.ts +12 -3
  23. package/package.json +2 -2
  24. package/rules/autoconsent/cookieinformation.json +2 -1
  25. package/rules/autoconsent/huawei-cookie-notice.json +27 -0
  26. package/rules/autoconsent/xhamster-eu.json +1 -1
  27. package/rules/autoconsent/xhamster-us.json +1 -1
  28. package/rules/compact-rules.json +1 -1
  29. package/rules/rule-index.json +1 -1
  30. package/rules/rules.json +1 -1
  31. package/tests/cookieinformation.spec.ts +3 -1
  32. package/tests/huawei-cookie-notice.spec.ts +5 -0
  33. package/tests/trustarc.spec.ts +7 -0
  34. package/tests/xhamster-eu.spec.ts +4 -0
  35. package/tests/xhamster-us.spec.ts +4 -0
  36. package/web-test-runner.config.mjs +6 -0
@@ -2875,7 +2875,10 @@
2875
2875
  var popupContent = "#truste-consent-content";
2876
2876
  var bannerOverlay = "#trustarc-banner-overlay";
2877
2877
  var bannerContainer = "#truste-consent-track";
2878
- var prefCenterDeclineAll = [".truste_popframe.trustarc_newcm_container", 'button[data-button-key="decline_all"]'];
2878
+ var prefCenterDeclineAll = [
2879
+ ".truste_popframe.trustarc_newcm_container",
2880
+ 'button[data-button-key="decline_all"], .trustarc-declineall-btn'
2881
+ ];
2879
2882
  var TrustArcTop = class extends AutoConsentCMPBase {
2880
2883
  constructor(autoconsentInstance) {
2881
2884
  super(autoconsentInstance);
@@ -2913,8 +2916,12 @@
2913
2916
  }
2914
2917
  async optOut() {
2915
2918
  if (this.elementExists(shortcutOptOut)) {
2916
- this.click(shortcutOptOut);
2917
- return true;
2919
+ const shortcutVisible = this.elementVisible(shortcutOptOut, "any");
2920
+ await this.click(shortcutOptOut);
2921
+ if (shortcutVisible || !this.elementExists(`${bannerContainer}.ta-show`)) {
2922
+ return true;
2923
+ }
2924
+ this._shortcutButton = null;
2918
2925
  }
2919
2926
  hideElements(getStyleElement(), `.truste_popframe, .truste_overlay, .truste_box_overlay, ${bannerContainer}`);
2920
2927
  await this.click(cookieSettingsButton);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "Autoconsent",
4
- "version": "2026.11.18",
4
+ "version": "2026.11.19",
5
5
  "background": {
6
6
  "service_worker": "background.bundle.js"
7
7
  },