@nakafa/aksara-contracts 8.9.1 → 8.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assessment/choice.d.ts +26 -0
- package/dist/assessment/document.d.ts +39 -0
- package/dist/assessment/figure.d.ts +13 -0
- package/dist/assessment/hash.d.ts +711 -111
- package/dist/assessment/inline.d.ts +53 -0
- package/dist/assessment/inline.js +1 -0
- package/dist/assessment/interaction.d.ts +26 -0
- package/dist/assessment/item.d.ts +414 -36
- package/dist/assessment/paper.d.ts +731 -131
- package/dist/assessment/part.d.ts +13 -0
- package/dist/assessment/rows.d.ts +336 -36
- package/dist/assessment/snapshot.d.ts +773 -121
- package/dist/release/snapshot/data.d.ts +26 -0
- package/dist/release/snapshot/verify.d.ts +336 -36
- package/dist/transport/group.d.ts +78 -0
- package/dist/transport/request.d.ts +2195 -343
- package/dist/transport/snapshot.d.ts +52 -0
- package/dist/visual/base/math.d.ts +56 -6
- package/dist/visual/base/media.d.ts +56 -6
- package/dist/visual/biology/bacteria.d.ts +224 -24
- package/dist/visual/biology/blood.d.ts +56 -6
- package/dist/visual/biology/cell.d.ts +168 -18
- package/dist/visual/biology/climate.d.ts +168 -18
- package/dist/visual/biology/ecology.d.ts +224 -24
- package/dist/visual/biology/heart.d.ts +56 -6
- package/dist/visual/biology/mitochondrion.d.ts +56 -6
- package/dist/visual/biology/muscle.d.ts +56 -6
- package/dist/visual/biology/neuron.d.ts +56 -6
- package/dist/visual/biology/paddy.d.ts +56 -6
- package/dist/visual/biology/physiology.d.ts +168 -18
- package/dist/visual/biology/plant.d.ts +280 -30
- package/dist/visual/biology/synapse.d.ts +56 -6
- package/dist/visual/biology/vessel.d.ts +56 -6
- package/dist/visual/biology/yeast.d.ts +56 -6
- package/dist/visual/card.d.ts +56 -6
- package/dist/visual/catalog.d.ts +16734 -5484
- package/dist/visual/chemistry/atom.d.ts +168 -18
- package/dist/visual/chemistry/balance.d.ts +280 -30
- package/dist/visual/chemistry/bonding.d.ts +280 -30
- package/dist/visual/chemistry/discovery.d.ts +392 -42
- package/dist/visual/chemistry/electrochemistry.d.ts +112 -12
- package/dist/visual/chemistry/electron.d.ts +112 -12
- package/dist/visual/chemistry/laws.d.ts +224 -24
- package/dist/visual/chemistry/particles.d.ts +280 -30
- package/dist/visual/chemistry/periodic.d.ts +112 -12
- package/dist/visual/chemistry/rate.d.ts +56 -6
- package/dist/visual/chemistry/reaction.d.ts +168 -18
- package/dist/visual/chemistry/titration.d.ts +56 -6
- package/dist/visual/length.d.ts +56 -6
- package/dist/visual/mathematics/chance.d.ts +168 -18
- package/dist/visual/mathematics/chart.d.ts +56 -6
- package/dist/visual/mathematics/charts.d.ts +280 -30
- package/dist/visual/mathematics/function.d.ts +168 -18
- package/dist/visual/mathematics/journey.d.ts +56 -6
- package/dist/visual/mathematics/logic.d.ts +56 -6
- package/dist/visual/mathematics/network.d.ts +56 -6
- package/dist/visual/mathematics/numeral.d.ts +168 -18
- package/dist/visual/mathematics/sets.d.ts +56 -6
- package/dist/visual/physics/braking.d.ts +224 -24
- package/dist/visual/physics/circuit.d.ts +224 -24
- package/dist/visual/physics/circular.d.ts +112 -12
- package/dist/visual/physics/dynamics.d.ts +392 -42
- package/dist/visual/physics/efficiency.d.ts +336 -36
- package/dist/visual/physics/electronics.d.ts +168 -18
- package/dist/visual/physics/falling.d.ts +224 -24
- package/dist/visual/physics/field.d.ts +168 -18
- package/dist/visual/physics/fluid.d.ts +224 -24
- package/dist/visual/physics/force.d.ts +280 -30
- package/dist/visual/physics/gravity.d.ts +112 -12
- package/dist/visual/physics/heat.d.ts +168 -18
- package/dist/visual/physics/instrument.d.ts +392 -42
- package/dist/visual/physics/light.d.ts +224 -24
- package/dist/visual/physics/measurement.d.ts +224 -24
- package/dist/visual/physics/motion.d.ts +336 -36
- package/dist/visual/physics/nuclear.d.ts +168 -18
- package/dist/visual/physics/parabolic.d.ts +56 -6
- package/dist/visual/physics/position.d.ts +336 -36
- package/dist/visual/physics/power.d.ts +448 -48
- package/dist/visual/physics/precision.d.ts +392 -42
- package/dist/visual/physics/product.d.ts +224 -24
- package/dist/visual/physics/reading.d.ts +168 -18
- package/dist/visual/physics/record.d.ts +112 -12
- package/dist/visual/physics/relative.d.ts +168 -18
- package/dist/visual/physics/solar.d.ts +336 -36
- package/dist/visual/physics/thermodynamics.d.ts +56 -6
- package/dist/visual/physics/vector.d.ts +280 -30
- package/dist/visual/physics/velocity.d.ts +392 -42
- package/dist/visual/physics/wave.d.ts +224 -24
- package/dist/visual/politics.d.ts +336 -36
- package/package.json +1 -1
|
@@ -23,11 +23,64 @@ export declare function functionVisuals<E>(rich: RichSlot<E>): {
|
|
|
23
23
|
FunctionAndNonFunctionDiagram: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
24
24
|
readonly description: RichSlot<E>;
|
|
25
25
|
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
26
|
+
readonly marks?: readonly [{
|
|
27
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
28
|
+
} | {
|
|
29
|
+
readonly attrs: {
|
|
30
|
+
readonly href: string;
|
|
31
|
+
};
|
|
32
|
+
readonly type: "link";
|
|
33
|
+
} | {
|
|
34
|
+
readonly attrs: {
|
|
35
|
+
readonly variant: "success" | "warning" | null;
|
|
36
|
+
};
|
|
37
|
+
readonly type: "highlight";
|
|
38
|
+
}, ...({
|
|
39
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
40
|
+
} | {
|
|
41
|
+
readonly attrs: {
|
|
42
|
+
readonly href: string;
|
|
43
|
+
};
|
|
44
|
+
readonly type: "link";
|
|
45
|
+
} | {
|
|
46
|
+
readonly attrs: {
|
|
47
|
+
readonly variant: "success" | "warning" | null;
|
|
48
|
+
};
|
|
49
|
+
readonly type: "highlight";
|
|
50
|
+
})[]];
|
|
51
|
+
readonly text: string;
|
|
52
|
+
readonly type: "text";
|
|
53
|
+
} | {
|
|
26
54
|
readonly attrs: {
|
|
27
55
|
readonly latex: string;
|
|
28
56
|
};
|
|
57
|
+
readonly marks?: readonly [{
|
|
58
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
59
|
+
} | {
|
|
60
|
+
readonly attrs: {
|
|
61
|
+
readonly href: string;
|
|
62
|
+
};
|
|
63
|
+
readonly type: "link";
|
|
64
|
+
} | {
|
|
65
|
+
readonly attrs: {
|
|
66
|
+
readonly variant: "success" | "warning" | null;
|
|
67
|
+
};
|
|
68
|
+
readonly type: "highlight";
|
|
69
|
+
}, ...({
|
|
70
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
71
|
+
} | {
|
|
72
|
+
readonly attrs: {
|
|
73
|
+
readonly href: string;
|
|
74
|
+
};
|
|
75
|
+
readonly type: "link";
|
|
76
|
+
} | {
|
|
77
|
+
readonly attrs: {
|
|
78
|
+
readonly variant: "success" | "warning" | null;
|
|
79
|
+
};
|
|
80
|
+
readonly type: "highlight";
|
|
81
|
+
})[]];
|
|
29
82
|
readonly type: "mathInline";
|
|
30
|
-
}
|
|
83
|
+
}, ...({
|
|
31
84
|
readonly marks?: readonly [{
|
|
32
85
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
33
86
|
} | {
|
|
@@ -55,12 +108,10 @@ export declare function functionVisuals<E>(rich: RichSlot<E>): {
|
|
|
55
108
|
})[]];
|
|
56
109
|
readonly text: string;
|
|
57
110
|
readonly type: "text";
|
|
58
|
-
}
|
|
111
|
+
} | {
|
|
59
112
|
readonly attrs: {
|
|
60
113
|
readonly latex: string;
|
|
61
114
|
};
|
|
62
|
-
readonly type: "mathInline";
|
|
63
|
-
} | {
|
|
64
115
|
readonly marks?: readonly [{
|
|
65
116
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
66
117
|
} | {
|
|
@@ -86,8 +137,7 @@ export declare function functionVisuals<E>(rich: RichSlot<E>): {
|
|
|
86
137
|
};
|
|
87
138
|
readonly type: "highlight";
|
|
88
139
|
})[]];
|
|
89
|
-
readonly
|
|
90
|
-
readonly type: "text";
|
|
140
|
+
readonly type: "mathInline";
|
|
91
141
|
})[]], E, never, never>>;
|
|
92
142
|
readonly title: RichSlot<E>;
|
|
93
143
|
}>, "markup">;
|
|
@@ -123,11 +173,64 @@ export declare function functionVisuals<E>(rich: RichSlot<E>): {
|
|
|
123
173
|
FunctionMachine: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
124
174
|
readonly description: RichSlot<E>;
|
|
125
175
|
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
176
|
+
readonly marks?: readonly [{
|
|
177
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
178
|
+
} | {
|
|
179
|
+
readonly attrs: {
|
|
180
|
+
readonly href: string;
|
|
181
|
+
};
|
|
182
|
+
readonly type: "link";
|
|
183
|
+
} | {
|
|
184
|
+
readonly attrs: {
|
|
185
|
+
readonly variant: "success" | "warning" | null;
|
|
186
|
+
};
|
|
187
|
+
readonly type: "highlight";
|
|
188
|
+
}, ...({
|
|
189
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
190
|
+
} | {
|
|
191
|
+
readonly attrs: {
|
|
192
|
+
readonly href: string;
|
|
193
|
+
};
|
|
194
|
+
readonly type: "link";
|
|
195
|
+
} | {
|
|
196
|
+
readonly attrs: {
|
|
197
|
+
readonly variant: "success" | "warning" | null;
|
|
198
|
+
};
|
|
199
|
+
readonly type: "highlight";
|
|
200
|
+
})[]];
|
|
201
|
+
readonly text: string;
|
|
202
|
+
readonly type: "text";
|
|
203
|
+
} | {
|
|
126
204
|
readonly attrs: {
|
|
127
205
|
readonly latex: string;
|
|
128
206
|
};
|
|
207
|
+
readonly marks?: readonly [{
|
|
208
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
209
|
+
} | {
|
|
210
|
+
readonly attrs: {
|
|
211
|
+
readonly href: string;
|
|
212
|
+
};
|
|
213
|
+
readonly type: "link";
|
|
214
|
+
} | {
|
|
215
|
+
readonly attrs: {
|
|
216
|
+
readonly variant: "success" | "warning" | null;
|
|
217
|
+
};
|
|
218
|
+
readonly type: "highlight";
|
|
219
|
+
}, ...({
|
|
220
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
221
|
+
} | {
|
|
222
|
+
readonly attrs: {
|
|
223
|
+
readonly href: string;
|
|
224
|
+
};
|
|
225
|
+
readonly type: "link";
|
|
226
|
+
} | {
|
|
227
|
+
readonly attrs: {
|
|
228
|
+
readonly variant: "success" | "warning" | null;
|
|
229
|
+
};
|
|
230
|
+
readonly type: "highlight";
|
|
231
|
+
})[]];
|
|
129
232
|
readonly type: "mathInline";
|
|
130
|
-
}
|
|
233
|
+
}, ...({
|
|
131
234
|
readonly marks?: readonly [{
|
|
132
235
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
133
236
|
} | {
|
|
@@ -155,12 +258,10 @@ export declare function functionVisuals<E>(rich: RichSlot<E>): {
|
|
|
155
258
|
})[]];
|
|
156
259
|
readonly text: string;
|
|
157
260
|
readonly type: "text";
|
|
158
|
-
}
|
|
261
|
+
} | {
|
|
159
262
|
readonly attrs: {
|
|
160
263
|
readonly latex: string;
|
|
161
264
|
};
|
|
162
|
-
readonly type: "mathInline";
|
|
163
|
-
} | {
|
|
164
265
|
readonly marks?: readonly [{
|
|
165
266
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
166
267
|
} | {
|
|
@@ -186,8 +287,7 @@ export declare function functionVisuals<E>(rich: RichSlot<E>): {
|
|
|
186
287
|
};
|
|
187
288
|
readonly type: "highlight";
|
|
188
289
|
})[]];
|
|
189
|
-
readonly
|
|
190
|
-
readonly type: "text";
|
|
290
|
+
readonly type: "mathInline";
|
|
191
291
|
})[]], E, never, never>>;
|
|
192
292
|
readonly title: RichSlot<E>;
|
|
193
293
|
readonly inputLabel: Schema.Trimmed;
|
|
@@ -195,11 +295,64 @@ export declare function functionVisuals<E>(rich: RichSlot<E>): {
|
|
|
195
295
|
InverseFunctionIllustration: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
196
296
|
readonly description: RichSlot<E>;
|
|
197
297
|
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
298
|
+
readonly marks?: readonly [{
|
|
299
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
300
|
+
} | {
|
|
301
|
+
readonly attrs: {
|
|
302
|
+
readonly href: string;
|
|
303
|
+
};
|
|
304
|
+
readonly type: "link";
|
|
305
|
+
} | {
|
|
306
|
+
readonly attrs: {
|
|
307
|
+
readonly variant: "success" | "warning" | null;
|
|
308
|
+
};
|
|
309
|
+
readonly type: "highlight";
|
|
310
|
+
}, ...({
|
|
311
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
312
|
+
} | {
|
|
313
|
+
readonly attrs: {
|
|
314
|
+
readonly href: string;
|
|
315
|
+
};
|
|
316
|
+
readonly type: "link";
|
|
317
|
+
} | {
|
|
318
|
+
readonly attrs: {
|
|
319
|
+
readonly variant: "success" | "warning" | null;
|
|
320
|
+
};
|
|
321
|
+
readonly type: "highlight";
|
|
322
|
+
})[]];
|
|
323
|
+
readonly text: string;
|
|
324
|
+
readonly type: "text";
|
|
325
|
+
} | {
|
|
198
326
|
readonly attrs: {
|
|
199
327
|
readonly latex: string;
|
|
200
328
|
};
|
|
329
|
+
readonly marks?: readonly [{
|
|
330
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
331
|
+
} | {
|
|
332
|
+
readonly attrs: {
|
|
333
|
+
readonly href: string;
|
|
334
|
+
};
|
|
335
|
+
readonly type: "link";
|
|
336
|
+
} | {
|
|
337
|
+
readonly attrs: {
|
|
338
|
+
readonly variant: "success" | "warning" | null;
|
|
339
|
+
};
|
|
340
|
+
readonly type: "highlight";
|
|
341
|
+
}, ...({
|
|
342
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
343
|
+
} | {
|
|
344
|
+
readonly attrs: {
|
|
345
|
+
readonly href: string;
|
|
346
|
+
};
|
|
347
|
+
readonly type: "link";
|
|
348
|
+
} | {
|
|
349
|
+
readonly attrs: {
|
|
350
|
+
readonly variant: "success" | "warning" | null;
|
|
351
|
+
};
|
|
352
|
+
readonly type: "highlight";
|
|
353
|
+
})[]];
|
|
201
354
|
readonly type: "mathInline";
|
|
202
|
-
}
|
|
355
|
+
}, ...({
|
|
203
356
|
readonly marks?: readonly [{
|
|
204
357
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
205
358
|
} | {
|
|
@@ -227,12 +380,10 @@ export declare function functionVisuals<E>(rich: RichSlot<E>): {
|
|
|
227
380
|
})[]];
|
|
228
381
|
readonly text: string;
|
|
229
382
|
readonly type: "text";
|
|
230
|
-
}
|
|
383
|
+
} | {
|
|
231
384
|
readonly attrs: {
|
|
232
385
|
readonly latex: string;
|
|
233
386
|
};
|
|
234
|
-
readonly type: "mathInline";
|
|
235
|
-
} | {
|
|
236
387
|
readonly marks?: readonly [{
|
|
237
388
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
238
389
|
} | {
|
|
@@ -258,8 +409,7 @@ export declare function functionVisuals<E>(rich: RichSlot<E>): {
|
|
|
258
409
|
};
|
|
259
410
|
readonly type: "highlight";
|
|
260
411
|
})[]];
|
|
261
|
-
readonly
|
|
262
|
-
readonly type: "text";
|
|
412
|
+
readonly type: "mathInline";
|
|
263
413
|
})[]], E, never, never>>;
|
|
264
414
|
readonly title: RichSlot<E>;
|
|
265
415
|
readonly content: Schema.Struct<{
|
|
@@ -5,11 +5,64 @@ export declare function journeyVisuals<E>(rich: RichSlot<E>): {
|
|
|
5
5
|
JourneyGraphLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
6
6
|
readonly description: RichSlot<E>;
|
|
7
7
|
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
8
|
+
readonly marks?: readonly [{
|
|
9
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
10
|
+
} | {
|
|
11
|
+
readonly attrs: {
|
|
12
|
+
readonly href: string;
|
|
13
|
+
};
|
|
14
|
+
readonly type: "link";
|
|
15
|
+
} | {
|
|
16
|
+
readonly attrs: {
|
|
17
|
+
readonly variant: "success" | "warning" | null;
|
|
18
|
+
};
|
|
19
|
+
readonly type: "highlight";
|
|
20
|
+
}, ...({
|
|
21
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
22
|
+
} | {
|
|
23
|
+
readonly attrs: {
|
|
24
|
+
readonly href: string;
|
|
25
|
+
};
|
|
26
|
+
readonly type: "link";
|
|
27
|
+
} | {
|
|
28
|
+
readonly attrs: {
|
|
29
|
+
readonly variant: "success" | "warning" | null;
|
|
30
|
+
};
|
|
31
|
+
readonly type: "highlight";
|
|
32
|
+
})[]];
|
|
33
|
+
readonly text: string;
|
|
34
|
+
readonly type: "text";
|
|
35
|
+
} | {
|
|
8
36
|
readonly attrs: {
|
|
9
37
|
readonly latex: string;
|
|
10
38
|
};
|
|
39
|
+
readonly marks?: readonly [{
|
|
40
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
41
|
+
} | {
|
|
42
|
+
readonly attrs: {
|
|
43
|
+
readonly href: string;
|
|
44
|
+
};
|
|
45
|
+
readonly type: "link";
|
|
46
|
+
} | {
|
|
47
|
+
readonly attrs: {
|
|
48
|
+
readonly variant: "success" | "warning" | null;
|
|
49
|
+
};
|
|
50
|
+
readonly type: "highlight";
|
|
51
|
+
}, ...({
|
|
52
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
53
|
+
} | {
|
|
54
|
+
readonly attrs: {
|
|
55
|
+
readonly href: string;
|
|
56
|
+
};
|
|
57
|
+
readonly type: "link";
|
|
58
|
+
} | {
|
|
59
|
+
readonly attrs: {
|
|
60
|
+
readonly variant: "success" | "warning" | null;
|
|
61
|
+
};
|
|
62
|
+
readonly type: "highlight";
|
|
63
|
+
})[]];
|
|
11
64
|
readonly type: "mathInline";
|
|
12
|
-
}
|
|
65
|
+
}, ...({
|
|
13
66
|
readonly marks?: readonly [{
|
|
14
67
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
15
68
|
} | {
|
|
@@ -37,12 +90,10 @@ export declare function journeyVisuals<E>(rich: RichSlot<E>): {
|
|
|
37
90
|
})[]];
|
|
38
91
|
readonly text: string;
|
|
39
92
|
readonly type: "text";
|
|
40
|
-
}
|
|
93
|
+
} | {
|
|
41
94
|
readonly attrs: {
|
|
42
95
|
readonly latex: string;
|
|
43
96
|
};
|
|
44
|
-
readonly type: "mathInline";
|
|
45
|
-
} | {
|
|
46
97
|
readonly marks?: readonly [{
|
|
47
98
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
48
99
|
} | {
|
|
@@ -68,8 +119,7 @@ export declare function journeyVisuals<E>(rich: RichSlot<E>): {
|
|
|
68
119
|
};
|
|
69
120
|
readonly type: "highlight";
|
|
70
121
|
})[]];
|
|
71
|
-
readonly
|
|
72
|
-
readonly type: "text";
|
|
122
|
+
readonly type: "mathInline";
|
|
73
123
|
})[]], E, never, never>>;
|
|
74
124
|
readonly title: RichSlot<E>;
|
|
75
125
|
readonly bus: Schema.Struct<{
|
|
@@ -5,11 +5,64 @@ export declare function logicVisuals<E>(rich: RichSlot<E>): {
|
|
|
5
5
|
SwitchLogicLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
6
6
|
readonly description: RichSlot<E>;
|
|
7
7
|
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
8
|
+
readonly marks?: readonly [{
|
|
9
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
10
|
+
} | {
|
|
11
|
+
readonly attrs: {
|
|
12
|
+
readonly href: string;
|
|
13
|
+
};
|
|
14
|
+
readonly type: "link";
|
|
15
|
+
} | {
|
|
16
|
+
readonly attrs: {
|
|
17
|
+
readonly variant: "success" | "warning" | null;
|
|
18
|
+
};
|
|
19
|
+
readonly type: "highlight";
|
|
20
|
+
}, ...({
|
|
21
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
22
|
+
} | {
|
|
23
|
+
readonly attrs: {
|
|
24
|
+
readonly href: string;
|
|
25
|
+
};
|
|
26
|
+
readonly type: "link";
|
|
27
|
+
} | {
|
|
28
|
+
readonly attrs: {
|
|
29
|
+
readonly variant: "success" | "warning" | null;
|
|
30
|
+
};
|
|
31
|
+
readonly type: "highlight";
|
|
32
|
+
})[]];
|
|
33
|
+
readonly text: string;
|
|
34
|
+
readonly type: "text";
|
|
35
|
+
} | {
|
|
8
36
|
readonly attrs: {
|
|
9
37
|
readonly latex: string;
|
|
10
38
|
};
|
|
39
|
+
readonly marks?: readonly [{
|
|
40
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
41
|
+
} | {
|
|
42
|
+
readonly attrs: {
|
|
43
|
+
readonly href: string;
|
|
44
|
+
};
|
|
45
|
+
readonly type: "link";
|
|
46
|
+
} | {
|
|
47
|
+
readonly attrs: {
|
|
48
|
+
readonly variant: "success" | "warning" | null;
|
|
49
|
+
};
|
|
50
|
+
readonly type: "highlight";
|
|
51
|
+
}, ...({
|
|
52
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
53
|
+
} | {
|
|
54
|
+
readonly attrs: {
|
|
55
|
+
readonly href: string;
|
|
56
|
+
};
|
|
57
|
+
readonly type: "link";
|
|
58
|
+
} | {
|
|
59
|
+
readonly attrs: {
|
|
60
|
+
readonly variant: "success" | "warning" | null;
|
|
61
|
+
};
|
|
62
|
+
readonly type: "highlight";
|
|
63
|
+
})[]];
|
|
11
64
|
readonly type: "mathInline";
|
|
12
|
-
}
|
|
65
|
+
}, ...({
|
|
13
66
|
readonly marks?: readonly [{
|
|
14
67
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
15
68
|
} | {
|
|
@@ -37,12 +90,10 @@ export declare function logicVisuals<E>(rich: RichSlot<E>): {
|
|
|
37
90
|
})[]];
|
|
38
91
|
readonly text: string;
|
|
39
92
|
readonly type: "text";
|
|
40
|
-
}
|
|
93
|
+
} | {
|
|
41
94
|
readonly attrs: {
|
|
42
95
|
readonly latex: string;
|
|
43
96
|
};
|
|
44
|
-
readonly type: "mathInline";
|
|
45
|
-
} | {
|
|
46
97
|
readonly marks?: readonly [{
|
|
47
98
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
48
99
|
} | {
|
|
@@ -68,8 +119,7 @@ export declare function logicVisuals<E>(rich: RichSlot<E>): {
|
|
|
68
119
|
};
|
|
69
120
|
readonly type: "highlight";
|
|
70
121
|
})[]];
|
|
71
|
-
readonly
|
|
72
|
-
readonly type: "text";
|
|
122
|
+
readonly type: "mathInline";
|
|
73
123
|
})[]], E, never, never>>;
|
|
74
124
|
readonly title: RichSlot<E>;
|
|
75
125
|
readonly modes: Schema.NonEmptyArray<Schema.Literals<readonly ["and", "or", "not"]>>;
|
|
@@ -5,11 +5,64 @@ export declare function networkVisuals<E>(rich: RichSlot<E>): {
|
|
|
5
5
|
RouteNetworkLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
6
6
|
readonly description: RichSlot<E>;
|
|
7
7
|
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
8
|
+
readonly marks?: readonly [{
|
|
9
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
10
|
+
} | {
|
|
11
|
+
readonly attrs: {
|
|
12
|
+
readonly href: string;
|
|
13
|
+
};
|
|
14
|
+
readonly type: "link";
|
|
15
|
+
} | {
|
|
16
|
+
readonly attrs: {
|
|
17
|
+
readonly variant: "success" | "warning" | null;
|
|
18
|
+
};
|
|
19
|
+
readonly type: "highlight";
|
|
20
|
+
}, ...({
|
|
21
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
22
|
+
} | {
|
|
23
|
+
readonly attrs: {
|
|
24
|
+
readonly href: string;
|
|
25
|
+
};
|
|
26
|
+
readonly type: "link";
|
|
27
|
+
} | {
|
|
28
|
+
readonly attrs: {
|
|
29
|
+
readonly variant: "success" | "warning" | null;
|
|
30
|
+
};
|
|
31
|
+
readonly type: "highlight";
|
|
32
|
+
})[]];
|
|
33
|
+
readonly text: string;
|
|
34
|
+
readonly type: "text";
|
|
35
|
+
} | {
|
|
8
36
|
readonly attrs: {
|
|
9
37
|
readonly latex: string;
|
|
10
38
|
};
|
|
39
|
+
readonly marks?: readonly [{
|
|
40
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
41
|
+
} | {
|
|
42
|
+
readonly attrs: {
|
|
43
|
+
readonly href: string;
|
|
44
|
+
};
|
|
45
|
+
readonly type: "link";
|
|
46
|
+
} | {
|
|
47
|
+
readonly attrs: {
|
|
48
|
+
readonly variant: "success" | "warning" | null;
|
|
49
|
+
};
|
|
50
|
+
readonly type: "highlight";
|
|
51
|
+
}, ...({
|
|
52
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
53
|
+
} | {
|
|
54
|
+
readonly attrs: {
|
|
55
|
+
readonly href: string;
|
|
56
|
+
};
|
|
57
|
+
readonly type: "link";
|
|
58
|
+
} | {
|
|
59
|
+
readonly attrs: {
|
|
60
|
+
readonly variant: "success" | "warning" | null;
|
|
61
|
+
};
|
|
62
|
+
readonly type: "highlight";
|
|
63
|
+
})[]];
|
|
11
64
|
readonly type: "mathInline";
|
|
12
|
-
}
|
|
65
|
+
}, ...({
|
|
13
66
|
readonly marks?: readonly [{
|
|
14
67
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
15
68
|
} | {
|
|
@@ -37,12 +90,10 @@ export declare function networkVisuals<E>(rich: RichSlot<E>): {
|
|
|
37
90
|
})[]];
|
|
38
91
|
readonly text: string;
|
|
39
92
|
readonly type: "text";
|
|
40
|
-
}
|
|
93
|
+
} | {
|
|
41
94
|
readonly attrs: {
|
|
42
95
|
readonly latex: string;
|
|
43
96
|
};
|
|
44
|
-
readonly type: "mathInline";
|
|
45
|
-
} | {
|
|
46
97
|
readonly marks?: readonly [{
|
|
47
98
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
48
99
|
} | {
|
|
@@ -68,8 +119,7 @@ export declare function networkVisuals<E>(rich: RichSlot<E>): {
|
|
|
68
119
|
};
|
|
69
120
|
readonly type: "highlight";
|
|
70
121
|
})[]];
|
|
71
|
-
readonly
|
|
72
|
-
readonly type: "text";
|
|
122
|
+
readonly type: "mathInline";
|
|
73
123
|
})[]], E, never, never>>;
|
|
74
124
|
readonly title: RichSlot<E>;
|
|
75
125
|
readonly end: Schema.String;
|