uniweb 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 +6 -6
- package/partials/agents.md +3 -0
- package/src/framework-index.json +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uniweb",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.2",
|
|
4
4
|
"description": "Create structured Vite + React sites with content/code separation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -41,15 +41,15 @@
|
|
|
41
41
|
"js-yaml": "^4.1.0",
|
|
42
42
|
"prompts": "^2.4.2",
|
|
43
43
|
"tar": "^7.0.0",
|
|
44
|
-
"@uniweb/schemas": "~1.6.5",
|
|
45
44
|
"@uniweb/content-writer": "~1.3.0",
|
|
46
|
-
"@uniweb/
|
|
47
|
-
"@uniweb/
|
|
45
|
+
"@uniweb/core": "~1.4.4",
|
|
46
|
+
"@uniweb/schemas": "~1.6.5",
|
|
47
|
+
"@uniweb/semantic-parser": "~1.13.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@uniweb/
|
|
50
|
+
"@uniweb/build": "~1.8.5",
|
|
51
51
|
"@uniweb/semantic-parser": "~1.13.0",
|
|
52
|
-
"@uniweb/
|
|
52
|
+
"@uniweb/content-reader": "~1.5.6"
|
|
53
53
|
},
|
|
54
54
|
"peerDependenciesMeta": {
|
|
55
55
|
"@uniweb/build": {
|
package/partials/agents.md
CHANGED
|
@@ -1880,6 +1880,7 @@ website.getPageHierarchy({ nested: false }) // = website.getAllPages()
|
|
|
1880
1880
|
|
|
1881
1881
|
website.name, website.basePath
|
|
1882
1882
|
website.hasMultipleLocales(), website.getLocales(), website.getActiveLocale(), website.getLocaleUrl('es')
|
|
1883
|
+
website.switchLocale('es') // a language switch from code (a <select>, a button)
|
|
1883
1884
|
|
|
1884
1885
|
page.title, page.label, page.route, page.description
|
|
1885
1886
|
page.isHidden(), page.showInHeader(), page.showInFooter()
|
|
@@ -3049,6 +3050,8 @@ function LanguageSwitcher() {
|
|
|
3049
3050
|
```
|
|
3050
3051
|
|
|
3051
3052
|
> **Use `<Link reload>` — not a plain `<a>`, and not `window.location.href`.** `getLocaleUrl()` returns a root-relative path that does **not** include the deployment base path, so under a subdirectory deploy (`base: /docs/` in `site.yml`) a raw href sends the visitor outside the site. `<Link reload>` prepends `website.basePath` and forces the full page load a locale switch requires — an SPA `<Link>` won't do, because the other language is a different build.
|
|
3053
|
+
>
|
|
3054
|
+
> **A `<select>` or a button calls `website.switchLocale(code)`**, never `window.location.href = …`. It makes the same page load, base path included, and inside a host that switches languages itself, such as an editor's preview, where a page load would leave the preview, it hands the switch to the host. A click on a `<Link reload>` to another language is handed over the same way.
|
|
3052
3055
|
|
|
3053
3056
|
Full model: `development/internationalization.md`. Author's view: `authoring/translating.md`.
|
|
3054
3057
|
|
package/src/framework-index.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"generatedAt": "2026-10-
|
|
3
|
+
"generatedAt": "2026-10-24T19:34:01.778Z",
|
|
4
4
|
"packages": {
|
|
5
5
|
"@uniweb/api": {
|
|
6
6
|
"version": "1.6.4"
|
|
7
7
|
},
|
|
8
8
|
"@uniweb/build": {
|
|
9
|
-
"version": "1.8.
|
|
9
|
+
"version": "1.8.5"
|
|
10
10
|
},
|
|
11
11
|
"@uniweb/content-reader": {
|
|
12
|
-
"version": "1.5.
|
|
12
|
+
"version": "1.5.6"
|
|
13
13
|
},
|
|
14
14
|
"@uniweb/content-writer": {
|
|
15
15
|
"version": "1.3.0"
|
|
16
16
|
},
|
|
17
17
|
"@uniweb/core": {
|
|
18
|
-
"version": "1.4.
|
|
18
|
+
"version": "1.4.4"
|
|
19
19
|
},
|
|
20
20
|
"@uniweb/frame-bridge": {
|
|
21
21
|
"version": "1.0.2"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"version": "1.1.7"
|
|
37
37
|
},
|
|
38
38
|
"@uniweb/runtime": {
|
|
39
|
-
"version": "1.1.
|
|
39
|
+
"version": "1.1.19"
|
|
40
40
|
},
|
|
41
41
|
"@uniweb/scene": {
|
|
42
42
|
"version": "1.0.1"
|