@diagrammo/dgmo 0.61.0 → 0.62.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.
Files changed (82) hide show
  1. package/README.md +1 -1
  2. package/dist/advanced.d.ts +382 -396
  3. package/dist/advanced.js +152 -38
  4. package/dist/auto.js +143 -142
  5. package/dist/block.js +9 -8
  6. package/dist/{chart-meta-gUwAzi7N.d.ts → chart-meta-D98NbYDp.d.ts} +1 -1
  7. package/dist/chart-meta.d.ts +2 -2
  8. package/dist/chart-meta.js +1 -1
  9. package/dist/{charts-d3-MN6QCYKU.js → charts-d3-M76E4TZU.js} +5 -5
  10. package/dist/{chunk-6CWNVQPW.js → chunk-2LN5C6FH.js} +3 -3
  11. package/dist/{chunk-FXLGBUIQ.js → chunk-34HQALZ5.js} +2 -2
  12. package/dist/{chunk-OPBZYISB.js → chunk-37EHGTQ2.js} +2204 -2018
  13. package/dist/{chunk-ZDFIY6WX.js → chunk-3PVUGECM.js} +1 -2
  14. package/dist/{chunk-XJZCXNWR.js → chunk-BGITRLTR.js} +2 -2
  15. package/dist/{chunk-3OLO2MZ6.js → chunk-BPINSP65.js} +2 -2
  16. package/dist/{chunk-VHO3YBTB.js → chunk-CVVICCSB.js} +24 -2
  17. package/dist/{chunk-DZZWR6GT.js → chunk-DUHKYKI7.js} +2 -2
  18. package/dist/{chunk-4B5YISOR.js → chunk-EOYPX6SF.js} +24 -1
  19. package/dist/{chunk-MOT3NXB5.js → chunk-FVYHDZ6Q.js} +2 -2
  20. package/dist/{chunk-7FTGNJQ2.js → chunk-GCVTU64J.js} +17 -5
  21. package/dist/{chunk-S23HOUJS.js → chunk-JU2VMFYC.js} +2 -2
  22. package/dist/{chunk-CQ7Y3O67.js → chunk-KHTKMVKT.js} +2 -2
  23. package/dist/{chunk-7BJQUII6.js → chunk-KK5LQIN7.js} +2 -2
  24. package/dist/{chunk-L43KTQTW.js → chunk-L26ZAPNJ.js} +2 -2
  25. package/dist/{chunk-LRKGF7RN.js → chunk-L4B4GRVS.js} +2 -2
  26. package/dist/{chunk-5PWIV7ZF.js → chunk-LFAQ4BLZ.js} +2 -2
  27. package/dist/{chunk-7QCYHZVO.js → chunk-NQH2Q2RR.js} +2 -2
  28. package/dist/{chunk-PFGJ7SCM.js → chunk-PUFWYDWP.js} +2 -2
  29. package/dist/{chunk-BSJIPMPG.js → chunk-QDPMTFB4.js} +45 -32
  30. package/dist/chunk-RU2HHHYA.js +23 -0
  31. package/dist/{chunk-SMHTYVMK.js → chunk-RZRMSNO7.js} +2 -2
  32. package/dist/{chunk-HJ6TMHQG.js → chunk-SV7F363F.js} +2 -2
  33. package/dist/{chunk-YJCILMEA.js → chunk-U22TKD3L.js} +2 -2
  34. package/dist/{chunk-2WPLOS4Q.js → chunk-USHDV2AF.js} +2 -2
  35. package/dist/{chunk-DNSEG6P2.js → chunk-WMHHNK44.js} +2 -2
  36. package/dist/{chunk-4BEAHH6G.js → chunk-XXDEQSW4.js} +2 -2
  37. package/dist/{chunk-NEV5IW33.js → chunk-YVI3JL3S.js} +2 -2
  38. package/dist/{registry-Ch0Umdi1.d.ts → dgmo-router-Dd5PTjxl.d.ts} +98 -98
  39. package/dist/{dgmo-router-UVYAJCAF.js → dgmo-router-Z5N6QLIC.js} +2 -2
  40. package/dist/{dimensions-QCPOPPKE.js → dimensions-ES6O2T4H.js} +4 -4
  41. package/dist/element.js +144 -143
  42. package/dist/{flowchart-renderer-XFDCX7MZ.js → flowchart-renderer-BCVCIZHF.js} +3 -3
  43. package/dist/index.d.ts +21 -10
  44. package/dist/index.js +13 -23
  45. package/dist/{renderer-CXRSD26Q.js → renderer-4VDSMPYU.js} +4 -4
  46. package/dist/{renderer-62FFDWMY.js → renderer-5HYDLCMX.js} +3 -3
  47. package/dist/{renderer-XSHOMUJQ.js → renderer-726UVOKE.js} +3 -3
  48. package/dist/{renderer-IYMA5W7X.js → renderer-A5GFW2XH.js} +4 -4
  49. package/dist/{renderer-VYMTBSF4.js → renderer-HPQJRSON.js} +3 -3
  50. package/dist/{renderer-GESKWINV.js → renderer-K3TH5PP7.js} +4 -4
  51. package/dist/{renderer-4RQ5PGHY.js → renderer-KHVAM4IY.js} +3 -3
  52. package/dist/{renderer-2PGIIOFN.js → renderer-KKNXTTFE.js} +5 -5
  53. package/dist/{renderer-IG5PQXEM.js → renderer-PKST5W6U.js} +4 -4
  54. package/dist/{renderer-R6OKKSVR.js → renderer-Q2YHQQSN.js} +4 -4
  55. package/dist/{renderer-6QW5OAJG.js → renderer-TTMBG2N6.js} +2 -2
  56. package/dist/{renderer-AS6LLDZM.js → renderer-XDL6PRLN.js} +3 -3
  57. package/dist/{renderer-63MLWS6L.js → renderer-XIJO7DYS.js} +3 -3
  58. package/dist/{resolver-W3WKLWDP.js → resolver-B3TXWNWF.js} +3 -3
  59. package/dist/{state-renderer-GBHDOEXR.js → state-renderer-MCWCZ76U.js} +3 -3
  60. package/dist/{themes-DC6u80yr.d.ts → themes-DiUAG4Bf.d.ts} +37 -2
  61. package/docs/ai-integration.md +5 -5
  62. package/fonts/Inter-Bold.ttf +0 -0
  63. package/fonts/Inter-Bold.woff2 +0 -0
  64. package/fonts/Inter-Regular.ttf +0 -0
  65. package/fonts/Inter-Regular.woff2 +0 -0
  66. package/package.json +8 -23
  67. package/.claude/commands/dgmo-codebase-report.md +0 -172
  68. package/.claude/commands/dgmo-diagram-this.md +0 -60
  69. package/.claude/commands/dgmo-document-project.md +0 -128
  70. package/.claude/commands/dgmo.md +0 -313
  71. package/.cursorrules +0 -587
  72. package/.github/copilot-instructions.md +0 -597
  73. package/.windsurfrules +0 -587
  74. package/SKILL.md +0 -573
  75. package/dist/auto.d.ts +0 -60
  76. package/dist/auto.mjs +0 -88466
  77. package/dist/chunk-6MTWIQVO.js +0 -121
  78. package/dist/chunk-NZ5QVASG.js +0 -20
  79. package/dist/cli.cjs +0 -489
  80. package/dist/element.d.ts +0 -68
  81. package/dist/element.mjs +0 -88332
  82. package/dist/load-data-EHDDZ5ZS.js +0 -8
package/dist/element.d.ts DELETED
@@ -1,68 +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
- /**
55
- * Per-button visibility. Each defaults to the `mode` (showcase → on,
56
- * diagram → off) and can be independently overridden with a `show-*`
57
- * attribute set to `true` / `false`.
58
- */
59
- private boolAttr;
60
- private mount;
61
- private showError;
62
- private rerender;
63
- }
64
- /** Idempotently define `<dgmo-diagram>`. Safe to call multiple times and in
65
- * SSR/no-DOM contexts (no-ops when `customElements` is unavailable). */
66
- declare function defineDgmoDiagram(): void;
67
-
68
- export { DgmoDiagram, DgmoDiagram as default, defineDgmoDiagram };