@diagrammo/dgmo 0.8.6 → 0.8.8
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/.claude/commands/dgmo.md +1 -27
- package/.cursorrules +2 -2
- package/.github/copilot-instructions.md +2 -2
- package/.windsurfrules +2 -2
- package/AGENTS.md +2 -2
- package/README.md +0 -1
- package/dist/index.cjs +8 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/docs/ai-integration.md +1 -1
- package/docs/language-reference.md +81 -162
- package/package.json +1 -1
- package/src/boxes-and-lines/parser.ts +4 -1
- package/src/gantt/parser.ts +4 -1
- package/src/infra/parser.ts +4 -1
- package/src/kanban/parser.ts +4 -1
- package/src/utils/tag-groups.ts +38 -14
package/dist/index.js
CHANGED
|
@@ -1655,7 +1655,9 @@ function parseTagDeclaration(line10) {
|
|
|
1655
1655
|
restStartIdx = 2;
|
|
1656
1656
|
}
|
|
1657
1657
|
} else {
|
|
1658
|
-
const aliasKeywordIdx = tokens.findIndex(
|
|
1658
|
+
const aliasKeywordIdx = tokens.findIndex(
|
|
1659
|
+
(t, i) => i > 0 && t.toLowerCase() === "alias"
|
|
1660
|
+
);
|
|
1659
1661
|
if (aliasKeywordIdx > 0 && aliasKeywordIdx + 1 < tokens.length) {
|
|
1660
1662
|
name = tokens.slice(0, aliasKeywordIdx).map((t) => stripQuotes(t)).join(" ");
|
|
1661
1663
|
alias = tokens[aliasKeywordIdx + 1];
|
|
@@ -1717,9 +1719,7 @@ function resolveTagColor(metadata, tagGroups, activeGroupName, isContainer) {
|
|
|
1717
1719
|
if (!group) return void 0;
|
|
1718
1720
|
const metaValue = metadata[group.name.toLowerCase()] ?? (isContainer ? void 0 : group.defaultValue);
|
|
1719
1721
|
if (!metaValue) return "#999999";
|
|
1720
|
-
return group.entries.find(
|
|
1721
|
-
(e) => e.value.toLowerCase() === metaValue.toLowerCase()
|
|
1722
|
-
)?.color ?? "#999999";
|
|
1722
|
+
return group.entries.find((e) => e.value.toLowerCase() === metaValue.toLowerCase())?.color ?? "#999999";
|
|
1723
1723
|
}
|
|
1724
1724
|
function validateTagValues(entities, tagGroups, pushWarning, suggestFn) {
|
|
1725
1725
|
if (tagGroups.length === 0) return;
|
|
@@ -1756,7 +1756,10 @@ function injectDefaultTagMetadata(entities, tagGroups, skip) {
|
|
|
1756
1756
|
const defaults = [];
|
|
1757
1757
|
for (const group of tagGroups) {
|
|
1758
1758
|
if (group.defaultValue) {
|
|
1759
|
-
defaults.push({
|
|
1759
|
+
defaults.push({
|
|
1760
|
+
key: group.name.toLowerCase(),
|
|
1761
|
+
value: group.defaultValue
|
|
1762
|
+
});
|
|
1760
1763
|
}
|
|
1761
1764
|
}
|
|
1762
1765
|
if (defaults.length === 0) return;
|