@memori.ai/memori-react 7.28.1 → 7.29.1
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 +53 -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 +324 -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 +24 -17
- package/dist/locales/en.json +12 -5
- package/dist/locales/es.json +18 -11
- package/dist/locales/fr.json +49 -31
- package/dist/locales/it.json +17 -6
- 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 +324 -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 +24 -17
- package/esm/locales/en.json +12 -5
- package/esm/locales/es.json +18 -11
- package/esm/locales/fr.json +49 -31
- package/esm/locales/it.json +17 -6
- 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 +324 -0
- package/src/components/ChatHistoryDrawer/ChatHistory.scss +41 -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 +393 -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 +24 -17
- package/src/locales/en.json +12 -5
- package/src/locales/es.json +18 -11
- package/src/locales/fr.json +49 -31
- package/src/locales/it.json +17 -6
- package/src/styles.css +1 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as React from "react"
|
|
2
|
+
const History = ({
|
|
3
|
+
className,
|
|
4
|
+
title,
|
|
5
|
+
disabled,
|
|
6
|
+
}: {
|
|
7
|
+
className?: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}) => (
|
|
11
|
+
<svg
|
|
12
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
13
|
+
width={800}
|
|
14
|
+
height={800}
|
|
15
|
+
fill="none"
|
|
16
|
+
viewBox="0 0 24 24"
|
|
17
|
+
className={className}
|
|
18
|
+
aria-label={title}
|
|
19
|
+
>
|
|
20
|
+
<path
|
|
21
|
+
stroke={disabled ? '#000000' : '#ffff'}
|
|
22
|
+
strokeLinecap="round"
|
|
23
|
+
strokeLinejoin="round"
|
|
24
|
+
strokeWidth={2}
|
|
25
|
+
d="M12 8v4l2.5 2.5"
|
|
26
|
+
/>
|
|
27
|
+
<path
|
|
28
|
+
fill={disabled ? '#000000' : '#ffff'}
|
|
29
|
+
d="m5.604 5.604-.53-.53.53.53ZM4.338 6.871l-.75.003a.75.75 0 0 0 .746.747l.004-.75Zm2.542.762a.75.75 0 1 0 .007-1.5l-.007 1.5ZM5.075 4.321a.75.75 0 0 0-1.5.008l1.5-.008ZM3.75 12a.75.75 0 0 0-1.5 0h1.5Zm13.125 8.445a.75.75 0 1 0-.75-1.298l.75 1.298Zm2.272-4.32a.75.75 0 1 0 1.298.75l-1.298-.75ZM5.14 5.07a.75.75 0 1 0 1.056 1.066L5.14 5.071Zm13.722.067c-3.82-3.82-9.993-3.859-13.788-.064l1.06 1.06c3.2-3.199 8.423-3.18 11.668.065l1.06-1.061ZM5.074 5.074 3.808 6.34l1.06 1.06 1.267-1.265-1.061-1.061Zm-.74 2.547 2.546.012.007-1.5-2.545-.012-.008 1.5Zm.754-.754L5.075 4.32l-1.5.008.013 2.545 1.5-.007ZM12 3.75A8.25 8.25 0 0 1 20.25 12h1.5c0-5.385-4.365-9.75-9.75-9.75v1.5Zm0 16.5A8.25 8.25 0 0 1 3.75 12h-1.5c0 5.385 4.365 9.75 9.75 9.75v-1.5Zm4.125-1.103A8.209 8.209 0 0 1 12 20.25v1.5c1.775 0 3.44-.475 4.875-1.305l-.75-1.298ZM20.25 12a8.209 8.209 0 0 1-1.103 4.125l1.298.75A9.708 9.708 0 0 0 21.75 12h-1.5ZM6.196 6.137A8.221 8.221 0 0 1 12 3.75v-1.5a9.721 9.721 0 0 0-6.86 2.821l1.056 1.066Z"
|
|
30
|
+
/>
|
|
31
|
+
</svg>
|
|
32
|
+
)
|
|
33
|
+
export default History
|
|
@@ -24,12 +24,13 @@ const Card: FC<Props> = ({
|
|
|
24
24
|
onClick,
|
|
25
25
|
}) => (
|
|
26
26
|
<div
|
|
27
|
+
onClick={onClick}
|
|
27
28
|
className={cx('memori-card', className, {
|
|
28
29
|
'memori-card--loading': loading,
|
|
29
30
|
'memori-card--with-cover': cover,
|
|
30
31
|
'memori-card--hoverable': hoverable,
|
|
32
|
+
'memori-card--pointer': !!onClick,
|
|
31
33
|
})}
|
|
32
|
-
onClick={onClick}
|
|
33
34
|
>
|
|
34
35
|
<Spin spinning={loading}>
|
|
35
36
|
{cover && <div className="memori-card--cover">{cover}</div>}
|
package/src/helpers/message.ts
CHANGED
package/src/helpers/utils.ts
CHANGED
|
@@ -228,6 +228,29 @@ export const getFieldFromCustomData = (
|
|
|
228
228
|
}
|
|
229
229
|
};
|
|
230
230
|
|
|
231
|
+
const MAX_MSG_CHARS = 4000;
|
|
232
|
+
|
|
233
|
+
const MAX_MSG_WORDS = 300;
|
|
234
|
+
|
|
235
|
+
export const truncateMessage = (message: string) => {
|
|
236
|
+
|
|
237
|
+
let truncatedMessage = message;
|
|
238
|
+
|
|
239
|
+
if (message.length > MAX_MSG_CHARS) {
|
|
240
|
+
truncatedMessage = `${message.slice(0, MAX_MSG_CHARS)}\n<br />...`;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
if (truncatedMessage.split(' ').length > MAX_MSG_WORDS) {
|
|
244
|
+
truncatedMessage = truncatedMessage
|
|
245
|
+
.split(' ')
|
|
246
|
+
.slice(0, MAX_MSG_WORDS)
|
|
247
|
+
.join(' ')
|
|
248
|
+
.concat('\n<br/>...');
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
return truncatedMessage;
|
|
252
|
+
};
|
|
253
|
+
|
|
231
254
|
export const stripObjNulls = (obj: { [key: string]: any }) => {
|
|
232
255
|
const newObj = { ...obj };
|
|
233
256
|
Object.keys(newObj).forEach(key => {
|
package/src/index.stories.tsx
CHANGED
|
@@ -36,6 +36,7 @@ Anonymous.args = {
|
|
|
36
36
|
spokenLang: 'IT',
|
|
37
37
|
enableAudio: true,
|
|
38
38
|
autoStart: true,
|
|
39
|
+
showChatHistory: true,
|
|
39
40
|
};
|
|
40
41
|
|
|
41
42
|
export const WithInitialContextAndQuestion = Template.bind({});
|
|
@@ -88,6 +89,19 @@ WithPreviousSession.args = {
|
|
|
88
89
|
spokenLang: 'IT',
|
|
89
90
|
};
|
|
90
91
|
|
|
92
|
+
export const WithChatHistory = Template.bind({});
|
|
93
|
+
WithChatHistory.args = {
|
|
94
|
+
ownerUserName: 'nzambello',
|
|
95
|
+
memoriName: 'Nicola',
|
|
96
|
+
tenantID: 'www.aisuru.com',
|
|
97
|
+
engineURL: 'https://engine.memori.ai',
|
|
98
|
+
apiURL: 'https://backend.memori.ai',
|
|
99
|
+
baseURL: 'https://www.aisuru.com',
|
|
100
|
+
uiLang: 'IT',
|
|
101
|
+
spokenLang: 'IT',
|
|
102
|
+
showChatHistory: true,
|
|
103
|
+
};
|
|
104
|
+
|
|
91
105
|
export const WithUpload = Template.bind({});
|
|
92
106
|
WithUpload.args = {
|
|
93
107
|
ownerUserName: 'nzambello',
|
|
@@ -117,19 +131,32 @@ Nunzio.args = {
|
|
|
117
131
|
|
|
118
132
|
export const Localhost = Template.bind({});
|
|
119
133
|
Localhost.args = {
|
|
120
|
-
memoriName: '
|
|
121
|
-
ownerUserName: '
|
|
122
|
-
memoriID: '
|
|
123
|
-
ownerUserID: '
|
|
124
|
-
tenantID: '
|
|
125
|
-
apiURL: 'http://localhost:7778',
|
|
134
|
+
memoriName: 'test9',
|
|
135
|
+
ownerUserName: 'andrea.patini',
|
|
136
|
+
memoriID: 'e31aa393-08c4-469a-b2e8-971eb45f4925',
|
|
137
|
+
ownerUserID: '9266e23e-6822-4658-bbb0-4bebbc232bd4',
|
|
138
|
+
tenantID: 'localhost:3000',
|
|
126
139
|
engineURL: 'http://localhost:7778',
|
|
140
|
+
apiURL: 'http://localhost:7778',
|
|
127
141
|
baseURL: 'http://localhost:3000',
|
|
128
|
-
uiLang: '
|
|
129
|
-
|
|
142
|
+
uiLang: 'IT',
|
|
143
|
+
spokenLang: 'IT',
|
|
130
144
|
layout: 'FULLPAGE',
|
|
145
|
+
showInstruct: false,
|
|
146
|
+
showSettings: true,
|
|
147
|
+
showChatHistory: true,
|
|
148
|
+
showClear: false,
|
|
149
|
+
showTypingText: false,
|
|
150
|
+
showOnlyLastMessages: false,
|
|
151
|
+
showTranslationOriginal: false,
|
|
152
|
+
showCopyButton: false,
|
|
131
153
|
showShare: true,
|
|
132
|
-
|
|
154
|
+
showLogin: true,
|
|
155
|
+
useMathFormatting: false,
|
|
156
|
+
showUpload: false,
|
|
157
|
+
autoStart: false,
|
|
158
|
+
enableAudio: true,
|
|
159
|
+
integrationID: 'c13fe42a-2d25-4bde-a502-f34824cd4ff1',
|
|
133
160
|
};
|
|
134
161
|
|
|
135
162
|
export const LocalhostBoE = Template.bind({});
|
package/src/index.tsx
CHANGED
|
@@ -34,6 +34,7 @@ export interface Props {
|
|
|
34
34
|
layout?: WidgetProps['layout'];
|
|
35
35
|
customLayout?: WidgetProps['customLayout'];
|
|
36
36
|
showShare?: boolean;
|
|
37
|
+
showChatHistory?: boolean;
|
|
37
38
|
showCopyButton?: boolean;
|
|
38
39
|
showTranslationOriginal?: boolean;
|
|
39
40
|
showInputs?: boolean;
|
|
@@ -128,6 +129,7 @@ const Memori: React.FC<Props> = ({
|
|
|
128
129
|
pin,
|
|
129
130
|
context,
|
|
130
131
|
initialQuestion,
|
|
132
|
+
showChatHistory = true,
|
|
131
133
|
uiLang,
|
|
132
134
|
spokenLang,
|
|
133
135
|
multilingual,
|
|
@@ -285,6 +287,7 @@ const Memori: React.FC<Props> = ({
|
|
|
285
287
|
tenantID={tenantID}
|
|
286
288
|
memoriLang={spokenLang ?? memori.culture?.split('-')?.[0]}
|
|
287
289
|
multilingual={multilingual}
|
|
290
|
+
showChatHistory={showChatHistory}
|
|
288
291
|
tenant={tenant}
|
|
289
292
|
secret={secretToken}
|
|
290
293
|
sessionID={sessionID}
|
package/src/locales/de.json
CHANGED
|
@@ -101,24 +101,24 @@
|
|
|
101
101
|
"atLeast": "Mindestens"
|
|
102
102
|
},
|
|
103
103
|
"widget": {
|
|
104
|
-
"instruct": "
|
|
105
|
-
"test": "
|
|
106
|
-
"sound": "
|
|
104
|
+
"instruct": "Anleiten",
|
|
105
|
+
"test": "Testen",
|
|
106
|
+
"sound": "Ton",
|
|
107
107
|
"position": "Positionspräferenzen",
|
|
108
108
|
"settings": "Einstellungen",
|
|
109
|
-
"share": "
|
|
109
|
+
"share": "Teilen",
|
|
110
110
|
"shareChat": "Chat teilen",
|
|
111
|
-
"sendOnKeypress": "Drücken Sie zum Senden
|
|
111
|
+
"sendOnKeypress": "Drücken Sie Enter zum Senden",
|
|
112
112
|
"sendOnClick": "Klicken Sie auf Senden",
|
|
113
|
-
"boardOfExperts": "
|
|
114
|
-
"showExpertsInTheBoard": "Experten in diesem
|
|
115
|
-
"expertsInTheBoard": "Experten in diesem
|
|
116
|
-
"goToIntegrationsToCustomizeAvatar": "Um den Avatar anzupassen, gehen Sie zu
|
|
113
|
+
"boardOfExperts": "Expertenrat",
|
|
114
|
+
"showExpertsInTheBoard": "Experten in diesem Rat anzeigen",
|
|
115
|
+
"expertsInTheBoard": "Experten in diesem Rat",
|
|
116
|
+
"goToIntegrationsToCustomizeAvatar": "Um den Avatar anzupassen, gehen Sie zu \"Teilen\" und passen Sie die öffentliche Seite an"
|
|
117
117
|
},
|
|
118
118
|
"write_and_speak": {
|
|
119
119
|
"micButtonPopover": "Klicken Sie auf die Schaltfläche, um zu sprechen",
|
|
120
120
|
"micButtonPopoverListening": "Klicken Sie auf die Schaltfläche, um das Sprechen zu stoppen",
|
|
121
|
-
"pageInstructExplanation": "Um mir neue Dinge beizubringen, klicken Sie auf die Schaltfläche
|
|
121
|
+
"pageInstructExplanation": "Um mir neue Dinge beizubringen, klicken Sie auf die Schaltfläche \"ANLEITEN\", um zu beginnen",
|
|
122
122
|
"pageTryMeExplanation": "Um mit mir zu sprechen, klicken Sie auf die Schaltfläche START, um zu beginnen",
|
|
123
123
|
"pagePrivacyExplanation": "Die Konversationen sind sichtbar von dem Autor des Agenten",
|
|
124
124
|
"pagePrivacyExplanationList": {
|
|
@@ -130,10 +130,14 @@
|
|
|
130
130
|
"instructButton": "WEISE MICH AN",
|
|
131
131
|
"tryMeButton": "START",
|
|
132
132
|
"chatHistory": "Chatverlauf",
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
"
|
|
133
|
+
"chatHistoryDescription": "Chatverlauf mit diesem Agenten anzeigen",
|
|
134
|
+
"loadingChatHistory": "Chatverlauf wird geladen...",
|
|
135
|
+
"noChatHistoryAvailable": "Kein Chatverlauf verfügbar",
|
|
136
|
+
"noResultsFound": "Keine Ergebnisse gefunden für \"{{searchText}}\"",
|
|
137
|
+
"searchInChatHistory": "Im Chatverlauf suchen...",
|
|
138
|
+
"latestFirst": "Neueste zuerst",
|
|
139
|
+
"oldestFirst": "Älteste zuerst",
|
|
140
|
+
"exportChat": "Chat exportieren",
|
|
137
141
|
"settingsHeaderLabel": "Richten Sie hier ein, wenn Sie die Agent als Dauerrede einstellen möchten, und ändern Sie die Stillesekunden, wenn Sie sie anpassen möchten.",
|
|
138
142
|
"continuousSpeechLabel": "Kontinuierliche Rede",
|
|
139
143
|
"continuousSpeechDisabled": "Kontinuierliche Rede deaktiviert, da der Agent im Stummschaltmodus ist",
|
|
@@ -146,7 +150,7 @@
|
|
|
146
150
|
"controlsPosition": "Steuert die Position",
|
|
147
151
|
"tryMeHeaderLabel": "VERSUCHEN",
|
|
148
152
|
"unknownPosition": "Unbekannte Position",
|
|
149
|
-
"fieldPlace": "Geben Sie den Ort ein (z. B.
|
|
153
|
+
"fieldPlace": "Geben Sie den Ort ein (z. B. \"Mailand\")",
|
|
150
154
|
"showMapLinkFor": "Zeigen Sie die Position auf der Karte an",
|
|
151
155
|
"useMyPosition": "Nutzen Sie meine Position",
|
|
152
156
|
"myPosition": "Ihre Position",
|
|
@@ -156,7 +160,10 @@
|
|
|
156
160
|
"requirePositionHelp": "Zum Reden {{name}} Sie müssen entscheiden, ob Sie Ihre Position angeben oder nicht. ",
|
|
157
161
|
"dontWantToProvidePosition": "Ich möchte meine Position nicht bekannt geben",
|
|
158
162
|
"attachmentsLabel": "Bereichern Sie Ihre Botschaft",
|
|
159
|
-
"iWantToTalkToIn": "Ich möchte mit reden {{name}} In"
|
|
163
|
+
"iWantToTalkToIn": "Ich möchte mit reden {{name}} In",
|
|
164
|
+
"message": "nachricht",
|
|
165
|
+
"messages": "nachrichten",
|
|
166
|
+
"page": "Seite {{current}} von {{total}}"
|
|
160
167
|
},
|
|
161
168
|
"upload": {
|
|
162
169
|
"loginRequired": "Login erforderlich",
|
|
@@ -334,7 +341,7 @@
|
|
|
334
341
|
"MEMORI_INVALID_PIN": "Zwilling: Ungültige PIN",
|
|
335
342
|
"MEMORI_GIVER_TAG_PIN_CHANGE_REQUIRES_SEPARATE_OPERATION": "Zwilling: TAG- und PIN-Änderung erfordern separate Vorgänge",
|
|
336
343
|
"MEMORI_NO_PASSWORD_WHEN_PUBLIC": "Zwilling: Im öffentlichen Zustand ist kein Passwort erforderlich",
|
|
337
|
-
"MEMORI_DEEP_THOUGHT_REQUIRES_COMPLETIONS": "Für
|
|
344
|
+
"MEMORI_DEEP_THOUGHT_REQUIRES_COMPLETIONS": "Für \"Deep Thought\" müssen Vervollständigungen aktiviert sein",
|
|
338
345
|
"MEMORI_BOARD_OF_EXPERTS_REQUIRES_COMPLETIONS": "Für die Expertengruppe müssen Vervollständigungen aktiviert sein",
|
|
339
346
|
"MEMORI_INVALID_COMPLETION_CONFIG": "Zwilling: Ungültige Abschlusskonfiguration",
|
|
340
347
|
|
package/src/locales/en.json
CHANGED
|
@@ -131,10 +131,14 @@
|
|
|
131
131
|
"tryMeButton": "START",
|
|
132
132
|
"resumeButton": "RESUME",
|
|
133
133
|
"chatHistory": "Chat history",
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"
|
|
134
|
+
"chatHistoryDescription": "Show the chat history with this agent",
|
|
135
|
+
"loadingChatHistory": "Loading chat history...",
|
|
136
|
+
"noChatHistoryAvailable": "No chat history available",
|
|
137
|
+
"noResultsFound": "No results found for \"{{searchText}}\"",
|
|
138
|
+
"searchInChatHistory": "Search in chat history...",
|
|
139
|
+
"latestFirst": "Latest first",
|
|
140
|
+
"oldestFirst": "Oldest first",
|
|
141
|
+
"exportChat": "Export Chat",
|
|
138
142
|
"settingsHeaderLabel": "Setup here if you want to set the continuous speech, and change the silence seconds if you want to customize them.",
|
|
139
143
|
"continuousSpeechLabel": "Continuous speech",
|
|
140
144
|
"continuousSpeechDisabled": "Continuous speech disabled because the agent is in mute mode",
|
|
@@ -168,7 +172,10 @@
|
|
|
168
172
|
"requirePositionHelp": "To talk to {{name}} you have to decide whether to provide your position or not. This is because different answers that it can provide you may depend on where you are.",
|
|
169
173
|
"dontWantToProvidePosition": "I don't want to provide my position",
|
|
170
174
|
"attachmentsLabel": "Enrich your message",
|
|
171
|
-
"iWantToTalkToIn": "I want to talk to {{name}} in"
|
|
175
|
+
"iWantToTalkToIn": "I want to talk to {{name}} in",
|
|
176
|
+
"message": "message",
|
|
177
|
+
"messages": "messages",
|
|
178
|
+
"page": "Page {{current}} of {{total}}"
|
|
172
179
|
},
|
|
173
180
|
"upload": {
|
|
174
181
|
"loginRequired": "Login required",
|
package/src/locales/es.json
CHANGED
|
@@ -102,18 +102,18 @@
|
|
|
102
102
|
},
|
|
103
103
|
"widget": {
|
|
104
104
|
"instruct": "Instruir",
|
|
105
|
-
"test": "
|
|
105
|
+
"test": "Probar",
|
|
106
106
|
"sound": "Sonido",
|
|
107
107
|
"position": "Preferencias de posición",
|
|
108
108
|
"settings": "Ajustes",
|
|
109
109
|
"share": "Compartir",
|
|
110
110
|
"shareChat": "Compartir chat",
|
|
111
111
|
"sendOnKeypress": "Presiona Enter para enviar",
|
|
112
|
-
"sendOnClick": "
|
|
113
|
-
"boardOfExperts": "
|
|
114
|
-
"showExpertsInTheBoard": "Mostrar expertos en este
|
|
115
|
-
"expertsInTheBoard": "Expertos en este
|
|
116
|
-
"goToIntegrationsToCustomizeAvatar": "Para personalizar el avatar,
|
|
112
|
+
"sendOnClick": "Haz clic en Enviar",
|
|
113
|
+
"boardOfExperts": "Panel de expertos",
|
|
114
|
+
"showExpertsInTheBoard": "Mostrar expertos en este panel",
|
|
115
|
+
"expertsInTheBoard": "Expertos en este panel",
|
|
116
|
+
"goToIntegrationsToCustomizeAvatar": "Para personalizar el avatar, ve a Compartir y personaliza la página pública"
|
|
117
117
|
},
|
|
118
118
|
"write_and_speak": {
|
|
119
119
|
"micButtonPopover": "Haga clic en el botón para hablar",
|
|
@@ -130,10 +130,14 @@
|
|
|
130
130
|
"instructButton": "INSTRUÍME",
|
|
131
131
|
"tryMeButton": "COMENZAR",
|
|
132
132
|
"chatHistory": "Historial de chat",
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
"
|
|
133
|
+
"chatHistoryDescription": "Mostrar el historial de chat con este agente",
|
|
134
|
+
"loadingChatHistory": "Cargando historial de chat...",
|
|
135
|
+
"noChatHistoryAvailable": "No hay historial de chat disponible",
|
|
136
|
+
"noResultsFound": "No se encontraron resultados para \"{{searchText}}\"",
|
|
137
|
+
"searchInChatHistory": "Buscar en el historial de chat...",
|
|
138
|
+
"latestFirst": "Más recientes primero",
|
|
139
|
+
"oldestFirst": "Más antiguos primero",
|
|
140
|
+
"exportChat": "Exportar Chat",
|
|
137
141
|
"settingsHeaderLabel": "Configure aquí si desea configurar la memoria como voz continua y cambie los segundos de silencio si desea personalizarlos.",
|
|
138
142
|
"continuousSpeechLabel": "discurso continuo",
|
|
139
143
|
"continuousSpeechDisabled": "Discurso continuo deshabilitado porque el agente está en modo silencioso",
|
|
@@ -156,7 +160,10 @@
|
|
|
156
160
|
"requirePositionHelp": "para hablar con {{name}} usted tiene que decidir si proporciona su puesto o no. ",
|
|
157
161
|
"dontWantToProvidePosition": "No quiero proporcionar mi puesto.",
|
|
158
162
|
"attachmentsLabel": "Enriquece tu mensaje",
|
|
159
|
-
"iWantToTalkToIn": "quiero hablar con {{name}} en"
|
|
163
|
+
"iWantToTalkToIn": "quiero hablar con {{name}} en",
|
|
164
|
+
"message": "mensaje",
|
|
165
|
+
"messages": "mensajes",
|
|
166
|
+
"page": "Página {{current}} de {{total}}"
|
|
160
167
|
},
|
|
161
168
|
"upload": {
|
|
162
169
|
"loginRequired": "Connexion requise",
|
package/src/locales/fr.json
CHANGED
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"deepThoughtPreDisclaimerNotAllowed": "Deep Thought est désactivé car vous n'avez pas consenti à son utilisation, vous pouvez le modifier à tout moment dans les paramètres de votre compte.",
|
|
75
75
|
"notEnoughCredits": "L'auteur de ce Agent n'a pas suffisamment de crédits pour répondre à votre question.",
|
|
76
76
|
"confirmDialog": {
|
|
77
|
-
"title": "Voulez-vous quitter cette page
|
|
77
|
+
"title": "Voulez-vous quitter cette page ?",
|
|
78
78
|
"message": "Les modifications que vous avez apportées seront perdues."
|
|
79
79
|
},
|
|
80
80
|
"knownFacts": {
|
|
@@ -83,13 +83,13 @@
|
|
|
83
83
|
"type": "Taper",
|
|
84
84
|
"typeShortTerm": "Court terme",
|
|
85
85
|
"typeLongTerm": "Long terme",
|
|
86
|
-
"typeHelper": "Types
|
|
86
|
+
"typeHelper": "Types :\n",
|
|
87
87
|
"text": "Texte",
|
|
88
88
|
"deleteSuccess": "Fait connu supprimé",
|
|
89
89
|
"deleteConfirmTitle": "Supprimer un fait connu",
|
|
90
|
-
"deleteConfirmMessage": "Êtes-vous sûr de vouloir supprimer ce fait connu
|
|
90
|
+
"deleteConfirmMessage": "Êtes-vous sûr de vouloir supprimer ce fait connu ?",
|
|
91
91
|
"deleteSelectedConfirmTitle": "Supprimer les faits connus sélectionnés",
|
|
92
|
-
"deleteSelectedConfirmMessage": "Etes-vous sûr de vouloir supprimer les faits connus sélectionnés
|
|
92
|
+
"deleteSelectedConfirmMessage": "Etes-vous sûr de vouloir supprimer les faits connus sélectionnés ?"
|
|
93
93
|
},
|
|
94
94
|
"auth": {
|
|
95
95
|
"title": "Authentification",
|
|
@@ -101,31 +101,46 @@
|
|
|
101
101
|
},
|
|
102
102
|
"widget": {
|
|
103
103
|
"instruct": "Instruire",
|
|
104
|
-
"test": "
|
|
104
|
+
"test": "Tester",
|
|
105
105
|
"sound": "Son",
|
|
106
106
|
"position": "Préférences de position",
|
|
107
107
|
"settings": "Paramètres",
|
|
108
108
|
"share": "Partager",
|
|
109
109
|
"shareChat": "Partager le chat",
|
|
110
110
|
"sendOnKeypress": "Appuyez sur Entrée pour envoyer",
|
|
111
|
-
"sendOnClick": "Cliquez sur
|
|
111
|
+
"sendOnClick": "Cliquez sur Envoyer",
|
|
112
112
|
"boardOfExperts": "Conseil d'experts",
|
|
113
|
-
"showExpertsInTheBoard": "Afficher les experts dans ce
|
|
114
|
-
"expertsInTheBoard": "Experts dans ce
|
|
115
|
-
"goToIntegrationsToCustomizeAvatar": "Pour personnaliser l'avatar, allez dans Partager et personnalisez la page publique"
|
|
113
|
+
"showExpertsInTheBoard": "Afficher les experts dans ce conseil",
|
|
114
|
+
"expertsInTheBoard": "Experts dans ce conseil",
|
|
115
|
+
"goToIntegrationsToCustomizeAvatar": "Pour personnaliser l'avatar, allez dans Partager et personnalisez la page publique",
|
|
116
|
+
"chatHistory": "Historique des discussions",
|
|
117
|
+
"chatHistoryDescription": "Afficher l'historique des discussions avec cet agent",
|
|
118
|
+
"loadingChatHistory": "Chargement de l'historique des discussions...",
|
|
119
|
+
"noChatHistoryAvailable": "Aucun historique des discussions disponible",
|
|
120
|
+
"noResultsFound": "Aucun résultat trouvé pour \"{{searchText}}\"",
|
|
121
|
+
"searchInChatHistory": "Rechercher dans l'historique des chats...",
|
|
122
|
+
"latestFirst": "Plus récents d'abord",
|
|
123
|
+
"oldestFirst": "Plus anciens d'abord",
|
|
124
|
+
"exportChat": "Exporter le Chat"
|
|
116
125
|
},
|
|
117
126
|
"write_and_speak": {
|
|
118
127
|
"micButtonPopover": "Cliquez sur le bouton pour parler",
|
|
119
128
|
"micButtonPopoverListening": "Cliquez sur le bouton pour arrêter de parler",
|
|
120
129
|
"pageInstructExplanation": "Pour m'apprendre de nouvelles choses, cliquez sur le bouton INSTRUCTEZ-MOI pour commencer",
|
|
121
130
|
"pageTryMeExplanation": "Pour me parler, cliquez sur le bouton START pour commencer",
|
|
131
|
+
"pagePrivacyExplanation": "Les conversations sont visibles par l'auteur de l'agent",
|
|
132
|
+
"pagePrivacyExplanationTooltip": "En commençant la conversation, nous vous informons que :\n\n- Toutes les conversations avec cet agent sont visibles par l'auteur de l'agent\n- Si vous utilisez la chat comme utilisateur anonyme, l'auteur pourra voir le contenu de la conversation et votre adresse IP\n- Si vous utilisez la chat comme utilisateur enregistré (connecté), l'auteur pourra voir le contenu de la conversation et votre nom d'utilisateur\n- L'auteur utilise ces informations pour améliorer les fonctionnalités de l'agent et pour vous fournir un meilleur service\n- En continuant la conversation, vous acceptez ces conditions.",
|
|
122
133
|
"instructButton": "INSTRUCTEZ-MOI",
|
|
123
134
|
"tryMeButton": "COMMENCER",
|
|
124
135
|
"chatHistory": "Historique des discussions",
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"
|
|
136
|
+
"chatHistoryDescription": "Afficher l'historique des discussions avec cet agent",
|
|
137
|
+
"loadingChatHistory": "Chargement de l'historique des discussions...",
|
|
138
|
+
"noChatHistoryAvailable": "Aucun historique des discussions disponible",
|
|
139
|
+
"noResultsFound": "Aucun résultat trouvé pour \"{{searchText}}\"",
|
|
140
|
+
"searchInChatHistory": "Rechercher dans l'historique des chats...",
|
|
141
|
+
"latestFirst": "Plus récents d'abord",
|
|
142
|
+
"oldestFirst": "Plus anciens d'abord",
|
|
143
|
+
"exportChat": "Exporter le Chat",
|
|
129
144
|
"settingsHeaderLabel": "Configurez ici si vous souhaitez définir la mémoire comme parole continue et modifiez les secondes de silence si vous souhaitez les personnaliser.",
|
|
130
145
|
"continuousSpeechLabel": "Discours continu",
|
|
131
146
|
"continuousSpeechDisabled": "Discours continu désactivé car l'agente est en mode muté",
|
|
@@ -138,17 +153,20 @@
|
|
|
138
153
|
"controlsPosition": "Position des commandes",
|
|
139
154
|
"tryMeHeaderLabel": "ESSAYER",
|
|
140
155
|
"unknownPosition": "Position inconnue",
|
|
141
|
-
"fieldPlace": "Écrivez le lieu (par exemple «
|
|
156
|
+
"fieldPlace": "Écrivez le lieu (par exemple « Milano »)",
|
|
142
157
|
"showMapLinkFor": "Afficher la position sur la carte",
|
|
143
158
|
"useMyPosition": "Utiliser ma position",
|
|
144
159
|
"myPosition": "Votre poste",
|
|
145
160
|
"updatingPosition": "Mise à jour du poste...",
|
|
146
|
-
"placeNotFound": "Lieu introuvable
|
|
161
|
+
"placeNotFound": "Lieu introuvable !",
|
|
147
162
|
"requirePosition": "Insérez votre position avant de commencer",
|
|
148
163
|
"requirePositionHelp": "Pour parler à {{name}} vous devez décider si vous souhaitez ou non fournir votre poste. ",
|
|
149
164
|
"dontWantToProvidePosition": "Je ne veux pas donner ma position",
|
|
150
165
|
"attachmentsLabel": "Enrichissez votre message",
|
|
151
|
-
"iWantToTalkToIn": "je veux parler à {{name}} dans"
|
|
166
|
+
"iWantToTalkToIn": "je veux parler à {{name}} dans",
|
|
167
|
+
"message": "message",
|
|
168
|
+
"messages": "messages",
|
|
169
|
+
"page": "Page {{current}} de {{total}}"
|
|
152
170
|
},
|
|
153
171
|
"upload": {
|
|
154
172
|
"loginRequired": "Connexion requise",
|
|
@@ -191,7 +209,7 @@
|
|
|
191
209
|
"points": "points",
|
|
192
210
|
"memoriReachedLevel": "est devenu plus évolué et a atteint le niveau",
|
|
193
211
|
"levelGoToStatistics": "{{Agent}} est au niveau {{level}} avec {{points}} points. ",
|
|
194
|
-
"congratulationsNewLevel": "Félicitations, vous avez atteint un nouveau niveau
|
|
212
|
+
"congratulationsNewLevel": "Félicitations, vous avez atteint un nouveau niveau !",
|
|
195
213
|
"congratulationsNewLevelDescription": "Votre Agent est devenu plus évolué avec {{points}} points, regardez le",
|
|
196
214
|
"statistics": "statistiques"
|
|
197
215
|
},
|
|
@@ -216,7 +234,7 @@
|
|
|
216
234
|
"usernameFormatError": "Le nom d'utilisateur doit comporter au moins 3 caractères et contenir uniquement des lettres, des chiffres et _",
|
|
217
235
|
"otpCode": "Le code de vérification",
|
|
218
236
|
"resendVerificationCode": "Renvoyer le code",
|
|
219
|
-
"resentVerificationCode": "Code de confirmation envoyé
|
|
237
|
+
"resentVerificationCode": "Code de confirmation envoyé ! ",
|
|
220
238
|
"password": "Mot de passe",
|
|
221
239
|
"newPassword": "Nouveau mot de passe",
|
|
222
240
|
"confirmPassword": "Confirmez le mot de passe",
|
|
@@ -274,7 +292,7 @@
|
|
|
274
292
|
"USER_OR_PASSWORD_INVALID": "Utilisateur ou mot de passe invalide",
|
|
275
293
|
"USER_MUST_CHANGE_PASSWORD": "Vous devez changer votre mot de passe",
|
|
276
294
|
"USER_MUST_ENTER_VERIFICATION_CODE": "Vous devez entrer le code de vérification",
|
|
277
|
-
"USER_MISSING_TENANT": "Utilisateur :
|
|
295
|
+
"USER_MISSING_TENANT": "Utilisateur : locataire manquant",
|
|
278
296
|
"USER_MISSING_NAME": "Utilisateur : le nom est manquant",
|
|
279
297
|
"USER_MISSING_PASSWORD": "Utilisateur : mot de passe manquant",
|
|
280
298
|
"USER_MISSING_EMAIL": "Utilisateur : E-mail manquant",
|
|
@@ -294,9 +312,9 @@
|
|
|
294
312
|
"USER_TOO_MANY_ATTEMPTS": "Trop de tentatives",
|
|
295
313
|
"USER_MUST_ACCEPT_TNC_AND_PP": "Vous devez accepter les termes et conditions",
|
|
296
314
|
"USER_BIRTH_DATE_CANT_BE_CHANGED": "La date de naissance ne peut pas être modifiée",
|
|
297
|
-
"USER_CANT_SET_COMPLETION_PROVIDER": "Utilisateur :
|
|
298
|
-
"USER_CANT_ENABLE_DEEP_THOUGHT": "Utilisateur :
|
|
299
|
-
"USER_CANT_ENABLE_DCM_INTEGRATION": "Utilisateur :
|
|
315
|
+
"USER_CANT_SET_COMPLETION_PROVIDER": "Utilisateur : non autorisé à gérer le fournisseur de complétion",
|
|
316
|
+
"USER_CANT_ENABLE_DEEP_THOUGHT": "Utilisateur : non autorisé à gérer Deep Thought",
|
|
317
|
+
"USER_CANT_ENABLE_DCM_INTEGRATION": "Utilisateur : non autorisé à gérer l'intégration DCM",
|
|
300
318
|
"USER_CANT_ENABLE_CHAINING_OR_BOARD_OF_EXPERTS": "Utilisateur : non autorisé à gérer des chaînages ou des groupes d'experts",
|
|
301
319
|
"USER_CREATION_BILLING_DENIED_PERMISSION": "Vous n'avez pas assez de crédits pour créer un Agent",
|
|
302
320
|
"USER_HAS_ONE_OR_MORE_COMPLETION_CONFIGS": "L'utilisateur dispose d'une ou plusieurs configurations de complétion",
|
|
@@ -373,28 +391,28 @@
|
|
|
373
391
|
"INVITATION_CANT_BE_CHANGED": "Intation : ne peut pas être modifié",
|
|
374
392
|
"ACTIONLOG_INVALID_USER_ID": "ID utilisateur invalide",
|
|
375
393
|
"ACTIONLOG_INVALID_DATE_FROM_FORMAT": "Date de : format non valide",
|
|
376
|
-
"ACTIONLOG_INVALID_DATE_TO_FORMAT": "Date de :
|
|
394
|
+
"ACTIONLOG_INVALID_DATE_TO_FORMAT": "Date de : format non valide",
|
|
377
395
|
"ACTIONLOG_INVALID_MEMORI_ID": "Identifiant Agent invalide",
|
|
378
396
|
"CONSUMPTIONLOG_INVALID_TYPE": "Type de journal invalide",
|
|
379
397
|
"CONSUMPTIONLOG_INVALID_DATE_FROM_FORMAT": "Date de : format non valide",
|
|
380
|
-
"CONSUMPTIONLOG_INVALID_DATE_TO_FORMAT": "Date de :
|
|
398
|
+
"CONSUMPTIONLOG_INVALID_DATE_TO_FORMAT": "Date de : format non valide",
|
|
381
399
|
"CONSUMPTIONLOG_INVALID_USER_ID": "ID utilisateur invalide",
|
|
382
400
|
"CONSUMPTIONLOG_INVALID_MEMORI_ID": "Identifiant Agent invalide",
|
|
383
|
-
"NOTIFICATIONPREFS_INVALID_CHATLOG_EXTRACTION_PERIOD": "Notifications :
|
|
401
|
+
"NOTIFICATIONPREFS_INVALID_CHATLOG_EXTRACTION_PERIOD": "Notifications : période d'extraction du journal de discussion non valide",
|
|
384
402
|
"PROCESS_INVALID_TYPE": "Type de processus invalide",
|
|
385
403
|
"PROCESS_ALREADY_RUNNING": "Processus déjà en cours",
|
|
386
404
|
"PROCESS_NOT_FOUND": "Processus introuvable",
|
|
387
405
|
"IMPORTCSV_MISSING_ROWS": "Import CSV : lignes manquantes",
|
|
388
|
-
"IMPORTCSV_MISSING_CSV": "Importation CSV :
|
|
406
|
+
"IMPORTCSV_MISSING_CSV": "Importation CSV : CSV manquant",
|
|
389
407
|
"IMPORTCSV_MISSING_SEPARATOR": "Import CSV : séparateur manquant",
|
|
390
408
|
"IMPORTCSV_INVALID_SEPARATOR": "Importation CSV : séparateur non valide",
|
|
391
409
|
"IMPORTCSV_MISSING_HEADERS": "Import CSV : en-têtes manquants",
|
|
392
410
|
"IMPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR": "Import CSV : séparateur de variante de titre manquant",
|
|
393
|
-
"IMPORTCSV_INVALID_RECEIVER_ID": "Importation CSV :
|
|
411
|
+
"IMPORTCSV_INVALID_RECEIVER_ID": "Importation CSV : ID de destinataire non valide",
|
|
394
412
|
"IMPORTCSV_INVALID_MEDIA_LINK": "Importation CSV : lien média non valide",
|
|
395
413
|
"IMPORTCSV_INVALID_LINK_TITLE_HANDLING": "Importation CSV : titre du lien invalide",
|
|
396
414
|
"IMPORTCSV_UNDETECTABLE_CHAR_ENCODING": "Import CSV : encodage de caractères indétectable",
|
|
397
|
-
"IMPORTCSV_CANT_IMPORT_TO_SECRET_MEMORI": "Importation CSV :
|
|
415
|
+
"IMPORTCSV_CANT_IMPORT_TO_SECRET_MEMORI": "Importation CSV : impossible d'importer dans les mémoires secrètes",
|
|
398
416
|
"IMPORTTXT_MISSING_ROWS": "Importation de TXT : lignes manquantes",
|
|
399
417
|
"IMPORTTXT_INVALID_GRANULARITY": "Importer TXT : granularité invalide",
|
|
400
418
|
"IMPORTTXT_INVALID_RECEIVER_ID": "Importer TXT : ID de destinataire invalide",
|
|
@@ -404,14 +422,14 @@
|
|
|
404
422
|
"IMPORTTXT_CANT_IMPORT_TO_SECRET_MEMORI": "Importation TXT : impossible d'importer vers les mémoires secrètes",
|
|
405
423
|
"IMPORTTXT_IMPORT_LIMIT_EXCEEDED": "Importer TXT : limite d'importation dépassée",
|
|
406
424
|
"IMPORTTXT_IMPORT_ON_GPT4_REQUIRES_API_KEY": "Importer TXT : l'importation sur GPT-4 nécessite une clé API",
|
|
407
|
-
"IMPORTTXT_IMPORT_REQUIRES_PAYING": "Importer TXT :
|
|
425
|
+
"IMPORTTXT_IMPORT_REQUIRES_PAYING": "Importer TXT : l'importation nécessite un forfait payant",
|
|
408
426
|
"IMPORTTXT_BILLING_DENIED_PERMISSION": "Importer TXT : vous n'avez pas assez de crédits pour l'opération",
|
|
409
427
|
"EXPORTCSV_MISSING_CSV_SPECS": "Exportation CSV : spécifications CSV manquantes",
|
|
410
428
|
"EXPORTCSV_MISSING_SEPARATOR": "Export CSV : séparateur manquant",
|
|
411
429
|
"EXPORTCSV_INVALID_SEPARATOR": "Exportation CSV : séparateur non valide",
|
|
412
430
|
"EXPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR": "Exportation CSV : séparateur de variante de titre manquant",
|
|
413
|
-
"EXPORTCSV_MISSING_NEW_LINE_CHAR": "Exportation CSV :
|
|
414
|
-
"EXPORTCSV_INVALID_NEW_LINE_CHAR": "Exportation CSV :
|
|
431
|
+
"EXPORTCSV_MISSING_NEW_LINE_CHAR": "Exportation CSV : caractère de nouvelle ligne manquant",
|
|
432
|
+
"EXPORTCSV_INVALID_NEW_LINE_CHAR": "Exportation CSV : caractère de nouvelle ligne non valide",
|
|
415
433
|
"EXPORTCSV_MISSING_PASSWORD": "Export CSV : mot de passe manquant",
|
|
416
434
|
"EXPORTJSONL_MISSING_JSONL_SPECS": "Export JSONL : spécifications JSONL manquantes",
|
|
417
435
|
"EXPORTJSONL_MISSING_PLATFORM": "Export JSONL : plateforme manquante",
|
package/src/locales/it.json
CHANGED
|
@@ -103,16 +103,16 @@
|
|
|
103
103
|
"widget": {
|
|
104
104
|
"instruct": "Istruisci",
|
|
105
105
|
"test": "Prova",
|
|
106
|
-
"sound": "
|
|
106
|
+
"sound": "Suono",
|
|
107
107
|
"position": "Preferenze posizione",
|
|
108
108
|
"settings": "Impostazioni",
|
|
109
109
|
"share": "Condividi",
|
|
110
110
|
"shareChat": "Condividi chat",
|
|
111
111
|
"sendOnKeypress": "Premi Invio per inviare",
|
|
112
|
-
"sendOnClick": "Clicca
|
|
113
|
-
"boardOfExperts": "
|
|
114
|
-
"showExpertsInTheBoard": "Mostra
|
|
115
|
-
"expertsInTheBoard": "Esperti
|
|
112
|
+
"sendOnClick": "Clicca su Invia",
|
|
113
|
+
"boardOfExperts": "Board di esperti",
|
|
114
|
+
"showExpertsInTheBoard": "Mostra esperti in questa board",
|
|
115
|
+
"expertsInTheBoard": "Esperti in questa board",
|
|
116
116
|
"goToIntegrationsToCustomizeAvatar": "Per personalizzare l'avatar, vai a Condividimi e configura la pagina pubblica"
|
|
117
117
|
},
|
|
118
118
|
"write_and_speak": {
|
|
@@ -131,6 +131,14 @@
|
|
|
131
131
|
"tryMeButton": "INIZIAMO",
|
|
132
132
|
"resumeButton": "RIPRENDI",
|
|
133
133
|
"chatHistory": "Cronologia chat",
|
|
134
|
+
"chatHistoryDescription": "Mostra la cronologia chat con questo agente",
|
|
135
|
+
"loadingChatHistory": "Caricamento cronologia chat...",
|
|
136
|
+
"noChatHistoryAvailable": "Nessuna cronologia chat disponibile",
|
|
137
|
+
"noResultsFound": "Nessun risultato trovato per \"{{searchText}}\"",
|
|
138
|
+
"searchInChatHistory": "Cerca nella cronologia chat...",
|
|
139
|
+
"latestFirst": "Più recenti prima",
|
|
140
|
+
"oldestFirst": "Più vecchi prima",
|
|
141
|
+
"exportChat": "Esporta Chat",
|
|
134
142
|
"exportChatHistory": "Esporta la cronologia chat",
|
|
135
143
|
"exportChatHistoryMessage": "Vuoi esportare la cronologia chat?",
|
|
136
144
|
"chatBotButtonText": "CLICCA QUI PER APRIRE LA CHAT",
|
|
@@ -167,7 +175,10 @@
|
|
|
167
175
|
"requirePositionHelp": "Per parlare con {{name}} devi decidere se fornire o meno la tua posizione. Questo perchè diverse risposte che potrà fornirti potrebbero dipendere da dove ti trovi.",
|
|
168
176
|
"dontWantToProvidePosition": "Non voglio fornire la mia posizione",
|
|
169
177
|
"attachmentsLabel": "Arricchisci il tuo messaggio",
|
|
170
|
-
"iWantToTalkToIn": "Voglio parlare con {{name}} in"
|
|
178
|
+
"iWantToTalkToIn": "Voglio parlare con {{name}} in",
|
|
179
|
+
"message": "messaggio",
|
|
180
|
+
"messages": "messaggi",
|
|
181
|
+
"page": "Pagina {{current}} di {{total}}"
|
|
171
182
|
},
|
|
172
183
|
"media": {
|
|
173
184
|
"title": "Titolo",
|
package/src/styles.css
CHANGED
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
@import url('./components/ChatTextArea/ChatTextArea.css');
|
|
30
30
|
@import url('./components/CustomGLBModelViewer/ModelViewer.css');
|
|
31
31
|
@import url('./components/SettingsDrawer/SettingsDrawer.css');
|
|
32
|
+
@import url('./components/ChatHistoryDrawer/ChatHistory.css');
|
|
32
33
|
@import url('./components/ExpertsDrawer/ExpertsDrawer.css');
|
|
33
34
|
@import url('./components/ExportHistoryButton/ExportHistoryButton.css');
|
|
34
35
|
@import url('./components/FeedbackButtons/FeedbackButtons.css');
|