@replohq/canopy-sdk 0.11.1 → 0.13.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.
- package/_vendor/replo-utils/lib/misc.d.ts +18 -1
- package/_vendor/replo-utils/lib/misc.mjs +1 -1
- package/_vendor/schemas/designLibrary.d.ts +4 -4
- package/_vendor/schemas/errors.mjs +1 -1
- package/_vendor/schemas/generated/selectMode.d.ts +102 -0
- package/_vendor/schemas/savedStyles.d.ts +2 -2
- package/_vendor/schemas/selectMode.d.ts +471 -0
- package/_vendor/schemas/selectMode.mjs +119 -3
- package/{chunk-RUJDCFMG.mjs → chunk-OCB5XQYL.mjs} +1 -1
- package/editor/LinkInterceptor.js +4 -0
- package/editor/LinkInterceptor.js.map +2 -2
- package/editor/select-mode/EditorSelection.js +74 -1
- package/editor/select-mode/EditorSelection.js.map +2 -2
- package/editor/select-mode/descriptor/elementDescriptor.d.ts +13 -2
- package/editor/select-mode/descriptor/elementDescriptor.js +19 -31
- package/editor/select-mode/descriptor/elementDescriptor.js.map +2 -2
- package/editor/select-mode/descriptor/styleExtraction.d.ts +3 -0
- package/editor/select-mode/descriptor/styleExtraction.js +271 -0
- package/editor/select-mode/descriptor/styleExtraction.js.map +7 -0
- package/editor/select-mode/displayModeStore.d.ts +10 -0
- package/editor/select-mode/displayModeStore.js +47 -0
- package/editor/select-mode/displayModeStore.js.map +7 -0
- package/editor/select-mode/fast-refresh-relay.d.ts +3 -0
- package/editor/select-mode/fast-refresh-relay.js +35 -0
- package/editor/select-mode/fast-refresh-relay.js.map +7 -0
- package/editor/select-mode/fiber.d.ts +17 -0
- package/editor/select-mode/fiber.js +103 -34
- package/editor/select-mode/fiber.js.map +2 -2
- package/editor/select-mode/hooks/useEditModeStateMachine.d.ts +20 -0
- package/editor/select-mode/hooks/useEditModeStateMachine.js +226 -0
- package/editor/select-mode/hooks/useEditModeStateMachine.js.map +7 -0
- package/editor/select-mode/hooks/useOptimisticOverrides.d.ts +20 -0
- package/editor/select-mode/hooks/useOptimisticOverrides.js +284 -0
- package/editor/select-mode/hooks/useOptimisticOverrides.js.map +7 -0
- package/editor/select-mode/hooks/useParentMessaging.d.ts +17 -2
- package/editor/select-mode/hooks/useParentMessaging.js +66 -1
- package/editor/select-mode/hooks/useParentMessaging.js.map +2 -2
- package/editor/select-mode/hooks/useSelectModeController.js +5 -6
- package/editor/select-mode/hooks/useSelectModeController.js.map +2 -2
- package/editor/select-mode/hooks/useSelectionHover.js +16 -1
- package/editor/select-mode/hooks/useSelectionHover.js.map +2 -2
- package/editor/select-mode/hooks/useSelectionInteractions.d.ts +7 -2
- package/editor/select-mode/hooks/useSelectionInteractions.js +57 -18
- package/editor/select-mode/hooks/useSelectionInteractions.js.map +2 -2
- package/editor/select-mode/hooks/useSiblingResolution.d.ts +6 -0
- package/editor/select-mode/hooks/useSiblingResolution.js +59 -0
- package/editor/select-mode/hooks/useSiblingResolution.js.map +7 -0
- package/editor/select-mode/inlineTextMarks.d.ts +6 -0
- package/editor/select-mode/inlineTextMarks.js +25 -0
- package/editor/select-mode/inlineTextMarks.js.map +7 -0
- package/editor/select-mode/interactions/selectionGeometry.js +4 -0
- package/editor/select-mode/interactions/selectionGeometry.js.map +2 -2
- package/editor/select-mode/selectionFrame.d.ts +5 -0
- package/editor/select-mode/selectionFrame.js +25 -1
- package/editor/select-mode/selectionFrame.js.map +2 -2
- package/editor/select-mode/symbolicate.js +32 -10
- package/editor/select-mode/symbolicate.js.map +2 -2
- package/editor/select-mode/tiptapInlineEditor.d.ts +23 -0
- package/editor/select-mode/tiptapInlineEditor.js +120 -0
- package/editor/select-mode/tiptapInlineEditor.js.map +7 -0
- package/next/config.js +11 -9
- package/next/config.js.map +2 -2
- package/package.json +9 -1
|
@@ -5,6 +5,10 @@ export declare const displayModeSchema: z.ZodEnum<{
|
|
|
5
5
|
browse: "browse";
|
|
6
6
|
selection: "selection";
|
|
7
7
|
}>;
|
|
8
|
+
export declare const selectModeInlineTextStatusSchema: z.ZodNullable<z.ZodEnum<{
|
|
9
|
+
editable: "editable";
|
|
10
|
+
dynamic: "dynamic";
|
|
11
|
+
}>>;
|
|
8
12
|
export declare const selectModeTextMetricsSchema: z.ZodObject<{
|
|
9
13
|
tightWidth: z.ZodNumber;
|
|
10
14
|
lineCount: z.ZodNumber;
|
|
@@ -20,6 +24,17 @@ export declare const selectModeSourceLocationSchema: z.ZodObject<{
|
|
|
20
24
|
columnNumber: z.ZodOptional<z.ZodNumber>;
|
|
21
25
|
componentName: z.ZodOptional<z.ZodString>;
|
|
22
26
|
}, z.core.$strip>;
|
|
27
|
+
export declare const selectModeFiberChainEntrySchema: z.ZodObject<{
|
|
28
|
+
sourceLocation: z.ZodObject<{
|
|
29
|
+
filePath: z.ZodString;
|
|
30
|
+
lineNumber: z.ZodNumber;
|
|
31
|
+
columnNumber: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
tagName: z.ZodOptional<z.ZodString>;
|
|
35
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
36
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
37
|
+
}, z.core.$strip>;
|
|
23
38
|
export declare const selectModeBoundingRectSchema: z.ZodObject<{
|
|
24
39
|
x: z.ZodNumber;
|
|
25
40
|
y: z.ZodNumber;
|
|
@@ -43,6 +58,30 @@ export declare const selectModeSelectionRectSchema: z.ZodObject<{
|
|
|
43
58
|
height: z.ZodNumber;
|
|
44
59
|
}, z.core.$strip>;
|
|
45
60
|
}, z.core.$strip>;
|
|
61
|
+
export declare const selectModeStyleAtRuleSchema: z.ZodObject<{
|
|
62
|
+
type: z.ZodString;
|
|
63
|
+
text: z.ZodString;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
export declare const selectModeStyleVariantSchema: z.ZodObject<{
|
|
66
|
+
atRules: z.ZodArray<z.ZodObject<{
|
|
67
|
+
type: z.ZodString;
|
|
68
|
+
text: z.ZodString;
|
|
69
|
+
}, z.core.$strip>>;
|
|
70
|
+
pseudo: z.ZodNullable<z.ZodString>;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
export declare const selectModeDefinedStyleSchema: z.ZodObject<{
|
|
73
|
+
property: z.ZodString;
|
|
74
|
+
variant: z.ZodNullable<z.ZodObject<{
|
|
75
|
+
atRules: z.ZodArray<z.ZodObject<{
|
|
76
|
+
type: z.ZodString;
|
|
77
|
+
text: z.ZodString;
|
|
78
|
+
}, z.core.$strip>>;
|
|
79
|
+
pseudo: z.ZodNullable<z.ZodString>;
|
|
80
|
+
}, z.core.$strip>>;
|
|
81
|
+
className: z.ZodNullable<z.ZodString>;
|
|
82
|
+
raw: z.ZodString;
|
|
83
|
+
resolved: z.ZodString;
|
|
84
|
+
}, z.core.$strip>;
|
|
46
85
|
export type RectOffset = {
|
|
47
86
|
left: number;
|
|
48
87
|
top: number;
|
|
@@ -78,6 +117,20 @@ export declare const selectedElementSchema: z.ZodObject<{
|
|
|
78
117
|
lineHeight: z.ZodNumber;
|
|
79
118
|
}, z.core.$strip>>;
|
|
80
119
|
outerHTML: z.ZodString;
|
|
120
|
+
definedStyles: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
121
|
+
property: z.ZodString;
|
|
122
|
+
variant: z.ZodNullable<z.ZodObject<{
|
|
123
|
+
atRules: z.ZodArray<z.ZodObject<{
|
|
124
|
+
type: z.ZodString;
|
|
125
|
+
text: z.ZodString;
|
|
126
|
+
}, z.core.$strip>>;
|
|
127
|
+
pseudo: z.ZodNullable<z.ZodString>;
|
|
128
|
+
}, z.core.$strip>>;
|
|
129
|
+
className: z.ZodNullable<z.ZodString>;
|
|
130
|
+
raw: z.ZodString;
|
|
131
|
+
resolved: z.ZodString;
|
|
132
|
+
}, z.core.$strip>>>;
|
|
133
|
+
inheritedStyles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
81
134
|
clickPosition: z.ZodObject<{
|
|
82
135
|
x: z.ZodNumber;
|
|
83
136
|
y: z.ZodNumber;
|
|
@@ -88,6 +141,18 @@ export declare const selectedElementSchema: z.ZodObject<{
|
|
|
88
141
|
columnNumber: z.ZodOptional<z.ZodNumber>;
|
|
89
142
|
componentName: z.ZodOptional<z.ZodString>;
|
|
90
143
|
}, z.core.$strip>>;
|
|
144
|
+
fiberChain: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
145
|
+
sourceLocation: z.ZodObject<{
|
|
146
|
+
filePath: z.ZodString;
|
|
147
|
+
lineNumber: z.ZodNumber;
|
|
148
|
+
columnNumber: z.ZodOptional<z.ZodNumber>;
|
|
149
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
150
|
+
}, z.core.$strip>;
|
|
151
|
+
tagName: z.ZodOptional<z.ZodString>;
|
|
152
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
153
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
154
|
+
}, z.core.$strip>>>;
|
|
155
|
+
siblingSelectors: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
91
156
|
}, z.core.$strip>;
|
|
92
157
|
export declare const selectablePlanDataSchema: z.ZodObject<{
|
|
93
158
|
kind: z.ZodLiteral<"plan">;
|
|
@@ -136,6 +201,20 @@ export declare const selectableDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
136
201
|
lineHeight: z.ZodNumber;
|
|
137
202
|
}, z.core.$strip>>;
|
|
138
203
|
outerHTML: z.ZodString;
|
|
204
|
+
definedStyles: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
205
|
+
property: z.ZodString;
|
|
206
|
+
variant: z.ZodNullable<z.ZodObject<{
|
|
207
|
+
atRules: z.ZodArray<z.ZodObject<{
|
|
208
|
+
type: z.ZodString;
|
|
209
|
+
text: z.ZodString;
|
|
210
|
+
}, z.core.$strip>>;
|
|
211
|
+
pseudo: z.ZodNullable<z.ZodString>;
|
|
212
|
+
}, z.core.$strip>>;
|
|
213
|
+
className: z.ZodNullable<z.ZodString>;
|
|
214
|
+
raw: z.ZodString;
|
|
215
|
+
resolved: z.ZodString;
|
|
216
|
+
}, z.core.$strip>>>;
|
|
217
|
+
inheritedStyles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
139
218
|
clickPosition: z.ZodObject<{
|
|
140
219
|
x: z.ZodNumber;
|
|
141
220
|
y: z.ZodNumber;
|
|
@@ -146,6 +225,18 @@ export declare const selectableDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
146
225
|
columnNumber: z.ZodOptional<z.ZodNumber>;
|
|
147
226
|
componentName: z.ZodOptional<z.ZodString>;
|
|
148
227
|
}, z.core.$strip>>;
|
|
228
|
+
fiberChain: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
229
|
+
sourceLocation: z.ZodObject<{
|
|
230
|
+
filePath: z.ZodString;
|
|
231
|
+
lineNumber: z.ZodNumber;
|
|
232
|
+
columnNumber: z.ZodOptional<z.ZodNumber>;
|
|
233
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
234
|
+
}, z.core.$strip>;
|
|
235
|
+
tagName: z.ZodOptional<z.ZodString>;
|
|
236
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
237
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
238
|
+
}, z.core.$strip>>>;
|
|
239
|
+
siblingSelectors: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
149
240
|
}, z.core.$strip>, z.ZodObject<{
|
|
150
241
|
kind: z.ZodLiteral<"plan">;
|
|
151
242
|
planId: z.ZodString;
|
|
@@ -174,6 +265,30 @@ export declare function readSelectablePayload(rawPayload: string | null): {
|
|
|
174
265
|
kind: "plan";
|
|
175
266
|
planId: string;
|
|
176
267
|
} | null;
|
|
268
|
+
export declare const selectModeOptimisticUpdatePayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
269
|
+
kind: z.ZodLiteral<"css">;
|
|
270
|
+
property: z.ZodString;
|
|
271
|
+
value: z.ZodNullable<z.ZodString>;
|
|
272
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
273
|
+
kind: z.ZodLiteral<"content">;
|
|
274
|
+
innerHTML: z.ZodString;
|
|
275
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
276
|
+
kind: z.ZodLiteral<"attribute">;
|
|
277
|
+
name: z.ZodString;
|
|
278
|
+
value: z.ZodString;
|
|
279
|
+
}, z.core.$strip>], "kind">;
|
|
280
|
+
export declare const selectModeTiptapActiveMarksSchema: z.ZodObject<{
|
|
281
|
+
bold: z.ZodBoolean;
|
|
282
|
+
italic: z.ZodBoolean;
|
|
283
|
+
underline: z.ZodBoolean;
|
|
284
|
+
strike: z.ZodBoolean;
|
|
285
|
+
}, z.core.$strip>;
|
|
286
|
+
export declare const selectModeFormatCommandSchema: z.ZodEnum<{
|
|
287
|
+
toggleBold: "toggleBold";
|
|
288
|
+
toggleItalic: "toggleItalic";
|
|
289
|
+
toggleUnderline: "toggleUnderline";
|
|
290
|
+
toggleStrike: "toggleStrike";
|
|
291
|
+
}>;
|
|
177
292
|
/**
|
|
178
293
|
* Shared discriminator values for select-mode selection state. Single
|
|
179
294
|
* source of truth for the three consumers that must carry every variant
|
|
@@ -243,6 +358,20 @@ export declare const selectModeSelectionSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
243
358
|
lineHeight: z.ZodNumber;
|
|
244
359
|
}, z.core.$strip>>;
|
|
245
360
|
outerHTML: z.ZodString;
|
|
361
|
+
definedStyles: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
362
|
+
property: z.ZodString;
|
|
363
|
+
variant: z.ZodNullable<z.ZodObject<{
|
|
364
|
+
atRules: z.ZodArray<z.ZodObject<{
|
|
365
|
+
type: z.ZodString;
|
|
366
|
+
text: z.ZodString;
|
|
367
|
+
}, z.core.$strip>>;
|
|
368
|
+
pseudo: z.ZodNullable<z.ZodString>;
|
|
369
|
+
}, z.core.$strip>>;
|
|
370
|
+
className: z.ZodNullable<z.ZodString>;
|
|
371
|
+
raw: z.ZodString;
|
|
372
|
+
resolved: z.ZodString;
|
|
373
|
+
}, z.core.$strip>>>;
|
|
374
|
+
inheritedStyles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
246
375
|
clickPosition: z.ZodObject<{
|
|
247
376
|
x: z.ZodNumber;
|
|
248
377
|
y: z.ZodNumber;
|
|
@@ -253,6 +382,18 @@ export declare const selectModeSelectionSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
253
382
|
columnNumber: z.ZodOptional<z.ZodNumber>;
|
|
254
383
|
componentName: z.ZodOptional<z.ZodString>;
|
|
255
384
|
}, z.core.$strip>>;
|
|
385
|
+
fiberChain: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
386
|
+
sourceLocation: z.ZodObject<{
|
|
387
|
+
filePath: z.ZodString;
|
|
388
|
+
lineNumber: z.ZodNumber;
|
|
389
|
+
columnNumber: z.ZodOptional<z.ZodNumber>;
|
|
390
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
391
|
+
}, z.core.$strip>;
|
|
392
|
+
tagName: z.ZodOptional<z.ZodString>;
|
|
393
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
394
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
395
|
+
}, z.core.$strip>>>;
|
|
396
|
+
siblingSelectors: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
256
397
|
}, z.core.$strip>, z.ZodObject<{
|
|
257
398
|
kind: z.ZodLiteral<"plan">;
|
|
258
399
|
planId: z.ZodString;
|
|
@@ -302,6 +443,20 @@ export declare const selectModeSelectionSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
302
443
|
lineHeight: z.ZodNumber;
|
|
303
444
|
}, z.core.$strip>>;
|
|
304
445
|
outerHTML: z.ZodString;
|
|
446
|
+
definedStyles: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
447
|
+
property: z.ZodString;
|
|
448
|
+
variant: z.ZodNullable<z.ZodObject<{
|
|
449
|
+
atRules: z.ZodArray<z.ZodObject<{
|
|
450
|
+
type: z.ZodString;
|
|
451
|
+
text: z.ZodString;
|
|
452
|
+
}, z.core.$strip>>;
|
|
453
|
+
pseudo: z.ZodNullable<z.ZodString>;
|
|
454
|
+
}, z.core.$strip>>;
|
|
455
|
+
className: z.ZodNullable<z.ZodString>;
|
|
456
|
+
raw: z.ZodString;
|
|
457
|
+
resolved: z.ZodString;
|
|
458
|
+
}, z.core.$strip>>>;
|
|
459
|
+
inheritedStyles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
305
460
|
clickPosition: z.ZodObject<{
|
|
306
461
|
x: z.ZodNumber;
|
|
307
462
|
y: z.ZodNumber;
|
|
@@ -312,6 +467,18 @@ export declare const selectModeSelectionSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
312
467
|
columnNumber: z.ZodOptional<z.ZodNumber>;
|
|
313
468
|
componentName: z.ZodOptional<z.ZodString>;
|
|
314
469
|
}, z.core.$strip>>;
|
|
470
|
+
fiberChain: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
471
|
+
sourceLocation: z.ZodObject<{
|
|
472
|
+
filePath: z.ZodString;
|
|
473
|
+
lineNumber: z.ZodNumber;
|
|
474
|
+
columnNumber: z.ZodOptional<z.ZodNumber>;
|
|
475
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
476
|
+
}, z.core.$strip>;
|
|
477
|
+
tagName: z.ZodOptional<z.ZodString>;
|
|
478
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
479
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
480
|
+
}, z.core.$strip>>>;
|
|
481
|
+
siblingSelectors: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
315
482
|
}, z.core.$strip>, z.ZodObject<{
|
|
316
483
|
kind: z.ZodLiteral<"plan">;
|
|
317
484
|
planId: z.ZodString;
|
|
@@ -367,6 +534,117 @@ export declare const selectModeParentMessageSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
367
534
|
element: "element";
|
|
368
535
|
area: "area";
|
|
369
536
|
}>;
|
|
537
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
538
|
+
type: z.ZodLiteral<"replo:select:applyOptimisticUpdate">;
|
|
539
|
+
editId: z.ZodString;
|
|
540
|
+
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
541
|
+
kind: z.ZodLiteral<"css">;
|
|
542
|
+
property: z.ZodString;
|
|
543
|
+
value: z.ZodNullable<z.ZodString>;
|
|
544
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
545
|
+
kind: z.ZodLiteral<"content">;
|
|
546
|
+
innerHTML: z.ZodString;
|
|
547
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
548
|
+
kind: z.ZodLiteral<"attribute">;
|
|
549
|
+
name: z.ZodString;
|
|
550
|
+
value: z.ZodString;
|
|
551
|
+
}, z.core.$strip>], "kind">;
|
|
552
|
+
targetMode: z.ZodEnum<{
|
|
553
|
+
primary: "primary";
|
|
554
|
+
group: "group";
|
|
555
|
+
}>;
|
|
556
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
557
|
+
type: z.ZodLiteral<"replo:select:markCommitted">;
|
|
558
|
+
editId: z.ZodString;
|
|
559
|
+
sessionId: z.ZodString;
|
|
560
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
561
|
+
type: z.ZodLiteral<"replo:select:resolveSessionOverrides">;
|
|
562
|
+
sessionId: z.ZodString;
|
|
563
|
+
outcome: z.ZodEnum<{
|
|
564
|
+
failed: "failed";
|
|
565
|
+
persisted: "persisted";
|
|
566
|
+
}>;
|
|
567
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
568
|
+
type: z.ZodLiteral<"replo:select:revertOverride">;
|
|
569
|
+
editId: z.ZodString;
|
|
570
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
571
|
+
type: z.ZodLiteral<"replo:select:enterEditMode">;
|
|
572
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
573
|
+
type: z.ZodLiteral<"replo:select:exitEditMode">;
|
|
574
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
575
|
+
type: z.ZodLiteral<"replo:select:formatCommand">;
|
|
576
|
+
command: z.ZodEnum<{
|
|
577
|
+
toggleBold: "toggleBold";
|
|
578
|
+
toggleItalic: "toggleItalic";
|
|
579
|
+
toggleUnderline: "toggleUnderline";
|
|
580
|
+
toggleStrike: "toggleStrike";
|
|
581
|
+
}>;
|
|
582
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
583
|
+
type: z.ZodLiteral<"replo:select:resolveEditRequest">;
|
|
584
|
+
editId: z.ZodString;
|
|
585
|
+
allowed: z.ZodBoolean;
|
|
586
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
587
|
+
type: z.ZodLiteral<"replo:select:requestSymbolicate">;
|
|
588
|
+
requestId: z.ZodString;
|
|
589
|
+
element: z.ZodObject<{
|
|
590
|
+
kind: z.ZodLiteral<"react-element">;
|
|
591
|
+
selector: z.ZodString;
|
|
592
|
+
tagName: z.ZodString;
|
|
593
|
+
elementType: z.ZodString;
|
|
594
|
+
textContent: z.ZodNullable<z.ZodString>;
|
|
595
|
+
rect: z.ZodObject<{
|
|
596
|
+
x: z.ZodNumber;
|
|
597
|
+
y: z.ZodNumber;
|
|
598
|
+
left: z.ZodNumber;
|
|
599
|
+
top: z.ZodNumber;
|
|
600
|
+
right: z.ZodNumber;
|
|
601
|
+
bottom: z.ZodNumber;
|
|
602
|
+
width: z.ZodNumber;
|
|
603
|
+
height: z.ZodNumber;
|
|
604
|
+
}, z.core.$strip>;
|
|
605
|
+
textMetrics: z.ZodNullable<z.ZodObject<{
|
|
606
|
+
tightWidth: z.ZodNumber;
|
|
607
|
+
lineCount: z.ZodNumber;
|
|
608
|
+
lineHeight: z.ZodNumber;
|
|
609
|
+
}, z.core.$strip>>;
|
|
610
|
+
outerHTML: z.ZodString;
|
|
611
|
+
definedStyles: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
612
|
+
property: z.ZodString;
|
|
613
|
+
variant: z.ZodNullable<z.ZodObject<{
|
|
614
|
+
atRules: z.ZodArray<z.ZodObject<{
|
|
615
|
+
type: z.ZodString;
|
|
616
|
+
text: z.ZodString;
|
|
617
|
+
}, z.core.$strip>>;
|
|
618
|
+
pseudo: z.ZodNullable<z.ZodString>;
|
|
619
|
+
}, z.core.$strip>>;
|
|
620
|
+
className: z.ZodNullable<z.ZodString>;
|
|
621
|
+
raw: z.ZodString;
|
|
622
|
+
resolved: z.ZodString;
|
|
623
|
+
}, z.core.$strip>>>;
|
|
624
|
+
inheritedStyles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
625
|
+
clickPosition: z.ZodObject<{
|
|
626
|
+
x: z.ZodNumber;
|
|
627
|
+
y: z.ZodNumber;
|
|
628
|
+
}, z.core.$strip>;
|
|
629
|
+
sourceLocation: z.ZodOptional<z.ZodObject<{
|
|
630
|
+
filePath: z.ZodString;
|
|
631
|
+
lineNumber: z.ZodNumber;
|
|
632
|
+
columnNumber: z.ZodOptional<z.ZodNumber>;
|
|
633
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
634
|
+
}, z.core.$strip>>;
|
|
635
|
+
fiberChain: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
636
|
+
sourceLocation: z.ZodObject<{
|
|
637
|
+
filePath: z.ZodString;
|
|
638
|
+
lineNumber: z.ZodNumber;
|
|
639
|
+
columnNumber: z.ZodOptional<z.ZodNumber>;
|
|
640
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
641
|
+
}, z.core.$strip>;
|
|
642
|
+
tagName: z.ZodOptional<z.ZodString>;
|
|
643
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
644
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
645
|
+
}, z.core.$strip>>>;
|
|
646
|
+
siblingSelectors: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
647
|
+
}, z.core.$strip>;
|
|
370
648
|
}, z.core.$strip>], "type">;
|
|
371
649
|
export declare const selectModeIframeMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
372
650
|
type: z.ZodLiteral<"replo:select:elementSelected">;
|
|
@@ -392,6 +670,20 @@ export declare const selectModeIframeMessageSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
392
670
|
lineHeight: z.ZodNumber;
|
|
393
671
|
}, z.core.$strip>>;
|
|
394
672
|
outerHTML: z.ZodString;
|
|
673
|
+
definedStyles: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
674
|
+
property: z.ZodString;
|
|
675
|
+
variant: z.ZodNullable<z.ZodObject<{
|
|
676
|
+
atRules: z.ZodArray<z.ZodObject<{
|
|
677
|
+
type: z.ZodString;
|
|
678
|
+
text: z.ZodString;
|
|
679
|
+
}, z.core.$strip>>;
|
|
680
|
+
pseudo: z.ZodNullable<z.ZodString>;
|
|
681
|
+
}, z.core.$strip>>;
|
|
682
|
+
className: z.ZodNullable<z.ZodString>;
|
|
683
|
+
raw: z.ZodString;
|
|
684
|
+
resolved: z.ZodString;
|
|
685
|
+
}, z.core.$strip>>>;
|
|
686
|
+
inheritedStyles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
395
687
|
clickPosition: z.ZodObject<{
|
|
396
688
|
x: z.ZodNumber;
|
|
397
689
|
y: z.ZodNumber;
|
|
@@ -402,6 +694,18 @@ export declare const selectModeIframeMessageSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
402
694
|
columnNumber: z.ZodOptional<z.ZodNumber>;
|
|
403
695
|
componentName: z.ZodOptional<z.ZodString>;
|
|
404
696
|
}, z.core.$strip>>;
|
|
697
|
+
fiberChain: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
698
|
+
sourceLocation: z.ZodObject<{
|
|
699
|
+
filePath: z.ZodString;
|
|
700
|
+
lineNumber: z.ZodNumber;
|
|
701
|
+
columnNumber: z.ZodOptional<z.ZodNumber>;
|
|
702
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
703
|
+
}, z.core.$strip>;
|
|
704
|
+
tagName: z.ZodOptional<z.ZodString>;
|
|
705
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
706
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
707
|
+
}, z.core.$strip>>>;
|
|
708
|
+
siblingSelectors: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
405
709
|
}, z.core.$strip>, z.ZodObject<{
|
|
406
710
|
kind: z.ZodLiteral<"plan">;
|
|
407
711
|
planId: z.ZodString;
|
|
@@ -518,6 +822,20 @@ export declare const selectModeIframeMessageSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
518
822
|
lineHeight: z.ZodNumber;
|
|
519
823
|
}, z.core.$strip>>;
|
|
520
824
|
outerHTML: z.ZodString;
|
|
825
|
+
definedStyles: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
826
|
+
property: z.ZodString;
|
|
827
|
+
variant: z.ZodNullable<z.ZodObject<{
|
|
828
|
+
atRules: z.ZodArray<z.ZodObject<{
|
|
829
|
+
type: z.ZodString;
|
|
830
|
+
text: z.ZodString;
|
|
831
|
+
}, z.core.$strip>>;
|
|
832
|
+
pseudo: z.ZodNullable<z.ZodString>;
|
|
833
|
+
}, z.core.$strip>>;
|
|
834
|
+
className: z.ZodNullable<z.ZodString>;
|
|
835
|
+
raw: z.ZodString;
|
|
836
|
+
resolved: z.ZodString;
|
|
837
|
+
}, z.core.$strip>>>;
|
|
838
|
+
inheritedStyles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
521
839
|
clickPosition: z.ZodObject<{
|
|
522
840
|
x: z.ZodNumber;
|
|
523
841
|
y: z.ZodNumber;
|
|
@@ -528,6 +846,18 @@ export declare const selectModeIframeMessageSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
528
846
|
columnNumber: z.ZodOptional<z.ZodNumber>;
|
|
529
847
|
componentName: z.ZodOptional<z.ZodString>;
|
|
530
848
|
}, z.core.$strip>>;
|
|
849
|
+
fiberChain: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
850
|
+
sourceLocation: z.ZodObject<{
|
|
851
|
+
filePath: z.ZodString;
|
|
852
|
+
lineNumber: z.ZodNumber;
|
|
853
|
+
columnNumber: z.ZodOptional<z.ZodNumber>;
|
|
854
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
855
|
+
}, z.core.$strip>;
|
|
856
|
+
tagName: z.ZodOptional<z.ZodString>;
|
|
857
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
858
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
859
|
+
}, z.core.$strip>>>;
|
|
860
|
+
siblingSelectors: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
531
861
|
}, z.core.$strip>, z.ZodObject<{
|
|
532
862
|
kind: z.ZodLiteral<"plan">;
|
|
533
863
|
planId: z.ZodString;
|
|
@@ -543,4 +873,145 @@ export declare const selectModeIframeMessageSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
543
873
|
height: z.ZodNumber;
|
|
544
874
|
}, z.core.$strip>;
|
|
545
875
|
}, z.core.$strip>], "kind">>;
|
|
876
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
877
|
+
type: z.ZodLiteral<"replo:select:doubleClicked">;
|
|
878
|
+
editId: z.ZodString;
|
|
879
|
+
element: z.ZodObject<{
|
|
880
|
+
kind: z.ZodLiteral<"react-element">;
|
|
881
|
+
selector: z.ZodString;
|
|
882
|
+
tagName: z.ZodString;
|
|
883
|
+
elementType: z.ZodString;
|
|
884
|
+
textContent: z.ZodNullable<z.ZodString>;
|
|
885
|
+
rect: z.ZodObject<{
|
|
886
|
+
x: z.ZodNumber;
|
|
887
|
+
y: z.ZodNumber;
|
|
888
|
+
left: z.ZodNumber;
|
|
889
|
+
top: z.ZodNumber;
|
|
890
|
+
right: z.ZodNumber;
|
|
891
|
+
bottom: z.ZodNumber;
|
|
892
|
+
width: z.ZodNumber;
|
|
893
|
+
height: z.ZodNumber;
|
|
894
|
+
}, z.core.$strip>;
|
|
895
|
+
textMetrics: z.ZodNullable<z.ZodObject<{
|
|
896
|
+
tightWidth: z.ZodNumber;
|
|
897
|
+
lineCount: z.ZodNumber;
|
|
898
|
+
lineHeight: z.ZodNumber;
|
|
899
|
+
}, z.core.$strip>>;
|
|
900
|
+
outerHTML: z.ZodString;
|
|
901
|
+
definedStyles: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
902
|
+
property: z.ZodString;
|
|
903
|
+
variant: z.ZodNullable<z.ZodObject<{
|
|
904
|
+
atRules: z.ZodArray<z.ZodObject<{
|
|
905
|
+
type: z.ZodString;
|
|
906
|
+
text: z.ZodString;
|
|
907
|
+
}, z.core.$strip>>;
|
|
908
|
+
pseudo: z.ZodNullable<z.ZodString>;
|
|
909
|
+
}, z.core.$strip>>;
|
|
910
|
+
className: z.ZodNullable<z.ZodString>;
|
|
911
|
+
raw: z.ZodString;
|
|
912
|
+
resolved: z.ZodString;
|
|
913
|
+
}, z.core.$strip>>>;
|
|
914
|
+
inheritedStyles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
915
|
+
clickPosition: z.ZodObject<{
|
|
916
|
+
x: z.ZodNumber;
|
|
917
|
+
y: z.ZodNumber;
|
|
918
|
+
}, z.core.$strip>;
|
|
919
|
+
sourceLocation: z.ZodOptional<z.ZodObject<{
|
|
920
|
+
filePath: z.ZodString;
|
|
921
|
+
lineNumber: z.ZodNumber;
|
|
922
|
+
columnNumber: z.ZodOptional<z.ZodNumber>;
|
|
923
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
924
|
+
}, z.core.$strip>>;
|
|
925
|
+
fiberChain: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
926
|
+
sourceLocation: z.ZodObject<{
|
|
927
|
+
filePath: z.ZodString;
|
|
928
|
+
lineNumber: z.ZodNumber;
|
|
929
|
+
columnNumber: z.ZodOptional<z.ZodNumber>;
|
|
930
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
931
|
+
}, z.core.$strip>;
|
|
932
|
+
tagName: z.ZodOptional<z.ZodString>;
|
|
933
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
934
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
935
|
+
}, z.core.$strip>>>;
|
|
936
|
+
siblingSelectors: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
937
|
+
}, z.core.$strip>;
|
|
938
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
939
|
+
type: z.ZodLiteral<"replo:select:textCommitted">;
|
|
940
|
+
editId: z.ZodString;
|
|
941
|
+
html: z.ZodString;
|
|
942
|
+
json: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
943
|
+
originalInnerHTML: z.ZodString;
|
|
944
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
945
|
+
type: z.ZodLiteral<"replo:select:editorStateUpdate">;
|
|
946
|
+
activeMarks: z.ZodObject<{
|
|
947
|
+
bold: z.ZodBoolean;
|
|
948
|
+
italic: z.ZodBoolean;
|
|
949
|
+
underline: z.ZodBoolean;
|
|
950
|
+
strike: z.ZodBoolean;
|
|
951
|
+
}, z.core.$strip>;
|
|
952
|
+
isEditing: z.ZodBoolean;
|
|
953
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
954
|
+
type: z.ZodLiteral<"replo:select:fastRefreshComplete">;
|
|
955
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
956
|
+
type: z.ZodLiteral<"replo:select:symbolicateResult">;
|
|
957
|
+
requestId: z.ZodString;
|
|
958
|
+
element: z.ZodObject<{
|
|
959
|
+
kind: z.ZodLiteral<"react-element">;
|
|
960
|
+
selector: z.ZodString;
|
|
961
|
+
tagName: z.ZodString;
|
|
962
|
+
elementType: z.ZodString;
|
|
963
|
+
textContent: z.ZodNullable<z.ZodString>;
|
|
964
|
+
rect: z.ZodObject<{
|
|
965
|
+
x: z.ZodNumber;
|
|
966
|
+
y: z.ZodNumber;
|
|
967
|
+
left: z.ZodNumber;
|
|
968
|
+
top: z.ZodNumber;
|
|
969
|
+
right: z.ZodNumber;
|
|
970
|
+
bottom: z.ZodNumber;
|
|
971
|
+
width: z.ZodNumber;
|
|
972
|
+
height: z.ZodNumber;
|
|
973
|
+
}, z.core.$strip>;
|
|
974
|
+
textMetrics: z.ZodNullable<z.ZodObject<{
|
|
975
|
+
tightWidth: z.ZodNumber;
|
|
976
|
+
lineCount: z.ZodNumber;
|
|
977
|
+
lineHeight: z.ZodNumber;
|
|
978
|
+
}, z.core.$strip>>;
|
|
979
|
+
outerHTML: z.ZodString;
|
|
980
|
+
definedStyles: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
981
|
+
property: z.ZodString;
|
|
982
|
+
variant: z.ZodNullable<z.ZodObject<{
|
|
983
|
+
atRules: z.ZodArray<z.ZodObject<{
|
|
984
|
+
type: z.ZodString;
|
|
985
|
+
text: z.ZodString;
|
|
986
|
+
}, z.core.$strip>>;
|
|
987
|
+
pseudo: z.ZodNullable<z.ZodString>;
|
|
988
|
+
}, z.core.$strip>>;
|
|
989
|
+
className: z.ZodNullable<z.ZodString>;
|
|
990
|
+
raw: z.ZodString;
|
|
991
|
+
resolved: z.ZodString;
|
|
992
|
+
}, z.core.$strip>>>;
|
|
993
|
+
inheritedStyles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
994
|
+
clickPosition: z.ZodObject<{
|
|
995
|
+
x: z.ZodNumber;
|
|
996
|
+
y: z.ZodNumber;
|
|
997
|
+
}, z.core.$strip>;
|
|
998
|
+
sourceLocation: z.ZodOptional<z.ZodObject<{
|
|
999
|
+
filePath: z.ZodString;
|
|
1000
|
+
lineNumber: z.ZodNumber;
|
|
1001
|
+
columnNumber: z.ZodOptional<z.ZodNumber>;
|
|
1002
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
1003
|
+
}, z.core.$strip>>;
|
|
1004
|
+
fiberChain: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1005
|
+
sourceLocation: z.ZodObject<{
|
|
1006
|
+
filePath: z.ZodString;
|
|
1007
|
+
lineNumber: z.ZodNumber;
|
|
1008
|
+
columnNumber: z.ZodOptional<z.ZodNumber>;
|
|
1009
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
1010
|
+
}, z.core.$strip>;
|
|
1011
|
+
tagName: z.ZodOptional<z.ZodString>;
|
|
1012
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
1013
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1014
|
+
}, z.core.$strip>>>;
|
|
1015
|
+
siblingSelectors: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1016
|
+
}, z.core.$strip>;
|
|
546
1017
|
}, z.core.$strip>], "type">;
|