lutra 0.1.5 → 0.1.7
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.
@@ -93,7 +93,8 @@
|
|
93
93
|
}
|
94
94
|
|
95
95
|
li .Item,
|
96
|
-
li .Header
|
96
|
+
li .Header,
|
97
|
+
li .Text {
|
97
98
|
font-size: var(--font-size, 0.9em);
|
98
99
|
text-align: left;
|
99
100
|
padding-block: 0.5rem;
|
@@ -111,7 +112,8 @@
|
|
111
112
|
}
|
112
113
|
|
113
114
|
li.rounded .Item,
|
114
|
-
li.rounded .Header
|
115
|
+
li.rounded .Header,
|
116
|
+
li.rounded .Text {
|
115
117
|
border-radius: var(--menu-border-radius);
|
116
118
|
}
|
117
119
|
|
@@ -3,12 +3,12 @@
|
|
3
3
|
|
4
4
|
let {
|
5
5
|
text,
|
6
|
-
|
6
|
+
content,
|
7
7
|
component: Comp,
|
8
8
|
props
|
9
9
|
}: {
|
10
10
|
text?: string;
|
11
|
-
|
11
|
+
content?: Snippet<[any]>;
|
12
12
|
component?: Component;
|
13
13
|
props?: any;
|
14
14
|
} = $props();
|
@@ -17,8 +17,8 @@
|
|
17
17
|
{#if text}
|
18
18
|
{text}
|
19
19
|
{/if}
|
20
|
-
{#if
|
21
|
-
{@render
|
20
|
+
{#if content}
|
21
|
+
{@render content([...props])}
|
22
22
|
{/if}
|
23
23
|
{#if Comp}
|
24
24
|
<Comp {...props} />
|
@@ -9,7 +9,7 @@ export type MenuItem = {
|
|
9
9
|
/** Text label of the item to display to the user. */
|
10
10
|
text?: string;
|
11
11
|
/** Snippet to display. */
|
12
|
-
|
12
|
+
content?: Snippet;
|
13
13
|
/** Component to display. */
|
14
14
|
component?: Component;
|
15
15
|
/** Color to use for the item. */
|
@@ -27,7 +27,7 @@ export type MenuItem = {
|
|
27
27
|
/** Text label of the item to display to the user. */
|
28
28
|
text?: string;
|
29
29
|
/** Snippet to display. */
|
30
|
-
|
30
|
+
content?: Snippet;
|
31
31
|
/** Component to display. */
|
32
32
|
component?: Component;
|
33
33
|
/** Keyboard shortcut to display next to the item. */
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "lutra",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.7",
|
4
4
|
"scripts": {
|
5
5
|
"dev": "vite dev",
|
6
6
|
"build": "vite build && npm run package",
|
@@ -35,24 +35,24 @@
|
|
35
35
|
"svelte": "^5.0.0"
|
36
36
|
},
|
37
37
|
"devDependencies": {
|
38
|
-
"@sveltejs/adapter-auto": "^6.1.
|
39
|
-
"@sveltejs/kit": "^2.
|
40
|
-
"@sveltejs/package": "^2.4
|
41
|
-
"@sveltejs/vite-plugin-svelte": "^6.1
|
42
|
-
"@types/node": "^24.
|
43
|
-
"publint": "^0.3.
|
44
|
-
"svelte": "^5.
|
45
|
-
"svelte-check": "^4.3.
|
46
|
-
"typescript": "^5.9.
|
47
|
-
"vite": "^7.1.
|
38
|
+
"@sveltejs/adapter-auto": "^6.1.1",
|
39
|
+
"@sveltejs/kit": "^2.46.4",
|
40
|
+
"@sveltejs/package": "^2.5.4",
|
41
|
+
"@sveltejs/vite-plugin-svelte": "^6.2.1",
|
42
|
+
"@types/node": "^24.7.1",
|
43
|
+
"publint": "^0.3.14",
|
44
|
+
"svelte": "^5.39.11",
|
45
|
+
"svelte-check": "^4.3.3",
|
46
|
+
"typescript": "^5.9.3",
|
47
|
+
"vite": "^7.1.9"
|
48
48
|
},
|
49
49
|
"dependencies": {
|
50
50
|
"@auth70/bodyguard": "^1.7.1",
|
51
51
|
"blurhash": "^2.0.5",
|
52
52
|
"browser-image-compression": "^2.0.2",
|
53
53
|
"esm-env": "^1.2.2",
|
54
|
-
"marked": "16.
|
55
|
-
"zod": "^4.
|
56
|
-
"zodex": "^4.0.
|
54
|
+
"marked": "16.4.0",
|
55
|
+
"zod": "^4.1.12",
|
56
|
+
"zodex": "^4.0.1"
|
57
57
|
}
|
58
58
|
}
|