@meistrari/chat-nuxt 3.9.1 → 3.10.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.
Files changed (87) hide show
  1. package/README.md +50 -440
  2. package/dist/module.d.mts +1 -1
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +56 -3
  5. package/dist/runtime/assets/css/markstream.css +1 -1
  6. package/dist/runtime/conversations/components/chat-conversation-creator-filter.vue +11 -67
  7. package/dist/runtime/conversations/components/chat-conversation-item.d.vue.ts +2 -1
  8. package/dist/runtime/conversations/components/chat-conversation-item.vue +29 -33
  9. package/dist/runtime/conversations/components/chat-conversation-item.vue.d.ts +2 -1
  10. package/dist/runtime/conversations/components/chat-conversation-list.d.vue.ts +0 -1
  11. package/dist/runtime/conversations/components/chat-conversation-list.vue +117 -158
  12. package/dist/runtime/conversations/components/chat-conversation-list.vue.d.ts +0 -1
  13. package/dist/runtime/conversations/components/chat-conversation-new-group-button.vue +34 -73
  14. package/dist/runtime/conversations/components/chat-conversation-search.vue +1 -21
  15. package/dist/runtime/conversations/components/chat-widget-history-list.d.vue.ts +12 -0
  16. package/dist/runtime/conversations/components/chat-widget-history-list.vue +27 -0
  17. package/dist/runtime/conversations/components/chat-widget-history-list.vue.d.ts +12 -0
  18. package/dist/runtime/conversations/composables/conversation-groups.d.ts +1 -0
  19. package/dist/runtime/conversations/composables/conversation-groups.js +2 -0
  20. package/dist/runtime/conversations/composables/conversation-item.js +4 -4
  21. package/dist/runtime/conversations/composables/conversation-list.js +14 -5
  22. package/dist/runtime/embed/components/chat-configuration-modal.d.vue.ts +3 -3
  23. package/dist/runtime/embed/components/chat-configuration-modal.vue.d.ts +3 -3
  24. package/dist/runtime/embed/components/chat-embed-inner.d.vue.ts +6 -3
  25. package/dist/runtime/embed/components/chat-embed-inner.vue +365 -152
  26. package/dist/runtime/embed/components/chat-embed-inner.vue.d.ts +6 -3
  27. package/dist/runtime/embed/components/chat-embed.d.vue.ts +31 -4
  28. package/dist/runtime/embed/components/chat-embed.vue +10 -4
  29. package/dist/runtime/embed/components/chat-embed.vue.d.ts +31 -4
  30. package/dist/runtime/embed/components/chat-topbar.vue +83 -85
  31. package/dist/runtime/embed/components/meistrari-chat-embed.d.vue.ts +5 -3
  32. package/dist/runtime/embed/components/meistrari-chat-embed.vue +118 -57
  33. package/dist/runtime/embed/components/meistrari-chat-embed.vue.d.ts +5 -3
  34. package/dist/runtime/embed/components/mobile/chat-mobile-drawer.d.vue.ts +0 -1
  35. package/dist/runtime/embed/components/mobile/chat-mobile-drawer.vue +2 -45
  36. package/dist/runtime/embed/components/mobile/chat-mobile-drawer.vue.d.ts +0 -1
  37. package/dist/runtime/embed/components/mobile/chat-mobile-home-suggestions.d.vue.ts +9 -5
  38. package/dist/runtime/embed/components/mobile/chat-mobile-home-suggestions.vue +14 -25
  39. package/dist/runtime/embed/components/mobile/chat-mobile-home-suggestions.vue.d.ts +9 -5
  40. package/dist/runtime/embed/components/mobile/chat-mobile-shell.d.vue.ts +6 -6
  41. package/dist/runtime/embed/components/mobile/chat-mobile-shell.vue +2 -3
  42. package/dist/runtime/embed/components/mobile/chat-mobile-shell.vue.d.ts +6 -6
  43. package/dist/runtime/embed/feature-config.d.ts +7 -0
  44. package/dist/runtime/embed/types.d.ts +47 -8
  45. package/dist/runtime/files/icons.d.ts +1 -1
  46. package/dist/runtime/files/icons.js +1 -1
  47. package/dist/runtime/messages/components/chat-mention-dropdown.d.vue.ts +6 -1
  48. package/dist/runtime/messages/components/chat-mention-dropdown.vue +46 -22
  49. package/dist/runtime/messages/components/chat-mention-dropdown.vue.d.ts +6 -1
  50. package/dist/runtime/messages/components/chat-message-bubble.vue +53 -71
  51. package/dist/runtime/messages/components/chat-message-feedback.vue +25 -229
  52. package/dist/runtime/messages/components/chat-message-input.vue +176 -134
  53. package/dist/runtime/messages/components/chat-message-list.d.vue.ts +6 -0
  54. package/dist/runtime/messages/components/chat-message-list.vue +27 -23
  55. package/dist/runtime/messages/components/chat-message-list.vue.d.ts +6 -0
  56. package/dist/runtime/messages/components/chat-model-selector.vue +10 -22
  57. package/dist/runtime/messages/components/reasoning/chat-reasoning-message.vue +2 -3
  58. package/dist/runtime/messages/components/reasoning/chat-reasoning-thought.vue +60 -69
  59. package/dist/runtime/messages/components/reasoning/chat-thinking-indicator.vue +3 -9
  60. package/dist/runtime/messages/components/widgets/chat-bash-widget.vue +3 -12
  61. package/dist/runtime/messages/components/widgets/chat-doc-sdk-widget.vue +3 -12
  62. package/dist/runtime/messages/components/widgets/chat-generic-tool-widget.vue +3 -12
  63. package/dist/runtime/messages/components/widgets/chat-grep-widget.vue +7 -17
  64. package/dist/runtime/messages/components/widgets/chat-read-widget.vue +7 -17
  65. package/dist/runtime/messages/components/widgets/chat-tela-skill-widget.vue +4 -13
  66. package/dist/runtime/messages/components/widgets/chat-thinking-widget.vue +11 -22
  67. package/dist/runtime/messages/components/widgets/chat-web-search-widget.vue +13 -40
  68. package/dist/runtime/messages/components/widgets/chat-workstation-query-widget.vue +52 -65
  69. package/dist/runtime/messages/components/widgets/chat-write-widget.vue +8 -18
  70. package/dist/runtime/messages/composables/mention-autocomplete.js +4 -0
  71. package/dist/runtime/messages/message-reasoning.js +4 -0
  72. package/dist/runtime/messages/message-state.js +1 -0
  73. package/dist/runtime/public/files/generic.svg +2 -5
  74. package/dist/runtime/public/files/image.svg +2 -1
  75. package/dist/runtime/types/embed.d.ts +1 -1
  76. package/dist/runtime/types/schemas/chat/conversations.d.ts +2 -0
  77. package/dist/runtime/types/schemas/chat/conversations.js +3 -0
  78. package/dist/runtime/types/schemas/chat/messages.d.ts +4 -0
  79. package/dist/runtime/types/schemas/chat/messages.js +7 -0
  80. package/dist/types.d.mts +1 -1
  81. package/package.json +5 -4
  82. package/dist/runtime/conversations/components/chat-conversation-new-group-popover-content.d.vue.ts +0 -23
  83. package/dist/runtime/conversations/components/chat-conversation-new-group-popover-content.vue +0 -75
  84. package/dist/runtime/conversations/components/chat-conversation-new-group-popover-content.vue.d.ts +0 -23
  85. package/dist/runtime/messages/components/reasoning/chat-reasoning-step-item.d.vue.ts +0 -37
  86. package/dist/runtime/messages/components/reasoning/chat-reasoning-step-item.vue +0 -125
  87. package/dist/runtime/messages/components/reasoning/chat-reasoning-step-item.vue.d.ts +0 -37
@@ -15,7 +15,7 @@ export function useConversationList(options) {
15
15
  const embedConfig = useEmbedConfig();
16
16
  const { activeOrganization } = useChatAuth();
17
17
  const { deleteConversation, renameConversation, duplicateConversation, moveConversationToGroup } = useConversations();
18
- const { groups, fetchGroups, deleteGroup, renameGroup, error: groupError } = useConversationGroups();
18
+ const { groups, fetchGroups, deleteGroup, renameGroup, error: groupError, pendingRenameGroupId } = useConversationGroups();
19
19
  const { setConversation } = useChat();
20
20
  const route = useRoute();
21
21
  const router = useRouter();
@@ -193,22 +193,31 @@ export function useConversationList(options) {
193
193
  isIgnoringInitialGroupRenameBlur.value = true;
194
194
  void focusRenameGroupInput();
195
195
  }
196
+ watch([pendingRenameGroupId, groups], ([pendingId]) => {
197
+ if (!pendingId)
198
+ return;
199
+ const group = groups.value.find((item) => item.id === pendingId);
200
+ if (!group)
201
+ return;
202
+ pendingRenameGroupId.value = null;
203
+ startRenameGroup(group.id, group.name);
204
+ }, { immediate: true });
196
205
  function getGroupMenuItems(groupId, groupName, conversations) {
197
206
  return [
198
207
  {
199
208
  label: "Renomear pasta",
200
- icon: "i-ph-pencil-simple",
209
+ icon: "i-ph-pencil-simple-bold",
201
210
  click: () => startRenameGroup(groupId, groupName)
202
211
  },
203
212
  {
204
213
  label: "Excluir pasta",
205
- icon: "i-ph-folder-minus",
214
+ icon: "i-ph-folder-minus-bold",
206
215
  color: "negative",
207
216
  click: () => openDeleteGroupModal(groupId, groupName, conversations)
208
217
  },
209
218
  {
210
219
  label: "Excluir conversas",
211
- icon: "i-ph-trash",
220
+ icon: "i-ph-trash-bold",
212
221
  color: "negative",
213
222
  disabled: conversations.length === 0,
214
223
  click: () => openDeleteGroupConversationsModal(groupId, groupName, conversations)
@@ -230,7 +239,7 @@ export function useConversationList(options) {
230
239
  ...groupBucket,
231
240
  open,
232
241
  dropTarget,
233
- folderIcon: open ? "i-ph-folder-open" : "i-ph-folder",
242
+ folderIcon: open ? "i-ph-folder-notch-open-bold" : "i-ph-folder-notch-bold",
234
243
  isRenaming: renamingGroupId.value === groupBucket.group.id,
235
244
  conversationCountLabel: groupBucket.items.length > 0 ? String(groupBucket.items.length) : null,
236
245
  showNewConversationAction: !hasConversationSearchQuery.value,
@@ -9,14 +9,14 @@ type __VLS_Props = {
9
9
  showCredentialsTab?: boolean;
10
10
  };
11
11
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
12
- save: (payload: ChatConfigurationSavePayload) => any;
13
12
  "update:open": (value: boolean) => any;
13
+ save: (payload: ChatConfigurationSavePayload) => any;
14
14
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
- onSave?: ((payload: ChatConfigurationSavePayload) => any) | undefined;
16
15
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
16
+ onSave?: ((payload: ChatConfigurationSavePayload) => any) | undefined;
17
17
  }>, {
18
- saving: boolean;
19
18
  initialTab: ChatConfigurationTab;
19
+ saving: boolean;
20
20
  showCredentialsTab: boolean;
21
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
22
  declare const _default: typeof __VLS_export;
@@ -9,14 +9,14 @@ type __VLS_Props = {
9
9
  showCredentialsTab?: boolean;
10
10
  };
11
11
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
12
- save: (payload: ChatConfigurationSavePayload) => any;
13
12
  "update:open": (value: boolean) => any;
13
+ save: (payload: ChatConfigurationSavePayload) => any;
14
14
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
- onSave?: ((payload: ChatConfigurationSavePayload) => any) | undefined;
16
15
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
16
+ onSave?: ((payload: ChatConfigurationSavePayload) => any) | undefined;
17
17
  }>, {
18
- saving: boolean;
19
18
  initialTab: ChatConfigurationTab;
19
+ saving: boolean;
20
20
  showCredentialsTab: boolean;
21
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
22
  declare const _default: typeof __VLS_export;
@@ -1,5 +1,5 @@
1
1
  import type { ChatFeatureConfig } from '../feature-config.js';
2
- import type { ChatActor, ChatSidebarConfig } from '../types.js';
2
+ import type { ChatActor, ChatSidebarConfig, ChatSuggestion } from '../types.js';
3
3
  type EmbedUser = ChatActor;
4
4
  type __VLS_Props = {
5
5
  conversationId?: string | null;
@@ -7,7 +7,8 @@ type __VLS_Props = {
7
7
  hideSidebar?: boolean;
8
8
  sidebar?: ChatSidebarConfig;
9
9
  hideSettings?: boolean;
10
- hideFolderHint?: boolean;
10
+ compact?: boolean;
11
+ suggestions?: readonly ChatSuggestion[] | null;
11
12
  user?: EmbedUser | null;
12
13
  features?: Partial<ChatFeatureConfig>;
13
14
  };
@@ -17,13 +18,15 @@ type __VLS_Slots = {} & {
17
18
  };
18
19
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
19
20
  "update:conversationId": (value: string | null) => any;
21
+ "update:conversationTitle": (value: string | null) => any;
20
22
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
21
23
  "onUpdate:conversationId"?: ((value: string | null) => any) | undefined;
24
+ "onUpdate:conversationTitle"?: ((value: string | null) => any) | undefined;
22
25
  }>, {
23
- hideFolderHint: boolean;
24
26
  hideSettings: boolean;
25
27
  hideSidebar: boolean;
26
28
  initialConversationId: string | null;
29
+ compact: boolean;
27
30
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
31
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
29
32
  declare const _default: typeof __VLS_export;