@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.
@@ -19,7 +19,7 @@ import { UnionShape } from '@orkestrel/contract';
19
19
  *
20
20
  * @param header - The header cell strings, in column order.
21
21
  * @param rows - The body rows, each a list of cell strings matching `header`'s column count.
22
- * @param align - Optional per-column alignment; defaults every column to `'none'`.
22
+ * @param align - Optional per-column alignment; defaults every column to `null` (no alignment).
23
23
  * @remarks
24
24
  * Builds a `TableNode` (each cell parsed with `parseInline`) and serializes it
25
25
  * through `renderMarkdown`, which contributes the structure — `\|`-escaping any
@@ -36,7 +36,7 @@ import { UnionShape } from '@orkestrel/contract';
36
36
  * // '| API | Kind |\n| --------------- | -------- |\n| `createRouter` | function |'
37
37
  * ```
38
38
  */
39
- export declare function alignTable(header: readonly string[], rows: readonly (readonly string[])[], align?: readonly TableAlign[]): string;
39
+ export declare function alignTable(header: readonly string[], rows: readonly (readonly string[])[], align?: readonly (TableAlign | null)[]): string;
40
40
 
41
41
  /** Additional development dependencies required by a private Vue browser application. */
42
42
  export declare const APP_BROWSER_DEV_DEPENDENCIES: Readonly<Record<string, string>>;
@@ -782,11 +782,11 @@ export declare function coreViteConfig(browser?: boolean): string;
782
782
  /**
783
783
  * Build one delimiter-row cell for a GFM table column.
784
784
  *
785
- * @param columnAlign - The column's `TableAlign`.
785
+ * @param columnAlign - The column's `TableAlign`, or `null` for no alignment.
786
786
  * @param width - The column's codepoint width.
787
787
  * @remarks
788
788
  * `'left'` prefixes `:`, `'right'` suffixes `:`, `'center'` wraps both ends,
789
- * `'none'` is plain dashes — one dash per width unit, `:` markers consuming
789
+ * `null` is plain dashes — one dash per width unit, `:` markers consuming
790
790
  * a dash slot rather than adding to `width`.
791
791
  * @returns The delimiter cell string for this column.
792
792
  *
@@ -797,7 +797,7 @@ export declare function coreViteConfig(browser?: boolean): string;
797
797
  * delimiterCell('left', 5) // ':----'
798
798
  * ```
799
799
  */
800
- export declare function delimiterCell(columnAlign: TableAlign, width: number): string;
800
+ export declare function delimiterCell(columnAlign: TableAlign | null, width: number): string;
801
801
 
802
802
  /**
803
803
  * One runtime `@orkestrel/*` dependency.
@@ -2276,7 +2276,7 @@ export declare function coreViteConfig(browser?: boolean): string;
2276
2276
  export declare function rootViteConfig(src: readonly Environment[], facts?: ViteFacts): string;
2277
2277
 
2278
2278
  /** The devDependency range generated packages pin `@orkestrel/scaffold` at. */
2279
- export declare const SCAFFOLD_RANGE = "^0.0.11";
2279
+ export declare const SCAFFOLD_RANGE = "^0.0.12";
2280
2280
 
2281
2281
  /**
2282
2282
  * Carries a `ScaffoldErrorCode` + optional `context` (AGENTS §12).
@@ -19,7 +19,7 @@ import { UnionShape } from '@orkestrel/contract';
19
19
  *
20
20
  * @param header - The header cell strings, in column order.
21
21
  * @param rows - The body rows, each a list of cell strings matching `header`'s column count.
22
- * @param align - Optional per-column alignment; defaults every column to `'none'`.
22
+ * @param align - Optional per-column alignment; defaults every column to `null` (no alignment).
23
23
  * @remarks
24
24
  * Builds a `TableNode` (each cell parsed with `parseInline`) and serializes it
25
25
  * through `renderMarkdown`, which contributes the structure — `\|`-escaping any
@@ -36,7 +36,7 @@ import { UnionShape } from '@orkestrel/contract';
36
36
  * // '| API | Kind |\n| --------------- | -------- |\n| `createRouter` | function |'
37
37
  * ```
38
38
  */
39
- export declare function alignTable(header: readonly string[], rows: readonly (readonly string[])[], align?: readonly TableAlign[]): string;
39
+ export declare function alignTable(header: readonly string[], rows: readonly (readonly string[])[], align?: readonly (TableAlign | null)[]): string;
40
40
 
41
41
  /** Additional development dependencies required by a private Vue browser application. */
42
42
  export declare const APP_BROWSER_DEV_DEPENDENCIES: Readonly<Record<string, string>>;
@@ -782,11 +782,11 @@ export declare function coreViteConfig(browser?: boolean): string;
782
782
  /**
783
783
  * Build one delimiter-row cell for a GFM table column.
784
784
  *
785
- * @param columnAlign - The column's `TableAlign`.
785
+ * @param columnAlign - The column's `TableAlign`, or `null` for no alignment.
786
786
  * @param width - The column's codepoint width.
787
787
  * @remarks
788
788
  * `'left'` prefixes `:`, `'right'` suffixes `:`, `'center'` wraps both ends,
789
- * `'none'` is plain dashes — one dash per width unit, `:` markers consuming
789
+ * `null` is plain dashes — one dash per width unit, `:` markers consuming
790
790
  * a dash slot rather than adding to `width`.
791
791
  * @returns The delimiter cell string for this column.
792
792
  *
@@ -797,7 +797,7 @@ export declare function coreViteConfig(browser?: boolean): string;
797
797
  * delimiterCell('left', 5) // ':----'
798
798
  * ```
799
799
  */
800
- export declare function delimiterCell(columnAlign: TableAlign, width: number): string;
800
+ export declare function delimiterCell(columnAlign: TableAlign | null, width: number): string;
801
801
 
802
802
  /**
803
803
  * One runtime `@orkestrel/*` dependency.
@@ -2276,7 +2276,7 @@ export declare function coreViteConfig(browser?: boolean): string;
2276
2276
  export declare function rootViteConfig(src: readonly Environment[], facts?: ViteFacts): string;
2277
2277
 
2278
2278
  /** The devDependency range generated packages pin `@orkestrel/scaffold` at. */
2279
- export declare const SCAFFOLD_RANGE = "^0.0.11";
2279
+ export declare const SCAFFOLD_RANGE = "^0.0.12";
2280
2280
 
2281
2281
  /**
2282
2282
  * Carries a `ScaffoldErrorCode` + optional `context` (AGENTS §12).
@@ -226,11 +226,11 @@ var DEFAULT_VERSION = "0.0.1";
226
226
  /** The `engines.node` range the `blueprint` builder fills. */
227
227
  var DEFAULT_ENGINES = `>=${MINIMUM_NODE_VERSION}`;
228
228
  /** The devDependency range generated packages pin `@orkestrel/scaffold` at. */
229
- var SCAFFOLD_RANGE = "^0.0.11";
229
+ var SCAFFOLD_RANGE = "^0.0.12";
230
230
  /** Tooling versions shared by scaffold and every generated workspace. */
231
231
  var BASE_DEV_DEPENDENCIES = Object.freeze({
232
232
  "@microsoft/api-extractor": "^7.58.12",
233
- "@orkestrel/guide": "^0.0.7",
233
+ "@orkestrel/guide": "^0.0.8",
234
234
  "@orkestrel/scaffold": SCAFFOLD_RANGE,
235
235
  "@types/node": "^26.1.2",
236
236
  oxfmt: "^0.61.0",
@@ -609,7 +609,7 @@ function catalogNames(text) {
609
609
  *
610
610
  * @param header - The header cell strings, in column order.
611
611
  * @param rows - The body rows, each a list of cell strings matching `header`'s column count.
612
- * @param align - Optional per-column alignment; defaults every column to `'none'`.
612
+ * @param align - Optional per-column alignment; defaults every column to `null` (no alignment).
613
613
  * @remarks
614
614
  * Builds a `TableNode` (each cell parsed with `parseInline`) and serializes it
615
615
  * through `renderMarkdown`, which contributes the structure — `\|`-escaping any
@@ -628,13 +628,14 @@ function catalogNames(text) {
628
628
  */
629
629
  function alignTable(header, rows, align) {
630
630
  const columns = header.length;
631
- const alignment = align ?? header.map(() => "none");
632
- const lines = renderMarkdown({
631
+ const alignment = align ?? header.map(() => null);
632
+ const node = {
633
633
  element: "table",
634
634
  header: header.map((cell) => parseInline(cell)),
635
635
  rows: rows.map((row) => row.map((cell) => parseInline(cell))),
636
636
  align: alignment
637
- }).split("\n");
637
+ };
638
+ const lines = renderMarkdown(node).split("\n");
638
639
  const headerCells = splitTableRow(lines[0] ?? "");
639
640
  const bodyCells = lines.slice(2).map((line) => splitTableRow(line));
640
641
  const widths = [];
@@ -697,11 +698,11 @@ function padCell(text, width) {
697
698
  /**
698
699
  * Build one delimiter-row cell for a GFM table column.
699
700
  *
700
- * @param columnAlign - The column's `TableAlign`.
701
+ * @param columnAlign - The column's `TableAlign`, or `null` for no alignment.
701
702
  * @param width - The column's codepoint width.
702
703
  * @remarks
703
704
  * `'left'` prefixes `:`, `'right'` suffixes `:`, `'center'` wraps both ends,
704
- * `'none'` is plain dashes — one dash per width unit, `:` markers consuming
705
+ * `null` is plain dashes — one dash per width unit, `:` markers consuming
705
706
  * a dash slot rather than adding to `width`.
706
707
  * @returns The delimiter cell string for this column.
707
708
  *