@replohq/sandbox-runtime 1.24.2 → 1.24.3
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.24.
|
|
3
|
+
"version": "1.24.3",
|
|
4
4
|
"branch": "HEAD",
|
|
5
|
-
"commit": "
|
|
6
|
-
"builtAt": "2026-11-
|
|
5
|
+
"commit": "e1eeef82df82036e9d623fccf943736d34fb994d",
|
|
6
|
+
"builtAt": "2026-11-04T19:25:11.953Z"
|
|
7
7
|
};
|
|
@@ -20,6 +20,7 @@ export type CommentsOverlayCallbacks = {
|
|
|
20
20
|
onComposeFromSelection: (input: {
|
|
21
21
|
anchor: CommentAnchorElement;
|
|
22
22
|
}) => void;
|
|
23
|
+
/** Esc, or a click on empty page, closed the pending pick or open thread. */
|
|
23
24
|
onPickCancelled: () => void;
|
|
24
25
|
/** C or Esc pressed in the frame; the host owns the mode. */
|
|
25
26
|
onModeShortcut: (input: {
|
|
@@ -427,6 +427,15 @@ function createCommentsOverlay(options) {
|
|
|
427
427
|
selection = null;
|
|
428
428
|
}
|
|
429
429
|
};
|
|
430
|
+
const dismissSelection = () => {
|
|
431
|
+
if (!selection) {
|
|
432
|
+
return false;
|
|
433
|
+
}
|
|
434
|
+
selection = null;
|
|
435
|
+
options.onPickCancelled();
|
|
436
|
+
schedulePaint();
|
|
437
|
+
return true;
|
|
438
|
+
};
|
|
430
439
|
const refreshSelectionPrompt = () => {
|
|
431
440
|
selectionTimer = null;
|
|
432
441
|
const range = mode !== "comment" && !pointerIsDown ? getUsableSelectionRange() : null;
|
|
@@ -581,7 +590,7 @@ function createCommentsOverlay(options) {
|
|
|
581
590
|
return;
|
|
582
591
|
}
|
|
583
592
|
if (!isPageElement(target)) {
|
|
584
|
-
|
|
593
|
+
dismissSelection();
|
|
585
594
|
return;
|
|
586
595
|
}
|
|
587
596
|
pick(target, { x: event.clientX, y: event.clientY }, reportPicked);
|
|
@@ -602,11 +611,7 @@ function createCommentsOverlay(options) {
|
|
|
602
611
|
event.preventDefault();
|
|
603
612
|
event.stopImmediatePropagation();
|
|
604
613
|
}
|
|
605
|
-
if (
|
|
606
|
-
clearDraft();
|
|
607
|
-
options.onPickCancelled();
|
|
608
|
-
schedulePaint();
|
|
609
|
-
} else {
|
|
614
|
+
if (!dismissSelection()) {
|
|
610
615
|
options.onModeShortcut({ mode: "browse" });
|
|
611
616
|
}
|
|
612
617
|
return;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@replohq/sandbox-runtime",
|
|
3
|
-
"version": "1.24.
|
|
3
|
+
"version": "1.24.3",
|
|
4
4
|
"reploBuild": {
|
|
5
5
|
"packageName": "@replohq/sandbox-runtime",
|
|
6
|
-
"version": "1.24.
|
|
6
|
+
"version": "1.24.3",
|
|
7
7
|
"branch": "HEAD",
|
|
8
|
-
"commit": "
|
|
9
|
-
"builtAt": "2026-11-
|
|
8
|
+
"commit": "e1eeef82df82036e9d623fccf943736d34fb994d",
|
|
9
|
+
"builtAt": "2026-11-04T19:25:11.953Z"
|
|
10
10
|
},
|
|
11
11
|
"description": "Replo sandbox runtime — editor integration for agent-built Next.js sites.",
|
|
12
12
|
"license": "SEE LICENSE IN LICENSE",
|