@nakafa/aksara-contracts 8.9.1 → 8.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assessment/choice.d.ts +26 -0
- package/dist/assessment/document.d.ts +39 -0
- package/dist/assessment/figure.d.ts +13 -0
- package/dist/assessment/hash.d.ts +711 -111
- package/dist/assessment/inline.d.ts +53 -0
- package/dist/assessment/inline.js +1 -0
- package/dist/assessment/interaction.d.ts +26 -0
- package/dist/assessment/item.d.ts +414 -36
- package/dist/assessment/paper.d.ts +731 -131
- package/dist/assessment/part.d.ts +13 -0
- package/dist/assessment/rows.d.ts +336 -36
- package/dist/assessment/snapshot.d.ts +773 -121
- package/dist/release/snapshot/data.d.ts +26 -0
- package/dist/release/snapshot/verify.d.ts +336 -36
- package/dist/transport/group.d.ts +78 -0
- package/dist/transport/request.d.ts +2195 -343
- package/dist/transport/snapshot.d.ts +52 -0
- package/dist/visual/base/math.d.ts +56 -6
- package/dist/visual/base/media.d.ts +56 -6
- package/dist/visual/biology/bacteria.d.ts +224 -24
- package/dist/visual/biology/binomial.d.ts +139 -0
- package/dist/visual/biology/binomial.js +46 -0
- package/dist/visual/biology/blood.d.ts +56 -6
- package/dist/visual/biology/bone.d.ts +141 -0
- package/dist/visual/biology/bone.js +46 -0
- package/dist/visual/biology/cell.d.ts +168 -18
- package/dist/visual/biology/chromosome.d.ts +139 -0
- package/dist/visual/biology/chromosome.js +42 -0
- package/dist/visual/biology/climate.d.ts +168 -18
- package/dist/visual/biology/control.d.ts +17 -0
- package/dist/visual/biology/control.js +21 -0
- package/dist/visual/biology/denature.d.ts +159 -0
- package/dist/visual/biology/denature.js +74 -0
- package/dist/visual/biology/drawing.d.ts +151 -0
- package/dist/visual/biology/drawing.js +69 -0
- package/dist/visual/biology/ecology.d.ts +224 -24
- package/dist/visual/biology/enzyme.d.ts +145 -0
- package/dist/visual/biology/enzyme.js +54 -0
- package/dist/visual/biology/equipment.d.ts +140 -0
- package/dist/visual/biology/equipment.js +64 -0
- package/dist/visual/biology/gametogenesis.d.ts +145 -0
- package/dist/visual/biology/gametogenesis.js +83 -0
- package/dist/visual/biology/heart.d.ts +56 -6
- package/dist/visual/biology/implantation.d.ts +138 -0
- package/dist/visual/biology/implantation.js +44 -0
- package/dist/visual/biology/joint.d.ts +140 -0
- package/dist/visual/biology/joint.js +47 -0
- package/dist/visual/biology/key.d.ts +141 -0
- package/dist/visual/biology/key.js +58 -0
- package/dist/visual/biology/kingdom.d.ts +142 -0
- package/dist/visual/biology/kingdom.js +82 -0
- package/dist/visual/biology/lactase.d.ts +147 -0
- package/dist/visual/biology/lactase.js +48 -0
- package/dist/visual/biology/limb.d.ts +139 -0
- package/dist/visual/biology/limb.js +44 -0
- package/dist/visual/biology/lipid.d.ts +144 -0
- package/dist/visual/biology/lipid.js +43 -0
- package/dist/visual/biology/locomotion.d.ts +141 -0
- package/dist/visual/biology/locomotion.js +48 -0
- package/dist/visual/biology/menstrual.d.ts +148 -0
- package/dist/visual/biology/menstrual.js +65 -0
- package/dist/visual/biology/metamorphosis.d.ts +140 -0
- package/dist/visual/biology/metamorphosis.js +34 -0
- package/dist/visual/biology/mitochondrion.d.ts +56 -6
- package/dist/visual/biology/muscle.d.ts +56 -6
- package/dist/visual/biology/neuron.d.ts +56 -6
- package/dist/visual/biology/paddy.d.ts +56 -6
- package/dist/visual/biology/physiology.d.ts +168 -18
- package/dist/visual/biology/placenta.d.ts +139 -0
- package/dist/visual/biology/placenta.js +52 -0
- package/dist/visual/biology/planes.d.ts +145 -0
- package/dist/visual/biology/planes.js +62 -0
- package/dist/visual/biology/plant.d.ts +280 -30
- package/dist/visual/biology/protein.d.ts +142 -0
- package/dist/visual/biology/protein.js +41 -0
- package/dist/visual/biology/saturation.d.ts +149 -0
- package/dist/visual/biology/saturation.js +40 -0
- package/dist/visual/biology/secretion.d.ts +149 -0
- package/dist/visual/biology/secretion.js +79 -0
- package/dist/visual/biology/spill.d.ts +165 -0
- package/dist/visual/biology/spill.js +58 -0
- package/dist/visual/biology/sugar.d.ts +152 -0
- package/dist/visual/biology/sugar.js +59 -0
- package/dist/visual/biology/synapse.d.ts +56 -6
- package/dist/visual/biology/taxon.d.ts +138 -0
- package/dist/visual/biology/taxon.js +50 -0
- package/dist/visual/biology/twins.d.ts +144 -0
- package/dist/visual/biology/twins.js +60 -0
- package/dist/visual/biology/vernacular.d.ts +141 -0
- package/dist/visual/biology/vernacular.js +57 -0
- package/dist/visual/biology/vertebra.d.ts +141 -0
- package/dist/visual/biology/vertebra.js +59 -0
- package/dist/visual/biology/vessel.d.ts +56 -6
- package/dist/visual/biology/waste.d.ts +140 -0
- package/dist/visual/biology/waste.js +57 -0
- package/dist/visual/biology/water.d.ts +152 -0
- package/dist/visual/biology/water.js +54 -0
- package/dist/visual/biology/yeast.d.ts +56 -6
- package/dist/visual/card.d.ts +67 -6
- package/dist/visual/card.js +17 -1
- package/dist/visual/catalog.d.ts +21584 -5487
- package/dist/visual/catalog.js +66 -0
- package/dist/visual/chemistry/atom.d.ts +168 -18
- package/dist/visual/chemistry/balance.d.ts +280 -30
- package/dist/visual/chemistry/bonding.d.ts +280 -30
- package/dist/visual/chemistry/discovery.d.ts +392 -42
- package/dist/visual/chemistry/electrochemistry.d.ts +112 -12
- package/dist/visual/chemistry/electron.d.ts +112 -12
- package/dist/visual/chemistry/laws.d.ts +224 -24
- package/dist/visual/chemistry/particles.d.ts +280 -30
- package/dist/visual/chemistry/periodic.d.ts +112 -12
- package/dist/visual/chemistry/rate.d.ts +56 -6
- package/dist/visual/chemistry/reaction.d.ts +168 -18
- package/dist/visual/chemistry/titration.d.ts +56 -6
- package/dist/visual/length.d.ts +56 -6
- package/dist/visual/mathematics/argument.d.ts +226 -0
- package/dist/visual/mathematics/argument.js +150 -0
- package/dist/visual/mathematics/chance.d.ts +168 -18
- package/dist/visual/mathematics/chart.d.ts +56 -6
- package/dist/visual/mathematics/charts.d.ts +280 -30
- package/dist/visual/mathematics/counterexample.d.ts +340 -0
- package/dist/visual/mathematics/counterexample.js +157 -0
- package/dist/visual/mathematics/function.d.ts +168 -18
- package/dist/visual/mathematics/journey.d.ts +56 -6
- package/dist/visual/mathematics/logic.d.ts +56 -6
- package/dist/visual/mathematics/network.d.ts +56 -6
- package/dist/visual/mathematics/numeral.d.ts +168 -18
- package/dist/visual/mathematics/sets.d.ts +56 -6
- package/dist/visual/physics/braking.d.ts +224 -24
- package/dist/visual/physics/circuit.d.ts +224 -24
- package/dist/visual/physics/circular.d.ts +112 -12
- package/dist/visual/physics/dynamics.d.ts +392 -42
- package/dist/visual/physics/efficiency.d.ts +336 -36
- package/dist/visual/physics/electronics.d.ts +168 -18
- package/dist/visual/physics/falling.d.ts +224 -24
- package/dist/visual/physics/field.d.ts +168 -18
- package/dist/visual/physics/fluid.d.ts +224 -24
- package/dist/visual/physics/force.d.ts +280 -30
- package/dist/visual/physics/gravity.d.ts +112 -12
- package/dist/visual/physics/heat.d.ts +168 -18
- package/dist/visual/physics/instrument.d.ts +392 -42
- package/dist/visual/physics/light.d.ts +224 -24
- package/dist/visual/physics/measurement.d.ts +224 -24
- package/dist/visual/physics/motion.d.ts +336 -36
- package/dist/visual/physics/nuclear.d.ts +168 -18
- package/dist/visual/physics/parabolic.d.ts +56 -6
- package/dist/visual/physics/position.d.ts +336 -36
- package/dist/visual/physics/power.d.ts +448 -48
- package/dist/visual/physics/precision.d.ts +392 -42
- package/dist/visual/physics/product.d.ts +224 -24
- package/dist/visual/physics/reading.d.ts +168 -18
- package/dist/visual/physics/record.d.ts +112 -12
- package/dist/visual/physics/relative.d.ts +168 -18
- package/dist/visual/physics/solar.d.ts +336 -36
- package/dist/visual/physics/thermodynamics.d.ts +56 -6
- package/dist/visual/physics/vector.d.ts +280 -30
- package/dist/visual/physics/velocity.d.ts +392 -42
- package/dist/visual/physics/wave.d.ts +224 -24
- package/dist/visual/politics.d.ts +336 -36
- package/package.json +1 -1
|
@@ -9,11 +9,64 @@ export declare function physiologyVisuals<E>(rich: RichSlot<E>): {
|
|
|
9
9
|
MicroscopeLab: 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 physiologyVisuals<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 physiologyVisuals<E>(rich: RichSlot<E>): {
|
|
|
72
123
|
};
|
|
73
124
|
readonly type: "highlight";
|
|
74
125
|
})[]];
|
|
75
|
-
readonly
|
|
76
|
-
readonly type: "text";
|
|
126
|
+
readonly type: "mathInline";
|
|
77
127
|
})[]], E, never, never>>;
|
|
78
128
|
readonly title: RichSlot<E>;
|
|
79
129
|
readonly cell: Schema.optionalKey<Schema.Finite>;
|
|
@@ -106,11 +156,64 @@ export declare function physiologyVisuals<E>(rich: RichSlot<E>): {
|
|
|
106
156
|
NephronLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
107
157
|
readonly description: RichSlot<E>;
|
|
108
158
|
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
159
|
+
readonly marks?: readonly [{
|
|
160
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
161
|
+
} | {
|
|
162
|
+
readonly attrs: {
|
|
163
|
+
readonly href: string;
|
|
164
|
+
};
|
|
165
|
+
readonly type: "link";
|
|
166
|
+
} | {
|
|
167
|
+
readonly attrs: {
|
|
168
|
+
readonly variant: "success" | "warning" | null;
|
|
169
|
+
};
|
|
170
|
+
readonly type: "highlight";
|
|
171
|
+
}, ...({
|
|
172
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
173
|
+
} | {
|
|
174
|
+
readonly attrs: {
|
|
175
|
+
readonly href: string;
|
|
176
|
+
};
|
|
177
|
+
readonly type: "link";
|
|
178
|
+
} | {
|
|
179
|
+
readonly attrs: {
|
|
180
|
+
readonly variant: "success" | "warning" | null;
|
|
181
|
+
};
|
|
182
|
+
readonly type: "highlight";
|
|
183
|
+
})[]];
|
|
184
|
+
readonly text: string;
|
|
185
|
+
readonly type: "text";
|
|
186
|
+
} | {
|
|
109
187
|
readonly attrs: {
|
|
110
188
|
readonly latex: string;
|
|
111
189
|
};
|
|
190
|
+
readonly marks?: readonly [{
|
|
191
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
192
|
+
} | {
|
|
193
|
+
readonly attrs: {
|
|
194
|
+
readonly href: string;
|
|
195
|
+
};
|
|
196
|
+
readonly type: "link";
|
|
197
|
+
} | {
|
|
198
|
+
readonly attrs: {
|
|
199
|
+
readonly variant: "success" | "warning" | null;
|
|
200
|
+
};
|
|
201
|
+
readonly type: "highlight";
|
|
202
|
+
}, ...({
|
|
203
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
204
|
+
} | {
|
|
205
|
+
readonly attrs: {
|
|
206
|
+
readonly href: string;
|
|
207
|
+
};
|
|
208
|
+
readonly type: "link";
|
|
209
|
+
} | {
|
|
210
|
+
readonly attrs: {
|
|
211
|
+
readonly variant: "success" | "warning" | null;
|
|
212
|
+
};
|
|
213
|
+
readonly type: "highlight";
|
|
214
|
+
})[]];
|
|
112
215
|
readonly type: "mathInline";
|
|
113
|
-
}
|
|
216
|
+
}, ...({
|
|
114
217
|
readonly marks?: readonly [{
|
|
115
218
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
116
219
|
} | {
|
|
@@ -138,12 +241,10 @@ export declare function physiologyVisuals<E>(rich: RichSlot<E>): {
|
|
|
138
241
|
})[]];
|
|
139
242
|
readonly text: string;
|
|
140
243
|
readonly type: "text";
|
|
141
|
-
}
|
|
244
|
+
} | {
|
|
142
245
|
readonly attrs: {
|
|
143
246
|
readonly latex: string;
|
|
144
247
|
};
|
|
145
|
-
readonly type: "mathInline";
|
|
146
|
-
} | {
|
|
147
248
|
readonly marks?: readonly [{
|
|
148
249
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
149
250
|
} | {
|
|
@@ -169,8 +270,7 @@ export declare function physiologyVisuals<E>(rich: RichSlot<E>): {
|
|
|
169
270
|
};
|
|
170
271
|
readonly type: "highlight";
|
|
171
272
|
})[]];
|
|
172
|
-
readonly
|
|
173
|
-
readonly type: "text";
|
|
273
|
+
readonly type: "mathInline";
|
|
174
274
|
})[]], E, never, never>>;
|
|
175
275
|
readonly title: RichSlot<E>;
|
|
176
276
|
readonly filtration: Schema.Finite;
|
|
@@ -203,11 +303,64 @@ export declare function physiologyVisuals<E>(rich: RichSlot<E>): {
|
|
|
203
303
|
RespirometerLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
204
304
|
readonly description: RichSlot<E>;
|
|
205
305
|
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
306
|
+
readonly marks?: readonly [{
|
|
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 type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
320
|
+
} | {
|
|
321
|
+
readonly attrs: {
|
|
322
|
+
readonly href: string;
|
|
323
|
+
};
|
|
324
|
+
readonly type: "link";
|
|
325
|
+
} | {
|
|
326
|
+
readonly attrs: {
|
|
327
|
+
readonly variant: "success" | "warning" | null;
|
|
328
|
+
};
|
|
329
|
+
readonly type: "highlight";
|
|
330
|
+
})[]];
|
|
331
|
+
readonly text: string;
|
|
332
|
+
readonly type: "text";
|
|
333
|
+
} | {
|
|
206
334
|
readonly attrs: {
|
|
207
335
|
readonly latex: string;
|
|
208
336
|
};
|
|
337
|
+
readonly marks?: readonly [{
|
|
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
|
+
}, ...({
|
|
350
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
351
|
+
} | {
|
|
352
|
+
readonly attrs: {
|
|
353
|
+
readonly href: string;
|
|
354
|
+
};
|
|
355
|
+
readonly type: "link";
|
|
356
|
+
} | {
|
|
357
|
+
readonly attrs: {
|
|
358
|
+
readonly variant: "success" | "warning" | null;
|
|
359
|
+
};
|
|
360
|
+
readonly type: "highlight";
|
|
361
|
+
})[]];
|
|
209
362
|
readonly type: "mathInline";
|
|
210
|
-
}
|
|
363
|
+
}, ...({
|
|
211
364
|
readonly marks?: readonly [{
|
|
212
365
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
213
366
|
} | {
|
|
@@ -235,12 +388,10 @@ export declare function physiologyVisuals<E>(rich: RichSlot<E>): {
|
|
|
235
388
|
})[]];
|
|
236
389
|
readonly text: string;
|
|
237
390
|
readonly type: "text";
|
|
238
|
-
}
|
|
391
|
+
} | {
|
|
239
392
|
readonly attrs: {
|
|
240
393
|
readonly latex: string;
|
|
241
394
|
};
|
|
242
|
-
readonly type: "mathInline";
|
|
243
|
-
} | {
|
|
244
395
|
readonly marks?: readonly [{
|
|
245
396
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
246
397
|
} | {
|
|
@@ -266,8 +417,7 @@ export declare function physiologyVisuals<E>(rich: RichSlot<E>): {
|
|
|
266
417
|
};
|
|
267
418
|
readonly type: "highlight";
|
|
268
419
|
})[]];
|
|
269
|
-
readonly
|
|
270
|
-
readonly type: "text";
|
|
420
|
+
readonly type: "mathInline";
|
|
271
421
|
})[]], E, never, never>>;
|
|
272
422
|
readonly title: RichSlot<E>;
|
|
273
423
|
readonly carbonDioxide: Schema.Finite;
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import type { RichSlot } from "#contracts/visual/card";
|
|
3
|
+
/** The placenta lab. Every prop names what the learner explores; none is answer state. */
|
|
4
|
+
export declare function placentaVisuals<E>(rich: RichSlot<E>): {
|
|
5
|
+
PlacentaLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
6
|
+
readonly description: RichSlot<E>;
|
|
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
|
+
} | {
|
|
36
|
+
readonly attrs: {
|
|
37
|
+
readonly latex: string;
|
|
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
|
+
})[]];
|
|
64
|
+
readonly type: "mathInline";
|
|
65
|
+
}, ...({
|
|
66
|
+
readonly marks?: readonly [{
|
|
67
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
68
|
+
} | {
|
|
69
|
+
readonly attrs: {
|
|
70
|
+
readonly href: string;
|
|
71
|
+
};
|
|
72
|
+
readonly type: "link";
|
|
73
|
+
} | {
|
|
74
|
+
readonly attrs: {
|
|
75
|
+
readonly variant: "success" | "warning" | null;
|
|
76
|
+
};
|
|
77
|
+
readonly type: "highlight";
|
|
78
|
+
}, ...({
|
|
79
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
80
|
+
} | {
|
|
81
|
+
readonly attrs: {
|
|
82
|
+
readonly href: string;
|
|
83
|
+
};
|
|
84
|
+
readonly type: "link";
|
|
85
|
+
} | {
|
|
86
|
+
readonly attrs: {
|
|
87
|
+
readonly variant: "success" | "warning" | null;
|
|
88
|
+
};
|
|
89
|
+
readonly type: "highlight";
|
|
90
|
+
})[]];
|
|
91
|
+
readonly text: string;
|
|
92
|
+
readonly type: "text";
|
|
93
|
+
} | {
|
|
94
|
+
readonly attrs: {
|
|
95
|
+
readonly latex: string;
|
|
96
|
+
};
|
|
97
|
+
readonly marks?: readonly [{
|
|
98
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
99
|
+
} | {
|
|
100
|
+
readonly attrs: {
|
|
101
|
+
readonly href: string;
|
|
102
|
+
};
|
|
103
|
+
readonly type: "link";
|
|
104
|
+
} | {
|
|
105
|
+
readonly attrs: {
|
|
106
|
+
readonly variant: "success" | "warning" | null;
|
|
107
|
+
};
|
|
108
|
+
readonly type: "highlight";
|
|
109
|
+
}, ...({
|
|
110
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
111
|
+
} | {
|
|
112
|
+
readonly attrs: {
|
|
113
|
+
readonly href: string;
|
|
114
|
+
};
|
|
115
|
+
readonly type: "link";
|
|
116
|
+
} | {
|
|
117
|
+
readonly attrs: {
|
|
118
|
+
readonly variant: "success" | "warning" | null;
|
|
119
|
+
};
|
|
120
|
+
readonly type: "highlight";
|
|
121
|
+
})[]];
|
|
122
|
+
readonly type: "mathInline";
|
|
123
|
+
})[]], E, never, never>>;
|
|
124
|
+
readonly title: RichSlot<E>;
|
|
125
|
+
readonly labels: Schema.Struct<{
|
|
126
|
+
readonly direction: RichSlot<E>;
|
|
127
|
+
readonly how: RichSlot<E>;
|
|
128
|
+
readonly parts: Schema.$Record<Schema.Literals<readonly ["placenta", "cord", "artery", "vein", "villus", "capillary", "maternal", "wall", "amnion", "foetus"]>, Schema.Trimmed>;
|
|
129
|
+
readonly substance: Schema.Trimmed;
|
|
130
|
+
readonly substances: Schema.$Record<Schema.Literals<readonly ["oxygen", "glucose", "aminoAcids", "antibodies", "carbonDioxide", "urea", "alcohol", "bloodCells"]>, Schema.optionalKey<Schema.Struct<{
|
|
131
|
+
readonly direction: RichSlot<E>;
|
|
132
|
+
readonly how: RichSlot<E>;
|
|
133
|
+
readonly name: Schema.Trimmed;
|
|
134
|
+
}>>>;
|
|
135
|
+
readonly view: Schema.Trimmed;
|
|
136
|
+
}>;
|
|
137
|
+
readonly substances: Schema.NonEmptyArray<Schema.Literals<readonly ["oxygen", "glucose", "aminoAcids", "antibodies", "carbonDioxide", "urea", "alcohol", "bloodCells"]>>;
|
|
138
|
+
}>, "figure">;
|
|
139
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { byIds, byPickedIds, cardFields, namesEach, TextSchema, } from "#contracts/visual/card";
|
|
3
|
+
import { figure } from "#contracts/visual/entry";
|
|
4
|
+
/** What crosses the placenta, and the blood cells that do not. */
|
|
5
|
+
const SUBSTANCES = [
|
|
6
|
+
"oxygen",
|
|
7
|
+
"glucose",
|
|
8
|
+
"aminoAcids",
|
|
9
|
+
"antibodies",
|
|
10
|
+
"carbonDioxide",
|
|
11
|
+
"urea",
|
|
12
|
+
"alcohol",
|
|
13
|
+
"bloodCells",
|
|
14
|
+
];
|
|
15
|
+
/**
|
|
16
|
+
* Props of `PlacentaLab`: a placenta cut open, with the mother's blood
|
|
17
|
+
* around a villus and the foetus's blood inside its capillaries, never mixing.
|
|
18
|
+
* The learner picks one of `substances` (each once) and follows it across;
|
|
19
|
+
* the readouts give its direction and how it crosses, words from
|
|
20
|
+
* `labels.substances`, one entry for each substance shown and no other.
|
|
21
|
+
*/
|
|
22
|
+
function placentaLab(rich) {
|
|
23
|
+
return figure(Schema.Struct({
|
|
24
|
+
...cardFields(rich),
|
|
25
|
+
labels: Schema.Struct({
|
|
26
|
+
direction: rich,
|
|
27
|
+
how: rich,
|
|
28
|
+
parts: byIds([
|
|
29
|
+
"placenta",
|
|
30
|
+
"cord",
|
|
31
|
+
"artery",
|
|
32
|
+
"vein",
|
|
33
|
+
"villus",
|
|
34
|
+
"capillary",
|
|
35
|
+
"maternal",
|
|
36
|
+
"wall",
|
|
37
|
+
"amnion",
|
|
38
|
+
"foetus",
|
|
39
|
+
], TextSchema),
|
|
40
|
+
substance: TextSchema,
|
|
41
|
+
substances: byPickedIds(SUBSTANCES, Schema.Struct({ direction: rich, how: rich, name: TextSchema })),
|
|
42
|
+
view: TextSchema,
|
|
43
|
+
}),
|
|
44
|
+
substances: Schema.NonEmptyArray(Schema.Literals(SUBSTANCES)).check(Schema.isUnique()),
|
|
45
|
+
}).check(Schema.makeFilter(({ labels, substances }) => namesEach(substances, labels.substances), {
|
|
46
|
+
message: "Expected words for every substance the lab shows, and no other.",
|
|
47
|
+
})));
|
|
48
|
+
}
|
|
49
|
+
/** The placenta lab. Every prop names what the learner explores; none is answer state. */
|
|
50
|
+
export function placentaVisuals(rich) {
|
|
51
|
+
return { PlacentaLab: placentaLab(rich) };
|
|
52
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import type { RichSlot } from "#contracts/visual/card";
|
|
3
|
+
/** The body planes lab. Every prop names what the learner explores; none is answer state. */
|
|
4
|
+
export declare function planesVisuals<E>(rich: RichSlot<E>): {
|
|
5
|
+
BodyPlanesLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
6
|
+
readonly description: RichSlot<E>;
|
|
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
|
+
} | {
|
|
36
|
+
readonly attrs: {
|
|
37
|
+
readonly latex: string;
|
|
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
|
+
})[]];
|
|
64
|
+
readonly type: "mathInline";
|
|
65
|
+
}, ...({
|
|
66
|
+
readonly marks?: readonly [{
|
|
67
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
68
|
+
} | {
|
|
69
|
+
readonly attrs: {
|
|
70
|
+
readonly href: string;
|
|
71
|
+
};
|
|
72
|
+
readonly type: "link";
|
|
73
|
+
} | {
|
|
74
|
+
readonly attrs: {
|
|
75
|
+
readonly variant: "success" | "warning" | null;
|
|
76
|
+
};
|
|
77
|
+
readonly type: "highlight";
|
|
78
|
+
}, ...({
|
|
79
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
80
|
+
} | {
|
|
81
|
+
readonly attrs: {
|
|
82
|
+
readonly href: string;
|
|
83
|
+
};
|
|
84
|
+
readonly type: "link";
|
|
85
|
+
} | {
|
|
86
|
+
readonly attrs: {
|
|
87
|
+
readonly variant: "success" | "warning" | null;
|
|
88
|
+
};
|
|
89
|
+
readonly type: "highlight";
|
|
90
|
+
})[]];
|
|
91
|
+
readonly text: string;
|
|
92
|
+
readonly type: "text";
|
|
93
|
+
} | {
|
|
94
|
+
readonly attrs: {
|
|
95
|
+
readonly latex: string;
|
|
96
|
+
};
|
|
97
|
+
readonly marks?: readonly [{
|
|
98
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
99
|
+
} | {
|
|
100
|
+
readonly attrs: {
|
|
101
|
+
readonly href: string;
|
|
102
|
+
};
|
|
103
|
+
readonly type: "link";
|
|
104
|
+
} | {
|
|
105
|
+
readonly attrs: {
|
|
106
|
+
readonly variant: "success" | "warning" | null;
|
|
107
|
+
};
|
|
108
|
+
readonly type: "highlight";
|
|
109
|
+
}, ...({
|
|
110
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
111
|
+
} | {
|
|
112
|
+
readonly attrs: {
|
|
113
|
+
readonly href: string;
|
|
114
|
+
};
|
|
115
|
+
readonly type: "link";
|
|
116
|
+
} | {
|
|
117
|
+
readonly attrs: {
|
|
118
|
+
readonly variant: "success" | "warning" | null;
|
|
119
|
+
};
|
|
120
|
+
readonly type: "highlight";
|
|
121
|
+
})[]];
|
|
122
|
+
readonly type: "mathInline";
|
|
123
|
+
})[]], E, never, never>>;
|
|
124
|
+
readonly title: RichSlot<E>;
|
|
125
|
+
readonly labels: Schema.Struct<{
|
|
126
|
+
readonly pair: Schema.optionalKey<Schema.Trimmed>;
|
|
127
|
+
readonly pairs: Schema.optionalKey<Schema.$Record<Schema.Literals<readonly ["vertical", "front", "side", "limb"]>, Schema.Struct<{
|
|
128
|
+
readonly meaning: RichSlot<E>;
|
|
129
|
+
readonly name: Schema.Trimmed;
|
|
130
|
+
}>>>;
|
|
131
|
+
readonly plane: Schema.optionalKey<Schema.Trimmed>;
|
|
132
|
+
readonly planes: Schema.optionalKey<Schema.$Record<Schema.Literals<readonly ["sagittal", "frontal", "transverse"]>, Schema.Struct<{
|
|
133
|
+
readonly name: Schema.Trimmed;
|
|
134
|
+
readonly separates: RichSlot<E>;
|
|
135
|
+
}>>>;
|
|
136
|
+
readonly section: Schema.optionalKey<Schema.Trimmed>;
|
|
137
|
+
readonly sections: Schema.optionalKey<Schema.$Record<Schema.Literals<readonly ["transverse", "longitudinal"]>, Schema.Trimmed>>;
|
|
138
|
+
readonly position: Schema.Trimmed;
|
|
139
|
+
readonly subject: Schema.Trimmed;
|
|
140
|
+
readonly subjects: Schema.$Record<Schema.Literals<readonly ["body", "stem"]>, Schema.optionalKey<Schema.Trimmed>>;
|
|
141
|
+
readonly view: Schema.Trimmed;
|
|
142
|
+
}>;
|
|
143
|
+
readonly subjects: Schema.NonEmptyArray<Schema.Literals<readonly ["body", "stem"]>>;
|
|
144
|
+
}>, "figure">;
|
|
145
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Array as Arr, Schema } from "effect";
|
|
2
|
+
import { byIds, byPickedIds, cardFields, namesEach, TextSchema, } from "#contracts/visual/card";
|
|
3
|
+
import { figure } from "#contracts/visual/entry";
|
|
4
|
+
const SUBJECTS = ["body", "stem"];
|
|
5
|
+
/** The words of a human body: its three planes and the paired direction terms. */
|
|
6
|
+
function bodyWords(rich) {
|
|
7
|
+
return {
|
|
8
|
+
pair: Schema.optionalKey(TextSchema),
|
|
9
|
+
pairs: Schema.optionalKey(byIds(["vertical", "front", "side", "limb"], Schema.Struct({ meaning: rich, name: TextSchema }))),
|
|
10
|
+
plane: Schema.optionalKey(TextSchema),
|
|
11
|
+
planes: Schema.optionalKey(byIds(["sagittal", "frontal", "transverse"], Schema.Struct({ name: TextSchema, separates: rich }))),
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/** The words of a dicot stem: the toggle between its two sections. */
|
|
15
|
+
const stemWords = {
|
|
16
|
+
section: Schema.optionalKey(TextSchema),
|
|
17
|
+
sections: Schema.optionalKey(byIds(["transverse", "longitudinal"], TextSchema)),
|
|
18
|
+
};
|
|
19
|
+
/** Checks that some words are all given when their subject is shown, and none otherwise. */
|
|
20
|
+
function wordsMatch(shown, words) {
|
|
21
|
+
return Arr.every(words, (word) => (word !== undefined) === shown);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Props of `BodyPlanesLab`: a human body in the anatomical position, a dicot
|
|
25
|
+
* stem, or both (`subjects`, each once, in the order the toggle lists them).
|
|
26
|
+
* On the body the learner picks the sagittal, frontal or transverse plane and
|
|
27
|
+
* slides its cut, and the readouts name the plane, which parts it separates
|
|
28
|
+
* and the paired direction terms (superior and inferior, anterior and
|
|
29
|
+
* posterior, medial and lateral, proximal and distal). On the stem the
|
|
30
|
+
* learner switches between a transverse and a longitudinal section. Each
|
|
31
|
+
* subject's words are given exactly when that subject is shown.
|
|
32
|
+
*/
|
|
33
|
+
function bodyPlanesLab(rich) {
|
|
34
|
+
return figure(Schema.Struct({
|
|
35
|
+
...cardFields(rich),
|
|
36
|
+
labels: Schema.Struct({
|
|
37
|
+
...bodyWords(rich),
|
|
38
|
+
...stemWords,
|
|
39
|
+
position: TextSchema,
|
|
40
|
+
subject: TextSchema,
|
|
41
|
+
subjects: byPickedIds(SUBJECTS, TextSchema),
|
|
42
|
+
view: TextSchema,
|
|
43
|
+
}),
|
|
44
|
+
subjects: Schema.NonEmptyArray(Schema.Literals(SUBJECTS)).check(Schema.isUnique()),
|
|
45
|
+
}).check(Schema.makeFilter(({ labels, subjects }) => namesEach(subjects, labels.subjects) &&
|
|
46
|
+
wordsMatch(Arr.contains(subjects, "body"), [
|
|
47
|
+
labels.pair,
|
|
48
|
+
labels.pairs,
|
|
49
|
+
labels.plane,
|
|
50
|
+
labels.planes,
|
|
51
|
+
]) &&
|
|
52
|
+
wordsMatch(Arr.contains(subjects, "stem"), [
|
|
53
|
+
labels.section,
|
|
54
|
+
labels.sections,
|
|
55
|
+
]), {
|
|
56
|
+
message: "Expected a name for every subject shown, the planes and direction terms exactly when the body is shown, and the sections exactly when the stem is shown.",
|
|
57
|
+
})));
|
|
58
|
+
}
|
|
59
|
+
/** The body planes lab. Every prop names what the learner explores; none is answer state. */
|
|
60
|
+
export function planesVisuals(rich) {
|
|
61
|
+
return { BodyPlanesLab: bodyPlanesLab(rich) };
|
|
62
|
+
}
|