@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.
Files changed (79) hide show
  1. package/dist/math/boundary.d.ts +9 -0
  2. package/dist/math/boundary.js +81 -0
  3. package/dist/math/curve.d.ts +1 -0
  4. package/dist/math/curve.js +4 -2
  5. package/dist/math/formula/affine.d.ts +22 -0
  6. package/dist/math/formula/affine.js +79 -0
  7. package/dist/math/formula/contour.js +27 -12
  8. package/dist/math/object.d.ts +12 -0
  9. package/dist/math/object.js +11 -0
  10. package/dist/math/plane.d.ts +10 -0
  11. package/dist/math/plane.js +7 -1
  12. package/dist/math/space.d.ts +8 -0
  13. package/dist/math/space.js +5 -1
  14. package/dist/math/visual.d.ts +239 -212
  15. package/dist/visual/base/math.d.ts +78 -0
  16. package/dist/visual/base/math.js +31 -3
  17. package/dist/visual/base/media.d.ts +67 -0
  18. package/dist/visual/biology/bacteria.d.ts +268 -0
  19. package/dist/visual/biology/cell.d.ts +201 -0
  20. package/dist/visual/biology/climate.d.ts +201 -0
  21. package/dist/visual/biology/ecology.d.ts +268 -0
  22. package/dist/visual/biology/physiology.d.ts +201 -0
  23. package/dist/visual/biology/plant.d.ts +335 -0
  24. package/dist/visual/card.d.ts +79 -1
  25. package/dist/visual/card.js +18 -2
  26. package/dist/visual/catalog.d.ts +14164 -2
  27. package/dist/visual/catalog.js +4 -0
  28. package/dist/visual/chemistry/atom.d.ts +201 -0
  29. package/dist/visual/chemistry/balance.d.ts +335 -0
  30. package/dist/visual/chemistry/bonding.d.ts +335 -0
  31. package/dist/visual/chemistry/discovery.d.ts +469 -0
  32. package/dist/visual/chemistry/electrochemistry.d.ts +134 -0
  33. package/dist/visual/chemistry/electron.d.ts +134 -0
  34. package/dist/visual/chemistry/laws.d.ts +268 -0
  35. package/dist/visual/chemistry/particles.d.ts +335 -0
  36. package/dist/visual/chemistry/periodic.d.ts +134 -0
  37. package/dist/visual/chemistry/rate.d.ts +67 -0
  38. package/dist/visual/chemistry/reaction.d.ts +201 -0
  39. package/dist/visual/chemistry/titration.d.ts +67 -0
  40. package/dist/visual/length.d.ts +79 -0
  41. package/dist/visual/length.js +37 -0
  42. package/dist/visual/mathematics/chance.d.ts +258 -0
  43. package/dist/visual/mathematics/chance.js +117 -0
  44. package/dist/visual/mathematics/chart.d.ts +67 -0
  45. package/dist/visual/mathematics/charts.d.ts +335 -0
  46. package/dist/visual/mathematics/function.d.ts +201 -0
  47. package/dist/visual/mathematics/numeral.d.ts +170 -0
  48. package/dist/visual/mathematics/numeral.js +85 -0
  49. package/dist/visual/physics/braking.d.ts +268 -0
  50. package/dist/visual/physics/circuit.d.ts +268 -0
  51. package/dist/visual/physics/circular.d.ts +134 -0
  52. package/dist/visual/physics/dynamics.d.ts +469 -0
  53. package/dist/visual/physics/efficiency.d.ts +402 -0
  54. package/dist/visual/physics/electronics.d.ts +201 -0
  55. package/dist/visual/physics/falling.d.ts +268 -0
  56. package/dist/visual/physics/field.d.ts +201 -0
  57. package/dist/visual/physics/fluid.d.ts +268 -0
  58. package/dist/visual/physics/force.d.ts +335 -0
  59. package/dist/visual/physics/gravity.d.ts +134 -0
  60. package/dist/visual/physics/heat.d.ts +201 -0
  61. package/dist/visual/physics/instrument.d.ts +469 -0
  62. package/dist/visual/physics/light.d.ts +268 -0
  63. package/dist/visual/physics/measurement.d.ts +268 -0
  64. package/dist/visual/physics/motion.d.ts +402 -0
  65. package/dist/visual/physics/nuclear.d.ts +201 -0
  66. package/dist/visual/physics/parabolic.d.ts +67 -0
  67. package/dist/visual/physics/position.d.ts +402 -0
  68. package/dist/visual/physics/power.d.ts +536 -0
  69. package/dist/visual/physics/precision.d.ts +469 -0
  70. package/dist/visual/physics/product.d.ts +268 -0
  71. package/dist/visual/physics/reading.d.ts +201 -0
  72. package/dist/visual/physics/record.d.ts +134 -0
  73. package/dist/visual/physics/relative.d.ts +201 -0
  74. package/dist/visual/physics/solar.d.ts +402 -0
  75. package/dist/visual/physics/vector.d.ts +335 -0
  76. package/dist/visual/physics/velocity.d.ts +469 -0
  77. package/dist/visual/physics/wave.d.ts +268 -0
  78. package/dist/visual/politics.d.ts +402 -0
  79. package/package.json +1 -1
@@ -7,6 +7,73 @@ import { type RichSlot } from "#contracts/visual/card";
7
7
  export declare function precisionVisuals<E>(rich: RichSlot<E>): {
8
8
  SignificantZerosLab: 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 chooseTool: Schema.Trimmed;
@@ -22,6 +89,73 @@ export declare function precisionVisuals<E>(rich: RichSlot<E>): {
22
89
  }>, "figure">;
23
90
  DecimalSumLab: 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 labels: Schema.Struct<{
27
161
  readonly chooseTool: Schema.Trimmed;
@@ -35,6 +169,73 @@ export declare function precisionVisuals<E>(rich: RichSlot<E>): {
35
169
  }>, "figure">;
36
170
  PaperStackLab: 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 chooseStack: Schema.Trimmed;
@@ -46,6 +247,73 @@ export declare function precisionVisuals<E>(rich: RichSlot<E>): {
46
247
  }>, "figure">;
47
248
  BoltDimensionsLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
48
249
  readonly description: RichSlot<E>;
250
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
251
+ readonly attrs: {
252
+ readonly latex: string;
253
+ };
254
+ readonly type: "mathInline";
255
+ } | {
256
+ readonly marks?: readonly [{
257
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
258
+ } | {
259
+ readonly attrs: {
260
+ readonly href: string;
261
+ };
262
+ readonly type: "link";
263
+ } | {
264
+ readonly attrs: {
265
+ readonly variant: "success" | "warning" | null;
266
+ };
267
+ readonly type: "highlight";
268
+ }, ...({
269
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
270
+ } | {
271
+ readonly attrs: {
272
+ readonly href: string;
273
+ };
274
+ readonly type: "link";
275
+ } | {
276
+ readonly attrs: {
277
+ readonly variant: "success" | "warning" | null;
278
+ };
279
+ readonly type: "highlight";
280
+ })[]];
281
+ readonly text: string;
282
+ readonly type: "text";
283
+ }, ...({
284
+ readonly attrs: {
285
+ readonly latex: string;
286
+ };
287
+ readonly type: "mathInline";
288
+ } | {
289
+ readonly marks?: readonly [{
290
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
291
+ } | {
292
+ readonly attrs: {
293
+ readonly href: string;
294
+ };
295
+ readonly type: "link";
296
+ } | {
297
+ readonly attrs: {
298
+ readonly variant: "success" | "warning" | null;
299
+ };
300
+ readonly type: "highlight";
301
+ }, ...({
302
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
303
+ } | {
304
+ readonly attrs: {
305
+ readonly href: string;
306
+ };
307
+ readonly type: "link";
308
+ } | {
309
+ readonly attrs: {
310
+ readonly variant: "success" | "warning" | null;
311
+ };
312
+ readonly type: "highlight";
313
+ })[]];
314
+ readonly text: string;
315
+ readonly type: "text";
316
+ })[]], E, never, never>>;
49
317
  readonly title: RichSlot<E>;
50
318
  readonly labels: Schema.Struct<{
51
319
  readonly chooseQuantity: Schema.Trimmed;
@@ -57,6 +325,73 @@ export declare function precisionVisuals<E>(rich: RichSlot<E>): {
57
325
  }>, "figure">;
58
326
  DensityMeasurementLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
59
327
  readonly description: RichSlot<E>;
328
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
329
+ readonly attrs: {
330
+ readonly latex: string;
331
+ };
332
+ readonly type: "mathInline";
333
+ } | {
334
+ readonly marks?: readonly [{
335
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
336
+ } | {
337
+ readonly attrs: {
338
+ readonly href: string;
339
+ };
340
+ readonly type: "link";
341
+ } | {
342
+ readonly attrs: {
343
+ readonly variant: "success" | "warning" | null;
344
+ };
345
+ readonly type: "highlight";
346
+ }, ...({
347
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
348
+ } | {
349
+ readonly attrs: {
350
+ readonly href: string;
351
+ };
352
+ readonly type: "link";
353
+ } | {
354
+ readonly attrs: {
355
+ readonly variant: "success" | "warning" | null;
356
+ };
357
+ readonly type: "highlight";
358
+ })[]];
359
+ readonly text: string;
360
+ readonly type: "text";
361
+ }, ...({
362
+ readonly attrs: {
363
+ readonly latex: string;
364
+ };
365
+ readonly type: "mathInline";
366
+ } | {
367
+ readonly marks?: readonly [{
368
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
369
+ } | {
370
+ readonly attrs: {
371
+ readonly href: string;
372
+ };
373
+ readonly type: "link";
374
+ } | {
375
+ readonly attrs: {
376
+ readonly variant: "success" | "warning" | null;
377
+ };
378
+ readonly type: "highlight";
379
+ }, ...({
380
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
381
+ } | {
382
+ readonly attrs: {
383
+ readonly href: string;
384
+ };
385
+ readonly type: "link";
386
+ } | {
387
+ readonly attrs: {
388
+ readonly variant: "success" | "warning" | null;
389
+ };
390
+ readonly type: "highlight";
391
+ })[]];
392
+ readonly text: string;
393
+ readonly type: "text";
394
+ })[]], E, never, never>>;
60
395
  readonly title: RichSlot<E>;
61
396
  readonly labels: Schema.Struct<{
62
397
  readonly chooseMaterial: Schema.Trimmed;
@@ -71,6 +406,73 @@ export declare function precisionVisuals<E>(rich: RichSlot<E>): {
71
406
  }>, "figure">;
72
407
  CommonReferenceLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
73
408
  readonly description: RichSlot<E>;
409
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
410
+ readonly attrs: {
411
+ readonly latex: string;
412
+ };
413
+ readonly type: "mathInline";
414
+ } | {
415
+ readonly marks?: readonly [{
416
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
417
+ } | {
418
+ readonly attrs: {
419
+ readonly href: string;
420
+ };
421
+ readonly type: "link";
422
+ } | {
423
+ readonly attrs: {
424
+ readonly variant: "success" | "warning" | null;
425
+ };
426
+ readonly type: "highlight";
427
+ }, ...({
428
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
429
+ } | {
430
+ readonly attrs: {
431
+ readonly href: string;
432
+ };
433
+ readonly type: "link";
434
+ } | {
435
+ readonly attrs: {
436
+ readonly variant: "success" | "warning" | null;
437
+ };
438
+ readonly type: "highlight";
439
+ })[]];
440
+ readonly text: string;
441
+ readonly type: "text";
442
+ }, ...({
443
+ readonly attrs: {
444
+ readonly latex: string;
445
+ };
446
+ readonly type: "mathInline";
447
+ } | {
448
+ readonly marks?: readonly [{
449
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
450
+ } | {
451
+ readonly attrs: {
452
+ readonly href: string;
453
+ };
454
+ readonly type: "link";
455
+ } | {
456
+ readonly attrs: {
457
+ readonly variant: "success" | "warning" | null;
458
+ };
459
+ readonly type: "highlight";
460
+ }, ...({
461
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
462
+ } | {
463
+ readonly attrs: {
464
+ readonly href: string;
465
+ };
466
+ readonly type: "link";
467
+ } | {
468
+ readonly attrs: {
469
+ readonly variant: "success" | "warning" | null;
470
+ };
471
+ readonly type: "highlight";
472
+ })[]];
473
+ readonly text: string;
474
+ readonly type: "text";
475
+ })[]], E, never, never>>;
74
476
  readonly title: RichSlot<E>;
75
477
  readonly labels: Schema.Struct<{
76
478
  readonly chooseReference: Schema.Trimmed;
@@ -83,6 +485,73 @@ export declare function precisionVisuals<E>(rich: RichSlot<E>): {
83
485
  }>, "figure">;
84
486
  UnitSystemsLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
85
487
  readonly description: RichSlot<E>;
488
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
489
+ readonly attrs: {
490
+ readonly latex: string;
491
+ };
492
+ readonly type: "mathInline";
493
+ } | {
494
+ readonly marks?: readonly [{
495
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
496
+ } | {
497
+ readonly attrs: {
498
+ readonly href: string;
499
+ };
500
+ readonly type: "link";
501
+ } | {
502
+ readonly attrs: {
503
+ readonly variant: "success" | "warning" | null;
504
+ };
505
+ readonly type: "highlight";
506
+ }, ...({
507
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
508
+ } | {
509
+ readonly attrs: {
510
+ readonly href: string;
511
+ };
512
+ readonly type: "link";
513
+ } | {
514
+ readonly attrs: {
515
+ readonly variant: "success" | "warning" | null;
516
+ };
517
+ readonly type: "highlight";
518
+ })[]];
519
+ readonly text: string;
520
+ readonly type: "text";
521
+ }, ...({
522
+ readonly attrs: {
523
+ readonly latex: string;
524
+ };
525
+ readonly type: "mathInline";
526
+ } | {
527
+ readonly marks?: readonly [{
528
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
529
+ } | {
530
+ readonly attrs: {
531
+ readonly href: string;
532
+ };
533
+ readonly type: "link";
534
+ } | {
535
+ readonly attrs: {
536
+ readonly variant: "success" | "warning" | null;
537
+ };
538
+ readonly type: "highlight";
539
+ }, ...({
540
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
541
+ } | {
542
+ readonly attrs: {
543
+ readonly href: string;
544
+ };
545
+ readonly type: "link";
546
+ } | {
547
+ readonly attrs: {
548
+ readonly variant: "success" | "warning" | null;
549
+ };
550
+ readonly type: "highlight";
551
+ })[]];
552
+ readonly text: string;
553
+ readonly type: "text";
554
+ })[]], E, never, never>>;
86
555
  readonly title: RichSlot<E>;
87
556
  readonly labels: Schema.Struct<{
88
557
  readonly chooseSystem: Schema.Trimmed;