@diagrammo/dgmo 0.49.0 → 0.50.1
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/.cursorrules +6 -2
- package/.github/copilot-instructions.md +6 -2
- package/.windsurfrules +6 -2
- package/SKILL.md +6 -2
- package/dist/advanced.js +557 -195
- package/dist/auto.js +129 -119
- package/dist/auto.mjs +19496 -12761
- package/dist/block.js +145 -48
- package/dist/{charts-d3-EW3YQTEA.js → charts-d3-LR6D3D7A.js} +5 -5
- package/dist/{chunk-5FGDJIJX.js → chunk-2C56LEML.js} +3 -3
- package/dist/{chunk-XJ7J6WOO.js → chunk-2KGXHFYK.js} +4 -4
- package/dist/{chunk-T7IKPCMI.js → chunk-3LH5CLP4.js} +3 -3
- package/dist/{chunk-ZDUQGL3N.js → chunk-3LKM6FMW.js} +2 -2
- package/dist/{chunk-4FIV4K4Z.js → chunk-3NODSS6A.js} +7 -7
- package/dist/{chunk-4BD7EVPK.js → chunk-3P2DKJCG.js} +2 -2
- package/dist/{chunk-TC3YWBFO.js → chunk-3UIKSPFB.js} +35 -9
- package/dist/{chunk-SJEGO2QL.js → chunk-3XGZF2QJ.js} +4 -4
- package/dist/chunk-3XPUDB7B.js +420 -0
- package/dist/{chunk-O5MQPK7E.js → chunk-3Y2DRD7S.js} +3 -3
- package/dist/chunk-3YPY3OXD.js +354 -0
- package/dist/{chunk-N4J5KGWG.js → chunk-4MJ7M6YL.js} +8 -8
- package/dist/{chunk-JFPY3UJ7.js → chunk-4S52SK6G.js} +8 -8
- package/dist/{chunk-ALRHIR6I.js → chunk-5GJYGP5Z.js} +4 -4
- package/dist/{chunk-SQDFK5ZQ.js → chunk-5OWVC2A6.js} +3 -3
- package/dist/{chunk-7VLUGEMJ.js → chunk-66NVRO4K.js} +4 -4
- package/dist/{chunk-ZREZOIGS.js → chunk-66RUL3XF.js} +6 -6
- package/dist/{chunk-MJCG5K2O.js → chunk-6BFZKBGD.js} +2 -2
- package/dist/{chunk-2WMBWZY2.js → chunk-6HJBFVLO.js} +3 -3
- package/dist/{chunk-XCC2RENT.js → chunk-6IAA2QQ2.js} +2 -2
- package/dist/{chunk-B57V3DWN.js → chunk-7L3R6I3U.js} +3 -3
- package/dist/chunk-7PQYTZMA.js +681 -0
- package/dist/{chunk-6SA7FJE4.js → chunk-7QKLIMRZ.js} +10 -10
- package/dist/{chunk-YTN572Q2.js → chunk-7TV5Y53Y.js} +2 -2
- package/dist/{chunk-6CLKNXVP.js → chunk-BBGDM4NQ.js} +457 -78
- package/dist/{chunk-3NFJWFNP.js → chunk-BDXC7MDK.js} +1045 -124
- package/dist/{chunk-D5AVQCDN.js → chunk-BH3UYK36.js} +3 -3
- package/dist/chunk-BTUTZMPT.js +482 -0
- package/dist/{chunk-LVHPTBO3.js → chunk-C2CVAM3U.js} +4 -4
- package/dist/{chunk-BCT5G2VN.js → chunk-DFTFPYUD.js} +5 -5
- package/dist/{chunk-KV6Y2HE6.js → chunk-DSWVNQVS.js} +4 -4
- package/dist/{chunk-4YNP6O47.js → chunk-DZXYF2F5.js} +13 -3
- package/dist/{chunk-FUCAB3KQ.js → chunk-EAMEADTV.js} +3 -3
- package/dist/chunk-FA6K3FWM.js +940 -0
- package/dist/{chunk-HBVD67XG.js → chunk-FJUNPCYI.js} +2 -2
- package/dist/{chunk-6VE3VLWM.js → chunk-GBE54KY6.js} +6 -5
- package/dist/{chunk-YRVLP7UU.js → chunk-GKC3HILQ.js} +4 -4
- package/dist/{chunk-ZXL6MB4R.js → chunk-GL5UZ6NY.js} +3 -3
- package/dist/{chunk-GB3YZTAM.js → chunk-H73FP42Q.js} +5 -5
- package/dist/{chunk-4UDKKGHH.js → chunk-HEVYAHLW.js} +2 -2
- package/dist/{chunk-DDTJ5N7Q.js → chunk-HLJVEAOF.js} +6 -6
- package/dist/{chunk-CLR4A2N2.js → chunk-HTMN2Z6U.js} +4 -4
- package/dist/{chunk-TLKMTQYL.js → chunk-I2WKW7C7.js} +3 -3
- package/dist/{chunk-IUK7AGD4.js → chunk-I7F2A35O.js} +2 -2
- package/dist/{chunk-IBC35BTK.js → chunk-IUMPEA64.js} +2 -2
- package/dist/{chunk-5XCM7UUW.js → chunk-J6K7RP6P.js} +100 -36
- package/dist/{chunk-AJ2PEY7J.js → chunk-JJUOHGX2.js} +2 -2
- package/dist/{chunk-CEHZOPGM.js → chunk-KFZYNWWO.js} +2 -2
- package/dist/{chunk-4NQ3IKUM.js → chunk-KHEYDLMT.js} +5 -5
- package/dist/{chunk-YM2BSPYW.js → chunk-LE4MYMLI.js} +2 -2
- package/dist/{chunk-PU3AUQPA.js → chunk-M5RXSRO2.js} +2 -2
- package/dist/{chunk-XKTN7CZF.js → chunk-MCZ5LBZD.js} +4 -4
- package/dist/{chunk-35BBZDFE.js → chunk-NU3XLTGP.js} +4 -4
- package/dist/{chunk-BPIJLRYE.js → chunk-NWED7CYO.js} +3 -3
- package/dist/{chunk-YYX3SU6H.js → chunk-OMNGQPEZ.js} +257 -101
- package/dist/{chunk-BGJV5ATD.js → chunk-ONA5KPV3.js} +2 -2
- package/dist/{chunk-ZNQX6QWH.js → chunk-OTAL43EH.js} +6 -2
- package/dist/{chunk-F743CM2N.js → chunk-OTQKUHRS.js} +3 -3
- package/dist/{chunk-KUBBJ2CD.js → chunk-P7CE7LXL.js} +6 -6
- package/dist/{chunk-UVCXZEGU.js → chunk-PFHVU7UA.js} +2 -2
- package/dist/{chunk-5ZZLLBFK.js → chunk-PGEGPSCZ.js} +2 -2
- package/dist/chunk-Q4V4XQWV.js +158 -0
- package/dist/{chunk-IHLSHCPZ.js → chunk-QJP6PG7F.js} +5 -5
- package/dist/{chunk-EYN7VFKL.js → chunk-QROYX7TT.js} +3 -3
- package/dist/chunk-QXKWYZNR.js +379 -0
- package/dist/{chunk-VC3TR4NL.js → chunk-RZ6YKEUJ.js} +3 -3
- package/dist/{chunk-K6HNAY5V.js → chunk-SCHXJTZL.js} +2 -2
- package/dist/{chunk-7OVSJI2V.js → chunk-SQLNBA64.js} +3 -3
- package/dist/{chunk-65RTDUZH.js → chunk-SXRTRMEE.js} +3 -3
- package/dist/{chunk-3BIAFYD2.js → chunk-T4VOVZT5.js} +2 -2
- package/dist/{chunk-UWDO3O52.js → chunk-TN35C5KM.js} +2 -2
- package/dist/{chunk-IFK3GIUW.js → chunk-TSA237IM.js} +2 -2
- package/dist/{chunk-DKEPS5LH.js → chunk-U2HGPLZS.js} +36 -2
- package/dist/{chunk-4HVNZ7WF.js → chunk-VBYSIOOY.js} +3 -3
- package/dist/{chunk-ZTLWVRNS.js → chunk-VDOOQZUD.js} +2 -2
- package/dist/{chunk-RTERS6S5.js → chunk-VUJGMJE6.js} +4 -4
- package/dist/{chunk-X2CH42BN.js → chunk-VVW3F3MD.js} +7 -7
- package/dist/{chunk-RI4NIMFP.js → chunk-VVZRV54S.js} +75 -35
- package/dist/{chunk-LG4TWW4U.js → chunk-WW32K72E.js} +8 -8
- package/dist/{chunk-NVT6C2VE.js → chunk-X6EZPSW6.js} +4 -4
- package/dist/{chunk-KQAEKMIX.js → chunk-XDXNDSKO.js} +2 -2
- package/dist/{chunk-FMKTYMP4.js → chunk-XJLKLU4D.js} +3 -3
- package/dist/chunk-Y4RNXEAO.js +952 -0
- package/dist/{chunk-26RVGM44.js → chunk-YIA4LEX4.js} +15 -7
- package/dist/chunk-YNRDWYZP.js +295 -0
- package/dist/{chunk-SGHSY3LU.js → chunk-Z6XJQ6KO.js} +81 -6
- package/dist/{chunk-SVDWQGX2.js → chunk-ZAD4HV2G.js} +139 -78
- package/dist/cli.cjs +153 -144
- package/dist/clock.d.ts +10 -0
- package/dist/clock.js +235 -0
- package/dist/countdown.d.ts +12 -0
- package/dist/countdown.js +450 -0
- package/dist/dgmo-router-YTU3ENAX.js +84 -0
- package/dist/{dimensions-WSIJXT5Q.js → dimensions-OTBKC5M6.js} +5 -5
- package/dist/editor.js +39 -1
- package/dist/element.js +131 -121
- package/dist/element.mjs +19496 -12761
- package/dist/{flowchart-parser-IVZN7CQN.js → flowchart-parser-OE4WHLTF.js} +4 -4
- package/dist/{flowchart-renderer-GMI2U3DD.js → flowchart-renderer-GPCSMTOR.js} +6 -6
- package/dist/highlight.d.ts +17 -1
- package/dist/highlight.js +156 -5
- package/dist/index.js +50 -45
- package/dist/{layout-HQMBPJVS.js → layout-46366KBT.js} +2 -2
- package/dist/{layout-D42XE4RE.js → layout-5BG6DFCU.js} +3 -3
- package/dist/{layout-K2ZN3Q42.js → layout-7MZ5NF2N.js} +4 -4
- package/dist/{layout-4Z5JM7PT.js → layout-FWODLIMP.js} +4 -4
- package/dist/{layout-GZ2CWONU.js → layout-J36454XU.js} +4 -4
- package/dist/{layout-S3EK4IYO.js → layout-LD6XTLD6.js} +4 -4
- package/dist/{parser-CLMFZWCC.js → parser-36HVKU5U.js} +5 -5
- package/dist/{parser-MCJWF5G3.js → parser-4AI5ZN5F.js} +3 -3
- package/dist/{parser-DERPY5KC.js → parser-4NO6VZ6S.js} +4 -4
- package/dist/parser-4WQQQXCG.js +13 -0
- package/dist/{parser-4ROBKVUR.js → parser-5OXGPNBF.js} +5 -5
- package/dist/{parser-XWUDFJ7P.js → parser-AGVYTQXV.js} +4 -4
- package/dist/{parser-TITK4YW6.js → parser-AXKBDGNO.js} +5 -5
- package/dist/parser-B5FVS7O6.js +11 -0
- package/dist/parser-CSFUN3CT.js +14 -0
- package/dist/parser-CVMEDULU.js +15 -0
- package/dist/{parser-KPMN5KKE.js → parser-D5VILGN2.js} +4 -4
- package/dist/{parser-IKZFTLOJ.js → parser-DFFEDKHH.js} +3 -3
- package/dist/{parser-JD7OQ2E6.js → parser-H3XEPFPV.js} +4 -4
- package/dist/{parser-UBGPTIZD.js → parser-HYRTF3DO.js} +3 -3
- package/dist/{parser-K647FRI4.js → parser-IBWNAPY4.js} +3 -3
- package/dist/{parser-4BKIFG2C.js → parser-IJBMRXMC.js} +5 -5
- package/dist/{parser-MBJSBTL5.js → parser-JJR52VAT.js} +5 -5
- package/dist/{parser-SMBJO3XN.js → parser-K3XXLMUW.js} +4 -4
- package/dist/{parser-OBQG655V.js → parser-KCR2WS3V.js} +4 -4
- package/dist/{parser-HVJFTOXL.js → parser-LWKKBNSA.js} +3 -3
- package/dist/{parser-ZYC3XGNS.js → parser-MPCE5JBG.js} +4 -4
- package/dist/{parser-QJYS7KQQ.js → parser-MTOMTWTD.js} +4 -4
- package/dist/{parser-GFSOPDB7.js → parser-O4HIUN6G.js} +4 -4
- package/dist/{parser-BL7Z72EY.js → parser-PSA4UBSP.js} +4 -4
- package/dist/{parser-TNYX5S7E.js → parser-RV4M6AS2.js} +4 -4
- package/dist/parser-RZPVAQVX.js +11 -0
- package/dist/{parser-UGA23PYK.js → parser-TGQZJ5OT.js} +4 -4
- package/dist/parser-TXND652E.js +13 -0
- package/dist/{parser-WISPH7LW.js → parser-VKOJM7KS.js} +4 -4
- package/dist/{parser-ZKF5K2H2.js → parser-W4PQUGX3.js} +4 -4
- package/dist/{parser-MRBPXXIV.js → parser-WAV5JRPT.js} +4 -4
- package/dist/{parser-D6ONJQFR.js → parser-YS7TOS2K.js} +3 -3
- package/dist/pert.d.ts +8 -0
- package/dist/{renderer-VFUVRNLK.js → renderer-2AZ5HJFK.js} +4 -4
- package/dist/{renderer-V3JEMWMM.js → renderer-2QPMJ2DA.js} +6 -6
- package/dist/renderer-45PSOL3E.js +19 -0
- package/dist/{renderer-BB5PREMY.js → renderer-4ITCHBT7.js} +4 -4
- package/dist/{renderer-XEKIRPI6.js → renderer-5DSEWF74.js} +5 -5
- package/dist/{renderer-QNHUXCRL.js → renderer-6OKF44KS.js} +9 -9
- package/dist/renderer-72LGR2YF.js +14 -0
- package/dist/{renderer-YHXPN3GF.js → renderer-7SD6MSBS.js} +7 -7
- package/dist/renderer-A5VE5BCI.js +24 -0
- package/dist/{renderer-A5VFZQQK.js → renderer-AUW2BE6G.js} +6 -6
- package/dist/{renderer-LWGJFT3D.js → renderer-B5TBNZJE.js} +5 -5
- package/dist/{renderer-4IUPINAE.js → renderer-BSR2O2H6.js} +7 -7
- package/dist/{renderer-DKESNMU5.js → renderer-CYB4LK3G.js} +6 -6
- package/dist/{renderer-MFJ7HY2H.js → renderer-FF24KZCI.js} +5 -5
- package/dist/{renderer-CGW7QPNA.js → renderer-FPE3J5VZ.js} +7 -7
- package/dist/{renderer-6T3KK4S3.js → renderer-FYSVXL7M.js} +7 -7
- package/dist/{renderer-THD6V5TL.js → renderer-HDCCZURL.js} +9 -7
- package/dist/{renderer-TPIBXNOS.js → renderer-JCCHNECZ.js} +6 -6
- package/dist/{renderer-QL5KO6SK.js → renderer-KS7YZJE2.js} +7 -7
- package/dist/{renderer-SQ3JUAI7.js → renderer-NGXZTRK6.js} +6 -6
- package/dist/{renderer-MJDDU27W.js → renderer-ODUUOPVT.js} +10 -10
- package/dist/renderer-PJM35LJN.js +17 -0
- package/dist/{renderer-TYXRHMRI.js → renderer-PPIHO5FI.js} +9 -9
- package/dist/{renderer-W5RMOURB.js → renderer-PSMMZCKH.js} +6 -6
- package/dist/{renderer-UZF3JROD.js → renderer-QAOBLRXV.js} +8 -8
- package/dist/{renderer-ROV756WT.js → renderer-R2WNIC2C.js} +5 -5
- package/dist/{renderer-VICQ4WNY.js → renderer-SBS3YWU5.js} +5 -5
- package/dist/{renderer-6L3NBEY5.js → renderer-UYMQQCJK.js} +6 -6
- package/dist/{renderer-radial-MHO2VDXN.js → renderer-radial-F7X5F2VU.js} +6 -6
- package/dist/{state-parser-RX3GXOIB.js → state-parser-3REXRK3R.js} +4 -4
- package/dist/{state-renderer-AJUKGNWU.js → state-renderer-XYLNRWXR.js} +6 -6
- package/docs/ai-integration.md +6 -2
- package/docs/language-reference.md +253 -22
- package/gallery/fixtures/body.dgmo +17 -0
- package/gallery/fixtures/bracket.dgmo +30 -0
- package/gallery/fixtures/clock.dgmo +8 -0
- package/gallery/fixtures/countdown.dgmo +3 -0
- package/gallery/fixtures/goal.dgmo +4 -0
- package/package.json +12 -4
- package/dist/advanced.d.ts +0 -6162
- package/dist/auto.d.ts +0 -54
- package/dist/block.d.ts +0 -123
- package/dist/dgmo-router-ODKPEJ3P.js +0 -79
- package/dist/element.d.ts +0 -62
- package/dist/index.d.ts +0 -166
- package/dist/parser-667RGSUW.js +0 -13
- package/dist/parser-J3P2D6IP.js +0 -13
- package/dist/themes-1-CuKpeH.d.ts +0 -908
package/dist/auto.d.ts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared browser-embed helpers for the `@diagrammo/dgmo` client-side
|
|
3
|
-
* drop-ins (`./auto` script-tag renderer and `./element` custom element).
|
|
4
|
-
*
|
|
5
|
-
* These are the SVG sanitizer, theme resolver, the standard-block DOM
|
|
6
|
-
* assembler (canonical chrome from `src/embed` — BL-114), the error card,
|
|
7
|
-
* aria-label derivation, style injection, and share-URL builder — factored
|
|
8
|
-
* out of `auto/index.ts` so the two entries share one implementation rather
|
|
9
|
-
* than diverging copies. The `auto` entry's public `window.dgmo` surface is
|
|
10
|
-
* unaffected; it imports from here.
|
|
11
|
-
*/
|
|
12
|
-
declare const VERSION: string;
|
|
13
|
-
|
|
14
|
-
type ThemePreference = 'auto' | 'light' | 'dark' | 'transparent';
|
|
15
|
-
declare function resolveTheme(theme: ThemePreference | undefined): 'light' | 'dark' | 'transparent';
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* `@diagrammo/dgmo/auto` — IIFE-distributed auto-renderer for static HTML.
|
|
19
|
-
*
|
|
20
|
-
* Drop a `<script src="…/auto.js">` on any page; on `DOMContentLoaded`
|
|
21
|
-
* this module scans for `.dgmo, .language-dgmo`, runs `render()`, and
|
|
22
|
-
* replaces each match with the standard DGMO embed block (BL-114,
|
|
23
|
-
* `figure.dgmo.dgmo-rendered`) — the diagram plus a hover-reveal icon
|
|
24
|
-
* toolbar with view-source, Copy, and "Open in editor" actions.
|
|
25
|
-
*
|
|
26
|
-
* Public API: frozen `window.dgmo` and alias `window.diagrammo` with
|
|
27
|
-
* `{ initialize, run, version }`. Configuration is read from the
|
|
28
|
-
* bundle's own `<script data-config='{…}'>` (JSON with strict
|
|
29
|
-
* allowlist) or via `dgmo.initialize(opts)` for `data-auto="false"`
|
|
30
|
-
* embedders.
|
|
31
|
-
*/
|
|
32
|
-
|
|
33
|
-
interface AutoConfig {
|
|
34
|
-
theme?: 'auto' | 'light' | 'dark' | 'transparent';
|
|
35
|
-
palette?: string;
|
|
36
|
-
showSource?: boolean;
|
|
37
|
-
showEditorLink?: boolean;
|
|
38
|
-
}
|
|
39
|
-
interface RunOptions {
|
|
40
|
-
nodes?: Element[] | NodeListOf<Element>;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
declare function findScriptTag(): HTMLScriptElement | null;
|
|
44
|
-
declare function parseConfig(raw: string | null | undefined): Partial<AutoConfig>;
|
|
45
|
-
declare function selectTargets(root?: ParentNode): Element[];
|
|
46
|
-
declare function initialize(opts?: AutoConfig): void;
|
|
47
|
-
declare function run(opts?: RunOptions): Promise<void>;
|
|
48
|
-
declare const api: Readonly<{
|
|
49
|
-
initialize: typeof initialize;
|
|
50
|
-
run: typeof run;
|
|
51
|
-
version: string;
|
|
52
|
-
}>;
|
|
53
|
-
|
|
54
|
-
export { type AutoConfig, type RunOptions, VERSION, api as default, findScriptTag, initialize, parseConfig, resolveTheme, run, selectTargets };
|
package/dist/block.d.ts
DELETED
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Canonical stylesheet for the standard DGMO embed block (BL-114).
|
|
3
|
-
*
|
|
4
|
-
* Shipped two ways: `dist/block.css` (extracted at build time by
|
|
5
|
-
* tsup.config.ts, same regex mechanism as auto.css) for `<link>`/import
|
|
6
|
-
* consumers, and the `BLOCK_CSS` string export for embedders that inject a
|
|
7
|
-
* `<style>` tag.
|
|
8
|
-
*
|
|
9
|
-
* Dark mode keys off `[data-theme="dark"]`. Hosts with a different signal
|
|
10
|
-
* (`html.dark`, `body.theme-dark`) rewrite the selector at their build step —
|
|
11
|
-
* fumadocs-dgmo/nextra-dgmo's build-css.mjs is the reference adapter.
|
|
12
|
-
*
|
|
13
|
-
* The `.dgmo-tok-*` role colors mirror LIGHT_ROLE_STYLES (light) and
|
|
14
|
-
* NORD_ROLE_STYLES (dark) from editor/highlight-api.ts. A parity test
|
|
15
|
-
* (tests/block.test.ts) guards against drift — update both when either
|
|
16
|
-
* changes.
|
|
17
|
-
*
|
|
18
|
-
* IMPORTANT: keep this a single pure template literal — the build extracts it
|
|
19
|
-
* with a regex, so no interpolation or computed values.
|
|
20
|
-
*/
|
|
21
|
-
declare const BLOCK_CSS: string;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Standard DGMO embed block (BL-114) — the ONE canonical
|
|
25
|
-
* "diagram + source chrome" HTML builder shared by every embed surface:
|
|
26
|
-
* remark-dgmo (and through it the astro/docusaurus/fumadocs/nextra/vitepress
|
|
27
|
-
* wrappers), the `/auto` script-tag drop-in, `<dgmo-diagram>`, dgmo-mcp HTML
|
|
28
|
-
* reports, the marketing site, and the Obsidian plugin.
|
|
29
|
-
*
|
|
30
|
-
* Chrome contract (user-approved 2026-07-05): the diagram is the star. A slim
|
|
31
|
-
* icon toolbar sits in a reserved row below the SVG, invisible until the
|
|
32
|
-
* block is hovered/focused or the source is open. Four wordless icon
|
|
33
|
-
* buttons — `</>` toggles the hidden source panel, expand (full-screen),
|
|
34
|
-
* copy, open-in-editor. No disclosure triangle, no text labels. The toolbar
|
|
35
|
-
* IS the <summary> of a native <details>, so show/hide works with zero
|
|
36
|
-
* JavaScript; copy and expand need a small delegated click handler
|
|
37
|
-
* (remark-dgmo's `bindDgmo` is the reference — expand's lightbox helper is
|
|
38
|
-
* mirrored across every client surface, same as copy).
|
|
39
|
-
*
|
|
40
|
-
* Markup vocabulary: `figure.dgmo` (`--diagram`/`--showcase`/`--error`),
|
|
41
|
-
* `.dgmo-light`/`.dgmo-dark` (dual color-mode) or `.dgmo-svg` (single),
|
|
42
|
-
* `details.dgmo-source-wrap > summary.dgmo-toolbar`, `.dgmo-source-inner`,
|
|
43
|
-
* `pre.dgmo-pre > span.dgmo-code` with `.dgmo-tok-<role>` token spans. While
|
|
44
|
-
* the source is open the wrapper gets one shared frame (`:has()` rule) so
|
|
45
|
-
* diagram + code read as a single unit. No visible caption — `title` becomes
|
|
46
|
-
* the wrapper's aria-label. Styles ship as `BLOCK_CSS` / `dist/block.css`.
|
|
47
|
-
*/
|
|
48
|
-
|
|
49
|
-
/** Default hosted editor used by "Open in editor" links. */
|
|
50
|
-
declare const EDITOR_BASE_URL = "https://online.diagrammo.app";
|
|
51
|
-
type BlockMode = 'diagram' | 'showcase';
|
|
52
|
-
/**
|
|
53
|
-
* Color-mode strategy for the emitted SVG(s).
|
|
54
|
-
* - `auto` — render twice (light + dark) and let CSS flip visibility.
|
|
55
|
-
* - `light` / `dark` / `transparent` — single render with that theme.
|
|
56
|
-
*/
|
|
57
|
-
type BlockColorMode = 'auto' | 'light' | 'dark' | 'transparent';
|
|
58
|
-
interface DgmoBlockOptions {
|
|
59
|
-
/** `diagram` (default): SVG only. `showcase`: SVG + source chrome. */
|
|
60
|
-
mode?: BlockMode;
|
|
61
|
-
/** Palette name. Default `slate`; unknown names warn + fall back. */
|
|
62
|
-
palette?: string;
|
|
63
|
-
/** Default `auto` (dual light/dark render). */
|
|
64
|
-
colorMode?: BlockColorMode;
|
|
65
|
-
/** Default: true in showcase mode, false in diagram mode. */
|
|
66
|
-
showSource?: boolean;
|
|
67
|
-
/** Default: true in showcase mode, false in diagram mode. */
|
|
68
|
-
showCopy?: boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Show the expand (full-screen) toolbar button. Default: true in showcase
|
|
71
|
-
* mode, false in diagram mode. Needs the client lightbox handler to do
|
|
72
|
-
* anything (mirrored across surfaces); markup-only surfaces can omit it.
|
|
73
|
-
*/
|
|
74
|
-
showExpand?: boolean;
|
|
75
|
-
/** Default: true in showcase mode, false in diagram mode. */
|
|
76
|
-
showOpenInEditor?: boolean;
|
|
77
|
-
/** Base URL for the open-in-editor link. Default: online.diagrammo.app. */
|
|
78
|
-
editorBaseUrl?: string;
|
|
79
|
-
/** Outer wrapper element. Default `figure`. */
|
|
80
|
-
wrapper?: 'figure' | 'div';
|
|
81
|
-
/** Base class for the wrapper (styling hook). Default `dgmo`. */
|
|
82
|
-
className?: string;
|
|
83
|
-
/** Extra classes appended to every emitted wrapper (compat shims). */
|
|
84
|
-
legacyClassNames?: string[];
|
|
85
|
-
/**
|
|
86
|
-
* Accessible name for the block (`aria-label` on the wrapper). NOT rendered
|
|
87
|
-
* visually — the chart's visible title belongs in the DGMO source itself.
|
|
88
|
-
*/
|
|
89
|
-
title?: string;
|
|
90
|
-
/** Receives palette-fallback warnings. Default: console.warn. */
|
|
91
|
-
onWarn?: (message: string) => void;
|
|
92
|
-
}
|
|
93
|
-
interface DgmoBlockResult {
|
|
94
|
-
html: string;
|
|
95
|
-
diagnostics: Array<{
|
|
96
|
-
message: string;
|
|
97
|
-
line?: number;
|
|
98
|
-
severity?: string;
|
|
99
|
-
}>;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Render one ```dgmo source block to the standard embed HTML. Async because
|
|
103
|
-
* it runs the full dgmo render pipeline (once per color mode).
|
|
104
|
-
*
|
|
105
|
-
* Render errors are NOT caught here — callers decide between throwing,
|
|
106
|
-
* `errorBlockHtml()`, or their own fallback.
|
|
107
|
-
*/
|
|
108
|
-
declare function renderDgmoBlock(source: string, options?: DgmoBlockOptions): Promise<DgmoBlockResult>;
|
|
109
|
-
/**
|
|
110
|
-
* Assemble the standard block around already-rendered SVG markup. Exposed for
|
|
111
|
-
* surfaces that render through their own pipeline (e.g. dgmo-mcp's
|
|
112
|
-
* renderPipeline) but must emit the canonical chrome. `svgsHtml` must be the
|
|
113
|
-
* `.dgmo-light`+`.dgmo-dark` (or `.dgmo-svg`) wrapper divs.
|
|
114
|
-
*/
|
|
115
|
-
declare function buildDgmoBlockHtml(source: string, svgsHtml: string, options?: DgmoBlockOptions): string;
|
|
116
|
-
/**
|
|
117
|
-
* Standard error card for a block that failed to parse/render. Same shape on
|
|
118
|
-
* every surface: `.dgmo--error` with `role="alert"`, message + offending
|
|
119
|
-
* source.
|
|
120
|
-
*/
|
|
121
|
-
declare function errorBlockHtml(err: unknown, source: string, options?: Pick<DgmoBlockOptions, 'className' | 'legacyClassNames'>): string;
|
|
122
|
-
|
|
123
|
-
export { BLOCK_CSS, type BlockColorMode, type BlockMode, type DgmoBlockOptions, type DgmoBlockResult, EDITOR_BASE_URL, buildDgmoBlockHtml, errorBlockHtml, renderDgmoBlock };
|
|
@@ -1,79 +0,0 @@
|
|
|
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-RI4NIMFP.js";
|
|
13
|
-
import "./chunk-5ZZLLBFK.js";
|
|
14
|
-
import "./chunk-TC3YWBFO.js";
|
|
15
|
-
import "./chunk-KQAEKMIX.js";
|
|
16
|
-
import "./chunk-3NFJWFNP.js";
|
|
17
|
-
import "./chunk-TLKMTQYL.js";
|
|
18
|
-
import "./chunk-IFK3GIUW.js";
|
|
19
|
-
import "./chunk-XCC2RENT.js";
|
|
20
|
-
import "./chunk-2WMBWZY2.js";
|
|
21
|
-
import "./chunk-4BD7EVPK.js";
|
|
22
|
-
import "./chunk-ZDUQGL3N.js";
|
|
23
|
-
import "./chunk-FMKTYMP4.js";
|
|
24
|
-
import "./chunk-B57V3DWN.js";
|
|
25
|
-
import "./chunk-NNAAJVBU.js";
|
|
26
|
-
import "./chunk-RTERS6S5.js";
|
|
27
|
-
import "./chunk-LVHPTBO3.js";
|
|
28
|
-
import "./chunk-YRVLP7UU.js";
|
|
29
|
-
import "./chunk-DKEPS5LH.js";
|
|
30
|
-
import "./chunk-KV6Y2HE6.js";
|
|
31
|
-
import "./chunk-4YNP6O47.js";
|
|
32
|
-
import "./chunk-XHVV4NVW.js";
|
|
33
|
-
import "./chunk-YYX3SU6H.js";
|
|
34
|
-
import "./chunk-4HVNZ7WF.js";
|
|
35
|
-
import "./chunk-QQJUTGQH.js";
|
|
36
|
-
import "./chunk-65RTDUZH.js";
|
|
37
|
-
import "./chunk-35BBZDFE.js";
|
|
38
|
-
import "./chunk-F743CM2N.js";
|
|
39
|
-
import "./chunk-7OVSJI2V.js";
|
|
40
|
-
import "./chunk-FUCAB3KQ.js";
|
|
41
|
-
import "./chunk-L3UHP6TD.js";
|
|
42
|
-
import "./chunk-USZW2HHU.js";
|
|
43
|
-
import "./chunk-CLR4A2N2.js";
|
|
44
|
-
import "./chunk-IUK7AGD4.js";
|
|
45
|
-
import "./chunk-MJCG5K2O.js";
|
|
46
|
-
import "./chunk-O5MQPK7E.js";
|
|
47
|
-
import "./chunk-EYN7VFKL.js";
|
|
48
|
-
import "./chunk-IYULMRBE.js";
|
|
49
|
-
import "./chunk-R3XI2VC7.js";
|
|
50
|
-
import "./chunk-P6T66CCZ.js";
|
|
51
|
-
import "./chunk-D5AVQCDN.js";
|
|
52
|
-
import "./chunk-C3Z4DX3V.js";
|
|
53
|
-
import "./chunk-HBVD67XG.js";
|
|
54
|
-
import "./chunk-6VE3VLWM.js";
|
|
55
|
-
import "./chunk-I46X5VUA.js";
|
|
56
|
-
import "./chunk-5FGDJIJX.js";
|
|
57
|
-
import "./chunk-NXMESY4J.js";
|
|
58
|
-
import "./chunk-ZXL6MB4R.js";
|
|
59
|
-
import "./chunk-K6HNAY5V.js";
|
|
60
|
-
import "./chunk-FMDSF3OV.js";
|
|
61
|
-
import "./chunk-FFUN5D66.js";
|
|
62
|
-
import "./chunk-NOTA6TEI.js";
|
|
63
|
-
import "./chunk-ZNQX6QWH.js";
|
|
64
|
-
import "./chunk-TLVIHFRO.js";
|
|
65
|
-
import "./chunk-CXK4DZH3.js";
|
|
66
|
-
import "./chunk-5WRI5ZAA.js";
|
|
67
|
-
export {
|
|
68
|
-
CHART_TYPE_DESCRIPTIONS,
|
|
69
|
-
chartTypeParsers,
|
|
70
|
-
getAllChartTypes,
|
|
71
|
-
getRenderCategory,
|
|
72
|
-
isExtendedChartType,
|
|
73
|
-
knownChartTypeIds,
|
|
74
|
-
looksLikeC4,
|
|
75
|
-
looksLikeGantt,
|
|
76
|
-
parseDgmo,
|
|
77
|
-
parseDgmoChartType
|
|
78
|
-
};
|
|
79
|
-
//# sourceMappingURL=dgmo-router-ODKPEJ3P.js.map
|
package/dist/element.d.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `@diagrammo/dgmo/element` — the universal `<dgmo-diagram>` custom element.
|
|
3
|
-
*
|
|
4
|
-
* A mermaid-style, framework-agnostic client-side web component. Drop the
|
|
5
|
-
* IIFE script (`dist/element.js`) on ANY page — Hugo, Jekyll, MkDocs,
|
|
6
|
-
* VitePress, plain HTML — and author diagrams as:
|
|
7
|
-
*
|
|
8
|
-
* ```html
|
|
9
|
-
* <script src="https://unpkg.com/@diagrammo/dgmo/dist/element.js"></script>
|
|
10
|
-
* <dgmo-diagram palette="nord">
|
|
11
|
-
* flowchart
|
|
12
|
-
* [Start] -> [Done]
|
|
13
|
-
* </dgmo-diagram>
|
|
14
|
-
* ```
|
|
15
|
-
*
|
|
16
|
-
* The element reads its DGMO source (a nested `<script type="text/dgmo">`,
|
|
17
|
-
* a `<pre>`, or its own text content — de-indented), calls the isomorphic
|
|
18
|
-
* `render()`, sanitizes the SVG, and injects it. Attributes: `palette`,
|
|
19
|
-
* `theme`/`color-mode`, `mode` (diagram|showcase), `editor-base`,
|
|
20
|
-
* `map-data-base`.
|
|
21
|
-
*
|
|
22
|
-
* DOM strategy — **light DOM** (not shadow DOM). Rationale: the rendered
|
|
23
|
-
* SVG, source panel, and syntax-highlight token classes are all styled by
|
|
24
|
-
* the shared `auto.css` (injected once via `ensureStyles()`). Cloning that
|
|
25
|
-
* whole stylesheet into every shadow root would be heavy and would break
|
|
26
|
-
* the `.dgmo-tok-*` highlight hooks; the CSS is already namespaced under
|
|
27
|
-
* `.dgmo-*` so collision risk is low. See the CLAUDE.md embed notes.
|
|
28
|
-
*
|
|
29
|
-
* Map-data seam — the base bundle never statically imports the ~380 KB geo
|
|
30
|
-
* JSON. Only when a diagram's first token is `map` does the element
|
|
31
|
-
* lazy-`fetch()` the map assets from `map-data-base` (default: the pinned
|
|
32
|
-
* unpkg `dist/map-data/` path) and inject them as `render({ mapData })`.
|
|
33
|
-
* Fetched data is cached across every element on the page. Non-map diagrams
|
|
34
|
-
* trigger ZERO extra network requests.
|
|
35
|
-
*/
|
|
36
|
-
|
|
37
|
-
declare class DgmoDiagram extends HTMLElement {
|
|
38
|
-
static get observedAttributes(): readonly string[];
|
|
39
|
-
/** DGMO source, captured from the original children ONCE before the first
|
|
40
|
-
* render replaces them. */
|
|
41
|
-
private source;
|
|
42
|
-
/** Monotonic render token — a late-resolving render/fetch whose token is
|
|
43
|
-
* stale (superseded by a newer attribute-driven render) is discarded. */
|
|
44
|
-
private renderToken;
|
|
45
|
-
private container;
|
|
46
|
-
connectedCallback(): void;
|
|
47
|
-
attributeChangedCallback(_name: string, oldValue: string | null, newValue: string | null): void;
|
|
48
|
-
private readSource;
|
|
49
|
-
private themePreference;
|
|
50
|
-
private palette;
|
|
51
|
-
private editorBase;
|
|
52
|
-
private mapDataBase;
|
|
53
|
-
private isShowcase;
|
|
54
|
-
private mount;
|
|
55
|
-
private showError;
|
|
56
|
-
private rerender;
|
|
57
|
-
}
|
|
58
|
-
/** Idempotently define `<dgmo-diagram>`. Safe to call multiple times and in
|
|
59
|
-
* SSR/no-DOM contexts (no-ops when `customElements` is unavailable). */
|
|
60
|
-
declare function defineDgmoDiagram(): void;
|
|
61
|
-
|
|
62
|
-
export { DgmoDiagram, DgmoDiagram as default, defineDgmoDiagram };
|
package/dist/index.d.ts
DELETED
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import { ab as DiagnosticSpec, a as PaletteConfig, J as Theme, C as CompactViewState, D as DgmoError } from './themes-1-CuKpeH.js';
|
|
2
|
-
export { f as ChartTypeMeta, h as DgmoSeverity, ac as DiagnosticParams, ad as EmitOptions, j as Gazetteer, k as GazetteerEntry, l as MapCompletionOptions, M as MapData, o as MapLocationMatch, p as MapPlaceCompletion, s as MapRegionCompletion, P as PaletteColors, w as RegionName, x as RegionNames, N as chartTypes, O as completeMapPlaces, Q as completeMapRegions, ae as emit, X as formatDgmoError, _ as getPalette, a4 as palettes, af as resolvePaletteOrFallback, a8 as searchMapLocations, aa as themes, a5 as validate } from './themes-1-CuKpeH.js';
|
|
3
|
-
|
|
4
|
-
declare function getMinDimensions(content: string): {
|
|
5
|
-
width: number;
|
|
6
|
-
height: number;
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Make an SVG produced by `@diagrammo/dgmo`'s static `render()` suitable for
|
|
11
|
-
* responsive inline embedding in any host (Obsidian, remark/markdown, web
|
|
12
|
-
* pages):
|
|
13
|
-
*
|
|
14
|
-
* - dgmo renders diagrams inside a fixed export canvas (e.g.
|
|
15
|
-
* `viewBox="0 0 1200 800"`), with content often occupying only a fraction
|
|
16
|
-
* of it. We compute a tight content bounding box from element coordinates
|
|
17
|
-
* and set the root `viewBox` to bbox+padding, so the diagram's intrinsic
|
|
18
|
-
* aspect ratio matches its CONTENT — no dead space above/below or beside it.
|
|
19
|
-
* - Ensure the root `<svg>` has a `viewBox` so it scales responsively.
|
|
20
|
-
* - Strip fixed `width="N"` / `height="N"` so CSS (e.g. `width:100%;
|
|
21
|
-
* height:auto`, or an aspect-ratio derived from the tight viewBox) controls
|
|
22
|
-
* sizing.
|
|
23
|
-
* - The root inline `background:` (the theme's opaque `palette.bg`) is
|
|
24
|
-
* PRESERVED: every chart type now carries its own opaque background so
|
|
25
|
-
* diagrams render consistently across hosts and color modes rather than
|
|
26
|
-
* inheriting an arbitrary host page background.
|
|
27
|
-
*
|
|
28
|
-
* This is intentionally a string transform, not a DOM `getBBox()` step: dgmo
|
|
29
|
-
* can dual-render light/dark SVGs where one is hidden by color-mode CSS, and
|
|
30
|
-
* `getBBox()` returns 0 for the hidden copy. Parsing coordinates from the
|
|
31
|
-
* markup measures both copies reliably and works server-side (Node).
|
|
32
|
-
*/
|
|
33
|
-
declare function normalizeSvgForEmbed(input: string): string;
|
|
34
|
-
/**
|
|
35
|
-
* Parse the content bounding box of a normalized embed SVG, if one can be
|
|
36
|
-
* derived. Returns `null` when no usable coordinates are found (e.g. an empty
|
|
37
|
-
* diagram). Useful for hosts that want to set an explicit `aspect-ratio` from
|
|
38
|
-
* the tight viewBox.
|
|
39
|
-
*/
|
|
40
|
-
declare function getEmbedSvgViewBox(svg: string): {
|
|
41
|
-
x: number;
|
|
42
|
-
y: number;
|
|
43
|
-
width: number;
|
|
44
|
-
height: number;
|
|
45
|
-
} | null;
|
|
46
|
-
|
|
47
|
-
interface MountD3Opts {
|
|
48
|
-
theme?: 'light' | 'dark' | 'transparent';
|
|
49
|
-
palette?: string;
|
|
50
|
-
/** Forwarded to the interaction adapter: source-line navigation on click. */
|
|
51
|
-
onNavigate?: (line: number) => void;
|
|
52
|
-
mutedColor?: string;
|
|
53
|
-
surface?: string;
|
|
54
|
-
text?: string;
|
|
55
|
-
}
|
|
56
|
-
interface MountedD3Chart {
|
|
57
|
-
/** Re-render with new content and/or theme/palette; re-attaches interactions. */
|
|
58
|
-
update: (content: string, opts?: Partial<MountD3Opts>) => Promise<void>;
|
|
59
|
-
/** Emphasize the chart element on the given source line (editor cursor sync);
|
|
60
|
-
* pass null to clear. */
|
|
61
|
-
highlight: (line: number | null) => void;
|
|
62
|
-
/** Tear down listeners + overlays and clear the container. */
|
|
63
|
-
destroy: () => void;
|
|
64
|
-
}
|
|
65
|
-
declare function mountD3DataChart(container: HTMLElement, content: string, opts?: MountD3Opts): MountedD3Chart;
|
|
66
|
-
|
|
67
|
-
interface DataChartInteractionOpts {
|
|
68
|
-
onNavigate?: (line: number) => void;
|
|
69
|
-
mutedColor?: string;
|
|
70
|
-
surface?: string;
|
|
71
|
-
text?: string;
|
|
72
|
-
}
|
|
73
|
-
interface DataChartController {
|
|
74
|
-
/** Remove all listeners + overlays. */
|
|
75
|
-
destroy: () => void;
|
|
76
|
-
/** Emphasize the chart element(s) on the given source line (editor cursor
|
|
77
|
-
* sync); pass null to clear. No-op while the pointer is actively hovering. */
|
|
78
|
-
highlight: (line: number | null) => void;
|
|
79
|
-
}
|
|
80
|
-
declare function attachDataChartInteractions(svg: SVGSVGElement, opts?: DataChartInteractionOpts): DataChartController;
|
|
81
|
-
|
|
82
|
-
/** All data-chart types the hand-built renderers currently cover. */
|
|
83
|
-
declare const D3_DATA_CHART_TYPES: Set<string>;
|
|
84
|
-
declare function supportsD3DataChart(type: string): boolean;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* The full diagnostic catalog, sorted by code. Every coded diagnostic
|
|
88
|
-
* dgmo can emit — its severity, owning chart type, canonical message,
|
|
89
|
-
* fix hint, and a triggering example. This is the enumerable source of
|
|
90
|
-
* truth for the CLI `diagnostics` subcommand, the console error-review
|
|
91
|
-
* surface, MCP, and the language-spec catalog.
|
|
92
|
-
*/
|
|
93
|
-
declare function listDiagnosticCodes(): DiagnosticSpec[];
|
|
94
|
-
/** Look up a single spec by its code, or `undefined` if not cataloged. */
|
|
95
|
-
declare function getDiagnosticSpec(code: string): DiagnosticSpec | undefined;
|
|
96
|
-
|
|
97
|
-
interface RenderOptions {
|
|
98
|
-
theme?: Theme;
|
|
99
|
-
/**
|
|
100
|
-
* A `PaletteConfig` (e.g. `palettes.catppuccin`) or a palette id string
|
|
101
|
-
* (e.g. `'catppuccin'`). Unknown ids fall back to the default palette.
|
|
102
|
-
*/
|
|
103
|
-
palette?: PaletteConfig | string;
|
|
104
|
-
/**
|
|
105
|
-
* How to handle parse errors:
|
|
106
|
-
* 'svg' — render an inline error SVG (default)
|
|
107
|
-
* 'silent' — return empty svg + diagnostics; caller handles UI
|
|
108
|
-
* 'throw' — throw an Error with the diagnostics
|
|
109
|
-
*/
|
|
110
|
-
onError?: 'svg' | 'silent' | 'throw';
|
|
111
|
-
/**
|
|
112
|
-
* Pre-applied interactive view state — collapsed sections/columns,
|
|
113
|
-
* active swimlane tag-group, etc. Used to render a specific view
|
|
114
|
-
* non-interactively (server-side render, share-link decode).
|
|
115
|
-
*/
|
|
116
|
-
viewState?: CompactViewState;
|
|
117
|
-
}
|
|
118
|
-
interface RenderResult {
|
|
119
|
-
svg: string;
|
|
120
|
-
diagnostics: DgmoError[];
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Render DGMO source to an SVG string.
|
|
124
|
-
*
|
|
125
|
-
* @example
|
|
126
|
-
* ```ts
|
|
127
|
-
* import { render, palettes, themes } from '@diagrammo/dgmo';
|
|
128
|
-
*
|
|
129
|
-
* const { svg } = await render(text, {
|
|
130
|
-
* palette: palettes.catppuccin,
|
|
131
|
-
* theme: themes.dark,
|
|
132
|
-
* });
|
|
133
|
-
* document.getElementById('chart').innerHTML = svg;
|
|
134
|
-
* ```
|
|
135
|
-
*/
|
|
136
|
-
declare function render(text: string, options?: RenderOptions): Promise<RenderResult>;
|
|
137
|
-
|
|
138
|
-
interface EncodeDiagramUrlOptions {
|
|
139
|
-
baseUrl?: string;
|
|
140
|
-
palette?: PaletteConfig;
|
|
141
|
-
theme?: Theme;
|
|
142
|
-
filename?: string;
|
|
143
|
-
/**
|
|
144
|
-
* Initial view state to embed in the URL — re-applied when the link is
|
|
145
|
-
* decoded so recipients open the diagram in the same configuration.
|
|
146
|
-
*/
|
|
147
|
-
viewState?: CompactViewState;
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* Encode DGMO text into a shareable URL. Returns null if the compressed
|
|
151
|
-
* payload exceeds the 8 KB URL limit.
|
|
152
|
-
*/
|
|
153
|
-
declare function encodeDiagramUrl(text: string, options?: EncodeDiagramUrlOptions): string | null;
|
|
154
|
-
interface DecodedDiagramUrl {
|
|
155
|
-
text: string;
|
|
156
|
-
palette?: PaletteConfig;
|
|
157
|
-
theme?: Theme;
|
|
158
|
-
filename?: string;
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* Decode a share URL back into DGMO text plus optional palette/theme/filename.
|
|
162
|
-
* Returns null if the URL contains no valid DGMO payload.
|
|
163
|
-
*/
|
|
164
|
-
declare function decodeDiagramUrl(url: string): DecodedDiagramUrl | null;
|
|
165
|
-
|
|
166
|
-
export { CompactViewState, D3_DATA_CHART_TYPES, type DataChartInteractionOpts, type DecodedDiagramUrl, DgmoError, DiagnosticSpec, type EncodeDiagramUrlOptions, type MountD3Opts, type MountedD3Chart, PaletteConfig, type RenderOptions, type RenderResult, Theme, attachDataChartInteractions, decodeDiagramUrl, encodeDiagramUrl, getDiagnosticSpec, getEmbedSvgViewBox, getMinDimensions, listDiagnosticCodes, mountD3DataChart, normalizeSvgForEmbed, render, supportsD3DataChart };
|
package/dist/parser-667RGSUW.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
parseEventLine
|
|
3
|
-
} from "./chunk-CLR4A2N2.js";
|
|
4
|
-
import "./chunk-IUK7AGD4.js";
|
|
5
|
-
import "./chunk-HBVD67XG.js";
|
|
6
|
-
import "./chunk-ZNQX6QWH.js";
|
|
7
|
-
import "./chunk-TLVIHFRO.js";
|
|
8
|
-
import "./chunk-CXK4DZH3.js";
|
|
9
|
-
import "./chunk-5WRI5ZAA.js";
|
|
10
|
-
export {
|
|
11
|
-
parseEventLine
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=parser-667RGSUW.js.map
|
package/dist/parser-J3P2D6IP.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
parseBody
|
|
3
|
-
} from "./chunk-TC3YWBFO.js";
|
|
4
|
-
import "./chunk-3NFJWFNP.js";
|
|
5
|
-
import "./chunk-HBVD67XG.js";
|
|
6
|
-
import "./chunk-ZNQX6QWH.js";
|
|
7
|
-
import "./chunk-TLVIHFRO.js";
|
|
8
|
-
import "./chunk-CXK4DZH3.js";
|
|
9
|
-
import "./chunk-5WRI5ZAA.js";
|
|
10
|
-
export {
|
|
11
|
-
parseBody
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=parser-J3P2D6IP.js.map
|