@projectcor/maia-components 2.11.39-2 → 2.11.40-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 (81) hide show
  1. package/lib/App.js +22 -11
  2. package/lib/components/atoms/ChatClientSelector/ChatClientSelector.js +8 -1
  3. package/lib/components/atoms/ContextMentionChip/ContextMentionChip.js +36 -0
  4. package/lib/components/atoms/ContextMentionChip/ContextMentionChip.styles.js +181 -0
  5. package/lib/components/atoms/ContextMentionChip/MentionOverflowLabel.js +39 -0
  6. package/lib/components/atoms/ContextMentionChip/buildChipElement.js +322 -0
  7. package/lib/components/atoms/ContextMentionChip/index.js +4 -0
  8. package/lib/components/atoms/ContextMentionEditor/ContextMentionEditor.js +191 -0
  9. package/lib/components/atoms/ContextMentionEditor/ContextMentionEditor.styles.js +6 -0
  10. package/lib/components/atoms/ContextMentionEditor/index.js +2 -0
  11. package/lib/components/atoms/ContextMentionItem/ContextMentionItem.js +283 -0
  12. package/lib/components/atoms/ContextMentionItem/ContextMentionItem.styles.js +114 -0
  13. package/lib/components/atoms/ContextMentionItem/index.js +2 -0
  14. package/lib/components/atoms/ContextMentionPopover/ContextMentionPopover.js +142 -0
  15. package/lib/components/atoms/ContextMentionPopover/ContextMentionPopover.styles.js +75 -0
  16. package/lib/components/atoms/ContextMentionPopover/index.js +3 -0
  17. package/lib/components/atoms/EntitySelector/EntitySelector.js +15 -2
  18. package/lib/components/atoms/MAIAInput/MAIAInput.js +238 -321
  19. package/lib/components/atoms/MAIAInput/MAIAInputEditor.js +269 -0
  20. package/lib/components/atoms/MAIAInput/styles.js +75 -46
  21. package/lib/components/atoms/ModalProject/ModalProject.js +3 -2
  22. package/lib/components/atoms/ProjectSelector/ProjectSelector.js +5 -6
  23. package/lib/components/atoms/icons/NotionIcon.js +36 -0
  24. package/lib/components/atoms/icons/SubtaskIcon.js +36 -0
  25. package/lib/components/atoms/icons/index.js +2 -1
  26. package/lib/components/index.js +2 -1
  27. package/lib/components/molecules/ChatAIHistory/ChatAIHistory.js +8 -4
  28. package/lib/components/molecules/ChatAIMessages/ChatAIMessages.js +31 -3
  29. package/lib/components/molecules/ChatAIMessages/newStyles.js +5 -2
  30. package/lib/components/molecules/ChatAIModal/ChatAIModal.js +9 -71
  31. package/lib/components/molecules/ChatFooter/ChatFooter.js +5 -4
  32. package/lib/components/molecules/ContextMentionInput/ContextMentionInput.js +68 -0
  33. package/lib/components/molecules/ContextMentionInput/ContextMentionInput.styles.js +6 -0
  34. package/lib/components/molecules/ContextMentionInput/index.js +2 -0
  35. package/lib/components/molecules/Sidebar/Sidebar.js +9 -5
  36. package/lib/components/molecules/Sidebar/Sidebar.layout.styles.js +6 -2
  37. package/lib/components/organisms/ChatAI/ChatAI.js +4 -36
  38. package/lib/components/organisms/DeleteQuestionModal/DeleteQuestionModal.js +5 -2
  39. package/lib/components/organisms/EditQuestionModal/EditQuestionModal.js +6 -3
  40. package/lib/constants/taskLinkIcon.js +6 -0
  41. package/lib/context/cor-user.js +1 -1
  42. package/lib/context/global-context.js +1 -4
  43. package/lib/dev/DevContextMentionInput.js +65 -0
  44. package/lib/dev/Providers.js +11 -6
  45. package/lib/hooks/useCaretPosition.js +35 -0
  46. package/lib/hooks/useChatManager/useChatManager.interface.js +1 -1
  47. package/lib/hooks/useChatManager/useChatManager.js +22 -24
  48. package/lib/hooks/useChatMessages/useChatMessages.interface.js +1 -1
  49. package/lib/hooks/useChatMessages/useChatMessages.js +30 -14
  50. package/lib/hooks/useContextMentions.js +270 -0
  51. package/lib/hooks/useEntitySearch.js +535 -0
  52. package/lib/hooks/useEvent.js +7 -2
  53. package/lib/hooks/useMentionAllowedTypes.js +103 -0
  54. package/lib/hooks/useMentionPopover.js +319 -0
  55. package/lib/hooks/useOrchestratorStream/useOrchestratorStream.js +6 -4
  56. package/lib/hooks/useTaskPanel.js +3 -10
  57. package/lib/hooks/useTextOverflowEllipsisTooltip.js +35 -0
  58. package/lib/lang/br/index.js +24 -1
  59. package/lib/lang/en/index.js +24 -1
  60. package/lib/lang/es/index.js +24 -1
  61. package/lib/lang/fr/index.js +23 -1
  62. package/lib/services/maia/Chats/getChatMessages.js +29 -4
  63. package/lib/services/maia/Orchestrator/orchestrator.js +8 -11
  64. package/lib/services/maia/RecentProjects/getRecentProjects.js +12 -4
  65. package/lib/services/maia/RecentTasks/getRecentTasks.js +43 -0
  66. package/lib/services/maia/RecentTasks/index.js +6 -0
  67. package/lib/services/maia/RecentUsers/getRecentUsers.js +59 -0
  68. package/lib/services/maia/RecentUsers/index.js +6 -0
  69. package/lib/services/query/entitySearchQuery.js +16 -0
  70. package/lib/services/query/usersDirectoryQuery.js +19 -0
  71. package/lib/services/utils/mapChatMessages.js +12 -5
  72. package/lib/types/Chat.js +1 -1
  73. package/lib/types/agent.js +1 -1
  74. package/lib/types/contextMention.js +37 -0
  75. package/lib/utils/contextMentionIcons.js +115 -0
  76. package/lib/utils/contextMentionLabel.js +4 -0
  77. package/lib/utils/contextMentionTypeLabel.js +17 -0
  78. package/lib/utils/maiaStreamdownRehypePlugins.js +27 -0
  79. package/lib/utils/openTaskInCorPanel.js +18 -0
  80. package/lib/utils/renderContextMentions.js +293 -0
  81. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
1
  export {};
2
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2hvb2tzL3VzZUNoYXRNYW5hZ2VyL3VzZUNoYXRNYW5hZ2VyLmludGVyZmFjZS50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBQcm9qZWN0IH0gZnJvbSAnLi4vLi4vdHlwZXMvUHJvamVjdCdcbmltcG9ydCB7IEF0dGFjaG1lbnRGaWxlIH0gZnJvbSAnLi4vLi4vY29tcG9uZW50cy9tb2xlY3VsZXMvQ2hhdEZvb3Rlci9DaGF0Rm9vdGVyJ1xuaW1wb3J0IHs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