@diagrammo/dgmo 0.53.0 → 0.54.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.
- package/dist/advanced.d.ts +36 -0
- package/dist/advanced.js +159 -154
- package/dist/auto.js +142 -128
- package/dist/auto.mjs +775 -466
- package/dist/block.js +62 -60
- package/dist/chart-meta.js +50 -47
- package/dist/{charts-d3-DH2XA45I.js → charts-d3-25E4VWXO.js} +9 -8
- package/dist/chunk-2CW5ZTNH.js +58 -0
- package/dist/{chunk-PKNNHU7H.js → chunk-2NYXI35Z.js} +17 -10
- package/dist/{chunk-W5KMNC5U.js → chunk-2NZOHEP4.js} +9 -10
- package/dist/{chunk-6DCOIN4W.js → chunk-3FRO35WW.js} +768 -2
- package/dist/{chunk-6AUZPPAV.js → chunk-3KHJJP3J.js} +2 -2
- package/dist/{chunk-X3RXGSCZ.js → chunk-3SBHODJ4.js} +11 -11
- package/dist/{chunk-KUSAVOWZ.js → chunk-3SEEP2JM.js} +3 -3
- package/dist/{chunk-QWIBT6DS.js → chunk-47JNEKJA.js} +10 -10
- package/dist/{chunk-LHILKFDP.js → chunk-4T6OCSJ2.js} +9 -9
- package/dist/{chunk-XQ4KN6JQ.js → chunk-4ZIKWVSQ.js} +16 -15
- package/dist/{chunk-GMAH572Z.js → chunk-5VXU6MND.js} +2 -2
- package/dist/{chunk-HORZ5H2L.js → chunk-5XSNLXU5.js} +17 -17
- package/dist/{chunk-BFDVEO5R.js → chunk-62Y27T4C.js} +2 -2
- package/dist/{chunk-R5NH5BZG.js → chunk-6KL7TFLS.js} +6 -6
- package/dist/{chunk-UVDCHR4E.js → chunk-6OYDOQ2Q.js} +2 -2
- package/dist/{chunk-QI3BOLQB.js → chunk-7K6NDSXH.js} +4 -4
- package/dist/{chunk-27STWBOK.js → chunk-7SP4C6EV.js} +6 -8
- package/dist/{chunk-I46X5VUA.js → chunk-7TF3QOOD.js} +25 -1
- package/dist/{chunk-FGDSTT3F.js → chunk-7U4OR7CD.js} +2 -2
- package/dist/{chunk-VKNCC2GX.js → chunk-7UPFTBOW.js} +13 -13
- package/dist/{chunk-FT7TPPZ5.js → chunk-A3BDLDYG.js} +12 -12
- package/dist/{chunk-AZNXGWDC.js → chunk-ADCHLNWT.js} +7 -7
- package/dist/{chunk-CMVZWP32.js → chunk-AHTTKERF.js} +2 -2
- package/dist/{chunk-GAWKIIPO.js → chunk-AJFHNS67.js} +7 -7
- package/dist/{chunk-Q7AH665U.js → chunk-AQEYUVGJ.js} +111 -35
- package/dist/{chunk-BR7AYN76.js → chunk-B7N5KYXQ.js} +12 -12
- package/dist/chunk-BEOAKGNA.js +484 -0
- package/dist/{chunk-GABSL6TH.js → chunk-BM7MG6HT.js} +3 -3
- package/dist/{chunk-UKP5HWB5.js → chunk-BWYFIVZF.js} +4 -4
- package/dist/{chunk-7GUF6SDR.js → chunk-BZJIITYM.js} +9 -9
- package/dist/{chunk-RW5PEJ7D.js → chunk-C2UORMIA.js} +3 -3
- package/dist/{chunk-FXCB7H5O.js → chunk-CCGWX6AO.js} +2 -2
- package/dist/{chunk-AHXIMHDQ.js → chunk-COJW2NEY.js} +9 -9
- package/dist/{chunk-XY3UDKKH.js → chunk-COVYNAKJ.js} +4 -4
- package/dist/{chunk-GQ644SPD.js → chunk-CSHFU6LT.js} +14 -14
- package/dist/{chunk-JTMSWEIW.js → chunk-DLU643TF.js} +4 -4
- package/dist/{chunk-QAALSCKI.js → chunk-DPGQ5UMO.js} +12 -12
- package/dist/{chunk-I64ECJX3.js → chunk-EAI6XJ7D.js} +3 -3
- package/dist/{chunk-DWUMPMV2.js → chunk-EPRF3ZRV.js} +2 -2
- package/dist/{chunk-AIMLCDAO.js → chunk-EQOMY4PY.js} +2 -2
- package/dist/{chunk-XEAQDIMF.js → chunk-F7XM366V.js} +6 -6
- package/dist/{chunk-SG4PRYO3.js → chunk-FFVFZLRT.js} +49 -18
- package/dist/{chunk-LC3FFD43.js → chunk-FR6UFVSV.js} +12 -12
- package/dist/{chunk-6HTRCTAS.js → chunk-FVMKCZHF.js} +6 -4
- package/dist/{chunk-FUKNRLIJ.js → chunk-GK32ZFZY.js} +6 -6
- package/dist/{chunk-6KY7OCZC.js → chunk-GKYHWJXI.js} +3 -3
- package/dist/{chunk-NNYFQOTK.js → chunk-GQ5ECRP4.js} +10 -8
- package/dist/{chunk-PT4SW76W.js → chunk-HAA25PLC.js} +9 -9
- package/dist/{chunk-J7HI6G3G.js → chunk-HFEOOQ46.js} +6 -6
- package/dist/{chunk-KKHCNSKK.js → chunk-I47VHSPS.js} +5 -5
- package/dist/{chunk-YG2BEIQU.js → chunk-ICKXIMBA.js} +11 -11
- package/dist/{chunk-A44USUV7.js → chunk-ICZ7M6IZ.js} +23 -17
- package/dist/{chunk-HE5J53SZ.js → chunk-IOIMQHQ6.js} +3 -3
- package/dist/{chunk-3BEKKRH5.js → chunk-IYNKLCAZ.js} +8 -8
- package/dist/{chunk-774C2FF3.js → chunk-J7HQPVYH.js} +2 -2
- package/dist/{chunk-UFQJMOVZ.js → chunk-KBVOVDYP.js} +6 -6
- package/dist/{chunk-JHOAH4TI.js → chunk-KDK5EKUR.js} +2 -2
- package/dist/{chunk-VIRANCNY.js → chunk-KINOX74I.js} +14 -14
- package/dist/{chunk-VJHBSPGF.js → chunk-KQ3FNRGR.js} +3 -3
- package/dist/{chunk-U7NKYLX2.js → chunk-KQYQECWQ.js} +13 -13
- package/dist/{chunk-GMIJ35PW.js → chunk-KS5ZSM5T.js} +13 -13
- package/dist/{chunk-FLDC7ZAK.js → chunk-KV4HLIJE.js} +2 -2
- package/dist/{chunk-PYO4TJJ3.js → chunk-LPJ6H5X4.js} +11 -11
- package/dist/{chunk-LQHVDZYC.js → chunk-LRSW4JLE.js} +4 -4
- package/dist/{chunk-VRRDUYOK.js → chunk-M24VXUFG.js} +3 -3
- package/dist/{chunk-22OQWBWD.js → chunk-M3H7ZE6C.js} +10 -10
- package/dist/{chunk-MA3HJZHB.js → chunk-MTZOXISJ.js} +7 -7
- package/dist/{chunk-GWQJKTFS.js → chunk-N7BSBAVP.js} +94 -94
- package/dist/{chunk-65V6IRFN.js → chunk-NUTWTV6G.js} +10 -10
- package/dist/{chunk-HNBY6CNV.js → chunk-O576GYAP.js} +2 -2
- package/dist/{chunk-3CZLWOCI.js → chunk-OJ435DQZ.js} +3 -3
- package/dist/{chunk-BD3WGY4T.js → chunk-OR3R27CU.js} +2 -2
- package/dist/{chunk-2QC4HXCY.js → chunk-OSXQKC3S.js} +8 -10
- package/dist/{chunk-4RGZFA7H.js → chunk-Q5IHQ4NW.js} +11 -1
- package/dist/{chunk-ALYZ3MAA.js → chunk-QBYP2FBZ.js} +8 -476
- package/dist/{chunk-4ASVFYB2.js → chunk-R5BGGBFF.js} +5 -5
- package/dist/{chunk-YR43LJT5.js → chunk-RIEAN4D5.js} +15 -12
- package/dist/{chunk-P3H7QVDH.js → chunk-RRGKMJYL.js} +6 -6
- package/dist/{chunk-XG4NWFPY.js → chunk-S7FOIURR.js} +13 -13
- package/dist/{chunk-NNUMX6WX.js → chunk-S7YFT3PO.js} +40 -15
- package/dist/{chunk-SQCBSFT5.js → chunk-SBOAZ7YK.js} +51 -263
- package/dist/{chunk-VGNIDAPQ.js → chunk-SSHS42QG.js} +4 -4
- package/dist/{chunk-SGPFVDUL.js → chunk-T3FAJAJT.js} +6 -6
- package/dist/{chunk-AN2DQB3G.js → chunk-T7Y554OK.js} +12 -12
- package/dist/chunk-TGOMHUOV.js +218 -0
- package/dist/{chunk-W2DINCHL.js → chunk-TJN2OIVG.js} +31 -16
- package/dist/{chunk-CK2GMDXD.js → chunk-TLNVYWPA.js} +2 -2
- package/dist/{chunk-CQFNIIQN.js → chunk-U4IN6AHE.js} +2 -2
- package/dist/{chunk-HOXKNRON.js → chunk-UEU6IYKY.js} +2 -2
- package/dist/{chunk-UK6DKJLD.js → chunk-UIT7E6UF.js} +4 -4
- package/dist/{chunk-IQJCVREL.js → chunk-VMSBMIHW.js} +6 -6
- package/dist/{chunk-FFXCKZOU.js → chunk-VQFDBNYF.js} +3 -3
- package/dist/{chunk-PV2QO7QL.js → chunk-W6PCFRPL.js} +2 -2
- package/dist/{chunk-UQRIKAMH.js → chunk-WKNAJ4BR.js} +13 -13
- package/dist/{chunk-4WGMGKCZ.js → chunk-WW4BQ744.js} +11 -11
- package/dist/{chunk-ZXUAPTCK.js → chunk-WWHECSYZ.js} +2 -2
- package/dist/{chunk-4K42RUGC.js → chunk-XWODFBHJ.js} +43 -12
- package/dist/{chunk-VAO6ANGC.js → chunk-YENNFS5F.js} +9 -9
- package/dist/cli.cjs +160 -146
- package/dist/completion-registry.d.ts +129 -0
- package/dist/completion-registry.js +1270 -0
- package/dist/{compute-G55RG53N.js → compute-JAP5E2E4.js} +2 -2
- package/dist/dgmo-router-TGZWFIZO.js +88 -0
- package/dist/{dimensions-K6PGYYGT.js → dimensions-L6BXQXXL.js} +8 -8
- package/dist/editor.js +18 -0
- package/dist/element.js +142 -128
- package/dist/element.mjs +775 -466
- package/dist/{flowchart-parser-LALR6J6F.js → flowchart-parser-UKYOW3VM.js} +5 -5
- package/dist/{flowchart-renderer-DXYB5YRF.js → flowchart-renderer-DCFKUDDR.js} +9 -9
- package/dist/highlight.js +18 -0
- package/dist/index.js +65 -62
- package/dist/{layout-WCAIKGZG.js → layout-25Y3VDYF.js} +5 -5
- package/dist/layout-4SPLI4HG.js +15 -0
- package/dist/{layout-E6HR6PXH.js → layout-A6OIGZN2.js} +3 -3
- package/dist/{layout-3BVDMKXI.js → layout-CH4HFFRD.js} +4 -4
- package/dist/{layout-ZE5DRJWX.js → layout-G2ABQJQZ.js} +4 -4
- package/dist/{layout-3V2A4MUE.js → layout-ITLPDG6M.js} +6 -5
- package/dist/{layout-WSMPBQ4Q.js → layout-NF4EWFLT.js} +3 -3
- package/dist/layout-NY7MHJCL.js +15 -0
- package/dist/{layout-4IHCMWZN.js → layout-QBNAMEOA.js} +4 -4
- package/dist/{layout-OL2XFJXA.js → layout-SP7HJWKA.js} +3 -3
- package/dist/{layout-search-34DPZD43.js → layout-search-LUI475P3.js} +9 -4
- package/dist/{legend-constants-P5EQWRQQ.js → legend-constants-B77VKB3R.js} +7 -2
- package/dist/{parser-5QPFOB5F.js → parser-2UWWNTFL.js} +4 -4
- package/dist/{parser-CKA3QMAG.js → parser-3RXYQSA7.js} +5 -5
- package/dist/{parser-GKP2MHHL.js → parser-5C3PEZK3.js} +3 -3
- package/dist/{parser-275KP7JO.js → parser-66RYGJRB.js} +5 -6
- package/dist/{parser-7JHWEWXM.js → parser-6GN5YJBJ.js} +4 -4
- package/dist/{parser-XVPTRWZ4.js → parser-6MQM7WT3.js} +4 -4
- package/dist/{parser-7JVIDLLR.js → parser-7UI6UQ7B.js} +4 -4
- package/dist/{parser-5HQXCNOS.js → parser-B2A7XOAK.js} +3 -3
- package/dist/{parser-UWRX52PC.js → parser-CCNJKDDA.js} +4 -4
- package/dist/{parser-CRKLXGW7.js → parser-ESHNUFME.js} +4 -4
- package/dist/{parser-EXNBDNGY.js → parser-F4FEU57T.js} +3 -3
- package/dist/{parser-IVGHXLZP.js → parser-FHRMFUNX.js} +4 -3
- package/dist/{parser-XNKJCMMA.js → parser-FPCWDYQV.js} +4 -4
- package/dist/{parser-ZQDQTB4X.js → parser-FY3YFFBS.js} +5 -5
- package/dist/{parser-VOERD6XR.js → parser-GML6V2KZ.js} +4 -4
- package/dist/{parser-3CODK6RG.js → parser-HA3PF5FL.js} +4 -4
- package/dist/{parser-GN2MM5CC.js → parser-KTYF6WO5.js} +3 -3
- package/dist/{parser-ZGNXYFPS.js → parser-LTA2BOZO.js} +3 -3
- package/dist/{parser-FOOFEJQU.js → parser-LU7UAKNB.js} +4 -4
- package/dist/{parser-NNIL3HXU.js → parser-MHKYQPC2.js} +3 -3
- package/dist/{parser-IKWK2ZU3.js → parser-MVSYFK63.js} +4 -5
- package/dist/{parser-3VSWEKBF.js → parser-O7YQYFEN.js} +4 -4
- package/dist/{parser-YSLNDFLV.js → parser-OPIXXUY4.js} +4 -5
- package/dist/{parser-RNLTBIJ6.js → parser-S4EJPNVN.js} +4 -4
- package/dist/{parser-G26MTBFS.js → parser-T3D7BV6O.js} +3 -3
- package/dist/{parser-3KIGEEJM.js → parser-VVE4THG3.js} +4 -4
- package/dist/{parser-5FGJSQNS.js → parser-WPPJGB4R.js} +4 -4
- package/dist/{parser-27Z76SN3.js → parser-X5XLFY4Z.js} +4 -4
- package/dist/{parser-6B6SSZT7.js → parser-XCPMEB2Z.js} +3 -3
- package/dist/{parser-6PPHAXXH.js → parser-XRDUX2AR.js} +5 -5
- package/dist/{parser-FF4BMRSB.js → parser-YPWYT46P.js} +4 -4
- package/dist/{parser-4E4I3GNT.js → parser-YULS5MLD.js} +4 -4
- package/dist/{renderer-ZBTEX2JK.js → renderer-2DME63VZ.js} +4 -4
- package/dist/{renderer-RLMOTXZ6.js → renderer-3VY3VXJE.js} +13 -13
- package/dist/{renderer-6WRYVM5R.js → renderer-4A32DX5L.js} +8 -8
- package/dist/{renderer-UPF7NRTI.js → renderer-4K5YYX5R.js} +11 -11
- package/dist/{renderer-HIFQVEJA.js → renderer-6CFML5G3.js} +9 -9
- package/dist/{renderer-7NQSTQMQ.js → renderer-7HMZ5OCJ.js} +4 -4
- package/dist/{renderer-NE5W7CQP.js → renderer-B7Y6I7JX.js} +6 -5
- package/dist/{renderer-LVZAHRP6.js → renderer-C3RI4OPJ.js} +11 -12
- package/dist/{renderer-COLQFSFV.js → renderer-CJ56SUMF.js} +9 -9
- package/dist/{renderer-WFSUBKUL.js → renderer-COJZZ4F6.js} +8 -8
- package/dist/{renderer-SQ54MDSA.js → renderer-FXMGCSRP.js} +9 -9
- package/dist/{renderer-TYHGXAVT.js → renderer-G4UOW3RH.js} +4 -4
- package/dist/{renderer-YUXGXGSW.js → renderer-HQ4JFZOV.js} +9 -9
- package/dist/{renderer-JTCX6PCG.js → renderer-LHVCKEWF.js} +9 -9
- package/dist/{renderer-WNFXYYGL.js → renderer-OZX5KGQM.js} +8 -8
- package/dist/{renderer-CWEFGEIC.js → renderer-P3YQES7B.js} +13 -13
- package/dist/{renderer-UKXW2QPE.js → renderer-PLVIARM7.js} +9 -8
- package/dist/{renderer-5MPN7CXZ.js → renderer-RA4PTAMF.js} +5 -5
- package/dist/{renderer-JCZG6AYU.js → renderer-RMAM2SOJ.js} +10 -10
- package/dist/{renderer-JWGQSTMR.js → renderer-SES7QZYL.js} +14 -14
- package/dist/{renderer-KARQF3F3.js → renderer-TQ5QDZOE.js} +8 -8
- package/dist/{renderer-6EN5XXJZ.js → renderer-V5SNTPAM.js} +10 -10
- package/dist/{renderer-QD2SJF2I.js → renderer-WVD6G2TS.js} +9 -9
- package/dist/{renderer-AK2WO4EI.js → renderer-X2LYSMLU.js} +4 -4
- package/dist/{renderer-VMH6L6CP.js → renderer-Y3NXZINM.js} +8 -8
- package/dist/{renderer-XTXSOK3L.js → renderer-YEFOOULC.js} +10 -10
- package/dist/{renderer-YUKPS27O.js → renderer-YP3P6UVT.js} +8 -8
- package/dist/{renderer-D3BRNOMV.js → renderer-YVMETH6V.js} +11 -11
- package/dist/{renderer-2C6DJRYN.js → renderer-Z4GNKNXO.js} +8 -8
- package/dist/{renderer-radial-WF6VOUOD.js → renderer-radial-VYBZAXXE.js} +9 -9
- package/dist/{state-parser-L7DHZIQO.js → state-parser-VIW2WNA5.js} +5 -5
- package/dist/{state-renderer-TFEUOP4H.js → state-renderer-H22AQD3U.js} +12 -12
- package/package.json +5 -1
- package/dist/chunk-YJVA3QUU.js +0 -734
- package/dist/dgmo-router-B4S23EBH.js +0 -86
- package/dist/layout-3M5UYJHY.js +0 -14
- package/dist/layout-KPQWJNAG.js +0 -14
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Static completion registries — the LIGHT completion surface
|
|
3
|
+
* (`@diagrammo/dgmo/completion`).
|
|
4
|
+
*
|
|
5
|
+
* Pure data: chart-type directive registries, structural keywords, entity-type
|
|
6
|
+
* vocabularies, the reference-grammar descriptor, closed value enums, pipe /
|
|
7
|
+
* same-line metadata keys, and the derived metadata key set.
|
|
8
|
+
*
|
|
9
|
+
* Split out of `./completion` (which additionally owns the symbol *extractors*)
|
|
10
|
+
* so editor front-ends can import the registries without dragging the chart
|
|
11
|
+
* parsers — notably `body/parser`, whose figure-asset catalog is ~290 KB — onto
|
|
12
|
+
* their startup path. Same rationale and rule as `./chart-meta`: only symbols
|
|
13
|
+
* whose transitive imports are parser-constant-only live here.
|
|
14
|
+
*
|
|
15
|
+
* Closed enum sets (`ALL_MARKERS`, wireframe `STATE_KEYWORDS` /
|
|
16
|
+
* `GROUP_ONLY_METADATA`) are imported from their owning parsers — never
|
|
17
|
+
* hand-copied — so completion can't drift from the grammar (one-oracle rule).
|
|
18
|
+
*/
|
|
19
|
+
/** Specification for a single directive: description + optional enumerated values. */
|
|
20
|
+
interface DirectiveValueSpec {
|
|
21
|
+
description: string;
|
|
22
|
+
values?: string[];
|
|
23
|
+
}
|
|
24
|
+
/** Specification for a chart type's directives. */
|
|
25
|
+
interface DirectiveSpec {
|
|
26
|
+
directives: Record<string, DirectiveValueSpec>;
|
|
27
|
+
}
|
|
28
|
+
/** Chart-type → directive specifications. Every chart type has at least palette + theme. */
|
|
29
|
+
declare const COMPLETION_REGISTRY: Map<string, DirectiveSpec>;
|
|
30
|
+
declare const CHART_TYPES: ReadonlyArray<{
|
|
31
|
+
name: string;
|
|
32
|
+
description: string;
|
|
33
|
+
}>;
|
|
34
|
+
/**
|
|
35
|
+
* Entity types for `Name is a <type>` declarations, keyed by chart type.
|
|
36
|
+
* Values are sourced from parser constants (VALID_PARTICIPANT_TYPES,
|
|
37
|
+
* C4_IS_A_RE).
|
|
38
|
+
*/
|
|
39
|
+
declare const ENTITY_TYPES: Map<string, string[]>;
|
|
40
|
+
/**
|
|
41
|
+
* Chart-type-specific structural keywords offered on an empty/start-of-line in
|
|
42
|
+
* the data zone (block openers like `loop`, section headers like `containers`,
|
|
43
|
+
* the `tag` block declaration, etc.). This is the single source of truth for
|
|
44
|
+
* the editor's structural-keyword popup — every entry MUST be a token the
|
|
45
|
+
* corresponding parser actually recognizes (validated by the
|
|
46
|
+
* completion-conformance suite). Do NOT add removed/diagnostic-only tokens
|
|
47
|
+
* (e.g. cycle's `no-descriptions`) or tokens the parser ignores.
|
|
48
|
+
*
|
|
49
|
+
* Chart types not listed here have no structural keywords (most data charts).
|
|
50
|
+
*/
|
|
51
|
+
declare const STRUCTURAL_KEYWORDS: Map<string, string[]>;
|
|
52
|
+
/**
|
|
53
|
+
* Chart types that support `tag` block declarations (and thus the
|
|
54
|
+
* `alias`/`default` sub-keywords inside a tag block). Derived from
|
|
55
|
+
* STRUCTURAL_KEYWORDS so the two can never drift — a chart supports tag blocks
|
|
56
|
+
* iff it offers the `tag` keyword.
|
|
57
|
+
*/
|
|
58
|
+
declare const TAG_SUPPORTING_TYPES: ReadonlySet<string>;
|
|
59
|
+
/** Whether a chart type has a reference position (arrow/operator → a prior
|
|
60
|
+
* declaration) and which operators open it. The single oracle that drives
|
|
61
|
+
* the library extractor audit, the app's entity-trigger map, and the
|
|
62
|
+
* conformance drift-guard — so the three can never disagree. v1 models
|
|
63
|
+
* reference-after-operator only (NOT metadata-target references). */
|
|
64
|
+
interface ReferenceGrammar {
|
|
65
|
+
hasReferenceGrammar: boolean;
|
|
66
|
+
/** Literal operator tokens that introduce a reference (e.g. `->`, `<->`,
|
|
67
|
+
* `~>`, `+`). The app derives its trigger regex from these (allowing the
|
|
68
|
+
* labeled `-label->` / `~label~>` variants where applicable). */
|
|
69
|
+
referenceOperators: string[];
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Per-type reference grammar. Grounded in each parser's arrow/operator
|
|
73
|
+
* grammar — NOT hand-typed blind. Types with no reference position (org,
|
|
74
|
+
* kanban, mindmap, all data charts, the radial/visualization types) declare
|
|
75
|
+
* `hasReferenceGrammar: false`. `map` references (`route A ~> B`) are owned by
|
|
76
|
+
* the app's bespoke geo-completion path, so it stays `false` here to avoid
|
|
77
|
+
* double-handling.
|
|
78
|
+
*/
|
|
79
|
+
declare const REFERENCE_GRAMMAR: Map<string, ReferenceGrammar>;
|
|
80
|
+
/**
|
|
81
|
+
* RACI marker alphabet (slot-7 enum in the role-assignment value position).
|
|
82
|
+
* Consumed by editor completion. The chart type is always `raci`; the variant
|
|
83
|
+
* (RACI / RASCI / DACI) is inferred from the markers used, so completion offers
|
|
84
|
+
* the full union (R / A / S / C / I / D) sourced from `raci/variants.ts`'s
|
|
85
|
+
* `ALL_MARKERS` — the marker set can never drift from the parser.
|
|
86
|
+
*/
|
|
87
|
+
declare const RACI_MARKER_ALPHABETS: ReadonlyMap<string, readonly string[]>;
|
|
88
|
+
/**
|
|
89
|
+
* Closed set of wireframe element state flags (slot-7 trailing enum, e.g.
|
|
90
|
+
* `(Submit) primary destructive`). Sourced from the wireframe parser's
|
|
91
|
+
* `STATE_KEYWORDS` — exported there and consumed here, never re-typed.
|
|
92
|
+
*/
|
|
93
|
+
declare const WIREFRAME_FLAGS: readonly string[];
|
|
94
|
+
/**
|
|
95
|
+
* The subset of `WIREFRAME_FLAGS` that only make sense on group elements
|
|
96
|
+
* (`[...]`). Editor completion drops these for non-group elements (buttons
|
|
97
|
+
* `(...)`, dropdowns `{...}`). Sourced from the wireframe parser's
|
|
98
|
+
* `GROUP_ONLY_METADATA` — exported there and consumed here, never re-typed.
|
|
99
|
+
*/
|
|
100
|
+
declare const WIREFRAME_GROUP_ONLY_FLAGS: readonly string[];
|
|
101
|
+
/** Specification for a single pipe metadata key. */
|
|
102
|
+
interface PipeKeySpec {
|
|
103
|
+
description: string;
|
|
104
|
+
values?: string[];
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Pipe metadata keys for inline `| key value` on data lines.
|
|
108
|
+
* Keyed by chart type → { context-name: keys }.
|
|
109
|
+
*
|
|
110
|
+
* Contexts are open-ended. The two universal ones are:
|
|
111
|
+
* - `node` — the default for any non-arrow line
|
|
112
|
+
* - `edge` — lines containing an arrow (`->`, `--`)
|
|
113
|
+
*
|
|
114
|
+
* Charts with richer line types declare additional contexts:
|
|
115
|
+
* - raci: `role`, `phase`, `assignment`
|
|
116
|
+
* - ring / pyramid: `layer`
|
|
117
|
+
* - tech-radar: `quadrant`, `blip`
|
|
118
|
+
* - journey-map: `step`
|
|
119
|
+
*
|
|
120
|
+
* IMPORTANT: NEVER add 'sequence' here. The `|` character in sequence
|
|
121
|
+
* diagrams separates display names from identifiers and tag metadata.
|
|
122
|
+
* Adding sequence would trigger false pipe-metadata completions on every `|`.
|
|
123
|
+
*/
|
|
124
|
+
type PipeContextMap = Record<string, Record<string, PipeKeySpec>>;
|
|
125
|
+
declare const PIPE_METADATA: Map<string, PipeContextMap>;
|
|
126
|
+
/** All known directive keys, derived from COMPLETION_REGISTRY. Includes implicit keys. */
|
|
127
|
+
declare const METADATA_KEY_SET: ReadonlySet<string>;
|
|
128
|
+
|
|
129
|
+
export { CHART_TYPES, COMPLETION_REGISTRY, type DirectiveSpec, type DirectiveValueSpec, ENTITY_TYPES, METADATA_KEY_SET, PIPE_METADATA, type PipeContextMap, type PipeKeySpec, RACI_MARKER_ALPHABETS, REFERENCE_GRAMMAR, type ReferenceGrammar, STRUCTURAL_KEYWORDS, TAG_SUPPORTING_TYPES, WIREFRAME_FLAGS, WIREFRAME_GROUP_ONLY_FLAGS };
|