@meistrari/chat-nuxt 4.10.0 → 4.11.0-rc.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/README.md +1 -1
- package/dist/module.json +1 -1
- package/dist/runtime/conversations/components/chat-new-conversation-modal.d.vue.ts +1 -1
- package/dist/runtime/conversations/components/chat-new-conversation-modal.vue.d.ts +1 -1
- package/dist/runtime/embed/components/chat-embed-inner.vue +8 -0
- package/dist/runtime/embed/components/mobile/chat-mobile-header.d.vue.ts +6 -6
- package/dist/runtime/embed/components/mobile/chat-mobile-header.vue.d.ts +6 -6
- package/dist/runtime/embed/components/mobile/chat-mobile-shell.d.vue.ts +12 -12
- package/dist/runtime/embed/components/mobile/chat-mobile-shell.vue.d.ts +12 -12
- package/dist/runtime/embed/feature-config.d.ts +6 -0
- package/dist/runtime/embed/feature-config.js +2 -0
- package/dist/runtime/messages/components/chat-message-bubble.d.vue.ts +2 -0
- package/dist/runtime/messages/components/chat-message-bubble.vue +5 -3
- package/dist/runtime/messages/components/chat-message-bubble.vue.d.ts +2 -0
- package/dist/runtime/messages/components/chat-message-list.d.vue.ts +4 -0
- package/dist/runtime/messages/components/chat-message-list.vue +4 -1
- package/dist/runtime/messages/components/chat-message-list.vue.d.ts +4 -0
- package/dist/runtime/messages/components/widgets/chat-tool-section.d.vue.ts +1 -1
- package/dist/runtime/messages/components/widgets/chat-tool-section.vue.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -110,7 +110,7 @@ Declared in `src/runtime/embed/types.ts`; prop, feature-flag, and event payload
|
|
|
110
110
|
| `telaAgentInputs` | `TelaAgentExecutionInput[] \| null` | `undefined` | Inputs sent with each Tela agent run; hides the variables panel when non-null |
|
|
111
111
|
| `workspaceSettings` | `WorkspaceSettings \| null` | `null` | Override settings from host app; not accepted in Tela agent mode |
|
|
112
112
|
| `user` | `ChatActor \| null` | `null` | Override current user display info; not accepted in Tela agent mode |
|
|
113
|
-
| `features` | `Partial<ChatFeatureConfig>` | `{}` | Toggle `showUsageTab`, `showDebugOption`, `showCancelButton`, `showTtft`, `chatOutboundQueue`, `showPromptInputHints`, `showModelSelector`, and `showReasoningEffortSelector`; all released features default to `true`. The two picker flags are deprecated in favor of `executionControls` |
|
|
113
|
+
| `features` | `Partial<ChatFeatureConfig>` | `{}` | Toggle `showUsageTab`, `showDebugOption`, `showCancelButton`, `showTtft`, `showMessageTimestamps`, `showAiMistakesDisclaimer`, `chatOutboundQueue`, `showPromptInputHints`, `showModelSelector`, and `showReasoningEffortSelector`; all released features default to `true`. The two picker flags are deprecated in favor of `executionControls` |
|
|
114
114
|
| `loadingMessages` | `readonly string[] \| null` | Default chat messages | Override pending-response messages |
|
|
115
115
|
| `loadingMessagesMode` | `'ordered' \| 'random' \| null` | `'ordered'` | Rotate custom messages in order or at random; only applies when `loadingMessages` has a non-empty message |
|
|
116
116
|
| `labels` | `Partial<ChatLabels>` | Portuguese defaults | Override conversation-search text; see [UI labels](docs/guides/embedding.md#ui-labels) for supported keys and surfaces |
|
package/dist/module.json
CHANGED
|
@@ -6,8 +6,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
6
6
|
} & {
|
|
7
7
|
create: (canvasTools: CanvasTool[]) => any;
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
9
|
-
"onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
|
|
10
9
|
onCreate?: ((canvasTools: CanvasTool[]) => any) | undefined;
|
|
10
|
+
"onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
|
|
11
11
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
12
|
declare const _default: typeof __VLS_export;
|
|
13
13
|
export default _default;
|
|
@@ -6,8 +6,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
6
6
|
} & {
|
|
7
7
|
create: (canvasTools: CanvasTool[]) => any;
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
9
|
-
"onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
|
|
10
9
|
onCreate?: ((canvasTools: CanvasTool[]) => any) | undefined;
|
|
10
|
+
"onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
|
|
11
11
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
12
|
declare const _default: typeof __VLS_export;
|
|
13
13
|
export default _default;
|
|
@@ -1070,6 +1070,8 @@ async function handleDelete() {
|
|
|
1070
1070
|
:streaming-active-message-id="streamingActiveMessageId"
|
|
1071
1071
|
:preparing-steps="preparingSteps"
|
|
1072
1072
|
:show-ttft="resolvedFeatures.showTtft"
|
|
1073
|
+
:show-timestamps="resolvedFeatures.showMessageTimestamps"
|
|
1074
|
+
:show-ai-mistakes-disclaimer="resolvedFeatures.showAiMistakesDisclaimer"
|
|
1073
1075
|
loading
|
|
1074
1076
|
variant="mobile"
|
|
1075
1077
|
/>
|
|
@@ -1151,6 +1153,8 @@ async function handleDelete() {
|
|
|
1151
1153
|
:streaming-active-message-id="streamingActiveMessageId"
|
|
1152
1154
|
:preparing-steps="preparingSteps"
|
|
1153
1155
|
:show-ttft="resolvedFeatures.showTtft"
|
|
1156
|
+
:show-timestamps="resolvedFeatures.showMessageTimestamps"
|
|
1157
|
+
:show-ai-mistakes-disclaimer="resolvedFeatures.showAiMistakesDisclaimer"
|
|
1154
1158
|
variant="mobile"
|
|
1155
1159
|
:fork-enabled="chatApi.conversationV2Enabled"
|
|
1156
1160
|
:fork-disabled="forking"
|
|
@@ -1277,6 +1281,8 @@ async function handleDelete() {
|
|
|
1277
1281
|
:streaming-active-message-id="streamingActiveMessageId"
|
|
1278
1282
|
:preparing-steps="preparingSteps"
|
|
1279
1283
|
:show-ttft="resolvedFeatures.showTtft"
|
|
1284
|
+
:show-timestamps="resolvedFeatures.showMessageTimestamps"
|
|
1285
|
+
:show-ai-mistakes-disclaimer="resolvedFeatures.showAiMistakesDisclaimer"
|
|
1280
1286
|
loading
|
|
1281
1287
|
:variant="compact ? 'widget' : 'page'"
|
|
1282
1288
|
/>
|
|
@@ -1367,6 +1373,8 @@ async function handleDelete() {
|
|
|
1367
1373
|
:streaming-active-message-id="streamingActiveMessageId"
|
|
1368
1374
|
:preparing-steps="preparingSteps"
|
|
1369
1375
|
:show-ttft="resolvedFeatures.showTtft"
|
|
1376
|
+
:show-timestamps="resolvedFeatures.showMessageTimestamps"
|
|
1377
|
+
:show-ai-mistakes-disclaimer="resolvedFeatures.showAiMistakesDisclaimer"
|
|
1370
1378
|
:variant="compact ? 'widget' : 'page'"
|
|
1371
1379
|
:fork-enabled="chatApi.conversationV2Enabled"
|
|
1372
1380
|
:fork-disabled="forking"
|
|
@@ -15,23 +15,23 @@ type __VLS_Props = {
|
|
|
15
15
|
};
|
|
16
16
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
17
17
|
delete: () => any;
|
|
18
|
+
openDrawer: () => any;
|
|
19
|
+
copyLink: () => any;
|
|
20
|
+
openOutdatedSettings: () => any;
|
|
18
21
|
rename: () => any;
|
|
19
22
|
duplicate: () => any;
|
|
20
23
|
export: () => any;
|
|
21
|
-
copyLink: () => any;
|
|
22
24
|
debug: () => any;
|
|
23
|
-
openDrawer: () => any;
|
|
24
|
-
openOutdatedSettings: () => any;
|
|
25
25
|
tabChange: (tab: TopbarTab) => any;
|
|
26
26
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
27
27
|
onDelete?: (() => any) | undefined;
|
|
28
|
+
onOpenDrawer?: (() => any) | undefined;
|
|
29
|
+
onCopyLink?: (() => any) | undefined;
|
|
30
|
+
onOpenOutdatedSettings?: (() => any) | undefined;
|
|
28
31
|
onRename?: (() => any) | undefined;
|
|
29
32
|
onDuplicate?: (() => any) | undefined;
|
|
30
33
|
onExport?: (() => any) | undefined;
|
|
31
|
-
onCopyLink?: (() => any) | undefined;
|
|
32
34
|
onDebug?: (() => any) | undefined;
|
|
33
|
-
onOpenDrawer?: (() => any) | undefined;
|
|
34
|
-
onOpenOutdatedSettings?: (() => any) | undefined;
|
|
35
35
|
onTabChange?: ((tab: TopbarTab) => any) | undefined;
|
|
36
36
|
}>, {
|
|
37
37
|
showDrawerButton: boolean;
|
|
@@ -15,23 +15,23 @@ type __VLS_Props = {
|
|
|
15
15
|
};
|
|
16
16
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
17
17
|
delete: () => any;
|
|
18
|
+
openDrawer: () => any;
|
|
19
|
+
copyLink: () => any;
|
|
20
|
+
openOutdatedSettings: () => any;
|
|
18
21
|
rename: () => any;
|
|
19
22
|
duplicate: () => any;
|
|
20
23
|
export: () => any;
|
|
21
|
-
copyLink: () => any;
|
|
22
24
|
debug: () => any;
|
|
23
|
-
openDrawer: () => any;
|
|
24
|
-
openOutdatedSettings: () => any;
|
|
25
25
|
tabChange: (tab: TopbarTab) => any;
|
|
26
26
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
27
27
|
onDelete?: (() => any) | undefined;
|
|
28
|
+
onOpenDrawer?: (() => any) | undefined;
|
|
29
|
+
onCopyLink?: (() => any) | undefined;
|
|
30
|
+
onOpenOutdatedSettings?: (() => any) | undefined;
|
|
28
31
|
onRename?: (() => any) | undefined;
|
|
29
32
|
onDuplicate?: (() => any) | undefined;
|
|
30
33
|
onExport?: (() => any) | undefined;
|
|
31
|
-
onCopyLink?: (() => any) | undefined;
|
|
32
34
|
onDebug?: (() => any) | undefined;
|
|
33
|
-
onOpenDrawer?: (() => any) | undefined;
|
|
34
|
-
onOpenOutdatedSettings?: (() => any) | undefined;
|
|
35
35
|
onTabChange?: ((tab: TopbarTab) => any) | undefined;
|
|
36
36
|
}>, {
|
|
37
37
|
showDrawerButton: boolean;
|
|
@@ -66,15 +66,14 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
66
66
|
} & {
|
|
67
67
|
delete: () => any;
|
|
68
68
|
cancel: () => any;
|
|
69
|
+
settings: () => any;
|
|
70
|
+
send: (content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any;
|
|
71
|
+
selectExecutionProfile: (profile: ChatExecutionProfile) => any;
|
|
72
|
+
copyLink: () => any;
|
|
69
73
|
rename: () => any;
|
|
70
74
|
duplicate: () => any;
|
|
71
75
|
export: () => any;
|
|
72
|
-
copyLink: () => any;
|
|
73
76
|
debug: () => any;
|
|
74
|
-
selectConversation: (id: string) => any;
|
|
75
|
-
send: (content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any;
|
|
76
|
-
settings: () => any;
|
|
77
|
-
selectExecutionProfile: (profile: ChatExecutionProfile) => any;
|
|
78
77
|
tabChange: (tab: TopbarTab) => any;
|
|
79
78
|
newConversation: (groupId?: string | null | undefined) => any;
|
|
80
79
|
switchWorkspace: () => any;
|
|
@@ -82,23 +81,23 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
82
81
|
cancelEditing: () => any;
|
|
83
82
|
dismissOutdatedBanner: () => any;
|
|
84
83
|
saveTitle: () => any;
|
|
84
|
+
selectConversation: (id: string) => any;
|
|
85
85
|
"update:drawerOpen": (value: boolean) => any;
|
|
86
86
|
"update:editTitle": (value: string) => any;
|
|
87
87
|
"update:workspaceSheetOpen": (value: boolean) => any;
|
|
88
88
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
89
89
|
onDelete?: (() => any) | undefined;
|
|
90
90
|
onCancel?: (() => any) | undefined;
|
|
91
|
-
onRename?: (() => any) | undefined;
|
|
92
|
-
onDuplicate?: (() => any) | undefined;
|
|
93
|
-
onExport?: (() => any) | undefined;
|
|
94
|
-
onCopyLink?: (() => any) | undefined;
|
|
95
|
-
onDebug?: (() => any) | undefined;
|
|
96
|
-
onSelectConversation?: ((id: string) => any) | undefined;
|
|
97
|
-
onSend?: ((content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any) | undefined;
|
|
98
91
|
onSettings?: (() => any) | undefined;
|
|
92
|
+
onSend?: ((content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any) | undefined;
|
|
99
93
|
onSelectExecutionProfile?: ((profile: ChatExecutionProfile) => any) | undefined;
|
|
100
94
|
"onUpdate:selectedModel"?: ((value: string | null) => any) | undefined;
|
|
101
95
|
"onUpdate:selectedReasoningEffort"?: ((value: any) => any) | undefined;
|
|
96
|
+
onCopyLink?: (() => any) | undefined;
|
|
97
|
+
onRename?: (() => any) | undefined;
|
|
98
|
+
onDuplicate?: (() => any) | undefined;
|
|
99
|
+
onExport?: (() => any) | undefined;
|
|
100
|
+
onDebug?: (() => any) | undefined;
|
|
102
101
|
onTabChange?: ((tab: TopbarTab) => any) | undefined;
|
|
103
102
|
onNewConversation?: ((groupId?: string | null | undefined) => any) | undefined;
|
|
104
103
|
onSwitchWorkspace?: (() => any) | undefined;
|
|
@@ -106,6 +105,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
106
105
|
onCancelEditing?: (() => any) | undefined;
|
|
107
106
|
onDismissOutdatedBanner?: (() => any) | undefined;
|
|
108
107
|
onSaveTitle?: (() => any) | undefined;
|
|
108
|
+
onSelectConversation?: ((id: string) => any) | undefined;
|
|
109
109
|
"onUpdate:drawerOpen"?: ((value: boolean) => any) | undefined;
|
|
110
110
|
"onUpdate:editTitle"?: ((value: string) => any) | undefined;
|
|
111
111
|
"onUpdate:workspaceSheetOpen"?: ((value: boolean) => any) | undefined;
|
|
@@ -66,15 +66,14 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
66
66
|
} & {
|
|
67
67
|
delete: () => any;
|
|
68
68
|
cancel: () => any;
|
|
69
|
+
settings: () => any;
|
|
70
|
+
send: (content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any;
|
|
71
|
+
selectExecutionProfile: (profile: ChatExecutionProfile) => any;
|
|
72
|
+
copyLink: () => any;
|
|
69
73
|
rename: () => any;
|
|
70
74
|
duplicate: () => any;
|
|
71
75
|
export: () => any;
|
|
72
|
-
copyLink: () => any;
|
|
73
76
|
debug: () => any;
|
|
74
|
-
selectConversation: (id: string) => any;
|
|
75
|
-
send: (content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any;
|
|
76
|
-
settings: () => any;
|
|
77
|
-
selectExecutionProfile: (profile: ChatExecutionProfile) => any;
|
|
78
77
|
tabChange: (tab: TopbarTab) => any;
|
|
79
78
|
newConversation: (groupId?: string | null | undefined) => any;
|
|
80
79
|
switchWorkspace: () => any;
|
|
@@ -82,23 +81,23 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
82
81
|
cancelEditing: () => any;
|
|
83
82
|
dismissOutdatedBanner: () => any;
|
|
84
83
|
saveTitle: () => any;
|
|
84
|
+
selectConversation: (id: string) => any;
|
|
85
85
|
"update:drawerOpen": (value: boolean) => any;
|
|
86
86
|
"update:editTitle": (value: string) => any;
|
|
87
87
|
"update:workspaceSheetOpen": (value: boolean) => any;
|
|
88
88
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
89
89
|
onDelete?: (() => any) | undefined;
|
|
90
90
|
onCancel?: (() => any) | undefined;
|
|
91
|
-
onRename?: (() => any) | undefined;
|
|
92
|
-
onDuplicate?: (() => any) | undefined;
|
|
93
|
-
onExport?: (() => any) | undefined;
|
|
94
|
-
onCopyLink?: (() => any) | undefined;
|
|
95
|
-
onDebug?: (() => any) | undefined;
|
|
96
|
-
onSelectConversation?: ((id: string) => any) | undefined;
|
|
97
|
-
onSend?: ((content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any) | undefined;
|
|
98
91
|
onSettings?: (() => any) | undefined;
|
|
92
|
+
onSend?: ((content: string, files: FileUploadInput[], agentInputs?: TelaAgentExecutionInput[] | undefined) => any) | undefined;
|
|
99
93
|
onSelectExecutionProfile?: ((profile: ChatExecutionProfile) => any) | undefined;
|
|
100
94
|
"onUpdate:selectedModel"?: ((value: string | null) => any) | undefined;
|
|
101
95
|
"onUpdate:selectedReasoningEffort"?: ((value: any) => any) | undefined;
|
|
96
|
+
onCopyLink?: (() => any) | undefined;
|
|
97
|
+
onRename?: (() => any) | undefined;
|
|
98
|
+
onDuplicate?: (() => any) | undefined;
|
|
99
|
+
onExport?: (() => any) | undefined;
|
|
100
|
+
onDebug?: (() => any) | undefined;
|
|
102
101
|
onTabChange?: ((tab: TopbarTab) => any) | undefined;
|
|
103
102
|
onNewConversation?: ((groupId?: string | null | undefined) => any) | undefined;
|
|
104
103
|
onSwitchWorkspace?: (() => any) | undefined;
|
|
@@ -106,6 +105,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
106
105
|
onCancelEditing?: (() => any) | undefined;
|
|
107
106
|
onDismissOutdatedBanner?: (() => any) | undefined;
|
|
108
107
|
onSaveTitle?: (() => any) | undefined;
|
|
108
|
+
onSelectConversation?: ((id: string) => any) | undefined;
|
|
109
109
|
"onUpdate:drawerOpen"?: ((value: boolean) => any) | undefined;
|
|
110
110
|
"onUpdate:editTitle"?: ((value: string) => any) | undefined;
|
|
111
111
|
"onUpdate:workspaceSheetOpen"?: ((value: boolean) => any) | undefined;
|
|
@@ -9,6 +9,10 @@ export type ChatFeatureConfig = {
|
|
|
9
9
|
showCancelButton?: boolean;
|
|
10
10
|
/** Time to first token shown in assistant message metadata. Defaults to true. */
|
|
11
11
|
showTtft?: boolean;
|
|
12
|
+
/** Send time shown on user and assistant messages. Defaults to true. */
|
|
13
|
+
showMessageTimestamps?: boolean;
|
|
14
|
+
/** "As respostas podem conter erros" notice below the conversation. Defaults to true. */
|
|
15
|
+
showAiMistakesDisclaimer?: boolean;
|
|
12
16
|
/** Reliable outbound delivery and sandbox readiness handling. Defaults to true. */
|
|
13
17
|
chatOutboundQueue?: boolean;
|
|
14
18
|
/** `@` / `/` shortcut hints below the empty-state composer. Defaults to true. */
|
|
@@ -32,6 +36,8 @@ export type ResolvedChatFeatureConfig = {
|
|
|
32
36
|
showDebugOption: boolean;
|
|
33
37
|
showCancelButton: boolean;
|
|
34
38
|
showTtft: boolean;
|
|
39
|
+
showMessageTimestamps: boolean;
|
|
40
|
+
showAiMistakesDisclaimer: boolean;
|
|
35
41
|
chatOutboundQueue: boolean;
|
|
36
42
|
showPromptInputHints: boolean;
|
|
37
43
|
showModelSelector: boolean;
|
|
@@ -6,6 +6,8 @@ export function resolveChatFeatures(features, executionControls) {
|
|
|
6
6
|
showDebugOption: features?.showDebugOption ?? true,
|
|
7
7
|
showCancelButton: features?.showCancelButton ?? true,
|
|
8
8
|
showTtft: features?.showTtft ?? true,
|
|
9
|
+
showMessageTimestamps: features?.showMessageTimestamps ?? true,
|
|
10
|
+
showAiMistakesDisclaimer: features?.showAiMistakesDisclaimer ?? true,
|
|
9
11
|
chatOutboundQueue: features?.chatOutboundQueue ?? true,
|
|
10
12
|
showPromptInputHints: features?.showPromptInputHints ?? true,
|
|
11
13
|
showModelSelector: controls.mode === "advanced" && controls.showModelSelector === true,
|
|
@@ -10,6 +10,7 @@ type __VLS_Props = {
|
|
|
10
10
|
*/
|
|
11
11
|
preparingSteps?: readonly string[] | null;
|
|
12
12
|
showTtft?: boolean;
|
|
13
|
+
showTimestamps?: boolean;
|
|
13
14
|
forkEnabled?: boolean;
|
|
14
15
|
forkDisabled?: boolean;
|
|
15
16
|
};
|
|
@@ -27,6 +28,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
27
28
|
onFork?: ((messageId: string) => any) | undefined;
|
|
28
29
|
}>, {
|
|
29
30
|
showTtft: boolean;
|
|
31
|
+
showTimestamps: boolean;
|
|
30
32
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
33
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
34
|
declare const _default: typeof __VLS_export;
|
|
@@ -19,6 +19,7 @@ const props = defineProps({
|
|
|
19
19
|
isLatestMessage: { type: Boolean, required: false },
|
|
20
20
|
preparingSteps: { type: [Array, null], required: false },
|
|
21
21
|
showTtft: { type: Boolean, required: false, default: true },
|
|
22
|
+
showTimestamps: { type: Boolean, required: false, default: true },
|
|
22
23
|
forkEnabled: { type: Boolean, required: false },
|
|
23
24
|
forkDisabled: { type: Boolean, required: false }
|
|
24
25
|
});
|
|
@@ -197,6 +198,7 @@ const attachedFiles = computed(() => {
|
|
|
197
198
|
</TelaChatMessageContent>
|
|
198
199
|
|
|
199
200
|
<div
|
|
201
|
+
v-if="showTimestamps"
|
|
200
202
|
mt-8px
|
|
201
203
|
body-10-regular
|
|
202
204
|
text-tertiary
|
|
@@ -235,7 +237,7 @@ const attachedFiles = computed(() => {
|
|
|
235
237
|
<div flex flex-col gap-4px grow>
|
|
236
238
|
<div flex items-center gap-4px>
|
|
237
239
|
<span heading-h5-semibold text-primary>{{ isPromptTooLong ? "Limite de contexto atingido" : "Erro" }}</span>
|
|
238
|
-
<span body-10-regular text-secondary>{{ formatTime(message.createdAt) }}</span>
|
|
240
|
+
<span v-if="showTimestamps" body-10-regular text-secondary>{{ formatTime(message.createdAt) }}</span>
|
|
239
241
|
</div>
|
|
240
242
|
<template v-if="isPromptTooLong">
|
|
241
243
|
<div body-12-regular text-secondary whitespace-pre-wrap>
|
|
@@ -332,8 +334,8 @@ const attachedFiles = computed(() => {
|
|
|
332
334
|
body-11-regular
|
|
333
335
|
text-tertiary
|
|
334
336
|
>
|
|
335
|
-
<span>{{ formatTime(message.updatedAt || message.createdAt) }}</span>
|
|
336
|
-
<TelaDotSeparator v-if="showTtft && formattedTtft || hasMessageFeedback" />
|
|
337
|
+
<span v-if="showTimestamps">{{ formatTime(message.updatedAt || message.createdAt) }}</span>
|
|
338
|
+
<TelaDotSeparator v-if="showTimestamps && (showTtft && formattedTtft || hasMessageFeedback)" />
|
|
337
339
|
<div flex items-center gap-8px>
|
|
338
340
|
<span v-if="showTtft && formattedTtft" flex items-center gap-4px>
|
|
339
341
|
{{ formattedTtft }}
|
|
@@ -10,6 +10,7 @@ type __VLS_Props = {
|
|
|
10
10
|
*/
|
|
11
11
|
preparingSteps?: readonly string[] | null;
|
|
12
12
|
showTtft?: boolean;
|
|
13
|
+
showTimestamps?: boolean;
|
|
13
14
|
forkEnabled?: boolean;
|
|
14
15
|
forkDisabled?: boolean;
|
|
15
16
|
};
|
|
@@ -27,6 +28,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
27
28
|
onFork?: ((messageId: string) => any) | undefined;
|
|
28
29
|
}>, {
|
|
29
30
|
showTtft: boolean;
|
|
31
|
+
showTimestamps: boolean;
|
|
30
32
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
33
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
34
|
declare const _default: typeof __VLS_export;
|
|
@@ -12,6 +12,8 @@ type __VLS_Props = {
|
|
|
12
12
|
streamingActiveMessageId?: string | null;
|
|
13
13
|
preparingSteps?: readonly string[] | null;
|
|
14
14
|
showTtft?: boolean;
|
|
15
|
+
showTimestamps?: boolean;
|
|
16
|
+
showAiMistakesDisclaimer?: boolean;
|
|
15
17
|
forkEnabled?: boolean;
|
|
16
18
|
forkDisabled?: boolean;
|
|
17
19
|
};
|
|
@@ -35,6 +37,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
35
37
|
onOpenConversation?: ((conversationId: string) => any) | undefined;
|
|
36
38
|
}>, {
|
|
37
39
|
showTtft: boolean;
|
|
40
|
+
showAiMistakesDisclaimer: boolean;
|
|
41
|
+
showTimestamps: boolean;
|
|
38
42
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
39
43
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
40
44
|
declare const _default: typeof __VLS_export;
|
|
@@ -13,6 +13,8 @@ const props = defineProps({
|
|
|
13
13
|
streamingActiveMessageId: { type: [String, null], required: false },
|
|
14
14
|
preparingSteps: { type: [Array, null], required: false },
|
|
15
15
|
showTtft: { type: Boolean, required: false, default: true },
|
|
16
|
+
showTimestamps: { type: Boolean, required: false, default: true },
|
|
17
|
+
showAiMistakesDisclaimer: { type: Boolean, required: false, default: true },
|
|
16
18
|
forkEnabled: { type: Boolean, required: false },
|
|
17
19
|
forkDisabled: { type: Boolean, required: false }
|
|
18
20
|
});
|
|
@@ -140,6 +142,7 @@ defineExpose({
|
|
|
140
142
|
:is-latest-message="item.id === latestMessageId"
|
|
141
143
|
:preparing-steps="item.value.role === 'assistant' && item.value.status === 'pending' ? preparingSteps : null"
|
|
142
144
|
:show-ttft="showTtft"
|
|
145
|
+
:show-timestamps="showTimestamps"
|
|
143
146
|
:fork-enabled="forkEnabled"
|
|
144
147
|
:fork-disabled="forkDisabled"
|
|
145
148
|
@fork="emit('fork', $event)"
|
|
@@ -151,7 +154,7 @@ defineExpose({
|
|
|
151
154
|
</ChatMessageBubble>
|
|
152
155
|
</template>
|
|
153
156
|
<p
|
|
154
|
-
v-if="messages.length > 0"
|
|
157
|
+
v-if="showAiMistakesDisclaimer && messages.length > 0"
|
|
155
158
|
mt-auto mb--6px
|
|
156
159
|
text-center body-11-regular text-tertiary
|
|
157
160
|
>
|
|
@@ -12,6 +12,8 @@ type __VLS_Props = {
|
|
|
12
12
|
streamingActiveMessageId?: string | null;
|
|
13
13
|
preparingSteps?: readonly string[] | null;
|
|
14
14
|
showTtft?: boolean;
|
|
15
|
+
showTimestamps?: boolean;
|
|
16
|
+
showAiMistakesDisclaimer?: boolean;
|
|
15
17
|
forkEnabled?: boolean;
|
|
16
18
|
forkDisabled?: boolean;
|
|
17
19
|
};
|
|
@@ -35,6 +37,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
35
37
|
onOpenConversation?: ((conversationId: string) => any) | undefined;
|
|
36
38
|
}>, {
|
|
37
39
|
showTtft: boolean;
|
|
40
|
+
showAiMistakesDisclaimer: boolean;
|
|
41
|
+
showTimestamps: boolean;
|
|
38
42
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
39
43
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
40
44
|
declare const _default: typeof __VLS_export;
|
|
@@ -9,9 +9,9 @@ type __VLS_Slots = {} & {
|
|
|
9
9
|
default?: (props: typeof __VLS_1) => any;
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
|
-
flush: boolean;
|
|
13
12
|
tone: "mono" | "prose" | "error";
|
|
14
13
|
limit: "input" | "output" | "none";
|
|
14
|
+
flush: boolean;
|
|
15
15
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
17
|
declare const _default: typeof __VLS_export;
|
|
@@ -9,9 +9,9 @@ type __VLS_Slots = {} & {
|
|
|
9
9
|
default?: (props: typeof __VLS_1) => any;
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
|
-
flush: boolean;
|
|
13
12
|
tone: "mono" | "prose" | "error";
|
|
14
13
|
limit: "input" | "output" | "none";
|
|
14
|
+
flush: boolean;
|
|
15
15
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
17
|
declare const _default: typeof __VLS_export;
|