@diagrammo/dgmo 0.60.0 → 0.61.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 +6 -6
- package/dist/advanced.js +91 -93
- package/dist/auto.js +109 -109
- package/dist/auto.mjs +300 -425
- package/dist/block.js +49 -105
- package/dist/{calculator-ORAKSL5D.js → calculator-M326KQFW.js} +3 -3
- package/dist/{chart-meta-C6UaqhTP.d.ts → chart-meta-gUwAzi7N.d.ts} +9 -3
- package/dist/chart-meta.d.ts +2 -2
- package/dist/chart-meta.js +44 -46
- package/dist/{charts-d3-FSNSASP7.js → charts-d3-MN6QCYKU.js} +5 -5
- package/dist/{chunk-ON4MEUC4.js → chunk-23RWHHI5.js} +11 -2
- package/dist/{chunk-SLGHGT76.js → chunk-2CMM36O7.js} +2 -2
- package/dist/{chunk-XVOGT46C.js → chunk-2PTK46E2.js} +2 -2
- package/dist/{chunk-X5AIFXB7.js → chunk-2WPLOS4Q.js} +4 -4
- package/dist/{chunk-4IFPX4J6.js → chunk-3A2HZBFD.js} +2 -2
- package/dist/{chunk-OJD4FU6H.js → chunk-3A7KMF33.js} +2 -2
- package/dist/{chunk-DKCEG3N6.js → chunk-3HYRJAXO.js} +4 -4
- package/dist/{chunk-V5OBLPLA.js → chunk-3OLO2MZ6.js} +4 -4
- package/dist/{chunk-Y5KXCKI5.js → chunk-4BEAHH6G.js} +5 -5
- package/dist/{chunk-EKKS325Q.js → chunk-4GQ6I46C.js} +2 -2
- package/dist/{chunk-MROSEZHE.js → chunk-5PWIV7ZF.js} +3 -3
- package/dist/{chunk-DKG2ADEN.js → chunk-63WPPHOM.js} +2 -2
- package/dist/{chunk-I53E3L5M.js → chunk-65QX6LYT.js} +3 -3
- package/dist/{chunk-243KZTTS.js → chunk-6BVIZW5N.js} +7 -7
- package/dist/{chunk-ZPUVAJTW.js → chunk-6CWNVQPW.js} +3 -3
- package/dist/{chunk-6RR4XUOB.js → chunk-7BJQUII6.js} +6 -6
- package/dist/{chunk-X5CJAFZF.js → chunk-7FTGNJQ2.js} +3 -3
- package/dist/{chunk-PTYUSRGT.js → chunk-7QCYHZVO.js} +5 -5
- package/dist/{chunk-ZU2EXJEL.js → chunk-A34FVVVI.js} +2 -2
- package/dist/{chunk-BGBGWFUI.js → chunk-A5FNLWKP.js} +3 -3
- package/dist/{chunk-BG23Y7JD.js → chunk-AFCVHK3G.js} +3 -3
- package/dist/{chunk-QMKFLQL4.js → chunk-AKD3YZ54.js} +3 -3
- package/dist/{chunk-BVPRRSMX.js → chunk-B25BEH3F.js} +3 -3
- package/dist/{chunk-K5L3LXT3.js → chunk-BSJIPMPG.js} +84 -84
- package/dist/{chunk-GCZQAT4Z.js → chunk-CHOKOYSC.js} +3 -3
- package/dist/{chunk-2NSR6INI.js → chunk-CSUF6PNF.js} +3 -3
- package/dist/{chunk-ZTSBP3AH.js → chunk-CUYDE77F.js} +3 -3
- package/dist/{chunk-ZBOSGLES.js → chunk-DJC5M7VC.js} +3 -3
- package/dist/{chunk-6XWZKCVS.js → chunk-DPFCFU2K.js} +3 -3
- package/dist/{chunk-CDIBHGPW.js → chunk-DY4VJYG7.js} +3 -3
- package/dist/{chunk-32G7X6BX.js → chunk-DZZWR6GT.js} +6 -6
- package/dist/{chunk-6YY56KU2.js → chunk-E2GEV3BI.js} +3 -3
- package/dist/{chunk-PSWWCLLI.js → chunk-EK4QX7NQ.js} +3 -3
- package/dist/{chunk-DC3EBYIG.js → chunk-FXLGBUIQ.js} +5 -5
- package/dist/{chunk-VVCYOF3P.js → chunk-HBSKE3ML.js} +3 -3
- package/dist/{chunk-IO436ODZ.js → chunk-HJ6TMHQG.js} +4 -4
- package/dist/{chunk-6F74K4JL.js → chunk-I7IQ2NEJ.js} +3 -3
- package/dist/{chunk-VGFUVFJA.js → chunk-IL5UVUMK.js} +3 -3
- package/dist/{chunk-S5OQWV54.js → chunk-INLEOJIX.js} +2 -2
- package/dist/{chunk-DDQ47BMP.js → chunk-JWJBWNQL.js} +3 -3
- package/dist/{chunk-ZJR2YBVN.js → chunk-KOHIF4LD.js} +2 -2
- package/dist/{chunk-CWOKQSBQ.js → chunk-KRTO7NRK.js} +2 -2
- package/dist/{chunk-TL6WZWSZ.js → chunk-LALFMQ7Q.js} +2 -2
- package/dist/{chunk-EYP34TFP.js → chunk-LQR46XGR.js} +2 -2
- package/dist/{chunk-QABZKAKF.js → chunk-LRKGF7RN.js} +6 -6
- package/dist/{chunk-LLA5C2TM.js → chunk-MDI5FMWO.js} +2 -2
- package/dist/{chunk-N4NFZIXE.js → chunk-MOT3NXB5.js} +2 -2
- package/dist/{chunk-GZAKQDX7.js → chunk-MRD4QWFK.js} +3 -3
- package/dist/{chunk-EZGWUS5G.js → chunk-NEV5IW33.js} +5 -5
- package/dist/{chunk-HQI7S72D.js → chunk-NKRVFQGO.js} +4 -4
- package/dist/{chunk-V5PHEH2M.js → chunk-NMIWEUIG.js} +2 -2
- package/dist/{chunk-OSXJY6SY.js → chunk-NSJK7F2V.js} +3 -3
- package/dist/{chunk-6KWE5553.js → chunk-O42EAZUV.js} +3 -3
- package/dist/{chunk-LXUBC5H4.js → chunk-OIK6Y2EJ.js} +5 -5
- package/dist/{chunk-EQGLGTU2.js → chunk-OLPWKS5L.js} +3 -3
- package/dist/{chunk-DXSRQLD4.js → chunk-OPBZYISB.js} +2 -2
- package/dist/{chunk-IXY2IPOW.js → chunk-P2PUWV3Y.js} +233 -58
- package/dist/{chunk-4VFQPEC6.js → chunk-PFGJ7SCM.js} +6 -6
- package/dist/{chunk-JAHV7RFV.js → chunk-PTKCX5ZE.js} +4 -4
- package/dist/{chunk-U5UKFXHB.js → chunk-Q3XVMFVF.js} +2 -2
- package/dist/{chunk-SJT4W23S.js → chunk-QE4GTFZS.js} +2 -2
- package/dist/{chunk-TR7WNZFJ.js → chunk-QFNRHY62.js} +3 -3
- package/dist/{chunk-R53THUTP.js → chunk-QMYJO4EL.js} +4 -4
- package/dist/{chunk-IH3GHOHU.js → chunk-QQADQBKG.js} +4 -4
- package/dist/{chunk-TDZRLG7I.js → chunk-RF5YDIYT.js} +2 -2
- package/dist/{chunk-HFOSP6E2.js → chunk-RKTIIU7Z.js} +3 -3
- package/dist/{chunk-35SOKGIP.js → chunk-S23HOUJS.js} +2 -2
- package/dist/{chunk-SEDLXFTX.js → chunk-SBOG6R6A.js} +4 -4
- package/dist/{chunk-T7FMXKIG.js → chunk-SF3JAWMY.js} +3 -3
- package/dist/{chunk-GSSCUREO.js → chunk-SMHTYVMK.js} +6 -6
- package/dist/{chunk-SQLVM3G7.js → chunk-SR7NGZNM.js} +4 -4
- package/dist/{chunk-VGCL263O.js → chunk-SSR6JAR3.js} +2 -2
- package/dist/{chunk-HPNOT5GQ.js → chunk-TJCHULP5.js} +2 -2
- package/dist/{chunk-PLDCXGLQ.js → chunk-TRP7PC5Z.js} +5 -5
- package/dist/{chunk-3O3W2JS2.js → chunk-U42ZEK7L.js} +2 -2
- package/dist/{chunk-UYY7MVJK.js → chunk-U7CXUGQS.js} +3 -3
- package/dist/{chunk-IOUUQLDE.js → chunk-UKZ7K5GS.js} +2 -2
- package/dist/{chunk-TJV3J74Y.js → chunk-UTOELEK2.js} +3 -3
- package/dist/{chunk-E5G55SYS.js → chunk-UZ3JPYD3.js} +3 -3
- package/dist/{chunk-ZP2FV4WO.js → chunk-VWCGN2ST.js} +3 -3
- package/dist/{chunk-W2Z4KS72.js → chunk-VXBEG3IB.js} +3 -3
- package/dist/{chunk-Z4RFILRE.js → chunk-W32HMBPW.js} +3 -3
- package/dist/{chunk-KZFAEMQQ.js → chunk-X2X7MTKH.js} +3 -3
- package/dist/{chunk-5USRKIR3.js → chunk-X4FCKGK2.js} +4 -4
- package/dist/{chunk-MM4Z32EH.js → chunk-XC7BUB3P.js} +2 -2
- package/dist/{chunk-XS7CL7NX.js → chunk-XHFXA6RP.js} +2 -2
- package/dist/{chunk-JQDZHYGU.js → chunk-XJZCXNWR.js} +3 -3
- package/dist/{chunk-XZXXSZ7E.js → chunk-YJCILMEA.js} +4 -4
- package/dist/{chunk-GSVHOF3J.js → chunk-YXI6Y7YY.js} +2 -2
- package/dist/{chunk-P3343TTF.js → chunk-ZDFIY6WX.js} +95 -116
- package/dist/cli.cjs +125 -125
- package/dist/cloud-reference.d.ts +24 -4
- package/dist/cloud-reference.js +5 -1
- package/dist/completion-registry.js +5 -7
- package/dist/dgmo-router-UVYAJCAF.js +89 -0
- package/dist/{dimensions-PC6WLKCC.js → dimensions-QCPOPPKE.js} +5 -5
- package/dist/editor.d.ts +9 -2
- package/dist/editor.js +229 -57
- package/dist/element.js +110 -110
- package/dist/element.mjs +300 -425
- package/dist/{flowchart-parser-PZQY2UC4.js → flowchart-parser-T4XZRSA7.js} +4 -4
- package/dist/{flowchart-renderer-RS6IRRE7.js → flowchart-renderer-XFDCX7MZ.js} +5 -5
- package/dist/highlight.js +229 -57
- package/dist/index.d.ts +4 -4
- package/dist/index.js +49 -50
- package/dist/{layout-GKWT37FH.js → layout-H4H4OFE4.js} +3 -3
- package/dist/{layout-W423CCED.js → layout-OH4VQ3OI.js} +4 -4
- package/dist/{layout-LH6LNIUV.js → layout-QTZO6CW5.js} +3 -3
- package/dist/{layout-AUAW5U74.js → layout-SKQMIXTG.js} +4 -4
- package/dist/{layout-GU6POUGD.js → layout-UU4VJTOP.js} +4 -4
- package/dist/{layout-MNQZ3Q45.js → layout-WCOEZPOI.js} +4 -4
- package/dist/live-link-resolve.js +1 -1
- package/dist/{parser-NJGZF5MK.js → parser-2BGDJJ2L.js} +5 -5
- package/dist/{parser-3QHLZK6F.js → parser-2K4Z7RNT.js} +3 -3
- package/dist/{parser-6HT34DZ3.js → parser-3KFNCRLD.js} +4 -4
- package/dist/{parser-WXZU47Z4.js → parser-4CMMKTRS.js} +3 -3
- package/dist/{parser-BNGLB2VS.js → parser-56746U6W.js} +4 -4
- package/dist/{parser-56HMQG5C.js → parser-5JS6VM6L.js} +5 -5
- package/dist/{parser-2OJSWKXO.js → parser-5ZUEF4WE.js} +4 -4
- package/dist/{parser-7C5GZCAU.js → parser-63BQDUWB.js} +4 -4
- package/dist/{parser-TPCKCQ4Z.js → parser-6VNVZO5F.js} +4 -4
- package/dist/{parser-6S65S3DX.js → parser-AZZHRVJF.js} +4 -4
- package/dist/{parser-WI2B7IL3.js → parser-BGX5ODHF.js} +3 -3
- package/dist/{parser-TABGTEHH.js → parser-DLUOCPMD.js} +3 -3
- package/dist/{parser-CXLR6MAY.js → parser-DSNINT2K.js} +3 -3
- package/dist/{parser-RMUGOZO3.js → parser-FTC7FZ6Z.js} +4 -4
- package/dist/{parser-5I7W54EA.js → parser-GHLWPCIX.js} +4 -4
- package/dist/{parser-BVC642CN.js → parser-J75RSQFI.js} +4 -4
- package/dist/{parser-IWQQY5VU.js → parser-JZPSIWRC.js} +4 -4
- package/dist/{parser-QCSDU4FU.js → parser-KN7H2RQC.js} +3 -3
- package/dist/{parser-4QYDFXV2.js → parser-KRF4S5RW.js} +4 -4
- package/dist/{parser-4OU5P3BM.js → parser-KSIYWKYF.js} +4 -4
- package/dist/{parser-UB6XGLTC.js → parser-MCUKPCYE.js} +4 -4
- package/dist/{parser-G7KP6LZH.js → parser-MUYBWGUB.js} +3 -3
- package/dist/{parser-QCYEJOLZ.js → parser-NWERESX3.js} +4 -4
- package/dist/{parser-63LK7YBR.js → parser-OEBFJHT4.js} +5 -5
- package/dist/{parser-DROHJTBZ.js → parser-P7T2BGAI.js} +4 -4
- package/dist/{parser-7W7DPIGR.js → parser-RAKD267X.js} +4 -4
- package/dist/{parser-AD5OAVX6.js → parser-RBY2UFTE.js} +3 -3
- package/dist/{parser-5BHZMV3O.js → parser-SRUPRH77.js} +4 -4
- package/dist/{parser-QJ7XK7AB.js → parser-SSUMVOJA.js} +4 -4
- package/dist/{parser-BLCDJB7N.js → parser-UKQC7N6K.js} +4 -4
- package/dist/{parser-AWO3N6YH.js → parser-VMGTNHP2.js} +3 -3
- package/dist/{parser-55CSWK3N.js → parser-WHDC7OV2.js} +4 -4
- package/dist/{parser-453DEZ4P.js → parser-YO2JBE52.js} +4 -4
- package/dist/{registry-C0HvobTb.d.ts → registry-Ch0Umdi1.d.ts} +174 -1
- package/dist/{renderer-G24W6J6H.js → renderer-2DKA5QXA.js} +4 -4
- package/dist/{renderer-66YB63F4.js → renderer-2PGIIOFN.js} +7 -7
- package/dist/{renderer-RH5OJ6Q6.js → renderer-35F3XMZH.js} +5 -5
- package/dist/{renderer-3Z5MSBWR.js → renderer-4RQ5PGHY.js} +6 -6
- package/dist/{renderer-LGSSP3JI.js → renderer-62FFDWMY.js} +6 -6
- package/dist/{renderer-SHMFNFE4.js → renderer-63MLWS6L.js} +7 -7
- package/dist/{renderer-GFZT6Q5F.js → renderer-6QW5OAJG.js} +5 -5
- package/dist/{renderer-H5C2JN62.js → renderer-AMCTCBV3.js} +5 -5
- package/dist/{renderer-PGMTAQIE.js → renderer-AS6LLDZM.js} +5 -5
- package/dist/{renderer-YYG4LYKS.js → renderer-AVR3LBTS.js} +6 -6
- package/dist/{renderer-LPQUBMXZ.js → renderer-BBBN7QNX.js} +4 -4
- package/dist/{renderer-DQLSUTSU.js → renderer-CHHYNEK7.js} +5 -5
- package/dist/{renderer-J76L474X.js → renderer-CU6BEHHV.js} +3 -3
- package/dist/{renderer-NE2GQBAU.js → renderer-CXRSD26Q.js} +7 -7
- package/dist/{renderer-JO27QMZB.js → renderer-DJ5DP3RH.js} +5 -5
- package/dist/{renderer-ZMAPGMF2.js → renderer-DRLZELXM.js} +5 -5
- package/dist/{renderer-BTFZWWIG.js → renderer-GESKWINV.js} +7 -7
- package/dist/{renderer-RB4FJJYN.js → renderer-IG5PQXEM.js} +7 -7
- package/dist/renderer-IYMA5W7X.js +76 -0
- package/dist/{renderer-PTLCAUC6.js → renderer-JBF2PAVP.js} +5 -5
- package/dist/{renderer-RRIXAQSF.js → renderer-JL7L5Y5M.js} +5 -5
- package/dist/{renderer-A3QD5R2C.js → renderer-JSFWNV37.js} +6 -6
- package/dist/{renderer-U55GLRDJ.js → renderer-M7YOXAGC.js} +3 -3
- package/dist/{renderer-5INUWSXC.js → renderer-R6OKKSVR.js} +7 -7
- package/dist/{renderer-2HFRMVHO.js → renderer-RN5ZFIEK.js} +6 -6
- package/dist/{renderer-CQWF3JE3.js → renderer-TDFRMG3O.js} +3 -3
- package/dist/{renderer-MFD57VGM.js → renderer-UTXVIAS7.js} +5 -5
- package/dist/{renderer-S7ZTD4XM.js → renderer-VYMTBSF4.js} +7 -7
- package/dist/{renderer-NVT3RP5Q.js → renderer-XSHOMUJQ.js} +7 -7
- package/dist/{renderer-T4DY572A.js → renderer-ZHBFOSK5.js} +5 -5
- package/dist/{renderer-radial-2DDUIUWA.js → renderer-radial-4J2KO4GZ.js} +6 -6
- package/dist/{state-parser-PNC2IHIA.js → state-parser-3U4232LJ.js} +5 -5
- package/dist/{state-renderer-QGPK55TI.js → state-renderer-GBHDOEXR.js} +7 -7
- package/dist/{themes-l406Vj2z.d.ts → themes-DC6u80yr.d.ts} +1 -1
- package/docs/language-reference.md +1 -1
- package/package.json +1 -1
- package/dist/chunk-ZEIYC7XO.js +0 -229
- package/dist/dgmo-router-JD7THHB7.js +0 -90
- package/dist/renderer-MDCH52MC.js +0 -77
|
@@ -48,11 +48,31 @@ interface CloudReference {
|
|
|
48
48
|
id: string;
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
|
-
* Parse any of the three spellings
|
|
52
|
-
*
|
|
53
|
-
*
|
|
51
|
+
* Parse any of the three spellings, wherever it appears.
|
|
52
|
+
*
|
|
53
|
+
* 🔴 **A `dgmo` fence must NOT use this — use `parseCloudReferenceFence`.** The
|
|
54
|
+
* embed spelling is host markdown, and inside a fence the content is DGMO, so
|
|
55
|
+
* accepting `![[live-link:<id>]]` there is a category error: markdown nested in
|
|
56
|
+
* a code fence that is itself in markdown. It was accepted until 2026-08-05 and
|
|
57
|
+
* the showcase content taught it. Removed rather than deprecated — pre-1.0.
|
|
58
|
+
*
|
|
59
|
+
* This union survives for a host scanning raw note text, where any of the three
|
|
60
|
+
* may legitimately turn up. Returns null for anything that is not a reference,
|
|
61
|
+
* so it must not throw and must not guess.
|
|
54
62
|
*/
|
|
55
63
|
declare function parseCloudReference(text: string): CloudReference | null;
|
|
64
|
+
/**
|
|
65
|
+
* What may appear as the whole body of a `dgmo` fence: the keyword form, or a
|
|
66
|
+
* plain link somebody pasted. **Not** the embed spelling — see above.
|
|
67
|
+
*/
|
|
68
|
+
declare function parseCloudReferenceFence(text: string): CloudReference | null;
|
|
69
|
+
/**
|
|
70
|
+
* The note spelling — `![[live-link:<id>]]` — which extends the
|
|
71
|
+
* `![[foo.dgmo]]` transclusion Obsidian and the desktop app already understand.
|
|
72
|
+
* Takes the text as TYPED, brackets included, because that is the thing being
|
|
73
|
+
* recognised; a host holding only the inside of the brackets puts them back.
|
|
74
|
+
*/
|
|
75
|
+
declare function parseCloudReferenceEmbed(text: string): CloudReference | null;
|
|
56
76
|
/** The URL spelling, split out because hosts that only take URLs need just this. */
|
|
57
77
|
declare function parseCloudReferenceUrl(text: string): CloudReference | null;
|
|
58
78
|
interface ResolveUrlOptions {
|
|
@@ -73,4 +93,4 @@ interface CloudReferenceSource {
|
|
|
73
93
|
updatedAt: number;
|
|
74
94
|
}
|
|
75
95
|
|
|
76
|
-
export { CLOUD_API_BASE, CLOUD_APP_BASE, type CloudReference, type CloudReferenceSource, type ResolveUrlOptions, parseCloudReference, parseCloudReferenceUrl, referenceShareUrl, referenceSourceUrl };
|
|
96
|
+
export { CLOUD_API_BASE, CLOUD_APP_BASE, type CloudReference, type CloudReferenceSource, type ResolveUrlOptions, parseCloudReference, parseCloudReferenceEmbed, parseCloudReferenceFence, parseCloudReferenceUrl, referenceShareUrl, referenceSourceUrl };
|
package/dist/cloud-reference.js
CHANGED
|
@@ -2,15 +2,19 @@ import {
|
|
|
2
2
|
CLOUD_API_BASE,
|
|
3
3
|
CLOUD_APP_BASE,
|
|
4
4
|
parseCloudReference,
|
|
5
|
+
parseCloudReferenceEmbed,
|
|
6
|
+
parseCloudReferenceFence,
|
|
5
7
|
parseCloudReferenceUrl,
|
|
6
8
|
referenceShareUrl,
|
|
7
9
|
referenceSourceUrl
|
|
8
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-23RWHHI5.js";
|
|
9
11
|
import "./chunk-5WRI5ZAA.js";
|
|
10
12
|
export {
|
|
11
13
|
CLOUD_API_BASE,
|
|
12
14
|
CLOUD_APP_BASE,
|
|
13
15
|
parseCloudReference,
|
|
16
|
+
parseCloudReferenceEmbed,
|
|
17
|
+
parseCloudReferenceFence,
|
|
14
18
|
parseCloudReferenceUrl,
|
|
15
19
|
referenceShareUrl,
|
|
16
20
|
referenceSourceUrl
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
chartTypes
|
|
3
|
-
} from "./chunk-ZEIYC7XO.js";
|
|
4
1
|
import {
|
|
5
2
|
ALL_MARKERS
|
|
6
3
|
} from "./chunk-I55PVEIX.js";
|
|
7
4
|
import {
|
|
8
5
|
GROUP_ONLY_METADATA,
|
|
9
6
|
STATE_KEYWORDS
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-B25BEH3F.js";
|
|
8
|
+
import "./chunk-MDI5FMWO.js";
|
|
12
9
|
import {
|
|
13
|
-
ALL_CHART_TYPES
|
|
14
|
-
|
|
10
|
+
ALL_CHART_TYPES,
|
|
11
|
+
chartTypes
|
|
12
|
+
} from "./chunk-P2PUWV3Y.js";
|
|
15
13
|
import "./chunk-EXNKNJ65.js";
|
|
16
14
|
import "./chunk-OLMWTJVU.js";
|
|
17
15
|
import "./chunk-5WRI5ZAA.js";
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CHART_TYPE_DESCRIPTIONS,
|
|
3
|
+
chartTypeParsers,
|
|
4
|
+
getAllChartTypes,
|
|
5
|
+
getRenderCategory,
|
|
6
|
+
isExtendedChartType,
|
|
7
|
+
knownChartTypeIds,
|
|
8
|
+
looksLikeC4,
|
|
9
|
+
looksLikeGantt,
|
|
10
|
+
parseDgmo,
|
|
11
|
+
parseDgmoChartType
|
|
12
|
+
} from "./chunk-ZDFIY6WX.js";
|
|
13
|
+
import "./chunk-2CMM36O7.js";
|
|
14
|
+
import "./chunk-A2RUBBVT.js";
|
|
15
|
+
import "./chunk-JWJBWNQL.js";
|
|
16
|
+
import "./chunk-RF5YDIYT.js";
|
|
17
|
+
import "./chunk-U7CXUGQS.js";
|
|
18
|
+
import "./chunk-XC7BUB3P.js";
|
|
19
|
+
import "./chunk-2CW5ZTNH.js";
|
|
20
|
+
import "./chunk-BDXC7MDK.js";
|
|
21
|
+
import "./chunk-LQR46XGR.js";
|
|
22
|
+
import "./chunk-NSJK7F2V.js";
|
|
23
|
+
import "./chunk-YXI6Y7YY.js";
|
|
24
|
+
import "./chunk-LALFMQ7Q.js";
|
|
25
|
+
import "./chunk-DPFCFU2K.js";
|
|
26
|
+
import "./chunk-CSUF6PNF.js";
|
|
27
|
+
import "./chunk-XSVWUOUZ.js";
|
|
28
|
+
import "./chunk-3A2HZBFD.js";
|
|
29
|
+
import "./chunk-XHFXA6RP.js";
|
|
30
|
+
import "./chunk-OQKP2X3D.js";
|
|
31
|
+
import "./chunk-UTOELEK2.js";
|
|
32
|
+
import "./chunk-QQADQBKG.js";
|
|
33
|
+
import "./chunk-AFCVHK3G.js";
|
|
34
|
+
import "./chunk-RT7ACF77.js";
|
|
35
|
+
import "./chunk-X2X7MTKH.js";
|
|
36
|
+
import "./chunk-A5FNLWKP.js";
|
|
37
|
+
import "./chunk-QQJUTGQH.js";
|
|
38
|
+
import "./chunk-OLPWKS5L.js";
|
|
39
|
+
import "./chunk-NMIWEUIG.js";
|
|
40
|
+
import "./chunk-VXBEG3IB.js";
|
|
41
|
+
import "./chunk-3TYUXC7D.js";
|
|
42
|
+
import "./chunk-6BVIZW5N.js";
|
|
43
|
+
import "./chunk-QMYJO4EL.js";
|
|
44
|
+
import "./chunk-4GQ6I46C.js";
|
|
45
|
+
import "./chunk-INLEOJIX.js";
|
|
46
|
+
import "./chunk-E2GEV3BI.js";
|
|
47
|
+
import "./chunk-IL5UVUMK.js";
|
|
48
|
+
import "./chunk-I7IQ2NEJ.js";
|
|
49
|
+
import "./chunk-O42EAZUV.js";
|
|
50
|
+
import "./chunk-EQW6HOP4.js";
|
|
51
|
+
import "./chunk-DAOFNU6J.js";
|
|
52
|
+
import "./chunk-65QX6LYT.js";
|
|
53
|
+
import "./chunk-C3Z4DX3V.js";
|
|
54
|
+
import "./chunk-CHOKOYSC.js";
|
|
55
|
+
import "./chunk-7TF3QOOD.js";
|
|
56
|
+
import "./chunk-SR7NGZNM.js";
|
|
57
|
+
import "./chunk-NXMESY4J.js";
|
|
58
|
+
import "./chunk-EK4QX7NQ.js";
|
|
59
|
+
import "./chunk-NKRVFQGO.js";
|
|
60
|
+
import "./chunk-QE4GTFZS.js";
|
|
61
|
+
import "./chunk-7NK42OIB.js";
|
|
62
|
+
import "./chunk-RRX4Z4TH.js";
|
|
63
|
+
import "./chunk-CUYDE77F.js";
|
|
64
|
+
import "./chunk-DJC5M7VC.js";
|
|
65
|
+
import "./chunk-IYULMRBE.js";
|
|
66
|
+
import "./chunk-NOTA6TEI.js";
|
|
67
|
+
import "./chunk-I55PVEIX.js";
|
|
68
|
+
import "./chunk-B25BEH3F.js";
|
|
69
|
+
import "./chunk-MDI5FMWO.js";
|
|
70
|
+
import "./chunk-P2PUWV3Y.js";
|
|
71
|
+
import "./chunk-23RWHHI5.js";
|
|
72
|
+
import "./chunk-R3XI2VC7.js";
|
|
73
|
+
import "./chunk-42IT4BG2.js";
|
|
74
|
+
import "./chunk-EXNKNJ65.js";
|
|
75
|
+
import "./chunk-OLMWTJVU.js";
|
|
76
|
+
import "./chunk-5WRI5ZAA.js";
|
|
77
|
+
export {
|
|
78
|
+
CHART_TYPE_DESCRIPTIONS,
|
|
79
|
+
chartTypeParsers,
|
|
80
|
+
getAllChartTypes,
|
|
81
|
+
getRenderCategory,
|
|
82
|
+
isExtendedChartType,
|
|
83
|
+
knownChartTypeIds,
|
|
84
|
+
looksLikeC4,
|
|
85
|
+
looksLikeGantt,
|
|
86
|
+
parseDgmo,
|
|
87
|
+
parseDgmoChartType
|
|
88
|
+
};
|
|
89
|
+
//# sourceMappingURL=dgmo-router-UVYAJCAF.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mapContentAspect,
|
|
3
3
|
mapExportDimensions
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-S23HOUJS.js";
|
|
5
|
+
import "./chunk-OPBZYISB.js";
|
|
6
6
|
import "./chunk-4QV26TEG.js";
|
|
7
7
|
import "./chunk-VHO3YBTB.js";
|
|
8
8
|
import "./chunk-A4GOY3PE.js";
|
|
9
9
|
import "./chunk-ES66QH6J.js";
|
|
10
10
|
import "./chunk-SCJ7CAJF.js";
|
|
11
11
|
import "./chunk-4ASYQ347.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-MDI5FMWO.js";
|
|
13
|
+
import "./chunk-P2PUWV3Y.js";
|
|
14
14
|
import "./chunk-42IT4BG2.js";
|
|
15
15
|
import "./chunk-EXNKNJ65.js";
|
|
16
16
|
import "./chunk-OLMWTJVU.js";
|
|
@@ -19,4 +19,4 @@ export {
|
|
|
19
19
|
mapContentAspect,
|
|
20
20
|
mapExportDimensions
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=dimensions-
|
|
22
|
+
//# sourceMappingURL=dimensions-QCPOPPKE.js.map
|
package/dist/editor.d.ts
CHANGED
|
@@ -2,8 +2,15 @@ import * as _lezer_lr from '@lezer/lr';
|
|
|
2
2
|
import { LanguageSupport, LRLanguage } from '@codemirror/language';
|
|
3
3
|
import { NodePropSource } from '@lezer/common';
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
|
|
5
|
+
/**
|
|
6
|
+
* All supported DGMO chart types.
|
|
7
|
+
*
|
|
8
|
+
* Derived from `chart-types.ts` — the same de-duplication already done for
|
|
9
|
+
* DIRECTIVE/CONTROL/STATUS/MODIFIER below, which this list was left out of.
|
|
10
|
+
* Internal types stay in: `live-link` must still highlight when one is open,
|
|
11
|
+
* even though no picker offers it.
|
|
12
|
+
*/
|
|
13
|
+
declare const CHART_TYPES: ReadonlySet<string>;
|
|
7
14
|
/** Metadata keys recognized across chart types. */
|
|
8
15
|
declare const METADATA_KEYS: Set<string>;
|
|
9
16
|
|
package/dist/editor.js
CHANGED
|
@@ -423,64 +423,236 @@ var REGISTRY_NON_HIGHLIGHT_TOKENS = tokensWhere(
|
|
|
423
423
|
(e) => !!e.noHighlight
|
|
424
424
|
);
|
|
425
425
|
|
|
426
|
+
// src/chart-types.ts
|
|
427
|
+
var chartTypesData = [
|
|
428
|
+
// ── Tier 1 — Narrative / architecture diagrams ────────────
|
|
429
|
+
{
|
|
430
|
+
id: "journey-map",
|
|
431
|
+
description: "User experience flow with emotion scores, phases, and annotations"
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
id: "c4",
|
|
435
|
+
description: "System architecture (context, container, component, deployment)"
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
id: "er",
|
|
439
|
+
description: "Database schemas and relationships"
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
id: "class",
|
|
443
|
+
description: "UML class hierarchies"
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
id: "sequence",
|
|
447
|
+
description: "Message request and response interaction flows",
|
|
448
|
+
fallback: true
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
id: "state",
|
|
452
|
+
description: "State machine / lifecycle transitions"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
id: "infra",
|
|
456
|
+
description: "Infrastructure traffic flow with RPS computation"
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
id: "gantt",
|
|
460
|
+
description: "Project scheduling with task dependencies and milestones"
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
id: "pert",
|
|
464
|
+
description: "Project network with three-point estimates, critical path, and uncertainty (Beta-PERT, Monte Carlo)"
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
id: "swimlane",
|
|
468
|
+
description: "Cross-functional process flow with lanes, phases and gateways (BPMN-style)"
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
id: "version-control",
|
|
472
|
+
description: "Git / version-control branch-and-merge graph: commits, branches, merges, rebase, HEAD and remote-tracking (gitGraph-style)"
|
|
473
|
+
},
|
|
474
|
+
// ── Tier 2 — Specialized structural diagrams ──────────────
|
|
475
|
+
{
|
|
476
|
+
id: "timeline",
|
|
477
|
+
description: "Events, eras, and date ranges"
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
id: "event-line",
|
|
481
|
+
description: "Annotated narrative timeline \u2014 events on a horizontal line with descriptions (not the date-scaled timeline)"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
id: "body",
|
|
485
|
+
description: "Human anatomy figure annotated by muscle/bone/joint name \u2014 for medical, exercise, and educational diagrams"
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
id: "org",
|
|
489
|
+
description: "Reporting hierarchy"
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
id: "family",
|
|
493
|
+
description: "Family tree / genealogy: unions (couples), children, remarriage, adoption, and GEDCOM-style metadata"
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
id: "sitemap",
|
|
497
|
+
description: "Site / app navigation structure"
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
id: "bracket",
|
|
501
|
+
description: "Single-elimination tournament bracket: winners auto-advance up a tree; seed the field for a day-0 skeleton or list results for a casual bracket, with two sides mirroring inward to a championship"
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
id: "kanban",
|
|
505
|
+
description: "Task board columns"
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
id: "raci",
|
|
509
|
+
description: "Tasks \xD7 roles responsibility matrix with constraint linting"
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
id: "tech-radar",
|
|
513
|
+
description: "Technology adoption quadrants (adopt/trial/assess/hold)"
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
id: "mindmap",
|
|
517
|
+
description: "Radial hierarchy of ideas branching from a central topic"
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
id: "wireframe",
|
|
521
|
+
description: "Low-fidelity UI layout with panels, controls, and annotations"
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
id: "cycle",
|
|
525
|
+
description: "Cyclical process visualization (PDCA, OODA, DevOps loops)"
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
id: "pyramid",
|
|
529
|
+
description: "Stacked hierarchy of layers with descriptions (Maslow, DIKW)"
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
id: "ring",
|
|
533
|
+
description: "Concentric rings showing nested or hierarchical categories (read core-out)"
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
id: "treemap",
|
|
537
|
+
description: "Nested rectangles sized by value \u2014 show a hierarchy\u2019s proportions (budgets, disk usage, portfolios) with color by category, value heatmap, or branch"
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
id: "block",
|
|
541
|
+
description: "Block diagram: an author-controlled grid of rectangular blocks with nested, collapsible containers \u2014 system/hardware/architecture layouts where the 2-D arrangement is the meaning"
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
id: "sketch",
|
|
545
|
+
description: "GUI-first constrained canvas: uniformly-sized shapes placed freely on a snap grid, arrows between them, meaning through tags \u2014 the markup is generated by the canvas editor"
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
id: "goal",
|
|
549
|
+
description: "Single progress-toward-a-target value (now vs target) as a progress bar, thermometer, or gauge \u2014 KPIs, fundraising, quotas, completion"
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
id: "countdown",
|
|
553
|
+
description: 'Live "N days until X" that ticks every second and is accurate on every load \u2014 trip dates, launches, deadlines; the only dynamic chart type'
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
id: "clock",
|
|
557
|
+
description: "Live world-clock board: current time for people/places across time zones, ticking every second, with optional working-hours status and sundown line"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
id: "map",
|
|
561
|
+
description: "Geographic concept map: highlight/score regions, drop points of interest, connect with routes or edges"
|
|
562
|
+
},
|
|
563
|
+
// ── Tier 3 — Specialized analytical charts ────────────────
|
|
564
|
+
{
|
|
565
|
+
id: "quadrant",
|
|
566
|
+
description: "2x2 positioning matrix"
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
id: "venn",
|
|
570
|
+
description: "Set overlaps"
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
id: "funnel",
|
|
574
|
+
description: "Conversion pipeline"
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
id: "slope",
|
|
578
|
+
description: "Change between 2 time periods"
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
id: "sankey",
|
|
582
|
+
description: "Flow / allocation visualization"
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
id: "arc",
|
|
586
|
+
description: "Network relationships (linear or circular via `layout`)"
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
id: "wordcloud",
|
|
590
|
+
description: "Term frequency visualization"
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
id: "heatmap",
|
|
594
|
+
description: "Matrix intensity visualization"
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
id: "function",
|
|
598
|
+
description: "Mathematical expressions"
|
|
599
|
+
},
|
|
600
|
+
// ── Tier 4 — General-purpose data charts ──────────────────
|
|
601
|
+
{
|
|
602
|
+
id: "bar",
|
|
603
|
+
description: "Categorical comparisons for 3 - 5 figures",
|
|
604
|
+
fallback: true
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
id: "line",
|
|
608
|
+
description: "Trends over time",
|
|
609
|
+
fallback: true
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
id: "pie",
|
|
613
|
+
description: "Part-to-whole proportions"
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
id: "radar",
|
|
617
|
+
description: "Multi-dimensional metrics"
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
id: "polar-area",
|
|
621
|
+
description: "Radial bar chart"
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
id: "scatter",
|
|
625
|
+
description: "2D data points or bubble chart"
|
|
626
|
+
},
|
|
627
|
+
// ── Tier 5 — Generic catch-alls (listed last on purpose) ──
|
|
628
|
+
{
|
|
629
|
+
id: "flowchart",
|
|
630
|
+
description: "Decision trees and process flows",
|
|
631
|
+
fallback: true
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
id: "boxes-and-lines",
|
|
635
|
+
description: "General-purpose node-edge diagrams with groups and tags",
|
|
636
|
+
fallback: true
|
|
637
|
+
},
|
|
638
|
+
// ── Not a tier — a pointer, not a drawing ─────────────────
|
|
639
|
+
// `live-link` holds no diagram of its own; it names one published to
|
|
640
|
+
// Diagrammo Cloud. Internal (see `internal` above): it arrives by being saved
|
|
641
|
+
// from a shared link, never by being picked from a list. Kept LAST because
|
|
642
|
+
// `chartTypes.slice(0, 8)` is a live window feeding language-reference checks
|
|
643
|
+
// and the generated AI core — any insertion above position 8 shifts it.
|
|
644
|
+
{
|
|
645
|
+
id: "live-link",
|
|
646
|
+
description: "A pointer to a diagram published at Diagrammo Cloud",
|
|
647
|
+
internal: true
|
|
648
|
+
}
|
|
649
|
+
];
|
|
650
|
+
var CHART_TYPE_IDS = chartTypesData.map(
|
|
651
|
+
(c) => c.id
|
|
652
|
+
);
|
|
653
|
+
|
|
426
654
|
// src/editor/keywords.ts
|
|
427
|
-
var CHART_TYPES =
|
|
428
|
-
// Diagram types
|
|
429
|
-
"sequence",
|
|
430
|
-
"flowchart",
|
|
431
|
-
"class",
|
|
432
|
-
"er",
|
|
433
|
-
"org",
|
|
434
|
-
"family",
|
|
435
|
-
"kanban",
|
|
436
|
-
"c4",
|
|
437
|
-
"state",
|
|
438
|
-
"sitemap",
|
|
439
|
-
"bracket",
|
|
440
|
-
"infra",
|
|
441
|
-
"gantt",
|
|
442
|
-
"pert",
|
|
443
|
-
"boxes-and-lines",
|
|
444
|
-
"swimlane",
|
|
445
|
-
"version-control",
|
|
446
|
-
"wireframe",
|
|
447
|
-
"tech-radar",
|
|
448
|
-
"mindmap",
|
|
449
|
-
"journey-map",
|
|
450
|
-
"pyramid",
|
|
451
|
-
"ring",
|
|
452
|
-
"treemap",
|
|
453
|
-
"block",
|
|
454
|
-
"goal",
|
|
455
|
-
"countdown",
|
|
456
|
-
"clock",
|
|
457
|
-
"sketch",
|
|
458
|
-
"raci",
|
|
459
|
-
"cycle",
|
|
460
|
-
// Data chart types
|
|
461
|
-
"bar",
|
|
462
|
-
"line",
|
|
463
|
-
"pie",
|
|
464
|
-
"polar-area",
|
|
465
|
-
"radar",
|
|
466
|
-
"scatter",
|
|
467
|
-
"sankey",
|
|
468
|
-
"function",
|
|
469
|
-
"heatmap",
|
|
470
|
-
"funnel",
|
|
471
|
-
// Visualization types
|
|
472
|
-
"slope",
|
|
473
|
-
"wordcloud",
|
|
474
|
-
"arc",
|
|
475
|
-
"timeline",
|
|
476
|
-
"event-line",
|
|
477
|
-
"venn",
|
|
478
|
-
"quadrant",
|
|
479
|
-
"map",
|
|
480
|
-
"body",
|
|
481
|
-
// Pointer type — internal, but it must still highlight when one is open
|
|
482
|
-
"live-link"
|
|
483
|
-
]);
|
|
655
|
+
var CHART_TYPES = new Set(CHART_TYPE_IDS);
|
|
484
656
|
var METADATA_KEYS = /* @__PURE__ */ new Set([
|
|
485
657
|
"title",
|
|
486
658
|
"series",
|