@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
@@ -7,6 +7,73 @@ import { type RichSlot } from "#contracts/visual/card";
7
7
  export declare function solarVisuals<E>(rich: RichSlot<E>): {
8
8
  SolarPanelAngleLab: 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 incidence: RichSlot<E>;
@@ -21,6 +88,73 @@ export declare function solarVisuals<E>(rich: RichSlot<E>): {
21
88
  }>, "figure">;
22
89
  SolarPanelHeatLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
23
90
  readonly description: RichSlot<E>;
91
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
92
+ readonly attrs: {
93
+ readonly latex: string;
94
+ };
95
+ readonly type: "mathInline";
96
+ } | {
97
+ readonly marks?: readonly [{
98
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
99
+ } | {
100
+ readonly attrs: {
101
+ readonly href: string;
102
+ };
103
+ readonly type: "link";
104
+ } | {
105
+ readonly attrs: {
106
+ readonly variant: "success" | "warning" | null;
107
+ };
108
+ readonly type: "highlight";
109
+ }, ...({
110
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
111
+ } | {
112
+ readonly attrs: {
113
+ readonly href: string;
114
+ };
115
+ readonly type: "link";
116
+ } | {
117
+ readonly attrs: {
118
+ readonly variant: "success" | "warning" | null;
119
+ };
120
+ readonly type: "highlight";
121
+ })[]];
122
+ readonly text: string;
123
+ readonly type: "text";
124
+ }, ...({
125
+ readonly attrs: {
126
+ readonly latex: string;
127
+ };
128
+ readonly type: "mathInline";
129
+ } | {
130
+ readonly marks?: readonly [{
131
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
132
+ } | {
133
+ readonly attrs: {
134
+ readonly href: string;
135
+ };
136
+ readonly type: "link";
137
+ } | {
138
+ readonly attrs: {
139
+ readonly variant: "success" | "warning" | null;
140
+ };
141
+ readonly type: "highlight";
142
+ }, ...({
143
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
144
+ } | {
145
+ readonly attrs: {
146
+ readonly href: string;
147
+ };
148
+ readonly type: "link";
149
+ } | {
150
+ readonly attrs: {
151
+ readonly variant: "success" | "warning" | null;
152
+ };
153
+ readonly type: "highlight";
154
+ })[]];
155
+ readonly text: string;
156
+ readonly type: "text";
157
+ })[]], E, never, never>>;
24
158
  readonly title: RichSlot<E>;
25
159
  readonly irradiance: Schema.optionalKey<Schema.Finite>;
26
160
  readonly labels: Schema.Struct<{
@@ -36,6 +170,73 @@ export declare function solarVisuals<E>(rich: RichSlot<E>): {
36
170
  }>, "figure">;
37
171
  SolarRoofPaybackLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
38
172
  readonly description: RichSlot<E>;
173
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
174
+ readonly attrs: {
175
+ readonly latex: string;
176
+ };
177
+ readonly type: "mathInline";
178
+ } | {
179
+ readonly marks?: readonly [{
180
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
181
+ } | {
182
+ readonly attrs: {
183
+ readonly href: string;
184
+ };
185
+ readonly type: "link";
186
+ } | {
187
+ readonly attrs: {
188
+ readonly variant: "success" | "warning" | null;
189
+ };
190
+ readonly type: "highlight";
191
+ }, ...({
192
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
193
+ } | {
194
+ readonly attrs: {
195
+ readonly href: string;
196
+ };
197
+ readonly type: "link";
198
+ } | {
199
+ readonly attrs: {
200
+ readonly variant: "success" | "warning" | null;
201
+ };
202
+ readonly type: "highlight";
203
+ })[]];
204
+ readonly text: string;
205
+ readonly type: "text";
206
+ }, ...({
207
+ readonly attrs: {
208
+ readonly latex: string;
209
+ };
210
+ readonly type: "mathInline";
211
+ } | {
212
+ readonly marks?: readonly [{
213
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
214
+ } | {
215
+ readonly attrs: {
216
+ readonly href: string;
217
+ };
218
+ readonly type: "link";
219
+ } | {
220
+ readonly attrs: {
221
+ readonly variant: "success" | "warning" | null;
222
+ };
223
+ readonly type: "highlight";
224
+ }, ...({
225
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
226
+ } | {
227
+ readonly attrs: {
228
+ readonly href: string;
229
+ };
230
+ readonly type: "link";
231
+ } | {
232
+ readonly attrs: {
233
+ readonly variant: "success" | "warning" | null;
234
+ };
235
+ readonly type: "highlight";
236
+ })[]];
237
+ readonly text: string;
238
+ readonly type: "text";
239
+ })[]], E, never, never>>;
39
240
  readonly title: RichSlot<E>;
40
241
  readonly labels: Schema.Struct<{
41
242
  readonly invested: RichSlot<E>;
@@ -49,6 +250,73 @@ export declare function solarVisuals<E>(rich: RichSlot<E>): {
49
250
  }>, "figure">;
50
251
  SolarBatteryStorageLab: 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 chooseSize: Schema.Trimmed;
@@ -62,6 +330,73 @@ export declare function solarVisuals<E>(rich: RichSlot<E>): {
62
330
  }>, "figure">;
63
331
  GreenhouseLayerLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
64
332
  readonly description: RichSlot<E>;
333
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
334
+ readonly attrs: {
335
+ readonly latex: string;
336
+ };
337
+ readonly type: "mathInline";
338
+ } | {
339
+ readonly marks?: readonly [{
340
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
341
+ } | {
342
+ readonly attrs: {
343
+ readonly href: string;
344
+ };
345
+ readonly type: "link";
346
+ } | {
347
+ readonly attrs: {
348
+ readonly variant: "success" | "warning" | null;
349
+ };
350
+ readonly type: "highlight";
351
+ }, ...({
352
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
353
+ } | {
354
+ readonly attrs: {
355
+ readonly href: string;
356
+ };
357
+ readonly type: "link";
358
+ } | {
359
+ readonly attrs: {
360
+ readonly variant: "success" | "warning" | null;
361
+ };
362
+ readonly type: "highlight";
363
+ })[]];
364
+ readonly text: string;
365
+ readonly type: "text";
366
+ }, ...({
367
+ readonly attrs: {
368
+ readonly latex: string;
369
+ };
370
+ readonly type: "mathInline";
371
+ } | {
372
+ readonly marks?: readonly [{
373
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
374
+ } | {
375
+ readonly attrs: {
376
+ readonly href: string;
377
+ };
378
+ readonly type: "link";
379
+ } | {
380
+ readonly attrs: {
381
+ readonly variant: "success" | "warning" | null;
382
+ };
383
+ readonly type: "highlight";
384
+ }, ...({
385
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
386
+ } | {
387
+ readonly attrs: {
388
+ readonly href: string;
389
+ };
390
+ readonly type: "link";
391
+ } | {
392
+ readonly attrs: {
393
+ readonly variant: "success" | "warning" | null;
394
+ };
395
+ readonly type: "highlight";
396
+ })[]];
397
+ readonly text: string;
398
+ readonly type: "text";
399
+ })[]], E, never, never>>;
65
400
  readonly title: RichSlot<E>;
66
401
  readonly absorptance: Schema.optionalKey<Schema.Finite>;
67
402
  readonly labels: Schema.Struct<{
@@ -76,6 +411,73 @@ export declare function solarVisuals<E>(rich: RichSlot<E>): {
76
411
  }>, "figure">;
77
412
  GridLoadCurveLab: 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 labels: Schema.Struct<{
81
483
  readonly capacity: RichSlot<E>;