@mermanjs/node-wasm 0.11.0 → 0.12.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.
@@ -1,8 +1,8 @@
1
- // @generated by `cargo run -p xtask -- gen-binding-contract`.
1
+ // @generated by `cargo run -p xtask --features render-parity -- gen-binding-contract`.
2
2
  // Sources: typed registries in merman-bindings-core. Do not edit directly.
3
3
 
4
4
  export const RUNTIME_CATALOG_SCHEMA_VERSION = 1;
5
- export const BINDING_OPTIONS_SCHEMA_VERSION = 3;
5
+ export const BINDING_OPTIONS_SCHEMA_VERSION = 4;
6
6
  export const TEXT_MEASUREMENT_PROTOCOL_VERSION = 1;
7
7
 
8
8
  export const RUNTIME_CATALOG_IDENTIFIER_PATTERN = "^[a-z0-9][a-z0-9-]*$";
@@ -18,6 +18,12 @@ export const CAPABILITY_SPECS = [
18
18
  "id": "ascii",
19
19
  "implication_ids": []
20
20
  },
21
+ {
22
+ "id": "draw-list",
23
+ "implication_ids": [
24
+ "svg"
25
+ ]
26
+ },
21
27
  {
22
28
  "id": "editor",
23
29
  "implication_ids": []
@@ -42,12 +48,36 @@ export const CAPABILITY_SPECS = [
42
48
  "svg"
43
49
  ]
44
50
  },
51
+ {
52
+ "id": "layout-dagre",
53
+ "implication_ids": [
54
+ "svg"
55
+ ]
56
+ },
45
57
  {
46
58
  "id": "layout-elk",
47
59
  "implication_ids": [
48
60
  "svg"
49
61
  ]
50
62
  },
63
+ {
64
+ "id": "layout-grid",
65
+ "implication_ids": [
66
+ "svg"
67
+ ]
68
+ },
69
+ {
70
+ "id": "layout-layered",
71
+ "implication_ids": [
72
+ "svg"
73
+ ]
74
+ },
75
+ {
76
+ "id": "layout-shoal",
77
+ "implication_ids": [
78
+ "svg"
79
+ ]
80
+ },
51
81
  {
52
82
  "id": "markdown",
53
83
  "implication_ids": []
@@ -66,6 +96,12 @@ export const CAPABILITY_SPECS = [
66
96
  "id": "network-icons",
67
97
  "implication_ids": []
68
98
  },
99
+ {
100
+ "id": "outlined-svg",
101
+ "implication_ids": [
102
+ "svg"
103
+ ]
104
+ },
69
105
  {
70
106
  "id": "parallel-markdown",
71
107
  "implication_ids": []
@@ -172,7 +208,15 @@ export const BINDING_OPERATION_METADATA_CONTRACT = {
172
208
  "open_value": true
173
209
  },
174
210
  {
175
- "name": "theme_execution_evidence",
211
+ "name": "theme_outcome",
212
+ "json_type": "object",
213
+ "required": false,
214
+ "nullable": false,
215
+ "integer_width_bits": null,
216
+ "open_value": true
217
+ },
218
+ {
219
+ "name": "shoal_layout_frame",
176
220
  "json_type": "object",
177
221
  "required": false,
178
222
  "nullable": false,
@@ -501,94 +545,38 @@ export const BINDING_OPERATION_METADATA_CONTRACT = {
501
545
  ]
502
546
  }
503
547
  ],
504
- "theme_execution_evidence_versions": [
548
+ "theme_outcome_fields": [
505
549
  {
506
- "version": 2,
507
- "fields": [
508
- {
509
- "name": "version",
510
- "json_type": "unsigned-integer",
511
- "required": true,
512
- "nullable": false,
513
- "integer_width_bits": 32,
514
- "open_value": false
515
- },
516
- {
517
- "name": "family_id",
518
- "json_type": "string",
519
- "required": true,
520
- "nullable": false,
521
- "integer_width_bits": null,
522
- "open_value": true
523
- },
524
- {
525
- "name": "theme_status",
526
- "json_type": "string",
527
- "required": true,
528
- "nullable": false,
529
- "integer_width_bits": null,
530
- "open_value": true
531
- },
532
- {
533
- "name": "output_mutated",
534
- "json_type": "boolean",
535
- "required": true,
536
- "nullable": false,
537
- "integer_width_bits": null,
538
- "open_value": false
539
- },
540
- {
541
- "name": "target_kind",
542
- "json_type": "string",
543
- "required": true,
544
- "nullable": false,
545
- "integer_width_bits": null,
546
- "open_value": true
547
- },
548
- {
549
- "name": "target_status",
550
- "json_type": "string",
551
- "required": true,
552
- "nullable": false,
553
- "integer_width_bits": null,
554
- "open_value": true
555
- },
556
- {
557
- "name": "target_reason_ids",
558
- "json_type": "array",
559
- "required": true,
560
- "nullable": false,
561
- "integer_width_bits": null,
562
- "open_value": true
563
- },
564
- {
565
- "name": "font_source",
566
- "json_type": "string",
567
- "required": true,
568
- "nullable": false,
569
- "integer_width_bits": null,
570
- "open_value": true
571
- },
572
- {
573
- "name": "materialized_theme",
574
- "json_type": "string-or-null",
575
- "required": true,
576
- "nullable": false,
577
- "integer_width_bits": null,
578
- "open_value": false
579
- },
580
- {
581
- "name": "diagnostics",
582
- "json_type": "array",
583
- "required": false,
584
- "nullable": false,
585
- "integer_width_bits": null,
586
- "open_value": true
587
- }
588
- ],
589
- "max_id_utf8_bytes": 128,
590
- "max_target_reason_ids": 32,
591
- "target_reason_ids_unique": true
550
+ "name": "mode",
551
+ "json_type": "string",
552
+ "required": true,
553
+ "nullable": false,
554
+ "integer_width_bits": null,
555
+ "open_value": true
556
+ },
557
+ {
558
+ "name": "preset_id",
559
+ "json_type": "string",
560
+ "required": false,
561
+ "nullable": false,
562
+ "integer_width_bits": null,
563
+ "open_value": true
564
+ },
565
+ {
566
+ "name": "appearance",
567
+ "json_type": "string",
568
+ "required": false,
569
+ "nullable": false,
570
+ "integer_width_bits": null,
571
+ "open_value": false
572
+ },
573
+ {
574
+ "name": "notices",
575
+ "json_type": "array",
576
+ "required": true,
577
+ "nullable": false,
578
+ "integer_width_bits": null,
579
+ "open_value": true
592
580
  }
593
581
  ],
594
582
  "layout_adaptation_fields": [
@@ -627,7 +615,6 @@ export const BINDING_OPERATION_METADATA_CONTRACT = {
627
615
  ],
628
616
  "additional_fields_policy": "preserve",
629
617
  "unknown_output_plan_policy": "preserve",
630
- "unknown_theme_execution_evidence_policy": "preserve",
631
618
  "original_json_policy": "preserve-exact-bytes"
632
619
  };
633
620
 
@@ -681,23 +668,23 @@ export const BINDING_OPERATION_EXPECTATIONS = [
681
668
  }
682
669
  },
683
670
  {
684
- "operation_id": "describe-theme-support-json",
685
- "maturity": "alpha",
671
+ "operation_id": "document-analysis-facts-json",
672
+ "maturity": "stable",
686
673
  "output_id": null,
687
674
  "media_type": "application/json",
688
675
  "metadata_schema_version": 1,
689
- "requires_uri": false,
690
- "availability_capability_id": "svg",
676
+ "requires_uri": true,
677
+ "availability_capability_id": "analysis",
691
678
  "compiled_prerequisite_ids": [],
692
679
  "unavailable": {
693
680
  "status_code": 7,
694
681
  "status_name": "MERMAN_UNSUPPORTED_OPERATION",
695
682
  "error_kind": "missing-capability",
696
- "capability_id": "svg"
683
+ "capability_id": "analysis"
697
684
  }
698
685
  },
699
686
  {
700
- "operation_id": "document-analysis-facts-json",
687
+ "operation_id": "document-analysis-json",
701
688
  "maturity": "stable",
702
689
  "output_id": null,
703
690
  "media_type": "application/json",
@@ -713,19 +700,21 @@ export const BINDING_OPERATION_EXPECTATIONS = [
713
700
  }
714
701
  },
715
702
  {
716
- "operation_id": "document-analysis-json",
703
+ "operation_id": "draw-list-json",
717
704
  "maturity": "stable",
718
- "output_id": null,
705
+ "output_id": "draw-list-json",
719
706
  "media_type": "application/json",
720
707
  "metadata_schema_version": 1,
721
- "requires_uri": true,
722
- "availability_capability_id": "analysis",
723
- "compiled_prerequisite_ids": [],
708
+ "requires_uri": false,
709
+ "availability_capability_id": "draw-list",
710
+ "compiled_prerequisite_ids": [
711
+ "svg"
712
+ ],
724
713
  "unavailable": {
725
714
  "status_code": 7,
726
715
  "status_name": "MERMAN_UNSUPPORTED_OPERATION",
727
716
  "error_kind": "missing-capability",
728
- "capability_id": "analysis"
717
+ "capability_id": "draw-list"
729
718
  }
730
719
  },
731
720
  {
@@ -745,8 +734,8 @@ export const BINDING_OPERATION_EXPECTATIONS = [
745
734
  }
746
735
  },
747
736
  {
748
- "operation_id": "export-theme-preset-json",
749
- "maturity": "alpha",
737
+ "operation_id": "export-theme-preset",
738
+ "maturity": "stable",
750
739
  "output_id": null,
751
740
  "media_type": "application/json",
752
741
  "metadata_schema_version": 1,
@@ -794,22 +783,6 @@ export const BINDING_OPERATION_EXPECTATIONS = [
794
783
  "capability_id": "svg"
795
784
  }
796
785
  },
797
- {
798
- "operation_id": "materialize-theme-json",
799
- "maturity": "alpha",
800
- "output_id": null,
801
- "media_type": "application/json",
802
- "metadata_schema_version": 1,
803
- "requires_uri": false,
804
- "availability_capability_id": "svg",
805
- "compiled_prerequisite_ids": [],
806
- "unavailable": {
807
- "status_code": 7,
808
- "status_name": "MERMAN_UNSUPPORTED_OPERATION",
809
- "error_kind": "missing-capability",
810
- "capability_id": "svg"
811
- }
812
- },
813
786
  {
814
787
  "operation_id": "pdf",
815
788
  "maturity": "stable",
@@ -846,6 +819,22 @@ export const BINDING_OPERATION_EXPECTATIONS = [
846
819
  "capability_id": "png"
847
820
  }
848
821
  },
822
+ {
823
+ "operation_id": "resolve-theme",
824
+ "maturity": "stable",
825
+ "output_id": null,
826
+ "media_type": "application/json",
827
+ "metadata_schema_version": 1,
828
+ "requires_uri": false,
829
+ "availability_capability_id": "svg",
830
+ "compiled_prerequisite_ids": [],
831
+ "unavailable": {
832
+ "status_code": 7,
833
+ "status_name": "MERMAN_UNSUPPORTED_OPERATION",
834
+ "error_kind": "missing-capability",
835
+ "capability_id": "svg"
836
+ }
837
+ },
849
838
  {
850
839
  "operation_id": "semantic-json",
851
840
  "maturity": "stable",
@@ -954,12 +943,36 @@ export const BINDING_OPTION_GROUP_SPECS = [
954
943
  ],
955
944
  "requires_svg_pipeline": false
956
945
  },
946
+ {
947
+ "id": "background",
948
+ "always_available": false,
949
+ "any_capability_ids": [],
950
+ "requires_svg_pipeline": true
951
+ },
952
+ {
953
+ "id": "draw_list",
954
+ "always_available": false,
955
+ "any_capability_ids": [
956
+ "draw-list"
957
+ ],
958
+ "requires_svg_pipeline": false
959
+ },
957
960
  {
958
961
  "id": "environment",
959
962
  "always_available": false,
960
963
  "any_capability_ids": [],
961
964
  "requires_svg_pipeline": true
962
965
  },
966
+ {
967
+ "id": "export_matte",
968
+ "always_available": false,
969
+ "any_capability_ids": [
970
+ "jpeg",
971
+ "pdf",
972
+ "png"
973
+ ],
974
+ "requires_svg_pipeline": false
975
+ },
963
976
  {
964
977
  "id": "fixed_local_offset_minutes",
965
978
  "always_available": true,
@@ -1050,7 +1063,9 @@ export const BINDING_OPTION_GROUP_SPECS = [
1050
1063
  {
1051
1064
  "id": "theme",
1052
1065
  "always_available": false,
1053
- "any_capability_ids": [],
1066
+ "any_capability_ids": [
1067
+ "ascii"
1068
+ ],
1054
1069
  "requires_svg_pipeline": true
1055
1070
  },
1056
1071
  {
@@ -2,115 +2,117 @@
2
2
  // Source: capabilities/feature-surface-v1.json. Do not edit directly.
3
3
 
4
4
  export const CAPABILITY_DESCRIPTOR_SCHEMA_VERSION = 1;
5
- export const CAPABILITY_DESCRIPTOR_DIGEST = "sha256:a979bad1c2c244a56d592eb0e6a261425edf031bb8f30235d739e62670b5cafb";
5
+ export const CAPABILITY_DESCRIPTOR_DIGEST = "sha256:af956e7eb107a5e80af473453c10dcc16725404551f199ced92f3c066f6fec4f";
6
6
 
7
7
  export const NODE_BINDING_OPERATIONS = [
8
8
  {
9
- "id": "analysis-facts-json",
10
- "maturity": "stable",
11
9
  "compiled_prerequisites": [],
12
- "input_kind": "mermaid-source"
10
+ "id": "analysis-facts-json",
11
+ "input_kind": "mermaid-source",
12
+ "maturity": "stable"
13
13
  },
14
14
  {
15
- "id": "analysis-json",
16
- "maturity": "stable",
17
15
  "compiled_prerequisites": [],
18
- "input_kind": "mermaid-source"
16
+ "id": "analysis-json",
17
+ "input_kind": "mermaid-source",
18
+ "maturity": "stable"
19
19
  },
20
20
  {
21
- "id": "ascii",
22
- "maturity": "stable",
23
21
  "compiled_prerequisites": [],
24
- "input_kind": "mermaid-source"
22
+ "id": "ascii",
23
+ "input_kind": "mermaid-source",
24
+ "maturity": "stable"
25
25
  },
26
26
  {
27
- "id": "describe-theme-support-json",
28
- "maturity": "alpha",
29
27
  "compiled_prerequisites": [],
30
- "input_kind": "theme-support-query-json"
28
+ "id": "document-analysis-facts-json",
29
+ "input_kind": "mermaid-source",
30
+ "maturity": "stable"
31
31
  },
32
32
  {
33
- "id": "document-analysis-facts-json",
34
- "maturity": "stable",
35
33
  "compiled_prerequisites": [],
36
- "input_kind": "mermaid-source"
34
+ "id": "document-analysis-json",
35
+ "input_kind": "mermaid-source",
36
+ "maturity": "stable"
37
37
  },
38
38
  {
39
- "id": "document-analysis-json",
40
- "maturity": "stable",
41
- "compiled_prerequisites": [],
42
- "input_kind": "mermaid-source"
39
+ "compiled_prerequisites": [
40
+ "svg"
41
+ ],
42
+ "id": "draw-list-json",
43
+ "input_kind": "mermaid-source",
44
+ "maturity": "stable"
43
45
  },
44
46
  {
45
- "id": "edge-geometry-json",
46
- "maturity": "stable",
47
47
  "compiled_prerequisites": [],
48
- "input_kind": "mermaid-source"
48
+ "id": "edge-geometry-json",
49
+ "input_kind": "mermaid-source",
50
+ "maturity": "stable"
49
51
  },
50
52
  {
51
- "id": "export-theme-preset-json",
52
- "maturity": "alpha",
53
53
  "compiled_prerequisites": [],
54
- "input_kind": "theme-preset-id"
54
+ "id": "export-theme-preset",
55
+ "input_kind": "theme-preset-id",
56
+ "maturity": "stable"
55
57
  },
56
58
  {
57
- "id": "jpeg",
58
- "maturity": "stable",
59
59
  "compiled_prerequisites": [
60
60
  "svg"
61
61
  ],
62
- "input_kind": "mermaid-source"
63
- },
64
- {
65
- "id": "layout-json",
66
- "maturity": "stable",
67
- "compiled_prerequisites": [],
68
- "input_kind": "mermaid-source"
62
+ "id": "jpeg",
63
+ "input_kind": "mermaid-source",
64
+ "maturity": "stable"
69
65
  },
70
66
  {
71
- "id": "materialize-theme-json",
72
- "maturity": "alpha",
73
67
  "compiled_prerequisites": [],
74
- "input_kind": "theme-design-json"
68
+ "id": "layout-json",
69
+ "input_kind": "mermaid-source",
70
+ "maturity": "stable"
75
71
  },
76
72
  {
77
- "id": "pdf",
78
- "maturity": "stable",
79
73
  "compiled_prerequisites": [
80
74
  "svg"
81
75
  ],
82
- "input_kind": "mermaid-source"
76
+ "id": "pdf",
77
+ "input_kind": "mermaid-source",
78
+ "maturity": "stable"
83
79
  },
84
80
  {
85
- "id": "png",
86
- "maturity": "stable",
87
81
  "compiled_prerequisites": [
88
82
  "svg"
89
83
  ],
90
- "input_kind": "mermaid-source"
84
+ "id": "png",
85
+ "input_kind": "mermaid-source",
86
+ "maturity": "stable"
91
87
  },
92
88
  {
93
- "id": "semantic-json",
94
- "maturity": "stable",
95
89
  "compiled_prerequisites": [],
96
- "input_kind": "mermaid-source"
90
+ "id": "resolve-theme",
91
+ "input_kind": "theme-resolve-request-json",
92
+ "maturity": "stable"
97
93
  },
98
94
  {
99
- "id": "svg",
100
- "maturity": "stable",
101
95
  "compiled_prerequisites": [],
102
- "input_kind": "mermaid-source"
96
+ "id": "semantic-json",
97
+ "input_kind": "mermaid-source",
98
+ "maturity": "stable"
103
99
  },
104
100
  {
105
- "id": "svg-plan-json",
106
- "maturity": "stable",
107
101
  "compiled_prerequisites": [],
108
- "input_kind": "mermaid-source"
102
+ "id": "svg",
103
+ "input_kind": "mermaid-source",
104
+ "maturity": "stable"
109
105
  },
110
106
  {
111
- "id": "validation-json",
112
- "maturity": "stable",
113
107
  "compiled_prerequisites": [],
114
- "input_kind": "mermaid-source"
108
+ "id": "svg-plan-json",
109
+ "input_kind": "mermaid-source",
110
+ "maturity": "stable"
111
+ },
112
+ {
113
+ "compiled_prerequisites": [],
114
+ "id": "validation-json",
115
+ "input_kind": "mermaid-source",
116
+ "maturity": "stable"
115
117
  }
116
118
  ];
@@ -2,19 +2,29 @@
2
2
  "schema_version": 1,
3
3
  "package_id": "@mermanjs/node",
4
4
  "artifact_id": "merman-node-static-svg",
5
- "transport_api_version": 2,
5
+ "transport_api_version": 3,
6
6
  "binding_result_payload_version": 1,
7
7
  "artifact": {
8
8
  "capability_ids": [
9
+ "draw-list",
9
10
  "layout-cytoscape",
11
+ "layout-dagre",
10
12
  "layout-elk",
13
+ "layout-shoal",
11
14
  "math",
12
15
  "svg"
13
16
  ],
14
17
  "output_ids": [
18
+ "draw-list-json",
15
19
  "svg"
16
20
  ],
17
21
  "output_contracts": [
22
+ {
23
+ "id": "draw-list-json",
24
+ "media_type": "application/json",
25
+ "system_fonts": null,
26
+ "embedded_images": null
27
+ },
18
28
  {
19
29
  "id": "svg",
20
30
  "media_type": "image/svg+xml",
@@ -24,10 +34,10 @@
24
34
  ],
25
35
  "system_adapter_ids": [],
26
36
  "operation_ids": [
27
- "describe-theme-support-json",
28
- "export-theme-preset-json",
37
+ "draw-list-json",
38
+ "export-theme-preset",
29
39
  "layout-json",
30
- "materialize-theme-json",
40
+ "resolve-theme",
31
41
  "semantic-json",
32
42
  "svg",
33
43
  "svg-plan-json"
@@ -39,6 +49,8 @@
39
49
  "theme-catalog"
40
50
  ],
41
51
  "option_group_ids": [
52
+ "background",
53
+ "draw_list",
42
54
  "environment",
43
55
  "fixed_local_offset_minutes",
44
56
  "fixed_today",