@nakafa/aksara-contracts 8.1.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 (98) 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/biology.d.ts +16 -16
  25. package/dist/visual/biology.js +2 -2
  26. package/dist/visual/card.d.ts +79 -1
  27. package/dist/visual/card.js +18 -2
  28. package/dist/visual/catalog.d.ts +14808 -28
  29. package/dist/visual/catalog.js +26 -0
  30. package/dist/visual/chemistry/atom.d.ts +203 -2
  31. package/dist/visual/chemistry/atom.js +2 -2
  32. package/dist/visual/chemistry/balance.d.ts +335 -0
  33. package/dist/visual/chemistry/bonding.d.ts +335 -0
  34. package/dist/visual/chemistry/discovery.d.ts +469 -0
  35. package/dist/visual/chemistry/electrochemistry.d.ts +134 -0
  36. package/dist/visual/chemistry/electron.d.ts +134 -0
  37. package/dist/visual/chemistry/laws.d.ts +268 -0
  38. package/dist/visual/chemistry/particles.d.ts +335 -0
  39. package/dist/visual/chemistry/periodic.d.ts +134 -0
  40. package/dist/visual/chemistry/rate.d.ts +67 -0
  41. package/dist/visual/chemistry/reaction.d.ts +201 -0
  42. package/dist/visual/chemistry/titration.d.ts +67 -0
  43. package/dist/visual/length.d.ts +79 -0
  44. package/dist/visual/length.js +37 -0
  45. package/dist/visual/mathematics/chance.d.ts +258 -0
  46. package/dist/visual/mathematics/chance.js +117 -0
  47. package/dist/visual/mathematics/chart.d.ts +67 -0
  48. package/dist/visual/mathematics/charts.d.ts +335 -0
  49. package/dist/visual/mathematics/function.d.ts +205 -4
  50. package/dist/visual/mathematics/function.js +4 -4
  51. package/dist/visual/mathematics/geometry.d.ts +1 -1
  52. package/dist/visual/mathematics/geometry.js +1 -1
  53. package/dist/visual/mathematics/numeral.d.ts +170 -0
  54. package/dist/visual/mathematics/numeral.js +85 -0
  55. package/dist/visual/physics/braking.d.ts +268 -0
  56. package/dist/visual/physics/circuit.d.ts +343 -0
  57. package/dist/visual/physics/circuit.js +86 -0
  58. package/dist/visual/physics/circular.d.ts +134 -0
  59. package/dist/visual/physics/dynamics.d.ts +579 -0
  60. package/dist/visual/physics/dynamics.js +134 -0
  61. package/dist/visual/physics/efficiency.d.ts +402 -0
  62. package/dist/visual/physics/electronics.d.ts +260 -0
  63. package/dist/visual/physics/electronics.js +71 -0
  64. package/dist/visual/physics/falling.d.ts +268 -0
  65. package/dist/visual/physics/field.d.ts +249 -0
  66. package/dist/visual/physics/field.js +60 -0
  67. package/dist/visual/physics/fluid.d.ts +336 -0
  68. package/dist/visual/physics/fluid.js +83 -0
  69. package/dist/visual/physics/force.d.ts +335 -0
  70. package/dist/visual/physics/gravity.d.ts +172 -0
  71. package/dist/visual/physics/gravity.js +47 -0
  72. package/dist/visual/physics/heat.d.ts +255 -0
  73. package/dist/visual/physics/heat.js +66 -0
  74. package/dist/visual/physics/instrument.d.ts +469 -0
  75. package/dist/visual/physics/light.d.ts +343 -0
  76. package/dist/visual/physics/light.js +90 -0
  77. package/dist/visual/physics/measurement.d.ts +268 -0
  78. package/dist/visual/physics/motion.d.ts +402 -0
  79. package/dist/visual/physics/nuclear.d.ts +258 -0
  80. package/dist/visual/physics/nuclear.js +69 -0
  81. package/dist/visual/physics/parabolic.d.ts +69 -2
  82. package/dist/visual/physics/parabolic.js +2 -2
  83. package/dist/visual/physics/position.d.ts +402 -0
  84. package/dist/visual/physics/power.d.ts +536 -0
  85. package/dist/visual/physics/precision.d.ts +469 -0
  86. package/dist/visual/physics/product.d.ts +268 -0
  87. package/dist/visual/physics/reading.d.ts +253 -0
  88. package/dist/visual/physics/reading.js +61 -0
  89. package/dist/visual/physics/record.d.ts +134 -0
  90. package/dist/visual/physics/relative.d.ts +201 -0
  91. package/dist/visual/physics/solar.d.ts +402 -0
  92. package/dist/visual/physics/vector.d.ts +335 -0
  93. package/dist/visual/physics/velocity.d.ts +469 -0
  94. package/dist/visual/physics/wave.d.ts +338 -0
  95. package/dist/visual/physics/wave.js +85 -0
  96. package/dist/visual/politics.d.ts +403 -1
  97. package/dist/visual/politics.js +1 -1
  98. package/package.json +1 -1
@@ -8,6 +8,73 @@ import { type RichSlot } from "#contracts/visual/card";
8
8
  export declare function motionVisuals<E>(rich: RichSlot<E>): {
9
9
  AccelerationGraphCard: 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 labels: Schema.Struct<{
13
80
  readonly chooseCase: Schema.Trimmed;
@@ -19,6 +86,73 @@ export declare function motionVisuals<E>(rich: RichSlot<E>): {
19
86
  }>, "figure">;
20
87
  AccelerationLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
21
88
  readonly description: RichSlot<E>;
89
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
90
+ readonly attrs: {
91
+ readonly latex: string;
92
+ };
93
+ readonly type: "mathInline";
94
+ } | {
95
+ readonly marks?: readonly [{
96
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
97
+ } | {
98
+ readonly attrs: {
99
+ readonly href: string;
100
+ };
101
+ readonly type: "link";
102
+ } | {
103
+ readonly attrs: {
104
+ readonly variant: "success" | "warning" | null;
105
+ };
106
+ readonly type: "highlight";
107
+ }, ...({
108
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
109
+ } | {
110
+ readonly attrs: {
111
+ readonly href: string;
112
+ };
113
+ readonly type: "link";
114
+ } | {
115
+ readonly attrs: {
116
+ readonly variant: "success" | "warning" | null;
117
+ };
118
+ readonly type: "highlight";
119
+ })[]];
120
+ readonly text: string;
121
+ readonly type: "text";
122
+ }, ...({
123
+ readonly attrs: {
124
+ readonly latex: string;
125
+ };
126
+ readonly type: "mathInline";
127
+ } | {
128
+ readonly marks?: readonly [{
129
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
130
+ } | {
131
+ readonly attrs: {
132
+ readonly href: string;
133
+ };
134
+ readonly type: "link";
135
+ } | {
136
+ readonly attrs: {
137
+ readonly variant: "success" | "warning" | null;
138
+ };
139
+ readonly type: "highlight";
140
+ }, ...({
141
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
142
+ } | {
143
+ readonly attrs: {
144
+ readonly href: string;
145
+ };
146
+ readonly type: "link";
147
+ } | {
148
+ readonly attrs: {
149
+ readonly variant: "success" | "warning" | null;
150
+ };
151
+ readonly type: "highlight";
152
+ })[]];
153
+ readonly text: string;
154
+ readonly type: "text";
155
+ })[]], E, never, never>>;
22
156
  readonly title: RichSlot<E>;
23
157
  readonly labels: Schema.Struct<{
24
158
  readonly chooseCase: Schema.Trimmed;
@@ -34,6 +168,73 @@ export declare function motionVisuals<E>(rich: RichSlot<E>): {
34
168
  }>, "figure">;
35
169
  NonUniformLinearMotionGraphCard: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
36
170
  readonly description: RichSlot<E>;
171
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
172
+ readonly attrs: {
173
+ readonly latex: string;
174
+ };
175
+ readonly type: "mathInline";
176
+ } | {
177
+ readonly marks?: readonly [{
178
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
179
+ } | {
180
+ readonly attrs: {
181
+ readonly href: string;
182
+ };
183
+ readonly type: "link";
184
+ } | {
185
+ readonly attrs: {
186
+ readonly variant: "success" | "warning" | null;
187
+ };
188
+ readonly type: "highlight";
189
+ }, ...({
190
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
191
+ } | {
192
+ readonly attrs: {
193
+ readonly href: string;
194
+ };
195
+ readonly type: "link";
196
+ } | {
197
+ readonly attrs: {
198
+ readonly variant: "success" | "warning" | null;
199
+ };
200
+ readonly type: "highlight";
201
+ })[]];
202
+ readonly text: string;
203
+ readonly type: "text";
204
+ }, ...({
205
+ readonly attrs: {
206
+ readonly latex: string;
207
+ };
208
+ readonly type: "mathInline";
209
+ } | {
210
+ readonly marks?: readonly [{
211
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
212
+ } | {
213
+ readonly attrs: {
214
+ readonly href: string;
215
+ };
216
+ readonly type: "link";
217
+ } | {
218
+ readonly attrs: {
219
+ readonly variant: "success" | "warning" | null;
220
+ };
221
+ readonly type: "highlight";
222
+ }, ...({
223
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
224
+ } | {
225
+ readonly attrs: {
226
+ readonly href: string;
227
+ };
228
+ readonly type: "link";
229
+ } | {
230
+ readonly attrs: {
231
+ readonly variant: "success" | "warning" | null;
232
+ };
233
+ readonly type: "highlight";
234
+ })[]];
235
+ readonly text: string;
236
+ readonly type: "text";
237
+ })[]], E, never, never>>;
37
238
  readonly title: RichSlot<E>;
38
239
  readonly labels: Schema.Struct<{
39
240
  readonly chooseScenario: Schema.Trimmed;
@@ -44,6 +245,73 @@ export declare function motionVisuals<E>(rich: RichSlot<E>): {
44
245
  }>, "figure">;
45
246
  NonUniformLinearMotionLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
46
247
  readonly description: RichSlot<E>;
248
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
249
+ readonly attrs: {
250
+ readonly latex: string;
251
+ };
252
+ readonly type: "mathInline";
253
+ } | {
254
+ readonly marks?: readonly [{
255
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
256
+ } | {
257
+ readonly attrs: {
258
+ readonly href: string;
259
+ };
260
+ readonly type: "link";
261
+ } | {
262
+ readonly attrs: {
263
+ readonly variant: "success" | "warning" | null;
264
+ };
265
+ readonly type: "highlight";
266
+ }, ...({
267
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
268
+ } | {
269
+ readonly attrs: {
270
+ readonly href: string;
271
+ };
272
+ readonly type: "link";
273
+ } | {
274
+ readonly attrs: {
275
+ readonly variant: "success" | "warning" | null;
276
+ };
277
+ readonly type: "highlight";
278
+ })[]];
279
+ readonly text: string;
280
+ readonly type: "text";
281
+ }, ...({
282
+ readonly attrs: {
283
+ readonly latex: string;
284
+ };
285
+ readonly type: "mathInline";
286
+ } | {
287
+ readonly marks?: readonly [{
288
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
289
+ } | {
290
+ readonly attrs: {
291
+ readonly href: string;
292
+ };
293
+ readonly type: "link";
294
+ } | {
295
+ readonly attrs: {
296
+ readonly variant: "success" | "warning" | null;
297
+ };
298
+ readonly type: "highlight";
299
+ }, ...({
300
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
301
+ } | {
302
+ readonly attrs: {
303
+ readonly href: string;
304
+ };
305
+ readonly type: "link";
306
+ } | {
307
+ readonly attrs: {
308
+ readonly variant: "success" | "warning" | null;
309
+ };
310
+ readonly type: "highlight";
311
+ })[]];
312
+ readonly text: string;
313
+ readonly type: "text";
314
+ })[]], E, never, never>>;
47
315
  readonly title: RichSlot<E>;
48
316
  readonly labels: Schema.Struct<{
49
317
  readonly chooseScenario: Schema.Trimmed;
@@ -59,6 +327,73 @@ export declare function motionVisuals<E>(rich: RichSlot<E>): {
59
327
  }>, "figure">;
60
328
  UniformCircularMotionLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
61
329
  readonly description: RichSlot<E>;
330
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
331
+ readonly attrs: {
332
+ readonly latex: string;
333
+ };
334
+ readonly type: "mathInline";
335
+ } | {
336
+ readonly marks?: readonly [{
337
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
338
+ } | {
339
+ readonly attrs: {
340
+ readonly href: string;
341
+ };
342
+ readonly type: "link";
343
+ } | {
344
+ readonly attrs: {
345
+ readonly variant: "success" | "warning" | null;
346
+ };
347
+ readonly type: "highlight";
348
+ }, ...({
349
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
350
+ } | {
351
+ readonly attrs: {
352
+ readonly href: string;
353
+ };
354
+ readonly type: "link";
355
+ } | {
356
+ readonly attrs: {
357
+ readonly variant: "success" | "warning" | null;
358
+ };
359
+ readonly type: "highlight";
360
+ })[]];
361
+ readonly text: string;
362
+ readonly type: "text";
363
+ }, ...({
364
+ readonly attrs: {
365
+ readonly latex: string;
366
+ };
367
+ readonly type: "mathInline";
368
+ } | {
369
+ readonly marks?: readonly [{
370
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
371
+ } | {
372
+ readonly attrs: {
373
+ readonly href: string;
374
+ };
375
+ readonly type: "link";
376
+ } | {
377
+ readonly attrs: {
378
+ readonly variant: "success" | "warning" | null;
379
+ };
380
+ readonly type: "highlight";
381
+ }, ...({
382
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
383
+ } | {
384
+ readonly attrs: {
385
+ readonly href: string;
386
+ };
387
+ readonly type: "link";
388
+ } | {
389
+ readonly attrs: {
390
+ readonly variant: "success" | "warning" | null;
391
+ };
392
+ readonly type: "highlight";
393
+ })[]];
394
+ readonly text: string;
395
+ readonly type: "text";
396
+ })[]], E, never, never>>;
62
397
  readonly title: RichSlot<E>;
63
398
  readonly decimalSeparator: Schema.optionalKey<Schema.Literals<readonly ["comma", "dot"]>>;
64
399
  readonly labels: Schema.Struct<{
@@ -72,6 +407,73 @@ export declare function motionVisuals<E>(rich: RichSlot<E>): {
72
407
  }>, "figure">;
73
408
  UniformLinearMotionLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
74
409
  readonly description: RichSlot<E>;
410
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
411
+ readonly attrs: {
412
+ readonly latex: string;
413
+ };
414
+ readonly type: "mathInline";
415
+ } | {
416
+ readonly marks?: readonly [{
417
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
418
+ } | {
419
+ readonly attrs: {
420
+ readonly href: string;
421
+ };
422
+ readonly type: "link";
423
+ } | {
424
+ readonly attrs: {
425
+ readonly variant: "success" | "warning" | null;
426
+ };
427
+ readonly type: "highlight";
428
+ }, ...({
429
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
430
+ } | {
431
+ readonly attrs: {
432
+ readonly href: string;
433
+ };
434
+ readonly type: "link";
435
+ } | {
436
+ readonly attrs: {
437
+ readonly variant: "success" | "warning" | null;
438
+ };
439
+ readonly type: "highlight";
440
+ })[]];
441
+ readonly text: string;
442
+ readonly type: "text";
443
+ }, ...({
444
+ readonly attrs: {
445
+ readonly latex: string;
446
+ };
447
+ readonly type: "mathInline";
448
+ } | {
449
+ readonly marks?: readonly [{
450
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
451
+ } | {
452
+ readonly attrs: {
453
+ readonly href: string;
454
+ };
455
+ readonly type: "link";
456
+ } | {
457
+ readonly attrs: {
458
+ readonly variant: "success" | "warning" | null;
459
+ };
460
+ readonly type: "highlight";
461
+ }, ...({
462
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
463
+ } | {
464
+ readonly attrs: {
465
+ readonly href: string;
466
+ };
467
+ readonly type: "link";
468
+ } | {
469
+ readonly attrs: {
470
+ readonly variant: "success" | "warning" | null;
471
+ };
472
+ readonly type: "highlight";
473
+ })[]];
474
+ readonly text: string;
475
+ readonly type: "text";
476
+ })[]], E, never, never>>;
75
477
  readonly title: RichSlot<E>;
76
478
  readonly labels: Schema.Struct<{
77
479
  readonly chooseSpeed: Schema.Trimmed;