@meistrari/chat-nuxt 3.5.0 → 3.6.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/runtime/conversations/components/chat-conversation-list.d.vue.ts +1 -0
- package/dist/runtime/conversations/components/chat-conversation-list.vue +3 -2
- package/dist/runtime/conversations/components/chat-conversation-list.vue.d.ts +1 -0
- package/dist/runtime/embed/components/chat-embed-inner.d.vue.ts +2 -0
- package/dist/runtime/embed/components/chat-embed-inner.vue +3 -0
- package/dist/runtime/embed/components/chat-embed-inner.vue.d.ts +2 -0
- package/dist/runtime/embed/components/chat-embed.vue +2 -0
- package/dist/runtime/embed/components/meistrari-chat-embed.vue +3 -0
- package/dist/runtime/embed/components/mobile/chat-mobile-drawer.d.vue.ts +1 -0
- package/dist/runtime/embed/components/mobile/chat-mobile-drawer.vue +2 -1
- package/dist/runtime/embed/components/mobile/chat-mobile-drawer.vue.d.ts +1 -0
- package/dist/runtime/embed/components/mobile/chat-mobile-shell.d.vue.ts +1 -0
- package/dist/runtime/embed/components/mobile/chat-mobile-shell.vue +2 -0
- package/dist/runtime/embed/components/mobile/chat-mobile-shell.vue.d.ts +1 -0
- package/dist/runtime/embed/types.d.ts +2 -0
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -8,6 +8,7 @@ type __VLS_Props = {
|
|
|
8
8
|
resetConversation?: () => void | Promise<void>;
|
|
9
9
|
startConversation?: (groupId?: string | null) => void | Promise<void>;
|
|
10
10
|
loading?: boolean;
|
|
11
|
+
hideFolderHint?: boolean;
|
|
11
12
|
};
|
|
12
13
|
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>;
|
|
13
14
|
declare const _default: typeof __VLS_export;
|
|
@@ -7,7 +7,8 @@ const props = defineProps({
|
|
|
7
7
|
selectConversation: { type: Function, required: false },
|
|
8
8
|
resetConversation: { type: Function, required: false },
|
|
9
9
|
startConversation: { type: Function, required: false },
|
|
10
|
-
loading: { type: Boolean, required: false }
|
|
10
|
+
loading: { type: Boolean, required: false },
|
|
11
|
+
hideFolderHint: { type: Boolean, required: false }
|
|
11
12
|
});
|
|
12
13
|
const {
|
|
13
14
|
conversationSearch,
|
|
@@ -112,7 +113,7 @@ const {
|
|
|
112
113
|
<span h-10px w-84px rounded-full bg-neutral-100 />
|
|
113
114
|
</div>
|
|
114
115
|
</div>
|
|
115
|
-
<p px-4px text-14px text-neutral-500 leading-20px>
|
|
116
|
+
<p v-if="!hideFolderHint" px-4px text-14px text-neutral-500 leading-20px>
|
|
116
117
|
Suas pastas aparecem aqui. Crie uma para começar a agrupar conversas.
|
|
117
118
|
</p>
|
|
118
119
|
<ChatConversationNewGroupButton label="Criar pasta" variant="empty-state" />
|
|
@@ -8,6 +8,7 @@ type __VLS_Props = {
|
|
|
8
8
|
resetConversation?: () => void | Promise<void>;
|
|
9
9
|
startConversation?: (groupId?: string | null) => void | Promise<void>;
|
|
10
10
|
loading?: boolean;
|
|
11
|
+
hideFolderHint?: boolean;
|
|
11
12
|
};
|
|
12
13
|
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>;
|
|
13
14
|
declare const _default: typeof __VLS_export;
|
|
@@ -7,6 +7,7 @@ type __VLS_Props = {
|
|
|
7
7
|
hideSidebar?: boolean;
|
|
8
8
|
sidebar?: ChatSidebarConfig;
|
|
9
9
|
hideSettings?: boolean;
|
|
10
|
+
hideFolderHint?: boolean;
|
|
10
11
|
user?: EmbedUser | null;
|
|
11
12
|
features?: Partial<ChatFeatureConfig>;
|
|
12
13
|
};
|
|
@@ -19,6 +20,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
19
20
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
21
|
"onUpdate:conversationId"?: ((value: string | null) => any) | undefined;
|
|
21
22
|
}>, {
|
|
23
|
+
hideFolderHint: boolean;
|
|
22
24
|
hideSettings: boolean;
|
|
23
25
|
hideSidebar: boolean;
|
|
24
26
|
initialConversationId: string | null;
|
|
@@ -30,6 +30,7 @@ const props = defineProps({
|
|
|
30
30
|
hideSidebar: { type: Boolean, required: false, default: true },
|
|
31
31
|
sidebar: { type: Object, required: false },
|
|
32
32
|
hideSettings: { type: Boolean, required: false, default: false },
|
|
33
|
+
hideFolderHint: { type: Boolean, required: false, default: false },
|
|
33
34
|
user: { type: [Object, null], required: false },
|
|
34
35
|
features: { type: Object, required: false }
|
|
35
36
|
});
|
|
@@ -522,6 +523,7 @@ async function handleDelete() {
|
|
|
522
523
|
:reset-conversation="handleNewConversation"
|
|
523
524
|
:start-conversation="handleNewConversation"
|
|
524
525
|
:loading="conversationsLoading"
|
|
526
|
+
:hide-folder-hint="hideFolderHint"
|
|
525
527
|
/>
|
|
526
528
|
</div>
|
|
527
529
|
|
|
@@ -573,6 +575,7 @@ async function handleDelete() {
|
|
|
573
575
|
:has-pending-message="hasPendingMessage"
|
|
574
576
|
:hide-settings="hideSettings"
|
|
575
577
|
:hide-sidebar="hideSidebar"
|
|
578
|
+
:hide-folder-hint="hideFolderHint"
|
|
576
579
|
:is-editing="isEditing"
|
|
577
580
|
:loading="loading"
|
|
578
581
|
:messages="messages"
|
|
@@ -7,6 +7,7 @@ type __VLS_Props = {
|
|
|
7
7
|
hideSidebar?: boolean;
|
|
8
8
|
sidebar?: ChatSidebarConfig;
|
|
9
9
|
hideSettings?: boolean;
|
|
10
|
+
hideFolderHint?: boolean;
|
|
10
11
|
user?: EmbedUser | null;
|
|
11
12
|
features?: Partial<ChatFeatureConfig>;
|
|
12
13
|
};
|
|
@@ -19,6 +20,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
19
20
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
21
|
"onUpdate:conversationId"?: ((value: string | null) => any) | undefined;
|
|
21
22
|
}>, {
|
|
23
|
+
hideFolderHint: boolean;
|
|
22
24
|
hideSettings: boolean;
|
|
23
25
|
hideSidebar: boolean;
|
|
24
26
|
initialConversationId: string | null;
|
|
@@ -15,6 +15,7 @@ const props = defineProps({
|
|
|
15
15
|
hideSidebar: { type: Boolean, required: false },
|
|
16
16
|
sidebar: { type: Object, required: false },
|
|
17
17
|
hideSettings: { type: Boolean, required: false },
|
|
18
|
+
hideFolderHint: { type: Boolean, required: false },
|
|
18
19
|
loadingMessages: { type: [Array, null], required: false },
|
|
19
20
|
loadingMessagesMode: { type: [String, null], required: false },
|
|
20
21
|
customComponents: { type: Object, required: false },
|
|
@@ -95,6 +96,7 @@ provideChatMessageTerminal((payload) => {
|
|
|
95
96
|
:hide-sidebar="hideSidebar"
|
|
96
97
|
:sidebar="sidebar"
|
|
97
98
|
:hide-settings="hideSettings"
|
|
99
|
+
:hide-folder-hint="hideFolderHint"
|
|
98
100
|
:user="normalizedTelaAgentId ? null : user"
|
|
99
101
|
:features="features"
|
|
100
102
|
@update:conversation-id="$emit('update:conversationId', $event)"
|
|
@@ -8,6 +8,7 @@ const props = defineProps({
|
|
|
8
8
|
hideSidebar: { type: Boolean, required: false },
|
|
9
9
|
sidebar: { type: Object, required: false },
|
|
10
10
|
hideSettings: { type: Boolean, required: false },
|
|
11
|
+
hideFolderHint: { type: Boolean, required: false },
|
|
11
12
|
loadingMessages: { type: [Array, null], required: false },
|
|
12
13
|
loadingMessagesMode: { type: [String, null], required: false },
|
|
13
14
|
customComponents: { type: Object, required: false },
|
|
@@ -37,6 +38,7 @@ const hideSettings = computed(() => props.hideSettings ?? false);
|
|
|
37
38
|
:hide-sidebar="hideSidebar"
|
|
38
39
|
:sidebar="sidebar"
|
|
39
40
|
:hide-settings="hideSettings"
|
|
41
|
+
:hide-folder-hint="hideFolderHint"
|
|
40
42
|
:features="features"
|
|
41
43
|
:loading-messages="loadingMessages"
|
|
42
44
|
:loading-messages-mode="loadingMessagesMode"
|
|
@@ -64,6 +66,7 @@ const hideSettings = computed(() => props.hideSettings ?? false);
|
|
|
64
66
|
:hide-sidebar="hideSidebar"
|
|
65
67
|
:sidebar="sidebar"
|
|
66
68
|
:hide-settings="hideSettings"
|
|
69
|
+
:hide-folder-hint="hideFolderHint"
|
|
67
70
|
:features="features"
|
|
68
71
|
:loading-messages="loadingMessages"
|
|
69
72
|
:loading-messages-mode="loadingMessagesMode"
|
|
@@ -13,6 +13,7 @@ const props = defineProps({
|
|
|
13
13
|
conversations: { type: null, required: true },
|
|
14
14
|
activeId: { type: [String, null], required: true },
|
|
15
15
|
loading: { type: Boolean, required: false },
|
|
16
|
+
hideFolderHint: { type: Boolean, required: false },
|
|
16
17
|
userName: { type: String, required: false },
|
|
17
18
|
userEmail: { type: String, required: false },
|
|
18
19
|
userImage: { type: String, required: false }
|
|
@@ -338,7 +339,7 @@ async function handleConversationDrop(event, groupId) {
|
|
|
338
339
|
<span h-10px w-84px rounded-full bg-neutral-100 />
|
|
339
340
|
</div>
|
|
340
341
|
</div>
|
|
341
|
-
<p px-4px text-14px text-neutral-500 leading-20px>
|
|
342
|
+
<p v-if="!hideFolderHint" px-4px text-14px text-neutral-500 leading-20px>
|
|
342
343
|
Suas pastas aparecem aqui. Crie uma para começar a agrupar conversas.
|
|
343
344
|
</p>
|
|
344
345
|
<ChatConversationNewGroupButton label="Criar pasta" variant="empty-state" />
|
|
@@ -32,6 +32,7 @@ const props = defineProps({
|
|
|
32
32
|
hasPendingMessage: { type: Boolean, required: false },
|
|
33
33
|
hideSettings: { type: Boolean, required: false },
|
|
34
34
|
hideSidebar: { type: Boolean, required: false },
|
|
35
|
+
hideFolderHint: { type: Boolean, required: false },
|
|
35
36
|
isEditing: { type: Boolean, required: true },
|
|
36
37
|
loading: { type: Boolean, required: false },
|
|
37
38
|
messages: { type: Array, required: true },
|
|
@@ -139,6 +140,7 @@ function startNewConversationFromOutdatedSettings() {
|
|
|
139
140
|
:conversations="conversations"
|
|
140
141
|
:active-id="activeConversationId"
|
|
141
142
|
:loading="conversationsLoading"
|
|
143
|
+
:hide-folder-hint="hideFolderHint"
|
|
142
144
|
:user-name="currentUser?.name ?? void 0"
|
|
143
145
|
:user-email="currentUser?.email ?? void 0"
|
|
144
146
|
:user-image="currentUser?.image ?? void 0"
|
|
@@ -44,6 +44,8 @@ export type ChatEmbedSharedProps = {
|
|
|
44
44
|
sidebar?: ChatSidebarConfig;
|
|
45
45
|
/** Hide workspace settings actions while keeping the chat header and content unchanged. */
|
|
46
46
|
hideSettings?: boolean;
|
|
47
|
+
/** Hide the folder onboarding hint while keeping folder creation actions available. */
|
|
48
|
+
hideFolderHint?: boolean;
|
|
47
49
|
/** Custom pending-response messages shown while the assistant is working. */
|
|
48
50
|
loadingMessages?: readonly string[] | null;
|
|
49
51
|
/** How custom loading messages rotate. Defaults to ordered behavior when omitted. */
|