@nextwebwg/htmlkit 1.0.0-alpha.33 → 1.0.0-alpha.35
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 +5 -5
- package/components/navigation.html +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -111,15 +111,15 @@ the existing HTML Next binding syntax:
|
|
|
111
111
|
|
|
112
112
|
```html
|
|
113
113
|
<template component="page-item">
|
|
114
|
-
<title $value="label"></title>
|
|
115
|
-
<meta name="description" from:content="description">
|
|
116
|
-
<link rel="canonical" from:href="canonicalURL">
|
|
114
|
+
<title $value="$label"></title>
|
|
115
|
+
<meta name="description" from:content="$description">
|
|
116
|
+
<link rel="canonical" from:href="$canonicalURL">
|
|
117
117
|
<defs>
|
|
118
118
|
<prop name="label" type="string" required>Item label</prop>
|
|
119
119
|
<prop name="description" type="string" required>Description</prop>
|
|
120
120
|
<prop name="canonicalURL" type="string" required>Canonical URL</prop>
|
|
121
121
|
</defs>
|
|
122
|
-
<article><h1 $value="label"></h1></article>
|
|
122
|
+
<article><h1 $value="$label"></h1></article>
|
|
123
123
|
</template>
|
|
124
124
|
```
|
|
125
125
|
|
|
@@ -251,7 +251,7 @@ export async function load({ navigation }: LoadContext) {
|
|
|
251
251
|
<prop name="navigation" type="list(object({ href: string, label: string, current: string, depth: number, pageName: string }))" required>Links</prop>
|
|
252
252
|
</defs>
|
|
253
253
|
<main>
|
|
254
|
-
<htmlkit-navigation from:items="navigation" label="Guide"></htmlkit-navigation>
|
|
254
|
+
<htmlkit-navigation from:items="$navigation" label="Guide"></htmlkit-navigation>
|
|
255
255
|
<slot name="page"></slot>
|
|
256
256
|
</main>
|
|
257
257
|
</template>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<prop name="items" type="list(object({ href: string, label: string, current: string, depth: number, pageName: string }))" required>Ordered concrete route links.</prop>
|
|
4
4
|
<prop name="label" type="string" default="Navigation">Accessible navigation name.</prop>
|
|
5
5
|
</defs>
|
|
6
|
-
<nav from:aria-label="label">
|
|
7
|
-
<ul><li $each="item of items" from:data-depth="item.depth"><a from:href="item.href" from:aria-current="item.current" $value="item.label"></a></li></ul>
|
|
6
|
+
<nav from:aria-label="$label">
|
|
7
|
+
<ul><li $each="item of $items" from:data-depth="$item.depth"><a from:href="$item.href" from:aria-current="$item.current" $value="$item.label"></a></li></ul>
|
|
8
8
|
</nav>
|
|
9
9
|
</template>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextwebwg/htmlkit",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.35",
|
|
4
4
|
"description": "HTML Next application platform: file-based routes, layouts, loaders, and static deployment.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"components"
|
|
18
18
|
],
|
|
19
19
|
"engines": {
|
|
20
|
-
"node": ">=22.
|
|
20
|
+
"node": ">=22.22.2 <23 || >=24.15 <25"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@nextwebwg/html-next": "1.0.0-alpha.
|
|
23
|
+
"@nextwebwg/html-next": "1.0.0-alpha.35",
|
|
24
24
|
"vite": "8.3.2",
|
|
25
25
|
"parse5": "8.0.1"
|
|
26
26
|
},
|