@nodii/dev 0.6.207 → 0.6.208

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/core.js CHANGED
@@ -4,7 +4,7 @@ import { chmod, lstat, mkdir, readFile, rename, rm, writeFile } from "node:fs/pr
4
4
  import { homedir, platform } from "node:os";
5
5
  import { basename, dirname, join } from "node:path";
6
6
 
7
- export const VERSION = "0.6.207";
7
+ export const VERSION = "0.6.208";
8
8
  export const configPath = () =>
9
9
  process.env.NODII_DEV_CONFIG_PATH ??
10
10
  join(homedir(), ".config/nodii-dev/config.json");
package/dist/surface.js CHANGED
@@ -34,7 +34,7 @@ import { MIN_FIGMA_INTERVAL_MS, figmaRest } from "./figma-rest.js";
34
34
  import { createRenderer } from "./vendor/render-templates.mjs";
35
35
 
36
36
  /** Bumped whenever the emitted code changes shape for the same inputs. */
37
- export const GENERATOR_FORMAT = 62;
37
+ export const GENERATOR_FORMAT = 63;
38
38
  /**
39
39
  * DS parts that are an item of their parent's own list or grid, so they take no sizing
40
40
  * wrapper: a Detail Section / Row's facts are the section grid's cells, a Right Pane / Row
@@ -4175,14 +4175,17 @@ function tableOf(node, ctx) {
4175
4175
  const w = columnWidth(c.cell);
4176
4176
  let open = withAlign(`<TableCell${wrapperAttrs(w, first.row)}>`, i);
4177
4177
  let close = "</TableCell>";
4178
- if (c.code && !c.held) {
4179
- const emitted = emitNode(c.cell, { ...ctx, depth: 0, parent: null, path: `${ctx.path} › ${first.row.name}`, root: false, bare: true, inTable: true, scopes: null, note: () => {} });
4180
- const own = withWidth(c.selected ? selectedCell(emitted) : emitted, w).trim();
4178
+ // A union column's cell is the person cell's own, whichever row the frame draws first:
4179
+ // a plain first row would drop the rich cell's density (NODII-DEV-CLI-299).
4180
+ const sample = piiColumn[i] ? (mixedPii.get(i)?.sample ?? nullablePii.get(i)?.sample ?? personSamples.get(i) ?? c) : c;
4181
+ if (sample.code && !sample.held) {
4182
+ const emitted = emitNode(sample.cell, { ...ctx, depth: 0, parent: null, path: `${ctx.path} › ${first.row.name}`, root: false, bare: true, inTable: true, scopes: null, note: () => {} });
4183
+ const own = withWidth(sample.selected ? selectedCell(emitted) : emitted, w).trim();
4181
4184
  const end = openTagEnd(own);
4182
4185
  const tag = /^<([A-Za-z]+)/.exec(own)[1];
4183
4186
  open = withAlign(own.slice(0, end + 1).replace(/\s*\/>$/, ">"), i);
4184
4187
  close = `</${tag}>`;
4185
- if (oneLine(open, c.cell, own.slice(end + 1, own.lastIndexOf(close)), piiColumn[i])) open = withTruncate(open);
4188
+ if (oneLine(open, sample.cell, own.slice(end + 1, own.lastIndexOf(close)), piiColumn[i])) open = withTruncate(open);
4186
4189
  }
4187
4190
  // Selection is record data even when the drawing shows every row unchecked.
4188
4191
  if (/^<TableSelectionCell\b/.test(open)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nodii/dev",
3
- "version": "0.6.207",
3
+ "version": "0.6.208",
4
4
  "description": "Agent CLI for Nodii Dev, reached through the platform edge",
5
5
  "type": "module",
6
6
  "bin": {