@gyramais/gyra-design 0.2.54 → 0.2.57
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/components/ChatWidget/ChatBlocks.d.ts +29 -0
- package/dist/components/ChatWidget/ChatMarkdown.d.ts +10 -0
- package/dist/components/ChatWidget/ChatMessageBubble.d.ts +10 -1
- package/dist/components/ChatWidget/ChatWidget.d.ts +26 -3
- package/dist/components/ChatWidget/index.d.ts +2 -0
- package/dist/components/ChatWidget/index.js +25 -7
- package/dist/components/ChatWidget/index.js.map +1 -1
- package/dist/components/ChatWidget/types.d.ts +52 -0
- package/dist/components/Filter/index.js +8 -8
- package/dist/components/Filter/index.js.map +1 -1
- package/dist/components/Input/index.js +5 -5
- package/dist/components/Input/index.js.map +1 -1
- package/dist/components/Rail/index.js +1 -1
- package/dist/components/Rail/index.js.map +1 -1
- package/dist/components/SelectTree/index.js +8 -8
- package/dist/components/SelectTree/index.js.map +1 -1
- package/dist/emails/balance-sheet-finalized/components/ChatWidget/ChatBlocks.d.ts +29 -0
- package/dist/emails/balance-sheet-finalized/components/ChatWidget/ChatMarkdown.d.ts +10 -0
- package/dist/emails/balance-sheet-finalized/components/ChatWidget/ChatMessageBubble.d.ts +10 -1
- package/dist/emails/balance-sheet-finalized/components/ChatWidget/ChatWidget.d.ts +26 -3
- package/dist/emails/balance-sheet-finalized/components/ChatWidget/index.d.ts +2 -0
- package/dist/emails/balance-sheet-finalized/components/ChatWidget/types.d.ts +52 -0
- package/dist/emails/email/components/ChatWidget/ChatBlocks.d.ts +29 -0
- package/dist/emails/email/components/ChatWidget/ChatMarkdown.d.ts +10 -0
- package/dist/emails/email/components/ChatWidget/ChatMessageBubble.d.ts +10 -1
- package/dist/emails/email/components/ChatWidget/ChatWidget.d.ts +26 -3
- package/dist/emails/email/components/ChatWidget/index.d.ts +2 -0
- package/dist/emails/email/components/ChatWidget/types.d.ts +52 -0
- package/dist/index.css +357 -1
- package/package.json +1 -1
|
@@ -10,9 +10,61 @@ export interface ChatCitation {
|
|
|
10
10
|
excerpt: string;
|
|
11
11
|
url: string;
|
|
12
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* Atalho com botao. `href` relativo (comeca com "/") navega dentro do app pelo
|
|
15
|
+
* `onNavigate` do widget; `https://...` abre em nova aba.
|
|
16
|
+
*/
|
|
17
|
+
export interface ChatLinkBlock {
|
|
18
|
+
kind: 'link';
|
|
19
|
+
href: string;
|
|
20
|
+
label: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
}
|
|
23
|
+
/** Video curto (mp4) tocando dentro do chat, com opcao de abrir grande. */
|
|
24
|
+
export interface ChatVideoBlock {
|
|
25
|
+
kind: 'video';
|
|
26
|
+
title: string;
|
|
27
|
+
src: string;
|
|
28
|
+
poster?: string;
|
|
29
|
+
description?: string;
|
|
30
|
+
docsUrl?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Pedido de confirmacao. O clique manda `confirmMessage` (ou `cancelMessage`)
|
|
34
|
+
* como a proxima mensagem do usuario, pelo mesmo `onSend` do composer.
|
|
35
|
+
*/
|
|
36
|
+
export interface ChatActionBlock {
|
|
37
|
+
kind: 'action';
|
|
38
|
+
actionId: string;
|
|
39
|
+
title: string;
|
|
40
|
+
/** Markdown com o resumo do que vai ser feito. */
|
|
41
|
+
preview: string;
|
|
42
|
+
confirmLabel: string;
|
|
43
|
+
cancelLabel: string;
|
|
44
|
+
confirmMessage: string;
|
|
45
|
+
cancelMessage: string;
|
|
46
|
+
}
|
|
47
|
+
export type ChatBlock = ChatLinkBlock | ChatVideoBlock | ChatActionBlock;
|
|
48
|
+
export interface ChatAttachment {
|
|
49
|
+
id: string;
|
|
50
|
+
name: string;
|
|
51
|
+
}
|
|
52
|
+
/** Segundo argumento opcional de `onSend`. */
|
|
53
|
+
export interface ChatSendOptions {
|
|
54
|
+
attachmentIds?: string[];
|
|
55
|
+
}
|
|
13
56
|
export interface ChatMessage {
|
|
14
57
|
role: ChatRole;
|
|
15
58
|
content: string;
|
|
16
59
|
toolCalls?: ChatToolCall[];
|
|
17
60
|
citations?: ChatCitation[];
|
|
61
|
+
/** Cards ricos (link, video, confirmacao) abaixo do texto do assistente. */
|
|
62
|
+
blocks?: ChatBlock[];
|
|
63
|
+
/** Arquivos enviados junto com a mensagem do usuario (viram chips). */
|
|
64
|
+
attachments?: ChatAttachment[];
|
|
65
|
+
/**
|
|
66
|
+
* Passos do turno em andamento ("Lendo o relatorio..."). So o ultimo
|
|
67
|
+
* aparece, e so enquanto a resposta esta sendo gerada.
|
|
68
|
+
*/
|
|
69
|
+
steps?: string[];
|
|
18
70
|
}
|