@replohq/sandbox-runtime 1.7.1 → 1.7.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/ClientErrorBoundary.d.ts +1 -1
- package/ClientErrorBoundary.js +0 -5
- package/DocumentReadyBeacon.js +0 -1
- package/LinkInterceptor.js +0 -1
- package/NavigationReceiver.js +0 -1
- package/NextErrorReporter.js +0 -1
- package/README.md +48 -0
- package/_vendor/replo-utils/lib/crypto.d.ts +2 -8
- package/_vendor/replo-utils/lib/fonts.d.ts +8 -0
- package/_vendor/replo-utils/lib/fonts.mjs +12 -14
- package/_vendor/replo-utils/lib/geometry.mjs +0 -1
- package/_vendor/replo-utils/lib/math.d.ts +0 -4
- package/_vendor/replo-utils/lib/math.mjs +0 -1
- package/_vendor/replo-utils/lib/posthogReplay.mjs +0 -1
- package/_vendor/replo-utils/react/use-iframe-rpc-channel.mjs +0 -1
- package/_vendor/replo-utils/react/use-viewport-snapshot-responder.mjs +9 -25
- package/_vendor/schemas/componentPreview.mjs +0 -4
- package/_vendor/schemas/designLibrary.mjs +0 -2
- package/_vendor/schemas/errors.d.ts +0 -3
- package/_vendor/schemas/generated/selectModeIframeRpc.d.ts +1 -1
- package/_vendor/schemas/iframeRpcChannel.d.ts +1 -1
- package/_vendor/schemas/iframeRpcChannel.mjs +0 -22
- package/_vendor/schemas/pageAnnotations.mjs +0 -3
- package/_vendor/schemas/selectMode.d.ts +0 -4
- package/_vendor/schemas/selectModeIframeRpc.d.ts +4 -4
- package/_vendor/schemas/selectModeIframeRpc.mjs +2 -12
- package/annotations/AnnotationLayerMount.js +0 -1
- package/annotations/annotationController.js +0 -3
- package/annotations/bridgeGate.js +0 -4
- package/buildMetadata.js +3 -3
- package/chunk-3YA3QXUQ.mjs +1 -4
- package/chunk-FLYEIRFK.mjs +0 -1
- package/chunk-G3S6ZNPF.mjs +0 -7
- package/chunk-JUKCUPQ6.mjs +5 -129
- package/chunk-SGKQ5HGT.mjs +0 -1
- package/chunk-TESFJQID.mjs +0 -1
- package/chunk-UOBGRB5I.mjs +0 -5
- package/design-library-preview/DesignLibraryPreview.js +0 -1
- package/next/component-preview-client.js +0 -1
- package/next/component-preview-href.js +0 -1
- package/next/component-preview-props.js +0 -1
- package/next/component-preview.js +0 -1
- package/next/config.js +0 -1
- package/package.json +4 -4
- package/posthog-relay.js +0 -5
- package/sandbox-runtime.js +0 -1
- package/select-mode/EditorSelection.d.ts +0 -2
- package/select-mode/EditorSelection.js +0 -1
- package/select-mode/annotationFrames.js +0 -1
- package/select-mode/descriptor/elementDescriptor.d.ts +0 -2
- package/select-mode/descriptor/elementDescriptor.js +0 -1
- package/select-mode/descriptor/styleExtraction.js +0 -1
- package/select-mode/displayModeStore.js +0 -2
- package/select-mode/fast-refresh-relay.js +0 -1
- package/select-mode/fiber.js +1 -5
- package/select-mode/hooks/useCrosshairCursor.d.ts +0 -2
- package/select-mode/hooks/useCrosshairCursor.js +0 -1
- package/select-mode/hooks/useEditModeStateMachine.js +0 -1
- package/select-mode/hooks/useOptimisticOverrides.js +0 -1
- package/select-mode/hooks/useParentMessaging.d.ts +0 -2
- package/select-mode/hooks/useParentMessaging.js +0 -1
- package/select-mode/hooks/useSelectModeController.js +0 -1
- package/select-mode/hooks/useSelectionHover.d.ts +0 -2
- package/select-mode/hooks/useSelectionHover.js +0 -1
- package/select-mode/hooks/useSelectionInteractions.d.ts +0 -2
- package/select-mode/hooks/useSelectionInteractions.js +0 -1
- package/select-mode/hooks/useSelectionScrollSync.d.ts +0 -2
- package/select-mode/hooks/useSelectionScrollSync.js +0 -1
- package/select-mode/hooks/useSiblingResolution.js +0 -1
- package/select-mode/iframeRpcChannel.d.ts +2 -2
- package/select-mode/iframeRpcChannel.js +0 -1
- package/select-mode/inlineTextMarks.js +0 -1
- package/select-mode/interactions/selectionGeometry.d.ts +0 -20
- package/select-mode/interactions/selectionGeometry.js +0 -1
- package/select-mode/optimisticOverrideDom.js +0 -1
- package/select-mode/selectModeSession.js +0 -1
- package/select-mode/selectionFrame.d.ts +0 -7
- package/select-mode/selectionFrame.js +0 -1
- package/select-mode/selectionPublish.js +0 -1
- package/select-mode/symbolicate.js +0 -1
- package/select-mode/tiptapInlineEditor.js +0 -5
- package/ClientErrorBoundary.js.map +0 -7
- package/DocumentReadyBeacon.js.map +0 -7
- package/LinkInterceptor.js.map +0 -7
- package/NavigationReceiver.js.map +0 -7
- package/NextErrorReporter.js.map +0 -7
- package/annotations/AnnotationLayerMount.js.map +0 -7
- package/annotations/annotationController.js.map +0 -7
- package/annotations/bridgeGate.js.map +0 -7
- package/buildMetadata.js.map +0 -7
- package/design-library-preview/DesignLibraryPreview.js.map +0 -7
- package/next/component-preview-client.js.map +0 -7
- package/next/component-preview-href.js.map +0 -7
- package/next/component-preview-props.js.map +0 -7
- package/next/component-preview.js.map +0 -7
- package/next/config.js.map +0 -7
- package/posthog-relay.js.map +0 -7
- package/sandbox-runtime.js.map +0 -7
- package/select-mode/EditorSelection.js.map +0 -7
- package/select-mode/annotationFrames.js.map +0 -7
- package/select-mode/descriptor/elementDescriptor.js.map +0 -7
- package/select-mode/descriptor/styleExtraction.js.map +0 -7
- package/select-mode/displayModeStore.js.map +0 -7
- package/select-mode/fast-refresh-relay.js.map +0 -7
- package/select-mode/fiber.js.map +0 -7
- package/select-mode/hooks/useCrosshairCursor.js.map +0 -7
- package/select-mode/hooks/useEditModeStateMachine.js.map +0 -7
- package/select-mode/hooks/useOptimisticOverrides.js.map +0 -7
- package/select-mode/hooks/useParentMessaging.js.map +0 -7
- package/select-mode/hooks/useSelectModeController.js.map +0 -7
- package/select-mode/hooks/useSelectionHover.js.map +0 -7
- package/select-mode/hooks/useSelectionInteractions.js.map +0 -7
- package/select-mode/hooks/useSelectionScrollSync.js.map +0 -7
- package/select-mode/hooks/useSiblingResolution.js.map +0 -7
- package/select-mode/iframeRpcChannel.js.map +0 -7
- package/select-mode/inlineTextMarks.js.map +0 -7
- package/select-mode/interactions/selectionGeometry.js.map +0 -7
- package/select-mode/optimisticOverrideDom.js.map +0 -7
- package/select-mode/selectModeSession.js.map +0 -7
- package/select-mode/selectionFrame.js.map +0 -7
- package/select-mode/selectionPublish.js.map +0 -7
- package/select-mode/symbolicate.js.map +0 -7
- package/select-mode/tiptapInlineEditor.js.map +0 -7
|
@@ -24,7 +24,6 @@ var websiteBuilderToCanopyMethodConfig = {
|
|
|
24
24
|
outputSchema: selectedElementSchema,
|
|
25
25
|
timeoutMs: 1500
|
|
26
26
|
},
|
|
27
|
-
// Client-side transition command; fire-and-forget because success is observed as the `replo:navigated` echo.
|
|
28
27
|
navigateToRoute: {
|
|
29
28
|
inputSchema: z.object({ pathname: z.string() }),
|
|
30
29
|
outputSchema: z.void()
|
|
@@ -33,13 +32,6 @@ var websiteBuilderToCanopyMethodConfig = {
|
|
|
33
32
|
inputSchema: z.object({ displayMode: displayModeSchema }),
|
|
34
33
|
outputSchema: z.void()
|
|
35
34
|
},
|
|
36
|
-
// Declarative push of the parent's current selection into the canopy
|
|
37
|
-
// iframe. Transitioning to `none` is canopy's signal to hide its
|
|
38
|
-
// in-iframe selection frame and drop any in-progress drag — there's no
|
|
39
|
-
// separate "clear" message because selection state always flows through
|
|
40
|
-
// agentUiState. For an `area` selection the parent may also send the
|
|
41
|
-
// selectors of the members it still holds, so an item removed in the
|
|
42
|
-
// editor is dropped from the in-iframe selection too.
|
|
43
35
|
setSelectionType: {
|
|
44
36
|
inputSchema: z.object({
|
|
45
37
|
selectionType: selectModeSelectionTypeSchema,
|
|
@@ -101,7 +93,7 @@ var canopyToWebsiteBuilderMethodConfig = {
|
|
|
101
93
|
timeoutMs: 5e3
|
|
102
94
|
},
|
|
103
95
|
iframeReady: {
|
|
104
|
-
inputSchema: iframeRuntimeBuildMetadataSchema
|
|
96
|
+
inputSchema: iframeRuntimeBuildMetadataSchema,
|
|
105
97
|
outputSchema: z.void()
|
|
106
98
|
},
|
|
107
99
|
elementSelected: {
|
|
@@ -155,8 +147,6 @@ var canopyToWebsiteBuilderMethodConfig = {
|
|
|
155
147
|
editorStateUpdate: {
|
|
156
148
|
inputSchema: z.object({
|
|
157
149
|
activeMarks: selectModeTiptapActiveMarksSchema,
|
|
158
|
-
// Whether an inline text edit is currently open. Lets the parent show the
|
|
159
|
-
// inline formatting controls (and live mark state) only while editing.
|
|
160
150
|
isEditing: z.boolean()
|
|
161
151
|
}),
|
|
162
152
|
outputSchema: z.void()
|
|
@@ -209,7 +199,7 @@ var selectModeParentMessageSchema = z.discriminatedUnion("method", [
|
|
|
209
199
|
var selectModeIframeMessageSchema = z.discriminatedUnion("method", [
|
|
210
200
|
z.object({
|
|
211
201
|
method: z.literal("iframeReady"),
|
|
212
|
-
data: iframeRuntimeBuildMetadataSchema
|
|
202
|
+
data: iframeRuntimeBuildMetadataSchema
|
|
213
203
|
}),
|
|
214
204
|
z.object({
|
|
215
205
|
method: z.literal("elementSelected"),
|
|
@@ -77,7 +77,6 @@ function resolveMarkers() {
|
|
|
77
77
|
width: 0,
|
|
78
78
|
height: 0
|
|
79
79
|
},
|
|
80
|
-
// The editor owns numbering; rendering the wire number keeps dots in sync with the panel.
|
|
81
80
|
displayNumber: marker.number
|
|
82
81
|
});
|
|
83
82
|
pageTopSlot += 1;
|
|
@@ -99,7 +98,6 @@ function resolveMarkers() {
|
|
|
99
98
|
marker,
|
|
100
99
|
element,
|
|
101
100
|
isFixed,
|
|
102
|
-
// Fixed frames use viewport coords; absolute frames use page coords.
|
|
103
101
|
rect: {
|
|
104
102
|
x: domRect.x + (isFixed ? 0 : scrollOffset.left),
|
|
105
103
|
y: domRect.y + (isFixed ? 0 : scrollOffset.top),
|
|
@@ -420,4 +418,3 @@ function initAnnotationLayer() {
|
|
|
420
418
|
export {
|
|
421
419
|
initAnnotationLayer
|
|
422
420
|
};
|
|
423
|
-
//# sourceMappingURL=annotationController.js.map
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
const ALLOWED_EDITOR_ORIGIN_PATTERNS = [
|
|
2
|
-
// Local dev editors (any port).
|
|
3
2
|
/^https?:\/\/localhost(?::\d+)?$/u,
|
|
4
|
-
// Hosted editors and miniapps; multi-label hosts like website-builder.apps.replo.app must pass.
|
|
5
3
|
/^https:\/\/(?:[a-z0-9-]+\.)*replo\.app$/u,
|
|
6
|
-
// Dev front-door tunnels (`https://replo-<alias>.ngrok.app`).
|
|
7
4
|
/^https:\/\/replo-[a-z0-9-]+\.ngrok\.app$/u
|
|
8
5
|
];
|
|
9
6
|
function isAllowedEditorOrigin(origin) {
|
|
@@ -19,4 +16,3 @@ export {
|
|
|
19
16
|
isAllowedEditorMessage,
|
|
20
17
|
isAllowedEditorOrigin
|
|
21
18
|
};
|
|
22
|
-
//# sourceMappingURL=bridgeGate.js.map
|
package/buildMetadata.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export const BUILD_METADATA = {
|
|
2
2
|
"packageName": "@replohq/sandbox-runtime",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.3",
|
|
4
4
|
"branch": "HEAD",
|
|
5
|
-
"commit": "
|
|
6
|
-
"builtAt": "2026-09-
|
|
5
|
+
"commit": "769a5347144bb3d6c77b6f06b075c8f6ad45a6b3",
|
|
6
|
+
"builtAt": "2026-09-16T18:01:45.448Z"
|
|
7
7
|
};
|
package/chunk-3YA3QXUQ.mjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// ../replo-utils/lib/viewportSnapshot.ts
|
|
2
1
|
var VIEWPORT_SNAPSHOT_REQUEST = "replo:viewport-snapshot:request";
|
|
3
2
|
var VIEWPORT_SNAPSHOT_RESPONSE = "replo:viewport-snapshot:response";
|
|
4
3
|
var VIEWPORT_CONTEXT_REQUEST = "replo:viewport-context:request";
|
|
@@ -51,8 +50,7 @@ function requestChildViewportSnapshots({
|
|
|
51
50
|
);
|
|
52
51
|
};
|
|
53
52
|
const onMessage = (event) => {
|
|
54
|
-
if (!isResponseMessage(event.data) || event.data.requestId !== requestId ||
|
|
55
|
-
// overwrite a sibling's capture or force an early settle.
|
|
53
|
+
if (!isResponseMessage(event.data) || event.data.requestId !== requestId ||
|
|
56
54
|
event.source !== targetWindow.frames[event.data.frameIndex]) {
|
|
57
55
|
return;
|
|
58
56
|
}
|
|
@@ -127,7 +125,6 @@ function startViewportSnapshotResponder({
|
|
|
127
125
|
}
|
|
128
126
|
void requestChildViewportSnapshots({
|
|
129
127
|
targetWindow,
|
|
130
|
-
// Derived per level so a child's own fan-out can't collide with ours.
|
|
131
128
|
requestId: `${requestId}:${frameIndex}`,
|
|
132
129
|
timeoutMs: cascadeTimeoutMs,
|
|
133
130
|
remainingDepth: remainingDepth - 1,
|
package/chunk-FLYEIRFK.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { isObjectLike_default, baseGetTag_default } from './chunk-G3S6ZNPF.mjs';
|
|
2
2
|
|
|
3
|
-
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isNumber.js
|
|
4
3
|
var numberTag = "[object Number]";
|
|
5
4
|
function isNumber(value) {
|
|
6
5
|
return typeof value == "number" || isObjectLike_default(value) && baseGetTag_default(value) == numberTag;
|
package/chunk-G3S6ZNPF.mjs
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js
|
|
2
1
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
3
2
|
var freeGlobal_default = freeGlobal;
|
|
4
3
|
|
|
5
|
-
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js
|
|
6
4
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
7
5
|
var root = freeGlobal_default || freeSelf || Function("return this")();
|
|
8
6
|
var root_default = root;
|
|
9
7
|
|
|
10
|
-
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js
|
|
11
8
|
var Symbol = root_default.Symbol;
|
|
12
9
|
var Symbol_default = Symbol;
|
|
13
10
|
|
|
14
|
-
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js
|
|
15
11
|
var objectProto = Object.prototype;
|
|
16
12
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
17
13
|
var nativeObjectToString = objectProto.toString;
|
|
@@ -35,7 +31,6 @@ function getRawTag(value) {
|
|
|
35
31
|
}
|
|
36
32
|
var getRawTag_default = getRawTag;
|
|
37
33
|
|
|
38
|
-
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js
|
|
39
34
|
var objectProto2 = Object.prototype;
|
|
40
35
|
var nativeObjectToString2 = objectProto2.toString;
|
|
41
36
|
function objectToString(value) {
|
|
@@ -43,7 +38,6 @@ function objectToString(value) {
|
|
|
43
38
|
}
|
|
44
39
|
var objectToString_default = objectToString;
|
|
45
40
|
|
|
46
|
-
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js
|
|
47
41
|
var nullTag = "[object Null]";
|
|
48
42
|
var undefinedTag = "[object Undefined]";
|
|
49
43
|
var symToStringTag2 = Symbol_default ? Symbol_default.toStringTag : void 0;
|
|
@@ -55,7 +49,6 @@ function baseGetTag(value) {
|
|
|
55
49
|
}
|
|
56
50
|
var baseGetTag_default = baseGetTag;
|
|
57
51
|
|
|
58
|
-
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js
|
|
59
52
|
function isObjectLike(value) {
|
|
60
53
|
return value != null && typeof value == "object";
|
|
61
54
|
}
|