@nodii/dev 0.6.168 → 0.6.169

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, mkdir, readFile, rm, writeFile } from "node:fs/promises";
4
4
  import { homedir, platform } from "node:os";
5
5
  import { dirname, join } from "node:path";
6
6
 
7
- export const VERSION = "0.6.168";
7
+ export const VERSION = "0.6.169";
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
@@ -32,7 +32,7 @@ import { CliError, VERSION, devRequest, readConfig } from "./core.js";
32
32
  import { createRenderer } from "./vendor/render-templates.mjs";
33
33
 
34
34
  /** Bumped whenever the emitted code changes shape for the same inputs. */
35
- export const GENERATOR_FORMAT = 36;
35
+ export const GENERATOR_FORMAT = 37;
36
36
  export const TREE_DIR = "docs/figma-ux-ds/figma/surface-trees";
37
37
  export const GENERATED_SUFFIX = ".surface.generated.tsx";
38
38
  /** Where every generated product page lives, as a git glob (NODII-DEV-CLI-77). */
@@ -1016,6 +1016,15 @@ function liftRecordData(code, node, ctx, path, scope = scopeName(node)) {
1016
1016
  const scope = nameOf(label ? literalText(label[1]) : node.name, node.name);
1017
1017
  return `<DescriptionItem${attrs.replace(value[0], `value={${lift(scope, "value")}}`)}/>`;
1018
1018
  });
1019
+ out = rewriteTags(out, "RightPaneIdentity", (attrs) => {
1020
+ const parsed = tagAttributes(`${attrs}>`, 0);
1021
+ if (!parsed) return attrs;
1022
+ const flat = maskStrings(attrs);
1023
+ return attrs.replace(new RegExp(String.raw`\b(number|name)=${LITERAL}`, "g"), (value, prop, at) => {
1024
+ const depth = [...flat.slice(0, at)].reduce((d, c) => d + (c === "{") - (c === "}"), 0);
1025
+ return depth === 0 && parsed.literals.has(prop) ? `${prop}={${lift(scope, prop)}}` : value;
1026
+ });
1027
+ });
1019
1028
  out = rewriteTags(out, "DetailFact|RightPaneRow", (attrs) => {
1020
1029
  const parsed = tagAttributes(`${attrs}>`, 0);
1021
1030
  if (!parsed?.literals.has("value")) return attrs;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nodii/dev",
3
- "version": "0.6.168",
3
+ "version": "0.6.169",
4
4
  "description": "Agent CLI for Nodii Dev, reached through the platform edge",
5
5
  "type": "module",
6
6
  "bin": {