@cssdoc/core 0.6.0 → 0.6.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/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { a as parseStructure, c as CssDocConfiguration, d as DEFAULT_STATE_PSEUDO_CLASSES, f as MODIFIER_PRESETS, i as parseDocComment, l as CssDocTagDefinition, m as resolveModifierConvention, n as toMermaid, o as recordNameOf, p as ModifierMatcher, r as RECORD_TAGS, s as stripCommentFraming, t as toJson, u as DEFAULT_MODIFIER_CONVENTION } from "./lite-CEVmwLGF.mjs";
1
+ import { a as parseStructure, c as CssDocConfiguration, d as DEFAULT_STATE_PSEUDO_CLASSES, f as MODIFIER_PRESETS, i as parseDocComment, l as CssDocTagDefinition, m as resolveModifierConvention, n as toMermaid, o as recordNameOf, p as ModifierMatcher, r as RECORD_TAGS, s as stripCommentFraming, t as toJson, u as DEFAULT_MODIFIER_CONVENTION } from "./lite-BIezja7y.mjs";
2
2
  import postcss from "postcss";
3
3
  //#region src/parse.ts
4
4
  /**
@@ -962,7 +962,8 @@ function toMermaid(roots, options = {}) {
962
962
  const walk = (node, isRoot) => {
963
963
  const id = `n${counter++}`;
964
964
  const { klass, label, href } = classify(node, isRoot, options);
965
- nodes.push(` ${SHAPE[klass](id, esc(label))}:::${klass}`);
965
+ const shown = node.description ? `${label} — ${node.description}` : label;
966
+ nodes.push(` ${SHAPE[klass](id, esc(shown))}:::${klass}`);
966
967
  if (href) links.push(` click ${id} "${href}"`);
967
968
  for (const child of node.children) {
968
969
  const childId = walk(child, false);
package/dist/lite.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { a as parseStructure, c as CssDocConfiguration, d as DEFAULT_STATE_PSEUDO_CLASSES, f as MODIFIER_PRESETS, i as parseDocComment, l as CssDocTagDefinition, m as resolveModifierConvention, n as toMermaid, o as recordNameOf, p as ModifierMatcher, r as RECORD_TAGS, s as stripCommentFraming, t as toJson, u as DEFAULT_MODIFIER_CONVENTION } from "./lite-CEVmwLGF.mjs";
1
+ import { a as parseStructure, c as CssDocConfiguration, d as DEFAULT_STATE_PSEUDO_CLASSES, f as MODIFIER_PRESETS, i as parseDocComment, l as CssDocTagDefinition, m as resolveModifierConvention, n as toMermaid, o as recordNameOf, p as ModifierMatcher, r as RECORD_TAGS, s as stripCommentFraming, t as toJson, u as DEFAULT_MODIFIER_CONVENTION } from "./lite-BIezja7y.mjs";
2
2
  export { CssDocConfiguration, CssDocTagDefinition, DEFAULT_MODIFIER_CONVENTION, DEFAULT_STATE_PSEUDO_CLASSES, MODIFIER_PRESETS, ModifierMatcher, RECORD_TAGS, parseDocComment, parseStructure, recordNameOf, resolveModifierConvention, stripCommentFraming, toJson, toMermaid };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cssdoc/core",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "A generic CSS documentation extractor: parse doc-comments + the CSS AST into a serializable model (TSDoc, for CSS).",
5
5
  "keywords": [
6
6
  "css",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "postcss": "^8.5.19",
36
- "@cssdoc/spec": "0.6.0"
36
+ "@cssdoc/spec": "0.6.1"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/node": "^24.13.3",