@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
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import type { RichSlot } from "#contracts/visual/card";
|
|
3
|
+
/**
|
|
4
|
+
* The drawing lab. The magnification is what a question asks a learner to
|
|
5
|
+
* work out, so its readout is answer state.
|
|
6
|
+
*/
|
|
7
|
+
export declare function drawingVisuals<E>(rich: RichSlot<E>): {
|
|
8
|
+
SpecimenDrawingLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
9
|
+
readonly description: RichSlot<E>;
|
|
10
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
11
|
+
readonly marks?: readonly [{
|
|
12
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
13
|
+
} | {
|
|
14
|
+
readonly attrs: {
|
|
15
|
+
readonly href: string;
|
|
16
|
+
};
|
|
17
|
+
readonly type: "link";
|
|
18
|
+
} | {
|
|
19
|
+
readonly attrs: {
|
|
20
|
+
readonly variant: "success" | "warning" | null;
|
|
21
|
+
};
|
|
22
|
+
readonly type: "highlight";
|
|
23
|
+
}, ...({
|
|
24
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
25
|
+
} | {
|
|
26
|
+
readonly attrs: {
|
|
27
|
+
readonly href: string;
|
|
28
|
+
};
|
|
29
|
+
readonly type: "link";
|
|
30
|
+
} | {
|
|
31
|
+
readonly attrs: {
|
|
32
|
+
readonly variant: "success" | "warning" | null;
|
|
33
|
+
};
|
|
34
|
+
readonly type: "highlight";
|
|
35
|
+
})[]];
|
|
36
|
+
readonly text: string;
|
|
37
|
+
readonly type: "text";
|
|
38
|
+
} | {
|
|
39
|
+
readonly attrs: {
|
|
40
|
+
readonly latex: string;
|
|
41
|
+
};
|
|
42
|
+
readonly marks?: readonly [{
|
|
43
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
44
|
+
} | {
|
|
45
|
+
readonly attrs: {
|
|
46
|
+
readonly href: string;
|
|
47
|
+
};
|
|
48
|
+
readonly type: "link";
|
|
49
|
+
} | {
|
|
50
|
+
readonly attrs: {
|
|
51
|
+
readonly variant: "success" | "warning" | null;
|
|
52
|
+
};
|
|
53
|
+
readonly type: "highlight";
|
|
54
|
+
}, ...({
|
|
55
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
56
|
+
} | {
|
|
57
|
+
readonly attrs: {
|
|
58
|
+
readonly href: string;
|
|
59
|
+
};
|
|
60
|
+
readonly type: "link";
|
|
61
|
+
} | {
|
|
62
|
+
readonly attrs: {
|
|
63
|
+
readonly variant: "success" | "warning" | null;
|
|
64
|
+
};
|
|
65
|
+
readonly type: "highlight";
|
|
66
|
+
})[]];
|
|
67
|
+
readonly type: "mathInline";
|
|
68
|
+
}, ...({
|
|
69
|
+
readonly marks?: readonly [{
|
|
70
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
71
|
+
} | {
|
|
72
|
+
readonly attrs: {
|
|
73
|
+
readonly href: string;
|
|
74
|
+
};
|
|
75
|
+
readonly type: "link";
|
|
76
|
+
} | {
|
|
77
|
+
readonly attrs: {
|
|
78
|
+
readonly variant: "success" | "warning" | null;
|
|
79
|
+
};
|
|
80
|
+
readonly type: "highlight";
|
|
81
|
+
}, ...({
|
|
82
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
83
|
+
} | {
|
|
84
|
+
readonly attrs: {
|
|
85
|
+
readonly href: string;
|
|
86
|
+
};
|
|
87
|
+
readonly type: "link";
|
|
88
|
+
} | {
|
|
89
|
+
readonly attrs: {
|
|
90
|
+
readonly variant: "success" | "warning" | null;
|
|
91
|
+
};
|
|
92
|
+
readonly type: "highlight";
|
|
93
|
+
})[]];
|
|
94
|
+
readonly text: string;
|
|
95
|
+
readonly type: "text";
|
|
96
|
+
} | {
|
|
97
|
+
readonly attrs: {
|
|
98
|
+
readonly latex: string;
|
|
99
|
+
};
|
|
100
|
+
readonly marks?: readonly [{
|
|
101
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
102
|
+
} | {
|
|
103
|
+
readonly attrs: {
|
|
104
|
+
readonly href: string;
|
|
105
|
+
};
|
|
106
|
+
readonly type: "link";
|
|
107
|
+
} | {
|
|
108
|
+
readonly attrs: {
|
|
109
|
+
readonly variant: "success" | "warning" | null;
|
|
110
|
+
};
|
|
111
|
+
readonly type: "highlight";
|
|
112
|
+
}, ...({
|
|
113
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
114
|
+
} | {
|
|
115
|
+
readonly attrs: {
|
|
116
|
+
readonly href: string;
|
|
117
|
+
};
|
|
118
|
+
readonly type: "link";
|
|
119
|
+
} | {
|
|
120
|
+
readonly attrs: {
|
|
121
|
+
readonly variant: "success" | "warning" | null;
|
|
122
|
+
};
|
|
123
|
+
readonly type: "highlight";
|
|
124
|
+
})[]];
|
|
125
|
+
readonly type: "mathInline";
|
|
126
|
+
})[]], E, never, never>>;
|
|
127
|
+
readonly title: RichSlot<E>;
|
|
128
|
+
readonly actual: Schema.Finite;
|
|
129
|
+
readonly drawing: Schema.Struct<{
|
|
130
|
+
readonly max: Schema.Finite;
|
|
131
|
+
readonly min: Schema.Finite;
|
|
132
|
+
readonly value: Schema.Finite;
|
|
133
|
+
}>;
|
|
134
|
+
readonly labels: Schema.Struct<{
|
|
135
|
+
readonly drawing: Schema.Trimmed;
|
|
136
|
+
readonly faults: Schema.$Record<Schema.Literals<readonly ["shading", "sketchy", "arrows", "title"]>, RichSlot<E>>;
|
|
137
|
+
readonly magnification: Schema.optionalKey<RichSlot<E>>;
|
|
138
|
+
readonly parts: Schema.Struct<{
|
|
139
|
+
readonly cytoplasm: Schema.Trimmed;
|
|
140
|
+
readonly membrane: Schema.optionalKey<Schema.Trimmed>;
|
|
141
|
+
readonly nucleus: Schema.Trimmed;
|
|
142
|
+
readonly wall: Schema.optionalKey<Schema.Trimmed>;
|
|
143
|
+
}>;
|
|
144
|
+
readonly size: RichSlot<E>;
|
|
145
|
+
readonly version: Schema.Trimmed;
|
|
146
|
+
readonly versions: Schema.$Record<Schema.Literals<readonly ["correct", "faulty"]>, Schema.Trimmed>;
|
|
147
|
+
readonly view: Schema.Trimmed;
|
|
148
|
+
}>;
|
|
149
|
+
readonly specimen: Schema.Literals<readonly ["cheek", "onion"]>;
|
|
150
|
+
}>, "figure">;
|
|
151
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { byIds, cardFields, TextSchema } from "#contracts/visual/card";
|
|
3
|
+
import { answerAt, figure } from "#contracts/visual/entry";
|
|
4
|
+
/** A length the lab divides by: a finite number above zero. */
|
|
5
|
+
const PositiveSchema = Schema.Finite.check(Schema.isGreaterThan(0));
|
|
6
|
+
/**
|
|
7
|
+
* How long the learner draws the cell, in millimetres: a range for the slider
|
|
8
|
+
* and its starting value. The longest drawing still fits an A4 sheet.
|
|
9
|
+
*/
|
|
10
|
+
const DrawingSchema = Schema.Struct({
|
|
11
|
+
max: PositiveSchema.check(Schema.isLessThanOrEqualTo(200)),
|
|
12
|
+
min: PositiveSchema,
|
|
13
|
+
value: PositiveSchema,
|
|
14
|
+
}).check(Schema.makeFilter(({ max, min, value }) => min < max && min <= value && value <= max, {
|
|
15
|
+
message: "Expected a drawing size range whose minimum is below its maximum, with the starting size between them.",
|
|
16
|
+
}));
|
|
17
|
+
/**
|
|
18
|
+
* The parts a drawing labels. Every cell drawn shows its nucleus and
|
|
19
|
+
* cytoplasm; a cheek cell is bounded by its plasma membrane and has no cell
|
|
20
|
+
* wall, and an onion epidermis cell is bounded by its cell wall.
|
|
21
|
+
*/
|
|
22
|
+
const PartsSchema = Schema.Struct({
|
|
23
|
+
cytoplasm: TextSchema,
|
|
24
|
+
membrane: Schema.optionalKey(TextSchema),
|
|
25
|
+
nucleus: TextSchema,
|
|
26
|
+
wall: Schema.optionalKey(TextSchema),
|
|
27
|
+
});
|
|
28
|
+
/**
|
|
29
|
+
* Props of `SpecimenDrawingLab`: a microscope's field of view of a stained
|
|
30
|
+
* `specimen` next to a sheet of drawing paper, where a pencil drawing of one
|
|
31
|
+
* cell builds up line by line. The cell is `actual` micrometres long; the
|
|
32
|
+
* learner sets how long the drawing is with a slider over `drawing`, in
|
|
33
|
+
* millimetres, and the readout shows the magnification, the drawing length
|
|
34
|
+
* over the actual length in the same unit. A toggle switches to a faulty
|
|
35
|
+
* drawing that breaks each rule in `labels.faults`: shading, doubled sketchy
|
|
36
|
+
* lines, crossed label lines with arrowheads, and no title or magnification.
|
|
37
|
+
* The magnification readout shows only when `labels.magnification` names it,
|
|
38
|
+
* so a question that asks for the magnification leaves it out.
|
|
39
|
+
*/
|
|
40
|
+
function specimenDrawingLab(rich) {
|
|
41
|
+
return figure(Schema.Struct({
|
|
42
|
+
...cardFields(rich),
|
|
43
|
+
actual: PositiveSchema.check(Schema.isLessThanOrEqualTo(1000)),
|
|
44
|
+
drawing: DrawingSchema,
|
|
45
|
+
labels: Schema.Struct({
|
|
46
|
+
drawing: TextSchema,
|
|
47
|
+
faults: byIds(["shading", "sketchy", "arrows", "title"], rich),
|
|
48
|
+
magnification: Schema.optionalKey(rich),
|
|
49
|
+
parts: PartsSchema,
|
|
50
|
+
size: rich,
|
|
51
|
+
version: TextSchema,
|
|
52
|
+
versions: byIds(["correct", "faulty"], TextSchema),
|
|
53
|
+
view: TextSchema,
|
|
54
|
+
}),
|
|
55
|
+
specimen: Schema.Literals(["cheek", "onion"]),
|
|
56
|
+
}).check(Schema.makeFilter(({ labels, specimen }) => specimen === "cheek"
|
|
57
|
+
? labels.parts.membrane !== undefined &&
|
|
58
|
+
labels.parts.wall === undefined
|
|
59
|
+
: labels.parts.wall !== undefined, {
|
|
60
|
+
message: "Expected a cheek cell labelled with its plasma membrane and no cell wall, or an onion cell labelled with its cell wall.",
|
|
61
|
+
})), answerAt(["labels", "magnification"]));
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* The drawing lab. The magnification is what a question asks a learner to
|
|
65
|
+
* work out, so its readout is answer state.
|
|
66
|
+
*/
|
|
67
|
+
export function drawingVisuals(rich) {
|
|
68
|
+
return { SpecimenDrawingLab: specimenDrawingLab(rich) };
|
|
69
|
+
}
|
|
@@ -8,11 +8,64 @@ export declare function ecologyVisuals<E>(rich: RichSlot<E>): {
|
|
|
8
8
|
PredatorPreyLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
9
9
|
readonly description: RichSlot<E>;
|
|
10
10
|
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
11
|
+
readonly marks?: readonly [{
|
|
12
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
13
|
+
} | {
|
|
14
|
+
readonly attrs: {
|
|
15
|
+
readonly href: string;
|
|
16
|
+
};
|
|
17
|
+
readonly type: "link";
|
|
18
|
+
} | {
|
|
19
|
+
readonly attrs: {
|
|
20
|
+
readonly variant: "success" | "warning" | null;
|
|
21
|
+
};
|
|
22
|
+
readonly type: "highlight";
|
|
23
|
+
}, ...({
|
|
24
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
25
|
+
} | {
|
|
26
|
+
readonly attrs: {
|
|
27
|
+
readonly href: string;
|
|
28
|
+
};
|
|
29
|
+
readonly type: "link";
|
|
30
|
+
} | {
|
|
31
|
+
readonly attrs: {
|
|
32
|
+
readonly variant: "success" | "warning" | null;
|
|
33
|
+
};
|
|
34
|
+
readonly type: "highlight";
|
|
35
|
+
})[]];
|
|
36
|
+
readonly text: string;
|
|
37
|
+
readonly type: "text";
|
|
38
|
+
} | {
|
|
11
39
|
readonly attrs: {
|
|
12
40
|
readonly latex: string;
|
|
13
41
|
};
|
|
42
|
+
readonly marks?: readonly [{
|
|
43
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
44
|
+
} | {
|
|
45
|
+
readonly attrs: {
|
|
46
|
+
readonly href: string;
|
|
47
|
+
};
|
|
48
|
+
readonly type: "link";
|
|
49
|
+
} | {
|
|
50
|
+
readonly attrs: {
|
|
51
|
+
readonly variant: "success" | "warning" | null;
|
|
52
|
+
};
|
|
53
|
+
readonly type: "highlight";
|
|
54
|
+
}, ...({
|
|
55
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
56
|
+
} | {
|
|
57
|
+
readonly attrs: {
|
|
58
|
+
readonly href: string;
|
|
59
|
+
};
|
|
60
|
+
readonly type: "link";
|
|
61
|
+
} | {
|
|
62
|
+
readonly attrs: {
|
|
63
|
+
readonly variant: "success" | "warning" | null;
|
|
64
|
+
};
|
|
65
|
+
readonly type: "highlight";
|
|
66
|
+
})[]];
|
|
14
67
|
readonly type: "mathInline";
|
|
15
|
-
}
|
|
68
|
+
}, ...({
|
|
16
69
|
readonly marks?: readonly [{
|
|
17
70
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
18
71
|
} | {
|
|
@@ -40,12 +93,10 @@ export declare function ecologyVisuals<E>(rich: RichSlot<E>): {
|
|
|
40
93
|
})[]];
|
|
41
94
|
readonly text: string;
|
|
42
95
|
readonly type: "text";
|
|
43
|
-
}
|
|
96
|
+
} | {
|
|
44
97
|
readonly attrs: {
|
|
45
98
|
readonly latex: string;
|
|
46
99
|
};
|
|
47
|
-
readonly type: "mathInline";
|
|
48
|
-
} | {
|
|
49
100
|
readonly marks?: readonly [{
|
|
50
101
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
51
102
|
} | {
|
|
@@ -71,8 +122,7 @@ export declare function ecologyVisuals<E>(rich: RichSlot<E>): {
|
|
|
71
122
|
};
|
|
72
123
|
readonly type: "highlight";
|
|
73
124
|
})[]];
|
|
74
|
-
readonly
|
|
75
|
-
readonly type: "text";
|
|
125
|
+
readonly type: "mathInline";
|
|
76
126
|
})[]], E, never, never>>;
|
|
77
127
|
readonly title: RichSlot<E>;
|
|
78
128
|
readonly capacity: Schema.optionalKey<Schema.Finite>;
|
|
@@ -88,11 +138,64 @@ export declare function ecologyVisuals<E>(rich: RichSlot<E>): {
|
|
|
88
138
|
EpidemicSpreadLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
89
139
|
readonly description: RichSlot<E>;
|
|
90
140
|
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
141
|
+
readonly marks?: readonly [{
|
|
142
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
143
|
+
} | {
|
|
144
|
+
readonly attrs: {
|
|
145
|
+
readonly href: string;
|
|
146
|
+
};
|
|
147
|
+
readonly type: "link";
|
|
148
|
+
} | {
|
|
149
|
+
readonly attrs: {
|
|
150
|
+
readonly variant: "success" | "warning" | null;
|
|
151
|
+
};
|
|
152
|
+
readonly type: "highlight";
|
|
153
|
+
}, ...({
|
|
154
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
155
|
+
} | {
|
|
156
|
+
readonly attrs: {
|
|
157
|
+
readonly href: string;
|
|
158
|
+
};
|
|
159
|
+
readonly type: "link";
|
|
160
|
+
} | {
|
|
161
|
+
readonly attrs: {
|
|
162
|
+
readonly variant: "success" | "warning" | null;
|
|
163
|
+
};
|
|
164
|
+
readonly type: "highlight";
|
|
165
|
+
})[]];
|
|
166
|
+
readonly text: string;
|
|
167
|
+
readonly type: "text";
|
|
168
|
+
} | {
|
|
91
169
|
readonly attrs: {
|
|
92
170
|
readonly latex: string;
|
|
93
171
|
};
|
|
172
|
+
readonly marks?: readonly [{
|
|
173
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
174
|
+
} | {
|
|
175
|
+
readonly attrs: {
|
|
176
|
+
readonly href: string;
|
|
177
|
+
};
|
|
178
|
+
readonly type: "link";
|
|
179
|
+
} | {
|
|
180
|
+
readonly attrs: {
|
|
181
|
+
readonly variant: "success" | "warning" | null;
|
|
182
|
+
};
|
|
183
|
+
readonly type: "highlight";
|
|
184
|
+
}, ...({
|
|
185
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
186
|
+
} | {
|
|
187
|
+
readonly attrs: {
|
|
188
|
+
readonly href: string;
|
|
189
|
+
};
|
|
190
|
+
readonly type: "link";
|
|
191
|
+
} | {
|
|
192
|
+
readonly attrs: {
|
|
193
|
+
readonly variant: "success" | "warning" | null;
|
|
194
|
+
};
|
|
195
|
+
readonly type: "highlight";
|
|
196
|
+
})[]];
|
|
94
197
|
readonly type: "mathInline";
|
|
95
|
-
}
|
|
198
|
+
}, ...({
|
|
96
199
|
readonly marks?: readonly [{
|
|
97
200
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
98
201
|
} | {
|
|
@@ -120,12 +223,10 @@ export declare function ecologyVisuals<E>(rich: RichSlot<E>): {
|
|
|
120
223
|
})[]];
|
|
121
224
|
readonly text: string;
|
|
122
225
|
readonly type: "text";
|
|
123
|
-
}
|
|
226
|
+
} | {
|
|
124
227
|
readonly attrs: {
|
|
125
228
|
readonly latex: string;
|
|
126
229
|
};
|
|
127
|
-
readonly type: "mathInline";
|
|
128
|
-
} | {
|
|
129
230
|
readonly marks?: readonly [{
|
|
130
231
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
131
232
|
} | {
|
|
@@ -151,8 +252,7 @@ export declare function ecologyVisuals<E>(rich: RichSlot<E>): {
|
|
|
151
252
|
};
|
|
152
253
|
readonly type: "highlight";
|
|
153
254
|
})[]];
|
|
154
|
-
readonly
|
|
155
|
-
readonly type: "text";
|
|
255
|
+
readonly type: "mathInline";
|
|
156
256
|
})[]], E, never, never>>;
|
|
157
257
|
readonly title: RichSlot<E>;
|
|
158
258
|
readonly labels: Schema.Struct<{
|
|
@@ -179,11 +279,64 @@ export declare function ecologyVisuals<E>(rich: RichSlot<E>): {
|
|
|
179
279
|
HyphaeDecayLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
180
280
|
readonly description: RichSlot<E>;
|
|
181
281
|
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
282
|
+
readonly marks?: readonly [{
|
|
283
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
284
|
+
} | {
|
|
285
|
+
readonly attrs: {
|
|
286
|
+
readonly href: string;
|
|
287
|
+
};
|
|
288
|
+
readonly type: "link";
|
|
289
|
+
} | {
|
|
290
|
+
readonly attrs: {
|
|
291
|
+
readonly variant: "success" | "warning" | null;
|
|
292
|
+
};
|
|
293
|
+
readonly type: "highlight";
|
|
294
|
+
}, ...({
|
|
295
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
296
|
+
} | {
|
|
297
|
+
readonly attrs: {
|
|
298
|
+
readonly href: string;
|
|
299
|
+
};
|
|
300
|
+
readonly type: "link";
|
|
301
|
+
} | {
|
|
302
|
+
readonly attrs: {
|
|
303
|
+
readonly variant: "success" | "warning" | null;
|
|
304
|
+
};
|
|
305
|
+
readonly type: "highlight";
|
|
306
|
+
})[]];
|
|
307
|
+
readonly text: string;
|
|
308
|
+
readonly type: "text";
|
|
309
|
+
} | {
|
|
182
310
|
readonly attrs: {
|
|
183
311
|
readonly latex: string;
|
|
184
312
|
};
|
|
313
|
+
readonly marks?: readonly [{
|
|
314
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
315
|
+
} | {
|
|
316
|
+
readonly attrs: {
|
|
317
|
+
readonly href: string;
|
|
318
|
+
};
|
|
319
|
+
readonly type: "link";
|
|
320
|
+
} | {
|
|
321
|
+
readonly attrs: {
|
|
322
|
+
readonly variant: "success" | "warning" | null;
|
|
323
|
+
};
|
|
324
|
+
readonly type: "highlight";
|
|
325
|
+
}, ...({
|
|
326
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
327
|
+
} | {
|
|
328
|
+
readonly attrs: {
|
|
329
|
+
readonly href: string;
|
|
330
|
+
};
|
|
331
|
+
readonly type: "link";
|
|
332
|
+
} | {
|
|
333
|
+
readonly attrs: {
|
|
334
|
+
readonly variant: "success" | "warning" | null;
|
|
335
|
+
};
|
|
336
|
+
readonly type: "highlight";
|
|
337
|
+
})[]];
|
|
185
338
|
readonly type: "mathInline";
|
|
186
|
-
}
|
|
339
|
+
}, ...({
|
|
187
340
|
readonly marks?: readonly [{
|
|
188
341
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
189
342
|
} | {
|
|
@@ -211,12 +364,10 @@ export declare function ecologyVisuals<E>(rich: RichSlot<E>): {
|
|
|
211
364
|
})[]];
|
|
212
365
|
readonly text: string;
|
|
213
366
|
readonly type: "text";
|
|
214
|
-
}
|
|
367
|
+
} | {
|
|
215
368
|
readonly attrs: {
|
|
216
369
|
readonly latex: string;
|
|
217
370
|
};
|
|
218
|
-
readonly type: "mathInline";
|
|
219
|
-
} | {
|
|
220
371
|
readonly marks?: readonly [{
|
|
221
372
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
222
373
|
} | {
|
|
@@ -242,8 +393,7 @@ export declare function ecologyVisuals<E>(rich: RichSlot<E>): {
|
|
|
242
393
|
};
|
|
243
394
|
readonly type: "highlight";
|
|
244
395
|
})[]];
|
|
245
|
-
readonly
|
|
246
|
-
readonly type: "text";
|
|
396
|
+
readonly type: "mathInline";
|
|
247
397
|
})[]], E, never, never>>;
|
|
248
398
|
readonly title: RichSlot<E>;
|
|
249
399
|
readonly labels: Schema.Struct<{
|
|
@@ -258,11 +408,64 @@ export declare function ecologyVisuals<E>(rich: RichSlot<E>): {
|
|
|
258
408
|
AntibodyNeutralizeLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
259
409
|
readonly description: RichSlot<E>;
|
|
260
410
|
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
411
|
+
readonly marks?: readonly [{
|
|
412
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
413
|
+
} | {
|
|
414
|
+
readonly attrs: {
|
|
415
|
+
readonly href: string;
|
|
416
|
+
};
|
|
417
|
+
readonly type: "link";
|
|
418
|
+
} | {
|
|
419
|
+
readonly attrs: {
|
|
420
|
+
readonly variant: "success" | "warning" | null;
|
|
421
|
+
};
|
|
422
|
+
readonly type: "highlight";
|
|
423
|
+
}, ...({
|
|
424
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
425
|
+
} | {
|
|
426
|
+
readonly attrs: {
|
|
427
|
+
readonly href: string;
|
|
428
|
+
};
|
|
429
|
+
readonly type: "link";
|
|
430
|
+
} | {
|
|
431
|
+
readonly attrs: {
|
|
432
|
+
readonly variant: "success" | "warning" | null;
|
|
433
|
+
};
|
|
434
|
+
readonly type: "highlight";
|
|
435
|
+
})[]];
|
|
436
|
+
readonly text: string;
|
|
437
|
+
readonly type: "text";
|
|
438
|
+
} | {
|
|
261
439
|
readonly attrs: {
|
|
262
440
|
readonly latex: string;
|
|
263
441
|
};
|
|
442
|
+
readonly marks?: readonly [{
|
|
443
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
444
|
+
} | {
|
|
445
|
+
readonly attrs: {
|
|
446
|
+
readonly href: string;
|
|
447
|
+
};
|
|
448
|
+
readonly type: "link";
|
|
449
|
+
} | {
|
|
450
|
+
readonly attrs: {
|
|
451
|
+
readonly variant: "success" | "warning" | null;
|
|
452
|
+
};
|
|
453
|
+
readonly type: "highlight";
|
|
454
|
+
}, ...({
|
|
455
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
456
|
+
} | {
|
|
457
|
+
readonly attrs: {
|
|
458
|
+
readonly href: string;
|
|
459
|
+
};
|
|
460
|
+
readonly type: "link";
|
|
461
|
+
} | {
|
|
462
|
+
readonly attrs: {
|
|
463
|
+
readonly variant: "success" | "warning" | null;
|
|
464
|
+
};
|
|
465
|
+
readonly type: "highlight";
|
|
466
|
+
})[]];
|
|
264
467
|
readonly type: "mathInline";
|
|
265
|
-
}
|
|
468
|
+
}, ...({
|
|
266
469
|
readonly marks?: readonly [{
|
|
267
470
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
268
471
|
} | {
|
|
@@ -290,12 +493,10 @@ export declare function ecologyVisuals<E>(rich: RichSlot<E>): {
|
|
|
290
493
|
})[]];
|
|
291
494
|
readonly text: string;
|
|
292
495
|
readonly type: "text";
|
|
293
|
-
}
|
|
496
|
+
} | {
|
|
294
497
|
readonly attrs: {
|
|
295
498
|
readonly latex: string;
|
|
296
499
|
};
|
|
297
|
-
readonly type: "mathInline";
|
|
298
|
-
} | {
|
|
299
500
|
readonly marks?: readonly [{
|
|
300
501
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
301
502
|
} | {
|
|
@@ -321,8 +522,7 @@ export declare function ecologyVisuals<E>(rich: RichSlot<E>): {
|
|
|
321
522
|
};
|
|
322
523
|
readonly type: "highlight";
|
|
323
524
|
})[]];
|
|
324
|
-
readonly
|
|
325
|
-
readonly type: "text";
|
|
525
|
+
readonly type: "mathInline";
|
|
326
526
|
})[]], E, never, never>>;
|
|
327
527
|
readonly title: RichSlot<E>;
|
|
328
528
|
readonly labels: Schema.Struct<{
|