@mermanjs/web-render 0.8.0-alpha.5
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.
- package/LICENSE +231 -0
- package/README.md +37 -0
- package/THIRD_PARTY_LICENSES/cose-base-v1/LICENSE +21 -0
- package/THIRD_PARTY_LICENSES/cose-base-v2/LICENSE +21 -0
- package/THIRD_PARTY_LICENSES/cytoscape/LICENSE +19 -0
- package/THIRD_PARTY_LICENSES/cytoscape-cose-bilkent/LICENSE +21 -0
- package/THIRD_PARTY_LICENSES/cytoscape-fcose/LICENSE +19 -0
- package/THIRD_PARTY_LICENSES/d3-shape/LICENSE +13 -0
- package/THIRD_PARTY_LICENSES/dagre/LICENSE +19 -0
- package/THIRD_PARTY_LICENSES/dompurify/LICENSE +202 -0
- package/THIRD_PARTY_LICENSES/eclipse-elk/LICENSE.md +264 -0
- package/THIRD_PARTY_LICENSES/elkjs/LICENSE.md +264 -0
- package/THIRD_PARTY_LICENSES/fmin/LICENSE +27 -0
- package/THIRD_PARTY_LICENSES/graphlib/LICENSE +19 -0
- package/THIRD_PARTY_LICENSES/katex-fonts/FONT_NOTICE.txt +12 -0
- package/THIRD_PARTY_LICENSES/katex-fonts/OFL.txt +85 -0
- package/THIRD_PARTY_LICENSES/layout-base-v1/LICENSE +21 -0
- package/THIRD_PARTY_LICENSES/layout-base-v2/LICENSE +21 -0
- package/THIRD_PARTY_LICENSES/mermaid/LICENSE +21 -0
- package/THIRD_PARTY_LICENSES/ratex/LICENSE +27 -0
- package/THIRD_PARTY_LICENSES/ratex/THIRD_PARTY_NOTICES.txt +19 -0
- package/THIRD_PARTY_LICENSES/rough-rs/LICENSE +21 -0
- package/THIRD_PARTY_LICENSES/roughjs/LICENSE +21 -0
- package/THIRD_PARTY_LICENSES/rust-cargo-dependencies.json +2101 -0
- package/THIRD_PARTY_LICENSES/sanitize-url/LICENSE +21 -0
- package/THIRD_PARTY_LICENSES/venn-js/LICENSE +22 -0
- package/THIRD_PARTY_LICENSES/zenuml-core/LICENSE +21 -0
- package/THIRD_PARTY_NOTICES.md +326 -0
- package/artifacts/provenance.json +342 -0
- package/artifacts/wasm/merman_wasm.d.ts +110 -0
- package/artifacts/wasm/merman_wasm.js +897 -0
- package/artifacts/wasm/merman_wasm_bg.wasm +0 -0
- package/artifacts/wasm/merman_wasm_bg.wasm.d.ts +35 -0
- package/dist/generated/binding-contract.js +497 -0
- package/dist/generated/binding-contract.js.map +1 -0
- package/dist/generated/capability-surface.d.ts +118 -0
- package/dist/generated/capability-surface.d.ts.map +1 -0
- package/dist/generated/capability-surface.js +171 -0
- package/dist/generated/capability-surface.js.map +1 -0
- package/dist/generated/diagram-catalog.d.ts +2 -0
- package/dist/generated/diagram-catalog.d.ts.map +1 -0
- package/dist/generated/diagram-catalog.js +40 -0
- package/dist/generated/diagram-catalog.js.map +1 -0
- package/dist/generated/resource-contract.d.ts +31 -0
- package/dist/generated/resource-contract.d.ts.map +1 -0
- package/dist/generated/resource-contract.js +193 -0
- package/dist/generated/resource-contract.js.map +1 -0
- package/dist/generated/text-measurement-abi.d.ts +154 -0
- package/dist/generated/text-measurement-abi.d.ts.map +1 -0
- package/dist/generated/text-measurement-abi.js +50 -0
- package/dist/generated/text-measurement-abi.js.map +1 -0
- package/dist/generated/token-descriptor.d.ts +205 -0
- package/dist/generated/token-descriptor.d.ts.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/package-entries/render.d.ts +37 -0
- package/dist/package-entries/render.d.ts.map +1 -0
- package/dist/package-entries/render.js +73 -0
- package/dist/package-entries/render.js.map +1 -0
- package/dist/public-catalog.d.ts +127 -0
- package/dist/public-catalog.d.ts.map +1 -0
- package/dist/public-catalog.js +130 -0
- package/dist/public-catalog.js.map +1 -0
- package/dist/public-types.d.ts +764 -0
- package/dist/public-types.d.ts.map +1 -0
- package/dist/runtime-analysis.d.ts +11 -0
- package/dist/runtime-analysis.d.ts.map +1 -0
- package/dist/runtime-ascii.d.ts +6 -0
- package/dist/runtime-ascii.d.ts.map +1 -0
- package/dist/runtime-core.d.ts +18 -0
- package/dist/runtime-core.d.ts.map +1 -0
- package/dist/runtime-core.js +946 -0
- package/dist/runtime-core.js.map +1 -0
- package/dist/runtime-editor.d.ts +16 -0
- package/dist/runtime-editor.d.ts.map +1 -0
- package/dist/runtime-render.d.ts +13 -0
- package/dist/runtime-render.d.ts.map +1 -0
- package/dist/runtime-render.js +577 -0
- package/dist/runtime-render.js.map +1 -0
- package/dist/runtime-state.d.ts +16 -0
- package/dist/runtime-state.d.ts.map +1 -0
- package/dist/runtime-state.js +27 -0
- package/dist/runtime-state.js.map +1 -0
- package/dist/surface-runtime.js +45 -0
- package/dist/surface-runtime.js.map +1 -0
- package/dist/svg-safety-policy.js +1692 -0
- package/dist/svg-safety-policy.js.map +1 -0
- package/dist/svg-safety.d.ts +27 -0
- package/dist/svg-safety.d.ts.map +1 -0
- package/dist/svg-safety.js +101 -0
- package/dist/svg-safety.js.map +1 -0
- package/package.json +41 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// This file is @generated by `cargo run -p xtask -- gen-text-measurement-protocol`.
|
|
2
|
+
// Do not edit it directly; edit `abi/text-measurement-v1.json` instead.
|
|
3
|
+
export const MERMAN_TEXT_MEASUREMENT_PROTOCOL_VERSION = 1;
|
|
4
|
+
export const HOST_TEXT_WRAP_MODES = [
|
|
5
|
+
{ code: 0, name: "svg-like" },
|
|
6
|
+
{ code: 1, name: "svg-like-single-run" },
|
|
7
|
+
{ code: 2, name: "html-like" },
|
|
8
|
+
];
|
|
9
|
+
export const HOST_TEXT_DIRECTIONS = [
|
|
10
|
+
{ code: 0, name: "auto" },
|
|
11
|
+
];
|
|
12
|
+
export const HOST_TEXT_WHITE_SPACES = [
|
|
13
|
+
{ code: 0, name: "normal" },
|
|
14
|
+
{ code: 1, name: "nowrap" },
|
|
15
|
+
{ code: 2, name: "break-spaces" },
|
|
16
|
+
];
|
|
17
|
+
export const HOST_TEXT_MEASUREMENT_PHASES = [
|
|
18
|
+
{ code: 0, name: "layout" },
|
|
19
|
+
{ code: 1, name: "wrap" },
|
|
20
|
+
{ code: 2, name: "svg-bbox" },
|
|
21
|
+
{ code: 3, name: "computed-length" },
|
|
22
|
+
];
|
|
23
|
+
export const HOST_TEXT_MEASUREMENT_RESULT_KINDS = [
|
|
24
|
+
{ code: 0, name: "metrics" },
|
|
25
|
+
{ code: 1, name: "length" },
|
|
26
|
+
{ code: 2, name: "horizontal-extents" },
|
|
27
|
+
{ code: 3, name: "wrapped-with-raw-width" },
|
|
28
|
+
];
|
|
29
|
+
export const HOST_TEXT_MEASUREMENT_OPERATIONS = [
|
|
30
|
+
{ code: 0, name: "measure", resultKind: "metrics", acceptsSignedLength: false },
|
|
31
|
+
{ code: 1, name: "computed-length", resultKind: "length", acceptsSignedLength: false },
|
|
32
|
+
{ code: 2, name: "bbox-x", resultKind: "horizontal-extents", acceptsSignedLength: false },
|
|
33
|
+
{ code: 3, name: "bbox-x-with-ascii-overhang", resultKind: "horizontal-extents", acceptsSignedLength: false },
|
|
34
|
+
{ code: 4, name: "title-bbox-x", resultKind: "horizontal-extents", acceptsSignedLength: false },
|
|
35
|
+
{ code: 5, name: "simple-bbox-width", resultKind: "length", acceptsSignedLength: false },
|
|
36
|
+
{ code: 6, name: "raw-bbox-width", resultKind: "length", acceptsSignedLength: false },
|
|
37
|
+
{ code: 7, name: "tspan-bbox-width", resultKind: "length", acceptsSignedLength: false },
|
|
38
|
+
{ code: 8, name: "tspan-bbox-height", resultKind: "length", acceptsSignedLength: false },
|
|
39
|
+
{ code: 9, name: "wrap-probe-bbox-width", resultKind: "length", acceptsSignedLength: false },
|
|
40
|
+
{ code: 10, name: "simple-bbox-height", resultKind: "length", acceptsSignedLength: false },
|
|
41
|
+
{ code: 11, name: "wrapped", resultKind: "metrics", acceptsSignedLength: false },
|
|
42
|
+
{ code: 12, name: "wrapped-with-raw-width", resultKind: "wrapped-with-raw-width", acceptsSignedLength: false },
|
|
43
|
+
{ code: 13, name: "bounding-client-rect-width", resultKind: "length", acceptsSignedLength: false },
|
|
44
|
+
{ code: 14, name: "create-text-bbox-y-offset", resultKind: "length", acceptsSignedLength: true },
|
|
45
|
+
{ code: 15, name: "mermaid-calculate-text-dimensions", resultKind: "metrics", acceptsSignedLength: false },
|
|
46
|
+
{ code: 16, name: "canvas-measure-text-width", resultKind: "length", acceptsSignedLength: false },
|
|
47
|
+
{ code: 17, name: "create-text-middle-bbox-y-offset", resultKind: "length", acceptsSignedLength: true },
|
|
48
|
+
{ code: 18, name: "raw-bbox-height", resultKind: "length", acceptsSignedLength: false },
|
|
49
|
+
];
|
|
50
|
+
//# sourceMappingURL=text-measurement-abi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-measurement-abi.js","sourceRoot":"","sources":["../../src/generated/text-measurement-abi.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,wEAAwE;AAExE,MAAM,CAAC,MAAM,wCAAwC,GAAG,CAAU,CAAC;AAEnE,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE;IAC7B,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE;IACxC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE;CACtB,CAAC;AAKX,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE;CACjB,CAAC;AAKX,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE;IAC3B,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE;IAC3B,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE;CACzB,CAA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EAAE;IAC1G,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,2BAA2B,EAAE,UAAU,EAAE,QAAQ,EAAE,mBAAmB,EAAE,KAAK,EAAE;IACjG,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,kCAAkC,EAAE,UAAU,EAAE,QAAQ,EAAE,mBAAmB,EAAE,IAAI,EAAE;IACvG,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,UAAU,EAAE,QAAQ,EAAE,mBAAmB,EAAE,KAAK,EAAE;CAC/E,CAAC"}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
export declare const SEMANTIC_TOKEN_DESCRIPTOR_DIGEST: "sha256:f72e872bc49ba658c0c3cd249995c8817bd76fb1e5f7ee56d9e024b733f14399";
|
|
2
|
+
export declare const SEMANTIC_TOKEN_RECORD_WIDTH: 5;
|
|
3
|
+
export declare const SEMANTIC_TOKEN_VALID_TYPE_CODE_MAX: 21;
|
|
4
|
+
export declare const SEMANTIC_TOKEN_VALID_MODIFIER_MASK: 511;
|
|
5
|
+
export declare const EDITOR_RENAME_POLICIES: readonly ["none", "identifier", "qualified_identifier", "event_modeling_id", "event_modeling_frame_id", "flowchart_node_id", "git_graph_reference", "architecture_identifier", "railroad_ir_rule", "railroad_ebnf_rule", "railroad_peg_rule", "railroad_abnf_rule"];
|
|
6
|
+
export type EditorRenamePolicy = (typeof EDITOR_RENAME_POLICIES)[number];
|
|
7
|
+
export declare const SEMANTIC_TOKEN_TYPE_LSP_NAMES: readonly ["keyword", "comment", "operator", "mermanDelimiter", "mermanIdentifier", "number", "mermanDate", "mermanDuration", "mermanBoolean", "string", "mermanStyle", "mermanColor", "mermanLiteral", "mermanFrontmatter", "mermanDirective", "namespace", "class", "struct", "variable", "property", "event", "function"];
|
|
8
|
+
export declare const SEMANTIC_TOKEN_MODIFIER_LSP_NAMES: readonly ["declaration", "definition", "mermanReference", "readonly", "documentation", "defaultLibrary", "mermanEntity", "mermanOutline", "mermanPayload"];
|
|
9
|
+
export declare const SEMANTIC_TOKEN_DESCRIPTOR: {
|
|
10
|
+
readonly schemaVersion: 1;
|
|
11
|
+
readonly digest: "sha256:f72e872bc49ba658c0c3cd249995c8817bd76fb1e5f7ee56d9e024b733f14399";
|
|
12
|
+
readonly renamePolicies: readonly ["none", "identifier", "qualified_identifier", "event_modeling_id", "event_modeling_frame_id", "flowchart_node_id", "git_graph_reference", "architecture_identifier", "railroad_ir_rule", "railroad_ebnf_rule", "railroad_peg_rule", "railroad_abnf_rule"];
|
|
13
|
+
readonly tokenTypes: readonly [{
|
|
14
|
+
readonly id: "keyword";
|
|
15
|
+
readonly code: 0;
|
|
16
|
+
readonly lspName: "keyword";
|
|
17
|
+
readonly lspIndex: 0;
|
|
18
|
+
}, {
|
|
19
|
+
readonly id: "comment";
|
|
20
|
+
readonly code: 1;
|
|
21
|
+
readonly lspName: "comment";
|
|
22
|
+
readonly lspIndex: 1;
|
|
23
|
+
}, {
|
|
24
|
+
readonly id: "operator";
|
|
25
|
+
readonly code: 2;
|
|
26
|
+
readonly lspName: "operator";
|
|
27
|
+
readonly lspIndex: 2;
|
|
28
|
+
}, {
|
|
29
|
+
readonly id: "delimiter";
|
|
30
|
+
readonly code: 3;
|
|
31
|
+
readonly lspName: "mermanDelimiter";
|
|
32
|
+
readonly lspIndex: 3;
|
|
33
|
+
}, {
|
|
34
|
+
readonly id: "identifier";
|
|
35
|
+
readonly code: 4;
|
|
36
|
+
readonly lspName: "mermanIdentifier";
|
|
37
|
+
readonly lspIndex: 4;
|
|
38
|
+
}, {
|
|
39
|
+
readonly id: "number";
|
|
40
|
+
readonly code: 5;
|
|
41
|
+
readonly lspName: "number";
|
|
42
|
+
readonly lspIndex: 5;
|
|
43
|
+
}, {
|
|
44
|
+
readonly id: "date";
|
|
45
|
+
readonly code: 6;
|
|
46
|
+
readonly lspName: "mermanDate";
|
|
47
|
+
readonly lspIndex: 6;
|
|
48
|
+
}, {
|
|
49
|
+
readonly id: "duration";
|
|
50
|
+
readonly code: 7;
|
|
51
|
+
readonly lspName: "mermanDuration";
|
|
52
|
+
readonly lspIndex: 7;
|
|
53
|
+
}, {
|
|
54
|
+
readonly id: "boolean";
|
|
55
|
+
readonly code: 8;
|
|
56
|
+
readonly lspName: "mermanBoolean";
|
|
57
|
+
readonly lspIndex: 8;
|
|
58
|
+
}, {
|
|
59
|
+
readonly id: "string";
|
|
60
|
+
readonly code: 9;
|
|
61
|
+
readonly lspName: "string";
|
|
62
|
+
readonly lspIndex: 9;
|
|
63
|
+
}, {
|
|
64
|
+
readonly id: "style";
|
|
65
|
+
readonly code: 10;
|
|
66
|
+
readonly lspName: "mermanStyle";
|
|
67
|
+
readonly lspIndex: 10;
|
|
68
|
+
}, {
|
|
69
|
+
readonly id: "color";
|
|
70
|
+
readonly code: 11;
|
|
71
|
+
readonly lspName: "mermanColor";
|
|
72
|
+
readonly lspIndex: 11;
|
|
73
|
+
}, {
|
|
74
|
+
readonly id: "literal";
|
|
75
|
+
readonly code: 12;
|
|
76
|
+
readonly lspName: "mermanLiteral";
|
|
77
|
+
readonly lspIndex: 12;
|
|
78
|
+
}, {
|
|
79
|
+
readonly id: "frontmatter";
|
|
80
|
+
readonly code: 13;
|
|
81
|
+
readonly lspName: "mermanFrontmatter";
|
|
82
|
+
readonly lspIndex: 13;
|
|
83
|
+
}, {
|
|
84
|
+
readonly id: "directive";
|
|
85
|
+
readonly code: 14;
|
|
86
|
+
readonly lspName: "mermanDirective";
|
|
87
|
+
readonly lspIndex: 14;
|
|
88
|
+
}, {
|
|
89
|
+
readonly id: "namespace";
|
|
90
|
+
readonly code: 15;
|
|
91
|
+
readonly lspName: "namespace";
|
|
92
|
+
readonly lspIndex: 15;
|
|
93
|
+
}, {
|
|
94
|
+
readonly id: "class";
|
|
95
|
+
readonly code: 16;
|
|
96
|
+
readonly lspName: "class";
|
|
97
|
+
readonly lspIndex: 16;
|
|
98
|
+
}, {
|
|
99
|
+
readonly id: "struct";
|
|
100
|
+
readonly code: 17;
|
|
101
|
+
readonly lspName: "struct";
|
|
102
|
+
readonly lspIndex: 17;
|
|
103
|
+
}, {
|
|
104
|
+
readonly id: "variable";
|
|
105
|
+
readonly code: 18;
|
|
106
|
+
readonly lspName: "variable";
|
|
107
|
+
readonly lspIndex: 18;
|
|
108
|
+
}, {
|
|
109
|
+
readonly id: "property";
|
|
110
|
+
readonly code: 19;
|
|
111
|
+
readonly lspName: "property";
|
|
112
|
+
readonly lspIndex: 19;
|
|
113
|
+
}, {
|
|
114
|
+
readonly id: "event";
|
|
115
|
+
readonly code: 20;
|
|
116
|
+
readonly lspName: "event";
|
|
117
|
+
readonly lspIndex: 20;
|
|
118
|
+
}, {
|
|
119
|
+
readonly id: "function";
|
|
120
|
+
readonly code: 21;
|
|
121
|
+
readonly lspName: "function";
|
|
122
|
+
readonly lspIndex: 21;
|
|
123
|
+
}];
|
|
124
|
+
readonly modifiers: readonly [{
|
|
125
|
+
readonly id: "declaration";
|
|
126
|
+
readonly index: 0;
|
|
127
|
+
readonly bit: 1;
|
|
128
|
+
readonly lspName: "declaration";
|
|
129
|
+
readonly lspIndex: 0;
|
|
130
|
+
}, {
|
|
131
|
+
readonly id: "definition";
|
|
132
|
+
readonly index: 1;
|
|
133
|
+
readonly bit: 2;
|
|
134
|
+
readonly lspName: "definition";
|
|
135
|
+
readonly lspIndex: 1;
|
|
136
|
+
}, {
|
|
137
|
+
readonly id: "reference";
|
|
138
|
+
readonly index: 2;
|
|
139
|
+
readonly bit: 4;
|
|
140
|
+
readonly lspName: "mermanReference";
|
|
141
|
+
readonly lspIndex: 2;
|
|
142
|
+
}, {
|
|
143
|
+
readonly id: "readonly";
|
|
144
|
+
readonly index: 3;
|
|
145
|
+
readonly bit: 8;
|
|
146
|
+
readonly lspName: "readonly";
|
|
147
|
+
readonly lspIndex: 3;
|
|
148
|
+
}, {
|
|
149
|
+
readonly id: "documentation";
|
|
150
|
+
readonly index: 4;
|
|
151
|
+
readonly bit: 16;
|
|
152
|
+
readonly lspName: "documentation";
|
|
153
|
+
readonly lspIndex: 4;
|
|
154
|
+
}, {
|
|
155
|
+
readonly id: "default_library";
|
|
156
|
+
readonly index: 5;
|
|
157
|
+
readonly bit: 32;
|
|
158
|
+
readonly lspName: "defaultLibrary";
|
|
159
|
+
readonly lspIndex: 5;
|
|
160
|
+
}, {
|
|
161
|
+
readonly id: "entity";
|
|
162
|
+
readonly index: 6;
|
|
163
|
+
readonly bit: 64;
|
|
164
|
+
readonly lspName: "mermanEntity";
|
|
165
|
+
readonly lspIndex: 6;
|
|
166
|
+
}, {
|
|
167
|
+
readonly id: "outline";
|
|
168
|
+
readonly index: 7;
|
|
169
|
+
readonly bit: 128;
|
|
170
|
+
readonly lspName: "mermanOutline";
|
|
171
|
+
readonly lspIndex: 7;
|
|
172
|
+
}, {
|
|
173
|
+
readonly id: "payload";
|
|
174
|
+
readonly index: 8;
|
|
175
|
+
readonly bit: 256;
|
|
176
|
+
readonly lspName: "mermanPayload";
|
|
177
|
+
readonly lspIndex: 8;
|
|
178
|
+
}];
|
|
179
|
+
readonly packed: {
|
|
180
|
+
readonly encoding: "lsp_relative_utf16";
|
|
181
|
+
readonly wordWidthBits: 32;
|
|
182
|
+
readonly recordWidth: 5;
|
|
183
|
+
readonly fieldOrder: readonly ["delta_line", "delta_start_utf16", "length_utf16", "token_type_code", "token_modifier_bits"];
|
|
184
|
+
};
|
|
185
|
+
readonly overlayPrecedence: readonly [{
|
|
186
|
+
readonly id: "lexeme";
|
|
187
|
+
readonly rank: 0;
|
|
188
|
+
}, {
|
|
189
|
+
readonly id: "semantic_payload";
|
|
190
|
+
readonly rank: 1;
|
|
191
|
+
}, {
|
|
192
|
+
readonly id: "semantic_outline";
|
|
193
|
+
readonly rank: 2;
|
|
194
|
+
}, {
|
|
195
|
+
readonly id: "semantic_entity";
|
|
196
|
+
readonly rank: 3;
|
|
197
|
+
}];
|
|
198
|
+
readonly validTypeCodeMax: 21;
|
|
199
|
+
readonly validModifierMask: 511;
|
|
200
|
+
readonly tokenTypeLspNames: readonly ["keyword", "comment", "operator", "mermanDelimiter", "mermanIdentifier", "number", "mermanDate", "mermanDuration", "mermanBoolean", "string", "mermanStyle", "mermanColor", "mermanLiteral", "mermanFrontmatter", "mermanDirective", "namespace", "class", "struct", "variable", "property", "event", "function"];
|
|
201
|
+
readonly modifierLspNames: readonly ["declaration", "definition", "mermanReference", "readonly", "documentation", "defaultLibrary", "mermanEntity", "mermanOutline", "mermanPayload"];
|
|
202
|
+
};
|
|
203
|
+
export type SemanticTokenTypeCode = (typeof SEMANTIC_TOKEN_DESCRIPTOR.tokenTypes)[number]["code"];
|
|
204
|
+
export type SemanticTokenModifierIndex = (typeof SEMANTIC_TOKEN_DESCRIPTOR.modifiers)[number]["index"];
|
|
205
|
+
//# sourceMappingURL=token-descriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token-descriptor.d.ts","sourceRoot":"","sources":["../../src/generated/token-descriptor.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gCAAgC,EAAG,yEAAkF,CAAC;AACnI,eAAO,MAAM,2BAA2B,EAAG,CAAU,CAAC;AACtD,eAAO,MAAM,kCAAkC,EAAG,EAAW,CAAC;AAC9D,eAAO,MAAM,kCAAkC,EAAG,GAAY,CAAC;AAE/D,eAAO,MAAM,sBAAsB,qQAazB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAC5B,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1C,eAAO,MAAM,6BAA6B,6TAuBhC,CAAC;AAEX,eAAO,MAAM,iCAAiC,4JAUpC,CAAC;AAEX,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6D5B,CAAC;AAEX,MAAM,MAAM,qBAAqB,GAC/B,CAAC,OAAO,yBAAyB,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;AAChE,MAAM,MAAM,0BAA0B,GACpC,CAAC,OAAO,yBAAyB,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { BINDING_STATUS_CODE_NAMES, BUNDLED_THEME_PRESETS, SYSTEM_ADAPTER_IDS, TEXT_MEASUREMENT_PROVIDER_IDS, WEB_CAPABILITIES, WEB_CAPABILITY_IDS, WEB_OUTPUT_IDS, WEB_OUTPUTS, SUPPORTED_ASCII_DIAGRAMS, SUPPORTED_DIAGRAMS, SUPPORTED_THEMES, isAsciiDiagramType, isBindingErrorPayload, isBindingStatusCodeName, isBundledThemePresetName, isDiagramType, isThemeName, normalizeBundledThemePresetName, normalizeThemeName, } from "./public-catalog.js";
|
|
2
|
+
export type * from "./public-catalog.js";
|
|
3
|
+
export type * from "./public-types.js";
|
|
4
|
+
export { MERMAN_TEXT_MEASUREMENT_PROTOCOL_VERSION, } from "./generated/text-measurement-abi.js";
|
|
5
|
+
export { BINDING_OPTIONS_SCHEMA_VERSION, RESOURCE_LIMIT_IDS, RESOURCE_LIMIT_METADATA, RESOURCE_OVERRIDE_IDS, RESOURCE_PROFILES, isKnownResourceLimitId, rawResourceOptionsJson, resourceLimitMetadata, resourceOptions, resourceOptionsJson, } from "./generated/resource-contract.js";
|
|
6
|
+
export type { KnownResourceLimitId, KnownResourceLimitMetadata, RawResourceOptions, ResourceLimitId, ResourceLimitOverrides, ResourceOptions, ResourceOverrideId, ResourceProfile, } from "./generated/resource-contract.js";
|
|
7
|
+
export { SEMANTIC_TOKEN_DESCRIPTOR, SEMANTIC_TOKEN_DESCRIPTOR_DIGEST, SEMANTIC_TOKEN_MODIFIER_LSP_NAMES, SEMANTIC_TOKEN_RECORD_WIDTH, SEMANTIC_TOKEN_TYPE_LSP_NAMES, SEMANTIC_TOKEN_VALID_MODIFIER_MASK, SEMANTIC_TOKEN_VALID_TYPE_CODE_MAX, } from "./generated/token-descriptor.js";
|
|
8
|
+
export type { SemanticTokenModifierIndex, SemanticTokenTypeCode, } from "./generated/token-descriptor.js";
|
|
9
|
+
export { assertNavigableSvgForDom, assertSelfContainedSvgForDom, prepareNavigableSvgForDomMount, prepareSelfContainedSvgForDomMount, } from "./svg-safety.js";
|
|
10
|
+
export type { NavigableSvgDomAdmission, SelfContainedSvgDomAdmission, SvgDomAdmission, } from "./svg-safety.js";
|
|
11
|
+
export { UNAVAILABLE_DIAGRAM_DETECTION, diagramFamilyCapabilities, encodeOptions, getMerman, initMerman, isMermanInitialized, packageVersion, presentationCatalog, runtimeCatalog, supportedDiagrams, supportedThemes, transportApiVersion, withResourceOptions, } from "./runtime-core.js";
|
|
12
|
+
export { analyze, analyzeDocument, analyzeDocumentFacts, analyzeJson, analysisFacts, detectDiagramFacts, lintRuleCatalog, validate, } from "./runtime-analysis.js";
|
|
13
|
+
export { asciiCapabilities, asciiSupportedDiagrams, renderAscii, } from "./runtime-ascii.js";
|
|
14
|
+
export { createBrowserTextMeasurementSession, layoutJson, layoutJsonWithTextMeasurer, layoutObject, parseJson, parseObject, renderSvg, renderSvgElement, renderSvgToElement, renderSvgWithTextMeasurer, svgPlanJson, } from "./runtime-render.js";
|
|
15
|
+
export { createEditorSession, editorCodeActions, editorCompletions, editorDefinition, editorDiagnostics, editorDiagramDetection, editorDocumentSymbols, editorHover, editorPrepareRename, editorReferences, editorRename, editorSearchDocumentSymbols, editorSemanticTokenDescriptor, editorSemanticTokens, } from "./runtime-editor.js";
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.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,UAAU,EACV,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,OAAO,EACP,eAAe,EACf,oBAAoB,EACpB,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,QAAQ,GACT,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,WAAW,GACZ,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,mCAAmC,EACnC,UAAU,EACV,0BAA0B,EAC1B,YAAY,EACZ,SAAS,EACT,WAAW,EACX,SAAS,EACT,gBAAgB,EAChB,kBAAkB,EAClB,yBAAyB,EACzB,WAAW,GACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,qBAAqB,EACrB,WAAW,EACX,mBAAmB,EACnB,gBAAgB,EAChB,YAAY,EACZ,2BAA2B,EAC3B,6BAA6B,EAC7B,oBAAoB,GACrB,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { isMermanInitialized as runtime_isMermanInitialized, runtimeCatalog as runtime_runtimeCatalog, presentationCatalog as runtime_presentationCatalog, supportedDiagrams as runtime_supportedDiagrams, diagramFamilyCapabilities as runtime_diagramFamilyCapabilities, supportedThemes as runtime_supportedThemes, transportApiVersion as runtime_transportApiVersion, packageVersion as runtime_packageVersion } from "../runtime-core.js";
|
|
2
|
+
import { renderSvg as runtime_renderSvg, svgPlanJson as runtime_svgPlanJson, renderSvgWithTextMeasurer as runtime_renderSvgWithTextMeasurer, layoutJsonWithTextMeasurer as runtime_layoutJsonWithTextMeasurer, renderSvgElement as runtime_renderSvgElement, renderSvgToElement as runtime_renderSvgToElement, parseJson as runtime_parseJson, parseObject as runtime_parseObject, layoutJson as runtime_layoutJson, layoutObject as runtime_layoutObject } from "../runtime-render.js";
|
|
3
|
+
import type { MermanInitInput as SharedMermanInitInput, MermanInitOptions as SharedMermanInitOptions, MermanWasmLoader as SharedMermanWasmLoader, MermanWasmModule as SharedMermanWasmModule } from "../index.js";
|
|
4
|
+
export type * from "../index.js";
|
|
5
|
+
export type MermanWasmModule = Required<Pick<SharedMermanWasmModule, "default" | "runtimeCatalog" | "presentationCatalog" | "supportedDiagrams" | "diagramFamilyCapabilities" | "supportedThemes" | "transportApiVersion" | "packageVersion" | "renderSvg" | "svgPlanJson" | "renderSvgWithTextMeasurer" | "layoutJsonWithTextMeasurer" | "parseJson" | "layoutJson">>;
|
|
6
|
+
export type MermanWasmLoader = SharedMermanWasmLoader<MermanWasmModule>;
|
|
7
|
+
export type MermanInitOptions = SharedMermanInitOptions<MermanWasmModule>;
|
|
8
|
+
export type MermanInitInput = SharedMermanInitInput<MermanWasmModule>;
|
|
9
|
+
export { MERMAN_TEXT_MEASUREMENT_PROTOCOL_VERSION, } from "../generated/text-measurement-abi.js";
|
|
10
|
+
export { UNAVAILABLE_DIAGRAM_DETECTION, encodeOptions, } from "../runtime-core.js";
|
|
11
|
+
export { BUNDLED_THEME_PRESETS, SUPPORTED_THEMES, SUPPORTED_DIAGRAMS, SUPPORTED_ASCII_DIAGRAMS, BINDING_STATUS_CODE_NAMES, isThemeName, isDiagramType, isAsciiDiagramType, isBindingStatusCodeName, isBundledThemePresetName, isBindingErrorPayload, normalizeThemeName, normalizeBundledThemePresetName, } from "../public-catalog.js";
|
|
12
|
+
export { BINDING_OPTIONS_SCHEMA_VERSION, RESOURCE_LIMIT_IDS, RESOURCE_LIMIT_METADATA, RESOURCE_OVERRIDE_IDS, RESOURCE_PROFILES, isKnownResourceLimitId, rawResourceOptionsJson, resourceLimitMetadata, resourceOptions, resourceOptionsJson, } from "../generated/resource-contract.js";
|
|
13
|
+
export { assertNavigableSvgForDom, assertSelfContainedSvgForDom, prepareNavigableSvgForDomMount, prepareSelfContainedSvgForDomMount, } from "../svg-safety.js";
|
|
14
|
+
export { createBrowserTextMeasurementSession, } from "../runtime-render.js";
|
|
15
|
+
export declare const MERMAN_WASM_URL: string;
|
|
16
|
+
export declare function loadMermanWasmModule(): Promise<MermanWasmModule>;
|
|
17
|
+
export declare function initMerman(init?: MermanInitInput): Promise<MermanWasmModule>;
|
|
18
|
+
export declare const getMerman: () => Required<Pick<SharedMermanWasmModule, "default" | "supportedDiagrams" | "runtimeCatalog" | "presentationCatalog" | "diagramFamilyCapabilities" | "supportedThemes" | "transportApiVersion" | "packageVersion" | "renderSvg" | "svgPlanJson" | "renderSvgWithTextMeasurer" | "parseJson" | "layoutJson" | "layoutJsonWithTextMeasurer">>;
|
|
19
|
+
export declare const isMermanInitialized: typeof runtime_isMermanInitialized;
|
|
20
|
+
export declare const runtimeCatalog: typeof runtime_runtimeCatalog;
|
|
21
|
+
export declare const presentationCatalog: typeof runtime_presentationCatalog;
|
|
22
|
+
export declare const supportedDiagrams: typeof runtime_supportedDiagrams;
|
|
23
|
+
export declare const diagramFamilyCapabilities: typeof runtime_diagramFamilyCapabilities;
|
|
24
|
+
export declare const supportedThemes: typeof runtime_supportedThemes;
|
|
25
|
+
export declare const transportApiVersion: typeof runtime_transportApiVersion;
|
|
26
|
+
export declare const packageVersion: typeof runtime_packageVersion;
|
|
27
|
+
export declare const renderSvg: typeof runtime_renderSvg;
|
|
28
|
+
export declare const svgPlanJson: typeof runtime_svgPlanJson;
|
|
29
|
+
export declare const renderSvgWithTextMeasurer: typeof runtime_renderSvgWithTextMeasurer;
|
|
30
|
+
export declare const layoutJsonWithTextMeasurer: typeof runtime_layoutJsonWithTextMeasurer;
|
|
31
|
+
export declare const renderSvgElement: typeof runtime_renderSvgElement;
|
|
32
|
+
export declare const renderSvgToElement: typeof runtime_renderSvgToElement;
|
|
33
|
+
export declare const parseJson: typeof runtime_parseJson;
|
|
34
|
+
export declare const parseObject: typeof runtime_parseObject;
|
|
35
|
+
export declare const layoutJson: typeof runtime_layoutJson;
|
|
36
|
+
export declare const layoutObject: typeof runtime_layoutObject;
|
|
37
|
+
//# sourceMappingURL=render.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../src/package-entries/render.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,mBAAmB,IAAI,2BAA2B,EAClD,cAAc,IAAI,sBAAsB,EACxC,mBAAmB,IAAI,2BAA2B,EAClD,iBAAiB,IAAI,yBAAyB,EAC9C,yBAAyB,IAAI,iCAAiC,EAC9D,eAAe,IAAI,uBAAuB,EAC1C,mBAAmB,IAAI,2BAA2B,EAClD,cAAc,IAAI,sBAAsB,EACzC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,SAAS,IAAI,iBAAiB,EAC9B,WAAW,IAAI,mBAAmB,EAClC,yBAAyB,IAAI,iCAAiC,EAC9D,0BAA0B,IAAI,kCAAkC,EAChE,gBAAgB,IAAI,wBAAwB,EAC5C,kBAAkB,IAAI,0BAA0B,EAChD,SAAS,IAAI,iBAAiB,EAC9B,WAAW,IAAI,mBAAmB,EAClC,UAAU,IAAI,kBAAkB,EAChC,YAAY,IAAI,oBAAoB,EACrC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,eAAe,IAAI,qBAAqB,EACxC,iBAAiB,IAAI,uBAAuB,EAC5C,gBAAgB,IAAI,sBAAsB,EAC1C,gBAAgB,IAAI,sBAAsB,EAC3C,MAAM,aAAa,CAAC;AACrB,mBAAmB,aAAa,CAAC;AAEjC,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CAAC,IAAI,CAAC,sBAAsB,EAC/D,SAAS,GACT,gBAAgB,GAChB,qBAAqB,GACrB,mBAAmB,GACnB,2BAA2B,GAC3B,iBAAiB,GACjB,qBAAqB,GACrB,gBAAgB,GAChB,WAAW,GACX,aAAa,GACb,2BAA2B,GAC3B,4BAA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AAO,MAAM,mBAAmB,oCAA8B,CAAC;AAC/D,eAAO,MAAM,iBAAiB,kCAA4B,CAAC;AAC3D,eAAO,MAAM,yBAAyB,0CAAoC,CAAC;AAC3E,eAAO,MAAM,eAAe,gCAA0B,CAAC;AACvD,eAAO,MAAM,mBAAmB,oCAA8B,CAAC;AAC/D,eAAO,MAAM,cAAc,+BAAyB,CAAC;AACrD,eAAO,MAAM,SAAS,0BAAoB,CAAC;AAC3C,eAAO,MAAM,WAAW,4BAAsB,CAAC;AAC/C,eAAO,MAAM,yBAAyB,0CAAoC,CAAC;AAC3E,eAAO,MAAM,0BAA0B,2CAAqC,CAAC;AAC7E,eAAO,MAAM,gBAAgB,iCAA2B,CAAC;AACzD,eAAO,MAAM,kBAAkB,mCAA6B,CAAC;AAC7D,eAAO,MAAM,SAAS,0BAAoB,CAAC;AAC3C,eAAO,MAAM,WAAW,4BAAsB,CAAC;AAC/C,eAAO,MAAM,UAAU,2BAAqB,CAAC;AAC7C,eAAO,MAAM,YAAY,6BAAuB,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { assertBrowserRuntime, bindSurfaceRuntime } from "../surface-runtime.js";
|
|
2
|
+
import { initMerman as runtime_initMerman, getMerman as runtime_getMerman, isMermanInitialized as runtime_isMermanInitialized, runtimeCatalog as runtime_runtimeCatalog, presentationCatalog as runtime_presentationCatalog, supportedDiagrams as runtime_supportedDiagrams, diagramFamilyCapabilities as runtime_diagramFamilyCapabilities, supportedThemes as runtime_supportedThemes, transportApiVersion as runtime_transportApiVersion, packageVersion as runtime_packageVersion, } from "../runtime-core.js";
|
|
3
|
+
import { renderSvg as runtime_renderSvg, svgPlanJson as runtime_svgPlanJson, renderSvgWithTextMeasurer as runtime_renderSvgWithTextMeasurer, layoutJsonWithTextMeasurer as runtime_layoutJsonWithTextMeasurer, renderSvgElement as runtime_renderSvgElement, renderSvgToElement as runtime_renderSvgToElement, parseJson as runtime_parseJson, parseObject as runtime_parseObject, layoutJson as runtime_layoutJson, layoutObject as runtime_layoutObject, } from "../runtime-render.js";
|
|
4
|
+
export { MERMAN_TEXT_MEASUREMENT_PROTOCOL_VERSION, } from "../generated/text-measurement-abi.js";
|
|
5
|
+
export { UNAVAILABLE_DIAGRAM_DETECTION, encodeOptions, } from "../runtime-core.js";
|
|
6
|
+
export { BUNDLED_THEME_PRESETS, SUPPORTED_THEMES, SUPPORTED_DIAGRAMS, SUPPORTED_ASCII_DIAGRAMS, BINDING_STATUS_CODE_NAMES, isThemeName, isDiagramType, isAsciiDiagramType, isBindingStatusCodeName, isBundledThemePresetName, isBindingErrorPayload, normalizeThemeName, normalizeBundledThemePresetName, } from "../public-catalog.js";
|
|
7
|
+
export { BINDING_OPTIONS_SCHEMA_VERSION, RESOURCE_LIMIT_IDS, RESOURCE_LIMIT_METADATA, RESOURCE_OVERRIDE_IDS, RESOURCE_PROFILES, isKnownResourceLimitId, rawResourceOptionsJson, resourceLimitMetadata, resourceOptions, resourceOptionsJson, } from "../generated/resource-contract.js";
|
|
8
|
+
export { assertNavigableSvgForDom, assertSelfContainedSvgForDom, prepareNavigableSvgForDomMount, prepareSelfContainedSvgForDomMount, } from "../svg-safety.js";
|
|
9
|
+
export { createBrowserTextMeasurementSession, } from "../runtime-render.js";
|
|
10
|
+
export const MERMAN_WASM_URL = new URL("../../artifacts/wasm/merman_wasm_bg.wasm", import.meta.url).href;
|
|
11
|
+
let wasmModulePromise;
|
|
12
|
+
export function loadMermanWasmModule() {
|
|
13
|
+
assertBrowserRuntime();
|
|
14
|
+
wasmModulePromise ?? (wasmModulePromise = loadPackageWasmModule());
|
|
15
|
+
return wasmModulePromise;
|
|
16
|
+
}
|
|
17
|
+
async function loadPackageWasmModule() {
|
|
18
|
+
// @ts-ignore -- wasm-bindgen output is assembled after TypeScript compilation.
|
|
19
|
+
const module = await import("../../artifacts/wasm/merman_wasm.js");
|
|
20
|
+
return {
|
|
21
|
+
...module,
|
|
22
|
+
default(input) {
|
|
23
|
+
return module.default(input ?? { module_or_path: MERMAN_WASM_URL });
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
const implementation = {
|
|
28
|
+
initMerman: runtime_initMerman,
|
|
29
|
+
getMerman: runtime_getMerman,
|
|
30
|
+
isMermanInitialized: runtime_isMermanInitialized,
|
|
31
|
+
runtimeCatalog: runtime_runtimeCatalog,
|
|
32
|
+
presentationCatalog: runtime_presentationCatalog,
|
|
33
|
+
supportedDiagrams: runtime_supportedDiagrams,
|
|
34
|
+
diagramFamilyCapabilities: runtime_diagramFamilyCapabilities,
|
|
35
|
+
supportedThemes: runtime_supportedThemes,
|
|
36
|
+
transportApiVersion: runtime_transportApiVersion,
|
|
37
|
+
packageVersion: runtime_packageVersion,
|
|
38
|
+
renderSvg: runtime_renderSvg,
|
|
39
|
+
svgPlanJson: runtime_svgPlanJson,
|
|
40
|
+
renderSvgWithTextMeasurer: runtime_renderSvgWithTextMeasurer,
|
|
41
|
+
layoutJsonWithTextMeasurer: runtime_layoutJsonWithTextMeasurer,
|
|
42
|
+
renderSvgElement: runtime_renderSvgElement,
|
|
43
|
+
renderSvgToElement: runtime_renderSvgToElement,
|
|
44
|
+
parseJson: runtime_parseJson,
|
|
45
|
+
parseObject: runtime_parseObject,
|
|
46
|
+
layoutJson: runtime_layoutJson,
|
|
47
|
+
layoutObject: runtime_layoutObject,
|
|
48
|
+
};
|
|
49
|
+
const runtime = bindSurfaceRuntime(loadMermanWasmModule, implementation, MERMAN_WASM_URL);
|
|
50
|
+
export function initMerman(init) {
|
|
51
|
+
assertBrowserRuntime();
|
|
52
|
+
return runtime.initMerman(init);
|
|
53
|
+
}
|
|
54
|
+
export const getMerman = runtime.getMerman;
|
|
55
|
+
export const isMermanInitialized = runtime.isMermanInitialized;
|
|
56
|
+
export const runtimeCatalog = runtime.runtimeCatalog;
|
|
57
|
+
export const presentationCatalog = runtime.presentationCatalog;
|
|
58
|
+
export const supportedDiagrams = runtime.supportedDiagrams;
|
|
59
|
+
export const diagramFamilyCapabilities = runtime.diagramFamilyCapabilities;
|
|
60
|
+
export const supportedThemes = runtime.supportedThemes;
|
|
61
|
+
export const transportApiVersion = runtime.transportApiVersion;
|
|
62
|
+
export const packageVersion = runtime.packageVersion;
|
|
63
|
+
export const renderSvg = runtime.renderSvg;
|
|
64
|
+
export const svgPlanJson = runtime.svgPlanJson;
|
|
65
|
+
export const renderSvgWithTextMeasurer = runtime.renderSvgWithTextMeasurer;
|
|
66
|
+
export const layoutJsonWithTextMeasurer = runtime.layoutJsonWithTextMeasurer;
|
|
67
|
+
export const renderSvgElement = runtime.renderSvgElement;
|
|
68
|
+
export const renderSvgToElement = runtime.renderSvgToElement;
|
|
69
|
+
export const parseJson = runtime.parseJson;
|
|
70
|
+
export const parseObject = runtime.parseObject;
|
|
71
|
+
export const layoutJson = runtime.layoutJson;
|
|
72
|
+
export const layoutObject = runtime.layoutObject;
|
|
73
|
+
//# sourceMappingURL=render.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render.js","sourceRoot":"","sources":["../../src/package-entries/render.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AACjF,OAAO,EACL,UAAU,IAAI,kBAAkB,EAChC,SAAS,IAAI,iBAAiB,EAC9B,mBAAmB,IAAI,2BAA2B,EAClD,cAAc,IAAI,sBAAsB,EACxC,mBAAmB,IAAI,2BAA2B,EAClD,iBAAiB,IAAI,yBAAyB,EAC9C,yBAAyB,IAAI,iCAAiC,EAC9D,eAAe,IAAI,uBAAuB,EAC1C,mBAAmB,IAAI,2BAA2B,EAClD,cAAc,IAAI,sBAAsB,GACzC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,SAAS,IAAI,iBAAiB,EAC9B,WAAW,IAAI,mBAAmB,EAClC,yBAAyB,IAAI,iCAAiC,EAC9D,0BAA0B,IAAI,kCAAkC,EAChE,gBAAgB,IAAI,wBAAwB,EA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AC,mBAAmB,CAAC;AAC/D,MAAM,CAAC,MAAM,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;AAC3D,MAAM,CAAC,MAAM,yBAAyB,GAAG,OAAO,CAAC,yBAAyB,CAAC;AAC3E,MAAM,CAAC,MAAM,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;AACvD,MAAM,CAAC,MAAM,mBAAmB,GAAG,OAAO,CAAC,mBAAmB,CAAC;AAC/D,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;AACrD,MAAM,CAAC,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;AAC3C,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;AAC/C,MAAM,CAAC,MAAM,yBAAyB,GAAG,OAAO,CAAC,yBAAyB,CAAC;AAC3E,MAAM,CAAC,MAAM,0BAA0B,GAAG,OAAO,CAAC,0BAA0B,CAAC;AAC7E,MAAM,CAAC,MAAM,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC;AACzD,MAAM,CAAC,MAAM,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC;AAC7D,MAAM,CAAC,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;AAC3C,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;AAC/C,MAAM,CAAC,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;AAC7C,MAAM,CAAC,MAAM,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { SUPPORTED_DIAGRAMS } from "./generated/diagram-catalog.js";
|
|
2
|
+
import { SYSTEM_ADAPTER_IDS, WEB_CAPABILITIES, WEB_CAPABILITY_IDS, WEB_BINDING_OPERATION_IDS, WEB_BINDING_OPERATIONS, WEB_OUTPUT_IDS, WEB_OUTPUTS } from "./generated/capability-surface.js";
|
|
3
|
+
import type { SystemAdapterId, WebBindingOperationId } from "./generated/capability-surface.js";
|
|
4
|
+
export { SUPPORTED_DIAGRAMS };
|
|
5
|
+
export { SYSTEM_ADAPTER_IDS, WEB_CAPABILITIES, WEB_CAPABILITY_IDS, WEB_BINDING_OPERATION_IDS, WEB_BINDING_OPERATIONS, WEB_OUTPUT_IDS, WEB_OUTPUTS, };
|
|
6
|
+
export type { SystemAdapterId, WebBindingOperationId };
|
|
7
|
+
export type RuntimeCapabilityId = string;
|
|
8
|
+
export type RuntimeOutputId = string;
|
|
9
|
+
export type RuntimeOperationId = string;
|
|
10
|
+
export declare const SUPPORTED_THEMES: readonly ["default", "base", "dark", "forest", "neutral", "neo", "neo-dark", "redux", "redux-dark", "redux-color", "redux-dark-color"];
|
|
11
|
+
export type ThemeName = (typeof SUPPORTED_THEMES)[number];
|
|
12
|
+
export declare const BUNDLED_THEME_PRESETS: readonly ["editor-light", "editor-dark", "one-dark", "gruvbox-light", "gruvbox-dark", "ayu-light", "ayu-dark"];
|
|
13
|
+
export type BundledThemePresetName = (typeof BUNDLED_THEME_PRESETS)[number];
|
|
14
|
+
export type DiagramType = (typeof SUPPORTED_DIAGRAMS)[number];
|
|
15
|
+
export declare const SUPPORTED_ASCII_DIAGRAMS: readonly ["class", "er", "flowchart", "gantt", "gitgraph", "journey", "kanban", "mindmap", "packet", "sequence", "state", "timeline", "treeView", "xychart", "zenuml"];
|
|
16
|
+
export type AsciiDiagramType = (typeof SUPPORTED_ASCII_DIAGRAMS)[number];
|
|
17
|
+
export declare const BINDING_STATUS_CODE_NAMES: readonly ["MERMAN_OK", "MERMAN_INVALID_ARGUMENT", "MERMAN_UTF8_ERROR", "MERMAN_OPTIONS_JSON_ERROR", "MERMAN_NO_DIAGRAM", "MERMAN_PARSE_ERROR", "MERMAN_RENDER_ERROR", "MERMAN_UNSUPPORTED_OPERATION", "MERMAN_PANIC", "MERMAN_INTERNAL_ERROR", "MERMAN_RESOURCE_LIMIT_EXCEEDED"];
|
|
18
|
+
export type BindingStatusCodeName = (typeof BINDING_STATUS_CODE_NAMES)[number];
|
|
19
|
+
export type BindingErrorKind = "generic" | "unknown-operation" | "missing-capability";
|
|
20
|
+
/**
|
|
21
|
+
* A lossless unsigned resource count. Safe integers use `number`; wider `u64` values use a
|
|
22
|
+
* canonical decimal `string`.
|
|
23
|
+
*/
|
|
24
|
+
export type BindingResourceCount = number | string;
|
|
25
|
+
export interface BindingResourceErrorDetails {
|
|
26
|
+
cause: string;
|
|
27
|
+
limit_id: string;
|
|
28
|
+
phase: string;
|
|
29
|
+
actual: BindingResourceCount;
|
|
30
|
+
max: BindingResourceCount;
|
|
31
|
+
profile: string;
|
|
32
|
+
}
|
|
33
|
+
export interface BindingErrorPayload {
|
|
34
|
+
version: number;
|
|
35
|
+
ok: false;
|
|
36
|
+
code: number;
|
|
37
|
+
code_name: BindingStatusCodeName | string;
|
|
38
|
+
kind: BindingErrorKind | string;
|
|
39
|
+
capability_id: RuntimeCapabilityId | string | null;
|
|
40
|
+
details?: {
|
|
41
|
+
resource: BindingResourceErrorDetails;
|
|
42
|
+
};
|
|
43
|
+
message: string;
|
|
44
|
+
}
|
|
45
|
+
export declare const TEXT_MEASUREMENT_PROVIDER_IDS: readonly ["host-callback", "vendored"];
|
|
46
|
+
export type TextMeasurementProviderId = string;
|
|
47
|
+
export interface RuntimeCapabilities {
|
|
48
|
+
[key: string]: unknown;
|
|
49
|
+
capability_ids: RuntimeCapabilityId[];
|
|
50
|
+
output_ids: RuntimeOutputId[];
|
|
51
|
+
operation_ids: RuntimeOperationId[];
|
|
52
|
+
system_adapter_ids: string[];
|
|
53
|
+
text_measurement: TextMeasurementCapabilities | null;
|
|
54
|
+
}
|
|
55
|
+
export interface TextMeasurementCapabilities {
|
|
56
|
+
[key: string]: unknown;
|
|
57
|
+
protocol_version: number;
|
|
58
|
+
provider_ids: TextMeasurementProviderId[];
|
|
59
|
+
}
|
|
60
|
+
export interface DiagramFamilyCapability {
|
|
61
|
+
diagram_type: string;
|
|
62
|
+
logical_family_kind: string;
|
|
63
|
+
metadata_id: DiagramType | null;
|
|
64
|
+
render_model_kind: string | null;
|
|
65
|
+
has_detector: boolean;
|
|
66
|
+
has_semantic_parser: boolean;
|
|
67
|
+
has_editor_parser: boolean;
|
|
68
|
+
has_combined_parser: boolean;
|
|
69
|
+
has_render_parser: boolean;
|
|
70
|
+
has_header: boolean;
|
|
71
|
+
config_namespace: string | null;
|
|
72
|
+
}
|
|
73
|
+
export type LintRuleSeverity = "error" | "warning" | "info" | "hint";
|
|
74
|
+
export type LintRuleCategory = "parse" | "semantic" | "config" | "resource" | "compatibility" | "layout" | "render" | "internal";
|
|
75
|
+
export type LintRuleProfile = "core" | "recommended" | "strict";
|
|
76
|
+
export type LintRuleOrigin = "mermaid_syntax" | "mermaid_compatibility" | "merman_authoring" | "merman_resource_policy" | "merman_internal";
|
|
77
|
+
export interface LintRuleCatalogEntry {
|
|
78
|
+
id: string;
|
|
79
|
+
description: string;
|
|
80
|
+
evidence: string[];
|
|
81
|
+
default_severity: LintRuleSeverity;
|
|
82
|
+
category: LintRuleCategory;
|
|
83
|
+
default_enabled: boolean;
|
|
84
|
+
default_profile: LintRuleProfile;
|
|
85
|
+
origin: LintRuleOrigin;
|
|
86
|
+
configurable: boolean;
|
|
87
|
+
fixable: boolean;
|
|
88
|
+
}
|
|
89
|
+
export interface LintRuleCatalogResponse {
|
|
90
|
+
version: number;
|
|
91
|
+
rules: LintRuleCatalogEntry[];
|
|
92
|
+
}
|
|
93
|
+
export interface LintRuleSeverityOverrideOptions {
|
|
94
|
+
rule_id: string;
|
|
95
|
+
severity: LintRuleSeverity;
|
|
96
|
+
}
|
|
97
|
+
export interface LintBindingOptions {
|
|
98
|
+
profile?: LintRuleProfile;
|
|
99
|
+
enable_rules?: string[];
|
|
100
|
+
disable_rules?: string[];
|
|
101
|
+
rule_severities?: LintRuleSeverityOverrideOptions[];
|
|
102
|
+
}
|
|
103
|
+
export type AsciiSupportLevel = "full" | "partial" | "summary" | "unsupported";
|
|
104
|
+
export type AsciiEvidenceKind = "mermaid_ascii_oracle" | "beautiful_mermaid_prior_art" | "local_semantic_probe" | "local_advantage" | "support_matrix" | "gap_registry";
|
|
105
|
+
export interface AsciiCapabilityEvidence {
|
|
106
|
+
kind: AsciiEvidenceKind | string;
|
|
107
|
+
source: string;
|
|
108
|
+
note: string;
|
|
109
|
+
}
|
|
110
|
+
export interface AsciiCapability {
|
|
111
|
+
diagram_type: AsciiDiagramType | string;
|
|
112
|
+
display_name: string;
|
|
113
|
+
support_level: AsciiSupportLevel;
|
|
114
|
+
summary_fallback: boolean;
|
|
115
|
+
supported_semantics: string[];
|
|
116
|
+
limits: string[];
|
|
117
|
+
evidence: AsciiCapabilityEvidence[];
|
|
118
|
+
}
|
|
119
|
+
export declare function isThemeName(theme: string): theme is ThemeName;
|
|
120
|
+
export declare function isBundledThemePresetName(preset: string): preset is BundledThemePresetName;
|
|
121
|
+
export declare function isDiagramType(diagram: string): diagram is DiagramType;
|
|
122
|
+
export declare function isAsciiDiagramType(diagram: string): diagram is AsciiDiagramType;
|
|
123
|
+
export declare function isBindingStatusCodeName(codeName: string): codeName is BindingStatusCodeName;
|
|
124
|
+
export declare function isBindingErrorPayload(error: unknown): error is BindingErrorPayload;
|
|
125
|
+
export declare function normalizeThemeName(theme: string | null | undefined): ThemeName;
|
|
126
|
+
export declare function normalizeBundledThemePresetName(preset: string | null | undefined): BundledThemePresetName | null;
|
|
127
|
+
//# sourceMappingURL=public-catalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-catalog.d.ts","sourceRoot":"","sources":["../src/public-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,yBAAyB,EACzB,sBAAsB,EACtB,cAAc,EACd,WAAW,EACZ,MAAM,mCAAmC,CAAC;AAC3C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