@replohq/sandbox-runtime 1.13.4 → 1.13.5
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.13.
|
|
3
|
+
"version": "1.13.5",
|
|
4
4
|
"branch": "HEAD",
|
|
5
|
-
"commit": "
|
|
6
|
-
"builtAt": "2026-10-
|
|
5
|
+
"commit": "36fde1b0255bc46705dcfbd1fc4810e7e9bcae24",
|
|
6
|
+
"builtAt": "2026-10-13T21:24:01.791Z"
|
|
7
7
|
};
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@replohq/sandbox-runtime",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.5",
|
|
4
4
|
"reploBuild": {
|
|
5
5
|
"packageName": "@replohq/sandbox-runtime",
|
|
6
|
-
"version": "1.13.
|
|
6
|
+
"version": "1.13.5",
|
|
7
7
|
"branch": "HEAD",
|
|
8
|
-
"commit": "
|
|
9
|
-
"builtAt": "2026-10-
|
|
8
|
+
"commit": "36fde1b0255bc46705dcfbd1fc4810e7e9bcae24",
|
|
9
|
+
"builtAt": "2026-10-13T21:24:01.791Z"
|
|
10
10
|
},
|
|
11
11
|
"description": "Replo sandbox runtime — editor integration for agent-built Next.js sites.",
|
|
12
12
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -122,10 +122,10 @@ function EditorSelection() {
|
|
|
122
122
|
}
|
|
123
123
|
actions.dismissInlineEditRequest();
|
|
124
124
|
};
|
|
125
|
-
|
|
125
|
+
window.addEventListener("pointerdown", cancelOnPointerDown, true);
|
|
126
126
|
document.addEventListener("keydown", cancelOnEscape, true);
|
|
127
127
|
return () => {
|
|
128
|
-
|
|
128
|
+
window.removeEventListener("pointerdown", cancelOnPointerDown, true);
|
|
129
129
|
document.removeEventListener("keydown", cancelOnEscape, true);
|
|
130
130
|
store.getState().actions.revertInlineEdit();
|
|
131
131
|
};
|
|
@@ -17,8 +17,9 @@
|
|
|
17
17
|
* sync with the page scroll so the rectangle visually "sticks" to the
|
|
18
18
|
* page rather than the viewport.
|
|
19
19
|
*
|
|
20
|
-
* We
|
|
20
|
+
* We listen at window capture, the first stop on every event path, and
|
|
21
|
+
* `preventDefault`/`stopImmediatePropagation` presses and clicks so the
|
|
21
22
|
* underlying page can't navigate or trigger handlers while the user is
|
|
22
|
-
* working in selection mode.
|
|
23
|
+
* working in selection mode, even from its own document capture listeners.
|
|
23
24
|
*/
|
|
24
25
|
export declare function useSelectionInteractions(): void;
|
|
@@ -181,7 +181,7 @@ function useSelectionInteractions() {
|
|
|
181
181
|
return;
|
|
182
182
|
}
|
|
183
183
|
event.preventDefault();
|
|
184
|
-
event.
|
|
184
|
+
event.stopImmediatePropagation();
|
|
185
185
|
const scrollOffset = getDocumentScrollOffset();
|
|
186
186
|
const session = interactionSessionRef.current;
|
|
187
187
|
committedDataAtPointerDown = session.type === "element" ? session.data : null;
|
|
@@ -371,6 +371,8 @@ function useSelectionInteractions() {
|
|
|
371
371
|
if (editingElementRef?.current && event.target instanceof Node && editingElementRef.current.contains(event.target)) {
|
|
372
372
|
return;
|
|
373
373
|
}
|
|
374
|
+
event.preventDefault();
|
|
375
|
+
event.stopImmediatePropagation();
|
|
374
376
|
const snapshot = interactionSessionRef.current;
|
|
375
377
|
const wasDragging = snapshot.type === "drag" ? snapshot.hasExceededThreshold : false;
|
|
376
378
|
const dragStart = snapshot.type === "drag" ? snapshot.dragStart : null;
|
|
@@ -421,7 +423,7 @@ function useSelectionInteractions() {
|
|
|
421
423
|
return;
|
|
422
424
|
}
|
|
423
425
|
event.preventDefault();
|
|
424
|
-
event.
|
|
426
|
+
event.stopImmediatePropagation();
|
|
425
427
|
};
|
|
426
428
|
const handlePointerCancel = (event) => {
|
|
427
429
|
editingPointerIds.delete(event.pointerId);
|
|
@@ -431,20 +433,20 @@ function useSelectionInteractions() {
|
|
|
431
433
|
editingPointerIds.clear();
|
|
432
434
|
resetDragState();
|
|
433
435
|
};
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
436
|
+
window.addEventListener("pointerdown", handlePointerDown, true);
|
|
437
|
+
window.addEventListener("pointermove", handlePointerMove, true);
|
|
438
|
+
window.addEventListener("pointerup", handlePointerUp, true);
|
|
439
|
+
window.addEventListener("pointercancel", handlePointerCancel, true);
|
|
440
|
+
window.addEventListener("click", handleClick, true);
|
|
439
441
|
document.addEventListener("scroll", handleViewportChangeDuringDrag, true);
|
|
440
442
|
window.addEventListener("blur", handleWindowBlur);
|
|
441
443
|
window.addEventListener("resize", handleViewportChangeDuringDrag);
|
|
442
444
|
return () => {
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
445
|
+
window.removeEventListener("pointerdown", handlePointerDown, true);
|
|
446
|
+
window.removeEventListener("pointermove", handlePointerMove, true);
|
|
447
|
+
window.removeEventListener("pointerup", handlePointerUp, true);
|
|
448
|
+
window.removeEventListener("pointercancel", handlePointerCancel, true);
|
|
449
|
+
window.removeEventListener("click", handleClick, true);
|
|
448
450
|
document.removeEventListener(
|
|
449
451
|
"scroll",
|
|
450
452
|
handleViewportChangeDuringDrag,
|