@nakafa/aksara-contracts 8.2.0 → 8.4.1

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 (214) hide show
  1. package/dist/assessment/document.d.ts +1 -1
  2. package/dist/assessment/document.js +1 -1
  3. package/dist/assessment/figure.d.ts +1 -1
  4. package/dist/assessment/figure.js +1 -1
  5. package/dist/assessment/fit.d.ts +3 -3
  6. package/dist/assessment/fit.js +3 -3
  7. package/dist/assessment/locales.d.ts +1 -1
  8. package/dist/assessment/scoring.d.ts +1 -1
  9. package/dist/assessment/scoring.js +1 -1
  10. package/dist/cache/content.d.ts +1 -1
  11. package/dist/cache/content.js +1 -1
  12. package/dist/content.d.ts +3 -2
  13. package/dist/graph/identity.d.ts +1 -1
  14. package/dist/graph/identity.js +1 -1
  15. package/dist/math/boundary.d.ts +9 -0
  16. package/dist/math/boundary.js +81 -0
  17. package/dist/math/bounds.d.ts +1 -1
  18. package/dist/math/collision.d.ts +1 -1
  19. package/dist/math/coordinate.d.ts +6 -5
  20. package/dist/math/coordinate.js +2 -2
  21. package/dist/math/curve.d.ts +1 -0
  22. package/dist/math/curve.js +4 -2
  23. package/dist/math/formula/affine.d.ts +22 -0
  24. package/dist/math/formula/affine.js +79 -0
  25. package/dist/math/formula/compile.d.ts +1 -1
  26. package/dist/math/formula/compile.js +1 -1
  27. package/dist/math/formula/contour.d.ts +1 -1
  28. package/dist/math/formula/contour.js +28 -13
  29. package/dist/math/formula/field.js +1 -1
  30. package/dist/math/formula/mesh.d.ts +1 -1
  31. package/dist/math/formula/mesh.js +1 -1
  32. package/dist/math/formula/names.d.ts +1 -1
  33. package/dist/math/formula/names.js +1 -1
  34. package/dist/math/formula/parse.d.ts +1 -1
  35. package/dist/math/formula/parse.js +1 -1
  36. package/dist/math/formula/plane.d.ts +2 -2
  37. package/dist/math/formula/plane.js +3 -3
  38. package/dist/math/formula/reader.d.ts +2 -1
  39. package/dist/math/formula/reader.js +1 -1
  40. package/dist/math/formula/region.d.ts +2 -2
  41. package/dist/math/formula/region.js +3 -3
  42. package/dist/math/formula/sample.d.ts +1 -1
  43. package/dist/math/formula/scan.d.ts +1 -1
  44. package/dist/math/formula/scan.js +1 -1
  45. package/dist/math/formula/slider.d.ts +2 -2
  46. package/dist/math/formula/slider.js +1 -1
  47. package/dist/math/formula/space.d.ts +1 -1
  48. package/dist/math/formula/space.js +1 -1
  49. package/dist/math/object.d.ts +12 -0
  50. package/dist/math/object.js +11 -0
  51. package/dist/math/plane.d.ts +10 -0
  52. package/dist/math/plane.js +7 -1
  53. package/dist/math/precision.d.ts +1 -1
  54. package/dist/math/precision.js +1 -1
  55. package/dist/math/resolution.js +1 -1
  56. package/dist/math/scene.d.ts +2 -2
  57. package/dist/math/space.d.ts +8 -0
  58. package/dist/math/space.js +5 -1
  59. package/dist/math/vector.d.ts +1 -1
  60. package/dist/math/visual.d.ts +239 -212
  61. package/dist/preview/spec.js +1 -1
  62. package/dist/program/curriculum.d.ts +1 -1
  63. package/dist/program/curriculum.js +1 -1
  64. package/dist/program/snapshot/digest.d.ts +1 -1
  65. package/dist/program/snapshot/digest.js +2 -2
  66. package/dist/program/snapshot/hash.d.ts +2 -2
  67. package/dist/projection/digest.d.ts +1 -1
  68. package/dist/projection/digest.js +1 -1
  69. package/dist/projection/hash.js +1 -1
  70. package/dist/projection/material.d.ts +1 -1
  71. package/dist/projection/material.js +1 -1
  72. package/dist/projection/verify.js +1 -1
  73. package/dist/quran/identity.d.ts +2 -1
  74. package/dist/quran/provenance.d.ts +2 -2
  75. package/dist/quran/provenance.js +1 -1
  76. package/dist/quran/snapshot/hash.d.ts +1 -1
  77. package/dist/quran/snapshot/row/hash.d.ts +1 -1
  78. package/dist/quran/snapshot/row/hash.js +1 -1
  79. package/dist/quran/snapshot/spec.js +1 -1
  80. package/dist/quran/source.d.ts +2 -2
  81. package/dist/release/current/evidence.d.ts +1 -1
  82. package/dist/release/current/evidence.js +1 -1
  83. package/dist/release/current/state.d.ts +1 -1
  84. package/dist/release/current/state.js +1 -1
  85. package/dist/release/head.js +1 -1
  86. package/dist/release/items.d.ts +1 -1
  87. package/dist/release/items.js +1 -1
  88. package/dist/release/policy.d.ts +1 -1
  89. package/dist/release/policy.js +1 -1
  90. package/dist/release/result/digest.d.ts +3 -3
  91. package/dist/release/result/digest.js +2 -2
  92. package/dist/release/rollback/digest.d.ts +1 -1
  93. package/dist/release/rollback/digest.js +1 -1
  94. package/dist/release/route/digest.d.ts +1 -1
  95. package/dist/release/route/digest.js +1 -1
  96. package/dist/release/snapshot/evidence/assessment.d.ts +1 -1
  97. package/dist/release/snapshot/evidence/assessment.js +1 -1
  98. package/dist/release/snapshot/evidence/program.d.ts +1 -1
  99. package/dist/release/snapshot/evidence/program.js +1 -1
  100. package/dist/release/snapshot/evidence/quran.d.ts +1 -1
  101. package/dist/release/snapshot/evidence/quran.js +1 -1
  102. package/dist/release/snapshot/evidence/requirement.d.ts +3 -2
  103. package/dist/release/snapshot/evidence/requirement.js +1 -1
  104. package/dist/release/snapshot/spec.d.ts +2 -2
  105. package/dist/release/snapshot/spec.js +1 -1
  106. package/dist/release/snapshot/verify.d.ts +1 -1
  107. package/dist/release/snapshot/verify.js +1 -1
  108. package/dist/release/spec.d.ts +1 -1
  109. package/dist/release/verify.d.ts +1 -1
  110. package/dist/release/verify.js +1 -1
  111. package/dist/renderer/compatibility.d.ts +1 -1
  112. package/dist/renderer/compatibility.js +2 -2
  113. package/dist/renderer/contract.d.ts +1 -1
  114. package/dist/renderer/contract.js +1 -1
  115. package/dist/runtime/spec.js +2 -2
  116. package/dist/signature/spec.d.ts +3 -2
  117. package/dist/signature/verify.d.ts +2 -1
  118. package/dist/transport/request.d.ts +1 -1
  119. package/dist/visual/base/math.d.ts +79 -1
  120. package/dist/visual/base/math.js +31 -3
  121. package/dist/visual/base/media.d.ts +68 -1
  122. package/dist/visual/biology/bacteria.d.ts +269 -1
  123. package/dist/visual/biology/bacteria.js +1 -1
  124. package/dist/visual/biology/cell.d.ts +202 -1
  125. package/dist/visual/biology/climate.d.ts +202 -1
  126. package/dist/visual/biology/climate.js +1 -1
  127. package/dist/visual/biology/ecology.d.ts +269 -1
  128. package/dist/visual/biology/physiology.d.ts +202 -1
  129. package/dist/visual/biology/physiology.js +1 -1
  130. package/dist/visual/biology/plant.d.ts +336 -1
  131. package/dist/visual/biology/plant.js +1 -1
  132. package/dist/visual/biology.d.ts +1 -1
  133. package/dist/visual/card.d.ts +79 -1
  134. package/dist/visual/card.js +18 -2
  135. package/dist/visual/catalog.d.ts +14164 -2
  136. package/dist/visual/catalog.js +4 -0
  137. package/dist/visual/chemistry/atom.d.ts +202 -1
  138. package/dist/visual/chemistry/atom.js +1 -1
  139. package/dist/visual/chemistry/balance.d.ts +336 -1
  140. package/dist/visual/chemistry/balance.js +1 -1
  141. package/dist/visual/chemistry/bonding.d.ts +336 -1
  142. package/dist/visual/chemistry/discovery.d.ts +470 -1
  143. package/dist/visual/chemistry/electrochemistry.d.ts +135 -1
  144. package/dist/visual/chemistry/electrochemistry.js +1 -1
  145. package/dist/visual/chemistry/electron.d.ts +135 -1
  146. package/dist/visual/chemistry/electron.js +1 -1
  147. package/dist/visual/chemistry/laws.d.ts +269 -1
  148. package/dist/visual/chemistry/laws.js +1 -1
  149. package/dist/visual/chemistry/particles.d.ts +336 -1
  150. package/dist/visual/chemistry/periodic.d.ts +135 -1
  151. package/dist/visual/chemistry/periodic.js +1 -1
  152. package/dist/visual/chemistry/rate.d.ts +68 -1
  153. package/dist/visual/chemistry/rate.js +1 -1
  154. package/dist/visual/chemistry/reaction.d.ts +202 -1
  155. package/dist/visual/chemistry/reaction.js +1 -1
  156. package/dist/visual/chemistry/titration.d.ts +68 -1
  157. package/dist/visual/chemistry/titration.js +1 -1
  158. package/dist/visual/length.d.ts +79 -0
  159. package/dist/visual/length.js +37 -0
  160. package/dist/visual/mathematics/chance.d.ts +258 -0
  161. package/dist/visual/mathematics/chance.js +117 -0
  162. package/dist/visual/mathematics/chart.d.ts +68 -1
  163. package/dist/visual/mathematics/charts.d.ts +336 -1
  164. package/dist/visual/mathematics/function.d.ts +202 -1
  165. package/dist/visual/mathematics/numeral.d.ts +170 -0
  166. package/dist/visual/mathematics/numeral.js +85 -0
  167. package/dist/visual/physics/braking.d.ts +269 -1
  168. package/dist/visual/physics/braking.js +1 -1
  169. package/dist/visual/physics/circuit.d.ts +269 -1
  170. package/dist/visual/physics/circular.d.ts +135 -1
  171. package/dist/visual/physics/circular.js +1 -1
  172. package/dist/visual/physics/dynamics.d.ts +470 -1
  173. package/dist/visual/physics/dynamics.js +1 -1
  174. package/dist/visual/physics/efficiency.d.ts +403 -1
  175. package/dist/visual/physics/efficiency.js +1 -1
  176. package/dist/visual/physics/electronics.d.ts +202 -1
  177. package/dist/visual/physics/falling.d.ts +269 -1
  178. package/dist/visual/physics/falling.js +1 -1
  179. package/dist/visual/physics/field.d.ts +202 -1
  180. package/dist/visual/physics/fluid.d.ts +269 -1
  181. package/dist/visual/physics/fluid.js +1 -1
  182. package/dist/visual/physics/force.d.ts +336 -1
  183. package/dist/visual/physics/gravity.d.ts +135 -1
  184. package/dist/visual/physics/heat.d.ts +202 -1
  185. package/dist/visual/physics/heat.js +1 -1
  186. package/dist/visual/physics/instrument.d.ts +470 -1
  187. package/dist/visual/physics/light.d.ts +269 -1
  188. package/dist/visual/physics/light.js +1 -1
  189. package/dist/visual/physics/measurement.d.ts +269 -1
  190. package/dist/visual/physics/measurement.js +1 -1
  191. package/dist/visual/physics/motion.d.ts +403 -1
  192. package/dist/visual/physics/nuclear.d.ts +202 -1
  193. package/dist/visual/physics/parabolic.d.ts +68 -1
  194. package/dist/visual/physics/position.d.ts +403 -1
  195. package/dist/visual/physics/position.js +1 -1
  196. package/dist/visual/physics/power.d.ts +537 -1
  197. package/dist/visual/physics/power.js +1 -1
  198. package/dist/visual/physics/precision.d.ts +470 -1
  199. package/dist/visual/physics/precision.js +1 -1
  200. package/dist/visual/physics/product.d.ts +269 -1
  201. package/dist/visual/physics/reading.d.ts +202 -1
  202. package/dist/visual/physics/reading.js +1 -1
  203. package/dist/visual/physics/record.d.ts +135 -1
  204. package/dist/visual/physics/record.js +1 -1
  205. package/dist/visual/physics/relative.d.ts +202 -1
  206. package/dist/visual/physics/relative.js +1 -1
  207. package/dist/visual/physics/solar.d.ts +403 -1
  208. package/dist/visual/physics/solar.js +1 -1
  209. package/dist/visual/physics/vector.d.ts +336 -1
  210. package/dist/visual/physics/vector.js +1 -1
  211. package/dist/visual/physics/velocity.d.ts +470 -1
  212. package/dist/visual/physics/wave.d.ts +269 -1
  213. package/dist/visual/politics.d.ts +403 -1
  214. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  import { Schema } from "effect";
2
- import { type RichSlot } from "#contracts/visual/card";
2
+ import type { RichSlot } from "#contracts/visual/card";
3
3
  /**
4
4
  * The charts of data and functions. A regression line and its residuals are
5
5
  * the result of fitting the points, so they are answer state; the data a chart
@@ -8,6 +8,73 @@ import { type RichSlot } from "#contracts/visual/card";
8
8
  export declare function chartVisuals<E>(rich: RichSlot<E>): {
9
9
  BarChart: 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 chartConfig: Schema.$Record<Schema.Trimmed, Schema.Struct<{
13
80
  readonly colors: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
@@ -40,6 +107,73 @@ export declare function chartVisuals<E>(rich: RichSlot<E>): {
40
107
  }>, "figure">;
41
108
  Chart: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
42
109
  readonly description: RichSlot<E>;
110
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
111
+ readonly attrs: {
112
+ readonly latex: string;
113
+ };
114
+ readonly type: "mathInline";
115
+ } | {
116
+ readonly marks?: readonly [{
117
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
118
+ } | {
119
+ readonly attrs: {
120
+ readonly href: string;
121
+ };
122
+ readonly type: "link";
123
+ } | {
124
+ readonly attrs: {
125
+ readonly variant: "success" | "warning" | null;
126
+ };
127
+ readonly type: "highlight";
128
+ }, ...({
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 text: string;
142
+ readonly type: "text";
143
+ }, ...({
144
+ readonly attrs: {
145
+ readonly latex: string;
146
+ };
147
+ readonly type: "mathInline";
148
+ } | {
149
+ readonly marks?: readonly [{
150
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
151
+ } | {
152
+ readonly attrs: {
153
+ readonly href: string;
154
+ };
155
+ readonly type: "link";
156
+ } | {
157
+ readonly attrs: {
158
+ readonly variant: "success" | "warning" | null;
159
+ };
160
+ readonly type: "highlight";
161
+ }, ...({
162
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
163
+ } | {
164
+ readonly attrs: {
165
+ readonly href: string;
166
+ };
167
+ readonly type: "link";
168
+ } | {
169
+ readonly attrs: {
170
+ readonly variant: "success" | "warning" | null;
171
+ };
172
+ readonly type: "highlight";
173
+ })[]];
174
+ readonly text: string;
175
+ readonly type: "text";
176
+ })[]], E, never, never>>;
43
177
  readonly title: RichSlot<E>;
44
178
  readonly bars: Schema.optionalKey<Schema.Literals<readonly ["apart", "touching"]>>;
45
179
  readonly categories: Schema.NonEmptyArray<Schema.Trimmed>;
@@ -56,6 +190,73 @@ export declare function chartVisuals<E>(rich: RichSlot<E>): {
56
190
  }>, "figure">;
57
191
  FunctionChart: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
58
192
  readonly description: RichSlot<E>;
193
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
194
+ readonly attrs: {
195
+ readonly latex: string;
196
+ };
197
+ readonly type: "mathInline";
198
+ } | {
199
+ readonly marks?: readonly [{
200
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
201
+ } | {
202
+ readonly attrs: {
203
+ readonly href: string;
204
+ };
205
+ readonly type: "link";
206
+ } | {
207
+ readonly attrs: {
208
+ readonly variant: "success" | "warning" | null;
209
+ };
210
+ readonly type: "highlight";
211
+ }, ...({
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 text: string;
225
+ readonly type: "text";
226
+ }, ...({
227
+ readonly attrs: {
228
+ readonly latex: string;
229
+ };
230
+ readonly type: "mathInline";
231
+ } | {
232
+ readonly marks?: readonly [{
233
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
234
+ } | {
235
+ readonly attrs: {
236
+ readonly href: string;
237
+ };
238
+ readonly type: "link";
239
+ } | {
240
+ readonly attrs: {
241
+ readonly variant: "success" | "warning" | null;
242
+ };
243
+ readonly type: "highlight";
244
+ }, ...({
245
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
246
+ } | {
247
+ readonly attrs: {
248
+ readonly href: string;
249
+ };
250
+ readonly type: "link";
251
+ } | {
252
+ readonly attrs: {
253
+ readonly variant: "success" | "warning" | null;
254
+ };
255
+ readonly type: "highlight";
256
+ })[]];
257
+ readonly text: string;
258
+ readonly type: "text";
259
+ })[]], E, never, never>>;
59
260
  readonly title: RichSlot<E>;
60
261
  readonly a: Schema.Finite;
61
262
  readonly mode: Schema.optionalKey<Schema.Literals<readonly ["continuous", "discrete"]>>;
@@ -64,6 +265,73 @@ export declare function chartVisuals<E>(rich: RichSlot<E>): {
64
265
  }>, "figure">;
65
266
  HistogramChart: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
66
267
  readonly description: RichSlot<E>;
268
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
269
+ readonly attrs: {
270
+ readonly latex: string;
271
+ };
272
+ readonly type: "mathInline";
273
+ } | {
274
+ readonly marks?: readonly [{
275
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
276
+ } | {
277
+ readonly attrs: {
278
+ readonly href: string;
279
+ };
280
+ readonly type: "link";
281
+ } | {
282
+ readonly attrs: {
283
+ readonly variant: "success" | "warning" | null;
284
+ };
285
+ readonly type: "highlight";
286
+ }, ...({
287
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
288
+ } | {
289
+ readonly attrs: {
290
+ readonly href: string;
291
+ };
292
+ readonly type: "link";
293
+ } | {
294
+ readonly attrs: {
295
+ readonly variant: "success" | "warning" | null;
296
+ };
297
+ readonly type: "highlight";
298
+ })[]];
299
+ readonly text: string;
300
+ readonly type: "text";
301
+ }, ...({
302
+ readonly attrs: {
303
+ readonly latex: string;
304
+ };
305
+ readonly type: "mathInline";
306
+ } | {
307
+ readonly marks?: readonly [{
308
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
309
+ } | {
310
+ readonly attrs: {
311
+ readonly href: string;
312
+ };
313
+ readonly type: "link";
314
+ } | {
315
+ readonly attrs: {
316
+ readonly variant: "success" | "warning" | null;
317
+ };
318
+ readonly type: "highlight";
319
+ }, ...({
320
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
321
+ } | {
322
+ readonly attrs: {
323
+ readonly href: string;
324
+ };
325
+ readonly type: "link";
326
+ } | {
327
+ readonly attrs: {
328
+ readonly variant: "success" | "warning" | null;
329
+ };
330
+ readonly type: "highlight";
331
+ })[]];
332
+ readonly text: string;
333
+ readonly type: "text";
334
+ })[]], E, never, never>>;
67
335
  readonly title: RichSlot<E>;
68
336
  readonly chartConfig: Schema.$Record<Schema.Trimmed, Schema.Struct<{
69
337
  readonly colors: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
@@ -96,6 +364,73 @@ export declare function chartVisuals<E>(rich: RichSlot<E>): {
96
364
  }>, "figure">;
97
365
  ScatterDiagram: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
98
366
  readonly description: RichSlot<E>;
367
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
368
+ readonly attrs: {
369
+ readonly latex: string;
370
+ };
371
+ readonly type: "mathInline";
372
+ } | {
373
+ readonly marks?: readonly [{
374
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
375
+ } | {
376
+ readonly attrs: {
377
+ readonly href: string;
378
+ };
379
+ readonly type: "link";
380
+ } | {
381
+ readonly attrs: {
382
+ readonly variant: "success" | "warning" | null;
383
+ };
384
+ readonly type: "highlight";
385
+ }, ...({
386
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
387
+ } | {
388
+ readonly attrs: {
389
+ readonly href: string;
390
+ };
391
+ readonly type: "link";
392
+ } | {
393
+ readonly attrs: {
394
+ readonly variant: "success" | "warning" | null;
395
+ };
396
+ readonly type: "highlight";
397
+ })[]];
398
+ readonly text: string;
399
+ readonly type: "text";
400
+ }, ...({
401
+ readonly attrs: {
402
+ readonly latex: string;
403
+ };
404
+ readonly type: "mathInline";
405
+ } | {
406
+ readonly marks?: readonly [{
407
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
408
+ } | {
409
+ readonly attrs: {
410
+ readonly href: string;
411
+ };
412
+ readonly type: "link";
413
+ } | {
414
+ readonly attrs: {
415
+ readonly variant: "success" | "warning" | null;
416
+ };
417
+ readonly type: "highlight";
418
+ }, ...({
419
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
420
+ } | {
421
+ readonly attrs: {
422
+ readonly href: string;
423
+ };
424
+ readonly type: "link";
425
+ } | {
426
+ readonly attrs: {
427
+ readonly variant: "success" | "warning" | null;
428
+ };
429
+ readonly type: "highlight";
430
+ })[]];
431
+ readonly text: string;
432
+ readonly type: "text";
433
+ })[]], E, never, never>>;
99
434
  readonly title: RichSlot<E>;
100
435
  readonly calculateRegressionLine: Schema.optionalKey<Schema.Boolean>;
101
436
  readonly datasets: Schema.$Array<Schema.Struct<{
@@ -1,5 +1,5 @@
1
1
  import { Schema } from "effect";
2
- import { type RichSlot } from "#contracts/visual/card";
2
+ import type { RichSlot } from "#contracts/visual/card";
3
3
  /**
4
4
  * The visuals of functions, relations, and sequences. The output of the
5
5
  * inverse machine is the value the reader would compute, so it is answer
@@ -22,6 +22,73 @@ export declare function functionVisuals<E>(rich: RichSlot<E>): {
22
22
  }>, "figure">;
23
23
  FunctionAndNonFunctionDiagram: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
24
24
  readonly description: RichSlot<E>;
25
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
26
+ readonly attrs: {
27
+ readonly latex: string;
28
+ };
29
+ readonly type: "mathInline";
30
+ } | {
31
+ readonly marks?: readonly [{
32
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
33
+ } | {
34
+ readonly attrs: {
35
+ readonly href: string;
36
+ };
37
+ readonly type: "link";
38
+ } | {
39
+ readonly attrs: {
40
+ readonly variant: "success" | "warning" | null;
41
+ };
42
+ readonly type: "highlight";
43
+ }, ...({
44
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
45
+ } | {
46
+ readonly attrs: {
47
+ readonly href: string;
48
+ };
49
+ readonly type: "link";
50
+ } | {
51
+ readonly attrs: {
52
+ readonly variant: "success" | "warning" | null;
53
+ };
54
+ readonly type: "highlight";
55
+ })[]];
56
+ readonly text: string;
57
+ readonly type: "text";
58
+ }, ...({
59
+ readonly attrs: {
60
+ readonly latex: string;
61
+ };
62
+ readonly type: "mathInline";
63
+ } | {
64
+ readonly marks?: readonly [{
65
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
66
+ } | {
67
+ readonly attrs: {
68
+ readonly href: string;
69
+ };
70
+ readonly type: "link";
71
+ } | {
72
+ readonly attrs: {
73
+ readonly variant: "success" | "warning" | null;
74
+ };
75
+ readonly type: "highlight";
76
+ }, ...({
77
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
78
+ } | {
79
+ readonly attrs: {
80
+ readonly href: string;
81
+ };
82
+ readonly type: "link";
83
+ } | {
84
+ readonly attrs: {
85
+ readonly variant: "success" | "warning" | null;
86
+ };
87
+ readonly type: "highlight";
88
+ })[]];
89
+ readonly text: string;
90
+ readonly type: "text";
91
+ })[]], E, never, never>>;
25
92
  readonly title: RichSlot<E>;
26
93
  }>, "markup">;
27
94
  FunctionAndNonFunctionRelationVisualizer: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
@@ -55,11 +122,145 @@ export declare function functionVisuals<E>(rich: RichSlot<E>): {
55
122
  }>, "figure">;
56
123
  FunctionMachine: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
57
124
  readonly description: RichSlot<E>;
125
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
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
+ }, ...({
159
+ readonly attrs: {
160
+ readonly latex: string;
161
+ };
162
+ readonly type: "mathInline";
163
+ } | {
164
+ readonly marks?: readonly [{
165
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
166
+ } | {
167
+ readonly attrs: {
168
+ readonly href: string;
169
+ };
170
+ readonly type: "link";
171
+ } | {
172
+ readonly attrs: {
173
+ readonly variant: "success" | "warning" | null;
174
+ };
175
+ readonly type: "highlight";
176
+ }, ...({
177
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
178
+ } | {
179
+ readonly attrs: {
180
+ readonly href: string;
181
+ };
182
+ readonly type: "link";
183
+ } | {
184
+ readonly attrs: {
185
+ readonly variant: "success" | "warning" | null;
186
+ };
187
+ readonly type: "highlight";
188
+ })[]];
189
+ readonly text: string;
190
+ readonly type: "text";
191
+ })[]], E, never, never>>;
58
192
  readonly title: RichSlot<E>;
59
193
  readonly inputLabel: Schema.Trimmed;
60
194
  }>, "figure">;
61
195
  InverseFunctionIllustration: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
62
196
  readonly description: RichSlot<E>;
197
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
198
+ readonly attrs: {
199
+ readonly latex: string;
200
+ };
201
+ readonly type: "mathInline";
202
+ } | {
203
+ readonly marks?: readonly [{
204
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
205
+ } | {
206
+ readonly attrs: {
207
+ readonly href: string;
208
+ };
209
+ readonly type: "link";
210
+ } | {
211
+ readonly attrs: {
212
+ readonly variant: "success" | "warning" | null;
213
+ };
214
+ readonly type: "highlight";
215
+ }, ...({
216
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
217
+ } | {
218
+ readonly attrs: {
219
+ readonly href: string;
220
+ };
221
+ readonly type: "link";
222
+ } | {
223
+ readonly attrs: {
224
+ readonly variant: "success" | "warning" | null;
225
+ };
226
+ readonly type: "highlight";
227
+ })[]];
228
+ readonly text: string;
229
+ readonly type: "text";
230
+ }, ...({
231
+ readonly attrs: {
232
+ readonly latex: string;
233
+ };
234
+ readonly type: "mathInline";
235
+ } | {
236
+ readonly marks?: readonly [{
237
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
238
+ } | {
239
+ readonly attrs: {
240
+ readonly href: string;
241
+ };
242
+ readonly type: "link";
243
+ } | {
244
+ readonly attrs: {
245
+ readonly variant: "success" | "warning" | null;
246
+ };
247
+ readonly type: "highlight";
248
+ }, ...({
249
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
250
+ } | {
251
+ readonly attrs: {
252
+ readonly href: string;
253
+ };
254
+ readonly type: "link";
255
+ } | {
256
+ readonly attrs: {
257
+ readonly variant: "success" | "warning" | null;
258
+ };
259
+ readonly type: "highlight";
260
+ })[]];
261
+ readonly text: string;
262
+ readonly type: "text";
263
+ })[]], E, never, never>>;
63
264
  readonly title: RichSlot<E>;
64
265
  readonly content: Schema.Struct<{
65
266
  readonly input: RichSlot<E>;