@merittdev/horus-lens 0.1.1 → 0.2.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/dist/browser.cjs +1261 -194
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +2 -2
- package/dist/browser.d.ts +2 -2
- package/dist/browser.js +2 -2
- package/dist/{chunk-UB7YYHI4.js → chunk-JXSK4JG4.js} +245 -27
- package/dist/chunk-JXSK4JG4.js.map +1 -0
- package/dist/{chunk-CRV65EEY.js → chunk-UT7E5LCG.js} +1016 -167
- package/dist/chunk-UT7E5LCG.js.map +1 -0
- package/dist/index.cjs +244 -26
- package/dist/index.cjs.map +1 -1
- package/dist/{index.d-DeLYS02n.d.ts → index.d-BtnbCqUx.d.ts} +26 -1
- package/dist/index.d-Cyvb07sp.d.cts +301 -0
- package/dist/index.d-Cyvb07sp.d.ts +301 -0
- package/dist/{index.d-sNoEEgRg.d.cts → index.d-QzZn4EMM.d.cts} +26 -1
- package/dist/index.d.cts +342 -37
- package/dist/index.d.ts +342 -37
- package/dist/index.js +1 -1
- package/dist/lens.min.js +163 -43
- package/dist/lens.min.js.map +1 -1
- package/dist/react.cjs +1261 -194
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.js +2 -2
- package/package.json +3 -3
- package/dist/chunk-CRV65EEY.js.map +0 -1
- package/dist/chunk-UB7YYHI4.js.map +0 -1
- package/dist/index.d-Bzgtl7-B.d.cts +0 -161
- package/dist/index.d-Bzgtl7-B.d.ts +0 -161
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { A as AppContext$1, R as ReportMetadata$1, T as TargetElement$1, a as Annotation$1 } from './index.d-
|
|
2
|
+
import { A as AppContext$1, R as ReportMetadata$1, T as TargetElement$1, a as Annotation$1 } from './index.d-Cyvb07sp.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Key model (mirrors Stripe/GTM):
|
|
@@ -119,21 +119,91 @@ declare const TargetElementSchema: z.ZodObject<{
|
|
|
119
119
|
reactComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
120
120
|
}, z.core.$strip>;
|
|
121
121
|
type TargetElement = z.infer<typeof TargetElementSchema>;
|
|
122
|
-
declare const AnnotationSchema: z.ZodObject<{
|
|
123
|
-
kind: z.
|
|
124
|
-
rect: "rect";
|
|
125
|
-
ellipse: "ellipse";
|
|
126
|
-
arrow: "arrow";
|
|
127
|
-
}>;
|
|
122
|
+
declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
123
|
+
kind: z.ZodLiteral<"rect">;
|
|
128
124
|
x: z.ZodNumber;
|
|
129
125
|
y: z.ZodNumber;
|
|
130
126
|
width: z.ZodNumber;
|
|
131
127
|
height: z.ZodNumber;
|
|
132
|
-
viewport: z.ZodObject<{
|
|
128
|
+
viewport: z.ZodOptional<z.ZodObject<{
|
|
133
129
|
width: z.ZodNumber;
|
|
134
130
|
height: z.ZodNumber;
|
|
135
|
-
}, z.core.$strip
|
|
136
|
-
|
|
131
|
+
}, z.core.$strip>>;
|
|
132
|
+
id: z.ZodOptional<z.ZodString>;
|
|
133
|
+
color: z.ZodOptional<z.ZodString>;
|
|
134
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
135
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
136
|
+
kind: z.ZodLiteral<"ellipse">;
|
|
137
|
+
x: z.ZodNumber;
|
|
138
|
+
y: z.ZodNumber;
|
|
139
|
+
width: z.ZodNumber;
|
|
140
|
+
height: z.ZodNumber;
|
|
141
|
+
id: z.ZodOptional<z.ZodString>;
|
|
142
|
+
color: z.ZodOptional<z.ZodString>;
|
|
143
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
144
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
145
|
+
kind: z.ZodLiteral<"blur">;
|
|
146
|
+
x: z.ZodNumber;
|
|
147
|
+
y: z.ZodNumber;
|
|
148
|
+
width: z.ZodNumber;
|
|
149
|
+
height: z.ZodNumber;
|
|
150
|
+
id: z.ZodOptional<z.ZodString>;
|
|
151
|
+
color: z.ZodOptional<z.ZodString>;
|
|
152
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
153
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
154
|
+
kind: z.ZodLiteral<"arrow">;
|
|
155
|
+
x1: z.ZodNumber;
|
|
156
|
+
y1: z.ZodNumber;
|
|
157
|
+
x2: z.ZodNumber;
|
|
158
|
+
y2: z.ZodNumber;
|
|
159
|
+
id: z.ZodOptional<z.ZodString>;
|
|
160
|
+
color: z.ZodOptional<z.ZodString>;
|
|
161
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
162
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
163
|
+
kind: z.ZodLiteral<"line">;
|
|
164
|
+
x1: z.ZodNumber;
|
|
165
|
+
y1: z.ZodNumber;
|
|
166
|
+
x2: z.ZodNumber;
|
|
167
|
+
y2: z.ZodNumber;
|
|
168
|
+
id: z.ZodOptional<z.ZodString>;
|
|
169
|
+
color: z.ZodOptional<z.ZodString>;
|
|
170
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
171
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
172
|
+
kind: z.ZodLiteral<"pencil">;
|
|
173
|
+
points: z.ZodArray<z.ZodObject<{
|
|
174
|
+
x: z.ZodNumber;
|
|
175
|
+
y: z.ZodNumber;
|
|
176
|
+
}, z.core.$strip>>;
|
|
177
|
+
id: z.ZodOptional<z.ZodString>;
|
|
178
|
+
color: z.ZodOptional<z.ZodString>;
|
|
179
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
180
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
181
|
+
kind: z.ZodLiteral<"highlighter">;
|
|
182
|
+
points: z.ZodArray<z.ZodObject<{
|
|
183
|
+
x: z.ZodNumber;
|
|
184
|
+
y: z.ZodNumber;
|
|
185
|
+
}, z.core.$strip>>;
|
|
186
|
+
id: z.ZodOptional<z.ZodString>;
|
|
187
|
+
color: z.ZodOptional<z.ZodString>;
|
|
188
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
189
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
190
|
+
kind: z.ZodLiteral<"text">;
|
|
191
|
+
x: z.ZodNumber;
|
|
192
|
+
y: z.ZodNumber;
|
|
193
|
+
text: z.ZodString;
|
|
194
|
+
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
195
|
+
id: z.ZodOptional<z.ZodString>;
|
|
196
|
+
color: z.ZodOptional<z.ZodString>;
|
|
197
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
198
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
199
|
+
kind: z.ZodLiteral<"step">;
|
|
200
|
+
x: z.ZodNumber;
|
|
201
|
+
y: z.ZodNumber;
|
|
202
|
+
n: z.ZodNumber;
|
|
203
|
+
id: z.ZodOptional<z.ZodString>;
|
|
204
|
+
color: z.ZodOptional<z.ZodString>;
|
|
205
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
206
|
+
}, z.core.$strip>], "kind">;
|
|
137
207
|
type Annotation = z.infer<typeof AnnotationSchema>;
|
|
138
208
|
|
|
139
209
|
/**
|
|
@@ -173,21 +243,91 @@ declare const ReportStatusSchema: z.ZodEnum<{
|
|
|
173
243
|
type ReportStatus = z.infer<typeof ReportStatusSchema>;
|
|
174
244
|
declare const ReportMetadataSchema: z.ZodObject<{
|
|
175
245
|
comment: z.ZodOptional<z.ZodString>;
|
|
176
|
-
annotations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
177
|
-
kind: z.
|
|
178
|
-
rect: "rect";
|
|
179
|
-
ellipse: "ellipse";
|
|
180
|
-
arrow: "arrow";
|
|
181
|
-
}>;
|
|
246
|
+
annotations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
247
|
+
kind: z.ZodLiteral<"rect">;
|
|
182
248
|
x: z.ZodNumber;
|
|
183
249
|
y: z.ZodNumber;
|
|
184
250
|
width: z.ZodNumber;
|
|
185
251
|
height: z.ZodNumber;
|
|
186
|
-
viewport: z.ZodObject<{
|
|
252
|
+
viewport: z.ZodOptional<z.ZodObject<{
|
|
187
253
|
width: z.ZodNumber;
|
|
188
254
|
height: z.ZodNumber;
|
|
189
|
-
}, z.core.$strip
|
|
190
|
-
|
|
255
|
+
}, z.core.$strip>>;
|
|
256
|
+
id: z.ZodOptional<z.ZodString>;
|
|
257
|
+
color: z.ZodOptional<z.ZodString>;
|
|
258
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
259
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
260
|
+
kind: z.ZodLiteral<"ellipse">;
|
|
261
|
+
x: z.ZodNumber;
|
|
262
|
+
y: z.ZodNumber;
|
|
263
|
+
width: z.ZodNumber;
|
|
264
|
+
height: z.ZodNumber;
|
|
265
|
+
id: z.ZodOptional<z.ZodString>;
|
|
266
|
+
color: z.ZodOptional<z.ZodString>;
|
|
267
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
268
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
269
|
+
kind: z.ZodLiteral<"blur">;
|
|
270
|
+
x: z.ZodNumber;
|
|
271
|
+
y: z.ZodNumber;
|
|
272
|
+
width: z.ZodNumber;
|
|
273
|
+
height: z.ZodNumber;
|
|
274
|
+
id: z.ZodOptional<z.ZodString>;
|
|
275
|
+
color: z.ZodOptional<z.ZodString>;
|
|
276
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
277
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
278
|
+
kind: z.ZodLiteral<"arrow">;
|
|
279
|
+
x1: z.ZodNumber;
|
|
280
|
+
y1: z.ZodNumber;
|
|
281
|
+
x2: z.ZodNumber;
|
|
282
|
+
y2: z.ZodNumber;
|
|
283
|
+
id: z.ZodOptional<z.ZodString>;
|
|
284
|
+
color: z.ZodOptional<z.ZodString>;
|
|
285
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
286
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
287
|
+
kind: z.ZodLiteral<"line">;
|
|
288
|
+
x1: z.ZodNumber;
|
|
289
|
+
y1: z.ZodNumber;
|
|
290
|
+
x2: z.ZodNumber;
|
|
291
|
+
y2: z.ZodNumber;
|
|
292
|
+
id: z.ZodOptional<z.ZodString>;
|
|
293
|
+
color: z.ZodOptional<z.ZodString>;
|
|
294
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
295
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
296
|
+
kind: z.ZodLiteral<"pencil">;
|
|
297
|
+
points: z.ZodArray<z.ZodObject<{
|
|
298
|
+
x: z.ZodNumber;
|
|
299
|
+
y: z.ZodNumber;
|
|
300
|
+
}, z.core.$strip>>;
|
|
301
|
+
id: z.ZodOptional<z.ZodString>;
|
|
302
|
+
color: z.ZodOptional<z.ZodString>;
|
|
303
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
304
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
305
|
+
kind: z.ZodLiteral<"highlighter">;
|
|
306
|
+
points: z.ZodArray<z.ZodObject<{
|
|
307
|
+
x: z.ZodNumber;
|
|
308
|
+
y: z.ZodNumber;
|
|
309
|
+
}, z.core.$strip>>;
|
|
310
|
+
id: z.ZodOptional<z.ZodString>;
|
|
311
|
+
color: z.ZodOptional<z.ZodString>;
|
|
312
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
313
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
314
|
+
kind: z.ZodLiteral<"text">;
|
|
315
|
+
x: z.ZodNumber;
|
|
316
|
+
y: z.ZodNumber;
|
|
317
|
+
text: z.ZodString;
|
|
318
|
+
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
319
|
+
id: z.ZodOptional<z.ZodString>;
|
|
320
|
+
color: z.ZodOptional<z.ZodString>;
|
|
321
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
322
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
323
|
+
kind: z.ZodLiteral<"step">;
|
|
324
|
+
x: z.ZodNumber;
|
|
325
|
+
y: z.ZodNumber;
|
|
326
|
+
n: z.ZodNumber;
|
|
327
|
+
id: z.ZodOptional<z.ZodString>;
|
|
328
|
+
color: z.ZodOptional<z.ZodString>;
|
|
329
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
330
|
+
}, z.core.$strip>], "kind">>>;
|
|
191
331
|
target: z.ZodOptional<z.ZodObject<{
|
|
192
332
|
domPath: z.ZodOptional<z.ZodString>;
|
|
193
333
|
tagName: z.ZodOptional<z.ZodString>;
|
|
@@ -298,21 +438,91 @@ declare const ReportSchema: z.ZodObject<{
|
|
|
298
438
|
submittedAt: z.ZodNullable<z.ZodString>;
|
|
299
439
|
metadata: z.ZodNullable<z.ZodObject<{
|
|
300
440
|
comment: z.ZodOptional<z.ZodString>;
|
|
301
|
-
annotations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
302
|
-
kind: z.
|
|
303
|
-
rect: "rect";
|
|
304
|
-
ellipse: "ellipse";
|
|
305
|
-
arrow: "arrow";
|
|
306
|
-
}>;
|
|
441
|
+
annotations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
442
|
+
kind: z.ZodLiteral<"rect">;
|
|
307
443
|
x: z.ZodNumber;
|
|
308
444
|
y: z.ZodNumber;
|
|
309
445
|
width: z.ZodNumber;
|
|
310
446
|
height: z.ZodNumber;
|
|
311
|
-
viewport: z.ZodObject<{
|
|
447
|
+
viewport: z.ZodOptional<z.ZodObject<{
|
|
312
448
|
width: z.ZodNumber;
|
|
313
449
|
height: z.ZodNumber;
|
|
314
|
-
}, z.core.$strip
|
|
315
|
-
|
|
450
|
+
}, z.core.$strip>>;
|
|
451
|
+
id: z.ZodOptional<z.ZodString>;
|
|
452
|
+
color: z.ZodOptional<z.ZodString>;
|
|
453
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
454
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
455
|
+
kind: z.ZodLiteral<"ellipse">;
|
|
456
|
+
x: z.ZodNumber;
|
|
457
|
+
y: z.ZodNumber;
|
|
458
|
+
width: z.ZodNumber;
|
|
459
|
+
height: z.ZodNumber;
|
|
460
|
+
id: z.ZodOptional<z.ZodString>;
|
|
461
|
+
color: z.ZodOptional<z.ZodString>;
|
|
462
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
463
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
464
|
+
kind: z.ZodLiteral<"blur">;
|
|
465
|
+
x: z.ZodNumber;
|
|
466
|
+
y: z.ZodNumber;
|
|
467
|
+
width: z.ZodNumber;
|
|
468
|
+
height: z.ZodNumber;
|
|
469
|
+
id: z.ZodOptional<z.ZodString>;
|
|
470
|
+
color: z.ZodOptional<z.ZodString>;
|
|
471
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
472
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
473
|
+
kind: z.ZodLiteral<"arrow">;
|
|
474
|
+
x1: z.ZodNumber;
|
|
475
|
+
y1: z.ZodNumber;
|
|
476
|
+
x2: z.ZodNumber;
|
|
477
|
+
y2: z.ZodNumber;
|
|
478
|
+
id: z.ZodOptional<z.ZodString>;
|
|
479
|
+
color: z.ZodOptional<z.ZodString>;
|
|
480
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
481
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
482
|
+
kind: z.ZodLiteral<"line">;
|
|
483
|
+
x1: z.ZodNumber;
|
|
484
|
+
y1: z.ZodNumber;
|
|
485
|
+
x2: z.ZodNumber;
|
|
486
|
+
y2: z.ZodNumber;
|
|
487
|
+
id: z.ZodOptional<z.ZodString>;
|
|
488
|
+
color: z.ZodOptional<z.ZodString>;
|
|
489
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
490
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
491
|
+
kind: z.ZodLiteral<"pencil">;
|
|
492
|
+
points: z.ZodArray<z.ZodObject<{
|
|
493
|
+
x: z.ZodNumber;
|
|
494
|
+
y: z.ZodNumber;
|
|
495
|
+
}, z.core.$strip>>;
|
|
496
|
+
id: z.ZodOptional<z.ZodString>;
|
|
497
|
+
color: z.ZodOptional<z.ZodString>;
|
|
498
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
499
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
500
|
+
kind: z.ZodLiteral<"highlighter">;
|
|
501
|
+
points: z.ZodArray<z.ZodObject<{
|
|
502
|
+
x: z.ZodNumber;
|
|
503
|
+
y: z.ZodNumber;
|
|
504
|
+
}, z.core.$strip>>;
|
|
505
|
+
id: z.ZodOptional<z.ZodString>;
|
|
506
|
+
color: z.ZodOptional<z.ZodString>;
|
|
507
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
508
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
509
|
+
kind: z.ZodLiteral<"text">;
|
|
510
|
+
x: z.ZodNumber;
|
|
511
|
+
y: z.ZodNumber;
|
|
512
|
+
text: z.ZodString;
|
|
513
|
+
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
514
|
+
id: z.ZodOptional<z.ZodString>;
|
|
515
|
+
color: z.ZodOptional<z.ZodString>;
|
|
516
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
517
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
518
|
+
kind: z.ZodLiteral<"step">;
|
|
519
|
+
x: z.ZodNumber;
|
|
520
|
+
y: z.ZodNumber;
|
|
521
|
+
n: z.ZodNumber;
|
|
522
|
+
id: z.ZodOptional<z.ZodString>;
|
|
523
|
+
color: z.ZodOptional<z.ZodString>;
|
|
524
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
525
|
+
}, z.core.$strip>], "kind">>>;
|
|
316
526
|
target: z.ZodOptional<z.ZodObject<{
|
|
317
527
|
domPath: z.ZodOptional<z.ZodString>;
|
|
318
528
|
tagName: z.ZodOptional<z.ZodString>;
|
|
@@ -496,21 +706,91 @@ declare const FinalizeReportRequestSchema: z.ZodObject<{
|
|
|
496
706
|
accessId: z.ZodString;
|
|
497
707
|
metadata: z.ZodObject<{
|
|
498
708
|
comment: z.ZodOptional<z.ZodString>;
|
|
499
|
-
annotations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
500
|
-
kind: z.
|
|
501
|
-
rect: "rect";
|
|
502
|
-
ellipse: "ellipse";
|
|
503
|
-
arrow: "arrow";
|
|
504
|
-
}>;
|
|
709
|
+
annotations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
710
|
+
kind: z.ZodLiteral<"rect">;
|
|
505
711
|
x: z.ZodNumber;
|
|
506
712
|
y: z.ZodNumber;
|
|
507
713
|
width: z.ZodNumber;
|
|
508
714
|
height: z.ZodNumber;
|
|
509
|
-
viewport: z.ZodObject<{
|
|
715
|
+
viewport: z.ZodOptional<z.ZodObject<{
|
|
510
716
|
width: z.ZodNumber;
|
|
511
717
|
height: z.ZodNumber;
|
|
512
|
-
}, z.core.$strip
|
|
513
|
-
|
|
718
|
+
}, z.core.$strip>>;
|
|
719
|
+
id: z.ZodOptional<z.ZodString>;
|
|
720
|
+
color: z.ZodOptional<z.ZodString>;
|
|
721
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
722
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
723
|
+
kind: z.ZodLiteral<"ellipse">;
|
|
724
|
+
x: z.ZodNumber;
|
|
725
|
+
y: z.ZodNumber;
|
|
726
|
+
width: z.ZodNumber;
|
|
727
|
+
height: z.ZodNumber;
|
|
728
|
+
id: z.ZodOptional<z.ZodString>;
|
|
729
|
+
color: z.ZodOptional<z.ZodString>;
|
|
730
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
731
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
732
|
+
kind: z.ZodLiteral<"blur">;
|
|
733
|
+
x: z.ZodNumber;
|
|
734
|
+
y: z.ZodNumber;
|
|
735
|
+
width: z.ZodNumber;
|
|
736
|
+
height: z.ZodNumber;
|
|
737
|
+
id: z.ZodOptional<z.ZodString>;
|
|
738
|
+
color: z.ZodOptional<z.ZodString>;
|
|
739
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
740
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
741
|
+
kind: z.ZodLiteral<"arrow">;
|
|
742
|
+
x1: z.ZodNumber;
|
|
743
|
+
y1: z.ZodNumber;
|
|
744
|
+
x2: z.ZodNumber;
|
|
745
|
+
y2: z.ZodNumber;
|
|
746
|
+
id: z.ZodOptional<z.ZodString>;
|
|
747
|
+
color: z.ZodOptional<z.ZodString>;
|
|
748
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
749
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
750
|
+
kind: z.ZodLiteral<"line">;
|
|
751
|
+
x1: z.ZodNumber;
|
|
752
|
+
y1: z.ZodNumber;
|
|
753
|
+
x2: z.ZodNumber;
|
|
754
|
+
y2: z.ZodNumber;
|
|
755
|
+
id: z.ZodOptional<z.ZodString>;
|
|
756
|
+
color: z.ZodOptional<z.ZodString>;
|
|
757
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
758
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
759
|
+
kind: z.ZodLiteral<"pencil">;
|
|
760
|
+
points: z.ZodArray<z.ZodObject<{
|
|
761
|
+
x: z.ZodNumber;
|
|
762
|
+
y: z.ZodNumber;
|
|
763
|
+
}, z.core.$strip>>;
|
|
764
|
+
id: z.ZodOptional<z.ZodString>;
|
|
765
|
+
color: z.ZodOptional<z.ZodString>;
|
|
766
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
767
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
768
|
+
kind: z.ZodLiteral<"highlighter">;
|
|
769
|
+
points: z.ZodArray<z.ZodObject<{
|
|
770
|
+
x: z.ZodNumber;
|
|
771
|
+
y: z.ZodNumber;
|
|
772
|
+
}, z.core.$strip>>;
|
|
773
|
+
id: z.ZodOptional<z.ZodString>;
|
|
774
|
+
color: z.ZodOptional<z.ZodString>;
|
|
775
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
776
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
777
|
+
kind: z.ZodLiteral<"text">;
|
|
778
|
+
x: z.ZodNumber;
|
|
779
|
+
y: z.ZodNumber;
|
|
780
|
+
text: z.ZodString;
|
|
781
|
+
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
782
|
+
id: z.ZodOptional<z.ZodString>;
|
|
783
|
+
color: z.ZodOptional<z.ZodString>;
|
|
784
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
785
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
786
|
+
kind: z.ZodLiteral<"step">;
|
|
787
|
+
x: z.ZodNumber;
|
|
788
|
+
y: z.ZodNumber;
|
|
789
|
+
n: z.ZodNumber;
|
|
790
|
+
id: z.ZodOptional<z.ZodString>;
|
|
791
|
+
color: z.ZodOptional<z.ZodString>;
|
|
792
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
793
|
+
}, z.core.$strip>], "kind">>>;
|
|
514
794
|
target: z.ZodOptional<z.ZodObject<{
|
|
515
795
|
domPath: z.ZodOptional<z.ZodString>;
|
|
516
796
|
tagName: z.ZodOptional<z.ZodString>;
|
|
@@ -669,6 +949,25 @@ interface ScreenshotCrop {
|
|
|
669
949
|
width: number;
|
|
670
950
|
height: number;
|
|
671
951
|
}
|
|
952
|
+
/**
|
|
953
|
+
* A baked-in annotation composite produced by the overlay's `AnnotationEditor`.
|
|
954
|
+
* `svgMarkup` is a complete standalone SVG of every NON-blur mark (viewBox
|
|
955
|
+
* `0 0 docWidth docHeight`, document CSS px); `blurRegions` are the redaction
|
|
956
|
+
* rectangles to blur/fill on the underlying raster (kept OUT of the SVG so they
|
|
957
|
+
* describe pixels to destroy, not vectors to draw). All coords are DOCUMENT CSS
|
|
958
|
+
* pixels and are scaled by the SAME factor used to rasterize the page.
|
|
959
|
+
*/
|
|
960
|
+
interface AnnotationComposite {
|
|
961
|
+
svgMarkup: string;
|
|
962
|
+
docWidth: number;
|
|
963
|
+
docHeight: number;
|
|
964
|
+
blurRegions: Array<{
|
|
965
|
+
x: number;
|
|
966
|
+
y: number;
|
|
967
|
+
width: number;
|
|
968
|
+
height: number;
|
|
969
|
+
}>;
|
|
970
|
+
}
|
|
672
971
|
|
|
673
972
|
interface LensConfig {
|
|
674
973
|
accessId: string;
|
|
@@ -713,6 +1012,12 @@ interface SubmitReportInput {
|
|
|
713
1012
|
* bounding box of marked areas). Omit for a full-page capture.
|
|
714
1013
|
*/
|
|
715
1014
|
screenshotCrop?: ScreenshotCrop;
|
|
1015
|
+
/**
|
|
1016
|
+
* Annotations baked into the screenshot raster before crop: a blur pre-pass
|
|
1017
|
+
* redacts `blurRegions`, then the mark SVG is rasterized on top. Omit for an
|
|
1018
|
+
* un-annotated capture. Produced by the overlay's annotation editor.
|
|
1019
|
+
*/
|
|
1020
|
+
annotationComposite?: AnnotationComposite;
|
|
716
1021
|
/** Selective data opt-outs; each flag defaults to `true`. */
|
|
717
1022
|
include?: SubmitReportIncludes;
|
|
718
1023
|
}
|