@meistrari/chat-nuxt 4.14.0-rc.5 → 4.14.0-rc.7
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/runtime/embed/components/chat-embed-inner.d.vue.ts +20 -14
- package/dist/runtime/embed/components/chat-embed-inner.vue +9 -0
- package/dist/runtime/embed/components/chat-embed-inner.vue.d.ts +20 -14
- package/dist/runtime/embed/components/chat-embed.d.vue.ts +5 -3
- package/dist/runtime/embed/components/chat-embed.vue +3 -0
- package/dist/runtime/embed/components/chat-embed.vue.d.ts +5 -3
- package/dist/runtime/embed/components/meistrari-chat-embed.d.vue.ts +2 -0
- package/dist/runtime/embed/components/meistrari-chat-embed.vue +9 -0
- package/dist/runtime/embed/components/meistrari-chat-embed.vue.d.ts +2 -0
- package/dist/runtime/embed/components/mobile/chat-mobile-shell.d.vue.ts +5 -3
- package/dist/runtime/embed/components/mobile/chat-mobile-shell.vue +8 -6
- package/dist/runtime/embed/components/mobile/chat-mobile-shell.vue.d.ts +5 -3
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -21,35 +21,41 @@ type __VLS_Props = {
|
|
|
21
21
|
};
|
|
22
22
|
declare function clearThread(): Promise<boolean>;
|
|
23
23
|
declare function handleCancel(): Promise<void>;
|
|
24
|
-
declare var __VLS_14: {},
|
|
24
|
+
declare var __VLS_14: {}, __VLS_42: {}, __VLS_65: {}, __VLS_106: {}, __VLS_121: {
|
|
25
25
|
message: useChatAuth;
|
|
26
|
-
},
|
|
26
|
+
}, __VLS_124: {
|
|
27
27
|
message: useChatAuth;
|
|
28
|
-
},
|
|
28
|
+
}, __VLS_138: {}, __VLS_147: {}, __VLS_181: {}, __VLS_222: {}, __VLS_243: {
|
|
29
29
|
message: useChatAuth;
|
|
30
|
-
},
|
|
30
|
+
}, __VLS_246: {
|
|
31
31
|
message: useChatAuth;
|
|
32
|
-
},
|
|
32
|
+
}, __VLS_260: {};
|
|
33
33
|
type __VLS_Slots = {} & {
|
|
34
34
|
'sidebar-bottom'?: (props: typeof __VLS_14) => any;
|
|
35
35
|
} & {
|
|
36
|
-
'
|
|
36
|
+
'empty-state-header'?: (props: typeof __VLS_42) => any;
|
|
37
37
|
} & {
|
|
38
|
-
'
|
|
38
|
+
'empty-state-header'?: (props: typeof __VLS_65) => any;
|
|
39
39
|
} & {
|
|
40
|
-
'
|
|
40
|
+
'composer-bottom'?: (props: typeof __VLS_106) => any;
|
|
41
41
|
} & {
|
|
42
|
-
'
|
|
42
|
+
'failed-message-actions'?: (props: typeof __VLS_121) => any;
|
|
43
43
|
} & {
|
|
44
|
-
'
|
|
44
|
+
'user-message'?: (props: typeof __VLS_124) => any;
|
|
45
45
|
} & {
|
|
46
|
-
'composer-bottom'?: (props: typeof
|
|
46
|
+
'composer-bottom'?: (props: typeof __VLS_138) => any;
|
|
47
47
|
} & {
|
|
48
|
-
'
|
|
48
|
+
'topbar-leading'?: (props: typeof __VLS_147) => any;
|
|
49
49
|
} & {
|
|
50
|
-
'
|
|
50
|
+
'empty-state-header'?: (props: typeof __VLS_181) => any;
|
|
51
51
|
} & {
|
|
52
|
-
'composer-bottom'?: (props: typeof
|
|
52
|
+
'composer-bottom'?: (props: typeof __VLS_222) => any;
|
|
53
|
+
} & {
|
|
54
|
+
'failed-message-actions'?: (props: typeof __VLS_243) => any;
|
|
55
|
+
} & {
|
|
56
|
+
'user-message'?: (props: typeof __VLS_246) => any;
|
|
57
|
+
} & {
|
|
58
|
+
'composer-bottom'?: (props: typeof __VLS_260) => any;
|
|
53
59
|
};
|
|
54
60
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
55
61
|
clear: typeof clearThread;
|
|
@@ -1157,6 +1157,9 @@ defineExpose({
|
|
|
1157
1157
|
@switch-workspace="handleSwitchWorkspace"
|
|
1158
1158
|
@tab-change="handleTabChange"
|
|
1159
1159
|
>
|
|
1160
|
+
<template v-if="$slots['empty-state-header']" #empty-state-header>
|
|
1161
|
+
<slot name="empty-state-header" />
|
|
1162
|
+
</template>
|
|
1160
1163
|
<template #loading>
|
|
1161
1164
|
<ChatMessageList
|
|
1162
1165
|
:messages="[]"
|
|
@@ -1189,6 +1192,9 @@ defineExpose({
|
|
|
1189
1192
|
:title="pendingFork ? void 0 : emptyStateLabels.title"
|
|
1190
1193
|
:description="pendingFork ? void 0 : emptyStateLabels.description"
|
|
1191
1194
|
>
|
|
1195
|
+
<template v-if="$slots['empty-state-header'] && !pendingFork" #header>
|
|
1196
|
+
<slot name="empty-state-header" />
|
|
1197
|
+
</template>
|
|
1192
1198
|
<ChatForkPreparation
|
|
1193
1199
|
v-if="pendingFork"
|
|
1194
1200
|
compact
|
|
@@ -1421,6 +1427,9 @@ defineExpose({
|
|
|
1421
1427
|
:title="pendingFork ? void 0 : emptyStateLabels.title"
|
|
1422
1428
|
:description="pendingFork ? void 0 : emptyStateLabels.description"
|
|
1423
1429
|
>
|
|
1430
|
+
<template v-if="$slots['empty-state-header'] && !pendingFork" #header>
|
|
1431
|
+
<slot name="empty-state-header" />
|
|
1432
|
+
</template>
|
|
1424
1433
|
<ChatForkPreparation
|
|
1425
1434
|
v-if="pendingFork"
|
|
1426
1435
|
:compact="compact"
|
|
@@ -21,35 +21,41 @@ type __VLS_Props = {
|
|
|
21
21
|
};
|
|
22
22
|
declare function clearThread(): Promise<boolean>;
|
|
23
23
|
declare function handleCancel(): Promise<void>;
|
|
24
|
-
declare var __VLS_14: {},
|
|
24
|
+
declare var __VLS_14: {}, __VLS_42: {}, __VLS_65: {}, __VLS_106: {}, __VLS_121: {
|
|
25
25
|
message: useChatAuth;
|
|
26
|
-
},
|
|
26
|
+
}, __VLS_124: {
|
|
27
27
|
message: useChatAuth;
|
|
28
|
-
},
|
|
28
|
+
}, __VLS_138: {}, __VLS_147: {}, __VLS_181: {}, __VLS_222: {}, __VLS_243: {
|
|
29
29
|
message: useChatAuth;
|
|
30
|
-
},
|
|
30
|
+
}, __VLS_246: {
|
|
31
31
|
message: useChatAuth;
|
|
32
|
-
},
|
|
32
|
+
}, __VLS_260: {};
|
|
33
33
|
type __VLS_Slots = {} & {
|
|
34
34
|
'sidebar-bottom'?: (props: typeof __VLS_14) => any;
|
|
35
35
|
} & {
|
|
36
|
-
'
|
|
36
|
+
'empty-state-header'?: (props: typeof __VLS_42) => any;
|
|
37
37
|
} & {
|
|
38
|
-
'
|
|
38
|
+
'empty-state-header'?: (props: typeof __VLS_65) => any;
|
|
39
39
|
} & {
|
|
40
|
-
'
|
|
40
|
+
'composer-bottom'?: (props: typeof __VLS_106) => any;
|
|
41
41
|
} & {
|
|
42
|
-
'
|
|
42
|
+
'failed-message-actions'?: (props: typeof __VLS_121) => any;
|
|
43
43
|
} & {
|
|
44
|
-
'
|
|
44
|
+
'user-message'?: (props: typeof __VLS_124) => any;
|
|
45
45
|
} & {
|
|
46
|
-
'composer-bottom'?: (props: typeof
|
|
46
|
+
'composer-bottom'?: (props: typeof __VLS_138) => any;
|
|
47
47
|
} & {
|
|
48
|
-
'
|
|
48
|
+
'topbar-leading'?: (props: typeof __VLS_147) => any;
|
|
49
49
|
} & {
|
|
50
|
-
'
|
|
50
|
+
'empty-state-header'?: (props: typeof __VLS_181) => any;
|
|
51
51
|
} & {
|
|
52
|
-
'composer-bottom'?: (props: typeof
|
|
52
|
+
'composer-bottom'?: (props: typeof __VLS_222) => any;
|
|
53
|
+
} & {
|
|
54
|
+
'failed-message-actions'?: (props: typeof __VLS_243) => any;
|
|
55
|
+
} & {
|
|
56
|
+
'user-message'?: (props: typeof __VLS_246) => any;
|
|
57
|
+
} & {
|
|
58
|
+
'composer-bottom'?: (props: typeof __VLS_260) => any;
|
|
53
59
|
};
|
|
54
60
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
55
61
|
clear: typeof clearThread;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare var __VLS_29: {}, __VLS_32: {}, __VLS_35: {}, __VLS_38:
|
|
1
|
+
declare var __VLS_29: {}, __VLS_32: {}, __VLS_35: {}, __VLS_38: {}, __VLS_41: any, __VLS_44: any;
|
|
2
2
|
type __VLS_Slots = {} & {
|
|
3
3
|
'sidebar-bottom'?: (props: typeof __VLS_29) => any;
|
|
4
4
|
} & {
|
|
@@ -6,9 +6,11 @@ type __VLS_Slots = {} & {
|
|
|
6
6
|
} & {
|
|
7
7
|
'composer-bottom'?: (props: typeof __VLS_35) => any;
|
|
8
8
|
} & {
|
|
9
|
-
'
|
|
9
|
+
'empty-state-header'?: (props: typeof __VLS_38) => any;
|
|
10
10
|
} & {
|
|
11
|
-
'
|
|
11
|
+
'failed-message-actions'?: (props: typeof __VLS_41) => any;
|
|
12
|
+
} & {
|
|
13
|
+
'user-message'?: (props: typeof __VLS_44) => any;
|
|
12
14
|
};
|
|
13
15
|
declare const __VLS_base: import("vue").DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import("vue").PublicProps>;
|
|
14
16
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -202,6 +202,9 @@ defineExpose({
|
|
|
202
202
|
<template v-if="$slots['composer-bottom']" #composer-bottom>
|
|
203
203
|
<slot name="composer-bottom" />
|
|
204
204
|
</template>
|
|
205
|
+
<template v-if="$slots['empty-state-header']" #empty-state-header>
|
|
206
|
+
<slot name="empty-state-header" />
|
|
207
|
+
</template>
|
|
205
208
|
<template v-if="$slots['failed-message-actions']" #failed-message-actions="slotProps">
|
|
206
209
|
<slot name="failed-message-actions" v-bind="slotProps" />
|
|
207
210
|
</template>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare var __VLS_29: {}, __VLS_32: {}, __VLS_35: {}, __VLS_38:
|
|
1
|
+
declare var __VLS_29: {}, __VLS_32: {}, __VLS_35: {}, __VLS_38: {}, __VLS_41: any, __VLS_44: any;
|
|
2
2
|
type __VLS_Slots = {} & {
|
|
3
3
|
'sidebar-bottom'?: (props: typeof __VLS_29) => any;
|
|
4
4
|
} & {
|
|
@@ -6,9 +6,11 @@ type __VLS_Slots = {} & {
|
|
|
6
6
|
} & {
|
|
7
7
|
'composer-bottom'?: (props: typeof __VLS_35) => any;
|
|
8
8
|
} & {
|
|
9
|
-
'
|
|
9
|
+
'empty-state-header'?: (props: typeof __VLS_38) => any;
|
|
10
10
|
} & {
|
|
11
|
-
'
|
|
11
|
+
'failed-message-actions'?: (props: typeof __VLS_41) => any;
|
|
12
|
+
} & {
|
|
13
|
+
'user-message'?: (props: typeof __VLS_44) => any;
|
|
12
14
|
};
|
|
13
15
|
declare const __VLS_base: import("vue").DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import("vue").PublicProps>;
|
|
14
16
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -34,6 +34,8 @@ type MeistrariChatEmbedSlots = SlotsType<{
|
|
|
34
34
|
'topbar-leading'?: () => any;
|
|
35
35
|
/** Rendered right under the prompt input, flush with it, on the empty state and in a conversation. Page variant only. */
|
|
36
36
|
'composer-bottom'?: () => any;
|
|
37
|
+
/** Replaces the empty state's title and description (the greeting) on desktop and in the widgets; hidden while a fork is being prepared. */
|
|
38
|
+
'empty-state-header'?: () => any;
|
|
37
39
|
/** Rendered inside a failed assistant message's error box, next to "Tentar novamente"; receives the failed message. */
|
|
38
40
|
'failed-message-actions'?: (props: { message: Message }) => any;
|
|
39
41
|
/** Replaces the text of a user message, keeping its attachments, sender and timestamp; render nothing to keep the default text. */
|
|
@@ -145,6 +145,9 @@ defineExpose({
|
|
|
145
145
|
<template v-if="$slots['failed-message-actions']" #failed-message-actions="slotProps">
|
|
146
146
|
<slot name="failed-message-actions" v-bind="slotProps" />
|
|
147
147
|
</template>
|
|
148
|
+
<template v-if="$slots['empty-state-header']" #empty-state-header>
|
|
149
|
+
<slot name="empty-state-header" />
|
|
150
|
+
</template>
|
|
148
151
|
<template v-if="$slots['user-message']" #user-message="slotProps">
|
|
149
152
|
<slot name="user-message" v-bind="slotProps" />
|
|
150
153
|
</template>
|
|
@@ -184,6 +187,9 @@ defineExpose({
|
|
|
184
187
|
<template v-if="$slots['failed-message-actions']" #failed-message-actions="slotProps">
|
|
185
188
|
<slot name="failed-message-actions" v-bind="slotProps" />
|
|
186
189
|
</template>
|
|
190
|
+
<template v-if="$slots['empty-state-header']" #empty-state-header>
|
|
191
|
+
<slot name="empty-state-header" />
|
|
192
|
+
</template>
|
|
187
193
|
<template v-if="$slots['user-message']" #user-message="slotProps">
|
|
188
194
|
<slot name="user-message" v-bind="slotProps" />
|
|
189
195
|
</template>
|
|
@@ -219,6 +225,9 @@ defineExpose({
|
|
|
219
225
|
<template v-if="$slots['failed-message-actions']" #failed-message-actions="slotProps">
|
|
220
226
|
<slot name="failed-message-actions" v-bind="slotProps" />
|
|
221
227
|
</template>
|
|
228
|
+
<template v-if="$slots['empty-state-header']" #empty-state-header>
|
|
229
|
+
<slot name="empty-state-header" />
|
|
230
|
+
</template>
|
|
222
231
|
<template v-if="$slots['user-message']" #user-message="slotProps">
|
|
223
232
|
<slot name="user-message" v-bind="slotProps" />
|
|
224
233
|
</template>
|
|
@@ -34,6 +34,8 @@ type MeistrariChatEmbedSlots = SlotsType<{
|
|
|
34
34
|
'topbar-leading'?: () => any;
|
|
35
35
|
/** Rendered right under the prompt input, flush with it, on the empty state and in a conversation. Page variant only. */
|
|
36
36
|
'composer-bottom'?: () => any;
|
|
37
|
+
/** Replaces the empty state's title and description (the greeting) on desktop and in the widgets; hidden while a fork is being prepared. */
|
|
38
|
+
'empty-state-header'?: () => any;
|
|
37
39
|
/** Rendered inside a failed assistant message's error box, next to "Tentar novamente"; receives the failed message. */
|
|
38
40
|
'failed-message-actions'?: (props: { message: Message }) => any;
|
|
39
41
|
/** Replaces the text of a user message, keeping its attachments, sender and timestamp; render nothing to keep the default text. */
|
|
@@ -52,13 +52,15 @@ type __VLS_ModelProps = {
|
|
|
52
52
|
'selectedReasoningEffort'?: ChatReasoningEffort | null;
|
|
53
53
|
};
|
|
54
54
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
55
|
-
declare var __VLS_54: {},
|
|
55
|
+
declare var __VLS_54: {}, __VLS_64: {}, __VLS_103: {}, __VLS_105: {};
|
|
56
56
|
type __VLS_Slots = {} & {
|
|
57
57
|
loading?: (props: typeof __VLS_54) => any;
|
|
58
58
|
} & {
|
|
59
|
-
empty?: (props: typeof
|
|
59
|
+
'empty-state-header'?: (props: typeof __VLS_64) => any;
|
|
60
60
|
} & {
|
|
61
|
-
|
|
61
|
+
empty?: (props: typeof __VLS_103) => any;
|
|
62
|
+
} & {
|
|
63
|
+
default?: (props: typeof __VLS_105) => any;
|
|
62
64
|
};
|
|
63
65
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
64
66
|
"update:selectedModel": (value: string | null) => any;
|
|
@@ -222,12 +222,14 @@ function startNewConversationFromOutdatedSettings() {
|
|
|
222
222
|
<div flex="~ col 1" overflow-y-auto pt-54px min-h-0>
|
|
223
223
|
<div flex="~ col 1" justify-center>
|
|
224
224
|
<div px-20px pb-20px text-center>
|
|
225
|
-
<
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
225
|
+
<slot name="empty-state-header">
|
|
226
|
+
<h1 text-24px font-580 text-neutral-900 leading-28px tracking="-.4px">
|
|
227
|
+
{{ emptyStateLabels.title }}
|
|
228
|
+
</h1>
|
|
229
|
+
<p text-14px text-neutral-500 leading-18px mt-6px>
|
|
230
|
+
{{ emptyStateLabels.description }}
|
|
231
|
+
</p>
|
|
232
|
+
</slot>
|
|
231
233
|
</div>
|
|
232
234
|
|
|
233
235
|
<div px-14px pb-12px>
|
|
@@ -52,13 +52,15 @@ type __VLS_ModelProps = {
|
|
|
52
52
|
'selectedReasoningEffort'?: ChatReasoningEffort | null;
|
|
53
53
|
};
|
|
54
54
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
55
|
-
declare var __VLS_54: {},
|
|
55
|
+
declare var __VLS_54: {}, __VLS_64: {}, __VLS_103: {}, __VLS_105: {};
|
|
56
56
|
type __VLS_Slots = {} & {
|
|
57
57
|
loading?: (props: typeof __VLS_54) => any;
|
|
58
58
|
} & {
|
|
59
|
-
empty?: (props: typeof
|
|
59
|
+
'empty-state-header'?: (props: typeof __VLS_64) => any;
|
|
60
60
|
} & {
|
|
61
|
-
|
|
61
|
+
empty?: (props: typeof __VLS_103) => any;
|
|
62
|
+
} & {
|
|
63
|
+
default?: (props: typeof __VLS_105) => any;
|
|
62
64
|
};
|
|
63
65
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
64
66
|
"update:selectedModel": (value: string | null) => any;
|