@nodii/dev 0.6.16 → 0.6.17

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/figma.js CHANGED
@@ -106,10 +106,10 @@ export function figmaChangeSetText(cs) {
106
106
  }
107
107
 
108
108
  // Scoped design locks (DEC-0032, MW1-57.6 to 57.9). A scope is written
109
- // kind:id on the command line: component:NODE, page:NODE, foundations, or
110
- // create:PAGE:NAME. A node id from a figma.com link (12-34) is Figma's 12:34.
109
+ // kind:id on the command line: component:NODE, page:NODE, section:NODE,
110
+ // foundations, or create:PAGE:NAME. A node id from a figma.com link (12-34) is Figma's 12:34.
111
111
  const nodeId = (text) => (/^\d+-\d+$/.test(text) ? text.replace("-", ":") : text);
112
- const SCOPE_USAGE = "--scope component:NODE_ID | page:NODE_ID | foundations | create:PAGE_ID:NAME";
112
+ const SCOPE_USAGE = "--scope component:NODE_ID | page:NODE_ID | section:NODE_ID | foundations | create:PAGE_ID:NAME";
113
113
 
114
114
  export function parseScope(value) {
115
115
  const text = typeof value === "string" ? value.trim() : "";
@@ -119,7 +119,7 @@ export function parseScope(value) {
119
119
  if (create && create[2].trim() && create[2].trim().length <= 200)
120
120
  return { kind: "create", pageId: nodeId(create[1]), name: create[2].trim() };
121
121
  // Dev takes a scope at a top-level node: a plain id, never an instance's (I1:2;3:4).
122
- const node = text.match(/^(component|page):(\d+[:-]\d+)$/);
122
+ const node = text.match(/^(component|page|section):(\d+[:-]\d+)$/);
123
123
  if (!node) throw bad();
124
124
  return { kind: node[1], nodeId: nodeId(node[2]) };
125
125
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nodii/dev",
3
- "version": "0.6.16",
3
+ "version": "0.6.17",
4
4
  "description": "Agent CLI for Nodii Dev, reached through the platform edge",
5
5
  "type": "module",
6
6
  "bin": {