@projectcor/maia-components 2.52.0 → 2.52.1-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 (430) hide show
  1. package/lib/App.js +44 -19
  2. package/lib/components/atoms/ActionableButton.spec.js +111 -0
  3. package/lib/components/atoms/AgentActivityIndicator/AgentActivityIndicator.spec.js +52 -0
  4. package/lib/components/atoms/AgentActivityIndicator/AgentActivityIndicator.utils.spec.js +11 -0
  5. package/lib/components/atoms/ApprovalBox/ApprovalBox.helpers.spec.js +63 -0
  6. package/lib/components/atoms/ApprovalBox/ApprovalBox.spec.js +183 -0
  7. package/lib/components/atoms/AttachmentCard/AttachmentCard.spec.js +123 -0
  8. package/lib/components/atoms/AttachmentCard/AttachmentCardAudio.helpers.js +3 -1
  9. package/lib/components/atoms/AttachmentCard/AttachmentCardAudio.helpers.spec.js +139 -0
  10. package/lib/components/atoms/AttachmentCard/AttachmentCardAudio.spec.js +385 -0
  11. package/lib/components/atoms/AttachmentCard/AttachmentCardImage.js +3 -1
  12. package/lib/components/atoms/AttachmentCard/AttachmentCardImage.spec.js +78 -0
  13. package/lib/components/atoms/AttachmentPreviewModal/AttachmentPreviewModal.helpers.spec.js +94 -0
  14. package/lib/components/atoms/AttachmentPreviewModal/AttachmentPreviewModal.js +24 -14
  15. package/lib/components/atoms/AttachmentPreviewModal/AttachmentPreviewModal.spec.js +396 -0
  16. package/lib/components/atoms/AttachmentPreviewModal/ExcelPreview.js +28 -10
  17. package/lib/components/atoms/AttachmentPreviewModal/ExcelPreview.spec.js +80 -0
  18. package/lib/components/atoms/AttachmentPreviewModal/PptPreview.helpers.spec.js +526 -0
  19. package/lib/components/atoms/AttachmentPreviewModal/PptPreview.js +19 -15
  20. package/lib/components/atoms/AttachmentPreviewModal/PptPreview.spec.js +169 -0
  21. package/lib/components/atoms/AttachmentPreviewModal/WordPreview.helpers.spec.js +11 -0
  22. package/lib/components/atoms/AttachmentPreviewModal/WordPreview.js +8 -4
  23. package/lib/components/atoms/AttachmentPreviewModal/WordPreview.spec.js +77 -0
  24. package/lib/components/atoms/Backdrop/Backdrop.spec.js +28 -0
  25. package/lib/components/atoms/CardMenu/CardMenu.spec.js +56 -0
  26. package/lib/components/atoms/ChatClientSelector/ChatClientSelector.spec.js +67 -0
  27. package/lib/components/atoms/Checkbox/Checkbox.spec.js +27 -0
  28. package/lib/components/atoms/Chip/Chip.spec.js +82 -0
  29. package/lib/components/atoms/ChipLlm/ChipLlm.spec.js +26 -0
  30. package/lib/components/atoms/ClientSelector/ClientSelector.helpers.spec.js +45 -0
  31. package/lib/components/atoms/ClientSelector/ClientSelector.js +15 -13
  32. package/lib/components/atoms/ClientSelector/ClientSelector.spec.js +133 -0
  33. package/lib/components/atoms/ContextCompactedNotice/ContextCompactedNotice.spec.js +107 -0
  34. package/lib/components/atoms/ContextMentionChip/ContextMentionChip.spec.js +29 -0
  35. package/lib/components/atoms/ContextMentionChip/MentionOverflowLabel.spec.js +46 -0
  36. package/lib/components/atoms/ContextMentionChip/buildChipElement.helpers.spec.js +109 -0
  37. package/lib/components/atoms/ContextMentionChip/buildChipElement.spec.js +81 -0
  38. package/lib/components/atoms/ContextMentionEditor/ContextMentionEditor.helpers.spec.js +92 -0
  39. package/lib/components/atoms/ContextMentionEditor/ContextMentionEditor.spec.js +319 -0
  40. package/lib/components/atoms/ContextMentionItem/ContextMentionItem.spec.js +107 -0
  41. package/lib/components/atoms/ContextMentionPopover/ContextMentionPopover.spec.js +136 -0
  42. package/lib/components/atoms/CopyToClipboard.spec.js +74 -0
  43. package/lib/components/atoms/EditableLabel/EditableLabel.spec.js +76 -0
  44. package/lib/components/atoms/EntitySelector/EntitySelector.spec.js +86 -0
  45. package/lib/components/atoms/Expand/Expand.spec.js +57 -0
  46. package/lib/components/atoms/Fade/Fade.js +10 -6
  47. package/lib/components/atoms/Fade/Fade.spec.js +66 -0
  48. package/lib/components/atoms/FeedbackButton/FeedbackButton.spec.js +75 -0
  49. package/lib/components/atoms/FrequentlyAskedQuestions/FrequentlyAskedQuestions.spec.js +104 -0
  50. package/lib/components/atoms/FrequentlyUsedActions/FrequentlyUsedActions.js +3 -1
  51. package/lib/components/atoms/FrequentlyUsedActions/FrequentlyUsedActions.spec.js +91 -0
  52. package/lib/components/atoms/FrequentlyUsedActions/FrequentlyUsedActions.styles.js +19 -7
  53. package/lib/components/atoms/HelpButton.spec.js +87 -0
  54. package/lib/components/atoms/ImagePreview/ImagePreview.spec.js +96 -0
  55. package/lib/components/atoms/ListMenuOption/ListMenuOption.spec.js +54 -0
  56. package/lib/components/atoms/LoadingFaqs/LoadingFaqs.spec.js +21 -0
  57. package/lib/components/atoms/LoadingSearchClients/LoadingSearchClients.spec.js +20 -0
  58. package/lib/components/atoms/LoadingSearchProjects/LoadingSearchProjects.spec.js +26 -0
  59. package/lib/components/atoms/LoadingText/LoadingText.spec.js +25 -0
  60. package/lib/components/atoms/MAIAButton/MAIAButton.spec.js +42 -0
  61. package/lib/components/atoms/MAIAError/MAIAError.spec.js +27 -0
  62. package/lib/components/atoms/MAIAInput/MAIAInput.attachments.helpers.js +3 -2
  63. package/lib/components/atoms/MAIAInput/MAIAInput.attachments.helpers.spec.js +113 -0
  64. package/lib/components/atoms/MAIAInput/MAIAInput.helpers.js +3 -2
  65. package/lib/components/atoms/MAIAInput/MAIAInput.helpers.spec.js +381 -0
  66. package/lib/components/atoms/MAIAInput/MAIAInput.js +123 -99
  67. package/lib/components/atoms/MAIAInput/MAIAInput.spec.js +719 -0
  68. package/lib/components/atoms/MAIAInput/MAIAInputEditor.helpers.spec.js +92 -0
  69. package/lib/components/atoms/MAIAInput/MAIAInputEditor.spec.js +193 -0
  70. package/lib/components/atoms/MAIAInput/maiaInputLayout.spec.js +32 -0
  71. package/lib/components/atoms/MaiaStreamdown/MaiaStreamdown.spec.js +64 -0
  72. package/lib/components/atoms/MaiaWrapper/MaiaWrapper.spec.js +43 -0
  73. package/lib/components/atoms/MaiaWrapper/MaiaWrapperBase.js +9 -4
  74. package/lib/components/atoms/MaiaWrapper/MaiaWrapperBase.spec.js +114 -0
  75. package/lib/components/atoms/MaiaWrapper/ModernMaiaWrapper.spec.js +51 -0
  76. package/lib/components/atoms/ModalClientAccess/ModalClientAccess.spec.js +48 -0
  77. package/lib/components/atoms/ModalProject/ModalProject.spec.js +66 -0
  78. package/lib/components/atoms/NextPageLoader.spec.js +37 -0
  79. package/lib/components/atoms/OnboardingModalButton/OnboardingModal.spec.js +20 -0
  80. package/lib/components/atoms/OnboardingModalButton/OnboardingModalButton.helpers.spec.js +35 -0
  81. package/lib/components/atoms/OnboardingModalButton/OnboardingModalButton.spec.js +47 -0
  82. package/lib/components/atoms/OptionAccessibility/OptionAccessibility.js +4 -5
  83. package/lib/components/atoms/OptionAccessibility/OptionAccessibility.spec.js +146 -0
  84. package/lib/components/atoms/PrimaryButton.spec.js +42 -0
  85. package/lib/components/atoms/ProjectSelector/ProjectSelector.spec.js +69 -0
  86. package/lib/components/atoms/ReasoningBlock/ReasoningBlock.js +7 -2
  87. package/lib/components/atoms/ReasoningBlock/ReasoningBlock.spec.js +69 -0
  88. package/lib/components/atoms/ReasoningBlock/ReasoningBlock.styles.js +41 -24
  89. package/lib/components/atoms/ReasoningBlock/ReasoningSteps.js +25 -10
  90. package/lib/components/atoms/ReasoningBlock/ReasoningSteps.spec.js +59 -0
  91. package/lib/components/atoms/ReasoningBlock/ReasoningTimeline.js +78 -43
  92. package/lib/components/atoms/ReasoningBlock/ReasoningTimeline.spec.js +170 -0
  93. package/lib/components/atoms/ReasoningBlock/groupParallelSteps.js +9 -11
  94. package/lib/components/atoms/ReasoningBlock/groupParallelSteps.spec.js +199 -0
  95. package/lib/components/atoms/ReasoningBlock/reasoningLeading.spec.js +70 -0
  96. package/lib/components/atoms/ReasoningBlock/reasoningLiveNarration.js +37 -15
  97. package/lib/components/atoms/ReasoningBlock/reasoningLiveNarration.spec.js +120 -0
  98. package/lib/components/atoms/ReasoningBlock/reasoningMotion.js +8 -0
  99. package/lib/components/atoms/ReasoningBlock/reasoningTimeline.helpers.spec.js +31 -0
  100. package/lib/components/atoms/ReasoningBlock/useCollapsibleHeight.js +52 -0
  101. package/lib/components/atoms/ReasoningBlock/useCollapsibleHeight.spec.js +90 -0
  102. package/lib/components/atoms/ReasoningBlock/useReasoningMarkerHandoff.js +29 -0
  103. package/lib/components/atoms/ReasoningBlock/useReasoningMarkerHandoff.spec.js +38 -0
  104. package/lib/components/atoms/SessionGeneratingDot/SessionGeneratingDot.spec.js +16 -0
  105. package/lib/components/atoms/SkillsDropdown/SkillsDropdown.spec.js +107 -0
  106. package/lib/components/atoms/SlashCommandChip/SlashCommandChip.spec.js +24 -0
  107. package/lib/components/atoms/SlashCommandDropdown/SlashCommandDropdown.helpers.spec.js +71 -0
  108. package/lib/components/atoms/SlashCommandDropdown/SlashCommandDropdown.spec.js +120 -0
  109. package/lib/components/atoms/Switch/Switch.spec.js +41 -0
  110. package/lib/components/atoms/TextArea/CustomTextArea.spec.js +52 -0
  111. package/lib/components/atoms/TextArea/TextArea.helpers.spec.js +25 -0
  112. package/lib/components/atoms/TextArea/TextArea.spec.js +126 -0
  113. package/lib/components/atoms/ThirdButton.spec.js +29 -0
  114. package/lib/components/atoms/VideoModal/VideoModal.spec.js +68 -0
  115. package/lib/components/atoms/WithAppCfg.spec.js +82 -0
  116. package/lib/components/index.js +2 -1
  117. package/lib/components/molecules/AbmSection/AbmAccessibilitySection/AbmAccessibilitySection.helpers.spec.js +53 -0
  118. package/lib/components/molecules/AbmSection/AbmAccessibilitySection/AbmAccessibilitySection.js +3 -2
  119. package/lib/components/molecules/AbmSection/AbmAccessibilitySection/AbmAccessibilitySection.spec.js +780 -0
  120. package/lib/components/molecules/AbmSection/AbmGeneralSection.helpers.spec.js +107 -0
  121. package/lib/components/molecules/AbmSection/AbmGeneralSection.spec.js +256 -0
  122. package/lib/components/molecules/AbmSection/AbmKnowledgeSection.helpers.js +6 -4
  123. package/lib/components/molecules/AbmSection/AbmKnowledgeSection.helpers.spec.js +175 -0
  124. package/lib/components/molecules/AbmSection/AbmKnowledgeSection.js +25 -16
  125. package/lib/components/molecules/AbmSection/AbmKnowledgeSection.spec.js +318 -0
  126. package/lib/components/molecules/AbmSection/AbmLoaderFiles.helpers.spec.js +50 -0
  127. package/lib/components/molecules/AbmSection/AbmLoaderFiles.spec.js +94 -0
  128. package/lib/components/molecules/AgentInputBlock/AgentInputBlockMessage.js +83 -0
  129. package/lib/components/molecules/AgentInputBlock/AgentInputBlockMessage.styles.js +30 -0
  130. package/lib/components/molecules/AgentInputBlock/index.js +5 -0
  131. package/lib/components/molecules/AgentInputBlock/resolveAgentInputBlock.js +52 -0
  132. package/lib/components/molecules/AgentInputBlock/resolveAgentInputBlock.spec.js +76 -0
  133. package/lib/components/molecules/AgentInputBlock/resolveLegacyContextSession.js +20 -0
  134. package/lib/components/molecules/AgentInputBlock/resolveLegacyContextSession.spec.js +34 -0
  135. package/lib/components/molecules/AgentInputBlock/useAgentChangeModelAction.js +36 -0
  136. package/lib/components/molecules/ChatAIClientSelector/ChatAIClientSelector.spec.js +66 -0
  137. package/lib/components/molecules/ChatAIContent/ChatAIContent.js +7 -3
  138. package/lib/components/molecules/ChatAIContent/ChatAIContent.spec.js +145 -0
  139. package/lib/components/molecules/ChatAIHistory/ChatAIHistory.spec.js +204 -0
  140. package/lib/components/molecules/ChatAIHome/ChatAIHome.helpers.spec.js +622 -0
  141. package/lib/components/molecules/ChatAIHome/ChatAIHome.js +93 -72
  142. package/lib/components/molecules/ChatAIHome/ChatAIHome.spec.js +264 -0
  143. package/lib/components/molecules/ChatAIHome/ChatAIHomeMaiaker.spec.js +86 -0
  144. package/lib/components/molecules/ChatAIHome/styles.js +85 -78
  145. package/lib/components/molecules/ChatAIMessages/ChatAICreateAgentActions.spec.js +104 -0
  146. package/lib/components/molecules/ChatAIMessages/ChatAIMessages.helpers.spec.js +967 -0
  147. package/lib/components/molecules/ChatAIMessages/ChatAIMessages.js +30 -14
  148. package/lib/components/molecules/ChatAIMessages/ChatAIMessages.spec.js +646 -0
  149. package/lib/components/molecules/ChatAIMessages/ChatAISuggestions.spec.js +46 -0
  150. package/lib/components/molecules/ChatAIMessages/newStyles.js +32 -35
  151. package/lib/components/molecules/ChatAIModal/ChatAIModal.helpers.js +8 -1
  152. package/lib/components/molecules/ChatAIModal/ChatAIModal.helpers.spec.js +1395 -0
  153. package/lib/components/molecules/ChatAIModal/ChatAIModal.js +23 -8
  154. package/lib/components/molecules/ChatAIModal/ChatAIModal.spec.js +1434 -0
  155. package/lib/components/molecules/ChatAIModal/ChatAIModal.styles.js +2 -2
  156. package/lib/components/molecules/ChatAIModal/components/ChatAiAgentOptions/ChatAiAgentOptions.helpers.spec.js +33 -0
  157. package/lib/components/molecules/ChatAIModal/components/ChatAiAgentOptions/ChatAiAgentOptions.spec.js +116 -0
  158. package/lib/components/molecules/ChatAIModal/components/ChatAiModalFooter/ChatAiModalFooter.js +15 -153
  159. package/lib/components/molecules/ChatAIModal/components/ChatAiModalFooter/ChatAiModalFooter.spec.js +134 -0
  160. package/lib/components/molecules/ChatAIModal/components/ChatAiModalFooter/ChatAiModalFooter.styles.js +2 -26
  161. package/lib/components/molecules/ChatAIModal/components/ChatAiModalHeader/ChatAiModalHeader.helpers.spec.js +142 -0
  162. package/lib/components/molecules/ChatAIModal/components/ChatAiModalHeader/ChatAiModalHeader.js +63 -367
  163. package/lib/components/molecules/ChatAIModal/components/ChatAiModalHeader/ChatAiModalHeader.spec.js +241 -0
  164. package/lib/components/molecules/ChatAIModal/components/ChatAiModalHeader/ChatAiModalHeader.utils.js +69 -0
  165. package/lib/components/molecules/ChatAIModal/components/ChatAiModalHeader/ChatAiModalHeader.utils.spec.js +144 -0
  166. package/lib/components/molecules/ChatAIModal/components/ChatAiModalHeader/ChatAiModalHeaderAgentDropdown.js +95 -0
  167. package/lib/components/molecules/ChatAIModal/components/ChatAiModalHeader/ChatAiModalHeaderAgentSelector.js +174 -0
  168. package/lib/components/molecules/ChatAIModal/components/ChatAiModalHeader/ChatAiModalHeaderLayoutMenu.js +99 -0
  169. package/lib/components/molecules/ChatAIModal/components/ChatAiModalHeader/ChatAiModalHeaderLayoutMenu.spec.js +65 -0
  170. package/lib/components/molecules/ChatAIModal/components/MaiaMinimizedPill/MaiaMinimizedPill.spec.js +37 -0
  171. package/lib/components/molecules/ChatAIModal/constants.spec.js +16 -0
  172. package/lib/components/molecules/ChatAIModal/floatingPanelMotion/FloatingPanelMotion.spec.js +22 -0
  173. package/lib/components/molecules/ChatAIModal/floatingPanelMotion/useFloatingPanelDragTilt.spec.js +67 -0
  174. package/lib/components/molecules/ChatAIModal/layout.spec.js +72 -0
  175. package/lib/components/molecules/ChatAIMultipleChoice/ChatAIMultipleChoice.spec.js +102 -0
  176. package/lib/components/molecules/ChatAIMultipleChoice/ChatAIMultipleChoiceAnswer.spec.js +49 -0
  177. package/lib/components/molecules/ChatAIMyAgents/ChatAIMyAgents.helpers.spec.js +93 -0
  178. package/lib/components/molecules/ChatAIMyAgents/ChatAIMyAgents.spec.js +297 -0
  179. package/lib/components/molecules/ChatAIMySkills/ChatAIMySkills.helpers.spec.js +62 -0
  180. package/lib/components/molecules/ChatAIMySkills/ChatAIMySkills.spec.js +221 -0
  181. package/lib/components/molecules/ChatAIProjectSelector/ChatAIProjectSelector.spec.js +66 -0
  182. package/lib/components/molecules/ChatFooter/ChatFooter.js +10 -4
  183. package/lib/components/molecules/ChatFooter/ChatFooter.spec.js +548 -0
  184. package/lib/components/molecules/ChatFooter/ChatFooterCorAccess.spec.js +10 -0
  185. package/lib/components/molecules/ChatFooter/ChatFooterFaqs.helpers.spec.js +104 -0
  186. package/lib/components/molecules/ChatFooter/ChatFooterFaqs.js +5 -2
  187. package/lib/components/molecules/ChatFooter/ChatFooterFaqs.spec.js +139 -0
  188. package/lib/components/molecules/ContextMentionInput/ContextMentionInput.spec.js +84 -0
  189. package/lib/components/molecules/MessageFeedback/MessageFeedback.spec.js +116 -0
  190. package/lib/components/molecules/ProjectSummaryChat/ProjectSummaryChat.spec.js +126 -0
  191. package/lib/components/molecules/ProjectSummaryConfig/ProjectSummaryConfig.spec.js +115 -0
  192. package/lib/components/molecules/ProjectSummaryContent/ProjectSummaryContent.spec.js +79 -0
  193. package/lib/components/molecules/ProjectSummaryModal/ProjectSummaryModal.spec.js +37 -0
  194. package/lib/components/molecules/Sidebar/Sidebar.helpers.spec.js +119 -0
  195. package/lib/components/molecules/Sidebar/Sidebar.js +41 -23
  196. package/lib/components/molecules/Sidebar/Sidebar.spec.js +526 -0
  197. package/lib/components/organisms/AbmAgentModal/AbmAgentModal.helpers.spec.js +1067 -0
  198. package/lib/components/organisms/AbmAgentModal/AbmAgentModal.js +2 -2
  199. package/lib/components/organisms/AbmAgentModal/AbmAgentModal.spec.js +1236 -0
  200. package/lib/components/organisms/AbmSkillGenerateModal/AbmSkillGenerateModal.spec.js +112 -0
  201. package/lib/components/organisms/AbmSkillModal/AbmSkillModal.helpers.spec.js +77 -0
  202. package/lib/components/organisms/AbmSkillModal/AbmSkillModal.spec.js +503 -0
  203. package/lib/components/organisms/ChatAI/ChatAI.spec.js +217 -0
  204. package/lib/components/organisms/ChatAIPage/ChatAIPage.js +525 -0
  205. package/lib/components/organisms/ChatAIPage/ChatAIPage.spec.js +246 -0
  206. package/lib/components/organisms/ChatAIPage/ChatAIPage.styles.js +16 -0
  207. package/lib/components/organisms/ChatAIPage/ChatAIPageHeader.js +253 -0
  208. package/lib/components/organisms/ChatAIPage/ChatAIPageHeader.spec.js +291 -0
  209. package/lib/components/organisms/ChatAIPage/ChatAIPageHeader.styles.js +13 -0
  210. package/lib/components/organisms/ChatAIPage/ChatAIPageHome.js +284 -0
  211. package/lib/components/organisms/ChatAIPage/ChatAIPageHome.spec.js +343 -0
  212. package/lib/components/organisms/ChatAIPage/ChatAIPageHome.styles.js +197 -0
  213. package/lib/components/organisms/ChatAIPage/ChatAIPageHomeActionCardSlot.js +94 -0
  214. package/lib/components/organisms/ChatAIPage/ChatAIPageHomeActionCardSlot.spec.js +69 -0
  215. package/lib/components/organisms/ChatAIPage/ChatAIPageHomeActionCards.skeleton.js +38 -0
  216. package/lib/components/organisms/ChatAIPage/getDaypart.js +9 -0
  217. package/lib/components/organisms/ChatAIPage/getDaypart.spec.js +19 -0
  218. package/lib/components/organisms/ChatAIPage/index.js +3 -0
  219. package/lib/components/organisms/ClientAIButton/ClientAIButton.spec.js +53 -0
  220. package/lib/components/organisms/DeleteAgentModal/DeleteAgentModal.spec.js +59 -0
  221. package/lib/components/organisms/DeleteQuestionModal/DeleteQuestionModal.spec.js +79 -0
  222. package/lib/components/organisms/EditQuestionModal/EditQuestionModal.spec.js +86 -0
  223. package/lib/components/organisms/ModalFileExceeds/ModalFileExceeds.spec.js +49 -0
  224. package/lib/components/organisms/ProjectAIButton/ProjectAIButton.spec.js +67 -0
  225. package/lib/components/organisms/ProjectSummary/ProjectSummary.js +11 -7
  226. package/lib/components/organisms/ProjectSummary/ProjectSummary.spec.js +117 -0
  227. package/lib/components/organisms/SnackBar/Snackbar.spec.js +66 -0
  228. package/lib/components/organisms/SourcesInformation/SourceItem.spec.js +19 -0
  229. package/lib/components/organisms/SourcesInformation/SourcesInformationModal.js +4 -1
  230. package/lib/components/organisms/SourcesInformation/SourcesInformationModal.spec.js +52 -0
  231. package/lib/constants/formatExtensions.spec.js +15 -0
  232. package/lib/constants/maiaExternalConnectorsAccess.spec.js +29 -0
  233. package/lib/constants/maiaFeatureAccess.spec.js +30 -0
  234. package/lib/constants/maiaHourAgentAccess.spec.js +30 -0
  235. package/lib/constants/maiaTaskPanelAccess.spec.js +41 -0
  236. package/lib/constants/permissions/clientRoleAccess.spec.js +65 -0
  237. package/lib/constants/permissions/index.js +2 -2
  238. package/lib/constants/permissions/utils.js +4 -1
  239. package/lib/constants/permissions/utils.spec.js +128 -0
  240. package/lib/constants/plannerSyncEvents.spec.js +31 -0
  241. package/lib/constants/taskUrls.spec.js +9 -0
  242. package/lib/dev/DevMaiaPage.js +30 -0
  243. package/lib/dev/DevReasoningTimeline.js +68 -37
  244. package/lib/dev/Providers.js +5 -3
  245. package/lib/hooks/frequentlyUsedActionsCache.js +17 -0
  246. package/lib/hooks/frequentlyUsedActionsCache.spec.js +25 -0
  247. package/lib/hooks/useAccessClient/useAccessClient.spec.js +149 -0
  248. package/lib/hooks/useAgentModel/useAgentModel.spec.js +83 -0
  249. package/lib/hooks/useAgentModel/useCreateAgent.helpers.spec.js +268 -0
  250. package/lib/hooks/useAgentModel/useCreateAgent.spec.js +314 -0
  251. package/lib/hooks/useAgentModel/useDeleteAgent.spec.js +183 -0
  252. package/lib/hooks/useAgentModel/useUpdateAgent.js +7 -6
  253. package/lib/hooks/useAgentModel/useUpdateAgent.spec.js +374 -0
  254. package/lib/hooks/useAgentSuggestions.spec.js +89 -0
  255. package/lib/hooks/useCaretPosition.spec.js +58 -0
  256. package/lib/hooks/useChatManager/useChatManager.helpers.js +3 -3
  257. package/lib/hooks/useChatManager/useChatManager.helpers.spec.js +2027 -0
  258. package/lib/hooks/useChatManager/useChatManager.js +8 -7
  259. package/lib/hooks/useChatManager/useChatManager.spec.js +2467 -0
  260. package/lib/hooks/useChatMessages/useChatMessages.helpers.spec.js +491 -0
  261. package/lib/hooks/useChatMessages/useChatMessages.spec.js +729 -0
  262. package/lib/hooks/useChats/useChats.spec.js +208 -0
  263. package/lib/hooks/useClientSearch.helpers.spec.js +52 -0
  264. package/lib/hooks/useClientSearch.spec.js +86 -0
  265. package/lib/hooks/useContextMentions.helpers.spec.js +267 -0
  266. package/lib/hooks/useContextMentions.spec.js +338 -0
  267. package/lib/hooks/useContextPinPopover.helpers.spec.js +183 -0
  268. package/lib/hooks/useContextPinPopover.spec.js +159 -0
  269. package/lib/hooks/useContinueLegacyContextInNewChat/index.js +2 -0
  270. package/lib/hooks/useContinueLegacyContextInNewChat/useContinueLegacyContextInNewChat.js +93 -0
  271. package/lib/hooks/useContinueLegacyContextInNewChat/useContinueLegacyContextInNewChat.spec.js +257 -0
  272. package/lib/hooks/useDebounce.spec.js +42 -0
  273. package/lib/hooks/useEntitySearch.helpers.spec.js +723 -0
  274. package/lib/hooks/useEntitySearch.js +3 -1
  275. package/lib/hooks/useEntitySearch.spec.js +718 -0
  276. package/lib/hooks/useEvent.spec.js +45 -0
  277. package/lib/hooks/useFrequentlyAskedQuestions.spec.js +222 -0
  278. package/lib/hooks/useFrequentlyUsedActions.js +61 -22
  279. package/lib/hooks/useFrequentlyUsedActions.spec.js +293 -0
  280. package/lib/hooks/useIsMaiaPageRoute.spec.js +26 -0
  281. package/lib/hooks/useKnowledge/deleteKnowledge.spec.js +122 -0
  282. package/lib/hooks/useKnowledge/downloadKnowledge.js +4 -4
  283. package/lib/hooks/useKnowledge/downloadKnowledge.spec.js +148 -0
  284. package/lib/hooks/useKnowledge/saveKnowledge.spec.js +104 -0
  285. package/lib/hooks/useKnowledge/useKnowledgeOperations.js +16 -15
  286. package/lib/hooks/useKnowledge/useKnowledgeOperations.spec.js +178 -0
  287. package/lib/hooks/useLatestRef.spec.js +50 -0
  288. package/lib/hooks/useMaiaChatSessionMeta/index.js +2 -0
  289. package/lib/hooks/useMaiaChatSessionMeta/useMaiaChatSessionMeta.js +24 -0
  290. package/lib/hooks/useMentionAllowedTypes.spec.js +89 -0
  291. package/lib/hooks/useMentionPopover.helpers.spec.js +100 -0
  292. package/lib/hooks/useMentionPopover.spec.js +392 -0
  293. package/lib/hooks/useMinimizedPillBottomOffset.helpers.spec.js +176 -0
  294. package/lib/hooks/useMinimizedPillBottomOffset.spec.js +89 -0
  295. package/lib/hooks/useMinimizedPillNoveltyDot/useMinimizedPillNoveltyDot.spec.js +67 -0
  296. package/lib/hooks/useModal/useModal.spec.js +73 -0
  297. package/lib/hooks/useOrchestratorStream/useOrchestratorStream.helpers.spec.js +138 -0
  298. package/lib/hooks/useOrchestratorStream/useOrchestratorStream.spec.js +485 -0
  299. package/lib/hooks/useProjectSearch.helpers.spec.js +89 -0
  300. package/lib/hooks/useProjectSearch.spec.js +91 -0
  301. package/lib/hooks/useProjectSummary.spec.js +193 -0
  302. package/lib/hooks/useProjectSummaryConfig.helpers.spec.js +151 -0
  303. package/lib/hooks/useProjectSummaryConfig.js +10 -5
  304. package/lib/hooks/useProjectSummaryConfig.spec.js +133 -0
  305. package/lib/hooks/useReasoningTrace/reasoningStore.spec.js +112 -0
  306. package/lib/hooks/useRecentClientsSearch.helpers.spec.js +33 -0
  307. package/lib/hooks/useRecentClientsSearch.spec.js +85 -0
  308. package/lib/hooks/useRecentContexts.spec.js +139 -0
  309. package/lib/hooks/useResize.spec.js +37 -0
  310. package/lib/hooks/useSkillsCatalog.spec.js +88 -0
  311. package/lib/hooks/useSlashCommands.spec.js +139 -0
  312. package/lib/hooks/useSmoothStreamText/useSmoothStreamText.spec.js +101 -0
  313. package/lib/hooks/useSnackBarManager/useSnackBarManager.spec.js +33 -0
  314. package/lib/hooks/useStreamResponse.spec.js +199 -0
  315. package/lib/hooks/useT.spec.js +20 -0
  316. package/lib/hooks/useToggle.spec.js +33 -0
  317. package/lib/hooks/useToggleFavorite/useToggleFavorite.spec.js +171 -0
  318. package/lib/index.js +5 -2
  319. package/lib/lang/br/index.js +26 -1
  320. package/lib/lang/en/index.js +26 -1
  321. package/lib/lang/es/index.js +26 -1
  322. package/lib/lang/fr/index.js +26 -1
  323. package/lib/services/appcues.spec.js +37 -0
  324. package/lib/services/maia/Access/updateAccess.spec.js +137 -0
  325. package/lib/services/maia/Actions/getFrequentlyUsedActions.js +1 -1
  326. package/lib/services/maia/Actions/getFrequentlyUsedActions.spec.js +121 -0
  327. package/lib/services/maia/Actions/getSlashCommands.spec.js +91 -0
  328. package/lib/services/maia/Agents/connectors.js +3 -1
  329. package/lib/services/maia/Agents/connectors.spec.js +496 -0
  330. package/lib/services/maia/Agents/createAgent.spec.js +55 -0
  331. package/lib/services/maia/Agents/deleteAgent.spec.js +57 -0
  332. package/lib/services/maia/Agents/fetchAgentDetail.spec.js +108 -0
  333. package/lib/services/maia/Agents/getAgentById.spec.js +190 -0
  334. package/lib/services/maia/Agents/getAgentModels.spec.js +190 -0
  335. package/lib/services/maia/Agents/getAgentSuggestions.spec.js +89 -0
  336. package/lib/services/maia/Agents/getAgents.helpers.spec.js +325 -0
  337. package/lib/services/maia/Agents/getAgents.spec.js +1135 -0
  338. package/lib/services/maia/Agents/setAgentToolGroups.spec.js +45 -0
  339. package/lib/services/maia/Agents/toggleFavorite.spec.js +59 -0
  340. package/lib/services/maia/Agents/updateAgent.spec.js +48 -0
  341. package/lib/services/maia/Chats/deleteChat.spec.js +31 -0
  342. package/lib/services/maia/Chats/getChatMessages.spec.js +150 -0
  343. package/lib/services/maia/Chats/getChatsByUserId.spec.js +181 -0
  344. package/lib/services/maia/Chats/markSessionAsRead.spec.js +30 -0
  345. package/lib/services/maia/Chats/patchChat.spec.js +41 -0
  346. package/lib/services/maia/Chats/wasHelpfulChat.spec.js +28 -0
  347. package/lib/services/maia/Faqs/getFrequentlyAskedQuestions.spec.js +58 -0
  348. package/lib/services/maia/Knowledge/delete.spec.js +45 -0
  349. package/lib/services/maia/Knowledge/download.spec.js +78 -0
  350. package/lib/services/maia/Knowledge/save.spec.js +58 -0
  351. package/lib/services/maia/Orchestrator/orchestrator.helpers.spec.js +261 -0
  352. package/lib/services/maia/Orchestrator/orchestrator.spec.js +181 -0
  353. package/lib/services/maia/RecentClients/getRecentClients.spec.js +52 -0
  354. package/lib/services/maia/RecentContexts/getRecentContexts.spec.js +103 -0
  355. package/lib/services/maia/RecentProjects/getRecentProjects.spec.js +82 -0
  356. package/lib/services/maia/RecentTasks/getRecentTasks.spec.js +63 -0
  357. package/lib/services/maia/RecentUsers/getRecentUsers.spec.js +82 -0
  358. package/lib/services/maia/Skills/createSkill.spec.js +68 -0
  359. package/lib/services/maia/Skills/deleteSkill.spec.js +42 -0
  360. package/lib/services/maia/Skills/generateSkill.spec.js +48 -0
  361. package/lib/services/maia/Skills/getSkills.spec.js +152 -0
  362. package/lib/services/maia/Skills/updateSkill.spec.js +62 -0
  363. package/lib/services/maia/client.spec.js +56 -0
  364. package/lib/services/utils/fetchCOR.spec.js +211 -0
  365. package/lib/services/utils/getCookie.spec.js +20 -0
  366. package/lib/services/utils/mapChatMessages.helpers.spec.js +336 -0
  367. package/lib/services/utils/mapChatMessages.multipleChoice.spec.js +87 -0
  368. package/lib/services/utils/mapChatMessages.spec.js +254 -0
  369. package/lib/store/chatsSidebarOptimistic.spec.js +145 -0
  370. package/lib/store/maiaLastChatPersistence.spec.js +22 -0
  371. package/lib/store/maiaPanelSessionPersistence.spec.js +62 -0
  372. package/lib/store/sessions/sessionNotificationSound.spec.js +145 -0
  373. package/lib/store/sessions/sessionNotifications.helpers.spec.js +63 -0
  374. package/lib/store/sessions/sessionNotifications.spec.js +106 -0
  375. package/lib/store/sessions/sessionStreamManager.helpers.spec.js +177 -0
  376. package/lib/store/sessions/sessionStreamManager.js +51 -55
  377. package/lib/store/sessions/sessionStreamManager.spec.js +939 -0
  378. package/lib/store/sessions/sessions.types.spec.js +16 -0
  379. package/lib/store/sessions/useSessionsStore.spec.js +135 -0
  380. package/lib/store/useChatsStore.js +4 -3
  381. package/lib/store/useChatsStore.spec.js +690 -0
  382. package/lib/store/useFaqsStore.spec.js +57 -0
  383. package/lib/store/useMultipleChoiceStore.spec.js +44 -0
  384. package/lib/styles/cascade.js +29 -3
  385. package/lib/styles/transitions.js +3 -1
  386. package/lib/types/global.d.js +1 -1
  387. package/lib/utils/actionCategoryMap.spec.js +18 -0
  388. package/lib/utils/agentDisplayName.spec.js +48 -0
  389. package/lib/utils/autoApproveStorage.spec.js +25 -0
  390. package/lib/utils/chatInputFiles.spec.js +39 -0
  391. package/lib/utils/contextMentionIcons.spec.js +41 -0
  392. package/lib/utils/contextMentionLabel.spec.js +13 -0
  393. package/lib/utils/contextMentionTriggers.spec.js +44 -0
  394. package/lib/utils/contextMentionTypeLabel.spec.js +14 -0
  395. package/lib/utils/corConnectorMentionTypes.spec.js +23 -0
  396. package/lib/utils/entityLinkRender.spec.js +72 -0
  397. package/lib/utils/fileDownloadHelper.spec.js +67 -0
  398. package/lib/utils/formatQuickActionMessage.spec.js +27 -0
  399. package/lib/utils/formatUnreadCount.spec.js +12 -0
  400. package/lib/utils/getUnitFileSize.spec.js +18 -0
  401. package/lib/utils/hitlAnalytics.spec.js +136 -0
  402. package/lib/utils/hoursPlannerQuickActionType.js +116 -1
  403. package/lib/utils/hoursPlannerQuickActionType.spec.js +124 -0
  404. package/lib/utils/imagePreprocessor.helpers.spec.js +28 -0
  405. package/lib/utils/imagePreprocessor.js +14 -3
  406. package/lib/utils/imagePreprocessor.spec.js +112 -0
  407. package/lib/utils/maiaPageRoute.spec.js +23 -0
  408. package/lib/utils/mapBackendLang.spec.js +19 -0
  409. package/lib/utils/navigateContextEntity.js +2 -2
  410. package/lib/utils/navigateContextEntity.spec.js +50 -0
  411. package/lib/utils/normalizeAgentConnectors.spec.js +98 -0
  412. package/lib/utils/openTaskInCorPanel.js +2 -2
  413. package/lib/utils/openTaskInCorPanel.spec.js +43 -0
  414. package/lib/utils/orchestratorSubagents.spec.js +32 -0
  415. package/lib/utils/reasoningMappers.spec.js +103 -0
  416. package/lib/utils/recentContextsHomeLimit.spec.js +32 -0
  417. package/lib/utils/renderContextMentions.helpers.spec.js +87 -0
  418. package/lib/utils/renderContextMentions.spec.js +268 -0
  419. package/lib/utils/retryCompletion.spec.js +181 -0
  420. package/lib/utils/skillContentSize.spec.js +13 -0
  421. package/lib/utils/slashCommandMarker.spec.js +43 -0
  422. package/lib/utils/sortManagerHoursHomeFuas.spec.js +51 -0
  423. package/lib/utils/sseStreamContent.spec.js +31 -0
  424. package/lib/utils/streamActivityMessages.helpers.js +5 -4
  425. package/lib/utils/streamActivityMessages.helpers.spec.js +84 -0
  426. package/lib/utils/streamActivityMessages.js +32 -20
  427. package/lib/utils/streamActivityMessages.spec.js +336 -0
  428. package/lib/utils/validateTrimmedFields.spec.js +26 -0
  429. package/package.json +1 -1
  430. package/README.md +0 -2
@@ -0,0 +1,80 @@
1
+ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
+ import { fireEvent, renderWithProviders, screen, waitFor } from '../../../test/test-utils';
4
+ import { ExcelPreview } from './ExcelPreview';
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ jest.mock('xlsx', function () {
7
+ return {
8
+ read: jest.fn(function () {
9
+ return {
10
+ SheetNames: ['Sheet1', 'Sheet2'],
11
+ Sheets: {
12
+ Sheet1: {},
13
+ Sheet2: {}
14
+ }
15
+ };
16
+ }),
17
+ utils: {
18
+ sheet_to_json: jest.fn(function (_sheet, options) {
19
+ if ((options === null || options === void 0 ? void 0 : options.header) === 1) {
20
+ return [['Name', 'Value'], ['Alpha', '1']];
21
+ }
22
+ return [];
23
+ })
24
+ }
25
+ };
26
+ });
27
+ describe('ExcelPreview', function () {
28
+ it('renders spreadsheet rows from a local file', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
29
+ return _regeneratorRuntime.wrap(function (_context) {
30
+ while (1) switch (_context.prev = _context.next) {
31
+ case 0:
32
+ renderWithProviders(/*#__PURE__*/_jsx(ExcelPreview, {
33
+ fileName: "report.xlsx",
34
+ file: new File(['xlsx'], 'report.xlsx', {
35
+ type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
36
+ })
37
+ }));
38
+ _context.next = 1;
39
+ return waitFor(function () {
40
+ expect(screen.getByText('Alpha')).toBeInTheDocument();
41
+ expect(screen.getByText('chat.attachmentPreviewModal.excel.sheetSelectorLabel')).toBeInTheDocument();
42
+ });
43
+ case 1:
44
+ case "end":
45
+ return _context.stop();
46
+ }
47
+ }, _callee);
48
+ })));
49
+ it('switches sheets from the selector', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
50
+ return _regeneratorRuntime.wrap(function (_context2) {
51
+ while (1) switch (_context2.prev = _context2.next) {
52
+ case 0:
53
+ renderWithProviders(/*#__PURE__*/_jsx(ExcelPreview, {
54
+ fileName: "report.xlsx",
55
+ file: new File(['xlsx'], 'report.xlsx', {
56
+ type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
57
+ })
58
+ }));
59
+ _context2.next = 1;
60
+ return waitFor(function () {
61
+ expect(screen.getByRole('combobox')).toBeInTheDocument();
62
+ });
63
+ case 1:
64
+ fireEvent.change(screen.getByRole('combobox'), {
65
+ target: {
66
+ value: 'Sheet2'
67
+ }
68
+ });
69
+ _context2.next = 2;
70
+ return waitFor(function () {
71
+ expect(screen.getByText('Alpha')).toBeInTheDocument();
72
+ });
73
+ case 2:
74
+ case "end":
75
+ return _context2.stop();
76
+ }
77
+ }, _callee2);
78
+ })));
79
+ });
80
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJmaXJlRXZlbnQiLCJyZW5kZXJXaXRoUHJvdmlkZXJzIiwic2NyZWVuIiwid2FpdEZvciIsIkV4Y2VsUHJldmlldyIsImpzeCIsIl9qc3giLCJqZXN0IiwibW9jayIsInJlYWQiLCJmbiIsIlNoZWV0TmFtZXMiLCJTaGVldHMiLCJTaGVldDEiLCJTaGVldDIiLCJ1dGlscyIsInNoZWV0X3RvX2pzb24iLCJfc2hlZXQiLCJvcHRpb25zIiwiaGVhZGVyIiwiZGVzY3JpYmUiLCJpdCIsIl9hc3luY1RvR2VuZXJhdG9yIiwiX3JlZ2VuZXJhdG9yUnVudGltZSIsIm1hcmsiLCJfY2FsbGVlIiwid3JhcCIsIl9jb250ZXh0IiwicHJldiIsIm5leHQiLCJmaWxlTmFtZSIsImZpbGUiLCJGaWxlIiwidHlwZSIsImV4cGVjdCIsImdldEJ5VGV4dCIsInRvQmVJblRoZURvY3VtZW50Iiwic3RvcCIsIl9jYWxsZWUyIiwiX2NvbnRleHQyIiwiZ2V0QnlSb2xlIiwiY2hhbmdlIiwidGFyZ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