@nakafa/aksara-contracts 8.14.0 → 8.16.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/base.d.ts +785 -0
- package/dist/visual/base.js +13 -0
- package/dist/visual/biology/flower.d.ts +276 -0
- package/dist/visual/biology/flower.js +76 -0
- package/dist/visual/biology/membrane.d.ts +141 -2
- package/dist/visual/biology/membrane.js +44 -2
- package/dist/visual/biology/mendelian.d.ts +410 -0
- package/dist/visual/biology/mendelian.js +107 -0
- package/dist/visual/biology/nutrition.d.ts +410 -0
- package/dist/visual/biology/nutrition.js +112 -0
- package/dist/visual/biology/phytohormone.d.ts +275 -0
- package/dist/visual/biology/phytohormone.js +75 -0
- package/dist/visual/biology/variation.d.ts +421 -0
- package/dist/visual/biology/variation.js +123 -0
- package/dist/visual/biology/vascular.d.ts +425 -0
- package/dist/visual/biology/vascular.js +107 -0
- package/dist/visual/biology.d.ts +12427 -0
- package/dist/visual/biology.js +112 -0
- package/dist/visual/catalog.d.ts +16 -38898
- package/dist/visual/catalog.js +8 -216
- package/dist/visual/chemistry/green.d.ts +282 -0
- package/dist/visual/chemistry/green.js +98 -0
- package/dist/visual/chemistry/groups.d.ts +276 -0
- package/dist/visual/chemistry/groups.js +85 -0
- package/dist/visual/chemistry/industry.d.ts +420 -0
- package/dist/visual/chemistry/industry.js +126 -0
- package/dist/visual/chemistry/materials.d.ts +416 -0
- package/dist/visual/chemistry/materials.js +116 -0
- package/dist/visual/chemistry/organic.d.ts +416 -0
- package/dist/visual/chemistry/organic.js +128 -0
- package/dist/visual/chemistry/polymer.d.ts +422 -0
- package/dist/visual/chemistry/polymer.js +126 -0
- package/dist/visual/chemistry/solution.d.ts +278 -0
- package/dist/visual/chemistry/solution.js +89 -0
- package/dist/visual/chemistry/stoichiometry.d.ts +287 -0
- package/dist/visual/chemistry/stoichiometry.js +83 -0
- package/dist/visual/chemistry.d.ts +8827 -0
- package/dist/visual/chemistry.js +50 -0
- package/dist/visual/mathematics.d.ts +3065 -0
- package/dist/visual/mathematics.js +30 -0
- package/dist/visual/physics.d.ts +17875 -0
- package/dist/visual/physics.js +70 -0
- package/package.json +1 -1
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import type { RichSlot } from "#contracts/visual/card";
|
|
3
|
+
/**
|
|
4
|
+
* Aqueous solution chemistry labs covering pH indicator scales and salt-bridge
|
|
5
|
+
* ion migration in galvanic cells.
|
|
6
|
+
*/
|
|
7
|
+
export declare function solutionVisuals<E>(rich: RichSlot<E>): {
|
|
8
|
+
PhIndicatorScaleLab: 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 indicators: Schema.NonEmptyArray<Schema.Literals<readonly ["universal", "litmus", "phenolphthalein", "methylOrange"]>>;
|
|
129
|
+
readonly labels: Schema.Struct<{
|
|
130
|
+
readonly classification: Schema.optionalKey<RichSlot<E>>;
|
|
131
|
+
readonly indicator: Schema.Trimmed;
|
|
132
|
+
readonly indicators: Schema.$Record<Schema.Literals<readonly ["universal", "litmus", "phenolphthalein", "methylOrange"]>, Schema.optionalKey<Schema.Trimmed>>;
|
|
133
|
+
readonly parts: Schema.$Record<Schema.Literals<readonly ["beaker", "solution", "dropper", "phStrip", "ionCloud"]>, Schema.Trimmed>;
|
|
134
|
+
readonly phValue: Schema.optionalKey<RichSlot<E>>;
|
|
135
|
+
readonly sample: Schema.Trimmed;
|
|
136
|
+
readonly samples: Schema.$Record<Schema.Literals<readonly ["hydrochloricAcid", "vinegar", "pureWater", "bakingSoda", "sodiumHydroxide"]>, Schema.optionalKey<Schema.Struct<{
|
|
137
|
+
readonly formula: RichSlot<E>;
|
|
138
|
+
readonly name: Schema.Trimmed;
|
|
139
|
+
}>>>;
|
|
140
|
+
readonly view: Schema.Trimmed;
|
|
141
|
+
}>;
|
|
142
|
+
readonly samples: Schema.NonEmptyArray<Schema.Literals<readonly ["hydrochloricAcid", "vinegar", "pureWater", "bakingSoda", "sodiumHydroxide"]>>;
|
|
143
|
+
}>, "figure">;
|
|
144
|
+
SaltBridgeIonFlowLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
145
|
+
readonly description: RichSlot<E>;
|
|
146
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
147
|
+
readonly marks?: readonly [{
|
|
148
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
149
|
+
} | {
|
|
150
|
+
readonly attrs: {
|
|
151
|
+
readonly href: string;
|
|
152
|
+
};
|
|
153
|
+
readonly type: "link";
|
|
154
|
+
} | {
|
|
155
|
+
readonly attrs: {
|
|
156
|
+
readonly variant: "success" | "warning" | null;
|
|
157
|
+
};
|
|
158
|
+
readonly type: "highlight";
|
|
159
|
+
}, ...({
|
|
160
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
161
|
+
} | {
|
|
162
|
+
readonly attrs: {
|
|
163
|
+
readonly href: string;
|
|
164
|
+
};
|
|
165
|
+
readonly type: "link";
|
|
166
|
+
} | {
|
|
167
|
+
readonly attrs: {
|
|
168
|
+
readonly variant: "success" | "warning" | null;
|
|
169
|
+
};
|
|
170
|
+
readonly type: "highlight";
|
|
171
|
+
})[]];
|
|
172
|
+
readonly text: string;
|
|
173
|
+
readonly type: "text";
|
|
174
|
+
} | {
|
|
175
|
+
readonly attrs: {
|
|
176
|
+
readonly latex: string;
|
|
177
|
+
};
|
|
178
|
+
readonly marks?: readonly [{
|
|
179
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
180
|
+
} | {
|
|
181
|
+
readonly attrs: {
|
|
182
|
+
readonly href: string;
|
|
183
|
+
};
|
|
184
|
+
readonly type: "link";
|
|
185
|
+
} | {
|
|
186
|
+
readonly attrs: {
|
|
187
|
+
readonly variant: "success" | "warning" | null;
|
|
188
|
+
};
|
|
189
|
+
readonly type: "highlight";
|
|
190
|
+
}, ...({
|
|
191
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
192
|
+
} | {
|
|
193
|
+
readonly attrs: {
|
|
194
|
+
readonly href: string;
|
|
195
|
+
};
|
|
196
|
+
readonly type: "link";
|
|
197
|
+
} | {
|
|
198
|
+
readonly attrs: {
|
|
199
|
+
readonly variant: "success" | "warning" | null;
|
|
200
|
+
};
|
|
201
|
+
readonly type: "highlight";
|
|
202
|
+
})[]];
|
|
203
|
+
readonly type: "mathInline";
|
|
204
|
+
}, ...({
|
|
205
|
+
readonly marks?: readonly [{
|
|
206
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
207
|
+
} | {
|
|
208
|
+
readonly attrs: {
|
|
209
|
+
readonly href: string;
|
|
210
|
+
};
|
|
211
|
+
readonly type: "link";
|
|
212
|
+
} | {
|
|
213
|
+
readonly attrs: {
|
|
214
|
+
readonly variant: "success" | "warning" | null;
|
|
215
|
+
};
|
|
216
|
+
readonly type: "highlight";
|
|
217
|
+
}, ...({
|
|
218
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
219
|
+
} | {
|
|
220
|
+
readonly attrs: {
|
|
221
|
+
readonly href: string;
|
|
222
|
+
};
|
|
223
|
+
readonly type: "link";
|
|
224
|
+
} | {
|
|
225
|
+
readonly attrs: {
|
|
226
|
+
readonly variant: "success" | "warning" | null;
|
|
227
|
+
};
|
|
228
|
+
readonly type: "highlight";
|
|
229
|
+
})[]];
|
|
230
|
+
readonly text: string;
|
|
231
|
+
readonly type: "text";
|
|
232
|
+
} | {
|
|
233
|
+
readonly attrs: {
|
|
234
|
+
readonly latex: string;
|
|
235
|
+
};
|
|
236
|
+
readonly marks?: readonly [{
|
|
237
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
238
|
+
} | {
|
|
239
|
+
readonly attrs: {
|
|
240
|
+
readonly href: string;
|
|
241
|
+
};
|
|
242
|
+
readonly type: "link";
|
|
243
|
+
} | {
|
|
244
|
+
readonly attrs: {
|
|
245
|
+
readonly variant: "success" | "warning" | null;
|
|
246
|
+
};
|
|
247
|
+
readonly type: "highlight";
|
|
248
|
+
}, ...({
|
|
249
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
250
|
+
} | {
|
|
251
|
+
readonly attrs: {
|
|
252
|
+
readonly href: string;
|
|
253
|
+
};
|
|
254
|
+
readonly type: "link";
|
|
255
|
+
} | {
|
|
256
|
+
readonly attrs: {
|
|
257
|
+
readonly variant: "success" | "warning" | null;
|
|
258
|
+
};
|
|
259
|
+
readonly type: "highlight";
|
|
260
|
+
})[]];
|
|
261
|
+
readonly type: "mathInline";
|
|
262
|
+
})[]], E, never, never>>;
|
|
263
|
+
readonly title: RichSlot<E>;
|
|
264
|
+
readonly cells: Schema.NonEmptyArray<Schema.Literals<readonly ["daniell", "copperSilver", "magnesiumCopper"]>>;
|
|
265
|
+
readonly labels: Schema.Struct<{
|
|
266
|
+
readonly cell: Schema.Trimmed;
|
|
267
|
+
readonly cells: Schema.$Record<Schema.Literals<readonly ["daniell", "copperSilver", "magnesiumCopper"]>, Schema.optionalKey<Schema.Struct<{
|
|
268
|
+
readonly emf: RichSlot<E>;
|
|
269
|
+
readonly name: Schema.Trimmed;
|
|
270
|
+
readonly redoxEquation: RichSlot<E>;
|
|
271
|
+
}>>>;
|
|
272
|
+
readonly emf: Schema.optionalKey<RichSlot<E>>;
|
|
273
|
+
readonly parts: Schema.$Record<Schema.Literals<readonly ["anode", "cathode", "saltBridge", "voltmeter", "electronWire", "electrolyte"]>, Schema.Trimmed>;
|
|
274
|
+
readonly redoxEquation: Schema.optionalKey<RichSlot<E>>;
|
|
275
|
+
readonly view: Schema.Trimmed;
|
|
276
|
+
}>;
|
|
277
|
+
}>, "figure">;
|
|
278
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { byIds, byPickedIds, cardFields, namesEach, TextSchema, } from "#contracts/visual/card";
|
|
3
|
+
import { answerAt, figure } from "#contracts/visual/entry";
|
|
4
|
+
const PH_SAMPLES = [
|
|
5
|
+
"hydrochloricAcid",
|
|
6
|
+
"vinegar",
|
|
7
|
+
"pureWater",
|
|
8
|
+
"bakingSoda",
|
|
9
|
+
"sodiumHydroxide",
|
|
10
|
+
];
|
|
11
|
+
const INDICATORS = [
|
|
12
|
+
"universal",
|
|
13
|
+
"litmus",
|
|
14
|
+
"phenolphthalein",
|
|
15
|
+
"methylOrange",
|
|
16
|
+
];
|
|
17
|
+
const GALVANIC_CELLS = ["daniell", "copperSilver", "magnesiumCopper"];
|
|
18
|
+
/**
|
|
19
|
+
* Props of `PhIndicatorScaleLab`: a 3D pH testing bench comparing strong and
|
|
20
|
+
* weak acids, neutral water, and alkalis against universal indicator, litmus,
|
|
21
|
+
* phenolphthalein, and methyl orange. Classification and pH value readouts are
|
|
22
|
+
* optional answer state.
|
|
23
|
+
*/
|
|
24
|
+
function phIndicatorScaleLab(rich) {
|
|
25
|
+
return figure(Schema.Struct({
|
|
26
|
+
...cardFields(rich),
|
|
27
|
+
indicators: Schema.NonEmptyArray(Schema.Literals(INDICATORS)).check(Schema.isUnique()),
|
|
28
|
+
labels: Schema.Struct({
|
|
29
|
+
classification: Schema.optionalKey(rich),
|
|
30
|
+
indicator: TextSchema,
|
|
31
|
+
indicators: byPickedIds(INDICATORS, TextSchema),
|
|
32
|
+
parts: byIds(["beaker", "solution", "dropper", "phStrip", "ionCloud"], TextSchema),
|
|
33
|
+
phValue: Schema.optionalKey(rich),
|
|
34
|
+
sample: TextSchema,
|
|
35
|
+
samples: byPickedIds(PH_SAMPLES, Schema.Struct({
|
|
36
|
+
formula: rich,
|
|
37
|
+
name: TextSchema,
|
|
38
|
+
})),
|
|
39
|
+
view: TextSchema,
|
|
40
|
+
}),
|
|
41
|
+
samples: Schema.NonEmptyArray(Schema.Literals(PH_SAMPLES)).check(Schema.isUnique()),
|
|
42
|
+
}).check(Schema.makeFilter(({ indicators, labels, samples }) => namesEach(samples, labels.samples) &&
|
|
43
|
+
namesEach(indicators, labels.indicators), {
|
|
44
|
+
message: "Expected a name and formula for every pH sample and a name for every indicator shown, and no other.",
|
|
45
|
+
})), answerAt(["labels", "classification"], ["labels", "phValue"]));
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Props of `SaltBridgeIonFlowLab`: a 3D galvanic cell with two half-cell
|
|
49
|
+
* beakers, a salt bridge balancing cation and anion migration, an external
|
|
50
|
+
* electron wire, and a voltmeter. Cell EMF and overall redox equation readouts
|
|
51
|
+
* are optional answer state.
|
|
52
|
+
*/
|
|
53
|
+
function saltBridgeIonFlowLab(rich) {
|
|
54
|
+
return figure(Schema.Struct({
|
|
55
|
+
...cardFields(rich),
|
|
56
|
+
cells: Schema.NonEmptyArray(Schema.Literals(GALVANIC_CELLS)).check(Schema.isUnique()),
|
|
57
|
+
labels: Schema.Struct({
|
|
58
|
+
cell: TextSchema,
|
|
59
|
+
cells: byPickedIds(GALVANIC_CELLS, Schema.Struct({
|
|
60
|
+
emf: rich,
|
|
61
|
+
name: TextSchema,
|
|
62
|
+
redoxEquation: rich,
|
|
63
|
+
})),
|
|
64
|
+
emf: Schema.optionalKey(rich),
|
|
65
|
+
parts: byIds([
|
|
66
|
+
"anode",
|
|
67
|
+
"cathode",
|
|
68
|
+
"saltBridge",
|
|
69
|
+
"voltmeter",
|
|
70
|
+
"electronWire",
|
|
71
|
+
"electrolyte",
|
|
72
|
+
], TextSchema),
|
|
73
|
+
redoxEquation: Schema.optionalKey(rich),
|
|
74
|
+
view: TextSchema,
|
|
75
|
+
}),
|
|
76
|
+
}).check(Schema.makeFilter(({ cells, labels }) => namesEach(cells, labels.cells), {
|
|
77
|
+
message: "Expected a name, EMF, and redox equation for every galvanic cell shown, and no other.",
|
|
78
|
+
})), answerAt(["labels", "emf"], ["labels", "redoxEquation"]));
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Aqueous solution chemistry labs covering pH indicator scales and salt-bridge
|
|
82
|
+
* ion migration in galvanic cells.
|
|
83
|
+
*/
|
|
84
|
+
export function solutionVisuals(rich) {
|
|
85
|
+
return {
|
|
86
|
+
PhIndicatorScaleLab: phIndicatorScaleLab(rich),
|
|
87
|
+
SaltBridgeIonFlowLab: saltBridgeIonFlowLab(rich),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import type { RichSlot } from "#contracts/visual/card";
|
|
3
|
+
/**
|
|
4
|
+
* Quantitative thermochemistry and mole-concept labs covering calorimetry
|
|
5
|
+
* enthalpy measurement and Avogadro molar gas volume.
|
|
6
|
+
*/
|
|
7
|
+
export declare function stoichiometryVisuals<E>(rich: RichSlot<E>): {
|
|
8
|
+
AvogadroGasVolumeLab: 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 conditions: Schema.NonEmptyArray<Schema.Literals<readonly ["stp", "rtp"]>>;
|
|
129
|
+
readonly labels: Schema.Struct<{
|
|
130
|
+
readonly condition: Schema.Trimmed;
|
|
131
|
+
readonly conditions: Schema.$Record<Schema.Literals<readonly ["stp", "rtp"]>, Schema.optionalKey<Schema.Struct<{
|
|
132
|
+
readonly molarVolume: RichSlot<E>;
|
|
133
|
+
readonly name: Schema.Trimmed;
|
|
134
|
+
}>>>;
|
|
135
|
+
readonly gasVolume: Schema.optionalKey<RichSlot<E>>;
|
|
136
|
+
readonly moles: Schema.Trimmed;
|
|
137
|
+
readonly particleCount: Schema.optionalKey<RichSlot<E>>;
|
|
138
|
+
readonly parts: Schema.$Record<Schema.Literals<readonly ["piston", "cylinder", "gasParticles", "volumeScale", "thermometer"]>, Schema.Trimmed>;
|
|
139
|
+
readonly view: Schema.Trimmed;
|
|
140
|
+
}>;
|
|
141
|
+
readonly moles: Schema.Struct<{
|
|
142
|
+
readonly max: Schema.Finite;
|
|
143
|
+
readonly min: Schema.Finite;
|
|
144
|
+
readonly value: Schema.Finite;
|
|
145
|
+
}>;
|
|
146
|
+
}>, "figure">;
|
|
147
|
+
CalorimeterEnthalpyLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
148
|
+
readonly description: RichSlot<E>;
|
|
149
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
150
|
+
readonly marks?: readonly [{
|
|
151
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
152
|
+
} | {
|
|
153
|
+
readonly attrs: {
|
|
154
|
+
readonly href: string;
|
|
155
|
+
};
|
|
156
|
+
readonly type: "link";
|
|
157
|
+
} | {
|
|
158
|
+
readonly attrs: {
|
|
159
|
+
readonly variant: "success" | "warning" | null;
|
|
160
|
+
};
|
|
161
|
+
readonly type: "highlight";
|
|
162
|
+
}, ...({
|
|
163
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
164
|
+
} | {
|
|
165
|
+
readonly attrs: {
|
|
166
|
+
readonly href: string;
|
|
167
|
+
};
|
|
168
|
+
readonly type: "link";
|
|
169
|
+
} | {
|
|
170
|
+
readonly attrs: {
|
|
171
|
+
readonly variant: "success" | "warning" | null;
|
|
172
|
+
};
|
|
173
|
+
readonly type: "highlight";
|
|
174
|
+
})[]];
|
|
175
|
+
readonly text: string;
|
|
176
|
+
readonly type: "text";
|
|
177
|
+
} | {
|
|
178
|
+
readonly attrs: {
|
|
179
|
+
readonly latex: string;
|
|
180
|
+
};
|
|
181
|
+
readonly marks?: readonly [{
|
|
182
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
183
|
+
} | {
|
|
184
|
+
readonly attrs: {
|
|
185
|
+
readonly href: string;
|
|
186
|
+
};
|
|
187
|
+
readonly type: "link";
|
|
188
|
+
} | {
|
|
189
|
+
readonly attrs: {
|
|
190
|
+
readonly variant: "success" | "warning" | null;
|
|
191
|
+
};
|
|
192
|
+
readonly type: "highlight";
|
|
193
|
+
}, ...({
|
|
194
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
195
|
+
} | {
|
|
196
|
+
readonly attrs: {
|
|
197
|
+
readonly href: string;
|
|
198
|
+
};
|
|
199
|
+
readonly type: "link";
|
|
200
|
+
} | {
|
|
201
|
+
readonly attrs: {
|
|
202
|
+
readonly variant: "success" | "warning" | null;
|
|
203
|
+
};
|
|
204
|
+
readonly type: "highlight";
|
|
205
|
+
})[]];
|
|
206
|
+
readonly type: "mathInline";
|
|
207
|
+
}, ...({
|
|
208
|
+
readonly marks?: readonly [{
|
|
209
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
210
|
+
} | {
|
|
211
|
+
readonly attrs: {
|
|
212
|
+
readonly href: string;
|
|
213
|
+
};
|
|
214
|
+
readonly type: "link";
|
|
215
|
+
} | {
|
|
216
|
+
readonly attrs: {
|
|
217
|
+
readonly variant: "success" | "warning" | null;
|
|
218
|
+
};
|
|
219
|
+
readonly type: "highlight";
|
|
220
|
+
}, ...({
|
|
221
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
222
|
+
} | {
|
|
223
|
+
readonly attrs: {
|
|
224
|
+
readonly href: string;
|
|
225
|
+
};
|
|
226
|
+
readonly type: "link";
|
|
227
|
+
} | {
|
|
228
|
+
readonly attrs: {
|
|
229
|
+
readonly variant: "success" | "warning" | null;
|
|
230
|
+
};
|
|
231
|
+
readonly type: "highlight";
|
|
232
|
+
})[]];
|
|
233
|
+
readonly text: string;
|
|
234
|
+
readonly type: "text";
|
|
235
|
+
} | {
|
|
236
|
+
readonly attrs: {
|
|
237
|
+
readonly latex: string;
|
|
238
|
+
};
|
|
239
|
+
readonly marks?: readonly [{
|
|
240
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
241
|
+
} | {
|
|
242
|
+
readonly attrs: {
|
|
243
|
+
readonly href: string;
|
|
244
|
+
};
|
|
245
|
+
readonly type: "link";
|
|
246
|
+
} | {
|
|
247
|
+
readonly attrs: {
|
|
248
|
+
readonly variant: "success" | "warning" | null;
|
|
249
|
+
};
|
|
250
|
+
readonly type: "highlight";
|
|
251
|
+
}, ...({
|
|
252
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
253
|
+
} | {
|
|
254
|
+
readonly attrs: {
|
|
255
|
+
readonly href: string;
|
|
256
|
+
};
|
|
257
|
+
readonly type: "link";
|
|
258
|
+
} | {
|
|
259
|
+
readonly attrs: {
|
|
260
|
+
readonly variant: "success" | "warning" | null;
|
|
261
|
+
};
|
|
262
|
+
readonly type: "highlight";
|
|
263
|
+
})[]];
|
|
264
|
+
readonly type: "mathInline";
|
|
265
|
+
})[]], E, never, never>>;
|
|
266
|
+
readonly title: RichSlot<E>;
|
|
267
|
+
readonly labels: Schema.Struct<{
|
|
268
|
+
readonly deltaH: Schema.optionalKey<RichSlot<E>>;
|
|
269
|
+
readonly moles: Schema.Trimmed;
|
|
270
|
+
readonly parts: Schema.$Record<Schema.Literals<readonly ["cup", "thermometer", "stirrer", "solution", "heatArrow"]>, Schema.Trimmed>;
|
|
271
|
+
readonly reaction: Schema.Trimmed;
|
|
272
|
+
readonly reactions: Schema.$Record<Schema.Literals<readonly ["neutralisation", "displacement", "combustion", "dissolution"]>, Schema.optionalKey<Schema.Struct<{
|
|
273
|
+
readonly enthalpySign: RichSlot<E>;
|
|
274
|
+
readonly name: Schema.Trimmed;
|
|
275
|
+
readonly thermalNote: RichSlot<E>;
|
|
276
|
+
}>>>;
|
|
277
|
+
readonly tempChange: Schema.optionalKey<RichSlot<E>>;
|
|
278
|
+
readonly view: Schema.Trimmed;
|
|
279
|
+
}>;
|
|
280
|
+
readonly moles: Schema.Struct<{
|
|
281
|
+
readonly max: Schema.Finite;
|
|
282
|
+
readonly min: Schema.Finite;
|
|
283
|
+
readonly value: Schema.Finite;
|
|
284
|
+
}>;
|
|
285
|
+
readonly reactions: Schema.NonEmptyArray<Schema.Literals<readonly ["neutralisation", "displacement", "combustion", "dissolution"]>>;
|
|
286
|
+
}>, "figure">;
|
|
287
|
+
};
|