@molecule/app-top-nav-layout-svelte 1.2.1 → 1.2.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/README.md +2 -2
- package/dist/TopNavLayout.svelte +11 -2
- package/dist/TopNavLayout.svelte.d.ts.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-11-
|
|
6
|
+
Generated: 2026-11-24T09:00:05.262Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-top-nav-layout-svelte
|
|
@@ -117,7 +117,7 @@ const TopNavLayout: LegacyComponentType
|
|
|
117
117
|
|
|
118
118
|
Peer dependencies:
|
|
119
119
|
|
|
120
|
-
- `@molecule/app-svelte` ^3.
|
|
120
|
+
- `@molecule/app-svelte` ^3.14.0
|
|
121
121
|
- `@molecule/app-ui` ^1.3.11
|
|
122
122
|
- `@molecule/app-ui-svelte` ^1.1.0
|
|
123
123
|
- `svelte` ^5.0.0
|
package/dist/TopNavLayout.svelte
CHANGED
|
@@ -5,7 +5,13 @@
|
|
|
5
5
|
its router's `<Outlet />` there). Same props, same DOM for the same input.
|
|
6
6
|
-->
|
|
7
7
|
<script lang="ts">
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
ContentOrElse,
|
|
10
|
+
Link,
|
|
11
|
+
RoutedView,
|
|
12
|
+
useLocation,
|
|
13
|
+
useTranslation,
|
|
14
|
+
} from '@molecule/app-svelte'
|
|
9
15
|
import { getClassMap } from '@molecule/app-ui'
|
|
10
16
|
|
|
11
17
|
import type { TopNavItem, TopNavLayoutProps } from './types.js'
|
|
@@ -104,6 +110,9 @@
|
|
|
104
110
|
</div>
|
|
105
111
|
</header>
|
|
106
112
|
<main>
|
|
107
|
-
|
|
113
|
+
<ContentOrElse>
|
|
114
|
+
{@render children?.()}
|
|
115
|
+
{#snippet otherwise()}<RoutedView />{/snippet}
|
|
116
|
+
</ContentOrElse>
|
|
108
117
|
</main>
|
|
109
118
|
</div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopNavLayout.svelte.d.ts","sourceRoot":"","sources":["../src/TopNavLayout.svelte"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TopNavLayout.svelte.d.ts","sourceRoot":"","sources":["../src/TopNavLayout.svelte"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAc,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAyGhE,QAAA,MAAM,YAAY,uDAAwC,CAAC;AAC3D,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACpD,eAAe,YAAY,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-top-nav-layout-svelte",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Top navigation app shell: brand link + horizontal NavLinks + UserMenu slot, with a router outlet for nested routes",
|
|
5
5
|
"homepage": "https://www.molecule.dev/packages/app-top-nav-layout-svelte",
|
|
6
6
|
"type": "module",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@molecule/app-svelte": "^3.
|
|
52
|
+
"@molecule/app-svelte": "^3.14.0",
|
|
53
53
|
"@molecule/app-ui": "^1.3.11",
|
|
54
54
|
"@molecule/app-ui-svelte": "^1.1.0",
|
|
55
55
|
"svelte": "^5.0.0"
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
"@molecule/app-framework-conformance": "0.0.0",
|
|
59
59
|
"@molecule/app-i18n": "1.2.2",
|
|
60
60
|
"@molecule/app-icons": "1.0.4",
|
|
61
|
-
"@molecule/app-svelte": "3.
|
|
61
|
+
"@molecule/app-svelte": "3.14.1",
|
|
62
62
|
"@molecule/app-ui": "1.5.0",
|
|
63
|
-
"@molecule/app-ui-svelte": "1.4.
|
|
63
|
+
"@molecule/app-ui-svelte": "1.4.2",
|
|
64
64
|
"@sveltejs/package": "3.0.2",
|
|
65
65
|
"@sveltejs/vite-plugin-svelte": "7.1.2",
|
|
66
66
|
"@types/node": "26.6.5",
|