@nodii/dev 0.6.192 → 0.6.193

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.192";
7
+ export const VERSION = "0.6.193";
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 = 45;
37
+ export const GENERATOR_FORMAT = 46;
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
@@ -1114,6 +1114,10 @@ function liftRecordData(code, node, ctx, path, scope = scopeName(node)) {
1114
1114
  return label ? `<InputChip${attrs.replace(label[0], `label={${lift(positionScope(node, ctx, "chip"), "label")}}`)}${close}>` : all;
1115
1115
  });
1116
1116
  out = out.replace(new RegExp(String.raw`<((?:Alert)?Dialog(Title|Description))\b([^>]*)>\{"(?:[^"\\\n]|\\.)*"\}</\1>`, "g"), (_, tag, part, attrs) => `<${tag}${attrs}>{${lift(camelName(ctx.state ?? "dialog"), part.toLowerCase())}}</${tag}>`);
1117
+ // An Attachment's title and description are the file the person chose, never Figma's sample
1118
+ // ("Trademark renewal notice.pdf", "PDF · 1.3 MB", "Upload failed"): one `fileName` and
1119
+ // `fileDetail` in every view, as a dialog's file is one file in each state (NODII-DEV-CLI-139).
1120
+ out = out.replace(/<(Attachment(Title|Description))\b([^>]*)>\{"(?:[^"\\\n]|\\.)*"\}<\/\1>/g, (_, tag, part, attrs) => `<${tag}${attrs}>{${lift("attachment", part === "Title" ? "fileName" : "fileDetail")}}</${tag}>`);
1117
1121
  out = out.replace(/<DescriptionItem\b([^>]*?)\/>/g, (all, attrs) => {
1118
1122
  const value = new RegExp(String.raw`\bvalue=${LITERAL}`).exec(attrs);
1119
1123
  if (!value) return all;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nodii/dev",
3
- "version": "0.6.192",
3
+ "version": "0.6.193",
4
4
  "description": "Agent CLI for Nodii Dev, reached through the platform edge",
5
5
  "type": "module",
6
6
  "bin": {