frameboard 0.10.0 → 0.12.0
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 +9 -7
- package/dist/cli.js +3988 -1750
- package/dist/client/assets/index-C-i2pm1f.js +110 -0
- package/dist/client/assets/index-eTwqW6cj.css +2 -0
- package/dist/client/index.html +2 -2
- package/dist/hook.js +413 -223
- package/package.json +5 -5
- package/dist/client/assets/index-CrIbj1Es.css +0 -2
- package/dist/client/assets/index-DkaM313M.js +0 -110
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ A local design board that coding agents draw on as plain HTML files, and you rev
|
|
|
14
14
|
npx frameboard serve
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
In a folder with no board above it, `serve` creates `.frameboard/` there with one empty project
|
|
17
|
+
In a folder with no board above it, `serve` creates `.frameboard/` there with one empty project and opens it at `http://127.0.0.1:4173` in a tab that can edit, where a first page asks for a project name, a screen size, and a look. A tab you open on that address yourself only reads, so run `frameboard open` for another that edits.
|
|
18
18
|
|
|
19
19
|
Install it with `npm install -g frameboard` or `bun add -g frameboard`.
|
|
20
20
|
|
|
@@ -39,6 +39,7 @@ A board folder holds projects, a project holds pages, and a page holds frames.
|
|
|
39
39
|
Frames share one look through a `tokens.css` in the board folder, which a project's own `tokens.css` overrides.
|
|
40
40
|
|
|
41
41
|
- `serve --tokens <path>` takes a sheet another tool manages instead
|
|
42
|
+
- `project tokens <project> --accent <preset> --font <face>` writes a starter sheet where no sheet reaches the project, and refuses where one does
|
|
42
43
|
- The server puts the sheets and three faces, Geist, Geist Mono, and Caveat, ahead of each frame's own styles as it serves the frame
|
|
43
44
|
- The file on disk stays as written
|
|
44
45
|
- One toggle switches the board and every frame between light and dark
|
|
@@ -50,7 +51,7 @@ Frames share one look through a `tokens.css` in the board folder, which a projec
|
|
|
50
51
|
The `project`, `page`, and `frame` commands manage the board on disk, and `list` shows it.
|
|
51
52
|
|
|
52
53
|
- `edit` changes one style, attribute, or text on one element without touching another byte
|
|
53
|
-
- `show` points the open board at a frame, and `capture` writes PNGs of a frame or page in either theme
|
|
54
|
+
- `show` points the open board at a frame, or offers Go while you are mid-action or it sits in another project, and `capture` writes PNGs of a frame or page in either theme
|
|
54
55
|
- `frame add` with no size makes a frame that hugs its content, which a running server measures after each write, and `frame fit` sets a height to its content and keeps it hugging
|
|
55
56
|
- `inspect` lists each rendered element with the index `edit` takes, its box, and its computed color and type
|
|
56
57
|
- `frameboard docs` prints every command, flag, record shape, and exit code
|
|
@@ -60,7 +61,7 @@ The `project`, `page`, and `frame` commands manage the board on disk, and `list`
|
|
|
60
61
|
`frameboard check` reports every content rule a frame breaks, such as a link outside its page folder or colors set for one theme alone, and exits 8 on any error.
|
|
61
62
|
|
|
62
63
|
- The board runs the same rules on each change, and a frame's findings badge opens the list, which the inspector shows too
|
|
63
|
-
- A running server adds the rules only a browser can see, being clipped content,
|
|
64
|
+
- A running server adds the rules only a browser can see, being clipped content, an inner scrollbar, content sized off the viewport, text under a project's minimum size, and dropped CSS
|
|
64
65
|
|
|
65
66
|
### Claims
|
|
66
67
|
|
|
@@ -69,7 +70,8 @@ An agent runs `editing` on a frame before rewriting it.
|
|
|
69
70
|
- The board then outlines the frame and tags it with the agent and how long it has held it, and a second session that tries to claim it is told it is taken
|
|
70
71
|
- A claim lapses five minutes after the agent last ran `editing`, and a note sent from a claimed frame goes to the session holding it
|
|
71
72
|
- When you move, resize, edit, rename, or delete a claimed frame, your edit waits until the claim ends, under a card naming the agent
|
|
72
|
-
- A move
|
|
73
|
+
- A move or resize then goes only if the agent left the frame as you saw it, and a rename or delete goes once the claim ends
|
|
74
|
+
- An element edit goes if the agent left that element alone, and otherwise comes back, with typed text kept in the Text field to apply again
|
|
73
75
|
|
|
74
76
|
### Change marks and following
|
|
75
77
|
|
|
@@ -105,15 +107,15 @@ Pin a note on a frame or one element with the Note tool, and Send hands it to a
|
|
|
105
107
|
|
|
106
108
|
### Hand edits
|
|
107
109
|
|
|
108
|
-
In the board you move and resize frames, Alt-drag one to drop a copy, and hold Space to pan with any tool. You add, rename, reorder, delete, and search pages, and add a frame at a phone, tablet, or desktop size with the Frame tool.
|
|
110
|
+
In the board you move and resize frames, Alt-drag one to drop a copy, and hold Space to pan with any tool. You add, rename, reorder, delete, and search pages, and add a frame at a phone, tablet, or desktop size with the Frame tool. The inspector's Preview row redraws a frame at another width to watch it reflow, and writes nothing.
|
|
109
111
|
|
|
110
|
-
- On the home view, New project adds a project,
|
|
112
|
+
- On the home view, New project adds a project, a card's right-click menu opens, renames, duplicates, pins, or deletes one, and Sort orders them by last edited, created, or name, in either direction
|
|
111
113
|
- The inspector edits a selected element's name, opacity, radius, type size, weight, alignment, fill, stroke color, shadow, and text, its numbers stepping on arrow keys and scrubbing from their label
|
|
112
114
|
- The layers panel selects, renames, restacks, hides, and locks frames, renames elements, and Cmd+D, Cmd+C, Cmd+X, and Cmd+V duplicate, copy, cut, and paste them across pages and projects
|
|
113
115
|
- Cmd+F finds a frame, an element, or a line of copy on any page of the project and jumps to it
|
|
114
116
|
- Right-click a frame, element, empty canvas, page, or layers row for its actions, such as Copy as PNG, Fit height, or Flip to light, which shows that frame alone in the other theme until reload
|
|
115
117
|
|
|
116
|
-
Colors come from the inspector's picker, which holds a hex field, opacity, and the project's tokens as swatches, and flags a color no token names.
|
|
118
|
+
The Text and Shape tools drop a paragraph, rectangle, ellipse, or divider into a frame's layout where you click, and a double-click types over selected text in place. Colors come from the inspector's picker, which holds a hex field, opacity, and the project's tokens as swatches, and flags a color no token names.
|
|
117
119
|
|
|
118
120
|
Undo any of it with Cmd+Z. An undo of something an agent has changed since is refused and named on the board, so it never reverts the agent's work. Releases before 1.0 ship the board in stages, and the rest of editing by hand arrives in later 0.x releases.
|
|
119
121
|
|