@memori.ai/memori-react 7.28.1 → 7.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +46 -0
- package/dist/components/AccountForm/AccountForm.d.ts +1 -0
- package/dist/components/AgeVerificationModal/AgeVerificationModal.d.ts +1 -0
- package/dist/components/AttachmentLinkModal/AttachmentLinkModal.d.ts +1 -0
- package/dist/components/Auth/Auth.d.ts +1 -0
- package/dist/components/Avatar/AvatarView/AvatarComponent/Shadow/DynamicShadow.d.ts +1 -0
- package/dist/components/Avatar/AvatarView/AvatarComponent/components/FullbodyAvatar/fullbodyAvatar.d.ts +1 -0
- package/dist/components/Avatar/AvatarView/AvatarComponent/components/controllers/AnimationController.d.ts +38 -0
- package/dist/components/Avatar/AvatarView/AvatarComponent/components/controllers/AnimationController.js +181 -0
- package/dist/components/Avatar/AvatarView/AvatarComponent/components/controllers/AnimationController.js.map +1 -0
- package/dist/components/Avatar/AvatarView/AvatarComponent/components/halfbodyAvatar.d.ts +1 -0
- package/dist/components/Avatar/AvatarView/AvatarComponent/components/loader.d.ts +1 -0
- package/dist/components/Blob/Blob.d.ts +1 -0
- package/dist/components/BlockedMemoriBadge/BlockedMemoriBadge.d.ts +1 -0
- package/dist/components/Chat/Chat.d.ts +1 -0
- package/dist/components/Chat/Chat.js +5 -3
- package/dist/components/Chat/Chat.js.map +1 -1
- package/dist/components/ChatBubble/VirtualizedContent/VirtualizedContent.d.ts +7 -0
- package/dist/components/ChatBubble/VirtualizedContent/VirtualizedContent.js +69 -0
- package/dist/components/ChatBubble/VirtualizedContent/VirtualizedContent.js.map +1 -0
- package/dist/components/ChatHistoryDrawer/ChatHistory.css +321 -0
- package/dist/components/ChatHistoryDrawer/ChatHistory.d.ts +15 -0
- package/dist/components/ChatHistoryDrawer/ChatHistory.js +109 -0
- package/dist/components/ChatHistoryDrawer/ChatHistory.js.map +1 -0
- package/dist/components/CompletionProviderStatus/CompletionProviderStatus.d.ts +1 -0
- package/dist/components/CustomGLBModelViewer/ModelViewer.d.ts +1 -0
- package/dist/components/ExpertsDrawer/ExpertsDrawer.d.ts +1 -0
- package/dist/components/FeedbackButtons/FeedbackButtons.d.ts +1 -0
- package/dist/components/FilePreview/FilePreview.d.ts +1 -0
- package/dist/components/Header/Header.d.ts +2 -0
- package/dist/components/Header/Header.js +3 -2
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/KnownFacts/KnownFacts.d.ts +1 -0
- package/dist/components/LoginDrawer/LoginDrawer.d.ts +1 -0
- package/dist/components/MemoriWidget/MemoriWidget.d.ts +2 -1
- package/dist/components/MemoriWidget/MemoriWidget.js +173 -21
- package/dist/components/MemoriWidget/MemoriWidget.js.map +1 -1
- package/dist/components/MicrophoneButton/MicrophoneButton.d.ts +1 -0
- package/dist/components/PositionDrawer/PositionDrawer.d.ts +1 -0
- package/dist/components/PoweredBy/PoweredBy.d.ts +1 -0
- package/dist/components/SettingsDrawer/SettingsDrawer.d.ts +1 -0
- package/dist/components/SignupForm/SignupForm.d.ts +1 -0
- package/dist/components/Snippet/Snippet.d.ts +1 -0
- package/dist/components/StartPanel/StartPanel.css +20 -21
- package/dist/components/StartPanel/StartPanel.js.map +1 -1
- package/dist/components/Typing/Typing.d.ts +1 -0
- package/dist/components/VenueWidget/VenueWidget.css +7 -0
- package/dist/components/VenueWidget/VenueWidget.d.ts +1 -0
- package/dist/components/VenueWidget/VenueWidget.js +1 -1
- package/dist/components/VenueWidget/VenueWidget.js.map +1 -1
- package/dist/components/WhyThisAnswer/WhyThisAnswer.d.ts +1 -0
- package/dist/components/icons/AI.d.ts +1 -0
- package/dist/components/icons/Alert.d.ts +1 -0
- package/dist/components/icons/Bug.d.ts +1 -0
- package/dist/components/icons/Chat.d.ts +6 -0
- package/dist/components/icons/Chat.js +6 -0
- package/dist/components/icons/Chat.js.map +1 -0
- package/dist/components/icons/ChevronLeft.d.ts +1 -0
- package/dist/components/icons/ChevronRight.d.ts +1 -0
- package/dist/components/icons/Clear.d.ts +1 -0
- package/dist/components/icons/Close.d.ts +1 -0
- package/dist/components/icons/Code.d.ts +1 -0
- package/dist/components/icons/Copy.d.ts +1 -0
- package/dist/components/icons/DeepThought.d.ts +1 -0
- package/dist/components/icons/Delete.d.ts +1 -0
- package/dist/components/icons/Download.d.ts +1 -0
- package/dist/components/icons/Edit.d.ts +1 -0
- package/dist/components/icons/Expand.d.ts +1 -0
- package/dist/components/icons/Eye.d.ts +1 -0
- package/dist/components/icons/EyeInvisible.d.ts +1 -0
- package/dist/components/icons/Facebook.d.ts +1 -0
- package/dist/components/icons/Feedback.d.ts +1 -0
- package/dist/components/icons/File.d.ts +1 -0
- package/dist/components/icons/FileExcel.d.ts +1 -0
- package/dist/components/icons/FilePdf.d.ts +1 -0
- package/dist/components/icons/FileWord.d.ts +1 -0
- package/dist/components/icons/Fullscreen.d.ts +1 -0
- package/dist/components/icons/FullscreenExit.d.ts +1 -0
- package/dist/components/icons/Group.d.ts +1 -0
- package/dist/components/icons/History.d.ts +7 -0
- package/dist/components/icons/History.js +6 -0
- package/dist/components/icons/History.js.map +1 -0
- package/dist/components/icons/Info.d.ts +1 -0
- package/dist/components/icons/Link.d.ts +1 -0
- package/dist/components/icons/Linkedin.d.ts +1 -0
- package/dist/components/icons/Loading.d.ts +1 -0
- package/dist/components/icons/Mail.d.ts +1 -0
- package/dist/components/icons/MapMarker.d.ts +1 -0
- package/dist/components/icons/Message.d.ts +1 -0
- package/dist/components/icons/Microphone.d.ts +1 -0
- package/dist/components/icons/Minus.d.ts +1 -0
- package/dist/components/icons/MinusCircle.d.ts +1 -0
- package/dist/components/icons/PaperClip.d.ts +1 -0
- package/dist/components/icons/Picture.d.ts +1 -0
- package/dist/components/icons/Plus.d.ts +1 -0
- package/dist/components/icons/QuestionHelp.d.ts +1 -0
- package/dist/components/icons/Refresh.d.ts +1 -0
- package/dist/components/icons/SelectIcon.d.ts +1 -0
- package/dist/components/icons/Send.d.ts +1 -0
- package/dist/components/icons/Setting.d.ts +1 -0
- package/dist/components/icons/Share.d.ts +1 -0
- package/dist/components/icons/Sound.d.ts +1 -0
- package/dist/components/icons/SoundDeactivated.d.ts +1 -0
- package/dist/components/icons/Telegram.d.ts +1 -0
- package/dist/components/icons/ThumbDown.d.ts +1 -0
- package/dist/components/icons/ThumbUp.d.ts +1 -0
- package/dist/components/icons/Translation.d.ts +1 -0
- package/dist/components/icons/Twitter.d.ts +1 -0
- package/dist/components/icons/User.d.ts +1 -0
- package/dist/components/icons/Warning.d.ts +1 -0
- package/dist/components/icons/WhatsApp.d.ts +1 -0
- package/dist/components/ui/Card.css +4 -0
- package/dist/components/ui/Card.js +3 -2
- package/dist/components/ui/Card.js.map +1 -1
- package/dist/components/ui/Select.d.ts +1 -0
- package/dist/helpers/message.js +1 -4
- package/dist/helpers/message.js.map +1 -1
- package/dist/helpers/utils.d.ts +1 -0
- package/dist/helpers/utils.js +18 -1
- package/dist/helpers/utils.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/locales/de.json +11 -1
- package/dist/locales/en.json +11 -1
- package/dist/locales/es.json +11 -1
- package/dist/locales/fr.json +14 -2
- package/dist/locales/it.json +11 -1
- package/dist/styles.css +1 -0
- package/esm/components/AccountForm/AccountForm.d.ts +1 -0
- package/esm/components/AgeVerificationModal/AgeVerificationModal.d.ts +1 -0
- package/esm/components/AttachmentLinkModal/AttachmentLinkModal.d.ts +1 -0
- package/esm/components/Auth/Auth.d.ts +1 -0
- package/esm/components/Avatar/AvatarView/AvatarComponent/Shadow/DynamicShadow.d.ts +1 -0
- package/esm/components/Avatar/AvatarView/AvatarComponent/components/FullbodyAvatar/fullbodyAvatar.d.ts +1 -0
- package/esm/components/Avatar/AvatarView/AvatarComponent/components/controllers/AnimationController.d.ts +38 -0
- package/esm/components/Avatar/AvatarView/AvatarComponent/components/controllers/AnimationController.js +177 -0
- package/esm/components/Avatar/AvatarView/AvatarComponent/components/controllers/AnimationController.js.map +1 -0
- package/esm/components/Avatar/AvatarView/AvatarComponent/components/halfbodyAvatar.d.ts +1 -0
- package/esm/components/Avatar/AvatarView/AvatarComponent/components/loader.d.ts +1 -0
- package/esm/components/Blob/Blob.d.ts +1 -0
- package/esm/components/BlockedMemoriBadge/BlockedMemoriBadge.d.ts +1 -0
- package/esm/components/Chat/Chat.d.ts +1 -0
- package/esm/components/Chat/Chat.js +5 -3
- package/esm/components/Chat/Chat.js.map +1 -1
- package/esm/components/ChatBubble/VirtualizedContent/VirtualizedContent.d.ts +7 -0
- package/esm/components/ChatBubble/VirtualizedContent/VirtualizedContent.js +67 -0
- package/esm/components/ChatBubble/VirtualizedContent/VirtualizedContent.js.map +1 -0
- package/esm/components/ChatHistoryDrawer/ChatHistory.css +321 -0
- package/esm/components/ChatHistoryDrawer/ChatHistory.d.ts +15 -0
- package/esm/components/ChatHistoryDrawer/ChatHistory.js +106 -0
- package/esm/components/ChatHistoryDrawer/ChatHistory.js.map +1 -0
- package/esm/components/CompletionProviderStatus/CompletionProviderStatus.d.ts +1 -0
- package/esm/components/CustomGLBModelViewer/ModelViewer.d.ts +1 -0
- package/esm/components/ExpertsDrawer/ExpertsDrawer.d.ts +1 -0
- package/esm/components/FeedbackButtons/FeedbackButtons.d.ts +1 -0
- package/esm/components/FilePreview/FilePreview.d.ts +1 -0
- package/esm/components/Header/Header.d.ts +2 -0
- package/esm/components/Header/Header.js +3 -2
- package/esm/components/Header/Header.js.map +1 -1
- package/esm/components/KnownFacts/KnownFacts.d.ts +1 -0
- package/esm/components/LoginDrawer/LoginDrawer.d.ts +1 -0
- package/esm/components/MemoriWidget/MemoriWidget.d.ts +2 -1
- package/esm/components/MemoriWidget/MemoriWidget.js +173 -21
- package/esm/components/MemoriWidget/MemoriWidget.js.map +1 -1
- package/esm/components/MicrophoneButton/MicrophoneButton.d.ts +1 -0
- package/esm/components/PositionDrawer/PositionDrawer.d.ts +1 -0
- package/esm/components/PoweredBy/PoweredBy.d.ts +1 -0
- package/esm/components/SettingsDrawer/SettingsDrawer.d.ts +1 -0
- package/esm/components/SignupForm/SignupForm.d.ts +1 -0
- package/esm/components/Snippet/Snippet.d.ts +1 -0
- package/esm/components/StartPanel/StartPanel.css +20 -21
- package/esm/components/StartPanel/StartPanel.js.map +1 -1
- package/esm/components/Typing/Typing.d.ts +1 -0
- package/esm/components/VenueWidget/VenueWidget.css +7 -0
- package/esm/components/VenueWidget/VenueWidget.d.ts +1 -0
- package/esm/components/VenueWidget/VenueWidget.js +1 -1
- package/esm/components/VenueWidget/VenueWidget.js.map +1 -1
- package/esm/components/WhyThisAnswer/WhyThisAnswer.d.ts +1 -0
- package/esm/components/icons/AI.d.ts +1 -0
- package/esm/components/icons/Alert.d.ts +1 -0
- package/esm/components/icons/Bug.d.ts +1 -0
- package/esm/components/icons/Chat.d.ts +6 -0
- package/esm/components/icons/Chat.js +4 -0
- package/esm/components/icons/Chat.js.map +1 -0
- package/esm/components/icons/ChevronLeft.d.ts +1 -0
- package/esm/components/icons/ChevronRight.d.ts +1 -0
- package/esm/components/icons/Clear.d.ts +1 -0
- package/esm/components/icons/Close.d.ts +1 -0
- package/esm/components/icons/Code.d.ts +1 -0
- package/esm/components/icons/Copy.d.ts +1 -0
- package/esm/components/icons/DeepThought.d.ts +1 -0
- package/esm/components/icons/Delete.d.ts +1 -0
- package/esm/components/icons/Download.d.ts +1 -0
- package/esm/components/icons/Edit.d.ts +1 -0
- package/esm/components/icons/Expand.d.ts +1 -0
- package/esm/components/icons/Eye.d.ts +1 -0
- package/esm/components/icons/EyeInvisible.d.ts +1 -0
- package/esm/components/icons/Facebook.d.ts +1 -0
- package/esm/components/icons/Feedback.d.ts +1 -0
- package/esm/components/icons/File.d.ts +1 -0
- package/esm/components/icons/FileExcel.d.ts +1 -0
- package/esm/components/icons/FilePdf.d.ts +1 -0
- package/esm/components/icons/FileWord.d.ts +1 -0
- package/esm/components/icons/Fullscreen.d.ts +1 -0
- package/esm/components/icons/FullscreenExit.d.ts +1 -0
- package/esm/components/icons/Group.d.ts +1 -0
- package/esm/components/icons/History.d.ts +7 -0
- package/esm/components/icons/History.js +4 -0
- package/esm/components/icons/History.js.map +1 -0
- package/esm/components/icons/Info.d.ts +1 -0
- package/esm/components/icons/Link.d.ts +1 -0
- package/esm/components/icons/Linkedin.d.ts +1 -0
- package/esm/components/icons/Loading.d.ts +1 -0
- package/esm/components/icons/Mail.d.ts +1 -0
- package/esm/components/icons/MapMarker.d.ts +1 -0
- package/esm/components/icons/Message.d.ts +1 -0
- package/esm/components/icons/Microphone.d.ts +1 -0
- package/esm/components/icons/Minus.d.ts +1 -0
- package/esm/components/icons/MinusCircle.d.ts +1 -0
- package/esm/components/icons/PaperClip.d.ts +1 -0
- package/esm/components/icons/Picture.d.ts +1 -0
- package/esm/components/icons/Plus.d.ts +1 -0
- package/esm/components/icons/QuestionHelp.d.ts +1 -0
- package/esm/components/icons/Refresh.d.ts +1 -0
- package/esm/components/icons/SelectIcon.d.ts +1 -0
- package/esm/components/icons/Send.d.ts +1 -0
- package/esm/components/icons/Setting.d.ts +1 -0
- package/esm/components/icons/Share.d.ts +1 -0
- package/esm/components/icons/Sound.d.ts +1 -0
- package/esm/components/icons/SoundDeactivated.d.ts +1 -0
- package/esm/components/icons/Telegram.d.ts +1 -0
- package/esm/components/icons/ThumbDown.d.ts +1 -0
- package/esm/components/icons/ThumbUp.d.ts +1 -0
- package/esm/components/icons/Translation.d.ts +1 -0
- package/esm/components/icons/Twitter.d.ts +1 -0
- package/esm/components/icons/User.d.ts +1 -0
- package/esm/components/icons/Warning.d.ts +1 -0
- package/esm/components/icons/WhatsApp.d.ts +1 -0
- package/esm/components/ui/Card.css +4 -0
- package/esm/components/ui/Card.js +3 -2
- package/esm/components/ui/Card.js.map +1 -1
- package/esm/components/ui/Select.d.ts +1 -0
- package/esm/helpers/message.js +1 -4
- package/esm/helpers/message.js.map +1 -1
- package/esm/helpers/utils.d.ts +1 -0
- package/esm/helpers/utils.js +16 -0
- package/esm/helpers/utils.js.map +1 -1
- package/esm/index.d.ts +1 -0
- package/esm/index.js +2 -2
- package/esm/index.js.map +1 -1
- package/esm/locales/de.json +11 -1
- package/esm/locales/en.json +11 -1
- package/esm/locales/es.json +11 -1
- package/esm/locales/fr.json +14 -2
- package/esm/locales/it.json +11 -1
- package/esm/styles.css +1 -0
- package/package.json +1 -1
- package/src/components/Chat/Chat.tsx +5 -2
- package/src/components/ChatHistoryDrawer/ChatHistory.css +321 -0
- package/src/components/ChatHistoryDrawer/ChatHistory.stories.tsx +290 -0
- package/src/components/ChatHistoryDrawer/ChatHistory.test.tsx +91 -0
- package/src/components/ChatHistoryDrawer/ChatHistory.tsx +369 -0
- package/src/components/ChatHistoryDrawer/__snapshots__/ChatHistory.test.tsx.snap +27 -0
- package/src/components/Header/Header.test.tsx +16 -1
- package/src/components/Header/Header.tsx +18 -0
- package/src/components/Header/__snapshots__/Header.test.tsx.snap +140 -0
- package/src/components/MemoriWidget/MemoriWidget.tsx +249 -16
- package/src/components/StartPanel/StartPanel.css +20 -21
- package/src/components/StartPanel/StartPanel.tsx +1 -0
- package/src/components/VenueWidget/VenueWidget.css +7 -0
- package/src/components/VenueWidget/VenueWidget.tsx +4 -4
- package/src/components/icons/Chat.tsx +30 -0
- package/src/components/icons/History.tsx +33 -0
- package/src/components/ui/Card.css +4 -0
- package/src/components/ui/Card.tsx +2 -1
- package/src/helpers/message.ts +0 -2
- package/src/helpers/utils.ts +23 -0
- package/src/index.stories.tsx +36 -9
- package/src/index.tsx +3 -0
- package/src/locales/de.json +11 -1
- package/src/locales/en.json +11 -1
- package/src/locales/es.json +11 -1
- package/src/locales/fr.json +14 -2
- package/src/locales/it.json +11 -1
- package/src/styles.css +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chat.js","sourceRoot":"","sources":["../../../src/components/Chat/Chat.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,IAAI,EAAY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ime";
|
|
2
|
+
import { useEffect, useState, useRef } from 'react';
|
|
3
|
+
const VirtualizedContent = ({ content, className = '' }) => {
|
|
4
|
+
const [processedContent, setProcessedContent] = useState('');
|
|
5
|
+
const containerRef = useRef(null);
|
|
6
|
+
const [height, setHeight] = useState(500);
|
|
7
|
+
const [loading, setLoading] = useState(true);
|
|
8
|
+
const [mounted, setMounted] = useState(false);
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
setMounted(true);
|
|
11
|
+
return () => setMounted(false);
|
|
12
|
+
}, []);
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
if (!content) {
|
|
15
|
+
setProcessedContent('');
|
|
16
|
+
setLoading(false);
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
setLoading(true);
|
|
20
|
+
const processContent = () => {
|
|
21
|
+
try {
|
|
22
|
+
if (content.includes('<')) {
|
|
23
|
+
return `<div class="html-content">${content}</div>`;
|
|
24
|
+
}
|
|
25
|
+
return content
|
|
26
|
+
.split(/\n{2,}/)
|
|
27
|
+
.filter(para => para.trim().length > 0)
|
|
28
|
+
.map(para => `<p>${para.trim()}</p>`)
|
|
29
|
+
.join('');
|
|
30
|
+
}
|
|
31
|
+
catch (error) {
|
|
32
|
+
console.error('Error processing content:', error);
|
|
33
|
+
return `<p>${content}</p>`;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
setTimeout(() => {
|
|
37
|
+
if (mounted) {
|
|
38
|
+
const processed = processContent();
|
|
39
|
+
setProcessedContent(processed);
|
|
40
|
+
setLoading(false);
|
|
41
|
+
}
|
|
42
|
+
}, 0);
|
|
43
|
+
}, [content, mounted]);
|
|
44
|
+
useEffect(() => {
|
|
45
|
+
setHeight(Math.min(500, window.innerHeight * 0.6));
|
|
46
|
+
if (containerRef.current) {
|
|
47
|
+
const resizeObserver = new ResizeObserver(() => {
|
|
48
|
+
setHeight(Math.min(500, window.innerHeight * 0.6));
|
|
49
|
+
});
|
|
50
|
+
resizeObserver.observe(containerRef.current);
|
|
51
|
+
return () => {
|
|
52
|
+
if (containerRef.current) {
|
|
53
|
+
resizeObserver.unobserve(containerRef.current);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
}, []);
|
|
58
|
+
if (loading) {
|
|
59
|
+
return _jsx("div", { className: "virtualized-content-loading", children: "Processing content..." });
|
|
60
|
+
}
|
|
61
|
+
if (!processedContent) {
|
|
62
|
+
return _jsx("div", { className: "virtualized-content-empty", children: "No content to display" });
|
|
63
|
+
}
|
|
64
|
+
return (_jsx("div", { ref: containerRef, className: `virtualized-content-container ${className}`, style: { height: height + 'px', width: '100%', position: 'relative' }, children: _jsx("div", { className: "virtualized-content", style: { height: height, width: '100%', overflow: 'auto' }, dangerouslySetInnerHTML: { __html: processedContent } }) }));
|
|
65
|
+
};
|
|
66
|
+
export default VirtualizedContent;
|
|
67
|
+
//# sourceMappingURL=VirtualizedContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VirtualizedContent.js","sourceRoot":"","sources":["../../../../src/components/ChatBubble/VirtualizedContent/VirtualizedContent.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAY3D,MAAM,kBAAkB,GAAoB,CAAC,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE,EAAE;IAC1E,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,QAAQ,CAAS,EAAE,CAAC,CAAC;IACrE,MAAM,YAAY,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAClD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;IAC1C,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC7C,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CA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1
|
+
.memori-chat-history-drawer--card {
|
|
2
|
+
max-height: 60vh;
|
|
3
|
+
border: 1px solid var(--memori-border);
|
|
4
|
+
border-radius: 0.75rem;
|
|
5
|
+
overflow-y: auto;
|
|
6
|
+
transition: all 0.2s ease-in-out;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.memori-chat-history-drawer--card:hover {
|
|
10
|
+
border-color: var(--memori-primary-light);
|
|
11
|
+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.memori-chat-history-drawer--content {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
gap: 1rem;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.memori-chat-history-drawer--card--header {
|
|
21
|
+
position: sticky;
|
|
22
|
+
z-index: 100;
|
|
23
|
+
top: 0px;
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: row;
|
|
26
|
+
align-items: center;
|
|
27
|
+
padding: 0px;
|
|
28
|
+
border-radius: 0.75rem 0.75rem 0 0;
|
|
29
|
+
background-color: #ffffff;
|
|
30
|
+
gap: 1rem;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.memori-chat-history-drawer--card--header--content {
|
|
34
|
+
display: flex;
|
|
35
|
+
width: 100%;
|
|
36
|
+
flex-direction: row;
|
|
37
|
+
align-items: center;
|
|
38
|
+
gap: 1rem;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.memori-chat-history-drawer--card--header--info {
|
|
42
|
+
display: flex;
|
|
43
|
+
width: 100%;
|
|
44
|
+
flex-direction: row;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: space-between;
|
|
47
|
+
gap: 1rem;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.memori-chat-history-drawer--card--header--icon-wrapper {
|
|
51
|
+
display: flex;
|
|
52
|
+
width: 2.5rem;
|
|
53
|
+
height: 2.5rem;
|
|
54
|
+
align-items: center;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
border-radius: 0.5rem;
|
|
57
|
+
background-color: var(--memori-primary-light);
|
|
58
|
+
transition: all 0.2s ease-in-out;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.memori-chat-history-drawer--card:hover .memori-chat-history-drawer--card--header--icon-wrapper {
|
|
62
|
+
transform: scale(1.05);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.memori-chat-history-drawer--card--header--icon {
|
|
66
|
+
color: var(--memori-primary);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.memori-chat-history-drawer--card--header--title-wrapper {
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
gap: 0.5rem;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.memori-chat-history-drawer--card--header--title {
|
|
76
|
+
margin: 0;
|
|
77
|
+
color: var(--memori-color-text);
|
|
78
|
+
font-weight: 600;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.memori-chat-history-drawer--card--header--badge {
|
|
82
|
+
padding: 0.25rem 0.5rem;
|
|
83
|
+
border-radius: 9999px;
|
|
84
|
+
background-color: var(--memori-primary-light);
|
|
85
|
+
color: var(--memori-primary);
|
|
86
|
+
font-size: 0.75rem;
|
|
87
|
+
font-weight: 500;
|
|
88
|
+
letter-spacing: 0.025em;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.memori-chat-history-drawer--card--header--meta {
|
|
92
|
+
display: flex;
|
|
93
|
+
align-items: center;
|
|
94
|
+
margin-top: 0.25rem;
|
|
95
|
+
color: var(--memori-color-text-secondary);
|
|
96
|
+
font-size: 0.875rem;
|
|
97
|
+
gap: 1rem;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.memori-chat-history-drawer--card--header--meta--messages,
|
|
101
|
+
.memori-chat-history-drawer--card--header--meta--time {
|
|
102
|
+
display: flex;
|
|
103
|
+
align-items: center;
|
|
104
|
+
gap: 0.25rem;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.memori-chat-history-drawer--card--content {
|
|
108
|
+
display: flex;
|
|
109
|
+
flex-direction: column;
|
|
110
|
+
padding: 1rem;
|
|
111
|
+
border-top: 1px solid var(--memori-border);
|
|
112
|
+
background-color: var(--memori-background-alt);
|
|
113
|
+
gap: 1rem;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.memori-chat-history-drawer--card--content--messages {
|
|
117
|
+
display: flex;
|
|
118
|
+
flex-direction: column;
|
|
119
|
+
gap: 1rem;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.memori-chat-history-drawer--card--content--messages .memori-chat--cover {
|
|
123
|
+
display: none;
|
|
124
|
+
}
|
|
125
|
+
.memori-chat-history-drawer--card--content--messages .memori-chat--content {
|
|
126
|
+
padding: 0 !important;
|
|
127
|
+
mask-image: none !important;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.memori-chat-history-drawer--card--content--messages--user {
|
|
131
|
+
display: flex;
|
|
132
|
+
flex-direction: row;
|
|
133
|
+
justify-content: flex-start;
|
|
134
|
+
gap: 1rem;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.memori-chat-history-drawer--card--content--messages--assistant {
|
|
138
|
+
display: flex;
|
|
139
|
+
flex-direction: row;
|
|
140
|
+
justify-content: flex-end;
|
|
141
|
+
gap: 1rem;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.memori-chat-history-drawer--card--content--actions {
|
|
145
|
+
position: sticky;
|
|
146
|
+
bottom: 0;
|
|
147
|
+
display: flex;
|
|
148
|
+
width: 100%;
|
|
149
|
+
justify-content: center;
|
|
150
|
+
padding: 1rem;
|
|
151
|
+
border-top: 1px solid var(--memori-border);
|
|
152
|
+
margin-top: 1rem;
|
|
153
|
+
background-color: var(--memori-background-alt);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.memori-chat-history-drawer--card--content--resume-button {
|
|
157
|
+
padding: 0.75rem 1.5rem;
|
|
158
|
+
border-radius: 0.5rem;
|
|
159
|
+
-webkit-backdrop-filter: blur(10px);
|
|
160
|
+
backdrop-filter: blur(10px);
|
|
161
|
+
background-color: rgba(255, 255, 255, 0.6);
|
|
162
|
+
color: var(--memori-primary);
|
|
163
|
+
font-weight: 500;
|
|
164
|
+
transition: all 0.2s ease-in-out;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.memori-chat-history-drawer--card--content--resume-button:hover {
|
|
168
|
+
background-color: var(--memori-primary);
|
|
169
|
+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.27), 0 2px 4px -1px rgba(0, 0, 0, 0.35);
|
|
170
|
+
color: var(--memori-primary-text);
|
|
171
|
+
transform: translateY(-1px);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.memori-chat-history-drawer--card--content--resume-button--content {
|
|
175
|
+
display: flex;
|
|
176
|
+
align-items: center;
|
|
177
|
+
gap: 0.5rem;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.memori-chat-history-drawer--card--content--resume-button--icon {
|
|
181
|
+
color: var(--memori-primary);
|
|
182
|
+
transition: transform 0.2s ease-in-out;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.memori-chat-history-drawer--card--content--resume-button:hover
|
|
186
|
+
.memori-chat-history-drawer--card--content--resume-button--icon {
|
|
187
|
+
color: #fff;
|
|
188
|
+
transform: scale(1.1);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.memori-chat-history-drawer--card--content--resume-button--text {
|
|
192
|
+
font-weight: 500;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/* Loading state */
|
|
196
|
+
.memori-chat-history-drawer--loading {
|
|
197
|
+
display: flex;
|
|
198
|
+
min-height: 80px;
|
|
199
|
+
flex-direction: column;
|
|
200
|
+
align-items: center;
|
|
201
|
+
justify-content: center;
|
|
202
|
+
padding: 2rem;
|
|
203
|
+
overflow-y: hidden;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.memori-chat-history-drawer--loading > div {
|
|
207
|
+
overflow-y: hidden !important;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.memori-chat-history-drawer--loading--spinner {
|
|
211
|
+
min-height: 80px !important;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.memori-chat-history-drawer--loading--text {
|
|
215
|
+
margin-top: 1rem;
|
|
216
|
+
color: var(--memori-color-text-secondary);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.memori-chat-history-drawer--card--header--meta--icon {
|
|
220
|
+
width: 1.25rem;
|
|
221
|
+
height: 1.25rem;
|
|
222
|
+
color: var(--memori-color-text-secondary);
|
|
223
|
+
}
|
|
224
|
+
/* Empty state */
|
|
225
|
+
.memori-chat-history-drawer--empty {
|
|
226
|
+
padding: 3rem 0;
|
|
227
|
+
text-align: center;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.memori-chat-history-drawer--empty--icon {
|
|
231
|
+
width: 3rem;
|
|
232
|
+
height: 3rem;
|
|
233
|
+
margin: 0 auto;
|
|
234
|
+
color: var(--memori-color-text-secondary);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.memori-chat-history-drawer--empty--text {
|
|
238
|
+
margin-top: 1rem;
|
|
239
|
+
color: var(--memori-color-text-secondary);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/* Error state */
|
|
243
|
+
.memori-chat-history-drawer--error {
|
|
244
|
+
padding: 1rem;
|
|
245
|
+
border-radius: 0.5rem;
|
|
246
|
+
background-color: var(--memori-color-error-light);
|
|
247
|
+
color: var(--memori-color-error);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/* No results state */
|
|
251
|
+
.memori-chat-history-drawer--no-results {
|
|
252
|
+
padding: 3rem 0;
|
|
253
|
+
color: var(--memori-color-text-secondary);
|
|
254
|
+
text-align: center;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/* Toolbar */
|
|
258
|
+
.memori-chat-history-drawer--toolbar {
|
|
259
|
+
display: flex;
|
|
260
|
+
margin-bottom: 1.5rem;
|
|
261
|
+
gap: 1rem;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.memori-chat-history-drawer--toolbar--search {
|
|
265
|
+
position: relative;
|
|
266
|
+
flex: 1;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.memori-chat-history-drawer--toolbar--search--input {
|
|
270
|
+
width: 100%;
|
|
271
|
+
padding: 0.5rem 1rem 0.5rem 2.5rem;
|
|
272
|
+
border: 1px solid var(--memori-border);
|
|
273
|
+
border-radius: 0.5rem;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.memori-chat-history-drawer--toolbar--search--input:focus {
|
|
277
|
+
border-color: var(--memori-primary);
|
|
278
|
+
box-shadow: 0 0 0 2px var(--memori-primary-light);
|
|
279
|
+
outline: none;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.memori-chat-history-drawer--toolbar--search--icon {
|
|
283
|
+
position: absolute;
|
|
284
|
+
top: 50%;
|
|
285
|
+
left: 0.75rem;
|
|
286
|
+
color: var(--memori-color-text-secondary);
|
|
287
|
+
transform: translateY(-50%);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.memori-chat-history-drawer--toolbar--search--icon svg {
|
|
291
|
+
width: 1.25rem;
|
|
292
|
+
height: 1.25rem;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.memori-chat-history-drawer--toolbar--sort-button {
|
|
296
|
+
color: var(--memori-primary);
|
|
297
|
+
white-space: nowrap;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/* Pagination */
|
|
301
|
+
.memori-chat-history-drawer--pagination {
|
|
302
|
+
display: flex;
|
|
303
|
+
align-items: center;
|
|
304
|
+
justify-content: space-between;
|
|
305
|
+
margin-top: 1.5rem;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.memori-chat-history-drawer--pagination--button {
|
|
309
|
+
width: 6rem;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.memori-chat-history-drawer--pagination--info {
|
|
313
|
+
color: var(--memori-primary);
|
|
314
|
+
font-size: 0.875rem;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/* Card selected state */
|
|
318
|
+
.memori-chat-history-drawer--card--selected {
|
|
319
|
+
border-color: var(--memori-primary);
|
|
320
|
+
box-shadow: 0 0 0 2px var(--memori-primary-light);
|
|
321
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import memoriApiClient from '@memori.ai/memori-api-client';
|
|
3
|
+
import { ChatLog, Memori } from '@memori.ai/memori-api-client/dist/types';
|
|
4
|
+
export interface Props {
|
|
5
|
+
open: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
apiClient: ReturnType<typeof memoriApiClient>;
|
|
8
|
+
sessionId: string;
|
|
9
|
+
memori: Memori;
|
|
10
|
+
resumeSession: (chatLog: ChatLog) => void;
|
|
11
|
+
baseUrl: string;
|
|
12
|
+
apiUrl: string;
|
|
13
|
+
}
|
|
14
|
+
declare const ChatHistoryDrawer: ({ open, onClose, apiClient, sessionId, memori, resumeSession, baseUrl, apiUrl, }: Props) => JSX.Element;
|
|
15
|
+
export default ChatHistoryDrawer;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import Drawer from '../ui/Drawer';
|
|
3
|
+
import { useTranslation } from 'react-i18next';
|
|
4
|
+
import { useEffect, useMemo, useState, useCallback } from 'react';
|
|
5
|
+
import Card from '../ui/Card';
|
|
6
|
+
import Button from '../ui/Button';
|
|
7
|
+
import ChatRound from '../icons/Chat';
|
|
8
|
+
import { truncateMessage } from '../../helpers/utils';
|
|
9
|
+
import { Dialog } from '@headlessui/react';
|
|
10
|
+
import debounce from 'lodash/debounce';
|
|
11
|
+
import Chat from '../Chat/Chat';
|
|
12
|
+
import Spin from '../ui/Spin';
|
|
13
|
+
const ITEMS_PER_PAGE = 8;
|
|
14
|
+
const DEBOUNCE_DELAY = 300;
|
|
15
|
+
const ChatHistoryDrawer = ({ open, onClose, apiClient, sessionId, memori, resumeSession, baseUrl, apiUrl, }) => {
|
|
16
|
+
const { t } = useTranslation();
|
|
17
|
+
const { getChatLogsByUser, getSessionChatLogs } = apiClient.chatLogs;
|
|
18
|
+
const [chatLogs, setChatLogs] = useState([]);
|
|
19
|
+
const [selectedChatLog, setSelectedChatLog] = useState(null);
|
|
20
|
+
const [currentPage, setCurrentPage] = useState(1);
|
|
21
|
+
const [searchText, setSearchText] = useState('');
|
|
22
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
23
|
+
const [error, setError] = useState(null);
|
|
24
|
+
const [sortOrder, setSortOrder] = useState('desc');
|
|
25
|
+
const fetchChatLogs = useCallback(async () => {
|
|
26
|
+
setIsLoading(true);
|
|
27
|
+
setError(null);
|
|
28
|
+
try {
|
|
29
|
+
const res = await getChatLogsByUser(sessionId);
|
|
30
|
+
setChatLogs(res.chatLogs.sort((a, b) => {
|
|
31
|
+
const dateA = Math.max(...a.lines.map(l => new Date(l.timestamp).getTime()));
|
|
32
|
+
const dateB = Math.max(...b.lines.map(l => new Date(l.timestamp).getTime()));
|
|
33
|
+
return sortOrder === 'desc' ? dateB - dateA : dateA - dateB;
|
|
34
|
+
}));
|
|
35
|
+
}
|
|
36
|
+
catch (err) {
|
|
37
|
+
setError(t('errorFetchingSession') || 'Error loading chat history');
|
|
38
|
+
console.error('Error fetching chat logs:', err);
|
|
39
|
+
}
|
|
40
|
+
finally {
|
|
41
|
+
setIsLoading(false);
|
|
42
|
+
}
|
|
43
|
+
}, [sessionId, sortOrder]);
|
|
44
|
+
useEffect(() => {
|
|
45
|
+
if (open)
|
|
46
|
+
fetchChatLogs();
|
|
47
|
+
}, [open, fetchChatLogs]);
|
|
48
|
+
const debouncedSearch = useMemo(() => debounce((value) => setSearchText(value), DEBOUNCE_DELAY), []);
|
|
49
|
+
const filteredChatLogs = useMemo(() => {
|
|
50
|
+
return chatLogs.filter(c => c.lines.some(l => l.text.toLowerCase().includes(searchText.toLowerCase())) &&
|
|
51
|
+
c.lines.length > 1);
|
|
52
|
+
}, [chatLogs, searchText]);
|
|
53
|
+
const totalPages = Math.ceil(filteredChatLogs.length / ITEMS_PER_PAGE);
|
|
54
|
+
const paginatedChatLogs = useMemo(() => {
|
|
55
|
+
const startIndex = (currentPage - 1) * ITEMS_PER_PAGE;
|
|
56
|
+
return filteredChatLogs.slice(startIndex, startIndex + ITEMS_PER_PAGE);
|
|
57
|
+
}, [filteredChatLogs, currentPage]);
|
|
58
|
+
const handleResumeChat = async () => {
|
|
59
|
+
if (selectedChatLog) {
|
|
60
|
+
resumeSession(selectedChatLog);
|
|
61
|
+
onClose();
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
const formatDate = (timestamp) => {
|
|
65
|
+
return new Intl.DateTimeFormat(navigator.language, {
|
|
66
|
+
dateStyle: 'medium',
|
|
67
|
+
timeStyle: 'short',
|
|
68
|
+
}).format(new Date(timestamp));
|
|
69
|
+
};
|
|
70
|
+
const renderContent = () => {
|
|
71
|
+
if (isLoading) {
|
|
72
|
+
return (_jsxs("div", { className: "memori-chat-history-drawer--loading", children: [_jsx(Spin, { spinning: true, primary: true, className: "memori-chat-history-drawer--loading--spinner" }), _jsx("p", { className: "memori-chat-history-drawer--loading--text", children: t('widget.loadingChatHistory') || 'Loading chat history...' })] }));
|
|
73
|
+
}
|
|
74
|
+
if (error) {
|
|
75
|
+
return (_jsx("div", { className: "memori-chat-history-drawer--error", children: _jsx("p", { children: error }) }));
|
|
76
|
+
}
|
|
77
|
+
if (!chatLogs.length) {
|
|
78
|
+
return (_jsxs("div", { className: "memori-chat-history-drawer--empty", children: [_jsx(ChatRound, { className: "memori-chat-history-drawer--empty--icon" }), _jsx("p", { className: "memori-chat-history-drawer--empty--text", children: t('widget.noChatHistoryAvailable') || 'No chat history available' })] }));
|
|
79
|
+
}
|
|
80
|
+
if (filteredChatLogs.length === 0) {
|
|
81
|
+
return (_jsx("div", { className: "memori-chat-history-drawer--no-results", children: _jsx("p", { children: t('widget.noResultsFound', { searchText }) || `No results found for "${searchText}"` }) }));
|
|
82
|
+
}
|
|
83
|
+
return (_jsxs(_Fragment, { children: [_jsx("ul", { className: "memori-chat-history-drawer--list", children: paginatedChatLogs.map((chatLog) => {
|
|
84
|
+
const lastMessageDate = Math.max(...chatLog.lines.map(line => new Date(line.timestamp).getTime()));
|
|
85
|
+
return (_jsx(Card, { hoverable: true, onClick: async () => {
|
|
86
|
+
if ((selectedChatLog === null || selectedChatLog === void 0 ? void 0 : selectedChatLog.chatLogID) === chatLog.chatLogID) {
|
|
87
|
+
setSelectedChatLog(null);
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
setSelectedChatLog(chatLog);
|
|
91
|
+
}, className: `memori-chat-history-drawer--card ${(selectedChatLog === null || selectedChatLog === void 0 ? void 0 : selectedChatLog.chatLogID) === chatLog.chatLogID ? 'memori-chat-history-drawer--card--selected' : ''}`, children: _jsxs(_Fragment, { children: [_jsx("div", { className: "memori-chat-history-drawer--card--header", children: _jsxs("div", { className: "memori-chat-history-drawer--card--header--content", children: [_jsx("div", { className: "memori-chat-history-drawer--card--header--icon-wrapper", children: _jsx(ChatRound, { className: "memori-chat-history-drawer--card--header--icon" }) }), _jsxs("div", { className: "memori-chat-history-drawer--card--header--info", children: [_jsxs("div", { className: "memori-chat-history-drawer--card--header--title-wrapper", children: [_jsx(Dialog.Title, { as: "h3", className: "memori-chat-history-drawer--card--header--title", children: 'Chat-' + chatLog.chatLogID.substring(0, 4) }), chatLog.boardOfExperts && (_jsx("div", { className: "memori-chat-history-drawer--card--header--badge", children: "BOE" }))] }), _jsxs("div", { className: "memori-chat-history-drawer--card--header--meta", children: [chatLog.lines.some(line => line.media && line.media.filter(m => m.mimeType !== 'text/html' && m.mimeType !== 'text/plain').length > 0) && (_jsxs("span", { className: "memori-chat-history-drawer--card--header--meta--messages", children: [_jsx("svg", { className: "memori-chat-history-drawer--card--header--meta--icon", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z" }) }), chatLog.lines.reduce((acc, line) => { var _a; return acc + (((_a = line.media) === null || _a === void 0 ? void 0 : _a.filter(m => m.mimeType !== 'text/html' && m.mimeType !== 'text/plain').length) || 0); }, 0)] })), _jsxs("span", { className: "memori-chat-history-drawer--card--header--meta--messages", children: [_jsx("svg", { className: "memori-chat-history-drawer--card--header--meta--icon", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z" }) }), chatLog.lines.length] }), _jsxs("time", { className: "memori-chat-history-drawer--card--header--meta--time", dateTime: new Date(lastMessageDate).toISOString(), children: [_jsx("svg", { className: "memori-chat-history-drawer--card--header--meta--icon", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" }) }), formatDate(new Date(lastMessageDate).toISOString())] })] })] })] }) }), (selectedChatLog === null || selectedChatLog === void 0 ? void 0 : selectedChatLog.chatLogID) === chatLog.chatLogID && (_jsxs("div", { className: "memori-chat-history-drawer--card--content", children: [_jsx("div", { className: "memori-chat-history-drawer--card--content--messages", children: _jsx(Chat, { baseUrl: baseUrl, apiUrl: apiUrl, memoriTyping: false, showTypingText: false, showAIicon: true, showTranslationOriginal: false, showWhyThisAnswer: false, showCopyButton: false, showInputs: false, history: chatLog.lines.map(line => ({
|
|
92
|
+
text: truncateMessage(line.text),
|
|
93
|
+
contextVars: line.contextVars,
|
|
94
|
+
media: line.media,
|
|
95
|
+
fromUser: line.inbound,
|
|
96
|
+
timestamp: line.timestamp,
|
|
97
|
+
})), memori: memori, sessionID: sessionId, setDialogState: () => { }, pushMessage: () => { }, simulateUserPrompt: () => { }, setSendOnEnter: () => { }, attachmentsMenuOpen: undefined, setAttachmentsMenuOpen: () => { }, userMessage: '', onChangeUserMessage: () => { }, sendMessage: () => { }, startListening: () => { }, stopListening: () => { }, resetTranscript: () => { }, listening: false, setEnableFocusChatInput: () => { }, stopAudio: () => { }, isHistoryView: true }, `${chatLog.lines[0].text}-${chatLog.lines[0].timestamp}`) }), _jsx("div", { className: "memori-chat-history-drawer--card--content--actions", children: _jsx(Button, { className: "memori-chat-history-drawer--card--content--resume-button", primary: true, onClick: handleResumeChat, children: _jsxs("div", { className: "memori-chat-history-drawer--card--content--resume-button--content", children: [_jsx(ChatRound, { className: "memori-chat-history-drawer--card--content--resume-button--icon" }), _jsx("span", { className: "memori-chat-history-drawer--card--content--resume-button--text", children: t('write_and_speak.resumeButton') || 'Resume chat' })] }) }) })] }))] }) }, chatLog.chatLogID));
|
|
98
|
+
}) }), totalPages > 1 && (_jsxs("div", { className: "memori-chat-history-drawer--pagination", children: [_jsx(Button, { primary: true, onClick: () => setCurrentPage(p => Math.max(1, p - 1)), disabled: currentPage === 1, className: "memori-chat-history-drawer--pagination--button", children: t('previous') || 'Previous' }), _jsx("span", { className: "memori-chat-history-drawer--pagination--info", children: t('write_and_speak.page', { current: currentPage, total: totalPages }) }), _jsx(Button, { primary: true, onClick: () => setCurrentPage(p => Math.min(totalPages, p + 1)), disabled: currentPage === totalPages, className: "memori-chat-history-drawer--pagination--button", children: t('next') || 'Next' })] }))] }));
|
|
99
|
+
};
|
|
100
|
+
return (_jsx(Drawer, { className: "memori-chat-history-drawer", open: open, onClose: onClose, title: t('widget.chatHistory') || 'Chat History', description: t('widget.chatHistoryDescription'), children: _jsxs("div", { className: "memori-chat-history-drawer--content", children: [_jsxs("div", { className: "memori-chat-history-drawer--toolbar", children: [_jsxs("div", { className: "memori-chat-history-drawer--toolbar--search", children: [_jsx("input", { type: "search", className: "memori-chat-history-drawer--toolbar--search--input", placeholder: t('search') || 'Search in chat history...', onChange: (e) => debouncedSearch(e.target.value) }), _jsx("span", { className: "memori-chat-history-drawer--toolbar--search--icon", children: _jsx("svg", { fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" }) }) })] }), _jsx(Button, { onClick: () => {
|
|
101
|
+
setSortOrder(order => order === 'asc' ? 'desc' : 'asc');
|
|
102
|
+
setCurrentPage(1);
|
|
103
|
+
}, className: "memori-chat-history-drawer--toolbar--sort-button", children: sortOrder === 'desc' ? t('write_and_speak.latestFirst') : t('write_and_speak.oldestFirst') })] }), renderContent()] }) }));
|
|
104
|
+
};
|
|
105
|
+
export default ChatHistoryDrawer;
|
|
106
|
+
//# sourceMappingURL=ChatHistory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatHistory.js","sourceRoot":"","sources":["../../../src/components/ChatHistoryDrawer/ChatHistory.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAG/C,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAe,MAAM,OAAO,CAAC;AAU/E,OAAO,IAAI,MAAM,YAAY,CAAC;AAE9B,OAAO,MAAM,MAAM,cAAc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,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,6BAA6B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,6BAA6B,CAAC,GACpF,IACL,EACL,aAAa,EAAE,IACZ,GACC,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -8,6 +8,7 @@ export interface Props {
|
|
|
8
8
|
position?: Venue;
|
|
9
9
|
setShowPositionDrawer: (show: boolean) => void;
|
|
10
10
|
setShowSettingsDrawer: (show: boolean) => void;
|
|
11
|
+
setShowChatHistoryDrawer: (show: boolean) => void;
|
|
11
12
|
setShowKnownFactsDrawer: (show: boolean) => void;
|
|
12
13
|
setShowExpertsDrawer: (show: boolean) => void;
|
|
13
14
|
enableAudio?: boolean;
|
|
@@ -16,6 +17,7 @@ export interface Props {
|
|
|
16
17
|
hasUserActivatedSpeak?: boolean;
|
|
17
18
|
showShare?: boolean;
|
|
18
19
|
showSettings?: boolean;
|
|
20
|
+
showChatHistory?: boolean;
|
|
19
21
|
showSpeaker?: boolean;
|
|
20
22
|
showReload?: boolean;
|
|
21
23
|
showClear?: boolean;
|