@nakafa/aksara-contracts 8.8.0 → 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.
Files changed (110) hide show
  1. package/dist/assessment/answer.d.ts +2 -0
  2. package/dist/assessment/answer.js +5 -3
  3. package/dist/assessment/choice.d.ts +26 -0
  4. package/dist/assessment/closure.js +2 -1
  5. package/dist/assessment/document.d.ts +39 -0
  6. package/dist/assessment/figure.d.ts +13 -0
  7. package/dist/assessment/fit.d.ts +16 -2
  8. package/dist/assessment/fit.js +23 -5
  9. package/dist/assessment/graphic.d.ts +27 -0
  10. package/dist/assessment/graphic.js +17 -1
  11. package/dist/assessment/hash.d.ts +777 -109
  12. package/dist/assessment/inline.d.ts +53 -0
  13. package/dist/assessment/inline.js +1 -0
  14. package/dist/assessment/interaction.d.ts +44 -1
  15. package/dist/assessment/interaction.js +2 -1
  16. package/dist/assessment/item.d.ts +500 -37
  17. package/dist/assessment/item.js +1 -1
  18. package/dist/assessment/joint.d.ts +4 -3
  19. package/dist/assessment/joint.js +4 -3
  20. package/dist/assessment/key.d.ts +138 -0
  21. package/dist/assessment/key.js +6 -0
  22. package/dist/assessment/paper.d.ts +1006 -90
  23. package/dist/assessment/part.d.ts +13 -0
  24. package/dist/assessment/profile.d.ts +3 -3
  25. package/dist/assessment/profile.js +4 -4
  26. package/dist/assessment/rows.d.ts +621 -39
  27. package/dist/assessment/scoring.d.ts +12 -6
  28. package/dist/assessment/scoring.js +25 -8
  29. package/dist/assessment/sketch.d.ts +125 -0
  30. package/dist/assessment/sketch.js +175 -0
  31. package/dist/assessment/snapshot.d.ts +1479 -91
  32. package/dist/assessment/structure.js +4 -4
  33. package/dist/release/snapshot/data.d.ts +114 -2
  34. package/dist/release/snapshot/verify.d.ts +621 -39
  35. package/dist/transport/group.d.ts +342 -6
  36. package/dist/transport/request.d.ts +4032 -316
  37. package/dist/transport/snapshot.d.ts +228 -4
  38. package/dist/visual/base/math.d.ts +56 -6
  39. package/dist/visual/base/media.d.ts +56 -6
  40. package/dist/visual/biology/bacteria.d.ts +224 -24
  41. package/dist/visual/biology/blood.d.ts +56 -6
  42. package/dist/visual/biology/cell.d.ts +168 -18
  43. package/dist/visual/biology/climate.d.ts +168 -18
  44. package/dist/visual/biology/ecology.d.ts +224 -24
  45. package/dist/visual/biology/heart.d.ts +56 -6
  46. package/dist/visual/biology/mitochondrion.d.ts +56 -6
  47. package/dist/visual/biology/muscle.d.ts +56 -6
  48. package/dist/visual/biology/neuron.d.ts +56 -6
  49. package/dist/visual/biology/paddy.d.ts +56 -6
  50. package/dist/visual/biology/physiology.d.ts +168 -18
  51. package/dist/visual/biology/plant.d.ts +280 -30
  52. package/dist/visual/biology/synapse.d.ts +56 -6
  53. package/dist/visual/biology/vessel.d.ts +56 -6
  54. package/dist/visual/biology/yeast.d.ts +56 -6
  55. package/dist/visual/card.d.ts +56 -6
  56. package/dist/visual/catalog.d.ts +16734 -5484
  57. package/dist/visual/chemistry/atom.d.ts +168 -18
  58. package/dist/visual/chemistry/balance.d.ts +280 -30
  59. package/dist/visual/chemistry/bonding.d.ts +280 -30
  60. package/dist/visual/chemistry/discovery.d.ts +392 -42
  61. package/dist/visual/chemistry/electrochemistry.d.ts +112 -12
  62. package/dist/visual/chemistry/electron.d.ts +112 -12
  63. package/dist/visual/chemistry/laws.d.ts +224 -24
  64. package/dist/visual/chemistry/particles.d.ts +280 -30
  65. package/dist/visual/chemistry/periodic.d.ts +112 -12
  66. package/dist/visual/chemistry/rate.d.ts +56 -6
  67. package/dist/visual/chemistry/reaction.d.ts +168 -18
  68. package/dist/visual/chemistry/titration.d.ts +56 -6
  69. package/dist/visual/length.d.ts +56 -6
  70. package/dist/visual/mathematics/chance.d.ts +168 -18
  71. package/dist/visual/mathematics/chart.d.ts +56 -6
  72. package/dist/visual/mathematics/charts.d.ts +280 -30
  73. package/dist/visual/mathematics/function.d.ts +168 -18
  74. package/dist/visual/mathematics/journey.d.ts +56 -6
  75. package/dist/visual/mathematics/logic.d.ts +56 -6
  76. package/dist/visual/mathematics/network.d.ts +56 -6
  77. package/dist/visual/mathematics/numeral.d.ts +168 -18
  78. package/dist/visual/mathematics/sets.d.ts +56 -6
  79. package/dist/visual/physics/braking.d.ts +224 -24
  80. package/dist/visual/physics/circuit.d.ts +224 -24
  81. package/dist/visual/physics/circular.d.ts +112 -12
  82. package/dist/visual/physics/dynamics.d.ts +392 -42
  83. package/dist/visual/physics/efficiency.d.ts +336 -36
  84. package/dist/visual/physics/electronics.d.ts +168 -18
  85. package/dist/visual/physics/falling.d.ts +224 -24
  86. package/dist/visual/physics/field.d.ts +168 -18
  87. package/dist/visual/physics/fluid.d.ts +224 -24
  88. package/dist/visual/physics/force.d.ts +280 -30
  89. package/dist/visual/physics/gravity.d.ts +112 -12
  90. package/dist/visual/physics/heat.d.ts +168 -18
  91. package/dist/visual/physics/instrument.d.ts +392 -42
  92. package/dist/visual/physics/light.d.ts +224 -24
  93. package/dist/visual/physics/measurement.d.ts +224 -24
  94. package/dist/visual/physics/motion.d.ts +336 -36
  95. package/dist/visual/physics/nuclear.d.ts +168 -18
  96. package/dist/visual/physics/parabolic.d.ts +56 -6
  97. package/dist/visual/physics/position.d.ts +336 -36
  98. package/dist/visual/physics/power.d.ts +448 -48
  99. package/dist/visual/physics/precision.d.ts +392 -42
  100. package/dist/visual/physics/product.d.ts +224 -24
  101. package/dist/visual/physics/reading.d.ts +168 -18
  102. package/dist/visual/physics/record.d.ts +112 -12
  103. package/dist/visual/physics/relative.d.ts +168 -18
  104. package/dist/visual/physics/solar.d.ts +336 -36
  105. package/dist/visual/physics/thermodynamics.d.ts +56 -6
  106. package/dist/visual/physics/vector.d.ts +280 -30
  107. package/dist/visual/physics/velocity.d.ts +392 -42
  108. package/dist/visual/physics/wave.d.ts +224 -24
  109. package/dist/visual/politics.d.ts +336 -36
  110. package/package.json +2 -2
@@ -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 text: string;
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 text: string;
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 text: string;
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 text: string;
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 text: string;
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 text: string;
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;