@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
@@ -8,6 +8,73 @@ import { type RichSlot } from "#contracts/visual/card";
8
8
  export declare function velocityVisuals<E>(rich: RichSlot<E>): {
9
9
  AverageVelocitySpeedLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
10
10
  readonly description: RichSlot<E>;
11
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
12
+ readonly attrs: {
13
+ readonly latex: string;
14
+ };
15
+ readonly type: "mathInline";
16
+ } | {
17
+ readonly marks?: readonly [{
18
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
19
+ } | {
20
+ readonly attrs: {
21
+ readonly href: string;
22
+ };
23
+ readonly type: "link";
24
+ } | {
25
+ readonly attrs: {
26
+ readonly variant: "success" | "warning" | null;
27
+ };
28
+ readonly type: "highlight";
29
+ }, ...({
30
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
31
+ } | {
32
+ readonly attrs: {
33
+ readonly href: string;
34
+ };
35
+ readonly type: "link";
36
+ } | {
37
+ readonly attrs: {
38
+ readonly variant: "success" | "warning" | null;
39
+ };
40
+ readonly type: "highlight";
41
+ })[]];
42
+ readonly text: string;
43
+ readonly type: "text";
44
+ }, ...({
45
+ readonly attrs: {
46
+ readonly latex: string;
47
+ };
48
+ readonly type: "mathInline";
49
+ } | {
50
+ readonly marks?: readonly [{
51
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
52
+ } | {
53
+ readonly attrs: {
54
+ readonly href: string;
55
+ };
56
+ readonly type: "link";
57
+ } | {
58
+ readonly attrs: {
59
+ readonly variant: "success" | "warning" | null;
60
+ };
61
+ readonly type: "highlight";
62
+ }, ...({
63
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
64
+ } | {
65
+ readonly attrs: {
66
+ readonly href: string;
67
+ };
68
+ readonly type: "link";
69
+ } | {
70
+ readonly attrs: {
71
+ readonly variant: "success" | "warning" | null;
72
+ };
73
+ readonly type: "highlight";
74
+ })[]];
75
+ readonly text: string;
76
+ readonly type: "text";
77
+ })[]], E, never, never>>;
11
78
  readonly title: RichSlot<E>;
12
79
  readonly decimalSeparator: Schema.optionalKey<Schema.Literals<readonly ["comma", "dot"]>>;
13
80
  readonly labels: Schema.Struct<{
@@ -25,6 +92,73 @@ export declare function velocityVisuals<E>(rich: RichSlot<E>): {
25
92
  }>, "figure">;
26
93
  DisplacementDistanceLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
27
94
  readonly description: RichSlot<E>;
95
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
96
+ readonly attrs: {
97
+ readonly latex: string;
98
+ };
99
+ readonly type: "mathInline";
100
+ } | {
101
+ readonly marks?: readonly [{
102
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
103
+ } | {
104
+ readonly attrs: {
105
+ readonly href: string;
106
+ };
107
+ readonly type: "link";
108
+ } | {
109
+ readonly attrs: {
110
+ readonly variant: "success" | "warning" | null;
111
+ };
112
+ readonly type: "highlight";
113
+ }, ...({
114
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
115
+ } | {
116
+ readonly attrs: {
117
+ readonly href: string;
118
+ };
119
+ readonly type: "link";
120
+ } | {
121
+ readonly attrs: {
122
+ readonly variant: "success" | "warning" | null;
123
+ };
124
+ readonly type: "highlight";
125
+ })[]];
126
+ readonly text: string;
127
+ readonly type: "text";
128
+ }, ...({
129
+ readonly attrs: {
130
+ readonly latex: string;
131
+ };
132
+ readonly type: "mathInline";
133
+ } | {
134
+ readonly marks?: readonly [{
135
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
136
+ } | {
137
+ readonly attrs: {
138
+ readonly href: string;
139
+ };
140
+ readonly type: "link";
141
+ } | {
142
+ readonly attrs: {
143
+ readonly variant: "success" | "warning" | null;
144
+ };
145
+ readonly type: "highlight";
146
+ }, ...({
147
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
148
+ } | {
149
+ readonly attrs: {
150
+ readonly href: string;
151
+ };
152
+ readonly type: "link";
153
+ } | {
154
+ readonly attrs: {
155
+ readonly variant: "success" | "warning" | null;
156
+ };
157
+ readonly type: "highlight";
158
+ })[]];
159
+ readonly text: string;
160
+ readonly type: "text";
161
+ })[]], E, never, never>>;
28
162
  readonly title: RichSlot<E>;
29
163
  readonly labels: Schema.Struct<{
30
164
  readonly chooseCase: Schema.Trimmed;
@@ -41,6 +175,73 @@ export declare function velocityVisuals<E>(rich: RichSlot<E>): {
41
175
  }>, "figure">;
42
176
  InstantaneousVelocitySpeedLab: 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 chooseMoment: Schema.Trimmed;
@@ -54,6 +255,73 @@ export declare function velocityVisuals<E>(rich: RichSlot<E>): {
54
255
  }>, "figure">;
55
256
  RelativeMovementLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
56
257
  readonly description: RichSlot<E>;
258
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
259
+ readonly attrs: {
260
+ readonly latex: string;
261
+ };
262
+ readonly type: "mathInline";
263
+ } | {
264
+ readonly marks?: readonly [{
265
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
266
+ } | {
267
+ readonly attrs: {
268
+ readonly href: string;
269
+ };
270
+ readonly type: "link";
271
+ } | {
272
+ readonly attrs: {
273
+ readonly variant: "success" | "warning" | null;
274
+ };
275
+ readonly type: "highlight";
276
+ }, ...({
277
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
278
+ } | {
279
+ readonly attrs: {
280
+ readonly href: string;
281
+ };
282
+ readonly type: "link";
283
+ } | {
284
+ readonly attrs: {
285
+ readonly variant: "success" | "warning" | null;
286
+ };
287
+ readonly type: "highlight";
288
+ })[]];
289
+ readonly text: string;
290
+ readonly type: "text";
291
+ }, ...({
292
+ readonly attrs: {
293
+ readonly latex: string;
294
+ };
295
+ readonly type: "mathInline";
296
+ } | {
297
+ readonly marks?: readonly [{
298
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
299
+ } | {
300
+ readonly attrs: {
301
+ readonly href: string;
302
+ };
303
+ readonly type: "link";
304
+ } | {
305
+ readonly attrs: {
306
+ readonly variant: "success" | "warning" | null;
307
+ };
308
+ readonly type: "highlight";
309
+ }, ...({
310
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
311
+ } | {
312
+ readonly attrs: {
313
+ readonly href: string;
314
+ };
315
+ readonly type: "link";
316
+ } | {
317
+ readonly attrs: {
318
+ readonly variant: "success" | "warning" | null;
319
+ };
320
+ readonly type: "highlight";
321
+ })[]];
322
+ readonly text: string;
323
+ readonly type: "text";
324
+ })[]], E, never, never>>;
57
325
  readonly title: RichSlot<E>;
58
326
  readonly labels: Schema.Struct<{
59
327
  readonly chooseCase: Schema.Trimmed;
@@ -70,6 +338,73 @@ export declare function velocityVisuals<E>(rich: RichSlot<E>): {
70
338
  }>, "figure">;
71
339
  StoppingDistanceLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
72
340
  readonly description: RichSlot<E>;
341
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
342
+ readonly attrs: {
343
+ readonly latex: string;
344
+ };
345
+ readonly type: "mathInline";
346
+ } | {
347
+ readonly marks?: readonly [{
348
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
349
+ } | {
350
+ readonly attrs: {
351
+ readonly href: string;
352
+ };
353
+ readonly type: "link";
354
+ } | {
355
+ readonly attrs: {
356
+ readonly variant: "success" | "warning" | null;
357
+ };
358
+ readonly type: "highlight";
359
+ }, ...({
360
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
361
+ } | {
362
+ readonly attrs: {
363
+ readonly href: string;
364
+ };
365
+ readonly type: "link";
366
+ } | {
367
+ readonly attrs: {
368
+ readonly variant: "success" | "warning" | null;
369
+ };
370
+ readonly type: "highlight";
371
+ })[]];
372
+ readonly text: string;
373
+ readonly type: "text";
374
+ }, ...({
375
+ readonly attrs: {
376
+ readonly latex: string;
377
+ };
378
+ readonly type: "mathInline";
379
+ } | {
380
+ readonly marks?: readonly [{
381
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
382
+ } | {
383
+ readonly attrs: {
384
+ readonly href: string;
385
+ };
386
+ readonly type: "link";
387
+ } | {
388
+ readonly attrs: {
389
+ readonly variant: "success" | "warning" | null;
390
+ };
391
+ readonly type: "highlight";
392
+ }, ...({
393
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
394
+ } | {
395
+ readonly attrs: {
396
+ readonly href: string;
397
+ };
398
+ readonly type: "link";
399
+ } | {
400
+ readonly attrs: {
401
+ readonly variant: "success" | "warning" | null;
402
+ };
403
+ readonly type: "highlight";
404
+ })[]];
405
+ readonly text: string;
406
+ readonly type: "text";
407
+ })[]], E, never, never>>;
73
408
  readonly title: RichSlot<E>;
74
409
  readonly labels: Schema.Struct<{
75
410
  readonly brakingDistance: RichSlot<E>;
@@ -82,6 +417,73 @@ export declare function velocityVisuals<E>(rich: RichSlot<E>): {
82
417
  }>, "figure">;
83
418
  VelocitySpeedLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
84
419
  readonly description: RichSlot<E>;
420
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
421
+ readonly attrs: {
422
+ readonly latex: string;
423
+ };
424
+ readonly type: "mathInline";
425
+ } | {
426
+ readonly marks?: readonly [{
427
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
428
+ } | {
429
+ readonly attrs: {
430
+ readonly href: string;
431
+ };
432
+ readonly type: "link";
433
+ } | {
434
+ readonly attrs: {
435
+ readonly variant: "success" | "warning" | null;
436
+ };
437
+ readonly type: "highlight";
438
+ }, ...({
439
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
440
+ } | {
441
+ readonly attrs: {
442
+ readonly href: string;
443
+ };
444
+ readonly type: "link";
445
+ } | {
446
+ readonly attrs: {
447
+ readonly variant: "success" | "warning" | null;
448
+ };
449
+ readonly type: "highlight";
450
+ })[]];
451
+ readonly text: string;
452
+ readonly type: "text";
453
+ }, ...({
454
+ readonly attrs: {
455
+ readonly latex: string;
456
+ };
457
+ readonly type: "mathInline";
458
+ } | {
459
+ readonly marks?: readonly [{
460
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
461
+ } | {
462
+ readonly attrs: {
463
+ readonly href: string;
464
+ };
465
+ readonly type: "link";
466
+ } | {
467
+ readonly attrs: {
468
+ readonly variant: "success" | "warning" | null;
469
+ };
470
+ readonly type: "highlight";
471
+ }, ...({
472
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
473
+ } | {
474
+ readonly attrs: {
475
+ readonly href: string;
476
+ };
477
+ readonly type: "link";
478
+ } | {
479
+ readonly attrs: {
480
+ readonly variant: "success" | "warning" | null;
481
+ };
482
+ readonly type: "highlight";
483
+ })[]];
484
+ readonly text: string;
485
+ readonly type: "text";
486
+ })[]], E, never, never>>;
85
487
  readonly title: RichSlot<E>;
86
488
  readonly labels: Schema.Struct<{
87
489
  readonly chooseCase: Schema.Trimmed;
@@ -97,6 +499,73 @@ export declare function velocityVisuals<E>(rich: RichSlot<E>): {
97
499
  }>, "figure">;
98
500
  VerticalMovementLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
99
501
  readonly description: RichSlot<E>;
502
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
503
+ readonly attrs: {
504
+ readonly latex: string;
505
+ };
506
+ readonly type: "mathInline";
507
+ } | {
508
+ readonly marks?: readonly [{
509
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
510
+ } | {
511
+ readonly attrs: {
512
+ readonly href: string;
513
+ };
514
+ readonly type: "link";
515
+ } | {
516
+ readonly attrs: {
517
+ readonly variant: "success" | "warning" | null;
518
+ };
519
+ readonly type: "highlight";
520
+ }, ...({
521
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
522
+ } | {
523
+ readonly attrs: {
524
+ readonly href: string;
525
+ };
526
+ readonly type: "link";
527
+ } | {
528
+ readonly attrs: {
529
+ readonly variant: "success" | "warning" | null;
530
+ };
531
+ readonly type: "highlight";
532
+ })[]];
533
+ readonly text: string;
534
+ readonly type: "text";
535
+ }, ...({
536
+ readonly attrs: {
537
+ readonly latex: string;
538
+ };
539
+ readonly type: "mathInline";
540
+ } | {
541
+ readonly marks?: readonly [{
542
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
543
+ } | {
544
+ readonly attrs: {
545
+ readonly href: string;
546
+ };
547
+ readonly type: "link";
548
+ } | {
549
+ readonly attrs: {
550
+ readonly variant: "success" | "warning" | null;
551
+ };
552
+ readonly type: "highlight";
553
+ }, ...({
554
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
555
+ } | {
556
+ readonly attrs: {
557
+ readonly href: string;
558
+ };
559
+ readonly type: "link";
560
+ } | {
561
+ readonly attrs: {
562
+ readonly variant: "success" | "warning" | null;
563
+ };
564
+ readonly type: "highlight";
565
+ })[]];
566
+ readonly text: string;
567
+ readonly type: "text";
568
+ })[]], E, never, never>>;
100
569
  readonly title: RichSlot<E>;
101
570
  readonly decimalSeparator: Schema.optionalKey<Schema.Literals<readonly ["comma", "dot"]>>;
102
571
  readonly labels: Schema.Struct<{