@nakafa/aksara-contracts 8.9.1 → 8.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) 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/blood.d.ts +56 -6
  22. package/dist/visual/biology/cell.d.ts +168 -18
  23. package/dist/visual/biology/climate.d.ts +168 -18
  24. package/dist/visual/biology/ecology.d.ts +224 -24
  25. package/dist/visual/biology/heart.d.ts +56 -6
  26. package/dist/visual/biology/mitochondrion.d.ts +56 -6
  27. package/dist/visual/biology/muscle.d.ts +56 -6
  28. package/dist/visual/biology/neuron.d.ts +56 -6
  29. package/dist/visual/biology/paddy.d.ts +56 -6
  30. package/dist/visual/biology/physiology.d.ts +168 -18
  31. package/dist/visual/biology/plant.d.ts +280 -30
  32. package/dist/visual/biology/synapse.d.ts +56 -6
  33. package/dist/visual/biology/vessel.d.ts +56 -6
  34. package/dist/visual/biology/yeast.d.ts +56 -6
  35. package/dist/visual/card.d.ts +56 -6
  36. package/dist/visual/catalog.d.ts +16734 -5484
  37. package/dist/visual/chemistry/atom.d.ts +168 -18
  38. package/dist/visual/chemistry/balance.d.ts +280 -30
  39. package/dist/visual/chemistry/bonding.d.ts +280 -30
  40. package/dist/visual/chemistry/discovery.d.ts +392 -42
  41. package/dist/visual/chemistry/electrochemistry.d.ts +112 -12
  42. package/dist/visual/chemistry/electron.d.ts +112 -12
  43. package/dist/visual/chemistry/laws.d.ts +224 -24
  44. package/dist/visual/chemistry/particles.d.ts +280 -30
  45. package/dist/visual/chemistry/periodic.d.ts +112 -12
  46. package/dist/visual/chemistry/rate.d.ts +56 -6
  47. package/dist/visual/chemistry/reaction.d.ts +168 -18
  48. package/dist/visual/chemistry/titration.d.ts +56 -6
  49. package/dist/visual/length.d.ts +56 -6
  50. package/dist/visual/mathematics/chance.d.ts +168 -18
  51. package/dist/visual/mathematics/chart.d.ts +56 -6
  52. package/dist/visual/mathematics/charts.d.ts +280 -30
  53. package/dist/visual/mathematics/function.d.ts +168 -18
  54. package/dist/visual/mathematics/journey.d.ts +56 -6
  55. package/dist/visual/mathematics/logic.d.ts +56 -6
  56. package/dist/visual/mathematics/network.d.ts +56 -6
  57. package/dist/visual/mathematics/numeral.d.ts +168 -18
  58. package/dist/visual/mathematics/sets.d.ts +56 -6
  59. package/dist/visual/physics/braking.d.ts +224 -24
  60. package/dist/visual/physics/circuit.d.ts +224 -24
  61. package/dist/visual/physics/circular.d.ts +112 -12
  62. package/dist/visual/physics/dynamics.d.ts +392 -42
  63. package/dist/visual/physics/efficiency.d.ts +336 -36
  64. package/dist/visual/physics/electronics.d.ts +168 -18
  65. package/dist/visual/physics/falling.d.ts +224 -24
  66. package/dist/visual/physics/field.d.ts +168 -18
  67. package/dist/visual/physics/fluid.d.ts +224 -24
  68. package/dist/visual/physics/force.d.ts +280 -30
  69. package/dist/visual/physics/gravity.d.ts +112 -12
  70. package/dist/visual/physics/heat.d.ts +168 -18
  71. package/dist/visual/physics/instrument.d.ts +392 -42
  72. package/dist/visual/physics/light.d.ts +224 -24
  73. package/dist/visual/physics/measurement.d.ts +224 -24
  74. package/dist/visual/physics/motion.d.ts +336 -36
  75. package/dist/visual/physics/nuclear.d.ts +168 -18
  76. package/dist/visual/physics/parabolic.d.ts +56 -6
  77. package/dist/visual/physics/position.d.ts +336 -36
  78. package/dist/visual/physics/power.d.ts +448 -48
  79. package/dist/visual/physics/precision.d.ts +392 -42
  80. package/dist/visual/physics/product.d.ts +224 -24
  81. package/dist/visual/physics/reading.d.ts +168 -18
  82. package/dist/visual/physics/record.d.ts +112 -12
  83. package/dist/visual/physics/relative.d.ts +168 -18
  84. package/dist/visual/physics/solar.d.ts +336 -36
  85. package/dist/visual/physics/thermodynamics.d.ts +56 -6
  86. package/dist/visual/physics/vector.d.ts +280 -30
  87. package/dist/visual/physics/velocity.d.ts +392 -42
  88. package/dist/visual/physics/wave.d.ts +224 -24
  89. package/dist/visual/politics.d.ts +336 -36
  90. package/package.json +1 -1
@@ -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;
@@ -414,6 +440,19 @@ export declare const ItemVersionSchema: Schema.Struct<{
414
440
  readonly attrs: Schema.Struct<{
415
441
  readonly latex: Schema.Trimmed;
416
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
+ }>]>>>;
417
456
  readonly type: Schema.Literal<"mathInline">;
418
457
  }>]>>;
419
458
  }>>;
@@ -495,6 +534,19 @@ export declare const ItemVersionSchema: Schema.Struct<{
495
534
  readonly attrs: Schema.Struct<{
496
535
  readonly latex: Schema.Trimmed;
497
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
+ }>]>>>;
498
550
  readonly type: Schema.Literal<"mathInline">;
499
551
  }>]>>;
500
552
  readonly maxMatches: Schema.Int;
@@ -691,11 +743,64 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
691
743
  readonly options: readonly {
692
744
  readonly id: string;
693
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
+ } | {
694
774
  readonly attrs: {
695
775
  readonly latex: string;
696
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
+ })[]];
697
802
  readonly type: "mathInline";
698
- } | {
803
+ }, ...({
699
804
  readonly marks?: readonly [{
700
805
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
701
806
  } | {
@@ -723,12 +828,10 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
723
828
  })[]];
724
829
  readonly text: string;
725
830
  readonly type: "text";
726
- }, ...({
831
+ } | {
727
832
  readonly attrs: {
728
833
  readonly latex: string;
729
834
  };
730
- readonly type: "mathInline";
731
- } | {
732
835
  readonly marks?: readonly [{
733
836
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
734
837
  } | {
@@ -754,8 +857,7 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
754
857
  };
755
858
  readonly type: "highlight";
756
859
  })[]];
757
- readonly text: string;
758
- readonly type: "text";
860
+ readonly type: "mathInline";
759
861
  })[]];
760
862
  }[];
761
863
  readonly shuffle: boolean;
@@ -765,11 +867,64 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
765
867
  readonly choices: readonly [{
766
868
  readonly id: string;
767
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
+ } | {
768
898
  readonly attrs: {
769
899
  readonly latex: string;
770
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
+ })[]];
771
926
  readonly type: "mathInline";
772
- } | {
927
+ }, ...({
773
928
  readonly marks?: readonly [{
774
929
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
775
930
  } | {
@@ -797,12 +952,10 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
797
952
  })[]];
798
953
  readonly text: string;
799
954
  readonly type: "text";
800
- }, ...({
955
+ } | {
801
956
  readonly attrs: {
802
957
  readonly latex: string;
803
958
  };
804
- readonly type: "mathInline";
805
- } | {
806
959
  readonly marks?: readonly [{
807
960
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
808
961
  } | {
@@ -828,18 +981,70 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
828
981
  };
829
982
  readonly type: "highlight";
830
983
  })[]];
831
- readonly text: string;
832
- readonly type: "text";
984
+ readonly type: "mathInline";
833
985
  })[]];
834
986
  readonly maxMatches: number;
835
987
  }, ...{
836
988
  readonly id: string;
837
989
  readonly label: readonly [{
990
+ readonly marks?: readonly [{
991
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
992
+ } | {
993
+ readonly attrs: {
994
+ readonly href: string;
995
+ };
996
+ readonly type: "link";
997
+ } | {
998
+ readonly attrs: {
999
+ readonly variant: "success" | "warning" | null;
1000
+ };
1001
+ readonly type: "highlight";
1002
+ }, ...({
1003
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
1004
+ } | {
1005
+ readonly attrs: {
1006
+ readonly href: string;
1007
+ };
1008
+ readonly type: "link";
1009
+ } | {
1010
+ readonly attrs: {
1011
+ readonly variant: "success" | "warning" | null;
1012
+ };
1013
+ readonly type: "highlight";
1014
+ })[]];
1015
+ readonly text: string;
1016
+ readonly type: "text";
1017
+ } | {
838
1018
  readonly attrs: {
839
1019
  readonly latex: string;
840
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
+ })[]];
841
1046
  readonly type: "mathInline";
842
- } | {
1047
+ }, ...({
843
1048
  readonly marks?: readonly [{
844
1049
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
845
1050
  } | {
@@ -867,12 +1072,10 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
867
1072
  })[]];
868
1073
  readonly text: string;
869
1074
  readonly type: "text";
870
- }, ...({
1075
+ } | {
871
1076
  readonly attrs: {
872
1077
  readonly latex: string;
873
1078
  };
874
- readonly type: "mathInline";
875
- } | {
876
1079
  readonly marks?: readonly [{
877
1080
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
878
1081
  } | {
@@ -898,8 +1101,7 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
898
1101
  };
899
1102
  readonly type: "highlight";
900
1103
  })[]];
901
- readonly text: string;
902
- readonly type: "text";
1104
+ readonly type: "mathInline";
903
1105
  })[]];
904
1106
  readonly maxMatches: number;
905
1107
  }[]];
@@ -1097,11 +1299,64 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
1097
1299
  readonly options: readonly {
1098
1300
  readonly id: string;
1099
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
+ } | {
1100
1330
  readonly attrs: {
1101
1331
  readonly latex: string;
1102
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
+ })[]];
1103
1358
  readonly type: "mathInline";
1104
- } | {
1359
+ }, ...({
1105
1360
  readonly marks?: readonly [{
1106
1361
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
1107
1362
  } | {
@@ -1129,12 +1384,10 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
1129
1384
  })[]];
1130
1385
  readonly text: string;
1131
1386
  readonly type: "text";
1132
- }, ...({
1387
+ } | {
1133
1388
  readonly attrs: {
1134
1389
  readonly latex: string;
1135
1390
  };
1136
- readonly type: "mathInline";
1137
- } | {
1138
1391
  readonly marks?: readonly [{
1139
1392
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
1140
1393
  } | {
@@ -1160,8 +1413,7 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
1160
1413
  };
1161
1414
  readonly type: "highlight";
1162
1415
  })[]];
1163
- readonly text: string;
1164
- readonly type: "text";
1416
+ readonly type: "mathInline";
1165
1417
  })[]];
1166
1418
  }[];
1167
1419
  readonly shuffle: boolean;
@@ -1171,11 +1423,64 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
1171
1423
  readonly choices: readonly [{
1172
1424
  readonly id: string;
1173
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
+ } | {
1174
1454
  readonly attrs: {
1175
1455
  readonly latex: string;
1176
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
+ })[]];
1177
1482
  readonly type: "mathInline";
1178
- } | {
1483
+ }, ...({
1179
1484
  readonly marks?: readonly [{
1180
1485
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
1181
1486
  } | {
@@ -1203,12 +1508,10 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
1203
1508
  })[]];
1204
1509
  readonly text: string;
1205
1510
  readonly type: "text";
1206
- }, ...({
1511
+ } | {
1207
1512
  readonly attrs: {
1208
1513
  readonly latex: string;
1209
1514
  };
1210
- readonly type: "mathInline";
1211
- } | {
1212
1515
  readonly marks?: readonly [{
1213
1516
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
1214
1517
  } | {
@@ -1234,18 +1537,70 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
1234
1537
  };
1235
1538
  readonly type: "highlight";
1236
1539
  })[]];
1237
- readonly text: string;
1238
- readonly type: "text";
1540
+ readonly type: "mathInline";
1239
1541
  })[]];
1240
1542
  readonly maxMatches: number;
1241
1543
  }, ...{
1242
1544
  readonly id: string;
1243
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
+ } | {
1244
1574
  readonly attrs: {
1245
1575
  readonly latex: string;
1246
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
+ })[]];
1247
1602
  readonly type: "mathInline";
1248
- } | {
1603
+ }, ...({
1249
1604
  readonly marks?: readonly [{
1250
1605
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
1251
1606
  } | {
@@ -1273,12 +1628,10 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
1273
1628
  })[]];
1274
1629
  readonly text: string;
1275
1630
  readonly type: "text";
1276
- }, ...({
1631
+ } | {
1277
1632
  readonly attrs: {
1278
1633
  readonly latex: string;
1279
1634
  };
1280
- readonly type: "mathInline";
1281
- } | {
1282
1635
  readonly marks?: readonly [{
1283
1636
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
1284
1637
  } | {
@@ -1304,8 +1657,7 @@ export declare function versionStructure({ interactions, joint, scoring, }: Pick
1304
1657
  };
1305
1658
  readonly type: "highlight";
1306
1659
  })[]];
1307
- readonly text: string;
1308
- readonly type: "text";
1660
+ readonly type: "mathInline";
1309
1661
  })[]];
1310
1662
  readonly maxMatches: number;
1311
1663
  }[]];
@@ -1570,6 +1922,19 @@ export declare const ItemSchema: Schema.Struct<{
1570
1922
  readonly attrs: Schema.Struct<{
1571
1923
  readonly latex: Schema.Trimmed;
1572
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
+ }>]>>>;
1573
1938
  readonly type: Schema.Literal<"mathInline">;
1574
1939
  }>]>>;
1575
1940
  }>>;
@@ -1651,6 +2016,19 @@ export declare const ItemSchema: Schema.Struct<{
1651
2016
  readonly attrs: Schema.Struct<{
1652
2017
  readonly latex: Schema.Trimmed;
1653
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
+ }>]>>>;
1654
2032
  readonly type: Schema.Literal<"mathInline">;
1655
2033
  }>]>>;
1656
2034
  readonly maxMatches: Schema.Int;