@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/README.md CHANGED
@@ -181,12 +181,15 @@ one `--scope` per scope:
181
181
  | --- | --- |
182
182
  | `component:NODE_ID` | a component set or standalone component, at its top-level node (a variant id is taken as its set) |
183
183
  | `page:NODE_ID` | a whole Figma page: new screens, specimens, docs pages |
184
+ | `section:NODE_ID` | a Figma section and every node inside it (its own size and name too) |
184
185
  | `foundations` | the file's variables, text styles and effect styles; one holder at a time |
185
186
  | `create:PAGE_ID:NAME` | a new component, made on that page |
186
187
 
187
188
  A node id from a figma.com link (`12-34`) is read as Figma's `12:34`. Two
188
189
  sets conflict only when their scopes overlap: the same node, a page that holds
189
- a claimed component (or the reverse), or foundations already held. Dev
190
+ a claimed component or section (or the reverse), a section that holds a
191
+ claimed component or section (or the reverse), or foundations already held.
192
+ Sibling sections don't conflict. Dev
190
193
  refuses an overlap with `SCOPE_CONFLICT`; the CLI prints Dev's message, then
191
194
  the set holding the overlapping scope. `figma lock` without `--scope` locks the
192
195
  whole file, as older CLIs do, and that conflicts with every other set.
package/dist/cli.js CHANGED
@@ -100,7 +100,7 @@ Usage: nodii-dev <command> [options] [--json]
100
100
  # Dev's dry run of the submit gate on a set, with the image guard;
101
101
  # a stale version is a warning that prints when to retry
102
102
  figma lock FILE_KEY --title TEXT [--scope KIND:ID ...]
103
- # scopes: component:NODE page:NODE foundations create:PAGE:NAME;
103
+ # scopes: component:NODE page:NODE section:NODE foundations create:PAGE:NAME;
104
104
  # no --scope locks the whole file (DEC-0032)
105
105
  figma scope add CHANGE_SET --scope KIND:ID [--scope ...] # widen a held set's scopes
106
106
  figma scope set CHANGE_SET --scope KIND:ID [--scope ...] # narrow to exactly these; the rest frees
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.16";
7
+ export const VERSION = "0.6.17";
8
8
  export const configPath = () =>
9
9
  process.env.NODII_DEV_CONFIG_PATH ??
10
10
  join(homedir(), ".config/nodii-dev/config.json");