@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 politicsVisuals<E>(rich: RichSlot<E>): {
8
8
  KimPlusElectabilityChart: 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 footnote: RichSlot<E>;
12
79
  readonly labels: Schema.Struct<{
@@ -16,6 +83,73 @@ export declare function politicsVisuals<E>(rich: RichSlot<E>): {
16
83
  }>, "figure">;
17
84
  MerahPutihCabinetChart: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
18
85
  readonly description: RichSlot<E>;
86
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
87
+ readonly attrs: {
88
+ readonly latex: string;
89
+ };
90
+ readonly type: "mathInline";
91
+ } | {
92
+ readonly marks?: readonly [{
93
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
94
+ } | {
95
+ readonly attrs: {
96
+ readonly href: string;
97
+ };
98
+ readonly type: "link";
99
+ } | {
100
+ readonly attrs: {
101
+ readonly variant: "success" | "warning" | null;
102
+ };
103
+ readonly type: "highlight";
104
+ }, ...({
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 text: string;
118
+ readonly type: "text";
119
+ }, ...({
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
+ })[]], E, never, never>>;
19
153
  readonly title: RichSlot<E>;
20
154
  readonly footnote: RichSlot<E>;
21
155
  readonly labels: Schema.Struct<{
@@ -24,6 +158,73 @@ export declare function politicsVisuals<E>(rich: RichSlot<E>): {
24
158
  }>, "figure">;
25
159
  MerahPutihCompositionChart: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
26
160
  readonly description: RichSlot<E>;
161
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
162
+ readonly attrs: {
163
+ readonly latex: string;
164
+ };
165
+ readonly type: "mathInline";
166
+ } | {
167
+ readonly marks?: readonly [{
168
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
169
+ } | {
170
+ readonly attrs: {
171
+ readonly href: string;
172
+ };
173
+ readonly type: "link";
174
+ } | {
175
+ readonly attrs: {
176
+ readonly variant: "success" | "warning" | null;
177
+ };
178
+ readonly type: "highlight";
179
+ }, ...({
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 text: string;
193
+ readonly type: "text";
194
+ }, ...({
195
+ readonly attrs: {
196
+ readonly latex: string;
197
+ };
198
+ readonly type: "mathInline";
199
+ } | {
200
+ readonly marks?: readonly [{
201
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
202
+ } | {
203
+ readonly attrs: {
204
+ readonly href: string;
205
+ };
206
+ readonly type: "link";
207
+ } | {
208
+ readonly attrs: {
209
+ readonly variant: "success" | "warning" | null;
210
+ };
211
+ readonly type: "highlight";
212
+ }, ...({
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 text: string;
226
+ readonly type: "text";
227
+ })[]], E, never, never>>;
27
228
  readonly title: RichSlot<E>;
28
229
  readonly footnote: RichSlot<E>;
29
230
  readonly labels: Schema.Struct<{
@@ -62,6 +263,73 @@ export declare function politicsVisuals<E>(rich: RichSlot<E>): {
62
263
  }>, "figure">;
63
264
  PorkBarrelBudgetChart: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
64
265
  readonly description: RichSlot<E>;
266
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
267
+ readonly attrs: {
268
+ readonly latex: string;
269
+ };
270
+ readonly type: "mathInline";
271
+ } | {
272
+ readonly marks?: readonly [{
273
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
274
+ } | {
275
+ readonly attrs: {
276
+ readonly href: string;
277
+ };
278
+ readonly type: "link";
279
+ } | {
280
+ readonly attrs: {
281
+ readonly variant: "success" | "warning" | null;
282
+ };
283
+ readonly type: "highlight";
284
+ }, ...({
285
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
286
+ } | {
287
+ readonly attrs: {
288
+ readonly href: string;
289
+ };
290
+ readonly type: "link";
291
+ } | {
292
+ readonly attrs: {
293
+ readonly variant: "success" | "warning" | null;
294
+ };
295
+ readonly type: "highlight";
296
+ })[]];
297
+ readonly text: string;
298
+ readonly type: "text";
299
+ }, ...({
300
+ readonly attrs: {
301
+ readonly latex: string;
302
+ };
303
+ readonly type: "mathInline";
304
+ } | {
305
+ readonly marks?: readonly [{
306
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
307
+ } | {
308
+ readonly attrs: {
309
+ readonly href: string;
310
+ };
311
+ readonly type: "link";
312
+ } | {
313
+ readonly attrs: {
314
+ readonly variant: "success" | "warning" | null;
315
+ };
316
+ readonly type: "highlight";
317
+ }, ...({
318
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
319
+ } | {
320
+ readonly attrs: {
321
+ readonly href: string;
322
+ };
323
+ readonly type: "link";
324
+ } | {
325
+ readonly attrs: {
326
+ readonly variant: "success" | "warning" | null;
327
+ };
328
+ readonly type: "highlight";
329
+ })[]];
330
+ readonly text: string;
331
+ readonly type: "text";
332
+ })[]], E, never, never>>;
65
333
  readonly title: RichSlot<E>;
66
334
  readonly footnote: RichSlot<E>;
67
335
  readonly labels: Schema.Struct<{
@@ -71,6 +339,73 @@ export declare function politicsVisuals<E>(rich: RichSlot<E>): {
71
339
  }>, "figure">;
72
340
  PorkBarrelElectabilityChart: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
73
341
  readonly description: RichSlot<E>;
342
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
343
+ readonly attrs: {
344
+ readonly latex: string;
345
+ };
346
+ readonly type: "mathInline";
347
+ } | {
348
+ readonly marks?: readonly [{
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 type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
362
+ } | {
363
+ readonly attrs: {
364
+ readonly href: string;
365
+ };
366
+ readonly type: "link";
367
+ } | {
368
+ readonly attrs: {
369
+ readonly variant: "success" | "warning" | null;
370
+ };
371
+ readonly type: "highlight";
372
+ })[]];
373
+ readonly text: string;
374
+ readonly type: "text";
375
+ }, ...({
376
+ readonly attrs: {
377
+ readonly latex: string;
378
+ };
379
+ readonly type: "mathInline";
380
+ } | {
381
+ readonly marks?: readonly [{
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 type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
395
+ } | {
396
+ readonly attrs: {
397
+ readonly href: string;
398
+ };
399
+ readonly type: "link";
400
+ } | {
401
+ readonly attrs: {
402
+ readonly variant: "success" | "warning" | null;
403
+ };
404
+ readonly type: "highlight";
405
+ })[]];
406
+ readonly text: string;
407
+ readonly type: "text";
408
+ })[]], E, never, never>>;
74
409
  readonly title: RichSlot<E>;
75
410
  readonly footnote: RichSlot<E>;
76
411
  readonly labels: Schema.Struct<{
@@ -82,6 +417,73 @@ export declare function politicsVisuals<E>(rich: RichSlot<E>): {
82
417
  }>, "figure">;
83
418
  PorkBarrelFundChart: 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 footnote: RichSlot<E>;
87
489
  readonly labels: Schema.Struct<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nakafa/aksara-contracts",
3
- "version": "8.2.0",
3
+ "version": "8.4.0",
4
4
  "description": "Schemas and verification contracts for Nakafa content releases.",
5
5
  "homepage": "https://github.com/nakafaai/aksara#readme",
6
6
  "license": "SEE LICENSE IN LICENSE",