@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 plantVisuals<E>(rich: RichSlot<E>): {
|
|
|
9
9
|
FertilisationLab: 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 plantVisuals<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 plantVisuals<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 father: Schema.Int;
|
|
@@ -93,11 +143,64 @@ export declare function plantVisuals<E>(rich: RichSlot<E>): {
|
|
|
93
143
|
OsmosisLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
94
144
|
readonly description: RichSlot<E>;
|
|
95
145
|
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
146
|
+
readonly marks?: readonly [{
|
|
147
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
148
|
+
} | {
|
|
149
|
+
readonly attrs: {
|
|
150
|
+
readonly href: string;
|
|
151
|
+
};
|
|
152
|
+
readonly type: "link";
|
|
153
|
+
} | {
|
|
154
|
+
readonly attrs: {
|
|
155
|
+
readonly variant: "success" | "warning" | null;
|
|
156
|
+
};
|
|
157
|
+
readonly type: "highlight";
|
|
158
|
+
}, ...({
|
|
159
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
160
|
+
} | {
|
|
161
|
+
readonly attrs: {
|
|
162
|
+
readonly href: string;
|
|
163
|
+
};
|
|
164
|
+
readonly type: "link";
|
|
165
|
+
} | {
|
|
166
|
+
readonly attrs: {
|
|
167
|
+
readonly variant: "success" | "warning" | null;
|
|
168
|
+
};
|
|
169
|
+
readonly type: "highlight";
|
|
170
|
+
})[]];
|
|
171
|
+
readonly text: string;
|
|
172
|
+
readonly type: "text";
|
|
173
|
+
} | {
|
|
96
174
|
readonly attrs: {
|
|
97
175
|
readonly latex: string;
|
|
98
176
|
};
|
|
177
|
+
readonly marks?: readonly [{
|
|
178
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
179
|
+
} | {
|
|
180
|
+
readonly attrs: {
|
|
181
|
+
readonly href: string;
|
|
182
|
+
};
|
|
183
|
+
readonly type: "link";
|
|
184
|
+
} | {
|
|
185
|
+
readonly attrs: {
|
|
186
|
+
readonly variant: "success" | "warning" | null;
|
|
187
|
+
};
|
|
188
|
+
readonly type: "highlight";
|
|
189
|
+
}, ...({
|
|
190
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
191
|
+
} | {
|
|
192
|
+
readonly attrs: {
|
|
193
|
+
readonly href: string;
|
|
194
|
+
};
|
|
195
|
+
readonly type: "link";
|
|
196
|
+
} | {
|
|
197
|
+
readonly attrs: {
|
|
198
|
+
readonly variant: "success" | "warning" | null;
|
|
199
|
+
};
|
|
200
|
+
readonly type: "highlight";
|
|
201
|
+
})[]];
|
|
99
202
|
readonly type: "mathInline";
|
|
100
|
-
}
|
|
203
|
+
}, ...({
|
|
101
204
|
readonly marks?: readonly [{
|
|
102
205
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
103
206
|
} | {
|
|
@@ -125,12 +228,10 @@ export declare function plantVisuals<E>(rich: RichSlot<E>): {
|
|
|
125
228
|
})[]];
|
|
126
229
|
readonly text: string;
|
|
127
230
|
readonly type: "text";
|
|
128
|
-
}
|
|
231
|
+
} | {
|
|
129
232
|
readonly attrs: {
|
|
130
233
|
readonly latex: string;
|
|
131
234
|
};
|
|
132
|
-
readonly type: "mathInline";
|
|
133
|
-
} | {
|
|
134
235
|
readonly marks?: readonly [{
|
|
135
236
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
136
237
|
} | {
|
|
@@ -156,8 +257,7 @@ export declare function plantVisuals<E>(rich: RichSlot<E>): {
|
|
|
156
257
|
};
|
|
157
258
|
readonly type: "highlight";
|
|
158
259
|
})[]];
|
|
159
|
-
readonly
|
|
160
|
-
readonly type: "text";
|
|
260
|
+
readonly type: "mathInline";
|
|
161
261
|
})[]], E, never, never>>;
|
|
162
262
|
readonly title: RichSlot<E>;
|
|
163
263
|
readonly labels: Schema.Struct<{
|
|
@@ -183,11 +283,64 @@ export declare function plantVisuals<E>(rich: RichSlot<E>): {
|
|
|
183
283
|
PhotosynthesisLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
184
284
|
readonly description: RichSlot<E>;
|
|
185
285
|
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
286
|
+
readonly marks?: readonly [{
|
|
287
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
288
|
+
} | {
|
|
289
|
+
readonly attrs: {
|
|
290
|
+
readonly href: string;
|
|
291
|
+
};
|
|
292
|
+
readonly type: "link";
|
|
293
|
+
} | {
|
|
294
|
+
readonly attrs: {
|
|
295
|
+
readonly variant: "success" | "warning" | null;
|
|
296
|
+
};
|
|
297
|
+
readonly type: "highlight";
|
|
298
|
+
}, ...({
|
|
299
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
300
|
+
} | {
|
|
301
|
+
readonly attrs: {
|
|
302
|
+
readonly href: string;
|
|
303
|
+
};
|
|
304
|
+
readonly type: "link";
|
|
305
|
+
} | {
|
|
306
|
+
readonly attrs: {
|
|
307
|
+
readonly variant: "success" | "warning" | null;
|
|
308
|
+
};
|
|
309
|
+
readonly type: "highlight";
|
|
310
|
+
})[]];
|
|
311
|
+
readonly text: string;
|
|
312
|
+
readonly type: "text";
|
|
313
|
+
} | {
|
|
186
314
|
readonly attrs: {
|
|
187
315
|
readonly latex: string;
|
|
188
316
|
};
|
|
317
|
+
readonly marks?: readonly [{
|
|
318
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
319
|
+
} | {
|
|
320
|
+
readonly attrs: {
|
|
321
|
+
readonly href: string;
|
|
322
|
+
};
|
|
323
|
+
readonly type: "link";
|
|
324
|
+
} | {
|
|
325
|
+
readonly attrs: {
|
|
326
|
+
readonly variant: "success" | "warning" | null;
|
|
327
|
+
};
|
|
328
|
+
readonly type: "highlight";
|
|
329
|
+
}, ...({
|
|
330
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
331
|
+
} | {
|
|
332
|
+
readonly attrs: {
|
|
333
|
+
readonly href: string;
|
|
334
|
+
};
|
|
335
|
+
readonly type: "link";
|
|
336
|
+
} | {
|
|
337
|
+
readonly attrs: {
|
|
338
|
+
readonly variant: "success" | "warning" | null;
|
|
339
|
+
};
|
|
340
|
+
readonly type: "highlight";
|
|
341
|
+
})[]];
|
|
189
342
|
readonly type: "mathInline";
|
|
190
|
-
}
|
|
343
|
+
}, ...({
|
|
191
344
|
readonly marks?: readonly [{
|
|
192
345
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
193
346
|
} | {
|
|
@@ -215,12 +368,10 @@ export declare function plantVisuals<E>(rich: RichSlot<E>): {
|
|
|
215
368
|
})[]];
|
|
216
369
|
readonly text: string;
|
|
217
370
|
readonly type: "text";
|
|
218
|
-
}
|
|
371
|
+
} | {
|
|
219
372
|
readonly attrs: {
|
|
220
373
|
readonly latex: string;
|
|
221
374
|
};
|
|
222
|
-
readonly type: "mathInline";
|
|
223
|
-
} | {
|
|
224
375
|
readonly marks?: readonly [{
|
|
225
376
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
226
377
|
} | {
|
|
@@ -246,8 +397,7 @@ export declare function plantVisuals<E>(rich: RichSlot<E>): {
|
|
|
246
397
|
};
|
|
247
398
|
readonly type: "highlight";
|
|
248
399
|
})[]];
|
|
249
|
-
readonly
|
|
250
|
-
readonly type: "text";
|
|
400
|
+
readonly type: "mathInline";
|
|
251
401
|
})[]], E, never, never>>;
|
|
252
402
|
readonly title: RichSlot<E>;
|
|
253
403
|
readonly labels: Schema.Struct<{
|
|
@@ -271,11 +421,64 @@ export declare function plantVisuals<E>(rich: RichSlot<E>): {
|
|
|
271
421
|
PotometerLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
272
422
|
readonly description: RichSlot<E>;
|
|
273
423
|
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
424
|
+
readonly marks?: readonly [{
|
|
425
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
426
|
+
} | {
|
|
427
|
+
readonly attrs: {
|
|
428
|
+
readonly href: string;
|
|
429
|
+
};
|
|
430
|
+
readonly type: "link";
|
|
431
|
+
} | {
|
|
432
|
+
readonly attrs: {
|
|
433
|
+
readonly variant: "success" | "warning" | null;
|
|
434
|
+
};
|
|
435
|
+
readonly type: "highlight";
|
|
436
|
+
}, ...({
|
|
437
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
438
|
+
} | {
|
|
439
|
+
readonly attrs: {
|
|
440
|
+
readonly href: string;
|
|
441
|
+
};
|
|
442
|
+
readonly type: "link";
|
|
443
|
+
} | {
|
|
444
|
+
readonly attrs: {
|
|
445
|
+
readonly variant: "success" | "warning" | null;
|
|
446
|
+
};
|
|
447
|
+
readonly type: "highlight";
|
|
448
|
+
})[]];
|
|
449
|
+
readonly text: string;
|
|
450
|
+
readonly type: "text";
|
|
451
|
+
} | {
|
|
274
452
|
readonly attrs: {
|
|
275
453
|
readonly latex: string;
|
|
276
454
|
};
|
|
455
|
+
readonly marks?: readonly [{
|
|
456
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
457
|
+
} | {
|
|
458
|
+
readonly attrs: {
|
|
459
|
+
readonly href: string;
|
|
460
|
+
};
|
|
461
|
+
readonly type: "link";
|
|
462
|
+
} | {
|
|
463
|
+
readonly attrs: {
|
|
464
|
+
readonly variant: "success" | "warning" | null;
|
|
465
|
+
};
|
|
466
|
+
readonly type: "highlight";
|
|
467
|
+
}, ...({
|
|
468
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
469
|
+
} | {
|
|
470
|
+
readonly attrs: {
|
|
471
|
+
readonly href: string;
|
|
472
|
+
};
|
|
473
|
+
readonly type: "link";
|
|
474
|
+
} | {
|
|
475
|
+
readonly attrs: {
|
|
476
|
+
readonly variant: "success" | "warning" | null;
|
|
477
|
+
};
|
|
478
|
+
readonly type: "highlight";
|
|
479
|
+
})[]];
|
|
277
480
|
readonly type: "mathInline";
|
|
278
|
-
}
|
|
481
|
+
}, ...({
|
|
279
482
|
readonly marks?: readonly [{
|
|
280
483
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
281
484
|
} | {
|
|
@@ -303,12 +506,10 @@ export declare function plantVisuals<E>(rich: RichSlot<E>): {
|
|
|
303
506
|
})[]];
|
|
304
507
|
readonly text: string;
|
|
305
508
|
readonly type: "text";
|
|
306
|
-
}
|
|
509
|
+
} | {
|
|
307
510
|
readonly attrs: {
|
|
308
511
|
readonly latex: string;
|
|
309
512
|
};
|
|
310
|
-
readonly type: "mathInline";
|
|
311
|
-
} | {
|
|
312
513
|
readonly marks?: readonly [{
|
|
313
514
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
314
515
|
} | {
|
|
@@ -334,8 +535,7 @@ export declare function plantVisuals<E>(rich: RichSlot<E>): {
|
|
|
334
535
|
};
|
|
335
536
|
readonly type: "highlight";
|
|
336
537
|
})[]];
|
|
337
|
-
readonly
|
|
338
|
-
readonly type: "text";
|
|
538
|
+
readonly type: "mathInline";
|
|
339
539
|
})[]], E, never, never>>;
|
|
340
540
|
readonly title: RichSlot<E>;
|
|
341
541
|
readonly labels: Schema.Struct<{
|
|
@@ -357,11 +557,64 @@ export declare function plantVisuals<E>(rich: RichSlot<E>): {
|
|
|
357
557
|
TropismLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
358
558
|
readonly description: RichSlot<E>;
|
|
359
559
|
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
560
|
+
readonly marks?: readonly [{
|
|
561
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
562
|
+
} | {
|
|
563
|
+
readonly attrs: {
|
|
564
|
+
readonly href: string;
|
|
565
|
+
};
|
|
566
|
+
readonly type: "link";
|
|
567
|
+
} | {
|
|
568
|
+
readonly attrs: {
|
|
569
|
+
readonly variant: "success" | "warning" | null;
|
|
570
|
+
};
|
|
571
|
+
readonly type: "highlight";
|
|
572
|
+
}, ...({
|
|
573
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
574
|
+
} | {
|
|
575
|
+
readonly attrs: {
|
|
576
|
+
readonly href: string;
|
|
577
|
+
};
|
|
578
|
+
readonly type: "link";
|
|
579
|
+
} | {
|
|
580
|
+
readonly attrs: {
|
|
581
|
+
readonly variant: "success" | "warning" | null;
|
|
582
|
+
};
|
|
583
|
+
readonly type: "highlight";
|
|
584
|
+
})[]];
|
|
585
|
+
readonly text: string;
|
|
586
|
+
readonly type: "text";
|
|
587
|
+
} | {
|
|
360
588
|
readonly attrs: {
|
|
361
589
|
readonly latex: string;
|
|
362
590
|
};
|
|
591
|
+
readonly marks?: readonly [{
|
|
592
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
593
|
+
} | {
|
|
594
|
+
readonly attrs: {
|
|
595
|
+
readonly href: string;
|
|
596
|
+
};
|
|
597
|
+
readonly type: "link";
|
|
598
|
+
} | {
|
|
599
|
+
readonly attrs: {
|
|
600
|
+
readonly variant: "success" | "warning" | null;
|
|
601
|
+
};
|
|
602
|
+
readonly type: "highlight";
|
|
603
|
+
}, ...({
|
|
604
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
605
|
+
} | {
|
|
606
|
+
readonly attrs: {
|
|
607
|
+
readonly href: string;
|
|
608
|
+
};
|
|
609
|
+
readonly type: "link";
|
|
610
|
+
} | {
|
|
611
|
+
readonly attrs: {
|
|
612
|
+
readonly variant: "success" | "warning" | null;
|
|
613
|
+
};
|
|
614
|
+
readonly type: "highlight";
|
|
615
|
+
})[]];
|
|
363
616
|
readonly type: "mathInline";
|
|
364
|
-
}
|
|
617
|
+
}, ...({
|
|
365
618
|
readonly marks?: readonly [{
|
|
366
619
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
367
620
|
} | {
|
|
@@ -389,12 +642,10 @@ export declare function plantVisuals<E>(rich: RichSlot<E>): {
|
|
|
389
642
|
})[]];
|
|
390
643
|
readonly text: string;
|
|
391
644
|
readonly type: "text";
|
|
392
|
-
}
|
|
645
|
+
} | {
|
|
393
646
|
readonly attrs: {
|
|
394
647
|
readonly latex: string;
|
|
395
648
|
};
|
|
396
|
-
readonly type: "mathInline";
|
|
397
|
-
} | {
|
|
398
649
|
readonly marks?: readonly [{
|
|
399
650
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
400
651
|
} | {
|
|
@@ -420,8 +671,7 @@ export declare function plantVisuals<E>(rich: RichSlot<E>): {
|
|
|
420
671
|
};
|
|
421
672
|
readonly type: "highlight";
|
|
422
673
|
})[]];
|
|
423
|
-
readonly
|
|
424
|
-
readonly type: "text";
|
|
674
|
+
readonly type: "mathInline";
|
|
425
675
|
})[]], E, never, never>>;
|
|
426
676
|
readonly title: RichSlot<E>;
|
|
427
677
|
readonly labels: Schema.Struct<{
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import type { RichSlot } from "#contracts/visual/card";
|
|
3
|
+
/** The protein lab. Every prop names what the learner explores; none is answer state. */
|
|
4
|
+
export declare function proteinVisuals<E>(rich: RichSlot<E>): {
|
|
5
|
+
ProteinFoldLab: 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 conditions: Schema.NonEmptyArray<Schema.Literals<readonly ["normal", "heated", "acid"]>>;
|
|
126
|
+
readonly labels: Schema.Struct<{
|
|
127
|
+
readonly bonds: Schema.$Record<Schema.Literals<readonly ["peptide", "hydrogen", "ionic", "hydrophobic"]>, RichSlot<E>>;
|
|
128
|
+
readonly condition: Schema.Trimmed;
|
|
129
|
+
readonly conditions: Schema.$Record<Schema.Literals<readonly ["normal", "heated", "acid"]>, Schema.optionalKey<Schema.Trimmed>>;
|
|
130
|
+
readonly holds: RichSlot<E>;
|
|
131
|
+
readonly level: Schema.Trimmed;
|
|
132
|
+
readonly levels: Schema.$Record<Schema.Literals<readonly ["primary", "secondary", "tertiary", "quaternary"]>, Schema.optionalKey<Schema.Trimmed>>;
|
|
133
|
+
readonly no: RichSlot<E>;
|
|
134
|
+
readonly parts: Schema.$Record<Schema.Literals<readonly ["chain", "helix", "sheet", "haem"]>, Schema.Trimmed>;
|
|
135
|
+
readonly peptide: RichSlot<E>;
|
|
136
|
+
readonly view: Schema.Trimmed;
|
|
137
|
+
readonly works: RichSlot<E>;
|
|
138
|
+
readonly yes: RichSlot<E>;
|
|
139
|
+
}>;
|
|
140
|
+
readonly levels: Schema.NonEmptyArray<Schema.Literals<readonly ["primary", "secondary", "tertiary", "quaternary"]>>;
|
|
141
|
+
}>, "figure">;
|
|
142
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { byIds, byPickedIds, cardFields, namesEach, TextSchema, } from "#contracts/visual/card";
|
|
3
|
+
import { figure } from "#contracts/visual/entry";
|
|
4
|
+
const LEVELS = ["primary", "secondary", "tertiary", "quaternary"];
|
|
5
|
+
const CONDITIONS = ["normal", "heated", "acid"];
|
|
6
|
+
/**
|
|
7
|
+
* Props of `ProteinFoldLab`: one protein from its chain of amino acids to its
|
|
8
|
+
* folded working shape. The learner steps through `levels` of structure and
|
|
9
|
+
* sets one of `conditions` (each once, in the order the toggles list them);
|
|
10
|
+
* heat and acid break the bonds that hold the fold while the peptide bonds
|
|
11
|
+
* stay, and the readouts say which bonds hold the level, whether the peptide
|
|
12
|
+
* bonds stay and whether the protein still works.
|
|
13
|
+
*/
|
|
14
|
+
function proteinFoldLab(rich) {
|
|
15
|
+
return figure(Schema.Struct({
|
|
16
|
+
...cardFields(rich),
|
|
17
|
+
conditions: Schema.NonEmptyArray(Schema.Literals(CONDITIONS)).check(Schema.isUnique()),
|
|
18
|
+
labels: Schema.Struct({
|
|
19
|
+
bonds: byIds(["peptide", "hydrogen", "ionic", "hydrophobic"], rich),
|
|
20
|
+
condition: TextSchema,
|
|
21
|
+
conditions: byPickedIds(CONDITIONS, TextSchema),
|
|
22
|
+
holds: rich,
|
|
23
|
+
level: TextSchema,
|
|
24
|
+
levels: byPickedIds(LEVELS, TextSchema),
|
|
25
|
+
no: rich,
|
|
26
|
+
parts: byIds(["chain", "helix", "sheet", "haem"], TextSchema),
|
|
27
|
+
peptide: rich,
|
|
28
|
+
view: TextSchema,
|
|
29
|
+
works: rich,
|
|
30
|
+
yes: rich,
|
|
31
|
+
}),
|
|
32
|
+
levels: Schema.NonEmptyArray(Schema.Literals(LEVELS)).check(Schema.isUnique()),
|
|
33
|
+
}).check(Schema.makeFilter(({ conditions, labels, levels }) => namesEach(levels, labels.levels) &&
|
|
34
|
+
namesEach(conditions, labels.conditions), {
|
|
35
|
+
message: "Expected a name for every level and condition the lab shows, and no other.",
|
|
36
|
+
})));
|
|
37
|
+
}
|
|
38
|
+
/** The protein lab. Every prop names what the learner explores; none is answer state. */
|
|
39
|
+
export function proteinVisuals(rich) {
|
|
40
|
+
return { ProteinFoldLab: proteinFoldLab(rich) };
|
|
41
|
+
}
|