@uniweb/runtime 0.8.21 → 0.8.22
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/dist/app/_importmap/@uniweb-core.js +1 -1
- package/dist/app/assets/{index-S3vw9Fm0.js → index-Ca9aM7z2.js} +8 -8
- package/dist/app/assets/{index-S3vw9Fm0.js.map → index-Ca9aM7z2.js.map} +1 -1
- package/dist/app/assets/{index-Bxvdtdsc.js → index-DesPD4M1.js} +35 -35
- package/dist/app/assets/index-DesPD4M1.js.map +1 -0
- package/dist/app/index.html +2 -2
- package/dist/app/manifest.json +3 -3
- package/package.json +4 -4
- package/src/hooks/useRememberScroll.js +4 -1
- package/dist/app/assets/index-Bxvdtdsc.js.map +0 -1
package/dist/app/index.html
CHANGED
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
</script>
|
|
21
|
-
<script type="module" crossorigin src="/assets/index-
|
|
21
|
+
<script type="module" crossorigin src="/assets/index-Ca9aM7z2.js"></script>
|
|
22
22
|
<link rel="modulepreload" crossorigin href="/assets/_commonjsHelpers-CqkleIqs.js">
|
|
23
23
|
<link rel="modulepreload" crossorigin href="/assets/jsx-runtime-0PlsXv6K.js">
|
|
24
24
|
<link rel="modulepreload" crossorigin href="/assets/index-CxUeIbEw.js">
|
|
25
25
|
<link rel="modulepreload" crossorigin href="/assets/_importmap_react-CrAkajDz.js">
|
|
26
26
|
<link rel="modulepreload" crossorigin href="/assets/index-VvOM7xKK.js">
|
|
27
|
-
<link rel="modulepreload" crossorigin href="/assets/index-
|
|
27
|
+
<link rel="modulepreload" crossorigin href="/assets/index-DesPD4M1.js">
|
|
28
28
|
</head>
|
|
29
29
|
<body>
|
|
30
30
|
<div id="root"></div>
|
package/dist/app/manifest.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.8.
|
|
3
|
-
"entry": "assets/index-
|
|
2
|
+
"version": "0.8.21",
|
|
3
|
+
"entry": "assets/index-Ca9aM7z2.js",
|
|
4
4
|
"preloads": [
|
|
5
5
|
"assets/_commonjsHelpers-CqkleIqs.js",
|
|
6
6
|
"assets/index-VvOM7xKK.js",
|
|
7
7
|
"assets/index-CxUeIbEw.js",
|
|
8
|
-
"assets/index-
|
|
8
|
+
"assets/index-DesPD4M1.js",
|
|
9
9
|
"assets/_importmap_react-CrAkajDz.js",
|
|
10
10
|
"assets/jsx-runtime-0PlsXv6K.js"
|
|
11
11
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniweb/runtime",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.22",
|
|
4
4
|
"description": "Minimal runtime for loading Uniweb foundations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
"node": ">=20.19"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@uniweb/core": "0.7.
|
|
39
|
-
"@uniweb/theming": "0.1.
|
|
38
|
+
"@uniweb/core": "0.7.16",
|
|
39
|
+
"@uniweb/theming": "0.1.5"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@vitejs/plugin-react": "^4.5.2",
|
|
43
43
|
"esbuild": "^0.21.0 || ^0.23.0 || ^0.24.0 || ^0.25.0 || ^0.27.0",
|
|
44
44
|
"vite": "^7.3.1",
|
|
45
45
|
"vitest": "^4.1.7",
|
|
46
|
-
"@uniweb/build": "0.14.
|
|
46
|
+
"@uniweb/build": "0.14.22"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"react": "^19.0.0",
|
|
@@ -48,7 +48,10 @@ function getScrollY(container) {
|
|
|
48
48
|
*/
|
|
49
49
|
function resolveScrollContainer() {
|
|
50
50
|
const website = globalThis.uniweb.activeWebsite
|
|
51
|
-
|
|
51
|
+
// activePage is null on a page-less site (e.g. a fresh `none`-template
|
|
52
|
+
// project with no content) — guard before reaching for getLayoutName,
|
|
53
|
+
// else `null.getLayoutName` throws on the first render.
|
|
54
|
+
const layoutName = website.activePage?.getLayoutName()
|
|
52
55
|
const layoutMeta = layoutName ? website.getLayoutMeta(layoutName) : null
|
|
53
56
|
|
|
54
57
|
const scroll = layoutMeta?.scroll
|