@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
@@ -9,11 +9,64 @@ export declare function chartVisuals<E>(rich: RichSlot<E>): {
9
9
  BarChart: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
10
10
  readonly description: RichSlot<E>;
11
11
  readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
12
+ readonly marks?: readonly [{
13
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
14
+ } | {
15
+ readonly attrs: {
16
+ readonly href: string;
17
+ };
18
+ readonly type: "link";
19
+ } | {
20
+ readonly attrs: {
21
+ readonly variant: "success" | "warning" | null;
22
+ };
23
+ readonly type: "highlight";
24
+ }, ...({
25
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
26
+ } | {
27
+ readonly attrs: {
28
+ readonly href: string;
29
+ };
30
+ readonly type: "link";
31
+ } | {
32
+ readonly attrs: {
33
+ readonly variant: "success" | "warning" | null;
34
+ };
35
+ readonly type: "highlight";
36
+ })[]];
37
+ readonly text: string;
38
+ readonly type: "text";
39
+ } | {
12
40
  readonly attrs: {
13
41
  readonly latex: string;
14
42
  };
43
+ readonly marks?: readonly [{
44
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
45
+ } | {
46
+ readonly attrs: {
47
+ readonly href: string;
48
+ };
49
+ readonly type: "link";
50
+ } | {
51
+ readonly attrs: {
52
+ readonly variant: "success" | "warning" | null;
53
+ };
54
+ readonly type: "highlight";
55
+ }, ...({
56
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
57
+ } | {
58
+ readonly attrs: {
59
+ readonly href: string;
60
+ };
61
+ readonly type: "link";
62
+ } | {
63
+ readonly attrs: {
64
+ readonly variant: "success" | "warning" | null;
65
+ };
66
+ readonly type: "highlight";
67
+ })[]];
15
68
  readonly type: "mathInline";
16
- } | {
69
+ }, ...({
17
70
  readonly marks?: readonly [{
18
71
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
19
72
  } | {
@@ -41,12 +94,10 @@ export declare function chartVisuals<E>(rich: RichSlot<E>): {
41
94
  })[]];
42
95
  readonly text: string;
43
96
  readonly type: "text";
44
- }, ...({
97
+ } | {
45
98
  readonly attrs: {
46
99
  readonly latex: string;
47
100
  };
48
- readonly type: "mathInline";
49
- } | {
50
101
  readonly marks?: readonly [{
51
102
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
52
103
  } | {
@@ -72,8 +123,7 @@ export declare function chartVisuals<E>(rich: RichSlot<E>): {
72
123
  };
73
124
  readonly type: "highlight";
74
125
  })[]];
75
- readonly text: string;
76
- readonly type: "text";
126
+ readonly type: "mathInline";
77
127
  })[]], E, never, never>>;
78
128
  readonly title: RichSlot<E>;
79
129
  readonly chartConfig: Schema.$Record<Schema.Trimmed, Schema.Struct<{
@@ -108,11 +158,64 @@ export declare function chartVisuals<E>(rich: RichSlot<E>): {
108
158
  Chart: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
109
159
  readonly description: RichSlot<E>;
110
160
  readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
161
+ readonly marks?: readonly [{
162
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
163
+ } | {
164
+ readonly attrs: {
165
+ readonly href: string;
166
+ };
167
+ readonly type: "link";
168
+ } | {
169
+ readonly attrs: {
170
+ readonly variant: "success" | "warning" | null;
171
+ };
172
+ readonly type: "highlight";
173
+ }, ...({
174
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
175
+ } | {
176
+ readonly attrs: {
177
+ readonly href: string;
178
+ };
179
+ readonly type: "link";
180
+ } | {
181
+ readonly attrs: {
182
+ readonly variant: "success" | "warning" | null;
183
+ };
184
+ readonly type: "highlight";
185
+ })[]];
186
+ readonly text: string;
187
+ readonly type: "text";
188
+ } | {
111
189
  readonly attrs: {
112
190
  readonly latex: string;
113
191
  };
192
+ readonly marks?: readonly [{
193
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
194
+ } | {
195
+ readonly attrs: {
196
+ readonly href: string;
197
+ };
198
+ readonly type: "link";
199
+ } | {
200
+ readonly attrs: {
201
+ readonly variant: "success" | "warning" | null;
202
+ };
203
+ readonly type: "highlight";
204
+ }, ...({
205
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
206
+ } | {
207
+ readonly attrs: {
208
+ readonly href: string;
209
+ };
210
+ readonly type: "link";
211
+ } | {
212
+ readonly attrs: {
213
+ readonly variant: "success" | "warning" | null;
214
+ };
215
+ readonly type: "highlight";
216
+ })[]];
114
217
  readonly type: "mathInline";
115
- } | {
218
+ }, ...({
116
219
  readonly marks?: readonly [{
117
220
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
118
221
  } | {
@@ -140,12 +243,10 @@ export declare function chartVisuals<E>(rich: RichSlot<E>): {
140
243
  })[]];
141
244
  readonly text: string;
142
245
  readonly type: "text";
143
- }, ...({
246
+ } | {
144
247
  readonly attrs: {
145
248
  readonly latex: string;
146
249
  };
147
- readonly type: "mathInline";
148
- } | {
149
250
  readonly marks?: readonly [{
150
251
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
151
252
  } | {
@@ -171,8 +272,7 @@ export declare function chartVisuals<E>(rich: RichSlot<E>): {
171
272
  };
172
273
  readonly type: "highlight";
173
274
  })[]];
174
- readonly text: string;
175
- readonly type: "text";
275
+ readonly type: "mathInline";
176
276
  })[]], E, never, never>>;
177
277
  readonly title: RichSlot<E>;
178
278
  readonly bars: Schema.optionalKey<Schema.Literals<readonly ["apart", "touching"]>>;
@@ -191,11 +291,64 @@ export declare function chartVisuals<E>(rich: RichSlot<E>): {
191
291
  FunctionChart: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
192
292
  readonly description: RichSlot<E>;
193
293
  readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
294
+ readonly marks?: readonly [{
295
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
296
+ } | {
297
+ readonly attrs: {
298
+ readonly href: string;
299
+ };
300
+ readonly type: "link";
301
+ } | {
302
+ readonly attrs: {
303
+ readonly variant: "success" | "warning" | null;
304
+ };
305
+ readonly type: "highlight";
306
+ }, ...({
307
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
308
+ } | {
309
+ readonly attrs: {
310
+ readonly href: string;
311
+ };
312
+ readonly type: "link";
313
+ } | {
314
+ readonly attrs: {
315
+ readonly variant: "success" | "warning" | null;
316
+ };
317
+ readonly type: "highlight";
318
+ })[]];
319
+ readonly text: string;
320
+ readonly type: "text";
321
+ } | {
194
322
  readonly attrs: {
195
323
  readonly latex: string;
196
324
  };
325
+ readonly marks?: readonly [{
326
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
327
+ } | {
328
+ readonly attrs: {
329
+ readonly href: string;
330
+ };
331
+ readonly type: "link";
332
+ } | {
333
+ readonly attrs: {
334
+ readonly variant: "success" | "warning" | null;
335
+ };
336
+ readonly type: "highlight";
337
+ }, ...({
338
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
339
+ } | {
340
+ readonly attrs: {
341
+ readonly href: string;
342
+ };
343
+ readonly type: "link";
344
+ } | {
345
+ readonly attrs: {
346
+ readonly variant: "success" | "warning" | null;
347
+ };
348
+ readonly type: "highlight";
349
+ })[]];
197
350
  readonly type: "mathInline";
198
- } | {
351
+ }, ...({
199
352
  readonly marks?: readonly [{
200
353
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
201
354
  } | {
@@ -223,12 +376,10 @@ export declare function chartVisuals<E>(rich: RichSlot<E>): {
223
376
  })[]];
224
377
  readonly text: string;
225
378
  readonly type: "text";
226
- }, ...({
379
+ } | {
227
380
  readonly attrs: {
228
381
  readonly latex: string;
229
382
  };
230
- readonly type: "mathInline";
231
- } | {
232
383
  readonly marks?: readonly [{
233
384
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
234
385
  } | {
@@ -254,8 +405,7 @@ export declare function chartVisuals<E>(rich: RichSlot<E>): {
254
405
  };
255
406
  readonly type: "highlight";
256
407
  })[]];
257
- readonly text: string;
258
- readonly type: "text";
408
+ readonly type: "mathInline";
259
409
  })[]], E, never, never>>;
260
410
  readonly title: RichSlot<E>;
261
411
  readonly a: Schema.Finite;
@@ -266,11 +416,64 @@ export declare function chartVisuals<E>(rich: RichSlot<E>): {
266
416
  HistogramChart: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
267
417
  readonly description: RichSlot<E>;
268
418
  readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
419
+ readonly marks?: readonly [{
420
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
421
+ } | {
422
+ readonly attrs: {
423
+ readonly href: string;
424
+ };
425
+ readonly type: "link";
426
+ } | {
427
+ readonly attrs: {
428
+ readonly variant: "success" | "warning" | null;
429
+ };
430
+ readonly type: "highlight";
431
+ }, ...({
432
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
433
+ } | {
434
+ readonly attrs: {
435
+ readonly href: string;
436
+ };
437
+ readonly type: "link";
438
+ } | {
439
+ readonly attrs: {
440
+ readonly variant: "success" | "warning" | null;
441
+ };
442
+ readonly type: "highlight";
443
+ })[]];
444
+ readonly text: string;
445
+ readonly type: "text";
446
+ } | {
269
447
  readonly attrs: {
270
448
  readonly latex: string;
271
449
  };
450
+ readonly marks?: readonly [{
451
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
452
+ } | {
453
+ readonly attrs: {
454
+ readonly href: string;
455
+ };
456
+ readonly type: "link";
457
+ } | {
458
+ readonly attrs: {
459
+ readonly variant: "success" | "warning" | null;
460
+ };
461
+ readonly type: "highlight";
462
+ }, ...({
463
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
464
+ } | {
465
+ readonly attrs: {
466
+ readonly href: string;
467
+ };
468
+ readonly type: "link";
469
+ } | {
470
+ readonly attrs: {
471
+ readonly variant: "success" | "warning" | null;
472
+ };
473
+ readonly type: "highlight";
474
+ })[]];
272
475
  readonly type: "mathInline";
273
- } | {
476
+ }, ...({
274
477
  readonly marks?: readonly [{
275
478
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
276
479
  } | {
@@ -298,12 +501,10 @@ export declare function chartVisuals<E>(rich: RichSlot<E>): {
298
501
  })[]];
299
502
  readonly text: string;
300
503
  readonly type: "text";
301
- }, ...({
504
+ } | {
302
505
  readonly attrs: {
303
506
  readonly latex: string;
304
507
  };
305
- readonly type: "mathInline";
306
- } | {
307
508
  readonly marks?: readonly [{
308
509
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
309
510
  } | {
@@ -329,8 +530,7 @@ export declare function chartVisuals<E>(rich: RichSlot<E>): {
329
530
  };
330
531
  readonly type: "highlight";
331
532
  })[]];
332
- readonly text: string;
333
- readonly type: "text";
533
+ readonly type: "mathInline";
334
534
  })[]], E, never, never>>;
335
535
  readonly title: RichSlot<E>;
336
536
  readonly chartConfig: Schema.$Record<Schema.Trimmed, Schema.Struct<{
@@ -365,11 +565,64 @@ export declare function chartVisuals<E>(rich: RichSlot<E>): {
365
565
  ScatterDiagram: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
366
566
  readonly description: RichSlot<E>;
367
567
  readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
568
+ readonly marks?: readonly [{
569
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
570
+ } | {
571
+ readonly attrs: {
572
+ readonly href: string;
573
+ };
574
+ readonly type: "link";
575
+ } | {
576
+ readonly attrs: {
577
+ readonly variant: "success" | "warning" | null;
578
+ };
579
+ readonly type: "highlight";
580
+ }, ...({
581
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
582
+ } | {
583
+ readonly attrs: {
584
+ readonly href: string;
585
+ };
586
+ readonly type: "link";
587
+ } | {
588
+ readonly attrs: {
589
+ readonly variant: "success" | "warning" | null;
590
+ };
591
+ readonly type: "highlight";
592
+ })[]];
593
+ readonly text: string;
594
+ readonly type: "text";
595
+ } | {
368
596
  readonly attrs: {
369
597
  readonly latex: string;
370
598
  };
599
+ readonly marks?: readonly [{
600
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
601
+ } | {
602
+ readonly attrs: {
603
+ readonly href: string;
604
+ };
605
+ readonly type: "link";
606
+ } | {
607
+ readonly attrs: {
608
+ readonly variant: "success" | "warning" | null;
609
+ };
610
+ readonly type: "highlight";
611
+ }, ...({
612
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
613
+ } | {
614
+ readonly attrs: {
615
+ readonly href: string;
616
+ };
617
+ readonly type: "link";
618
+ } | {
619
+ readonly attrs: {
620
+ readonly variant: "success" | "warning" | null;
621
+ };
622
+ readonly type: "highlight";
623
+ })[]];
371
624
  readonly type: "mathInline";
372
- } | {
625
+ }, ...({
373
626
  readonly marks?: readonly [{
374
627
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
375
628
  } | {
@@ -397,12 +650,10 @@ export declare function chartVisuals<E>(rich: RichSlot<E>): {
397
650
  })[]];
398
651
  readonly text: string;
399
652
  readonly type: "text";
400
- }, ...({
653
+ } | {
401
654
  readonly attrs: {
402
655
  readonly latex: string;
403
656
  };
404
- readonly type: "mathInline";
405
- } | {
406
657
  readonly marks?: readonly [{
407
658
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
408
659
  } | {
@@ -428,8 +679,7 @@ export declare function chartVisuals<E>(rich: RichSlot<E>): {
428
679
  };
429
680
  readonly type: "highlight";
430
681
  })[]];
431
- readonly text: string;
432
- readonly type: "text";
682
+ readonly type: "mathInline";
433
683
  })[]], E, never, never>>;
434
684
  readonly title: RichSlot<E>;
435
685
  readonly calculateRegressionLine: Schema.optionalKey<Schema.Boolean>;