@rien7/design-surface 0.1.2 → 0.1.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rien7/design-surface",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "description": "A TSX-native design surface: preview real components, tune tokens, and hand structured changes to a coding agent.",
6
6
  "license": "MIT",
@@ -139,6 +139,15 @@ type PageBoardProps = {
139
139
 
140
140
  The board renders `renderFrame(frame)` for each state. The system renders the frame chrome, iframe, loading/error states, selection and comments.
141
141
 
142
+ ## Exploring directions (side-by-side comparison)
143
+
144
+ When requirements or visual direction are still open, **show 2–3 concrete directions side by side on one `PageBoard`** instead of describing alternatives in prose:
145
+
146
+ - Put each direction in its own frame on the same page (`direction-a`, `direction-b`, `direction-c`) with identical viewport sizes so visual density, hierarchy, and token usage are directly comparable.
147
+ - Use editor-level `PageBoard` annotations (short title + 1–2 line trade-off caption above or below each `renderFrame(frame)`) to explain what each option optimizes for — annotations stay outside the iframes so they never pollute inspection or comments.
148
+ - Build every direction from real `src/` components and declared tokens (or `propose token` with fallback if a direction introduces a new semantic role).
149
+ - Once the human picks a direction (via comment or chat), keep the winning implementation in `src/`, remove the discarded direction frames, and expand the remaining page into concrete interaction states (`default`, `loading`, `empty`, `error`).
150
+
142
151
  ## Free layout (`FreeCanvas` & `FreeItem`)
143
152
 
144
153
  Use `FreeCanvas` and `FreeItem` from `@rien7/design-surface/runtime` when a frame has free-positioned elements that can be Alt-dragged or adjusted numerically in the Inspector: