@synap-core/workspace-templates 0.55.0 → 0.56.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/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/designing-with-real-components/SKILL.md +15 -6
- package/src/builder.yaml +1 -1
- package/src/templates.ts +1 -1
package/package.json
CHANGED
|
@@ -96,10 +96,11 @@ page becomes one frame) and every save writes 3.
|
|
|
96
96
|
"page": {
|
|
97
97
|
"root": { "props": {} },
|
|
98
98
|
"content": [
|
|
99
|
-
{ "type": "
|
|
100
|
-
{ "type": "
|
|
101
|
-
|
|
102
|
-
{ "type": "
|
|
99
|
+
{ "type": "Section", "props": { "id": "sec1", "children": [
|
|
100
|
+
{ "type": "Stack", "props": { "id": "s1", "gap": "space-300", "children": [
|
|
101
|
+
{ "type": "Heading", "props": { "id": "h1", "text": "Welcome back", "level": "title" } },
|
|
102
|
+
{ "type": "SpatialButton", "props": { "id": "b1", "variant": "primary", "children": [
|
|
103
|
+
{ "type": "Text", "props": { "id": "t1", "text": "Continue" } } ] } } ] } } ] } }
|
|
103
104
|
]
|
|
104
105
|
}
|
|
105
106
|
}
|
|
@@ -112,8 +113,16 @@ page becomes one frame) and every save writes 3.
|
|
|
112
113
|
the frame grows with its content.
|
|
113
114
|
- Each `page` obeys section 2: real components only, a `props.id` unique within its frame, no hex, rgb, pixel value or
|
|
114
115
|
font family.
|
|
115
|
-
- Layout inside a frame is FLOW ONLY:
|
|
116
|
-
|
|
116
|
+
- Layout inside a frame is FLOW ONLY on a column grid: content goes in a `Section` (a band holding the
|
|
117
|
+
page's grid: 12 columns at 1024 px and wider, 8 from 600, 4 below); arrange inside with `Stack`, `Row`,
|
|
118
|
+
`Grid` (on the page's columns, a subgrid inside a Section), `Box`. A component never gets its own x or y.
|
|
119
|
+
- A block in a `Section` or `Grid` may carry `span` (`{ "compact": 1-4, "medium": 1-8, "expanded": 1-12 }`,
|
|
120
|
+
absent = the whole row) and `hide` (`{ "<class>": true }`); nothing else changes per width. Section
|
|
121
|
+
spacing and the page's side margin are the brand's tokens, never a prop.
|
|
122
|
+
- To show a screen at several widths, add viewport frames: `{ "id": "f2", "name": "Phone", "x": 1600,
|
|
123
|
+
"y": 0, "w": 390, "h": 844, "pageOf": "f1", "page": { "root": { "props": {} }, "content": [] } }` shows
|
|
124
|
+
f1's page at 390. Never copy a page into a second frame for another width.
|
|
125
|
+
- `Grid` has no `columns` prop (dropped and named on read).
|
|
117
126
|
- Layout blocks take exact values, never pixels: `gap`, `padding`, `paddingX`, `paddingY` take `none` or a
|
|
118
127
|
spacing name (`space-025`, `space-050`, `space-075`, `space-100`, `space-125`, `space-150`, `space-200`,
|
|
119
128
|
`space-250`, `space-300`, `space-400`, `space-500`, `space-600`, `space-800`, `space-1000`,
|
package/src/builder.yaml
CHANGED
|
@@ -1484,7 +1484,7 @@ profiles:
|
|
|
1484
1484
|
inputType: text
|
|
1485
1485
|
- slug: design-json
|
|
1486
1486
|
label: Design (Puck JSON)
|
|
1487
|
-
description: "A canvas (schema-version 3): a board { format, frames[] }, one frame per screen, each frame { id, name, x, y, w, h, page } holding a Puck page ({ content[] of { type, props: { id, … } }, root.props }) in flow layout, layout blocks
|
|
1487
|
+
description: "A canvas (schema-version 3): a board { format, frames[] }, one frame per screen, each frame { id, name, x, y, w, h, page } holding a Puck page ({ content[] of { type, props: { id, … } }, root.props }) in flow layout on the page's column grid (12 / 8 / 4 columns by the frame's width class: under 600 compact, under 1024 medium, else expanded): a `Section` block is a band holding that grid; a block in a Section or Grid may carry `span` {compact 1-4, medium 1-8, expanded 1-12} and `hide` {<class>: true}; a frame may show another frame's page at its own width (`pageOf: <frameId>`, its own page empty); layout blocks take token names, never px. A single screen is a canvas with one frame. Every type, at any depth and in every frame, is a component in the Storybook manifest."
|
|
1488
1488
|
valueType: json
|
|
1489
1489
|
inputType: json
|
|
1490
1490
|
- slug: components-used
|
package/src/templates.ts
CHANGED
|
@@ -5937,7 +5937,7 @@ const DATA = {
|
|
|
5937
5937
|
{
|
|
5938
5938
|
"slug": "design-json",
|
|
5939
5939
|
"label": "Design (Puck JSON)",
|
|
5940
|
-
"description": "A canvas (schema-version 3): a board { format, frames[] }, one frame per screen, each frame { id, name, x, y, w, h, page } holding a Puck page ({ content[] of { type, props: { id, … } }, root.props }) in flow layout, layout blocks
|
|
5940
|
+
"description": "A canvas (schema-version 3): a board { format, frames[] }, one frame per screen, each frame { id, name, x, y, w, h, page } holding a Puck page ({ content[] of { type, props: { id, … } }, root.props }) in flow layout on the page's column grid (12 / 8 / 4 columns by the frame's width class: under 600 compact, under 1024 medium, else expanded): a `Section` block is a band holding that grid; a block in a Section or Grid may carry `span` {compact 1-4, medium 1-8, expanded 1-12} and `hide` {<class>: true}; a frame may show another frame's page at its own width (`pageOf: <frameId>`, its own page empty); layout blocks take token names, never px. A single screen is a canvas with one frame. Every type, at any depth and in every frame, is a component in the Storybook manifest.",
|
|
5941
5941
|
"valueType": "json",
|
|
5942
5942
|
"inputType": "json"
|
|
5943
5943
|
},
|