@nakafa/aksara-contracts 8.9.1 → 8.12.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 (160) hide show
  1. package/dist/assessment/choice.d.ts +26 -0
  2. package/dist/assessment/document.d.ts +39 -0
  3. package/dist/assessment/figure.d.ts +13 -0
  4. package/dist/assessment/hash.d.ts +711 -111
  5. package/dist/assessment/inline.d.ts +53 -0
  6. package/dist/assessment/inline.js +1 -0
  7. package/dist/assessment/interaction.d.ts +26 -0
  8. package/dist/assessment/item.d.ts +414 -36
  9. package/dist/assessment/paper.d.ts +731 -131
  10. package/dist/assessment/part.d.ts +13 -0
  11. package/dist/assessment/rows.d.ts +336 -36
  12. package/dist/assessment/snapshot.d.ts +773 -121
  13. package/dist/release/snapshot/data.d.ts +26 -0
  14. package/dist/release/snapshot/verify.d.ts +336 -36
  15. package/dist/transport/group.d.ts +78 -0
  16. package/dist/transport/request.d.ts +2195 -343
  17. package/dist/transport/snapshot.d.ts +52 -0
  18. package/dist/visual/base/math.d.ts +56 -6
  19. package/dist/visual/base/media.d.ts +56 -6
  20. package/dist/visual/biology/bacteria.d.ts +224 -24
  21. package/dist/visual/biology/binomial.d.ts +139 -0
  22. package/dist/visual/biology/binomial.js +46 -0
  23. package/dist/visual/biology/blood.d.ts +56 -6
  24. package/dist/visual/biology/bone.d.ts +141 -0
  25. package/dist/visual/biology/bone.js +46 -0
  26. package/dist/visual/biology/cell.d.ts +168 -18
  27. package/dist/visual/biology/chromosome.d.ts +139 -0
  28. package/dist/visual/biology/chromosome.js +42 -0
  29. package/dist/visual/biology/climate.d.ts +168 -18
  30. package/dist/visual/biology/control.d.ts +17 -0
  31. package/dist/visual/biology/control.js +21 -0
  32. package/dist/visual/biology/denature.d.ts +159 -0
  33. package/dist/visual/biology/denature.js +74 -0
  34. package/dist/visual/biology/drawing.d.ts +151 -0
  35. package/dist/visual/biology/drawing.js +69 -0
  36. package/dist/visual/biology/ecology.d.ts +224 -24
  37. package/dist/visual/biology/enzyme.d.ts +145 -0
  38. package/dist/visual/biology/enzyme.js +54 -0
  39. package/dist/visual/biology/equipment.d.ts +140 -0
  40. package/dist/visual/biology/equipment.js +64 -0
  41. package/dist/visual/biology/gametogenesis.d.ts +145 -0
  42. package/dist/visual/biology/gametogenesis.js +83 -0
  43. package/dist/visual/biology/heart.d.ts +56 -6
  44. package/dist/visual/biology/implantation.d.ts +138 -0
  45. package/dist/visual/biology/implantation.js +44 -0
  46. package/dist/visual/biology/joint.d.ts +140 -0
  47. package/dist/visual/biology/joint.js +47 -0
  48. package/dist/visual/biology/key.d.ts +141 -0
  49. package/dist/visual/biology/key.js +58 -0
  50. package/dist/visual/biology/kingdom.d.ts +142 -0
  51. package/dist/visual/biology/kingdom.js +82 -0
  52. package/dist/visual/biology/lactase.d.ts +147 -0
  53. package/dist/visual/biology/lactase.js +48 -0
  54. package/dist/visual/biology/limb.d.ts +139 -0
  55. package/dist/visual/biology/limb.js +44 -0
  56. package/dist/visual/biology/lipid.d.ts +144 -0
  57. package/dist/visual/biology/lipid.js +43 -0
  58. package/dist/visual/biology/locomotion.d.ts +141 -0
  59. package/dist/visual/biology/locomotion.js +48 -0
  60. package/dist/visual/biology/menstrual.d.ts +148 -0
  61. package/dist/visual/biology/menstrual.js +65 -0
  62. package/dist/visual/biology/metamorphosis.d.ts +140 -0
  63. package/dist/visual/biology/metamorphosis.js +34 -0
  64. package/dist/visual/biology/mitochondrion.d.ts +56 -6
  65. package/dist/visual/biology/muscle.d.ts +56 -6
  66. package/dist/visual/biology/neuron.d.ts +56 -6
  67. package/dist/visual/biology/paddy.d.ts +56 -6
  68. package/dist/visual/biology/physiology.d.ts +168 -18
  69. package/dist/visual/biology/placenta.d.ts +139 -0
  70. package/dist/visual/biology/placenta.js +52 -0
  71. package/dist/visual/biology/planes.d.ts +145 -0
  72. package/dist/visual/biology/planes.js +62 -0
  73. package/dist/visual/biology/plant.d.ts +280 -30
  74. package/dist/visual/biology/protein.d.ts +142 -0
  75. package/dist/visual/biology/protein.js +41 -0
  76. package/dist/visual/biology/saturation.d.ts +149 -0
  77. package/dist/visual/biology/saturation.js +40 -0
  78. package/dist/visual/biology/secretion.d.ts +149 -0
  79. package/dist/visual/biology/secretion.js +79 -0
  80. package/dist/visual/biology/spill.d.ts +165 -0
  81. package/dist/visual/biology/spill.js +58 -0
  82. package/dist/visual/biology/sugar.d.ts +152 -0
  83. package/dist/visual/biology/sugar.js +59 -0
  84. package/dist/visual/biology/synapse.d.ts +56 -6
  85. package/dist/visual/biology/taxon.d.ts +138 -0
  86. package/dist/visual/biology/taxon.js +50 -0
  87. package/dist/visual/biology/twins.d.ts +144 -0
  88. package/dist/visual/biology/twins.js +60 -0
  89. package/dist/visual/biology/vernacular.d.ts +141 -0
  90. package/dist/visual/biology/vernacular.js +57 -0
  91. package/dist/visual/biology/vertebra.d.ts +141 -0
  92. package/dist/visual/biology/vertebra.js +59 -0
  93. package/dist/visual/biology/vessel.d.ts +56 -6
  94. package/dist/visual/biology/waste.d.ts +140 -0
  95. package/dist/visual/biology/waste.js +57 -0
  96. package/dist/visual/biology/water.d.ts +152 -0
  97. package/dist/visual/biology/water.js +54 -0
  98. package/dist/visual/biology/yeast.d.ts +56 -6
  99. package/dist/visual/card.d.ts +67 -6
  100. package/dist/visual/card.js +17 -1
  101. package/dist/visual/catalog.d.ts +21584 -5487
  102. package/dist/visual/catalog.js +66 -0
  103. package/dist/visual/chemistry/atom.d.ts +168 -18
  104. package/dist/visual/chemistry/balance.d.ts +280 -30
  105. package/dist/visual/chemistry/bonding.d.ts +280 -30
  106. package/dist/visual/chemistry/discovery.d.ts +392 -42
  107. package/dist/visual/chemistry/electrochemistry.d.ts +112 -12
  108. package/dist/visual/chemistry/electron.d.ts +112 -12
  109. package/dist/visual/chemistry/laws.d.ts +224 -24
  110. package/dist/visual/chemistry/particles.d.ts +280 -30
  111. package/dist/visual/chemistry/periodic.d.ts +112 -12
  112. package/dist/visual/chemistry/rate.d.ts +56 -6
  113. package/dist/visual/chemistry/reaction.d.ts +168 -18
  114. package/dist/visual/chemistry/titration.d.ts +56 -6
  115. package/dist/visual/length.d.ts +56 -6
  116. package/dist/visual/mathematics/argument.d.ts +226 -0
  117. package/dist/visual/mathematics/argument.js +150 -0
  118. package/dist/visual/mathematics/chance.d.ts +168 -18
  119. package/dist/visual/mathematics/chart.d.ts +56 -6
  120. package/dist/visual/mathematics/charts.d.ts +280 -30
  121. package/dist/visual/mathematics/counterexample.d.ts +340 -0
  122. package/dist/visual/mathematics/counterexample.js +157 -0
  123. package/dist/visual/mathematics/function.d.ts +168 -18
  124. package/dist/visual/mathematics/journey.d.ts +56 -6
  125. package/dist/visual/mathematics/logic.d.ts +56 -6
  126. package/dist/visual/mathematics/network.d.ts +56 -6
  127. package/dist/visual/mathematics/numeral.d.ts +168 -18
  128. package/dist/visual/mathematics/sets.d.ts +56 -6
  129. package/dist/visual/physics/braking.d.ts +224 -24
  130. package/dist/visual/physics/circuit.d.ts +224 -24
  131. package/dist/visual/physics/circular.d.ts +112 -12
  132. package/dist/visual/physics/dynamics.d.ts +392 -42
  133. package/dist/visual/physics/efficiency.d.ts +336 -36
  134. package/dist/visual/physics/electronics.d.ts +168 -18
  135. package/dist/visual/physics/falling.d.ts +224 -24
  136. package/dist/visual/physics/field.d.ts +168 -18
  137. package/dist/visual/physics/fluid.d.ts +224 -24
  138. package/dist/visual/physics/force.d.ts +280 -30
  139. package/dist/visual/physics/gravity.d.ts +112 -12
  140. package/dist/visual/physics/heat.d.ts +168 -18
  141. package/dist/visual/physics/instrument.d.ts +392 -42
  142. package/dist/visual/physics/light.d.ts +224 -24
  143. package/dist/visual/physics/measurement.d.ts +224 -24
  144. package/dist/visual/physics/motion.d.ts +336 -36
  145. package/dist/visual/physics/nuclear.d.ts +168 -18
  146. package/dist/visual/physics/parabolic.d.ts +56 -6
  147. package/dist/visual/physics/position.d.ts +336 -36
  148. package/dist/visual/physics/power.d.ts +448 -48
  149. package/dist/visual/physics/precision.d.ts +392 -42
  150. package/dist/visual/physics/product.d.ts +224 -24
  151. package/dist/visual/physics/reading.d.ts +168 -18
  152. package/dist/visual/physics/record.d.ts +112 -12
  153. package/dist/visual/physics/relative.d.ts +168 -18
  154. package/dist/visual/physics/solar.d.ts +336 -36
  155. package/dist/visual/physics/thermodynamics.d.ts +56 -6
  156. package/dist/visual/physics/vector.d.ts +280 -30
  157. package/dist/visual/physics/velocity.d.ts +392 -42
  158. package/dist/visual/physics/wave.d.ts +224 -24
  159. package/dist/visual/politics.d.ts +336 -36
  160. package/package.json +1 -1
@@ -8,11 +8,64 @@ export declare function politicsVisuals<E>(rich: RichSlot<E>): {
8
8
  KimPlusElectabilityChart: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
9
9
  readonly description: RichSlot<E>;
10
10
  readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
11
+ readonly marks?: readonly [{
12
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
13
+ } | {
14
+ readonly attrs: {
15
+ readonly href: string;
16
+ };
17
+ readonly type: "link";
18
+ } | {
19
+ readonly attrs: {
20
+ readonly variant: "success" | "warning" | null;
21
+ };
22
+ readonly type: "highlight";
23
+ }, ...({
24
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
25
+ } | {
26
+ readonly attrs: {
27
+ readonly href: string;
28
+ };
29
+ readonly type: "link";
30
+ } | {
31
+ readonly attrs: {
32
+ readonly variant: "success" | "warning" | null;
33
+ };
34
+ readonly type: "highlight";
35
+ })[]];
36
+ readonly text: string;
37
+ readonly type: "text";
38
+ } | {
11
39
  readonly attrs: {
12
40
  readonly latex: string;
13
41
  };
42
+ readonly marks?: readonly [{
43
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
44
+ } | {
45
+ readonly attrs: {
46
+ readonly href: string;
47
+ };
48
+ readonly type: "link";
49
+ } | {
50
+ readonly attrs: {
51
+ readonly variant: "success" | "warning" | null;
52
+ };
53
+ readonly type: "highlight";
54
+ }, ...({
55
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
56
+ } | {
57
+ readonly attrs: {
58
+ readonly href: string;
59
+ };
60
+ readonly type: "link";
61
+ } | {
62
+ readonly attrs: {
63
+ readonly variant: "success" | "warning" | null;
64
+ };
65
+ readonly type: "highlight";
66
+ })[]];
14
67
  readonly type: "mathInline";
15
- } | {
68
+ }, ...({
16
69
  readonly marks?: readonly [{
17
70
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
18
71
  } | {
@@ -40,12 +93,10 @@ export declare function politicsVisuals<E>(rich: RichSlot<E>): {
40
93
  })[]];
41
94
  readonly text: string;
42
95
  readonly type: "text";
43
- }, ...({
96
+ } | {
44
97
  readonly attrs: {
45
98
  readonly latex: string;
46
99
  };
47
- readonly type: "mathInline";
48
- } | {
49
100
  readonly marks?: readonly [{
50
101
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
51
102
  } | {
@@ -71,8 +122,7 @@ export declare function politicsVisuals<E>(rich: RichSlot<E>): {
71
122
  };
72
123
  readonly type: "highlight";
73
124
  })[]];
74
- readonly text: string;
75
- readonly type: "text";
125
+ readonly type: "mathInline";
76
126
  })[]], E, never, never>>;
77
127
  readonly title: RichSlot<E>;
78
128
  readonly footnote: RichSlot<E>;
@@ -84,11 +134,64 @@ export declare function politicsVisuals<E>(rich: RichSlot<E>): {
84
134
  MerahPutihCabinetChart: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
85
135
  readonly description: RichSlot<E>;
86
136
  readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
137
+ readonly marks?: readonly [{
138
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
139
+ } | {
140
+ readonly attrs: {
141
+ readonly href: string;
142
+ };
143
+ readonly type: "link";
144
+ } | {
145
+ readonly attrs: {
146
+ readonly variant: "success" | "warning" | null;
147
+ };
148
+ readonly type: "highlight";
149
+ }, ...({
150
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
151
+ } | {
152
+ readonly attrs: {
153
+ readonly href: string;
154
+ };
155
+ readonly type: "link";
156
+ } | {
157
+ readonly attrs: {
158
+ readonly variant: "success" | "warning" | null;
159
+ };
160
+ readonly type: "highlight";
161
+ })[]];
162
+ readonly text: string;
163
+ readonly type: "text";
164
+ } | {
87
165
  readonly attrs: {
88
166
  readonly latex: string;
89
167
  };
168
+ readonly marks?: readonly [{
169
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
170
+ } | {
171
+ readonly attrs: {
172
+ readonly href: string;
173
+ };
174
+ readonly type: "link";
175
+ } | {
176
+ readonly attrs: {
177
+ readonly variant: "success" | "warning" | null;
178
+ };
179
+ readonly type: "highlight";
180
+ }, ...({
181
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
182
+ } | {
183
+ readonly attrs: {
184
+ readonly href: string;
185
+ };
186
+ readonly type: "link";
187
+ } | {
188
+ readonly attrs: {
189
+ readonly variant: "success" | "warning" | null;
190
+ };
191
+ readonly type: "highlight";
192
+ })[]];
90
193
  readonly type: "mathInline";
91
- } | {
194
+ }, ...({
92
195
  readonly marks?: readonly [{
93
196
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
94
197
  } | {
@@ -116,12 +219,10 @@ export declare function politicsVisuals<E>(rich: RichSlot<E>): {
116
219
  })[]];
117
220
  readonly text: string;
118
221
  readonly type: "text";
119
- }, ...({
222
+ } | {
120
223
  readonly attrs: {
121
224
  readonly latex: string;
122
225
  };
123
- readonly type: "mathInline";
124
- } | {
125
226
  readonly marks?: readonly [{
126
227
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
127
228
  } | {
@@ -147,8 +248,7 @@ export declare function politicsVisuals<E>(rich: RichSlot<E>): {
147
248
  };
148
249
  readonly type: "highlight";
149
250
  })[]];
150
- readonly text: string;
151
- readonly type: "text";
251
+ readonly type: "mathInline";
152
252
  })[]], E, never, never>>;
153
253
  readonly title: RichSlot<E>;
154
254
  readonly footnote: RichSlot<E>;
@@ -159,11 +259,64 @@ export declare function politicsVisuals<E>(rich: RichSlot<E>): {
159
259
  MerahPutihCompositionChart: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
160
260
  readonly description: RichSlot<E>;
161
261
  readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
262
+ readonly marks?: readonly [{
263
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
264
+ } | {
265
+ readonly attrs: {
266
+ readonly href: string;
267
+ };
268
+ readonly type: "link";
269
+ } | {
270
+ readonly attrs: {
271
+ readonly variant: "success" | "warning" | null;
272
+ };
273
+ readonly type: "highlight";
274
+ }, ...({
275
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
276
+ } | {
277
+ readonly attrs: {
278
+ readonly href: string;
279
+ };
280
+ readonly type: "link";
281
+ } | {
282
+ readonly attrs: {
283
+ readonly variant: "success" | "warning" | null;
284
+ };
285
+ readonly type: "highlight";
286
+ })[]];
287
+ readonly text: string;
288
+ readonly type: "text";
289
+ } | {
162
290
  readonly attrs: {
163
291
  readonly latex: string;
164
292
  };
293
+ readonly marks?: readonly [{
294
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
295
+ } | {
296
+ readonly attrs: {
297
+ readonly href: string;
298
+ };
299
+ readonly type: "link";
300
+ } | {
301
+ readonly attrs: {
302
+ readonly variant: "success" | "warning" | null;
303
+ };
304
+ readonly type: "highlight";
305
+ }, ...({
306
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
307
+ } | {
308
+ readonly attrs: {
309
+ readonly href: string;
310
+ };
311
+ readonly type: "link";
312
+ } | {
313
+ readonly attrs: {
314
+ readonly variant: "success" | "warning" | null;
315
+ };
316
+ readonly type: "highlight";
317
+ })[]];
165
318
  readonly type: "mathInline";
166
- } | {
319
+ }, ...({
167
320
  readonly marks?: readonly [{
168
321
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
169
322
  } | {
@@ -191,12 +344,10 @@ export declare function politicsVisuals<E>(rich: RichSlot<E>): {
191
344
  })[]];
192
345
  readonly text: string;
193
346
  readonly type: "text";
194
- }, ...({
347
+ } | {
195
348
  readonly attrs: {
196
349
  readonly latex: string;
197
350
  };
198
- readonly type: "mathInline";
199
- } | {
200
351
  readonly marks?: readonly [{
201
352
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
202
353
  } | {
@@ -222,8 +373,7 @@ export declare function politicsVisuals<E>(rich: RichSlot<E>): {
222
373
  };
223
374
  readonly type: "highlight";
224
375
  })[]];
225
- readonly text: string;
226
- readonly type: "text";
376
+ readonly type: "mathInline";
227
377
  })[]], E, never, never>>;
228
378
  readonly title: RichSlot<E>;
229
379
  readonly footnote: RichSlot<E>;
@@ -264,11 +414,64 @@ export declare function politicsVisuals<E>(rich: RichSlot<E>): {
264
414
  PorkBarrelBudgetChart: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
265
415
  readonly description: RichSlot<E>;
266
416
  readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
417
+ readonly marks?: readonly [{
418
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
419
+ } | {
420
+ readonly attrs: {
421
+ readonly href: string;
422
+ };
423
+ readonly type: "link";
424
+ } | {
425
+ readonly attrs: {
426
+ readonly variant: "success" | "warning" | null;
427
+ };
428
+ readonly type: "highlight";
429
+ }, ...({
430
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
431
+ } | {
432
+ readonly attrs: {
433
+ readonly href: string;
434
+ };
435
+ readonly type: "link";
436
+ } | {
437
+ readonly attrs: {
438
+ readonly variant: "success" | "warning" | null;
439
+ };
440
+ readonly type: "highlight";
441
+ })[]];
442
+ readonly text: string;
443
+ readonly type: "text";
444
+ } | {
267
445
  readonly attrs: {
268
446
  readonly latex: string;
269
447
  };
448
+ readonly marks?: readonly [{
449
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
450
+ } | {
451
+ readonly attrs: {
452
+ readonly href: string;
453
+ };
454
+ readonly type: "link";
455
+ } | {
456
+ readonly attrs: {
457
+ readonly variant: "success" | "warning" | null;
458
+ };
459
+ readonly type: "highlight";
460
+ }, ...({
461
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
462
+ } | {
463
+ readonly attrs: {
464
+ readonly href: string;
465
+ };
466
+ readonly type: "link";
467
+ } | {
468
+ readonly attrs: {
469
+ readonly variant: "success" | "warning" | null;
470
+ };
471
+ readonly type: "highlight";
472
+ })[]];
270
473
  readonly type: "mathInline";
271
- } | {
474
+ }, ...({
272
475
  readonly marks?: readonly [{
273
476
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
274
477
  } | {
@@ -296,12 +499,10 @@ export declare function politicsVisuals<E>(rich: RichSlot<E>): {
296
499
  })[]];
297
500
  readonly text: string;
298
501
  readonly type: "text";
299
- }, ...({
502
+ } | {
300
503
  readonly attrs: {
301
504
  readonly latex: string;
302
505
  };
303
- readonly type: "mathInline";
304
- } | {
305
506
  readonly marks?: readonly [{
306
507
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
307
508
  } | {
@@ -327,8 +528,7 @@ export declare function politicsVisuals<E>(rich: RichSlot<E>): {
327
528
  };
328
529
  readonly type: "highlight";
329
530
  })[]];
330
- readonly text: string;
331
- readonly type: "text";
531
+ readonly type: "mathInline";
332
532
  })[]], E, never, never>>;
333
533
  readonly title: RichSlot<E>;
334
534
  readonly footnote: RichSlot<E>;
@@ -340,11 +540,64 @@ export declare function politicsVisuals<E>(rich: RichSlot<E>): {
340
540
  PorkBarrelElectabilityChart: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
341
541
  readonly description: RichSlot<E>;
342
542
  readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
543
+ readonly marks?: readonly [{
544
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
545
+ } | {
546
+ readonly attrs: {
547
+ readonly href: string;
548
+ };
549
+ readonly type: "link";
550
+ } | {
551
+ readonly attrs: {
552
+ readonly variant: "success" | "warning" | null;
553
+ };
554
+ readonly type: "highlight";
555
+ }, ...({
556
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
557
+ } | {
558
+ readonly attrs: {
559
+ readonly href: string;
560
+ };
561
+ readonly type: "link";
562
+ } | {
563
+ readonly attrs: {
564
+ readonly variant: "success" | "warning" | null;
565
+ };
566
+ readonly type: "highlight";
567
+ })[]];
568
+ readonly text: string;
569
+ readonly type: "text";
570
+ } | {
343
571
  readonly attrs: {
344
572
  readonly latex: string;
345
573
  };
574
+ readonly marks?: readonly [{
575
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
576
+ } | {
577
+ readonly attrs: {
578
+ readonly href: string;
579
+ };
580
+ readonly type: "link";
581
+ } | {
582
+ readonly attrs: {
583
+ readonly variant: "success" | "warning" | null;
584
+ };
585
+ readonly type: "highlight";
586
+ }, ...({
587
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
588
+ } | {
589
+ readonly attrs: {
590
+ readonly href: string;
591
+ };
592
+ readonly type: "link";
593
+ } | {
594
+ readonly attrs: {
595
+ readonly variant: "success" | "warning" | null;
596
+ };
597
+ readonly type: "highlight";
598
+ })[]];
346
599
  readonly type: "mathInline";
347
- } | {
600
+ }, ...({
348
601
  readonly marks?: readonly [{
349
602
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
350
603
  } | {
@@ -372,12 +625,10 @@ export declare function politicsVisuals<E>(rich: RichSlot<E>): {
372
625
  })[]];
373
626
  readonly text: string;
374
627
  readonly type: "text";
375
- }, ...({
628
+ } | {
376
629
  readonly attrs: {
377
630
  readonly latex: string;
378
631
  };
379
- readonly type: "mathInline";
380
- } | {
381
632
  readonly marks?: readonly [{
382
633
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
383
634
  } | {
@@ -403,8 +654,7 @@ export declare function politicsVisuals<E>(rich: RichSlot<E>): {
403
654
  };
404
655
  readonly type: "highlight";
405
656
  })[]];
406
- readonly text: string;
407
- readonly type: "text";
657
+ readonly type: "mathInline";
408
658
  })[]], E, never, never>>;
409
659
  readonly title: RichSlot<E>;
410
660
  readonly footnote: RichSlot<E>;
@@ -418,11 +668,64 @@ export declare function politicsVisuals<E>(rich: RichSlot<E>): {
418
668
  PorkBarrelFundChart: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
419
669
  readonly description: RichSlot<E>;
420
670
  readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
671
+ readonly marks?: readonly [{
672
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
673
+ } | {
674
+ readonly attrs: {
675
+ readonly href: string;
676
+ };
677
+ readonly type: "link";
678
+ } | {
679
+ readonly attrs: {
680
+ readonly variant: "success" | "warning" | null;
681
+ };
682
+ readonly type: "highlight";
683
+ }, ...({
684
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
685
+ } | {
686
+ readonly attrs: {
687
+ readonly href: string;
688
+ };
689
+ readonly type: "link";
690
+ } | {
691
+ readonly attrs: {
692
+ readonly variant: "success" | "warning" | null;
693
+ };
694
+ readonly type: "highlight";
695
+ })[]];
696
+ readonly text: string;
697
+ readonly type: "text";
698
+ } | {
421
699
  readonly attrs: {
422
700
  readonly latex: string;
423
701
  };
702
+ readonly marks?: readonly [{
703
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
704
+ } | {
705
+ readonly attrs: {
706
+ readonly href: string;
707
+ };
708
+ readonly type: "link";
709
+ } | {
710
+ readonly attrs: {
711
+ readonly variant: "success" | "warning" | null;
712
+ };
713
+ readonly type: "highlight";
714
+ }, ...({
715
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
716
+ } | {
717
+ readonly attrs: {
718
+ readonly href: string;
719
+ };
720
+ readonly type: "link";
721
+ } | {
722
+ readonly attrs: {
723
+ readonly variant: "success" | "warning" | null;
724
+ };
725
+ readonly type: "highlight";
726
+ })[]];
424
727
  readonly type: "mathInline";
425
- } | {
728
+ }, ...({
426
729
  readonly marks?: readonly [{
427
730
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
428
731
  } | {
@@ -450,12 +753,10 @@ export declare function politicsVisuals<E>(rich: RichSlot<E>): {
450
753
  })[]];
451
754
  readonly text: string;
452
755
  readonly type: "text";
453
- }, ...({
756
+ } | {
454
757
  readonly attrs: {
455
758
  readonly latex: string;
456
759
  };
457
- readonly type: "mathInline";
458
- } | {
459
760
  readonly marks?: readonly [{
460
761
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
461
762
  } | {
@@ -481,8 +782,7 @@ export declare function politicsVisuals<E>(rich: RichSlot<E>): {
481
782
  };
482
783
  readonly type: "highlight";
483
784
  })[]];
484
- readonly text: string;
485
- readonly type: "text";
785
+ readonly type: "mathInline";
486
786
  })[]], E, never, never>>;
487
787
  readonly title: RichSlot<E>;
488
788
  readonly footnote: RichSlot<E>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nakafa/aksara-contracts",
3
- "version": "8.9.1",
3
+ "version": "8.12.0",
4
4
  "description": "Schemas and verification contracts for Nakafa content releases.",
5
5
  "homepage": "https://github.com/nakafaai/aksara#readme",
6
6
  "license": "SEE LICENSE IN LICENSE",