@memori.ai/memori-react 8.45.2 → 8.45.5
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/CHANGELOG.md +27 -0
- package/dist/components/Chat/Chat.d.ts +1 -0
- package/dist/components/Chat/Chat.js +6 -3
- package/dist/components/Chat/Chat.js.map +1 -1
- package/dist/components/ChatHistoryDrawer/ChatResumeDrawer.css +78 -0
- package/dist/components/ChatHistoryDrawer/ChatResumeDrawer.d.ts +39 -0
- package/dist/components/ChatHistoryDrawer/ChatResumeDrawer.js +43 -0
- package/dist/components/ChatHistoryDrawer/ChatResumeDrawer.js.map +1 -0
- package/dist/components/ChatInputs/ChatInputs.d.ts +1 -0
- package/dist/components/ChatInputs/ChatInputs.js +2 -2
- package/dist/components/ChatInputs/ChatInputs.js.map +1 -1
- package/dist/components/ContentPreviewModal/DocumentMarkdown.d.ts +7 -0
- package/dist/components/ContentPreviewModal/DocumentMarkdown.js +31 -0
- package/dist/components/ContentPreviewModal/DocumentMarkdown.js.map +1 -0
- package/dist/components/DrawerFooter/DrawerFooter.css +62 -0
- package/dist/components/DrawerFooter/DrawerFooter.d.ts +12 -0
- package/dist/components/DrawerFooter/DrawerFooter.js +10 -0
- package/dist/components/DrawerFooter/DrawerFooter.js.map +1 -0
- package/dist/components/IconButton/IconButton.css +135 -0
- package/dist/components/IconButton/IconButton.d.ts +9 -0
- package/dist/components/IconButton/IconButton.js +36 -0
- package/dist/components/IconButton/IconButton.js.map +1 -0
- package/dist/components/LoginModal/LoginModal.css +270 -0
- package/dist/components/LoginModal/LoginModal.d.ts +19 -0
- package/dist/components/LoginModal/LoginModal.js +355 -0
- package/dist/components/LoginModal/LoginModal.js.map +1 -0
- package/dist/components/MemoriWidget/MemoriWidget.d.ts +2 -2
- package/dist/components/MemoriWidget/MemoriWidget.js +13 -21
- package/dist/components/MemoriWidget/MemoriWidget.js.map +1 -1
- package/dist/components/MobileSessionPanel/MobileSessionPanel.css +540 -0
- package/dist/components/MobileSessionPanel/MobileSessionPanel.d.ts +65 -0
- package/dist/components/MobileSessionPanel/MobileSessionPanel.js +254 -0
- package/dist/components/MobileSessionPanel/MobileSessionPanel.js.map +1 -0
- package/dist/components/PositionPopover/PositionPopover.css +218 -0
- package/dist/components/PositionPopover/PositionPopover.d.ts +22 -0
- package/dist/components/PositionPopover/PositionPopover.js +208 -0
- package/dist/components/PositionPopover/PositionPopover.js.map +1 -0
- package/dist/components/ReasoningBlock/ReasoningBlock.css +156 -0
- package/dist/components/ReasoningBlock/ReasoningBlock.d.ts +7 -0
- package/dist/components/ReasoningBlock/ReasoningBlock.js +61 -0
- package/dist/components/ReasoningBlock/ReasoningBlock.js.map +1 -0
- package/dist/components/SideDrawer/SideDrawer.css +112 -0
- package/dist/components/SideDrawer/SideDrawer.d.ts +22 -0
- package/dist/components/SideDrawer/SideDrawer.js +17 -0
- package/dist/components/SideDrawer/SideDrawer.js.map +1 -0
- package/dist/components/UploadButton/UploadButton.d.ts +2 -0
- package/dist/components/UploadButton/UploadButton.js +2 -2
- package/dist/components/UploadButton/UploadButton.js.map +1 -1
- package/dist/components/UploadButton/UploadImages/UploadImages.d.ts +2 -0
- package/dist/components/UploadButton/UploadImages/UploadImages.js +7 -1
- package/dist/components/UploadButton/UploadImages/UploadImages.js.map +1 -1
- package/dist/components/layouts/WebsiteAssistant/WebsiteAssistant.d.ts +4 -0
- package/dist/components/layouts/WebsiteAssistant/WebsiteAssistant.js +144 -0
- package/dist/components/layouts/WebsiteAssistant/WebsiteAssistant.js.map +1 -0
- package/{src/components/layouts → dist/components/layouts/WebsiteAssistant}/website-assistant.css +298 -86
- package/dist/components/layouts/chat.css +27 -4
- package/dist/components/layouts/fullpage.css +628 -0
- package/dist/helpers/artifactPanel.d.ts +6 -0
- package/dist/helpers/artifactPanel.js +42 -0
- package/dist/helpers/artifactPanel.js.map +1 -0
- package/dist/helpers/chatScroll.d.ts +12 -0
- package/dist/helpers/chatScroll.js +14 -0
- package/dist/helpers/chatScroll.js.map +1 -0
- package/dist/helpers/conversationHistory.d.ts +16 -0
- package/dist/helpers/conversationHistory.js +89 -0
- package/dist/helpers/conversationHistory.js.map +1 -0
- package/dist/helpers/conversationTitle.d.ts +8 -0
- package/dist/helpers/conversationTitle.js +27 -0
- package/dist/helpers/conversationTitle.js.map +1 -0
- package/dist/helpers/enhanceBubbleCodeBlocks.d.ts +5 -0
- package/dist/helpers/enhanceBubbleCodeBlocks.js +97 -0
- package/dist/helpers/enhanceBubbleCodeBlocks.js.map +1 -0
- package/dist/helpers/highlightMatches.d.ts +2 -0
- package/dist/helpers/highlightMatches.js +54 -0
- package/dist/helpers/highlightMatches.js.map +1 -0
- package/dist/helpers/nats/dialogStateCatchUp.d.ts +3 -0
- package/dist/helpers/nats/dialogStateCatchUp.js +40 -0
- package/dist/helpers/nats/dialogStateCatchUp.js.map +1 -0
- package/dist/helpers/positionPopover.d.ts +3 -0
- package/dist/helpers/positionPopover.js +22 -0
- package/dist/helpers/positionPopover.js.map +1 -0
- package/dist/helpers/prism.d.ts +16 -0
- package/dist/helpers/prism.js +78 -0
- package/dist/helpers/prism.js.map +1 -0
- package/dist/helpers/reasoning.d.ts +7 -0
- package/dist/helpers/reasoning.js +43 -0
- package/dist/helpers/reasoning.js.map +1 -0
- package/dist/helpers/relativeTime.d.ts +3 -0
- package/dist/helpers/relativeTime.js +56 -0
- package/dist/helpers/relativeTime.js.map +1 -0
- package/dist/helpers/sourcesCount.d.ts +2 -0
- package/dist/helpers/sourcesCount.js +22 -0
- package/dist/helpers/sourcesCount.js.map +1 -0
- package/dist/helpers/tts/muteSpeaker.d.ts +13 -0
- package/dist/helpers/tts/muteSpeaker.js +26 -0
- package/dist/helpers/tts/muteSpeaker.js.map +1 -0
- package/dist/helpers/usePressTooltip.d.ts +18 -0
- package/dist/helpers/usePressTooltip.js +38 -0
- package/dist/helpers/usePressTooltip.js.map +1 -0
- package/dist/icons/FacebookIcon.d.ts +3 -0
- package/dist/icons/FacebookIcon.js +6 -0
- package/dist/icons/FacebookIcon.js.map +1 -0
- package/dist/icons/LinkedinIcon.d.ts +3 -0
- package/dist/icons/LinkedinIcon.js +6 -0
- package/dist/icons/LinkedinIcon.js.map +1 -0
- package/dist/icons/MemoriIcon.d.ts +3 -0
- package/dist/icons/MemoriIcon.js +8 -0
- package/dist/icons/MemoriIcon.js.map +1 -0
- package/dist/icons/TelegramIcon.d.ts +3 -0
- package/dist/icons/TelegramIcon.js +6 -0
- package/dist/icons/TelegramIcon.js.map +1 -0
- package/dist/icons/TwitterIcon.d.ts +3 -0
- package/dist/icons/TwitterIcon.js +6 -0
- package/dist/icons/TwitterIcon.js.map +1 -0
- package/dist/icons/WhatsappIcon.d.ts +3 -0
- package/dist/icons/WhatsappIcon.js +6 -0
- package/dist/icons/WhatsappIcon.js.map +1 -0
- package/dist/icons/artifacts/DocumentIcon.d.ts +3 -0
- package/dist/icons/artifacts/DocumentIcon.js +6 -0
- package/dist/icons/artifacts/DocumentIcon.js.map +1 -0
- package/dist/icons/artifacts/HtmlIcon.d.ts +3 -0
- package/dist/icons/artifacts/HtmlIcon.js +6 -0
- package/dist/icons/artifacts/HtmlIcon.js.map +1 -0
- package/dist/icons/artifacts/JavascriptIcon.d.ts +3 -0
- package/dist/icons/artifacts/JavascriptIcon.js +6 -0
- package/dist/icons/artifacts/JavascriptIcon.js.map +1 -0
- package/dist/icons/artifacts/MarkdownIcon.d.ts +3 -0
- package/dist/icons/artifacts/MarkdownIcon.js +6 -0
- package/dist/icons/artifacts/MarkdownIcon.js.map +1 -0
- package/dist/icons/artifacts/PythonIcon.d.ts +3 -0
- package/dist/icons/artifacts/PythonIcon.js +6 -0
- package/dist/icons/artifacts/PythonIcon.js.map +1 -0
- package/dist/icons/artifacts/SvgIcon.d.ts +3 -0
- package/dist/icons/artifacts/SvgIcon.js +6 -0
- package/dist/icons/artifacts/SvgIcon.js.map +1 -0
- package/dist/icons/artifacts/XmlIcon.d.ts +3 -0
- package/dist/icons/artifacts/XmlIcon.js +6 -0
- package/dist/icons/artifacts/XmlIcon.js.map +1 -0
- package/dist/icons/artifacts/cssIcon.d.ts +3 -0
- package/dist/icons/artifacts/cssIcon.js +6 -0
- package/dist/icons/artifacts/cssIcon.js.map +1 -0
- package/dist/styles/motion.css +25 -0
- package/dist/styles.css +1 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/esm/components/Chat/Chat.d.ts +1 -0
- package/esm/components/Chat/Chat.js +6 -3
- package/esm/components/Chat/Chat.js.map +1 -1
- package/esm/components/ChatHistoryDrawer/ChatResumeDrawer.d.ts +39 -0
- package/esm/components/ChatHistoryDrawer/ChatResumeDrawer.js +40 -0
- package/esm/components/ChatHistoryDrawer/ChatResumeDrawer.js.map +1 -0
- package/esm/components/ChatInputs/ChatInputs.d.ts +1 -0
- package/esm/components/ChatInputs/ChatInputs.js +2 -2
- package/esm/components/ChatInputs/ChatInputs.js.map +1 -1
- package/esm/components/ContentPreviewModal/DocumentMarkdown.d.ts +7 -0
- package/esm/components/ContentPreviewModal/DocumentMarkdown.js +28 -0
- package/esm/components/ContentPreviewModal/DocumentMarkdown.js.map +1 -0
- package/esm/components/DrawerFooter/DrawerFooter.d.ts +12 -0
- package/esm/components/DrawerFooter/DrawerFooter.js +8 -0
- package/esm/components/DrawerFooter/DrawerFooter.js.map +1 -0
- package/esm/components/IconButton/IconButton.d.ts +9 -0
- package/esm/components/IconButton/IconButton.js +33 -0
- package/esm/components/IconButton/IconButton.js.map +1 -0
- package/esm/components/LoginModal/LoginModal.d.ts +19 -0
- package/esm/components/LoginModal/LoginModal.js +352 -0
- package/esm/components/LoginModal/LoginModal.js.map +1 -0
- package/esm/components/MemoriWidget/MemoriWidget.d.ts +2 -2
- package/esm/components/MemoriWidget/MemoriWidget.js +8 -17
- package/esm/components/MemoriWidget/MemoriWidget.js.map +1 -1
- package/esm/components/MobileSessionPanel/MobileSessionPanel.d.ts +65 -0
- package/esm/components/MobileSessionPanel/MobileSessionPanel.js +251 -0
- package/esm/components/MobileSessionPanel/MobileSessionPanel.js.map +1 -0
- package/esm/components/PositionPopover/PositionPopover.d.ts +22 -0
- package/esm/components/PositionPopover/PositionPopover.js +203 -0
- package/esm/components/PositionPopover/PositionPopover.js.map +1 -0
- package/esm/components/ReasoningBlock/ReasoningBlock.d.ts +7 -0
- package/esm/components/ReasoningBlock/ReasoningBlock.js +58 -0
- package/esm/components/ReasoningBlock/ReasoningBlock.js.map +1 -0
- package/esm/components/SideDrawer/SideDrawer.d.ts +22 -0
- package/esm/components/SideDrawer/SideDrawer.js +12 -0
- package/esm/components/SideDrawer/SideDrawer.js.map +1 -0
- package/esm/components/UploadButton/UploadButton.d.ts +2 -0
- package/esm/components/UploadButton/UploadButton.js +2 -2
- package/esm/components/UploadButton/UploadButton.js.map +1 -1
- package/esm/components/UploadButton/UploadImages/UploadImages.d.ts +2 -0
- package/esm/components/UploadButton/UploadImages/UploadImages.js +7 -1
- package/esm/components/UploadButton/UploadImages/UploadImages.js.map +1 -1
- package/esm/components/layouts/WebsiteAssistant/WebsiteAssistant.d.ts +4 -0
- package/esm/components/layouts/WebsiteAssistant/WebsiteAssistant.js +141 -0
- package/esm/components/layouts/WebsiteAssistant/WebsiteAssistant.js.map +1 -0
- package/esm/components/layouts/chat.css +27 -4
- package/esm/helpers/artifactPanel.d.ts +6 -0
- package/esm/helpers/artifactPanel.js +37 -0
- package/esm/helpers/artifactPanel.js.map +1 -0
- package/esm/helpers/chatScroll.d.ts +12 -0
- package/esm/helpers/chatScroll.js +9 -0
- package/esm/helpers/chatScroll.js.map +1 -0
- package/esm/helpers/conversationHistory.d.ts +16 -0
- package/esm/helpers/conversationHistory.js +82 -0
- package/esm/helpers/conversationHistory.js.map +1 -0
- package/esm/helpers/conversationTitle.d.ts +8 -0
- package/esm/helpers/conversationTitle.js +23 -0
- package/esm/helpers/conversationTitle.js.map +1 -0
- package/esm/helpers/enhanceBubbleCodeBlocks.d.ts +5 -0
- package/esm/helpers/enhanceBubbleCodeBlocks.js +94 -0
- package/esm/helpers/enhanceBubbleCodeBlocks.js.map +1 -0
- package/esm/helpers/highlightMatches.d.ts +2 -0
- package/esm/helpers/highlightMatches.js +49 -0
- package/esm/helpers/highlightMatches.js.map +1 -0
- package/esm/helpers/nats/dialogStateCatchUp.d.ts +3 -0
- package/esm/helpers/nats/dialogStateCatchUp.js +35 -0
- package/esm/helpers/nats/dialogStateCatchUp.js.map +1 -0
- package/esm/helpers/positionPopover.d.ts +3 -0
- package/esm/helpers/positionPopover.js +17 -0
- package/esm/helpers/positionPopover.js.map +1 -0
- package/esm/helpers/prism.d.ts +16 -0
- package/esm/helpers/prism.js +74 -0
- package/esm/helpers/prism.js.map +1 -0
- package/esm/helpers/reasoning.d.ts +7 -0
- package/esm/helpers/reasoning.js +39 -0
- package/esm/helpers/reasoning.js.map +1 -0
- package/esm/helpers/relativeTime.d.ts +3 -0
- package/esm/helpers/relativeTime.js +50 -0
- package/esm/helpers/relativeTime.js.map +1 -0
- package/esm/helpers/sourcesCount.d.ts +2 -0
- package/esm/helpers/sourcesCount.js +18 -0
- package/esm/helpers/sourcesCount.js.map +1 -0
- package/esm/helpers/tts/muteSpeaker.d.ts +13 -0
- package/esm/helpers/tts/muteSpeaker.js +21 -0
- package/esm/helpers/tts/muteSpeaker.js.map +1 -0
- package/esm/helpers/usePressTooltip.d.ts +18 -0
- package/esm/helpers/usePressTooltip.js +35 -0
- package/esm/helpers/usePressTooltip.js.map +1 -0
- package/esm/icons/FacebookIcon.d.ts +3 -0
- package/esm/icons/FacebookIcon.js +4 -0
- package/esm/icons/FacebookIcon.js.map +1 -0
- package/esm/icons/LinkedinIcon.d.ts +3 -0
- package/esm/icons/LinkedinIcon.js +4 -0
- package/esm/icons/LinkedinIcon.js.map +1 -0
- package/esm/icons/MemoriIcon.d.ts +3 -0
- package/esm/icons/MemoriIcon.js +6 -0
- package/esm/icons/MemoriIcon.js.map +1 -0
- package/esm/icons/TelegramIcon.d.ts +3 -0
- package/esm/icons/TelegramIcon.js +4 -0
- package/esm/icons/TelegramIcon.js.map +1 -0
- package/esm/icons/TwitterIcon.d.ts +3 -0
- package/esm/icons/TwitterIcon.js +4 -0
- package/esm/icons/TwitterIcon.js.map +1 -0
- package/esm/icons/WhatsappIcon.d.ts +3 -0
- package/esm/icons/WhatsappIcon.js +4 -0
- package/esm/icons/WhatsappIcon.js.map +1 -0
- package/esm/icons/artifacts/DocumentIcon.d.ts +3 -0
- package/esm/icons/artifacts/DocumentIcon.js +4 -0
- package/esm/icons/artifacts/DocumentIcon.js.map +1 -0
- package/esm/icons/artifacts/HtmlIcon.d.ts +3 -0
- package/esm/icons/artifacts/HtmlIcon.js +4 -0
- package/esm/icons/artifacts/HtmlIcon.js.map +1 -0
- package/esm/icons/artifacts/JavascriptIcon.d.ts +3 -0
- package/esm/icons/artifacts/JavascriptIcon.js +4 -0
- package/esm/icons/artifacts/JavascriptIcon.js.map +1 -0
- package/esm/icons/artifacts/MarkdownIcon.d.ts +3 -0
- package/esm/icons/artifacts/MarkdownIcon.js +4 -0
- package/esm/icons/artifacts/MarkdownIcon.js.map +1 -0
- package/esm/icons/artifacts/PythonIcon.d.ts +3 -0
- package/esm/icons/artifacts/PythonIcon.js +4 -0
- package/esm/icons/artifacts/PythonIcon.js.map +1 -0
- package/esm/icons/artifacts/SvgIcon.d.ts +3 -0
- package/esm/icons/artifacts/SvgIcon.js +4 -0
- package/esm/icons/artifacts/SvgIcon.js.map +1 -0
- package/esm/icons/artifacts/XmlIcon.d.ts +3 -0
- package/esm/icons/artifacts/XmlIcon.js +4 -0
- package/esm/icons/artifacts/XmlIcon.js.map +1 -0
- package/esm/icons/artifacts/cssIcon.d.ts +3 -0
- package/esm/icons/artifacts/cssIcon.js +4 -0
- package/esm/icons/artifacts/cssIcon.js.map +1 -0
- package/esm/styles.css +1 -2
- package/esm/version.d.ts +1 -1
- package/esm/version.js +1 -1
- package/package.json +7 -7
- package/dist/components/MemoriArtifactSystem/components/ArtifactActions/test/CopyButtonTest.d.ts +0 -3
- package/dist/components/MemoriArtifactSystem/components/ArtifactActions/test/CopyButtonTest.js +0 -64
- package/dist/components/MemoriArtifactSystem/components/ArtifactActions/test/CopyButtonTest.js.map +0 -1
- package/esm/components/MemoriArtifactSystem/components/ArtifactActions/test/CopyButtonTest.d.ts +0 -3
- package/esm/components/MemoriArtifactSystem/components/ArtifactActions/test/CopyButtonTest.js +0 -62
- package/esm/components/MemoriArtifactSystem/components/ArtifactActions/test/CopyButtonTest.js.map +0 -1
- package/src/I18nWrapper.tsx +0 -13
- package/src/__snapshots__/index.test.tsx.snap +0 -96
- package/src/components/AgeVerificationModal/AgeVerificationModal.css +0 -95
- package/src/components/AgeVerificationModal/AgeVerificationModal.stories.tsx +0 -46
- package/src/components/AgeVerificationModal/AgeVerificationModal.test.tsx +0 -33
- package/src/components/AgeVerificationModal/AgeVerificationModal.tsx +0 -99
- package/src/components/AgeVerificationModal/__snapshots__/AgeVerificationModal.test.tsx.snap +0 -19
- package/src/components/Auth/Auth.css +0 -57
- package/src/components/Auth/Auth.stories.tsx +0 -90
- package/src/components/Auth/Auth.test.tsx +0 -63
- package/src/components/Auth/Auth.tsx +0 -201
- package/src/components/Auth/__snapshots__/Auth.test.tsx.snap +0 -143
- package/src/components/Avatar/Avatar.css +0 -151
- package/src/components/Avatar/Avatar.stories.tsx +0 -160
- package/src/components/Avatar/Avatar.test.tsx +0 -158
- package/src/components/Avatar/Avatar.tsx +0 -245
- package/src/components/Avatar/AvatarView/AvatarComponent/Shadow/DynamicShadow.tsx +0 -103
- package/src/components/Avatar/AvatarView/AvatarComponent/avatarComponent.tsx +0 -105
- package/src/components/Avatar/AvatarView/AvatarComponent/components/FullbodyAvatar/fullbodyAvatar.tsx +0 -338
- package/src/components/Avatar/AvatarView/AvatarComponent/components/FullbodyAvatar/types.ts +0 -44
- package/src/components/Avatar/AvatarView/AvatarComponent/components/controllers/AvatarAnimator.ts +0 -1091
- package/src/components/Avatar/AvatarView/AvatarComponent/components/controllers/AvatarPositionController.ts +0 -83
- package/src/components/Avatar/AvatarView/AvatarComponent/components/controllers/MorphTargetController.ts +0 -301
- package/src/components/Avatar/AvatarView/AvatarComponent/components/controls.tsx +0 -100
- package/src/components/Avatar/AvatarView/AvatarComponent/components/halfbodyAvatar.tsx +0 -152
- package/src/components/Avatar/AvatarView/AvatarComponent/components/loader.tsx +0 -31
- package/src/components/Avatar/AvatarView/AvatarComponent/constants.ts +0 -141
- package/src/components/Avatar/AvatarView/AvatarComponent/lights/Lights.tsx +0 -145
- package/src/components/Avatar/AvatarView/AvatarComponent/positionControls/positionControls.css +0 -111
- package/src/components/Avatar/AvatarView/AvatarComponent/positionControls/positionControls.tsx +0 -201
- package/src/components/Avatar/AvatarView/AvatarView.stories.tsx +0 -254
- package/src/components/Avatar/AvatarView/index.tsx +0 -194
- package/src/components/Avatar/AvatarView/utils/hideHands.ts +0 -11
- package/src/components/Avatar/AvatarView/utils/useEyeBlink.ts +0 -100
- package/src/components/Avatar/AvatarView/utils/useHeadMovement.ts +0 -72
- package/src/components/Avatar/AvatarView/utils/useLoadingMorphAnim.ts +0 -38
- package/src/components/Avatar/AvatarView/utils/useMouthAnimation.ts +0 -93
- package/src/components/Avatar/AvatarView/utils/useSmile.ts +0 -39
- package/src/components/Avatar/AvatarView/utils/utils.ts +0 -55
- package/src/components/Avatar/__snapshots__/Avatar.test.tsx.snap +0 -246
- package/src/components/Blob/Blob.css +0 -286
- package/src/components/Blob/Blob.stories.tsx +0 -53
- package/src/components/Blob/Blob.test.tsx +0 -18
- package/src/components/Blob/Blob.tsx +0 -26
- package/src/components/Blob/__snapshots__/Blob.test.tsx.snap +0 -80
- package/src/components/BlockedMemoriBadge/BlockedMemoriBadge.css +0 -40
- package/src/components/BlockedMemoriBadge/BlockedMemoriBadge.stories.tsx +0 -58
- package/src/components/BlockedMemoriBadge/BlockedMemoriBadge.test.tsx +0 -53
- package/src/components/BlockedMemoriBadge/BlockedMemoriBadge.tsx +0 -74
- package/src/components/BlockedMemoriBadge/__snapshots__/BlockedMemoriBadge.test.tsx.snap +0 -181
- package/src/components/ChangeMode/ChangeMode.css +0 -22
- package/src/components/ChangeMode/ChangeMode.stories.tsx +0 -50
- package/src/components/ChangeMode/ChangeMode.test.tsx +0 -24
- package/src/components/ChangeMode/ChangeMode.tsx +0 -51
- package/src/components/ChangeMode/__snapshots__/ChangeMode.test.tsx.snap +0 -107
- package/src/components/Chat/Chat.css +0 -285
- package/src/components/Chat/Chat.stories.tsx +0 -1684
- package/src/components/Chat/Chat.test.tsx +0 -372
- package/src/components/Chat/Chat.tsx +0 -778
- package/src/components/Chat/__snapshots__/Chat.test.tsx.snap +0 -6816
- package/src/components/ChatBubble/ChatBubble.css +0 -430
- package/src/components/ChatBubble/ChatBubble.stories.tsx +0 -1192
- package/src/components/ChatBubble/ChatBubble.test.tsx +0 -481
- package/src/components/ChatBubble/ChatBubble.tsx +0 -776
- package/src/components/ChatBubble/__snapshots__/ChatBubble.test.tsx.snap +0 -8734
- package/src/components/ChatHistoryDrawer/ChatHistory.css +0 -587
- package/src/components/ChatHistoryDrawer/ChatHistory.stories.tsx +0 -410
- package/src/components/ChatHistoryDrawer/ChatHistory.test.tsx +0 -107
- package/src/components/ChatHistoryDrawer/ChatHistory.tsx +0 -1298
- package/src/components/ChatHistoryDrawer/__snapshots__/ChatHistory.test.tsx.snap +0 -27
- package/src/components/ChatInputs/ChatInputs.css +0 -340
- package/src/components/ChatInputs/ChatInputs.stories.tsx +0 -251
- package/src/components/ChatInputs/ChatInputs.tsx +0 -487
- package/src/components/ChatTextArea/ChatTextArea.css +0 -185
- package/src/components/ChatTextArea/ChatTextArea.stories.tsx +0 -55
- package/src/components/ChatTextArea/ChatTextArea.test.tsx +0 -28
- package/src/components/ChatTextArea/ChatTextArea.tsx +0 -171
- package/src/components/ChatTextArea/__snapshots__/ChatTextArea.test.tsx.snap +0 -68
- package/src/components/CompletionProviderStatus/CompletionProviderStatus.css +0 -36
- package/src/components/CompletionProviderStatus/CompletionProviderStatus.stories.tsx +0 -296
- package/src/components/CompletionProviderStatus/CompletionProviderStatus.test.tsx +0 -31
- package/src/components/CompletionProviderStatus/CompletionProviderStatus.tsx +0 -232
- package/src/components/CompletionProviderStatus/__snapshots__/CompletionProviderStatus.test.tsx.snap +0 -96
- package/src/components/ContentPreviewModal/ContentPreviewModal.css +0 -128
- package/src/components/ContentPreviewModal/ContentPreviewModal.tsx +0 -67
- package/src/components/ContentPreviewModal/index.ts +0 -2
- package/src/components/CustomGLBModelViewer/ModelViewer.css +0 -11
- package/src/components/CustomGLBModelViewer/ModelViewer.stories.tsx +0 -58
- package/src/components/CustomGLBModelViewer/ModelViewer.test.tsx +0 -13
- package/src/components/CustomGLBModelViewer/ModelViewer.tsx +0 -37
- package/src/components/CustomGLBModelViewer/__snapshots__/ModelViewer.test.tsx.snap +0 -20
- package/src/components/DateSelector/DateSelector.css +0 -158
- package/src/components/DateSelector/DateSelector.stories.tsx +0 -47
- package/src/components/DateSelector/DateSelector.test.tsx +0 -149
- package/src/components/DateSelector/DateSelector.tsx +0 -251
- package/src/components/DateSelector/__snapshots__/DateSelector.test.tsx.snap +0 -1954
- package/src/components/ErrorBoundary/ErrorBoundary.tsx +0 -54
- package/src/components/ExpertsDrawer/ExpertsDrawer.css +0 -67
- package/src/components/ExpertsDrawer/ExpertsDrawer.stories.tsx +0 -54
- package/src/components/ExpertsDrawer/ExpertsDrawer.test.tsx +0 -53
- package/src/components/ExpertsDrawer/ExpertsDrawer.tsx +0 -69
- package/src/components/ExpertsDrawer/__snapshots__/ExpertsDrawer.test.tsx.snap +0 -11
- package/src/components/ExportHistoryButton/ExportHistoryButton.css +0 -22
- package/src/components/FeedbackButtons/FeedbackButtons.css +0 -107
- package/src/components/FeedbackButtons/FeedbackButtons.stories.tsx +0 -52
- package/src/components/FeedbackButtons/FeedbackButtons.test.tsx +0 -11
- package/src/components/FeedbackButtons/FeedbackButtons.tsx +0 -152
- package/src/components/FeedbackButtons/__snapshots__/FeedbackButtons.test.tsx.snap +0 -42
- package/src/components/FilePreview/FilePreview.css +0 -358
- package/src/components/FilePreview/FilePreview.stories.tsx +0 -63
- package/src/components/FilePreview/FilePreview.test.tsx +0 -26
- package/src/components/FilePreview/FilePreview.tsx +0 -277
- package/src/components/FilePreview/__snapshots__/FilePreview.test.tsx.snap +0 -185
- package/src/components/Header/ChatConsumptionDropdown.test.tsx +0 -117
- package/src/components/Header/ChatConsumptionDropdown.tsx +0 -275
- package/src/components/Header/Header.css +0 -282
- package/src/components/Header/Header.stories.tsx +0 -338
- package/src/components/Header/Header.test.tsx +0 -371
- package/src/components/Header/Header.tsx +0 -442
- package/src/components/Header/__snapshots__/Header.test.tsx.snap +0 -964
- package/src/components/KnownFacts/KnownFacts.css +0 -19
- package/src/components/KnownFacts/KnownFacts.stories.tsx +0 -80
- package/src/components/KnownFacts/KnownFacts.test.tsx +0 -57
- package/src/components/KnownFacts/KnownFacts.tsx +0 -376
- package/src/components/KnownFacts/__snapshots__/KnownFacts.test.tsx.snap +0 -19
- package/src/components/LoginDrawer/LoginDrawer.css +0 -1616
- package/src/components/LoginDrawer/LoginDrawer.stories.tsx +0 -102
- package/src/components/LoginDrawer/LoginDrawer.test.tsx +0 -199
- package/src/components/LoginDrawer/LoginDrawer.tsx +0 -600
- package/src/components/LoginDrawer/__snapshots__/LoginDrawer.test.tsx.snap +0 -91
- package/src/components/MediaWidget/DocumentCard.test.tsx +0 -45
- package/src/components/MediaWidget/DocumentCard.tsx +0 -19
- package/src/components/MediaWidget/MediaItemWidget.css +0 -1398
- package/src/components/MediaWidget/MediaItemWidget.stories.tsx +0 -423
- package/src/components/MediaWidget/MediaItemWidget.test.tsx +0 -248
- package/src/components/MediaWidget/MediaItemWidget.tsx +0 -997
- package/src/components/MediaWidget/MediaItemWidget.types.ts +0 -65
- package/src/components/MediaWidget/MediaItemWidget.utils.test.ts +0 -367
- package/src/components/MediaWidget/MediaItemWidget.utils.ts +0 -227
- package/src/components/MediaWidget/MediaPreviewModal.test.tsx +0 -271
- package/src/components/MediaWidget/MediaPreviewModal.tsx +0 -425
- package/src/components/MediaWidget/MediaWidget.css +0 -131
- package/src/components/MediaWidget/MediaWidget.stories.tsx +0 -319
- package/src/components/MediaWidget/MediaWidget.test.tsx +0 -41
- package/src/components/MediaWidget/MediaWidget.tsx +0 -107
- package/src/components/MediaWidget/__snapshots__/DocumentCard.test.tsx.snap +0 -24
- package/src/components/MediaWidget/__snapshots__/MediaItemWidget.test.tsx.snap +0 -791
- package/src/components/MediaWidget/__snapshots__/MediaWidget.test.tsx.snap +0 -154
- package/src/components/MemoriArtifactSystem/ArtifactDrawer.stories.tsx +0 -2299
- package/src/components/MemoriArtifactSystem/components/ArtifactActions/ArtifactActions.css +0 -163
- package/src/components/MemoriArtifactSystem/components/ArtifactActions/ArtifactActions.tsx +0 -250
- package/src/components/MemoriArtifactSystem/components/ArtifactActions/CopyButton.stories.tsx +0 -30
- package/src/components/MemoriArtifactSystem/components/ArtifactActions/components/CopyButtonWithDropdown.tsx +0 -467
- package/src/components/MemoriArtifactSystem/components/ArtifactActions/components/CopyMenuItem.tsx +0 -89
- package/src/components/MemoriArtifactSystem/components/ArtifactActions/hooks/useCopyArtifact.ts +0 -619
- package/src/components/MemoriArtifactSystem/components/ArtifactActions/index.ts +0 -9
- package/src/components/MemoriArtifactSystem/components/ArtifactActions/styles.css +0 -489
- package/src/components/MemoriArtifactSystem/components/ArtifactActions/test/CopyButtonTest.tsx +0 -90
- package/src/components/MemoriArtifactSystem/components/ArtifactActions/types.ts +0 -73
- package/src/components/MemoriArtifactSystem/components/ArtifactActions/utils/PDFExporter.ts +0 -454
- package/src/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.css +0 -1059
- package/src/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.tsx +0 -431
- package/src/components/MemoriArtifactSystem/components/ArtifactDrawer/components/TabSwitch.css +0 -150
- package/src/components/MemoriArtifactSystem/components/ArtifactDrawer/components/TabSwitch.tsx +0 -79
- package/src/components/MemoriArtifactSystem/components/ArtifactHandler/ArtifactHandler.css +0 -253
- package/src/components/MemoriArtifactSystem/components/ArtifactHandler/ArtifactHandler.tsx +0 -561
- package/src/components/MemoriArtifactSystem/components/ArtifactPreview/ArtifactPreview.css +0 -355
- package/src/components/MemoriArtifactSystem/components/ArtifactPreview/ArtifactPreview.tsx +0 -160
- package/src/components/MemoriArtifactSystem/context/ArtifactContext.tsx +0 -167
- package/src/components/MemoriArtifactSystem/types/artifact.types.ts +0 -35
- package/src/components/MemoriArtifactSystem/utils/ArtifactAPI.test.tsx +0 -308
- package/src/components/MemoriArtifactSystem/utils/ArtifactAPI.tsx +0 -379
- package/src/components/MemoriArtifactSystem/utils/applyEdits.test.ts +0 -85
- package/src/components/MemoriArtifactSystem/utils/applyEdits.ts +0 -173
- package/src/components/MemoriWidget/MemoriWidget.css +0 -220
- package/src/components/MemoriWidget/MemoriWidget.stories.tsx +0 -274
- package/src/components/MemoriWidget/MemoriWidget.tsx +0 -3930
- package/src/components/MicrophoneButton/MicrophoneButton.css +0 -142
- package/src/components/MicrophoneButton/MicrophoneButton.stories.tsx +0 -52
- package/src/components/MicrophoneButton/MicrophoneButton.tsx +0 -128
- package/src/components/PositionDrawer/PositionDrawer.stories.tsx +0 -51
- package/src/components/PositionDrawer/PositionDrawer.test.tsx +0 -39
- package/src/components/PositionDrawer/PositionDrawer.tsx +0 -50
- package/src/components/PositionDrawer/__snapshots__/PositionDrawer.test.tsx.snap +0 -17
- package/src/components/PoweredBy/PoweredBy.css +0 -47
- package/src/components/PoweredBy/PoweredBy.stories.tsx +0 -75
- package/src/components/PoweredBy/PoweredBy.test.tsx +0 -15
- package/src/components/PoweredBy/PoweredBy.tsx +0 -44
- package/src/components/PoweredBy/__snapshots__/PoweredBy.test.tsx.snap +0 -55
- package/src/components/SendOnEnterMenu/SendOnEnterMenu.css +0 -47
- package/src/components/SendOnEnterMenu/SendOnEnterMenu.stories.tsx +0 -58
- package/src/components/SendOnEnterMenu/SendOnEnterMenu.test.tsx +0 -17
- package/src/components/SendOnEnterMenu/SendOnEnterMenu.tsx +0 -82
- package/src/components/SendOnEnterMenu/__snapshots__/SendOnEnterMenu.test.tsx.snap +0 -57
- package/src/components/SettingsDrawer/SettingsDrawer.css +0 -24
- package/src/components/SettingsDrawer/SettingsDrawer.stories.tsx +0 -94
- package/src/components/SettingsDrawer/SettingsDrawer.test.tsx +0 -202
- package/src/components/SettingsDrawer/SettingsDrawer.tsx +0 -255
- package/src/components/SettingsDrawer/__snapshots__/SettingsDrawer.test.tsx.snap +0 -59
- package/src/components/ShareButton/ShareButton.css +0 -73
- package/src/components/ShareButton/ShareButton.stories.tsx +0 -98
- package/src/components/ShareButton/ShareButton.test.tsx +0 -53
- package/src/components/ShareButton/ShareButton.tsx +0 -395
- package/src/components/ShareButton/__snapshots__/ShareButton.test.tsx.snap +0 -316
- package/src/components/Snippet/Snippet.css +0 -142
- package/src/components/Snippet/Snippet.stories.tsx +0 -286
- package/src/components/Snippet/Snippet.test.tsx +0 -176
- package/src/components/Snippet/Snippet.tsx +0 -148
- package/src/components/Snippet/__snapshots__/Snippet.test.tsx.snap +0 -603
- package/src/components/StartPanel/StartPanel.css +0 -273
- package/src/components/StartPanel/StartPanel.stories.tsx +0 -404
- package/src/components/StartPanel/StartPanel.test.tsx +0 -360
- package/src/components/StartPanel/StartPanel.tsx +0 -426
- package/src/components/StartPanel/__snapshots__/StartPanel.test.tsx.snap +0 -1986
- package/src/components/Typing/Typing.stories.tsx +0 -130
- package/src/components/Typing/Typing.test.tsx +0 -62
- package/src/components/Typing/Typing.tsx +0 -154
- package/src/components/Typing/__snapshots__/Typing.test.tsx.snap +0 -133
- package/src/components/UploadButton/UploadButton.css +0 -542
- package/src/components/UploadButton/UploadButton.stories.tsx +0 -376
- package/src/components/UploadButton/UploadButton.test.tsx +0 -11
- package/src/components/UploadButton/UploadButton.tsx +0 -688
- package/src/components/UploadButton/UploadDocuments/UploadDocuments.tsx +0 -421
- package/src/components/UploadButton/UploadImages/UploadImages.tsx +0 -538
- package/src/components/UploadButton/__snapshots__/UploadButton.test.tsx.snap +0 -165
- package/src/components/VenueWidget/VenueWidget.css +0 -163
- package/src/components/VenueWidget/VenueWidget.stories.tsx +0 -66
- package/src/components/VenueWidget/VenueWidget.test.tsx +0 -49
- package/src/components/VenueWidget/VenueWidget.tsx +0 -458
- package/src/components/VenueWidget/__snapshots__/VenueWidget.test.tsx.snap +0 -370
- package/src/components/WhyThisAnswer/WhyThisAnswer.css +0 -171
- package/src/components/WhyThisAnswer/WhyThisAnswer.stories.tsx +0 -285
- package/src/components/WhyThisAnswer/WhyThisAnswer.test.tsx +0 -245
- package/src/components/WhyThisAnswer/WhyThisAnswer.tsx +0 -233
- package/src/components/WhyThisAnswer/__snapshots__/WhyThisAnswer.test.tsx.snap +0 -27
- package/src/components/icons/AI.tsx +0 -34
- package/src/components/icons/Alert.tsx +0 -31
- package/src/components/icons/ArrowUp.tsx +0 -28
- package/src/components/icons/Bug.tsx +0 -81
- package/src/components/icons/Chat.tsx +0 -30
- package/src/components/icons/ChevronDown.tsx +0 -26
- package/src/components/icons/ChevronLeft.tsx +0 -28
- package/src/components/icons/ChevronRight.tsx +0 -28
- package/src/components/icons/ChevronUp.tsx +0 -24
- package/src/components/icons/Clear.tsx +0 -23
- package/src/components/icons/Close.tsx +0 -30
- package/src/components/icons/Code.tsx +0 -24
- package/src/components/icons/Copy.tsx +0 -23
- package/src/components/icons/DeepThought.tsx +0 -38
- package/src/components/icons/Delete.tsx +0 -23
- package/src/components/icons/Document.tsx +0 -50
- package/src/components/icons/Download.tsx +0 -23
- package/src/components/icons/Edit.tsx +0 -17
- package/src/components/icons/Expand.tsx +0 -23
- package/src/components/icons/Eye.tsx +0 -17
- package/src/components/icons/EyeInvisible.tsx +0 -24
- package/src/components/icons/Facebook.tsx +0 -23
- package/src/components/icons/Feedback.tsx +0 -24
- package/src/components/icons/File.tsx +0 -17
- package/src/components/icons/FileExcel.tsx +0 -23
- package/src/components/icons/FilePdf.tsx +0 -23
- package/src/components/icons/FileWord.tsx +0 -23
- package/src/components/icons/Fullscreen.tsx +0 -23
- package/src/components/icons/FullscreenExit.tsx +0 -23
- package/src/components/icons/GasStation.tsx +0 -36
- package/src/components/icons/Group.tsx +0 -30
- package/src/components/icons/History.tsx +0 -33
- package/src/components/icons/Image.tsx +0 -37
- package/src/components/icons/Info.tsx +0 -31
- package/src/components/icons/Link.tsx +0 -17
- package/src/components/icons/Linkedin.tsx +0 -23
- package/src/components/icons/Loading.tsx +0 -28
- package/src/components/icons/Logout.tsx +0 -27
- package/src/components/icons/Mail.tsx +0 -17
- package/src/components/icons/MapMarker.tsx +0 -26
- package/src/components/icons/MenuHorizontal.tsx +0 -29
- package/src/components/icons/MenuVertical.tsx +0 -29
- package/src/components/icons/Message.tsx +0 -23
- package/src/components/icons/Microphone.tsx +0 -23
- package/src/components/icons/Minus.tsx +0 -23
- package/src/components/icons/MinusCircle.tsx +0 -24
- package/src/components/icons/PaperClip.tsx +0 -23
- package/src/components/icons/Picture.tsx +0 -23
- package/src/components/icons/Plus.tsx +0 -18
- package/src/components/icons/Preview.tsx +0 -29
- package/src/components/icons/Print.tsx +0 -38
- package/src/components/icons/QuestionHelp.tsx +0 -30
- package/src/components/icons/Refresh.tsx +0 -30
- package/src/components/icons/SelectIcon.tsx +0 -28
- package/src/components/icons/Send.tsx +0 -17
- package/src/components/icons/Setting.tsx +0 -23
- package/src/components/icons/Share.tsx +0 -23
- package/src/components/icons/Sound.tsx +0 -23
- package/src/components/icons/SoundDeactivated.tsx +0 -27
- package/src/components/icons/Telegram.tsx +0 -26
- package/src/components/icons/ThumbDown.tsx +0 -29
- package/src/components/icons/ThumbUp.tsx +0 -29
- package/src/components/icons/Translation.tsx +0 -24
- package/src/components/icons/Twitter.tsx +0 -23
- package/src/components/icons/Upload.tsx +0 -34
- package/src/components/icons/User.tsx +0 -17
- package/src/components/icons/Warning.tsx +0 -24
- package/src/components/icons/WhatsApp.tsx +0 -24
- package/src/components/icons/icons.stories.css +0 -5
- package/src/components/icons/icons.stories.tsx +0 -81
- package/src/components/icons/loading.css +0 -14
- package/src/components/layouts/Chat.test.tsx +0 -40
- package/src/components/layouts/Chat.tsx +0 -69
- package/src/components/layouts/FullBody/FullBody.stories.tsx +0 -110
- package/src/components/layouts/FullPage.test.tsx +0 -65
- package/src/components/layouts/FullPage.tsx +0 -80
- package/src/components/layouts/HiddenChat.test.tsx +0 -40
- package/src/components/layouts/HiddenChat.tsx +0 -233
- package/src/components/layouts/Totem/Totem.stories.tsx +0 -131
- package/src/components/layouts/Totem.test.tsx +0 -40
- package/src/components/layouts/Totem.tsx +0 -49
- package/src/components/layouts/WebsiteAssistant.test.tsx +0 -40
- package/src/components/layouts/WebsiteAssistant.tsx +0 -132
- package/src/components/layouts/ZoomedFullBody/ZoomedFullBody.stories.tsx +0 -131
- package/src/components/layouts/ZoomedFullBody.test.tsx +0 -40
- package/src/components/layouts/ZoomedFullBody.tsx +0 -81
- package/src/components/layouts/__snapshots__/Chat.test.tsx.snap +0 -457
- package/src/components/layouts/__snapshots__/FullPage.test.tsx.snap +0 -1045
- package/src/components/layouts/__snapshots__/HiddenChat.test.tsx.snap +0 -460
- package/src/components/layouts/__snapshots__/Totem.test.tsx.snap +0 -566
- package/src/components/layouts/__snapshots__/WebsiteAssistant.test.tsx.snap +0 -59
- package/src/components/layouts/__snapshots__/ZoomedFullBody.test.tsx.snap +0 -523
- package/src/components/layouts/chat.css +0 -451
- package/src/components/layouts/hidden-chat.css +0 -276
- package/src/components/layouts/layouts.stories.tsx +0 -231
- package/src/components/layouts/totem.css +0 -221
- package/src/components/layouts/zoomed-full-body.css +0 -18
- package/src/components/ui/Alert.css +0 -93
- package/src/components/ui/Alert.stories.tsx +0 -137
- package/src/components/ui/Alert.test.tsx +0 -129
- package/src/components/ui/Alert.tsx +0 -123
- package/src/components/ui/Button.css +0 -167
- package/src/components/ui/Button.stories.tsx +0 -156
- package/src/components/ui/Button.test.tsx +0 -74
- package/src/components/ui/Button.tsx +0 -107
- package/src/components/ui/Card.css +0 -65
- package/src/components/ui/Card.stories.tsx +0 -95
- package/src/components/ui/Card.test.tsx +0 -47
- package/src/components/ui/Card.tsx +0 -48
- package/src/components/ui/Checkbox.css +0 -116
- package/src/components/ui/Checkbox.stories.tsx +0 -74
- package/src/components/ui/Checkbox.test.tsx +0 -28
- package/src/components/ui/Checkbox.tsx +0 -58
- package/src/components/ui/ConfirmDialog.css +0 -42
- package/src/components/ui/ConfirmDialog.stories.tsx +0 -216
- package/src/components/ui/ConfirmDialog.test.tsx +0 -124
- package/src/components/ui/ConfirmDialog.tsx +0 -58
- package/src/components/ui/Details.css +0 -66
- package/src/components/ui/Drawer.css +0 -270
- package/src/components/ui/Drawer.stories.tsx +0 -267
- package/src/components/ui/Drawer.test.tsx +0 -130
- package/src/components/ui/Drawer.tsx +0 -293
- package/src/components/ui/Dropdown.css +0 -173
- package/src/components/ui/Dropdown.tsx +0 -63
- package/src/components/ui/Expandable.css +0 -15
- package/src/components/ui/Expandable.stories.tsx +0 -180
- package/src/components/ui/Expandable.test.tsx +0 -107
- package/src/components/ui/Expandable.tsx +0 -121
- package/src/components/ui/Modal.css +0 -98
- package/src/components/ui/Modal.stories.tsx +0 -171
- package/src/components/ui/Modal.test.tsx +0 -111
- package/src/components/ui/Modal.tsx +0 -117
- package/src/components/ui/Select.css +0 -138
- package/src/components/ui/Select.stories.tsx +0 -79
- package/src/components/ui/Select.test.tsx +0 -84
- package/src/components/ui/Select.tsx +0 -79
- package/src/components/ui/Slider.css +0 -192
- package/src/components/ui/Slider.stories.tsx +0 -63
- package/src/components/ui/Slider.tsx +0 -142
- package/src/components/ui/Spin.css +0 -31
- package/src/components/ui/Spin.stories.tsx +0 -64
- package/src/components/ui/Spin.test.tsx +0 -41
- package/src/components/ui/Spin.tsx +0 -31
- package/src/components/ui/Table.css +0 -132
- package/src/components/ui/Tooltip.css +0 -171
- package/src/components/ui/Tooltip.stories.tsx +0 -109
- package/src/components/ui/Tooltip.test.tsx +0 -102
- package/src/components/ui/Tooltip.tsx +0 -163
- package/src/components/ui/__snapshots__/Alert.test.tsx.snap +0 -59
- package/src/components/ui/__snapshots__/Button.test.tsx.snap +0 -204
- package/src/components/ui/__snapshots__/Card.test.tsx.snap +0 -321
- package/src/components/ui/__snapshots__/Checkbox.test.tsx.snap +0 -131
- package/src/components/ui/__snapshots__/ConfirmDialog.test.tsx.snap +0 -35
- package/src/components/ui/__snapshots__/Drawer.test.tsx.snap +0 -67
- package/src/components/ui/__snapshots__/Expandable.test.tsx.snap +0 -159
- package/src/components/ui/__snapshots__/Modal.test.tsx.snap +0 -59
- package/src/components/ui/__snapshots__/Select.test.tsx.snap +0 -254
- package/src/components/ui/__snapshots__/Spin.test.tsx.snap +0 -193
- package/src/components/ui/__snapshots__/Tooltip.test.tsx.snap +0 -113
- package/src/components/ui/definitions.stories.tsx +0 -139
- package/src/context/visemeContext.tsx +0 -384
- package/src/helpers/chatPdfExport.ts +0 -544
- package/src/helpers/configuration.ts +0 -42
- package/src/helpers/constants.ts +0 -268
- package/src/helpers/convertDocument.test.ts +0 -67
- package/src/helpers/convertDocument.ts +0 -35
- package/src/helpers/credits.ts +0 -54
- package/src/helpers/error.test.ts +0 -29
- package/src/helpers/error.ts +0 -278
- package/src/helpers/imageCompression.ts +0 -230
- package/src/helpers/llmUsage.ts +0 -328
- package/src/helpers/markedExtendedTables.js +0 -217
- package/src/helpers/media.test.ts +0 -169
- package/src/helpers/media.ts +0 -81
- package/src/helpers/message.test.ts +0 -126
- package/src/helpers/message.ts +0 -219
- package/src/helpers/nats/getNatsConfig.ts +0 -148
- package/src/helpers/nats/isSessionExpiredError.test.ts +0 -38
- package/src/helpers/nats/isSessionExpiredError.ts +0 -51
- package/src/helpers/nats/useNats.test.tsx +0 -81
- package/src/helpers/nats/useNats.ts +0 -204
- package/src/helpers/nats/useNatsSession.test.ts +0 -16
- package/src/helpers/nats/useNatsSession.ts +0 -460
- package/src/helpers/piiDetection.test.ts +0 -186
- package/src/helpers/piiDetection.ts +0 -91
- package/src/helpers/sanitizer.ts +0 -17
- package/src/helpers/statistics.ts +0 -58
- package/src/helpers/stt/useSTT.ts +0 -515
- package/src/helpers/translations.ts +0 -39
- package/src/helpers/tts/ttsVoiceUtility.ts +0 -275
- package/src/helpers/tts/useTTS.ts +0 -621
- package/src/helpers/utils.test.ts +0 -331
- package/src/helpers/utils.ts +0 -591
- package/src/helpers/venue.ts +0 -36
- package/src/i18n.ts +0 -39
- package/src/index.stories.tsx +0 -220
- package/src/index.test.tsx +0 -156
- package/src/index.tsx +0 -592
- package/src/locales/de.json +0 -680
- package/src/locales/en.json +0 -754
- package/src/locales/es.json +0 -682
- package/src/locales/fr.json +0 -682
- package/src/locales/it.json +0 -750
- package/src/mocks/data.ts +0 -790
- package/src/styles.css +0 -126
- package/src/types/integration.test.ts +0 -32
- package/src/types/integration.ts +0 -31
- package/src/types/layout.ts +0 -50
- package/src/version.ts +0 -2
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/* Shared secondary icon-button chrome (header + chat input bar).
|
|
2
|
+
CTA primary (Accedi / send) must NOT use this class.
|
|
3
|
+
Size / border / icon tokens come from @memori.ai/ui. */
|
|
4
|
+
|
|
5
|
+
.memori-widget .memori-icon-button.memori-button {
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
width: var(--memori-icon-button-size);
|
|
8
|
+
min-width: var(--memori-icon-button-size);
|
|
9
|
+
height: var(--memori-icon-button-size);
|
|
10
|
+
min-height: var(--memori-icon-button-size);
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
padding: 0;
|
|
15
|
+
border: 1px solid var(--memori-border-color, #ddd);
|
|
16
|
+
border-radius: var(--memori-radius-control);
|
|
17
|
+
background: transparent;
|
|
18
|
+
box-shadow: none;
|
|
19
|
+
color: var(--memori-icon-button-icon);
|
|
20
|
+
transform: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* Icon + text (Cronologia, Esci, Share con label, …) — grow past the square */
|
|
24
|
+
.memori-widget .memori-icon-button.memori-icon-button--labeled.memori-button,
|
|
25
|
+
.memori-widget .memori-icon-button.memori-button:has(.memori-header--action-label),
|
|
26
|
+
.memori-widget .memori-icon-button.memori-button:has(.memori-button__content) {
|
|
27
|
+
overflow: visible;
|
|
28
|
+
width: auto;
|
|
29
|
+
min-width: var(--memori-icon-button-size);
|
|
30
|
+
max-width: none;
|
|
31
|
+
height: var(--memori-icon-button-size);
|
|
32
|
+
min-height: var(--memori-icon-button-size);
|
|
33
|
+
flex-wrap: nowrap;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
padding: 0 12px;
|
|
36
|
+
gap: 0.4rem;
|
|
37
|
+
white-space: nowrap;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.memori-widget .memori-icon-button.memori-icon-button--labeled.memori-button .memori-button__content,
|
|
41
|
+
.memori-widget .memori-icon-button.memori-button:has(.memori-button__content) .memori-button__content,
|
|
42
|
+
.memori-widget .memori-icon-button.memori-button .memori-header--action-label {
|
|
43
|
+
display: inline-flex;
|
|
44
|
+
overflow: visible;
|
|
45
|
+
align-items: center;
|
|
46
|
+
font-size: var(--memori-text-size-sm);
|
|
47
|
+
font-weight: var(--memori-text-weight-medium, 500);
|
|
48
|
+
line-height: 1.2;
|
|
49
|
+
white-space: nowrap;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.memori-widget .memori-icon-button.memori-button svg,
|
|
53
|
+
.memori-widget .memori-icon-button.memori-button .icon {
|
|
54
|
+
width: var(--memori-icon-button-icon-size, 20px);
|
|
55
|
+
height: var(--memori-icon-button-icon-size, 20px);
|
|
56
|
+
flex-shrink: 0;
|
|
57
|
+
color: inherit;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.memori-widget .memori-icon-button.memori-button svg.lucide-volume-x {
|
|
61
|
+
width: calc(var(--memori-icon-button-icon-size, 20px) + 1px);
|
|
62
|
+
height: calc(var(--memori-icon-button-icon-size, 20px) + 1px);
|
|
63
|
+
stroke-width: 2.35;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.memori-widget .memori-icon-button.memori-button:disabled,
|
|
67
|
+
.memori-widget .memori-icon-button.memori-button.memori-button--disabled {
|
|
68
|
+
cursor: not-allowed;
|
|
69
|
+
opacity: 0.35;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.memori-widget .memori-icon-button.memori-button:focus {
|
|
73
|
+
outline: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.memori-widget .memori-icon-button.memori-button:focus-visible {
|
|
77
|
+
border-color: var(--memori-primary);
|
|
78
|
+
box-shadow: var(--memori-focus-ring, 0 0 0 3px color-mix(in oklch, var(--memori-primary) 18%, transparent));
|
|
79
|
+
outline: 2px solid var(--memori-primary);
|
|
80
|
+
outline-offset: var(--memori-focus-ring-offset, 2px);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.memori-widget .memori-icon-button.memori-button:hover:not(:disabled, .memori-button--disabled) {
|
|
84
|
+
border-color: color-mix(in oklch, var(--memori-text-color, #111827) 28%, transparent);
|
|
85
|
+
background: color-mix(in oklch, var(--memori-text-color, #111827) 6%, transparent);
|
|
86
|
+
box-shadow: none;
|
|
87
|
+
color: var(--memori-text-color, #111827);
|
|
88
|
+
transform: none;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* Active / popover open — soft primary, never solid CTA fill */
|
|
92
|
+
.memori-widget .memori-icon-button.memori-button.memori-icon-button--active,
|
|
93
|
+
.memori-widget .memori-icon-button.memori-button.memori-button--active,
|
|
94
|
+
.memori-widget
|
|
95
|
+
.memori-icon-button.memori-button--outline.memori-button--active:not(:disabled, .memori-button--disabled),
|
|
96
|
+
.memori-widget
|
|
97
|
+
.memori-icon-button.memori-button--toolbar.memori-button--active:not(:disabled, .memori-button--disabled),
|
|
98
|
+
.memori-widget .memori-icon-button.memori-button--ghost.memori-button--active:not(:disabled, .memori-button--disabled) {
|
|
99
|
+
border-color: var(--memori-primary);
|
|
100
|
+
background: var(--memori-icon-active-bg);
|
|
101
|
+
box-shadow: none;
|
|
102
|
+
color: var(--memori-primary);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.memori-widget
|
|
106
|
+
.memori-icon-button.memori-button.memori-icon-button--active:hover:not(:disabled, .memori-button--disabled),
|
|
107
|
+
.memori-widget .memori-icon-button.memori-button.memori-button--active:hover:not(:disabled, .memori-button--disabled) {
|
|
108
|
+
border-color: var(--memori-primary);
|
|
109
|
+
background: color-mix(in oklch, var(--memori-primary) 18%, transparent);
|
|
110
|
+
color: var(--memori-primary);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/* Mic recording — soft error, not primary */
|
|
114
|
+
.memori-widget .memori-icon-button.memori-button.memori-icon-button--recording {
|
|
115
|
+
border-color: var(--memori-error, #dc2626);
|
|
116
|
+
background: var(--memori-icon-recording-bg);
|
|
117
|
+
box-shadow: none;
|
|
118
|
+
color: var(--memori-error, #dc2626);
|
|
119
|
+
transform: none;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.memori-widget .memori-icon-button.memori-button.memori-icon-button--recording:focus-visible {
|
|
123
|
+
border-color: var(--memori-error, #dc2626);
|
|
124
|
+
box-shadow: 0 0 0 3px color-mix(in oklch, var(--memori-error, #dc2626) 22%, transparent);
|
|
125
|
+
outline-color: var(--memori-error, #dc2626);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.memori-widget
|
|
129
|
+
.memori-icon-button.memori-button.memori-icon-button--recording:hover:not(:disabled, .memori-button--disabled) {
|
|
130
|
+
border-color: var(--memori-error, #dc2626);
|
|
131
|
+
background: var(--memori-icon-recording-bg);
|
|
132
|
+
box-shadow: none;
|
|
133
|
+
color: var(--memori-error, #dc2626);
|
|
134
|
+
transform: none;
|
|
135
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Button } from '@memori.ai/ui';
|
|
3
|
+
export type IconButtonProps = Omit<React.ComponentProps<typeof Button>, 'variant' | 'active'> & {
|
|
4
|
+
active?: boolean;
|
|
5
|
+
recording?: boolean;
|
|
6
|
+
variant?: React.ComponentProps<typeof Button>['variant'];
|
|
7
|
+
};
|
|
8
|
+
declare const IconButton: React.ForwardRefExoticComponent<Pick<IconButtonProps, "children" | "form" | "slot" | "style" | "title" | "shape" | "value" | "className" | "name" | "onSubmit" | "role" | "key" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "type" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "focusableWhenDisabled" | "nativeButton" | "render" | "danger" | "variant" | "loading" | "icon" | "size" | "active" | "fullWidth" | "iconPosition" | "shadow" | "ariaLabel" | "recording"> & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
export default IconButton;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
7
|
+
const ui_1 = require("@memori.ai/ui");
|
|
8
|
+
function hasVisibleLabel(children) {
|
|
9
|
+
return react_1.default.Children.toArray(children).some(child => {
|
|
10
|
+
if (child === null || child === undefined)
|
|
11
|
+
return false;
|
|
12
|
+
if (typeof child === 'boolean')
|
|
13
|
+
return false;
|
|
14
|
+
if (typeof child === 'string')
|
|
15
|
+
return child.trim().length > 0;
|
|
16
|
+
if (typeof child === 'number')
|
|
17
|
+
return true;
|
|
18
|
+
return true;
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
const IconButton = react_1.default.forwardRef(({ active = false, recording = false, className, variant = 'toolbar', shape = 'default', size = 'sm', children, ...rest }, ref) => {
|
|
22
|
+
const isRecording = !!recording;
|
|
23
|
+
const isActive = !!active && !isRecording;
|
|
24
|
+
const isLabeled = hasVisibleLabel(children);
|
|
25
|
+
const resolvedVariant = variant === 'primary' ||
|
|
26
|
+
variant === 'secondary' ||
|
|
27
|
+
variant === 'danger' ||
|
|
28
|
+
variant === 'outline' ||
|
|
29
|
+
variant === 'ghost'
|
|
30
|
+
? 'toolbar'
|
|
31
|
+
: variant;
|
|
32
|
+
return ((0, jsx_runtime_1.jsx)(ui_1.Button, { ref: ref, variant: resolvedVariant, shape: shape, size: size, active: isActive, className: (0, classnames_1.default)('memori-icon-button', isLabeled && 'memori-icon-button--labeled', isActive && 'memori-icon-button--active', isRecording && 'memori-icon-button--recording', className), ...rest, children: children }));
|
|
33
|
+
});
|
|
34
|
+
IconButton.displayName = 'IconButton';
|
|
35
|
+
exports.default = IconButton;
|
|
36
|
+
//# sourceMappingURL=IconButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconButton.js","sourceRoot":"","sources":["../../../src/components/IconButton/IconButton.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,oEAA4B;AAC5B,sCAAuC;AAqBvC,SAAS,eAAe,CAAC,QAAyB;IAChD,OAAO,eAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;QACnD,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS;YAAE,OAAO,KAAK,CAAC;QACxD,IAAI,OAAO,KAAK,KAAK,SAAS;YAAE,OAAO,KAAK,CAAC;QAC7C,IAAI,OAAO,KAAK,KAAK,QAAQ;YAAE,OAAO,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;QAC9D,IAAI,OAAO,KAAK,KAAK,QAAQ;YAAE,OAAO,IAAI,CAAC;QAC3C,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CAAC;AACL,CAAC;AAMD,MAAM,UAAU,GAAG,eAAK,CAAC,UAAU,CACjC,CACE,EACE,MAAM,GAAG,KAAK,EACd,SAAS,GAAG,KAAK,EACjB,SAAS,EACT,OAAO,GAAG,SAAS,EACnB,KAAK,GAAG,SAAS,EACjB,IAAI,GAAG,IAAI,EACX,QAAQ,EACR,GAAG,IAAI,EACR,EACD,GAAG,EACH,EAAE;IACF,MAAM,WAAW,GAAG,CAAC,CAAC,SAAS,CAAC;IAChC,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC;IAC1C,MAAM,SAAS,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;IAE5C,MAAM,eAAe,GACnB,OAAO,KAAK,SAAS;QACrB,OAAO,KAAK,WAAW;QACvB,OAAO,KAAK,QAAQ;QACpB,OAAO,KAAK,SAAS;QACrB,OAAO,KAAK,OAAO;QACjB,CAAC,CAAC,SAAS;QACX,CAAC,CAAC,OAAO,CAAC;IAEd,OAAO,CACL,uBAAC,WAAM,IACL,GAAG,EAAE,GAAG,EACR,OAAO,EAAE,eAAe,EACxB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,QAAQ,EAChB,SAAS,EAAE,IAAA,oBAAE,EACX,oBAAoB,EACpB,SAAS,IAAI,6BAA6B,EAC1C,QAAQ,IAAI,4BAA4B,EACxC,WAAW,IAAI,+BAA+B,EAC9C,SAAS,CACV,KACG,IAAI,YAEP,QAAQ,GACF,CACV,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC;AAEtC,kBAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
/* Login gate modal — content-sized, radii: control 12 / box 20 / modal 28 */
|
|
2
|
+
|
|
3
|
+
.memori--login-modal.memori-modal,
|
|
4
|
+
.memori--login-modal {
|
|
5
|
+
--memori-login-modal-radius: var(--memori-radius-overlay, 1.75rem);
|
|
6
|
+
--memori-login-control-radius: var(--memori-radius-control, 0.75rem);
|
|
7
|
+
--memori-login-box-radius: var(--memori-radius-surface, 1.25rem);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.memori--login-modal--content,
|
|
11
|
+
.memori--login-modal .memori-modal__popup {
|
|
12
|
+
max-width: min(420px, calc(100vw - 2rem));
|
|
13
|
+
padding: 1.5rem 1.5rem 1.25rem;
|
|
14
|
+
border-radius: var(--memori-login-modal-radius) !important;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.memori--login-modal .memori-modal__content {
|
|
18
|
+
overflow: visible;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.memori--login-modal--missing.memori--login-modal .memori-modal__popup {
|
|
22
|
+
display: flex;
|
|
23
|
+
max-width: min(480px, calc(100vw - 2rem));
|
|
24
|
+
max-height: min(90vh, 40rem);
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.memori--login-modal--missing .memori-modal__content {
|
|
29
|
+
display: flex;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
min-height: 0;
|
|
32
|
+
max-height: none;
|
|
33
|
+
flex: 1 1 auto;
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.memori--login-modal--title,
|
|
38
|
+
.memori--login-modal .memori-modal__title {
|
|
39
|
+
margin: 0;
|
|
40
|
+
color: var(--memori-text-color, #1a1a2e);
|
|
41
|
+
font-size: 1.625rem;
|
|
42
|
+
font-weight: var(--memori-text-weight-bold, 700);
|
|
43
|
+
line-height: 1.25;
|
|
44
|
+
text-align: left;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.memori--login-modal--step {
|
|
48
|
+
display: flex;
|
|
49
|
+
flex-direction: column;
|
|
50
|
+
margin-top: 0.25rem;
|
|
51
|
+
gap: 1rem;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.memori--login-modal--benefit,
|
|
55
|
+
.memori--login-modal--sent-copy,
|
|
56
|
+
.memori--login-modal--footnote,
|
|
57
|
+
.memori--login-modal--resend {
|
|
58
|
+
margin: 0;
|
|
59
|
+
color: color-mix(in oklch, var(--memori-text-color, #1a1a2e), transparent 35%);
|
|
60
|
+
font-size: 0.9375rem;
|
|
61
|
+
line-height: 1.45;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.memori--login-modal--footnote,
|
|
65
|
+
.memori--login-modal--resend {
|
|
66
|
+
font-size: 0.8125rem;
|
|
67
|
+
text-align: center;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.memori--login-modal--email-row {
|
|
71
|
+
margin: -0.35rem 0 0;
|
|
72
|
+
color: var(--memori-text-color, #1a1a2e);
|
|
73
|
+
font-size: 0.9375rem;
|
|
74
|
+
line-height: 1.4;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.memori--login-modal--email-value {
|
|
78
|
+
font-weight: var(--memori-text-weight-bold, 700);
|
|
79
|
+
overflow-wrap: anywhere;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.memori--login-modal--edit-link {
|
|
83
|
+
padding: 0;
|
|
84
|
+
border: none;
|
|
85
|
+
margin: 0;
|
|
86
|
+
background: none;
|
|
87
|
+
color: var(--memori-primary, #6b2d5c);
|
|
88
|
+
cursor: pointer;
|
|
89
|
+
font: inherit;
|
|
90
|
+
font-weight: var(--memori-text-weight-semibold, 600);
|
|
91
|
+
text-decoration: underline;
|
|
92
|
+
text-underline-offset: 2px;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.memori--login-modal--edit-link:disabled {
|
|
96
|
+
cursor: not-allowed;
|
|
97
|
+
opacity: 0.55;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.memori--login-modal .memori-field.memori--login-modal--field {
|
|
101
|
+
display: flex;
|
|
102
|
+
width: calc(100% - 0.75rem);
|
|
103
|
+
max-width: calc(100% - 0.75rem);
|
|
104
|
+
box-sizing: border-box;
|
|
105
|
+
flex-direction: column;
|
|
106
|
+
margin-right: auto;
|
|
107
|
+
margin-left: auto;
|
|
108
|
+
gap: 0.375rem;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.memori--login-modal--email-input,
|
|
112
|
+
.memori--login-modal--form input {
|
|
113
|
+
width: 100%;
|
|
114
|
+
box-sizing: border-box;
|
|
115
|
+
border-radius: var(--memori-login-control-radius) !important;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.memori--login-modal--email-input.error,
|
|
119
|
+
.memori--login-modal--otp-digit.error {
|
|
120
|
+
border-color: var(--memori-error, #ef4444) !important;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.memori--login-modal .memori-button.memori--login-modal--primary {
|
|
124
|
+
width: calc(100% - 0.75rem);
|
|
125
|
+
max-width: calc(100% - 0.75rem);
|
|
126
|
+
min-height: 2.75rem;
|
|
127
|
+
box-sizing: border-box;
|
|
128
|
+
border-radius: var(--memori-login-control-radius) !important;
|
|
129
|
+
margin-right: auto;
|
|
130
|
+
margin-left: auto;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.memori--login-modal--otp-fieldset {
|
|
134
|
+
display: flex;
|
|
135
|
+
flex-direction: column;
|
|
136
|
+
padding: 0;
|
|
137
|
+
border: none;
|
|
138
|
+
margin: 0;
|
|
139
|
+
gap: 0.5rem;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.memori--login-modal--otp-label {
|
|
143
|
+
padding: 0;
|
|
144
|
+
color: var(--memori-text-color, #1a1a2e);
|
|
145
|
+
font-size: 0.875rem;
|
|
146
|
+
font-weight: var(--memori-text-weight-semibold, 600);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.memori--login-modal--otp-digits {
|
|
150
|
+
display: grid;
|
|
151
|
+
width: 100%;
|
|
152
|
+
max-width: 16rem;
|
|
153
|
+
gap: 0.625rem;
|
|
154
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.memori--login-modal--otp-digit {
|
|
158
|
+
width: 100%;
|
|
159
|
+
height: 3.25rem;
|
|
160
|
+
border-radius: var(--memori-login-box-radius) !important;
|
|
161
|
+
font-size: 1.375rem;
|
|
162
|
+
font-weight: var(--memori-text-weight-bold, 700);
|
|
163
|
+
text-align: center;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.memori--login-modal--otp-digit.active,
|
|
167
|
+
.memori--login-modal--otp-digit:focus {
|
|
168
|
+
border-color: var(--memori-primary, #6b2d5c) !important;
|
|
169
|
+
box-shadow: 0 0 0 3px color-mix(in oklch, var(--memori-primary, #6b2d5c), transparent 84%);
|
|
170
|
+
outline: none;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.memori--login-modal--inline-error {
|
|
174
|
+
margin: 0;
|
|
175
|
+
color: var(--memori-error, #b91c1c);
|
|
176
|
+
font-size: 0.875rem;
|
|
177
|
+
line-height: 1.35;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.memori--login-modal--missing-data {
|
|
181
|
+
display: flex;
|
|
182
|
+
min-height: 0;
|
|
183
|
+
flex: 1 1 auto;
|
|
184
|
+
flex-direction: column;
|
|
185
|
+
gap: 0.75rem;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.memori--login-modal--missing-helper {
|
|
189
|
+
margin: 0;
|
|
190
|
+
color: color-mix(in oklch, var(--memori-text-color, #1a1a2e), transparent 30%);
|
|
191
|
+
font-size: 0.9375rem;
|
|
192
|
+
line-height: 1.45;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
form.memori--login-modal--form {
|
|
196
|
+
display: flex;
|
|
197
|
+
flex-direction: column;
|
|
198
|
+
gap: 0.75rem;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
form.memori--login-modal--form--missing {
|
|
202
|
+
min-height: 0;
|
|
203
|
+
flex: 1 1 auto;
|
|
204
|
+
gap: 0;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.memori--login-modal--form-body {
|
|
208
|
+
display: flex;
|
|
209
|
+
min-height: 0;
|
|
210
|
+
flex: 1 1 auto;
|
|
211
|
+
flex-direction: column;
|
|
212
|
+
padding: 0.25rem 0.375rem 0.75rem;
|
|
213
|
+
gap: 0.875rem;
|
|
214
|
+
-webkit-overflow-scrolling: touch;
|
|
215
|
+
overflow-x: hidden;
|
|
216
|
+
overflow-y: auto;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.memori--login-modal--form-footer {
|
|
220
|
+
flex-shrink: 0;
|
|
221
|
+
padding: 0.75rem 0.375rem 0.125rem;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.memori--login-modal--consent-block {
|
|
225
|
+
display: flex;
|
|
226
|
+
flex-direction: column;
|
|
227
|
+
gap: 0.75rem;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.memori-login-modal--consent {
|
|
231
|
+
width: 100%;
|
|
232
|
+
margin: 0;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.memori--login-modal--consent-note {
|
|
236
|
+
margin: 0;
|
|
237
|
+
color: color-mix(in oklch, var(--memori-text-color, #1a1a2e), transparent 35%);
|
|
238
|
+
font-size: 0.8125rem;
|
|
239
|
+
line-height: 1.45;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.memori--login-modal--deep-thought {
|
|
243
|
+
padding: 0.625rem 0.75rem;
|
|
244
|
+
border-radius: var(--memori-login-box-radius);
|
|
245
|
+
background: color-mix(in oklch, var(--memori-text-color, #1a1a2e), transparent 96%);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
@media (max-width: 480px) {
|
|
249
|
+
.memori--login-modal--content,
|
|
250
|
+
.memori--login-modal .memori-modal__popup {
|
|
251
|
+
padding: 1.25rem 1rem 1rem;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.memori--login-modal--title,
|
|
255
|
+
.memori--login-modal .memori-modal__title {
|
|
256
|
+
font-size: 1.5rem;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.memori--login-modal--otp-digits {
|
|
260
|
+
max-width: 100%;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
@media (prefers-reduced-motion: reduce) {
|
|
265
|
+
.memori--login-modal * {
|
|
266
|
+
animation-duration: 0.01ms !important;
|
|
267
|
+
animation-iteration-count: 1 !important;
|
|
268
|
+
transition-duration: 0.01ms !important;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { User, Tenant } from '@memori.ai/memori-api-client/dist/types';
|
|
2
|
+
import memoriApiClient from '@memori.ai/memori-api-client';
|
|
3
|
+
export interface Props {
|
|
4
|
+
open?: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
user?: User;
|
|
7
|
+
loginToken?: string;
|
|
8
|
+
onLogin: (user: User, token: string) => void;
|
|
9
|
+
onLogout: () => void;
|
|
10
|
+
tenant: Tenant;
|
|
11
|
+
apiClient: ReturnType<typeof memoriApiClient>;
|
|
12
|
+
__TEST__signup?: boolean;
|
|
13
|
+
__TEST__needMissingData?: boolean;
|
|
14
|
+
setUser: (user: User) => void;
|
|
15
|
+
modalClassName?: string;
|
|
16
|
+
memoriName?: string;
|
|
17
|
+
}
|
|
18
|
+
declare const LoginModal: ({ open, onClose, onLogin, user, loginToken: _loginToken, setUser, tenant, apiClient, __TEST__signup: _signup, __TEST__needMissingData, modalClassName, memoriName, onLogout: _onLogout, }: Props) => JSX.Element;
|
|
19
|
+
export default LoginModal;
|