@r2digisolutions/components 0.17.10 → 0.17.11
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.
|
@@ -30,6 +30,9 @@
|
|
|
30
30
|
suggestions?: string[];
|
|
31
31
|
/** Chips shown under the conversation (after the user has messages). */
|
|
32
32
|
followUpSuggestions?: string[];
|
|
33
|
+
/** Active CRM query, shown under the header (e.g. «Presupuestos · María · el mes pasado»). */
|
|
34
|
+
contextLabel?: string;
|
|
35
|
+
contextAriaLabel?: string;
|
|
33
36
|
messages?: AssistantMessage[];
|
|
34
37
|
draft?: string;
|
|
35
38
|
loading?: boolean;
|
|
@@ -69,6 +72,8 @@
|
|
|
69
72
|
emptyHint = '¿En qué puedo ayudarte?',
|
|
70
73
|
suggestions = [],
|
|
71
74
|
followUpSuggestions = [],
|
|
75
|
+
contextLabel = '',
|
|
76
|
+
contextAriaLabel = '',
|
|
72
77
|
messages = [],
|
|
73
78
|
draft = $bindable(''),
|
|
74
79
|
loading = false,
|
|
@@ -229,6 +234,16 @@
|
|
|
229
234
|
</IconButton>
|
|
230
235
|
</header>
|
|
231
236
|
|
|
237
|
+
{#if contextLabel}
|
|
238
|
+
<div
|
|
239
|
+
class="border-border bg-surface-overlay px-3 py-1.5 leading-snug text-muted truncate border-b text-[11px]"
|
|
240
|
+
title={contextLabel}
|
|
241
|
+
aria-label={contextAriaLabel || contextLabel}
|
|
242
|
+
>
|
|
243
|
+
{contextLabel}
|
|
244
|
+
</div>
|
|
245
|
+
{/if}
|
|
246
|
+
|
|
232
247
|
<!-- Body -->
|
|
233
248
|
<div bind:this={scrollEl} class="min-h-0 px-3 py-3 flex-1 overflow-y-auto">
|
|
234
249
|
{#if isEmpty}
|
|
@@ -13,6 +13,9 @@ interface AssistantChatProps {
|
|
|
13
13
|
suggestions?: string[];
|
|
14
14
|
/** Chips shown under the conversation (after the user has messages). */
|
|
15
15
|
followUpSuggestions?: string[];
|
|
16
|
+
/** Active CRM query, shown under the header (e.g. «Presupuestos · María · el mes pasado»). */
|
|
17
|
+
contextLabel?: string;
|
|
18
|
+
contextAriaLabel?: string;
|
|
16
19
|
messages?: AssistantMessage[];
|
|
17
20
|
draft?: string;
|
|
18
21
|
loading?: boolean;
|