@meistrari/chat-nuxt 4.4.0-rc.9 → 4.4.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/module.json +1 -1
- package/dist/module.mjs +5 -0
- package/dist/runtime/conversations/components/chat-conversation-item.vue +50 -69
- package/dist/runtime/conversations/components/chat-conversation-list.vue +84 -61
- package/dist/runtime/conversations/composables/conversation-item.js +4 -0
- package/dist/runtime/conversations/composables/conversation-list.d.ts +2 -0
- package/dist/runtime/conversations/composables/conversation-list.js +33 -4
- package/dist/runtime/embed/components/chat-embed-inner.d.vue.ts +6 -2
- package/dist/runtime/embed/components/chat-embed-inner.vue +13 -2
- package/dist/runtime/embed/components/chat-embed-inner.vue.d.ts +6 -2
- package/dist/runtime/embed/components/chat-embed.d.vue.ts +4 -2
- package/dist/runtime/embed/components/chat-embed.vue +3 -0
- package/dist/runtime/embed/components/chat-embed.vue.d.ts +4 -2
- package/dist/runtime/embed/components/chat-topbar.d.vue.ts +11 -1
- package/dist/runtime/embed/components/chat-topbar.vue +7 -8
- package/dist/runtime/embed/components/chat-topbar.vue.d.ts +11 -1
- package/dist/runtime/embed/components/configuration/chat-configuration-mobile-shell.d.vue.ts +2 -2
- package/dist/runtime/embed/components/configuration/chat-configuration-mobile-shell.vue.d.ts +2 -2
- package/dist/runtime/embed/components/meistrari-chat-embed.d.vue.ts +2 -0
- package/dist/runtime/embed/components/meistrari-chat-embed.vue +3 -0
- package/dist/runtime/embed/components/meistrari-chat-embed.vue.d.ts +2 -0
- package/dist/runtime/embed/components/mobile/chat-mobile-drawer.vue +0 -1
- package/dist/runtime/embed/components/mobile/chat-mobile-shell.d.vue.ts +2 -2
- package/dist/runtime/embed/components/mobile/chat-mobile-shell.vue.d.ts +2 -2
- package/dist/runtime/messages/components/chat-message-input.vue +148 -138
- package/dist/runtime/messages/components/chat-message-list.d.vue.ts +2 -2
- package/dist/runtime/messages/components/chat-message-list.vue +6 -10
- package/dist/runtime/messages/components/chat-message-list.vue.d.ts +2 -2
- package/dist/runtime/messages/components/chat-reasoning-effort-selector.vue +11 -7
- package/dist/runtime/messages/components/reasoning/chat-reasoning-thought.vue +1 -1
- package/dist/runtime/messages/components/reasoning/chat-thinking-indicator.d.vue.ts +4 -1
- package/dist/runtime/messages/components/reasoning/chat-thinking-indicator.vue +15 -3
- package/dist/runtime/messages/components/reasoning/chat-thinking-indicator.vue.d.ts +4 -1
- package/dist/runtime/rendering/components/app-markdown-render.d.vue.ts +2 -2
- package/dist/runtime/rendering/components/app-markdown-render.vue.d.ts +2 -2
- package/package.json +2 -2
|
@@ -84,24 +84,28 @@ function onKeydown(event) {
|
|
|
84
84
|
<TelaPopoverTrigger as-child>
|
|
85
85
|
<button
|
|
86
86
|
type="button"
|
|
87
|
-
class="
|
|
88
|
-
:class="effort ? 'text-primary' : 'text-secondary'"
|
|
87
|
+
class="group pl-10px pr-8px py-7px rounded-8px flex items-center gap-6px duration-80 text-primary hover:bg-muted data-[state=open]:text-secondary data-[state=open]:bg-muted"
|
|
89
88
|
:disabled="disabled"
|
|
90
89
|
:aria-label="`Esfor\xE7o de racioc\xEDnio: ${selectedOption?.label ?? AGENT_DEFAULT_LABEL}`"
|
|
91
90
|
>
|
|
92
91
|
<span body-14-medium whitespace-nowrap>{{ triggerLabel }}</span>
|
|
93
|
-
<
|
|
92
|
+
<TelaIcon
|
|
93
|
+
name="i-ph-caret-down-bold"
|
|
94
|
+
size="15px"
|
|
95
|
+
color="icon-tertiary"
|
|
96
|
+
class="shrink-0 transition-transform ease-out duration-150 group-data-[state=open]:rotate-180"
|
|
97
|
+
/>
|
|
94
98
|
</button>
|
|
95
99
|
</TelaPopoverTrigger>
|
|
96
100
|
<TelaPopoverContent
|
|
97
101
|
side="top"
|
|
98
102
|
align="end"
|
|
99
|
-
:side-offset="
|
|
100
|
-
class="
|
|
103
|
+
:side-offset="3"
|
|
104
|
+
class="popover-enter-exit origin-[var(--reka-popover-content-transform-origin)] w-260px p-16px rounded-12px! bg border-0.5px! border! [box-shadow:0_4px_16px_0_rgba(85,91,98,0.14)]!"
|
|
101
105
|
>
|
|
102
106
|
<div flex="~ col" gap-16px>
|
|
103
|
-
<div flex="~ col" items-center gap-
|
|
104
|
-
<span body-14-
|
|
107
|
+
<div flex="~ col" items-center gap-2px text-center>
|
|
108
|
+
<span body-14-semibold text-primary>{{ selectedOption?.label ?? AGENT_DEFAULT_LABEL }}</span>
|
|
105
109
|
<span body-12-regular text-secondary>{{ selectedOption?.description ?? AGENT_DEFAULT_DESCRIPTION }}</span>
|
|
106
110
|
</div>
|
|
107
111
|
|
|
@@ -51,7 +51,7 @@ const liveFormattedDuration = computed(() => {
|
|
|
51
51
|
<div class="chat-reasoning-stage" w-full>
|
|
52
52
|
<Transition name="chat-reasoning-presence" :appear="!completed">
|
|
53
53
|
<div v-if="!completed && !hasReasoning" key="thinking" class="chat-reasoning-placeholder">
|
|
54
|
-
<ChatThinkingIndicator />
|
|
54
|
+
<ChatThinkingIndicator :started-at="startedAt" />
|
|
55
55
|
</div>
|
|
56
56
|
|
|
57
57
|
<!-- Com reasoning (loading ou completo): header clicável + steps colapsáveis -->
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
startedAt?: Date | string;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2
5
|
declare const _default: typeof __VLS_export;
|
|
3
6
|
export default _default;
|
|
@@ -5,7 +5,16 @@ import {
|
|
|
5
5
|
getNextChatLoadingMessageIndex,
|
|
6
6
|
resolveChatLoadingMessages
|
|
7
7
|
} from "../../../embed/loading-messages";
|
|
8
|
+
const props = defineProps({
|
|
9
|
+
startedAt: { type: [Date, String], required: false }
|
|
10
|
+
});
|
|
8
11
|
const embedConfig = useEmbedConfig();
|
|
12
|
+
const startedAtMs = computed(() => {
|
|
13
|
+
if (!props.startedAt)
|
|
14
|
+
return void 0;
|
|
15
|
+
const ms = new Date(props.startedAt).getTime();
|
|
16
|
+
return Number.isNaN(ms) ? void 0 : ms;
|
|
17
|
+
});
|
|
9
18
|
const currentTextIndex = ref(0);
|
|
10
19
|
const dotCount = ref(0);
|
|
11
20
|
const loadingState = computed(() => resolveChatLoadingMessages({
|
|
@@ -52,7 +61,10 @@ onUnmounted(() => {
|
|
|
52
61
|
</script>
|
|
53
62
|
|
|
54
63
|
<template>
|
|
55
|
-
<
|
|
56
|
-
|
|
57
|
-
|
|
64
|
+
<div flex flex-col gap-8px>
|
|
65
|
+
<TelaChatWorkingIndicator label="Trabalhando" :started-at="startedAtMs" />
|
|
66
|
+
<TelaChatTextShimmer class="body-16-regular">
|
|
67
|
+
{{ currentText }}
|
|
68
|
+
</TelaChatTextShimmer>
|
|
69
|
+
</div>
|
|
58
70
|
</template>
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
startedAt?: Date | string;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2
5
|
declare const _default: typeof __VLS_export;
|
|
3
6
|
export default _default;
|
|
@@ -9,11 +9,11 @@ type __VLS_Props = {
|
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
11
11
|
content: string | null;
|
|
12
|
+
customComponents: Record<string, Component>;
|
|
13
|
+
customHtmlTags: readonly string[];
|
|
12
14
|
final: boolean;
|
|
13
15
|
renderCodeBlocksAsPre: boolean;
|
|
14
16
|
typewriter: boolean;
|
|
15
|
-
customComponents: Record<string, Component>;
|
|
16
|
-
customHtmlTags: readonly string[];
|
|
17
17
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
18
|
declare const _default: typeof __VLS_export;
|
|
19
19
|
export default _default;
|
|
@@ -9,11 +9,11 @@ type __VLS_Props = {
|
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
11
11
|
content: string | null;
|
|
12
|
+
customComponents: Record<string, Component>;
|
|
13
|
+
customHtmlTags: readonly string[];
|
|
12
14
|
final: boolean;
|
|
13
15
|
renderCodeBlocksAsPre: boolean;
|
|
14
16
|
typewriter: boolean;
|
|
15
|
-
customComponents: Record<string, Component>;
|
|
16
|
-
customHtmlTags: readonly string[];
|
|
17
17
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
18
|
declare const _default: typeof __VLS_export;
|
|
19
19
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meistrari/chat-nuxt",
|
|
3
|
-
"version": "4.4.0
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@iconify/vue": "^5.0.0",
|
|
54
54
|
"@meistrari/auth-nuxt": "3.31.0",
|
|
55
55
|
"@meistrari/logger": "^2.1.3",
|
|
56
|
-
"@meistrari/tela-build": "^1.
|
|
56
|
+
"@meistrari/tela-build": "^1.75.1",
|
|
57
57
|
"@sentry/nuxt": "^10.0.0",
|
|
58
58
|
"@vueuse/components": "^12.8.0",
|
|
59
59
|
"@vueuse/core": "^12.8.0",
|