@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
@@ -5,11 +5,64 @@ export declare function chanceVisuals<E>(rich: RichSlot<E>): {
5
5
  DiceRollLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
6
6
  readonly description: RichSlot<E>;
7
7
  readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
8
+ readonly marks?: readonly [{
9
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
10
+ } | {
11
+ readonly attrs: {
12
+ readonly href: string;
13
+ };
14
+ readonly type: "link";
15
+ } | {
16
+ readonly attrs: {
17
+ readonly variant: "success" | "warning" | null;
18
+ };
19
+ readonly type: "highlight";
20
+ }, ...({
21
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
22
+ } | {
23
+ readonly attrs: {
24
+ readonly href: string;
25
+ };
26
+ readonly type: "link";
27
+ } | {
28
+ readonly attrs: {
29
+ readonly variant: "success" | "warning" | null;
30
+ };
31
+ readonly type: "highlight";
32
+ })[]];
33
+ readonly text: string;
34
+ readonly type: "text";
35
+ } | {
8
36
  readonly attrs: {
9
37
  readonly latex: string;
10
38
  };
39
+ readonly marks?: readonly [{
40
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
41
+ } | {
42
+ readonly attrs: {
43
+ readonly href: string;
44
+ };
45
+ readonly type: "link";
46
+ } | {
47
+ readonly attrs: {
48
+ readonly variant: "success" | "warning" | null;
49
+ };
50
+ readonly type: "highlight";
51
+ }, ...({
52
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
53
+ } | {
54
+ readonly attrs: {
55
+ readonly href: string;
56
+ };
57
+ readonly type: "link";
58
+ } | {
59
+ readonly attrs: {
60
+ readonly variant: "success" | "warning" | null;
61
+ };
62
+ readonly type: "highlight";
63
+ })[]];
11
64
  readonly type: "mathInline";
12
- } | {
65
+ }, ...({
13
66
  readonly marks?: readonly [{
14
67
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
15
68
  } | {
@@ -37,12 +90,10 @@ export declare function chanceVisuals<E>(rich: RichSlot<E>): {
37
90
  })[]];
38
91
  readonly text: string;
39
92
  readonly type: "text";
40
- }, ...({
93
+ } | {
41
94
  readonly attrs: {
42
95
  readonly latex: string;
43
96
  };
44
- readonly type: "mathInline";
45
- } | {
46
97
  readonly marks?: readonly [{
47
98
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
48
99
  } | {
@@ -68,8 +119,7 @@ export declare function chanceVisuals<E>(rich: RichSlot<E>): {
68
119
  };
69
120
  readonly type: "highlight";
70
121
  })[]];
71
- readonly text: string;
72
- readonly type: "text";
122
+ readonly type: "mathInline";
73
123
  })[]], E, never, never>>;
74
124
  readonly title: RichSlot<E>;
75
125
  readonly dice: Schema.Literals<readonly [1, 2]>;
@@ -85,11 +135,64 @@ export declare function chanceVisuals<E>(rich: RichSlot<E>): {
85
135
  GaltonBoardLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
86
136
  readonly description: RichSlot<E>;
87
137
  readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
138
+ readonly marks?: readonly [{
139
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
140
+ } | {
141
+ readonly attrs: {
142
+ readonly href: string;
143
+ };
144
+ readonly type: "link";
145
+ } | {
146
+ readonly attrs: {
147
+ readonly variant: "success" | "warning" | null;
148
+ };
149
+ readonly type: "highlight";
150
+ }, ...({
151
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
152
+ } | {
153
+ readonly attrs: {
154
+ readonly href: string;
155
+ };
156
+ readonly type: "link";
157
+ } | {
158
+ readonly attrs: {
159
+ readonly variant: "success" | "warning" | null;
160
+ };
161
+ readonly type: "highlight";
162
+ })[]];
163
+ readonly text: string;
164
+ readonly type: "text";
165
+ } | {
88
166
  readonly attrs: {
89
167
  readonly latex: string;
90
168
  };
169
+ readonly marks?: readonly [{
170
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
171
+ } | {
172
+ readonly attrs: {
173
+ readonly href: string;
174
+ };
175
+ readonly type: "link";
176
+ } | {
177
+ readonly attrs: {
178
+ readonly variant: "success" | "warning" | null;
179
+ };
180
+ readonly type: "highlight";
181
+ }, ...({
182
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
183
+ } | {
184
+ readonly attrs: {
185
+ readonly href: string;
186
+ };
187
+ readonly type: "link";
188
+ } | {
189
+ readonly attrs: {
190
+ readonly variant: "success" | "warning" | null;
191
+ };
192
+ readonly type: "highlight";
193
+ })[]];
91
194
  readonly type: "mathInline";
92
- } | {
195
+ }, ...({
93
196
  readonly marks?: readonly [{
94
197
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
95
198
  } | {
@@ -117,12 +220,10 @@ export declare function chanceVisuals<E>(rich: RichSlot<E>): {
117
220
  })[]];
118
221
  readonly text: string;
119
222
  readonly type: "text";
120
- }, ...({
223
+ } | {
121
224
  readonly attrs: {
122
225
  readonly latex: string;
123
226
  };
124
- readonly type: "mathInline";
125
- } | {
126
227
  readonly marks?: readonly [{
127
228
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
128
229
  } | {
@@ -148,8 +249,7 @@ export declare function chanceVisuals<E>(rich: RichSlot<E>): {
148
249
  };
149
250
  readonly type: "highlight";
150
251
  })[]];
151
- readonly text: string;
152
- readonly type: "text";
252
+ readonly type: "mathInline";
153
253
  })[]], E, never, never>>;
154
254
  readonly title: RichSlot<E>;
155
255
  readonly labels: Schema.Struct<{
@@ -168,11 +268,64 @@ export declare function chanceVisuals<E>(rich: RichSlot<E>): {
168
268
  MarbleDrawLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
169
269
  readonly description: RichSlot<E>;
170
270
  readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
271
+ readonly marks?: readonly [{
272
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
273
+ } | {
274
+ readonly attrs: {
275
+ readonly href: string;
276
+ };
277
+ readonly type: "link";
278
+ } | {
279
+ readonly attrs: {
280
+ readonly variant: "success" | "warning" | null;
281
+ };
282
+ readonly type: "highlight";
283
+ }, ...({
284
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
285
+ } | {
286
+ readonly attrs: {
287
+ readonly href: string;
288
+ };
289
+ readonly type: "link";
290
+ } | {
291
+ readonly attrs: {
292
+ readonly variant: "success" | "warning" | null;
293
+ };
294
+ readonly type: "highlight";
295
+ })[]];
296
+ readonly text: string;
297
+ readonly type: "text";
298
+ } | {
171
299
  readonly attrs: {
172
300
  readonly latex: string;
173
301
  };
302
+ readonly marks?: readonly [{
303
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
304
+ } | {
305
+ readonly attrs: {
306
+ readonly href: string;
307
+ };
308
+ readonly type: "link";
309
+ } | {
310
+ readonly attrs: {
311
+ readonly variant: "success" | "warning" | null;
312
+ };
313
+ readonly type: "highlight";
314
+ }, ...({
315
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
316
+ } | {
317
+ readonly attrs: {
318
+ readonly href: string;
319
+ };
320
+ readonly type: "link";
321
+ } | {
322
+ readonly attrs: {
323
+ readonly variant: "success" | "warning" | null;
324
+ };
325
+ readonly type: "highlight";
326
+ })[]];
174
327
  readonly type: "mathInline";
175
- } | {
328
+ }, ...({
176
329
  readonly marks?: readonly [{
177
330
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
178
331
  } | {
@@ -200,12 +353,10 @@ export declare function chanceVisuals<E>(rich: RichSlot<E>): {
200
353
  })[]];
201
354
  readonly text: string;
202
355
  readonly type: "text";
203
- }, ...({
356
+ } | {
204
357
  readonly attrs: {
205
358
  readonly latex: string;
206
359
  };
207
- readonly type: "mathInline";
208
- } | {
209
360
  readonly marks?: readonly [{
210
361
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
211
362
  } | {
@@ -231,8 +382,7 @@ export declare function chanceVisuals<E>(rich: RichSlot<E>): {
231
382
  };
232
383
  readonly type: "highlight";
233
384
  })[]];
234
- readonly text: string;
235
- readonly type: "text";
385
+ readonly type: "mathInline";
236
386
  })[]], E, never, never>>;
237
387
  readonly title: RichSlot<E>;
238
388
  readonly event: Schema.optionalKey<Schema.Struct<{
@@ -10,11 +10,64 @@ import type { RichSlot } from "#contracts/visual/card";
10
10
  export declare function chartProps<E>(rich: RichSlot<E>): import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
11
11
  readonly description: RichSlot<E>;
12
12
  readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
13
+ readonly marks?: readonly [{
14
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
15
+ } | {
16
+ readonly attrs: {
17
+ readonly href: string;
18
+ };
19
+ readonly type: "link";
20
+ } | {
21
+ readonly attrs: {
22
+ readonly variant: "success" | "warning" | null;
23
+ };
24
+ readonly type: "highlight";
25
+ }, ...({
26
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
27
+ } | {
28
+ readonly attrs: {
29
+ readonly href: string;
30
+ };
31
+ readonly type: "link";
32
+ } | {
33
+ readonly attrs: {
34
+ readonly variant: "success" | "warning" | null;
35
+ };
36
+ readonly type: "highlight";
37
+ })[]];
38
+ readonly text: string;
39
+ readonly type: "text";
40
+ } | {
13
41
  readonly attrs: {
14
42
  readonly latex: string;
15
43
  };
44
+ readonly marks?: readonly [{
45
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
46
+ } | {
47
+ readonly attrs: {
48
+ readonly href: string;
49
+ };
50
+ readonly type: "link";
51
+ } | {
52
+ readonly attrs: {
53
+ readonly variant: "success" | "warning" | null;
54
+ };
55
+ readonly type: "highlight";
56
+ }, ...({
57
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
58
+ } | {
59
+ readonly attrs: {
60
+ readonly href: string;
61
+ };
62
+ readonly type: "link";
63
+ } | {
64
+ readonly attrs: {
65
+ readonly variant: "success" | "warning" | null;
66
+ };
67
+ readonly type: "highlight";
68
+ })[]];
16
69
  readonly type: "mathInline";
17
- } | {
70
+ }, ...({
18
71
  readonly marks?: readonly [{
19
72
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
20
73
  } | {
@@ -42,12 +95,10 @@ export declare function chartProps<E>(rich: RichSlot<E>): import("#contracts/vis
42
95
  })[]];
43
96
  readonly text: string;
44
97
  readonly type: "text";
45
- }, ...({
98
+ } | {
46
99
  readonly attrs: {
47
100
  readonly latex: string;
48
101
  };
49
- readonly type: "mathInline";
50
- } | {
51
102
  readonly marks?: readonly [{
52
103
  readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
53
104
  } | {
@@ -73,8 +124,7 @@ export declare function chartProps<E>(rich: RichSlot<E>): import("#contracts/vis
73
124
  };
74
125
  readonly type: "highlight";
75
126
  })[]];
76
- readonly text: string;
77
- readonly type: "text";
127
+ readonly type: "mathInline";
78
128
  })[]], E, never, never>>;
79
129
  readonly title: RichSlot<E>;
80
130
  /**