@diagrammo/dgmo 0.15.0 → 0.16.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.
Files changed (127) hide show
  1. package/README.md +23 -10
  2. package/dist/advanced.cjs +53094 -0
  3. package/dist/advanced.d.cts +4690 -0
  4. package/dist/advanced.d.ts +4690 -0
  5. package/dist/advanced.js +52849 -0
  6. package/dist/auto.cjs +2298 -2069
  7. package/dist/auto.js +132 -109
  8. package/dist/auto.mjs +2294 -2065
  9. package/dist/cli.cjs +175 -152
  10. package/dist/editor.cjs +8 -9
  11. package/dist/editor.js +8 -9
  12. package/dist/highlight.cjs +8 -9
  13. package/dist/highlight.js +8 -9
  14. package/dist/index.cjs +2281 -2048
  15. package/dist/index.d.cts +45 -1
  16. package/dist/index.d.ts +45 -1
  17. package/dist/index.js +2276 -2044
  18. package/dist/internal.cjs +2064 -1831
  19. package/dist/internal.d.cts +113 -113
  20. package/dist/internal.d.ts +113 -113
  21. package/dist/internal.js +2059 -1826
  22. package/dist/pert.cjs +325 -0
  23. package/dist/pert.d.cts +542 -0
  24. package/dist/pert.d.ts +542 -0
  25. package/dist/pert.js +294 -0
  26. package/docs/language-reference.md +83 -66
  27. package/gallery/fixtures/area.dgmo +3 -3
  28. package/gallery/fixtures/bar-stacked.dgmo +5 -5
  29. package/gallery/fixtures/boxes-and-lines.dgmo +2 -2
  30. package/gallery/fixtures/c4-full.dgmo +8 -8
  31. package/gallery/fixtures/class-full.dgmo +2 -2
  32. package/gallery/fixtures/doughnut.dgmo +6 -6
  33. package/gallery/fixtures/flowchart-colors.dgmo +3 -3
  34. package/gallery/fixtures/function.dgmo +3 -3
  35. package/gallery/fixtures/gantt-full.dgmo +9 -9
  36. package/gallery/fixtures/gantt.dgmo +7 -7
  37. package/gallery/fixtures/infra-full.dgmo +6 -6
  38. package/gallery/fixtures/infra.dgmo +2 -2
  39. package/gallery/fixtures/kanban.dgmo +9 -9
  40. package/gallery/fixtures/line.dgmo +2 -2
  41. package/gallery/fixtures/multi-line.dgmo +3 -3
  42. package/gallery/fixtures/org-full.dgmo +6 -6
  43. package/gallery/fixtures/quadrant.dgmo +2 -2
  44. package/gallery/fixtures/sankey.dgmo +9 -9
  45. package/gallery/fixtures/scatter.dgmo +3 -3
  46. package/gallery/fixtures/sequence-tags-protocols.dgmo +8 -8
  47. package/gallery/fixtures/sequence-tags.dgmo +7 -7
  48. package/gallery/fixtures/sitemap-full.dgmo +7 -7
  49. package/gallery/fixtures/slope.dgmo +5 -5
  50. package/gallery/fixtures/spr-eras.dgmo +9 -9
  51. package/gallery/fixtures/timeline.dgmo +3 -3
  52. package/gallery/fixtures/venn.dgmo +3 -3
  53. package/package.json +28 -3
  54. package/src/advanced.ts +730 -0
  55. package/src/auto/index.ts +14 -13
  56. package/src/boxes-and-lines/layout.ts +481 -445
  57. package/src/boxes-and-lines/renderer.ts +5 -1
  58. package/src/c4/parser.ts +8 -8
  59. package/src/c4/renderer.ts +15 -8
  60. package/src/chart-types.ts +0 -5
  61. package/src/chart.ts +18 -9
  62. package/src/class/parser.ts +8 -15
  63. package/src/class/renderer.ts +17 -6
  64. package/src/cli.ts +15 -13
  65. package/src/completion-types.ts +28 -0
  66. package/src/completion.ts +28 -21
  67. package/src/cycle/layout.ts +2 -2
  68. package/src/cycle/parser.ts +14 -0
  69. package/src/cycle/renderer.ts +6 -3
  70. package/src/d3.ts +1537 -1164
  71. package/src/echarts.ts +37 -20
  72. package/src/editor/dgmo.grammar +1 -3
  73. package/src/editor/dgmo.grammar.js +8 -8
  74. package/src/editor/dgmo.grammar.terms.js +11 -12
  75. package/src/editor/highlight-api.ts +0 -1
  76. package/src/editor/highlight.ts +0 -1
  77. package/src/er/parser.ts +19 -20
  78. package/src/er/renderer.ts +20 -8
  79. package/src/gantt/calculator.ts +1 -11
  80. package/src/gantt/parser.ts +17 -17
  81. package/src/gantt/renderer.ts +9 -6
  82. package/src/graph/flowchart-parser.ts +19 -85
  83. package/src/graph/flowchart-renderer.ts +4 -9
  84. package/src/graph/layout.ts +0 -2
  85. package/src/graph/state-parser.ts +17 -62
  86. package/src/graph/state-renderer.ts +4 -9
  87. package/src/index.ts +17 -1
  88. package/src/infra/parser.ts +40 -30
  89. package/src/infra/renderer.ts +9 -6
  90. package/src/internal.ts +9 -721
  91. package/src/journey-map/parser.ts +10 -3
  92. package/src/journey-map/renderer.ts +3 -1
  93. package/src/kanban/parser.ts +12 -8
  94. package/src/kanban/renderer.ts +3 -1
  95. package/src/mindmap/layout.ts +1 -1
  96. package/src/mindmap/parser.ts +3 -3
  97. package/src/mindmap/renderer.ts +2 -1
  98. package/src/org/parser.ts +3 -3
  99. package/src/org/renderer.ts +5 -4
  100. package/src/pert/layout.ts +1 -1
  101. package/src/pert/monte-carlo.ts +2 -2
  102. package/src/pert/parser.ts +10 -10
  103. package/src/pert/renderer.ts +7 -2
  104. package/src/pert/types.ts +1 -1
  105. package/src/pyramid/parser.ts +12 -0
  106. package/src/raci/parser.ts +44 -14
  107. package/src/raci/renderer.ts +3 -2
  108. package/src/raci/types.ts +4 -3
  109. package/src/ring/parser.ts +12 -0
  110. package/src/sequence/parser.ts +15 -9
  111. package/src/sequence/renderer.ts +2 -5
  112. package/src/sitemap/layout.ts +0 -2
  113. package/src/sitemap/parser.ts +12 -38
  114. package/src/sitemap/renderer.ts +13 -13
  115. package/src/sitemap/types.ts +0 -1
  116. package/src/tech-radar/interactive.ts +1 -1
  117. package/src/tech-radar/renderer.ts +6 -4
  118. package/src/tech-radar/types.ts +2 -0
  119. package/src/utils/arrows.ts +3 -28
  120. package/src/utils/legend-d3.ts +12 -6
  121. package/src/utils/legend-layout.ts +1 -1
  122. package/src/utils/legend-types.ts +1 -1
  123. package/src/utils/parsing.ts +64 -35
  124. package/src/utils/tag-groups.ts +109 -30
  125. package/src/wireframe/layout.ts +11 -7
  126. package/src/wireframe/parser.ts +4 -4
  127. package/src/wireframe/renderer.ts +5 -2
package/src/internal.ts CHANGED
@@ -1,726 +1,14 @@
1
1
  // ============================================================
2
- // @diagrammo/dgmo/internal — internal helpers for first-party consumers.
2
+ // @diagrammo/dgmo/internal — DEPRECATED ALIAS for @diagrammo/dgmo/advanced
3
3
  //
4
- // **NOT PART OF THE PUBLIC API.** Exports here may be renamed, removed,
5
- // or behave differently in any release including patch versions.
6
- // There is no migration path or deprecation period.
4
+ // This subpath was renamed to `/advanced` to match its actual contract
5
+ // ("low-level but supported" rather than "private"). Update your imports:
7
6
  //
8
- // Use only if the public API at `@diagrammo/dgmo` cannot meet your needs
9
- // and you accept this contract.
10
- // ============================================================
11
-
12
- // ============================================================
13
- // Diagnostics
14
- // ============================================================
15
-
16
- export { makeDgmoError, formatDgmoError } from './diagnostics';
17
- export type { DgmoError, DgmoSeverity } from './diagnostics';
18
-
19
- // ============================================================
20
- // Arrow helpers (in-arrow label validation)
21
- // ============================================================
22
-
23
- export {
24
- parseInArrowLabel,
25
- validateLabelCharacters,
26
- matchColorParens,
27
- ARROW_DIAGNOSTIC_CODES,
28
- } from './utils/arrows';
29
- export type { ParseInArrowLabelResult } from './utils/arrows';
30
-
31
- // ============================================================
32
- // Unified API
33
- // ============================================================
34
-
35
- export { render } from './render';
36
-
37
- // ============================================================
38
- // Chart-type registry (single source of truth)
39
- // ============================================================
40
-
41
- export { chartTypes, BETA_CHART_IDS } from './chart-types';
42
- export type { ChartTypeMeta } from './chart-types';
43
-
44
- export {
45
- normalize as normalizeChartTypePrompt,
46
- matchesContiguously,
47
- scoreChartType,
48
- confidence as chartTypeConfidence,
49
- suggestChartTypes,
50
- MIN_PRIMARY_SCORE,
51
- AMBIGUITY_THRESHOLD,
52
- } from './chart-type-scoring';
53
- export type {
54
- ChartTypeScore,
55
- Confidence as ChartTypeConfidence,
56
- SuggestionResult as ChartTypeSuggestionResult,
57
- } from './chart-type-scoring';
58
-
59
- // ============================================================
60
- // Router
61
- // ============================================================
62
-
63
- export {
64
- parseDgmoChartType,
65
- parseDgmo,
66
- getRenderCategory,
67
- isExtendedChartType,
68
- getAllChartTypes,
69
- CHART_TYPE_DESCRIPTIONS,
70
- chartTypeParsers,
71
- knownChartTypeIds,
72
- } from './dgmo-router';
73
- export type { RenderCategory } from './dgmo-router';
74
-
75
- // ============================================================
76
- // Parsers
77
- // ============================================================
78
-
79
- export { parseChart, parseDataRowValues } from './chart';
80
- export type { ParsedChart, ChartType, ChartDataPoint, ChartEra } from './chart';
81
-
82
- export { parseExtendedChart } from './echarts';
83
- export type { ParsedExtendedChart, ExtendedChartType } from './echarts';
84
-
85
- export {
86
- parseVisualization,
87
- orderArcNodes,
88
- parseTimelineDate,
89
- addDurationToDate,
90
- formatDateLabel,
91
- } from './d3';
92
- export { computeTimeTicks } from './utils/time-ticks';
93
- export type {
94
- ParsedVisualization,
95
- VisualizationType,
96
- D3ExportDimensions,
97
- ArcLink,
98
- ArcNodeGroup,
99
- } from './d3';
100
-
101
- export {
102
- parseSequenceDgmo,
103
- parseSequenceDgmo as parseSequenceDiagram,
104
- looksLikeSequence,
105
- isSequenceBlock,
106
- isSequenceNote,
107
- } from './sequence/parser';
108
- export type {
109
- ParsedSequenceDgmo,
110
- SequenceParticipant,
111
- SequenceMessage,
112
- SequenceBlock,
113
- ElseIfBranch,
114
- SequenceSection,
115
- SequenceNote,
116
- SequenceElement,
117
- SequenceGroup,
118
- ParticipantType,
119
- } from './sequence/parser';
120
-
121
- export {
122
- inferParticipantType,
123
- RULE_COUNT,
124
- } from './sequence/participant-inference';
125
-
126
- export { parseFlowchart, looksLikeFlowchart } from './graph/flowchart-parser';
127
-
128
- export { parseState, looksLikeState } from './graph/state-parser';
129
- export { renderState, renderStateForExport } from './graph/state-renderer';
130
- export { collapseStateGroups } from './graph/state-collapse';
131
- export type { StateCollapseResult } from './graph/state-collapse';
132
-
133
- export { parseClassDiagram, looksLikeClassDiagram } from './class/parser';
134
-
135
- export type {
136
- ParsedClassDiagram,
137
- ClassNode,
138
- ClassMember,
139
- ClassRelationship,
140
- ClassModifier,
141
- MemberVisibility,
142
- RelationshipType,
143
- } from './class/types';
144
-
145
- export { layoutClassDiagram } from './class/layout';
146
- export type {
147
- ClassLayoutResult,
148
- ClassLayoutNode,
149
- ClassLayoutEdge,
150
- } from './class/layout';
151
-
152
- export {
153
- renderClassDiagram,
154
- renderClassDiagramForExport,
155
- } from './class/renderer';
156
-
157
- export { parseERDiagram, looksLikeERDiagram } from './er/parser';
158
-
159
- export type {
160
- ParsedERDiagram,
161
- ERTable,
162
- ERColumn,
163
- ERRelationship,
164
- ERConstraint,
165
- ERCardinality,
166
- } from './er/types';
167
-
168
- export { layoutERDiagram } from './er/layout';
169
- export type { ERLayoutResult, ERLayoutNode, ERLayoutEdge } from './er/layout';
170
-
171
- export { renderERDiagram, renderERDiagramForExport } from './er/renderer';
172
-
173
- export type {
174
- ParsedGraph,
175
- GraphNode,
176
- GraphEdge,
177
- GraphGroup,
178
- GraphShape,
179
- GraphDirection,
180
- } from './graph/types';
181
-
182
- export type { TagGroup, TagEntry } from './utils/tag-groups';
183
-
184
- export { parseInlineMarkdown, truncateBareUrl } from './utils/inline-markdown';
185
- export type { InlineSpan } from './utils/inline-markdown';
186
-
187
- export {
188
- normalizeName,
189
- displayName,
190
- getOrCreateName,
191
- } from './utils/name-normalize';
192
- export type { NameEntry, GetOrCreateNameResult } from './utils/name-normalize';
193
-
194
- export { parseOrg } from './org/parser';
195
- export type { ParsedOrg, OrgNode } from './org/parser';
196
-
197
- export { layoutOrg } from './org/layout';
198
- export type {
199
- OrgLayoutResult,
200
- OrgLayoutNode,
201
- OrgLayoutEdge,
202
- OrgContainerBounds,
203
- } from './org/layout';
204
-
205
- export { renderOrg, renderOrgForExport } from './org/renderer';
206
-
207
- export { parseKanban } from './kanban/parser';
208
- export type {
209
- ParsedKanban,
210
- KanbanColumn,
211
- KanbanCard,
212
- KanbanTagGroup,
213
- KanbanTagEntry,
214
- } from './kanban/types';
215
- export {
216
- computeCardMove,
217
- computeCardArchive,
218
- isArchiveColumn,
219
- } from './kanban/mutations';
220
- export { renderKanban, renderKanbanForExport } from './kanban/renderer';
221
-
222
- export { parseC4 } from './c4/parser';
223
- export type {
224
- ParsedC4,
225
- C4Element,
226
- C4ElementType,
227
- C4Shape,
228
- C4ArrowType,
229
- C4Relationship,
230
- C4Group,
231
- C4DeploymentNode,
232
- C4TagGroup,
233
- C4TagEntry,
234
- } from './c4/types';
235
-
236
- export {
237
- layoutC4Context,
238
- layoutC4Containers,
239
- layoutC4Components,
240
- layoutC4Deployment,
241
- rollUpContextRelationships,
242
- } from './c4/layout';
243
- export type {
244
- C4LayoutResult,
245
- C4LayoutNode,
246
- C4LayoutEdge,
247
- C4LayoutBoundary,
248
- C4LegendGroup,
249
- C4LegendEntry,
250
- ContextRelationship,
251
- } from './c4/layout';
252
-
253
- export {
254
- renderC4Context,
255
- renderC4ContextForExport,
256
- renderC4Containers,
257
- renderC4ContainersForExport,
258
- renderC4ComponentsForExport,
259
- renderC4Deployment,
260
- renderC4DeploymentForExport,
261
- } from './c4/renderer';
262
-
263
- export { parseBoxesAndLines } from './boxes-and-lines/parser';
264
- export type {
265
- ParsedBoxesAndLines,
266
- BLNode,
267
- BLEdge,
268
- BLGroup,
269
- } from './boxes-and-lines/types';
270
- export { layoutBoxesAndLines } from './boxes-and-lines/layout';
271
- export type {
272
- BLLayoutResult,
273
- BLLayoutNode,
274
- BLLayoutEdge,
275
- BLLayoutGroup,
276
- } from './boxes-and-lines/layout';
277
- export {
278
- renderBoxesAndLines,
279
- renderBoxesAndLinesForExport,
280
- } from './boxes-and-lines/renderer';
281
-
282
- export { collapseBoxesAndLines } from './boxes-and-lines/collapse';
283
- export type { BLCollapseResult } from './boxes-and-lines/collapse';
284
-
285
- export { parseSitemap, looksLikeSitemap } from './sitemap/parser';
286
-
287
- export type {
288
- ParsedSitemap,
289
- SitemapNode,
290
- SitemapEdge,
291
- SitemapDirection,
292
- } from './sitemap/types';
293
-
294
- export { layoutSitemap } from './sitemap/layout';
295
- export type {
296
- SitemapLayoutResult,
297
- SitemapLayoutNode,
298
- SitemapLayoutEdge,
299
- SitemapContainerBounds,
300
- SitemapLegendGroup,
301
- SitemapLegendEntry,
302
- } from './sitemap/layout';
303
-
304
- export { renderSitemap, renderSitemapForExport } from './sitemap/renderer';
305
-
306
- export { collapseSitemapTree } from './sitemap/collapse';
307
-
308
- // ── Infra Chart ────────────────────────────────────────────
309
- export { parseInfra } from './infra/parser';
310
- export type {
311
- ParsedInfra,
312
- InfraNode,
313
- InfraEdge,
314
- InfraGroup,
315
- InfraTagGroup,
316
- InfraProperty,
317
- InfraDiagnostic,
318
- InfraComputeParams,
319
- InfraBehaviorKey,
320
- } from './infra/types';
321
- export { INFRA_BEHAVIOR_KEYS } from './infra/types';
322
- export { computeInfra } from './infra/compute';
323
- export type {
324
- ComputedInfraModel,
325
- ComputedInfraNode,
326
- ComputedInfraEdge,
327
- InfraLatencyPercentiles,
328
- InfraAvailabilityPercentiles,
329
- InfraCbState,
330
- } from './infra/types';
331
- export { validateInfra, validateComputed } from './infra/validation';
332
- export { inferRoles, collectDiagramRoles } from './infra/roles';
333
- export type { InfraRole } from './infra/roles';
334
- export { layoutInfra } from './infra/layout';
335
- export type {
336
- InfraLayoutResult,
337
- InfraLayoutNode,
338
- InfraLayoutEdge,
339
- InfraLayoutGroup,
340
- } from './infra/layout';
341
- export {
342
- renderInfra,
343
- parseAndLayoutInfra,
344
- computeInfraLegendGroups,
345
- } from './infra/renderer';
346
- export type { InfraLegendGroup, InfraPlaybackState } from './infra/renderer';
347
- export type { CollapsedSitemapResult } from './sitemap/collapse';
348
-
349
- // ── Gantt Chart ───────────────────────────────────────────
350
- export { parseGantt } from './gantt/parser';
351
- export { calculateSchedule } from './gantt/calculator';
352
- export { renderGantt, buildTagLaneRowList } from './gantt/renderer';
353
- export type {
354
- GanttInteractiveOptions,
355
- GanttRow,
356
- GanttGroupRow,
357
- GanttTaskRow,
358
- GanttLaneHeaderRow,
359
- } from './gantt/renderer';
360
- export { resolveTaskName, collectTasks } from './gantt/resolver';
361
- export type {
362
- ParsedGantt,
363
- GanttTask,
364
- GanttGroup,
365
- GanttParallelBlock,
366
- GanttNode,
367
- GanttDependency,
368
- GanttHolidays,
369
- GanttEra,
370
- GanttMarker,
371
- GanttOptions,
372
- Duration,
373
- DurationUnit,
374
- ResolvedSchedule,
375
- ResolvedTask,
376
- ResolvedGroup,
377
- } from './gantt/types';
378
-
379
- // ── PERT Diagram ──────────────────────────────────────────
380
- export { parsePert, looksLikePert, extractPertSymbols } from './pert/parser';
381
- export { analyzePert } from './pert/analyzer';
382
- export { layoutPert, relayoutPert } from './pert/layout';
383
- export type { LayoutOverrides as PertLayoutOverrides } from './pert/internal';
384
- export { normalizePertSourceForShare } from './pert/share-normalize';
385
-
386
- // Monte Carlo simulator surface (formerly the `/pert` subpath, now folded
387
- // in here since there were zero subpath consumers and modern tree-shaking
388
- // handles the Web Worker bundle-size case).
389
- export {
390
- mulberry32,
391
- sampleBetaPert,
392
- simulateCanonical,
393
- simulateFast,
394
- buildSimulationContext,
395
- } from './pert/monte-carlo';
396
- export type { ExpandedActivity, SimulateOptions } from './pert/monte-carlo';
397
- export {
398
- renderPert,
399
- renderPertForExport,
400
- renderPertAnalysisBlock,
401
- measurePertAnalysisBlock,
402
- highlightPertCriticalPath,
403
- highlightPertSet,
404
- pertLegendEntries,
405
- pertLegendBlockWidth,
406
- PERT_LEGEND_PILL_HEIGHT,
407
- renderLegendBlock as renderPertLegendBlock,
408
- resetPertCriticalPath,
409
- resetPertHighlight,
410
- } from './pert/renderer';
411
- export type { PertRenderOptions } from './pert/renderer';
412
- export type {
413
- Anchor as PertAnchor,
414
- ParsedPert,
415
- PertActivity,
416
- PertEdge,
417
- PertGroup,
418
- PertMilestone,
419
- PertOptions,
420
- PertDirection,
421
- NodeDetail,
422
- ResolvedActivity,
423
- ResolvedGroup as ResolvedPertGroup,
424
- ResolvedPert,
425
- MonteCarloResult,
426
- PertLayoutNode,
427
- PertLayoutEdge,
428
- PertLayoutGroup,
429
- LayoutResult as PertLayoutResult,
430
- } from './pert/types';
431
-
432
- export { collapseOrgTree, focusOrgTree } from './org/collapse';
433
- export type {
434
- CollapsedOrgResult,
435
- FocusOrgResult,
436
- AncestorInfo,
437
- } from './org/collapse';
438
-
439
- export { parseMindmap } from './mindmap/parser';
440
- export type {
441
- MindmapNode,
442
- ParsedMindmap,
443
- MindmapLayoutNode,
444
- MindmapLayoutEdge,
445
- MindmapLayoutResult,
446
- } from './mindmap/types';
447
- export { layoutMindmap } from './mindmap/layout';
448
- export { renderMindmap, renderMindmapForExport } from './mindmap/renderer';
449
- export { collapseMindmapTree } from './mindmap/collapse';
450
- export type { CollapsedMindmapResult } from './mindmap/collapse';
451
-
452
- export { parseWireframe } from './wireframe/parser';
453
- export type {
454
- ParsedWireframe,
455
- WireframeElement,
456
- WireframeElementType,
457
- WireframeFormFactor,
458
- } from './wireframe/types';
459
- export { layoutWireframe } from './wireframe/layout';
460
- export type { WireframeLayout, WireframeLayoutNode } from './wireframe/layout';
461
- export { renderWireframe } from './wireframe/renderer';
462
-
463
- export { parseTechRadar } from './tech-radar/parser';
464
- export { computeRadarLayout, getRadarGeometry } from './tech-radar/layout';
465
- export {
466
- renderTechRadar,
467
- renderTechRadarForExport,
468
- } from './tech-radar/renderer';
469
- export {
470
- renderQuadrantFocus,
471
- renderQuadrantFocusForExport,
472
- } from './tech-radar/interactive';
473
- export type {
474
- ParsedTechRadar,
475
- TechRadarRing,
476
- TechRadarQuadrant,
477
- TechRadarBlip,
478
- TechRadarLayoutPoint,
479
- QuadrantPosition,
480
- BlipTrend,
481
- } from './tech-radar/types';
482
-
483
- export { parseCycle } from './cycle/parser';
484
- export { computeCycleLayout } from './cycle/layout';
485
- export { renderCycle, renderCycleForExport } from './cycle/renderer';
486
- export type { CycleRenderOptions } from './cycle/renderer';
487
- export type {
488
- ParsedCycle,
489
- CycleNode,
490
- CycleEdge,
491
- CycleLayoutNode,
492
- CycleLayoutEdge,
493
- CycleLayoutResult,
494
- } from './cycle/types';
495
-
496
- export { parseJourneyMap } from './journey-map/parser';
497
- export { layoutJourneyMap } from './journey-map/layout';
498
- export type { JourneyMapLayout } from './journey-map/layout';
499
- export {
500
- renderJourneyMap,
501
- renderJourneyMapForExport,
502
- } from './journey-map/renderer';
503
- export type {
504
- ParsedJourneyMap,
505
- JourneyMapPhase,
506
- JourneyMapStep,
507
- JourneyMapPersona,
508
- JourneyMapAnnotation,
509
- } from './journey-map/types';
510
- export type { JourneyMapInteractiveOptions } from './journey-map/renderer';
511
-
512
- export { parsePyramid } from './pyramid/parser';
513
- export { renderPyramid, renderPyramidForExport } from './pyramid/renderer';
514
- export type { ParsedPyramid, PyramidLayer } from './pyramid/types';
515
-
516
- export { parseRing } from './ring/parser';
517
- export { renderRing, renderRingForExport } from './ring/renderer';
518
- export type { ParsedRing, RingLayer } from './ring/types';
519
-
520
- export type { RaciDragSource, RaciInteractionHandlers } from './raci';
521
- export {
522
- parseRaci,
523
- renderRaci,
524
- renderRaciForExport,
525
- VARIANTS as RACI_VARIANTS,
526
- RACI_ERROR_CODES,
527
- RACI_WARNING_CODES,
528
- cellReplace as raciCellReplace,
529
- cellAppendMarker as raciCellAppendMarker,
530
- cellRemove as raciCellRemove,
531
- cellCycle as raciCellCycle,
532
- } from './raci';
533
- export type {
534
- ParsedRaci,
535
- RaciVariant,
536
- RaciMarker,
537
- RaciTask,
538
- RaciPhase,
539
- RaciRoleAssignment,
540
- } from './raci';
541
-
542
- export { resolveOrgImports } from './org/resolver';
543
- export type {
544
- ReadFileFn,
545
- ResolveImportsResult,
546
- ImportSource,
547
- } from './org/resolver';
548
-
549
- export { layoutGraph } from './graph/layout';
550
- export type {
551
- LayoutResult,
552
- LayoutNode,
553
- LayoutEdge,
554
- LayoutGroup,
555
- LayoutOptions,
556
- } from './graph/layout';
557
-
558
- export {
559
- renderFlowchart,
560
- renderFlowchartForExport,
561
- } from './graph/flowchart-renderer';
562
-
563
- // ============================================================
564
- // Config Builders (produce framework-specific config objects)
565
- // ============================================================
566
-
567
- export {
568
- buildExtendedChartOption,
569
- buildSimpleChartOption,
570
- renderExtendedChartForExport,
571
- getExtendedChartLegendGroups,
572
- getSimpleChartLegendGroups,
573
- computeScatterLabelGraphics,
574
- } from './echarts';
575
- export type { ScatterLabelPoint } from './echarts';
576
- export {
577
- renderLegendSvg,
578
- renderLegendSvgFromConfig,
579
- type LegendGroupData,
580
- } from './utils/legend-svg';
581
- export { LEGEND_HEIGHT, LEGEND_GEAR_PILL_W } from './utils/legend-constants';
582
- export { renderLegendD3 } from './utils/legend-d3';
583
- export {
584
- computeLegendLayout,
585
- controlsGroupCapsuleWidth,
586
- getLegendReservedHeight,
587
- } from './utils/legend-layout';
588
- export type {
589
- LegendConfig,
590
- LegendState,
591
- LegendCallbacks,
592
- LegendPosition,
593
- LegendMode,
594
- LegendControl,
595
- LegendLayout,
596
- LegendHandle,
597
- LegendPalette,
598
- } from './utils/legend-types';
599
- // ============================================================
600
- // Renderers (produce SVG output)
601
- // ============================================================
602
-
603
- export {
604
- renderSlopeChart,
605
- renderArcDiagram,
606
- renderTimeline,
607
- renderWordCloud,
608
- renderVenn,
609
- renderQuadrant,
610
- renderForExport,
611
- } from './d3';
612
-
613
- export {
614
- renderSequenceDiagram,
615
- buildRenderSequence,
616
- computeActivations,
617
- applyPositionOverrides,
618
- applyGroupOrdering,
619
- groupMessagesBySection,
620
- buildNoteMessageMap,
621
- } from './sequence/renderer';
622
- export type {
623
- RenderStep,
624
- Activation,
625
- SectionMessageGroup,
626
- SequenceRenderOptions,
627
- } from './sequence/renderer';
628
-
629
- export { applyCollapseProjection } from './sequence/collapse';
630
- export type { CollapsedView } from './sequence/collapse';
631
-
632
- // ============================================================
633
- // Colors & Palettes
634
- // ============================================================
635
-
636
- export {
637
- resolveColor,
638
- resolveColorWithDiagnostic,
639
- colorNames,
640
- nord,
641
- seriesColors,
642
- RECOGNIZED_COLOR_NAMES,
643
- isRecognizedColorName,
644
- } from './colors';
645
-
646
- export {
647
- // Registry
648
- getPalette,
649
- getAvailablePalettes,
650
- registerPalette,
651
- isValidHex,
652
- // Utilities
653
- hexToHSL,
654
- hslToHex,
655
- hexToHSLString,
656
- tint,
657
- shade,
658
- getSeriesColors,
659
- contrastText,
660
- // Palette definitions
661
- nordPalette,
662
- solarizedPalette,
663
- catppuccinPalette,
664
- rosePinePalette,
665
- gruvboxPalette,
666
- tokyoNightPalette,
667
- oneDarkPalette,
668
- boldPalette,
669
- draculaPalette,
670
- monokaiPalette,
671
- } from './palettes';
672
-
673
- export type { PaletteConfig, PaletteColors } from './palettes';
674
- export { mix, shapeFill } from './palettes/color-utils';
675
-
676
- // ============================================================
677
- // Sharing (URL encoding/decoding)
678
- // ============================================================
679
-
680
- export {
681
- encodeDiagramUrl,
682
- decodeDiagramUrl,
683
- encodeViewState,
684
- decodeViewState,
685
- } from './sharing';
686
- export type {
687
- EncodeDiagramUrlOptions,
688
- EncodeDiagramUrlResult,
689
- CompactViewState,
690
- DecodedDiagramUrl,
691
- } from './sharing';
692
-
693
- // ============================================================
694
- // Completion (symbol extraction API)
695
- // ============================================================
696
-
697
- export {
698
- registerExtractor,
699
- extractDiagramSymbols,
700
- COMPLETION_REGISTRY,
701
- CHART_TYPES,
702
- METADATA_KEY_SET,
703
- ENTITY_TYPES,
704
- PIPE_METADATA,
705
- extractTagDeclarations,
706
- } from './completion';
707
- export type {
708
- DiagramSymbols,
709
- ExtractFn,
710
- DirectiveSpec,
711
- DirectiveValueSpec,
712
- PipeKeySpec,
713
- } from './completion';
714
-
715
- export { parseFirstLine, ALL_CHART_TYPES } from './utils/parsing';
716
-
717
- // ============================================================
718
- // Additional exports introduced by the API freeze
7
+ // import { } from '@diagrammo/dgmo/internal';
8
+ //
9
+ // import { … } from '@diagrammo/dgmo/advanced';
10
+ //
11
+ // The `/internal` subpath will be removed in 0.17.x.
719
12
  // ============================================================
720
13
 
721
- // Namespace constants (also exported from the public root)
722
- export { palettes } from './palettes';
723
- export { themes, type Theme } from './themes';
724
-
725
- // Public-API alias for parseDgmo (also exported from the public root as `validate`)
726
- export { parseDgmo as validate } from './dgmo-router';
14
+ export * from './advanced';