@nakafa/aksara-contracts 8.2.0 → 8.4.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/math/boundary.d.ts +9 -0
- package/dist/math/boundary.js +81 -0
- 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/contour.js +27 -12
- 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/space.d.ts +8 -0
- package/dist/math/space.js +5 -1
- package/dist/math/visual.d.ts +239 -212
- package/dist/visual/base/math.d.ts +78 -0
- package/dist/visual/base/math.js +31 -3
- package/dist/visual/base/media.d.ts +67 -0
- package/dist/visual/biology/bacteria.d.ts +268 -0
- package/dist/visual/biology/cell.d.ts +201 -0
- package/dist/visual/biology/climate.d.ts +201 -0
- package/dist/visual/biology/ecology.d.ts +268 -0
- package/dist/visual/biology/physiology.d.ts +201 -0
- package/dist/visual/biology/plant.d.ts +335 -0
- 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 +201 -0
- package/dist/visual/chemistry/balance.d.ts +335 -0
- package/dist/visual/chemistry/bonding.d.ts +335 -0
- package/dist/visual/chemistry/discovery.d.ts +469 -0
- package/dist/visual/chemistry/electrochemistry.d.ts +134 -0
- package/dist/visual/chemistry/electron.d.ts +134 -0
- package/dist/visual/chemistry/laws.d.ts +268 -0
- package/dist/visual/chemistry/particles.d.ts +335 -0
- package/dist/visual/chemistry/periodic.d.ts +134 -0
- package/dist/visual/chemistry/rate.d.ts +67 -0
- package/dist/visual/chemistry/reaction.d.ts +201 -0
- package/dist/visual/chemistry/titration.d.ts +67 -0
- 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 +67 -0
- package/dist/visual/mathematics/charts.d.ts +335 -0
- package/dist/visual/mathematics/function.d.ts +201 -0
- package/dist/visual/mathematics/numeral.d.ts +170 -0
- package/dist/visual/mathematics/numeral.js +85 -0
- package/dist/visual/physics/braking.d.ts +268 -0
- package/dist/visual/physics/circuit.d.ts +268 -0
- package/dist/visual/physics/circular.d.ts +134 -0
- package/dist/visual/physics/dynamics.d.ts +469 -0
- package/dist/visual/physics/efficiency.d.ts +402 -0
- package/dist/visual/physics/electronics.d.ts +201 -0
- package/dist/visual/physics/falling.d.ts +268 -0
- package/dist/visual/physics/field.d.ts +201 -0
- package/dist/visual/physics/fluid.d.ts +268 -0
- package/dist/visual/physics/force.d.ts +335 -0
- package/dist/visual/physics/gravity.d.ts +134 -0
- package/dist/visual/physics/heat.d.ts +201 -0
- package/dist/visual/physics/instrument.d.ts +469 -0
- package/dist/visual/physics/light.d.ts +268 -0
- package/dist/visual/physics/measurement.d.ts +268 -0
- package/dist/visual/physics/motion.d.ts +402 -0
- package/dist/visual/physics/nuclear.d.ts +201 -0
- package/dist/visual/physics/parabolic.d.ts +67 -0
- package/dist/visual/physics/position.d.ts +402 -0
- package/dist/visual/physics/power.d.ts +536 -0
- package/dist/visual/physics/precision.d.ts +469 -0
- package/dist/visual/physics/product.d.ts +268 -0
- package/dist/visual/physics/reading.d.ts +201 -0
- package/dist/visual/physics/record.d.ts +134 -0
- package/dist/visual/physics/relative.d.ts +201 -0
- package/dist/visual/physics/solar.d.ts +402 -0
- package/dist/visual/physics/vector.d.ts +335 -0
- package/dist/visual/physics/velocity.d.ts +469 -0
- package/dist/visual/physics/wave.d.ts +268 -0
- package/dist/visual/politics.d.ts +402 -0
- package/package.json +1 -1
|
@@ -7,6 +7,73 @@ import { type RichSlot } from "#contracts/visual/card";
|
|
|
7
7
|
export declare function cellVisuals<E>(rich: RichSlot<E>): {
|
|
8
8
|
CellCutawayLab: 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 cells: Schema.$Array<Schema.Literals<readonly ["animal", "plant", "yeast", "bacterium"]>>;
|
|
12
79
|
readonly labels: Schema.Struct<{
|
|
@@ -49,6 +116,73 @@ export declare function cellVisuals<E>(rich: RichSlot<E>): {
|
|
|
49
116
|
}>, "figure">;
|
|
50
117
|
CellScaleLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
51
118
|
readonly description: RichSlot<E>;
|
|
119
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
120
|
+
readonly attrs: {
|
|
121
|
+
readonly latex: string;
|
|
122
|
+
};
|
|
123
|
+
readonly type: "mathInline";
|
|
124
|
+
} | {
|
|
125
|
+
readonly marks?: readonly [{
|
|
126
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
127
|
+
} | {
|
|
128
|
+
readonly attrs: {
|
|
129
|
+
readonly href: string;
|
|
130
|
+
};
|
|
131
|
+
readonly type: "link";
|
|
132
|
+
} | {
|
|
133
|
+
readonly attrs: {
|
|
134
|
+
readonly variant: "success" | "warning" | null;
|
|
135
|
+
};
|
|
136
|
+
readonly type: "highlight";
|
|
137
|
+
}, ...({
|
|
138
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
139
|
+
} | {
|
|
140
|
+
readonly attrs: {
|
|
141
|
+
readonly href: string;
|
|
142
|
+
};
|
|
143
|
+
readonly type: "link";
|
|
144
|
+
} | {
|
|
145
|
+
readonly attrs: {
|
|
146
|
+
readonly variant: "success" | "warning" | null;
|
|
147
|
+
};
|
|
148
|
+
readonly type: "highlight";
|
|
149
|
+
})[]];
|
|
150
|
+
readonly text: string;
|
|
151
|
+
readonly type: "text";
|
|
152
|
+
}, ...({
|
|
153
|
+
readonly attrs: {
|
|
154
|
+
readonly latex: string;
|
|
155
|
+
};
|
|
156
|
+
readonly type: "mathInline";
|
|
157
|
+
} | {
|
|
158
|
+
readonly marks?: readonly [{
|
|
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 type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
172
|
+
} | {
|
|
173
|
+
readonly attrs: {
|
|
174
|
+
readonly href: string;
|
|
175
|
+
};
|
|
176
|
+
readonly type: "link";
|
|
177
|
+
} | {
|
|
178
|
+
readonly attrs: {
|
|
179
|
+
readonly variant: "success" | "warning" | null;
|
|
180
|
+
};
|
|
181
|
+
readonly type: "highlight";
|
|
182
|
+
})[]];
|
|
183
|
+
readonly text: string;
|
|
184
|
+
readonly type: "text";
|
|
185
|
+
})[]], E, never, never>>;
|
|
52
186
|
readonly title: RichSlot<E>;
|
|
53
187
|
readonly labels: Schema.Struct<{
|
|
54
188
|
readonly bacterium: RichSlot<E>;
|
|
@@ -61,6 +195,73 @@ export declare function cellVisuals<E>(rich: RichSlot<E>): {
|
|
|
61
195
|
}>, "figure">;
|
|
62
196
|
DnaHelixLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
63
197
|
readonly description: RichSlot<E>;
|
|
198
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
199
|
+
readonly attrs: {
|
|
200
|
+
readonly latex: string;
|
|
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 type: "mathInline";
|
|
236
|
+
} | {
|
|
237
|
+
readonly marks?: readonly [{
|
|
238
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
239
|
+
} | {
|
|
240
|
+
readonly attrs: {
|
|
241
|
+
readonly href: string;
|
|
242
|
+
};
|
|
243
|
+
readonly type: "link";
|
|
244
|
+
} | {
|
|
245
|
+
readonly attrs: {
|
|
246
|
+
readonly variant: "success" | "warning" | null;
|
|
247
|
+
};
|
|
248
|
+
readonly type: "highlight";
|
|
249
|
+
}, ...({
|
|
250
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
251
|
+
} | {
|
|
252
|
+
readonly attrs: {
|
|
253
|
+
readonly href: string;
|
|
254
|
+
};
|
|
255
|
+
readonly type: "link";
|
|
256
|
+
} | {
|
|
257
|
+
readonly attrs: {
|
|
258
|
+
readonly variant: "success" | "warning" | null;
|
|
259
|
+
};
|
|
260
|
+
readonly type: "highlight";
|
|
261
|
+
})[]];
|
|
262
|
+
readonly text: string;
|
|
263
|
+
readonly type: "text";
|
|
264
|
+
})[]], E, never, never>>;
|
|
64
265
|
readonly title: RichSlot<E>;
|
|
65
266
|
readonly copy: Schema.optionalKey<Schema.Boolean>;
|
|
66
267
|
readonly genome: Schema.optionalKey<Schema.Finite>;
|
|
@@ -7,6 +7,73 @@ import { type RichSlot } from "#contracts/visual/card";
|
|
|
7
7
|
export declare function climateVisuals<E>(rich: RichSlot<E>): {
|
|
8
8
|
CarbonBudgetLab: 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 labels: Schema.Struct<{
|
|
12
79
|
readonly above: Schema.optionalKey<RichSlot<E>>;
|
|
@@ -28,6 +95,73 @@ export declare function climateVisuals<E>(rich: RichSlot<E>): {
|
|
|
28
95
|
}>, "figure">;
|
|
29
96
|
CoralBleachLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
30
97
|
readonly description: RichSlot<E>;
|
|
98
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
99
|
+
readonly attrs: {
|
|
100
|
+
readonly latex: string;
|
|
101
|
+
};
|
|
102
|
+
readonly type: "mathInline";
|
|
103
|
+
} | {
|
|
104
|
+
readonly marks?: readonly [{
|
|
105
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
106
|
+
} | {
|
|
107
|
+
readonly attrs: {
|
|
108
|
+
readonly href: string;
|
|
109
|
+
};
|
|
110
|
+
readonly type: "link";
|
|
111
|
+
} | {
|
|
112
|
+
readonly attrs: {
|
|
113
|
+
readonly variant: "success" | "warning" | null;
|
|
114
|
+
};
|
|
115
|
+
readonly type: "highlight";
|
|
116
|
+
}, ...({
|
|
117
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
118
|
+
} | {
|
|
119
|
+
readonly attrs: {
|
|
120
|
+
readonly href: string;
|
|
121
|
+
};
|
|
122
|
+
readonly type: "link";
|
|
123
|
+
} | {
|
|
124
|
+
readonly attrs: {
|
|
125
|
+
readonly variant: "success" | "warning" | null;
|
|
126
|
+
};
|
|
127
|
+
readonly type: "highlight";
|
|
128
|
+
})[]];
|
|
129
|
+
readonly text: string;
|
|
130
|
+
readonly type: "text";
|
|
131
|
+
}, ...({
|
|
132
|
+
readonly attrs: {
|
|
133
|
+
readonly latex: string;
|
|
134
|
+
};
|
|
135
|
+
readonly type: "mathInline";
|
|
136
|
+
} | {
|
|
137
|
+
readonly marks?: readonly [{
|
|
138
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
139
|
+
} | {
|
|
140
|
+
readonly attrs: {
|
|
141
|
+
readonly href: string;
|
|
142
|
+
};
|
|
143
|
+
readonly type: "link";
|
|
144
|
+
} | {
|
|
145
|
+
readonly attrs: {
|
|
146
|
+
readonly variant: "success" | "warning" | null;
|
|
147
|
+
};
|
|
148
|
+
readonly type: "highlight";
|
|
149
|
+
}, ...({
|
|
150
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
151
|
+
} | {
|
|
152
|
+
readonly attrs: {
|
|
153
|
+
readonly href: string;
|
|
154
|
+
};
|
|
155
|
+
readonly type: "link";
|
|
156
|
+
} | {
|
|
157
|
+
readonly attrs: {
|
|
158
|
+
readonly variant: "success" | "warning" | null;
|
|
159
|
+
};
|
|
160
|
+
readonly type: "highlight";
|
|
161
|
+
})[]];
|
|
162
|
+
readonly text: string;
|
|
163
|
+
readonly type: "text";
|
|
164
|
+
})[]], E, never, never>>;
|
|
31
165
|
readonly title: RichSlot<E>;
|
|
32
166
|
readonly labels: Schema.Struct<{
|
|
33
167
|
readonly alert: RichSlot<E>;
|
|
@@ -41,6 +175,73 @@ export declare function climateVisuals<E>(rich: RichSlot<E>): {
|
|
|
41
175
|
}>, "figure">;
|
|
42
176
|
SeaLevelRiseLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
43
177
|
readonly description: RichSlot<E>;
|
|
178
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
179
|
+
readonly attrs: {
|
|
180
|
+
readonly latex: string;
|
|
181
|
+
};
|
|
182
|
+
readonly type: "mathInline";
|
|
183
|
+
} | {
|
|
184
|
+
readonly marks?: readonly [{
|
|
185
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
186
|
+
} | {
|
|
187
|
+
readonly attrs: {
|
|
188
|
+
readonly href: string;
|
|
189
|
+
};
|
|
190
|
+
readonly type: "link";
|
|
191
|
+
} | {
|
|
192
|
+
readonly attrs: {
|
|
193
|
+
readonly variant: "success" | "warning" | null;
|
|
194
|
+
};
|
|
195
|
+
readonly type: "highlight";
|
|
196
|
+
}, ...({
|
|
197
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
198
|
+
} | {
|
|
199
|
+
readonly attrs: {
|
|
200
|
+
readonly href: string;
|
|
201
|
+
};
|
|
202
|
+
readonly type: "link";
|
|
203
|
+
} | {
|
|
204
|
+
readonly attrs: {
|
|
205
|
+
readonly variant: "success" | "warning" | null;
|
|
206
|
+
};
|
|
207
|
+
readonly type: "highlight";
|
|
208
|
+
})[]];
|
|
209
|
+
readonly text: string;
|
|
210
|
+
readonly type: "text";
|
|
211
|
+
}, ...({
|
|
212
|
+
readonly attrs: {
|
|
213
|
+
readonly latex: string;
|
|
214
|
+
};
|
|
215
|
+
readonly type: "mathInline";
|
|
216
|
+
} | {
|
|
217
|
+
readonly marks?: readonly [{
|
|
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 type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
231
|
+
} | {
|
|
232
|
+
readonly attrs: {
|
|
233
|
+
readonly href: string;
|
|
234
|
+
};
|
|
235
|
+
readonly type: "link";
|
|
236
|
+
} | {
|
|
237
|
+
readonly attrs: {
|
|
238
|
+
readonly variant: "success" | "warning" | null;
|
|
239
|
+
};
|
|
240
|
+
readonly type: "highlight";
|
|
241
|
+
})[]];
|
|
242
|
+
readonly text: string;
|
|
243
|
+
readonly type: "text";
|
|
244
|
+
})[]], E, never, never>>;
|
|
44
245
|
readonly title: RichSlot<E>;
|
|
45
246
|
readonly labels: Schema.Struct<{
|
|
46
247
|
readonly choose: Schema.optionalKey<Schema.Trimmed>;
|