@duckduckgo/autoconsent 16.40.0 → 16.41.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.40.0",
3
+ "version": "16.41.0",
4
4
  "description": "",
5
5
  "types": "./dist/types/web.d.ts",
6
6
  "exports": {
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "sourcepoint-top",
3
+ "vendorUrl": "https://www.sourcepoint.com/",
4
+ "comment": "Top-frame companion to Sourcepoint-frame. The message UI lives in a cross-origin iframe, so the top frame cannot tell an ordinary notice from a 'consent or pay' wall that Sourcepoint-frame has to bail on; hide it either way and undo the scroll lock. Hiding uses visibility rather than display so the iframe keeps its layout and the frame rule can still complete a real rejection underneath, with z-index and pointer-events mirroring the built-in hide step. The scroll lock is undone twice over: removeClass restores each site's own layout in the normal case, and the stylesheet neutralises the lock declarations if Sourcepoint re-adds the class later (it does so on pageshow after a back/forward restore, which autoconsent does not re-run for).",
5
+ "minimumRuleStepVersion": 3,
6
+ "runContext": {
7
+ "main": true,
8
+ "frame": false
9
+ },
10
+ "prehideSelectors": ["div[id^='sp_message_container_']"],
11
+ "detectCmp": [{ "exists": "div[id^='sp_message_container_']" }],
12
+ "detectPopup": [{ "visible": "div[id^='sp_message_container_']" }],
13
+ "optIn": [{ "visible": "div[id^='sp_message_container_']", "check": "none" }],
14
+ "optOut": [
15
+ {
16
+ "stylesheet": "div[id^='sp_message_container_'] { visibility: hidden !important; z-index: -1 !important; pointer-events: none !important; }",
17
+ "stylesheetId": "sourcepoint-top-hide"
18
+ },
19
+ {
20
+ "stylesheet": "html.sp-message-open { height: auto !important; width: auto !important; } html.sp-message-open body { position: relative !important; overflow: auto !important; margin-top: 0 !important; top: auto !important; left: auto !important; right: auto !important; }",
21
+ "stylesheetId": "sourcepoint-top-scroll-unlock"
22
+ },
23
+ { "removeClass": "sp-message-open", "selector": "html", "optional": true }
24
+ ]
25
+ }