@nakafa/aksara-contracts 8.10.0 → 8.13.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/visual/biology/binomial.d.ts +139 -0
- package/dist/visual/biology/binomial.js +46 -0
- package/dist/visual/biology/bone.d.ts +141 -0
- package/dist/visual/biology/bone.js +46 -0
- package/dist/visual/biology/chromosome.d.ts +139 -0
- package/dist/visual/biology/chromosome.js +42 -0
- 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/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/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/leaf.d.ts +436 -0
- package/dist/visual/biology/leaf.js +151 -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/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/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/taxon.d.ts +138 -0
- package/dist/visual/biology/taxon.js +50 -0
- package/dist/visual/biology/tissue.d.ts +424 -0
- package/dist/visual/biology/tissue.js +140 -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/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/card.d.ts +11 -0
- package/dist/visual/card.js +17 -1
- package/dist/visual/catalog.d.ts +6886 -754
- package/dist/visual/catalog.js +72 -0
- package/dist/visual/chemistry/equilibrium.d.ts +449 -0
- package/dist/visual/chemistry/equilibrium.js +135 -0
- package/dist/visual/mathematics/argument.d.ts +226 -0
- package/dist/visual/mathematics/argument.js +150 -0
- package/dist/visual/mathematics/counterexample.d.ts +340 -0
- package/dist/visual/mathematics/counterexample.js +157 -0
- package/package.json +1 -1
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import type { RichSlot } from "#contracts/visual/card";
|
|
3
|
+
/** The taxon lab. The shared ranks are shown as the learner compares; no prop is answer state. */
|
|
4
|
+
export declare function taxonVisuals<E>(rich: RichSlot<E>): {
|
|
5
|
+
TaxonRankLab: 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 count: RichSlot<E>;
|
|
127
|
+
readonly first: Schema.Trimmed;
|
|
128
|
+
readonly none: RichSlot<E>;
|
|
129
|
+
readonly organisms: Schema.$Record<Schema.Literals<readonly ["tiger", "leopard", "leopardCat", "sunBear", "tapir", "hornbill", "birdwing", "padi"]>, Schema.optionalKey<Schema.Trimmed>>;
|
|
130
|
+
readonly ranks: Schema.$Record<Schema.Literals<readonly ["kingdom", "phylum", "class", "order", "family", "genus", "species"]>, Schema.Trimmed>;
|
|
131
|
+
readonly second: Schema.Trimmed;
|
|
132
|
+
readonly shared: RichSlot<E>;
|
|
133
|
+
readonly view: Schema.Trimmed;
|
|
134
|
+
}>;
|
|
135
|
+
readonly organisms: Schema.NonEmptyArray<Schema.Literals<readonly ["tiger", "leopard", "leopardCat", "sunBear", "tapir", "hornbill", "birdwing", "padi"]>>;
|
|
136
|
+
readonly pair: Schema.Tuple<readonly [Schema.Literals<readonly ["tiger", "leopard", "leopardCat", "sunBear", "tapir", "hornbill", "birdwing", "padi"]>, Schema.Literals<readonly ["tiger", "leopard", "leopardCat", "sunBear", "tapir", "hornbill", "birdwing", "padi"]>]>;
|
|
137
|
+
}>, "figure">;
|
|
138
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
/**
|
|
5
|
+
* Organisms whose full classification from kingdom to species is cited data
|
|
6
|
+
* in the renderer's model: four cats and bears that share more or fewer ranks,
|
|
7
|
+
* the Malayan tapir, the rhinoceros hornbill, Rajah Brooke's birdwing and rice.
|
|
8
|
+
*/
|
|
9
|
+
const ORGANISMS = [
|
|
10
|
+
"tiger",
|
|
11
|
+
"leopard",
|
|
12
|
+
"leopardCat",
|
|
13
|
+
"sunBear",
|
|
14
|
+
"tapir",
|
|
15
|
+
"hornbill",
|
|
16
|
+
"birdwing",
|
|
17
|
+
"padi",
|
|
18
|
+
];
|
|
19
|
+
const OrganismSchema = Schema.Literals(ORGANISMS);
|
|
20
|
+
/**
|
|
21
|
+
* Props of `TaxonRankLab`: seven nested trays from kingdom down to species,
|
|
22
|
+
* holding small models of `organisms` (each once). The learner picks two of
|
|
23
|
+
* them, starting with `pair`, and the trays they share light up; the
|
|
24
|
+
* readouts give the lowest rank they share and how many ranks that is.
|
|
25
|
+
*/
|
|
26
|
+
function taxonRankLab(rich) {
|
|
27
|
+
return figure(Schema.Struct({
|
|
28
|
+
...cardFields(rich),
|
|
29
|
+
labels: Schema.Struct({
|
|
30
|
+
count: rich,
|
|
31
|
+
first: TextSchema,
|
|
32
|
+
none: rich,
|
|
33
|
+
organisms: byPickedIds(ORGANISMS, TextSchema),
|
|
34
|
+
ranks: byIds(["kingdom", "phylum", "class", "order", "family", "genus", "species"], TextSchema),
|
|
35
|
+
second: TextSchema,
|
|
36
|
+
shared: rich,
|
|
37
|
+
view: TextSchema,
|
|
38
|
+
}),
|
|
39
|
+
organisms: Schema.NonEmptyArray(OrganismSchema).check(Schema.isUnique()),
|
|
40
|
+
pair: Schema.Tuple([OrganismSchema, OrganismSchema]),
|
|
41
|
+
}).check(Schema.makeFilter(({ labels, organisms, pair }) => namesEach(organisms, labels.organisms) &&
|
|
42
|
+
pair[0] !== pair[1] &&
|
|
43
|
+
Arr.every(pair, (organism) => Arr.contains(organisms, organism)), {
|
|
44
|
+
message: "Expected a name for every organism shown, and a starting pair of two different organisms from them.",
|
|
45
|
+
})));
|
|
46
|
+
}
|
|
47
|
+
/** The taxon lab. The shared ranks are shown as the learner compares; no prop is answer state. */
|
|
48
|
+
export function taxonVisuals(rich) {
|
|
49
|
+
return { TaxonRankLab: taxonRankLab(rich) };
|
|
50
|
+
}
|
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import type { RichSlot } from "#contracts/visual/card";
|
|
3
|
+
/**
|
|
4
|
+
* Plant tissue organisation and growth labs covering meristematic vs permanent
|
|
5
|
+
* anatomy, primary and secondary growth zones, and sigmoid dry-mass curves.
|
|
6
|
+
*/
|
|
7
|
+
export declare function tissueVisuals<E>(rich: RichSlot<E>): {
|
|
8
|
+
PlantGrowthCurveLab: 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 labels: Schema.Struct<{
|
|
129
|
+
readonly dryMass: RichSlot<E>;
|
|
130
|
+
readonly phase: Schema.optionalKey<RichSlot<E>>;
|
|
131
|
+
readonly phases: Schema.$Record<Schema.Literals<readonly ["lag", "exponential", "slowing", "stationary", "senescence"]>, Schema.Struct<{
|
|
132
|
+
readonly detail: RichSlot<E>;
|
|
133
|
+
readonly name: Schema.Trimmed;
|
|
134
|
+
}>>;
|
|
135
|
+
readonly rate: RichSlot<E>;
|
|
136
|
+
readonly time: Schema.Trimmed;
|
|
137
|
+
readonly type: Schema.Trimmed;
|
|
138
|
+
readonly types: Schema.$Record<Schema.Literals<readonly ["annual", "biennial", "perennial"]>, Schema.optionalKey<Schema.Trimmed>>;
|
|
139
|
+
readonly view: Schema.Trimmed;
|
|
140
|
+
}>;
|
|
141
|
+
readonly types: Schema.NonEmptyArray<Schema.Literals<readonly ["annual", "biennial", "perennial"]>>;
|
|
142
|
+
}>, "figure">;
|
|
143
|
+
PlantTissueAnatomyLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
144
|
+
readonly description: RichSlot<E>;
|
|
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
|
+
} | {
|
|
174
|
+
readonly attrs: {
|
|
175
|
+
readonly latex: string;
|
|
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
|
+
})[]];
|
|
202
|
+
readonly type: "mathInline";
|
|
203
|
+
}, ...({
|
|
204
|
+
readonly marks?: readonly [{
|
|
205
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
206
|
+
} | {
|
|
207
|
+
readonly attrs: {
|
|
208
|
+
readonly href: string;
|
|
209
|
+
};
|
|
210
|
+
readonly type: "link";
|
|
211
|
+
} | {
|
|
212
|
+
readonly attrs: {
|
|
213
|
+
readonly variant: "success" | "warning" | null;
|
|
214
|
+
};
|
|
215
|
+
readonly type: "highlight";
|
|
216
|
+
}, ...({
|
|
217
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
218
|
+
} | {
|
|
219
|
+
readonly attrs: {
|
|
220
|
+
readonly href: string;
|
|
221
|
+
};
|
|
222
|
+
readonly type: "link";
|
|
223
|
+
} | {
|
|
224
|
+
readonly attrs: {
|
|
225
|
+
readonly variant: "success" | "warning" | null;
|
|
226
|
+
};
|
|
227
|
+
readonly type: "highlight";
|
|
228
|
+
})[]];
|
|
229
|
+
readonly text: string;
|
|
230
|
+
readonly type: "text";
|
|
231
|
+
} | {
|
|
232
|
+
readonly attrs: {
|
|
233
|
+
readonly latex: string;
|
|
234
|
+
};
|
|
235
|
+
readonly marks?: readonly [{
|
|
236
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
237
|
+
} | {
|
|
238
|
+
readonly attrs: {
|
|
239
|
+
readonly href: string;
|
|
240
|
+
};
|
|
241
|
+
readonly type: "link";
|
|
242
|
+
} | {
|
|
243
|
+
readonly attrs: {
|
|
244
|
+
readonly variant: "success" | "warning" | null;
|
|
245
|
+
};
|
|
246
|
+
readonly type: "highlight";
|
|
247
|
+
}, ...({
|
|
248
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
249
|
+
} | {
|
|
250
|
+
readonly attrs: {
|
|
251
|
+
readonly href: string;
|
|
252
|
+
};
|
|
253
|
+
readonly type: "link";
|
|
254
|
+
} | {
|
|
255
|
+
readonly attrs: {
|
|
256
|
+
readonly variant: "success" | "warning" | null;
|
|
257
|
+
};
|
|
258
|
+
readonly type: "highlight";
|
|
259
|
+
})[]];
|
|
260
|
+
readonly type: "mathInline";
|
|
261
|
+
})[]], E, never, never>>;
|
|
262
|
+
readonly title: RichSlot<E>;
|
|
263
|
+
readonly labels: Schema.Struct<{
|
|
264
|
+
readonly function: Schema.optionalKey<RichSlot<E>>;
|
|
265
|
+
readonly parts: Schema.$Record<Schema.Literals<readonly ["wall", "lignin", "vacuole", "nucleus", "lumen", "sievePlate", "companion"]>, Schema.Trimmed>;
|
|
266
|
+
readonly status: Schema.optionalKey<RichSlot<E>>;
|
|
267
|
+
readonly statuses: Schema.$Record<Schema.Literals<readonly ["living", "dead"]>, Schema.Trimmed>;
|
|
268
|
+
readonly tissue: Schema.Trimmed;
|
|
269
|
+
readonly tissues: Schema.$Record<Schema.Literals<readonly ["meristem", "epidermis", "parenchyma", "collenchyma", "sclerenchyma", "xylem", "phloem"]>, Schema.optionalKey<Schema.Struct<{
|
|
270
|
+
readonly name: Schema.Trimmed;
|
|
271
|
+
readonly role: RichSlot<E>;
|
|
272
|
+
readonly wall: RichSlot<E>;
|
|
273
|
+
}>>>;
|
|
274
|
+
readonly view: Schema.Trimmed;
|
|
275
|
+
readonly wall: RichSlot<E>;
|
|
276
|
+
}>;
|
|
277
|
+
readonly tissues: Schema.NonEmptyArray<Schema.Literals<readonly ["meristem", "epidermis", "parenchyma", "collenchyma", "sclerenchyma", "xylem", "phloem"]>>;
|
|
278
|
+
}>, "figure">;
|
|
279
|
+
RootShootGrowthZoneLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
280
|
+
readonly description: RichSlot<E>;
|
|
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
|
+
} | {
|
|
310
|
+
readonly attrs: {
|
|
311
|
+
readonly latex: string;
|
|
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
|
+
})[]];
|
|
338
|
+
readonly type: "mathInline";
|
|
339
|
+
}, ...({
|
|
340
|
+
readonly marks?: readonly [{
|
|
341
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
342
|
+
} | {
|
|
343
|
+
readonly attrs: {
|
|
344
|
+
readonly href: string;
|
|
345
|
+
};
|
|
346
|
+
readonly type: "link";
|
|
347
|
+
} | {
|
|
348
|
+
readonly attrs: {
|
|
349
|
+
readonly variant: "success" | "warning" | null;
|
|
350
|
+
};
|
|
351
|
+
readonly type: "highlight";
|
|
352
|
+
}, ...({
|
|
353
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
354
|
+
} | {
|
|
355
|
+
readonly attrs: {
|
|
356
|
+
readonly href: string;
|
|
357
|
+
};
|
|
358
|
+
readonly type: "link";
|
|
359
|
+
} | {
|
|
360
|
+
readonly attrs: {
|
|
361
|
+
readonly variant: "success" | "warning" | null;
|
|
362
|
+
};
|
|
363
|
+
readonly type: "highlight";
|
|
364
|
+
})[]];
|
|
365
|
+
readonly text: string;
|
|
366
|
+
readonly type: "text";
|
|
367
|
+
} | {
|
|
368
|
+
readonly attrs: {
|
|
369
|
+
readonly latex: string;
|
|
370
|
+
};
|
|
371
|
+
readonly marks?: readonly [{
|
|
372
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
373
|
+
} | {
|
|
374
|
+
readonly attrs: {
|
|
375
|
+
readonly href: string;
|
|
376
|
+
};
|
|
377
|
+
readonly type: "link";
|
|
378
|
+
} | {
|
|
379
|
+
readonly attrs: {
|
|
380
|
+
readonly variant: "success" | "warning" | null;
|
|
381
|
+
};
|
|
382
|
+
readonly type: "highlight";
|
|
383
|
+
}, ...({
|
|
384
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
385
|
+
} | {
|
|
386
|
+
readonly attrs: {
|
|
387
|
+
readonly href: string;
|
|
388
|
+
};
|
|
389
|
+
readonly type: "link";
|
|
390
|
+
} | {
|
|
391
|
+
readonly attrs: {
|
|
392
|
+
readonly variant: "success" | "warning" | null;
|
|
393
|
+
};
|
|
394
|
+
readonly type: "highlight";
|
|
395
|
+
})[]];
|
|
396
|
+
readonly type: "mathInline";
|
|
397
|
+
})[]], E, never, never>>;
|
|
398
|
+
readonly title: RichSlot<E>;
|
|
399
|
+
readonly labels: Schema.Struct<{
|
|
400
|
+
readonly activity: Schema.optionalKey<RichSlot<E>>;
|
|
401
|
+
readonly mode: Schema.Trimmed;
|
|
402
|
+
readonly modes: Schema.$Record<Schema.Literals<readonly ["primary", "secondary"]>, Schema.optionalKey<Schema.Trimmed>>;
|
|
403
|
+
readonly organ: Schema.Trimmed;
|
|
404
|
+
readonly organs: Schema.$Record<Schema.Literals<readonly ["root", "shoot"]>, Schema.optionalKey<Schema.Trimmed>>;
|
|
405
|
+
readonly parts: Schema.$Record<Schema.Literals<readonly ["rootCap", "apicalMeristem", "vacuole", "rootHair", "vascularCambium", "corkCambium", "secondaryXylem", "secondaryPhloem", "annualRing"]>, Schema.Trimmed>;
|
|
406
|
+
readonly position: Schema.Trimmed;
|
|
407
|
+
readonly rings: Schema.optionalKey<RichSlot<E>>;
|
|
408
|
+
readonly view: Schema.Trimmed;
|
|
409
|
+
readonly year: Schema.Trimmed;
|
|
410
|
+
readonly zone: RichSlot<E>;
|
|
411
|
+
readonly zones: Schema.$Record<Schema.Literals<readonly ["division", "elongation", "differentiation"]>, Schema.Struct<{
|
|
412
|
+
readonly activity: RichSlot<E>;
|
|
413
|
+
readonly name: Schema.Trimmed;
|
|
414
|
+
}>>;
|
|
415
|
+
}>;
|
|
416
|
+
readonly modes: Schema.NonEmptyArray<Schema.Literals<readonly ["primary", "secondary"]>>;
|
|
417
|
+
readonly organs: Schema.NonEmptyArray<Schema.Literals<readonly ["root", "shoot"]>>;
|
|
418
|
+
readonly years: Schema.Struct<{
|
|
419
|
+
readonly max: Schema.Int;
|
|
420
|
+
readonly min: Schema.Int;
|
|
421
|
+
readonly value: Schema.Int;
|
|
422
|
+
}>;
|
|
423
|
+
}>, "figure">;
|
|
424
|
+
};
|