@orkestrel/scaffold 0.0.11 → 0.0.12

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.
@@ -227,11 +227,11 @@ var DEFAULT_VERSION = "0.0.1";
227
227
  /** The `engines.node` range the `blueprint` builder fills. */
228
228
  var DEFAULT_ENGINES = `>=${MINIMUM_NODE_VERSION}`;
229
229
  /** The devDependency range generated packages pin `@orkestrel/scaffold` at. */
230
- var SCAFFOLD_RANGE = "^0.0.11";
230
+ var SCAFFOLD_RANGE = "^0.0.12";
231
231
  /** Tooling versions shared by scaffold and every generated workspace. */
232
232
  var BASE_DEV_DEPENDENCIES = Object.freeze({
233
233
  "@microsoft/api-extractor": "^7.58.12",
234
- "@orkestrel/guide": "^0.0.7",
234
+ "@orkestrel/guide": "^0.0.8",
235
235
  "@orkestrel/scaffold": SCAFFOLD_RANGE,
236
236
  "@types/node": "^26.1.2",
237
237
  oxfmt: "^0.61.0",
@@ -610,7 +610,7 @@ function catalogNames(text) {
610
610
  *
611
611
  * @param header - The header cell strings, in column order.
612
612
  * @param rows - The body rows, each a list of cell strings matching `header`'s column count.
613
- * @param align - Optional per-column alignment; defaults every column to `'none'`.
613
+ * @param align - Optional per-column alignment; defaults every column to `null` (no alignment).
614
614
  * @remarks
615
615
  * Builds a `TableNode` (each cell parsed with `parseInline`) and serializes it
616
616
  * through `renderMarkdown`, which contributes the structure — `\|`-escaping any
@@ -629,13 +629,14 @@ function catalogNames(text) {
629
629
  */
630
630
  function alignTable(header, rows, align) {
631
631
  const columns = header.length;
632
- const alignment = align ?? header.map(() => "none");
633
- const lines = (0, _orkestrel_markdown.renderMarkdown)({
632
+ const alignment = align ?? header.map(() => null);
633
+ const node = {
634
634
  element: "table",
635
635
  header: header.map((cell) => (0, _orkestrel_markdown.parseInline)(cell)),
636
636
  rows: rows.map((row) => row.map((cell) => (0, _orkestrel_markdown.parseInline)(cell))),
637
637
  align: alignment
638
- }).split("\n");
638
+ };
639
+ const lines = (0, _orkestrel_markdown.renderMarkdown)(node).split("\n");
639
640
  const headerCells = splitTableRow(lines[0] ?? "");
640
641
  const bodyCells = lines.slice(2).map((line) => splitTableRow(line));
641
642
  const widths = [];
@@ -698,11 +699,11 @@ function padCell(text, width) {
698
699
  /**
699
700
  * Build one delimiter-row cell for a GFM table column.
700
701
  *
701
- * @param columnAlign - The column's `TableAlign`.
702
+ * @param columnAlign - The column's `TableAlign`, or `null` for no alignment.
702
703
  * @param width - The column's codepoint width.
703
704
  * @remarks
704
705
  * `'left'` prefixes `:`, `'right'` suffixes `:`, `'center'` wraps both ends,
705
- * `'none'` is plain dashes — one dash per width unit, `:` markers consuming
706
+ * `null` is plain dashes — one dash per width unit, `:` markers consuming
706
707
  * a dash slot rather than adding to `width`.
707
708
  * @returns The delimiter cell string for this column.
708
709
  *