@mermanjs/node-wasm 0.8.0-alpha.6

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 (54) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/LICENSE-APACHE +201 -0
  3. package/LICENSE-MIT +21 -0
  4. package/README.md +47 -0
  5. package/THIRD_PARTY_LICENSES/beautiful-mermaid/LICENSE +21 -0
  6. package/THIRD_PARTY_LICENSES/cose-base-v1/LICENSE +21 -0
  7. package/THIRD_PARTY_LICENSES/cose-base-v2/LICENSE +21 -0
  8. package/THIRD_PARTY_LICENSES/cytoscape/LICENSE +19 -0
  9. package/THIRD_PARTY_LICENSES/cytoscape-cose-bilkent/LICENSE +21 -0
  10. package/THIRD_PARTY_LICENSES/cytoscape-fcose/LICENSE +19 -0
  11. package/THIRD_PARTY_LICENSES/d3-shape/LICENSE +13 -0
  12. package/THIRD_PARTY_LICENSES/dagre/LICENSE +19 -0
  13. package/THIRD_PARTY_LICENSES/dompurify/LICENSE +202 -0
  14. package/THIRD_PARTY_LICENSES/eclipse-elk/LICENSE.md +264 -0
  15. package/THIRD_PARTY_LICENSES/elkjs/LICENSE.md +264 -0
  16. package/THIRD_PARTY_LICENSES/fmin/LICENSE +27 -0
  17. package/THIRD_PARTY_LICENSES/graphlib/LICENSE +19 -0
  18. package/THIRD_PARTY_LICENSES/katex-fonts/FONT_NOTICE.txt +12 -0
  19. package/THIRD_PARTY_LICENSES/katex-fonts/OFL.txt +85 -0
  20. package/THIRD_PARTY_LICENSES/layout-base-v1/LICENSE +21 -0
  21. package/THIRD_PARTY_LICENSES/layout-base-v2/LICENSE +21 -0
  22. package/THIRD_PARTY_LICENSES/mermaid/LICENSE +21 -0
  23. package/THIRD_PARTY_LICENSES/mermaid-ascii/LICENSE +21 -0
  24. package/THIRD_PARTY_LICENSES/mermaid-rs-renderer/LICENSE +21 -0
  25. package/THIRD_PARTY_LICENSES/non-layered-tidy-tree-layout/LICENSE +21 -0
  26. package/THIRD_PARTY_LICENSES/ratex/LICENSE +27 -0
  27. package/THIRD_PARTY_LICENSES/ratex/THIRD_PARTY_NOTICES.txt +19 -0
  28. package/THIRD_PARTY_LICENSES/rough-rs/LICENSE +21 -0
  29. package/THIRD_PARTY_LICENSES/roughjs/LICENSE +21 -0
  30. package/THIRD_PARTY_LICENSES/rust-cargo-dependencies.json +5581 -0
  31. package/THIRD_PARTY_LICENSES/sanitize-url/LICENSE +21 -0
  32. package/THIRD_PARTY_LICENSES/tree-sitter/LICENSE +21 -0
  33. package/THIRD_PARTY_LICENSES/tree-sitter-mermaid-monaqa/LICENSE +21 -0
  34. package/THIRD_PARTY_LICENSES/tree-sitter-mermaid-pappasam/LICENSE +21 -0
  35. package/THIRD_PARTY_LICENSES/tree-sitter-mermaid-singularity/LICENSE +22 -0
  36. package/THIRD_PARTY_LICENSES/venn-js/LICENSE +22 -0
  37. package/THIRD_PARTY_LICENSES/wasm-minimal-protocol/LICENSE +24 -0
  38. package/THIRD_PARTY_LICENSES/zenuml-core/LICENSE +21 -0
  39. package/THIRD_PARTY_NOTICES.md +648 -0
  40. package/artifact/merman_node.cjs +302 -0
  41. package/artifact/merman_node_bg.wasm +0 -0
  42. package/dist/bounded-executor.mjs +135 -0
  43. package/dist/candidates/wasm.mjs +87 -0
  44. package/dist/candidates/wrap-engine.mjs +36 -0
  45. package/dist/engine.mjs +1340 -0
  46. package/dist/errors.mjs +1318 -0
  47. package/dist/generated/binding-contract.mjs +1019 -0
  48. package/dist/generated/capability-surface.mjs +66 -0
  49. package/dist/generated/node-wire-contract.json +122 -0
  50. package/dist/index.d.ts +283 -0
  51. package/dist/index.mjs +37 -0
  52. package/dist/native-loader.mjs +125 -0
  53. package/dist/transport-contract.mjs +87 -0
  54. package/package.json +44 -0
@@ -0,0 +1,1019 @@
1
+ // @generated by `cargo run -p xtask -- gen-binding-contract`.
2
+ // Sources: typed registries in merman-bindings-core. Do not edit directly.
3
+
4
+ export const RUNTIME_CATALOG_SCHEMA_VERSION = 1;
5
+ export const BINDING_OPTIONS_SCHEMA_VERSION = 2;
6
+ export const TEXT_MEASUREMENT_PROTOCOL_VERSION = 1;
7
+
8
+ export const RUNTIME_CATALOG_IDENTIFIER_PATTERN = "^[a-z0-9][a-z0-9-]*$";
9
+ export const RUNTIME_CATALOG_FIELD_IDENTIFIER_PATTERN = "^[a-z][a-z0-9_-]*$";
10
+ export const RUNTIME_CATALOG_MAX_SAFE_INTEGER = 9007199254740991;
11
+
12
+ export const CAPABILITY_SPECS = [
13
+ {
14
+ "id": "analysis",
15
+ "implication_ids": []
16
+ },
17
+ {
18
+ "id": "ascii",
19
+ "implication_ids": []
20
+ },
21
+ {
22
+ "id": "editor",
23
+ "implication_ids": []
24
+ },
25
+ {
26
+ "id": "icons",
27
+ "implication_ids": []
28
+ },
29
+ {
30
+ "id": "jpeg",
31
+ "implication_ids": []
32
+ },
33
+ {
34
+ "id": "layout-cytoscape",
35
+ "implication_ids": [
36
+ "svg"
37
+ ]
38
+ },
39
+ {
40
+ "id": "layout-elk",
41
+ "implication_ids": [
42
+ "svg"
43
+ ]
44
+ },
45
+ {
46
+ "id": "markdown",
47
+ "implication_ids": []
48
+ },
49
+ {
50
+ "id": "math",
51
+ "implication_ids": [
52
+ "svg"
53
+ ]
54
+ },
55
+ {
56
+ "id": "network-icons",
57
+ "implication_ids": []
58
+ },
59
+ {
60
+ "id": "parallel-markdown",
61
+ "implication_ids": []
62
+ },
63
+ {
64
+ "id": "pdf",
65
+ "implication_ids": []
66
+ },
67
+ {
68
+ "id": "png",
69
+ "implication_ids": []
70
+ },
71
+ {
72
+ "id": "rustdoc",
73
+ "implication_ids": [
74
+ "layout-cytoscape",
75
+ "markdown",
76
+ "math"
77
+ ]
78
+ },
79
+ {
80
+ "id": "shell-completions",
81
+ "implication_ids": []
82
+ },
83
+ {
84
+ "id": "svg",
85
+ "implication_ids": []
86
+ },
87
+ {
88
+ "id": "system-clock",
89
+ "implication_ids": []
90
+ },
91
+ {
92
+ "id": "system-random",
93
+ "implication_ids": []
94
+ },
95
+ {
96
+ "id": "system-timezone",
97
+ "implication_ids": []
98
+ },
99
+ {
100
+ "id": "system-timing",
101
+ "implication_ids": []
102
+ }
103
+ ];
104
+
105
+ export const BINDING_OPERATION_METADATA_CONTRACT = {
106
+ "contract_schema_version": 1,
107
+ "metadata_schema_version": 1,
108
+ "fields": [
109
+ {
110
+ "name": "version",
111
+ "json_type": "unsigned-integer",
112
+ "required": true,
113
+ "integer_width_bits": 32,
114
+ "open_value": false
115
+ },
116
+ {
117
+ "name": "operation_id",
118
+ "json_type": "string",
119
+ "required": true,
120
+ "integer_width_bits": null,
121
+ "open_value": true
122
+ },
123
+ {
124
+ "name": "media_type",
125
+ "json_type": "string",
126
+ "required": true,
127
+ "integer_width_bits": null,
128
+ "open_value": true
129
+ },
130
+ {
131
+ "name": "runtime_policy",
132
+ "json_type": "string",
133
+ "required": true,
134
+ "integer_width_bits": null,
135
+ "open_value": true
136
+ },
137
+ {
138
+ "name": "byte_length",
139
+ "json_type": "unsigned-integer",
140
+ "required": true,
141
+ "integer_width_bits": 64,
142
+ "open_value": false
143
+ },
144
+ {
145
+ "name": "output_plan",
146
+ "json_type": "object",
147
+ "required": false,
148
+ "integer_width_bits": null,
149
+ "open_value": true
150
+ }
151
+ ],
152
+ "output_plans": [
153
+ {
154
+ "kind": "ascii",
155
+ "fields": [
156
+ {
157
+ "name": "kind",
158
+ "json_type": "string",
159
+ "required": true,
160
+ "integer_width_bits": null,
161
+ "open_value": false
162
+ },
163
+ {
164
+ "name": "schema_version",
165
+ "json_type": "unsigned-integer",
166
+ "required": true,
167
+ "integer_width_bits": 16,
168
+ "open_value": false
169
+ },
170
+ {
171
+ "name": "family",
172
+ "json_type": "string",
173
+ "required": true,
174
+ "integer_width_bits": null,
175
+ "open_value": true
176
+ },
177
+ {
178
+ "name": "projection",
179
+ "json_type": "string",
180
+ "required": true,
181
+ "integer_width_bits": null,
182
+ "open_value": false
183
+ },
184
+ {
185
+ "name": "encoding",
186
+ "json_type": "string",
187
+ "required": true,
188
+ "integer_width_bits": null,
189
+ "open_value": false
190
+ },
191
+ {
192
+ "name": "primary_width",
193
+ "json_type": "unsigned-integer",
194
+ "required": true,
195
+ "integer_width_bits": 64,
196
+ "open_value": false
197
+ },
198
+ {
199
+ "name": "primary_height",
200
+ "json_type": "unsigned-integer",
201
+ "required": true,
202
+ "integer_width_bits": 64,
203
+ "open_value": false
204
+ },
205
+ {
206
+ "name": "emitted_width",
207
+ "json_type": "unsigned-integer",
208
+ "required": true,
209
+ "integer_width_bits": 64,
210
+ "open_value": false
211
+ },
212
+ {
213
+ "name": "emitted_height",
214
+ "json_type": "unsigned-integer",
215
+ "required": true,
216
+ "integer_width_bits": 64,
217
+ "open_value": false
218
+ },
219
+ {
220
+ "name": "width_profile",
221
+ "json_type": "string",
222
+ "required": true,
223
+ "integer_width_bits": null,
224
+ "open_value": false
225
+ },
226
+ {
227
+ "name": "layout_profile",
228
+ "json_type": "string",
229
+ "required": true,
230
+ "integer_width_bits": null,
231
+ "open_value": false
232
+ },
233
+ {
234
+ "name": "requested_max_width",
235
+ "json_type": "unsigned-integer",
236
+ "required": false,
237
+ "integer_width_bits": 64,
238
+ "open_value": false
239
+ },
240
+ {
241
+ "name": "overflowed",
242
+ "json_type": "boolean",
243
+ "required": true,
244
+ "integer_width_bits": null,
245
+ "open_value": false
246
+ },
247
+ {
248
+ "name": "outcome",
249
+ "json_type": "string",
250
+ "required": true,
251
+ "integer_width_bits": null,
252
+ "open_value": false
253
+ },
254
+ {
255
+ "name": "fallback_capability",
256
+ "json_type": "string",
257
+ "required": true,
258
+ "integer_width_bits": null,
259
+ "open_value": false
260
+ },
261
+ {
262
+ "name": "fallback_attempted",
263
+ "json_type": "boolean",
264
+ "required": true,
265
+ "integer_width_bits": null,
266
+ "open_value": false
267
+ },
268
+ {
269
+ "name": "fallback_reason",
270
+ "json_type": "string",
271
+ "required": false,
272
+ "integer_width_bits": null,
273
+ "open_value": false
274
+ },
275
+ {
276
+ "name": "trimmed",
277
+ "json_type": "boolean",
278
+ "required": true,
279
+ "integer_width_bits": null,
280
+ "open_value": false
281
+ },
282
+ {
283
+ "name": "lossiness",
284
+ "json_type": "string",
285
+ "required": true,
286
+ "integer_width_bits": null,
287
+ "open_value": false
288
+ }
289
+ ]
290
+ },
291
+ {
292
+ "kind": "raster",
293
+ "fields": [
294
+ {
295
+ "name": "kind",
296
+ "json_type": "string",
297
+ "required": true,
298
+ "integer_width_bits": null,
299
+ "open_value": false
300
+ },
301
+ {
302
+ "name": "requested_width_px",
303
+ "json_type": "number",
304
+ "required": true,
305
+ "integer_width_bits": null,
306
+ "open_value": false
307
+ },
308
+ {
309
+ "name": "requested_height_px",
310
+ "json_type": "number",
311
+ "required": true,
312
+ "integer_width_bits": null,
313
+ "open_value": false
314
+ },
315
+ {
316
+ "name": "width_px",
317
+ "json_type": "unsigned-integer",
318
+ "required": true,
319
+ "integer_width_bits": 32,
320
+ "open_value": false
321
+ },
322
+ {
323
+ "name": "height_px",
324
+ "json_type": "unsigned-integer",
325
+ "required": true,
326
+ "integer_width_bits": 32,
327
+ "open_value": false
328
+ },
329
+ {
330
+ "name": "requested_scale",
331
+ "json_type": "number",
332
+ "required": true,
333
+ "integer_width_bits": null,
334
+ "open_value": false
335
+ },
336
+ {
337
+ "name": "effective_scale",
338
+ "json_type": "number",
339
+ "required": true,
340
+ "integer_width_bits": null,
341
+ "open_value": false
342
+ },
343
+ {
344
+ "name": "limited",
345
+ "json_type": "boolean",
346
+ "required": true,
347
+ "integer_width_bits": null,
348
+ "open_value": false
349
+ }
350
+ ]
351
+ },
352
+ {
353
+ "kind": "pdf-filter-images",
354
+ "fields": [
355
+ {
356
+ "name": "kind",
357
+ "json_type": "string",
358
+ "required": true,
359
+ "integer_width_bits": null,
360
+ "open_value": false
361
+ },
362
+ {
363
+ "name": "filtered_groups",
364
+ "json_type": "unsigned-integer",
365
+ "required": true,
366
+ "integer_width_bits": 64,
367
+ "open_value": false
368
+ },
369
+ {
370
+ "name": "requested_scale",
371
+ "json_type": "number",
372
+ "required": true,
373
+ "integer_width_bits": null,
374
+ "open_value": false
375
+ },
376
+ {
377
+ "name": "effective_scale",
378
+ "json_type": "number",
379
+ "required": true,
380
+ "integer_width_bits": null,
381
+ "open_value": false
382
+ },
383
+ {
384
+ "name": "requested_image_pixels",
385
+ "json_type": "unsigned-integer",
386
+ "required": true,
387
+ "integer_width_bits": 64,
388
+ "open_value": false
389
+ },
390
+ {
391
+ "name": "effective_image_pixels",
392
+ "json_type": "unsigned-integer",
393
+ "required": true,
394
+ "integer_width_bits": 64,
395
+ "open_value": false
396
+ },
397
+ {
398
+ "name": "limited",
399
+ "json_type": "boolean",
400
+ "required": true,
401
+ "integer_width_bits": null,
402
+ "open_value": false
403
+ }
404
+ ]
405
+ }
406
+ ],
407
+ "additional_fields_policy": "preserve",
408
+ "unknown_output_plan_policy": "preserve",
409
+ "original_json_policy": "preserve-exact-bytes"
410
+ };
411
+
412
+ export const BINDING_OPERATION_EXPECTATIONS = [
413
+ {
414
+ "operation_id": "analysis-facts-json",
415
+ "output_id": null,
416
+ "media_type": "application/json",
417
+ "metadata_schema_version": 1,
418
+ "requires_uri": false,
419
+ "availability_capability_id": "analysis",
420
+ "compiled_prerequisite_ids": [],
421
+ "unavailable": {
422
+ "status_code": 7,
423
+ "status_name": "MERMAN_UNSUPPORTED_OPERATION",
424
+ "error_kind": "missing-capability",
425
+ "capability_id": "analysis"
426
+ }
427
+ },
428
+ {
429
+ "operation_id": "analysis-json",
430
+ "output_id": null,
431
+ "media_type": "application/json",
432
+ "metadata_schema_version": 1,
433
+ "requires_uri": false,
434
+ "availability_capability_id": "analysis",
435
+ "compiled_prerequisite_ids": [],
436
+ "unavailable": {
437
+ "status_code": 7,
438
+ "status_name": "MERMAN_UNSUPPORTED_OPERATION",
439
+ "error_kind": "missing-capability",
440
+ "capability_id": "analysis"
441
+ }
442
+ },
443
+ {
444
+ "operation_id": "ascii",
445
+ "output_id": "ascii",
446
+ "media_type": "text/plain; charset=utf-8",
447
+ "metadata_schema_version": 1,
448
+ "requires_uri": false,
449
+ "availability_capability_id": "ascii",
450
+ "compiled_prerequisite_ids": [],
451
+ "unavailable": {
452
+ "status_code": 7,
453
+ "status_name": "MERMAN_UNSUPPORTED_OPERATION",
454
+ "error_kind": "missing-capability",
455
+ "capability_id": "ascii"
456
+ }
457
+ },
458
+ {
459
+ "operation_id": "document-analysis-facts-json",
460
+ "output_id": null,
461
+ "media_type": "application/json",
462
+ "metadata_schema_version": 1,
463
+ "requires_uri": true,
464
+ "availability_capability_id": "analysis",
465
+ "compiled_prerequisite_ids": [],
466
+ "unavailable": {
467
+ "status_code": 7,
468
+ "status_name": "MERMAN_UNSUPPORTED_OPERATION",
469
+ "error_kind": "missing-capability",
470
+ "capability_id": "analysis"
471
+ }
472
+ },
473
+ {
474
+ "operation_id": "document-analysis-json",
475
+ "output_id": null,
476
+ "media_type": "application/json",
477
+ "metadata_schema_version": 1,
478
+ "requires_uri": true,
479
+ "availability_capability_id": "analysis",
480
+ "compiled_prerequisite_ids": [],
481
+ "unavailable": {
482
+ "status_code": 7,
483
+ "status_name": "MERMAN_UNSUPPORTED_OPERATION",
484
+ "error_kind": "missing-capability",
485
+ "capability_id": "analysis"
486
+ }
487
+ },
488
+ {
489
+ "operation_id": "jpeg",
490
+ "output_id": "jpeg",
491
+ "media_type": "image/jpeg",
492
+ "metadata_schema_version": 1,
493
+ "requires_uri": false,
494
+ "availability_capability_id": "jpeg",
495
+ "compiled_prerequisite_ids": [
496
+ "svg"
497
+ ],
498
+ "unavailable": {
499
+ "status_code": 7,
500
+ "status_name": "MERMAN_UNSUPPORTED_OPERATION",
501
+ "error_kind": "missing-capability",
502
+ "capability_id": "jpeg"
503
+ }
504
+ },
505
+ {
506
+ "operation_id": "layout-json",
507
+ "output_id": null,
508
+ "media_type": "application/json",
509
+ "metadata_schema_version": 1,
510
+ "requires_uri": false,
511
+ "availability_capability_id": "svg",
512
+ "compiled_prerequisite_ids": [],
513
+ "unavailable": {
514
+ "status_code": 7,
515
+ "status_name": "MERMAN_UNSUPPORTED_OPERATION",
516
+ "error_kind": "missing-capability",
517
+ "capability_id": "svg"
518
+ }
519
+ },
520
+ {
521
+ "operation_id": "pdf",
522
+ "output_id": "pdf",
523
+ "media_type": "application/pdf",
524
+ "metadata_schema_version": 1,
525
+ "requires_uri": false,
526
+ "availability_capability_id": "pdf",
527
+ "compiled_prerequisite_ids": [
528
+ "svg"
529
+ ],
530
+ "unavailable": {
531
+ "status_code": 7,
532
+ "status_name": "MERMAN_UNSUPPORTED_OPERATION",
533
+ "error_kind": "missing-capability",
534
+ "capability_id": "pdf"
535
+ }
536
+ },
537
+ {
538
+ "operation_id": "png",
539
+ "output_id": "png",
540
+ "media_type": "image/png",
541
+ "metadata_schema_version": 1,
542
+ "requires_uri": false,
543
+ "availability_capability_id": "png",
544
+ "compiled_prerequisite_ids": [
545
+ "svg"
546
+ ],
547
+ "unavailable": {
548
+ "status_code": 7,
549
+ "status_name": "MERMAN_UNSUPPORTED_OPERATION",
550
+ "error_kind": "missing-capability",
551
+ "capability_id": "png"
552
+ }
553
+ },
554
+ {
555
+ "operation_id": "semantic-json",
556
+ "output_id": null,
557
+ "media_type": "application/json",
558
+ "metadata_schema_version": 1,
559
+ "requires_uri": false,
560
+ "availability_capability_id": null,
561
+ "compiled_prerequisite_ids": [],
562
+ "unavailable": null
563
+ },
564
+ {
565
+ "operation_id": "svg",
566
+ "output_id": "svg",
567
+ "media_type": "image/svg+xml",
568
+ "metadata_schema_version": 1,
569
+ "requires_uri": false,
570
+ "availability_capability_id": "svg",
571
+ "compiled_prerequisite_ids": [],
572
+ "unavailable": {
573
+ "status_code": 7,
574
+ "status_name": "MERMAN_UNSUPPORTED_OPERATION",
575
+ "error_kind": "missing-capability",
576
+ "capability_id": "svg"
577
+ }
578
+ },
579
+ {
580
+ "operation_id": "svg-plan-json",
581
+ "output_id": null,
582
+ "media_type": "application/json",
583
+ "metadata_schema_version": 1,
584
+ "requires_uri": false,
585
+ "availability_capability_id": "svg",
586
+ "compiled_prerequisite_ids": [],
587
+ "unavailable": {
588
+ "status_code": 7,
589
+ "status_name": "MERMAN_UNSUPPORTED_OPERATION",
590
+ "error_kind": "missing-capability",
591
+ "capability_id": "svg"
592
+ }
593
+ },
594
+ {
595
+ "operation_id": "validation-json",
596
+ "output_id": null,
597
+ "media_type": "application/json",
598
+ "metadata_schema_version": 1,
599
+ "requires_uri": false,
600
+ "availability_capability_id": "analysis",
601
+ "compiled_prerequisite_ids": [],
602
+ "unavailable": {
603
+ "status_code": 7,
604
+ "status_name": "MERMAN_UNSUPPORTED_OPERATION",
605
+ "error_kind": "missing-capability",
606
+ "capability_id": "analysis"
607
+ }
608
+ }
609
+ ];
610
+
611
+ export const BINDING_PAYLOAD_SCHEMAS = [
612
+ {
613
+ "id": "binding-result",
614
+ "version": 1
615
+ },
616
+ {
617
+ "id": "operation-metadata",
618
+ "version": 1
619
+ }
620
+ ];
621
+
622
+ export const METADATA_SPECS = [
623
+ {
624
+ "id": "ascii-capabilities",
625
+ "required_capability_id": "ascii"
626
+ },
627
+ {
628
+ "id": "diagram-family-capabilities",
629
+ "required_capability_id": null
630
+ },
631
+ {
632
+ "id": "lint-rule-catalog",
633
+ "required_capability_id": "analysis"
634
+ },
635
+ {
636
+ "id": "presentation-catalog",
637
+ "required_capability_id": null
638
+ },
639
+ {
640
+ "id": "supported-diagrams",
641
+ "required_capability_id": null
642
+ },
643
+ {
644
+ "id": "supported-themes",
645
+ "required_capability_id": null
646
+ }
647
+ ];
648
+
649
+ export const BINDING_OPTION_GROUP_SPECS = [
650
+ {
651
+ "id": "ascii",
652
+ "always_available": false,
653
+ "any_capability_ids": [
654
+ "ascii"
655
+ ],
656
+ "requires_svg_pipeline": false
657
+ },
658
+ {
659
+ "id": "environment",
660
+ "always_available": false,
661
+ "any_capability_ids": [],
662
+ "requires_svg_pipeline": true
663
+ },
664
+ {
665
+ "id": "fixed_local_offset_minutes",
666
+ "always_available": true,
667
+ "any_capability_ids": [],
668
+ "requires_svg_pipeline": false
669
+ },
670
+ {
671
+ "id": "fixed_today",
672
+ "always_available": true,
673
+ "any_capability_ids": [],
674
+ "requires_svg_pipeline": false
675
+ },
676
+ {
677
+ "id": "jpeg",
678
+ "always_available": false,
679
+ "any_capability_ids": [
680
+ "jpeg"
681
+ ],
682
+ "requires_svg_pipeline": false
683
+ },
684
+ {
685
+ "id": "layout",
686
+ "always_available": false,
687
+ "any_capability_ids": [],
688
+ "requires_svg_pipeline": true
689
+ },
690
+ {
691
+ "id": "lint",
692
+ "always_available": false,
693
+ "any_capability_ids": [
694
+ "analysis"
695
+ ],
696
+ "requires_svg_pipeline": false
697
+ },
698
+ {
699
+ "id": "parse",
700
+ "always_available": true,
701
+ "any_capability_ids": [],
702
+ "requires_svg_pipeline": false
703
+ },
704
+ {
705
+ "id": "pdf",
706
+ "always_available": false,
707
+ "any_capability_ids": [
708
+ "pdf"
709
+ ],
710
+ "requires_svg_pipeline": false
711
+ },
712
+ {
713
+ "id": "presentation",
714
+ "always_available": false,
715
+ "any_capability_ids": [],
716
+ "requires_svg_pipeline": true
717
+ },
718
+ {
719
+ "id": "raster",
720
+ "always_available": false,
721
+ "any_capability_ids": [
722
+ "jpeg",
723
+ "png"
724
+ ],
725
+ "requires_svg_pipeline": false
726
+ },
727
+ {
728
+ "id": "resources",
729
+ "always_available": true,
730
+ "any_capability_ids": [],
731
+ "requires_svg_pipeline": false
732
+ },
733
+ {
734
+ "id": "runtime_policy",
735
+ "always_available": true,
736
+ "any_capability_ids": [],
737
+ "requires_svg_pipeline": false
738
+ },
739
+ {
740
+ "id": "site_config",
741
+ "always_available": true,
742
+ "any_capability_ids": [],
743
+ "requires_svg_pipeline": false
744
+ },
745
+ {
746
+ "id": "svg",
747
+ "always_available": false,
748
+ "any_capability_ids": [],
749
+ "requires_svg_pipeline": true
750
+ },
751
+ {
752
+ "id": "version",
753
+ "always_available": true,
754
+ "any_capability_ids": [],
755
+ "requires_svg_pipeline": false
756
+ }
757
+ ];
758
+
759
+ export const TEXT_MEASUREMENT_PROVIDER_SPECS = [
760
+ {
761
+ "id": "deterministic",
762
+ "source": "svg-pipeline",
763
+ "constructor_service_id": null
764
+ },
765
+ {
766
+ "id": "host-callback",
767
+ "source": "constructor-service",
768
+ "constructor_service_id": "host-text-measurement"
769
+ }
770
+ ];
771
+
772
+ export const TEXT_MEASUREMENT_PROVIDER_IDS = [
773
+ "deterministic",
774
+ "host-callback"
775
+ ];
776
+ export const DETERMINISTIC_TEXT_MEASUREMENT_PROVIDER_ID = "deterministic";
777
+ export const HOST_CALLBACK_TEXT_MEASUREMENT_PROVIDER_ID = "host-callback";
778
+
779
+ export const CONSTRUCTOR_SERVICE_SPECS = [
780
+ {
781
+ "id": "host-text-measurement",
782
+ "requires_svg_pipeline": true,
783
+ "provided_text_measurement_provider_ids": [
784
+ "host-callback"
785
+ ],
786
+ "resource_limits": []
787
+ },
788
+ {
789
+ "id": "icon-registry",
790
+ "requires_svg_pipeline": true,
791
+ "provided_text_measurement_provider_ids": [],
792
+ "resource_limits": [
793
+ {
794
+ "id": "max_icon_body_bytes",
795
+ "phase": "icon_registry_xml",
796
+ "unit": "bytes",
797
+ "description": "Maximum decoded SVG fragment bytes retained for one direct icon",
798
+ "value": 262144
799
+ },
800
+ {
801
+ "id": "max_icon_coordinate_magnitude",
802
+ "phase": "icon_registry_geometry",
803
+ "unit": "coordinate_units",
804
+ "description": "Maximum absolute view-box coordinate or positive dimension",
805
+ "value": 1000000
806
+ },
807
+ {
808
+ "id": "max_icon_id_rewrite_edits_per_body",
809
+ "phase": "icon_registry_xml",
810
+ "unit": "edits",
811
+ "description": "Maximum XML ID declaration and reference rewrites planned for one icon body",
812
+ "value": 16384
813
+ },
814
+ {
815
+ "id": "max_icon_pack_bytes",
816
+ "phase": "icon_registry_input",
817
+ "unit": "bytes",
818
+ "description": "Maximum encoded bytes admitted from one IconifyJSON pack",
819
+ "value": 16777216
820
+ },
821
+ {
822
+ "id": "max_icon_registry_alias_depth",
823
+ "phase": "icon_registry_alias",
824
+ "unit": "levels",
825
+ "description": "Maximum resolved alias parent-chain depth",
826
+ "value": 64
827
+ },
828
+ {
829
+ "id": "max_icon_registry_alias_edges",
830
+ "phase": "icon_registry_alias",
831
+ "unit": "edges",
832
+ "description": "Maximum parent edges inspected by alias resolution",
833
+ "value": 32768
834
+ },
835
+ {
836
+ "id": "max_icon_registry_alias_entries",
837
+ "phase": "icon_registry_alias",
838
+ "unit": "entries",
839
+ "description": "Maximum alias entries admitted by one registry",
840
+ "value": 32768
841
+ },
842
+ {
843
+ "id": "max_icon_registry_alias_fanout",
844
+ "phase": "icon_registry_alias",
845
+ "unit": "aliases",
846
+ "description": "Maximum aliases that may directly reference one parent",
847
+ "value": 1024
848
+ },
849
+ {
850
+ "id": "max_icon_registry_build_work_units",
851
+ "phase": "icon_registry_build",
852
+ "unit": "work_units",
853
+ "description": "Maximum deterministic parse, XML, and alias-resolution work",
854
+ "value": 4000000
855
+ },
856
+ {
857
+ "id": "max_icon_registry_entries",
858
+ "phase": "icon_registry_alias",
859
+ "unit": "entries",
860
+ "description": "Maximum resolved direct icon and alias entries published",
861
+ "value": 65536
862
+ },
863
+ {
864
+ "id": "max_icon_registry_icon_entries",
865
+ "phase": "icon_registry_parse",
866
+ "unit": "entries",
867
+ "description": "Maximum direct icon entries admitted by one registry",
868
+ "value": 32768
869
+ },
870
+ {
871
+ "id": "max_icon_registry_input_bytes",
872
+ "phase": "icon_registry_input",
873
+ "unit": "bytes",
874
+ "description": "Maximum aggregate encoded bytes admitted by one registry",
875
+ "value": 33554432
876
+ },
877
+ {
878
+ "id": "max_icon_registry_json_depth",
879
+ "phase": "icon_registry_parse",
880
+ "unit": "levels",
881
+ "description": "Maximum JSON nesting depth inspected while ingesting packs",
882
+ "value": 32
883
+ },
884
+ {
885
+ "id": "max_icon_registry_json_key_bytes",
886
+ "phase": "icon_registry_parse",
887
+ "unit": "bytes",
888
+ "description": "Maximum decoded bytes in any IconifyJSON object key, including unknown extensions",
889
+ "value": 1024
890
+ },
891
+ {
892
+ "id": "max_icon_registry_json_members",
893
+ "phase": "icon_registry_parse",
894
+ "unit": "members",
895
+ "description": "Maximum aggregate JSON map members and sequence items inspected",
896
+ "value": 1000000
897
+ },
898
+ {
899
+ "id": "max_icon_registry_name_bytes",
900
+ "phase": "icon_registry_parse",
901
+ "unit": "bytes",
902
+ "description": "Maximum admitted Iconify icon or alias name bytes",
903
+ "value": 128
904
+ },
905
+ {
906
+ "id": "max_icon_registry_packs",
907
+ "phase": "icon_registry_input",
908
+ "unit": "packs",
909
+ "description": "Maximum IconifyJSON packs admitted by one immutable registry",
910
+ "value": 16
911
+ },
912
+ {
913
+ "id": "max_icon_registry_prefix_bytes",
914
+ "phase": "icon_registry_parse",
915
+ "unit": "bytes",
916
+ "description": "Maximum admitted Iconify prefix or registration-name bytes",
917
+ "value": 64
918
+ },
919
+ {
920
+ "id": "max_icon_registry_retained_body_bytes",
921
+ "phase": "icon_registry_retain",
922
+ "unit": "bytes",
923
+ "description": "Maximum aggregate decoded direct-icon SVG body bytes retained",
924
+ "value": 33554432
925
+ },
926
+ {
927
+ "id": "max_icon_registry_retained_xml_plan_bytes",
928
+ "phase": "icon_registry_retain",
929
+ "unit": "bytes",
930
+ "description": "Maximum aggregate retained XML rewrite and defs-plan bytes",
931
+ "value": 16777216
932
+ },
933
+ {
934
+ "id": "max_icon_xml_depth_per_body",
935
+ "phase": "icon_registry_xml",
936
+ "unit": "levels",
937
+ "description": "Maximum XML element nesting depth in one direct icon fragment",
938
+ "value": 32
939
+ },
940
+ {
941
+ "id": "max_icon_xml_elements_per_body",
942
+ "phase": "icon_registry_xml",
943
+ "unit": "elements",
944
+ "description": "Maximum XML elements in one direct icon SVG fragment",
945
+ "value": 4096
946
+ }
947
+ ]
948
+ }
949
+ ];
950
+ export const BINDING_TRANSPORT_EXPOSURE_SPECS = [
951
+ {
952
+ "id": "android-jni",
953
+ "payload_schema_ids": [
954
+ "binding-result",
955
+ "operation-metadata"
956
+ ],
957
+ "constructor_service_candidate_ids": [
958
+ "host-text-measurement",
959
+ "icon-registry"
960
+ ]
961
+ },
962
+ {
963
+ "id": "native-c",
964
+ "payload_schema_ids": [
965
+ "binding-result",
966
+ "operation-metadata"
967
+ ],
968
+ "constructor_service_candidate_ids": [
969
+ "host-text-measurement",
970
+ "icon-registry"
971
+ ]
972
+ },
973
+ {
974
+ "id": "node",
975
+ "payload_schema_ids": [
976
+ "binding-result",
977
+ "operation-metadata"
978
+ ],
979
+ "constructor_service_candidate_ids": []
980
+ },
981
+ {
982
+ "id": "rust",
983
+ "payload_schema_ids": [
984
+ "binding-result",
985
+ "operation-metadata"
986
+ ],
987
+ "constructor_service_candidate_ids": [
988
+ "host-text-measurement",
989
+ "icon-registry"
990
+ ]
991
+ },
992
+ {
993
+ "id": "typst",
994
+ "payload_schema_ids": [],
995
+ "constructor_service_candidate_ids": []
996
+ },
997
+ {
998
+ "id": "uniffi",
999
+ "payload_schema_ids": [
1000
+ "binding-result",
1001
+ "operation-metadata"
1002
+ ],
1003
+ "constructor_service_candidate_ids": [
1004
+ "host-text-measurement",
1005
+ "icon-registry"
1006
+ ]
1007
+ },
1008
+ {
1009
+ "id": "web",
1010
+ "payload_schema_ids": [
1011
+ "binding-result"
1012
+ ],
1013
+ "constructor_service_candidate_ids": [
1014
+ "host-text-measurement"
1015
+ ]
1016
+ }
1017
+ ];
1018
+ export const HOST_TEXT_MEASUREMENT_CONSTRUCTOR_SERVICE_ID = "host-text-measurement";
1019
+ export const ICON_REGISTRY_CONSTRUCTOR_SERVICE_ID = "icon-registry";