lutra 0.1.8 → 0.1.9
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.
@@ -3,12 +3,12 @@
|
|
3
3
|
|
4
4
|
let {
|
5
5
|
text,
|
6
|
-
|
6
|
+
snippet,
|
7
7
|
component: Comp,
|
8
8
|
props
|
9
9
|
}: {
|
10
10
|
text?: string;
|
11
|
-
|
11
|
+
snippet?: Snippet;
|
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 snippet}
|
21
|
+
{@render snippet()}
|
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
|
+
snippet?: 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
|
+
snippet?: Snippet;
|
31
31
|
/** Component to display. */
|
32
32
|
component?: Component;
|
33
33
|
/** Keyboard shortcut to display next to the item. */
|