@nakafa/aksara-contracts 8.8.0 → 8.10.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/answer.d.ts +2 -0
- package/dist/assessment/answer.js +5 -3
- package/dist/assessment/choice.d.ts +26 -0
- package/dist/assessment/closure.js +2 -1
- package/dist/assessment/document.d.ts +39 -0
- package/dist/assessment/figure.d.ts +13 -0
- package/dist/assessment/fit.d.ts +16 -2
- package/dist/assessment/fit.js +23 -5
- package/dist/assessment/graphic.d.ts +27 -0
- package/dist/assessment/graphic.js +17 -1
- package/dist/assessment/hash.d.ts +777 -109
- package/dist/assessment/inline.d.ts +53 -0
- package/dist/assessment/inline.js +1 -0
- package/dist/assessment/interaction.d.ts +44 -1
- package/dist/assessment/interaction.js +2 -1
- package/dist/assessment/item.d.ts +500 -37
- package/dist/assessment/item.js +1 -1
- package/dist/assessment/joint.d.ts +4 -3
- package/dist/assessment/joint.js +4 -3
- package/dist/assessment/key.d.ts +138 -0
- package/dist/assessment/key.js +6 -0
- package/dist/assessment/paper.d.ts +1006 -90
- package/dist/assessment/part.d.ts +13 -0
- package/dist/assessment/profile.d.ts +3 -3
- package/dist/assessment/profile.js +4 -4
- package/dist/assessment/rows.d.ts +621 -39
- package/dist/assessment/scoring.d.ts +12 -6
- package/dist/assessment/scoring.js +25 -8
- package/dist/assessment/sketch.d.ts +125 -0
- package/dist/assessment/sketch.js +175 -0
- package/dist/assessment/snapshot.d.ts +1479 -91
- package/dist/assessment/structure.js +4 -4
- package/dist/release/snapshot/data.d.ts +114 -2
- package/dist/release/snapshot/verify.d.ts +621 -39
- package/dist/transport/group.d.ts +342 -6
- package/dist/transport/request.d.ts +4032 -316
- package/dist/transport/snapshot.d.ts +228 -4
- 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/blood.d.ts +56 -6
- package/dist/visual/biology/cell.d.ts +168 -18
- package/dist/visual/biology/climate.d.ts +168 -18
- package/dist/visual/biology/ecology.d.ts +224 -24
- package/dist/visual/biology/heart.d.ts +56 -6
- 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/plant.d.ts +280 -30
- package/dist/visual/biology/synapse.d.ts +56 -6
- package/dist/visual/biology/vessel.d.ts +56 -6
- package/dist/visual/biology/yeast.d.ts +56 -6
- package/dist/visual/card.d.ts +56 -6
- package/dist/visual/catalog.d.ts +16734 -5484
- 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/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/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 +2 -2
|
@@ -5,11 +5,64 @@ export declare function rateVisuals<E>(rich: RichSlot<E>): {
|
|
|
5
5
|
GasRateLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
6
6
|
readonly description: RichSlot<E>;
|
|
7
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
|
+
} | {
|
|
8
36
|
readonly attrs: {
|
|
9
37
|
readonly latex: string;
|
|
10
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
|
+
})[]];
|
|
11
64
|
readonly type: "mathInline";
|
|
12
|
-
}
|
|
65
|
+
}, ...({
|
|
13
66
|
readonly marks?: readonly [{
|
|
14
67
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
15
68
|
} | {
|
|
@@ -37,12 +90,10 @@ export declare function rateVisuals<E>(rich: RichSlot<E>): {
|
|
|
37
90
|
})[]];
|
|
38
91
|
readonly text: string;
|
|
39
92
|
readonly type: "text";
|
|
40
|
-
}
|
|
93
|
+
} | {
|
|
41
94
|
readonly attrs: {
|
|
42
95
|
readonly latex: string;
|
|
43
96
|
};
|
|
44
|
-
readonly type: "mathInline";
|
|
45
|
-
} | {
|
|
46
97
|
readonly marks?: readonly [{
|
|
47
98
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
48
99
|
} | {
|
|
@@ -68,8 +119,7 @@ export declare function rateVisuals<E>(rich: RichSlot<E>): {
|
|
|
68
119
|
};
|
|
69
120
|
readonly type: "highlight";
|
|
70
121
|
})[]];
|
|
71
|
-
readonly
|
|
72
|
-
readonly type: "text";
|
|
122
|
+
readonly type: "mathInline";
|
|
73
123
|
})[]], E, never, never>>;
|
|
74
124
|
readonly title: RichSlot<E>;
|
|
75
125
|
readonly labels: Schema.Struct<{
|
|
@@ -8,11 +8,64 @@ export declare function reactionVisuals<E>(rich: RichSlot<E>): {
|
|
|
8
8
|
ChemicalReactionCharacteristicsLab: 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 reactionVisuals<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 reactionVisuals<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 labels: Schema.Struct<{
|
|
@@ -95,11 +145,64 @@ export declare function reactionVisuals<E>(rich: RichSlot<E>): {
|
|
|
95
145
|
ChemicalReactionTypesLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
96
146
|
readonly description: RichSlot<E>;
|
|
97
147
|
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
148
|
+
readonly marks?: readonly [{
|
|
149
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
150
|
+
} | {
|
|
151
|
+
readonly attrs: {
|
|
152
|
+
readonly href: string;
|
|
153
|
+
};
|
|
154
|
+
readonly type: "link";
|
|
155
|
+
} | {
|
|
156
|
+
readonly attrs: {
|
|
157
|
+
readonly variant: "success" | "warning" | null;
|
|
158
|
+
};
|
|
159
|
+
readonly type: "highlight";
|
|
160
|
+
}, ...({
|
|
161
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
162
|
+
} | {
|
|
163
|
+
readonly attrs: {
|
|
164
|
+
readonly href: string;
|
|
165
|
+
};
|
|
166
|
+
readonly type: "link";
|
|
167
|
+
} | {
|
|
168
|
+
readonly attrs: {
|
|
169
|
+
readonly variant: "success" | "warning" | null;
|
|
170
|
+
};
|
|
171
|
+
readonly type: "highlight";
|
|
172
|
+
})[]];
|
|
173
|
+
readonly text: string;
|
|
174
|
+
readonly type: "text";
|
|
175
|
+
} | {
|
|
98
176
|
readonly attrs: {
|
|
99
177
|
readonly latex: string;
|
|
100
178
|
};
|
|
179
|
+
readonly marks?: readonly [{
|
|
180
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
181
|
+
} | {
|
|
182
|
+
readonly attrs: {
|
|
183
|
+
readonly href: string;
|
|
184
|
+
};
|
|
185
|
+
readonly type: "link";
|
|
186
|
+
} | {
|
|
187
|
+
readonly attrs: {
|
|
188
|
+
readonly variant: "success" | "warning" | null;
|
|
189
|
+
};
|
|
190
|
+
readonly type: "highlight";
|
|
191
|
+
}, ...({
|
|
192
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
193
|
+
} | {
|
|
194
|
+
readonly attrs: {
|
|
195
|
+
readonly href: string;
|
|
196
|
+
};
|
|
197
|
+
readonly type: "link";
|
|
198
|
+
} | {
|
|
199
|
+
readonly attrs: {
|
|
200
|
+
readonly variant: "success" | "warning" | null;
|
|
201
|
+
};
|
|
202
|
+
readonly type: "highlight";
|
|
203
|
+
})[]];
|
|
101
204
|
readonly type: "mathInline";
|
|
102
|
-
}
|
|
205
|
+
}, ...({
|
|
103
206
|
readonly marks?: readonly [{
|
|
104
207
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
105
208
|
} | {
|
|
@@ -127,12 +230,10 @@ export declare function reactionVisuals<E>(rich: RichSlot<E>): {
|
|
|
127
230
|
})[]];
|
|
128
231
|
readonly text: string;
|
|
129
232
|
readonly type: "text";
|
|
130
|
-
}
|
|
233
|
+
} | {
|
|
131
234
|
readonly attrs: {
|
|
132
235
|
readonly latex: string;
|
|
133
236
|
};
|
|
134
|
-
readonly type: "mathInline";
|
|
135
|
-
} | {
|
|
136
237
|
readonly marks?: readonly [{
|
|
137
238
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
138
239
|
} | {
|
|
@@ -158,8 +259,7 @@ export declare function reactionVisuals<E>(rich: RichSlot<E>): {
|
|
|
158
259
|
};
|
|
159
260
|
readonly type: "highlight";
|
|
160
261
|
})[]];
|
|
161
|
-
readonly
|
|
162
|
-
readonly type: "text";
|
|
262
|
+
readonly type: "mathInline";
|
|
163
263
|
})[]], E, never, never>>;
|
|
164
264
|
readonly title: RichSlot<E>;
|
|
165
265
|
readonly labels: Schema.Struct<{
|
|
@@ -184,11 +284,64 @@ export declare function reactionVisuals<E>(rich: RichSlot<E>): {
|
|
|
184
284
|
MethaneCombustionEquationLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
185
285
|
readonly description: RichSlot<E>;
|
|
186
286
|
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
287
|
+
readonly marks?: readonly [{
|
|
288
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
289
|
+
} | {
|
|
290
|
+
readonly attrs: {
|
|
291
|
+
readonly href: string;
|
|
292
|
+
};
|
|
293
|
+
readonly type: "link";
|
|
294
|
+
} | {
|
|
295
|
+
readonly attrs: {
|
|
296
|
+
readonly variant: "success" | "warning" | null;
|
|
297
|
+
};
|
|
298
|
+
readonly type: "highlight";
|
|
299
|
+
}, ...({
|
|
300
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
301
|
+
} | {
|
|
302
|
+
readonly attrs: {
|
|
303
|
+
readonly href: string;
|
|
304
|
+
};
|
|
305
|
+
readonly type: "link";
|
|
306
|
+
} | {
|
|
307
|
+
readonly attrs: {
|
|
308
|
+
readonly variant: "success" | "warning" | null;
|
|
309
|
+
};
|
|
310
|
+
readonly type: "highlight";
|
|
311
|
+
})[]];
|
|
312
|
+
readonly text: string;
|
|
313
|
+
readonly type: "text";
|
|
314
|
+
} | {
|
|
187
315
|
readonly attrs: {
|
|
188
316
|
readonly latex: string;
|
|
189
317
|
};
|
|
318
|
+
readonly marks?: readonly [{
|
|
319
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
320
|
+
} | {
|
|
321
|
+
readonly attrs: {
|
|
322
|
+
readonly href: string;
|
|
323
|
+
};
|
|
324
|
+
readonly type: "link";
|
|
325
|
+
} | {
|
|
326
|
+
readonly attrs: {
|
|
327
|
+
readonly variant: "success" | "warning" | null;
|
|
328
|
+
};
|
|
329
|
+
readonly type: "highlight";
|
|
330
|
+
}, ...({
|
|
331
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
332
|
+
} | {
|
|
333
|
+
readonly attrs: {
|
|
334
|
+
readonly href: string;
|
|
335
|
+
};
|
|
336
|
+
readonly type: "link";
|
|
337
|
+
} | {
|
|
338
|
+
readonly attrs: {
|
|
339
|
+
readonly variant: "success" | "warning" | null;
|
|
340
|
+
};
|
|
341
|
+
readonly type: "highlight";
|
|
342
|
+
})[]];
|
|
190
343
|
readonly type: "mathInline";
|
|
191
|
-
}
|
|
344
|
+
}, ...({
|
|
192
345
|
readonly marks?: readonly [{
|
|
193
346
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
194
347
|
} | {
|
|
@@ -216,12 +369,10 @@ export declare function reactionVisuals<E>(rich: RichSlot<E>): {
|
|
|
216
369
|
})[]];
|
|
217
370
|
readonly text: string;
|
|
218
371
|
readonly type: "text";
|
|
219
|
-
}
|
|
372
|
+
} | {
|
|
220
373
|
readonly attrs: {
|
|
221
374
|
readonly latex: string;
|
|
222
375
|
};
|
|
223
|
-
readonly type: "mathInline";
|
|
224
|
-
} | {
|
|
225
376
|
readonly marks?: readonly [{
|
|
226
377
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
227
378
|
} | {
|
|
@@ -247,8 +398,7 @@ export declare function reactionVisuals<E>(rich: RichSlot<E>): {
|
|
|
247
398
|
};
|
|
248
399
|
readonly type: "highlight";
|
|
249
400
|
})[]];
|
|
250
|
-
readonly
|
|
251
|
-
readonly type: "text";
|
|
401
|
+
readonly type: "mathInline";
|
|
252
402
|
})[]], E, never, never>>;
|
|
253
403
|
readonly title: RichSlot<E>;
|
|
254
404
|
readonly labels: Schema.Struct<{
|
|
@@ -5,11 +5,64 @@ export declare function titrationVisuals<E>(rich: RichSlot<E>): {
|
|
|
5
5
|
TitrationLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
6
6
|
readonly description: RichSlot<E>;
|
|
7
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
|
+
} | {
|
|
8
36
|
readonly attrs: {
|
|
9
37
|
readonly latex: string;
|
|
10
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
|
+
})[]];
|
|
11
64
|
readonly type: "mathInline";
|
|
12
|
-
}
|
|
65
|
+
}, ...({
|
|
13
66
|
readonly marks?: readonly [{
|
|
14
67
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
15
68
|
} | {
|
|
@@ -37,12 +90,10 @@ export declare function titrationVisuals<E>(rich: RichSlot<E>): {
|
|
|
37
90
|
})[]];
|
|
38
91
|
readonly text: string;
|
|
39
92
|
readonly type: "text";
|
|
40
|
-
}
|
|
93
|
+
} | {
|
|
41
94
|
readonly attrs: {
|
|
42
95
|
readonly latex: string;
|
|
43
96
|
};
|
|
44
|
-
readonly type: "mathInline";
|
|
45
|
-
} | {
|
|
46
97
|
readonly marks?: readonly [{
|
|
47
98
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
48
99
|
} | {
|
|
@@ -68,8 +119,7 @@ export declare function titrationVisuals<E>(rich: RichSlot<E>): {
|
|
|
68
119
|
};
|
|
69
120
|
readonly type: "highlight";
|
|
70
121
|
})[]];
|
|
71
|
-
readonly
|
|
72
|
-
readonly type: "text";
|
|
122
|
+
readonly type: "mathInline";
|
|
73
123
|
})[]], E, never, never>>;
|
|
74
124
|
readonly title: RichSlot<E>;
|
|
75
125
|
readonly analyte: Schema.Struct<{
|
package/dist/visual/length.d.ts
CHANGED
|
@@ -11,11 +11,64 @@ export declare function latexGlyphs(latex: string): number;
|
|
|
11
11
|
export declare function visibleLength(text: RichText): number;
|
|
12
12
|
/** Keeps a rich text to at most `limit` visible characters (`visibleLength`). */
|
|
13
13
|
export declare function atMostVisible(limit: number, message: string): import("effect/SchemaAST").Filter<readonly [{
|
|
14
|
+
readonly marks?: readonly [{
|
|
15
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
16
|
+
} | {
|
|
17
|
+
readonly attrs: {
|
|
18
|
+
readonly href: string;
|
|
19
|
+
};
|
|
20
|
+
readonly type: "link";
|
|
21
|
+
} | {
|
|
22
|
+
readonly attrs: {
|
|
23
|
+
readonly variant: "success" | "warning" | null;
|
|
24
|
+
};
|
|
25
|
+
readonly type: "highlight";
|
|
26
|
+
}, ...({
|
|
27
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
28
|
+
} | {
|
|
29
|
+
readonly attrs: {
|
|
30
|
+
readonly href: string;
|
|
31
|
+
};
|
|
32
|
+
readonly type: "link";
|
|
33
|
+
} | {
|
|
34
|
+
readonly attrs: {
|
|
35
|
+
readonly variant: "success" | "warning" | null;
|
|
36
|
+
};
|
|
37
|
+
readonly type: "highlight";
|
|
38
|
+
})[]];
|
|
39
|
+
readonly text: string;
|
|
40
|
+
readonly type: "text";
|
|
41
|
+
} | {
|
|
14
42
|
readonly attrs: {
|
|
15
43
|
readonly latex: string;
|
|
16
44
|
};
|
|
45
|
+
readonly marks?: readonly [{
|
|
46
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
47
|
+
} | {
|
|
48
|
+
readonly attrs: {
|
|
49
|
+
readonly href: string;
|
|
50
|
+
};
|
|
51
|
+
readonly type: "link";
|
|
52
|
+
} | {
|
|
53
|
+
readonly attrs: {
|
|
54
|
+
readonly variant: "success" | "warning" | null;
|
|
55
|
+
};
|
|
56
|
+
readonly type: "highlight";
|
|
57
|
+
}, ...({
|
|
58
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
59
|
+
} | {
|
|
60
|
+
readonly attrs: {
|
|
61
|
+
readonly href: string;
|
|
62
|
+
};
|
|
63
|
+
readonly type: "link";
|
|
64
|
+
} | {
|
|
65
|
+
readonly attrs: {
|
|
66
|
+
readonly variant: "success" | "warning" | null;
|
|
67
|
+
};
|
|
68
|
+
readonly type: "highlight";
|
|
69
|
+
})[]];
|
|
17
70
|
readonly type: "mathInline";
|
|
18
|
-
}
|
|
71
|
+
}, ...({
|
|
19
72
|
readonly marks?: readonly [{
|
|
20
73
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
21
74
|
} | {
|
|
@@ -43,12 +96,10 @@ export declare function atMostVisible(limit: number, message: string): import("e
|
|
|
43
96
|
})[]];
|
|
44
97
|
readonly text: string;
|
|
45
98
|
readonly type: "text";
|
|
46
|
-
}
|
|
99
|
+
} | {
|
|
47
100
|
readonly attrs: {
|
|
48
101
|
readonly latex: string;
|
|
49
102
|
};
|
|
50
|
-
readonly type: "mathInline";
|
|
51
|
-
} | {
|
|
52
103
|
readonly marks?: readonly [{
|
|
53
104
|
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
54
105
|
} | {
|
|
@@ -74,6 +125,5 @@ export declare function atMostVisible(limit: number, message: string): import("e
|
|
|
74
125
|
};
|
|
75
126
|
readonly type: "highlight";
|
|
76
127
|
})[]];
|
|
77
|
-
readonly
|
|
78
|
-
readonly type: "text";
|
|
128
|
+
readonly type: "mathInline";
|
|
79
129
|
})[]]>;
|