uniweb 1.15.1 → 1.15.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 +4 -4
- package/partials/agents.md +5 -4
- package/src/framework-index.json +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uniweb",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.3",
|
|
4
4
|
"description": "Create structured Vite + React sites with content/code separation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
"prompts": "^2.4.2",
|
|
43
43
|
"tar": "^7.0.0",
|
|
44
44
|
"@uniweb/core": "~1.4.0",
|
|
45
|
+
"@uniweb/schemas": "~1.6.2",
|
|
45
46
|
"@uniweb/semantic-parser": "~1.12.2",
|
|
46
|
-
"@uniweb/schemas": "~1.6.0",
|
|
47
47
|
"@uniweb/content-writer": "~1.3.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@uniweb/
|
|
50
|
+
"@uniweb/content-reader": "~1.5.4",
|
|
51
51
|
"@uniweb/semantic-parser": "~1.12.2",
|
|
52
|
-
"@uniweb/
|
|
52
|
+
"@uniweb/build": "~1.7.3"
|
|
53
53
|
},
|
|
54
54
|
"peerDependenciesMeta": {
|
|
55
55
|
"@uniweb/build": {
|
package/partials/agents.md
CHANGED
|
@@ -246,8 +246,9 @@ Each `meta.js` is a catalog entry: `description` (what the type is for), `conten
|
|
|
246
246
|
#### `family:` — so an editor can draw your section
|
|
247
247
|
|
|
248
248
|
An editor showing an author a section picker has to know what each section type
|
|
249
|
-
**is**, to pick its illustration and a label it can translate.
|
|
250
|
-
it, in this
|
|
249
|
+
**is**, to pick its illustration, its icon and a label it can translate. The icon
|
|
250
|
+
is the family's — there is no `icon:` to declare. Two ways to tell it, in this
|
|
251
|
+
order:
|
|
251
252
|
|
|
252
253
|
1. **Name the component for its family.** Run `uniweb families`, and use one of
|
|
253
254
|
those names when it fits — `Hero`, `Footer`, `Pricing`, `FAQ`, `CardGrid`.
|
|
@@ -1173,7 +1174,7 @@ Header.className = 'p-0'
|
|
|
1173
1174
|
Header.as = 'header'
|
|
1174
1175
|
```
|
|
1175
1176
|
|
|
1176
|
-
**A header that stays in view is a setting, not a class.** `sticky top-0` on your component's markup does nothing: a sticky element moves only within its parent, and the section's wrapper and the area's are as tall as your header. Declare `sticky: true` in the type's `meta.js` — an author turns it off with `sticky: false` — and the runtime makes sticky the box that can stay in view. A section in the body sticks the same way and stays below the stuck header by itself: the runtime measures how far the header reaches and publishes it as `--uw-sticky-top` (a type's `top` overrides it). A child section in kit's `<ChildGrid>` stays in view beside the column it sits next to, and on a phone, at one column, scrolls with the page. A sticky section inside a box with `overflow: hidden` cannot stick — clip with `overflow: clip`. A layout of your own that wraps an area in an element makes that element sticky when `page.isSticky('header')`. `uniweb dev` names a sticky element that cannot move in the console.
|
|
1177
|
+
**A header that stays in view is a setting, not a class.** `sticky top-0` on your component's markup does nothing: a sticky element moves only within its parent, and the section's wrapper and the area's are as tall as your header. Declare `sticky: true` in the type's `meta.js` — an author turns it off with `sticky: false` — and the runtime makes sticky the box that can stay in view. A section in the body sticks the same way and stays below the stuck header by itself: the runtime measures how far the header reaches and publishes it as `--uw-sticky-top` (a type's `top` overrides it). A link to a section lands below the stuck header too. A child section in kit's `<ChildGrid>` stays in view beside the column it sits next to, and on a phone, at one column, scrolls with the page. A sticky section inside a box with `overflow: hidden` cannot stick — clip with `overflow: clip`. A layout of your own that wraps an area in an element makes that element sticky when `page.isSticky('header')`. `uniweb dev` names a sticky element that cannot move in the console.
|
|
1177
1178
|
|
|
1178
1179
|
### meta.js
|
|
1179
1180
|
|
|
@@ -1182,7 +1183,7 @@ export default {
|
|
|
1182
1183
|
title: 'Feature Grid',
|
|
1183
1184
|
description: 'Grid of feature cards with icons',
|
|
1184
1185
|
family: 'features', // the standard section type it is — the editor's
|
|
1185
|
-
// illustration and label (`uniweb families`). Optional;
|
|
1186
|
+
// illustration, icon and label (`uniweb families`). Optional;
|
|
1186
1187
|
// a name like `Features` resolves on its own
|
|
1187
1188
|
// hidden: true, // Exclude from export entirely (internal helpers)
|
|
1188
1189
|
// background: 'self', // Component renders its own background
|
package/src/framework-index.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"generatedAt": "2026-10-
|
|
3
|
+
"generatedAt": "2026-10-21T02:39:28.417Z",
|
|
4
4
|
"packages": {
|
|
5
5
|
"@uniweb/api": {
|
|
6
6
|
"version": "1.6.2"
|
|
7
7
|
},
|
|
8
8
|
"@uniweb/build": {
|
|
9
|
-
"version": "1.7.
|
|
9
|
+
"version": "1.7.3"
|
|
10
10
|
},
|
|
11
11
|
"@uniweb/content-reader": {
|
|
12
12
|
"version": "1.5.4"
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"version": "1.1.6"
|
|
37
37
|
},
|
|
38
38
|
"@uniweb/runtime": {
|
|
39
|
-
"version": "1.1.
|
|
39
|
+
"version": "1.1.15"
|
|
40
40
|
},
|
|
41
41
|
"@uniweb/scene": {
|
|
42
42
|
"version": "1.0.1"
|
|
43
43
|
},
|
|
44
44
|
"@uniweb/schemas": {
|
|
45
|
-
"version": "1.6.
|
|
45
|
+
"version": "1.6.2"
|
|
46
46
|
},
|
|
47
47
|
"@uniweb/scholar": {
|
|
48
48
|
"version": "1.1.0"
|