uniweb 0.13.9 → 0.13.11
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 +6 -0
- package/src/framework-index.json +7 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uniweb",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.11",
|
|
4
4
|
"description": "Create structured Vite + React sites with content/code separation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"js-yaml": "^4.1.0",
|
|
42
42
|
"prompts": "^2.4.2",
|
|
43
43
|
"tar": "^7.0.0",
|
|
44
|
-
"@uniweb/core": "0.7.
|
|
45
|
-
"@uniweb/
|
|
46
|
-
"@uniweb/
|
|
44
|
+
"@uniweb/core": "0.7.32",
|
|
45
|
+
"@uniweb/kit": "0.9.42",
|
|
46
|
+
"@uniweb/runtime": "0.8.39"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@uniweb/
|
|
49
|
+
"@uniweb/semantic-parser": "1.1.20",
|
|
50
50
|
"@uniweb/content-reader": "1.1.17",
|
|
51
|
-
"@uniweb/
|
|
51
|
+
"@uniweb/build": "0.15.10"
|
|
52
52
|
},
|
|
53
53
|
"peerDependenciesMeta": {
|
|
54
54
|
"@uniweb/build": {
|
package/partials/agents.md
CHANGED
|
@@ -816,6 +816,8 @@ Names only — for signatures and props, read the package: it's on disk at `node
|
|
|
816
816
|
**Media:** `Visual` (first non-empty: inset/video/image), `Image`, `Media`, `Icon`, `Asset`
|
|
817
817
|
**Navigation:** `Link`, `useActiveRoute()`, `useWebsite()`, `useRouting()`
|
|
818
818
|
**Header/layout:** `useScrolled(threshold)`, `useMobileMenu()`, `useAppearance()`
|
|
819
|
+
**Overlays:** `Overlay` (modals, palettes, drawers — read the note below before hand-rolling one)
|
|
820
|
+
**Keyboard:** `useShortcut('mod+k', fn)`, `useShortcuts({…})`, `useShortcutLabel('mod+k')` — `mod` is Cmd on Apple platforms and Ctrl elsewhere, and the label renders per-platform so a hint never shows the wrong key
|
|
819
821
|
**Long-form prose:** `<Prose>` and the container you put `<Render>` output in both use Tailwind Typography's `prose` classes, which come from a plugin your *foundation* installs — kit ships no stylesheet. Without it the markup is right and completely unstyled. Add `@tailwindcss/typography` to the foundation's deps, then:
|
|
820
822
|
|
|
821
823
|
```css
|
|
@@ -842,6 +844,8 @@ Four things you won't discover by reading exports:
|
|
|
842
844
|
|
|
843
845
|
> **Kit hooks are SSR-safe by design.** If you hit "document is not defined" during a build, don't add `typeof document` guards — reach for the hook instead (`useAppearance()` for scheme, `useScrolled()` for scroll position).
|
|
844
846
|
|
|
847
|
+
> **A modal needs `<Overlay>`, not a bigger z-index.** The runtime gives each layout area its own `view-transition-name` so header, rails and body animate independently. That makes each area a stacking context *and* a containing block for `fixed` children — so a dialog rendered from inside your Header is sealed into the header's context and paints *under* the page body no matter what z-index it carries. Raising the number looks like it should work and never does. `<Overlay onClose={close}>…</Overlay>` renders into `document.body`, where the z-index means what you expect; it also handles Escape, the scrim click and the page-scroll lock, and emits nothing during prerender. Your dialog's markup stays yours.
|
|
848
|
+
|
|
845
849
|
### Icon component
|
|
846
850
|
|
|
847
851
|
```jsx
|
|
@@ -1886,6 +1890,8 @@ Loud failures:
|
|
|
1886
1890
|
|
|
1887
1891
|
**"document is not defined" during build** — your component touches `document`, `window`, or `localStorage` during render rather than inside `useEffect`. **Don't add `typeof document` guards** — use the kit hook instead: dark mode → `useAppearance()`, scroll detection → `useScrolled()`. Kit hooks are SSR-safe by design.
|
|
1888
1892
|
|
|
1893
|
+
**A modal renders behind the page** — page content or a sidebar paints over your dialog and its backdrop, and raising the z-index changes nothing. Each layout area carries a `view-transition-name`, which makes it a stacking context your `fixed` element cannot escape. Render through `<Overlay>` from `@uniweb/kit` (see Part 4) instead of a bare `fixed inset-0 z-…` div.
|
|
1894
|
+
|
|
1889
1895
|
**Content not parsing as expected** — `uniweb inspect pages/home/hero.md` (add `--raw` for the ProseMirror AST), or point it at a folder for a whole page.
|
|
1890
1896
|
|
|
1891
1897
|
---
|
package/src/framework-index.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"generatedAt": "2026-07-
|
|
3
|
+
"generatedAt": "2026-07-27T21:12:57.650Z",
|
|
4
4
|
"packages": {
|
|
5
5
|
"@uniweb/build": {
|
|
6
|
-
"version": "0.15.
|
|
6
|
+
"version": "0.15.10",
|
|
7
7
|
"path": "framework/build",
|
|
8
8
|
"deps": [
|
|
9
9
|
"@uniweb/content-reader",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"deps": []
|
|
27
27
|
},
|
|
28
28
|
"@uniweb/core": {
|
|
29
|
-
"version": "0.7.
|
|
29
|
+
"version": "0.7.32",
|
|
30
30
|
"path": "framework/core",
|
|
31
31
|
"deps": [
|
|
32
32
|
"@uniweb/semantic-parser",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"deps": []
|
|
45
45
|
},
|
|
46
46
|
"@uniweb/kit": {
|
|
47
|
-
"version": "0.9.
|
|
47
|
+
"version": "0.9.42",
|
|
48
48
|
"path": "framework/kit",
|
|
49
49
|
"deps": [
|
|
50
50
|
"@uniweb/core",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"deps": []
|
|
63
63
|
},
|
|
64
64
|
"@uniweb/projections": {
|
|
65
|
-
"version": "0.1.
|
|
65
|
+
"version": "0.1.4",
|
|
66
66
|
"path": "framework/projections",
|
|
67
67
|
"deps": [
|
|
68
68
|
"@uniweb/content-writer",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
]
|
|
71
71
|
},
|
|
72
72
|
"@uniweb/runtime": {
|
|
73
|
-
"version": "0.8.
|
|
73
|
+
"version": "0.8.39",
|
|
74
74
|
"path": "framework/runtime",
|
|
75
75
|
"deps": [
|
|
76
76
|
"@uniweb/core",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"deps": []
|
|
109
109
|
},
|
|
110
110
|
"@uniweb/unipress": {
|
|
111
|
-
"version": "0.5.
|
|
111
|
+
"version": "0.5.9",
|
|
112
112
|
"path": "framework/unipress",
|
|
113
113
|
"deps": [
|
|
114
114
|
"@uniweb/build",
|