uniweb 0.8.29 → 0.8.31
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 +4 -4
- package/partials/agents.md +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uniweb",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.31",
|
|
4
4
|
"description": "Create structured Vite + React sites with content/code separation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"prompts": "^2.4.2",
|
|
43
43
|
"tar": "^7.0.0",
|
|
44
44
|
"@uniweb/core": "0.5.18",
|
|
45
|
-
"@uniweb/kit": "0.7.
|
|
46
|
-
"@uniweb/runtime": "0.6.
|
|
45
|
+
"@uniweb/kit": "0.7.20",
|
|
46
|
+
"@uniweb/runtime": "0.6.26"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@uniweb/build": "0.8.
|
|
49
|
+
"@uniweb/build": "0.8.30",
|
|
50
50
|
"@uniweb/content-reader": "1.1.4",
|
|
51
51
|
"@uniweb/semantic-parser": "1.1.8"
|
|
52
52
|
},
|
package/partials/agents.md
CHANGED
|
@@ -502,6 +502,14 @@ export default function Grid({ block, params }) {
|
|
|
502
502
|
}
|
|
503
503
|
```
|
|
504
504
|
|
|
505
|
+
`ChildBlocks` renders each child as a bare component by default — no wrapper element, no context classes, no background. This is the right behavior for grid cells, tab panels, carousel slides, and inline children where the parent controls the container.
|
|
506
|
+
|
|
507
|
+
For the rare case where children should be independent sections with their own theming and backgrounds, pass `wrapAs`:
|
|
508
|
+
|
|
509
|
+
```jsx
|
|
510
|
+
<ChildBlocks from={block} wrapAs="div" />
|
|
511
|
+
```
|
|
512
|
+
|
|
505
513
|
**Data and child blocks:** Page-level `data:` is available to all blocks on the page, including children. Each child block resolves data independently through the same page → site hierarchy. If a child component needs data, declare it in the child's `meta.js` or in the child section's frontmatter (`data: articles`).
|
|
506
514
|
|
|
507
515
|
### Section Backgrounds
|