@spectratools/graphic-designer-cli 0.3.2 → 0.6.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/README.md +32 -2
- package/dist/cli.js +1252 -517
- package/dist/index.d.ts +105 -5
- package/dist/index.js +1271 -513
- package/dist/qa.d.ts +14 -3
- package/dist/qa.js +361 -50
- package/dist/renderer.d.ts +1 -1
- package/dist/renderer.js +909 -431
- package/dist/{spec.schema-DhAI-tE8.d.ts → spec.schema-Dm_wOLTd.d.ts} +2028 -599
- package/dist/spec.schema.d.ts +1 -1
- package/dist/spec.schema.js +158 -10
- package/package.json +1 -1
|
@@ -172,39 +172,39 @@ declare function drawRainbowRule(ctx: SKRSContext2D, x: number, y: number, width
|
|
|
172
172
|
declare function drawVignette(ctx: SKRSContext2D, width: number, height: number, intensity?: number, color?: string): void;
|
|
173
173
|
|
|
174
174
|
declare const themeSchema: z.ZodObject<{
|
|
175
|
-
background: z.ZodString
|
|
176
|
-
surface: z.ZodString
|
|
177
|
-
surfaceMuted: z.ZodString
|
|
178
|
-
surfaceElevated: z.ZodString
|
|
179
|
-
text: z.ZodString
|
|
180
|
-
textMuted: z.ZodString
|
|
181
|
-
textInverse: z.ZodString
|
|
182
|
-
primary: z.ZodString
|
|
183
|
-
secondary: z.ZodString
|
|
184
|
-
accent: z.ZodString
|
|
185
|
-
success: z.ZodString
|
|
186
|
-
warning: z.ZodString
|
|
187
|
-
error: z.ZodString
|
|
188
|
-
info: z.ZodString
|
|
189
|
-
border: z.ZodString
|
|
190
|
-
borderMuted: z.ZodString
|
|
175
|
+
background: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
176
|
+
surface: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
177
|
+
surfaceMuted: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
178
|
+
surfaceElevated: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
179
|
+
text: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
180
|
+
textMuted: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
181
|
+
textInverse: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
182
|
+
primary: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
183
|
+
secondary: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
184
|
+
accent: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
185
|
+
success: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
186
|
+
warning: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
187
|
+
error: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
188
|
+
info: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
189
|
+
border: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
190
|
+
borderMuted: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
191
191
|
code: z.ZodObject<{
|
|
192
|
-
background: z.ZodString
|
|
193
|
-
text: z.ZodString
|
|
194
|
-
comment: z.ZodString
|
|
195
|
-
keyword: z.ZodString
|
|
196
|
-
string: z.ZodString
|
|
197
|
-
number: z.ZodString
|
|
198
|
-
function: z.ZodString
|
|
199
|
-
variable: z.ZodString
|
|
200
|
-
operator: z.ZodString
|
|
201
|
-
punctuation: z.ZodString
|
|
192
|
+
background: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
193
|
+
text: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
194
|
+
comment: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
195
|
+
keyword: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
196
|
+
string: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
197
|
+
number: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
198
|
+
function: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
199
|
+
variable: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
200
|
+
operator: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
201
|
+
punctuation: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
202
202
|
}, "strict", z.ZodTypeAny, {
|
|
203
203
|
string: string;
|
|
204
204
|
number: string;
|
|
205
205
|
function: string;
|
|
206
|
-
text: string;
|
|
207
206
|
background: string;
|
|
207
|
+
text: string;
|
|
208
208
|
comment: string;
|
|
209
209
|
keyword: string;
|
|
210
210
|
variable: string;
|
|
@@ -214,8 +214,8 @@ declare const themeSchema: z.ZodObject<{
|
|
|
214
214
|
string: string;
|
|
215
215
|
number: string;
|
|
216
216
|
function: string;
|
|
217
|
-
text: string;
|
|
218
217
|
background: string;
|
|
218
|
+
text: string;
|
|
219
219
|
comment: string;
|
|
220
220
|
keyword: string;
|
|
221
221
|
variable: string;
|
|
@@ -240,27 +240,27 @@ declare const themeSchema: z.ZodObject<{
|
|
|
240
240
|
string: string;
|
|
241
241
|
number: string;
|
|
242
242
|
function: string;
|
|
243
|
-
text: string;
|
|
244
243
|
background: string;
|
|
244
|
+
text: string;
|
|
245
245
|
comment: string;
|
|
246
246
|
keyword: string;
|
|
247
247
|
variable: string;
|
|
248
248
|
operator: string;
|
|
249
249
|
punctuation: string;
|
|
250
250
|
};
|
|
251
|
-
accent: string;
|
|
252
|
-
success: string;
|
|
253
|
-
warning: string;
|
|
254
|
-
error: string;
|
|
255
|
-
text: string;
|
|
256
251
|
background: string;
|
|
257
252
|
surface: string;
|
|
258
253
|
surfaceMuted: string;
|
|
259
254
|
surfaceElevated: string;
|
|
255
|
+
text: string;
|
|
260
256
|
textMuted: string;
|
|
261
257
|
textInverse: string;
|
|
262
258
|
primary: string;
|
|
263
259
|
secondary: string;
|
|
260
|
+
accent: string;
|
|
261
|
+
success: string;
|
|
262
|
+
warning: string;
|
|
263
|
+
error: string;
|
|
264
264
|
info: string;
|
|
265
265
|
border: string;
|
|
266
266
|
borderMuted: string;
|
|
@@ -274,27 +274,27 @@ declare const themeSchema: z.ZodObject<{
|
|
|
274
274
|
string: string;
|
|
275
275
|
number: string;
|
|
276
276
|
function: string;
|
|
277
|
-
text: string;
|
|
278
277
|
background: string;
|
|
278
|
+
text: string;
|
|
279
279
|
comment: string;
|
|
280
280
|
keyword: string;
|
|
281
281
|
variable: string;
|
|
282
282
|
operator: string;
|
|
283
283
|
punctuation: string;
|
|
284
284
|
};
|
|
285
|
-
accent: string;
|
|
286
|
-
success: string;
|
|
287
|
-
warning: string;
|
|
288
|
-
error: string;
|
|
289
|
-
text: string;
|
|
290
285
|
background: string;
|
|
291
286
|
surface: string;
|
|
292
287
|
surfaceMuted: string;
|
|
293
288
|
surfaceElevated: string;
|
|
289
|
+
text: string;
|
|
294
290
|
textMuted: string;
|
|
295
291
|
textInverse: string;
|
|
296
292
|
primary: string;
|
|
297
293
|
secondary: string;
|
|
294
|
+
accent: string;
|
|
295
|
+
success: string;
|
|
296
|
+
warning: string;
|
|
297
|
+
error: string;
|
|
298
298
|
info: string;
|
|
299
299
|
border: string;
|
|
300
300
|
borderMuted: string;
|
|
@@ -316,7 +316,7 @@ declare function resolveTheme(theme: ThemeInput$1): Theme$1;
|
|
|
316
316
|
|
|
317
317
|
declare const gradientStopSchema: z.ZodObject<{
|
|
318
318
|
offset: z.ZodNumber;
|
|
319
|
-
color: z.ZodString
|
|
319
|
+
color: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
320
320
|
}, "strict", z.ZodTypeAny, {
|
|
321
321
|
color: string;
|
|
322
322
|
offset: number;
|
|
@@ -329,7 +329,7 @@ declare const linearGradientSchema: z.ZodObject<{
|
|
|
329
329
|
angle: z.ZodDefault<z.ZodNumber>;
|
|
330
330
|
stops: z.ZodArray<z.ZodObject<{
|
|
331
331
|
offset: z.ZodNumber;
|
|
332
|
-
color: z.ZodString
|
|
332
|
+
color: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
333
333
|
}, "strict", z.ZodTypeAny, {
|
|
334
334
|
color: string;
|
|
335
335
|
offset: number;
|
|
@@ -356,7 +356,7 @@ declare const radialGradientSchema: z.ZodObject<{
|
|
|
356
356
|
type: z.ZodLiteral<"radial">;
|
|
357
357
|
stops: z.ZodArray<z.ZodObject<{
|
|
358
358
|
offset: z.ZodNumber;
|
|
359
|
-
color: z.ZodString
|
|
359
|
+
color: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
360
360
|
}, "strict", z.ZodTypeAny, {
|
|
361
361
|
color: string;
|
|
362
362
|
offset: number;
|
|
@@ -382,7 +382,7 @@ declare const gradientSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
382
382
|
angle: z.ZodDefault<z.ZodNumber>;
|
|
383
383
|
stops: z.ZodArray<z.ZodObject<{
|
|
384
384
|
offset: z.ZodNumber;
|
|
385
|
-
color: z.ZodString
|
|
385
|
+
color: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
386
386
|
}, "strict", z.ZodTypeAny, {
|
|
387
387
|
color: string;
|
|
388
388
|
offset: number;
|
|
@@ -408,7 +408,7 @@ declare const gradientSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
408
408
|
type: z.ZodLiteral<"radial">;
|
|
409
409
|
stops: z.ZodArray<z.ZodObject<{
|
|
410
410
|
offset: z.ZodNumber;
|
|
411
|
-
color: z.ZodString
|
|
411
|
+
color: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
412
412
|
}, "strict", z.ZodTypeAny, {
|
|
413
413
|
color: string;
|
|
414
414
|
offset: number;
|
|
@@ -436,15 +436,15 @@ declare const drawRectSchema: z.ZodObject<{
|
|
|
436
436
|
y: z.ZodNumber;
|
|
437
437
|
width: z.ZodNumber;
|
|
438
438
|
height: z.ZodNumber;
|
|
439
|
-
fill: z.ZodOptional<z.ZodString
|
|
440
|
-
stroke: z.ZodOptional<z.ZodString
|
|
439
|
+
fill: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
440
|
+
stroke: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
441
441
|
strokeWidth: z.ZodDefault<z.ZodNumber>;
|
|
442
442
|
radius: z.ZodDefault<z.ZodNumber>;
|
|
443
443
|
opacity: z.ZodDefault<z.ZodNumber>;
|
|
444
444
|
}, "strict", z.ZodTypeAny, {
|
|
445
|
-
type: "rect";
|
|
446
445
|
width: number;
|
|
447
446
|
height: number;
|
|
447
|
+
type: "rect";
|
|
448
448
|
opacity: number;
|
|
449
449
|
strokeWidth: number;
|
|
450
450
|
x: number;
|
|
@@ -453,15 +453,15 @@ declare const drawRectSchema: z.ZodObject<{
|
|
|
453
453
|
fill?: string | undefined;
|
|
454
454
|
stroke?: string | undefined;
|
|
455
455
|
}, {
|
|
456
|
-
type: "rect";
|
|
457
456
|
width: number;
|
|
458
457
|
height: number;
|
|
458
|
+
type: "rect";
|
|
459
459
|
x: number;
|
|
460
460
|
y: number;
|
|
461
461
|
fill?: string | undefined;
|
|
462
462
|
opacity?: number | undefined;
|
|
463
|
-
stroke?: string | undefined;
|
|
464
463
|
strokeWidth?: number | undefined;
|
|
464
|
+
stroke?: string | undefined;
|
|
465
465
|
radius?: number | undefined;
|
|
466
466
|
}>;
|
|
467
467
|
declare const drawCircleSchema: z.ZodObject<{
|
|
@@ -469,8 +469,8 @@ declare const drawCircleSchema: z.ZodObject<{
|
|
|
469
469
|
cx: z.ZodNumber;
|
|
470
470
|
cy: z.ZodNumber;
|
|
471
471
|
radius: z.ZodNumber;
|
|
472
|
-
fill: z.ZodOptional<z.ZodString
|
|
473
|
-
stroke: z.ZodOptional<z.ZodString
|
|
472
|
+
fill: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
473
|
+
stroke: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
474
474
|
strokeWidth: z.ZodDefault<z.ZodNumber>;
|
|
475
475
|
opacity: z.ZodDefault<z.ZodNumber>;
|
|
476
476
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -489,8 +489,8 @@ declare const drawCircleSchema: z.ZodObject<{
|
|
|
489
489
|
cy: number;
|
|
490
490
|
fill?: string | undefined;
|
|
491
491
|
opacity?: number | undefined;
|
|
492
|
-
stroke?: string | undefined;
|
|
493
492
|
strokeWidth?: number | undefined;
|
|
493
|
+
stroke?: string | undefined;
|
|
494
494
|
}>;
|
|
495
495
|
declare const drawTextSchema: z.ZodObject<{
|
|
496
496
|
type: z.ZodLiteral<"text">;
|
|
@@ -500,7 +500,7 @@ declare const drawTextSchema: z.ZodObject<{
|
|
|
500
500
|
fontSize: z.ZodDefault<z.ZodNumber>;
|
|
501
501
|
fontWeight: z.ZodDefault<z.ZodNumber>;
|
|
502
502
|
fontFamily: z.ZodDefault<z.ZodEnum<["heading", "body", "mono"]>>;
|
|
503
|
-
color: z.ZodDefault<z.ZodString
|
|
503
|
+
color: z.ZodDefault<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
504
504
|
align: z.ZodDefault<z.ZodEnum<["left", "center", "right"]>>;
|
|
505
505
|
baseline: z.ZodDefault<z.ZodEnum<["top", "middle", "alphabetic", "bottom"]>>;
|
|
506
506
|
letterSpacing: z.ZodDefault<z.ZodNumber>;
|
|
@@ -510,14 +510,14 @@ declare const drawTextSchema: z.ZodObject<{
|
|
|
510
510
|
type: "text";
|
|
511
511
|
color: string;
|
|
512
512
|
opacity: number;
|
|
513
|
-
fontSize: number;
|
|
514
513
|
text: string;
|
|
515
|
-
|
|
514
|
+
fontSize: number;
|
|
515
|
+
align: "center" | "left" | "right";
|
|
516
516
|
x: number;
|
|
517
517
|
y: number;
|
|
518
518
|
fontWeight: number;
|
|
519
519
|
fontFamily: "body" | "heading" | "mono";
|
|
520
|
-
baseline: "
|
|
520
|
+
baseline: "top" | "alphabetic" | "bottom" | "middle";
|
|
521
521
|
letterSpacing: number;
|
|
522
522
|
maxWidth?: number | undefined;
|
|
523
523
|
}, {
|
|
@@ -528,10 +528,10 @@ declare const drawTextSchema: z.ZodObject<{
|
|
|
528
528
|
color?: string | undefined;
|
|
529
529
|
opacity?: number | undefined;
|
|
530
530
|
fontSize?: number | undefined;
|
|
531
|
-
align?: "
|
|
531
|
+
align?: "center" | "left" | "right" | undefined;
|
|
532
532
|
fontWeight?: number | undefined;
|
|
533
533
|
fontFamily?: "body" | "heading" | "mono" | undefined;
|
|
534
|
-
baseline?: "
|
|
534
|
+
baseline?: "top" | "alphabetic" | "bottom" | "middle" | undefined;
|
|
535
535
|
letterSpacing?: number | undefined;
|
|
536
536
|
maxWidth?: number | undefined;
|
|
537
537
|
}>;
|
|
@@ -541,16 +541,16 @@ declare const drawLineSchema: z.ZodObject<{
|
|
|
541
541
|
y1: z.ZodNumber;
|
|
542
542
|
x2: z.ZodNumber;
|
|
543
543
|
y2: z.ZodNumber;
|
|
544
|
-
color: z.ZodDefault<z.ZodString
|
|
544
|
+
color: z.ZodDefault<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
545
545
|
width: z.ZodDefault<z.ZodNumber>;
|
|
546
546
|
dash: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
547
547
|
arrow: z.ZodDefault<z.ZodEnum<["none", "end", "start", "both"]>>;
|
|
548
548
|
arrowSize: z.ZodDefault<z.ZodNumber>;
|
|
549
549
|
opacity: z.ZodDefault<z.ZodNumber>;
|
|
550
550
|
}, "strict", z.ZodTypeAny, {
|
|
551
|
+
width: number;
|
|
551
552
|
type: "line";
|
|
552
553
|
color: string;
|
|
553
|
-
width: number;
|
|
554
554
|
opacity: number;
|
|
555
555
|
arrow: "end" | "start" | "both" | "none";
|
|
556
556
|
arrowSize: number;
|
|
@@ -565,8 +565,8 @@ declare const drawLineSchema: z.ZodObject<{
|
|
|
565
565
|
y1: number;
|
|
566
566
|
x2: number;
|
|
567
567
|
y2: number;
|
|
568
|
-
color?: string | undefined;
|
|
569
568
|
width?: number | undefined;
|
|
569
|
+
color?: string | undefined;
|
|
570
570
|
opacity?: number | undefined;
|
|
571
571
|
arrow?: "end" | "start" | "both" | "none" | undefined;
|
|
572
572
|
arrowSize?: number | undefined;
|
|
@@ -594,16 +594,16 @@ declare const drawBezierSchema: z.ZodObject<{
|
|
|
594
594
|
x: number;
|
|
595
595
|
y: number;
|
|
596
596
|
}>, "many">;
|
|
597
|
-
color: z.ZodDefault<z.ZodString
|
|
597
|
+
color: z.ZodDefault<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
598
598
|
width: z.ZodDefault<z.ZodNumber>;
|
|
599
599
|
dash: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
600
600
|
arrow: z.ZodDefault<z.ZodEnum<["none", "end", "start", "both"]>>;
|
|
601
601
|
arrowSize: z.ZodDefault<z.ZodNumber>;
|
|
602
602
|
opacity: z.ZodDefault<z.ZodNumber>;
|
|
603
603
|
}, "strict", z.ZodTypeAny, {
|
|
604
|
+
width: number;
|
|
604
605
|
type: "bezier";
|
|
605
606
|
color: string;
|
|
606
|
-
width: number;
|
|
607
607
|
opacity: number;
|
|
608
608
|
arrow: "end" | "start" | "both" | "none";
|
|
609
609
|
arrowSize: number;
|
|
@@ -618,8 +618,8 @@ declare const drawBezierSchema: z.ZodObject<{
|
|
|
618
618
|
x: number;
|
|
619
619
|
y: number;
|
|
620
620
|
}[];
|
|
621
|
-
color?: string | undefined;
|
|
622
621
|
width?: number | undefined;
|
|
622
|
+
color?: string | undefined;
|
|
623
623
|
opacity?: number | undefined;
|
|
624
624
|
arrow?: "end" | "start" | "both" | "none" | undefined;
|
|
625
625
|
arrowSize?: number | undefined;
|
|
@@ -628,8 +628,8 @@ declare const drawBezierSchema: z.ZodObject<{
|
|
|
628
628
|
declare const drawPathSchema: z.ZodObject<{
|
|
629
629
|
type: z.ZodLiteral<"path">;
|
|
630
630
|
d: z.ZodString;
|
|
631
|
-
fill: z.ZodOptional<z.ZodString
|
|
632
|
-
stroke: z.ZodOptional<z.ZodString
|
|
631
|
+
fill: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
632
|
+
stroke: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
633
633
|
strokeWidth: z.ZodDefault<z.ZodNumber>;
|
|
634
634
|
opacity: z.ZodDefault<z.ZodNumber>;
|
|
635
635
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -644,8 +644,8 @@ declare const drawPathSchema: z.ZodObject<{
|
|
|
644
644
|
d: string;
|
|
645
645
|
fill?: string | undefined;
|
|
646
646
|
opacity?: number | undefined;
|
|
647
|
-
stroke?: string | undefined;
|
|
648
647
|
strokeWidth?: number | undefined;
|
|
648
|
+
stroke?: string | undefined;
|
|
649
649
|
}>;
|
|
650
650
|
declare const drawBadgeSchema: z.ZodObject<{
|
|
651
651
|
type: z.ZodLiteral<"badge">;
|
|
@@ -654,8 +654,8 @@ declare const drawBadgeSchema: z.ZodObject<{
|
|
|
654
654
|
text: z.ZodString;
|
|
655
655
|
fontSize: z.ZodDefault<z.ZodNumber>;
|
|
656
656
|
fontFamily: z.ZodDefault<z.ZodEnum<["heading", "body", "mono"]>>;
|
|
657
|
-
color: z.ZodDefault<z.ZodString
|
|
658
|
-
background: z.ZodDefault<z.ZodString
|
|
657
|
+
color: z.ZodDefault<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
658
|
+
background: z.ZodDefault<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
659
659
|
paddingX: z.ZodDefault<z.ZodNumber>;
|
|
660
660
|
paddingY: z.ZodDefault<z.ZodNumber>;
|
|
661
661
|
borderRadius: z.ZodDefault<z.ZodNumber>;
|
|
@@ -664,12 +664,12 @@ declare const drawBadgeSchema: z.ZodObject<{
|
|
|
664
664
|
type: "badge";
|
|
665
665
|
color: string;
|
|
666
666
|
opacity: number;
|
|
667
|
-
|
|
667
|
+
background: string;
|
|
668
668
|
text: string;
|
|
669
|
+
fontSize: number;
|
|
669
670
|
borderRadius: number;
|
|
670
671
|
x: number;
|
|
671
672
|
y: number;
|
|
672
|
-
background: string;
|
|
673
673
|
fontFamily: "body" | "heading" | "mono";
|
|
674
674
|
paddingX: number;
|
|
675
675
|
paddingY: number;
|
|
@@ -680,9 +680,9 @@ declare const drawBadgeSchema: z.ZodObject<{
|
|
|
680
680
|
y: number;
|
|
681
681
|
color?: string | undefined;
|
|
682
682
|
opacity?: number | undefined;
|
|
683
|
+
background?: string | undefined;
|
|
683
684
|
fontSize?: number | undefined;
|
|
684
685
|
borderRadius?: number | undefined;
|
|
685
|
-
background?: string | undefined;
|
|
686
686
|
fontFamily?: "body" | "heading" | "mono" | undefined;
|
|
687
687
|
paddingX?: number | undefined;
|
|
688
688
|
paddingY?: number | undefined;
|
|
@@ -698,7 +698,7 @@ declare const drawGradientRectSchema: z.ZodObject<{
|
|
|
698
698
|
angle: z.ZodDefault<z.ZodNumber>;
|
|
699
699
|
stops: z.ZodArray<z.ZodObject<{
|
|
700
700
|
offset: z.ZodNumber;
|
|
701
|
-
color: z.ZodString
|
|
701
|
+
color: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
702
702
|
}, "strict", z.ZodTypeAny, {
|
|
703
703
|
color: string;
|
|
704
704
|
offset: number;
|
|
@@ -724,7 +724,7 @@ declare const drawGradientRectSchema: z.ZodObject<{
|
|
|
724
724
|
type: z.ZodLiteral<"radial">;
|
|
725
725
|
stops: z.ZodArray<z.ZodObject<{
|
|
726
726
|
offset: z.ZodNumber;
|
|
727
|
-
color: z.ZodString
|
|
727
|
+
color: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
728
728
|
}, "strict", z.ZodTypeAny, {
|
|
729
729
|
color: string;
|
|
730
730
|
offset: number;
|
|
@@ -748,9 +748,9 @@ declare const drawGradientRectSchema: z.ZodObject<{
|
|
|
748
748
|
radius: z.ZodDefault<z.ZodNumber>;
|
|
749
749
|
opacity: z.ZodDefault<z.ZodNumber>;
|
|
750
750
|
}, "strict", z.ZodTypeAny, {
|
|
751
|
-
type: "gradient-rect";
|
|
752
751
|
width: number;
|
|
753
752
|
height: number;
|
|
753
|
+
type: "gradient-rect";
|
|
754
754
|
opacity: number;
|
|
755
755
|
x: number;
|
|
756
756
|
y: number;
|
|
@@ -770,9 +770,9 @@ declare const drawGradientRectSchema: z.ZodObject<{
|
|
|
770
770
|
}[];
|
|
771
771
|
};
|
|
772
772
|
}, {
|
|
773
|
-
type: "gradient-rect";
|
|
774
773
|
width: number;
|
|
775
774
|
height: number;
|
|
775
|
+
type: "gradient-rect";
|
|
776
776
|
x: number;
|
|
777
777
|
y: number;
|
|
778
778
|
gradient: {
|
|
@@ -798,15 +798,15 @@ declare const drawCommandSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
798
798
|
y: z.ZodNumber;
|
|
799
799
|
width: z.ZodNumber;
|
|
800
800
|
height: z.ZodNumber;
|
|
801
|
-
fill: z.ZodOptional<z.ZodString
|
|
802
|
-
stroke: z.ZodOptional<z.ZodString
|
|
801
|
+
fill: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
802
|
+
stroke: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
803
803
|
strokeWidth: z.ZodDefault<z.ZodNumber>;
|
|
804
804
|
radius: z.ZodDefault<z.ZodNumber>;
|
|
805
805
|
opacity: z.ZodDefault<z.ZodNumber>;
|
|
806
806
|
}, "strict", z.ZodTypeAny, {
|
|
807
|
-
type: "rect";
|
|
808
807
|
width: number;
|
|
809
808
|
height: number;
|
|
809
|
+
type: "rect";
|
|
810
810
|
opacity: number;
|
|
811
811
|
strokeWidth: number;
|
|
812
812
|
x: number;
|
|
@@ -815,23 +815,23 @@ declare const drawCommandSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
815
815
|
fill?: string | undefined;
|
|
816
816
|
stroke?: string | undefined;
|
|
817
817
|
}, {
|
|
818
|
-
type: "rect";
|
|
819
818
|
width: number;
|
|
820
819
|
height: number;
|
|
820
|
+
type: "rect";
|
|
821
821
|
x: number;
|
|
822
822
|
y: number;
|
|
823
823
|
fill?: string | undefined;
|
|
824
824
|
opacity?: number | undefined;
|
|
825
|
-
stroke?: string | undefined;
|
|
826
825
|
strokeWidth?: number | undefined;
|
|
826
|
+
stroke?: string | undefined;
|
|
827
827
|
radius?: number | undefined;
|
|
828
828
|
}>, z.ZodObject<{
|
|
829
829
|
type: z.ZodLiteral<"circle">;
|
|
830
830
|
cx: z.ZodNumber;
|
|
831
831
|
cy: z.ZodNumber;
|
|
832
832
|
radius: z.ZodNumber;
|
|
833
|
-
fill: z.ZodOptional<z.ZodString
|
|
834
|
-
stroke: z.ZodOptional<z.ZodString
|
|
833
|
+
fill: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
834
|
+
stroke: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
835
835
|
strokeWidth: z.ZodDefault<z.ZodNumber>;
|
|
836
836
|
opacity: z.ZodDefault<z.ZodNumber>;
|
|
837
837
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -850,8 +850,8 @@ declare const drawCommandSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
850
850
|
cy: number;
|
|
851
851
|
fill?: string | undefined;
|
|
852
852
|
opacity?: number | undefined;
|
|
853
|
-
stroke?: string | undefined;
|
|
854
853
|
strokeWidth?: number | undefined;
|
|
854
|
+
stroke?: string | undefined;
|
|
855
855
|
}>, z.ZodObject<{
|
|
856
856
|
type: z.ZodLiteral<"text">;
|
|
857
857
|
x: z.ZodNumber;
|
|
@@ -860,7 +860,7 @@ declare const drawCommandSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
860
860
|
fontSize: z.ZodDefault<z.ZodNumber>;
|
|
861
861
|
fontWeight: z.ZodDefault<z.ZodNumber>;
|
|
862
862
|
fontFamily: z.ZodDefault<z.ZodEnum<["heading", "body", "mono"]>>;
|
|
863
|
-
color: z.ZodDefault<z.ZodString
|
|
863
|
+
color: z.ZodDefault<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
864
864
|
align: z.ZodDefault<z.ZodEnum<["left", "center", "right"]>>;
|
|
865
865
|
baseline: z.ZodDefault<z.ZodEnum<["top", "middle", "alphabetic", "bottom"]>>;
|
|
866
866
|
letterSpacing: z.ZodDefault<z.ZodNumber>;
|
|
@@ -870,14 +870,14 @@ declare const drawCommandSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
870
870
|
type: "text";
|
|
871
871
|
color: string;
|
|
872
872
|
opacity: number;
|
|
873
|
-
fontSize: number;
|
|
874
873
|
text: string;
|
|
875
|
-
|
|
874
|
+
fontSize: number;
|
|
875
|
+
align: "center" | "left" | "right";
|
|
876
876
|
x: number;
|
|
877
877
|
y: number;
|
|
878
878
|
fontWeight: number;
|
|
879
879
|
fontFamily: "body" | "heading" | "mono";
|
|
880
|
-
baseline: "
|
|
880
|
+
baseline: "top" | "alphabetic" | "bottom" | "middle";
|
|
881
881
|
letterSpacing: number;
|
|
882
882
|
maxWidth?: number | undefined;
|
|
883
883
|
}, {
|
|
@@ -888,10 +888,10 @@ declare const drawCommandSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
888
888
|
color?: string | undefined;
|
|
889
889
|
opacity?: number | undefined;
|
|
890
890
|
fontSize?: number | undefined;
|
|
891
|
-
align?: "
|
|
891
|
+
align?: "center" | "left" | "right" | undefined;
|
|
892
892
|
fontWeight?: number | undefined;
|
|
893
893
|
fontFamily?: "body" | "heading" | "mono" | undefined;
|
|
894
|
-
baseline?: "
|
|
894
|
+
baseline?: "top" | "alphabetic" | "bottom" | "middle" | undefined;
|
|
895
895
|
letterSpacing?: number | undefined;
|
|
896
896
|
maxWidth?: number | undefined;
|
|
897
897
|
}>, z.ZodObject<{
|
|
@@ -900,16 +900,16 @@ declare const drawCommandSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
900
900
|
y1: z.ZodNumber;
|
|
901
901
|
x2: z.ZodNumber;
|
|
902
902
|
y2: z.ZodNumber;
|
|
903
|
-
color: z.ZodDefault<z.ZodString
|
|
903
|
+
color: z.ZodDefault<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
904
904
|
width: z.ZodDefault<z.ZodNumber>;
|
|
905
905
|
dash: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
906
906
|
arrow: z.ZodDefault<z.ZodEnum<["none", "end", "start", "both"]>>;
|
|
907
907
|
arrowSize: z.ZodDefault<z.ZodNumber>;
|
|
908
908
|
opacity: z.ZodDefault<z.ZodNumber>;
|
|
909
909
|
}, "strict", z.ZodTypeAny, {
|
|
910
|
+
width: number;
|
|
910
911
|
type: "line";
|
|
911
912
|
color: string;
|
|
912
|
-
width: number;
|
|
913
913
|
opacity: number;
|
|
914
914
|
arrow: "end" | "start" | "both" | "none";
|
|
915
915
|
arrowSize: number;
|
|
@@ -924,8 +924,8 @@ declare const drawCommandSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
924
924
|
y1: number;
|
|
925
925
|
x2: number;
|
|
926
926
|
y2: number;
|
|
927
|
-
color?: string | undefined;
|
|
928
927
|
width?: number | undefined;
|
|
928
|
+
color?: string | undefined;
|
|
929
929
|
opacity?: number | undefined;
|
|
930
930
|
arrow?: "end" | "start" | "both" | "none" | undefined;
|
|
931
931
|
arrowSize?: number | undefined;
|
|
@@ -942,16 +942,16 @@ declare const drawCommandSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
942
942
|
x: number;
|
|
943
943
|
y: number;
|
|
944
944
|
}>, "many">;
|
|
945
|
-
color: z.ZodDefault<z.ZodString
|
|
945
|
+
color: z.ZodDefault<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
946
946
|
width: z.ZodDefault<z.ZodNumber>;
|
|
947
947
|
dash: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
948
948
|
arrow: z.ZodDefault<z.ZodEnum<["none", "end", "start", "both"]>>;
|
|
949
949
|
arrowSize: z.ZodDefault<z.ZodNumber>;
|
|
950
950
|
opacity: z.ZodDefault<z.ZodNumber>;
|
|
951
951
|
}, "strict", z.ZodTypeAny, {
|
|
952
|
+
width: number;
|
|
952
953
|
type: "bezier";
|
|
953
954
|
color: string;
|
|
954
|
-
width: number;
|
|
955
955
|
opacity: number;
|
|
956
956
|
arrow: "end" | "start" | "both" | "none";
|
|
957
957
|
arrowSize: number;
|
|
@@ -966,8 +966,8 @@ declare const drawCommandSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
966
966
|
x: number;
|
|
967
967
|
y: number;
|
|
968
968
|
}[];
|
|
969
|
-
color?: string | undefined;
|
|
970
969
|
width?: number | undefined;
|
|
970
|
+
color?: string | undefined;
|
|
971
971
|
opacity?: number | undefined;
|
|
972
972
|
arrow?: "end" | "start" | "both" | "none" | undefined;
|
|
973
973
|
arrowSize?: number | undefined;
|
|
@@ -975,8 +975,8 @@ declare const drawCommandSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
975
975
|
}>, z.ZodObject<{
|
|
976
976
|
type: z.ZodLiteral<"path">;
|
|
977
977
|
d: z.ZodString;
|
|
978
|
-
fill: z.ZodOptional<z.ZodString
|
|
979
|
-
stroke: z.ZodOptional<z.ZodString
|
|
978
|
+
fill: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
979
|
+
stroke: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
980
980
|
strokeWidth: z.ZodDefault<z.ZodNumber>;
|
|
981
981
|
opacity: z.ZodDefault<z.ZodNumber>;
|
|
982
982
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -991,8 +991,8 @@ declare const drawCommandSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
991
991
|
d: string;
|
|
992
992
|
fill?: string | undefined;
|
|
993
993
|
opacity?: number | undefined;
|
|
994
|
-
stroke?: string | undefined;
|
|
995
994
|
strokeWidth?: number | undefined;
|
|
995
|
+
stroke?: string | undefined;
|
|
996
996
|
}>, z.ZodObject<{
|
|
997
997
|
type: z.ZodLiteral<"badge">;
|
|
998
998
|
x: z.ZodNumber;
|
|
@@ -1000,8 +1000,8 @@ declare const drawCommandSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1000
1000
|
text: z.ZodString;
|
|
1001
1001
|
fontSize: z.ZodDefault<z.ZodNumber>;
|
|
1002
1002
|
fontFamily: z.ZodDefault<z.ZodEnum<["heading", "body", "mono"]>>;
|
|
1003
|
-
color: z.ZodDefault<z.ZodString
|
|
1004
|
-
background: z.ZodDefault<z.ZodString
|
|
1003
|
+
color: z.ZodDefault<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1004
|
+
background: z.ZodDefault<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1005
1005
|
paddingX: z.ZodDefault<z.ZodNumber>;
|
|
1006
1006
|
paddingY: z.ZodDefault<z.ZodNumber>;
|
|
1007
1007
|
borderRadius: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1010,12 +1010,12 @@ declare const drawCommandSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1010
1010
|
type: "badge";
|
|
1011
1011
|
color: string;
|
|
1012
1012
|
opacity: number;
|
|
1013
|
-
|
|
1013
|
+
background: string;
|
|
1014
1014
|
text: string;
|
|
1015
|
+
fontSize: number;
|
|
1015
1016
|
borderRadius: number;
|
|
1016
1017
|
x: number;
|
|
1017
1018
|
y: number;
|
|
1018
|
-
background: string;
|
|
1019
1019
|
fontFamily: "body" | "heading" | "mono";
|
|
1020
1020
|
paddingX: number;
|
|
1021
1021
|
paddingY: number;
|
|
@@ -1026,9 +1026,9 @@ declare const drawCommandSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1026
1026
|
y: number;
|
|
1027
1027
|
color?: string | undefined;
|
|
1028
1028
|
opacity?: number | undefined;
|
|
1029
|
+
background?: string | undefined;
|
|
1029
1030
|
fontSize?: number | undefined;
|
|
1030
1031
|
borderRadius?: number | undefined;
|
|
1031
|
-
background?: string | undefined;
|
|
1032
1032
|
fontFamily?: "body" | "heading" | "mono" | undefined;
|
|
1033
1033
|
paddingX?: number | undefined;
|
|
1034
1034
|
paddingY?: number | undefined;
|
|
@@ -1043,7 +1043,7 @@ declare const drawCommandSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1043
1043
|
angle: z.ZodDefault<z.ZodNumber>;
|
|
1044
1044
|
stops: z.ZodArray<z.ZodObject<{
|
|
1045
1045
|
offset: z.ZodNumber;
|
|
1046
|
-
color: z.ZodString
|
|
1046
|
+
color: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1047
1047
|
}, "strict", z.ZodTypeAny, {
|
|
1048
1048
|
color: string;
|
|
1049
1049
|
offset: number;
|
|
@@ -1069,7 +1069,7 @@ declare const drawCommandSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1069
1069
|
type: z.ZodLiteral<"radial">;
|
|
1070
1070
|
stops: z.ZodArray<z.ZodObject<{
|
|
1071
1071
|
offset: z.ZodNumber;
|
|
1072
|
-
color: z.ZodString
|
|
1072
|
+
color: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1073
1073
|
}, "strict", z.ZodTypeAny, {
|
|
1074
1074
|
color: string;
|
|
1075
1075
|
offset: number;
|
|
@@ -1093,9 +1093,9 @@ declare const drawCommandSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1093
1093
|
radius: z.ZodDefault<z.ZodNumber>;
|
|
1094
1094
|
opacity: z.ZodDefault<z.ZodNumber>;
|
|
1095
1095
|
}, "strict", z.ZodTypeAny, {
|
|
1096
|
-
type: "gradient-rect";
|
|
1097
1096
|
width: number;
|
|
1098
1097
|
height: number;
|
|
1098
|
+
type: "gradient-rect";
|
|
1099
1099
|
opacity: number;
|
|
1100
1100
|
x: number;
|
|
1101
1101
|
y: number;
|
|
@@ -1115,9 +1115,9 @@ declare const drawCommandSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1115
1115
|
}[];
|
|
1116
1116
|
};
|
|
1117
1117
|
}, {
|
|
1118
|
-
type: "gradient-rect";
|
|
1119
1118
|
width: number;
|
|
1120
1119
|
height: number;
|
|
1120
|
+
type: "gradient-rect";
|
|
1121
1121
|
x: number;
|
|
1122
1122
|
y: number;
|
|
1123
1123
|
gradient: {
|
|
@@ -1212,7 +1212,7 @@ declare const cardElementSchema: z.ZodObject<{
|
|
|
1212
1212
|
type: "card";
|
|
1213
1213
|
id: string;
|
|
1214
1214
|
title: string;
|
|
1215
|
-
tone: "
|
|
1215
|
+
tone: "accent" | "success" | "warning" | "error" | "neutral";
|
|
1216
1216
|
badge?: string | undefined;
|
|
1217
1217
|
metric?: string | undefined;
|
|
1218
1218
|
icon?: string | undefined;
|
|
@@ -1223,94 +1223,182 @@ declare const cardElementSchema: z.ZodObject<{
|
|
|
1223
1223
|
title: string;
|
|
1224
1224
|
badge?: string | undefined;
|
|
1225
1225
|
metric?: string | undefined;
|
|
1226
|
-
tone?: "
|
|
1226
|
+
tone?: "accent" | "success" | "warning" | "error" | "neutral" | undefined;
|
|
1227
1227
|
icon?: string | undefined;
|
|
1228
1228
|
}>;
|
|
1229
|
+
declare const flowNodeShadowSchema: z.ZodObject<{
|
|
1230
|
+
color: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1231
|
+
blur: z.ZodDefault<z.ZodNumber>;
|
|
1232
|
+
offsetX: z.ZodDefault<z.ZodNumber>;
|
|
1233
|
+
offsetY: z.ZodDefault<z.ZodNumber>;
|
|
1234
|
+
opacity: z.ZodDefault<z.ZodNumber>;
|
|
1235
|
+
}, "strict", z.ZodTypeAny, {
|
|
1236
|
+
opacity: number;
|
|
1237
|
+
blur: number;
|
|
1238
|
+
offsetX: number;
|
|
1239
|
+
offsetY: number;
|
|
1240
|
+
color?: string | undefined;
|
|
1241
|
+
}, {
|
|
1242
|
+
color?: string | undefined;
|
|
1243
|
+
opacity?: number | undefined;
|
|
1244
|
+
blur?: number | undefined;
|
|
1245
|
+
offsetX?: number | undefined;
|
|
1246
|
+
offsetY?: number | undefined;
|
|
1247
|
+
}>;
|
|
1229
1248
|
declare const flowNodeElementSchema: z.ZodObject<{
|
|
1230
1249
|
type: z.ZodLiteral<"flow-node">;
|
|
1231
1250
|
id: z.ZodString;
|
|
1232
|
-
shape: z.ZodEnum<["box", "rounded-box", "diamond", "circle", "pill", "cylinder", "parallelogram"]
|
|
1251
|
+
shape: z.ZodDefault<z.ZodEnum<["box", "rounded-box", "diamond", "circle", "pill", "cylinder", "parallelogram", "hexagon"]>>;
|
|
1233
1252
|
label: z.ZodString;
|
|
1234
1253
|
sublabel: z.ZodOptional<z.ZodString>;
|
|
1235
|
-
sublabelColor: z.ZodOptional<z.ZodString
|
|
1236
|
-
|
|
1254
|
+
sublabelColor: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1255
|
+
sublabel2: z.ZodOptional<z.ZodString>;
|
|
1256
|
+
sublabel2Color: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1257
|
+
sublabel2FontSize: z.ZodOptional<z.ZodNumber>;
|
|
1258
|
+
labelColor: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1237
1259
|
labelFontSize: z.ZodOptional<z.ZodNumber>;
|
|
1238
|
-
color: z.ZodOptional<z.ZodString
|
|
1239
|
-
borderColor: z.ZodOptional<z.ZodString
|
|
1260
|
+
color: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1261
|
+
borderColor: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1240
1262
|
borderWidth: z.ZodOptional<z.ZodNumber>;
|
|
1241
1263
|
cornerRadius: z.ZodOptional<z.ZodNumber>;
|
|
1242
1264
|
width: z.ZodOptional<z.ZodNumber>;
|
|
1243
1265
|
height: z.ZodOptional<z.ZodNumber>;
|
|
1266
|
+
fillOpacity: z.ZodDefault<z.ZodNumber>;
|
|
1244
1267
|
opacity: z.ZodDefault<z.ZodNumber>;
|
|
1268
|
+
badgeText: z.ZodOptional<z.ZodString>;
|
|
1269
|
+
badgeColor: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1270
|
+
badgeBackground: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1271
|
+
badgePosition: z.ZodDefault<z.ZodEnum<["top", "inside-top"]>>;
|
|
1272
|
+
shadow: z.ZodOptional<z.ZodObject<{
|
|
1273
|
+
color: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1274
|
+
blur: z.ZodDefault<z.ZodNumber>;
|
|
1275
|
+
offsetX: z.ZodDefault<z.ZodNumber>;
|
|
1276
|
+
offsetY: z.ZodDefault<z.ZodNumber>;
|
|
1277
|
+
opacity: z.ZodDefault<z.ZodNumber>;
|
|
1278
|
+
}, "strict", z.ZodTypeAny, {
|
|
1279
|
+
opacity: number;
|
|
1280
|
+
blur: number;
|
|
1281
|
+
offsetX: number;
|
|
1282
|
+
offsetY: number;
|
|
1283
|
+
color?: string | undefined;
|
|
1284
|
+
}, {
|
|
1285
|
+
color?: string | undefined;
|
|
1286
|
+
opacity?: number | undefined;
|
|
1287
|
+
blur?: number | undefined;
|
|
1288
|
+
offsetX?: number | undefined;
|
|
1289
|
+
offsetY?: number | undefined;
|
|
1290
|
+
}>>;
|
|
1245
1291
|
}, "strict", z.ZodTypeAny, {
|
|
1246
1292
|
type: "flow-node";
|
|
1247
1293
|
id: string;
|
|
1248
|
-
shape: "box" | "rounded-box" | "diamond" | "circle" | "pill" | "cylinder" | "parallelogram";
|
|
1294
|
+
shape: "box" | "rounded-box" | "diamond" | "circle" | "pill" | "cylinder" | "parallelogram" | "hexagon";
|
|
1249
1295
|
label: string;
|
|
1296
|
+
fillOpacity: number;
|
|
1250
1297
|
opacity: number;
|
|
1298
|
+
badgePosition: "top" | "inside-top";
|
|
1299
|
+
width?: number | undefined;
|
|
1300
|
+
height?: number | undefined;
|
|
1251
1301
|
sublabel?: string | undefined;
|
|
1252
1302
|
sublabelColor?: string | undefined;
|
|
1303
|
+
sublabel2?: string | undefined;
|
|
1304
|
+
sublabel2Color?: string | undefined;
|
|
1305
|
+
sublabel2FontSize?: number | undefined;
|
|
1253
1306
|
labelColor?: string | undefined;
|
|
1254
1307
|
labelFontSize?: number | undefined;
|
|
1255
1308
|
color?: string | undefined;
|
|
1256
1309
|
borderColor?: string | undefined;
|
|
1257
1310
|
borderWidth?: number | undefined;
|
|
1258
1311
|
cornerRadius?: number | undefined;
|
|
1259
|
-
|
|
1260
|
-
|
|
1312
|
+
badgeText?: string | undefined;
|
|
1313
|
+
badgeColor?: string | undefined;
|
|
1314
|
+
badgeBackground?: string | undefined;
|
|
1315
|
+
shadow?: {
|
|
1316
|
+
opacity: number;
|
|
1317
|
+
blur: number;
|
|
1318
|
+
offsetX: number;
|
|
1319
|
+
offsetY: number;
|
|
1320
|
+
color?: string | undefined;
|
|
1321
|
+
} | undefined;
|
|
1261
1322
|
}, {
|
|
1262
1323
|
type: "flow-node";
|
|
1263
1324
|
id: string;
|
|
1264
|
-
shape: "box" | "rounded-box" | "diamond" | "circle" | "pill" | "cylinder" | "parallelogram";
|
|
1265
1325
|
label: string;
|
|
1326
|
+
width?: number | undefined;
|
|
1327
|
+
height?: number | undefined;
|
|
1328
|
+
shape?: "box" | "rounded-box" | "diamond" | "circle" | "pill" | "cylinder" | "parallelogram" | "hexagon" | undefined;
|
|
1266
1329
|
sublabel?: string | undefined;
|
|
1267
1330
|
sublabelColor?: string | undefined;
|
|
1331
|
+
sublabel2?: string | undefined;
|
|
1332
|
+
sublabel2Color?: string | undefined;
|
|
1333
|
+
sublabel2FontSize?: number | undefined;
|
|
1268
1334
|
labelColor?: string | undefined;
|
|
1269
1335
|
labelFontSize?: number | undefined;
|
|
1270
1336
|
color?: string | undefined;
|
|
1271
1337
|
borderColor?: string | undefined;
|
|
1272
1338
|
borderWidth?: number | undefined;
|
|
1273
1339
|
cornerRadius?: number | undefined;
|
|
1274
|
-
|
|
1275
|
-
height?: number | undefined;
|
|
1340
|
+
fillOpacity?: number | undefined;
|
|
1276
1341
|
opacity?: number | undefined;
|
|
1342
|
+
badgeText?: string | undefined;
|
|
1343
|
+
badgeColor?: string | undefined;
|
|
1344
|
+
badgeBackground?: string | undefined;
|
|
1345
|
+
badgePosition?: "top" | "inside-top" | undefined;
|
|
1346
|
+
shadow?: {
|
|
1347
|
+
color?: string | undefined;
|
|
1348
|
+
opacity?: number | undefined;
|
|
1349
|
+
blur?: number | undefined;
|
|
1350
|
+
offsetX?: number | undefined;
|
|
1351
|
+
offsetY?: number | undefined;
|
|
1352
|
+
} | undefined;
|
|
1277
1353
|
}>;
|
|
1278
1354
|
declare const connectionElementSchema: z.ZodObject<{
|
|
1279
1355
|
type: z.ZodLiteral<"connection">;
|
|
1280
1356
|
from: z.ZodString;
|
|
1281
1357
|
to: z.ZodString;
|
|
1282
1358
|
style: z.ZodDefault<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
1359
|
+
strokeStyle: z.ZodDefault<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
1283
1360
|
arrow: z.ZodDefault<z.ZodEnum<["end", "start", "both", "none"]>>;
|
|
1284
1361
|
label: z.ZodOptional<z.ZodString>;
|
|
1285
1362
|
labelPosition: z.ZodDefault<z.ZodEnum<["start", "middle", "end"]>>;
|
|
1286
|
-
color: z.ZodOptional<z.ZodString
|
|
1363
|
+
color: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1287
1364
|
width: z.ZodOptional<z.ZodNumber>;
|
|
1365
|
+
strokeWidth: z.ZodDefault<z.ZodNumber>;
|
|
1288
1366
|
arrowSize: z.ZodOptional<z.ZodNumber>;
|
|
1289
1367
|
opacity: z.ZodDefault<z.ZodNumber>;
|
|
1368
|
+
routing: z.ZodDefault<z.ZodEnum<["auto", "orthogonal", "curve", "arc"]>>;
|
|
1369
|
+
tension: z.ZodDefault<z.ZodNumber>;
|
|
1290
1370
|
}, "strict", z.ZodTypeAny, {
|
|
1291
1371
|
type: "connection";
|
|
1292
1372
|
opacity: number;
|
|
1293
1373
|
from: string;
|
|
1294
1374
|
to: string;
|
|
1295
1375
|
style: "solid" | "dashed" | "dotted";
|
|
1376
|
+
strokeStyle: "solid" | "dashed" | "dotted";
|
|
1296
1377
|
arrow: "end" | "start" | "both" | "none";
|
|
1297
1378
|
labelPosition: "end" | "start" | "middle";
|
|
1379
|
+
strokeWidth: number;
|
|
1380
|
+
routing: "auto" | "orthogonal" | "curve" | "arc";
|
|
1381
|
+
tension: number;
|
|
1382
|
+
width?: number | undefined;
|
|
1298
1383
|
label?: string | undefined;
|
|
1299
1384
|
color?: string | undefined;
|
|
1300
|
-
width?: number | undefined;
|
|
1301
1385
|
arrowSize?: number | undefined;
|
|
1302
1386
|
}, {
|
|
1303
1387
|
type: "connection";
|
|
1304
1388
|
from: string;
|
|
1305
1389
|
to: string;
|
|
1390
|
+
width?: number | undefined;
|
|
1306
1391
|
label?: string | undefined;
|
|
1307
1392
|
color?: string | undefined;
|
|
1308
|
-
width?: number | undefined;
|
|
1309
1393
|
opacity?: number | undefined;
|
|
1310
1394
|
style?: "solid" | "dashed" | "dotted" | undefined;
|
|
1395
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
1311
1396
|
arrow?: "end" | "start" | "both" | "none" | undefined;
|
|
1312
1397
|
labelPosition?: "end" | "start" | "middle" | undefined;
|
|
1398
|
+
strokeWidth?: number | undefined;
|
|
1313
1399
|
arrowSize?: number | undefined;
|
|
1400
|
+
routing?: "auto" | "orthogonal" | "curve" | "arc" | undefined;
|
|
1401
|
+
tension?: number | undefined;
|
|
1314
1402
|
}>;
|
|
1315
1403
|
declare const codeBlockStyleSchema: z.ZodObject<{
|
|
1316
1404
|
paddingVertical: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
@@ -1521,43 +1609,43 @@ declare const textElementSchema: z.ZodObject<{
|
|
|
1521
1609
|
content: z.ZodString;
|
|
1522
1610
|
style: z.ZodEnum<["heading", "subheading", "body", "caption", "code"]>;
|
|
1523
1611
|
align: z.ZodDefault<z.ZodEnum<["left", "center", "right"]>>;
|
|
1524
|
-
color: z.ZodOptional<z.ZodString
|
|
1612
|
+
color: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1525
1613
|
}, "strict", z.ZodTypeAny, {
|
|
1526
1614
|
type: "text";
|
|
1527
1615
|
id: string;
|
|
1528
|
-
style: "body" | "
|
|
1616
|
+
style: "body" | "heading" | "code" | "subheading" | "caption";
|
|
1529
1617
|
content: string;
|
|
1530
|
-
align: "
|
|
1618
|
+
align: "center" | "left" | "right";
|
|
1531
1619
|
color?: string | undefined;
|
|
1532
1620
|
}, {
|
|
1533
1621
|
type: "text";
|
|
1534
1622
|
id: string;
|
|
1535
|
-
style: "body" | "
|
|
1623
|
+
style: "body" | "heading" | "code" | "subheading" | "caption";
|
|
1536
1624
|
content: string;
|
|
1537
1625
|
color?: string | undefined;
|
|
1538
|
-
align?: "
|
|
1626
|
+
align?: "center" | "left" | "right" | undefined;
|
|
1539
1627
|
}>;
|
|
1540
1628
|
declare const shapeElementSchema: z.ZodObject<{
|
|
1541
1629
|
type: z.ZodLiteral<"shape">;
|
|
1542
1630
|
id: z.ZodString;
|
|
1543
1631
|
shape: z.ZodEnum<["rectangle", "rounded-rectangle", "circle", "ellipse", "line", "arrow"]>;
|
|
1544
|
-
fill: z.ZodOptional<z.ZodString
|
|
1545
|
-
stroke: z.ZodOptional<z.ZodString
|
|
1632
|
+
fill: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1633
|
+
stroke: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1546
1634
|
strokeWidth: z.ZodDefault<z.ZodNumber>;
|
|
1547
1635
|
}, "strict", z.ZodTypeAny, {
|
|
1548
1636
|
type: "shape";
|
|
1549
1637
|
id: string;
|
|
1550
|
-
shape: "circle" | "arrow" | "rectangle" | "rounded-rectangle" | "ellipse"
|
|
1638
|
+
shape: "line" | "circle" | "arrow" | "rectangle" | "rounded-rectangle" | "ellipse";
|
|
1551
1639
|
strokeWidth: number;
|
|
1552
1640
|
fill?: string | undefined;
|
|
1553
1641
|
stroke?: string | undefined;
|
|
1554
1642
|
}, {
|
|
1555
1643
|
type: "shape";
|
|
1556
1644
|
id: string;
|
|
1557
|
-
shape: "circle" | "arrow" | "rectangle" | "rounded-rectangle" | "ellipse"
|
|
1645
|
+
shape: "line" | "circle" | "arrow" | "rectangle" | "rounded-rectangle" | "ellipse";
|
|
1558
1646
|
fill?: string | undefined;
|
|
1559
|
-
stroke?: string | undefined;
|
|
1560
1647
|
strokeWidth?: number | undefined;
|
|
1648
|
+
stroke?: string | undefined;
|
|
1561
1649
|
}>;
|
|
1562
1650
|
declare const imageElementSchema: z.ZodObject<{
|
|
1563
1651
|
type: z.ZodLiteral<"image">;
|
|
@@ -1567,18 +1655,18 @@ declare const imageElementSchema: z.ZodObject<{
|
|
|
1567
1655
|
fit: z.ZodDefault<z.ZodEnum<["contain", "cover", "fill", "none"]>>;
|
|
1568
1656
|
borderRadius: z.ZodDefault<z.ZodNumber>;
|
|
1569
1657
|
}, "strict", z.ZodTypeAny, {
|
|
1658
|
+
fit: "contain" | "cover" | "fill" | "none";
|
|
1570
1659
|
type: "image";
|
|
1571
1660
|
id: string;
|
|
1572
1661
|
src: string;
|
|
1573
|
-
fit: "fill" | "none" | "contain" | "cover";
|
|
1574
1662
|
borderRadius: number;
|
|
1575
1663
|
alt?: string | undefined;
|
|
1576
1664
|
}, {
|
|
1577
1665
|
type: "image";
|
|
1578
1666
|
id: string;
|
|
1579
1667
|
src: string;
|
|
1668
|
+
fit?: "contain" | "cover" | "fill" | "none" | undefined;
|
|
1580
1669
|
alt?: string | undefined;
|
|
1581
|
-
fit?: "fill" | "none" | "contain" | "cover" | undefined;
|
|
1582
1670
|
borderRadius?: number | undefined;
|
|
1583
1671
|
}>;
|
|
1584
1672
|
declare const elementSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -1595,7 +1683,7 @@ declare const elementSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1595
1683
|
type: "card";
|
|
1596
1684
|
id: string;
|
|
1597
1685
|
title: string;
|
|
1598
|
-
tone: "
|
|
1686
|
+
tone: "accent" | "success" | "warning" | "error" | "neutral";
|
|
1599
1687
|
badge?: string | undefined;
|
|
1600
1688
|
metric?: string | undefined;
|
|
1601
1689
|
icon?: string | undefined;
|
|
@@ -1606,92 +1694,161 @@ declare const elementSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1606
1694
|
title: string;
|
|
1607
1695
|
badge?: string | undefined;
|
|
1608
1696
|
metric?: string | undefined;
|
|
1609
|
-
tone?: "
|
|
1697
|
+
tone?: "accent" | "success" | "warning" | "error" | "neutral" | undefined;
|
|
1610
1698
|
icon?: string | undefined;
|
|
1611
1699
|
}>, z.ZodObject<{
|
|
1612
1700
|
type: z.ZodLiteral<"flow-node">;
|
|
1613
1701
|
id: z.ZodString;
|
|
1614
|
-
shape: z.ZodEnum<["box", "rounded-box", "diamond", "circle", "pill", "cylinder", "parallelogram"]
|
|
1702
|
+
shape: z.ZodDefault<z.ZodEnum<["box", "rounded-box", "diamond", "circle", "pill", "cylinder", "parallelogram", "hexagon"]>>;
|
|
1615
1703
|
label: z.ZodString;
|
|
1616
1704
|
sublabel: z.ZodOptional<z.ZodString>;
|
|
1617
|
-
sublabelColor: z.ZodOptional<z.ZodString
|
|
1618
|
-
|
|
1705
|
+
sublabelColor: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1706
|
+
sublabel2: z.ZodOptional<z.ZodString>;
|
|
1707
|
+
sublabel2Color: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1708
|
+
sublabel2FontSize: z.ZodOptional<z.ZodNumber>;
|
|
1709
|
+
labelColor: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1619
1710
|
labelFontSize: z.ZodOptional<z.ZodNumber>;
|
|
1620
|
-
color: z.ZodOptional<z.ZodString
|
|
1621
|
-
borderColor: z.ZodOptional<z.ZodString
|
|
1711
|
+
color: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1712
|
+
borderColor: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1622
1713
|
borderWidth: z.ZodOptional<z.ZodNumber>;
|
|
1623
1714
|
cornerRadius: z.ZodOptional<z.ZodNumber>;
|
|
1624
1715
|
width: z.ZodOptional<z.ZodNumber>;
|
|
1625
1716
|
height: z.ZodOptional<z.ZodNumber>;
|
|
1717
|
+
fillOpacity: z.ZodDefault<z.ZodNumber>;
|
|
1626
1718
|
opacity: z.ZodDefault<z.ZodNumber>;
|
|
1719
|
+
badgeText: z.ZodOptional<z.ZodString>;
|
|
1720
|
+
badgeColor: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1721
|
+
badgeBackground: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1722
|
+
badgePosition: z.ZodDefault<z.ZodEnum<["top", "inside-top"]>>;
|
|
1723
|
+
shadow: z.ZodOptional<z.ZodObject<{
|
|
1724
|
+
color: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1725
|
+
blur: z.ZodDefault<z.ZodNumber>;
|
|
1726
|
+
offsetX: z.ZodDefault<z.ZodNumber>;
|
|
1727
|
+
offsetY: z.ZodDefault<z.ZodNumber>;
|
|
1728
|
+
opacity: z.ZodDefault<z.ZodNumber>;
|
|
1729
|
+
}, "strict", z.ZodTypeAny, {
|
|
1730
|
+
opacity: number;
|
|
1731
|
+
blur: number;
|
|
1732
|
+
offsetX: number;
|
|
1733
|
+
offsetY: number;
|
|
1734
|
+
color?: string | undefined;
|
|
1735
|
+
}, {
|
|
1736
|
+
color?: string | undefined;
|
|
1737
|
+
opacity?: number | undefined;
|
|
1738
|
+
blur?: number | undefined;
|
|
1739
|
+
offsetX?: number | undefined;
|
|
1740
|
+
offsetY?: number | undefined;
|
|
1741
|
+
}>>;
|
|
1627
1742
|
}, "strict", z.ZodTypeAny, {
|
|
1628
1743
|
type: "flow-node";
|
|
1629
1744
|
id: string;
|
|
1630
|
-
shape: "box" | "rounded-box" | "diamond" | "circle" | "pill" | "cylinder" | "parallelogram";
|
|
1745
|
+
shape: "box" | "rounded-box" | "diamond" | "circle" | "pill" | "cylinder" | "parallelogram" | "hexagon";
|
|
1631
1746
|
label: string;
|
|
1747
|
+
fillOpacity: number;
|
|
1632
1748
|
opacity: number;
|
|
1749
|
+
badgePosition: "top" | "inside-top";
|
|
1750
|
+
width?: number | undefined;
|
|
1751
|
+
height?: number | undefined;
|
|
1633
1752
|
sublabel?: string | undefined;
|
|
1634
1753
|
sublabelColor?: string | undefined;
|
|
1754
|
+
sublabel2?: string | undefined;
|
|
1755
|
+
sublabel2Color?: string | undefined;
|
|
1756
|
+
sublabel2FontSize?: number | undefined;
|
|
1635
1757
|
labelColor?: string | undefined;
|
|
1636
1758
|
labelFontSize?: number | undefined;
|
|
1637
1759
|
color?: string | undefined;
|
|
1638
1760
|
borderColor?: string | undefined;
|
|
1639
1761
|
borderWidth?: number | undefined;
|
|
1640
1762
|
cornerRadius?: number | undefined;
|
|
1641
|
-
|
|
1642
|
-
|
|
1763
|
+
badgeText?: string | undefined;
|
|
1764
|
+
badgeColor?: string | undefined;
|
|
1765
|
+
badgeBackground?: string | undefined;
|
|
1766
|
+
shadow?: {
|
|
1767
|
+
opacity: number;
|
|
1768
|
+
blur: number;
|
|
1769
|
+
offsetX: number;
|
|
1770
|
+
offsetY: number;
|
|
1771
|
+
color?: string | undefined;
|
|
1772
|
+
} | undefined;
|
|
1643
1773
|
}, {
|
|
1644
1774
|
type: "flow-node";
|
|
1645
1775
|
id: string;
|
|
1646
|
-
shape: "box" | "rounded-box" | "diamond" | "circle" | "pill" | "cylinder" | "parallelogram";
|
|
1647
1776
|
label: string;
|
|
1777
|
+
width?: number | undefined;
|
|
1778
|
+
height?: number | undefined;
|
|
1779
|
+
shape?: "box" | "rounded-box" | "diamond" | "circle" | "pill" | "cylinder" | "parallelogram" | "hexagon" | undefined;
|
|
1648
1780
|
sublabel?: string | undefined;
|
|
1649
1781
|
sublabelColor?: string | undefined;
|
|
1782
|
+
sublabel2?: string | undefined;
|
|
1783
|
+
sublabel2Color?: string | undefined;
|
|
1784
|
+
sublabel2FontSize?: number | undefined;
|
|
1650
1785
|
labelColor?: string | undefined;
|
|
1651
1786
|
labelFontSize?: number | undefined;
|
|
1652
1787
|
color?: string | undefined;
|
|
1653
1788
|
borderColor?: string | undefined;
|
|
1654
1789
|
borderWidth?: number | undefined;
|
|
1655
1790
|
cornerRadius?: number | undefined;
|
|
1656
|
-
|
|
1657
|
-
height?: number | undefined;
|
|
1791
|
+
fillOpacity?: number | undefined;
|
|
1658
1792
|
opacity?: number | undefined;
|
|
1793
|
+
badgeText?: string | undefined;
|
|
1794
|
+
badgeColor?: string | undefined;
|
|
1795
|
+
badgeBackground?: string | undefined;
|
|
1796
|
+
badgePosition?: "top" | "inside-top" | undefined;
|
|
1797
|
+
shadow?: {
|
|
1798
|
+
color?: string | undefined;
|
|
1799
|
+
opacity?: number | undefined;
|
|
1800
|
+
blur?: number | undefined;
|
|
1801
|
+
offsetX?: number | undefined;
|
|
1802
|
+
offsetY?: number | undefined;
|
|
1803
|
+
} | undefined;
|
|
1659
1804
|
}>, z.ZodObject<{
|
|
1660
1805
|
type: z.ZodLiteral<"connection">;
|
|
1661
1806
|
from: z.ZodString;
|
|
1662
1807
|
to: z.ZodString;
|
|
1663
1808
|
style: z.ZodDefault<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
1809
|
+
strokeStyle: z.ZodDefault<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
1664
1810
|
arrow: z.ZodDefault<z.ZodEnum<["end", "start", "both", "none"]>>;
|
|
1665
1811
|
label: z.ZodOptional<z.ZodString>;
|
|
1666
1812
|
labelPosition: z.ZodDefault<z.ZodEnum<["start", "middle", "end"]>>;
|
|
1667
|
-
color: z.ZodOptional<z.ZodString
|
|
1813
|
+
color: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1668
1814
|
width: z.ZodOptional<z.ZodNumber>;
|
|
1815
|
+
strokeWidth: z.ZodDefault<z.ZodNumber>;
|
|
1669
1816
|
arrowSize: z.ZodOptional<z.ZodNumber>;
|
|
1670
1817
|
opacity: z.ZodDefault<z.ZodNumber>;
|
|
1818
|
+
routing: z.ZodDefault<z.ZodEnum<["auto", "orthogonal", "curve", "arc"]>>;
|
|
1819
|
+
tension: z.ZodDefault<z.ZodNumber>;
|
|
1671
1820
|
}, "strict", z.ZodTypeAny, {
|
|
1672
1821
|
type: "connection";
|
|
1673
1822
|
opacity: number;
|
|
1674
1823
|
from: string;
|
|
1675
1824
|
to: string;
|
|
1676
1825
|
style: "solid" | "dashed" | "dotted";
|
|
1826
|
+
strokeStyle: "solid" | "dashed" | "dotted";
|
|
1677
1827
|
arrow: "end" | "start" | "both" | "none";
|
|
1678
1828
|
labelPosition: "end" | "start" | "middle";
|
|
1829
|
+
strokeWidth: number;
|
|
1830
|
+
routing: "auto" | "orthogonal" | "curve" | "arc";
|
|
1831
|
+
tension: number;
|
|
1832
|
+
width?: number | undefined;
|
|
1679
1833
|
label?: string | undefined;
|
|
1680
1834
|
color?: string | undefined;
|
|
1681
|
-
width?: number | undefined;
|
|
1682
1835
|
arrowSize?: number | undefined;
|
|
1683
1836
|
}, {
|
|
1684
1837
|
type: "connection";
|
|
1685
1838
|
from: string;
|
|
1686
1839
|
to: string;
|
|
1840
|
+
width?: number | undefined;
|
|
1687
1841
|
label?: string | undefined;
|
|
1688
1842
|
color?: string | undefined;
|
|
1689
|
-
width?: number | undefined;
|
|
1690
1843
|
opacity?: number | undefined;
|
|
1691
1844
|
style?: "solid" | "dashed" | "dotted" | undefined;
|
|
1845
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
1692
1846
|
arrow?: "end" | "start" | "both" | "none" | undefined;
|
|
1693
1847
|
labelPosition?: "end" | "start" | "middle" | undefined;
|
|
1848
|
+
strokeWidth?: number | undefined;
|
|
1694
1849
|
arrowSize?: number | undefined;
|
|
1850
|
+
routing?: "auto" | "orthogonal" | "curve" | "arc" | undefined;
|
|
1851
|
+
tension?: number | undefined;
|
|
1695
1852
|
}>, z.ZodObject<{
|
|
1696
1853
|
type: z.ZodLiteral<"code-block">;
|
|
1697
1854
|
id: z.ZodString;
|
|
@@ -1865,42 +2022,42 @@ declare const elementSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1865
2022
|
content: z.ZodString;
|
|
1866
2023
|
style: z.ZodEnum<["heading", "subheading", "body", "caption", "code"]>;
|
|
1867
2024
|
align: z.ZodDefault<z.ZodEnum<["left", "center", "right"]>>;
|
|
1868
|
-
color: z.ZodOptional<z.ZodString
|
|
2025
|
+
color: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1869
2026
|
}, "strict", z.ZodTypeAny, {
|
|
1870
2027
|
type: "text";
|
|
1871
2028
|
id: string;
|
|
1872
|
-
style: "body" | "
|
|
2029
|
+
style: "body" | "heading" | "code" | "subheading" | "caption";
|
|
1873
2030
|
content: string;
|
|
1874
|
-
align: "
|
|
2031
|
+
align: "center" | "left" | "right";
|
|
1875
2032
|
color?: string | undefined;
|
|
1876
2033
|
}, {
|
|
1877
2034
|
type: "text";
|
|
1878
2035
|
id: string;
|
|
1879
|
-
style: "body" | "
|
|
2036
|
+
style: "body" | "heading" | "code" | "subheading" | "caption";
|
|
1880
2037
|
content: string;
|
|
1881
2038
|
color?: string | undefined;
|
|
1882
|
-
align?: "
|
|
2039
|
+
align?: "center" | "left" | "right" | undefined;
|
|
1883
2040
|
}>, z.ZodObject<{
|
|
1884
2041
|
type: z.ZodLiteral<"shape">;
|
|
1885
2042
|
id: z.ZodString;
|
|
1886
2043
|
shape: z.ZodEnum<["rectangle", "rounded-rectangle", "circle", "ellipse", "line", "arrow"]>;
|
|
1887
|
-
fill: z.ZodOptional<z.ZodString
|
|
1888
|
-
stroke: z.ZodOptional<z.ZodString
|
|
2044
|
+
fill: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2045
|
+
stroke: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1889
2046
|
strokeWidth: z.ZodDefault<z.ZodNumber>;
|
|
1890
2047
|
}, "strict", z.ZodTypeAny, {
|
|
1891
2048
|
type: "shape";
|
|
1892
2049
|
id: string;
|
|
1893
|
-
shape: "circle" | "arrow" | "rectangle" | "rounded-rectangle" | "ellipse"
|
|
2050
|
+
shape: "line" | "circle" | "arrow" | "rectangle" | "rounded-rectangle" | "ellipse";
|
|
1894
2051
|
strokeWidth: number;
|
|
1895
2052
|
fill?: string | undefined;
|
|
1896
2053
|
stroke?: string | undefined;
|
|
1897
2054
|
}, {
|
|
1898
2055
|
type: "shape";
|
|
1899
2056
|
id: string;
|
|
1900
|
-
shape: "circle" | "arrow" | "rectangle" | "rounded-rectangle" | "ellipse"
|
|
2057
|
+
shape: "line" | "circle" | "arrow" | "rectangle" | "rounded-rectangle" | "ellipse";
|
|
1901
2058
|
fill?: string | undefined;
|
|
1902
|
-
stroke?: string | undefined;
|
|
1903
2059
|
strokeWidth?: number | undefined;
|
|
2060
|
+
stroke?: string | undefined;
|
|
1904
2061
|
}>, z.ZodObject<{
|
|
1905
2062
|
type: z.ZodLiteral<"image">;
|
|
1906
2063
|
id: z.ZodString;
|
|
@@ -1909,18 +2066,18 @@ declare const elementSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1909
2066
|
fit: z.ZodDefault<z.ZodEnum<["contain", "cover", "fill", "none"]>>;
|
|
1910
2067
|
borderRadius: z.ZodDefault<z.ZodNumber>;
|
|
1911
2068
|
}, "strict", z.ZodTypeAny, {
|
|
2069
|
+
fit: "contain" | "cover" | "fill" | "none";
|
|
1912
2070
|
type: "image";
|
|
1913
2071
|
id: string;
|
|
1914
2072
|
src: string;
|
|
1915
|
-
fit: "fill" | "none" | "contain" | "cover";
|
|
1916
2073
|
borderRadius: number;
|
|
1917
2074
|
alt?: string | undefined;
|
|
1918
2075
|
}, {
|
|
1919
2076
|
type: "image";
|
|
1920
2077
|
id: string;
|
|
1921
2078
|
src: string;
|
|
2079
|
+
fit?: "contain" | "cover" | "fill" | "none" | undefined;
|
|
1922
2080
|
alt?: string | undefined;
|
|
1923
|
-
fit?: "fill" | "none" | "contain" | "cover" | undefined;
|
|
1924
2081
|
borderRadius?: number | undefined;
|
|
1925
2082
|
}>]>;
|
|
1926
2083
|
declare const autoLayoutConfigSchema: z.ZodObject<{
|
|
@@ -1931,6 +2088,25 @@ declare const autoLayoutConfigSchema: z.ZodObject<{
|
|
|
1931
2088
|
rankSpacing: z.ZodDefault<z.ZodNumber>;
|
|
1932
2089
|
edgeRouting: z.ZodDefault<z.ZodEnum<["orthogonal", "polyline", "spline"]>>;
|
|
1933
2090
|
aspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
2091
|
+
/** ID of the root node for radial layout. Only relevant when algorithm is 'radial'. */
|
|
2092
|
+
radialRoot: z.ZodOptional<z.ZodString>;
|
|
2093
|
+
/** Fixed radius in pixels for radial layout. Only relevant when algorithm is 'radial'. */
|
|
2094
|
+
radialRadius: z.ZodOptional<z.ZodNumber>;
|
|
2095
|
+
/** Compaction strategy for radial layout. Only relevant when algorithm is 'radial'. */
|
|
2096
|
+
radialCompaction: z.ZodOptional<z.ZodEnum<["none", "radial", "wedge"]>>;
|
|
2097
|
+
/** Sort strategy for radial layout node ordering. Only relevant when algorithm is 'radial'. */
|
|
2098
|
+
radialSortBy: z.ZodOptional<z.ZodEnum<["id", "connections"]>>;
|
|
2099
|
+
/** Explicit center used by curve/arc connection routing. */
|
|
2100
|
+
diagramCenter: z.ZodOptional<z.ZodObject<{
|
|
2101
|
+
x: z.ZodNumber;
|
|
2102
|
+
y: z.ZodNumber;
|
|
2103
|
+
}, "strict", z.ZodTypeAny, {
|
|
2104
|
+
x: number;
|
|
2105
|
+
y: number;
|
|
2106
|
+
}, {
|
|
2107
|
+
x: number;
|
|
2108
|
+
y: number;
|
|
2109
|
+
}>>;
|
|
1934
2110
|
}, "strict", z.ZodTypeAny, {
|
|
1935
2111
|
mode: "auto";
|
|
1936
2112
|
direction: "TB" | "BT" | "LR" | "RL";
|
|
@@ -1938,15 +2114,31 @@ declare const autoLayoutConfigSchema: z.ZodObject<{
|
|
|
1938
2114
|
nodeSpacing: number;
|
|
1939
2115
|
rankSpacing: number;
|
|
1940
2116
|
edgeRouting: "orthogonal" | "polyline" | "spline";
|
|
2117
|
+
diagramCenter?: {
|
|
2118
|
+
x: number;
|
|
2119
|
+
y: number;
|
|
2120
|
+
} | undefined;
|
|
1941
2121
|
aspectRatio?: number | undefined;
|
|
2122
|
+
radialRoot?: string | undefined;
|
|
2123
|
+
radialRadius?: number | undefined;
|
|
2124
|
+
radialCompaction?: "none" | "radial" | "wedge" | undefined;
|
|
2125
|
+
radialSortBy?: "id" | "connections" | undefined;
|
|
1942
2126
|
}, {
|
|
1943
2127
|
mode: "auto";
|
|
1944
2128
|
direction?: "TB" | "BT" | "LR" | "RL" | undefined;
|
|
2129
|
+
diagramCenter?: {
|
|
2130
|
+
x: number;
|
|
2131
|
+
y: number;
|
|
2132
|
+
} | undefined;
|
|
1945
2133
|
algorithm?: "box" | "layered" | "stress" | "force" | "radial" | undefined;
|
|
1946
2134
|
nodeSpacing?: number | undefined;
|
|
1947
2135
|
rankSpacing?: number | undefined;
|
|
1948
2136
|
edgeRouting?: "orthogonal" | "polyline" | "spline" | undefined;
|
|
1949
2137
|
aspectRatio?: number | undefined;
|
|
2138
|
+
radialRoot?: string | undefined;
|
|
2139
|
+
radialRadius?: number | undefined;
|
|
2140
|
+
radialCompaction?: "none" | "radial" | "wedge" | undefined;
|
|
2141
|
+
radialSortBy?: "id" | "connections" | undefined;
|
|
1950
2142
|
}>;
|
|
1951
2143
|
declare const gridLayoutConfigSchema: z.ZodObject<{
|
|
1952
2144
|
mode: z.ZodLiteral<"grid">;
|
|
@@ -1955,16 +2147,35 @@ declare const gridLayoutConfigSchema: z.ZodObject<{
|
|
|
1955
2147
|
cardMinHeight: z.ZodOptional<z.ZodNumber>;
|
|
1956
2148
|
cardMaxHeight: z.ZodOptional<z.ZodNumber>;
|
|
1957
2149
|
equalHeight: z.ZodDefault<z.ZodBoolean>;
|
|
2150
|
+
/** Explicit center used by curve/arc connection routing. */
|
|
2151
|
+
diagramCenter: z.ZodOptional<z.ZodObject<{
|
|
2152
|
+
x: z.ZodNumber;
|
|
2153
|
+
y: z.ZodNumber;
|
|
2154
|
+
}, "strict", z.ZodTypeAny, {
|
|
2155
|
+
x: number;
|
|
2156
|
+
y: number;
|
|
2157
|
+
}, {
|
|
2158
|
+
x: number;
|
|
2159
|
+
y: number;
|
|
2160
|
+
}>>;
|
|
1958
2161
|
}, "strict", z.ZodTypeAny, {
|
|
1959
2162
|
mode: "grid";
|
|
1960
2163
|
gap: number;
|
|
1961
2164
|
columns: number;
|
|
1962
2165
|
equalHeight: boolean;
|
|
2166
|
+
diagramCenter?: {
|
|
2167
|
+
x: number;
|
|
2168
|
+
y: number;
|
|
2169
|
+
} | undefined;
|
|
1963
2170
|
cardMinHeight?: number | undefined;
|
|
1964
2171
|
cardMaxHeight?: number | undefined;
|
|
1965
2172
|
}, {
|
|
1966
2173
|
mode: "grid";
|
|
1967
2174
|
gap?: number | undefined;
|
|
2175
|
+
diagramCenter?: {
|
|
2176
|
+
x: number;
|
|
2177
|
+
y: number;
|
|
2178
|
+
} | undefined;
|
|
1968
2179
|
columns?: number | undefined;
|
|
1969
2180
|
cardMinHeight?: number | undefined;
|
|
1970
2181
|
cardMaxHeight?: number | undefined;
|
|
@@ -1975,16 +2186,35 @@ declare const stackLayoutConfigSchema: z.ZodObject<{
|
|
|
1975
2186
|
direction: z.ZodDefault<z.ZodEnum<["vertical", "horizontal"]>>;
|
|
1976
2187
|
gap: z.ZodDefault<z.ZodNumber>;
|
|
1977
2188
|
alignment: z.ZodDefault<z.ZodEnum<["start", "center", "end", "stretch"]>>;
|
|
2189
|
+
/** Explicit center used by curve/arc connection routing. */
|
|
2190
|
+
diagramCenter: z.ZodOptional<z.ZodObject<{
|
|
2191
|
+
x: z.ZodNumber;
|
|
2192
|
+
y: z.ZodNumber;
|
|
2193
|
+
}, "strict", z.ZodTypeAny, {
|
|
2194
|
+
x: number;
|
|
2195
|
+
y: number;
|
|
2196
|
+
}, {
|
|
2197
|
+
x: number;
|
|
2198
|
+
y: number;
|
|
2199
|
+
}>>;
|
|
1978
2200
|
}, "strict", z.ZodTypeAny, {
|
|
1979
2201
|
mode: "stack";
|
|
1980
2202
|
direction: "vertical" | "horizontal";
|
|
1981
2203
|
gap: number;
|
|
1982
2204
|
alignment: "end" | "start" | "center" | "stretch";
|
|
2205
|
+
diagramCenter?: {
|
|
2206
|
+
x: number;
|
|
2207
|
+
y: number;
|
|
2208
|
+
} | undefined;
|
|
1983
2209
|
}, {
|
|
1984
2210
|
mode: "stack";
|
|
1985
2211
|
direction?: "vertical" | "horizontal" | undefined;
|
|
1986
2212
|
gap?: number | undefined;
|
|
1987
2213
|
alignment?: "end" | "start" | "center" | "stretch" | undefined;
|
|
2214
|
+
diagramCenter?: {
|
|
2215
|
+
x: number;
|
|
2216
|
+
y: number;
|
|
2217
|
+
} | undefined;
|
|
1988
2218
|
}>;
|
|
1989
2219
|
declare const manualLayoutConfigSchema: z.ZodObject<{
|
|
1990
2220
|
mode: z.ZodLiteral<"manual">;
|
|
@@ -2004,6 +2234,17 @@ declare const manualLayoutConfigSchema: z.ZodObject<{
|
|
|
2004
2234
|
width?: number | undefined;
|
|
2005
2235
|
height?: number | undefined;
|
|
2006
2236
|
}>>>;
|
|
2237
|
+
/** Explicit center used by curve/arc connection routing. */
|
|
2238
|
+
diagramCenter: z.ZodOptional<z.ZodObject<{
|
|
2239
|
+
x: z.ZodNumber;
|
|
2240
|
+
y: z.ZodNumber;
|
|
2241
|
+
}, "strict", z.ZodTypeAny, {
|
|
2242
|
+
x: number;
|
|
2243
|
+
y: number;
|
|
2244
|
+
}, {
|
|
2245
|
+
x: number;
|
|
2246
|
+
y: number;
|
|
2247
|
+
}>>;
|
|
2007
2248
|
}, "strict", z.ZodTypeAny, {
|
|
2008
2249
|
mode: "manual";
|
|
2009
2250
|
positions: Record<string, {
|
|
@@ -2012,8 +2253,16 @@ declare const manualLayoutConfigSchema: z.ZodObject<{
|
|
|
2012
2253
|
width?: number | undefined;
|
|
2013
2254
|
height?: number | undefined;
|
|
2014
2255
|
}>;
|
|
2256
|
+
diagramCenter?: {
|
|
2257
|
+
x: number;
|
|
2258
|
+
y: number;
|
|
2259
|
+
} | undefined;
|
|
2015
2260
|
}, {
|
|
2016
2261
|
mode: "manual";
|
|
2262
|
+
diagramCenter?: {
|
|
2263
|
+
x: number;
|
|
2264
|
+
y: number;
|
|
2265
|
+
} | undefined;
|
|
2017
2266
|
positions?: Record<string, {
|
|
2018
2267
|
x: number;
|
|
2019
2268
|
y: number;
|
|
@@ -2029,6 +2278,25 @@ declare const layoutConfigSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
|
2029
2278
|
rankSpacing: z.ZodDefault<z.ZodNumber>;
|
|
2030
2279
|
edgeRouting: z.ZodDefault<z.ZodEnum<["orthogonal", "polyline", "spline"]>>;
|
|
2031
2280
|
aspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
2281
|
+
/** ID of the root node for radial layout. Only relevant when algorithm is 'radial'. */
|
|
2282
|
+
radialRoot: z.ZodOptional<z.ZodString>;
|
|
2283
|
+
/** Fixed radius in pixels for radial layout. Only relevant when algorithm is 'radial'. */
|
|
2284
|
+
radialRadius: z.ZodOptional<z.ZodNumber>;
|
|
2285
|
+
/** Compaction strategy for radial layout. Only relevant when algorithm is 'radial'. */
|
|
2286
|
+
radialCompaction: z.ZodOptional<z.ZodEnum<["none", "radial", "wedge"]>>;
|
|
2287
|
+
/** Sort strategy for radial layout node ordering. Only relevant when algorithm is 'radial'. */
|
|
2288
|
+
radialSortBy: z.ZodOptional<z.ZodEnum<["id", "connections"]>>;
|
|
2289
|
+
/** Explicit center used by curve/arc connection routing. */
|
|
2290
|
+
diagramCenter: z.ZodOptional<z.ZodObject<{
|
|
2291
|
+
x: z.ZodNumber;
|
|
2292
|
+
y: z.ZodNumber;
|
|
2293
|
+
}, "strict", z.ZodTypeAny, {
|
|
2294
|
+
x: number;
|
|
2295
|
+
y: number;
|
|
2296
|
+
}, {
|
|
2297
|
+
x: number;
|
|
2298
|
+
y: number;
|
|
2299
|
+
}>>;
|
|
2032
2300
|
}, "strict", z.ZodTypeAny, {
|
|
2033
2301
|
mode: "auto";
|
|
2034
2302
|
direction: "TB" | "BT" | "LR" | "RL";
|
|
@@ -2036,15 +2304,31 @@ declare const layoutConfigSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
|
2036
2304
|
nodeSpacing: number;
|
|
2037
2305
|
rankSpacing: number;
|
|
2038
2306
|
edgeRouting: "orthogonal" | "polyline" | "spline";
|
|
2307
|
+
diagramCenter?: {
|
|
2308
|
+
x: number;
|
|
2309
|
+
y: number;
|
|
2310
|
+
} | undefined;
|
|
2039
2311
|
aspectRatio?: number | undefined;
|
|
2312
|
+
radialRoot?: string | undefined;
|
|
2313
|
+
radialRadius?: number | undefined;
|
|
2314
|
+
radialCompaction?: "none" | "radial" | "wedge" | undefined;
|
|
2315
|
+
radialSortBy?: "id" | "connections" | undefined;
|
|
2040
2316
|
}, {
|
|
2041
2317
|
mode: "auto";
|
|
2042
2318
|
direction?: "TB" | "BT" | "LR" | "RL" | undefined;
|
|
2319
|
+
diagramCenter?: {
|
|
2320
|
+
x: number;
|
|
2321
|
+
y: number;
|
|
2322
|
+
} | undefined;
|
|
2043
2323
|
algorithm?: "box" | "layered" | "stress" | "force" | "radial" | undefined;
|
|
2044
2324
|
nodeSpacing?: number | undefined;
|
|
2045
2325
|
rankSpacing?: number | undefined;
|
|
2046
2326
|
edgeRouting?: "orthogonal" | "polyline" | "spline" | undefined;
|
|
2047
2327
|
aspectRatio?: number | undefined;
|
|
2328
|
+
radialRoot?: string | undefined;
|
|
2329
|
+
radialRadius?: number | undefined;
|
|
2330
|
+
radialCompaction?: "none" | "radial" | "wedge" | undefined;
|
|
2331
|
+
radialSortBy?: "id" | "connections" | undefined;
|
|
2048
2332
|
}>, z.ZodObject<{
|
|
2049
2333
|
mode: z.ZodLiteral<"grid">;
|
|
2050
2334
|
columns: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2052,16 +2336,35 @@ declare const layoutConfigSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
|
2052
2336
|
cardMinHeight: z.ZodOptional<z.ZodNumber>;
|
|
2053
2337
|
cardMaxHeight: z.ZodOptional<z.ZodNumber>;
|
|
2054
2338
|
equalHeight: z.ZodDefault<z.ZodBoolean>;
|
|
2339
|
+
/** Explicit center used by curve/arc connection routing. */
|
|
2340
|
+
diagramCenter: z.ZodOptional<z.ZodObject<{
|
|
2341
|
+
x: z.ZodNumber;
|
|
2342
|
+
y: z.ZodNumber;
|
|
2343
|
+
}, "strict", z.ZodTypeAny, {
|
|
2344
|
+
x: number;
|
|
2345
|
+
y: number;
|
|
2346
|
+
}, {
|
|
2347
|
+
x: number;
|
|
2348
|
+
y: number;
|
|
2349
|
+
}>>;
|
|
2055
2350
|
}, "strict", z.ZodTypeAny, {
|
|
2056
2351
|
mode: "grid";
|
|
2057
2352
|
gap: number;
|
|
2058
2353
|
columns: number;
|
|
2059
2354
|
equalHeight: boolean;
|
|
2355
|
+
diagramCenter?: {
|
|
2356
|
+
x: number;
|
|
2357
|
+
y: number;
|
|
2358
|
+
} | undefined;
|
|
2060
2359
|
cardMinHeight?: number | undefined;
|
|
2061
2360
|
cardMaxHeight?: number | undefined;
|
|
2062
2361
|
}, {
|
|
2063
2362
|
mode: "grid";
|
|
2064
2363
|
gap?: number | undefined;
|
|
2364
|
+
diagramCenter?: {
|
|
2365
|
+
x: number;
|
|
2366
|
+
y: number;
|
|
2367
|
+
} | undefined;
|
|
2065
2368
|
columns?: number | undefined;
|
|
2066
2369
|
cardMinHeight?: number | undefined;
|
|
2067
2370
|
cardMaxHeight?: number | undefined;
|
|
@@ -2071,16 +2374,35 @@ declare const layoutConfigSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
|
2071
2374
|
direction: z.ZodDefault<z.ZodEnum<["vertical", "horizontal"]>>;
|
|
2072
2375
|
gap: z.ZodDefault<z.ZodNumber>;
|
|
2073
2376
|
alignment: z.ZodDefault<z.ZodEnum<["start", "center", "end", "stretch"]>>;
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2377
|
+
/** Explicit center used by curve/arc connection routing. */
|
|
2378
|
+
diagramCenter: z.ZodOptional<z.ZodObject<{
|
|
2379
|
+
x: z.ZodNumber;
|
|
2380
|
+
y: z.ZodNumber;
|
|
2381
|
+
}, "strict", z.ZodTypeAny, {
|
|
2382
|
+
x: number;
|
|
2383
|
+
y: number;
|
|
2384
|
+
}, {
|
|
2385
|
+
x: number;
|
|
2386
|
+
y: number;
|
|
2387
|
+
}>>;
|
|
2388
|
+
}, "strict", z.ZodTypeAny, {
|
|
2389
|
+
mode: "stack";
|
|
2390
|
+
direction: "vertical" | "horizontal";
|
|
2391
|
+
gap: number;
|
|
2392
|
+
alignment: "end" | "start" | "center" | "stretch";
|
|
2393
|
+
diagramCenter?: {
|
|
2394
|
+
x: number;
|
|
2395
|
+
y: number;
|
|
2396
|
+
} | undefined;
|
|
2397
|
+
}, {
|
|
2080
2398
|
mode: "stack";
|
|
2081
2399
|
direction?: "vertical" | "horizontal" | undefined;
|
|
2082
2400
|
gap?: number | undefined;
|
|
2083
2401
|
alignment?: "end" | "start" | "center" | "stretch" | undefined;
|
|
2402
|
+
diagramCenter?: {
|
|
2403
|
+
x: number;
|
|
2404
|
+
y: number;
|
|
2405
|
+
} | undefined;
|
|
2084
2406
|
}>, z.ZodObject<{
|
|
2085
2407
|
mode: z.ZodLiteral<"manual">;
|
|
2086
2408
|
positions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -2099,6 +2421,17 @@ declare const layoutConfigSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
|
2099
2421
|
width?: number | undefined;
|
|
2100
2422
|
height?: number | undefined;
|
|
2101
2423
|
}>>>;
|
|
2424
|
+
/** Explicit center used by curve/arc connection routing. */
|
|
2425
|
+
diagramCenter: z.ZodOptional<z.ZodObject<{
|
|
2426
|
+
x: z.ZodNumber;
|
|
2427
|
+
y: z.ZodNumber;
|
|
2428
|
+
}, "strict", z.ZodTypeAny, {
|
|
2429
|
+
x: number;
|
|
2430
|
+
y: number;
|
|
2431
|
+
}, {
|
|
2432
|
+
x: number;
|
|
2433
|
+
y: number;
|
|
2434
|
+
}>>;
|
|
2102
2435
|
}, "strict", z.ZodTypeAny, {
|
|
2103
2436
|
mode: "manual";
|
|
2104
2437
|
positions: Record<string, {
|
|
@@ -2107,8 +2440,16 @@ declare const layoutConfigSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
|
2107
2440
|
width?: number | undefined;
|
|
2108
2441
|
height?: number | undefined;
|
|
2109
2442
|
}>;
|
|
2443
|
+
diagramCenter?: {
|
|
2444
|
+
x: number;
|
|
2445
|
+
y: number;
|
|
2446
|
+
} | undefined;
|
|
2110
2447
|
}, {
|
|
2111
2448
|
mode: "manual";
|
|
2449
|
+
diagramCenter?: {
|
|
2450
|
+
x: number;
|
|
2451
|
+
y: number;
|
|
2452
|
+
} | undefined;
|
|
2112
2453
|
positions?: Record<string, {
|
|
2113
2454
|
x: number;
|
|
2114
2455
|
y: number;
|
|
@@ -2137,7 +2478,7 @@ declare const decoratorSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2137
2478
|
y: z.ZodDefault<z.ZodEnum<["after-header", "before-footer", "custom"]>>;
|
|
2138
2479
|
customY: z.ZodOptional<z.ZodNumber>;
|
|
2139
2480
|
thickness: z.ZodDefault<z.ZodNumber>;
|
|
2140
|
-
colors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2481
|
+
colors: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>;
|
|
2141
2482
|
margin: z.ZodDefault<z.ZodNumber>;
|
|
2142
2483
|
}, "strict", z.ZodTypeAny, {
|
|
2143
2484
|
type: "rainbow-rule";
|
|
@@ -2156,7 +2497,7 @@ declare const decoratorSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2156
2497
|
}>, z.ZodObject<{
|
|
2157
2498
|
type: z.ZodLiteral<"vignette">;
|
|
2158
2499
|
intensity: z.ZodDefault<z.ZodNumber>;
|
|
2159
|
-
color: z.ZodDefault<z.ZodString
|
|
2500
|
+
color: z.ZodDefault<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2160
2501
|
}, "strict", z.ZodTypeAny, {
|
|
2161
2502
|
type: "vignette";
|
|
2162
2503
|
color: string;
|
|
@@ -2172,7 +2513,7 @@ declare const decoratorSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2172
2513
|
angle: z.ZodDefault<z.ZodNumber>;
|
|
2173
2514
|
stops: z.ZodArray<z.ZodObject<{
|
|
2174
2515
|
offset: z.ZodNumber;
|
|
2175
|
-
color: z.ZodString
|
|
2516
|
+
color: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2176
2517
|
}, "strict", z.ZodTypeAny, {
|
|
2177
2518
|
color: string;
|
|
2178
2519
|
offset: number;
|
|
@@ -2198,7 +2539,7 @@ declare const decoratorSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2198
2539
|
type: z.ZodLiteral<"radial">;
|
|
2199
2540
|
stops: z.ZodArray<z.ZodObject<{
|
|
2200
2541
|
offset: z.ZodNumber;
|
|
2201
|
-
color: z.ZodString
|
|
2542
|
+
color: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2202
2543
|
}, "strict", z.ZodTypeAny, {
|
|
2203
2544
|
color: string;
|
|
2204
2545
|
offset: number;
|
|
@@ -2256,39 +2597,39 @@ declare const decoratorSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2256
2597
|
opacity?: number | undefined;
|
|
2257
2598
|
}>]>;
|
|
2258
2599
|
declare const themeInputSchema: z.ZodUnion<[z.ZodEnum<["dark", "light", "dracula", "github-dark", "one-dark", "nord"]>, z.ZodObject<{
|
|
2259
|
-
background: z.ZodString
|
|
2260
|
-
surface: z.ZodString
|
|
2261
|
-
surfaceMuted: z.ZodString
|
|
2262
|
-
surfaceElevated: z.ZodString
|
|
2263
|
-
text: z.ZodString
|
|
2264
|
-
textMuted: z.ZodString
|
|
2265
|
-
textInverse: z.ZodString
|
|
2266
|
-
primary: z.ZodString
|
|
2267
|
-
secondary: z.ZodString
|
|
2268
|
-
accent: z.ZodString
|
|
2269
|
-
success: z.ZodString
|
|
2270
|
-
warning: z.ZodString
|
|
2271
|
-
error: z.ZodString
|
|
2272
|
-
info: z.ZodString
|
|
2273
|
-
border: z.ZodString
|
|
2274
|
-
borderMuted: z.ZodString
|
|
2600
|
+
background: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2601
|
+
surface: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2602
|
+
surfaceMuted: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2603
|
+
surfaceElevated: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2604
|
+
text: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2605
|
+
textMuted: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2606
|
+
textInverse: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2607
|
+
primary: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2608
|
+
secondary: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2609
|
+
accent: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2610
|
+
success: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2611
|
+
warning: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2612
|
+
error: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2613
|
+
info: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2614
|
+
border: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2615
|
+
borderMuted: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2275
2616
|
code: z.ZodObject<{
|
|
2276
|
-
background: z.ZodString
|
|
2277
|
-
text: z.ZodString
|
|
2278
|
-
comment: z.ZodString
|
|
2279
|
-
keyword: z.ZodString
|
|
2280
|
-
string: z.ZodString
|
|
2281
|
-
number: z.ZodString
|
|
2282
|
-
function: z.ZodString
|
|
2283
|
-
variable: z.ZodString
|
|
2284
|
-
operator: z.ZodString
|
|
2285
|
-
punctuation: z.ZodString
|
|
2617
|
+
background: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2618
|
+
text: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2619
|
+
comment: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2620
|
+
keyword: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2621
|
+
string: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2622
|
+
number: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2623
|
+
function: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2624
|
+
variable: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2625
|
+
operator: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2626
|
+
punctuation: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2286
2627
|
}, "strict", z.ZodTypeAny, {
|
|
2287
2628
|
string: string;
|
|
2288
2629
|
number: string;
|
|
2289
2630
|
function: string;
|
|
2290
|
-
text: string;
|
|
2291
2631
|
background: string;
|
|
2632
|
+
text: string;
|
|
2292
2633
|
comment: string;
|
|
2293
2634
|
keyword: string;
|
|
2294
2635
|
variable: string;
|
|
@@ -2298,8 +2639,8 @@ declare const themeInputSchema: z.ZodUnion<[z.ZodEnum<["dark", "light", "dracula
|
|
|
2298
2639
|
string: string;
|
|
2299
2640
|
number: string;
|
|
2300
2641
|
function: string;
|
|
2301
|
-
text: string;
|
|
2302
2642
|
background: string;
|
|
2643
|
+
text: string;
|
|
2303
2644
|
comment: string;
|
|
2304
2645
|
keyword: string;
|
|
2305
2646
|
variable: string;
|
|
@@ -2324,27 +2665,27 @@ declare const themeInputSchema: z.ZodUnion<[z.ZodEnum<["dark", "light", "dracula
|
|
|
2324
2665
|
string: string;
|
|
2325
2666
|
number: string;
|
|
2326
2667
|
function: string;
|
|
2327
|
-
text: string;
|
|
2328
2668
|
background: string;
|
|
2669
|
+
text: string;
|
|
2329
2670
|
comment: string;
|
|
2330
2671
|
keyword: string;
|
|
2331
2672
|
variable: string;
|
|
2332
2673
|
operator: string;
|
|
2333
2674
|
punctuation: string;
|
|
2334
2675
|
};
|
|
2335
|
-
accent: string;
|
|
2336
|
-
success: string;
|
|
2337
|
-
warning: string;
|
|
2338
|
-
error: string;
|
|
2339
|
-
text: string;
|
|
2340
2676
|
background: string;
|
|
2341
2677
|
surface: string;
|
|
2342
2678
|
surfaceMuted: string;
|
|
2343
2679
|
surfaceElevated: string;
|
|
2680
|
+
text: string;
|
|
2344
2681
|
textMuted: string;
|
|
2345
2682
|
textInverse: string;
|
|
2346
2683
|
primary: string;
|
|
2347
2684
|
secondary: string;
|
|
2685
|
+
accent: string;
|
|
2686
|
+
success: string;
|
|
2687
|
+
warning: string;
|
|
2688
|
+
error: string;
|
|
2348
2689
|
info: string;
|
|
2349
2690
|
border: string;
|
|
2350
2691
|
borderMuted: string;
|
|
@@ -2358,36 +2699,800 @@ declare const themeInputSchema: z.ZodUnion<[z.ZodEnum<["dark", "light", "dracula
|
|
|
2358
2699
|
string: string;
|
|
2359
2700
|
number: string;
|
|
2360
2701
|
function: string;
|
|
2702
|
+
background: string;
|
|
2703
|
+
text: string;
|
|
2704
|
+
comment: string;
|
|
2705
|
+
keyword: string;
|
|
2706
|
+
variable: string;
|
|
2707
|
+
operator: string;
|
|
2708
|
+
punctuation: string;
|
|
2709
|
+
};
|
|
2710
|
+
background: string;
|
|
2711
|
+
surface: string;
|
|
2712
|
+
surfaceMuted: string;
|
|
2713
|
+
surfaceElevated: string;
|
|
2714
|
+
text: string;
|
|
2715
|
+
textMuted: string;
|
|
2716
|
+
textInverse: string;
|
|
2717
|
+
primary: string;
|
|
2718
|
+
secondary: string;
|
|
2719
|
+
accent: string;
|
|
2720
|
+
success: string;
|
|
2721
|
+
warning: string;
|
|
2722
|
+
error: string;
|
|
2723
|
+
info: string;
|
|
2724
|
+
border: string;
|
|
2725
|
+
borderMuted: string;
|
|
2726
|
+
fonts: {
|
|
2727
|
+
body: string;
|
|
2728
|
+
heading: string;
|
|
2729
|
+
mono: string;
|
|
2730
|
+
};
|
|
2731
|
+
}>]>;
|
|
2732
|
+
declare const diagramElementSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2733
|
+
type: z.ZodLiteral<"flow-node">;
|
|
2734
|
+
id: z.ZodString;
|
|
2735
|
+
shape: z.ZodDefault<z.ZodEnum<["box", "rounded-box", "diamond", "circle", "pill", "cylinder", "parallelogram", "hexagon"]>>;
|
|
2736
|
+
label: z.ZodString;
|
|
2737
|
+
sublabel: z.ZodOptional<z.ZodString>;
|
|
2738
|
+
sublabelColor: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2739
|
+
sublabel2: z.ZodOptional<z.ZodString>;
|
|
2740
|
+
sublabel2Color: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2741
|
+
sublabel2FontSize: z.ZodOptional<z.ZodNumber>;
|
|
2742
|
+
labelColor: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2743
|
+
labelFontSize: z.ZodOptional<z.ZodNumber>;
|
|
2744
|
+
color: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2745
|
+
borderColor: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2746
|
+
borderWidth: z.ZodOptional<z.ZodNumber>;
|
|
2747
|
+
cornerRadius: z.ZodOptional<z.ZodNumber>;
|
|
2748
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
2749
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
2750
|
+
fillOpacity: z.ZodDefault<z.ZodNumber>;
|
|
2751
|
+
opacity: z.ZodDefault<z.ZodNumber>;
|
|
2752
|
+
badgeText: z.ZodOptional<z.ZodString>;
|
|
2753
|
+
badgeColor: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2754
|
+
badgeBackground: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2755
|
+
badgePosition: z.ZodDefault<z.ZodEnum<["top", "inside-top"]>>;
|
|
2756
|
+
shadow: z.ZodOptional<z.ZodObject<{
|
|
2757
|
+
color: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2758
|
+
blur: z.ZodDefault<z.ZodNumber>;
|
|
2759
|
+
offsetX: z.ZodDefault<z.ZodNumber>;
|
|
2760
|
+
offsetY: z.ZodDefault<z.ZodNumber>;
|
|
2761
|
+
opacity: z.ZodDefault<z.ZodNumber>;
|
|
2762
|
+
}, "strict", z.ZodTypeAny, {
|
|
2763
|
+
opacity: number;
|
|
2764
|
+
blur: number;
|
|
2765
|
+
offsetX: number;
|
|
2766
|
+
offsetY: number;
|
|
2767
|
+
color?: string | undefined;
|
|
2768
|
+
}, {
|
|
2769
|
+
color?: string | undefined;
|
|
2770
|
+
opacity?: number | undefined;
|
|
2771
|
+
blur?: number | undefined;
|
|
2772
|
+
offsetX?: number | undefined;
|
|
2773
|
+
offsetY?: number | undefined;
|
|
2774
|
+
}>>;
|
|
2775
|
+
}, "strict", z.ZodTypeAny, {
|
|
2776
|
+
type: "flow-node";
|
|
2777
|
+
id: string;
|
|
2778
|
+
shape: "box" | "rounded-box" | "diamond" | "circle" | "pill" | "cylinder" | "parallelogram" | "hexagon";
|
|
2779
|
+
label: string;
|
|
2780
|
+
fillOpacity: number;
|
|
2781
|
+
opacity: number;
|
|
2782
|
+
badgePosition: "top" | "inside-top";
|
|
2783
|
+
width?: number | undefined;
|
|
2784
|
+
height?: number | undefined;
|
|
2785
|
+
sublabel?: string | undefined;
|
|
2786
|
+
sublabelColor?: string | undefined;
|
|
2787
|
+
sublabel2?: string | undefined;
|
|
2788
|
+
sublabel2Color?: string | undefined;
|
|
2789
|
+
sublabel2FontSize?: number | undefined;
|
|
2790
|
+
labelColor?: string | undefined;
|
|
2791
|
+
labelFontSize?: number | undefined;
|
|
2792
|
+
color?: string | undefined;
|
|
2793
|
+
borderColor?: string | undefined;
|
|
2794
|
+
borderWidth?: number | undefined;
|
|
2795
|
+
cornerRadius?: number | undefined;
|
|
2796
|
+
badgeText?: string | undefined;
|
|
2797
|
+
badgeColor?: string | undefined;
|
|
2798
|
+
badgeBackground?: string | undefined;
|
|
2799
|
+
shadow?: {
|
|
2800
|
+
opacity: number;
|
|
2801
|
+
blur: number;
|
|
2802
|
+
offsetX: number;
|
|
2803
|
+
offsetY: number;
|
|
2804
|
+
color?: string | undefined;
|
|
2805
|
+
} | undefined;
|
|
2806
|
+
}, {
|
|
2807
|
+
type: "flow-node";
|
|
2808
|
+
id: string;
|
|
2809
|
+
label: string;
|
|
2810
|
+
width?: number | undefined;
|
|
2811
|
+
height?: number | undefined;
|
|
2812
|
+
shape?: "box" | "rounded-box" | "diamond" | "circle" | "pill" | "cylinder" | "parallelogram" | "hexagon" | undefined;
|
|
2813
|
+
sublabel?: string | undefined;
|
|
2814
|
+
sublabelColor?: string | undefined;
|
|
2815
|
+
sublabel2?: string | undefined;
|
|
2816
|
+
sublabel2Color?: string | undefined;
|
|
2817
|
+
sublabel2FontSize?: number | undefined;
|
|
2818
|
+
labelColor?: string | undefined;
|
|
2819
|
+
labelFontSize?: number | undefined;
|
|
2820
|
+
color?: string | undefined;
|
|
2821
|
+
borderColor?: string | undefined;
|
|
2822
|
+
borderWidth?: number | undefined;
|
|
2823
|
+
cornerRadius?: number | undefined;
|
|
2824
|
+
fillOpacity?: number | undefined;
|
|
2825
|
+
opacity?: number | undefined;
|
|
2826
|
+
badgeText?: string | undefined;
|
|
2827
|
+
badgeColor?: string | undefined;
|
|
2828
|
+
badgeBackground?: string | undefined;
|
|
2829
|
+
badgePosition?: "top" | "inside-top" | undefined;
|
|
2830
|
+
shadow?: {
|
|
2831
|
+
color?: string | undefined;
|
|
2832
|
+
opacity?: number | undefined;
|
|
2833
|
+
blur?: number | undefined;
|
|
2834
|
+
offsetX?: number | undefined;
|
|
2835
|
+
offsetY?: number | undefined;
|
|
2836
|
+
} | undefined;
|
|
2837
|
+
}>, z.ZodObject<{
|
|
2838
|
+
type: z.ZodLiteral<"connection">;
|
|
2839
|
+
from: z.ZodString;
|
|
2840
|
+
to: z.ZodString;
|
|
2841
|
+
style: z.ZodDefault<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
2842
|
+
strokeStyle: z.ZodDefault<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
2843
|
+
arrow: z.ZodDefault<z.ZodEnum<["end", "start", "both", "none"]>>;
|
|
2844
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2845
|
+
labelPosition: z.ZodDefault<z.ZodEnum<["start", "middle", "end"]>>;
|
|
2846
|
+
color: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2847
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
2848
|
+
strokeWidth: z.ZodDefault<z.ZodNumber>;
|
|
2849
|
+
arrowSize: z.ZodOptional<z.ZodNumber>;
|
|
2850
|
+
opacity: z.ZodDefault<z.ZodNumber>;
|
|
2851
|
+
routing: z.ZodDefault<z.ZodEnum<["auto", "orthogonal", "curve", "arc"]>>;
|
|
2852
|
+
tension: z.ZodDefault<z.ZodNumber>;
|
|
2853
|
+
}, "strict", z.ZodTypeAny, {
|
|
2854
|
+
type: "connection";
|
|
2855
|
+
opacity: number;
|
|
2856
|
+
from: string;
|
|
2857
|
+
to: string;
|
|
2858
|
+
style: "solid" | "dashed" | "dotted";
|
|
2859
|
+
strokeStyle: "solid" | "dashed" | "dotted";
|
|
2860
|
+
arrow: "end" | "start" | "both" | "none";
|
|
2861
|
+
labelPosition: "end" | "start" | "middle";
|
|
2862
|
+
strokeWidth: number;
|
|
2863
|
+
routing: "auto" | "orthogonal" | "curve" | "arc";
|
|
2864
|
+
tension: number;
|
|
2865
|
+
width?: number | undefined;
|
|
2866
|
+
label?: string | undefined;
|
|
2867
|
+
color?: string | undefined;
|
|
2868
|
+
arrowSize?: number | undefined;
|
|
2869
|
+
}, {
|
|
2870
|
+
type: "connection";
|
|
2871
|
+
from: string;
|
|
2872
|
+
to: string;
|
|
2873
|
+
width?: number | undefined;
|
|
2874
|
+
label?: string | undefined;
|
|
2875
|
+
color?: string | undefined;
|
|
2876
|
+
opacity?: number | undefined;
|
|
2877
|
+
style?: "solid" | "dashed" | "dotted" | undefined;
|
|
2878
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
2879
|
+
arrow?: "end" | "start" | "both" | "none" | undefined;
|
|
2880
|
+
labelPosition?: "end" | "start" | "middle" | undefined;
|
|
2881
|
+
strokeWidth?: number | undefined;
|
|
2882
|
+
arrowSize?: number | undefined;
|
|
2883
|
+
routing?: "auto" | "orthogonal" | "curve" | "arc" | undefined;
|
|
2884
|
+
tension?: number | undefined;
|
|
2885
|
+
}>]>;
|
|
2886
|
+
declare const diagramLayoutSchema: z.ZodObject<{
|
|
2887
|
+
mode: z.ZodDefault<z.ZodEnum<["manual", "auto"]>>;
|
|
2888
|
+
positions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2889
|
+
x: z.ZodNumber;
|
|
2890
|
+
y: z.ZodNumber;
|
|
2891
|
+
width: z.ZodNumber;
|
|
2892
|
+
height: z.ZodNumber;
|
|
2893
|
+
}, "strict", z.ZodTypeAny, {
|
|
2894
|
+
width: number;
|
|
2895
|
+
height: number;
|
|
2896
|
+
x: number;
|
|
2897
|
+
y: number;
|
|
2898
|
+
}, {
|
|
2899
|
+
width: number;
|
|
2900
|
+
height: number;
|
|
2901
|
+
x: number;
|
|
2902
|
+
y: number;
|
|
2903
|
+
}>>>;
|
|
2904
|
+
diagramCenter: z.ZodOptional<z.ZodObject<{
|
|
2905
|
+
x: z.ZodNumber;
|
|
2906
|
+
y: z.ZodNumber;
|
|
2907
|
+
}, "strict", z.ZodTypeAny, {
|
|
2908
|
+
x: number;
|
|
2909
|
+
y: number;
|
|
2910
|
+
}, {
|
|
2911
|
+
x: number;
|
|
2912
|
+
y: number;
|
|
2913
|
+
}>>;
|
|
2914
|
+
}, "strict", z.ZodTypeAny, {
|
|
2915
|
+
mode: "auto" | "manual";
|
|
2916
|
+
diagramCenter?: {
|
|
2917
|
+
x: number;
|
|
2918
|
+
y: number;
|
|
2919
|
+
} | undefined;
|
|
2920
|
+
positions?: Record<string, {
|
|
2921
|
+
width: number;
|
|
2922
|
+
height: number;
|
|
2923
|
+
x: number;
|
|
2924
|
+
y: number;
|
|
2925
|
+
}> | undefined;
|
|
2926
|
+
}, {
|
|
2927
|
+
mode?: "auto" | "manual" | undefined;
|
|
2928
|
+
diagramCenter?: {
|
|
2929
|
+
x: number;
|
|
2930
|
+
y: number;
|
|
2931
|
+
} | undefined;
|
|
2932
|
+
positions?: Record<string, {
|
|
2933
|
+
width: number;
|
|
2934
|
+
height: number;
|
|
2935
|
+
x: number;
|
|
2936
|
+
y: number;
|
|
2937
|
+
}> | undefined;
|
|
2938
|
+
}>;
|
|
2939
|
+
declare const diagramSpecSchema: z.ZodObject<{
|
|
2940
|
+
version: z.ZodLiteral<1>;
|
|
2941
|
+
canvas: z.ZodDefault<z.ZodObject<{
|
|
2942
|
+
width: z.ZodDefault<z.ZodNumber>;
|
|
2943
|
+
height: z.ZodDefault<z.ZodNumber>;
|
|
2944
|
+
}, "strip", z.ZodTypeAny, {
|
|
2945
|
+
width: number;
|
|
2946
|
+
height: number;
|
|
2947
|
+
}, {
|
|
2948
|
+
width?: number | undefined;
|
|
2949
|
+
height?: number | undefined;
|
|
2950
|
+
}>>;
|
|
2951
|
+
theme: z.ZodOptional<z.ZodObject<{
|
|
2952
|
+
background: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2953
|
+
surface: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2954
|
+
surfaceMuted: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2955
|
+
surfaceElevated: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2956
|
+
text: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2957
|
+
textMuted: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2958
|
+
textInverse: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2959
|
+
primary: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2960
|
+
secondary: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2961
|
+
accent: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2962
|
+
success: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2963
|
+
warning: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2964
|
+
error: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2965
|
+
info: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2966
|
+
border: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2967
|
+
borderMuted: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2968
|
+
code: z.ZodObject<{
|
|
2969
|
+
background: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2970
|
+
text: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2971
|
+
comment: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2972
|
+
keyword: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2973
|
+
string: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2974
|
+
number: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2975
|
+
function: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2976
|
+
variable: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2977
|
+
operator: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2978
|
+
punctuation: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2979
|
+
}, "strict", z.ZodTypeAny, {
|
|
2980
|
+
string: string;
|
|
2981
|
+
number: string;
|
|
2982
|
+
function: string;
|
|
2983
|
+
background: string;
|
|
2984
|
+
text: string;
|
|
2985
|
+
comment: string;
|
|
2986
|
+
keyword: string;
|
|
2987
|
+
variable: string;
|
|
2988
|
+
operator: string;
|
|
2989
|
+
punctuation: string;
|
|
2990
|
+
}, {
|
|
2991
|
+
string: string;
|
|
2992
|
+
number: string;
|
|
2993
|
+
function: string;
|
|
2994
|
+
background: string;
|
|
2995
|
+
text: string;
|
|
2996
|
+
comment: string;
|
|
2997
|
+
keyword: string;
|
|
2998
|
+
variable: string;
|
|
2999
|
+
operator: string;
|
|
3000
|
+
punctuation: string;
|
|
3001
|
+
}>;
|
|
3002
|
+
fonts: z.ZodObject<{
|
|
3003
|
+
heading: z.ZodString;
|
|
3004
|
+
body: z.ZodString;
|
|
3005
|
+
mono: z.ZodString;
|
|
3006
|
+
}, "strict", z.ZodTypeAny, {
|
|
3007
|
+
body: string;
|
|
3008
|
+
heading: string;
|
|
3009
|
+
mono: string;
|
|
3010
|
+
}, {
|
|
3011
|
+
body: string;
|
|
3012
|
+
heading: string;
|
|
3013
|
+
mono: string;
|
|
3014
|
+
}>;
|
|
3015
|
+
}, "strict", z.ZodTypeAny, {
|
|
3016
|
+
code: {
|
|
3017
|
+
string: string;
|
|
3018
|
+
number: string;
|
|
3019
|
+
function: string;
|
|
3020
|
+
background: string;
|
|
3021
|
+
text: string;
|
|
3022
|
+
comment: string;
|
|
3023
|
+
keyword: string;
|
|
3024
|
+
variable: string;
|
|
3025
|
+
operator: string;
|
|
3026
|
+
punctuation: string;
|
|
3027
|
+
};
|
|
3028
|
+
background: string;
|
|
3029
|
+
surface: string;
|
|
3030
|
+
surfaceMuted: string;
|
|
3031
|
+
surfaceElevated: string;
|
|
3032
|
+
text: string;
|
|
3033
|
+
textMuted: string;
|
|
3034
|
+
textInverse: string;
|
|
3035
|
+
primary: string;
|
|
3036
|
+
secondary: string;
|
|
3037
|
+
accent: string;
|
|
3038
|
+
success: string;
|
|
3039
|
+
warning: string;
|
|
3040
|
+
error: string;
|
|
3041
|
+
info: string;
|
|
3042
|
+
border: string;
|
|
3043
|
+
borderMuted: string;
|
|
3044
|
+
fonts: {
|
|
3045
|
+
body: string;
|
|
3046
|
+
heading: string;
|
|
3047
|
+
mono: string;
|
|
3048
|
+
};
|
|
3049
|
+
}, {
|
|
3050
|
+
code: {
|
|
3051
|
+
string: string;
|
|
3052
|
+
number: string;
|
|
3053
|
+
function: string;
|
|
3054
|
+
background: string;
|
|
3055
|
+
text: string;
|
|
3056
|
+
comment: string;
|
|
3057
|
+
keyword: string;
|
|
3058
|
+
variable: string;
|
|
3059
|
+
operator: string;
|
|
3060
|
+
punctuation: string;
|
|
3061
|
+
};
|
|
3062
|
+
background: string;
|
|
3063
|
+
surface: string;
|
|
3064
|
+
surfaceMuted: string;
|
|
3065
|
+
surfaceElevated: string;
|
|
3066
|
+
text: string;
|
|
3067
|
+
textMuted: string;
|
|
3068
|
+
textInverse: string;
|
|
3069
|
+
primary: string;
|
|
3070
|
+
secondary: string;
|
|
3071
|
+
accent: string;
|
|
3072
|
+
success: string;
|
|
3073
|
+
warning: string;
|
|
3074
|
+
error: string;
|
|
3075
|
+
info: string;
|
|
3076
|
+
border: string;
|
|
3077
|
+
borderMuted: string;
|
|
3078
|
+
fonts: {
|
|
3079
|
+
body: string;
|
|
3080
|
+
heading: string;
|
|
3081
|
+
mono: string;
|
|
3082
|
+
};
|
|
3083
|
+
}>>;
|
|
3084
|
+
elements: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
3085
|
+
type: z.ZodLiteral<"flow-node">;
|
|
3086
|
+
id: z.ZodString;
|
|
3087
|
+
shape: z.ZodDefault<z.ZodEnum<["box", "rounded-box", "diamond", "circle", "pill", "cylinder", "parallelogram", "hexagon"]>>;
|
|
3088
|
+
label: z.ZodString;
|
|
3089
|
+
sublabel: z.ZodOptional<z.ZodString>;
|
|
3090
|
+
sublabelColor: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3091
|
+
sublabel2: z.ZodOptional<z.ZodString>;
|
|
3092
|
+
sublabel2Color: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3093
|
+
sublabel2FontSize: z.ZodOptional<z.ZodNumber>;
|
|
3094
|
+
labelColor: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3095
|
+
labelFontSize: z.ZodOptional<z.ZodNumber>;
|
|
3096
|
+
color: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3097
|
+
borderColor: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3098
|
+
borderWidth: z.ZodOptional<z.ZodNumber>;
|
|
3099
|
+
cornerRadius: z.ZodOptional<z.ZodNumber>;
|
|
3100
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
3101
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
3102
|
+
fillOpacity: z.ZodDefault<z.ZodNumber>;
|
|
3103
|
+
opacity: z.ZodDefault<z.ZodNumber>;
|
|
3104
|
+
badgeText: z.ZodOptional<z.ZodString>;
|
|
3105
|
+
badgeColor: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3106
|
+
badgeBackground: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3107
|
+
badgePosition: z.ZodDefault<z.ZodEnum<["top", "inside-top"]>>;
|
|
3108
|
+
shadow: z.ZodOptional<z.ZodObject<{
|
|
3109
|
+
color: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3110
|
+
blur: z.ZodDefault<z.ZodNumber>;
|
|
3111
|
+
offsetX: z.ZodDefault<z.ZodNumber>;
|
|
3112
|
+
offsetY: z.ZodDefault<z.ZodNumber>;
|
|
3113
|
+
opacity: z.ZodDefault<z.ZodNumber>;
|
|
3114
|
+
}, "strict", z.ZodTypeAny, {
|
|
3115
|
+
opacity: number;
|
|
3116
|
+
blur: number;
|
|
3117
|
+
offsetX: number;
|
|
3118
|
+
offsetY: number;
|
|
3119
|
+
color?: string | undefined;
|
|
3120
|
+
}, {
|
|
3121
|
+
color?: string | undefined;
|
|
3122
|
+
opacity?: number | undefined;
|
|
3123
|
+
blur?: number | undefined;
|
|
3124
|
+
offsetX?: number | undefined;
|
|
3125
|
+
offsetY?: number | undefined;
|
|
3126
|
+
}>>;
|
|
3127
|
+
}, "strict", z.ZodTypeAny, {
|
|
3128
|
+
type: "flow-node";
|
|
3129
|
+
id: string;
|
|
3130
|
+
shape: "box" | "rounded-box" | "diamond" | "circle" | "pill" | "cylinder" | "parallelogram" | "hexagon";
|
|
3131
|
+
label: string;
|
|
3132
|
+
fillOpacity: number;
|
|
3133
|
+
opacity: number;
|
|
3134
|
+
badgePosition: "top" | "inside-top";
|
|
3135
|
+
width?: number | undefined;
|
|
3136
|
+
height?: number | undefined;
|
|
3137
|
+
sublabel?: string | undefined;
|
|
3138
|
+
sublabelColor?: string | undefined;
|
|
3139
|
+
sublabel2?: string | undefined;
|
|
3140
|
+
sublabel2Color?: string | undefined;
|
|
3141
|
+
sublabel2FontSize?: number | undefined;
|
|
3142
|
+
labelColor?: string | undefined;
|
|
3143
|
+
labelFontSize?: number | undefined;
|
|
3144
|
+
color?: string | undefined;
|
|
3145
|
+
borderColor?: string | undefined;
|
|
3146
|
+
borderWidth?: number | undefined;
|
|
3147
|
+
cornerRadius?: number | undefined;
|
|
3148
|
+
badgeText?: string | undefined;
|
|
3149
|
+
badgeColor?: string | undefined;
|
|
3150
|
+
badgeBackground?: string | undefined;
|
|
3151
|
+
shadow?: {
|
|
3152
|
+
opacity: number;
|
|
3153
|
+
blur: number;
|
|
3154
|
+
offsetX: number;
|
|
3155
|
+
offsetY: number;
|
|
3156
|
+
color?: string | undefined;
|
|
3157
|
+
} | undefined;
|
|
3158
|
+
}, {
|
|
3159
|
+
type: "flow-node";
|
|
3160
|
+
id: string;
|
|
3161
|
+
label: string;
|
|
3162
|
+
width?: number | undefined;
|
|
3163
|
+
height?: number | undefined;
|
|
3164
|
+
shape?: "box" | "rounded-box" | "diamond" | "circle" | "pill" | "cylinder" | "parallelogram" | "hexagon" | undefined;
|
|
3165
|
+
sublabel?: string | undefined;
|
|
3166
|
+
sublabelColor?: string | undefined;
|
|
3167
|
+
sublabel2?: string | undefined;
|
|
3168
|
+
sublabel2Color?: string | undefined;
|
|
3169
|
+
sublabel2FontSize?: number | undefined;
|
|
3170
|
+
labelColor?: string | undefined;
|
|
3171
|
+
labelFontSize?: number | undefined;
|
|
3172
|
+
color?: string | undefined;
|
|
3173
|
+
borderColor?: string | undefined;
|
|
3174
|
+
borderWidth?: number | undefined;
|
|
3175
|
+
cornerRadius?: number | undefined;
|
|
3176
|
+
fillOpacity?: number | undefined;
|
|
3177
|
+
opacity?: number | undefined;
|
|
3178
|
+
badgeText?: string | undefined;
|
|
3179
|
+
badgeColor?: string | undefined;
|
|
3180
|
+
badgeBackground?: string | undefined;
|
|
3181
|
+
badgePosition?: "top" | "inside-top" | undefined;
|
|
3182
|
+
shadow?: {
|
|
3183
|
+
color?: string | undefined;
|
|
3184
|
+
opacity?: number | undefined;
|
|
3185
|
+
blur?: number | undefined;
|
|
3186
|
+
offsetX?: number | undefined;
|
|
3187
|
+
offsetY?: number | undefined;
|
|
3188
|
+
} | undefined;
|
|
3189
|
+
}>, z.ZodObject<{
|
|
3190
|
+
type: z.ZodLiteral<"connection">;
|
|
3191
|
+
from: z.ZodString;
|
|
3192
|
+
to: z.ZodString;
|
|
3193
|
+
style: z.ZodDefault<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
3194
|
+
strokeStyle: z.ZodDefault<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
3195
|
+
arrow: z.ZodDefault<z.ZodEnum<["end", "start", "both", "none"]>>;
|
|
3196
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3197
|
+
labelPosition: z.ZodDefault<z.ZodEnum<["start", "middle", "end"]>>;
|
|
3198
|
+
color: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3199
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
3200
|
+
strokeWidth: z.ZodDefault<z.ZodNumber>;
|
|
3201
|
+
arrowSize: z.ZodOptional<z.ZodNumber>;
|
|
3202
|
+
opacity: z.ZodDefault<z.ZodNumber>;
|
|
3203
|
+
routing: z.ZodDefault<z.ZodEnum<["auto", "orthogonal", "curve", "arc"]>>;
|
|
3204
|
+
tension: z.ZodDefault<z.ZodNumber>;
|
|
3205
|
+
}, "strict", z.ZodTypeAny, {
|
|
3206
|
+
type: "connection";
|
|
3207
|
+
opacity: number;
|
|
3208
|
+
from: string;
|
|
3209
|
+
to: string;
|
|
3210
|
+
style: "solid" | "dashed" | "dotted";
|
|
3211
|
+
strokeStyle: "solid" | "dashed" | "dotted";
|
|
3212
|
+
arrow: "end" | "start" | "both" | "none";
|
|
3213
|
+
labelPosition: "end" | "start" | "middle";
|
|
3214
|
+
strokeWidth: number;
|
|
3215
|
+
routing: "auto" | "orthogonal" | "curve" | "arc";
|
|
3216
|
+
tension: number;
|
|
3217
|
+
width?: number | undefined;
|
|
3218
|
+
label?: string | undefined;
|
|
3219
|
+
color?: string | undefined;
|
|
3220
|
+
arrowSize?: number | undefined;
|
|
3221
|
+
}, {
|
|
3222
|
+
type: "connection";
|
|
3223
|
+
from: string;
|
|
3224
|
+
to: string;
|
|
3225
|
+
width?: number | undefined;
|
|
3226
|
+
label?: string | undefined;
|
|
3227
|
+
color?: string | undefined;
|
|
3228
|
+
opacity?: number | undefined;
|
|
3229
|
+
style?: "solid" | "dashed" | "dotted" | undefined;
|
|
3230
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
3231
|
+
arrow?: "end" | "start" | "both" | "none" | undefined;
|
|
3232
|
+
labelPosition?: "end" | "start" | "middle" | undefined;
|
|
3233
|
+
strokeWidth?: number | undefined;
|
|
3234
|
+
arrowSize?: number | undefined;
|
|
3235
|
+
routing?: "auto" | "orthogonal" | "curve" | "arc" | undefined;
|
|
3236
|
+
tension?: number | undefined;
|
|
3237
|
+
}>]>, "many">;
|
|
3238
|
+
layout: z.ZodDefault<z.ZodObject<{
|
|
3239
|
+
mode: z.ZodDefault<z.ZodEnum<["manual", "auto"]>>;
|
|
3240
|
+
positions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3241
|
+
x: z.ZodNumber;
|
|
3242
|
+
y: z.ZodNumber;
|
|
3243
|
+
width: z.ZodNumber;
|
|
3244
|
+
height: z.ZodNumber;
|
|
3245
|
+
}, "strict", z.ZodTypeAny, {
|
|
3246
|
+
width: number;
|
|
3247
|
+
height: number;
|
|
3248
|
+
x: number;
|
|
3249
|
+
y: number;
|
|
3250
|
+
}, {
|
|
3251
|
+
width: number;
|
|
3252
|
+
height: number;
|
|
3253
|
+
x: number;
|
|
3254
|
+
y: number;
|
|
3255
|
+
}>>>;
|
|
3256
|
+
diagramCenter: z.ZodOptional<z.ZodObject<{
|
|
3257
|
+
x: z.ZodNumber;
|
|
3258
|
+
y: z.ZodNumber;
|
|
3259
|
+
}, "strict", z.ZodTypeAny, {
|
|
3260
|
+
x: number;
|
|
3261
|
+
y: number;
|
|
3262
|
+
}, {
|
|
3263
|
+
x: number;
|
|
3264
|
+
y: number;
|
|
3265
|
+
}>>;
|
|
3266
|
+
}, "strict", z.ZodTypeAny, {
|
|
3267
|
+
mode: "auto" | "manual";
|
|
3268
|
+
diagramCenter?: {
|
|
3269
|
+
x: number;
|
|
3270
|
+
y: number;
|
|
3271
|
+
} | undefined;
|
|
3272
|
+
positions?: Record<string, {
|
|
3273
|
+
width: number;
|
|
3274
|
+
height: number;
|
|
3275
|
+
x: number;
|
|
3276
|
+
y: number;
|
|
3277
|
+
}> | undefined;
|
|
3278
|
+
}, {
|
|
3279
|
+
mode?: "auto" | "manual" | undefined;
|
|
3280
|
+
diagramCenter?: {
|
|
3281
|
+
x: number;
|
|
3282
|
+
y: number;
|
|
3283
|
+
} | undefined;
|
|
3284
|
+
positions?: Record<string, {
|
|
3285
|
+
width: number;
|
|
3286
|
+
height: number;
|
|
3287
|
+
x: number;
|
|
3288
|
+
y: number;
|
|
3289
|
+
}> | undefined;
|
|
3290
|
+
}>>;
|
|
3291
|
+
}, "strict", z.ZodTypeAny, {
|
|
3292
|
+
version: 1;
|
|
3293
|
+
canvas: {
|
|
3294
|
+
width: number;
|
|
3295
|
+
height: number;
|
|
3296
|
+
};
|
|
3297
|
+
elements: ({
|
|
3298
|
+
type: "flow-node";
|
|
3299
|
+
id: string;
|
|
3300
|
+
shape: "box" | "rounded-box" | "diamond" | "circle" | "pill" | "cylinder" | "parallelogram" | "hexagon";
|
|
3301
|
+
label: string;
|
|
3302
|
+
fillOpacity: number;
|
|
3303
|
+
opacity: number;
|
|
3304
|
+
badgePosition: "top" | "inside-top";
|
|
3305
|
+
width?: number | undefined;
|
|
3306
|
+
height?: number | undefined;
|
|
3307
|
+
sublabel?: string | undefined;
|
|
3308
|
+
sublabelColor?: string | undefined;
|
|
3309
|
+
sublabel2?: string | undefined;
|
|
3310
|
+
sublabel2Color?: string | undefined;
|
|
3311
|
+
sublabel2FontSize?: number | undefined;
|
|
3312
|
+
labelColor?: string | undefined;
|
|
3313
|
+
labelFontSize?: number | undefined;
|
|
3314
|
+
color?: string | undefined;
|
|
3315
|
+
borderColor?: string | undefined;
|
|
3316
|
+
borderWidth?: number | undefined;
|
|
3317
|
+
cornerRadius?: number | undefined;
|
|
3318
|
+
badgeText?: string | undefined;
|
|
3319
|
+
badgeColor?: string | undefined;
|
|
3320
|
+
badgeBackground?: string | undefined;
|
|
3321
|
+
shadow?: {
|
|
3322
|
+
opacity: number;
|
|
3323
|
+
blur: number;
|
|
3324
|
+
offsetX: number;
|
|
3325
|
+
offsetY: number;
|
|
3326
|
+
color?: string | undefined;
|
|
3327
|
+
} | undefined;
|
|
3328
|
+
} | {
|
|
3329
|
+
type: "connection";
|
|
3330
|
+
opacity: number;
|
|
3331
|
+
from: string;
|
|
3332
|
+
to: string;
|
|
3333
|
+
style: "solid" | "dashed" | "dotted";
|
|
3334
|
+
strokeStyle: "solid" | "dashed" | "dotted";
|
|
3335
|
+
arrow: "end" | "start" | "both" | "none";
|
|
3336
|
+
labelPosition: "end" | "start" | "middle";
|
|
3337
|
+
strokeWidth: number;
|
|
3338
|
+
routing: "auto" | "orthogonal" | "curve" | "arc";
|
|
3339
|
+
tension: number;
|
|
3340
|
+
width?: number | undefined;
|
|
3341
|
+
label?: string | undefined;
|
|
3342
|
+
color?: string | undefined;
|
|
3343
|
+
arrowSize?: number | undefined;
|
|
3344
|
+
})[];
|
|
3345
|
+
layout: {
|
|
3346
|
+
mode: "auto" | "manual";
|
|
3347
|
+
diagramCenter?: {
|
|
3348
|
+
x: number;
|
|
3349
|
+
y: number;
|
|
3350
|
+
} | undefined;
|
|
3351
|
+
positions?: Record<string, {
|
|
3352
|
+
width: number;
|
|
3353
|
+
height: number;
|
|
3354
|
+
x: number;
|
|
3355
|
+
y: number;
|
|
3356
|
+
}> | undefined;
|
|
3357
|
+
};
|
|
3358
|
+
theme?: {
|
|
3359
|
+
code: {
|
|
3360
|
+
string: string;
|
|
3361
|
+
number: string;
|
|
3362
|
+
function: string;
|
|
3363
|
+
background: string;
|
|
3364
|
+
text: string;
|
|
3365
|
+
comment: string;
|
|
3366
|
+
keyword: string;
|
|
3367
|
+
variable: string;
|
|
3368
|
+
operator: string;
|
|
3369
|
+
punctuation: string;
|
|
3370
|
+
};
|
|
3371
|
+
background: string;
|
|
3372
|
+
surface: string;
|
|
3373
|
+
surfaceMuted: string;
|
|
3374
|
+
surfaceElevated: string;
|
|
2361
3375
|
text: string;
|
|
3376
|
+
textMuted: string;
|
|
3377
|
+
textInverse: string;
|
|
3378
|
+
primary: string;
|
|
3379
|
+
secondary: string;
|
|
3380
|
+
accent: string;
|
|
3381
|
+
success: string;
|
|
3382
|
+
warning: string;
|
|
3383
|
+
error: string;
|
|
3384
|
+
info: string;
|
|
3385
|
+
border: string;
|
|
3386
|
+
borderMuted: string;
|
|
3387
|
+
fonts: {
|
|
3388
|
+
body: string;
|
|
3389
|
+
heading: string;
|
|
3390
|
+
mono: string;
|
|
3391
|
+
};
|
|
3392
|
+
} | undefined;
|
|
3393
|
+
}, {
|
|
3394
|
+
version: 1;
|
|
3395
|
+
elements: ({
|
|
3396
|
+
type: "flow-node";
|
|
3397
|
+
id: string;
|
|
3398
|
+
label: string;
|
|
3399
|
+
width?: number | undefined;
|
|
3400
|
+
height?: number | undefined;
|
|
3401
|
+
shape?: "box" | "rounded-box" | "diamond" | "circle" | "pill" | "cylinder" | "parallelogram" | "hexagon" | undefined;
|
|
3402
|
+
sublabel?: string | undefined;
|
|
3403
|
+
sublabelColor?: string | undefined;
|
|
3404
|
+
sublabel2?: string | undefined;
|
|
3405
|
+
sublabel2Color?: string | undefined;
|
|
3406
|
+
sublabel2FontSize?: number | undefined;
|
|
3407
|
+
labelColor?: string | undefined;
|
|
3408
|
+
labelFontSize?: number | undefined;
|
|
3409
|
+
color?: string | undefined;
|
|
3410
|
+
borderColor?: string | undefined;
|
|
3411
|
+
borderWidth?: number | undefined;
|
|
3412
|
+
cornerRadius?: number | undefined;
|
|
3413
|
+
fillOpacity?: number | undefined;
|
|
3414
|
+
opacity?: number | undefined;
|
|
3415
|
+
badgeText?: string | undefined;
|
|
3416
|
+
badgeColor?: string | undefined;
|
|
3417
|
+
badgeBackground?: string | undefined;
|
|
3418
|
+
badgePosition?: "top" | "inside-top" | undefined;
|
|
3419
|
+
shadow?: {
|
|
3420
|
+
color?: string | undefined;
|
|
3421
|
+
opacity?: number | undefined;
|
|
3422
|
+
blur?: number | undefined;
|
|
3423
|
+
offsetX?: number | undefined;
|
|
3424
|
+
offsetY?: number | undefined;
|
|
3425
|
+
} | undefined;
|
|
3426
|
+
} | {
|
|
3427
|
+
type: "connection";
|
|
3428
|
+
from: string;
|
|
3429
|
+
to: string;
|
|
3430
|
+
width?: number | undefined;
|
|
3431
|
+
label?: string | undefined;
|
|
3432
|
+
color?: string | undefined;
|
|
3433
|
+
opacity?: number | undefined;
|
|
3434
|
+
style?: "solid" | "dashed" | "dotted" | undefined;
|
|
3435
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
3436
|
+
arrow?: "end" | "start" | "both" | "none" | undefined;
|
|
3437
|
+
labelPosition?: "end" | "start" | "middle" | undefined;
|
|
3438
|
+
strokeWidth?: number | undefined;
|
|
3439
|
+
arrowSize?: number | undefined;
|
|
3440
|
+
routing?: "auto" | "orthogonal" | "curve" | "arc" | undefined;
|
|
3441
|
+
tension?: number | undefined;
|
|
3442
|
+
})[];
|
|
3443
|
+
theme?: {
|
|
3444
|
+
code: {
|
|
3445
|
+
string: string;
|
|
3446
|
+
number: string;
|
|
3447
|
+
function: string;
|
|
3448
|
+
background: string;
|
|
3449
|
+
text: string;
|
|
3450
|
+
comment: string;
|
|
3451
|
+
keyword: string;
|
|
3452
|
+
variable: string;
|
|
3453
|
+
operator: string;
|
|
3454
|
+
punctuation: string;
|
|
3455
|
+
};
|
|
2362
3456
|
background: string;
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
3457
|
+
surface: string;
|
|
3458
|
+
surfaceMuted: string;
|
|
3459
|
+
surfaceElevated: string;
|
|
3460
|
+
text: string;
|
|
3461
|
+
textMuted: string;
|
|
3462
|
+
textInverse: string;
|
|
3463
|
+
primary: string;
|
|
3464
|
+
secondary: string;
|
|
3465
|
+
accent: string;
|
|
3466
|
+
success: string;
|
|
3467
|
+
warning: string;
|
|
3468
|
+
error: string;
|
|
3469
|
+
info: string;
|
|
3470
|
+
border: string;
|
|
3471
|
+
borderMuted: string;
|
|
3472
|
+
fonts: {
|
|
3473
|
+
body: string;
|
|
3474
|
+
heading: string;
|
|
3475
|
+
mono: string;
|
|
3476
|
+
};
|
|
3477
|
+
} | undefined;
|
|
3478
|
+
canvas?: {
|
|
3479
|
+
width?: number | undefined;
|
|
3480
|
+
height?: number | undefined;
|
|
3481
|
+
} | undefined;
|
|
3482
|
+
layout?: {
|
|
3483
|
+
mode?: "auto" | "manual" | undefined;
|
|
3484
|
+
diagramCenter?: {
|
|
3485
|
+
x: number;
|
|
3486
|
+
y: number;
|
|
3487
|
+
} | undefined;
|
|
3488
|
+
positions?: Record<string, {
|
|
3489
|
+
width: number;
|
|
3490
|
+
height: number;
|
|
3491
|
+
x: number;
|
|
3492
|
+
y: number;
|
|
3493
|
+
}> | undefined;
|
|
3494
|
+
} | undefined;
|
|
3495
|
+
}>;
|
|
2391
3496
|
/** Zod schema that validates and transforms raw input into a fully resolved {@link DesignSpec}. This is the source of truth for spec validation. */
|
|
2392
3497
|
declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
2393
3498
|
version: z.ZodDefault<z.ZodLiteral<2>>;
|
|
@@ -2405,39 +3510,39 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2405
3510
|
padding?: number | undefined;
|
|
2406
3511
|
}>>;
|
|
2407
3512
|
theme: z.ZodDefault<z.ZodUnion<[z.ZodEnum<["dark", "light", "dracula", "github-dark", "one-dark", "nord"]>, z.ZodObject<{
|
|
2408
|
-
background: z.ZodString
|
|
2409
|
-
surface: z.ZodString
|
|
2410
|
-
surfaceMuted: z.ZodString
|
|
2411
|
-
surfaceElevated: z.ZodString
|
|
2412
|
-
text: z.ZodString
|
|
2413
|
-
textMuted: z.ZodString
|
|
2414
|
-
textInverse: z.ZodString
|
|
2415
|
-
primary: z.ZodString
|
|
2416
|
-
secondary: z.ZodString
|
|
2417
|
-
accent: z.ZodString
|
|
2418
|
-
success: z.ZodString
|
|
2419
|
-
warning: z.ZodString
|
|
2420
|
-
error: z.ZodString
|
|
2421
|
-
info: z.ZodString
|
|
2422
|
-
border: z.ZodString
|
|
2423
|
-
borderMuted: z.ZodString
|
|
3513
|
+
background: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
3514
|
+
surface: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
3515
|
+
surfaceMuted: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
3516
|
+
surfaceElevated: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
3517
|
+
text: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
3518
|
+
textMuted: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
3519
|
+
textInverse: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
3520
|
+
primary: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
3521
|
+
secondary: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
3522
|
+
accent: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
3523
|
+
success: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
3524
|
+
warning: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
3525
|
+
error: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
3526
|
+
info: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
3527
|
+
border: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
3528
|
+
borderMuted: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2424
3529
|
code: z.ZodObject<{
|
|
2425
|
-
background: z.ZodString
|
|
2426
|
-
text: z.ZodString
|
|
2427
|
-
comment: z.ZodString
|
|
2428
|
-
keyword: z.ZodString
|
|
2429
|
-
string: z.ZodString
|
|
2430
|
-
number: z.ZodString
|
|
2431
|
-
function: z.ZodString
|
|
2432
|
-
variable: z.ZodString
|
|
2433
|
-
operator: z.ZodString
|
|
2434
|
-
punctuation: z.ZodString
|
|
3530
|
+
background: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
3531
|
+
text: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
3532
|
+
comment: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
3533
|
+
keyword: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
3534
|
+
string: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
3535
|
+
number: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
3536
|
+
function: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
3537
|
+
variable: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
3538
|
+
operator: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
3539
|
+
punctuation: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2435
3540
|
}, "strict", z.ZodTypeAny, {
|
|
2436
3541
|
string: string;
|
|
2437
3542
|
number: string;
|
|
2438
3543
|
function: string;
|
|
2439
|
-
text: string;
|
|
2440
3544
|
background: string;
|
|
3545
|
+
text: string;
|
|
2441
3546
|
comment: string;
|
|
2442
3547
|
keyword: string;
|
|
2443
3548
|
variable: string;
|
|
@@ -2447,8 +3552,8 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2447
3552
|
string: string;
|
|
2448
3553
|
number: string;
|
|
2449
3554
|
function: string;
|
|
2450
|
-
text: string;
|
|
2451
3555
|
background: string;
|
|
3556
|
+
text: string;
|
|
2452
3557
|
comment: string;
|
|
2453
3558
|
keyword: string;
|
|
2454
3559
|
variable: string;
|
|
@@ -2473,27 +3578,27 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2473
3578
|
string: string;
|
|
2474
3579
|
number: string;
|
|
2475
3580
|
function: string;
|
|
2476
|
-
text: string;
|
|
2477
3581
|
background: string;
|
|
3582
|
+
text: string;
|
|
2478
3583
|
comment: string;
|
|
2479
3584
|
keyword: string;
|
|
2480
3585
|
variable: string;
|
|
2481
3586
|
operator: string;
|
|
2482
3587
|
punctuation: string;
|
|
2483
3588
|
};
|
|
2484
|
-
accent: string;
|
|
2485
|
-
success: string;
|
|
2486
|
-
warning: string;
|
|
2487
|
-
error: string;
|
|
2488
|
-
text: string;
|
|
2489
3589
|
background: string;
|
|
2490
3590
|
surface: string;
|
|
2491
3591
|
surfaceMuted: string;
|
|
2492
3592
|
surfaceElevated: string;
|
|
3593
|
+
text: string;
|
|
2493
3594
|
textMuted: string;
|
|
2494
3595
|
textInverse: string;
|
|
2495
3596
|
primary: string;
|
|
2496
3597
|
secondary: string;
|
|
3598
|
+
accent: string;
|
|
3599
|
+
success: string;
|
|
3600
|
+
warning: string;
|
|
3601
|
+
error: string;
|
|
2497
3602
|
info: string;
|
|
2498
3603
|
border: string;
|
|
2499
3604
|
borderMuted: string;
|
|
@@ -2507,27 +3612,27 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2507
3612
|
string: string;
|
|
2508
3613
|
number: string;
|
|
2509
3614
|
function: string;
|
|
2510
|
-
text: string;
|
|
2511
3615
|
background: string;
|
|
3616
|
+
text: string;
|
|
2512
3617
|
comment: string;
|
|
2513
3618
|
keyword: string;
|
|
2514
3619
|
variable: string;
|
|
2515
3620
|
operator: string;
|
|
2516
3621
|
punctuation: string;
|
|
2517
3622
|
};
|
|
2518
|
-
accent: string;
|
|
2519
|
-
success: string;
|
|
2520
|
-
warning: string;
|
|
2521
|
-
error: string;
|
|
2522
|
-
text: string;
|
|
2523
3623
|
background: string;
|
|
2524
3624
|
surface: string;
|
|
2525
3625
|
surfaceMuted: string;
|
|
2526
3626
|
surfaceElevated: string;
|
|
3627
|
+
text: string;
|
|
2527
3628
|
textMuted: string;
|
|
2528
3629
|
textInverse: string;
|
|
2529
3630
|
primary: string;
|
|
2530
3631
|
secondary: string;
|
|
3632
|
+
accent: string;
|
|
3633
|
+
success: string;
|
|
3634
|
+
warning: string;
|
|
3635
|
+
error: string;
|
|
2531
3636
|
info: string;
|
|
2532
3637
|
border: string;
|
|
2533
3638
|
borderMuted: string;
|
|
@@ -2537,12 +3642,12 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2537
3642
|
mono: string;
|
|
2538
3643
|
};
|
|
2539
3644
|
}>]>>;
|
|
2540
|
-
background: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
3645
|
+
background: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2541
3646
|
type: z.ZodLiteral<"linear">;
|
|
2542
3647
|
angle: z.ZodDefault<z.ZodNumber>;
|
|
2543
3648
|
stops: z.ZodArray<z.ZodObject<{
|
|
2544
3649
|
offset: z.ZodNumber;
|
|
2545
|
-
color: z.ZodString
|
|
3650
|
+
color: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2546
3651
|
}, "strict", z.ZodTypeAny, {
|
|
2547
3652
|
color: string;
|
|
2548
3653
|
offset: number;
|
|
@@ -2568,7 +3673,7 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2568
3673
|
type: z.ZodLiteral<"radial">;
|
|
2569
3674
|
stops: z.ZodArray<z.ZodObject<{
|
|
2570
3675
|
offset: z.ZodNumber;
|
|
2571
|
-
color: z.ZodString
|
|
3676
|
+
color: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2572
3677
|
}, "strict", z.ZodTypeAny, {
|
|
2573
3678
|
color: string;
|
|
2574
3679
|
offset: number;
|
|
@@ -2598,14 +3703,14 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2598
3703
|
titleFontSize: z.ZodOptional<z.ZodNumber>;
|
|
2599
3704
|
}, "strict", z.ZodTypeAny, {
|
|
2600
3705
|
title: string;
|
|
2601
|
-
align: "
|
|
3706
|
+
align: "center" | "left" | "right";
|
|
2602
3707
|
titleLetterSpacing: number;
|
|
2603
3708
|
eyebrow?: string | undefined;
|
|
2604
3709
|
subtitle?: string | undefined;
|
|
2605
3710
|
titleFontSize?: number | undefined;
|
|
2606
3711
|
}, {
|
|
2607
3712
|
title: string;
|
|
2608
|
-
align?: "
|
|
3713
|
+
align?: "center" | "left" | "right" | undefined;
|
|
2609
3714
|
eyebrow?: string | undefined;
|
|
2610
3715
|
subtitle?: string | undefined;
|
|
2611
3716
|
titleLetterSpacing?: number | undefined;
|
|
@@ -2625,7 +3730,7 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2625
3730
|
type: "card";
|
|
2626
3731
|
id: string;
|
|
2627
3732
|
title: string;
|
|
2628
|
-
tone: "
|
|
3733
|
+
tone: "accent" | "success" | "warning" | "error" | "neutral";
|
|
2629
3734
|
badge?: string | undefined;
|
|
2630
3735
|
metric?: string | undefined;
|
|
2631
3736
|
icon?: string | undefined;
|
|
@@ -2636,92 +3741,161 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2636
3741
|
title: string;
|
|
2637
3742
|
badge?: string | undefined;
|
|
2638
3743
|
metric?: string | undefined;
|
|
2639
|
-
tone?: "
|
|
3744
|
+
tone?: "accent" | "success" | "warning" | "error" | "neutral" | undefined;
|
|
2640
3745
|
icon?: string | undefined;
|
|
2641
3746
|
}>, z.ZodObject<{
|
|
2642
3747
|
type: z.ZodLiteral<"flow-node">;
|
|
2643
3748
|
id: z.ZodString;
|
|
2644
|
-
shape: z.ZodEnum<["box", "rounded-box", "diamond", "circle", "pill", "cylinder", "parallelogram"]
|
|
3749
|
+
shape: z.ZodDefault<z.ZodEnum<["box", "rounded-box", "diamond", "circle", "pill", "cylinder", "parallelogram", "hexagon"]>>;
|
|
2645
3750
|
label: z.ZodString;
|
|
2646
3751
|
sublabel: z.ZodOptional<z.ZodString>;
|
|
2647
|
-
sublabelColor: z.ZodOptional<z.ZodString
|
|
2648
|
-
|
|
3752
|
+
sublabelColor: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3753
|
+
sublabel2: z.ZodOptional<z.ZodString>;
|
|
3754
|
+
sublabel2Color: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3755
|
+
sublabel2FontSize: z.ZodOptional<z.ZodNumber>;
|
|
3756
|
+
labelColor: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2649
3757
|
labelFontSize: z.ZodOptional<z.ZodNumber>;
|
|
2650
|
-
color: z.ZodOptional<z.ZodString
|
|
2651
|
-
borderColor: z.ZodOptional<z.ZodString
|
|
3758
|
+
color: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3759
|
+
borderColor: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2652
3760
|
borderWidth: z.ZodOptional<z.ZodNumber>;
|
|
2653
3761
|
cornerRadius: z.ZodOptional<z.ZodNumber>;
|
|
2654
3762
|
width: z.ZodOptional<z.ZodNumber>;
|
|
2655
3763
|
height: z.ZodOptional<z.ZodNumber>;
|
|
3764
|
+
fillOpacity: z.ZodDefault<z.ZodNumber>;
|
|
2656
3765
|
opacity: z.ZodDefault<z.ZodNumber>;
|
|
3766
|
+
badgeText: z.ZodOptional<z.ZodString>;
|
|
3767
|
+
badgeColor: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3768
|
+
badgeBackground: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3769
|
+
badgePosition: z.ZodDefault<z.ZodEnum<["top", "inside-top"]>>;
|
|
3770
|
+
shadow: z.ZodOptional<z.ZodObject<{
|
|
3771
|
+
color: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3772
|
+
blur: z.ZodDefault<z.ZodNumber>;
|
|
3773
|
+
offsetX: z.ZodDefault<z.ZodNumber>;
|
|
3774
|
+
offsetY: z.ZodDefault<z.ZodNumber>;
|
|
3775
|
+
opacity: z.ZodDefault<z.ZodNumber>;
|
|
3776
|
+
}, "strict", z.ZodTypeAny, {
|
|
3777
|
+
opacity: number;
|
|
3778
|
+
blur: number;
|
|
3779
|
+
offsetX: number;
|
|
3780
|
+
offsetY: number;
|
|
3781
|
+
color?: string | undefined;
|
|
3782
|
+
}, {
|
|
3783
|
+
color?: string | undefined;
|
|
3784
|
+
opacity?: number | undefined;
|
|
3785
|
+
blur?: number | undefined;
|
|
3786
|
+
offsetX?: number | undefined;
|
|
3787
|
+
offsetY?: number | undefined;
|
|
3788
|
+
}>>;
|
|
2657
3789
|
}, "strict", z.ZodTypeAny, {
|
|
2658
3790
|
type: "flow-node";
|
|
2659
3791
|
id: string;
|
|
2660
|
-
shape: "box" | "rounded-box" | "diamond" | "circle" | "pill" | "cylinder" | "parallelogram";
|
|
3792
|
+
shape: "box" | "rounded-box" | "diamond" | "circle" | "pill" | "cylinder" | "parallelogram" | "hexagon";
|
|
2661
3793
|
label: string;
|
|
3794
|
+
fillOpacity: number;
|
|
2662
3795
|
opacity: number;
|
|
3796
|
+
badgePosition: "top" | "inside-top";
|
|
3797
|
+
width?: number | undefined;
|
|
3798
|
+
height?: number | undefined;
|
|
2663
3799
|
sublabel?: string | undefined;
|
|
2664
3800
|
sublabelColor?: string | undefined;
|
|
3801
|
+
sublabel2?: string | undefined;
|
|
3802
|
+
sublabel2Color?: string | undefined;
|
|
3803
|
+
sublabel2FontSize?: number | undefined;
|
|
2665
3804
|
labelColor?: string | undefined;
|
|
2666
3805
|
labelFontSize?: number | undefined;
|
|
2667
3806
|
color?: string | undefined;
|
|
2668
3807
|
borderColor?: string | undefined;
|
|
2669
3808
|
borderWidth?: number | undefined;
|
|
2670
3809
|
cornerRadius?: number | undefined;
|
|
2671
|
-
|
|
2672
|
-
|
|
3810
|
+
badgeText?: string | undefined;
|
|
3811
|
+
badgeColor?: string | undefined;
|
|
3812
|
+
badgeBackground?: string | undefined;
|
|
3813
|
+
shadow?: {
|
|
3814
|
+
opacity: number;
|
|
3815
|
+
blur: number;
|
|
3816
|
+
offsetX: number;
|
|
3817
|
+
offsetY: number;
|
|
3818
|
+
color?: string | undefined;
|
|
3819
|
+
} | undefined;
|
|
2673
3820
|
}, {
|
|
2674
3821
|
type: "flow-node";
|
|
2675
3822
|
id: string;
|
|
2676
|
-
shape: "box" | "rounded-box" | "diamond" | "circle" | "pill" | "cylinder" | "parallelogram";
|
|
2677
3823
|
label: string;
|
|
3824
|
+
width?: number | undefined;
|
|
3825
|
+
height?: number | undefined;
|
|
3826
|
+
shape?: "box" | "rounded-box" | "diamond" | "circle" | "pill" | "cylinder" | "parallelogram" | "hexagon" | undefined;
|
|
2678
3827
|
sublabel?: string | undefined;
|
|
2679
3828
|
sublabelColor?: string | undefined;
|
|
3829
|
+
sublabel2?: string | undefined;
|
|
3830
|
+
sublabel2Color?: string | undefined;
|
|
3831
|
+
sublabel2FontSize?: number | undefined;
|
|
2680
3832
|
labelColor?: string | undefined;
|
|
2681
3833
|
labelFontSize?: number | undefined;
|
|
2682
3834
|
color?: string | undefined;
|
|
2683
3835
|
borderColor?: string | undefined;
|
|
2684
3836
|
borderWidth?: number | undefined;
|
|
2685
3837
|
cornerRadius?: number | undefined;
|
|
2686
|
-
|
|
2687
|
-
height?: number | undefined;
|
|
3838
|
+
fillOpacity?: number | undefined;
|
|
2688
3839
|
opacity?: number | undefined;
|
|
3840
|
+
badgeText?: string | undefined;
|
|
3841
|
+
badgeColor?: string | undefined;
|
|
3842
|
+
badgeBackground?: string | undefined;
|
|
3843
|
+
badgePosition?: "top" | "inside-top" | undefined;
|
|
3844
|
+
shadow?: {
|
|
3845
|
+
color?: string | undefined;
|
|
3846
|
+
opacity?: number | undefined;
|
|
3847
|
+
blur?: number | undefined;
|
|
3848
|
+
offsetX?: number | undefined;
|
|
3849
|
+
offsetY?: number | undefined;
|
|
3850
|
+
} | undefined;
|
|
2689
3851
|
}>, z.ZodObject<{
|
|
2690
3852
|
type: z.ZodLiteral<"connection">;
|
|
2691
3853
|
from: z.ZodString;
|
|
2692
3854
|
to: z.ZodString;
|
|
2693
3855
|
style: z.ZodDefault<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
3856
|
+
strokeStyle: z.ZodDefault<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
2694
3857
|
arrow: z.ZodDefault<z.ZodEnum<["end", "start", "both", "none"]>>;
|
|
2695
3858
|
label: z.ZodOptional<z.ZodString>;
|
|
2696
3859
|
labelPosition: z.ZodDefault<z.ZodEnum<["start", "middle", "end"]>>;
|
|
2697
|
-
color: z.ZodOptional<z.ZodString
|
|
3860
|
+
color: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2698
3861
|
width: z.ZodOptional<z.ZodNumber>;
|
|
3862
|
+
strokeWidth: z.ZodDefault<z.ZodNumber>;
|
|
2699
3863
|
arrowSize: z.ZodOptional<z.ZodNumber>;
|
|
2700
3864
|
opacity: z.ZodDefault<z.ZodNumber>;
|
|
3865
|
+
routing: z.ZodDefault<z.ZodEnum<["auto", "orthogonal", "curve", "arc"]>>;
|
|
3866
|
+
tension: z.ZodDefault<z.ZodNumber>;
|
|
2701
3867
|
}, "strict", z.ZodTypeAny, {
|
|
2702
3868
|
type: "connection";
|
|
2703
3869
|
opacity: number;
|
|
2704
3870
|
from: string;
|
|
2705
3871
|
to: string;
|
|
2706
3872
|
style: "solid" | "dashed" | "dotted";
|
|
3873
|
+
strokeStyle: "solid" | "dashed" | "dotted";
|
|
2707
3874
|
arrow: "end" | "start" | "both" | "none";
|
|
2708
3875
|
labelPosition: "end" | "start" | "middle";
|
|
3876
|
+
strokeWidth: number;
|
|
3877
|
+
routing: "auto" | "orthogonal" | "curve" | "arc";
|
|
3878
|
+
tension: number;
|
|
3879
|
+
width?: number | undefined;
|
|
2709
3880
|
label?: string | undefined;
|
|
2710
3881
|
color?: string | undefined;
|
|
2711
|
-
width?: number | undefined;
|
|
2712
3882
|
arrowSize?: number | undefined;
|
|
2713
3883
|
}, {
|
|
2714
3884
|
type: "connection";
|
|
2715
3885
|
from: string;
|
|
2716
3886
|
to: string;
|
|
3887
|
+
width?: number | undefined;
|
|
2717
3888
|
label?: string | undefined;
|
|
2718
3889
|
color?: string | undefined;
|
|
2719
|
-
width?: number | undefined;
|
|
2720
3890
|
opacity?: number | undefined;
|
|
2721
3891
|
style?: "solid" | "dashed" | "dotted" | undefined;
|
|
3892
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
2722
3893
|
arrow?: "end" | "start" | "both" | "none" | undefined;
|
|
2723
3894
|
labelPosition?: "end" | "start" | "middle" | undefined;
|
|
3895
|
+
strokeWidth?: number | undefined;
|
|
2724
3896
|
arrowSize?: number | undefined;
|
|
3897
|
+
routing?: "auto" | "orthogonal" | "curve" | "arc" | undefined;
|
|
3898
|
+
tension?: number | undefined;
|
|
2725
3899
|
}>, z.ZodObject<{
|
|
2726
3900
|
type: z.ZodLiteral<"code-block">;
|
|
2727
3901
|
id: z.ZodString;
|
|
@@ -2895,42 +4069,42 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2895
4069
|
content: z.ZodString;
|
|
2896
4070
|
style: z.ZodEnum<["heading", "subheading", "body", "caption", "code"]>;
|
|
2897
4071
|
align: z.ZodDefault<z.ZodEnum<["left", "center", "right"]>>;
|
|
2898
|
-
color: z.ZodOptional<z.ZodString
|
|
4072
|
+
color: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2899
4073
|
}, "strict", z.ZodTypeAny, {
|
|
2900
4074
|
type: "text";
|
|
2901
4075
|
id: string;
|
|
2902
|
-
style: "body" | "
|
|
4076
|
+
style: "body" | "heading" | "code" | "subheading" | "caption";
|
|
2903
4077
|
content: string;
|
|
2904
|
-
align: "
|
|
4078
|
+
align: "center" | "left" | "right";
|
|
2905
4079
|
color?: string | undefined;
|
|
2906
4080
|
}, {
|
|
2907
4081
|
type: "text";
|
|
2908
4082
|
id: string;
|
|
2909
|
-
style: "body" | "
|
|
4083
|
+
style: "body" | "heading" | "code" | "subheading" | "caption";
|
|
2910
4084
|
content: string;
|
|
2911
4085
|
color?: string | undefined;
|
|
2912
|
-
align?: "
|
|
4086
|
+
align?: "center" | "left" | "right" | undefined;
|
|
2913
4087
|
}>, z.ZodObject<{
|
|
2914
4088
|
type: z.ZodLiteral<"shape">;
|
|
2915
4089
|
id: z.ZodString;
|
|
2916
4090
|
shape: z.ZodEnum<["rectangle", "rounded-rectangle", "circle", "ellipse", "line", "arrow"]>;
|
|
2917
|
-
fill: z.ZodOptional<z.ZodString
|
|
2918
|
-
stroke: z.ZodOptional<z.ZodString
|
|
4091
|
+
fill: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
4092
|
+
stroke: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2919
4093
|
strokeWidth: z.ZodDefault<z.ZodNumber>;
|
|
2920
4094
|
}, "strict", z.ZodTypeAny, {
|
|
2921
4095
|
type: "shape";
|
|
2922
4096
|
id: string;
|
|
2923
|
-
shape: "circle" | "arrow" | "rectangle" | "rounded-rectangle" | "ellipse"
|
|
4097
|
+
shape: "line" | "circle" | "arrow" | "rectangle" | "rounded-rectangle" | "ellipse";
|
|
2924
4098
|
strokeWidth: number;
|
|
2925
4099
|
fill?: string | undefined;
|
|
2926
4100
|
stroke?: string | undefined;
|
|
2927
4101
|
}, {
|
|
2928
4102
|
type: "shape";
|
|
2929
4103
|
id: string;
|
|
2930
|
-
shape: "circle" | "arrow" | "rectangle" | "rounded-rectangle" | "ellipse"
|
|
4104
|
+
shape: "line" | "circle" | "arrow" | "rectangle" | "rounded-rectangle" | "ellipse";
|
|
2931
4105
|
fill?: string | undefined;
|
|
2932
|
-
stroke?: string | undefined;
|
|
2933
4106
|
strokeWidth?: number | undefined;
|
|
4107
|
+
stroke?: string | undefined;
|
|
2934
4108
|
}>, z.ZodObject<{
|
|
2935
4109
|
type: z.ZodLiteral<"image">;
|
|
2936
4110
|
id: z.ZodString;
|
|
@@ -2939,18 +4113,18 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2939
4113
|
fit: z.ZodDefault<z.ZodEnum<["contain", "cover", "fill", "none"]>>;
|
|
2940
4114
|
borderRadius: z.ZodDefault<z.ZodNumber>;
|
|
2941
4115
|
}, "strict", z.ZodTypeAny, {
|
|
4116
|
+
fit: "contain" | "cover" | "fill" | "none";
|
|
2942
4117
|
type: "image";
|
|
2943
4118
|
id: string;
|
|
2944
4119
|
src: string;
|
|
2945
|
-
fit: "fill" | "none" | "contain" | "cover";
|
|
2946
4120
|
borderRadius: number;
|
|
2947
4121
|
alt?: string | undefined;
|
|
2948
4122
|
}, {
|
|
2949
4123
|
type: "image";
|
|
2950
4124
|
id: string;
|
|
2951
4125
|
src: string;
|
|
4126
|
+
fit?: "contain" | "cover" | "fill" | "none" | undefined;
|
|
2952
4127
|
alt?: string | undefined;
|
|
2953
|
-
fit?: "fill" | "none" | "contain" | "cover" | undefined;
|
|
2954
4128
|
borderRadius?: number | undefined;
|
|
2955
4129
|
}>]>, "many">>;
|
|
2956
4130
|
footer: z.ZodOptional<z.ZodObject<{
|
|
@@ -2968,7 +4142,7 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2968
4142
|
y: z.ZodDefault<z.ZodEnum<["after-header", "before-footer", "custom"]>>;
|
|
2969
4143
|
customY: z.ZodOptional<z.ZodNumber>;
|
|
2970
4144
|
thickness: z.ZodDefault<z.ZodNumber>;
|
|
2971
|
-
colors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4145
|
+
colors: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>;
|
|
2972
4146
|
margin: z.ZodDefault<z.ZodNumber>;
|
|
2973
4147
|
}, "strict", z.ZodTypeAny, {
|
|
2974
4148
|
type: "rainbow-rule";
|
|
@@ -2987,7 +4161,7 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2987
4161
|
}>, z.ZodObject<{
|
|
2988
4162
|
type: z.ZodLiteral<"vignette">;
|
|
2989
4163
|
intensity: z.ZodDefault<z.ZodNumber>;
|
|
2990
|
-
color: z.ZodDefault<z.ZodString
|
|
4164
|
+
color: z.ZodDefault<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2991
4165
|
}, "strict", z.ZodTypeAny, {
|
|
2992
4166
|
type: "vignette";
|
|
2993
4167
|
color: string;
|
|
@@ -3003,7 +4177,7 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3003
4177
|
angle: z.ZodDefault<z.ZodNumber>;
|
|
3004
4178
|
stops: z.ZodArray<z.ZodObject<{
|
|
3005
4179
|
offset: z.ZodNumber;
|
|
3006
|
-
color: z.ZodString
|
|
4180
|
+
color: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
3007
4181
|
}, "strict", z.ZodTypeAny, {
|
|
3008
4182
|
color: string;
|
|
3009
4183
|
offset: number;
|
|
@@ -3029,7 +4203,7 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3029
4203
|
type: z.ZodLiteral<"radial">;
|
|
3030
4204
|
stops: z.ZodArray<z.ZodObject<{
|
|
3031
4205
|
offset: z.ZodNumber;
|
|
3032
|
-
color: z.ZodString
|
|
4206
|
+
color: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
3033
4207
|
}, "strict", z.ZodTypeAny, {
|
|
3034
4208
|
color: string;
|
|
3035
4209
|
offset: number;
|
|
@@ -3092,15 +4266,15 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3092
4266
|
y: z.ZodNumber;
|
|
3093
4267
|
width: z.ZodNumber;
|
|
3094
4268
|
height: z.ZodNumber;
|
|
3095
|
-
fill: z.ZodOptional<z.ZodString
|
|
3096
|
-
stroke: z.ZodOptional<z.ZodString
|
|
4269
|
+
fill: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
4270
|
+
stroke: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3097
4271
|
strokeWidth: z.ZodDefault<z.ZodNumber>;
|
|
3098
4272
|
radius: z.ZodDefault<z.ZodNumber>;
|
|
3099
4273
|
opacity: z.ZodDefault<z.ZodNumber>;
|
|
3100
4274
|
}, "strict", z.ZodTypeAny, {
|
|
3101
|
-
type: "rect";
|
|
3102
4275
|
width: number;
|
|
3103
4276
|
height: number;
|
|
4277
|
+
type: "rect";
|
|
3104
4278
|
opacity: number;
|
|
3105
4279
|
strokeWidth: number;
|
|
3106
4280
|
x: number;
|
|
@@ -3109,23 +4283,23 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3109
4283
|
fill?: string | undefined;
|
|
3110
4284
|
stroke?: string | undefined;
|
|
3111
4285
|
}, {
|
|
3112
|
-
type: "rect";
|
|
3113
4286
|
width: number;
|
|
3114
4287
|
height: number;
|
|
4288
|
+
type: "rect";
|
|
3115
4289
|
x: number;
|
|
3116
4290
|
y: number;
|
|
3117
4291
|
fill?: string | undefined;
|
|
3118
4292
|
opacity?: number | undefined;
|
|
3119
|
-
stroke?: string | undefined;
|
|
3120
4293
|
strokeWidth?: number | undefined;
|
|
4294
|
+
stroke?: string | undefined;
|
|
3121
4295
|
radius?: number | undefined;
|
|
3122
4296
|
}>, z.ZodObject<{
|
|
3123
4297
|
type: z.ZodLiteral<"circle">;
|
|
3124
4298
|
cx: z.ZodNumber;
|
|
3125
4299
|
cy: z.ZodNumber;
|
|
3126
4300
|
radius: z.ZodNumber;
|
|
3127
|
-
fill: z.ZodOptional<z.ZodString
|
|
3128
|
-
stroke: z.ZodOptional<z.ZodString
|
|
4301
|
+
fill: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
4302
|
+
stroke: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3129
4303
|
strokeWidth: z.ZodDefault<z.ZodNumber>;
|
|
3130
4304
|
opacity: z.ZodDefault<z.ZodNumber>;
|
|
3131
4305
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -3144,8 +4318,8 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3144
4318
|
cy: number;
|
|
3145
4319
|
fill?: string | undefined;
|
|
3146
4320
|
opacity?: number | undefined;
|
|
3147
|
-
stroke?: string | undefined;
|
|
3148
4321
|
strokeWidth?: number | undefined;
|
|
4322
|
+
stroke?: string | undefined;
|
|
3149
4323
|
}>, z.ZodObject<{
|
|
3150
4324
|
type: z.ZodLiteral<"text">;
|
|
3151
4325
|
x: z.ZodNumber;
|
|
@@ -3154,7 +4328,7 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3154
4328
|
fontSize: z.ZodDefault<z.ZodNumber>;
|
|
3155
4329
|
fontWeight: z.ZodDefault<z.ZodNumber>;
|
|
3156
4330
|
fontFamily: z.ZodDefault<z.ZodEnum<["heading", "body", "mono"]>>;
|
|
3157
|
-
color: z.ZodDefault<z.ZodString
|
|
4331
|
+
color: z.ZodDefault<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3158
4332
|
align: z.ZodDefault<z.ZodEnum<["left", "center", "right"]>>;
|
|
3159
4333
|
baseline: z.ZodDefault<z.ZodEnum<["top", "middle", "alphabetic", "bottom"]>>;
|
|
3160
4334
|
letterSpacing: z.ZodDefault<z.ZodNumber>;
|
|
@@ -3164,14 +4338,14 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3164
4338
|
type: "text";
|
|
3165
4339
|
color: string;
|
|
3166
4340
|
opacity: number;
|
|
3167
|
-
fontSize: number;
|
|
3168
4341
|
text: string;
|
|
3169
|
-
|
|
4342
|
+
fontSize: number;
|
|
4343
|
+
align: "center" | "left" | "right";
|
|
3170
4344
|
x: number;
|
|
3171
4345
|
y: number;
|
|
3172
4346
|
fontWeight: number;
|
|
3173
4347
|
fontFamily: "body" | "heading" | "mono";
|
|
3174
|
-
baseline: "
|
|
4348
|
+
baseline: "top" | "alphabetic" | "bottom" | "middle";
|
|
3175
4349
|
letterSpacing: number;
|
|
3176
4350
|
maxWidth?: number | undefined;
|
|
3177
4351
|
}, {
|
|
@@ -3182,10 +4356,10 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3182
4356
|
color?: string | undefined;
|
|
3183
4357
|
opacity?: number | undefined;
|
|
3184
4358
|
fontSize?: number | undefined;
|
|
3185
|
-
align?: "
|
|
4359
|
+
align?: "center" | "left" | "right" | undefined;
|
|
3186
4360
|
fontWeight?: number | undefined;
|
|
3187
4361
|
fontFamily?: "body" | "heading" | "mono" | undefined;
|
|
3188
|
-
baseline?: "
|
|
4362
|
+
baseline?: "top" | "alphabetic" | "bottom" | "middle" | undefined;
|
|
3189
4363
|
letterSpacing?: number | undefined;
|
|
3190
4364
|
maxWidth?: number | undefined;
|
|
3191
4365
|
}>, z.ZodObject<{
|
|
@@ -3194,16 +4368,16 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3194
4368
|
y1: z.ZodNumber;
|
|
3195
4369
|
x2: z.ZodNumber;
|
|
3196
4370
|
y2: z.ZodNumber;
|
|
3197
|
-
color: z.ZodDefault<z.ZodString
|
|
4371
|
+
color: z.ZodDefault<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3198
4372
|
width: z.ZodDefault<z.ZodNumber>;
|
|
3199
4373
|
dash: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
3200
4374
|
arrow: z.ZodDefault<z.ZodEnum<["none", "end", "start", "both"]>>;
|
|
3201
4375
|
arrowSize: z.ZodDefault<z.ZodNumber>;
|
|
3202
4376
|
opacity: z.ZodDefault<z.ZodNumber>;
|
|
3203
4377
|
}, "strict", z.ZodTypeAny, {
|
|
4378
|
+
width: number;
|
|
3204
4379
|
type: "line";
|
|
3205
4380
|
color: string;
|
|
3206
|
-
width: number;
|
|
3207
4381
|
opacity: number;
|
|
3208
4382
|
arrow: "end" | "start" | "both" | "none";
|
|
3209
4383
|
arrowSize: number;
|
|
@@ -3218,8 +4392,8 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3218
4392
|
y1: number;
|
|
3219
4393
|
x2: number;
|
|
3220
4394
|
y2: number;
|
|
3221
|
-
color?: string | undefined;
|
|
3222
4395
|
width?: number | undefined;
|
|
4396
|
+
color?: string | undefined;
|
|
3223
4397
|
opacity?: number | undefined;
|
|
3224
4398
|
arrow?: "end" | "start" | "both" | "none" | undefined;
|
|
3225
4399
|
arrowSize?: number | undefined;
|
|
@@ -3236,16 +4410,16 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3236
4410
|
x: number;
|
|
3237
4411
|
y: number;
|
|
3238
4412
|
}>, "many">;
|
|
3239
|
-
color: z.ZodDefault<z.ZodString
|
|
4413
|
+
color: z.ZodDefault<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3240
4414
|
width: z.ZodDefault<z.ZodNumber>;
|
|
3241
4415
|
dash: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
3242
4416
|
arrow: z.ZodDefault<z.ZodEnum<["none", "end", "start", "both"]>>;
|
|
3243
4417
|
arrowSize: z.ZodDefault<z.ZodNumber>;
|
|
3244
4418
|
opacity: z.ZodDefault<z.ZodNumber>;
|
|
3245
4419
|
}, "strict", z.ZodTypeAny, {
|
|
4420
|
+
width: number;
|
|
3246
4421
|
type: "bezier";
|
|
3247
4422
|
color: string;
|
|
3248
|
-
width: number;
|
|
3249
4423
|
opacity: number;
|
|
3250
4424
|
arrow: "end" | "start" | "both" | "none";
|
|
3251
4425
|
arrowSize: number;
|
|
@@ -3260,8 +4434,8 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3260
4434
|
x: number;
|
|
3261
4435
|
y: number;
|
|
3262
4436
|
}[];
|
|
3263
|
-
color?: string | undefined;
|
|
3264
4437
|
width?: number | undefined;
|
|
4438
|
+
color?: string | undefined;
|
|
3265
4439
|
opacity?: number | undefined;
|
|
3266
4440
|
arrow?: "end" | "start" | "both" | "none" | undefined;
|
|
3267
4441
|
arrowSize?: number | undefined;
|
|
@@ -3269,8 +4443,8 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3269
4443
|
}>, z.ZodObject<{
|
|
3270
4444
|
type: z.ZodLiteral<"path">;
|
|
3271
4445
|
d: z.ZodString;
|
|
3272
|
-
fill: z.ZodOptional<z.ZodString
|
|
3273
|
-
stroke: z.ZodOptional<z.ZodString
|
|
4446
|
+
fill: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
4447
|
+
stroke: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3274
4448
|
strokeWidth: z.ZodDefault<z.ZodNumber>;
|
|
3275
4449
|
opacity: z.ZodDefault<z.ZodNumber>;
|
|
3276
4450
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -3285,8 +4459,8 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3285
4459
|
d: string;
|
|
3286
4460
|
fill?: string | undefined;
|
|
3287
4461
|
opacity?: number | undefined;
|
|
3288
|
-
stroke?: string | undefined;
|
|
3289
4462
|
strokeWidth?: number | undefined;
|
|
4463
|
+
stroke?: string | undefined;
|
|
3290
4464
|
}>, z.ZodObject<{
|
|
3291
4465
|
type: z.ZodLiteral<"badge">;
|
|
3292
4466
|
x: z.ZodNumber;
|
|
@@ -3294,8 +4468,8 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3294
4468
|
text: z.ZodString;
|
|
3295
4469
|
fontSize: z.ZodDefault<z.ZodNumber>;
|
|
3296
4470
|
fontFamily: z.ZodDefault<z.ZodEnum<["heading", "body", "mono"]>>;
|
|
3297
|
-
color: z.ZodDefault<z.ZodString
|
|
3298
|
-
background: z.ZodDefault<z.ZodString
|
|
4471
|
+
color: z.ZodDefault<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
4472
|
+
background: z.ZodDefault<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3299
4473
|
paddingX: z.ZodDefault<z.ZodNumber>;
|
|
3300
4474
|
paddingY: z.ZodDefault<z.ZodNumber>;
|
|
3301
4475
|
borderRadius: z.ZodDefault<z.ZodNumber>;
|
|
@@ -3304,12 +4478,12 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3304
4478
|
type: "badge";
|
|
3305
4479
|
color: string;
|
|
3306
4480
|
opacity: number;
|
|
3307
|
-
|
|
4481
|
+
background: string;
|
|
3308
4482
|
text: string;
|
|
4483
|
+
fontSize: number;
|
|
3309
4484
|
borderRadius: number;
|
|
3310
4485
|
x: number;
|
|
3311
4486
|
y: number;
|
|
3312
|
-
background: string;
|
|
3313
4487
|
fontFamily: "body" | "heading" | "mono";
|
|
3314
4488
|
paddingX: number;
|
|
3315
4489
|
paddingY: number;
|
|
@@ -3320,9 +4494,9 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3320
4494
|
y: number;
|
|
3321
4495
|
color?: string | undefined;
|
|
3322
4496
|
opacity?: number | undefined;
|
|
4497
|
+
background?: string | undefined;
|
|
3323
4498
|
fontSize?: number | undefined;
|
|
3324
4499
|
borderRadius?: number | undefined;
|
|
3325
|
-
background?: string | undefined;
|
|
3326
4500
|
fontFamily?: "body" | "heading" | "mono" | undefined;
|
|
3327
4501
|
paddingX?: number | undefined;
|
|
3328
4502
|
paddingY?: number | undefined;
|
|
@@ -3337,7 +4511,7 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3337
4511
|
angle: z.ZodDefault<z.ZodNumber>;
|
|
3338
4512
|
stops: z.ZodArray<z.ZodObject<{
|
|
3339
4513
|
offset: z.ZodNumber;
|
|
3340
|
-
color: z.ZodString
|
|
4514
|
+
color: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
3341
4515
|
}, "strict", z.ZodTypeAny, {
|
|
3342
4516
|
color: string;
|
|
3343
4517
|
offset: number;
|
|
@@ -3363,7 +4537,7 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3363
4537
|
type: z.ZodLiteral<"radial">;
|
|
3364
4538
|
stops: z.ZodArray<z.ZodObject<{
|
|
3365
4539
|
offset: z.ZodNumber;
|
|
3366
|
-
color: z.ZodString
|
|
4540
|
+
color: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
3367
4541
|
}, "strict", z.ZodTypeAny, {
|
|
3368
4542
|
color: string;
|
|
3369
4543
|
offset: number;
|
|
@@ -3387,9 +4561,9 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3387
4561
|
radius: z.ZodDefault<z.ZodNumber>;
|
|
3388
4562
|
opacity: z.ZodDefault<z.ZodNumber>;
|
|
3389
4563
|
}, "strict", z.ZodTypeAny, {
|
|
3390
|
-
type: "gradient-rect";
|
|
3391
4564
|
width: number;
|
|
3392
4565
|
height: number;
|
|
4566
|
+
type: "gradient-rect";
|
|
3393
4567
|
opacity: number;
|
|
3394
4568
|
x: number;
|
|
3395
4569
|
y: number;
|
|
@@ -3409,9 +4583,9 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3409
4583
|
}[];
|
|
3410
4584
|
};
|
|
3411
4585
|
}, {
|
|
3412
|
-
type: "gradient-rect";
|
|
3413
4586
|
width: number;
|
|
3414
4587
|
height: number;
|
|
4588
|
+
type: "gradient-rect";
|
|
3415
4589
|
x: number;
|
|
3416
4590
|
y: number;
|
|
3417
4591
|
gradient: {
|
|
@@ -3439,6 +4613,25 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3439
4613
|
rankSpacing: z.ZodDefault<z.ZodNumber>;
|
|
3440
4614
|
edgeRouting: z.ZodDefault<z.ZodEnum<["orthogonal", "polyline", "spline"]>>;
|
|
3441
4615
|
aspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
4616
|
+
/** ID of the root node for radial layout. Only relevant when algorithm is 'radial'. */
|
|
4617
|
+
radialRoot: z.ZodOptional<z.ZodString>;
|
|
4618
|
+
/** Fixed radius in pixels for radial layout. Only relevant when algorithm is 'radial'. */
|
|
4619
|
+
radialRadius: z.ZodOptional<z.ZodNumber>;
|
|
4620
|
+
/** Compaction strategy for radial layout. Only relevant when algorithm is 'radial'. */
|
|
4621
|
+
radialCompaction: z.ZodOptional<z.ZodEnum<["none", "radial", "wedge"]>>;
|
|
4622
|
+
/** Sort strategy for radial layout node ordering. Only relevant when algorithm is 'radial'. */
|
|
4623
|
+
radialSortBy: z.ZodOptional<z.ZodEnum<["id", "connections"]>>;
|
|
4624
|
+
/** Explicit center used by curve/arc connection routing. */
|
|
4625
|
+
diagramCenter: z.ZodOptional<z.ZodObject<{
|
|
4626
|
+
x: z.ZodNumber;
|
|
4627
|
+
y: z.ZodNumber;
|
|
4628
|
+
}, "strict", z.ZodTypeAny, {
|
|
4629
|
+
x: number;
|
|
4630
|
+
y: number;
|
|
4631
|
+
}, {
|
|
4632
|
+
x: number;
|
|
4633
|
+
y: number;
|
|
4634
|
+
}>>;
|
|
3442
4635
|
}, "strict", z.ZodTypeAny, {
|
|
3443
4636
|
mode: "auto";
|
|
3444
4637
|
direction: "TB" | "BT" | "LR" | "RL";
|
|
@@ -3446,15 +4639,31 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3446
4639
|
nodeSpacing: number;
|
|
3447
4640
|
rankSpacing: number;
|
|
3448
4641
|
edgeRouting: "orthogonal" | "polyline" | "spline";
|
|
4642
|
+
diagramCenter?: {
|
|
4643
|
+
x: number;
|
|
4644
|
+
y: number;
|
|
4645
|
+
} | undefined;
|
|
3449
4646
|
aspectRatio?: number | undefined;
|
|
4647
|
+
radialRoot?: string | undefined;
|
|
4648
|
+
radialRadius?: number | undefined;
|
|
4649
|
+
radialCompaction?: "none" | "radial" | "wedge" | undefined;
|
|
4650
|
+
radialSortBy?: "id" | "connections" | undefined;
|
|
3450
4651
|
}, {
|
|
3451
4652
|
mode: "auto";
|
|
3452
4653
|
direction?: "TB" | "BT" | "LR" | "RL" | undefined;
|
|
4654
|
+
diagramCenter?: {
|
|
4655
|
+
x: number;
|
|
4656
|
+
y: number;
|
|
4657
|
+
} | undefined;
|
|
3453
4658
|
algorithm?: "box" | "layered" | "stress" | "force" | "radial" | undefined;
|
|
3454
4659
|
nodeSpacing?: number | undefined;
|
|
3455
4660
|
rankSpacing?: number | undefined;
|
|
3456
4661
|
edgeRouting?: "orthogonal" | "polyline" | "spline" | undefined;
|
|
3457
4662
|
aspectRatio?: number | undefined;
|
|
4663
|
+
radialRoot?: string | undefined;
|
|
4664
|
+
radialRadius?: number | undefined;
|
|
4665
|
+
radialCompaction?: "none" | "radial" | "wedge" | undefined;
|
|
4666
|
+
radialSortBy?: "id" | "connections" | undefined;
|
|
3458
4667
|
}>, z.ZodObject<{
|
|
3459
4668
|
mode: z.ZodLiteral<"grid">;
|
|
3460
4669
|
columns: z.ZodDefault<z.ZodNumber>;
|
|
@@ -3462,16 +4671,35 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3462
4671
|
cardMinHeight: z.ZodOptional<z.ZodNumber>;
|
|
3463
4672
|
cardMaxHeight: z.ZodOptional<z.ZodNumber>;
|
|
3464
4673
|
equalHeight: z.ZodDefault<z.ZodBoolean>;
|
|
4674
|
+
/** Explicit center used by curve/arc connection routing. */
|
|
4675
|
+
diagramCenter: z.ZodOptional<z.ZodObject<{
|
|
4676
|
+
x: z.ZodNumber;
|
|
4677
|
+
y: z.ZodNumber;
|
|
4678
|
+
}, "strict", z.ZodTypeAny, {
|
|
4679
|
+
x: number;
|
|
4680
|
+
y: number;
|
|
4681
|
+
}, {
|
|
4682
|
+
x: number;
|
|
4683
|
+
y: number;
|
|
4684
|
+
}>>;
|
|
3465
4685
|
}, "strict", z.ZodTypeAny, {
|
|
3466
4686
|
mode: "grid";
|
|
3467
4687
|
gap: number;
|
|
3468
4688
|
columns: number;
|
|
3469
4689
|
equalHeight: boolean;
|
|
4690
|
+
diagramCenter?: {
|
|
4691
|
+
x: number;
|
|
4692
|
+
y: number;
|
|
4693
|
+
} | undefined;
|
|
3470
4694
|
cardMinHeight?: number | undefined;
|
|
3471
4695
|
cardMaxHeight?: number | undefined;
|
|
3472
4696
|
}, {
|
|
3473
4697
|
mode: "grid";
|
|
3474
4698
|
gap?: number | undefined;
|
|
4699
|
+
diagramCenter?: {
|
|
4700
|
+
x: number;
|
|
4701
|
+
y: number;
|
|
4702
|
+
} | undefined;
|
|
3475
4703
|
columns?: number | undefined;
|
|
3476
4704
|
cardMinHeight?: number | undefined;
|
|
3477
4705
|
cardMaxHeight?: number | undefined;
|
|
@@ -3481,16 +4709,35 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3481
4709
|
direction: z.ZodDefault<z.ZodEnum<["vertical", "horizontal"]>>;
|
|
3482
4710
|
gap: z.ZodDefault<z.ZodNumber>;
|
|
3483
4711
|
alignment: z.ZodDefault<z.ZodEnum<["start", "center", "end", "stretch"]>>;
|
|
4712
|
+
/** Explicit center used by curve/arc connection routing. */
|
|
4713
|
+
diagramCenter: z.ZodOptional<z.ZodObject<{
|
|
4714
|
+
x: z.ZodNumber;
|
|
4715
|
+
y: z.ZodNumber;
|
|
4716
|
+
}, "strict", z.ZodTypeAny, {
|
|
4717
|
+
x: number;
|
|
4718
|
+
y: number;
|
|
4719
|
+
}, {
|
|
4720
|
+
x: number;
|
|
4721
|
+
y: number;
|
|
4722
|
+
}>>;
|
|
3484
4723
|
}, "strict", z.ZodTypeAny, {
|
|
3485
4724
|
mode: "stack";
|
|
3486
4725
|
direction: "vertical" | "horizontal";
|
|
3487
4726
|
gap: number;
|
|
3488
4727
|
alignment: "end" | "start" | "center" | "stretch";
|
|
4728
|
+
diagramCenter?: {
|
|
4729
|
+
x: number;
|
|
4730
|
+
y: number;
|
|
4731
|
+
} | undefined;
|
|
3489
4732
|
}, {
|
|
3490
4733
|
mode: "stack";
|
|
3491
4734
|
direction?: "vertical" | "horizontal" | undefined;
|
|
3492
4735
|
gap?: number | undefined;
|
|
3493
4736
|
alignment?: "end" | "start" | "center" | "stretch" | undefined;
|
|
4737
|
+
diagramCenter?: {
|
|
4738
|
+
x: number;
|
|
4739
|
+
y: number;
|
|
4740
|
+
} | undefined;
|
|
3494
4741
|
}>, z.ZodObject<{
|
|
3495
4742
|
mode: z.ZodLiteral<"manual">;
|
|
3496
4743
|
positions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -3509,6 +4756,17 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3509
4756
|
width?: number | undefined;
|
|
3510
4757
|
height?: number | undefined;
|
|
3511
4758
|
}>>>;
|
|
4759
|
+
/** Explicit center used by curve/arc connection routing. */
|
|
4760
|
+
diagramCenter: z.ZodOptional<z.ZodObject<{
|
|
4761
|
+
x: z.ZodNumber;
|
|
4762
|
+
y: z.ZodNumber;
|
|
4763
|
+
}, "strict", z.ZodTypeAny, {
|
|
4764
|
+
x: number;
|
|
4765
|
+
y: number;
|
|
4766
|
+
}, {
|
|
4767
|
+
x: number;
|
|
4768
|
+
y: number;
|
|
4769
|
+
}>>;
|
|
3512
4770
|
}, "strict", z.ZodTypeAny, {
|
|
3513
4771
|
mode: "manual";
|
|
3514
4772
|
positions: Record<string, {
|
|
@@ -3517,8 +4775,16 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3517
4775
|
width?: number | undefined;
|
|
3518
4776
|
height?: number | undefined;
|
|
3519
4777
|
}>;
|
|
4778
|
+
diagramCenter?: {
|
|
4779
|
+
x: number;
|
|
4780
|
+
y: number;
|
|
4781
|
+
} | undefined;
|
|
3520
4782
|
}, {
|
|
3521
4783
|
mode: "manual";
|
|
4784
|
+
diagramCenter?: {
|
|
4785
|
+
x: number;
|
|
4786
|
+
y: number;
|
|
4787
|
+
} | undefined;
|
|
3522
4788
|
positions?: Record<string, {
|
|
3523
4789
|
x: number;
|
|
3524
4790
|
y: number;
|
|
@@ -3543,45 +4809,10 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3543
4809
|
maxTextTruncation?: number | undefined;
|
|
3544
4810
|
}>>;
|
|
3545
4811
|
}, "strict", z.ZodTypeAny, {
|
|
3546
|
-
theme: {
|
|
3547
|
-
code: {
|
|
3548
|
-
string: string;
|
|
3549
|
-
number: string;
|
|
3550
|
-
function: string;
|
|
3551
|
-
text: string;
|
|
3552
|
-
background: string;
|
|
3553
|
-
comment: string;
|
|
3554
|
-
keyword: string;
|
|
3555
|
-
variable: string;
|
|
3556
|
-
operator: string;
|
|
3557
|
-
punctuation: string;
|
|
3558
|
-
};
|
|
3559
|
-
accent: string;
|
|
3560
|
-
success: string;
|
|
3561
|
-
warning: string;
|
|
3562
|
-
error: string;
|
|
3563
|
-
text: string;
|
|
3564
|
-
background: string;
|
|
3565
|
-
surface: string;
|
|
3566
|
-
surfaceMuted: string;
|
|
3567
|
-
surfaceElevated: string;
|
|
3568
|
-
textMuted: string;
|
|
3569
|
-
textInverse: string;
|
|
3570
|
-
primary: string;
|
|
3571
|
-
secondary: string;
|
|
3572
|
-
info: string;
|
|
3573
|
-
border: string;
|
|
3574
|
-
borderMuted: string;
|
|
3575
|
-
fonts: {
|
|
3576
|
-
body: string;
|
|
3577
|
-
heading: string;
|
|
3578
|
-
mono: string;
|
|
3579
|
-
};
|
|
3580
|
-
} | "dracula" | "github-dark" | "nord" | "dark" | "light" | "one-dark";
|
|
3581
4812
|
draw: ({
|
|
3582
|
-
type: "rect";
|
|
3583
4813
|
width: number;
|
|
3584
4814
|
height: number;
|
|
4815
|
+
type: "rect";
|
|
3585
4816
|
opacity: number;
|
|
3586
4817
|
strokeWidth: number;
|
|
3587
4818
|
x: number;
|
|
@@ -3602,20 +4833,20 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3602
4833
|
type: "text";
|
|
3603
4834
|
color: string;
|
|
3604
4835
|
opacity: number;
|
|
3605
|
-
fontSize: number;
|
|
3606
4836
|
text: string;
|
|
3607
|
-
|
|
4837
|
+
fontSize: number;
|
|
4838
|
+
align: "center" | "left" | "right";
|
|
3608
4839
|
x: number;
|
|
3609
4840
|
y: number;
|
|
3610
4841
|
fontWeight: number;
|
|
3611
4842
|
fontFamily: "body" | "heading" | "mono";
|
|
3612
|
-
baseline: "
|
|
4843
|
+
baseline: "top" | "alphabetic" | "bottom" | "middle";
|
|
3613
4844
|
letterSpacing: number;
|
|
3614
4845
|
maxWidth?: number | undefined;
|
|
3615
4846
|
} | {
|
|
4847
|
+
width: number;
|
|
3616
4848
|
type: "line";
|
|
3617
4849
|
color: string;
|
|
3618
|
-
width: number;
|
|
3619
4850
|
opacity: number;
|
|
3620
4851
|
arrow: "end" | "start" | "both" | "none";
|
|
3621
4852
|
arrowSize: number;
|
|
@@ -3625,9 +4856,9 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3625
4856
|
y2: number;
|
|
3626
4857
|
dash?: number[] | undefined;
|
|
3627
4858
|
} | {
|
|
4859
|
+
width: number;
|
|
3628
4860
|
type: "bezier";
|
|
3629
4861
|
color: string;
|
|
3630
|
-
width: number;
|
|
3631
4862
|
opacity: number;
|
|
3632
4863
|
arrow: "end" | "start" | "both" | "none";
|
|
3633
4864
|
arrowSize: number;
|
|
@@ -3647,19 +4878,19 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3647
4878
|
type: "badge";
|
|
3648
4879
|
color: string;
|
|
3649
4880
|
opacity: number;
|
|
3650
|
-
|
|
4881
|
+
background: string;
|
|
3651
4882
|
text: string;
|
|
4883
|
+
fontSize: number;
|
|
3652
4884
|
borderRadius: number;
|
|
3653
4885
|
x: number;
|
|
3654
4886
|
y: number;
|
|
3655
|
-
background: string;
|
|
3656
4887
|
fontFamily: "body" | "heading" | "mono";
|
|
3657
4888
|
paddingX: number;
|
|
3658
4889
|
paddingY: number;
|
|
3659
4890
|
} | {
|
|
3660
|
-
type: "gradient-rect";
|
|
3661
4891
|
width: number;
|
|
3662
4892
|
height: number;
|
|
4893
|
+
type: "gradient-rect";
|
|
3663
4894
|
opacity: number;
|
|
3664
4895
|
x: number;
|
|
3665
4896
|
y: number;
|
|
@@ -3679,6 +4910,41 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3679
4910
|
}[];
|
|
3680
4911
|
};
|
|
3681
4912
|
})[];
|
|
4913
|
+
theme: {
|
|
4914
|
+
code: {
|
|
4915
|
+
string: string;
|
|
4916
|
+
number: string;
|
|
4917
|
+
function: string;
|
|
4918
|
+
background: string;
|
|
4919
|
+
text: string;
|
|
4920
|
+
comment: string;
|
|
4921
|
+
keyword: string;
|
|
4922
|
+
variable: string;
|
|
4923
|
+
operator: string;
|
|
4924
|
+
punctuation: string;
|
|
4925
|
+
};
|
|
4926
|
+
background: string;
|
|
4927
|
+
surface: string;
|
|
4928
|
+
surfaceMuted: string;
|
|
4929
|
+
surfaceElevated: string;
|
|
4930
|
+
text: string;
|
|
4931
|
+
textMuted: string;
|
|
4932
|
+
textInverse: string;
|
|
4933
|
+
primary: string;
|
|
4934
|
+
secondary: string;
|
|
4935
|
+
accent: string;
|
|
4936
|
+
success: string;
|
|
4937
|
+
warning: string;
|
|
4938
|
+
error: string;
|
|
4939
|
+
info: string;
|
|
4940
|
+
border: string;
|
|
4941
|
+
borderMuted: string;
|
|
4942
|
+
fonts: {
|
|
4943
|
+
body: string;
|
|
4944
|
+
heading: string;
|
|
4945
|
+
mono: string;
|
|
4946
|
+
};
|
|
4947
|
+
} | "dracula" | "github-dark" | "nord" | "dark" | "light" | "one-dark";
|
|
3682
4948
|
version: 2;
|
|
3683
4949
|
canvas: {
|
|
3684
4950
|
width: number;
|
|
@@ -3686,41 +4952,60 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3686
4952
|
padding: number;
|
|
3687
4953
|
};
|
|
3688
4954
|
elements: ({
|
|
3689
|
-
body: string;
|
|
3690
|
-
type: "card";
|
|
3691
|
-
id: string;
|
|
3692
|
-
title: string;
|
|
3693
|
-
tone: "neutral" | "accent" | "success" | "warning" | "error";
|
|
3694
|
-
badge?: string | undefined;
|
|
3695
|
-
metric?: string | undefined;
|
|
3696
|
-
icon?: string | undefined;
|
|
3697
|
-
} | {
|
|
3698
4955
|
type: "flow-node";
|
|
3699
4956
|
id: string;
|
|
3700
|
-
shape: "box" | "rounded-box" | "diamond" | "circle" | "pill" | "cylinder" | "parallelogram";
|
|
4957
|
+
shape: "box" | "rounded-box" | "diamond" | "circle" | "pill" | "cylinder" | "parallelogram" | "hexagon";
|
|
3701
4958
|
label: string;
|
|
4959
|
+
fillOpacity: number;
|
|
3702
4960
|
opacity: number;
|
|
4961
|
+
badgePosition: "top" | "inside-top";
|
|
4962
|
+
width?: number | undefined;
|
|
4963
|
+
height?: number | undefined;
|
|
3703
4964
|
sublabel?: string | undefined;
|
|
3704
4965
|
sublabelColor?: string | undefined;
|
|
4966
|
+
sublabel2?: string | undefined;
|
|
4967
|
+
sublabel2Color?: string | undefined;
|
|
4968
|
+
sublabel2FontSize?: number | undefined;
|
|
3705
4969
|
labelColor?: string | undefined;
|
|
3706
4970
|
labelFontSize?: number | undefined;
|
|
3707
4971
|
color?: string | undefined;
|
|
3708
4972
|
borderColor?: string | undefined;
|
|
3709
4973
|
borderWidth?: number | undefined;
|
|
3710
4974
|
cornerRadius?: number | undefined;
|
|
3711
|
-
|
|
3712
|
-
|
|
4975
|
+
badgeText?: string | undefined;
|
|
4976
|
+
badgeColor?: string | undefined;
|
|
4977
|
+
badgeBackground?: string | undefined;
|
|
4978
|
+
shadow?: {
|
|
4979
|
+
opacity: number;
|
|
4980
|
+
blur: number;
|
|
4981
|
+
offsetX: number;
|
|
4982
|
+
offsetY: number;
|
|
4983
|
+
color?: string | undefined;
|
|
4984
|
+
} | undefined;
|
|
4985
|
+
} | {
|
|
4986
|
+
body: string;
|
|
4987
|
+
type: "card";
|
|
4988
|
+
id: string;
|
|
4989
|
+
title: string;
|
|
4990
|
+
tone: "accent" | "success" | "warning" | "error" | "neutral";
|
|
4991
|
+
badge?: string | undefined;
|
|
4992
|
+
metric?: string | undefined;
|
|
4993
|
+
icon?: string | undefined;
|
|
3713
4994
|
} | {
|
|
3714
4995
|
type: "connection";
|
|
3715
4996
|
opacity: number;
|
|
3716
4997
|
from: string;
|
|
3717
4998
|
to: string;
|
|
3718
4999
|
style: "solid" | "dashed" | "dotted";
|
|
5000
|
+
strokeStyle: "solid" | "dashed" | "dotted";
|
|
3719
5001
|
arrow: "end" | "start" | "both" | "none";
|
|
3720
5002
|
labelPosition: "end" | "start" | "middle";
|
|
5003
|
+
strokeWidth: number;
|
|
5004
|
+
routing: "auto" | "orthogonal" | "curve" | "arc";
|
|
5005
|
+
tension: number;
|
|
5006
|
+
width?: number | undefined;
|
|
3721
5007
|
label?: string | undefined;
|
|
3722
5008
|
color?: string | undefined;
|
|
3723
|
-
width?: number | undefined;
|
|
3724
5009
|
arrowSize?: number | undefined;
|
|
3725
5010
|
} | {
|
|
3726
5011
|
type: "code-block";
|
|
@@ -3766,22 +5051,22 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3766
5051
|
} | {
|
|
3767
5052
|
type: "text";
|
|
3768
5053
|
id: string;
|
|
3769
|
-
style: "body" | "
|
|
5054
|
+
style: "body" | "heading" | "code" | "subheading" | "caption";
|
|
3770
5055
|
content: string;
|
|
3771
|
-
align: "
|
|
5056
|
+
align: "center" | "left" | "right";
|
|
3772
5057
|
color?: string | undefined;
|
|
3773
5058
|
} | {
|
|
3774
5059
|
type: "shape";
|
|
3775
5060
|
id: string;
|
|
3776
|
-
shape: "circle" | "arrow" | "rectangle" | "rounded-rectangle" | "ellipse"
|
|
5061
|
+
shape: "line" | "circle" | "arrow" | "rectangle" | "rounded-rectangle" | "ellipse";
|
|
3777
5062
|
strokeWidth: number;
|
|
3778
5063
|
fill?: string | undefined;
|
|
3779
5064
|
stroke?: string | undefined;
|
|
3780
5065
|
} | {
|
|
5066
|
+
fit: "contain" | "cover" | "fill" | "none";
|
|
3781
5067
|
type: "image";
|
|
3782
5068
|
id: string;
|
|
3783
5069
|
src: string;
|
|
3784
|
-
fit: "fill" | "none" | "contain" | "cover";
|
|
3785
5070
|
borderRadius: number;
|
|
3786
5071
|
alt?: string | undefined;
|
|
3787
5072
|
})[];
|
|
@@ -3836,7 +5121,7 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3836
5121
|
} | undefined;
|
|
3837
5122
|
header?: {
|
|
3838
5123
|
title: string;
|
|
3839
|
-
align: "
|
|
5124
|
+
align: "center" | "left" | "right";
|
|
3840
5125
|
titleLetterSpacing: number;
|
|
3841
5126
|
eyebrow?: string | undefined;
|
|
3842
5127
|
subtitle?: string | undefined;
|
|
@@ -3851,6 +5136,10 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3851
5136
|
direction: "vertical" | "horizontal";
|
|
3852
5137
|
gap: number;
|
|
3853
5138
|
alignment: "end" | "start" | "center" | "stretch";
|
|
5139
|
+
diagramCenter?: {
|
|
5140
|
+
x: number;
|
|
5141
|
+
y: number;
|
|
5142
|
+
} | undefined;
|
|
3854
5143
|
} | {
|
|
3855
5144
|
mode: "auto";
|
|
3856
5145
|
direction: "TB" | "BT" | "LR" | "RL";
|
|
@@ -3858,12 +5147,24 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3858
5147
|
nodeSpacing: number;
|
|
3859
5148
|
rankSpacing: number;
|
|
3860
5149
|
edgeRouting: "orthogonal" | "polyline" | "spline";
|
|
5150
|
+
diagramCenter?: {
|
|
5151
|
+
x: number;
|
|
5152
|
+
y: number;
|
|
5153
|
+
} | undefined;
|
|
3861
5154
|
aspectRatio?: number | undefined;
|
|
5155
|
+
radialRoot?: string | undefined;
|
|
5156
|
+
radialRadius?: number | undefined;
|
|
5157
|
+
radialCompaction?: "none" | "radial" | "wedge" | undefined;
|
|
5158
|
+
radialSortBy?: "id" | "connections" | undefined;
|
|
3862
5159
|
} | {
|
|
3863
5160
|
mode: "grid";
|
|
3864
5161
|
gap: number;
|
|
3865
5162
|
columns: number;
|
|
3866
5163
|
equalHeight: boolean;
|
|
5164
|
+
diagramCenter?: {
|
|
5165
|
+
x: number;
|
|
5166
|
+
y: number;
|
|
5167
|
+
} | undefined;
|
|
3867
5168
|
cardMinHeight?: number | undefined;
|
|
3868
5169
|
cardMaxHeight?: number | undefined;
|
|
3869
5170
|
} | {
|
|
@@ -3874,43 +5175,12 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3874
5175
|
width?: number | undefined;
|
|
3875
5176
|
height?: number | undefined;
|
|
3876
5177
|
}>;
|
|
5178
|
+
diagramCenter?: {
|
|
5179
|
+
x: number;
|
|
5180
|
+
y: number;
|
|
5181
|
+
} | undefined;
|
|
3877
5182
|
} | undefined;
|
|
3878
5183
|
}, {
|
|
3879
|
-
theme?: {
|
|
3880
|
-
code: {
|
|
3881
|
-
string: string;
|
|
3882
|
-
number: string;
|
|
3883
|
-
function: string;
|
|
3884
|
-
text: string;
|
|
3885
|
-
background: string;
|
|
3886
|
-
comment: string;
|
|
3887
|
-
keyword: string;
|
|
3888
|
-
variable: string;
|
|
3889
|
-
operator: string;
|
|
3890
|
-
punctuation: string;
|
|
3891
|
-
};
|
|
3892
|
-
accent: string;
|
|
3893
|
-
success: string;
|
|
3894
|
-
warning: string;
|
|
3895
|
-
error: string;
|
|
3896
|
-
text: string;
|
|
3897
|
-
background: string;
|
|
3898
|
-
surface: string;
|
|
3899
|
-
surfaceMuted: string;
|
|
3900
|
-
surfaceElevated: string;
|
|
3901
|
-
textMuted: string;
|
|
3902
|
-
textInverse: string;
|
|
3903
|
-
primary: string;
|
|
3904
|
-
secondary: string;
|
|
3905
|
-
info: string;
|
|
3906
|
-
border: string;
|
|
3907
|
-
borderMuted: string;
|
|
3908
|
-
fonts: {
|
|
3909
|
-
body: string;
|
|
3910
|
-
heading: string;
|
|
3911
|
-
mono: string;
|
|
3912
|
-
};
|
|
3913
|
-
} | "dracula" | "github-dark" | "nord" | "dark" | "light" | "one-dark" | undefined;
|
|
3914
5184
|
background?: string | {
|
|
3915
5185
|
type: "linear";
|
|
3916
5186
|
stops: {
|
|
@@ -3927,7 +5197,7 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3927
5197
|
} | undefined;
|
|
3928
5198
|
header?: {
|
|
3929
5199
|
title: string;
|
|
3930
|
-
align?: "
|
|
5200
|
+
align?: "center" | "left" | "right" | undefined;
|
|
3931
5201
|
eyebrow?: string | undefined;
|
|
3932
5202
|
subtitle?: string | undefined;
|
|
3933
5203
|
titleLetterSpacing?: number | undefined;
|
|
@@ -3938,15 +5208,15 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3938
5208
|
tagline?: string | undefined;
|
|
3939
5209
|
} | undefined;
|
|
3940
5210
|
draw?: ({
|
|
3941
|
-
type: "rect";
|
|
3942
5211
|
width: number;
|
|
3943
5212
|
height: number;
|
|
5213
|
+
type: "rect";
|
|
3944
5214
|
x: number;
|
|
3945
5215
|
y: number;
|
|
3946
5216
|
fill?: string | undefined;
|
|
3947
5217
|
opacity?: number | undefined;
|
|
3948
|
-
stroke?: string | undefined;
|
|
3949
5218
|
strokeWidth?: number | undefined;
|
|
5219
|
+
stroke?: string | undefined;
|
|
3950
5220
|
radius?: number | undefined;
|
|
3951
5221
|
} | {
|
|
3952
5222
|
type: "circle";
|
|
@@ -3955,8 +5225,8 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3955
5225
|
cy: number;
|
|
3956
5226
|
fill?: string | undefined;
|
|
3957
5227
|
opacity?: number | undefined;
|
|
3958
|
-
stroke?: string | undefined;
|
|
3959
5228
|
strokeWidth?: number | undefined;
|
|
5229
|
+
stroke?: string | undefined;
|
|
3960
5230
|
} | {
|
|
3961
5231
|
type: "text";
|
|
3962
5232
|
text: string;
|
|
@@ -3965,10 +5235,10 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3965
5235
|
color?: string | undefined;
|
|
3966
5236
|
opacity?: number | undefined;
|
|
3967
5237
|
fontSize?: number | undefined;
|
|
3968
|
-
align?: "
|
|
5238
|
+
align?: "center" | "left" | "right" | undefined;
|
|
3969
5239
|
fontWeight?: number | undefined;
|
|
3970
5240
|
fontFamily?: "body" | "heading" | "mono" | undefined;
|
|
3971
|
-
baseline?: "
|
|
5241
|
+
baseline?: "top" | "alphabetic" | "bottom" | "middle" | undefined;
|
|
3972
5242
|
letterSpacing?: number | undefined;
|
|
3973
5243
|
maxWidth?: number | undefined;
|
|
3974
5244
|
} | {
|
|
@@ -3977,8 +5247,8 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3977
5247
|
y1: number;
|
|
3978
5248
|
x2: number;
|
|
3979
5249
|
y2: number;
|
|
3980
|
-
color?: string | undefined;
|
|
3981
5250
|
width?: number | undefined;
|
|
5251
|
+
color?: string | undefined;
|
|
3982
5252
|
opacity?: number | undefined;
|
|
3983
5253
|
arrow?: "end" | "start" | "both" | "none" | undefined;
|
|
3984
5254
|
arrowSize?: number | undefined;
|
|
@@ -3989,8 +5259,8 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3989
5259
|
x: number;
|
|
3990
5260
|
y: number;
|
|
3991
5261
|
}[];
|
|
3992
|
-
color?: string | undefined;
|
|
3993
5262
|
width?: number | undefined;
|
|
5263
|
+
color?: string | undefined;
|
|
3994
5264
|
opacity?: number | undefined;
|
|
3995
5265
|
arrow?: "end" | "start" | "both" | "none" | undefined;
|
|
3996
5266
|
arrowSize?: number | undefined;
|
|
@@ -4000,8 +5270,8 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4000
5270
|
d: string;
|
|
4001
5271
|
fill?: string | undefined;
|
|
4002
5272
|
opacity?: number | undefined;
|
|
4003
|
-
stroke?: string | undefined;
|
|
4004
5273
|
strokeWidth?: number | undefined;
|
|
5274
|
+
stroke?: string | undefined;
|
|
4005
5275
|
} | {
|
|
4006
5276
|
type: "badge";
|
|
4007
5277
|
text: string;
|
|
@@ -4009,16 +5279,16 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4009
5279
|
y: number;
|
|
4010
5280
|
color?: string | undefined;
|
|
4011
5281
|
opacity?: number | undefined;
|
|
5282
|
+
background?: string | undefined;
|
|
4012
5283
|
fontSize?: number | undefined;
|
|
4013
5284
|
borderRadius?: number | undefined;
|
|
4014
|
-
background?: string | undefined;
|
|
4015
5285
|
fontFamily?: "body" | "heading" | "mono" | undefined;
|
|
4016
5286
|
paddingX?: number | undefined;
|
|
4017
5287
|
paddingY?: number | undefined;
|
|
4018
5288
|
} | {
|
|
4019
|
-
type: "gradient-rect";
|
|
4020
5289
|
width: number;
|
|
4021
5290
|
height: number;
|
|
5291
|
+
type: "gradient-rect";
|
|
4022
5292
|
x: number;
|
|
4023
5293
|
y: number;
|
|
4024
5294
|
gradient: {
|
|
@@ -4038,6 +5308,41 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4038
5308
|
opacity?: number | undefined;
|
|
4039
5309
|
radius?: number | undefined;
|
|
4040
5310
|
})[] | undefined;
|
|
5311
|
+
theme?: {
|
|
5312
|
+
code: {
|
|
5313
|
+
string: string;
|
|
5314
|
+
number: string;
|
|
5315
|
+
function: string;
|
|
5316
|
+
background: string;
|
|
5317
|
+
text: string;
|
|
5318
|
+
comment: string;
|
|
5319
|
+
keyword: string;
|
|
5320
|
+
variable: string;
|
|
5321
|
+
operator: string;
|
|
5322
|
+
punctuation: string;
|
|
5323
|
+
};
|
|
5324
|
+
background: string;
|
|
5325
|
+
surface: string;
|
|
5326
|
+
surfaceMuted: string;
|
|
5327
|
+
surfaceElevated: string;
|
|
5328
|
+
text: string;
|
|
5329
|
+
textMuted: string;
|
|
5330
|
+
textInverse: string;
|
|
5331
|
+
primary: string;
|
|
5332
|
+
secondary: string;
|
|
5333
|
+
accent: string;
|
|
5334
|
+
success: string;
|
|
5335
|
+
warning: string;
|
|
5336
|
+
error: string;
|
|
5337
|
+
info: string;
|
|
5338
|
+
border: string;
|
|
5339
|
+
borderMuted: string;
|
|
5340
|
+
fonts: {
|
|
5341
|
+
body: string;
|
|
5342
|
+
heading: string;
|
|
5343
|
+
mono: string;
|
|
5344
|
+
};
|
|
5345
|
+
} | "dracula" | "github-dark" | "nord" | "dark" | "light" | "one-dark" | undefined;
|
|
4041
5346
|
version?: 2 | undefined;
|
|
4042
5347
|
canvas?: {
|
|
4043
5348
|
width?: number | undefined;
|
|
@@ -4045,42 +5350,61 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4045
5350
|
padding?: number | undefined;
|
|
4046
5351
|
} | undefined;
|
|
4047
5352
|
elements?: ({
|
|
4048
|
-
body: string;
|
|
4049
|
-
type: "card";
|
|
4050
|
-
id: string;
|
|
4051
|
-
title: string;
|
|
4052
|
-
badge?: string | undefined;
|
|
4053
|
-
metric?: string | undefined;
|
|
4054
|
-
tone?: "neutral" | "accent" | "success" | "warning" | "error" | undefined;
|
|
4055
|
-
icon?: string | undefined;
|
|
4056
|
-
} | {
|
|
4057
5353
|
type: "flow-node";
|
|
4058
5354
|
id: string;
|
|
4059
|
-
shape: "box" | "rounded-box" | "diamond" | "circle" | "pill" | "cylinder" | "parallelogram";
|
|
4060
5355
|
label: string;
|
|
5356
|
+
width?: number | undefined;
|
|
5357
|
+
height?: number | undefined;
|
|
5358
|
+
shape?: "box" | "rounded-box" | "diamond" | "circle" | "pill" | "cylinder" | "parallelogram" | "hexagon" | undefined;
|
|
4061
5359
|
sublabel?: string | undefined;
|
|
4062
5360
|
sublabelColor?: string | undefined;
|
|
5361
|
+
sublabel2?: string | undefined;
|
|
5362
|
+
sublabel2Color?: string | undefined;
|
|
5363
|
+
sublabel2FontSize?: number | undefined;
|
|
4063
5364
|
labelColor?: string | undefined;
|
|
4064
5365
|
labelFontSize?: number | undefined;
|
|
4065
5366
|
color?: string | undefined;
|
|
4066
5367
|
borderColor?: string | undefined;
|
|
4067
5368
|
borderWidth?: number | undefined;
|
|
4068
5369
|
cornerRadius?: number | undefined;
|
|
4069
|
-
|
|
4070
|
-
height?: number | undefined;
|
|
5370
|
+
fillOpacity?: number | undefined;
|
|
4071
5371
|
opacity?: number | undefined;
|
|
5372
|
+
badgeText?: string | undefined;
|
|
5373
|
+
badgeColor?: string | undefined;
|
|
5374
|
+
badgeBackground?: string | undefined;
|
|
5375
|
+
badgePosition?: "top" | "inside-top" | undefined;
|
|
5376
|
+
shadow?: {
|
|
5377
|
+
color?: string | undefined;
|
|
5378
|
+
opacity?: number | undefined;
|
|
5379
|
+
blur?: number | undefined;
|
|
5380
|
+
offsetX?: number | undefined;
|
|
5381
|
+
offsetY?: number | undefined;
|
|
5382
|
+
} | undefined;
|
|
5383
|
+
} | {
|
|
5384
|
+
body: string;
|
|
5385
|
+
type: "card";
|
|
5386
|
+
id: string;
|
|
5387
|
+
title: string;
|
|
5388
|
+
badge?: string | undefined;
|
|
5389
|
+
metric?: string | undefined;
|
|
5390
|
+
tone?: "accent" | "success" | "warning" | "error" | "neutral" | undefined;
|
|
5391
|
+
icon?: string | undefined;
|
|
4072
5392
|
} | {
|
|
4073
5393
|
type: "connection";
|
|
4074
5394
|
from: string;
|
|
4075
5395
|
to: string;
|
|
5396
|
+
width?: number | undefined;
|
|
4076
5397
|
label?: string | undefined;
|
|
4077
5398
|
color?: string | undefined;
|
|
4078
|
-
width?: number | undefined;
|
|
4079
5399
|
opacity?: number | undefined;
|
|
4080
5400
|
style?: "solid" | "dashed" | "dotted" | undefined;
|
|
5401
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
4081
5402
|
arrow?: "end" | "start" | "both" | "none" | undefined;
|
|
4082
5403
|
labelPosition?: "end" | "start" | "middle" | undefined;
|
|
5404
|
+
strokeWidth?: number | undefined;
|
|
4083
5405
|
arrowSize?: number | undefined;
|
|
5406
|
+
routing?: "auto" | "orthogonal" | "curve" | "arc" | undefined;
|
|
5407
|
+
tension?: number | undefined;
|
|
4084
5408
|
} | {
|
|
4085
5409
|
type: "code-block";
|
|
4086
5410
|
code: string;
|
|
@@ -4125,23 +5449,23 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4125
5449
|
} | {
|
|
4126
5450
|
type: "text";
|
|
4127
5451
|
id: string;
|
|
4128
|
-
style: "body" | "
|
|
5452
|
+
style: "body" | "heading" | "code" | "subheading" | "caption";
|
|
4129
5453
|
content: string;
|
|
4130
5454
|
color?: string | undefined;
|
|
4131
|
-
align?: "
|
|
5455
|
+
align?: "center" | "left" | "right" | undefined;
|
|
4132
5456
|
} | {
|
|
4133
5457
|
type: "shape";
|
|
4134
5458
|
id: string;
|
|
4135
|
-
shape: "circle" | "arrow" | "rectangle" | "rounded-rectangle" | "ellipse"
|
|
5459
|
+
shape: "line" | "circle" | "arrow" | "rectangle" | "rounded-rectangle" | "ellipse";
|
|
4136
5460
|
fill?: string | undefined;
|
|
4137
|
-
stroke?: string | undefined;
|
|
4138
5461
|
strokeWidth?: number | undefined;
|
|
5462
|
+
stroke?: string | undefined;
|
|
4139
5463
|
} | {
|
|
4140
5464
|
type: "image";
|
|
4141
5465
|
id: string;
|
|
4142
5466
|
src: string;
|
|
5467
|
+
fit?: "contain" | "cover" | "fill" | "none" | undefined;
|
|
4143
5468
|
alt?: string | undefined;
|
|
4144
|
-
fit?: "fill" | "none" | "contain" | "cover" | undefined;
|
|
4145
5469
|
borderRadius?: number | undefined;
|
|
4146
5470
|
})[] | undefined;
|
|
4147
5471
|
decorators?: ({
|
|
@@ -4178,23 +5502,43 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4178
5502
|
direction?: "vertical" | "horizontal" | undefined;
|
|
4179
5503
|
gap?: number | undefined;
|
|
4180
5504
|
alignment?: "end" | "start" | "center" | "stretch" | undefined;
|
|
5505
|
+
diagramCenter?: {
|
|
5506
|
+
x: number;
|
|
5507
|
+
y: number;
|
|
5508
|
+
} | undefined;
|
|
4181
5509
|
} | {
|
|
4182
5510
|
mode: "auto";
|
|
4183
5511
|
direction?: "TB" | "BT" | "LR" | "RL" | undefined;
|
|
5512
|
+
diagramCenter?: {
|
|
5513
|
+
x: number;
|
|
5514
|
+
y: number;
|
|
5515
|
+
} | undefined;
|
|
4184
5516
|
algorithm?: "box" | "layered" | "stress" | "force" | "radial" | undefined;
|
|
4185
5517
|
nodeSpacing?: number | undefined;
|
|
4186
5518
|
rankSpacing?: number | undefined;
|
|
4187
5519
|
edgeRouting?: "orthogonal" | "polyline" | "spline" | undefined;
|
|
4188
5520
|
aspectRatio?: number | undefined;
|
|
5521
|
+
radialRoot?: string | undefined;
|
|
5522
|
+
radialRadius?: number | undefined;
|
|
5523
|
+
radialCompaction?: "none" | "radial" | "wedge" | undefined;
|
|
5524
|
+
radialSortBy?: "id" | "connections" | undefined;
|
|
4189
5525
|
} | {
|
|
4190
5526
|
mode: "grid";
|
|
4191
5527
|
gap?: number | undefined;
|
|
5528
|
+
diagramCenter?: {
|
|
5529
|
+
x: number;
|
|
5530
|
+
y: number;
|
|
5531
|
+
} | undefined;
|
|
4192
5532
|
columns?: number | undefined;
|
|
4193
5533
|
cardMinHeight?: number | undefined;
|
|
4194
5534
|
cardMaxHeight?: number | undefined;
|
|
4195
5535
|
equalHeight?: boolean | undefined;
|
|
4196
5536
|
} | {
|
|
4197
5537
|
mode: "manual";
|
|
5538
|
+
diagramCenter?: {
|
|
5539
|
+
x: number;
|
|
5540
|
+
y: number;
|
|
5541
|
+
} | undefined;
|
|
4198
5542
|
positions?: Record<string, {
|
|
4199
5543
|
x: number;
|
|
4200
5544
|
y: number;
|
|
@@ -4214,6 +5558,10 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4214
5558
|
direction: "vertical" | "horizontal";
|
|
4215
5559
|
gap: number;
|
|
4216
5560
|
alignment: "end" | "start" | "center" | "stretch";
|
|
5561
|
+
diagramCenter?: {
|
|
5562
|
+
x: number;
|
|
5563
|
+
y: number;
|
|
5564
|
+
} | undefined;
|
|
4217
5565
|
} | {
|
|
4218
5566
|
mode: "auto";
|
|
4219
5567
|
direction: "TB" | "BT" | "LR" | "RL";
|
|
@@ -4221,12 +5569,24 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4221
5569
|
nodeSpacing: number;
|
|
4222
5570
|
rankSpacing: number;
|
|
4223
5571
|
edgeRouting: "orthogonal" | "polyline" | "spline";
|
|
5572
|
+
diagramCenter?: {
|
|
5573
|
+
x: number;
|
|
5574
|
+
y: number;
|
|
5575
|
+
} | undefined;
|
|
4224
5576
|
aspectRatio?: number | undefined;
|
|
5577
|
+
radialRoot?: string | undefined;
|
|
5578
|
+
radialRadius?: number | undefined;
|
|
5579
|
+
radialCompaction?: "none" | "radial" | "wedge" | undefined;
|
|
5580
|
+
radialSortBy?: "id" | "connections" | undefined;
|
|
4225
5581
|
} | {
|
|
4226
5582
|
mode: "grid";
|
|
4227
5583
|
gap: number;
|
|
4228
5584
|
columns: number;
|
|
4229
5585
|
equalHeight: boolean;
|
|
5586
|
+
diagramCenter?: {
|
|
5587
|
+
x: number;
|
|
5588
|
+
y: number;
|
|
5589
|
+
} | undefined;
|
|
4230
5590
|
cardMinHeight?: number | undefined;
|
|
4231
5591
|
cardMaxHeight?: number | undefined;
|
|
4232
5592
|
} | {
|
|
@@ -4237,46 +5597,15 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4237
5597
|
width?: number | undefined;
|
|
4238
5598
|
height?: number | undefined;
|
|
4239
5599
|
}>;
|
|
5600
|
+
diagramCenter?: {
|
|
5601
|
+
x: number;
|
|
5602
|
+
y: number;
|
|
5603
|
+
} | undefined;
|
|
4240
5604
|
};
|
|
4241
|
-
theme: {
|
|
4242
|
-
code: {
|
|
4243
|
-
string: string;
|
|
4244
|
-
number: string;
|
|
4245
|
-
function: string;
|
|
4246
|
-
text: string;
|
|
4247
|
-
background: string;
|
|
4248
|
-
comment: string;
|
|
4249
|
-
keyword: string;
|
|
4250
|
-
variable: string;
|
|
4251
|
-
operator: string;
|
|
4252
|
-
punctuation: string;
|
|
4253
|
-
};
|
|
4254
|
-
accent: string;
|
|
4255
|
-
success: string;
|
|
4256
|
-
warning: string;
|
|
4257
|
-
error: string;
|
|
4258
|
-
text: string;
|
|
4259
|
-
background: string;
|
|
4260
|
-
surface: string;
|
|
4261
|
-
surfaceMuted: string;
|
|
4262
|
-
surfaceElevated: string;
|
|
4263
|
-
textMuted: string;
|
|
4264
|
-
textInverse: string;
|
|
4265
|
-
primary: string;
|
|
4266
|
-
secondary: string;
|
|
4267
|
-
info: string;
|
|
4268
|
-
border: string;
|
|
4269
|
-
borderMuted: string;
|
|
4270
|
-
fonts: {
|
|
4271
|
-
body: string;
|
|
4272
|
-
heading: string;
|
|
4273
|
-
mono: string;
|
|
4274
|
-
};
|
|
4275
|
-
} | "dracula" | "github-dark" | "nord" | "dark" | "light" | "one-dark";
|
|
4276
5605
|
draw: ({
|
|
4277
|
-
type: "rect";
|
|
4278
5606
|
width: number;
|
|
4279
5607
|
height: number;
|
|
5608
|
+
type: "rect";
|
|
4280
5609
|
opacity: number;
|
|
4281
5610
|
strokeWidth: number;
|
|
4282
5611
|
x: number;
|
|
@@ -4297,20 +5626,20 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4297
5626
|
type: "text";
|
|
4298
5627
|
color: string;
|
|
4299
5628
|
opacity: number;
|
|
4300
|
-
fontSize: number;
|
|
4301
5629
|
text: string;
|
|
4302
|
-
|
|
5630
|
+
fontSize: number;
|
|
5631
|
+
align: "center" | "left" | "right";
|
|
4303
5632
|
x: number;
|
|
4304
5633
|
y: number;
|
|
4305
5634
|
fontWeight: number;
|
|
4306
5635
|
fontFamily: "body" | "heading" | "mono";
|
|
4307
|
-
baseline: "
|
|
5636
|
+
baseline: "top" | "alphabetic" | "bottom" | "middle";
|
|
4308
5637
|
letterSpacing: number;
|
|
4309
5638
|
maxWidth?: number | undefined;
|
|
4310
5639
|
} | {
|
|
5640
|
+
width: number;
|
|
4311
5641
|
type: "line";
|
|
4312
5642
|
color: string;
|
|
4313
|
-
width: number;
|
|
4314
5643
|
opacity: number;
|
|
4315
5644
|
arrow: "end" | "start" | "both" | "none";
|
|
4316
5645
|
arrowSize: number;
|
|
@@ -4320,9 +5649,9 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4320
5649
|
y2: number;
|
|
4321
5650
|
dash?: number[] | undefined;
|
|
4322
5651
|
} | {
|
|
5652
|
+
width: number;
|
|
4323
5653
|
type: "bezier";
|
|
4324
5654
|
color: string;
|
|
4325
|
-
width: number;
|
|
4326
5655
|
opacity: number;
|
|
4327
5656
|
arrow: "end" | "start" | "both" | "none";
|
|
4328
5657
|
arrowSize: number;
|
|
@@ -4342,19 +5671,19 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4342
5671
|
type: "badge";
|
|
4343
5672
|
color: string;
|
|
4344
5673
|
opacity: number;
|
|
4345
|
-
|
|
5674
|
+
background: string;
|
|
4346
5675
|
text: string;
|
|
5676
|
+
fontSize: number;
|
|
4347
5677
|
borderRadius: number;
|
|
4348
5678
|
x: number;
|
|
4349
5679
|
y: number;
|
|
4350
|
-
background: string;
|
|
4351
5680
|
fontFamily: "body" | "heading" | "mono";
|
|
4352
5681
|
paddingX: number;
|
|
4353
5682
|
paddingY: number;
|
|
4354
5683
|
} | {
|
|
4355
|
-
type: "gradient-rect";
|
|
4356
5684
|
width: number;
|
|
4357
5685
|
height: number;
|
|
5686
|
+
type: "gradient-rect";
|
|
4358
5687
|
opacity: number;
|
|
4359
5688
|
x: number;
|
|
4360
5689
|
y: number;
|
|
@@ -4374,6 +5703,41 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4374
5703
|
}[];
|
|
4375
5704
|
};
|
|
4376
5705
|
})[];
|
|
5706
|
+
theme: {
|
|
5707
|
+
code: {
|
|
5708
|
+
string: string;
|
|
5709
|
+
number: string;
|
|
5710
|
+
function: string;
|
|
5711
|
+
background: string;
|
|
5712
|
+
text: string;
|
|
5713
|
+
comment: string;
|
|
5714
|
+
keyword: string;
|
|
5715
|
+
variable: string;
|
|
5716
|
+
operator: string;
|
|
5717
|
+
punctuation: string;
|
|
5718
|
+
};
|
|
5719
|
+
background: string;
|
|
5720
|
+
surface: string;
|
|
5721
|
+
surfaceMuted: string;
|
|
5722
|
+
surfaceElevated: string;
|
|
5723
|
+
text: string;
|
|
5724
|
+
textMuted: string;
|
|
5725
|
+
textInverse: string;
|
|
5726
|
+
primary: string;
|
|
5727
|
+
secondary: string;
|
|
5728
|
+
accent: string;
|
|
5729
|
+
success: string;
|
|
5730
|
+
warning: string;
|
|
5731
|
+
error: string;
|
|
5732
|
+
info: string;
|
|
5733
|
+
border: string;
|
|
5734
|
+
borderMuted: string;
|
|
5735
|
+
fonts: {
|
|
5736
|
+
body: string;
|
|
5737
|
+
heading: string;
|
|
5738
|
+
mono: string;
|
|
5739
|
+
};
|
|
5740
|
+
} | "dracula" | "github-dark" | "nord" | "dark" | "light" | "one-dark";
|
|
4377
5741
|
version: 2;
|
|
4378
5742
|
canvas: {
|
|
4379
5743
|
width: number;
|
|
@@ -4381,41 +5745,60 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4381
5745
|
padding: number;
|
|
4382
5746
|
};
|
|
4383
5747
|
elements: ({
|
|
4384
|
-
body: string;
|
|
4385
|
-
type: "card";
|
|
4386
|
-
id: string;
|
|
4387
|
-
title: string;
|
|
4388
|
-
tone: "neutral" | "accent" | "success" | "warning" | "error";
|
|
4389
|
-
badge?: string | undefined;
|
|
4390
|
-
metric?: string | undefined;
|
|
4391
|
-
icon?: string | undefined;
|
|
4392
|
-
} | {
|
|
4393
5748
|
type: "flow-node";
|
|
4394
5749
|
id: string;
|
|
4395
|
-
shape: "box" | "rounded-box" | "diamond" | "circle" | "pill" | "cylinder" | "parallelogram";
|
|
5750
|
+
shape: "box" | "rounded-box" | "diamond" | "circle" | "pill" | "cylinder" | "parallelogram" | "hexagon";
|
|
4396
5751
|
label: string;
|
|
5752
|
+
fillOpacity: number;
|
|
4397
5753
|
opacity: number;
|
|
5754
|
+
badgePosition: "top" | "inside-top";
|
|
5755
|
+
width?: number | undefined;
|
|
5756
|
+
height?: number | undefined;
|
|
4398
5757
|
sublabel?: string | undefined;
|
|
4399
5758
|
sublabelColor?: string | undefined;
|
|
5759
|
+
sublabel2?: string | undefined;
|
|
5760
|
+
sublabel2Color?: string | undefined;
|
|
5761
|
+
sublabel2FontSize?: number | undefined;
|
|
4400
5762
|
labelColor?: string | undefined;
|
|
4401
5763
|
labelFontSize?: number | undefined;
|
|
4402
5764
|
color?: string | undefined;
|
|
4403
5765
|
borderColor?: string | undefined;
|
|
4404
5766
|
borderWidth?: number | undefined;
|
|
4405
5767
|
cornerRadius?: number | undefined;
|
|
4406
|
-
|
|
4407
|
-
|
|
5768
|
+
badgeText?: string | undefined;
|
|
5769
|
+
badgeColor?: string | undefined;
|
|
5770
|
+
badgeBackground?: string | undefined;
|
|
5771
|
+
shadow?: {
|
|
5772
|
+
opacity: number;
|
|
5773
|
+
blur: number;
|
|
5774
|
+
offsetX: number;
|
|
5775
|
+
offsetY: number;
|
|
5776
|
+
color?: string | undefined;
|
|
5777
|
+
} | undefined;
|
|
5778
|
+
} | {
|
|
5779
|
+
body: string;
|
|
5780
|
+
type: "card";
|
|
5781
|
+
id: string;
|
|
5782
|
+
title: string;
|
|
5783
|
+
tone: "accent" | "success" | "warning" | "error" | "neutral";
|
|
5784
|
+
badge?: string | undefined;
|
|
5785
|
+
metric?: string | undefined;
|
|
5786
|
+
icon?: string | undefined;
|
|
4408
5787
|
} | {
|
|
4409
5788
|
type: "connection";
|
|
4410
5789
|
opacity: number;
|
|
4411
5790
|
from: string;
|
|
4412
5791
|
to: string;
|
|
4413
5792
|
style: "solid" | "dashed" | "dotted";
|
|
5793
|
+
strokeStyle: "solid" | "dashed" | "dotted";
|
|
4414
5794
|
arrow: "end" | "start" | "both" | "none";
|
|
4415
5795
|
labelPosition: "end" | "start" | "middle";
|
|
5796
|
+
strokeWidth: number;
|
|
5797
|
+
routing: "auto" | "orthogonal" | "curve" | "arc";
|
|
5798
|
+
tension: number;
|
|
5799
|
+
width?: number | undefined;
|
|
4416
5800
|
label?: string | undefined;
|
|
4417
5801
|
color?: string | undefined;
|
|
4418
|
-
width?: number | undefined;
|
|
4419
5802
|
arrowSize?: number | undefined;
|
|
4420
5803
|
} | {
|
|
4421
5804
|
type: "code-block";
|
|
@@ -4461,22 +5844,22 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4461
5844
|
} | {
|
|
4462
5845
|
type: "text";
|
|
4463
5846
|
id: string;
|
|
4464
|
-
style: "body" | "
|
|
5847
|
+
style: "body" | "heading" | "code" | "subheading" | "caption";
|
|
4465
5848
|
content: string;
|
|
4466
|
-
align: "
|
|
5849
|
+
align: "center" | "left" | "right";
|
|
4467
5850
|
color?: string | undefined;
|
|
4468
5851
|
} | {
|
|
4469
5852
|
type: "shape";
|
|
4470
5853
|
id: string;
|
|
4471
|
-
shape: "circle" | "arrow" | "rectangle" | "rounded-rectangle" | "ellipse"
|
|
5854
|
+
shape: "line" | "circle" | "arrow" | "rectangle" | "rounded-rectangle" | "ellipse";
|
|
4472
5855
|
strokeWidth: number;
|
|
4473
5856
|
fill?: string | undefined;
|
|
4474
5857
|
stroke?: string | undefined;
|
|
4475
5858
|
} | {
|
|
5859
|
+
fit: "contain" | "cover" | "fill" | "none";
|
|
4476
5860
|
type: "image";
|
|
4477
5861
|
id: string;
|
|
4478
5862
|
src: string;
|
|
4479
|
-
fit: "fill" | "none" | "contain" | "cover";
|
|
4480
5863
|
borderRadius: number;
|
|
4481
5864
|
alt?: string | undefined;
|
|
4482
5865
|
})[];
|
|
@@ -4531,7 +5914,7 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4531
5914
|
} | undefined;
|
|
4532
5915
|
header?: {
|
|
4533
5916
|
title: string;
|
|
4534
|
-
align: "
|
|
5917
|
+
align: "center" | "left" | "right";
|
|
4535
5918
|
titleLetterSpacing: number;
|
|
4536
5919
|
eyebrow?: string | undefined;
|
|
4537
5920
|
subtitle?: string | undefined;
|
|
@@ -4542,41 +5925,6 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4542
5925
|
tagline?: string | undefined;
|
|
4543
5926
|
} | undefined;
|
|
4544
5927
|
}, {
|
|
4545
|
-
theme?: {
|
|
4546
|
-
code: {
|
|
4547
|
-
string: string;
|
|
4548
|
-
number: string;
|
|
4549
|
-
function: string;
|
|
4550
|
-
text: string;
|
|
4551
|
-
background: string;
|
|
4552
|
-
comment: string;
|
|
4553
|
-
keyword: string;
|
|
4554
|
-
variable: string;
|
|
4555
|
-
operator: string;
|
|
4556
|
-
punctuation: string;
|
|
4557
|
-
};
|
|
4558
|
-
accent: string;
|
|
4559
|
-
success: string;
|
|
4560
|
-
warning: string;
|
|
4561
|
-
error: string;
|
|
4562
|
-
text: string;
|
|
4563
|
-
background: string;
|
|
4564
|
-
surface: string;
|
|
4565
|
-
surfaceMuted: string;
|
|
4566
|
-
surfaceElevated: string;
|
|
4567
|
-
textMuted: string;
|
|
4568
|
-
textInverse: string;
|
|
4569
|
-
primary: string;
|
|
4570
|
-
secondary: string;
|
|
4571
|
-
info: string;
|
|
4572
|
-
border: string;
|
|
4573
|
-
borderMuted: string;
|
|
4574
|
-
fonts: {
|
|
4575
|
-
body: string;
|
|
4576
|
-
heading: string;
|
|
4577
|
-
mono: string;
|
|
4578
|
-
};
|
|
4579
|
-
} | "dracula" | "github-dark" | "nord" | "dark" | "light" | "one-dark" | undefined;
|
|
4580
5928
|
background?: string | {
|
|
4581
5929
|
type: "linear";
|
|
4582
5930
|
stops: {
|
|
@@ -4593,7 +5941,7 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4593
5941
|
} | undefined;
|
|
4594
5942
|
header?: {
|
|
4595
5943
|
title: string;
|
|
4596
|
-
align?: "
|
|
5944
|
+
align?: "center" | "left" | "right" | undefined;
|
|
4597
5945
|
eyebrow?: string | undefined;
|
|
4598
5946
|
subtitle?: string | undefined;
|
|
4599
5947
|
titleLetterSpacing?: number | undefined;
|
|
@@ -4604,15 +5952,15 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4604
5952
|
tagline?: string | undefined;
|
|
4605
5953
|
} | undefined;
|
|
4606
5954
|
draw?: ({
|
|
4607
|
-
type: "rect";
|
|
4608
5955
|
width: number;
|
|
4609
5956
|
height: number;
|
|
5957
|
+
type: "rect";
|
|
4610
5958
|
x: number;
|
|
4611
5959
|
y: number;
|
|
4612
5960
|
fill?: string | undefined;
|
|
4613
5961
|
opacity?: number | undefined;
|
|
4614
|
-
stroke?: string | undefined;
|
|
4615
5962
|
strokeWidth?: number | undefined;
|
|
5963
|
+
stroke?: string | undefined;
|
|
4616
5964
|
radius?: number | undefined;
|
|
4617
5965
|
} | {
|
|
4618
5966
|
type: "circle";
|
|
@@ -4621,8 +5969,8 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4621
5969
|
cy: number;
|
|
4622
5970
|
fill?: string | undefined;
|
|
4623
5971
|
opacity?: number | undefined;
|
|
4624
|
-
stroke?: string | undefined;
|
|
4625
5972
|
strokeWidth?: number | undefined;
|
|
5973
|
+
stroke?: string | undefined;
|
|
4626
5974
|
} | {
|
|
4627
5975
|
type: "text";
|
|
4628
5976
|
text: string;
|
|
@@ -4631,10 +5979,10 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4631
5979
|
color?: string | undefined;
|
|
4632
5980
|
opacity?: number | undefined;
|
|
4633
5981
|
fontSize?: number | undefined;
|
|
4634
|
-
align?: "
|
|
5982
|
+
align?: "center" | "left" | "right" | undefined;
|
|
4635
5983
|
fontWeight?: number | undefined;
|
|
4636
5984
|
fontFamily?: "body" | "heading" | "mono" | undefined;
|
|
4637
|
-
baseline?: "
|
|
5985
|
+
baseline?: "top" | "alphabetic" | "bottom" | "middle" | undefined;
|
|
4638
5986
|
letterSpacing?: number | undefined;
|
|
4639
5987
|
maxWidth?: number | undefined;
|
|
4640
5988
|
} | {
|
|
@@ -4643,8 +5991,8 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4643
5991
|
y1: number;
|
|
4644
5992
|
x2: number;
|
|
4645
5993
|
y2: number;
|
|
4646
|
-
color?: string | undefined;
|
|
4647
5994
|
width?: number | undefined;
|
|
5995
|
+
color?: string | undefined;
|
|
4648
5996
|
opacity?: number | undefined;
|
|
4649
5997
|
arrow?: "end" | "start" | "both" | "none" | undefined;
|
|
4650
5998
|
arrowSize?: number | undefined;
|
|
@@ -4655,8 +6003,8 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4655
6003
|
x: number;
|
|
4656
6004
|
y: number;
|
|
4657
6005
|
}[];
|
|
4658
|
-
color?: string | undefined;
|
|
4659
6006
|
width?: number | undefined;
|
|
6007
|
+
color?: string | undefined;
|
|
4660
6008
|
opacity?: number | undefined;
|
|
4661
6009
|
arrow?: "end" | "start" | "both" | "none" | undefined;
|
|
4662
6010
|
arrowSize?: number | undefined;
|
|
@@ -4666,8 +6014,8 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4666
6014
|
d: string;
|
|
4667
6015
|
fill?: string | undefined;
|
|
4668
6016
|
opacity?: number | undefined;
|
|
4669
|
-
stroke?: string | undefined;
|
|
4670
6017
|
strokeWidth?: number | undefined;
|
|
6018
|
+
stroke?: string | undefined;
|
|
4671
6019
|
} | {
|
|
4672
6020
|
type: "badge";
|
|
4673
6021
|
text: string;
|
|
@@ -4675,16 +6023,16 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4675
6023
|
y: number;
|
|
4676
6024
|
color?: string | undefined;
|
|
4677
6025
|
opacity?: number | undefined;
|
|
6026
|
+
background?: string | undefined;
|
|
4678
6027
|
fontSize?: number | undefined;
|
|
4679
6028
|
borderRadius?: number | undefined;
|
|
4680
|
-
background?: string | undefined;
|
|
4681
6029
|
fontFamily?: "body" | "heading" | "mono" | undefined;
|
|
4682
6030
|
paddingX?: number | undefined;
|
|
4683
6031
|
paddingY?: number | undefined;
|
|
4684
6032
|
} | {
|
|
4685
|
-
type: "gradient-rect";
|
|
4686
6033
|
width: number;
|
|
4687
6034
|
height: number;
|
|
6035
|
+
type: "gradient-rect";
|
|
4688
6036
|
x: number;
|
|
4689
6037
|
y: number;
|
|
4690
6038
|
gradient: {
|
|
@@ -4704,6 +6052,41 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4704
6052
|
opacity?: number | undefined;
|
|
4705
6053
|
radius?: number | undefined;
|
|
4706
6054
|
})[] | undefined;
|
|
6055
|
+
theme?: {
|
|
6056
|
+
code: {
|
|
6057
|
+
string: string;
|
|
6058
|
+
number: string;
|
|
6059
|
+
function: string;
|
|
6060
|
+
background: string;
|
|
6061
|
+
text: string;
|
|
6062
|
+
comment: string;
|
|
6063
|
+
keyword: string;
|
|
6064
|
+
variable: string;
|
|
6065
|
+
operator: string;
|
|
6066
|
+
punctuation: string;
|
|
6067
|
+
};
|
|
6068
|
+
background: string;
|
|
6069
|
+
surface: string;
|
|
6070
|
+
surfaceMuted: string;
|
|
6071
|
+
surfaceElevated: string;
|
|
6072
|
+
text: string;
|
|
6073
|
+
textMuted: string;
|
|
6074
|
+
textInverse: string;
|
|
6075
|
+
primary: string;
|
|
6076
|
+
secondary: string;
|
|
6077
|
+
accent: string;
|
|
6078
|
+
success: string;
|
|
6079
|
+
warning: string;
|
|
6080
|
+
error: string;
|
|
6081
|
+
info: string;
|
|
6082
|
+
border: string;
|
|
6083
|
+
borderMuted: string;
|
|
6084
|
+
fonts: {
|
|
6085
|
+
body: string;
|
|
6086
|
+
heading: string;
|
|
6087
|
+
mono: string;
|
|
6088
|
+
};
|
|
6089
|
+
} | "dracula" | "github-dark" | "nord" | "dark" | "light" | "one-dark" | undefined;
|
|
4707
6090
|
version?: 2 | undefined;
|
|
4708
6091
|
canvas?: {
|
|
4709
6092
|
width?: number | undefined;
|
|
@@ -4711,42 +6094,61 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4711
6094
|
padding?: number | undefined;
|
|
4712
6095
|
} | undefined;
|
|
4713
6096
|
elements?: ({
|
|
4714
|
-
body: string;
|
|
4715
|
-
type: "card";
|
|
4716
|
-
id: string;
|
|
4717
|
-
title: string;
|
|
4718
|
-
badge?: string | undefined;
|
|
4719
|
-
metric?: string | undefined;
|
|
4720
|
-
tone?: "neutral" | "accent" | "success" | "warning" | "error" | undefined;
|
|
4721
|
-
icon?: string | undefined;
|
|
4722
|
-
} | {
|
|
4723
6097
|
type: "flow-node";
|
|
4724
6098
|
id: string;
|
|
4725
|
-
shape: "box" | "rounded-box" | "diamond" | "circle" | "pill" | "cylinder" | "parallelogram";
|
|
4726
6099
|
label: string;
|
|
6100
|
+
width?: number | undefined;
|
|
6101
|
+
height?: number | undefined;
|
|
6102
|
+
shape?: "box" | "rounded-box" | "diamond" | "circle" | "pill" | "cylinder" | "parallelogram" | "hexagon" | undefined;
|
|
4727
6103
|
sublabel?: string | undefined;
|
|
4728
6104
|
sublabelColor?: string | undefined;
|
|
6105
|
+
sublabel2?: string | undefined;
|
|
6106
|
+
sublabel2Color?: string | undefined;
|
|
6107
|
+
sublabel2FontSize?: number | undefined;
|
|
4729
6108
|
labelColor?: string | undefined;
|
|
4730
6109
|
labelFontSize?: number | undefined;
|
|
4731
6110
|
color?: string | undefined;
|
|
4732
6111
|
borderColor?: string | undefined;
|
|
4733
6112
|
borderWidth?: number | undefined;
|
|
4734
6113
|
cornerRadius?: number | undefined;
|
|
4735
|
-
|
|
4736
|
-
height?: number | undefined;
|
|
6114
|
+
fillOpacity?: number | undefined;
|
|
4737
6115
|
opacity?: number | undefined;
|
|
6116
|
+
badgeText?: string | undefined;
|
|
6117
|
+
badgeColor?: string | undefined;
|
|
6118
|
+
badgeBackground?: string | undefined;
|
|
6119
|
+
badgePosition?: "top" | "inside-top" | undefined;
|
|
6120
|
+
shadow?: {
|
|
6121
|
+
color?: string | undefined;
|
|
6122
|
+
opacity?: number | undefined;
|
|
6123
|
+
blur?: number | undefined;
|
|
6124
|
+
offsetX?: number | undefined;
|
|
6125
|
+
offsetY?: number | undefined;
|
|
6126
|
+
} | undefined;
|
|
6127
|
+
} | {
|
|
6128
|
+
body: string;
|
|
6129
|
+
type: "card";
|
|
6130
|
+
id: string;
|
|
6131
|
+
title: string;
|
|
6132
|
+
badge?: string | undefined;
|
|
6133
|
+
metric?: string | undefined;
|
|
6134
|
+
tone?: "accent" | "success" | "warning" | "error" | "neutral" | undefined;
|
|
6135
|
+
icon?: string | undefined;
|
|
4738
6136
|
} | {
|
|
4739
6137
|
type: "connection";
|
|
4740
6138
|
from: string;
|
|
4741
6139
|
to: string;
|
|
6140
|
+
width?: number | undefined;
|
|
4742
6141
|
label?: string | undefined;
|
|
4743
6142
|
color?: string | undefined;
|
|
4744
|
-
width?: number | undefined;
|
|
4745
6143
|
opacity?: number | undefined;
|
|
4746
6144
|
style?: "solid" | "dashed" | "dotted" | undefined;
|
|
6145
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
4747
6146
|
arrow?: "end" | "start" | "both" | "none" | undefined;
|
|
4748
6147
|
labelPosition?: "end" | "start" | "middle" | undefined;
|
|
6148
|
+
strokeWidth?: number | undefined;
|
|
4749
6149
|
arrowSize?: number | undefined;
|
|
6150
|
+
routing?: "auto" | "orthogonal" | "curve" | "arc" | undefined;
|
|
6151
|
+
tension?: number | undefined;
|
|
4750
6152
|
} | {
|
|
4751
6153
|
type: "code-block";
|
|
4752
6154
|
code: string;
|
|
@@ -4791,23 +6193,23 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4791
6193
|
} | {
|
|
4792
6194
|
type: "text";
|
|
4793
6195
|
id: string;
|
|
4794
|
-
style: "body" | "
|
|
6196
|
+
style: "body" | "heading" | "code" | "subheading" | "caption";
|
|
4795
6197
|
content: string;
|
|
4796
6198
|
color?: string | undefined;
|
|
4797
|
-
align?: "
|
|
6199
|
+
align?: "center" | "left" | "right" | undefined;
|
|
4798
6200
|
} | {
|
|
4799
6201
|
type: "shape";
|
|
4800
6202
|
id: string;
|
|
4801
|
-
shape: "circle" | "arrow" | "rectangle" | "rounded-rectangle" | "ellipse"
|
|
6203
|
+
shape: "line" | "circle" | "arrow" | "rectangle" | "rounded-rectangle" | "ellipse";
|
|
4802
6204
|
fill?: string | undefined;
|
|
4803
|
-
stroke?: string | undefined;
|
|
4804
6205
|
strokeWidth?: number | undefined;
|
|
6206
|
+
stroke?: string | undefined;
|
|
4805
6207
|
} | {
|
|
4806
6208
|
type: "image";
|
|
4807
6209
|
id: string;
|
|
4808
6210
|
src: string;
|
|
6211
|
+
fit?: "contain" | "cover" | "fill" | "none" | undefined;
|
|
4809
6212
|
alt?: string | undefined;
|
|
4810
|
-
fit?: "fill" | "none" | "contain" | "cover" | undefined;
|
|
4811
6213
|
borderRadius?: number | undefined;
|
|
4812
6214
|
})[] | undefined;
|
|
4813
6215
|
decorators?: ({
|
|
@@ -4844,23 +6246,43 @@ declare const designSpecSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4844
6246
|
direction?: "vertical" | "horizontal" | undefined;
|
|
4845
6247
|
gap?: number | undefined;
|
|
4846
6248
|
alignment?: "end" | "start" | "center" | "stretch" | undefined;
|
|
6249
|
+
diagramCenter?: {
|
|
6250
|
+
x: number;
|
|
6251
|
+
y: number;
|
|
6252
|
+
} | undefined;
|
|
4847
6253
|
} | {
|
|
4848
6254
|
mode: "auto";
|
|
4849
6255
|
direction?: "TB" | "BT" | "LR" | "RL" | undefined;
|
|
6256
|
+
diagramCenter?: {
|
|
6257
|
+
x: number;
|
|
6258
|
+
y: number;
|
|
6259
|
+
} | undefined;
|
|
4850
6260
|
algorithm?: "box" | "layered" | "stress" | "force" | "radial" | undefined;
|
|
4851
6261
|
nodeSpacing?: number | undefined;
|
|
4852
6262
|
rankSpacing?: number | undefined;
|
|
4853
6263
|
edgeRouting?: "orthogonal" | "polyline" | "spline" | undefined;
|
|
4854
6264
|
aspectRatio?: number | undefined;
|
|
6265
|
+
radialRoot?: string | undefined;
|
|
6266
|
+
radialRadius?: number | undefined;
|
|
6267
|
+
radialCompaction?: "none" | "radial" | "wedge" | undefined;
|
|
6268
|
+
radialSortBy?: "id" | "connections" | undefined;
|
|
4855
6269
|
} | {
|
|
4856
6270
|
mode: "grid";
|
|
4857
6271
|
gap?: number | undefined;
|
|
6272
|
+
diagramCenter?: {
|
|
6273
|
+
x: number;
|
|
6274
|
+
y: number;
|
|
6275
|
+
} | undefined;
|
|
4858
6276
|
columns?: number | undefined;
|
|
4859
6277
|
cardMinHeight?: number | undefined;
|
|
4860
6278
|
cardMaxHeight?: number | undefined;
|
|
4861
6279
|
equalHeight?: boolean | undefined;
|
|
4862
6280
|
} | {
|
|
4863
6281
|
mode: "manual";
|
|
6282
|
+
diagramCenter?: {
|
|
6283
|
+
x: number;
|
|
6284
|
+
y: number;
|
|
6285
|
+
} | undefined;
|
|
4864
6286
|
positions?: Record<string, {
|
|
4865
6287
|
x: number;
|
|
4866
6288
|
y: number;
|
|
@@ -4879,7 +6301,11 @@ type DesignSpec = z.infer<typeof designSpecSchema>;
|
|
|
4879
6301
|
type Element = z.infer<typeof elementSchema>;
|
|
4880
6302
|
type CardElement = z.infer<typeof cardElementSchema>;
|
|
4881
6303
|
type FlowNodeElement = z.infer<typeof flowNodeElementSchema>;
|
|
6304
|
+
type FlowNodeShadow = z.infer<typeof flowNodeShadowSchema>;
|
|
4882
6305
|
type ConnectionElement = z.infer<typeof connectionElementSchema>;
|
|
6306
|
+
type DiagramElement = z.infer<typeof diagramElementSchema>;
|
|
6307
|
+
type DiagramLayout = z.infer<typeof diagramLayoutSchema>;
|
|
6308
|
+
type DiagramSpec = z.infer<typeof diagramSpecSchema>;
|
|
4883
6309
|
type CodeBlockStyle = z.infer<typeof codeBlockStyleSchema>;
|
|
4884
6310
|
type CodeBlockElement = z.infer<typeof codeBlockElementSchema>;
|
|
4885
6311
|
type TerminalElement = z.infer<typeof terminalElementSchema>;
|
|
@@ -4904,6 +6330,8 @@ type StackLayoutConfig = z.infer<typeof stackLayoutConfigSchema>;
|
|
|
4904
6330
|
type ManualLayoutConfig = z.infer<typeof manualLayoutConfigSchema>;
|
|
4905
6331
|
type ConstraintSpec = z.infer<typeof constraintsSchema>;
|
|
4906
6332
|
type Theme = z.infer<typeof themeSchema>;
|
|
6333
|
+
type DesignTheme = Theme;
|
|
6334
|
+
type DesignCardSpec = CardElement;
|
|
4907
6335
|
type BuiltInTheme = z.infer<typeof builtInThemeSchema>;
|
|
4908
6336
|
type ThemeInput = z.infer<typeof themeInputSchema>;
|
|
4909
6337
|
type GradientStop = z.infer<typeof gradientStopSchema>;
|
|
@@ -4948,6 +6376,7 @@ declare function deriveSafeFrame(spec: DesignSpec): DesignSafeFrame;
|
|
|
4948
6376
|
* @returns A validated and transformed {@link DesignSpec}.
|
|
4949
6377
|
* @throws {import('zod').ZodError} When the input fails schema validation.
|
|
4950
6378
|
*/
|
|
6379
|
+
declare function parseDiagramSpec(input: unknown): DiagramSpec;
|
|
4951
6380
|
declare function parseDesignSpec(input: unknown): DesignSpec;
|
|
4952
6381
|
|
|
4953
|
-
export {
|
|
6382
|
+
export { builtInThemes as $, type AutoLayoutConfig as A, type BuiltInTheme as B, type ConnectionElement as C, type DesignSpec as D, type Element as E, type FlowNodeElement as F, type Gradient as G, type GradientOverlayDecorator as H, type GradientSpec as I, type GradientStop$1 as J, type GridLayoutConfig as K, type ImageElement as L, type LayoutConfig as M, type LayoutSnapshot as N, type ManualLayoutConfig as O, type RainbowRuleDecorator as P, type RenderResult as Q, type RenderMetadata as R, type ShapeElement as S, type ThemeInput$1 as T, type StackLayoutConfig as U, type TerminalElement as V, type TextElement as W, type ThemeInput as X, type VignetteDecorator as Y, type WrittenArtifacts as Z, builtInThemeBackgrounds as _, type Rect as a, computeSpecHash as a0, connectionElementSchema as a1, defaultAutoLayout as a2, defaultCanvas as a3, defaultConstraints as a4, defaultGridLayout as a5, defaultLayout as a6, defaultStackLayout as a7, defaultTheme as a8, deriveSafeFrame as a9, designSpecSchema as aa, diagramElementSchema as ab, diagramLayoutSchema as ac, diagramSpecSchema as ad, drawGradientRect as ae, drawRainbowRule as af, drawVignette as ag, flowNodeElementSchema as ah, inferLayout as ai, inferSidecarPath as aj, parseDesignSpec as ak, parseDiagramSpec as al, renderDesign as am, resolveTheme as an, writeRenderArtifacts as ao, type CodeBlockStyle as ap, type FlowNodeShadow as aq, type GradientStop as ar, type LinearGradient as as, type RadialGradient as at, type DrawCommand as b, type Theme as c, type RenderedElement as d, type CardElement as e, type CodeBlockElement as f, type ConstraintSpec as g, DEFAULT_GENERATOR_VERSION as h, DEFAULT_RAINBOW_COLORS as i, type Decorator as j, type DesignCardSpec as k, type DesignSafeFrame as l, type DesignTheme as m, type DiagramElement as n, type DiagramLayout as o, type DiagramSpec as p, type DrawBadge as q, type DrawBezier as r, type DrawCircle as s, type DrawFontFamily as t, type DrawGradientRect as u, type DrawLine as v, type DrawPath as w, type DrawPoint as x, type DrawRect as y, type DrawText as z };
|