@diagrammo/dgmo 0.62.1 → 0.63.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 +70 -1
- package/dist/advanced.js +83 -6
- package/dist/auto.js +1 -1
- package/dist/block.js +4 -4
- package/dist/chart-meta.js +2 -2
- package/dist/{chunk-3PVUGECM.js → chunk-AA4M6F2P.js} +2 -2
- package/dist/{chunk-OIK6Y2EJ.js → chunk-L57TSE53.js} +2 -2
- package/dist/{chunk-LFAQ4BLZ.js → chunk-MR2XKW35.js} +2 -2
- package/dist/{chunk-QDPMTFB4.js → chunk-QRHA7WIU.js} +6 -6
- package/dist/{chunk-65QX6LYT.js → chunk-SJGZSPSW.js} +9 -3
- package/dist/{chunk-FVYHDZ6Q.js → chunk-ZXLXAOCM.js} +2 -2
- package/dist/{dgmo-router-Z5N6QLIC.js → dgmo-router-QWRF7ZKM.js} +3 -3
- package/dist/element.js +1 -1
- package/dist/index.js +4 -4
- package/dist/{parser-SRUPRH77.js → parser-5WIZGKNE.js} +2 -2
- package/dist/{renderer-JSFWNV37.js → renderer-5SN6N5VN.js} +3 -3
- package/dist/{renderer-A5GFW2XH.js → renderer-CXAL2FYB.js} +5 -5
- package/fonts/coverage.json +1 -0
- package/package.json +3 -2
package/dist/block.js
CHANGED
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
} from "./chunk-D3K4U3ZM.js";
|
|
5
5
|
import {
|
|
6
6
|
render
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QRHA7WIU.js";
|
|
8
8
|
import {
|
|
9
9
|
docsLink,
|
|
10
10
|
renderErrorCard
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MR2XKW35.js";
|
|
12
12
|
import "./chunk-EOYPX6SF.js";
|
|
13
13
|
import "./chunk-2LN5C6FH.js";
|
|
14
14
|
import "./chunk-CVVICCSB.js";
|
|
@@ -27,7 +27,7 @@ import "./chunk-4ASYQ347.js";
|
|
|
27
27
|
import {
|
|
28
28
|
encodeDiagramUrl
|
|
29
29
|
} from "./chunk-U7VO6JAA.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-AA4M6F2P.js";
|
|
31
31
|
import "./chunk-2CMM36O7.js";
|
|
32
32
|
import "./chunk-A2RUBBVT.js";
|
|
33
33
|
import "./chunk-JWJBWNQL.js";
|
|
@@ -72,7 +72,7 @@ import "./chunk-EQW6HOP4.js";
|
|
|
72
72
|
import {
|
|
73
73
|
scanMonthNameDates
|
|
74
74
|
} from "./chunk-DAOFNU6J.js";
|
|
75
|
-
import "./chunk-
|
|
75
|
+
import "./chunk-SJGZSPSW.js";
|
|
76
76
|
import "./chunk-C3Z4DX3V.js";
|
|
77
77
|
import "./chunk-CHOKOYSC.js";
|
|
78
78
|
import "./chunk-7TF3QOOD.js";
|
package/dist/chart-meta.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-U7VO6JAA.js";
|
|
11
11
|
import {
|
|
12
12
|
parseDgmoChartType
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-AA4M6F2P.js";
|
|
14
14
|
import "./chunk-2CMM36O7.js";
|
|
15
15
|
import "./chunk-A2RUBBVT.js";
|
|
16
16
|
import "./chunk-JWJBWNQL.js";
|
|
@@ -52,7 +52,7 @@ import "./chunk-I7IQ2NEJ.js";
|
|
|
52
52
|
import "./chunk-O42EAZUV.js";
|
|
53
53
|
import "./chunk-EQW6HOP4.js";
|
|
54
54
|
import "./chunk-DAOFNU6J.js";
|
|
55
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-SJGZSPSW.js";
|
|
56
56
|
import "./chunk-C3Z4DX3V.js";
|
|
57
57
|
import "./chunk-CHOKOYSC.js";
|
|
58
58
|
import "./chunk-7TF3QOOD.js";
|
|
@@ -103,7 +103,7 @@ import {
|
|
|
103
103
|
import {
|
|
104
104
|
looksLikeSequence,
|
|
105
105
|
parseSequenceDgmo
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-SJGZSPSW.js";
|
|
107
107
|
import {
|
|
108
108
|
looksLikeFlowchart,
|
|
109
109
|
parseFlowchart
|
|
@@ -2031,4 +2031,4 @@ export {
|
|
|
2031
2031
|
knownChartTypeIds,
|
|
2032
2032
|
parseDgmo
|
|
2033
2033
|
};
|
|
2034
|
-
//# sourceMappingURL=chunk-
|
|
2034
|
+
//# sourceMappingURL=chunk-AA4M6F2P.js.map
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
isSequenceBlock,
|
|
34
34
|
isSequenceNote,
|
|
35
35
|
isSequenceSection
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-SJGZSPSW.js";
|
|
37
37
|
import {
|
|
38
38
|
resolveActiveTagGroup,
|
|
39
39
|
tagAttrKey
|
|
@@ -1907,4 +1907,4 @@ export {
|
|
|
1907
1907
|
renderSequenceDiagram,
|
|
1908
1908
|
buildNoteMessageMap
|
|
1909
1909
|
};
|
|
1910
|
-
//# sourceMappingURL=chunk-
|
|
1910
|
+
//# sourceMappingURL=chunk-L57TSE53.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-U7VO6JAA.js";
|
|
11
11
|
import {
|
|
12
12
|
parseDgmoChartType
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-AA4M6F2P.js";
|
|
14
14
|
import {
|
|
15
15
|
chartTypes
|
|
16
16
|
} from "./chunk-P2PUWV3Y.js";
|
|
@@ -204,4 +204,4 @@ export {
|
|
|
204
204
|
MONO_FAMILY,
|
|
205
205
|
renderErrorCard
|
|
206
206
|
};
|
|
207
|
-
//# sourceMappingURL=chunk-
|
|
207
|
+
//# sourceMappingURL=chunk-MR2XKW35.js.map
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
parseVenn,
|
|
46
46
|
parseVisualization,
|
|
47
47
|
parseWordcloud
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-AA4M6F2P.js";
|
|
49
49
|
import {
|
|
50
50
|
resolveActiveTagGroup,
|
|
51
51
|
tagAttrKey
|
|
@@ -1942,7 +1942,7 @@ function resolveArcChordOverride(content, detectedType, palette) {
|
|
|
1942
1942
|
}
|
|
1943
1943
|
async function renderForExport(content, theme, palette, viewState, options) {
|
|
1944
1944
|
const exportMode = options?.exportMode ?? false;
|
|
1945
|
-
const { parseDgmoChartType } = await import("./dgmo-router-
|
|
1945
|
+
const { parseDgmoChartType } = await import("./dgmo-router-QWRF7ZKM.js");
|
|
1946
1946
|
const detectedTypeRaw = parseDgmoChartType(content);
|
|
1947
1947
|
const override = resolveArcChordOverride(content, detectedTypeRaw, palette);
|
|
1948
1948
|
const renderContent = override?.content ?? content;
|
|
@@ -2839,7 +2839,7 @@ async function exportTreemap(ctx) {
|
|
|
2839
2839
|
async function exportLiveLink(ctx) {
|
|
2840
2840
|
const { content, theme, palette } = ctx;
|
|
2841
2841
|
const { parseLiveLink } = await import("./parser-KSIYWKYF.js");
|
|
2842
|
-
const { renderLiveLinkCard } = await import("./renderer-
|
|
2842
|
+
const { renderLiveLinkCard } = await import("./renderer-CXAL2FYB.js");
|
|
2843
2843
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2844
2844
|
return renderLiveLinkCard(parseLiveLink(content), effectivePalette, theme);
|
|
2845
2845
|
}
|
|
@@ -3049,8 +3049,8 @@ async function exportVisualization(ctx) {
|
|
|
3049
3049
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
3050
3050
|
const isDark = ctx.isDark;
|
|
3051
3051
|
const container = createExportContainer(ctx.width, ctx.height);
|
|
3052
|
-
const { parseSequenceDgmo } = await import("./parser-
|
|
3053
|
-
const { renderSequenceDiagram } = await import("./renderer-
|
|
3052
|
+
const { parseSequenceDgmo } = await import("./parser-5WIZGKNE.js");
|
|
3053
|
+
const { renderSequenceDiagram } = await import("./renderer-5SN6N5VN.js");
|
|
3054
3054
|
const seqParsed = parseSequenceDgmo(content, effectivePalette);
|
|
3055
3055
|
if (seqParsed.error || seqParsed.participants.length === 0) return "";
|
|
3056
3056
|
const collapsedSections = viewState?.cs ? new Set(viewState.cs) : void 0;
|
|
@@ -3713,4 +3713,4 @@ export {
|
|
|
3713
3713
|
renderForExport,
|
|
3714
3714
|
render
|
|
3715
3715
|
};
|
|
3716
|
-
//# sourceMappingURL=chunk-
|
|
3716
|
+
//# sourceMappingURL=chunk-QRHA7WIU.js.map
|
|
@@ -250,6 +250,12 @@ function parseSequenceDgmo(content, palette) {
|
|
|
250
250
|
const idByKey = /* @__PURE__ */ new Map();
|
|
251
251
|
const addParticipant = (name, lineNumber, extras) => {
|
|
252
252
|
const peeled = peelQuotedName(name);
|
|
253
|
+
if (peeled === name.trim() && peeled.includes(":")) {
|
|
254
|
+
pushError(
|
|
255
|
+
lineNumber,
|
|
256
|
+
`'${peeled}' is not a participant name \u2014 a colon here means the rest of the line was read as the name. Put the message inside the arrow: 'A -message-> B'`
|
|
257
|
+
);
|
|
258
|
+
}
|
|
253
259
|
const key = normalizeName(peeled);
|
|
254
260
|
const trimmed = peeled.trim();
|
|
255
261
|
const incomingLabel = extras?.label ?? trimmed;
|
|
@@ -727,10 +733,10 @@ function parseSequenceDgmo(content, palette) {
|
|
|
727
733
|
continue;
|
|
728
734
|
}
|
|
729
735
|
const colonPostfixSync = arrowCore.match(
|
|
730
|
-
/^(
|
|
736
|
+
/^(.+?)\s*->\s*([^:"]+?)\s*:\s*(.+)$/
|
|
731
737
|
);
|
|
732
738
|
const colonPostfixAsync = arrowCore.match(
|
|
733
|
-
/^(
|
|
739
|
+
/^(.+?)\s*~>\s*([^:"]+?)\s*:\s*(.+)$/
|
|
734
740
|
);
|
|
735
741
|
const colonPostfix = colonPostfixSync || colonPostfixAsync;
|
|
736
742
|
if (colonPostfix) {
|
|
@@ -1042,4 +1048,4 @@ export {
|
|
|
1042
1048
|
parseSequenceDgmo,
|
|
1043
1049
|
looksLikeSequence
|
|
1044
1050
|
};
|
|
1045
|
-
//# sourceMappingURL=chunk-
|
|
1051
|
+
//# sourceMappingURL=chunk-SJGZSPSW.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MONO_FAMILY
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MR2XKW35.js";
|
|
4
4
|
import {
|
|
5
5
|
FONT_FAMILY
|
|
6
6
|
} from "./chunk-6KFWC4CO.js";
|
|
@@ -62,4 +62,4 @@ function escapeXml(s) {
|
|
|
62
62
|
export {
|
|
63
63
|
renderLiveLinkCard
|
|
64
64
|
};
|
|
65
|
-
//# sourceMappingURL=chunk-
|
|
65
|
+
//# sourceMappingURL=chunk-ZXLXAOCM.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
looksLikeGantt,
|
|
10
10
|
parseDgmo,
|
|
11
11
|
parseDgmoChartType
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AA4M6F2P.js";
|
|
13
13
|
import "./chunk-2CMM36O7.js";
|
|
14
14
|
import "./chunk-A2RUBBVT.js";
|
|
15
15
|
import "./chunk-JWJBWNQL.js";
|
|
@@ -49,7 +49,7 @@ import "./chunk-I7IQ2NEJ.js";
|
|
|
49
49
|
import "./chunk-O42EAZUV.js";
|
|
50
50
|
import "./chunk-EQW6HOP4.js";
|
|
51
51
|
import "./chunk-DAOFNU6J.js";
|
|
52
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-SJGZSPSW.js";
|
|
53
53
|
import "./chunk-C3Z4DX3V.js";
|
|
54
54
|
import "./chunk-CHOKOYSC.js";
|
|
55
55
|
import "./chunk-7TF3QOOD.js";
|
|
@@ -86,4 +86,4 @@ export {
|
|
|
86
86
|
parseDgmo,
|
|
87
87
|
parseDgmoChartType
|
|
88
88
|
};
|
|
89
|
-
//# sourceMappingURL=dgmo-router-
|
|
89
|
+
//# sourceMappingURL=dgmo-router-QWRF7ZKM.js.map
|