@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
@@ -137,6 +137,19 @@ export declare const ItemVersionBodySchema: Schema.Struct<{
137
137
  readonly attrs: Schema.Struct<{
138
138
  readonly latex: Schema.Trimmed;
139
139
  }>;
140
+ readonly marks: Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
141
+ readonly type: Schema.Literals<readonly ["bold", "italic", "underline", "code", "subscript", "superscript"]>;
142
+ }>, Schema.Struct<{
143
+ readonly attrs: Schema.Struct<{
144
+ readonly variant: Schema.NullOr<Schema.Literals<readonly ["success", "warning"]>>;
145
+ }>;
146
+ readonly type: Schema.Literal<"highlight">;
147
+ }>, Schema.Struct<{
148
+ readonly attrs: Schema.Struct<{
149
+ readonly href: Schema.String;
150
+ }>;
151
+ readonly type: Schema.Literal<"link">;
152
+ }>]>>>;
140
153
  readonly type: Schema.Literal<"mathInline">;
141
154
  }>]>>;
142
155
  }>>;
@@ -218,6 +231,19 @@ export declare const ItemVersionBodySchema: Schema.Struct<{
218
231
  readonly attrs: Schema.Struct<{
219
232
  readonly latex: Schema.Trimmed;
220
233
  }>;
234
+ readonly marks: Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
235
+ readonly type: Schema.Literals<readonly ["bold", "italic", "underline", "code", "subscript", "superscript"]>;
236
+ }>, Schema.Struct<{
237
+ readonly attrs: Schema.Struct<{
238
+ readonly variant: Schema.NullOr<Schema.Literals<readonly ["success", "warning"]>>;
239
+ }>;
240
+ readonly type: Schema.Literal<"highlight">;
241
+ }>, Schema.Struct<{
242
+ readonly attrs: Schema.Struct<{
243
+ readonly href: Schema.String;
244
+ }>;
245
+ readonly type: Schema.Literal<"link">;
246
+ }>]>>>;
221
247
  readonly type: Schema.Literal<"mathInline">;
222
248
  }>]>>;
223
249
  readonly maxMatches: Schema.Int;
@@ -250,6 +276,23 @@ export declare const ItemVersionBodySchema: Schema.Struct<{
250
276
  readonly label: Schema.Trimmed;
251
277
  readonly expectedLines: Schema.optionalKey<Schema.Int>;
252
278
  readonly kind: Schema.Literal<"extendedText">;
279
+ }>, Schema.Struct<{
280
+ readonly id: Schema.String;
281
+ readonly label: Schema.Trimmed;
282
+ readonly frame: Schema.Struct<{
283
+ readonly kind: Schema.Literal<"cartesian">;
284
+ readonly x: Schema.Struct<{
285
+ readonly max: Schema.Finite;
286
+ readonly min: Schema.Finite;
287
+ }>;
288
+ readonly y: Schema.Struct<{
289
+ readonly max: Schema.Finite;
290
+ readonly min: Schema.Finite;
291
+ }>;
292
+ }>;
293
+ readonly grid: Schema.optionalKey<Schema.Finite>;
294
+ readonly kind: Schema.Literal<"sketch">;
295
+ readonly marks: Schema.$Array<Schema.Literals<readonly ["asymptote", "point"]>>;
253
296
  }>]>>;
254
297
  joint: Schema.optionalKey<Schema.Struct<{
255
298
  readonly levels: Schema.NonEmptyArray<Schema.Struct<{
@@ -397,6 +440,19 @@ export declare const ItemVersionSchema: Schema.Struct<{
397
440
  readonly attrs: Schema.Struct<{
398
441
  readonly latex: Schema.Trimmed;
399
442
  }>;
443
+ readonly marks: Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
444
+ readonly type: Schema.Literals<readonly ["bold", "italic", "underline", "code", "subscript", "superscript"]>;
445
+ }>, Schema.Struct<{
446
+ readonly attrs: Schema.Struct<{
447
+ readonly variant: Schema.NullOr<Schema.Literals<readonly ["success", "warning"]>>;
448
+ }>;
449
+ readonly type: Schema.Literal<"highlight">;
450
+ }>, Schema.Struct<{
451
+ readonly attrs: Schema.Struct<{
452
+ readonly href: Schema.String;
453
+ }>;
454
+ readonly type: Schema.Literal<"link">;
455
+ }>]>>>;
400
456
  readonly type: Schema.Literal<"mathInline">;
401
457
  }>]>>;
402
458
  }>>;
@@ -478,6 +534,19 @@ export declare const ItemVersionSchema: Schema.Struct<{
478
534
  readonly attrs: Schema.Struct<{
479
535
  readonly latex: Schema.Trimmed;
480
536
  }>;
537
+ readonly marks: Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
538
+ readonly type: Schema.Literals<readonly ["bold", "italic", "underline", "code", "subscript", "superscript"]>;
539
+ }>, Schema.Struct<{
540
+ readonly attrs: Schema.Struct<{
541
+ readonly variant: Schema.NullOr<Schema.Literals<readonly ["success", "warning"]>>;
542
+ }>;
543
+ readonly type: Schema.Literal<"highlight">;
544
+ }>, Schema.Struct<{
545
+ readonly attrs: Schema.Struct<{
546
+ readonly href: Schema.String;
547
+ }>;
548
+ readonly type: Schema.Literal<"link">;
549
+ }>]>>>;
481
550
  readonly type: Schema.Literal<"mathInline">;
482
551
  }>]>>;
483
552
  readonly maxMatches: Schema.Int;
@@ -510,6 +579,23 @@ export declare const ItemVersionSchema: Schema.Struct<{
510
579
  readonly label: Schema.Trimmed;
511
580
  readonly expectedLines: Schema.optionalKey<Schema.Int>;
512
581
  readonly kind: Schema.Literal<"extendedText">;
582
+ }>, Schema.Struct<{
583
+ readonly id: Schema.String;
584
+ readonly label: Schema.Trimmed;
585
+ readonly frame: Schema.Struct<{
586
+ readonly kind: Schema.Literal<"cartesian">;
587
+ readonly x: Schema.Struct<{
588
+ readonly max: Schema.Finite;
589
+ readonly min: Schema.Finite;
590
+ }>;
591
+ readonly y: Schema.Struct<{
592
+ readonly max: Schema.Finite;
593
+ readonly min: Schema.Finite;
594
+ }>;
595
+ }>;
596
+ readonly grid: Schema.optionalKey<Schema.Finite>;
597
+ readonly kind: Schema.Literal<"sketch">;
598
+ readonly marks: Schema.$Array<Schema.Literals<readonly ["asymptote", "point"]>>;
513
599
  }>]>>;
514
600
  readonly joint: Schema.optionalKey<Schema.Struct<{
515
601
  readonly levels: Schema.NonEmptyArray<Schema.Struct<{
@@ -657,11 +743,64 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
657
743
  readonly options: readonly {
658
744
  readonly id: string;
659
745
  readonly label: readonly [{
746
+ readonly marks?: readonly [{
747
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
748
+ } | {
749
+ readonly attrs: {
750
+ readonly href: string;
751
+ };
752
+ readonly type: "link";
753
+ } | {
754
+ readonly attrs: {
755
+ readonly variant: "success" | "warning" | null;
756
+ };
757
+ readonly type: "highlight";
758
+ }, ...({
759
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
760
+ } | {
761
+ readonly attrs: {
762
+ readonly href: string;
763
+ };
764
+ readonly type: "link";
765
+ } | {
766
+ readonly attrs: {
767
+ readonly variant: "success" | "warning" | null;
768
+ };
769
+ readonly type: "highlight";
770
+ })[]];
771
+ readonly text: string;
772
+ readonly type: "text";
773
+ } | {
660
774
  readonly attrs: {
661
775
  readonly latex: string;
662
776
  };
777
+ readonly marks?: readonly [{
778
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
779
+ } | {
780
+ readonly attrs: {
781
+ readonly href: string;
782
+ };
783
+ readonly type: "link";
784
+ } | {
785
+ readonly attrs: {
786
+ readonly variant: "success" | "warning" | null;
787
+ };
788
+ readonly type: "highlight";
789
+ }, ...({
790
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
791
+ } | {
792
+ readonly attrs: {
793
+ readonly href: string;
794
+ };
795
+ readonly type: "link";
796
+ } | {
797
+ readonly attrs: {
798
+ readonly variant: "success" | "warning" | null;
799
+ };
800
+ readonly type: "highlight";
801
+ })[]];
663
802
  readonly type: "mathInline";
664
- } | {
803
+ }, ...({
665
804
  readonly marks?: readonly [{
666
805
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
667
806
  } | {
@@ -689,12 +828,10 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
689
828
  })[]];
690
829
  readonly text: string;
691
830
  readonly type: "text";
692
- }, ...({
831
+ } | {
693
832
  readonly attrs: {
694
833
  readonly latex: string;
695
834
  };
696
- readonly type: "mathInline";
697
- } | {
698
835
  readonly marks?: readonly [{
699
836
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
700
837
  } | {
@@ -720,8 +857,7 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
720
857
  };
721
858
  readonly type: "highlight";
722
859
  })[]];
723
- readonly text: string;
724
- readonly type: "text";
860
+ readonly type: "mathInline";
725
861
  })[]];
726
862
  }[];
727
863
  readonly shuffle: boolean;
@@ -731,11 +867,64 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
731
867
  readonly choices: readonly [{
732
868
  readonly id: string;
733
869
  readonly label: readonly [{
870
+ readonly marks?: readonly [{
871
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
872
+ } | {
873
+ readonly attrs: {
874
+ readonly href: string;
875
+ };
876
+ readonly type: "link";
877
+ } | {
878
+ readonly attrs: {
879
+ readonly variant: "success" | "warning" | null;
880
+ };
881
+ readonly type: "highlight";
882
+ }, ...({
883
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
884
+ } | {
885
+ readonly attrs: {
886
+ readonly href: string;
887
+ };
888
+ readonly type: "link";
889
+ } | {
890
+ readonly attrs: {
891
+ readonly variant: "success" | "warning" | null;
892
+ };
893
+ readonly type: "highlight";
894
+ })[]];
895
+ readonly text: string;
896
+ readonly type: "text";
897
+ } | {
734
898
  readonly attrs: {
735
899
  readonly latex: string;
736
900
  };
901
+ readonly marks?: readonly [{
902
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
903
+ } | {
904
+ readonly attrs: {
905
+ readonly href: string;
906
+ };
907
+ readonly type: "link";
908
+ } | {
909
+ readonly attrs: {
910
+ readonly variant: "success" | "warning" | null;
911
+ };
912
+ readonly type: "highlight";
913
+ }, ...({
914
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
915
+ } | {
916
+ readonly attrs: {
917
+ readonly href: string;
918
+ };
919
+ readonly type: "link";
920
+ } | {
921
+ readonly attrs: {
922
+ readonly variant: "success" | "warning" | null;
923
+ };
924
+ readonly type: "highlight";
925
+ })[]];
737
926
  readonly type: "mathInline";
738
- } | {
927
+ }, ...({
739
928
  readonly marks?: readonly [{
740
929
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
741
930
  } | {
@@ -763,12 +952,10 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
763
952
  })[]];
764
953
  readonly text: string;
765
954
  readonly type: "text";
766
- }, ...({
955
+ } | {
767
956
  readonly attrs: {
768
957
  readonly latex: string;
769
958
  };
770
- readonly type: "mathInline";
771
- } | {
772
959
  readonly marks?: readonly [{
773
960
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
774
961
  } | {
@@ -794,18 +981,12 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
794
981
  };
795
982
  readonly type: "highlight";
796
983
  })[]];
797
- readonly text: string;
798
- readonly type: "text";
984
+ readonly type: "mathInline";
799
985
  })[]];
800
986
  readonly maxMatches: number;
801
987
  }, ...{
802
988
  readonly id: string;
803
989
  readonly label: readonly [{
804
- readonly attrs: {
805
- readonly latex: string;
806
- };
807
- readonly type: "mathInline";
808
- } | {
809
990
  readonly marks?: readonly [{
810
991
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
811
992
  } | {
@@ -833,12 +1014,37 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
833
1014
  })[]];
834
1015
  readonly text: string;
835
1016
  readonly type: "text";
836
- }, ...({
1017
+ } | {
837
1018
  readonly attrs: {
838
1019
  readonly latex: string;
839
1020
  };
1021
+ readonly marks?: readonly [{
1022
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
1023
+ } | {
1024
+ readonly attrs: {
1025
+ readonly href: string;
1026
+ };
1027
+ readonly type: "link";
1028
+ } | {
1029
+ readonly attrs: {
1030
+ readonly variant: "success" | "warning" | null;
1031
+ };
1032
+ readonly type: "highlight";
1033
+ }, ...({
1034
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
1035
+ } | {
1036
+ readonly attrs: {
1037
+ readonly href: string;
1038
+ };
1039
+ readonly type: "link";
1040
+ } | {
1041
+ readonly attrs: {
1042
+ readonly variant: "success" | "warning" | null;
1043
+ };
1044
+ readonly type: "highlight";
1045
+ })[]];
840
1046
  readonly type: "mathInline";
841
- } | {
1047
+ }, ...({
842
1048
  readonly marks?: readonly [{
843
1049
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
844
1050
  } | {
@@ -866,6 +1072,36 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
866
1072
  })[]];
867
1073
  readonly text: string;
868
1074
  readonly type: "text";
1075
+ } | {
1076
+ readonly attrs: {
1077
+ readonly latex: string;
1078
+ };
1079
+ readonly marks?: readonly [{
1080
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
1081
+ } | {
1082
+ readonly attrs: {
1083
+ readonly href: string;
1084
+ };
1085
+ readonly type: "link";
1086
+ } | {
1087
+ readonly attrs: {
1088
+ readonly variant: "success" | "warning" | null;
1089
+ };
1090
+ readonly type: "highlight";
1091
+ }, ...({
1092
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
1093
+ } | {
1094
+ readonly attrs: {
1095
+ readonly href: string;
1096
+ };
1097
+ readonly type: "link";
1098
+ } | {
1099
+ readonly attrs: {
1100
+ readonly variant: "success" | "warning" | null;
1101
+ };
1102
+ readonly type: "highlight";
1103
+ })[]];
1104
+ readonly type: "mathInline";
869
1105
  })[]];
870
1106
  readonly maxMatches: number;
871
1107
  }[]];
@@ -951,6 +1187,23 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
951
1187
  readonly kind: "graphPoint";
952
1188
  readonly placing: "lines" | "points";
953
1189
  readonly snap?: number;
1190
+ } | {
1191
+ readonly id: string;
1192
+ readonly label: string;
1193
+ readonly frame: {
1194
+ readonly kind: "cartesian";
1195
+ readonly x: {
1196
+ readonly max: number;
1197
+ readonly min: number;
1198
+ };
1199
+ readonly y: {
1200
+ readonly max: number;
1201
+ readonly min: number;
1202
+ };
1203
+ };
1204
+ readonly grid?: number;
1205
+ readonly kind: "sketch";
1206
+ readonly marks: readonly ("asymptote" | "point")[];
954
1207
  }, ...({
955
1208
  readonly id: string;
956
1209
  readonly label: string;
@@ -1046,11 +1299,64 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
1046
1299
  readonly options: readonly {
1047
1300
  readonly id: string;
1048
1301
  readonly label: readonly [{
1302
+ readonly marks?: readonly [{
1303
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
1304
+ } | {
1305
+ readonly attrs: {
1306
+ readonly href: string;
1307
+ };
1308
+ readonly type: "link";
1309
+ } | {
1310
+ readonly attrs: {
1311
+ readonly variant: "success" | "warning" | null;
1312
+ };
1313
+ readonly type: "highlight";
1314
+ }, ...({
1315
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
1316
+ } | {
1317
+ readonly attrs: {
1318
+ readonly href: string;
1319
+ };
1320
+ readonly type: "link";
1321
+ } | {
1322
+ readonly attrs: {
1323
+ readonly variant: "success" | "warning" | null;
1324
+ };
1325
+ readonly type: "highlight";
1326
+ })[]];
1327
+ readonly text: string;
1328
+ readonly type: "text";
1329
+ } | {
1049
1330
  readonly attrs: {
1050
1331
  readonly latex: string;
1051
1332
  };
1333
+ readonly marks?: readonly [{
1334
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
1335
+ } | {
1336
+ readonly attrs: {
1337
+ readonly href: string;
1338
+ };
1339
+ readonly type: "link";
1340
+ } | {
1341
+ readonly attrs: {
1342
+ readonly variant: "success" | "warning" | null;
1343
+ };
1344
+ readonly type: "highlight";
1345
+ }, ...({
1346
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
1347
+ } | {
1348
+ readonly attrs: {
1349
+ readonly href: string;
1350
+ };
1351
+ readonly type: "link";
1352
+ } | {
1353
+ readonly attrs: {
1354
+ readonly variant: "success" | "warning" | null;
1355
+ };
1356
+ readonly type: "highlight";
1357
+ })[]];
1052
1358
  readonly type: "mathInline";
1053
- } | {
1359
+ }, ...({
1054
1360
  readonly marks?: readonly [{
1055
1361
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
1056
1362
  } | {
@@ -1078,12 +1384,10 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
1078
1384
  })[]];
1079
1385
  readonly text: string;
1080
1386
  readonly type: "text";
1081
- }, ...({
1387
+ } | {
1082
1388
  readonly attrs: {
1083
1389
  readonly latex: string;
1084
1390
  };
1085
- readonly type: "mathInline";
1086
- } | {
1087
1391
  readonly marks?: readonly [{
1088
1392
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
1089
1393
  } | {
@@ -1109,8 +1413,7 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
1109
1413
  };
1110
1414
  readonly type: "highlight";
1111
1415
  })[]];
1112
- readonly text: string;
1113
- readonly type: "text";
1416
+ readonly type: "mathInline";
1114
1417
  })[]];
1115
1418
  }[];
1116
1419
  readonly shuffle: boolean;
@@ -1120,11 +1423,64 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
1120
1423
  readonly choices: readonly [{
1121
1424
  readonly id: string;
1122
1425
  readonly label: readonly [{
1426
+ readonly marks?: readonly [{
1427
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
1428
+ } | {
1429
+ readonly attrs: {
1430
+ readonly href: string;
1431
+ };
1432
+ readonly type: "link";
1433
+ } | {
1434
+ readonly attrs: {
1435
+ readonly variant: "success" | "warning" | null;
1436
+ };
1437
+ readonly type: "highlight";
1438
+ }, ...({
1439
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
1440
+ } | {
1441
+ readonly attrs: {
1442
+ readonly href: string;
1443
+ };
1444
+ readonly type: "link";
1445
+ } | {
1446
+ readonly attrs: {
1447
+ readonly variant: "success" | "warning" | null;
1448
+ };
1449
+ readonly type: "highlight";
1450
+ })[]];
1451
+ readonly text: string;
1452
+ readonly type: "text";
1453
+ } | {
1123
1454
  readonly attrs: {
1124
1455
  readonly latex: string;
1125
1456
  };
1457
+ readonly marks?: readonly [{
1458
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
1459
+ } | {
1460
+ readonly attrs: {
1461
+ readonly href: string;
1462
+ };
1463
+ readonly type: "link";
1464
+ } | {
1465
+ readonly attrs: {
1466
+ readonly variant: "success" | "warning" | null;
1467
+ };
1468
+ readonly type: "highlight";
1469
+ }, ...({
1470
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
1471
+ } | {
1472
+ readonly attrs: {
1473
+ readonly href: string;
1474
+ };
1475
+ readonly type: "link";
1476
+ } | {
1477
+ readonly attrs: {
1478
+ readonly variant: "success" | "warning" | null;
1479
+ };
1480
+ readonly type: "highlight";
1481
+ })[]];
1126
1482
  readonly type: "mathInline";
1127
- } | {
1483
+ }, ...({
1128
1484
  readonly marks?: readonly [{
1129
1485
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
1130
1486
  } | {
@@ -1152,12 +1508,10 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
1152
1508
  })[]];
1153
1509
  readonly text: string;
1154
1510
  readonly type: "text";
1155
- }, ...({
1511
+ } | {
1156
1512
  readonly attrs: {
1157
1513
  readonly latex: string;
1158
1514
  };
1159
- readonly type: "mathInline";
1160
- } | {
1161
1515
  readonly marks?: readonly [{
1162
1516
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
1163
1517
  } | {
@@ -1183,18 +1537,70 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
1183
1537
  };
1184
1538
  readonly type: "highlight";
1185
1539
  })[]];
1186
- readonly text: string;
1187
- readonly type: "text";
1540
+ readonly type: "mathInline";
1188
1541
  })[]];
1189
1542
  readonly maxMatches: number;
1190
1543
  }, ...{
1191
1544
  readonly id: string;
1192
1545
  readonly label: readonly [{
1546
+ readonly marks?: readonly [{
1547
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
1548
+ } | {
1549
+ readonly attrs: {
1550
+ readonly href: string;
1551
+ };
1552
+ readonly type: "link";
1553
+ } | {
1554
+ readonly attrs: {
1555
+ readonly variant: "success" | "warning" | null;
1556
+ };
1557
+ readonly type: "highlight";
1558
+ }, ...({
1559
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
1560
+ } | {
1561
+ readonly attrs: {
1562
+ readonly href: string;
1563
+ };
1564
+ readonly type: "link";
1565
+ } | {
1566
+ readonly attrs: {
1567
+ readonly variant: "success" | "warning" | null;
1568
+ };
1569
+ readonly type: "highlight";
1570
+ })[]];
1571
+ readonly text: string;
1572
+ readonly type: "text";
1573
+ } | {
1193
1574
  readonly attrs: {
1194
1575
  readonly latex: string;
1195
1576
  };
1577
+ readonly marks?: readonly [{
1578
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
1579
+ } | {
1580
+ readonly attrs: {
1581
+ readonly href: string;
1582
+ };
1583
+ readonly type: "link";
1584
+ } | {
1585
+ readonly attrs: {
1586
+ readonly variant: "success" | "warning" | null;
1587
+ };
1588
+ readonly type: "highlight";
1589
+ }, ...({
1590
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
1591
+ } | {
1592
+ readonly attrs: {
1593
+ readonly href: string;
1594
+ };
1595
+ readonly type: "link";
1596
+ } | {
1597
+ readonly attrs: {
1598
+ readonly variant: "success" | "warning" | null;
1599
+ };
1600
+ readonly type: "highlight";
1601
+ })[]];
1196
1602
  readonly type: "mathInline";
1197
- } | {
1603
+ }, ...({
1198
1604
  readonly marks?: readonly [{
1199
1605
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
1200
1606
  } | {
@@ -1222,12 +1628,10 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
1222
1628
  })[]];
1223
1629
  readonly text: string;
1224
1630
  readonly type: "text";
1225
- }, ...({
1631
+ } | {
1226
1632
  readonly attrs: {
1227
1633
  readonly latex: string;
1228
1634
  };
1229
- readonly type: "mathInline";
1230
- } | {
1231
1635
  readonly marks?: readonly [{
1232
1636
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
1233
1637
  } | {
@@ -1253,8 +1657,7 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
1253
1657
  };
1254
1658
  readonly type: "highlight";
1255
1659
  })[]];
1256
- readonly text: string;
1257
- readonly type: "text";
1660
+ readonly type: "mathInline";
1258
1661
  })[]];
1259
1662
  readonly maxMatches: number;
1260
1663
  }[]];
@@ -1340,6 +1743,23 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
1340
1743
  readonly kind: "graphPoint";
1341
1744
  readonly placing: "lines" | "points";
1342
1745
  readonly snap?: number;
1746
+ } | {
1747
+ readonly id: string;
1748
+ readonly label: string;
1749
+ readonly frame: {
1750
+ readonly kind: "cartesian";
1751
+ readonly x: {
1752
+ readonly max: number;
1753
+ readonly min: number;
1754
+ };
1755
+ readonly y: {
1756
+ readonly max: number;
1757
+ readonly min: number;
1758
+ };
1759
+ };
1760
+ readonly grid?: number;
1761
+ readonly kind: "sketch";
1762
+ readonly marks: readonly ("asymptote" | "point")[];
1343
1763
  })[]];
1344
1764
  joint: {
1345
1765
  levels: [{
@@ -1502,6 +1922,19 @@ export declare const ItemSchema: Schema.Struct<{
1502
1922
  readonly attrs: Schema.Struct<{
1503
1923
  readonly latex: Schema.Trimmed;
1504
1924
  }>;
1925
+ readonly marks: Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
1926
+ readonly type: Schema.Literals<readonly ["bold", "italic", "underline", "code", "subscript", "superscript"]>;
1927
+ }>, Schema.Struct<{
1928
+ readonly attrs: Schema.Struct<{
1929
+ readonly variant: Schema.NullOr<Schema.Literals<readonly ["success", "warning"]>>;
1930
+ }>;
1931
+ readonly type: Schema.Literal<"highlight">;
1932
+ }>, Schema.Struct<{
1933
+ readonly attrs: Schema.Struct<{
1934
+ readonly href: Schema.String;
1935
+ }>;
1936
+ readonly type: Schema.Literal<"link">;
1937
+ }>]>>>;
1505
1938
  readonly type: Schema.Literal<"mathInline">;
1506
1939
  }>]>>;
1507
1940
  }>>;
@@ -1583,6 +2016,19 @@ export declare const ItemSchema: Schema.Struct<{
1583
2016
  readonly attrs: Schema.Struct<{
1584
2017
  readonly latex: Schema.Trimmed;
1585
2018
  }>;
2019
+ readonly marks: Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
2020
+ readonly type: Schema.Literals<readonly ["bold", "italic", "underline", "code", "subscript", "superscript"]>;
2021
+ }>, Schema.Struct<{
2022
+ readonly attrs: Schema.Struct<{
2023
+ readonly variant: Schema.NullOr<Schema.Literals<readonly ["success", "warning"]>>;
2024
+ }>;
2025
+ readonly type: Schema.Literal<"highlight">;
2026
+ }>, Schema.Struct<{
2027
+ readonly attrs: Schema.Struct<{
2028
+ readonly href: Schema.String;
2029
+ }>;
2030
+ readonly type: Schema.Literal<"link">;
2031
+ }>]>>>;
1586
2032
  readonly type: Schema.Literal<"mathInline">;
1587
2033
  }>]>>;
1588
2034
  readonly maxMatches: Schema.Int;
@@ -1615,6 +2061,23 @@ export declare const ItemSchema: Schema.Struct<{
1615
2061
  readonly label: Schema.Trimmed;
1616
2062
  readonly expectedLines: Schema.optionalKey<Schema.Int>;
1617
2063
  readonly kind: Schema.Literal<"extendedText">;
2064
+ }>, Schema.Struct<{
2065
+ readonly id: Schema.String;
2066
+ readonly label: Schema.Trimmed;
2067
+ readonly frame: Schema.Struct<{
2068
+ readonly kind: Schema.Literal<"cartesian">;
2069
+ readonly x: Schema.Struct<{
2070
+ readonly max: Schema.Finite;
2071
+ readonly min: Schema.Finite;
2072
+ }>;
2073
+ readonly y: Schema.Struct<{
2074
+ readonly max: Schema.Finite;
2075
+ readonly min: Schema.Finite;
2076
+ }>;
2077
+ }>;
2078
+ readonly grid: Schema.optionalKey<Schema.Finite>;
2079
+ readonly kind: Schema.Literal<"sketch">;
2080
+ readonly marks: Schema.$Array<Schema.Literals<readonly ["asymptote", "point"]>>;
1618
2081
  }>]>>;
1619
2082
  readonly joint: Schema.optionalKey<Schema.Struct<{
1620
2083
  readonly levels: Schema.NonEmptyArray<Schema.Struct<{