uniweb 1.13.2 → 1.13.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 +6 -6
- package/partials/agents.md +1 -1
- package/src/commands/doctor.js +13 -5
- package/src/framework-index.json +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uniweb",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.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.3.0",
|
|
45
|
-
"@uniweb/semantic-parser": "~1.12.
|
|
46
|
-
"@uniweb/
|
|
47
|
-
"@uniweb/
|
|
45
|
+
"@uniweb/semantic-parser": "~1.12.2",
|
|
46
|
+
"@uniweb/schemas": "~1.5.0",
|
|
47
|
+
"@uniweb/content-writer": "~1.3.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@uniweb/build": "~1.5.2",
|
|
51
|
-
"@uniweb/
|
|
52
|
-
"@uniweb/
|
|
51
|
+
"@uniweb/content-reader": "~1.5.4",
|
|
52
|
+
"@uniweb/semantic-parser": "~1.12.2"
|
|
53
53
|
},
|
|
54
54
|
"peerDependenciesMeta": {
|
|
55
55
|
"@uniweb/build": {
|
package/partials/agents.md
CHANGED
|
@@ -1117,7 +1117,7 @@ Names only — for signatures and props, read the package: it's on disk at `node
|
|
|
1117
1117
|
@import "@uniweb/kit/prose-tokens.css"; /* kit's prose layer, wired to theme.yml */
|
|
1118
1118
|
```
|
|
1119
1119
|
|
|
1120
|
-
Nothing to install. **Skip the import and prose is completely unstyled** — lists lose their bullets and numbers, and text its typography — while the markup looks right. The foundation build warns about it, and `uniweb doctor` flags it. `size` picks a step (`prose-sm` … `prose-2xl`) of the site's reading size, which `theme.yml` sets under `vars:` — `prose-size`, `prose-leading`, `prose-measure`, `prose-flow`, `prose-h1` … `prose-h4`; spread `proseVars` from `@uniweb/kit/prose-vars` into `main.js`'s `vars` to declare them. A utility class or an element variant (`prose-headings:
|
|
1120
|
+
Nothing to install. **Skip the import and prose is completely unstyled** — lists lose their bullets and numbers, and text its typography — while the markup looks right. The foundation build warns about it, and `uniweb doctor` flags it. `size` picks a step (`prose-sm` … `prose-2xl`) of the site's reading size, which `theme.yml` sets under `vars:` — `prose-size`, `prose-leading`, `prose-measure`, `prose-flow`, `prose-h1` … `prose-h4`; spread `proseVars` from `@uniweb/kit/prose-vars` into `main.js`'s `vars` to declare them. `<Prose>` and `<Article>` fill their box (`max-w-none`), so `prose-measure` reaches only a `prose` element written without it — set their width on the box around them. A utility class or an element variant (`prose-headings:tracking-tight`, `prose-a:no-underline`) overrides any rule; `prose-a:` leaves a content button its own look. There are no palette modifiers and no `prose-invert` — the colors are already the theme's, light and dark.
|
|
1121
1121
|
|
|
1122
1122
|
**Documentation shells:** `useHeadings()` (the page's headings + the one being read, derived from content so it prerenders), `website.getBranchHierarchy({ route, for })` (the page tree for one branch). Kit ships no ready-made layout — a layout is your foundation's design; write it in `src/layouts/` and use these for the behaviour.
|
|
1123
1123
|
**Layout helpers:** `useGridLayout(columns, { gap })`, `useAccordion({ multiple, defaultOpen })`
|
package/src/commands/doctor.js
CHANGED
|
@@ -190,21 +190,29 @@ export function rendersKitProse(dir) {
|
|
|
190
190
|
)
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
-
/**
|
|
193
|
+
/**
|
|
194
|
+
* Does a stylesheet load Tailwind Typography itself? A line commented out loads
|
|
195
|
+
* nothing. ⛔ Until 2026-10-19 one was read as loaded, so the first step of
|
|
196
|
+
* removing the plugin drew a warning to remove it.
|
|
197
|
+
*/
|
|
194
198
|
export function loadsTypographyPlugin(styles) {
|
|
195
|
-
|
|
199
|
+
const css = String(styles || '').replace(/\/\*[\s\S]*?\*\//g, '')
|
|
200
|
+
return /@plugin\s+["']@tailwindcss\/typography["']/.test(css)
|
|
196
201
|
}
|
|
197
202
|
|
|
198
203
|
/**
|
|
199
204
|
* Tailwind Typography's palette modifiers and `prose-invert`, wherever a
|
|
200
|
-
* foundation's source names one in a class list — `dark:prose-invert` included
|
|
201
|
-
*
|
|
205
|
+
* foundation's source names one in a class list — `dark:prose-invert` included,
|
|
206
|
+
* and marked important either way (`!prose-invert`, `prose-invert!`). Comments
|
|
207
|
+
* are skipped, since a comment warning against one names it too. What it reads
|
|
208
|
+
* is the source's text, so the same word in a sentence a component renders is
|
|
209
|
+
* read as a class as well.
|
|
202
210
|
*
|
|
203
211
|
* @returns {{ file: string, modifiers: string[] }[]}
|
|
204
212
|
*/
|
|
205
213
|
export function inertProseModifiers(dir) {
|
|
206
214
|
const MODIFIER =
|
|
207
|
-
/(?:^|[\s"'
|
|
215
|
+
/(?:^|[\s"'`:!])(prose-(?:gray|slate|zinc|neutral|stone|invert|red|orange|amber|yellow|lime|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose))(?=$|[\s"'`!])/gm
|
|
208
216
|
const found = []
|
|
209
217
|
forEachSourceFile(dir, (text, file) => {
|
|
210
218
|
const code = text.replace(/\/\*[\s\S]*?\*\//g, '').replace(/(^|[^:])\/\/.*$/gm, '$1')
|
package/src/framework-index.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"generatedAt": "2026-10-
|
|
3
|
+
"generatedAt": "2026-10-19T18:20:17.536Z",
|
|
4
4
|
"packages": {
|
|
5
5
|
"@uniweb/api": {
|
|
6
6
|
"version": "1.6.0"
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"version": "1.5.2"
|
|
10
10
|
},
|
|
11
11
|
"@uniweb/content-reader": {
|
|
12
|
-
"version": "1.5.
|
|
12
|
+
"version": "1.5.4"
|
|
13
13
|
},
|
|
14
14
|
"@uniweb/content-writer": {
|
|
15
15
|
"version": "1.3.0"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"version": "1.0.4"
|
|
25
25
|
},
|
|
26
26
|
"@uniweb/kit": {
|
|
27
|
-
"version": "1.5.
|
|
27
|
+
"version": "1.5.1"
|
|
28
28
|
},
|
|
29
29
|
"@uniweb/loom": {
|
|
30
30
|
"version": "1.1.0"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"version": "1.1.4"
|
|
37
37
|
},
|
|
38
38
|
"@uniweb/runtime": {
|
|
39
|
-
"version": "1.1.
|
|
39
|
+
"version": "1.1.10"
|
|
40
40
|
},
|
|
41
41
|
"@uniweb/scene": {
|
|
42
42
|
"version": "1.0.1"
|
|
@@ -48,13 +48,13 @@
|
|
|
48
48
|
"version": "1.1.0"
|
|
49
49
|
},
|
|
50
50
|
"@uniweb/semantic-parser": {
|
|
51
|
-
"version": "1.12.
|
|
51
|
+
"version": "1.12.2"
|
|
52
52
|
},
|
|
53
53
|
"@uniweb/snapshot": {
|
|
54
54
|
"version": "1.1.0"
|
|
55
55
|
},
|
|
56
56
|
"@uniweb/templates": {
|
|
57
|
-
"version": "1.1.
|
|
57
|
+
"version": "1.1.3"
|
|
58
58
|
},
|
|
59
59
|
"@uniweb/theming": {
|
|
60
60
|
"version": "1.2.0"
|