@replohq/sandbox-runtime 1.19.3 → 1.19.4

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/buildMetadata.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export const BUILD_METADATA = {
2
2
  "packageName": "@replohq/sandbox-runtime",
3
- "version": "1.19.3",
3
+ "version": "1.19.4",
4
4
  "branch": "HEAD",
5
- "commit": "1b05582b9331219dbbcb56ff30f0876086df7e32",
6
- "builtAt": "2026-10-24T18:33:20.377Z"
5
+ "commit": "3a362d942a24f8c7b0af6d26e3ccad003254d6c5",
6
+ "builtAt": "2026-10-25T05:11:58.524Z"
7
7
  };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@replohq/sandbox-runtime",
3
- "version": "1.19.3",
3
+ "version": "1.19.4",
4
4
  "reploBuild": {
5
5
  "packageName": "@replohq/sandbox-runtime",
6
- "version": "1.19.3",
6
+ "version": "1.19.4",
7
7
  "branch": "HEAD",
8
- "commit": "1b05582b9331219dbbcb56ff30f0876086df7e32",
9
- "builtAt": "2026-10-24T18:33:20.377Z"
8
+ "commit": "3a362d942a24f8c7b0af6d26e3ccad003254d6c5",
9
+ "builtAt": "2026-10-25T05:11:58.524Z"
10
10
  },
11
11
  "description": "Replo sandbox runtime — editor integration for agent-built Next.js sites.",
12
12
  "license": "SEE LICENSE IN LICENSE",
@@ -116,6 +116,13 @@ function identifyElement({
116
116
  }
117
117
  return "image";
118
118
  }
119
+ if (element instanceof HTMLIFrameElement) {
120
+ if (element.hasAttribute("srcdoc")) {
121
+ return "iframe: inline HTML (srcdoc)";
122
+ }
123
+ const src = element.getAttribute("src");
124
+ return src ? `iframe: [${src.slice(0, 60)}]` : "iframe";
125
+ }
119
126
  if (/^h[1-6]$/.test(tagName)) {
120
127
  return trimmedText ? `heading(${tagName}): "${trimmedText.slice(0, 60)}"` : tagName;
121
128
  }
@@ -4,11 +4,7 @@ export declare const FRAME_SHIELD_CSS = "iframe { pointer-events: none !importan
4
4
  * Select mode shields iframes from the pointer so presses over an embed reach
5
5
  * this document instead of the embed's own (often cross-origin) one. The hit
6
6
  * element is then whatever sits behind the frame, so lift the shield for one
7
- * native hit test to find the frame the user actually pointed at. A frame
8
- * injected as raw HTML has no React source, so prefer its nearest
9
- * React-rendered ancestor, which the agent can edit. React 19 renders <body>
10
- * too, so stop below it: a widget script appends its frame straight to the
11
- * body, and selecting the frame beats selecting the whole page.
7
+ * native hit test to find the frame the user actually pointed at.
12
8
  */
13
9
  export declare function getSelectionTargetForEmbeddedFrameHit({ hitElement, clientX, clientY, }: {
14
10
  hitElement: Element;
@@ -1,4 +1,3 @@
1
- import { getFiberFromElement } from "../fiber";
2
1
  const FRAME_SHIELD_ATTRIBUTE = "data-select-mode-frame-shield";
3
2
  const FRAME_SHIELD_CSS = "iframe { pointer-events: none !important; }";
4
3
  function getSelectionTargetForEmbeddedFrameHit({
@@ -15,15 +14,7 @@ function getSelectionTargetForEmbeddedFrameHit({
15
14
  shield.disabled = true;
16
15
  const frame = document.elementFromPoint(clientX, clientY);
17
16
  shield.disabled = false;
18
- if (!(frame instanceof HTMLIFrameElement)) {
19
- return hitElement;
20
- }
21
- for (let candidate = frame; candidate && candidate !== document.body; candidate = candidate.parentElement) {
22
- if (getFiberFromElement(candidate)) {
23
- return candidate;
24
- }
25
- }
26
- return frame;
17
+ return frame instanceof HTMLIFrameElement ? frame : hitElement;
27
18
  }
28
19
  export {
29
20
  FRAME_SHIELD_ATTRIBUTE,