@glyphjs/schemas 0.7.1 → 0.9.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 +74 -49
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +323 -265
- package/dist/index.d.ts +323 -265
- package/dist/index.js +71 -50
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -4,19 +4,19 @@ declare const graphSchema: z.ZodObject<{
|
|
|
4
4
|
type: z.ZodEnum<["dag", "flowchart", "mindmap", "force"]>;
|
|
5
5
|
nodes: z.ZodArray<z.ZodObject<{
|
|
6
6
|
id: z.ZodString;
|
|
7
|
-
label: z.ZodString
|
|
7
|
+
label: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
8
8
|
type: z.ZodOptional<z.ZodString>;
|
|
9
9
|
style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10
10
|
group: z.ZodOptional<z.ZodString>;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
12
|
id: string;
|
|
13
|
-
label: string;
|
|
13
|
+
label: string | any[];
|
|
14
14
|
type?: string | undefined;
|
|
15
15
|
style?: Record<string, string> | undefined;
|
|
16
16
|
group?: string | undefined;
|
|
17
17
|
}, {
|
|
18
18
|
id: string;
|
|
19
|
-
label: string;
|
|
19
|
+
label: string | any[];
|
|
20
20
|
type?: string | undefined;
|
|
21
21
|
style?: Record<string, string> | undefined;
|
|
22
22
|
group?: string | undefined;
|
|
@@ -24,20 +24,20 @@ declare const graphSchema: z.ZodObject<{
|
|
|
24
24
|
edges: z.ZodArray<z.ZodObject<{
|
|
25
25
|
from: z.ZodString;
|
|
26
26
|
to: z.ZodString;
|
|
27
|
-
label: z.ZodOptional<z.ZodString
|
|
27
|
+
label: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
28
28
|
type: z.ZodOptional<z.ZodString>;
|
|
29
29
|
style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
31
|
from: string;
|
|
32
32
|
to: string;
|
|
33
33
|
type?: string | undefined;
|
|
34
|
-
label?: string | undefined;
|
|
34
|
+
label?: string | any[] | undefined;
|
|
35
35
|
style?: Record<string, string> | undefined;
|
|
36
36
|
}, {
|
|
37
37
|
from: string;
|
|
38
38
|
to: string;
|
|
39
39
|
type?: string | undefined;
|
|
40
|
-
label?: string | undefined;
|
|
40
|
+
label?: string | any[] | undefined;
|
|
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"]>>;
|
|
@@ -47,7 +47,7 @@ declare const graphSchema: z.ZodObject<{
|
|
|
47
47
|
type: "dag" | "flowchart" | "mindmap" | "force";
|
|
48
48
|
nodes: {
|
|
49
49
|
id: string;
|
|
50
|
-
label: string;
|
|
50
|
+
label: string | any[];
|
|
51
51
|
type?: string | undefined;
|
|
52
52
|
style?: Record<string, string> | undefined;
|
|
53
53
|
group?: string | undefined;
|
|
@@ -56,7 +56,7 @@ declare const graphSchema: z.ZodObject<{
|
|
|
56
56
|
from: string;
|
|
57
57
|
to: string;
|
|
58
58
|
type?: string | undefined;
|
|
59
|
-
label?: string | undefined;
|
|
59
|
+
label?: string | any[] | undefined;
|
|
60
60
|
style?: Record<string, string> | undefined;
|
|
61
61
|
}[];
|
|
62
62
|
interactionMode: "modifier-key" | "click-to-activate" | "always";
|
|
@@ -66,7 +66,7 @@ declare const graphSchema: z.ZodObject<{
|
|
|
66
66
|
type: "dag" | "flowchart" | "mindmap" | "force";
|
|
67
67
|
nodes: {
|
|
68
68
|
id: string;
|
|
69
|
-
label: string;
|
|
69
|
+
label: string | any[];
|
|
70
70
|
type?: string | undefined;
|
|
71
71
|
style?: Record<string, string> | undefined;
|
|
72
72
|
group?: string | undefined;
|
|
@@ -75,7 +75,7 @@ declare const graphSchema: z.ZodObject<{
|
|
|
75
75
|
from: string;
|
|
76
76
|
to: string;
|
|
77
77
|
type?: string | undefined;
|
|
78
|
-
label?: string | undefined;
|
|
78
|
+
label?: string | any[] | undefined;
|
|
79
79
|
style?: Record<string, string> | undefined;
|
|
80
80
|
}[];
|
|
81
81
|
layout?: "force" | "top-down" | "left-right" | "bottom-up" | "radial" | undefined;
|
|
@@ -86,18 +86,18 @@ declare const graphSchema: z.ZodObject<{
|
|
|
86
86
|
declare const tableSchema: z.ZodObject<{
|
|
87
87
|
columns: z.ZodArray<z.ZodObject<{
|
|
88
88
|
key: z.ZodString;
|
|
89
|
-
label: z.ZodString
|
|
89
|
+
label: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
90
90
|
sortable: z.ZodOptional<z.ZodBoolean>;
|
|
91
91
|
filterable: z.ZodOptional<z.ZodBoolean>;
|
|
92
92
|
type: z.ZodOptional<z.ZodEnum<["string", "number", "date", "boolean"]>>;
|
|
93
93
|
}, "strip", z.ZodTypeAny, {
|
|
94
|
-
label: string;
|
|
94
|
+
label: string | any[];
|
|
95
95
|
key: string;
|
|
96
96
|
type?: "string" | "number" | "boolean" | "date" | undefined;
|
|
97
97
|
sortable?: boolean | undefined;
|
|
98
98
|
filterable?: boolean | undefined;
|
|
99
99
|
}, {
|
|
100
|
-
label: string;
|
|
100
|
+
label: string | any[];
|
|
101
101
|
key: string;
|
|
102
102
|
type?: "string" | "number" | "boolean" | "date" | undefined;
|
|
103
103
|
sortable?: boolean | undefined;
|
|
@@ -118,7 +118,7 @@ declare const tableSchema: z.ZodObject<{
|
|
|
118
118
|
}, "strip", z.ZodTypeAny, {
|
|
119
119
|
markdown: boolean;
|
|
120
120
|
columns: {
|
|
121
|
-
label: string;
|
|
121
|
+
label: string | any[];
|
|
122
122
|
key: string;
|
|
123
123
|
type?: "string" | "number" | "boolean" | "date" | undefined;
|
|
124
124
|
sortable?: boolean | undefined;
|
|
@@ -131,7 +131,7 @@ declare const tableSchema: z.ZodObject<{
|
|
|
131
131
|
}[] | undefined;
|
|
132
132
|
}, {
|
|
133
133
|
columns: {
|
|
134
|
-
label: string;
|
|
134
|
+
label: string | any[];
|
|
135
135
|
key: string;
|
|
136
136
|
type?: "string" | "number" | "boolean" | "date" | undefined;
|
|
137
137
|
sortable?: boolean | undefined;
|
|
@@ -148,34 +148,34 @@ declare const tableSchema: z.ZodObject<{
|
|
|
148
148
|
declare const chartSchema: z.ZodObject<{
|
|
149
149
|
type: z.ZodEnum<["line", "bar", "area", "ohlc"]>;
|
|
150
150
|
series: z.ZodArray<z.ZodObject<{
|
|
151
|
-
name: z.ZodString
|
|
151
|
+
name: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
152
152
|
data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodNumber, z.ZodString]>>, "many">;
|
|
153
153
|
}, "strip", z.ZodTypeAny, {
|
|
154
|
-
name: string;
|
|
154
|
+
name: string | any[];
|
|
155
155
|
data: Record<string, string | number>[];
|
|
156
156
|
}, {
|
|
157
|
-
name: string;
|
|
157
|
+
name: string | any[];
|
|
158
158
|
data: Record<string, string | number>[];
|
|
159
159
|
}>, "many">;
|
|
160
160
|
xAxis: z.ZodOptional<z.ZodObject<{
|
|
161
161
|
key: z.ZodString;
|
|
162
|
-
label: z.ZodOptional<z.ZodString
|
|
162
|
+
label: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
163
163
|
}, "strip", z.ZodTypeAny, {
|
|
164
164
|
key: string;
|
|
165
|
-
label?: string | undefined;
|
|
165
|
+
label?: string | any[] | undefined;
|
|
166
166
|
}, {
|
|
167
167
|
key: string;
|
|
168
|
-
label?: string | undefined;
|
|
168
|
+
label?: string | any[] | undefined;
|
|
169
169
|
}>>;
|
|
170
170
|
yAxis: z.ZodOptional<z.ZodObject<{
|
|
171
171
|
key: z.ZodString;
|
|
172
|
-
label: z.ZodOptional<z.ZodString
|
|
172
|
+
label: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
173
173
|
}, "strip", z.ZodTypeAny, {
|
|
174
174
|
key: string;
|
|
175
|
-
label?: string | undefined;
|
|
175
|
+
label?: string | any[] | undefined;
|
|
176
176
|
}, {
|
|
177
177
|
key: string;
|
|
178
|
-
label?: string | undefined;
|
|
178
|
+
label?: string | any[] | undefined;
|
|
179
179
|
}>>;
|
|
180
180
|
legend: z.ZodOptional<z.ZodBoolean>;
|
|
181
181
|
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -183,32 +183,32 @@ declare const chartSchema: z.ZodObject<{
|
|
|
183
183
|
type: "line" | "bar" | "area" | "ohlc";
|
|
184
184
|
markdown: boolean;
|
|
185
185
|
series: {
|
|
186
|
-
name: string;
|
|
186
|
+
name: string | any[];
|
|
187
187
|
data: Record<string, string | number>[];
|
|
188
188
|
}[];
|
|
189
189
|
xAxis?: {
|
|
190
190
|
key: string;
|
|
191
|
-
label?: string | undefined;
|
|
191
|
+
label?: string | any[] | undefined;
|
|
192
192
|
} | undefined;
|
|
193
193
|
yAxis?: {
|
|
194
194
|
key: string;
|
|
195
|
-
label?: string | undefined;
|
|
195
|
+
label?: string | any[] | undefined;
|
|
196
196
|
} | undefined;
|
|
197
197
|
legend?: boolean | undefined;
|
|
198
198
|
}, {
|
|
199
199
|
type: "line" | "bar" | "area" | "ohlc";
|
|
200
200
|
series: {
|
|
201
|
-
name: string;
|
|
201
|
+
name: string | any[];
|
|
202
202
|
data: Record<string, string | number>[];
|
|
203
203
|
}[];
|
|
204
204
|
markdown?: boolean | undefined;
|
|
205
205
|
xAxis?: {
|
|
206
206
|
key: string;
|
|
207
|
-
label?: string | undefined;
|
|
207
|
+
label?: string | any[] | undefined;
|
|
208
208
|
} | undefined;
|
|
209
209
|
yAxis?: {
|
|
210
210
|
key: string;
|
|
211
|
-
label?: string | undefined;
|
|
211
|
+
label?: string | any[] | undefined;
|
|
212
212
|
} | undefined;
|
|
213
213
|
legend?: boolean | undefined;
|
|
214
214
|
}>;
|
|
@@ -216,52 +216,52 @@ declare const chartSchema: z.ZodObject<{
|
|
|
216
216
|
declare const relationSchema: z.ZodObject<{
|
|
217
217
|
entities: z.ZodArray<z.ZodObject<{
|
|
218
218
|
id: z.ZodString;
|
|
219
|
-
label: z.ZodString
|
|
219
|
+
label: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
220
220
|
attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
221
|
-
name: z.ZodString
|
|
221
|
+
name: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
222
222
|
type: z.ZodString;
|
|
223
223
|
primaryKey: z.ZodOptional<z.ZodBoolean>;
|
|
224
224
|
}, "strip", z.ZodTypeAny, {
|
|
225
225
|
type: string;
|
|
226
|
-
name: string;
|
|
226
|
+
name: string | any[];
|
|
227
227
|
primaryKey?: boolean | undefined;
|
|
228
228
|
}, {
|
|
229
229
|
type: string;
|
|
230
|
-
name: string;
|
|
230
|
+
name: string | any[];
|
|
231
231
|
primaryKey?: boolean | undefined;
|
|
232
232
|
}>, "many">>;
|
|
233
233
|
}, "strip", z.ZodTypeAny, {
|
|
234
234
|
id: string;
|
|
235
|
-
label: string;
|
|
235
|
+
label: string | any[];
|
|
236
236
|
attributes?: {
|
|
237
237
|
type: string;
|
|
238
|
-
name: string;
|
|
238
|
+
name: string | any[];
|
|
239
239
|
primaryKey?: boolean | undefined;
|
|
240
240
|
}[] | undefined;
|
|
241
241
|
}, {
|
|
242
242
|
id: string;
|
|
243
|
-
label: string;
|
|
243
|
+
label: string | any[];
|
|
244
244
|
attributes?: {
|
|
245
245
|
type: string;
|
|
246
|
-
name: string;
|
|
246
|
+
name: string | any[];
|
|
247
247
|
primaryKey?: boolean | undefined;
|
|
248
248
|
}[] | undefined;
|
|
249
249
|
}>, "many">;
|
|
250
250
|
relationships: z.ZodArray<z.ZodObject<{
|
|
251
251
|
from: z.ZodString;
|
|
252
252
|
to: z.ZodString;
|
|
253
|
-
label: z.ZodOptional<z.ZodString
|
|
253
|
+
label: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
254
254
|
cardinality: z.ZodEnum<["1:1", "1:N", "N:1", "N:M"]>;
|
|
255
255
|
}, "strip", z.ZodTypeAny, {
|
|
256
256
|
from: string;
|
|
257
257
|
to: string;
|
|
258
258
|
cardinality: "1:1" | "1:N" | "N:1" | "N:M";
|
|
259
|
-
label?: string | undefined;
|
|
259
|
+
label?: string | any[] | undefined;
|
|
260
260
|
}, {
|
|
261
261
|
from: string;
|
|
262
262
|
to: string;
|
|
263
263
|
cardinality: "1:1" | "1:N" | "N:1" | "N:M";
|
|
264
|
-
label?: string | undefined;
|
|
264
|
+
label?: string | any[] | undefined;
|
|
265
265
|
}>, "many">;
|
|
266
266
|
layout: z.ZodOptional<z.ZodEnum<["top-down", "left-right"]>>;
|
|
267
267
|
interactionMode: z.ZodDefault<z.ZodEnum<["modifier-key", "click-to-activate", "always"]>>;
|
|
@@ -271,10 +271,10 @@ declare const relationSchema: z.ZodObject<{
|
|
|
271
271
|
markdown: boolean;
|
|
272
272
|
entities: {
|
|
273
273
|
id: string;
|
|
274
|
-
label: string;
|
|
274
|
+
label: string | any[];
|
|
275
275
|
attributes?: {
|
|
276
276
|
type: string;
|
|
277
|
-
name: string;
|
|
277
|
+
name: string | any[];
|
|
278
278
|
primaryKey?: boolean | undefined;
|
|
279
279
|
}[] | undefined;
|
|
280
280
|
}[];
|
|
@@ -282,16 +282,16 @@ declare const relationSchema: z.ZodObject<{
|
|
|
282
282
|
from: string;
|
|
283
283
|
to: string;
|
|
284
284
|
cardinality: "1:1" | "1:N" | "N:1" | "N:M";
|
|
285
|
-
label?: string | undefined;
|
|
285
|
+
label?: string | any[] | undefined;
|
|
286
286
|
}[];
|
|
287
287
|
layout?: "top-down" | "left-right" | undefined;
|
|
288
288
|
}, {
|
|
289
289
|
entities: {
|
|
290
290
|
id: string;
|
|
291
|
-
label: string;
|
|
291
|
+
label: string | any[];
|
|
292
292
|
attributes?: {
|
|
293
293
|
type: string;
|
|
294
|
-
name: string;
|
|
294
|
+
name: string | any[];
|
|
295
295
|
primaryKey?: boolean | undefined;
|
|
296
296
|
}[] | undefined;
|
|
297
297
|
}[];
|
|
@@ -299,7 +299,7 @@ declare const relationSchema: z.ZodObject<{
|
|
|
299
299
|
from: string;
|
|
300
300
|
to: string;
|
|
301
301
|
cardinality: "1:1" | "1:N" | "N:1" | "N:M";
|
|
302
|
-
label?: string | undefined;
|
|
302
|
+
label?: string | any[] | undefined;
|
|
303
303
|
}[];
|
|
304
304
|
layout?: "top-down" | "left-right" | undefined;
|
|
305
305
|
interactionMode?: "modifier-key" | "click-to-activate" | "always" | undefined;
|
|
@@ -309,19 +309,19 @@ declare const relationSchema: z.ZodObject<{
|
|
|
309
309
|
declare const timelineSchema: z.ZodObject<{
|
|
310
310
|
events: z.ZodArray<z.ZodObject<{
|
|
311
311
|
date: z.ZodString;
|
|
312
|
-
title: z.ZodString
|
|
313
|
-
description: z.ZodOptional<z.ZodString
|
|
312
|
+
title: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
313
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
314
314
|
type: z.ZodOptional<z.ZodString>;
|
|
315
315
|
}, "strip", z.ZodTypeAny, {
|
|
316
316
|
date: string;
|
|
317
|
-
title: string;
|
|
317
|
+
title: string | any[];
|
|
318
318
|
type?: string | undefined;
|
|
319
|
-
description?: string | undefined;
|
|
319
|
+
description?: string | any[] | undefined;
|
|
320
320
|
}, {
|
|
321
321
|
date: string;
|
|
322
|
-
title: string;
|
|
322
|
+
title: string | any[];
|
|
323
323
|
type?: string | undefined;
|
|
324
|
-
description?: string | undefined;
|
|
324
|
+
description?: string | any[] | undefined;
|
|
325
325
|
}>, "many">;
|
|
326
326
|
orientation: z.ZodOptional<z.ZodEnum<["vertical", "horizontal"]>>;
|
|
327
327
|
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -329,17 +329,17 @@ declare const timelineSchema: z.ZodObject<{
|
|
|
329
329
|
markdown: boolean;
|
|
330
330
|
events: {
|
|
331
331
|
date: string;
|
|
332
|
-
title: string;
|
|
332
|
+
title: string | any[];
|
|
333
333
|
type?: string | undefined;
|
|
334
|
-
description?: string | undefined;
|
|
334
|
+
description?: string | any[] | undefined;
|
|
335
335
|
}[];
|
|
336
336
|
orientation?: "vertical" | "horizontal" | undefined;
|
|
337
337
|
}, {
|
|
338
338
|
events: {
|
|
339
339
|
date: string;
|
|
340
|
-
title: string;
|
|
340
|
+
title: string | any[];
|
|
341
341
|
type?: string | undefined;
|
|
342
|
-
description?: string | undefined;
|
|
342
|
+
description?: string | any[] | undefined;
|
|
343
343
|
}[];
|
|
344
344
|
markdown?: boolean | undefined;
|
|
345
345
|
orientation?: "vertical" | "horizontal" | undefined;
|
|
@@ -347,43 +347,43 @@ declare const timelineSchema: z.ZodObject<{
|
|
|
347
347
|
|
|
348
348
|
declare const calloutSchema: z.ZodObject<{
|
|
349
349
|
type: z.ZodEnum<["info", "warning", "error", "tip"]>;
|
|
350
|
-
title: z.ZodOptional<z.ZodString
|
|
351
|
-
content: z.ZodString
|
|
350
|
+
title: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
351
|
+
content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
352
352
|
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
353
353
|
}, "strip", z.ZodTypeAny, {
|
|
354
354
|
type: "info" | "warning" | "error" | "tip";
|
|
355
355
|
markdown: boolean;
|
|
356
|
-
content: string;
|
|
357
|
-
title?: string | undefined;
|
|
356
|
+
content: string | any[];
|
|
357
|
+
title?: string | any[] | undefined;
|
|
358
358
|
}, {
|
|
359
359
|
type: "info" | "warning" | "error" | "tip";
|
|
360
|
-
content: string;
|
|
360
|
+
content: string | any[];
|
|
361
361
|
markdown?: boolean | undefined;
|
|
362
|
-
title?: string | undefined;
|
|
362
|
+
title?: string | any[] | undefined;
|
|
363
363
|
}>;
|
|
364
364
|
|
|
365
365
|
declare const tabsSchema: z.ZodObject<{
|
|
366
366
|
tabs: z.ZodArray<z.ZodObject<{
|
|
367
|
-
label: z.ZodString
|
|
368
|
-
content: z.ZodString
|
|
367
|
+
label: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
368
|
+
content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
369
369
|
}, "strip", z.ZodTypeAny, {
|
|
370
|
-
label: string;
|
|
371
|
-
content: string;
|
|
370
|
+
label: string | any[];
|
|
371
|
+
content: string | any[];
|
|
372
372
|
}, {
|
|
373
|
-
label: string;
|
|
374
|
-
content: string;
|
|
373
|
+
label: string | any[];
|
|
374
|
+
content: string | any[];
|
|
375
375
|
}>, "many">;
|
|
376
376
|
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
377
377
|
}, "strip", z.ZodTypeAny, {
|
|
378
378
|
markdown: boolean;
|
|
379
379
|
tabs: {
|
|
380
|
-
label: string;
|
|
381
|
-
content: string;
|
|
380
|
+
label: string | any[];
|
|
381
|
+
content: string | any[];
|
|
382
382
|
}[];
|
|
383
383
|
}, {
|
|
384
384
|
tabs: {
|
|
385
|
-
label: string;
|
|
386
|
-
content: string;
|
|
385
|
+
label: string | any[];
|
|
386
|
+
content: string | any[];
|
|
387
387
|
}[];
|
|
388
388
|
markdown?: boolean | undefined;
|
|
389
389
|
}>;
|
|
@@ -392,14 +392,14 @@ declare const stepsSchema: z.ZodObject<{
|
|
|
392
392
|
steps: z.ZodArray<z.ZodObject<{
|
|
393
393
|
title: z.ZodString;
|
|
394
394
|
status: z.ZodOptional<z.ZodEnum<["pending", "active", "completed"]>>;
|
|
395
|
-
content: z.ZodString
|
|
395
|
+
content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
396
396
|
}, "strip", z.ZodTypeAny, {
|
|
397
397
|
title: string;
|
|
398
|
-
content: string;
|
|
398
|
+
content: string | any[];
|
|
399
399
|
status?: "pending" | "active" | "completed" | undefined;
|
|
400
400
|
}, {
|
|
401
401
|
title: string;
|
|
402
|
-
content: string;
|
|
402
|
+
content: string | any[];
|
|
403
403
|
status?: "pending" | "active" | "completed" | undefined;
|
|
404
404
|
}>, "many">;
|
|
405
405
|
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -407,13 +407,13 @@ declare const stepsSchema: z.ZodObject<{
|
|
|
407
407
|
markdown: boolean;
|
|
408
408
|
steps: {
|
|
409
409
|
title: string;
|
|
410
|
-
content: string;
|
|
410
|
+
content: string | any[];
|
|
411
411
|
status?: "pending" | "active" | "completed" | undefined;
|
|
412
412
|
}[];
|
|
413
413
|
}, {
|
|
414
414
|
steps: {
|
|
415
415
|
title: string;
|
|
416
|
-
content: string;
|
|
416
|
+
content: string | any[];
|
|
417
417
|
status?: "pending" | "active" | "completed" | undefined;
|
|
418
418
|
}[];
|
|
419
419
|
markdown?: boolean | undefined;
|
|
@@ -483,7 +483,7 @@ declare const architectureSchema: z.ZodObject<{
|
|
|
483
483
|
declare const kpiSchema: z.ZodObject<{
|
|
484
484
|
title: z.ZodOptional<z.ZodString>;
|
|
485
485
|
metrics: z.ZodArray<z.ZodObject<{
|
|
486
|
-
label: z.ZodString
|
|
486
|
+
label: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
487
487
|
value: z.ZodString;
|
|
488
488
|
delta: z.ZodOptional<z.ZodString>;
|
|
489
489
|
trend: z.ZodOptional<z.ZodEnum<["up", "down", "flat"]>>;
|
|
@@ -491,14 +491,14 @@ declare const kpiSchema: z.ZodObject<{
|
|
|
491
491
|
unit: z.ZodOptional<z.ZodString>;
|
|
492
492
|
}, "strip", z.ZodTypeAny, {
|
|
493
493
|
value: string;
|
|
494
|
-
label: string;
|
|
494
|
+
label: string | any[];
|
|
495
495
|
delta?: string | undefined;
|
|
496
496
|
trend?: "flat" | "up" | "down" | undefined;
|
|
497
497
|
sentiment?: "positive" | "negative" | "neutral" | undefined;
|
|
498
498
|
unit?: string | undefined;
|
|
499
499
|
}, {
|
|
500
500
|
value: string;
|
|
501
|
-
label: string;
|
|
501
|
+
label: string | any[];
|
|
502
502
|
delta?: string | undefined;
|
|
503
503
|
trend?: "flat" | "up" | "down" | undefined;
|
|
504
504
|
sentiment?: "positive" | "negative" | "neutral" | undefined;
|
|
@@ -510,7 +510,7 @@ declare const kpiSchema: z.ZodObject<{
|
|
|
510
510
|
markdown: boolean;
|
|
511
511
|
metrics: {
|
|
512
512
|
value: string;
|
|
513
|
-
label: string;
|
|
513
|
+
label: string | any[];
|
|
514
514
|
delta?: string | undefined;
|
|
515
515
|
trend?: "flat" | "up" | "down" | undefined;
|
|
516
516
|
sentiment?: "positive" | "negative" | "neutral" | undefined;
|
|
@@ -521,7 +521,7 @@ declare const kpiSchema: z.ZodObject<{
|
|
|
521
521
|
}, {
|
|
522
522
|
metrics: {
|
|
523
523
|
value: string;
|
|
524
|
-
label: string;
|
|
524
|
+
label: string | any[];
|
|
525
525
|
delta?: string | undefined;
|
|
526
526
|
trend?: "flat" | "up" | "down" | undefined;
|
|
527
527
|
sentiment?: "positive" | "negative" | "neutral" | undefined;
|
|
@@ -536,13 +536,13 @@ declare const accordionSchema: z.ZodObject<{
|
|
|
536
536
|
title: z.ZodOptional<z.ZodString>;
|
|
537
537
|
sections: z.ZodArray<z.ZodObject<{
|
|
538
538
|
title: z.ZodString;
|
|
539
|
-
content: z.ZodString
|
|
539
|
+
content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
540
540
|
}, "strip", z.ZodTypeAny, {
|
|
541
541
|
title: string;
|
|
542
|
-
content: string;
|
|
542
|
+
content: string | any[];
|
|
543
543
|
}, {
|
|
544
544
|
title: string;
|
|
545
|
-
content: string;
|
|
545
|
+
content: string | any[];
|
|
546
546
|
}>, "many">;
|
|
547
547
|
defaultOpen: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
548
548
|
multiple: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -551,7 +551,7 @@ declare const accordionSchema: z.ZodObject<{
|
|
|
551
551
|
markdown: boolean;
|
|
552
552
|
sections: {
|
|
553
553
|
title: string;
|
|
554
|
-
content: string;
|
|
554
|
+
content: string | any[];
|
|
555
555
|
}[];
|
|
556
556
|
multiple: boolean;
|
|
557
557
|
title?: string | undefined;
|
|
@@ -559,7 +559,7 @@ declare const accordionSchema: z.ZodObject<{
|
|
|
559
559
|
}, {
|
|
560
560
|
sections: {
|
|
561
561
|
title: string;
|
|
562
|
-
content: string;
|
|
562
|
+
content: string | any[];
|
|
563
563
|
}[];
|
|
564
564
|
markdown?: boolean | undefined;
|
|
565
565
|
title?: string | undefined;
|
|
@@ -571,43 +571,43 @@ declare const comparisonSchema: z.ZodEffects<z.ZodObject<{
|
|
|
571
571
|
title: z.ZodOptional<z.ZodString>;
|
|
572
572
|
options: z.ZodArray<z.ZodObject<{
|
|
573
573
|
name: z.ZodString;
|
|
574
|
-
description: z.ZodOptional<z.ZodString
|
|
574
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
575
575
|
}, "strip", z.ZodTypeAny, {
|
|
576
576
|
name: string;
|
|
577
|
-
description?: string | undefined;
|
|
577
|
+
description?: string | any[] | undefined;
|
|
578
578
|
}, {
|
|
579
579
|
name: string;
|
|
580
|
-
description?: string | undefined;
|
|
580
|
+
description?: string | any[] | undefined;
|
|
581
581
|
}>, "many">;
|
|
582
582
|
features: z.ZodArray<z.ZodObject<{
|
|
583
583
|
name: z.ZodString;
|
|
584
|
-
values: z.ZodArray<z.ZodString, "many">;
|
|
584
|
+
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>, "many">;
|
|
585
585
|
}, "strip", z.ZodTypeAny, {
|
|
586
|
-
values: string[];
|
|
586
|
+
values: (string | any[])[];
|
|
587
587
|
name: string;
|
|
588
588
|
}, {
|
|
589
|
-
values: string[];
|
|
589
|
+
values: (string | any[])[];
|
|
590
590
|
name: string;
|
|
591
591
|
}>, "many">;
|
|
592
592
|
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
593
593
|
}, "strip", z.ZodTypeAny, {
|
|
594
594
|
options: {
|
|
595
595
|
name: string;
|
|
596
|
-
description?: string | undefined;
|
|
596
|
+
description?: string | any[] | undefined;
|
|
597
597
|
}[];
|
|
598
598
|
markdown: boolean;
|
|
599
599
|
features: {
|
|
600
|
-
values: string[];
|
|
600
|
+
values: (string | any[])[];
|
|
601
601
|
name: string;
|
|
602
602
|
}[];
|
|
603
603
|
title?: string | undefined;
|
|
604
604
|
}, {
|
|
605
605
|
options: {
|
|
606
606
|
name: string;
|
|
607
|
-
description?: string | undefined;
|
|
607
|
+
description?: string | any[] | undefined;
|
|
608
608
|
}[];
|
|
609
609
|
features: {
|
|
610
|
-
values: string[];
|
|
610
|
+
values: (string | any[])[];
|
|
611
611
|
name: string;
|
|
612
612
|
}[];
|
|
613
613
|
markdown?: boolean | undefined;
|
|
@@ -615,21 +615,21 @@ declare const comparisonSchema: z.ZodEffects<z.ZodObject<{
|
|
|
615
615
|
}>, {
|
|
616
616
|
options: {
|
|
617
617
|
name: string;
|
|
618
|
-
description?: string | undefined;
|
|
618
|
+
description?: string | any[] | undefined;
|
|
619
619
|
}[];
|
|
620
620
|
markdown: boolean;
|
|
621
621
|
features: {
|
|
622
|
-
values: string[];
|
|
622
|
+
values: (string | any[])[];
|
|
623
623
|
name: string;
|
|
624
624
|
}[];
|
|
625
625
|
title?: string | undefined;
|
|
626
626
|
}, {
|
|
627
627
|
options: {
|
|
628
628
|
name: string;
|
|
629
|
-
description?: string | undefined;
|
|
629
|
+
description?: string | any[] | undefined;
|
|
630
630
|
}[];
|
|
631
631
|
features: {
|
|
632
|
-
values: string[];
|
|
632
|
+
values: (string | any[])[];
|
|
633
633
|
name: string;
|
|
634
634
|
}[];
|
|
635
635
|
markdown?: boolean | undefined;
|
|
@@ -640,52 +640,52 @@ declare const codediffSchema: z.ZodObject<{
|
|
|
640
640
|
language: z.ZodOptional<z.ZodString>;
|
|
641
641
|
before: z.ZodString;
|
|
642
642
|
after: z.ZodString;
|
|
643
|
-
beforeLabel: z.ZodOptional<z.ZodString
|
|
644
|
-
afterLabel: z.ZodOptional<z.ZodString
|
|
643
|
+
beforeLabel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
644
|
+
afterLabel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
645
645
|
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
646
646
|
}, "strip", z.ZodTypeAny, {
|
|
647
647
|
markdown: boolean;
|
|
648
648
|
before: string;
|
|
649
649
|
after: string;
|
|
650
650
|
language?: string | undefined;
|
|
651
|
-
beforeLabel?: string | undefined;
|
|
652
|
-
afterLabel?: string | undefined;
|
|
651
|
+
beforeLabel?: string | any[] | undefined;
|
|
652
|
+
afterLabel?: string | any[] | undefined;
|
|
653
653
|
}, {
|
|
654
654
|
before: string;
|
|
655
655
|
after: string;
|
|
656
656
|
markdown?: boolean | undefined;
|
|
657
657
|
language?: string | undefined;
|
|
658
|
-
beforeLabel?: string | undefined;
|
|
659
|
-
afterLabel?: string | undefined;
|
|
658
|
+
beforeLabel?: string | any[] | undefined;
|
|
659
|
+
afterLabel?: string | any[] | undefined;
|
|
660
660
|
}>;
|
|
661
661
|
|
|
662
662
|
declare const flowchartSchema: z.ZodObject<{
|
|
663
|
-
title: z.ZodOptional<z.ZodString
|
|
663
|
+
title: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
664
664
|
nodes: z.ZodArray<z.ZodObject<{
|
|
665
665
|
id: z.ZodString;
|
|
666
666
|
type: z.ZodDefault<z.ZodEnum<["start", "end", "process", "decision"]>>;
|
|
667
|
-
label: z.ZodString
|
|
667
|
+
label: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
668
668
|
}, "strip", z.ZodTypeAny, {
|
|
669
669
|
type: "start" | "end" | "process" | "decision";
|
|
670
670
|
id: string;
|
|
671
|
-
label: string;
|
|
671
|
+
label: string | any[];
|
|
672
672
|
}, {
|
|
673
673
|
id: string;
|
|
674
|
-
label: string;
|
|
674
|
+
label: string | any[];
|
|
675
675
|
type?: "start" | "end" | "process" | "decision" | undefined;
|
|
676
676
|
}>, "many">;
|
|
677
677
|
edges: z.ZodArray<z.ZodObject<{
|
|
678
678
|
from: z.ZodString;
|
|
679
679
|
to: z.ZodString;
|
|
680
|
-
label: z.ZodOptional<z.ZodString
|
|
680
|
+
label: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
681
681
|
}, "strip", z.ZodTypeAny, {
|
|
682
682
|
from: string;
|
|
683
683
|
to: string;
|
|
684
|
-
label?: string | undefined;
|
|
684
|
+
label?: string | any[] | undefined;
|
|
685
685
|
}, {
|
|
686
686
|
from: string;
|
|
687
687
|
to: string;
|
|
688
|
-
label?: string | undefined;
|
|
688
|
+
label?: string | any[] | undefined;
|
|
689
689
|
}>, "many">;
|
|
690
690
|
direction: z.ZodDefault<z.ZodEnum<["top-down", "left-right"]>>;
|
|
691
691
|
interactionMode: z.ZodDefault<z.ZodEnum<["modifier-key", "click-to-activate", "always"]>>;
|
|
@@ -694,31 +694,31 @@ declare const flowchartSchema: z.ZodObject<{
|
|
|
694
694
|
nodes: {
|
|
695
695
|
type: "start" | "end" | "process" | "decision";
|
|
696
696
|
id: string;
|
|
697
|
-
label: string;
|
|
697
|
+
label: string | any[];
|
|
698
698
|
}[];
|
|
699
699
|
edges: {
|
|
700
700
|
from: string;
|
|
701
701
|
to: string;
|
|
702
|
-
label?: string | undefined;
|
|
702
|
+
label?: string | any[] | undefined;
|
|
703
703
|
}[];
|
|
704
704
|
interactionMode: "modifier-key" | "click-to-activate" | "always";
|
|
705
705
|
markdown: boolean;
|
|
706
706
|
direction: "top-down" | "left-right";
|
|
707
|
-
title?: string | undefined;
|
|
707
|
+
title?: string | any[] | undefined;
|
|
708
708
|
}, {
|
|
709
709
|
nodes: {
|
|
710
710
|
id: string;
|
|
711
|
-
label: string;
|
|
711
|
+
label: string | any[];
|
|
712
712
|
type?: "start" | "end" | "process" | "decision" | undefined;
|
|
713
713
|
}[];
|
|
714
714
|
edges: {
|
|
715
715
|
from: string;
|
|
716
716
|
to: string;
|
|
717
|
-
label?: string | undefined;
|
|
717
|
+
label?: string | any[] | undefined;
|
|
718
718
|
}[];
|
|
719
719
|
interactionMode?: "modifier-key" | "click-to-activate" | "always" | undefined;
|
|
720
720
|
markdown?: boolean | undefined;
|
|
721
|
-
title?: string | undefined;
|
|
721
|
+
title?: string | any[] | undefined;
|
|
722
722
|
direction?: "top-down" | "left-right" | undefined;
|
|
723
723
|
}>;
|
|
724
724
|
|
|
@@ -769,29 +769,29 @@ declare const filetreeSchema: z.ZodObject<{
|
|
|
769
769
|
}>;
|
|
770
770
|
|
|
771
771
|
declare const sequenceSchema: z.ZodObject<{
|
|
772
|
-
title: z.ZodOptional<z.ZodString
|
|
772
|
+
title: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
773
773
|
actors: z.ZodArray<z.ZodObject<{
|
|
774
774
|
id: z.ZodString;
|
|
775
|
-
label: z.ZodString
|
|
775
|
+
label: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
776
776
|
}, "strip", z.ZodTypeAny, {
|
|
777
777
|
id: string;
|
|
778
|
-
label: string;
|
|
778
|
+
label: string | any[];
|
|
779
779
|
}, {
|
|
780
780
|
id: string;
|
|
781
|
-
label: string;
|
|
781
|
+
label: string | any[];
|
|
782
782
|
}>, "many">;
|
|
783
783
|
messages: z.ZodArray<z.ZodObject<{
|
|
784
784
|
from: z.ZodString;
|
|
785
785
|
to: z.ZodString;
|
|
786
|
-
label: z.ZodString
|
|
786
|
+
label: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
787
787
|
type: z.ZodDefault<z.ZodEnum<["message", "reply", "self"]>>;
|
|
788
788
|
}, "strip", z.ZodTypeAny, {
|
|
789
789
|
type: "message" | "reply" | "self";
|
|
790
|
-
label: string;
|
|
790
|
+
label: string | any[];
|
|
791
791
|
from: string;
|
|
792
792
|
to: string;
|
|
793
793
|
}, {
|
|
794
|
-
label: string;
|
|
794
|
+
label: string | any[];
|
|
795
795
|
from: string;
|
|
796
796
|
to: string;
|
|
797
797
|
type?: "message" | "reply" | "self" | undefined;
|
|
@@ -801,28 +801,28 @@ declare const sequenceSchema: z.ZodObject<{
|
|
|
801
801
|
markdown: boolean;
|
|
802
802
|
actors: {
|
|
803
803
|
id: string;
|
|
804
|
-
label: string;
|
|
804
|
+
label: string | any[];
|
|
805
805
|
}[];
|
|
806
806
|
messages: {
|
|
807
807
|
type: "message" | "reply" | "self";
|
|
808
|
-
label: string;
|
|
808
|
+
label: string | any[];
|
|
809
809
|
from: string;
|
|
810
810
|
to: string;
|
|
811
811
|
}[];
|
|
812
|
-
title?: string | undefined;
|
|
812
|
+
title?: string | any[] | undefined;
|
|
813
813
|
}, {
|
|
814
814
|
actors: {
|
|
815
815
|
id: string;
|
|
816
|
-
label: string;
|
|
816
|
+
label: string | any[];
|
|
817
817
|
}[];
|
|
818
818
|
messages: {
|
|
819
|
-
label: string;
|
|
819
|
+
label: string | any[];
|
|
820
820
|
from: string;
|
|
821
821
|
to: string;
|
|
822
822
|
type?: "message" | "reply" | "self" | undefined;
|
|
823
823
|
}[];
|
|
824
824
|
markdown?: boolean | undefined;
|
|
825
|
-
title?: string | undefined;
|
|
825
|
+
title?: string | any[] | undefined;
|
|
826
826
|
}>;
|
|
827
827
|
|
|
828
828
|
declare const mindmapSchema: z.ZodObject<{
|
|
@@ -865,48 +865,48 @@ declare const mindmapSchema: z.ZodObject<{
|
|
|
865
865
|
|
|
866
866
|
declare const equationSchema: z.ZodEffects<z.ZodObject<{
|
|
867
867
|
expression: z.ZodOptional<z.ZodString>;
|
|
868
|
-
label: z.ZodOptional<z.ZodString
|
|
868
|
+
label: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
869
869
|
steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
870
870
|
expression: z.ZodString;
|
|
871
|
-
annotation: z.ZodOptional<z.ZodString
|
|
871
|
+
annotation: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
872
872
|
}, "strip", z.ZodTypeAny, {
|
|
873
873
|
expression: string;
|
|
874
|
-
annotation?: string | undefined;
|
|
874
|
+
annotation?: string | any[] | undefined;
|
|
875
875
|
}, {
|
|
876
876
|
expression: string;
|
|
877
|
-
annotation?: string | undefined;
|
|
877
|
+
annotation?: string | any[] | undefined;
|
|
878
878
|
}>, "many">>;
|
|
879
879
|
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
880
880
|
}, "strip", z.ZodTypeAny, {
|
|
881
881
|
markdown: boolean;
|
|
882
|
-
label?: string | undefined;
|
|
882
|
+
label?: string | any[] | undefined;
|
|
883
883
|
steps?: {
|
|
884
884
|
expression: string;
|
|
885
|
-
annotation?: string | undefined;
|
|
885
|
+
annotation?: string | any[] | undefined;
|
|
886
886
|
}[] | undefined;
|
|
887
887
|
expression?: string | undefined;
|
|
888
888
|
}, {
|
|
889
|
-
label?: string | undefined;
|
|
889
|
+
label?: string | any[] | undefined;
|
|
890
890
|
markdown?: boolean | undefined;
|
|
891
891
|
steps?: {
|
|
892
892
|
expression: string;
|
|
893
|
-
annotation?: string | undefined;
|
|
893
|
+
annotation?: string | any[] | undefined;
|
|
894
894
|
}[] | undefined;
|
|
895
895
|
expression?: string | undefined;
|
|
896
896
|
}>, {
|
|
897
897
|
markdown: boolean;
|
|
898
|
-
label?: string | undefined;
|
|
898
|
+
label?: string | any[] | undefined;
|
|
899
899
|
steps?: {
|
|
900
900
|
expression: string;
|
|
901
|
-
annotation?: string | undefined;
|
|
901
|
+
annotation?: string | any[] | undefined;
|
|
902
902
|
}[] | undefined;
|
|
903
903
|
expression?: string | undefined;
|
|
904
904
|
}, {
|
|
905
|
-
label?: string | undefined;
|
|
905
|
+
label?: string | any[] | undefined;
|
|
906
906
|
markdown?: boolean | undefined;
|
|
907
907
|
steps?: {
|
|
908
908
|
expression: string;
|
|
909
|
-
annotation?: string | undefined;
|
|
909
|
+
annotation?: string | any[] | undefined;
|
|
910
910
|
}[] | undefined;
|
|
911
911
|
expression?: string | undefined;
|
|
912
912
|
}>;
|
|
@@ -914,55 +914,55 @@ declare const equationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
914
914
|
declare const quizSchema: z.ZodObject<{
|
|
915
915
|
questions: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
916
916
|
type: z.ZodLiteral<"multiple-choice">;
|
|
917
|
-
question: z.ZodString
|
|
918
|
-
options: z.ZodArray<z.ZodString, "many">;
|
|
917
|
+
question: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
918
|
+
options: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>, "many">;
|
|
919
919
|
answer: z.ZodNumber;
|
|
920
|
-
explanation: z.ZodOptional<z.ZodString
|
|
920
|
+
explanation: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
921
921
|
}, "strip", z.ZodTypeAny, {
|
|
922
|
+
options: (string | any[])[];
|
|
922
923
|
type: "multiple-choice";
|
|
923
|
-
|
|
924
|
-
question: string;
|
|
924
|
+
question: string | any[];
|
|
925
925
|
answer: number;
|
|
926
|
-
explanation?: string | undefined;
|
|
926
|
+
explanation?: string | any[] | undefined;
|
|
927
927
|
}, {
|
|
928
|
+
options: (string | any[])[];
|
|
928
929
|
type: "multiple-choice";
|
|
929
|
-
|
|
930
|
-
question: string;
|
|
930
|
+
question: string | any[];
|
|
931
931
|
answer: number;
|
|
932
|
-
explanation?: string | undefined;
|
|
932
|
+
explanation?: string | any[] | undefined;
|
|
933
933
|
}>, z.ZodObject<{
|
|
934
934
|
type: z.ZodLiteral<"true-false">;
|
|
935
|
-
question: z.ZodString
|
|
935
|
+
question: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
936
936
|
answer: z.ZodBoolean;
|
|
937
|
-
explanation: z.ZodOptional<z.ZodString
|
|
937
|
+
explanation: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
938
938
|
}, "strip", z.ZodTypeAny, {
|
|
939
939
|
type: "true-false";
|
|
940
|
-
question: string;
|
|
940
|
+
question: string | any[];
|
|
941
941
|
answer: boolean;
|
|
942
|
-
explanation?: string | undefined;
|
|
942
|
+
explanation?: string | any[] | undefined;
|
|
943
943
|
}, {
|
|
944
944
|
type: "true-false";
|
|
945
|
-
question: string;
|
|
945
|
+
question: string | any[];
|
|
946
946
|
answer: boolean;
|
|
947
|
-
explanation?: string | undefined;
|
|
947
|
+
explanation?: string | any[] | undefined;
|
|
948
948
|
}>, z.ZodObject<{
|
|
949
949
|
type: z.ZodLiteral<"multi-select">;
|
|
950
|
-
question: z.ZodString
|
|
951
|
-
options: z.ZodArray<z.ZodString, "many">;
|
|
950
|
+
question: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
951
|
+
options: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>, "many">;
|
|
952
952
|
answer: z.ZodArray<z.ZodNumber, "many">;
|
|
953
|
-
explanation: z.ZodOptional<z.ZodString
|
|
953
|
+
explanation: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
954
954
|
}, "strip", z.ZodTypeAny, {
|
|
955
|
+
options: (string | any[])[];
|
|
955
956
|
type: "multi-select";
|
|
956
|
-
|
|
957
|
-
question: string;
|
|
957
|
+
question: string | any[];
|
|
958
958
|
answer: number[];
|
|
959
|
-
explanation?: string | undefined;
|
|
959
|
+
explanation?: string | any[] | undefined;
|
|
960
960
|
}, {
|
|
961
|
+
options: (string | any[])[];
|
|
961
962
|
type: "multi-select";
|
|
962
|
-
|
|
963
|
-
question: string;
|
|
963
|
+
question: string | any[];
|
|
964
964
|
answer: number[];
|
|
965
|
-
explanation?: string | undefined;
|
|
965
|
+
explanation?: string | any[] | undefined;
|
|
966
966
|
}>]>, "many">;
|
|
967
967
|
showScore: z.ZodDefault<z.ZodBoolean>;
|
|
968
968
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -970,43 +970,43 @@ declare const quizSchema: z.ZodObject<{
|
|
|
970
970
|
}, "strip", z.ZodTypeAny, {
|
|
971
971
|
markdown: boolean;
|
|
972
972
|
questions: ({
|
|
973
|
+
options: (string | any[])[];
|
|
973
974
|
type: "multiple-choice";
|
|
974
|
-
|
|
975
|
-
question: string;
|
|
975
|
+
question: string | any[];
|
|
976
976
|
answer: number;
|
|
977
|
-
explanation?: string | undefined;
|
|
977
|
+
explanation?: string | any[] | undefined;
|
|
978
978
|
} | {
|
|
979
979
|
type: "true-false";
|
|
980
|
-
question: string;
|
|
980
|
+
question: string | any[];
|
|
981
981
|
answer: boolean;
|
|
982
|
-
explanation?: string | undefined;
|
|
982
|
+
explanation?: string | any[] | undefined;
|
|
983
983
|
} | {
|
|
984
|
+
options: (string | any[])[];
|
|
984
985
|
type: "multi-select";
|
|
985
|
-
|
|
986
|
-
question: string;
|
|
986
|
+
question: string | any[];
|
|
987
987
|
answer: number[];
|
|
988
|
-
explanation?: string | undefined;
|
|
988
|
+
explanation?: string | any[] | undefined;
|
|
989
989
|
})[];
|
|
990
990
|
showScore: boolean;
|
|
991
991
|
title?: string | undefined;
|
|
992
992
|
}, {
|
|
993
993
|
questions: ({
|
|
994
|
+
options: (string | any[])[];
|
|
994
995
|
type: "multiple-choice";
|
|
995
|
-
|
|
996
|
-
question: string;
|
|
996
|
+
question: string | any[];
|
|
997
997
|
answer: number;
|
|
998
|
-
explanation?: string | undefined;
|
|
998
|
+
explanation?: string | any[] | undefined;
|
|
999
999
|
} | {
|
|
1000
1000
|
type: "true-false";
|
|
1001
|
-
question: string;
|
|
1001
|
+
question: string | any[];
|
|
1002
1002
|
answer: boolean;
|
|
1003
|
-
explanation?: string | undefined;
|
|
1003
|
+
explanation?: string | any[] | undefined;
|
|
1004
1004
|
} | {
|
|
1005
|
+
options: (string | any[])[];
|
|
1005
1006
|
type: "multi-select";
|
|
1006
|
-
|
|
1007
|
-
question: string;
|
|
1007
|
+
question: string | any[];
|
|
1008
1008
|
answer: number[];
|
|
1009
|
-
explanation?: string | undefined;
|
|
1009
|
+
explanation?: string | any[] | undefined;
|
|
1010
1010
|
})[];
|
|
1011
1011
|
markdown?: boolean | undefined;
|
|
1012
1012
|
title?: string | undefined;
|
|
@@ -1017,10 +1017,10 @@ declare const cardSchema: z.ZodObject<{
|
|
|
1017
1017
|
title: z.ZodOptional<z.ZodString>;
|
|
1018
1018
|
cards: z.ZodArray<z.ZodObject<{
|
|
1019
1019
|
title: z.ZodString;
|
|
1020
|
-
subtitle: z.ZodOptional<z.ZodString
|
|
1020
|
+
subtitle: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
1021
1021
|
image: z.ZodOptional<z.ZodString>;
|
|
1022
1022
|
icon: z.ZodOptional<z.ZodString>;
|
|
1023
|
-
body: z.ZodOptional<z.ZodString
|
|
1023
|
+
body: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
1024
1024
|
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1025
1025
|
label: z.ZodString;
|
|
1026
1026
|
url: z.ZodString;
|
|
@@ -1034,9 +1034,9 @@ declare const cardSchema: z.ZodObject<{
|
|
|
1034
1034
|
}, "strip", z.ZodTypeAny, {
|
|
1035
1035
|
title: string;
|
|
1036
1036
|
icon?: string | undefined;
|
|
1037
|
-
subtitle?: string | undefined;
|
|
1037
|
+
subtitle?: string | any[] | undefined;
|
|
1038
1038
|
image?: string | undefined;
|
|
1039
|
-
body?: string | undefined;
|
|
1039
|
+
body?: string | any[] | undefined;
|
|
1040
1040
|
actions?: {
|
|
1041
1041
|
label: string;
|
|
1042
1042
|
url: string;
|
|
@@ -1044,9 +1044,9 @@ declare const cardSchema: z.ZodObject<{
|
|
|
1044
1044
|
}, {
|
|
1045
1045
|
title: string;
|
|
1046
1046
|
icon?: string | undefined;
|
|
1047
|
-
subtitle?: string | undefined;
|
|
1047
|
+
subtitle?: string | any[] | undefined;
|
|
1048
1048
|
image?: string | undefined;
|
|
1049
|
-
body?: string | undefined;
|
|
1049
|
+
body?: string | any[] | undefined;
|
|
1050
1050
|
actions?: {
|
|
1051
1051
|
label: string;
|
|
1052
1052
|
url: string;
|
|
@@ -1060,9 +1060,9 @@ declare const cardSchema: z.ZodObject<{
|
|
|
1060
1060
|
cards: {
|
|
1061
1061
|
title: string;
|
|
1062
1062
|
icon?: string | undefined;
|
|
1063
|
-
subtitle?: string | undefined;
|
|
1063
|
+
subtitle?: string | any[] | undefined;
|
|
1064
1064
|
image?: string | undefined;
|
|
1065
|
-
body?: string | undefined;
|
|
1065
|
+
body?: string | any[] | undefined;
|
|
1066
1066
|
actions?: {
|
|
1067
1067
|
label: string;
|
|
1068
1068
|
url: string;
|
|
@@ -1075,9 +1075,9 @@ declare const cardSchema: z.ZodObject<{
|
|
|
1075
1075
|
cards: {
|
|
1076
1076
|
title: string;
|
|
1077
1077
|
icon?: string | undefined;
|
|
1078
|
-
subtitle?: string | undefined;
|
|
1078
|
+
subtitle?: string | any[] | undefined;
|
|
1079
1079
|
image?: string | undefined;
|
|
1080
|
-
body?: string | undefined;
|
|
1080
|
+
body?: string | any[] | undefined;
|
|
1081
1081
|
actions?: {
|
|
1082
1082
|
label: string;
|
|
1083
1083
|
url: string;
|
|
@@ -1097,28 +1097,28 @@ declare const infographicSchema: z.ZodObject<{
|
|
|
1097
1097
|
type: z.ZodLiteral<"stat">;
|
|
1098
1098
|
label: z.ZodString;
|
|
1099
1099
|
value: z.ZodString;
|
|
1100
|
-
description: z.ZodOptional<z.ZodString
|
|
1100
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
1101
1101
|
}, "strip", z.ZodTypeAny, {
|
|
1102
|
-
type: "stat";
|
|
1103
1102
|
value: string;
|
|
1103
|
+
type: "stat";
|
|
1104
1104
|
label: string;
|
|
1105
|
-
description?: string | undefined;
|
|
1105
|
+
description?: string | any[] | undefined;
|
|
1106
1106
|
}, {
|
|
1107
|
-
type: "stat";
|
|
1108
1107
|
value: string;
|
|
1108
|
+
type: "stat";
|
|
1109
1109
|
label: string;
|
|
1110
|
-
description?: string | undefined;
|
|
1110
|
+
description?: string | any[] | undefined;
|
|
1111
1111
|
}>, z.ZodObject<{
|
|
1112
1112
|
type: z.ZodLiteral<"fact">;
|
|
1113
1113
|
icon: z.ZodOptional<z.ZodString>;
|
|
1114
|
-
text: z.ZodString
|
|
1114
|
+
text: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
1115
1115
|
}, "strip", z.ZodTypeAny, {
|
|
1116
1116
|
type: "fact";
|
|
1117
|
-
text: string;
|
|
1117
|
+
text: string | any[];
|
|
1118
1118
|
icon?: string | undefined;
|
|
1119
1119
|
}, {
|
|
1120
1120
|
type: "fact";
|
|
1121
|
-
text: string;
|
|
1121
|
+
text: string | any[];
|
|
1122
1122
|
icon?: string | undefined;
|
|
1123
1123
|
}>, z.ZodObject<{
|
|
1124
1124
|
type: z.ZodLiteral<"progress">;
|
|
@@ -1126,13 +1126,13 @@ declare const infographicSchema: z.ZodObject<{
|
|
|
1126
1126
|
value: z.ZodNumber;
|
|
1127
1127
|
color: z.ZodOptional<z.ZodString>;
|
|
1128
1128
|
}, "strip", z.ZodTypeAny, {
|
|
1129
|
-
type: "progress";
|
|
1130
1129
|
value: number;
|
|
1130
|
+
type: "progress";
|
|
1131
1131
|
label: string;
|
|
1132
1132
|
color?: string | undefined;
|
|
1133
1133
|
}, {
|
|
1134
|
-
type: "progress";
|
|
1135
1134
|
value: number;
|
|
1135
|
+
type: "progress";
|
|
1136
1136
|
label: string;
|
|
1137
1137
|
color?: string | undefined;
|
|
1138
1138
|
}>, z.ZodObject<{
|
|
@@ -1196,33 +1196,33 @@ declare const infographicSchema: z.ZodObject<{
|
|
|
1196
1196
|
label: z.ZodString;
|
|
1197
1197
|
value: z.ZodNumber;
|
|
1198
1198
|
max: z.ZodOptional<z.ZodNumber>;
|
|
1199
|
-
description: z.ZodOptional<z.ZodString
|
|
1199
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
1200
1200
|
}, "strip", z.ZodTypeAny, {
|
|
1201
|
-
type: "rating";
|
|
1202
1201
|
value: number;
|
|
1202
|
+
type: "rating";
|
|
1203
1203
|
label: string;
|
|
1204
1204
|
max?: number | undefined;
|
|
1205
|
-
description?: string | undefined;
|
|
1205
|
+
description?: string | any[] | undefined;
|
|
1206
1206
|
}, {
|
|
1207
|
-
type: "rating";
|
|
1208
1207
|
value: number;
|
|
1208
|
+
type: "rating";
|
|
1209
1209
|
label: string;
|
|
1210
1210
|
max?: number | undefined;
|
|
1211
|
-
description?: string | undefined;
|
|
1211
|
+
description?: string | any[] | undefined;
|
|
1212
1212
|
}>]>, "many">;
|
|
1213
1213
|
}, "strip", z.ZodTypeAny, {
|
|
1214
1214
|
items: ({
|
|
1215
|
-
type: "stat";
|
|
1216
1215
|
value: string;
|
|
1216
|
+
type: "stat";
|
|
1217
1217
|
label: string;
|
|
1218
|
-
description?: string | undefined;
|
|
1218
|
+
description?: string | any[] | undefined;
|
|
1219
1219
|
} | {
|
|
1220
1220
|
type: "fact";
|
|
1221
|
-
text: string;
|
|
1221
|
+
text: string | any[];
|
|
1222
1222
|
icon?: string | undefined;
|
|
1223
1223
|
} | {
|
|
1224
|
-
type: "progress";
|
|
1225
1224
|
value: number;
|
|
1225
|
+
type: "progress";
|
|
1226
1226
|
label: string;
|
|
1227
1227
|
color?: string | undefined;
|
|
1228
1228
|
} | {
|
|
@@ -1242,26 +1242,26 @@ declare const infographicSchema: z.ZodObject<{
|
|
|
1242
1242
|
type: "divider";
|
|
1243
1243
|
style?: "solid" | "dashed" | "dotted" | undefined;
|
|
1244
1244
|
} | {
|
|
1245
|
-
type: "rating";
|
|
1246
1245
|
value: number;
|
|
1246
|
+
type: "rating";
|
|
1247
1247
|
label: string;
|
|
1248
1248
|
max?: number | undefined;
|
|
1249
|
-
description?: string | undefined;
|
|
1249
|
+
description?: string | any[] | undefined;
|
|
1250
1250
|
})[];
|
|
1251
1251
|
heading?: string | undefined;
|
|
1252
1252
|
}, {
|
|
1253
1253
|
items: ({
|
|
1254
|
-
type: "stat";
|
|
1255
1254
|
value: string;
|
|
1255
|
+
type: "stat";
|
|
1256
1256
|
label: string;
|
|
1257
|
-
description?: string | undefined;
|
|
1257
|
+
description?: string | any[] | undefined;
|
|
1258
1258
|
} | {
|
|
1259
1259
|
type: "fact";
|
|
1260
|
-
text: string;
|
|
1260
|
+
text: string | any[];
|
|
1261
1261
|
icon?: string | undefined;
|
|
1262
1262
|
} | {
|
|
1263
|
-
type: "progress";
|
|
1264
1263
|
value: number;
|
|
1264
|
+
type: "progress";
|
|
1265
1265
|
label: string;
|
|
1266
1266
|
color?: string | undefined;
|
|
1267
1267
|
} | {
|
|
@@ -1281,11 +1281,11 @@ declare const infographicSchema: z.ZodObject<{
|
|
|
1281
1281
|
type: "divider";
|
|
1282
1282
|
style?: "solid" | "dashed" | "dotted" | undefined;
|
|
1283
1283
|
} | {
|
|
1284
|
-
type: "rating";
|
|
1285
1284
|
value: number;
|
|
1285
|
+
type: "rating";
|
|
1286
1286
|
label: string;
|
|
1287
1287
|
max?: number | undefined;
|
|
1288
|
-
description?: string | undefined;
|
|
1288
|
+
description?: string | any[] | undefined;
|
|
1289
1289
|
})[];
|
|
1290
1290
|
heading?: string | undefined;
|
|
1291
1291
|
}>, "many">;
|
|
@@ -1294,17 +1294,17 @@ declare const infographicSchema: z.ZodObject<{
|
|
|
1294
1294
|
markdown: boolean;
|
|
1295
1295
|
sections: {
|
|
1296
1296
|
items: ({
|
|
1297
|
-
type: "stat";
|
|
1298
1297
|
value: string;
|
|
1298
|
+
type: "stat";
|
|
1299
1299
|
label: string;
|
|
1300
|
-
description?: string | undefined;
|
|
1300
|
+
description?: string | any[] | undefined;
|
|
1301
1301
|
} | {
|
|
1302
1302
|
type: "fact";
|
|
1303
|
-
text: string;
|
|
1303
|
+
text: string | any[];
|
|
1304
1304
|
icon?: string | undefined;
|
|
1305
1305
|
} | {
|
|
1306
|
-
type: "progress";
|
|
1307
1306
|
value: number;
|
|
1307
|
+
type: "progress";
|
|
1308
1308
|
label: string;
|
|
1309
1309
|
color?: string | undefined;
|
|
1310
1310
|
} | {
|
|
@@ -1324,11 +1324,11 @@ declare const infographicSchema: z.ZodObject<{
|
|
|
1324
1324
|
type: "divider";
|
|
1325
1325
|
style?: "solid" | "dashed" | "dotted" | undefined;
|
|
1326
1326
|
} | {
|
|
1327
|
-
type: "rating";
|
|
1328
1327
|
value: number;
|
|
1328
|
+
type: "rating";
|
|
1329
1329
|
label: string;
|
|
1330
1330
|
max?: number | undefined;
|
|
1331
|
-
description?: string | undefined;
|
|
1331
|
+
description?: string | any[] | undefined;
|
|
1332
1332
|
})[];
|
|
1333
1333
|
heading?: string | undefined;
|
|
1334
1334
|
}[];
|
|
@@ -1336,17 +1336,17 @@ declare const infographicSchema: z.ZodObject<{
|
|
|
1336
1336
|
}, {
|
|
1337
1337
|
sections: {
|
|
1338
1338
|
items: ({
|
|
1339
|
-
type: "stat";
|
|
1340
1339
|
value: string;
|
|
1340
|
+
type: "stat";
|
|
1341
1341
|
label: string;
|
|
1342
|
-
description?: string | undefined;
|
|
1342
|
+
description?: string | any[] | undefined;
|
|
1343
1343
|
} | {
|
|
1344
1344
|
type: "fact";
|
|
1345
|
-
text: string;
|
|
1345
|
+
text: string | any[];
|
|
1346
1346
|
icon?: string | undefined;
|
|
1347
1347
|
} | {
|
|
1348
|
-
type: "progress";
|
|
1349
1348
|
value: number;
|
|
1349
|
+
type: "progress";
|
|
1350
1350
|
label: string;
|
|
1351
1351
|
color?: string | undefined;
|
|
1352
1352
|
} | {
|
|
@@ -1366,11 +1366,11 @@ declare const infographicSchema: z.ZodObject<{
|
|
|
1366
1366
|
type: "divider";
|
|
1367
1367
|
style?: "solid" | "dashed" | "dotted" | undefined;
|
|
1368
1368
|
} | {
|
|
1369
|
-
type: "rating";
|
|
1370
1369
|
value: number;
|
|
1370
|
+
type: "rating";
|
|
1371
1371
|
label: string;
|
|
1372
1372
|
max?: number | undefined;
|
|
1373
|
-
description?: string | undefined;
|
|
1373
|
+
description?: string | any[] | undefined;
|
|
1374
1374
|
})[];
|
|
1375
1375
|
heading?: string | undefined;
|
|
1376
1376
|
}[];
|
|
@@ -1379,7 +1379,7 @@ declare const infographicSchema: z.ZodObject<{
|
|
|
1379
1379
|
}>;
|
|
1380
1380
|
|
|
1381
1381
|
declare const pollSchema: z.ZodObject<{
|
|
1382
|
-
question: z.ZodString
|
|
1382
|
+
question: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
1383
1383
|
options: z.ZodArray<z.ZodString, "many">;
|
|
1384
1384
|
multiple: z.ZodDefault<z.ZodBoolean>;
|
|
1385
1385
|
showResults: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1389,12 +1389,12 @@ declare const pollSchema: z.ZodObject<{
|
|
|
1389
1389
|
options: string[];
|
|
1390
1390
|
markdown: boolean;
|
|
1391
1391
|
multiple: boolean;
|
|
1392
|
-
question: string;
|
|
1392
|
+
question: string | any[];
|
|
1393
1393
|
showResults: boolean;
|
|
1394
1394
|
title?: string | undefined;
|
|
1395
1395
|
}, {
|
|
1396
1396
|
options: string[];
|
|
1397
|
-
question: string;
|
|
1397
|
+
question: string | any[];
|
|
1398
1398
|
markdown?: boolean | undefined;
|
|
1399
1399
|
title?: string | undefined;
|
|
1400
1400
|
multiple?: boolean | undefined;
|
|
@@ -1458,15 +1458,15 @@ declare const rankerSchema: z.ZodObject<{
|
|
|
1458
1458
|
title: z.ZodOptional<z.ZodString>;
|
|
1459
1459
|
items: z.ZodArray<z.ZodObject<{
|
|
1460
1460
|
id: z.ZodString;
|
|
1461
|
-
label: z.ZodString
|
|
1461
|
+
label: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
1462
1462
|
description: z.ZodOptional<z.ZodString>;
|
|
1463
1463
|
}, "strip", z.ZodTypeAny, {
|
|
1464
1464
|
id: string;
|
|
1465
|
-
label: string;
|
|
1465
|
+
label: string | any[];
|
|
1466
1466
|
description?: string | undefined;
|
|
1467
1467
|
}, {
|
|
1468
1468
|
id: string;
|
|
1469
|
-
label: string;
|
|
1469
|
+
label: string | any[];
|
|
1470
1470
|
description?: string | undefined;
|
|
1471
1471
|
}>, "many">;
|
|
1472
1472
|
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1474,14 +1474,14 @@ declare const rankerSchema: z.ZodObject<{
|
|
|
1474
1474
|
markdown: boolean;
|
|
1475
1475
|
items: {
|
|
1476
1476
|
id: string;
|
|
1477
|
-
label: string;
|
|
1477
|
+
label: string | any[];
|
|
1478
1478
|
description?: string | undefined;
|
|
1479
1479
|
}[];
|
|
1480
1480
|
title?: string | undefined;
|
|
1481
1481
|
}, {
|
|
1482
1482
|
items: {
|
|
1483
1483
|
id: string;
|
|
1484
|
-
label: string;
|
|
1484
|
+
label: string | any[];
|
|
1485
1485
|
description?: string | undefined;
|
|
1486
1486
|
}[];
|
|
1487
1487
|
markdown?: boolean | undefined;
|
|
@@ -1605,7 +1605,7 @@ declare const matrixSchema: z.ZodObject<{
|
|
|
1605
1605
|
|
|
1606
1606
|
declare const formSchema: z.ZodObject<{
|
|
1607
1607
|
title: z.ZodOptional<z.ZodString>;
|
|
1608
|
-
description: z.ZodOptional<z.ZodString
|
|
1608
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
1609
1609
|
submitLabel: z.ZodDefault<z.ZodString>;
|
|
1610
1610
|
fields: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1611
1611
|
type: z.ZodLiteral<"text">;
|
|
@@ -1660,15 +1660,15 @@ declare const formSchema: z.ZodObject<{
|
|
|
1660
1660
|
options: z.ZodArray<z.ZodString, "many">;
|
|
1661
1661
|
default: z.ZodOptional<z.ZodString>;
|
|
1662
1662
|
}, "strip", z.ZodTypeAny, {
|
|
1663
|
-
type: "select";
|
|
1664
1663
|
options: string[];
|
|
1664
|
+
type: "select";
|
|
1665
1665
|
id: string;
|
|
1666
1666
|
label: string;
|
|
1667
1667
|
required: boolean;
|
|
1668
1668
|
default?: string | undefined;
|
|
1669
1669
|
}, {
|
|
1670
|
-
type: "select";
|
|
1671
1670
|
options: string[];
|
|
1671
|
+
type: "select";
|
|
1672
1672
|
id: string;
|
|
1673
1673
|
label: string;
|
|
1674
1674
|
default?: string | undefined;
|
|
@@ -1736,8 +1736,8 @@ declare const formSchema: z.ZodObject<{
|
|
|
1736
1736
|
default?: string | undefined;
|
|
1737
1737
|
placeholder?: string | undefined;
|
|
1738
1738
|
} | {
|
|
1739
|
-
type: "select";
|
|
1740
1739
|
options: string[];
|
|
1740
|
+
type: "select";
|
|
1741
1741
|
id: string;
|
|
1742
1742
|
label: string;
|
|
1743
1743
|
required: boolean;
|
|
@@ -1758,7 +1758,7 @@ declare const formSchema: z.ZodObject<{
|
|
|
1758
1758
|
default?: number | undefined;
|
|
1759
1759
|
})[];
|
|
1760
1760
|
title?: string | undefined;
|
|
1761
|
-
description?: string | undefined;
|
|
1761
|
+
description?: string | any[] | undefined;
|
|
1762
1762
|
}, {
|
|
1763
1763
|
fields: ({
|
|
1764
1764
|
type: "text";
|
|
@@ -1776,8 +1776,8 @@ declare const formSchema: z.ZodObject<{
|
|
|
1776
1776
|
required?: boolean | undefined;
|
|
1777
1777
|
placeholder?: string | undefined;
|
|
1778
1778
|
} | {
|
|
1779
|
-
type: "select";
|
|
1780
1779
|
options: string[];
|
|
1780
|
+
type: "select";
|
|
1781
1781
|
id: string;
|
|
1782
1782
|
label: string;
|
|
1783
1783
|
default?: string | undefined;
|
|
@@ -1799,7 +1799,7 @@ declare const formSchema: z.ZodObject<{
|
|
|
1799
1799
|
})[];
|
|
1800
1800
|
markdown?: boolean | undefined;
|
|
1801
1801
|
title?: string | undefined;
|
|
1802
|
-
description?: string | undefined;
|
|
1802
|
+
description?: string | any[] | undefined;
|
|
1803
1803
|
submitLabel?: string | undefined;
|
|
1804
1804
|
}>;
|
|
1805
1805
|
|
|
@@ -1810,20 +1810,20 @@ declare const kanbanSchema: z.ZodObject<{
|
|
|
1810
1810
|
title: z.ZodString;
|
|
1811
1811
|
cards: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1812
1812
|
id: z.ZodString;
|
|
1813
|
-
title: z.ZodString
|
|
1814
|
-
description: z.ZodOptional<z.ZodString
|
|
1813
|
+
title: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
1814
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
1815
1815
|
priority: z.ZodOptional<z.ZodEnum<["high", "medium", "low"]>>;
|
|
1816
1816
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1817
1817
|
}, "strip", z.ZodTypeAny, {
|
|
1818
1818
|
id: string;
|
|
1819
|
-
title: string;
|
|
1820
|
-
description?: string | undefined;
|
|
1819
|
+
title: string | any[];
|
|
1820
|
+
description?: string | any[] | undefined;
|
|
1821
1821
|
priority?: "low" | "high" | "medium" | undefined;
|
|
1822
1822
|
tags?: string[] | undefined;
|
|
1823
1823
|
}, {
|
|
1824
1824
|
id: string;
|
|
1825
|
-
title: string;
|
|
1826
|
-
description?: string | undefined;
|
|
1825
|
+
title: string | any[];
|
|
1826
|
+
description?: string | any[] | undefined;
|
|
1827
1827
|
priority?: "low" | "high" | "medium" | undefined;
|
|
1828
1828
|
tags?: string[] | undefined;
|
|
1829
1829
|
}>, "many">>;
|
|
@@ -1833,8 +1833,8 @@ declare const kanbanSchema: z.ZodObject<{
|
|
|
1833
1833
|
title: string;
|
|
1834
1834
|
cards: {
|
|
1835
1835
|
id: string;
|
|
1836
|
-
title: string;
|
|
1837
|
-
description?: string | undefined;
|
|
1836
|
+
title: string | any[];
|
|
1837
|
+
description?: string | any[] | undefined;
|
|
1838
1838
|
priority?: "low" | "high" | "medium" | undefined;
|
|
1839
1839
|
tags?: string[] | undefined;
|
|
1840
1840
|
}[];
|
|
@@ -1844,8 +1844,8 @@ declare const kanbanSchema: z.ZodObject<{
|
|
|
1844
1844
|
title: string;
|
|
1845
1845
|
cards?: {
|
|
1846
1846
|
id: string;
|
|
1847
|
-
title: string;
|
|
1848
|
-
description?: string | undefined;
|
|
1847
|
+
title: string | any[];
|
|
1848
|
+
description?: string | any[] | undefined;
|
|
1849
1849
|
priority?: "low" | "high" | "medium" | undefined;
|
|
1850
1850
|
tags?: string[] | undefined;
|
|
1851
1851
|
}[] | undefined;
|
|
@@ -1859,8 +1859,8 @@ declare const kanbanSchema: z.ZodObject<{
|
|
|
1859
1859
|
title: string;
|
|
1860
1860
|
cards: {
|
|
1861
1861
|
id: string;
|
|
1862
|
-
title: string;
|
|
1863
|
-
description?: string | undefined;
|
|
1862
|
+
title: string | any[];
|
|
1863
|
+
description?: string | any[] | undefined;
|
|
1864
1864
|
priority?: "low" | "high" | "medium" | undefined;
|
|
1865
1865
|
tags?: string[] | undefined;
|
|
1866
1866
|
}[];
|
|
@@ -1873,8 +1873,8 @@ declare const kanbanSchema: z.ZodObject<{
|
|
|
1873
1873
|
title: string;
|
|
1874
1874
|
cards?: {
|
|
1875
1875
|
id: string;
|
|
1876
|
-
title: string;
|
|
1877
|
-
description?: string | undefined;
|
|
1876
|
+
title: string | any[];
|
|
1877
|
+
description?: string | any[] | undefined;
|
|
1878
1878
|
priority?: "low" | "high" | "medium" | undefined;
|
|
1879
1879
|
tags?: string[] | undefined;
|
|
1880
1880
|
}[] | undefined;
|
|
@@ -1944,7 +1944,65 @@ declare const annotateSchema: z.ZodObject<{
|
|
|
1944
1944
|
}[] | undefined;
|
|
1945
1945
|
}>;
|
|
1946
1946
|
|
|
1947
|
+
declare const columnsSchema: z.ZodObject<{
|
|
1948
|
+
children: z.ZodArray<z.ZodString, "many">;
|
|
1949
|
+
ratio: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
1950
|
+
gap: z.ZodOptional<z.ZodString>;
|
|
1951
|
+
}, "strip", z.ZodTypeAny, {
|
|
1952
|
+
children: string[];
|
|
1953
|
+
ratio?: number[] | undefined;
|
|
1954
|
+
gap?: string | undefined;
|
|
1955
|
+
}, {
|
|
1956
|
+
children: string[];
|
|
1957
|
+
ratio?: number[] | undefined;
|
|
1958
|
+
gap?: string | undefined;
|
|
1959
|
+
}>;
|
|
1960
|
+
|
|
1961
|
+
declare const rowsSchema: z.ZodObject<{
|
|
1962
|
+
children: z.ZodArray<z.ZodString, "many">;
|
|
1963
|
+
ratio: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
1964
|
+
gap: z.ZodOptional<z.ZodString>;
|
|
1965
|
+
}, "strip", z.ZodTypeAny, {
|
|
1966
|
+
children: string[];
|
|
1967
|
+
ratio?: number[] | undefined;
|
|
1968
|
+
gap?: string | undefined;
|
|
1969
|
+
}, {
|
|
1970
|
+
children: string[];
|
|
1971
|
+
ratio?: number[] | undefined;
|
|
1972
|
+
gap?: string | undefined;
|
|
1973
|
+
}>;
|
|
1974
|
+
|
|
1975
|
+
declare const panelSchema: z.ZodObject<{
|
|
1976
|
+
child: z.ZodString;
|
|
1977
|
+
style: z.ZodOptional<z.ZodEnum<["card", "bordered", "elevated", "ghost"]>>;
|
|
1978
|
+
padding: z.ZodOptional<z.ZodString>;
|
|
1979
|
+
}, "strip", z.ZodTypeAny, {
|
|
1980
|
+
child: string;
|
|
1981
|
+
style?: "elevated" | "card" | "bordered" | "ghost" | undefined;
|
|
1982
|
+
padding?: string | undefined;
|
|
1983
|
+
}, {
|
|
1984
|
+
child: string;
|
|
1985
|
+
style?: "elevated" | "card" | "bordered" | "ghost" | undefined;
|
|
1986
|
+
padding?: string | undefined;
|
|
1987
|
+
}>;
|
|
1988
|
+
|
|
1947
1989
|
declare const componentSchemas: ReadonlyMap<string, z.ZodType>;
|
|
1948
1990
|
declare function getJsonSchema(componentType: string): object | undefined;
|
|
1949
1991
|
|
|
1950
|
-
|
|
1992
|
+
/**
|
|
1993
|
+
* Accepts either a plain string or an already-processed InlineNode array.
|
|
1994
|
+
*
|
|
1995
|
+
* Fields listed in MARKDOWN_FIELD_MAP are converted from `string` to
|
|
1996
|
+
* `InlineNode[]` by the compiler when `markdown: true` is set on a block.
|
|
1997
|
+
* The runtime re-validates IR data with the component's Zod schema, so any
|
|
1998
|
+
* field that can become an InlineNode array must accept both types here —
|
|
1999
|
+
* otherwise the runtime logs a spurious schema-validation warning and falls
|
|
2000
|
+
* back to raw data even though the component renders correctly.
|
|
2001
|
+
*
|
|
2002
|
+
* Uses z.union([z.string(), z.array(z.any())]) so that:
|
|
2003
|
+
* - JSON Schema generates anyOf:[string, array] (correctly rejects numbers etc.)
|
|
2004
|
+
* - TypeScript infers string | any[], which is assignable to string | InlineNode[]
|
|
2005
|
+
*/
|
|
2006
|
+
declare const inlineContentSchema: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
2007
|
+
|
|
2008
|
+
export { accordionSchema, annotateSchema, architectureSchema, calloutSchema, cardSchema, chartSchema, codediffSchema, columnsSchema, comparisonSchema, componentSchemas, equationSchema, filetreeSchema, flowchartSchema, formSchema, getJsonSchema, graphSchema, infographicSchema, inlineContentSchema, kanbanSchema, kpiSchema, matrixSchema, mindmapSchema, panelSchema, pollSchema, quizSchema, rankerSchema, ratingSchema, relationSchema, rowsSchema, sequenceSchema, sliderSchema, stepsSchema, tableSchema, tabsSchema, timelineSchema };
|