@replohq/canopy-sdk 3.0.5 → 3.0.6

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.
@@ -2,6 +2,23 @@ import type { SelectModeIframeMessage, SelectModeParentMessage } from "./generat
2
2
  import { z } from "zod";
3
3
  export declare const SELECT_MODE_IFRAME_RPC_CHANNEL_ID: "replo:select-mode-iframe-rpc";
4
4
  export declare const SELECT_MODE_IFRAME_RPC_CHANNEL_VERSION: 1;
5
+ export declare const inlineEditFeedbackSchema: z.ZodObject<{
6
+ status: z.ZodEnum<{
7
+ pending: "pending";
8
+ unavailable: "unavailable";
9
+ failed: "failed";
10
+ }>;
11
+ rect: z.ZodObject<{
12
+ x: z.ZodNumber;
13
+ y: z.ZodNumber;
14
+ left: z.ZodNumber;
15
+ top: z.ZodNumber;
16
+ right: z.ZodNumber;
17
+ bottom: z.ZodNumber;
18
+ width: z.ZodNumber;
19
+ height: z.ZodNumber;
20
+ }, z.core.$strip>;
21
+ }, z.core.$strip>;
5
22
  export declare const iframeRuntimeBuildMetadataSchema: z.ZodObject<{
6
23
  packageName: z.ZodString;
7
24
  version: z.ZodString;
@@ -9,14 +26,21 @@ export declare const iframeRuntimeBuildMetadataSchema: z.ZodObject<{
9
26
  commit: z.ZodNullable<z.ZodString>;
10
27
  builtAt: z.ZodNullable<z.ZodString>;
11
28
  }, z.core.$strip>;
12
- export declare const selectedComponentEditRequestSchema: z.ZodObject<{
13
- siteId: z.ZodUUID;
14
- element: z.ZodObject<{
15
- kind: z.ZodLiteral<"react-element">;
16
- selector: z.ZodString;
17
- tagName: z.ZodString;
18
- elementType: z.ZodString;
19
- textContent: z.ZodNullable<z.ZodString>;
29
+ export declare const selectModeEventInputSchemas: {
30
+ hover: z.ZodObject<{
31
+ rect: z.ZodNullable<z.ZodObject<{
32
+ x: z.ZodNumber;
33
+ y: z.ZodNumber;
34
+ left: z.ZodNumber;
35
+ top: z.ZodNumber;
36
+ right: z.ZodNumber;
37
+ bottom: z.ZodNumber;
38
+ width: z.ZodNumber;
39
+ height: z.ZodNumber;
40
+ isSection: z.ZodOptional<z.ZodBoolean>;
41
+ }, z.core.$strip>>;
42
+ }, z.core.$strip>;
43
+ areaSelection: z.ZodObject<{
20
44
  rect: z.ZodObject<{
21
45
  x: z.ZodNumber;
22
46
  y: z.ZodNumber;
@@ -27,58 +51,163 @@ export declare const selectedComponentEditRequestSchema: z.ZodObject<{
27
51
  width: z.ZodNumber;
28
52
  height: z.ZodNumber;
29
53
  }, z.core.$strip>;
30
- textMetrics: z.ZodNullable<z.ZodObject<{
31
- tightWidth: z.ZodNumber;
32
- lineCount: z.ZodNumber;
33
- lineHeight: z.ZodNumber;
34
- }, z.core.$strip>>;
35
- outerHTML: z.ZodString;
36
- definedStyles: z.ZodDefault<z.ZodArray<z.ZodObject<{
37
- property: z.ZodString;
38
- variant: z.ZodNullable<z.ZodObject<{
39
- atRules: z.ZodArray<z.ZodObject<{
54
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
55
+ kind: z.ZodLiteral<"react-element">;
56
+ selector: z.ZodString;
57
+ section: z.ZodOptional<z.ZodObject<{
58
+ selector: z.ZodString;
59
+ }, z.core.$strip>>;
60
+ tagName: z.ZodString;
61
+ elementType: z.ZodString;
62
+ textContent: z.ZodNullable<z.ZodString>;
63
+ sectionLabel: z.ZodOptional<z.ZodString>;
64
+ rect: z.ZodObject<{
65
+ x: z.ZodNumber;
66
+ y: z.ZodNumber;
67
+ left: z.ZodNumber;
68
+ top: z.ZodNumber;
69
+ right: z.ZodNumber;
70
+ bottom: z.ZodNumber;
71
+ width: z.ZodNumber;
72
+ height: z.ZodNumber;
73
+ }, z.core.$strip>;
74
+ textMetrics: z.ZodNullable<z.ZodObject<{
75
+ tightWidth: z.ZodNumber;
76
+ lineCount: z.ZodNumber;
77
+ lineHeight: z.ZodNumber;
78
+ }, z.core.$strip>>;
79
+ outerHTML: z.ZodString;
80
+ image: z.ZodOptional<z.ZodObject<{
81
+ src: z.ZodString;
82
+ currentSrc: z.ZodString;
83
+ srcSet: z.ZodString;
84
+ sizes: z.ZodString;
85
+ previewUrl: z.ZodNullable<z.ZodString>;
86
+ sources: z.ZodArray<z.ZodObject<{
87
+ srcSet: z.ZodString;
88
+ sizes: z.ZodString;
89
+ media: z.ZodString;
40
90
  type: z.ZodString;
41
- text: z.ZodString;
91
+ previewUrl: z.ZodNullable<z.ZodString>;
42
92
  }, z.core.$strip>>;
43
- pseudo: z.ZodNullable<z.ZodString>;
44
93
  }, z.core.$strip>>;
45
- className: z.ZodNullable<z.ZodString>;
46
- raw: z.ZodString;
47
- resolved: z.ZodString;
48
- }, z.core.$strip>>>;
49
- inheritedStyles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
50
- clickPosition: z.ZodObject<{
51
- x: z.ZodNumber;
52
- y: z.ZodNumber;
53
- }, z.core.$strip>;
54
- sourceLocation: z.ZodOptional<z.ZodObject<{
55
- filePath: z.ZodString;
56
- lineNumber: z.ZodNumber;
57
- columnNumber: z.ZodOptional<z.ZodNumber>;
58
- componentName: z.ZodOptional<z.ZodString>;
59
- }, z.core.$strip>>;
60
- fiberChain: z.ZodDefault<z.ZodArray<z.ZodObject<{
61
- sourceLocation: z.ZodObject<{
94
+ video: z.ZodOptional<z.ZodObject<{
95
+ src: z.ZodString;
96
+ currentSrc: z.ZodString;
97
+ }, z.core.$strip>>;
98
+ definedStyles: z.ZodDefault<z.ZodArray<z.ZodObject<{
99
+ property: z.ZodString;
100
+ variant: z.ZodNullable<z.ZodObject<{
101
+ atRules: z.ZodArray<z.ZodObject<{
102
+ type: z.ZodString;
103
+ text: z.ZodString;
104
+ }, z.core.$strip>>;
105
+ pseudo: z.ZodNullable<z.ZodString>;
106
+ }, z.core.$strip>>;
107
+ className: z.ZodNullable<z.ZodString>;
108
+ raw: z.ZodString;
109
+ resolved: z.ZodString;
110
+ }, z.core.$strip>>>;
111
+ authoredStyles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
112
+ inheritedStyles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
113
+ clickPosition: z.ZodObject<{
114
+ x: z.ZodNumber;
115
+ y: z.ZodNumber;
116
+ }, z.core.$strip>;
117
+ sourceLocation: z.ZodOptional<z.ZodObject<{
62
118
  filePath: z.ZodString;
63
119
  lineNumber: z.ZodNumber;
64
120
  columnNumber: z.ZodOptional<z.ZodNumber>;
65
121
  componentName: z.ZodOptional<z.ZodString>;
122
+ }, z.core.$strip>>;
123
+ fiberChain: z.ZodDefault<z.ZodArray<z.ZodObject<{
124
+ sourceLocation: z.ZodObject<{
125
+ filePath: z.ZodString;
126
+ lineNumber: z.ZodNumber;
127
+ columnNumber: z.ZodOptional<z.ZodNumber>;
128
+ componentName: z.ZodOptional<z.ZodString>;
129
+ }, z.core.$strip>;
130
+ tagName: z.ZodOptional<z.ZodString>;
131
+ componentName: z.ZodOptional<z.ZodString>;
132
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
133
+ }, z.core.$strip>>>;
134
+ siblingSelectors: z.ZodDefault<z.ZodArray<z.ZodString>>;
135
+ }, z.core.$strip>, z.ZodObject<{
136
+ kind: z.ZodLiteral<"plan">;
137
+ planId: z.ZodString;
138
+ label: z.ZodString;
139
+ rect: z.ZodObject<{
140
+ x: z.ZodNumber;
141
+ y: z.ZodNumber;
142
+ left: z.ZodNumber;
143
+ top: z.ZodNumber;
144
+ right: z.ZodNumber;
145
+ bottom: z.ZodNumber;
146
+ width: z.ZodNumber;
147
+ height: z.ZodNumber;
66
148
  }, z.core.$strip>;
67
- tagName: z.ZodOptional<z.ZodString>;
68
- componentName: z.ZodOptional<z.ZodString>;
69
- props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
70
- }, z.core.$strip>>>;
71
- siblingSelectors: z.ZodDefault<z.ZodArray<z.ZodString>>;
149
+ }, z.core.$strip>], "kind">>;
72
150
  }, z.core.$strip>;
73
- }, z.core.$strip>;
74
- export declare const websiteBuilderToCanopyMethodConfig: {
151
+ dragRect: z.ZodObject<{
152
+ dragRect: z.ZodNullable<z.ZodObject<{
153
+ x: z.ZodNumber;
154
+ y: z.ZodNumber;
155
+ left: z.ZodNumber;
156
+ top: z.ZodNumber;
157
+ right: z.ZodNumber;
158
+ bottom: z.ZodNumber;
159
+ width: z.ZodNumber;
160
+ height: z.ZodNumber;
161
+ }, z.core.$strip>>;
162
+ selectionRects: z.ZodArray<z.ZodObject<{
163
+ id: z.ZodString;
164
+ rect: z.ZodObject<{
165
+ x: z.ZodNumber;
166
+ y: z.ZodNumber;
167
+ left: z.ZodNumber;
168
+ top: z.ZodNumber;
169
+ right: z.ZodNumber;
170
+ bottom: z.ZodNumber;
171
+ width: z.ZodNumber;
172
+ height: z.ZodNumber;
173
+ }, z.core.$strip>;
174
+ }, z.core.$strip>>;
175
+ }, z.core.$strip>;
176
+ inlineEditState: z.ZodObject<{
177
+ activeMarks: z.ZodObject<{
178
+ bold: z.ZodBoolean;
179
+ italic: z.ZodBoolean;
180
+ underline: z.ZodBoolean;
181
+ strike: z.ZodBoolean;
182
+ }, z.core.$strip>;
183
+ isInlineEditing: z.ZodBoolean;
184
+ isInlineEditPending: z.ZodBoolean;
185
+ }, z.core.$strip>;
186
+ };
187
+ export declare const websiteBuilderToPreviewIframeMethodConfig: {
188
+ expandToSection: {
189
+ inputSchema: z.ZodObject<{
190
+ targetSelector: z.ZodString;
191
+ }, z.core.$strip>;
192
+ outputSchema: z.ZodVoid;
193
+ };
194
+ setSectionPreview: {
195
+ inputSchema: z.ZodObject<{
196
+ targetSelector: z.ZodNullable<z.ZodString>;
197
+ }, z.core.$strip>;
198
+ outputSchema: z.ZodVoid;
199
+ };
75
200
  symbolicateSelectedElement: {
76
201
  inputSchema: z.ZodObject<{
77
202
  kind: z.ZodLiteral<"react-element">;
78
203
  selector: z.ZodString;
204
+ section: z.ZodOptional<z.ZodObject<{
205
+ selector: z.ZodString;
206
+ }, z.core.$strip>>;
79
207
  tagName: z.ZodString;
80
208
  elementType: z.ZodString;
81
209
  textContent: z.ZodNullable<z.ZodString>;
210
+ sectionLabel: z.ZodOptional<z.ZodString>;
82
211
  rect: z.ZodObject<{
83
212
  x: z.ZodNumber;
84
213
  y: z.ZodNumber;
@@ -95,6 +224,24 @@ export declare const websiteBuilderToCanopyMethodConfig: {
95
224
  lineHeight: z.ZodNumber;
96
225
  }, z.core.$strip>>;
97
226
  outerHTML: z.ZodString;
227
+ image: z.ZodOptional<z.ZodObject<{
228
+ src: z.ZodString;
229
+ currentSrc: z.ZodString;
230
+ srcSet: z.ZodString;
231
+ sizes: z.ZodString;
232
+ previewUrl: z.ZodNullable<z.ZodString>;
233
+ sources: z.ZodArray<z.ZodObject<{
234
+ srcSet: z.ZodString;
235
+ sizes: z.ZodString;
236
+ media: z.ZodString;
237
+ type: z.ZodString;
238
+ previewUrl: z.ZodNullable<z.ZodString>;
239
+ }, z.core.$strip>>;
240
+ }, z.core.$strip>>;
241
+ video: z.ZodOptional<z.ZodObject<{
242
+ src: z.ZodString;
243
+ currentSrc: z.ZodString;
244
+ }, z.core.$strip>>;
98
245
  definedStyles: z.ZodDefault<z.ZodArray<z.ZodObject<{
99
246
  property: z.ZodString;
100
247
  variant: z.ZodNullable<z.ZodObject<{
@@ -108,6 +255,7 @@ export declare const websiteBuilderToCanopyMethodConfig: {
108
255
  raw: z.ZodString;
109
256
  resolved: z.ZodString;
110
257
  }, z.core.$strip>>>;
258
+ authoredStyles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
111
259
  inheritedStyles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
112
260
  clickPosition: z.ZodObject<{
113
261
  x: z.ZodNumber;
@@ -135,9 +283,13 @@ export declare const websiteBuilderToCanopyMethodConfig: {
135
283
  outputSchema: z.ZodObject<{
136
284
  kind: z.ZodLiteral<"react-element">;
137
285
  selector: z.ZodString;
286
+ section: z.ZodOptional<z.ZodObject<{
287
+ selector: z.ZodString;
288
+ }, z.core.$strip>>;
138
289
  tagName: z.ZodString;
139
290
  elementType: z.ZodString;
140
291
  textContent: z.ZodNullable<z.ZodString>;
292
+ sectionLabel: z.ZodOptional<z.ZodString>;
141
293
  rect: z.ZodObject<{
142
294
  x: z.ZodNumber;
143
295
  y: z.ZodNumber;
@@ -154,6 +306,24 @@ export declare const websiteBuilderToCanopyMethodConfig: {
154
306
  lineHeight: z.ZodNumber;
155
307
  }, z.core.$strip>>;
156
308
  outerHTML: z.ZodString;
309
+ image: z.ZodOptional<z.ZodObject<{
310
+ src: z.ZodString;
311
+ currentSrc: z.ZodString;
312
+ srcSet: z.ZodString;
313
+ sizes: z.ZodString;
314
+ previewUrl: z.ZodNullable<z.ZodString>;
315
+ sources: z.ZodArray<z.ZodObject<{
316
+ srcSet: z.ZodString;
317
+ sizes: z.ZodString;
318
+ media: z.ZodString;
319
+ type: z.ZodString;
320
+ previewUrl: z.ZodNullable<z.ZodString>;
321
+ }, z.core.$strip>>;
322
+ }, z.core.$strip>>;
323
+ video: z.ZodOptional<z.ZodObject<{
324
+ src: z.ZodString;
325
+ currentSrc: z.ZodString;
326
+ }, z.core.$strip>>;
157
327
  definedStyles: z.ZodDefault<z.ZodArray<z.ZodObject<{
158
328
  property: z.ZodString;
159
329
  variant: z.ZodNullable<z.ZodObject<{
@@ -167,6 +337,7 @@ export declare const websiteBuilderToCanopyMethodConfig: {
167
337
  raw: z.ZodString;
168
338
  resolved: z.ZodString;
169
339
  }, z.core.$strip>>>;
340
+ authoredStyles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
170
341
  inheritedStyles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
171
342
  clickPosition: z.ZodObject<{
172
343
  x: z.ZodNumber;
@@ -224,7 +395,27 @@ export declare const websiteBuilderToCanopyMethodConfig: {
224
395
  inputSchema: z.ZodObject<{
225
396
  editId: z.ZodString;
226
397
  payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
398
+ kind: z.ZodLiteral<"image">;
399
+ image: z.ZodObject<{
400
+ src: z.ZodString;
401
+ currentSrc: z.ZodString;
402
+ srcSet: z.ZodString;
403
+ sizes: z.ZodString;
404
+ previewUrl: z.ZodNullable<z.ZodString>;
405
+ sources: z.ZodArray<z.ZodObject<{
406
+ srcSet: z.ZodString;
407
+ sizes: z.ZodString;
408
+ media: z.ZodString;
409
+ type: z.ZodString;
410
+ previewUrl: z.ZodNullable<z.ZodString>;
411
+ }, z.core.$strip>>;
412
+ }, z.core.$strip>;
413
+ }, z.core.$strip>, z.ZodObject<{
227
414
  kind: z.ZodLiteral<"css">;
415
+ fontSource: z.ZodOptional<z.ZodEnum<{
416
+ google: "google";
417
+ site: "site";
418
+ }>>;
228
419
  property: z.ZodString;
229
420
  value: z.ZodNullable<z.ZodString>;
230
421
  }, z.core.$strip>, z.ZodObject<{
@@ -254,8 +445,8 @@ export declare const websiteBuilderToCanopyMethodConfig: {
254
445
  inputSchema: z.ZodObject<{
255
446
  sessionId: z.ZodString;
256
447
  outcome: z.ZodEnum<{
257
- persisted: "persisted";
258
448
  failed: "failed";
449
+ persisted: "persisted";
259
450
  }>;
260
451
  }, z.core.$strip>;
261
452
  outputSchema: z.ZodVoid;
@@ -286,16 +477,20 @@ export declare const websiteBuilderToCanopyMethodConfig: {
286
477
  outputSchema: z.ZodVoid;
287
478
  };
288
479
  };
289
- export declare const canopyToWebsiteBuilderMethodConfig: {
480
+ export declare const previewIframeToWebsiteBuilderMethodConfig: {
290
481
  requestInlineTextEdit: {
291
482
  inputSchema: z.ZodObject<{
292
483
  editId: z.ZodString;
293
484
  element: z.ZodObject<{
294
485
  kind: z.ZodLiteral<"react-element">;
295
486
  selector: z.ZodString;
487
+ section: z.ZodOptional<z.ZodObject<{
488
+ selector: z.ZodString;
489
+ }, z.core.$strip>>;
296
490
  tagName: z.ZodString;
297
491
  elementType: z.ZodString;
298
492
  textContent: z.ZodNullable<z.ZodString>;
493
+ sectionLabel: z.ZodOptional<z.ZodString>;
299
494
  rect: z.ZodObject<{
300
495
  x: z.ZodNumber;
301
496
  y: z.ZodNumber;
@@ -312,6 +507,24 @@ export declare const canopyToWebsiteBuilderMethodConfig: {
312
507
  lineHeight: z.ZodNumber;
313
508
  }, z.core.$strip>>;
314
509
  outerHTML: z.ZodString;
510
+ image: z.ZodOptional<z.ZodObject<{
511
+ src: z.ZodString;
512
+ currentSrc: z.ZodString;
513
+ srcSet: z.ZodString;
514
+ sizes: z.ZodString;
515
+ previewUrl: z.ZodNullable<z.ZodString>;
516
+ sources: z.ZodArray<z.ZodObject<{
517
+ srcSet: z.ZodString;
518
+ sizes: z.ZodString;
519
+ media: z.ZodString;
520
+ type: z.ZodString;
521
+ previewUrl: z.ZodNullable<z.ZodString>;
522
+ }, z.core.$strip>>;
523
+ }, z.core.$strip>>;
524
+ video: z.ZodOptional<z.ZodObject<{
525
+ src: z.ZodString;
526
+ currentSrc: z.ZodString;
527
+ }, z.core.$strip>>;
315
528
  definedStyles: z.ZodDefault<z.ZodArray<z.ZodObject<{
316
529
  property: z.ZodString;
317
530
  variant: z.ZodNullable<z.ZodObject<{
@@ -325,6 +538,7 @@ export declare const canopyToWebsiteBuilderMethodConfig: {
325
538
  raw: z.ZodString;
326
539
  resolved: z.ZodString;
327
540
  }, z.core.$strip>>>;
541
+ authoredStyles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
328
542
  inheritedStyles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
329
543
  clickPosition: z.ZodObject<{
330
544
  x: z.ZodNumber;
@@ -370,9 +584,13 @@ export declare const canopyToWebsiteBuilderMethodConfig: {
370
584
  data: z.ZodDiscriminatedUnion<[z.ZodObject<{
371
585
  kind: z.ZodLiteral<"react-element">;
372
586
  selector: z.ZodString;
587
+ section: z.ZodOptional<z.ZodObject<{
588
+ selector: z.ZodString;
589
+ }, z.core.$strip>>;
373
590
  tagName: z.ZodString;
374
591
  elementType: z.ZodString;
375
592
  textContent: z.ZodNullable<z.ZodString>;
593
+ sectionLabel: z.ZodOptional<z.ZodString>;
376
594
  rect: z.ZodObject<{
377
595
  x: z.ZodNumber;
378
596
  y: z.ZodNumber;
@@ -389,6 +607,24 @@ export declare const canopyToWebsiteBuilderMethodConfig: {
389
607
  lineHeight: z.ZodNumber;
390
608
  }, z.core.$strip>>;
391
609
  outerHTML: z.ZodString;
610
+ image: z.ZodOptional<z.ZodObject<{
611
+ src: z.ZodString;
612
+ currentSrc: z.ZodString;
613
+ srcSet: z.ZodString;
614
+ sizes: z.ZodString;
615
+ previewUrl: z.ZodNullable<z.ZodString>;
616
+ sources: z.ZodArray<z.ZodObject<{
617
+ srcSet: z.ZodString;
618
+ sizes: z.ZodString;
619
+ media: z.ZodString;
620
+ type: z.ZodString;
621
+ previewUrl: z.ZodNullable<z.ZodString>;
622
+ }, z.core.$strip>>;
623
+ }, z.core.$strip>>;
624
+ video: z.ZodOptional<z.ZodObject<{
625
+ src: z.ZodString;
626
+ currentSrc: z.ZodString;
627
+ }, z.core.$strip>>;
392
628
  definedStyles: z.ZodDefault<z.ZodArray<z.ZodObject<{
393
629
  property: z.ZodString;
394
630
  variant: z.ZodNullable<z.ZodObject<{
@@ -402,6 +638,7 @@ export declare const canopyToWebsiteBuilderMethodConfig: {
402
638
  raw: z.ZodString;
403
639
  resolved: z.ZodString;
404
640
  }, z.core.$strip>>>;
641
+ authoredStyles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
405
642
  inheritedStyles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
406
643
  clickPosition: z.ZodObject<{
407
644
  x: z.ZodNumber;
@@ -454,6 +691,7 @@ export declare const canopyToWebsiteBuilderMethodConfig: {
454
691
  bottom: z.ZodNumber;
455
692
  width: z.ZodNumber;
456
693
  height: z.ZodNumber;
694
+ isSection: z.ZodOptional<z.ZodBoolean>;
457
695
  }, z.core.$strip>>;
458
696
  }, z.core.$strip>;
459
697
  outputSchema: z.ZodVoid;
@@ -535,9 +773,13 @@ export declare const canopyToWebsiteBuilderMethodConfig: {
535
773
  items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
536
774
  kind: z.ZodLiteral<"react-element">;
537
775
  selector: z.ZodString;
776
+ section: z.ZodOptional<z.ZodObject<{
777
+ selector: z.ZodString;
778
+ }, z.core.$strip>>;
538
779
  tagName: z.ZodString;
539
780
  elementType: z.ZodString;
540
781
  textContent: z.ZodNullable<z.ZodString>;
782
+ sectionLabel: z.ZodOptional<z.ZodString>;
541
783
  rect: z.ZodObject<{
542
784
  x: z.ZodNumber;
543
785
  y: z.ZodNumber;
@@ -554,6 +796,24 @@ export declare const canopyToWebsiteBuilderMethodConfig: {
554
796
  lineHeight: z.ZodNumber;
555
797
  }, z.core.$strip>>;
556
798
  outerHTML: z.ZodString;
799
+ image: z.ZodOptional<z.ZodObject<{
800
+ src: z.ZodString;
801
+ currentSrc: z.ZodString;
802
+ srcSet: z.ZodString;
803
+ sizes: z.ZodString;
804
+ previewUrl: z.ZodNullable<z.ZodString>;
805
+ sources: z.ZodArray<z.ZodObject<{
806
+ srcSet: z.ZodString;
807
+ sizes: z.ZodString;
808
+ media: z.ZodString;
809
+ type: z.ZodString;
810
+ previewUrl: z.ZodNullable<z.ZodString>;
811
+ }, z.core.$strip>>;
812
+ }, z.core.$strip>>;
813
+ video: z.ZodOptional<z.ZodObject<{
814
+ src: z.ZodString;
815
+ currentSrc: z.ZodString;
816
+ }, z.core.$strip>>;
557
817
  definedStyles: z.ZodDefault<z.ZodArray<z.ZodObject<{
558
818
  property: z.ZodString;
559
819
  variant: z.ZodNullable<z.ZodObject<{
@@ -567,6 +827,7 @@ export declare const canopyToWebsiteBuilderMethodConfig: {
567
827
  raw: z.ZodString;
568
828
  resolved: z.ZodString;
569
829
  }, z.core.$strip>>>;
830
+ authoredStyles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
570
831
  inheritedStyles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
571
832
  clickPosition: z.ZodObject<{
572
833
  x: z.ZodNumber;
@@ -617,6 +878,28 @@ export declare const canopyToWebsiteBuilderMethodConfig: {
617
878
  }, z.core.$strip>;
618
879
  outputSchema: z.ZodVoid;
619
880
  };
881
+ inlineEditFeedbackChanged: {
882
+ inputSchema: z.ZodObject<{
883
+ feedback: z.ZodNullable<z.ZodObject<{
884
+ status: z.ZodEnum<{
885
+ pending: "pending";
886
+ unavailable: "unavailable";
887
+ failed: "failed";
888
+ }>;
889
+ rect: z.ZodObject<{
890
+ x: z.ZodNumber;
891
+ y: z.ZodNumber;
892
+ left: z.ZodNumber;
893
+ top: z.ZodNumber;
894
+ right: z.ZodNumber;
895
+ bottom: z.ZodNumber;
896
+ width: z.ZodNumber;
897
+ height: z.ZodNumber;
898
+ }, z.core.$strip>;
899
+ }, z.core.$strip>>;
900
+ }, z.core.$strip>;
901
+ outputSchema: z.ZodVoid;
902
+ };
620
903
  editorStateUpdate: {
621
904
  inputSchema: z.ZodObject<{
622
905
  activeMarks: z.ZodObject<{
@@ -625,7 +908,8 @@ export declare const canopyToWebsiteBuilderMethodConfig: {
625
908
  underline: z.ZodBoolean;
626
909
  strike: z.ZodBoolean;
627
910
  }, z.core.$strip>;
628
- isEditing: z.ZodBoolean;
911
+ isInlineEditing: z.ZodBoolean;
912
+ isInlineEditPending: z.ZodBoolean;
629
913
  }, z.core.$strip>;
630
914
  outputSchema: z.ZodVoid;
631
915
  };
@@ -635,68 +919,14 @@ export declare const canopyToWebsiteBuilderMethodConfig: {
635
919
  };
636
920
  };
637
921
  export declare const selectModeParentMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
638
- method: z.ZodLiteral<"editSelectedComponent">;
922
+ method: z.ZodLiteral<"expandToSection">;
639
923
  data: z.ZodObject<{
640
- siteId: z.ZodUUID;
641
- element: z.ZodObject<{
642
- kind: z.ZodLiteral<"react-element">;
643
- selector: z.ZodString;
644
- tagName: z.ZodString;
645
- elementType: z.ZodString;
646
- textContent: z.ZodNullable<z.ZodString>;
647
- rect: z.ZodObject<{
648
- x: z.ZodNumber;
649
- y: z.ZodNumber;
650
- left: z.ZodNumber;
651
- top: z.ZodNumber;
652
- right: z.ZodNumber;
653
- bottom: z.ZodNumber;
654
- width: z.ZodNumber;
655
- height: z.ZodNumber;
656
- }, z.core.$strip>;
657
- textMetrics: z.ZodNullable<z.ZodObject<{
658
- tightWidth: z.ZodNumber;
659
- lineCount: z.ZodNumber;
660
- lineHeight: z.ZodNumber;
661
- }, z.core.$strip>>;
662
- outerHTML: z.ZodString;
663
- definedStyles: z.ZodDefault<z.ZodArray<z.ZodObject<{
664
- property: z.ZodString;
665
- variant: z.ZodNullable<z.ZodObject<{
666
- atRules: z.ZodArray<z.ZodObject<{
667
- type: z.ZodString;
668
- text: z.ZodString;
669
- }, z.core.$strip>>;
670
- pseudo: z.ZodNullable<z.ZodString>;
671
- }, z.core.$strip>>;
672
- className: z.ZodNullable<z.ZodString>;
673
- raw: z.ZodString;
674
- resolved: z.ZodString;
675
- }, z.core.$strip>>>;
676
- inheritedStyles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
677
- clickPosition: z.ZodObject<{
678
- x: z.ZodNumber;
679
- y: z.ZodNumber;
680
- }, z.core.$strip>;
681
- sourceLocation: z.ZodOptional<z.ZodObject<{
682
- filePath: z.ZodString;
683
- lineNumber: z.ZodNumber;
684
- columnNumber: z.ZodOptional<z.ZodNumber>;
685
- componentName: z.ZodOptional<z.ZodString>;
686
- }, z.core.$strip>>;
687
- fiberChain: z.ZodDefault<z.ZodArray<z.ZodObject<{
688
- sourceLocation: z.ZodObject<{
689
- filePath: z.ZodString;
690
- lineNumber: z.ZodNumber;
691
- columnNumber: z.ZodOptional<z.ZodNumber>;
692
- componentName: z.ZodOptional<z.ZodString>;
693
- }, z.core.$strip>;
694
- tagName: z.ZodOptional<z.ZodString>;
695
- componentName: z.ZodOptional<z.ZodString>;
696
- props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
697
- }, z.core.$strip>>>;
698
- siblingSelectors: z.ZodDefault<z.ZodArray<z.ZodString>>;
699
- }, z.core.$strip>;
924
+ targetSelector: z.ZodString;
925
+ }, z.core.$strip>;
926
+ }, z.core.$strip>, z.ZodObject<{
927
+ method: z.ZodLiteral<"setSectionPreview">;
928
+ data: z.ZodObject<{
929
+ targetSelector: z.ZodNullable<z.ZodString>;
700
930
  }, z.core.$strip>;
701
931
  }, z.core.$strip>, z.ZodObject<{
702
932
  method: z.ZodLiteral<"setDisplayMode">;
@@ -722,7 +952,27 @@ export declare const selectModeParentMessageSchema: z.ZodDiscriminatedUnion<[z.Z
722
952
  data: z.ZodObject<{
723
953
  editId: z.ZodString;
724
954
  payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
955
+ kind: z.ZodLiteral<"image">;
956
+ image: z.ZodObject<{
957
+ src: z.ZodString;
958
+ currentSrc: z.ZodString;
959
+ srcSet: z.ZodString;
960
+ sizes: z.ZodString;
961
+ previewUrl: z.ZodNullable<z.ZodString>;
962
+ sources: z.ZodArray<z.ZodObject<{
963
+ srcSet: z.ZodString;
964
+ sizes: z.ZodString;
965
+ media: z.ZodString;
966
+ type: z.ZodString;
967
+ previewUrl: z.ZodNullable<z.ZodString>;
968
+ }, z.core.$strip>>;
969
+ }, z.core.$strip>;
970
+ }, z.core.$strip>, z.ZodObject<{
725
971
  kind: z.ZodLiteral<"css">;
972
+ fontSource: z.ZodOptional<z.ZodEnum<{
973
+ google: "google";
974
+ site: "site";
975
+ }>>;
726
976
  property: z.ZodString;
727
977
  value: z.ZodNullable<z.ZodString>;
728
978
  }, z.core.$strip>, z.ZodObject<{
@@ -750,8 +1000,8 @@ export declare const selectModeParentMessageSchema: z.ZodDiscriminatedUnion<[z.Z
750
1000
  data: z.ZodObject<{
751
1001
  sessionId: z.ZodString;
752
1002
  outcome: z.ZodEnum<{
753
- persisted: "persisted";
754
1003
  failed: "failed";
1004
+ persisted: "persisted";
755
1005
  }>;
756
1006
  }, z.core.$strip>;
757
1007
  }, z.core.$strip>, z.ZodObject<{
@@ -789,9 +1039,13 @@ export declare const selectModeIframeMessageSchema: z.ZodDiscriminatedUnion<[z.Z
789
1039
  data: z.ZodDiscriminatedUnion<[z.ZodObject<{
790
1040
  kind: z.ZodLiteral<"react-element">;
791
1041
  selector: z.ZodString;
1042
+ section: z.ZodOptional<z.ZodObject<{
1043
+ selector: z.ZodString;
1044
+ }, z.core.$strip>>;
792
1045
  tagName: z.ZodString;
793
1046
  elementType: z.ZodString;
794
1047
  textContent: z.ZodNullable<z.ZodString>;
1048
+ sectionLabel: z.ZodOptional<z.ZodString>;
795
1049
  rect: z.ZodObject<{
796
1050
  x: z.ZodNumber;
797
1051
  y: z.ZodNumber;
@@ -808,6 +1062,24 @@ export declare const selectModeIframeMessageSchema: z.ZodDiscriminatedUnion<[z.Z
808
1062
  lineHeight: z.ZodNumber;
809
1063
  }, z.core.$strip>>;
810
1064
  outerHTML: z.ZodString;
1065
+ image: z.ZodOptional<z.ZodObject<{
1066
+ src: z.ZodString;
1067
+ currentSrc: z.ZodString;
1068
+ srcSet: z.ZodString;
1069
+ sizes: z.ZodString;
1070
+ previewUrl: z.ZodNullable<z.ZodString>;
1071
+ sources: z.ZodArray<z.ZodObject<{
1072
+ srcSet: z.ZodString;
1073
+ sizes: z.ZodString;
1074
+ media: z.ZodString;
1075
+ type: z.ZodString;
1076
+ previewUrl: z.ZodNullable<z.ZodString>;
1077
+ }, z.core.$strip>>;
1078
+ }, z.core.$strip>>;
1079
+ video: z.ZodOptional<z.ZodObject<{
1080
+ src: z.ZodString;
1081
+ currentSrc: z.ZodString;
1082
+ }, z.core.$strip>>;
811
1083
  definedStyles: z.ZodDefault<z.ZodArray<z.ZodObject<{
812
1084
  property: z.ZodString;
813
1085
  variant: z.ZodNullable<z.ZodObject<{
@@ -821,6 +1093,7 @@ export declare const selectModeIframeMessageSchema: z.ZodDiscriminatedUnion<[z.Z
821
1093
  raw: z.ZodString;
822
1094
  resolved: z.ZodString;
823
1095
  }, z.core.$strip>>>;
1096
+ authoredStyles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
824
1097
  inheritedStyles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
825
1098
  clickPosition: z.ZodObject<{
826
1099
  x: z.ZodNumber;
@@ -872,6 +1145,7 @@ export declare const selectModeIframeMessageSchema: z.ZodDiscriminatedUnion<[z.Z
872
1145
  bottom: z.ZodNumber;
873
1146
  width: z.ZodNumber;
874
1147
  height: z.ZodNumber;
1148
+ isSection: z.ZodOptional<z.ZodBoolean>;
875
1149
  }, z.core.$strip>>;
876
1150
  }, z.core.$strip>;
877
1151
  }, z.core.$strip>, z.ZodObject<{
@@ -949,9 +1223,13 @@ export declare const selectModeIframeMessageSchema: z.ZodDiscriminatedUnion<[z.Z
949
1223
  items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
950
1224
  kind: z.ZodLiteral<"react-element">;
951
1225
  selector: z.ZodString;
1226
+ section: z.ZodOptional<z.ZodObject<{
1227
+ selector: z.ZodString;
1228
+ }, z.core.$strip>>;
952
1229
  tagName: z.ZodString;
953
1230
  elementType: z.ZodString;
954
1231
  textContent: z.ZodNullable<z.ZodString>;
1232
+ sectionLabel: z.ZodOptional<z.ZodString>;
955
1233
  rect: z.ZodObject<{
956
1234
  x: z.ZodNumber;
957
1235
  y: z.ZodNumber;
@@ -968,6 +1246,24 @@ export declare const selectModeIframeMessageSchema: z.ZodDiscriminatedUnion<[z.Z
968
1246
  lineHeight: z.ZodNumber;
969
1247
  }, z.core.$strip>>;
970
1248
  outerHTML: z.ZodString;
1249
+ image: z.ZodOptional<z.ZodObject<{
1250
+ src: z.ZodString;
1251
+ currentSrc: z.ZodString;
1252
+ srcSet: z.ZodString;
1253
+ sizes: z.ZodString;
1254
+ previewUrl: z.ZodNullable<z.ZodString>;
1255
+ sources: z.ZodArray<z.ZodObject<{
1256
+ srcSet: z.ZodString;
1257
+ sizes: z.ZodString;
1258
+ media: z.ZodString;
1259
+ type: z.ZodString;
1260
+ previewUrl: z.ZodNullable<z.ZodString>;
1261
+ }, z.core.$strip>>;
1262
+ }, z.core.$strip>>;
1263
+ video: z.ZodOptional<z.ZodObject<{
1264
+ src: z.ZodString;
1265
+ currentSrc: z.ZodString;
1266
+ }, z.core.$strip>>;
971
1267
  definedStyles: z.ZodDefault<z.ZodArray<z.ZodObject<{
972
1268
  property: z.ZodString;
973
1269
  variant: z.ZodNullable<z.ZodObject<{
@@ -981,6 +1277,7 @@ export declare const selectModeIframeMessageSchema: z.ZodDiscriminatedUnion<[z.Z
981
1277
  raw: z.ZodString;
982
1278
  resolved: z.ZodString;
983
1279
  }, z.core.$strip>>>;
1280
+ authoredStyles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
984
1281
  inheritedStyles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
985
1282
  clickPosition: z.ZodObject<{
986
1283
  x: z.ZodNumber;
@@ -1028,6 +1325,27 @@ export declare const selectModeIframeMessageSchema: z.ZodDiscriminatedUnion<[z.Z
1028
1325
  json: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1029
1326
  originalInnerHTML: z.ZodString;
1030
1327
  }, z.core.$strip>;
1328
+ }, z.core.$strip>, z.ZodObject<{
1329
+ method: z.ZodLiteral<"inlineEditFeedbackChanged">;
1330
+ data: z.ZodObject<{
1331
+ feedback: z.ZodNullable<z.ZodObject<{
1332
+ status: z.ZodEnum<{
1333
+ pending: "pending";
1334
+ unavailable: "unavailable";
1335
+ failed: "failed";
1336
+ }>;
1337
+ rect: z.ZodObject<{
1338
+ x: z.ZodNumber;
1339
+ y: z.ZodNumber;
1340
+ left: z.ZodNumber;
1341
+ top: z.ZodNumber;
1342
+ right: z.ZodNumber;
1343
+ bottom: z.ZodNumber;
1344
+ width: z.ZodNumber;
1345
+ height: z.ZodNumber;
1346
+ }, z.core.$strip>;
1347
+ }, z.core.$strip>>;
1348
+ }, z.core.$strip>;
1031
1349
  }, z.core.$strip>, z.ZodObject<{
1032
1350
  method: z.ZodLiteral<"editorStateUpdate">;
1033
1351
  data: z.ZodObject<{
@@ -1037,7 +1355,8 @@ export declare const selectModeIframeMessageSchema: z.ZodDiscriminatedUnion<[z.Z
1037
1355
  underline: z.ZodBoolean;
1038
1356
  strike: z.ZodBoolean;
1039
1357
  }, z.core.$strip>;
1040
- isEditing: z.ZodBoolean;
1358
+ isInlineEditing: z.ZodBoolean;
1359
+ isInlineEditPending: z.ZodBoolean;
1041
1360
  }, z.core.$strip>;
1042
1361
  }, z.core.$strip>, z.ZodObject<{
1043
1362
  method: z.ZodLiteral<"fastRefreshComplete">;