@uniweb/build 1.18.0 → 1.18.2

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": "@uniweb/build",
3
- "version": "1.18.0",
3
+ "version": "1.18.2",
4
4
  "description": "Build tooling for the Uniweb Component Web Platform",
5
5
  "type": "module",
6
6
  "exports": {
@@ -57,14 +57,14 @@
57
57
  "sharp": "^0.35.5",
58
58
  "yaml": "^2.5.0",
59
59
  "@uniweb/content-reader": "~1.5.9",
60
+ "@uniweb/theming": "~1.3.2",
60
61
  "@uniweb/schemas": "~1.6.11",
61
- "@uniweb/theming": "~1.3.0",
62
- "@uniweb/semantic-parser": "~1.13.2",
63
- "@uniweb/projections": "~1.2.12",
64
- "@uniweb/content-writer": "~1.3.1"
62
+ "@uniweb/projections": "~1.2.13",
63
+ "@uniweb/content-writer": "~1.3.1",
64
+ "@uniweb/semantic-parser": "~1.13.2"
65
65
  },
66
66
  "optionalDependencies": {
67
- "@uniweb/runtime": "~1.5.0"
67
+ "@uniweb/runtime": "~1.5.3"
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.6",
77
- "@uniweb/runtime": "~1.5.0"
76
+ "@uniweb/core": "~1.6.8",
77
+ "@uniweb/runtime": "~1.5.3"
78
78
  },
79
79
  "peerDependenciesMeta": {
80
80
  "vite": {
@@ -245,10 +245,19 @@ export function unreadFolders(stylesPath) {
245
245
  }))
246
246
  }
247
247
 
248
+ /**
249
+ * The one line that ends the problem, rather than a folder at a time: Tailwind then reads the whole
250
+ * foundation in a site build too, and `unreadFolders` has nothing to look for. The scaffold and the
251
+ * starter templates write it since 2026-11-06.
252
+ */
253
+ export const READ_WHOLE_FOUNDATION = '@import "tailwindcss" source("./");'
254
+
248
255
  /** What a site build and `uniweb dev` print when `unreadFolders` finds any: it is them that lose the classes. */
249
256
  export function unreadFoldersWarning(unread) {
250
257
  return [
251
- "[uniweb] The foundation's styles.css names no @source for code that writes classes, so a site build and `uniweb dev` miss any class only that code uses, though the foundation's own build has it. Add:",
258
+ "[uniweb] The foundation's styles.css names no @source for code that writes classes, so a site build and `uniweb dev` miss any class only that code uses, though the foundation's own build has it. Have Tailwind read the whole foundation, and no folder can be left out:",
259
+ ` ${READ_WHOLE_FOUNDATION}`,
260
+ ' Or add:',
252
261
  ...unread.map(({ line }) => ` ${line}`)
253
262
  ].join('\n')
254
263
  }
@@ -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 (defaults, context, initialState, background, data, vars)
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}`)
@@ -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)