@frigear-nu/menu 0.1.2 → 0.1.3
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/module.d.mts +5 -0
- package/dist/module.json +1 -1
- package/package.json +2 -2
package/dist/module.d.mts
CHANGED
|
@@ -28,6 +28,11 @@ type MenuItem = {
|
|
|
28
28
|
icon?: string;
|
|
29
29
|
to?: string;
|
|
30
30
|
external?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Makes the item an action instead of a link: a view sends a request with this method to `to` (e.g. `POST
|
|
33
|
+
* /api/auth/logout`) and then reloads the site's home page, instead of navigating to `to`.
|
|
34
|
+
*/
|
|
35
|
+
method?: 'post';
|
|
31
36
|
tags?: string[];
|
|
32
37
|
/** Lower numbers render first. Items without an `order` are rendered last, in registration order. */
|
|
33
38
|
order?: number;
|
package/dist/module.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frigear-nu/menu",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Named, shareable navigation menus - modules contribute items (extendMenu / a runtime/menus.ts source) and/or Nuxt Content, consumers read them via useMenu and render them however they like.",
|
|
5
5
|
"homepage": "https://docs.frigear.dev/modules/menu",
|
|
6
6
|
"repository": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@nuxt/kit": "^4.6.1",
|
|
34
|
-
"@frigear-nu/module-kit": "1.1.
|
|
34
|
+
"@frigear-nu/module-kit": "1.1.3",
|
|
35
35
|
"zod": "^4.6.5"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|