@ytspar/sweetlink 1.26.1 → 1.26.2-canary.e7dd12a

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.
@@ -9,5 +9,5 @@
9
9
  export declare const SELECTOR_TIMEOUT_MS = 5000;
10
10
  export declare const HOVER_TRANSITION_DELAY_MS = 300;
11
11
  export declare const HIDE_DEVBAR_STYLE_ID = "sweetlink-hide-devbar-for-screenshot";
12
- export declare const HIDE_DEVBAR_CSS = "\n[data-devbar],\n[data-devbar-overlay],\n[data-devbar-tooltip] {\n visibility: hidden !important;\n pointer-events: none !important;\n}\n";
12
+ export declare const HIDE_DEVBAR_CSS = "\n[data-devbar],\n[data-devbar] *,\n[data-devbar-overlay],\n[data-devbar-overlay] *,\n[data-devbar-tooltip],\n[data-devbar-tooltip] *,\n[data-devbar-ruler],\n[data-devbar-ruler] * {\n visibility: hidden !important;\n opacity: 0 !important;\n pointer-events: none !important;\n}\n\n/* Third-party dev overlays that also pollute screenshots. Scoped to the\n specific devtools launcher/indicator \u2014 deliberately NOT the whole\n `nextjs-portal`, which also hosts the Next.js error overlay we DO want in\n the shot. */\n[class*=\"tsqd-\"],\n[class*=\"tsqd-\"] *,\n[data-nextjs-dev-tools-button],\n[data-nextjs-dev-tools-button] * {\n visibility: hidden !important;\n opacity: 0 !important;\n pointer-events: none !important;\n}\n";
13
13
  //# sourceMappingURL=screenshotConstants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"screenshotConstants.d.ts","sourceRoot":"","sources":["../src/screenshotConstants.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,eAAO,MAAM,mBAAmB,OAAO,CAAC;AACxC,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAC7C,eAAO,MAAM,oBAAoB,yCAAyC,CAAC;AAC3E,eAAO,MAAM,eAAe,iJAO3B,CAAC"}
1
+ {"version":3,"file":"screenshotConstants.d.ts","sourceRoot":"","sources":["../src/screenshotConstants.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,eAAO,MAAM,mBAAmB,OAAO,CAAC;AACxC,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAC7C,eAAO,MAAM,oBAAoB,yCAAyC,CAAC;AAY3E,eAAO,MAAM,eAAe,yuBA0B3B,CAAC"}
@@ -9,11 +9,40 @@
9
9
  export const SELECTOR_TIMEOUT_MS = 5000;
10
10
  export const HOVER_TRANSITION_DELAY_MS = 300;
11
11
  export const HIDE_DEVBAR_STYLE_ID = 'sweetlink-hide-devbar-for-screenshot';
12
+ // `opacity: 0` (not just `visibility: hidden`) is load-bearing. When the devbar
13
+ // is EXPANDED, its toolbar buttons/icons are descendants that set their own
14
+ // `visibility`, so a container-level `visibility: hidden` is escaped and the
15
+ // bar leaks into the screenshot. `opacity` compounds down the subtree — a child
16
+ // cannot render above its ancestor's `opacity: 0` — so it hides the whole bar
17
+ // regardless of descendant styles, and the attribute-scoped rule keeps covering
18
+ // the container even though the devbar recreates it on every render
19
+ // (rendering/index.ts). The explicit descendant (` *`) selectors are belt-and-
20
+ // suspenders for anything that computes its own opacity. Layout is preserved
21
+ // (both properties keep the box), which is fine for these fixed overlays.
12
22
  export const HIDE_DEVBAR_CSS = `
13
23
  [data-devbar],
24
+ [data-devbar] *,
14
25
  [data-devbar-overlay],
15
- [data-devbar-tooltip] {
26
+ [data-devbar-overlay] *,
27
+ [data-devbar-tooltip],
28
+ [data-devbar-tooltip] *,
29
+ [data-devbar-ruler],
30
+ [data-devbar-ruler] * {
16
31
  visibility: hidden !important;
32
+ opacity: 0 !important;
33
+ pointer-events: none !important;
34
+ }
35
+
36
+ /* Third-party dev overlays that also pollute screenshots. Scoped to the
37
+ specific devtools launcher/indicator — deliberately NOT the whole
38
+ \`nextjs-portal\`, which also hosts the Next.js error overlay we DO want in
39
+ the shot. */
40
+ [class*="tsqd-"],
41
+ [class*="tsqd-"] *,
42
+ [data-nextjs-dev-tools-button],
43
+ [data-nextjs-dev-tools-button] * {
44
+ visibility: hidden !important;
45
+ opacity: 0 !important;
17
46
  pointer-events: none !important;
18
47
  }
19
48
  `;
@@ -1 +1 @@
1
- {"version":3,"file":"screenshotConstants.js","sourceRoot":"","sources":["../src/screenshotConstants.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,CAAC;AACxC,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,CAAC;AAC7C,MAAM,CAAC,MAAM,oBAAoB,GAAG,sCAAsC,CAAC;AAC3E,MAAM,CAAC,MAAM,eAAe,GAAG;;;;;;;CAO9B,CAAC"}
1
+ {"version":3,"file":"screenshotConstants.js","sourceRoot":"","sources":["../src/screenshotConstants.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,CAAC;AACxC,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,CAAC;AAC7C,MAAM,CAAC,MAAM,oBAAoB,GAAG,sCAAsC,CAAC;AAE3E,gFAAgF;AAChF,4EAA4E;AAC5E,6EAA6E;AAC7E,gFAAgF;AAChF,8EAA8E;AAC9E,gFAAgF;AAChF,oEAAoE;AACpE,+EAA+E;AAC/E,6EAA6E;AAC7E,0EAA0E;AAC1E,MAAM,CAAC,MAAM,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;CA0B9B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ytspar/sweetlink",
3
- "version": "1.26.1",
3
+ "version": "1.26.2-canary.e7dd12a",
4
4
  "description": "Autonomous development toolkit for AI agents - screenshots, DOM queries, console logs, and JavaScript execution via WebSocket and Chrome DevTools Protocol",
5
5
  "keywords": [
6
6
  "autonomous-development",