@uniweb/build 1.18.0 → 1.18.1
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 +8 -8
- package/src/generate-entry.js +4 -1
- package/src/runtime-schema.js +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniweb/build",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.1",
|
|
4
4
|
"description": "Build tooling for the Uniweb Component Web Platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -56,15 +56,15 @@
|
|
|
56
56
|
"js-yaml": "^4.3.2",
|
|
57
57
|
"sharp": "^0.35.5",
|
|
58
58
|
"yaml": "^2.5.0",
|
|
59
|
-
"@uniweb/content-reader": "~1.5.9",
|
|
60
59
|
"@uniweb/schemas": "~1.6.11",
|
|
61
|
-
"@uniweb/theming": "~1.3.
|
|
60
|
+
"@uniweb/theming": "~1.3.1",
|
|
61
|
+
"@uniweb/content-reader": "~1.5.9",
|
|
62
|
+
"@uniweb/content-writer": "~1.3.1",
|
|
62
63
|
"@uniweb/semantic-parser": "~1.13.2",
|
|
63
|
-
"@uniweb/projections": "~1.2.
|
|
64
|
-
"@uniweb/content-writer": "~1.3.1"
|
|
64
|
+
"@uniweb/projections": "~1.2.13"
|
|
65
65
|
},
|
|
66
66
|
"optionalDependencies": {
|
|
67
|
-
"@uniweb/runtime": "~1.5.
|
|
67
|
+
"@uniweb/runtime": "~1.5.1"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"@tailwindcss/vite": "^4.0.0",
|
|
74
74
|
"@vitejs/plugin-react": "^4.0.0 || ^5.0.0",
|
|
75
75
|
"vite-plugin-svgr": "^4.0.0",
|
|
76
|
-
"@uniweb/core": "~1.6.
|
|
77
|
-
"@uniweb/runtime": "~1.5.
|
|
76
|
+
"@uniweb/core": "~1.6.7",
|
|
77
|
+
"@uniweb/runtime": "~1.5.1"
|
|
78
78
|
},
|
|
79
79
|
"peerDependenciesMeta": {
|
|
80
80
|
"vite": {
|
package/src/generate-entry.js
CHANGED
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
* `meta` contains only properties needed at runtime (`runtime-schema.js`):
|
|
16
16
|
* - `background` - 'self' opt-out when component handles its own background
|
|
17
17
|
* - `sticky` - whether the section stays in view unless its author says otherwise
|
|
18
|
+
* - `underHeader` - whether the header lies over the section when it opens a page
|
|
19
|
+
* - `height` - a header type's height, for that page's first paint
|
|
20
|
+
* - `header` - whether the component draws the parser's header itself
|
|
18
21
|
* - `data` - the `content.data` keys the component declares, with their schema refs
|
|
19
22
|
* - `vars` - the CSS variables the component declares, with their defaults
|
|
20
23
|
* - `defaults` - Param default values
|
|
@@ -207,7 +210,7 @@ function generateEntrySource(components, options = {}) {
|
|
|
207
210
|
lines.push('const capabilities = null')
|
|
208
211
|
}
|
|
209
212
|
|
|
210
|
-
// Per-component runtime metadata (
|
|
213
|
+
// Per-component runtime metadata (`runtime-schema.js`)
|
|
211
214
|
lines.push('')
|
|
212
215
|
const metaJson = JSON.stringify(Object.keys(meta).length > 0 ? meta : {}, null, 2)
|
|
213
216
|
lines.push(`const meta = ${metaJson}`)
|
package/src/runtime-schema.js
CHANGED
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
*
|
|
7
7
|
* - background: 'self' when component handles its own background
|
|
8
8
|
* - sticky: { default, top? } — whether the section stays in view unless its author says
|
|
9
|
+
* - underHeader: true when the header lies over a section of this type that opens a page
|
|
10
|
+
* - height: a header type's height, a CSS length, for the first paint of a page whose opening
|
|
11
|
+
* section lies under the header
|
|
9
12
|
* - data: { <key>: <schema ref> | { schema, single?, whole? } | null } — every `content.data`
|
|
10
13
|
* key the component declares, in order, with its schema ref and the flags set on it (null for
|
|
11
14
|
* an inline shape)
|