@markdy/cli 0.8.5 → 0.8.7

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 (2) hide show
  1. package/dist/index.js +10 -0
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -57,6 +57,10 @@ function formatNode(node) {
57
57
  let line = `${node.kind} ${node.id}`;
58
58
  if (node.label !== node.id && node.label) line += ` ${JSON.stringify(node.label)}`;
59
59
  if (node.style) line += ` style=${node.style}`;
60
+ const extraProps = Object.entries(node.props).filter(([key]) => key !== "style");
61
+ for (const [key, value] of extraProps) {
62
+ line += ` ${key}=${formatValue(value)}`;
63
+ }
60
64
  return line;
61
65
  }
62
66
  function formatEdge(edge) {
@@ -114,6 +118,12 @@ function formatCue(cue) {
114
118
  if (cue.dur !== void 0) line += ` dur=${cue.dur}s`;
115
119
  return line;
116
120
  }
121
+ if (cue.kind === "frame") {
122
+ let line = `frame ${cue.targets.join(" ")}`;
123
+ if (cue.zoom !== void 0) line += ` zoom=${cue.zoom}`;
124
+ if (cue.dur !== void 0) line += ` dur=${cue.dur}s`;
125
+ return line;
126
+ }
117
127
  if (cue.kind === "use") {
118
128
  const args = Object.entries(cue.args).map(([k, v]) => k.startsWith("__pos_") ? v : `${k}=${v}`).join(", ");
119
129
  return `use ${cue.pattern}(${args})`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markdy/cli",
3
- "version": "0.8.5",
3
+ "version": "0.8.7",
4
4
  "description": "First-party CLI for MarkdyScript diagrams: lint, format, explain, render, and a local playground.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -41,9 +41,9 @@
41
41
  "access": "public"
42
42
  },
43
43
  "dependencies": {
44
- "@markdy/core": "0.8.5",
45
- "@markdy/renderer-dom": "0.8.5",
46
- "@markdy/stdlib-systems": "0.8.5"
44
+ "@markdy/core": "0.8.7",
45
+ "@markdy/renderer-dom": "0.8.7",
46
+ "@markdy/stdlib-systems": "0.8.7"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/node": "^25.9.5",