@replohq/sandbox-runtime 1.19.5 → 1.21.0

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.
Files changed (52) hide show
  1. package/PagePreviewHeightResponder.d.ts +1 -0
  2. package/PagePreviewHeightResponder.js +159 -0
  3. package/_vendor/schemas/comments.d.ts +898 -0
  4. package/_vendor/schemas/commentsOverlayRpc.d.ts +348 -0
  5. package/_vendor/schemas/commentsOverlayRpc.mjs +92 -0
  6. package/_vendor/schemas/generated/comments.d.ts +237 -0
  7. package/_vendor/schemas/generated/commentsOverlayRpc.d.ts +18 -0
  8. package/_vendor/schemas/generated/selectMode.d.ts +3 -1
  9. package/_vendor/schemas/pagePreviewHeight.d.ts +14 -0
  10. package/_vendor/schemas/pagePreviewHeight.mjs +18 -0
  11. package/_vendor/schemas/selectMode.d.ts +113 -0
  12. package/_vendor/schemas/selectMode.mjs +1 -1
  13. package/_vendor/schemas/selectModeIframeRpc.d.ts +226 -0
  14. package/_vendor/schemas/selectModeIframeRpc.mjs +1 -1
  15. package/buildMetadata.js +3 -3
  16. package/chunk-NVOBD46N.mjs +541 -0
  17. package/comments-overlay/CommentsOverlayMount.d.ts +1 -0
  18. package/comments-overlay/CommentsOverlayMount.js +44 -0
  19. package/comments-overlay/LICENSE-THIRD-PARTY.md +45 -0
  20. package/comments-overlay/bridge.d.ts +11 -0
  21. package/comments-overlay/bridge.js +136 -0
  22. package/comments-overlay/capture.d.ts +55 -0
  23. package/comments-overlay/capture.js +250 -0
  24. package/comments-overlay/originGate.d.ts +1 -0
  25. package/comments-overlay/originGate.js +11 -0
  26. package/comments-overlay/overlay.d.ts +52 -0
  27. package/comments-overlay/overlay.js +781 -0
  28. package/comments-overlay/resolve.d.ts +27 -0
  29. package/comments-overlay/resolve.js +201 -0
  30. package/comments-overlay/sourceLookup.d.ts +11 -0
  31. package/comments-overlay/sourceLookup.js +63 -0
  32. package/comments-overlay/textQuote.d.ts +17 -0
  33. package/comments-overlay/textQuote.js +87 -0
  34. package/comments-overlay/vendor/bippy.d.ts +53 -0
  35. package/comments-overlay/vendor/bippy.js +402 -0
  36. package/comments-overlay/vendor/elementAnchors.d.ts +9 -0
  37. package/comments-overlay/vendor/elementAnchors.js +144 -0
  38. package/comments-overlay/vendor/fiberElement.d.ts +21 -0
  39. package/comments-overlay/vendor/fiberElement.js +251 -0
  40. package/comments-overlay/vendor/htmlPreview.d.ts +13 -0
  41. package/comments-overlay/vendor/htmlPreview.js +179 -0
  42. package/comments-overlay/vendor/selector.d.ts +38 -0
  43. package/comments-overlay/vendor/selector.js +372 -0
  44. package/package.json +5 -4
  45. package/pinPreviewViewportUnits.d.ts +4 -0
  46. package/pinPreviewViewportUnits.js +76 -0
  47. package/sandbox-runtime.js +4 -0
  48. package/select-mode/descriptor/elementDescriptor.d.ts +4 -3
  49. package/select-mode/descriptor/elementDescriptor.js +20 -30
  50. package/select-mode/iframeRpcChannel.d.ts +84 -0
  51. package/select-mode/symbolicate.js +25 -7
  52. package/chunk-QTGDSYSU.mjs +0 -249
@@ -1,4 +1,5 @@
1
- export type DisplayMode = "browse" | "selection";
1
+ import type { CommentAnchorElement } from "./comments";
2
+ export type DisplayMode = "browse" | "selection" | "comment";
2
3
  export type SelectModeSelectionType = "none" | "element" | "area" | "drag";
3
4
  export type SelectModeInlineTextStatus = "editable" | "dynamic" | "translated" | null;
4
5
  export type SelectModeTextMetrics = {
@@ -115,6 +116,7 @@ export type SelectedElement = {
115
116
  sourceLocation?: SelectModeSourceLocation;
116
117
  fiberChain: SelectModeFiberChainEntry[];
117
118
  siblingSelectors: string[];
119
+ anchor?: CommentAnchorElement;
118
120
  };
119
121
  export type SelectablePlanData = {
120
122
  kind: "plan";
@@ -0,0 +1,14 @@
1
+ import * as z from "zod/mini";
2
+ export declare const PAGE_PREVIEW_MAX_HEIGHT = 100000;
3
+ export declare const pagePreviewHeightRequestSchema: z.ZodMiniObject<{
4
+ type: z.ZodMiniEnum<{
5
+ "replo:page-preview-height:subscribe": "replo:page-preview-height:subscribe";
6
+ "replo:page-preview-height:measure": "replo:page-preview-height:measure";
7
+ }>;
8
+ }, z.core.$strip>;
9
+ export declare const pagePreviewHeightResponseSchema: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
10
+ type: z.ZodMiniLiteral<"replo:page-preview-height:update">;
11
+ height: z.ZodMiniNumber<number>;
12
+ }, z.core.$strip>, z.ZodMiniObject<{
13
+ type: z.ZodMiniLiteral<"replo:page-preview-height:reset">;
14
+ }, z.core.$strip>], "type">;
@@ -0,0 +1,18 @@
1
+ import * as z from 'zod/mini';
2
+
3
+ var PAGE_PREVIEW_MAX_HEIGHT = 1e5;
4
+ var pagePreviewHeightRequestSchema = z.object({
5
+ type: z.enum([
6
+ "replo:page-preview-height:subscribe",
7
+ "replo:page-preview-height:measure"
8
+ ])
9
+ });
10
+ var pagePreviewHeightResponseSchema = z.discriminatedUnion("type", [
11
+ z.object({
12
+ type: z.literal("replo:page-preview-height:update"),
13
+ height: z.number().check(z.minimum(1), z.maximum(PAGE_PREVIEW_MAX_HEIGHT))
14
+ }),
15
+ z.object({ type: z.literal("replo:page-preview-height:reset") })
16
+ ]);
17
+
18
+ export { PAGE_PREVIEW_MAX_HEIGHT, pagePreviewHeightRequestSchema, pagePreviewHeightResponseSchema };
@@ -2,6 +2,7 @@ import * as z from "zod";
2
2
  export declare const SELECT_MODE_SELECTABLE_ATTRIBUTE = "data-replo-selectable";
3
3
  export declare const SELECT_MODE_SELECTABLE_PAYLOAD_ATTRIBUTE = "data-replo-selectable-payload";
4
4
  export declare const displayModeSchema: z.ZodEnum<{
5
+ comment: "comment";
5
6
  browse: "browse";
6
7
  selection: "selection";
7
8
  }>;
@@ -221,6 +222,34 @@ export declare const selectedElementSchema: z.ZodObject<{
221
222
  props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
222
223
  }, z.core.$strip>>>;
223
224
  siblingSelectors: z.ZodDefault<z.ZodArray<z.ZodString>>;
225
+ anchor: z.ZodOptional<z.ZodObject<{
226
+ type: z.ZodLiteral<"element">;
227
+ semanticSelector: z.ZodOptional<z.ZodString>;
228
+ selector: z.ZodString;
229
+ nthOfTypePath: z.ZodString;
230
+ source: z.ZodOptional<z.ZodObject<{
231
+ filePath: z.ZodString;
232
+ componentChain: z.ZodArray<z.ZodString>;
233
+ line: z.ZodOptional<z.ZodNumber>;
234
+ col: z.ZodOptional<z.ZodNumber>;
235
+ }, z.core.$strip>>;
236
+ listKey: z.ZodOptional<z.ZodString>;
237
+ tagName: z.ZodString;
238
+ textPreview: z.ZodString;
239
+ quote: z.ZodOptional<z.ZodObject<{
240
+ exact: z.ZodString;
241
+ prefix: z.ZodString;
242
+ suffix: z.ZodString;
243
+ }, z.core.$strip>>;
244
+ offset: z.ZodObject<{
245
+ x: z.ZodNumber;
246
+ y: z.ZodNumber;
247
+ }, z.core.$strip>;
248
+ context: z.ZodOptional<z.ZodObject<{
249
+ url: z.ZodString;
250
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
251
+ }, z.core.$strip>>;
252
+ }, z.core.$strip>>;
224
253
  }, z.core.$strip>;
225
254
  export declare const selectablePlanDataSchema: z.ZodObject<{
226
255
  kind: z.ZodLiteral<"plan">;
@@ -328,6 +357,34 @@ export declare const selectableDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
328
357
  props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
329
358
  }, z.core.$strip>>>;
330
359
  siblingSelectors: z.ZodDefault<z.ZodArray<z.ZodString>>;
360
+ anchor: z.ZodOptional<z.ZodObject<{
361
+ type: z.ZodLiteral<"element">;
362
+ semanticSelector: z.ZodOptional<z.ZodString>;
363
+ selector: z.ZodString;
364
+ nthOfTypePath: z.ZodString;
365
+ source: z.ZodOptional<z.ZodObject<{
366
+ filePath: z.ZodString;
367
+ componentChain: z.ZodArray<z.ZodString>;
368
+ line: z.ZodOptional<z.ZodNumber>;
369
+ col: z.ZodOptional<z.ZodNumber>;
370
+ }, z.core.$strip>>;
371
+ listKey: z.ZodOptional<z.ZodString>;
372
+ tagName: z.ZodString;
373
+ textPreview: z.ZodString;
374
+ quote: z.ZodOptional<z.ZodObject<{
375
+ exact: z.ZodString;
376
+ prefix: z.ZodString;
377
+ suffix: z.ZodString;
378
+ }, z.core.$strip>>;
379
+ offset: z.ZodObject<{
380
+ x: z.ZodNumber;
381
+ y: z.ZodNumber;
382
+ }, z.core.$strip>;
383
+ context: z.ZodOptional<z.ZodObject<{
384
+ url: z.ZodString;
385
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
386
+ }, z.core.$strip>>;
387
+ }, z.core.$strip>>;
331
388
  }, z.core.$strip>, z.ZodObject<{
332
389
  kind: z.ZodLiteral<"plan">;
333
390
  planId: z.ZodString;
@@ -530,6 +587,34 @@ export declare const selectModeSelectionSchema: z.ZodDiscriminatedUnion<[z.ZodOb
530
587
  props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
531
588
  }, z.core.$strip>>>;
532
589
  siblingSelectors: z.ZodDefault<z.ZodArray<z.ZodString>>;
590
+ anchor: z.ZodOptional<z.ZodObject<{
591
+ type: z.ZodLiteral<"element">;
592
+ semanticSelector: z.ZodOptional<z.ZodString>;
593
+ selector: z.ZodString;
594
+ nthOfTypePath: z.ZodString;
595
+ source: z.ZodOptional<z.ZodObject<{
596
+ filePath: z.ZodString;
597
+ componentChain: z.ZodArray<z.ZodString>;
598
+ line: z.ZodOptional<z.ZodNumber>;
599
+ col: z.ZodOptional<z.ZodNumber>;
600
+ }, z.core.$strip>>;
601
+ listKey: z.ZodOptional<z.ZodString>;
602
+ tagName: z.ZodString;
603
+ textPreview: z.ZodString;
604
+ quote: z.ZodOptional<z.ZodObject<{
605
+ exact: z.ZodString;
606
+ prefix: z.ZodString;
607
+ suffix: z.ZodString;
608
+ }, z.core.$strip>>;
609
+ offset: z.ZodObject<{
610
+ x: z.ZodNumber;
611
+ y: z.ZodNumber;
612
+ }, z.core.$strip>;
613
+ context: z.ZodOptional<z.ZodObject<{
614
+ url: z.ZodString;
615
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
616
+ }, z.core.$strip>>;
617
+ }, z.core.$strip>>;
533
618
  }, z.core.$strip>, z.ZodObject<{
534
619
  kind: z.ZodLiteral<"plan">;
535
620
  planId: z.ZodString;
@@ -638,6 +723,34 @@ export declare const selectModeSelectionSchema: z.ZodDiscriminatedUnion<[z.ZodOb
638
723
  props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
639
724
  }, z.core.$strip>>>;
640
725
  siblingSelectors: z.ZodDefault<z.ZodArray<z.ZodString>>;
726
+ anchor: z.ZodOptional<z.ZodObject<{
727
+ type: z.ZodLiteral<"element">;
728
+ semanticSelector: z.ZodOptional<z.ZodString>;
729
+ selector: z.ZodString;
730
+ nthOfTypePath: z.ZodString;
731
+ source: z.ZodOptional<z.ZodObject<{
732
+ filePath: z.ZodString;
733
+ componentChain: z.ZodArray<z.ZodString>;
734
+ line: z.ZodOptional<z.ZodNumber>;
735
+ col: z.ZodOptional<z.ZodNumber>;
736
+ }, z.core.$strip>>;
737
+ listKey: z.ZodOptional<z.ZodString>;
738
+ tagName: z.ZodString;
739
+ textPreview: z.ZodString;
740
+ quote: z.ZodOptional<z.ZodObject<{
741
+ exact: z.ZodString;
742
+ prefix: z.ZodString;
743
+ suffix: z.ZodString;
744
+ }, z.core.$strip>>;
745
+ offset: z.ZodObject<{
746
+ x: z.ZodNumber;
747
+ y: z.ZodNumber;
748
+ }, z.core.$strip>;
749
+ context: z.ZodOptional<z.ZodObject<{
750
+ url: z.ZodString;
751
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
752
+ }, z.core.$strip>>;
753
+ }, z.core.$strip>>;
641
754
  }, z.core.$strip>, z.ZodObject<{
642
755
  kind: z.ZodLiteral<"plan">;
643
756
  planId: z.ZodString;
@@ -1,4 +1,4 @@
1
- export { SELECT_MODE_SELECTABLE_ATTRIBUTE, SELECT_MODE_SELECTABLE_PAYLOAD_ATTRIBUTE, displayModeSchema, getIframeOffset, isSelectedSection, readSelectablePayload, selectModeBoundingRectSchema, selectModeClickPositionSchema, selectModeDefinedStyleSchema, selectModeFiberChainEntrySchema, selectModeFormatCommandSchema, selectModeHoverRectSchema, selectModeImageSchema, selectModeImageScopeSchema, selectModeImageSourceSchema, selectModeInlineTextStatusSchema, selectModeOptimisticUpdatePayloadSchema, selectModeSelectionRectSchema, selectModeSelectionSchema, selectModeSelectionTypeSchema, selectModeSourceLocationSchema, selectModeStyleAtRuleSchema, selectModeStyleVariantSchema, selectModeTextMetricsSchema, selectModeTiptapActiveMarksSchema, selectModeVideoSchema, selectableDataPayloadSchema, selectableDataSchema, selectablePlanDataSchema, selectablePlanPayloadSchema, selectedElementSchema, transformPoint, transformRect, transformSelectableData, transformSelectedElement } from '../../chunk-QTGDSYSU.mjs';
1
+ export { SELECT_MODE_SELECTABLE_ATTRIBUTE, SELECT_MODE_SELECTABLE_PAYLOAD_ATTRIBUTE, displayModeSchema, getIframeOffset, isSelectedSection, readSelectablePayload, selectModeBoundingRectSchema, selectModeClickPositionSchema, selectModeDefinedStyleSchema, selectModeFiberChainEntrySchema, selectModeFormatCommandSchema, selectModeHoverRectSchema, selectModeImageSchema, selectModeImageScopeSchema, selectModeImageSourceSchema, selectModeInlineTextStatusSchema, selectModeOptimisticUpdatePayloadSchema, selectModeSelectionRectSchema, selectModeSelectionSchema, selectModeSelectionTypeSchema, selectModeSourceLocationSchema, selectModeStyleAtRuleSchema, selectModeStyleVariantSchema, selectModeTextMetricsSchema, selectModeTiptapActiveMarksSchema, selectModeVideoSchema, selectableDataPayloadSchema, selectableDataSchema, selectablePlanDataSchema, selectablePlanPayloadSchema, selectedElementSchema, transformPoint, transformRect, transformSelectableData, transformSelectedElement } from '../../chunk-NVOBD46N.mjs';
2
2
  import '../../chunk-THOBCJJA.mjs';
3
3
  import '../../chunk-4ITJNSXZ.mjs';
4
4
  import '../../chunk-SKVPFN7M.mjs';
@@ -201,6 +201,34 @@ export declare const selectModeEventInputSchemas: {
201
201
  props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
202
202
  }, z.core.$strip>>>;
203
203
  siblingSelectors: z.ZodDefault<z.ZodArray<z.ZodString>>;
204
+ anchor: z.ZodOptional<z.ZodObject<{
205
+ type: z.ZodLiteral<"element">;
206
+ semanticSelector: z.ZodOptional<z.ZodString>;
207
+ selector: z.ZodString;
208
+ nthOfTypePath: z.ZodString;
209
+ source: z.ZodOptional<z.ZodObject<{
210
+ filePath: z.ZodString;
211
+ componentChain: z.ZodArray<z.ZodString>;
212
+ line: z.ZodOptional<z.ZodNumber>;
213
+ col: z.ZodOptional<z.ZodNumber>;
214
+ }, z.core.$strip>>;
215
+ listKey: z.ZodOptional<z.ZodString>;
216
+ tagName: z.ZodString;
217
+ textPreview: z.ZodString;
218
+ quote: z.ZodOptional<z.ZodObject<{
219
+ exact: z.ZodString;
220
+ prefix: z.ZodString;
221
+ suffix: z.ZodString;
222
+ }, z.core.$strip>>;
223
+ offset: z.ZodObject<{
224
+ x: z.ZodNumber;
225
+ y: z.ZodNumber;
226
+ }, z.core.$strip>;
227
+ context: z.ZodOptional<z.ZodObject<{
228
+ url: z.ZodString;
229
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
230
+ }, z.core.$strip>>;
231
+ }, z.core.$strip>>;
204
232
  }, z.core.$strip>, z.ZodObject<{
205
233
  kind: z.ZodLiteral<"plan">;
206
234
  planId: z.ZodString;
@@ -380,6 +408,34 @@ export declare const websiteBuilderToPreviewIframeMethodConfig: {
380
408
  props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
381
409
  }, z.core.$strip>>>;
382
410
  siblingSelectors: z.ZodDefault<z.ZodArray<z.ZodString>>;
411
+ anchor: z.ZodOptional<z.ZodObject<{
412
+ type: z.ZodLiteral<"element">;
413
+ semanticSelector: z.ZodOptional<z.ZodString>;
414
+ selector: z.ZodString;
415
+ nthOfTypePath: z.ZodString;
416
+ source: z.ZodOptional<z.ZodObject<{
417
+ filePath: z.ZodString;
418
+ componentChain: z.ZodArray<z.ZodString>;
419
+ line: z.ZodOptional<z.ZodNumber>;
420
+ col: z.ZodOptional<z.ZodNumber>;
421
+ }, z.core.$strip>>;
422
+ listKey: z.ZodOptional<z.ZodString>;
423
+ tagName: z.ZodString;
424
+ textPreview: z.ZodString;
425
+ quote: z.ZodOptional<z.ZodObject<{
426
+ exact: z.ZodString;
427
+ prefix: z.ZodString;
428
+ suffix: z.ZodString;
429
+ }, z.core.$strip>>;
430
+ offset: z.ZodObject<{
431
+ x: z.ZodNumber;
432
+ y: z.ZodNumber;
433
+ }, z.core.$strip>;
434
+ context: z.ZodOptional<z.ZodObject<{
435
+ url: z.ZodString;
436
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
437
+ }, z.core.$strip>>;
438
+ }, z.core.$strip>>;
383
439
  }, z.core.$strip>;
384
440
  outputSchema: z.ZodObject<{
385
441
  kind: z.ZodLiteral<"react-element">;
@@ -462,6 +518,34 @@ export declare const websiteBuilderToPreviewIframeMethodConfig: {
462
518
  props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
463
519
  }, z.core.$strip>>>;
464
520
  siblingSelectors: z.ZodDefault<z.ZodArray<z.ZodString>>;
521
+ anchor: z.ZodOptional<z.ZodObject<{
522
+ type: z.ZodLiteral<"element">;
523
+ semanticSelector: z.ZodOptional<z.ZodString>;
524
+ selector: z.ZodString;
525
+ nthOfTypePath: z.ZodString;
526
+ source: z.ZodOptional<z.ZodObject<{
527
+ filePath: z.ZodString;
528
+ componentChain: z.ZodArray<z.ZodString>;
529
+ line: z.ZodOptional<z.ZodNumber>;
530
+ col: z.ZodOptional<z.ZodNumber>;
531
+ }, z.core.$strip>>;
532
+ listKey: z.ZodOptional<z.ZodString>;
533
+ tagName: z.ZodString;
534
+ textPreview: z.ZodString;
535
+ quote: z.ZodOptional<z.ZodObject<{
536
+ exact: z.ZodString;
537
+ prefix: z.ZodString;
538
+ suffix: z.ZodString;
539
+ }, z.core.$strip>>;
540
+ offset: z.ZodObject<{
541
+ x: z.ZodNumber;
542
+ y: z.ZodNumber;
543
+ }, z.core.$strip>;
544
+ context: z.ZodOptional<z.ZodObject<{
545
+ url: z.ZodString;
546
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
547
+ }, z.core.$strip>>;
548
+ }, z.core.$strip>>;
465
549
  }, z.core.$strip>;
466
550
  timeoutMs: number;
467
551
  };
@@ -474,6 +558,7 @@ export declare const websiteBuilderToPreviewIframeMethodConfig: {
474
558
  setDisplayMode: {
475
559
  inputSchema: z.ZodObject<{
476
560
  displayMode: z.ZodEnum<{
561
+ comment: "comment";
477
562
  browse: "browse";
478
563
  selection: "selection";
479
564
  }>;
@@ -706,6 +791,34 @@ export declare const previewIframeToWebsiteBuilderMethodConfig: {
706
791
  props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
707
792
  }, z.core.$strip>>>;
708
793
  siblingSelectors: z.ZodDefault<z.ZodArray<z.ZodString>>;
794
+ anchor: z.ZodOptional<z.ZodObject<{
795
+ type: z.ZodLiteral<"element">;
796
+ semanticSelector: z.ZodOptional<z.ZodString>;
797
+ selector: z.ZodString;
798
+ nthOfTypePath: z.ZodString;
799
+ source: z.ZodOptional<z.ZodObject<{
800
+ filePath: z.ZodString;
801
+ componentChain: z.ZodArray<z.ZodString>;
802
+ line: z.ZodOptional<z.ZodNumber>;
803
+ col: z.ZodOptional<z.ZodNumber>;
804
+ }, z.core.$strip>>;
805
+ listKey: z.ZodOptional<z.ZodString>;
806
+ tagName: z.ZodString;
807
+ textPreview: z.ZodString;
808
+ quote: z.ZodOptional<z.ZodObject<{
809
+ exact: z.ZodString;
810
+ prefix: z.ZodString;
811
+ suffix: z.ZodString;
812
+ }, z.core.$strip>>;
813
+ offset: z.ZodObject<{
814
+ x: z.ZodNumber;
815
+ y: z.ZodNumber;
816
+ }, z.core.$strip>;
817
+ context: z.ZodOptional<z.ZodObject<{
818
+ url: z.ZodString;
819
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
820
+ }, z.core.$strip>>;
821
+ }, z.core.$strip>>;
709
822
  }, z.core.$strip>;
710
823
  }, z.core.$strip>;
711
824
  outputSchema: z.ZodObject<{
@@ -807,6 +920,34 @@ export declare const previewIframeToWebsiteBuilderMethodConfig: {
807
920
  props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
808
921
  }, z.core.$strip>>>;
809
922
  siblingSelectors: z.ZodDefault<z.ZodArray<z.ZodString>>;
923
+ anchor: z.ZodOptional<z.ZodObject<{
924
+ type: z.ZodLiteral<"element">;
925
+ semanticSelector: z.ZodOptional<z.ZodString>;
926
+ selector: z.ZodString;
927
+ nthOfTypePath: z.ZodString;
928
+ source: z.ZodOptional<z.ZodObject<{
929
+ filePath: z.ZodString;
930
+ componentChain: z.ZodArray<z.ZodString>;
931
+ line: z.ZodOptional<z.ZodNumber>;
932
+ col: z.ZodOptional<z.ZodNumber>;
933
+ }, z.core.$strip>>;
934
+ listKey: z.ZodOptional<z.ZodString>;
935
+ tagName: z.ZodString;
936
+ textPreview: z.ZodString;
937
+ quote: z.ZodOptional<z.ZodObject<{
938
+ exact: z.ZodString;
939
+ prefix: z.ZodString;
940
+ suffix: z.ZodString;
941
+ }, z.core.$strip>>;
942
+ offset: z.ZodObject<{
943
+ x: z.ZodNumber;
944
+ y: z.ZodNumber;
945
+ }, z.core.$strip>;
946
+ context: z.ZodOptional<z.ZodObject<{
947
+ url: z.ZodString;
948
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
949
+ }, z.core.$strip>>;
950
+ }, z.core.$strip>>;
810
951
  }, z.core.$strip>, z.ZodObject<{
811
952
  kind: z.ZodLiteral<"plan">;
812
953
  planId: z.ZodString;
@@ -996,6 +1137,34 @@ export declare const previewIframeToWebsiteBuilderMethodConfig: {
996
1137
  props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
997
1138
  }, z.core.$strip>>>;
998
1139
  siblingSelectors: z.ZodDefault<z.ZodArray<z.ZodString>>;
1140
+ anchor: z.ZodOptional<z.ZodObject<{
1141
+ type: z.ZodLiteral<"element">;
1142
+ semanticSelector: z.ZodOptional<z.ZodString>;
1143
+ selector: z.ZodString;
1144
+ nthOfTypePath: z.ZodString;
1145
+ source: z.ZodOptional<z.ZodObject<{
1146
+ filePath: z.ZodString;
1147
+ componentChain: z.ZodArray<z.ZodString>;
1148
+ line: z.ZodOptional<z.ZodNumber>;
1149
+ col: z.ZodOptional<z.ZodNumber>;
1150
+ }, z.core.$strip>>;
1151
+ listKey: z.ZodOptional<z.ZodString>;
1152
+ tagName: z.ZodString;
1153
+ textPreview: z.ZodString;
1154
+ quote: z.ZodOptional<z.ZodObject<{
1155
+ exact: z.ZodString;
1156
+ prefix: z.ZodString;
1157
+ suffix: z.ZodString;
1158
+ }, z.core.$strip>>;
1159
+ offset: z.ZodObject<{
1160
+ x: z.ZodNumber;
1161
+ y: z.ZodNumber;
1162
+ }, z.core.$strip>;
1163
+ context: z.ZodOptional<z.ZodObject<{
1164
+ url: z.ZodString;
1165
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1166
+ }, z.core.$strip>>;
1167
+ }, z.core.$strip>>;
999
1168
  }, z.core.$strip>, z.ZodObject<{
1000
1169
  kind: z.ZodLiteral<"plan">;
1001
1170
  planId: z.ZodString;
@@ -1077,6 +1246,7 @@ export declare const selectModeParentMessageSchema: z.ZodDiscriminatedUnion<[z.Z
1077
1246
  method: z.ZodLiteral<"setDisplayMode">;
1078
1247
  data: z.ZodObject<{
1079
1248
  displayMode: z.ZodEnum<{
1249
+ comment: "comment";
1080
1250
  browse: "browse";
1081
1251
  selection: "selection";
1082
1252
  }>;
@@ -1263,6 +1433,34 @@ export declare const selectModeIframeMessageSchema: z.ZodDiscriminatedUnion<[z.Z
1263
1433
  props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1264
1434
  }, z.core.$strip>>>;
1265
1435
  siblingSelectors: z.ZodDefault<z.ZodArray<z.ZodString>>;
1436
+ anchor: z.ZodOptional<z.ZodObject<{
1437
+ type: z.ZodLiteral<"element">;
1438
+ semanticSelector: z.ZodOptional<z.ZodString>;
1439
+ selector: z.ZodString;
1440
+ nthOfTypePath: z.ZodString;
1441
+ source: z.ZodOptional<z.ZodObject<{
1442
+ filePath: z.ZodString;
1443
+ componentChain: z.ZodArray<z.ZodString>;
1444
+ line: z.ZodOptional<z.ZodNumber>;
1445
+ col: z.ZodOptional<z.ZodNumber>;
1446
+ }, z.core.$strip>>;
1447
+ listKey: z.ZodOptional<z.ZodString>;
1448
+ tagName: z.ZodString;
1449
+ textPreview: z.ZodString;
1450
+ quote: z.ZodOptional<z.ZodObject<{
1451
+ exact: z.ZodString;
1452
+ prefix: z.ZodString;
1453
+ suffix: z.ZodString;
1454
+ }, z.core.$strip>>;
1455
+ offset: z.ZodObject<{
1456
+ x: z.ZodNumber;
1457
+ y: z.ZodNumber;
1458
+ }, z.core.$strip>;
1459
+ context: z.ZodOptional<z.ZodObject<{
1460
+ url: z.ZodString;
1461
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1462
+ }, z.core.$strip>>;
1463
+ }, z.core.$strip>>;
1266
1464
  }, z.core.$strip>, z.ZodObject<{
1267
1465
  kind: z.ZodLiteral<"plan">;
1268
1466
  planId: z.ZodString;
@@ -1447,6 +1645,34 @@ export declare const selectModeIframeMessageSchema: z.ZodDiscriminatedUnion<[z.Z
1447
1645
  props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1448
1646
  }, z.core.$strip>>>;
1449
1647
  siblingSelectors: z.ZodDefault<z.ZodArray<z.ZodString>>;
1648
+ anchor: z.ZodOptional<z.ZodObject<{
1649
+ type: z.ZodLiteral<"element">;
1650
+ semanticSelector: z.ZodOptional<z.ZodString>;
1651
+ selector: z.ZodString;
1652
+ nthOfTypePath: z.ZodString;
1653
+ source: z.ZodOptional<z.ZodObject<{
1654
+ filePath: z.ZodString;
1655
+ componentChain: z.ZodArray<z.ZodString>;
1656
+ line: z.ZodOptional<z.ZodNumber>;
1657
+ col: z.ZodOptional<z.ZodNumber>;
1658
+ }, z.core.$strip>>;
1659
+ listKey: z.ZodOptional<z.ZodString>;
1660
+ tagName: z.ZodString;
1661
+ textPreview: z.ZodString;
1662
+ quote: z.ZodOptional<z.ZodObject<{
1663
+ exact: z.ZodString;
1664
+ prefix: z.ZodString;
1665
+ suffix: z.ZodString;
1666
+ }, z.core.$strip>>;
1667
+ offset: z.ZodObject<{
1668
+ x: z.ZodNumber;
1669
+ y: z.ZodNumber;
1670
+ }, z.core.$strip>;
1671
+ context: z.ZodOptional<z.ZodObject<{
1672
+ url: z.ZodString;
1673
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1674
+ }, z.core.$strip>>;
1675
+ }, z.core.$strip>>;
1450
1676
  }, z.core.$strip>, z.ZodObject<{
1451
1677
  kind: z.ZodLiteral<"plan">;
1452
1678
  planId: z.ZodString;
@@ -1,4 +1,4 @@
1
- import { selectModeBoundingRectSchema, selectModeTiptapActiveMarksSchema, selectModeSelectionRectSchema, selectableDataSchema, selectModeHoverRectSchema, selectModeFormatCommandSchema, selectModeOptimisticUpdatePayloadSchema, selectModeSelectionTypeSchema, displayModeSchema, selectModeClickPositionSchema, selectedElementSchema } from '../../chunk-QTGDSYSU.mjs';
1
+ import { selectModeBoundingRectSchema, selectModeTiptapActiveMarksSchema, selectModeSelectionRectSchema, selectableDataSchema, selectModeHoverRectSchema, selectModeFormatCommandSchema, selectModeOptimisticUpdatePayloadSchema, selectModeSelectionTypeSchema, displayModeSchema, selectModeClickPositionSchema, selectedElementSchema } from '../../chunk-NVOBD46N.mjs';
2
2
  import '../../chunk-THOBCJJA.mjs';
3
3
  import '../../chunk-4ITJNSXZ.mjs';
4
4
  import '../../chunk-SKVPFN7M.mjs';
package/buildMetadata.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export const BUILD_METADATA = {
2
2
  "packageName": "@replohq/sandbox-runtime",
3
- "version": "1.19.5",
3
+ "version": "1.21.0",
4
4
  "branch": "HEAD",
5
- "commit": "925967a151b3e53a1891d5d57b0cf956b0f64ffe",
6
- "builtAt": "2026-10-28T00:16:14.622Z"
5
+ "commit": "d5ce2185ff844319f59248b9da6641bf96f4c0a2",
6
+ "builtAt": "2026-10-29T04:07:57.675Z"
7
7
  };