@nakafa/aksara-contracts 8.2.0 → 8.4.1
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/document.d.ts +1 -1
- package/dist/assessment/document.js +1 -1
- package/dist/assessment/figure.d.ts +1 -1
- package/dist/assessment/figure.js +1 -1
- package/dist/assessment/fit.d.ts +3 -3
- package/dist/assessment/fit.js +3 -3
- package/dist/assessment/locales.d.ts +1 -1
- package/dist/assessment/scoring.d.ts +1 -1
- package/dist/assessment/scoring.js +1 -1
- package/dist/cache/content.d.ts +1 -1
- package/dist/cache/content.js +1 -1
- package/dist/content.d.ts +3 -2
- package/dist/graph/identity.d.ts +1 -1
- package/dist/graph/identity.js +1 -1
- package/dist/math/boundary.d.ts +9 -0
- package/dist/math/boundary.js +81 -0
- package/dist/math/bounds.d.ts +1 -1
- package/dist/math/collision.d.ts +1 -1
- package/dist/math/coordinate.d.ts +6 -5
- package/dist/math/coordinate.js +2 -2
- package/dist/math/curve.d.ts +1 -0
- package/dist/math/curve.js +4 -2
- package/dist/math/formula/affine.d.ts +22 -0
- package/dist/math/formula/affine.js +79 -0
- package/dist/math/formula/compile.d.ts +1 -1
- package/dist/math/formula/compile.js +1 -1
- package/dist/math/formula/contour.d.ts +1 -1
- package/dist/math/formula/contour.js +28 -13
- package/dist/math/formula/field.js +1 -1
- package/dist/math/formula/mesh.d.ts +1 -1
- package/dist/math/formula/mesh.js +1 -1
- package/dist/math/formula/names.d.ts +1 -1
- package/dist/math/formula/names.js +1 -1
- package/dist/math/formula/parse.d.ts +1 -1
- package/dist/math/formula/parse.js +1 -1
- package/dist/math/formula/plane.d.ts +2 -2
- package/dist/math/formula/plane.js +3 -3
- package/dist/math/formula/reader.d.ts +2 -1
- package/dist/math/formula/reader.js +1 -1
- package/dist/math/formula/region.d.ts +2 -2
- package/dist/math/formula/region.js +3 -3
- package/dist/math/formula/sample.d.ts +1 -1
- package/dist/math/formula/scan.d.ts +1 -1
- package/dist/math/formula/scan.js +1 -1
- package/dist/math/formula/slider.d.ts +2 -2
- package/dist/math/formula/slider.js +1 -1
- package/dist/math/formula/space.d.ts +1 -1
- package/dist/math/formula/space.js +1 -1
- package/dist/math/object.d.ts +12 -0
- package/dist/math/object.js +11 -0
- package/dist/math/plane.d.ts +10 -0
- package/dist/math/plane.js +7 -1
- package/dist/math/precision.d.ts +1 -1
- package/dist/math/precision.js +1 -1
- package/dist/math/resolution.js +1 -1
- package/dist/math/scene.d.ts +2 -2
- package/dist/math/space.d.ts +8 -0
- package/dist/math/space.js +5 -1
- package/dist/math/vector.d.ts +1 -1
- package/dist/math/visual.d.ts +239 -212
- package/dist/preview/spec.js +1 -1
- package/dist/program/curriculum.d.ts +1 -1
- package/dist/program/curriculum.js +1 -1
- package/dist/program/snapshot/digest.d.ts +1 -1
- package/dist/program/snapshot/digest.js +2 -2
- package/dist/program/snapshot/hash.d.ts +2 -2
- package/dist/projection/digest.d.ts +1 -1
- package/dist/projection/digest.js +1 -1
- package/dist/projection/hash.js +1 -1
- package/dist/projection/material.d.ts +1 -1
- package/dist/projection/material.js +1 -1
- package/dist/projection/verify.js +1 -1
- package/dist/quran/identity.d.ts +2 -1
- package/dist/quran/provenance.d.ts +2 -2
- package/dist/quran/provenance.js +1 -1
- package/dist/quran/snapshot/hash.d.ts +1 -1
- package/dist/quran/snapshot/row/hash.d.ts +1 -1
- package/dist/quran/snapshot/row/hash.js +1 -1
- package/dist/quran/snapshot/spec.js +1 -1
- package/dist/quran/source.d.ts +2 -2
- package/dist/release/current/evidence.d.ts +1 -1
- package/dist/release/current/evidence.js +1 -1
- package/dist/release/current/state.d.ts +1 -1
- package/dist/release/current/state.js +1 -1
- package/dist/release/head.js +1 -1
- package/dist/release/items.d.ts +1 -1
- package/dist/release/items.js +1 -1
- package/dist/release/policy.d.ts +1 -1
- package/dist/release/policy.js +1 -1
- package/dist/release/result/digest.d.ts +3 -3
- package/dist/release/result/digest.js +2 -2
- package/dist/release/rollback/digest.d.ts +1 -1
- package/dist/release/rollback/digest.js +1 -1
- package/dist/release/route/digest.d.ts +1 -1
- package/dist/release/route/digest.js +1 -1
- package/dist/release/snapshot/evidence/assessment.d.ts +1 -1
- package/dist/release/snapshot/evidence/assessment.js +1 -1
- package/dist/release/snapshot/evidence/program.d.ts +1 -1
- package/dist/release/snapshot/evidence/program.js +1 -1
- package/dist/release/snapshot/evidence/quran.d.ts +1 -1
- package/dist/release/snapshot/evidence/quran.js +1 -1
- package/dist/release/snapshot/evidence/requirement.d.ts +3 -2
- package/dist/release/snapshot/evidence/requirement.js +1 -1
- package/dist/release/snapshot/spec.d.ts +2 -2
- package/dist/release/snapshot/spec.js +1 -1
- package/dist/release/snapshot/verify.d.ts +1 -1
- package/dist/release/snapshot/verify.js +1 -1
- package/dist/release/spec.d.ts +1 -1
- package/dist/release/verify.d.ts +1 -1
- package/dist/release/verify.js +1 -1
- package/dist/renderer/compatibility.d.ts +1 -1
- package/dist/renderer/compatibility.js +2 -2
- package/dist/renderer/contract.d.ts +1 -1
- package/dist/renderer/contract.js +1 -1
- package/dist/runtime/spec.js +2 -2
- package/dist/signature/spec.d.ts +3 -2
- package/dist/signature/verify.d.ts +2 -1
- package/dist/transport/request.d.ts +1 -1
- package/dist/visual/base/math.d.ts +79 -1
- package/dist/visual/base/math.js +31 -3
- package/dist/visual/base/media.d.ts +68 -1
- package/dist/visual/biology/bacteria.d.ts +269 -1
- package/dist/visual/biology/bacteria.js +1 -1
- package/dist/visual/biology/cell.d.ts +202 -1
- package/dist/visual/biology/climate.d.ts +202 -1
- package/dist/visual/biology/climate.js +1 -1
- package/dist/visual/biology/ecology.d.ts +269 -1
- package/dist/visual/biology/physiology.d.ts +202 -1
- package/dist/visual/biology/physiology.js +1 -1
- package/dist/visual/biology/plant.d.ts +336 -1
- package/dist/visual/biology/plant.js +1 -1
- package/dist/visual/biology.d.ts +1 -1
- package/dist/visual/card.d.ts +79 -1
- package/dist/visual/card.js +18 -2
- package/dist/visual/catalog.d.ts +14164 -2
- package/dist/visual/catalog.js +4 -0
- package/dist/visual/chemistry/atom.d.ts +202 -1
- package/dist/visual/chemistry/atom.js +1 -1
- package/dist/visual/chemistry/balance.d.ts +336 -1
- package/dist/visual/chemistry/balance.js +1 -1
- package/dist/visual/chemistry/bonding.d.ts +336 -1
- package/dist/visual/chemistry/discovery.d.ts +470 -1
- package/dist/visual/chemistry/electrochemistry.d.ts +135 -1
- package/dist/visual/chemistry/electrochemistry.js +1 -1
- package/dist/visual/chemistry/electron.d.ts +135 -1
- package/dist/visual/chemistry/electron.js +1 -1
- package/dist/visual/chemistry/laws.d.ts +269 -1
- package/dist/visual/chemistry/laws.js +1 -1
- package/dist/visual/chemistry/particles.d.ts +336 -1
- package/dist/visual/chemistry/periodic.d.ts +135 -1
- package/dist/visual/chemistry/periodic.js +1 -1
- package/dist/visual/chemistry/rate.d.ts +68 -1
- package/dist/visual/chemistry/rate.js +1 -1
- package/dist/visual/chemistry/reaction.d.ts +202 -1
- package/dist/visual/chemistry/reaction.js +1 -1
- package/dist/visual/chemistry/titration.d.ts +68 -1
- package/dist/visual/chemistry/titration.js +1 -1
- package/dist/visual/length.d.ts +79 -0
- package/dist/visual/length.js +37 -0
- package/dist/visual/mathematics/chance.d.ts +258 -0
- package/dist/visual/mathematics/chance.js +117 -0
- package/dist/visual/mathematics/chart.d.ts +68 -1
- package/dist/visual/mathematics/charts.d.ts +336 -1
- package/dist/visual/mathematics/function.d.ts +202 -1
- package/dist/visual/mathematics/numeral.d.ts +170 -0
- package/dist/visual/mathematics/numeral.js +85 -0
- package/dist/visual/physics/braking.d.ts +269 -1
- package/dist/visual/physics/braking.js +1 -1
- package/dist/visual/physics/circuit.d.ts +269 -1
- package/dist/visual/physics/circular.d.ts +135 -1
- package/dist/visual/physics/circular.js +1 -1
- package/dist/visual/physics/dynamics.d.ts +470 -1
- package/dist/visual/physics/dynamics.js +1 -1
- package/dist/visual/physics/efficiency.d.ts +403 -1
- package/dist/visual/physics/efficiency.js +1 -1
- package/dist/visual/physics/electronics.d.ts +202 -1
- package/dist/visual/physics/falling.d.ts +269 -1
- package/dist/visual/physics/falling.js +1 -1
- package/dist/visual/physics/field.d.ts +202 -1
- package/dist/visual/physics/fluid.d.ts +269 -1
- package/dist/visual/physics/fluid.js +1 -1
- package/dist/visual/physics/force.d.ts +336 -1
- package/dist/visual/physics/gravity.d.ts +135 -1
- package/dist/visual/physics/heat.d.ts +202 -1
- package/dist/visual/physics/heat.js +1 -1
- package/dist/visual/physics/instrument.d.ts +470 -1
- package/dist/visual/physics/light.d.ts +269 -1
- package/dist/visual/physics/light.js +1 -1
- package/dist/visual/physics/measurement.d.ts +269 -1
- package/dist/visual/physics/measurement.js +1 -1
- package/dist/visual/physics/motion.d.ts +403 -1
- package/dist/visual/physics/nuclear.d.ts +202 -1
- package/dist/visual/physics/parabolic.d.ts +68 -1
- package/dist/visual/physics/position.d.ts +403 -1
- package/dist/visual/physics/position.js +1 -1
- package/dist/visual/physics/power.d.ts +537 -1
- package/dist/visual/physics/power.js +1 -1
- package/dist/visual/physics/precision.d.ts +470 -1
- package/dist/visual/physics/precision.js +1 -1
- package/dist/visual/physics/product.d.ts +269 -1
- package/dist/visual/physics/reading.d.ts +202 -1
- package/dist/visual/physics/reading.js +1 -1
- package/dist/visual/physics/record.d.ts +135 -1
- package/dist/visual/physics/record.js +1 -1
- package/dist/visual/physics/relative.d.ts +202 -1
- package/dist/visual/physics/relative.js +1 -1
- package/dist/visual/physics/solar.d.ts +403 -1
- package/dist/visual/physics/solar.js +1 -1
- package/dist/visual/physics/vector.d.ts +336 -1
- package/dist/visual/physics/vector.js +1 -1
- package/dist/visual/physics/velocity.d.ts +470 -1
- package/dist/visual/physics/wave.d.ts +269 -1
- package/dist/visual/politics.d.ts +403 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
import {
|
|
2
|
+
import type { RichSlot } from "#contracts/visual/card";
|
|
3
3
|
/**
|
|
4
4
|
* The props of the power plant labs. No prop states the conclusion a lab leads
|
|
5
5
|
* to, so none holds answer state.
|
|
@@ -7,6 +7,73 @@ import { type RichSlot } from "#contracts/visual/card";
|
|
|
7
7
|
export declare function powerVisuals<E>(rich: RichSlot<E>): {
|
|
8
8
|
HydroDamLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
9
9
|
readonly description: RichSlot<E>;
|
|
10
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
11
|
+
readonly attrs: {
|
|
12
|
+
readonly latex: string;
|
|
13
|
+
};
|
|
14
|
+
readonly type: "mathInline";
|
|
15
|
+
} | {
|
|
16
|
+
readonly marks?: readonly [{
|
|
17
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
18
|
+
} | {
|
|
19
|
+
readonly attrs: {
|
|
20
|
+
readonly href: string;
|
|
21
|
+
};
|
|
22
|
+
readonly type: "link";
|
|
23
|
+
} | {
|
|
24
|
+
readonly attrs: {
|
|
25
|
+
readonly variant: "success" | "warning" | null;
|
|
26
|
+
};
|
|
27
|
+
readonly type: "highlight";
|
|
28
|
+
}, ...({
|
|
29
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
30
|
+
} | {
|
|
31
|
+
readonly attrs: {
|
|
32
|
+
readonly href: string;
|
|
33
|
+
};
|
|
34
|
+
readonly type: "link";
|
|
35
|
+
} | {
|
|
36
|
+
readonly attrs: {
|
|
37
|
+
readonly variant: "success" | "warning" | null;
|
|
38
|
+
};
|
|
39
|
+
readonly type: "highlight";
|
|
40
|
+
})[]];
|
|
41
|
+
readonly text: string;
|
|
42
|
+
readonly type: "text";
|
|
43
|
+
}, ...({
|
|
44
|
+
readonly attrs: {
|
|
45
|
+
readonly latex: string;
|
|
46
|
+
};
|
|
47
|
+
readonly type: "mathInline";
|
|
48
|
+
} | {
|
|
49
|
+
readonly marks?: readonly [{
|
|
50
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
51
|
+
} | {
|
|
52
|
+
readonly attrs: {
|
|
53
|
+
readonly href: string;
|
|
54
|
+
};
|
|
55
|
+
readonly type: "link";
|
|
56
|
+
} | {
|
|
57
|
+
readonly attrs: {
|
|
58
|
+
readonly variant: "success" | "warning" | null;
|
|
59
|
+
};
|
|
60
|
+
readonly type: "highlight";
|
|
61
|
+
}, ...({
|
|
62
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
63
|
+
} | {
|
|
64
|
+
readonly attrs: {
|
|
65
|
+
readonly href: string;
|
|
66
|
+
};
|
|
67
|
+
readonly type: "link";
|
|
68
|
+
} | {
|
|
69
|
+
readonly attrs: {
|
|
70
|
+
readonly variant: "success" | "warning" | null;
|
|
71
|
+
};
|
|
72
|
+
readonly type: "highlight";
|
|
73
|
+
})[]];
|
|
74
|
+
readonly text: string;
|
|
75
|
+
readonly type: "text";
|
|
76
|
+
})[]], E, never, never>>;
|
|
10
77
|
readonly title: RichSlot<E>;
|
|
11
78
|
readonly head: Schema.optionalKey<Schema.Finite>;
|
|
12
79
|
readonly labels: Schema.Struct<{
|
|
@@ -22,6 +89,73 @@ export declare function powerVisuals<E>(rich: RichSlot<E>): {
|
|
|
22
89
|
}>, "figure">;
|
|
23
90
|
MicrohydroLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
24
91
|
readonly description: RichSlot<E>;
|
|
92
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
93
|
+
readonly attrs: {
|
|
94
|
+
readonly latex: string;
|
|
95
|
+
};
|
|
96
|
+
readonly type: "mathInline";
|
|
97
|
+
} | {
|
|
98
|
+
readonly marks?: readonly [{
|
|
99
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
100
|
+
} | {
|
|
101
|
+
readonly attrs: {
|
|
102
|
+
readonly href: string;
|
|
103
|
+
};
|
|
104
|
+
readonly type: "link";
|
|
105
|
+
} | {
|
|
106
|
+
readonly attrs: {
|
|
107
|
+
readonly variant: "success" | "warning" | null;
|
|
108
|
+
};
|
|
109
|
+
readonly type: "highlight";
|
|
110
|
+
}, ...({
|
|
111
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
112
|
+
} | {
|
|
113
|
+
readonly attrs: {
|
|
114
|
+
readonly href: string;
|
|
115
|
+
};
|
|
116
|
+
readonly type: "link";
|
|
117
|
+
} | {
|
|
118
|
+
readonly attrs: {
|
|
119
|
+
readonly variant: "success" | "warning" | null;
|
|
120
|
+
};
|
|
121
|
+
readonly type: "highlight";
|
|
122
|
+
})[]];
|
|
123
|
+
readonly text: string;
|
|
124
|
+
readonly type: "text";
|
|
125
|
+
}, ...({
|
|
126
|
+
readonly attrs: {
|
|
127
|
+
readonly latex: string;
|
|
128
|
+
};
|
|
129
|
+
readonly type: "mathInline";
|
|
130
|
+
} | {
|
|
131
|
+
readonly marks?: readonly [{
|
|
132
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
133
|
+
} | {
|
|
134
|
+
readonly attrs: {
|
|
135
|
+
readonly href: string;
|
|
136
|
+
};
|
|
137
|
+
readonly type: "link";
|
|
138
|
+
} | {
|
|
139
|
+
readonly attrs: {
|
|
140
|
+
readonly variant: "success" | "warning" | null;
|
|
141
|
+
};
|
|
142
|
+
readonly type: "highlight";
|
|
143
|
+
}, ...({
|
|
144
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
145
|
+
} | {
|
|
146
|
+
readonly attrs: {
|
|
147
|
+
readonly href: string;
|
|
148
|
+
};
|
|
149
|
+
readonly type: "link";
|
|
150
|
+
} | {
|
|
151
|
+
readonly attrs: {
|
|
152
|
+
readonly variant: "success" | "warning" | null;
|
|
153
|
+
};
|
|
154
|
+
readonly type: "highlight";
|
|
155
|
+
})[]];
|
|
156
|
+
readonly text: string;
|
|
157
|
+
readonly type: "text";
|
|
158
|
+
})[]], E, never, never>>;
|
|
25
159
|
readonly title: RichSlot<E>;
|
|
26
160
|
readonly flow: Schema.optionalKey<Schema.Finite>;
|
|
27
161
|
readonly head: Schema.optionalKey<Schema.Finite>;
|
|
@@ -35,6 +169,73 @@ export declare function powerVisuals<E>(rich: RichSlot<E>): {
|
|
|
35
169
|
}>, "figure">;
|
|
36
170
|
WaveBuoyPowerLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
37
171
|
readonly description: RichSlot<E>;
|
|
172
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
173
|
+
readonly attrs: {
|
|
174
|
+
readonly latex: string;
|
|
175
|
+
};
|
|
176
|
+
readonly type: "mathInline";
|
|
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 text: string;
|
|
204
|
+
readonly type: "text";
|
|
205
|
+
}, ...({
|
|
206
|
+
readonly attrs: {
|
|
207
|
+
readonly latex: string;
|
|
208
|
+
};
|
|
209
|
+
readonly type: "mathInline";
|
|
210
|
+
} | {
|
|
211
|
+
readonly marks?: readonly [{
|
|
212
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
213
|
+
} | {
|
|
214
|
+
readonly attrs: {
|
|
215
|
+
readonly href: string;
|
|
216
|
+
};
|
|
217
|
+
readonly type: "link";
|
|
218
|
+
} | {
|
|
219
|
+
readonly attrs: {
|
|
220
|
+
readonly variant: "success" | "warning" | null;
|
|
221
|
+
};
|
|
222
|
+
readonly type: "highlight";
|
|
223
|
+
}, ...({
|
|
224
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
225
|
+
} | {
|
|
226
|
+
readonly attrs: {
|
|
227
|
+
readonly href: string;
|
|
228
|
+
};
|
|
229
|
+
readonly type: "link";
|
|
230
|
+
} | {
|
|
231
|
+
readonly attrs: {
|
|
232
|
+
readonly variant: "success" | "warning" | null;
|
|
233
|
+
};
|
|
234
|
+
readonly type: "highlight";
|
|
235
|
+
})[]];
|
|
236
|
+
readonly text: string;
|
|
237
|
+
readonly type: "text";
|
|
238
|
+
})[]], E, never, never>>;
|
|
38
239
|
readonly title: RichSlot<E>;
|
|
39
240
|
readonly labels: Schema.Struct<{
|
|
40
241
|
readonly chooseSea: Schema.Trimmed;
|
|
@@ -49,6 +250,73 @@ export declare function powerVisuals<E>(rich: RichSlot<E>): {
|
|
|
49
250
|
}>, "figure">;
|
|
50
251
|
WindRotorLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
51
252
|
readonly description: RichSlot<E>;
|
|
253
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
254
|
+
readonly attrs: {
|
|
255
|
+
readonly latex: string;
|
|
256
|
+
};
|
|
257
|
+
readonly type: "mathInline";
|
|
258
|
+
} | {
|
|
259
|
+
readonly marks?: readonly [{
|
|
260
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
261
|
+
} | {
|
|
262
|
+
readonly attrs: {
|
|
263
|
+
readonly href: string;
|
|
264
|
+
};
|
|
265
|
+
readonly type: "link";
|
|
266
|
+
} | {
|
|
267
|
+
readonly attrs: {
|
|
268
|
+
readonly variant: "success" | "warning" | null;
|
|
269
|
+
};
|
|
270
|
+
readonly type: "highlight";
|
|
271
|
+
}, ...({
|
|
272
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
273
|
+
} | {
|
|
274
|
+
readonly attrs: {
|
|
275
|
+
readonly href: string;
|
|
276
|
+
};
|
|
277
|
+
readonly type: "link";
|
|
278
|
+
} | {
|
|
279
|
+
readonly attrs: {
|
|
280
|
+
readonly variant: "success" | "warning" | null;
|
|
281
|
+
};
|
|
282
|
+
readonly type: "highlight";
|
|
283
|
+
})[]];
|
|
284
|
+
readonly text: string;
|
|
285
|
+
readonly type: "text";
|
|
286
|
+
}, ...({
|
|
287
|
+
readonly attrs: {
|
|
288
|
+
readonly latex: string;
|
|
289
|
+
};
|
|
290
|
+
readonly type: "mathInline";
|
|
291
|
+
} | {
|
|
292
|
+
readonly marks?: readonly [{
|
|
293
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
294
|
+
} | {
|
|
295
|
+
readonly attrs: {
|
|
296
|
+
readonly href: string;
|
|
297
|
+
};
|
|
298
|
+
readonly type: "link";
|
|
299
|
+
} | {
|
|
300
|
+
readonly attrs: {
|
|
301
|
+
readonly variant: "success" | "warning" | null;
|
|
302
|
+
};
|
|
303
|
+
readonly type: "highlight";
|
|
304
|
+
}, ...({
|
|
305
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
306
|
+
} | {
|
|
307
|
+
readonly attrs: {
|
|
308
|
+
readonly href: string;
|
|
309
|
+
};
|
|
310
|
+
readonly type: "link";
|
|
311
|
+
} | {
|
|
312
|
+
readonly attrs: {
|
|
313
|
+
readonly variant: "success" | "warning" | null;
|
|
314
|
+
};
|
|
315
|
+
readonly type: "highlight";
|
|
316
|
+
})[]];
|
|
317
|
+
readonly text: string;
|
|
318
|
+
readonly type: "text";
|
|
319
|
+
})[]], E, never, never>>;
|
|
52
320
|
readonly title: RichSlot<E>;
|
|
53
321
|
readonly labels: Schema.Struct<{
|
|
54
322
|
readonly chooseSite: Schema.Trimmed;
|
|
@@ -63,6 +331,73 @@ export declare function powerVisuals<E>(rich: RichSlot<E>): {
|
|
|
63
331
|
}>, "figure">;
|
|
64
332
|
GeothermalLoopLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
65
333
|
readonly description: RichSlot<E>;
|
|
334
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
335
|
+
readonly attrs: {
|
|
336
|
+
readonly latex: string;
|
|
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 type: "mathInline";
|
|
372
|
+
} | {
|
|
373
|
+
readonly marks?: readonly [{
|
|
374
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
375
|
+
} | {
|
|
376
|
+
readonly attrs: {
|
|
377
|
+
readonly href: string;
|
|
378
|
+
};
|
|
379
|
+
readonly type: "link";
|
|
380
|
+
} | {
|
|
381
|
+
readonly attrs: {
|
|
382
|
+
readonly variant: "success" | "warning" | null;
|
|
383
|
+
};
|
|
384
|
+
readonly type: "highlight";
|
|
385
|
+
}, ...({
|
|
386
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
387
|
+
} | {
|
|
388
|
+
readonly attrs: {
|
|
389
|
+
readonly href: string;
|
|
390
|
+
};
|
|
391
|
+
readonly type: "link";
|
|
392
|
+
} | {
|
|
393
|
+
readonly attrs: {
|
|
394
|
+
readonly variant: "success" | "warning" | null;
|
|
395
|
+
};
|
|
396
|
+
readonly type: "highlight";
|
|
397
|
+
})[]];
|
|
398
|
+
readonly text: string;
|
|
399
|
+
readonly type: "text";
|
|
400
|
+
})[]], E, never, never>>;
|
|
66
401
|
readonly title: RichSlot<E>;
|
|
67
402
|
readonly labels: Schema.Struct<{
|
|
68
403
|
readonly electric: RichSlot<E>;
|
|
@@ -76,6 +411,73 @@ export declare function powerVisuals<E>(rich: RichSlot<E>): {
|
|
|
76
411
|
}>, "figure">;
|
|
77
412
|
BiogasDigesterLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
78
413
|
readonly description: RichSlot<E>;
|
|
414
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
415
|
+
readonly attrs: {
|
|
416
|
+
readonly latex: string;
|
|
417
|
+
};
|
|
418
|
+
readonly type: "mathInline";
|
|
419
|
+
} | {
|
|
420
|
+
readonly marks?: readonly [{
|
|
421
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
422
|
+
} | {
|
|
423
|
+
readonly attrs: {
|
|
424
|
+
readonly href: string;
|
|
425
|
+
};
|
|
426
|
+
readonly type: "link";
|
|
427
|
+
} | {
|
|
428
|
+
readonly attrs: {
|
|
429
|
+
readonly variant: "success" | "warning" | null;
|
|
430
|
+
};
|
|
431
|
+
readonly type: "highlight";
|
|
432
|
+
}, ...({
|
|
433
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
434
|
+
} | {
|
|
435
|
+
readonly attrs: {
|
|
436
|
+
readonly href: string;
|
|
437
|
+
};
|
|
438
|
+
readonly type: "link";
|
|
439
|
+
} | {
|
|
440
|
+
readonly attrs: {
|
|
441
|
+
readonly variant: "success" | "warning" | null;
|
|
442
|
+
};
|
|
443
|
+
readonly type: "highlight";
|
|
444
|
+
})[]];
|
|
445
|
+
readonly text: string;
|
|
446
|
+
readonly type: "text";
|
|
447
|
+
}, ...({
|
|
448
|
+
readonly attrs: {
|
|
449
|
+
readonly latex: string;
|
|
450
|
+
};
|
|
451
|
+
readonly type: "mathInline";
|
|
452
|
+
} | {
|
|
453
|
+
readonly marks?: readonly [{
|
|
454
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
455
|
+
} | {
|
|
456
|
+
readonly attrs: {
|
|
457
|
+
readonly href: string;
|
|
458
|
+
};
|
|
459
|
+
readonly type: "link";
|
|
460
|
+
} | {
|
|
461
|
+
readonly attrs: {
|
|
462
|
+
readonly variant: "success" | "warning" | null;
|
|
463
|
+
};
|
|
464
|
+
readonly type: "highlight";
|
|
465
|
+
}, ...({
|
|
466
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
467
|
+
} | {
|
|
468
|
+
readonly attrs: {
|
|
469
|
+
readonly href: string;
|
|
470
|
+
};
|
|
471
|
+
readonly type: "link";
|
|
472
|
+
} | {
|
|
473
|
+
readonly attrs: {
|
|
474
|
+
readonly variant: "success" | "warning" | null;
|
|
475
|
+
};
|
|
476
|
+
readonly type: "highlight";
|
|
477
|
+
})[]];
|
|
478
|
+
readonly text: string;
|
|
479
|
+
readonly type: "text";
|
|
480
|
+
})[]], E, never, never>>;
|
|
79
481
|
readonly title: RichSlot<E>;
|
|
80
482
|
readonly dung: Schema.optionalKey<Schema.Finite>;
|
|
81
483
|
readonly labels: Schema.Struct<{
|
|
@@ -89,6 +491,73 @@ export declare function powerVisuals<E>(rich: RichSlot<E>): {
|
|
|
89
491
|
}>, "figure">;
|
|
90
492
|
SteamPlantCycleLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
91
493
|
readonly description: RichSlot<E>;
|
|
494
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
495
|
+
readonly attrs: {
|
|
496
|
+
readonly latex: string;
|
|
497
|
+
};
|
|
498
|
+
readonly type: "mathInline";
|
|
499
|
+
} | {
|
|
500
|
+
readonly marks?: readonly [{
|
|
501
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
502
|
+
} | {
|
|
503
|
+
readonly attrs: {
|
|
504
|
+
readonly href: string;
|
|
505
|
+
};
|
|
506
|
+
readonly type: "link";
|
|
507
|
+
} | {
|
|
508
|
+
readonly attrs: {
|
|
509
|
+
readonly variant: "success" | "warning" | null;
|
|
510
|
+
};
|
|
511
|
+
readonly type: "highlight";
|
|
512
|
+
}, ...({
|
|
513
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
514
|
+
} | {
|
|
515
|
+
readonly attrs: {
|
|
516
|
+
readonly href: string;
|
|
517
|
+
};
|
|
518
|
+
readonly type: "link";
|
|
519
|
+
} | {
|
|
520
|
+
readonly attrs: {
|
|
521
|
+
readonly variant: "success" | "warning" | null;
|
|
522
|
+
};
|
|
523
|
+
readonly type: "highlight";
|
|
524
|
+
})[]];
|
|
525
|
+
readonly text: string;
|
|
526
|
+
readonly type: "text";
|
|
527
|
+
}, ...({
|
|
528
|
+
readonly attrs: {
|
|
529
|
+
readonly latex: string;
|
|
530
|
+
};
|
|
531
|
+
readonly type: "mathInline";
|
|
532
|
+
} | {
|
|
533
|
+
readonly marks?: readonly [{
|
|
534
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
535
|
+
} | {
|
|
536
|
+
readonly attrs: {
|
|
537
|
+
readonly href: string;
|
|
538
|
+
};
|
|
539
|
+
readonly type: "link";
|
|
540
|
+
} | {
|
|
541
|
+
readonly attrs: {
|
|
542
|
+
readonly variant: "success" | "warning" | null;
|
|
543
|
+
};
|
|
544
|
+
readonly type: "highlight";
|
|
545
|
+
}, ...({
|
|
546
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
547
|
+
} | {
|
|
548
|
+
readonly attrs: {
|
|
549
|
+
readonly href: string;
|
|
550
|
+
};
|
|
551
|
+
readonly type: "link";
|
|
552
|
+
} | {
|
|
553
|
+
readonly attrs: {
|
|
554
|
+
readonly variant: "success" | "warning" | null;
|
|
555
|
+
};
|
|
556
|
+
readonly type: "highlight";
|
|
557
|
+
})[]];
|
|
558
|
+
readonly text: string;
|
|
559
|
+
readonly type: "text";
|
|
560
|
+
})[]], E, never, never>>;
|
|
92
561
|
readonly title: RichSlot<E>;
|
|
93
562
|
readonly fuel: Schema.optionalKey<Schema.Literals<readonly ["coal", "gas", "uranium"]>>;
|
|
94
563
|
readonly labels: Schema.Struct<{
|
|
@@ -105,6 +574,73 @@ export declare function powerVisuals<E>(rich: RichSlot<E>): {
|
|
|
105
574
|
}>, "figure">;
|
|
106
575
|
FuelCombustionCarbonLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
107
576
|
readonly description: RichSlot<E>;
|
|
577
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
578
|
+
readonly attrs: {
|
|
579
|
+
readonly latex: string;
|
|
580
|
+
};
|
|
581
|
+
readonly type: "mathInline";
|
|
582
|
+
} | {
|
|
583
|
+
readonly marks?: readonly [{
|
|
584
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
585
|
+
} | {
|
|
586
|
+
readonly attrs: {
|
|
587
|
+
readonly href: string;
|
|
588
|
+
};
|
|
589
|
+
readonly type: "link";
|
|
590
|
+
} | {
|
|
591
|
+
readonly attrs: {
|
|
592
|
+
readonly variant: "success" | "warning" | null;
|
|
593
|
+
};
|
|
594
|
+
readonly type: "highlight";
|
|
595
|
+
}, ...({
|
|
596
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
597
|
+
} | {
|
|
598
|
+
readonly attrs: {
|
|
599
|
+
readonly href: string;
|
|
600
|
+
};
|
|
601
|
+
readonly type: "link";
|
|
602
|
+
} | {
|
|
603
|
+
readonly attrs: {
|
|
604
|
+
readonly variant: "success" | "warning" | null;
|
|
605
|
+
};
|
|
606
|
+
readonly type: "highlight";
|
|
607
|
+
})[]];
|
|
608
|
+
readonly text: string;
|
|
609
|
+
readonly type: "text";
|
|
610
|
+
}, ...({
|
|
611
|
+
readonly attrs: {
|
|
612
|
+
readonly latex: string;
|
|
613
|
+
};
|
|
614
|
+
readonly type: "mathInline";
|
|
615
|
+
} | {
|
|
616
|
+
readonly marks?: readonly [{
|
|
617
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
618
|
+
} | {
|
|
619
|
+
readonly attrs: {
|
|
620
|
+
readonly href: string;
|
|
621
|
+
};
|
|
622
|
+
readonly type: "link";
|
|
623
|
+
} | {
|
|
624
|
+
readonly attrs: {
|
|
625
|
+
readonly variant: "success" | "warning" | null;
|
|
626
|
+
};
|
|
627
|
+
readonly type: "highlight";
|
|
628
|
+
}, ...({
|
|
629
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
630
|
+
} | {
|
|
631
|
+
readonly attrs: {
|
|
632
|
+
readonly href: string;
|
|
633
|
+
};
|
|
634
|
+
readonly type: "link";
|
|
635
|
+
} | {
|
|
636
|
+
readonly attrs: {
|
|
637
|
+
readonly variant: "success" | "warning" | null;
|
|
638
|
+
};
|
|
639
|
+
readonly type: "highlight";
|
|
640
|
+
})[]];
|
|
641
|
+
readonly text: string;
|
|
642
|
+
readonly type: "text";
|
|
643
|
+
})[]], E, never, never>>;
|
|
108
644
|
readonly title: RichSlot<E>;
|
|
109
645
|
readonly fuel: Schema.optionalKey<Schema.Literals<readonly ["coal", "diesel", "methane"]>>;
|
|
110
646
|
readonly labels: Schema.Struct<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
import { byIds, cardFields, TextSchema
|
|
2
|
+
import { byIds, cardFields, TextSchema } from "#contracts/visual/card";
|
|
3
3
|
import { figure } from "#contracts/visual/entry";
|
|
4
4
|
/** Props of `HydroDamLab`: a hydropower dam in cross-section. */
|
|
5
5
|
function hydroDamLab(rich) {
|