@alfadocs/ui-kit 0.18.2 → 0.20.0
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/_chunks/_commonjsHelpers-DaMA6jEr.js +9 -0
- package/dist/_chunks/{ai-prompt-input-B-w5Rx3V.js → ai-prompt-input-B5MdixzR.js} +2 -2
- package/dist/_chunks/{leo-sidebar-DIsiTju3.js → alia-sidebar-Bof6TlFx.js} +211 -211
- package/dist/_chunks/{chat-message-g3lxpXM_.js → chat-message-ChOnwqf_.js} +5 -5
- package/dist/_chunks/editable-currency-cell-renderer-CqMs0Y8L.js +1590 -0
- package/dist/_chunks/email-input-DvJ_kPKL.js +396 -0
- package/dist/_chunks/exceljs.min-DUJ-5CGx.js +23045 -0
- package/dist/_chunks/file-spreadsheet-zUkY8rJ2.js +25 -0
- package/dist/_chunks/{file-upload-nMh-1jDD.js → file-upload-DxAQprcU.js} +103 -122
- package/dist/_chunks/html2canvas.esm-dgT_1dIT.js +4872 -0
- package/dist/_chunks/{index-CFoBa86t.js → index-BcMWc8W2.js} +2 -2
- package/dist/_chunks/index.es-B8zMZ1wV.js +6694 -0
- package/dist/_chunks/jspdf.es.min-DaapWjR1.js +10007 -0
- package/dist/_chunks/jspdf.plugin.autotable-CSiDNyPn.js +1088 -0
- package/dist/_chunks/{map-view-DVP-Kp9l.js → map-view-CcwycFQX.js} +2 -2
- package/dist/_chunks/{purify.es-DpIUMBYC.js → purify.es-Cm3utOpm.js} +2 -2
- package/dist/_chunks/{rich-text-editor-C7TCIlQO.js → rich-text-editor-J-wAz9eN.js} +22 -22
- package/dist/_chunks/{suggestion-chip-C4Jz0LrM.js → suggestion-chip-C4kxWUIs.js} +2 -2
- package/dist/_chunks/{use-password-requirements-BOgFsoIe.js → use-password-requirements-C9vKBSVn.js} +92 -81
- package/dist/agent-catalog.json +31 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/app-frame/app-frame.d.ts +1 -1
- package/dist/components/chat-container/chat-container.d.ts +1 -1
- package/dist/components/chat-message/chat-message.d.ts +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/data-table/cell-renderers/editable-currency-cell-renderer.d.ts +23 -0
- package/dist/components/data-table/cell-renderers/editable-text-cell-renderer.d.ts +11 -0
- package/dist/components/data-table/cell-renderers/image-cell-renderer.d.ts +19 -0
- package/dist/components/data-table/cell-renderers/toggle-cell-renderer.d.ts +15 -3
- package/dist/components/data-table/data-table.d.ts +30 -3
- package/dist/components/data-table/filters/date-range-filter.d.ts +22 -0
- package/dist/components/data-table/index.d.ts +9 -2
- package/dist/components/data-table/index.js +18 -13
- package/dist/components/data-table/toolbar.d.ts +80 -1
- package/dist/components/email-input/email-input.agent.d.ts +13 -0
- package/dist/components/email-input/email-input.d.ts +28 -0
- package/dist/components/email-input/index.d.ts +5 -0
- package/dist/components/email-input/index.js +6 -0
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/password-input/use-password-requirements.d.ts +9 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/suggestion-chip/index.js +1 -1
- package/dist/i18n/config.js +59 -9
- package/dist/i18n/resources.d.ts +59 -9
- package/dist/index.js +464 -456
- package/dist/locales/de.json +7 -3
- package/dist/locales/en.json +26 -3
- package/dist/locales/it.json +26 -3
- package/dist/patterns/alia-assistant/alia-chat-surface.d.ts +3 -0
- package/dist/patterns/alia-assistant/alia-embedded.d.ts +13 -0
- package/dist/patterns/{leo-assistant/leo-popout.d.ts → alia-assistant/alia-popout.d.ts} +4 -4
- package/dist/patterns/{leo-assistant/leo-sidebar.d.ts → alia-assistant/alia-sidebar.d.ts} +10 -10
- package/dist/patterns/{leo-assistant/leo-types.d.ts → alia-assistant/alia-types.d.ts} +23 -23
- package/dist/patterns/alia-assistant/index.d.ts +20 -0
- package/dist/patterns/alia-assistant/index.js +8 -0
- package/dist/patterns/patient-shell/patient-shell.d.ts +1 -1
- package/dist/safe-html/index.js +6 -6
- package/dist/tokens.css +1 -1
- package/package.json +14 -5
- package/dist/_chunks/_commonjsHelpers-C6fGbg64.js +0 -7
- package/dist/_chunks/balance-cell-renderer-DJB6WDPe.js +0 -1015
- package/dist/patterns/leo-assistant/index.d.ts +0 -20
- package/dist/patterns/leo-assistant/index.js +0 -8
- package/dist/patterns/leo-assistant/leo-chat-surface.d.ts +0 -3
- package/dist/patterns/leo-assistant/leo-embedded.d.ts +0 -13
package/dist/locales/de.json
CHANGED
|
@@ -82,6 +82,7 @@
|
|
|
82
82
|
"lowercase": "Ein Kleinbuchstabe",
|
|
83
83
|
"digit": "Eine Zahl",
|
|
84
84
|
"symbol": "Ein Sonderzeichen",
|
|
85
|
+
"noSpaces": "Keine Leerzeichen",
|
|
85
86
|
"met": "erfüllt",
|
|
86
87
|
"unmet": "noch nicht erfüllt"
|
|
87
88
|
},
|
|
@@ -157,6 +158,9 @@
|
|
|
157
158
|
"popularCountries": "Häufig verwendet",
|
|
158
159
|
"allCountries": "Alle Länder"
|
|
159
160
|
},
|
|
161
|
+
"email": {
|
|
162
|
+
"invalid": "Ungültige E-Mail-Adresse"
|
|
163
|
+
},
|
|
160
164
|
"colorPicker": {
|
|
161
165
|
"hex": "Hex",
|
|
162
166
|
"hue": "Farbton",
|
|
@@ -564,8 +568,8 @@
|
|
|
564
568
|
}
|
|
565
569
|
}
|
|
566
570
|
},
|
|
567
|
-
"
|
|
568
|
-
"name": "
|
|
571
|
+
"alia": {
|
|
572
|
+
"name": "Alia",
|
|
569
573
|
"greeting": "Hallo, wie kann ich Ihnen helfen?",
|
|
570
574
|
"subtitle": "Ihr persönlicher Assistent für die Datenanalyse",
|
|
571
575
|
"newConversation": "Neue Unterhaltung",
|
|
@@ -579,7 +583,7 @@
|
|
|
579
583
|
"exampleQuestions": "Fragen Sie zum Beispiel",
|
|
580
584
|
"upgrade": "Upgrade",
|
|
581
585
|
"headerLabel": "Assistenten-Kopfzeile",
|
|
582
|
-
"panelLabel": "
|
|
586
|
+
"panelLabel": "Alia-Assistenten-Bereich"
|
|
583
587
|
},
|
|
584
588
|
"chat": {
|
|
585
589
|
"typing": "Assistent schreibt",
|
package/dist/locales/en.json
CHANGED
|
@@ -95,6 +95,7 @@
|
|
|
95
95
|
"lowercase": "One lowercase letter",
|
|
96
96
|
"digit": "One number",
|
|
97
97
|
"symbol": "One symbol",
|
|
98
|
+
"noSpaces": "No spaces",
|
|
98
99
|
"met": "met",
|
|
99
100
|
"unmet": "not yet met"
|
|
100
101
|
}
|
|
@@ -164,6 +165,9 @@
|
|
|
164
165
|
"popularCountries": "Popular",
|
|
165
166
|
"allCountries": "All countries"
|
|
166
167
|
},
|
|
168
|
+
"email": {
|
|
169
|
+
"invalid": "Invalid email"
|
|
170
|
+
},
|
|
167
171
|
"colorPicker": {
|
|
168
172
|
"hex": "Hex",
|
|
169
173
|
"hue": "Hue",
|
|
@@ -333,6 +337,25 @@
|
|
|
333
337
|
"print": "Print",
|
|
334
338
|
"columnToggle": "Columns",
|
|
335
339
|
"bulkAction": "{{count}} selected",
|
|
340
|
+
"refresh": "Refresh",
|
|
341
|
+
"export": {
|
|
342
|
+
"menu": "Export",
|
|
343
|
+
"csv": "Export CSV",
|
|
344
|
+
"xlsx": "Export Excel",
|
|
345
|
+
"pdf": "Export PDF",
|
|
346
|
+
"custom": "Export"
|
|
347
|
+
},
|
|
348
|
+
"quickSearch": {
|
|
349
|
+
"placeholder": "Search…",
|
|
350
|
+
"label": "Quick search"
|
|
351
|
+
},
|
|
352
|
+
"filterChips": {
|
|
353
|
+
"label": "Active filters",
|
|
354
|
+
"clearAll": "Clear all"
|
|
355
|
+
},
|
|
356
|
+
"facetFilter": {
|
|
357
|
+
"label": "Filter"
|
|
358
|
+
},
|
|
336
359
|
"expandRow": "Expand row",
|
|
337
360
|
"collapseRow": "Collapse row",
|
|
338
361
|
"totalRow": "Total",
|
|
@@ -595,8 +618,8 @@
|
|
|
595
618
|
}
|
|
596
619
|
}
|
|
597
620
|
},
|
|
598
|
-
"
|
|
599
|
-
"name": "
|
|
621
|
+
"alia": {
|
|
622
|
+
"name": "Alia",
|
|
600
623
|
"greeting": "Hi, how can I help you?",
|
|
601
624
|
"subtitle": "Your personal assistant for data analysis",
|
|
602
625
|
"newConversation": "New conversation",
|
|
@@ -610,7 +633,7 @@
|
|
|
610
633
|
"exampleQuestions": "Try asking",
|
|
611
634
|
"upgrade": "Upgrade",
|
|
612
635
|
"headerLabel": "Assistant header",
|
|
613
|
-
"panelLabel": "
|
|
636
|
+
"panelLabel": "Alia assistant panel"
|
|
614
637
|
},
|
|
615
638
|
"chat": {
|
|
616
639
|
"typing": "Assistant is typing",
|
package/dist/locales/it.json
CHANGED
|
@@ -88,6 +88,7 @@
|
|
|
88
88
|
"lowercase": "Una lettera minuscola",
|
|
89
89
|
"digit": "Un numero",
|
|
90
90
|
"symbol": "Un simbolo",
|
|
91
|
+
"noSpaces": "Nessuno spazio",
|
|
91
92
|
"met": "soddisfatto",
|
|
92
93
|
"unmet": "non ancora soddisfatto"
|
|
93
94
|
}
|
|
@@ -157,6 +158,9 @@
|
|
|
157
158
|
"popularCountries": "Più usati",
|
|
158
159
|
"allCountries": "Tutti i paesi"
|
|
159
160
|
},
|
|
161
|
+
"email": {
|
|
162
|
+
"invalid": "Indirizzo email non valido"
|
|
163
|
+
},
|
|
160
164
|
"colorPicker": {
|
|
161
165
|
"hex": "Hex",
|
|
162
166
|
"hue": "Tonalità",
|
|
@@ -326,6 +330,25 @@
|
|
|
326
330
|
"print": "Stampa",
|
|
327
331
|
"columnToggle": "Colonne",
|
|
328
332
|
"bulkAction": "{{count}} selezionati",
|
|
333
|
+
"refresh": "Aggiorna",
|
|
334
|
+
"export": {
|
|
335
|
+
"menu": "Esporta",
|
|
336
|
+
"csv": "Esporta CSV",
|
|
337
|
+
"xlsx": "Esporta Excel",
|
|
338
|
+
"pdf": "Esporta PDF",
|
|
339
|
+
"custom": "Esporta"
|
|
340
|
+
},
|
|
341
|
+
"quickSearch": {
|
|
342
|
+
"placeholder": "Cerca…",
|
|
343
|
+
"label": "Ricerca rapida"
|
|
344
|
+
},
|
|
345
|
+
"filterChips": {
|
|
346
|
+
"label": "Filtri attivi",
|
|
347
|
+
"clearAll": "Rimuovi tutti"
|
|
348
|
+
},
|
|
349
|
+
"facetFilter": {
|
|
350
|
+
"label": "Filtro"
|
|
351
|
+
},
|
|
329
352
|
"expandRow": "Espandi riga",
|
|
330
353
|
"collapseRow": "Comprimi riga",
|
|
331
354
|
"totalRow": "Totale",
|
|
@@ -564,8 +587,8 @@
|
|
|
564
587
|
}
|
|
565
588
|
}
|
|
566
589
|
},
|
|
567
|
-
"
|
|
568
|
-
"name": "
|
|
590
|
+
"alia": {
|
|
591
|
+
"name": "Alia",
|
|
569
592
|
"greeting": "Ciao, come posso aiutarti?",
|
|
570
593
|
"subtitle": "Il tuo assistente personale per l'analisi dei dati",
|
|
571
594
|
"newConversation": "Nuova conversazione",
|
|
@@ -579,7 +602,7 @@
|
|
|
579
602
|
"exampleQuestions": "Prova a chiedere",
|
|
580
603
|
"upgrade": "Passa al piano superiore",
|
|
581
604
|
"headerLabel": "Intestazione assistente",
|
|
582
|
-
"panelLabel": "Pannello assistente
|
|
605
|
+
"panelLabel": "Pannello assistente Alia"
|
|
583
606
|
},
|
|
584
607
|
"chat": {
|
|
585
608
|
"typing": "L'assistente sta scrivendo",
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Alia Assistant — embedded (full-page) mode. Fills the parent container
|
|
3
|
+
* (typically `<AppFrame padded={false}>`'s `<main>` slot) with a
|
|
4
|
+
* ChatGPT-style centred conversation column.
|
|
5
|
+
*/
|
|
6
|
+
import { type ReactNode } from 'react';
|
|
7
|
+
import type { AliaChatSurfaceProps } from './alia-types';
|
|
8
|
+
export interface AliaEmbeddedProps extends AliaChatSurfaceProps {
|
|
9
|
+
/** Optional slot rendered above the chat surface (e.g. a breadcrumb). */
|
|
10
|
+
headerSlot?: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const AliaEmbedded: import("react").ForwardRefExoticComponent<AliaEmbeddedProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
//# sourceMappingURL=alia-embedded.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export interface
|
|
1
|
+
import type { AliaChatSurfaceProps } from './alia-types';
|
|
2
|
+
export interface AliaPopoutProps extends AliaChatSurfaceProps {
|
|
3
3
|
/** Whether the popout panel is open. */
|
|
4
4
|
open: boolean;
|
|
5
5
|
/** Fires when the panel should open or close. */
|
|
@@ -9,5 +9,5 @@ export interface LeoPopoutProps extends LeoChatSurfaceProps {
|
|
|
9
9
|
/** Optional unseen message count badge on the FAB. */
|
|
10
10
|
unseenCount?: number;
|
|
11
11
|
}
|
|
12
|
-
export declare const
|
|
13
|
-
//# sourceMappingURL=
|
|
12
|
+
export declare const AliaPopout: import("react").ForwardRefExoticComponent<AliaPopoutProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
//# sourceMappingURL=alia-popout.d.ts.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Alia Assistant — sidebar (docked panel) mode.
|
|
3
3
|
*
|
|
4
4
|
* A persistent, non-modal panel that docks to the `inline-end` edge of
|
|
5
|
-
* the layout. Unlike `
|
|
6
|
-
* content — users can chat with
|
|
5
|
+
* the layout. Unlike `AliaPopout` it does NOT trap focus or overlay
|
|
6
|
+
* content — users can chat with Alia while continuing to interact with
|
|
7
7
|
* the main surface. Collapses to an icon rail when `open={false}`.
|
|
8
8
|
*
|
|
9
|
-
* This is the intended **default desktop mode** for
|
|
10
|
-
* access and settings land: users will want
|
|
9
|
+
* This is the intended **default desktop mode** for Alia once MCP tool
|
|
10
|
+
* access and settings land: users will want Alia visible while they
|
|
11
11
|
* configure servers, inspect tool runs, and reference data. On mobile
|
|
12
|
-
* viewports the consuming app should flip to `
|
|
12
|
+
* viewports the consuming app should flip to `AliaPopout` because a
|
|
13
13
|
* 22rem sidebar would consume the entire screen.
|
|
14
14
|
*
|
|
15
15
|
* Unlike the popout (Radix Dialog) and embedded (full-page main) modes,
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
* layout flow and consumes inline space.
|
|
18
18
|
*/
|
|
19
19
|
import { type ReactNode } from 'react';
|
|
20
|
-
import type {
|
|
21
|
-
export interface
|
|
20
|
+
import type { AliaChatSurfaceProps } from './alia-types';
|
|
21
|
+
export interface AliaSidebarProps extends AliaChatSurfaceProps {
|
|
22
22
|
/** Whether the sidebar is expanded. When false, a narrow icon rail
|
|
23
23
|
* stays visible and clicking it fires `onOpenChange(true)`. */
|
|
24
24
|
open: boolean;
|
|
@@ -34,5 +34,5 @@ export interface LeoSidebarProps extends LeoChatSurfaceProps {
|
|
|
34
34
|
* list or settings accordion). Future hook for the MCP panel. */
|
|
35
35
|
footerSlot?: ReactNode;
|
|
36
36
|
}
|
|
37
|
-
export declare const
|
|
38
|
-
//# sourceMappingURL=
|
|
37
|
+
export declare const AliaSidebar: import("react").ForwardRefExoticComponent<AliaSidebarProps & import("react").RefAttributes<HTMLElement>>;
|
|
38
|
+
//# sourceMappingURL=alia-sidebar.d.ts.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Alia Assistant — shared types.
|
|
3
3
|
*
|
|
4
4
|
* These types describe the message, suggestion, and surface props that
|
|
5
|
-
* the consuming app flows into the
|
|
5
|
+
* the consuming app flows into the Alia pattern. The pattern itself owns
|
|
6
6
|
* NO state or business logic — it is a purely presentational composition
|
|
7
7
|
* of existing DS primitives (ChatContainer, ChatMessage, StreamingText,
|
|
8
8
|
* SuggestionChip, TypingIndicator, Progress, …).
|
|
9
9
|
*/
|
|
10
10
|
import type { ReactNode } from 'react';
|
|
11
|
-
export interface
|
|
11
|
+
export interface AliaMessage {
|
|
12
12
|
id: string;
|
|
13
13
|
role: 'user' | 'assistant' | 'system';
|
|
14
14
|
content: string;
|
|
@@ -17,18 +17,18 @@ export interface LeoMessage {
|
|
|
17
17
|
/** When true, content is still being streamed — renders via StreamingText. */
|
|
18
18
|
streaming?: boolean;
|
|
19
19
|
}
|
|
20
|
-
export interface
|
|
20
|
+
export interface AliaSuggestion {
|
|
21
21
|
id: string;
|
|
22
22
|
label: string;
|
|
23
23
|
/** Optional icon (e.g. from lucide-react). */
|
|
24
24
|
icon?: ReactNode;
|
|
25
25
|
}
|
|
26
|
-
export interface
|
|
26
|
+
export interface AliaAssistantAvatar {
|
|
27
27
|
name?: string;
|
|
28
28
|
src?: string;
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
* Current-user avatar for user-role messages in the
|
|
31
|
+
* Current-user avatar for user-role messages in the Alia surface. Consumers
|
|
32
32
|
* plug this through from their auth/profile store so the conversation
|
|
33
33
|
* shows the real user's initials or photo instead of the default generic
|
|
34
34
|
* person tile.
|
|
@@ -40,62 +40,62 @@ export interface LeoAssistantAvatar {
|
|
|
40
40
|
* `<SidebarProfilePill>`-style chip). When set, replaces
|
|
41
41
|
* `<Avatar>` entirely.
|
|
42
42
|
*/
|
|
43
|
-
export interface
|
|
43
|
+
export interface AliaUserAvatar {
|
|
44
44
|
name?: string;
|
|
45
45
|
src?: string;
|
|
46
46
|
slot?: import('react').ReactNode;
|
|
47
47
|
}
|
|
48
|
-
export interface
|
|
48
|
+
export interface AliaUsage {
|
|
49
49
|
current: number;
|
|
50
50
|
limit: number;
|
|
51
51
|
/**
|
|
52
52
|
* Optional override for the "X of Y messages used" label.
|
|
53
|
-
* Defaults to `t('
|
|
53
|
+
* Defaults to `t('alia.usageLabel', { current, limit })`.
|
|
54
54
|
*/
|
|
55
55
|
label?: string;
|
|
56
56
|
}
|
|
57
|
-
export interface
|
|
57
|
+
export interface AliaChatSurfaceProps {
|
|
58
58
|
/** Current message history. */
|
|
59
|
-
messages:
|
|
59
|
+
messages: AliaMessage[];
|
|
60
60
|
/** Fires when the user submits a message through the composer. */
|
|
61
61
|
onSend: (text: string) => void;
|
|
62
62
|
/** Fires when the user clicks retry on a failed message. */
|
|
63
63
|
onRetry?: (messageId: string) => void;
|
|
64
64
|
/** Fires when the user clicks a suggestion chip. */
|
|
65
|
-
onSuggestion?: (suggestion:
|
|
65
|
+
onSuggestion?: (suggestion: AliaSuggestion) => void;
|
|
66
66
|
/**
|
|
67
67
|
* Suggestion chips shown above the composer (and inline in the empty
|
|
68
68
|
* state). Typically refreshed by the consuming app after each assistant
|
|
69
69
|
* response.
|
|
70
70
|
*/
|
|
71
|
-
suggestions?:
|
|
71
|
+
suggestions?: AliaSuggestion[];
|
|
72
72
|
/** Whether the assistant is currently generating a response. */
|
|
73
73
|
isGenerating?: boolean;
|
|
74
74
|
/** Fires when the user clicks "Stop generating". */
|
|
75
75
|
onStopGenerating?: () => void;
|
|
76
76
|
/** Usage data for the freemium paywall — omit to hide the usage bar. */
|
|
77
|
-
usage?:
|
|
77
|
+
usage?: AliaUsage;
|
|
78
78
|
/** Fires when the user clicks "Upgrade" in the paywall CTA. */
|
|
79
79
|
onUpgrade?: () => void;
|
|
80
80
|
/**
|
|
81
81
|
* Assistant name shown in the header and message avatars. Defaults to
|
|
82
|
-
* `t('
|
|
82
|
+
* `t('alia.name')` → "Alia".
|
|
83
83
|
*/
|
|
84
84
|
assistantName?: string;
|
|
85
85
|
/** Assistant avatar props (passed to `<Avatar>`). */
|
|
86
|
-
assistantAvatar?:
|
|
86
|
+
assistantAvatar?: AliaAssistantAvatar;
|
|
87
87
|
/**
|
|
88
|
-
* Current-user avatar for user-role messages. When omitted,
|
|
89
|
-
* a neutral `User`-icon tile. See `
|
|
88
|
+
* Current-user avatar for user-role messages. When omitted, Alia renders
|
|
89
|
+
* a neutral `User`-icon tile. See `AliaUserAvatar`.
|
|
90
90
|
*/
|
|
91
|
-
userAvatar?:
|
|
91
|
+
userAvatar?: AliaUserAvatar;
|
|
92
92
|
/**
|
|
93
93
|
* Greeting heading shown when the conversation is empty. Defaults to
|
|
94
|
-
* `t('
|
|
94
|
+
* `t('alia.greeting')`.
|
|
95
95
|
*/
|
|
96
96
|
greeting?: string;
|
|
97
97
|
/**
|
|
98
|
-
* Subheading under the greeting. Defaults to `t('
|
|
98
|
+
* Subheading under the greeting. Defaults to `t('alia.subtitle')`.
|
|
99
99
|
*/
|
|
100
100
|
subtitle?: string;
|
|
101
101
|
/** Density variant. */
|
|
@@ -108,7 +108,7 @@ export interface LeoChatSurfaceProps {
|
|
|
108
108
|
* Fires when the user picks or drops files via the composer's attach
|
|
109
109
|
* control. When omitted, the attach button isn't rendered. Consumers are
|
|
110
110
|
* responsible for uploading, validating, and echoing the file(s) back
|
|
111
|
-
* into the conversation —
|
|
111
|
+
* into the conversation — Alia itself holds no attachment state.
|
|
112
112
|
*/
|
|
113
113
|
onAttach?: (files: FileList) => void;
|
|
114
114
|
/** MIME / extension allow-list forwarded to the native file picker. */
|
|
@@ -119,4 +119,4 @@ export interface LeoChatSurfaceProps {
|
|
|
119
119
|
*/
|
|
120
120
|
headerEndSlot?: ReactNode;
|
|
121
121
|
}
|
|
122
|
-
//# sourceMappingURL=
|
|
122
|
+
//# sourceMappingURL=alia-types.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Alia Assistant pattern — composition of DS primitives into a complete
|
|
3
|
+
* AI-chat experience. See `alia-assistant.mdx` for usage, acceptance
|
|
4
|
+
* gate, and a11y notes.
|
|
5
|
+
*
|
|
6
|
+
* Unlike most patterns in this folder, Alia exports runtime components
|
|
7
|
+
* (AliaEmbedded + AliaPopout) because real consuming apps (platform,
|
|
8
|
+
* booking, alfascribe) need to mount it in production, not just
|
|
9
|
+
* reference its story shape. The exports are therefore surfaced via
|
|
10
|
+
* `src/patterns/index.ts` and included in the library bundle.
|
|
11
|
+
*/
|
|
12
|
+
export { AliaChatSurface } from './alia-chat-surface';
|
|
13
|
+
export { AliaEmbedded } from './alia-embedded';
|
|
14
|
+
export type { AliaEmbeddedProps } from './alia-embedded';
|
|
15
|
+
export { AliaPopout } from './alia-popout';
|
|
16
|
+
export type { AliaPopoutProps } from './alia-popout';
|
|
17
|
+
export { AliaSidebar } from './alia-sidebar';
|
|
18
|
+
export type { AliaSidebarProps } from './alia-sidebar';
|
|
19
|
+
export type { AliaChatSurfaceProps, AliaMessage, AliaSuggestion, AliaAssistantAvatar, AliaUsage, } from './alia-types';
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Deliberately flatter than the clinician `AppFrame` composition: no
|
|
6
6
|
* command palette, no favourites, no practice/chain affordances, no
|
|
7
|
-
*
|
|
7
|
+
* Alia, no privacy lock. Mirrors the legacy `_header.html.twig`
|
|
8
8
|
* `app.user.type == 'patient'` branch and the `knp_menu_render('pcp')`
|
|
9
9
|
* flat nav menu.
|
|
10
10
|
*
|
package/dist/safe-html/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { forwardRef as
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import s from "../_chunks/purify.es-Cm3utOpm.js";
|
|
3
|
+
import { forwardRef as a, useMemo as m } from "react";
|
|
4
4
|
const c = {
|
|
5
5
|
ALLOWED_TAGS: [
|
|
6
6
|
"a",
|
|
@@ -57,15 +57,15 @@ function _(t) {
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
function u(t, e) {
|
|
60
|
-
return
|
|
60
|
+
return s.sanitize(t, _(e));
|
|
61
61
|
}
|
|
62
|
-
const A =
|
|
62
|
+
const A = a(
|
|
63
63
|
({ html: t, profile: e = "markdown", ...o }, r) => {
|
|
64
64
|
const n = m(
|
|
65
65
|
() => u(t, e),
|
|
66
66
|
[t, e]
|
|
67
67
|
);
|
|
68
|
-
return /* @__PURE__ */
|
|
68
|
+
return /* @__PURE__ */ i(
|
|
69
69
|
"div",
|
|
70
70
|
{
|
|
71
71
|
ref: r,
|