@glyphjs/schemas 0.3.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +23 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +59 -18
- package/dist/index.d.ts +59 -18
- package/dist/index.js +23 -10
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -41,6 +41,8 @@ declare const graphSchema: z.ZodObject<{
|
|
|
41
41
|
style?: Record<string, string> | undefined;
|
|
42
42
|
}>, "many">;
|
|
43
43
|
layout: z.ZodOptional<z.ZodEnum<["top-down", "left-right", "bottom-up", "radial", "force"]>>;
|
|
44
|
+
interactionMode: z.ZodDefault<z.ZodEnum<["modifier-key", "click-to-activate", "always"]>>;
|
|
45
|
+
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
44
46
|
}, "strip", z.ZodTypeAny, {
|
|
45
47
|
type: "dag" | "flowchart" | "mindmap" | "force";
|
|
46
48
|
nodes: {
|
|
@@ -57,6 +59,8 @@ declare const graphSchema: z.ZodObject<{
|
|
|
57
59
|
label?: string | undefined;
|
|
58
60
|
style?: Record<string, string> | undefined;
|
|
59
61
|
}[];
|
|
62
|
+
interactionMode: "modifier-key" | "click-to-activate" | "always";
|
|
63
|
+
markdown: boolean;
|
|
60
64
|
layout?: "force" | "top-down" | "left-right" | "bottom-up" | "radial" | undefined;
|
|
61
65
|
}, {
|
|
62
66
|
type: "dag" | "flowchart" | "mindmap" | "force";
|
|
@@ -75,6 +79,8 @@ declare const graphSchema: z.ZodObject<{
|
|
|
75
79
|
style?: Record<string, string> | undefined;
|
|
76
80
|
}[];
|
|
77
81
|
layout?: "force" | "top-down" | "left-right" | "bottom-up" | "radial" | undefined;
|
|
82
|
+
interactionMode?: "modifier-key" | "click-to-activate" | "always" | undefined;
|
|
83
|
+
markdown?: boolean | undefined;
|
|
78
84
|
}>;
|
|
79
85
|
|
|
80
86
|
declare const tableSchema: z.ZodObject<{
|
|
@@ -108,7 +114,9 @@ declare const tableSchema: z.ZodObject<{
|
|
|
108
114
|
function: "sum" | "avg" | "count" | "min" | "max";
|
|
109
115
|
column: string;
|
|
110
116
|
}>, "many">>;
|
|
117
|
+
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
111
118
|
}, "strip", z.ZodTypeAny, {
|
|
119
|
+
markdown: boolean;
|
|
112
120
|
columns: {
|
|
113
121
|
label: string;
|
|
114
122
|
key: string;
|
|
@@ -130,6 +138,7 @@ declare const tableSchema: z.ZodObject<{
|
|
|
130
138
|
filterable?: boolean | undefined;
|
|
131
139
|
}[];
|
|
132
140
|
rows: Record<string, unknown>[];
|
|
141
|
+
markdown?: boolean | undefined;
|
|
133
142
|
aggregation?: {
|
|
134
143
|
function: "sum" | "avg" | "count" | "min" | "max";
|
|
135
144
|
column: string;
|
|
@@ -169,8 +178,10 @@ declare const chartSchema: z.ZodObject<{
|
|
|
169
178
|
label?: string | undefined;
|
|
170
179
|
}>>;
|
|
171
180
|
legend: z.ZodOptional<z.ZodBoolean>;
|
|
181
|
+
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
172
182
|
}, "strip", z.ZodTypeAny, {
|
|
173
183
|
type: "line" | "bar" | "area" | "ohlc";
|
|
184
|
+
markdown: boolean;
|
|
174
185
|
series: {
|
|
175
186
|
name: string;
|
|
176
187
|
data: Record<string, string | number>[];
|
|
@@ -190,6 +201,7 @@ declare const chartSchema: z.ZodObject<{
|
|
|
190
201
|
name: string;
|
|
191
202
|
data: Record<string, string | number>[];
|
|
192
203
|
}[];
|
|
204
|
+
markdown?: boolean | undefined;
|
|
193
205
|
xAxis?: {
|
|
194
206
|
key: string;
|
|
195
207
|
label?: string | undefined;
|
|
@@ -252,7 +264,11 @@ declare const relationSchema: z.ZodObject<{
|
|
|
252
264
|
label?: string | undefined;
|
|
253
265
|
}>, "many">;
|
|
254
266
|
layout: z.ZodOptional<z.ZodEnum<["top-down", "left-right"]>>;
|
|
267
|
+
interactionMode: z.ZodDefault<z.ZodEnum<["modifier-key", "click-to-activate", "always"]>>;
|
|
268
|
+
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
255
269
|
}, "strip", z.ZodTypeAny, {
|
|
270
|
+
interactionMode: "modifier-key" | "click-to-activate" | "always";
|
|
271
|
+
markdown: boolean;
|
|
256
272
|
entities: {
|
|
257
273
|
id: string;
|
|
258
274
|
label: string;
|
|
@@ -286,6 +302,8 @@ declare const relationSchema: z.ZodObject<{
|
|
|
286
302
|
label?: string | undefined;
|
|
287
303
|
}[];
|
|
288
304
|
layout?: "top-down" | "left-right" | undefined;
|
|
305
|
+
interactionMode?: "modifier-key" | "click-to-activate" | "always" | undefined;
|
|
306
|
+
markdown?: boolean | undefined;
|
|
289
307
|
}>;
|
|
290
308
|
|
|
291
309
|
declare const timelineSchema: z.ZodObject<{
|
|
@@ -308,13 +326,13 @@ declare const timelineSchema: z.ZodObject<{
|
|
|
308
326
|
orientation: z.ZodOptional<z.ZodEnum<["vertical", "horizontal"]>>;
|
|
309
327
|
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
310
328
|
}, "strip", z.ZodTypeAny, {
|
|
329
|
+
markdown: boolean;
|
|
311
330
|
events: {
|
|
312
331
|
date: string;
|
|
313
332
|
title: string;
|
|
314
333
|
type?: string | undefined;
|
|
315
334
|
description?: string | undefined;
|
|
316
335
|
}[];
|
|
317
|
-
markdown: boolean;
|
|
318
336
|
orientation?: "vertical" | "horizontal" | undefined;
|
|
319
337
|
}, {
|
|
320
338
|
events: {
|
|
@@ -323,8 +341,8 @@ declare const timelineSchema: z.ZodObject<{
|
|
|
323
341
|
type?: string | undefined;
|
|
324
342
|
description?: string | undefined;
|
|
325
343
|
}[];
|
|
326
|
-
orientation?: "vertical" | "horizontal" | undefined;
|
|
327
344
|
markdown?: boolean | undefined;
|
|
345
|
+
orientation?: "vertical" | "horizontal" | undefined;
|
|
328
346
|
}>;
|
|
329
347
|
|
|
330
348
|
declare const calloutSchema: z.ZodObject<{
|
|
@@ -340,8 +358,8 @@ declare const calloutSchema: z.ZodObject<{
|
|
|
340
358
|
}, {
|
|
341
359
|
type: "info" | "warning" | "error" | "tip";
|
|
342
360
|
content: string;
|
|
343
|
-
title?: string | undefined;
|
|
344
361
|
markdown?: boolean | undefined;
|
|
362
|
+
title?: string | undefined;
|
|
345
363
|
}>;
|
|
346
364
|
|
|
347
365
|
declare const tabsSchema: z.ZodObject<{
|
|
@@ -355,7 +373,9 @@ declare const tabsSchema: z.ZodObject<{
|
|
|
355
373
|
label: string;
|
|
356
374
|
content: string;
|
|
357
375
|
}>, "many">;
|
|
376
|
+
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
358
377
|
}, "strip", z.ZodTypeAny, {
|
|
378
|
+
markdown: boolean;
|
|
359
379
|
tabs: {
|
|
360
380
|
label: string;
|
|
361
381
|
content: string;
|
|
@@ -365,6 +385,7 @@ declare const tabsSchema: z.ZodObject<{
|
|
|
365
385
|
label: string;
|
|
366
386
|
content: string;
|
|
367
387
|
}[];
|
|
388
|
+
markdown?: boolean | undefined;
|
|
368
389
|
}>;
|
|
369
390
|
|
|
370
391
|
declare const stepsSchema: z.ZodObject<{
|
|
@@ -500,9 +521,9 @@ declare const kpiSchema: z.ZodObject<{
|
|
|
500
521
|
sentiment?: "positive" | "negative" | "neutral" | undefined;
|
|
501
522
|
unit?: string | undefined;
|
|
502
523
|
}[];
|
|
524
|
+
markdown?: boolean | undefined;
|
|
503
525
|
columns?: number | undefined;
|
|
504
526
|
title?: string | undefined;
|
|
505
|
-
markdown?: boolean | undefined;
|
|
506
527
|
}>;
|
|
507
528
|
|
|
508
529
|
declare const accordionSchema: z.ZodObject<{
|
|
@@ -534,8 +555,8 @@ declare const accordionSchema: z.ZodObject<{
|
|
|
534
555
|
title: string;
|
|
535
556
|
content: string;
|
|
536
557
|
}[];
|
|
537
|
-
title?: string | undefined;
|
|
538
558
|
markdown?: boolean | undefined;
|
|
559
|
+
title?: string | undefined;
|
|
539
560
|
defaultOpen?: number[] | undefined;
|
|
540
561
|
multiple?: boolean | undefined;
|
|
541
562
|
}>;
|
|
@@ -583,8 +604,8 @@ declare const comparisonSchema: z.ZodEffects<z.ZodObject<{
|
|
|
583
604
|
values: string[];
|
|
584
605
|
name: string;
|
|
585
606
|
}[];
|
|
586
|
-
title?: string | undefined;
|
|
587
607
|
markdown?: boolean | undefined;
|
|
608
|
+
title?: string | undefined;
|
|
588
609
|
}>, {
|
|
589
610
|
options: {
|
|
590
611
|
name: string;
|
|
@@ -605,8 +626,8 @@ declare const comparisonSchema: z.ZodEffects<z.ZodObject<{
|
|
|
605
626
|
values: string[];
|
|
606
627
|
name: string;
|
|
607
628
|
}[];
|
|
608
|
-
title?: string | undefined;
|
|
609
629
|
markdown?: boolean | undefined;
|
|
630
|
+
title?: string | undefined;
|
|
610
631
|
}>;
|
|
611
632
|
|
|
612
633
|
declare const codediffSchema: z.ZodObject<{
|
|
@@ -615,7 +636,9 @@ declare const codediffSchema: z.ZodObject<{
|
|
|
615
636
|
after: z.ZodString;
|
|
616
637
|
beforeLabel: z.ZodOptional<z.ZodString>;
|
|
617
638
|
afterLabel: z.ZodOptional<z.ZodString>;
|
|
639
|
+
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
618
640
|
}, "strip", z.ZodTypeAny, {
|
|
641
|
+
markdown: boolean;
|
|
619
642
|
before: string;
|
|
620
643
|
after: string;
|
|
621
644
|
language?: string | undefined;
|
|
@@ -624,6 +647,7 @@ declare const codediffSchema: z.ZodObject<{
|
|
|
624
647
|
}, {
|
|
625
648
|
before: string;
|
|
626
649
|
after: string;
|
|
650
|
+
markdown?: boolean | undefined;
|
|
627
651
|
language?: string | undefined;
|
|
628
652
|
beforeLabel?: string | undefined;
|
|
629
653
|
afterLabel?: string | undefined;
|
|
@@ -658,6 +682,8 @@ declare const flowchartSchema: z.ZodObject<{
|
|
|
658
682
|
label?: string | undefined;
|
|
659
683
|
}>, "many">;
|
|
660
684
|
direction: z.ZodDefault<z.ZodEnum<["top-down", "left-right"]>>;
|
|
685
|
+
interactionMode: z.ZodDefault<z.ZodEnum<["modifier-key", "click-to-activate", "always"]>>;
|
|
686
|
+
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
661
687
|
}, "strip", z.ZodTypeAny, {
|
|
662
688
|
nodes: {
|
|
663
689
|
type: "start" | "end" | "process" | "decision";
|
|
@@ -669,6 +695,8 @@ declare const flowchartSchema: z.ZodObject<{
|
|
|
669
695
|
to: string;
|
|
670
696
|
label?: string | undefined;
|
|
671
697
|
}[];
|
|
698
|
+
interactionMode: "modifier-key" | "click-to-activate" | "always";
|
|
699
|
+
markdown: boolean;
|
|
672
700
|
direction: "top-down" | "left-right";
|
|
673
701
|
title?: string | undefined;
|
|
674
702
|
}, {
|
|
@@ -682,6 +710,8 @@ declare const flowchartSchema: z.ZodObject<{
|
|
|
682
710
|
to: string;
|
|
683
711
|
label?: string | undefined;
|
|
684
712
|
}[];
|
|
713
|
+
interactionMode?: "modifier-key" | "click-to-activate" | "always" | undefined;
|
|
714
|
+
markdown?: boolean | undefined;
|
|
685
715
|
title?: string | undefined;
|
|
686
716
|
direction?: "top-down" | "left-right" | undefined;
|
|
687
717
|
}>;
|
|
@@ -760,7 +790,9 @@ declare const sequenceSchema: z.ZodObject<{
|
|
|
760
790
|
to: string;
|
|
761
791
|
type?: "message" | "reply" | "self" | undefined;
|
|
762
792
|
}>, "many">;
|
|
793
|
+
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
763
794
|
}, "strip", z.ZodTypeAny, {
|
|
795
|
+
markdown: boolean;
|
|
764
796
|
actors: {
|
|
765
797
|
id: string;
|
|
766
798
|
label: string;
|
|
@@ -783,6 +815,7 @@ declare const sequenceSchema: z.ZodObject<{
|
|
|
783
815
|
to: string;
|
|
784
816
|
type?: "message" | "reply" | "self" | undefined;
|
|
785
817
|
}[];
|
|
818
|
+
markdown?: boolean | undefined;
|
|
786
819
|
title?: string | undefined;
|
|
787
820
|
}>;
|
|
788
821
|
|
|
@@ -837,7 +870,9 @@ declare const equationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
837
870
|
expression: string;
|
|
838
871
|
annotation?: string | undefined;
|
|
839
872
|
}>, "many">>;
|
|
873
|
+
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
840
874
|
}, "strip", z.ZodTypeAny, {
|
|
875
|
+
markdown: boolean;
|
|
841
876
|
label?: string | undefined;
|
|
842
877
|
steps?: {
|
|
843
878
|
expression: string;
|
|
@@ -846,12 +881,14 @@ declare const equationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
846
881
|
expression?: string | undefined;
|
|
847
882
|
}, {
|
|
848
883
|
label?: string | undefined;
|
|
884
|
+
markdown?: boolean | undefined;
|
|
849
885
|
steps?: {
|
|
850
886
|
expression: string;
|
|
851
887
|
annotation?: string | undefined;
|
|
852
888
|
}[] | undefined;
|
|
853
889
|
expression?: string | undefined;
|
|
854
890
|
}>, {
|
|
891
|
+
markdown: boolean;
|
|
855
892
|
label?: string | undefined;
|
|
856
893
|
steps?: {
|
|
857
894
|
expression: string;
|
|
@@ -860,6 +897,7 @@ declare const equationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
860
897
|
expression?: string | undefined;
|
|
861
898
|
}, {
|
|
862
899
|
label?: string | undefined;
|
|
900
|
+
markdown?: boolean | undefined;
|
|
863
901
|
steps?: {
|
|
864
902
|
expression: string;
|
|
865
903
|
annotation?: string | undefined;
|
|
@@ -964,8 +1002,8 @@ declare const quizSchema: z.ZodObject<{
|
|
|
964
1002
|
answer: number[];
|
|
965
1003
|
explanation?: string | undefined;
|
|
966
1004
|
})[];
|
|
967
|
-
title?: string | undefined;
|
|
968
1005
|
markdown?: boolean | undefined;
|
|
1006
|
+
title?: string | undefined;
|
|
969
1007
|
showScore?: boolean | undefined;
|
|
970
1008
|
}>;
|
|
971
1009
|
|
|
@@ -1039,9 +1077,9 @@ declare const cardSchema: z.ZodObject<{
|
|
|
1039
1077
|
url: string;
|
|
1040
1078
|
}[] | undefined;
|
|
1041
1079
|
}[];
|
|
1080
|
+
markdown?: boolean | undefined;
|
|
1042
1081
|
columns?: number | undefined;
|
|
1043
1082
|
title?: string | undefined;
|
|
1044
|
-
markdown?: boolean | undefined;
|
|
1045
1083
|
variant?: "default" | "outlined" | "elevated" | undefined;
|
|
1046
1084
|
}>;
|
|
1047
1085
|
|
|
@@ -1330,8 +1368,8 @@ declare const infographicSchema: z.ZodObject<{
|
|
|
1330
1368
|
})[];
|
|
1331
1369
|
heading?: string | undefined;
|
|
1332
1370
|
}[];
|
|
1333
|
-
title?: string | undefined;
|
|
1334
1371
|
markdown?: boolean | undefined;
|
|
1372
|
+
title?: string | undefined;
|
|
1335
1373
|
}>;
|
|
1336
1374
|
|
|
1337
1375
|
declare const pollSchema: z.ZodObject<{
|
|
@@ -1351,8 +1389,8 @@ declare const pollSchema: z.ZodObject<{
|
|
|
1351
1389
|
}, {
|
|
1352
1390
|
options: string[];
|
|
1353
1391
|
question: string;
|
|
1354
|
-
title?: string | undefined;
|
|
1355
1392
|
markdown?: boolean | undefined;
|
|
1393
|
+
title?: string | undefined;
|
|
1356
1394
|
multiple?: boolean | undefined;
|
|
1357
1395
|
showResults?: boolean | undefined;
|
|
1358
1396
|
}>;
|
|
@@ -1400,8 +1438,8 @@ declare const ratingSchema: z.ZodObject<{
|
|
|
1400
1438
|
label: string;
|
|
1401
1439
|
description?: string | undefined;
|
|
1402
1440
|
}[];
|
|
1403
|
-
title?: string | undefined;
|
|
1404
1441
|
markdown?: boolean | undefined;
|
|
1442
|
+
title?: string | undefined;
|
|
1405
1443
|
scale?: number | undefined;
|
|
1406
1444
|
mode?: "number" | "star" | undefined;
|
|
1407
1445
|
labels?: {
|
|
@@ -1440,8 +1478,8 @@ declare const rankerSchema: z.ZodObject<{
|
|
|
1440
1478
|
label: string;
|
|
1441
1479
|
description?: string | undefined;
|
|
1442
1480
|
}[];
|
|
1443
|
-
title?: string | undefined;
|
|
1444
1481
|
markdown?: boolean | undefined;
|
|
1482
|
+
title?: string | undefined;
|
|
1445
1483
|
}>;
|
|
1446
1484
|
|
|
1447
1485
|
declare const sliderSchema: z.ZodObject<{
|
|
@@ -1497,8 +1535,8 @@ declare const sliderSchema: z.ZodObject<{
|
|
|
1497
1535
|
step?: number | undefined;
|
|
1498
1536
|
}[];
|
|
1499
1537
|
layout?: "vertical" | "horizontal" | undefined;
|
|
1500
|
-
title?: string | undefined;
|
|
1501
1538
|
markdown?: boolean | undefined;
|
|
1539
|
+
title?: string | undefined;
|
|
1502
1540
|
}>;
|
|
1503
1541
|
|
|
1504
1542
|
declare const matrixSchema: z.ZodObject<{
|
|
@@ -1530,6 +1568,7 @@ declare const matrixSchema: z.ZodObject<{
|
|
|
1530
1568
|
}>, "many">;
|
|
1531
1569
|
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
1532
1570
|
}, "strip", z.ZodTypeAny, {
|
|
1571
|
+
markdown: boolean;
|
|
1533
1572
|
columns: {
|
|
1534
1573
|
id: string;
|
|
1535
1574
|
label: string;
|
|
@@ -1539,7 +1578,6 @@ declare const matrixSchema: z.ZodObject<{
|
|
|
1539
1578
|
id: string;
|
|
1540
1579
|
label: string;
|
|
1541
1580
|
}[];
|
|
1542
|
-
markdown: boolean;
|
|
1543
1581
|
scale: number;
|
|
1544
1582
|
showTotals: boolean;
|
|
1545
1583
|
title?: string | undefined;
|
|
@@ -1553,8 +1591,8 @@ declare const matrixSchema: z.ZodObject<{
|
|
|
1553
1591
|
id: string;
|
|
1554
1592
|
label: string;
|
|
1555
1593
|
}[];
|
|
1556
|
-
title?: string | undefined;
|
|
1557
1594
|
markdown?: boolean | undefined;
|
|
1595
|
+
title?: string | undefined;
|
|
1558
1596
|
scale?: number | undefined;
|
|
1559
1597
|
showTotals?: boolean | undefined;
|
|
1560
1598
|
}>;
|
|
@@ -1753,9 +1791,9 @@ declare const formSchema: z.ZodObject<{
|
|
|
1753
1791
|
default?: number | undefined;
|
|
1754
1792
|
step?: number | undefined;
|
|
1755
1793
|
})[];
|
|
1794
|
+
markdown?: boolean | undefined;
|
|
1756
1795
|
title?: string | undefined;
|
|
1757
1796
|
description?: string | undefined;
|
|
1758
|
-
markdown?: boolean | undefined;
|
|
1759
1797
|
submitLabel?: string | undefined;
|
|
1760
1798
|
}>;
|
|
1761
1799
|
|
|
@@ -1807,7 +1845,9 @@ declare const kanbanSchema: z.ZodObject<{
|
|
|
1807
1845
|
}[] | undefined;
|
|
1808
1846
|
limit?: number | undefined;
|
|
1809
1847
|
}>, "many">;
|
|
1848
|
+
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
1810
1849
|
}, "strip", z.ZodTypeAny, {
|
|
1850
|
+
markdown: boolean;
|
|
1811
1851
|
columns: {
|
|
1812
1852
|
id: string;
|
|
1813
1853
|
title: string;
|
|
@@ -1834,6 +1874,7 @@ declare const kanbanSchema: z.ZodObject<{
|
|
|
1834
1874
|
}[] | undefined;
|
|
1835
1875
|
limit?: number | undefined;
|
|
1836
1876
|
}[];
|
|
1877
|
+
markdown?: boolean | undefined;
|
|
1837
1878
|
title?: string | undefined;
|
|
1838
1879
|
}>;
|
|
1839
1880
|
|
|
@@ -1887,8 +1928,8 @@ declare const annotateSchema: z.ZodObject<{
|
|
|
1887
1928
|
name: string;
|
|
1888
1929
|
color: string;
|
|
1889
1930
|
}[];
|
|
1890
|
-
title?: string | undefined;
|
|
1891
1931
|
markdown?: boolean | undefined;
|
|
1932
|
+
title?: string | undefined;
|
|
1892
1933
|
annotations?: {
|
|
1893
1934
|
label: string;
|
|
1894
1935
|
start: number;
|