@memori.ai/memori-react 9.0.0-alpha.21 → 9.0.0-alpha.23
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 +453 -0
- package/dist/components/AgeVerificationModal/AgeVerificationModal.css +1 -7
- package/dist/components/AgeVerificationModal/AgeVerificationModal.js +1 -1
- package/dist/components/AgeVerificationModal/AgeVerificationModal.js.map +1 -1
- package/dist/components/Auth/Auth.css +12 -5
- package/dist/components/Auth/Auth.d.ts +1 -1
- package/dist/components/Auth/Auth.js +46 -32
- package/dist/components/Auth/Auth.js.map +1 -1
- package/dist/components/BlockedMemoriBadge/BlockedMemoriBadge.css +7 -6
- package/dist/components/Chat/Chat.css +1 -0
- package/dist/components/Chat/Chat.js +1 -1
- package/dist/components/Chat/Chat.js.map +1 -1
- package/dist/components/ChatBubble/ChatBubble.css +32 -5
- package/dist/components/ChatBubble/ChatBubble.js +14 -11
- package/dist/components/ChatBubble/ChatBubble.js.map +1 -1
- package/dist/components/ChatHistoryDrawer/ChatHistory.d.ts +3 -1
- package/dist/components/ChatHistoryDrawer/ChatHistory.js +2 -2
- package/dist/components/ChatHistoryDrawer/ChatHistory.js.map +1 -1
- package/dist/components/ChatHistoryDrawer/ChatResumeDrawer.css +1 -1
- package/dist/components/ChatHistoryDrawer/ChatResumeDrawer.d.ts +3 -1
- package/dist/components/ChatHistoryDrawer/ChatResumeDrawer.js +7 -57
- package/dist/components/ChatHistoryDrawer/ChatResumeDrawer.js.map +1 -1
- package/dist/components/ChatInputs/ChatInputs.js +10 -1
- package/dist/components/ChatInputs/ChatInputs.js.map +1 -1
- package/dist/components/ChatTextArea/ChatTextArea.css +1 -1
- package/dist/components/ContentPreviewModal/ContentPreviewModal.css +1 -10
- package/dist/components/ContentPreviewModal/ContentPreviewModal.js +1 -1
- package/dist/components/ContentPreviewModal/ContentPreviewModal.js.map +1 -1
- package/dist/components/ExpertsDrawer/ExpertsDrawer.css +0 -6
- package/dist/components/FeedbackButtons/FeedbackButtons.js +2 -2
- package/dist/components/FeedbackButtons/FeedbackButtons.js.map +1 -1
- package/dist/components/Header/Header.css +8 -3
- package/dist/components/Header/Header.js +15 -18
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/IconButton/IconButton.d.ts +1 -1
- package/dist/components/KnownFacts/KnownFacts.css +1 -1
- package/dist/components/KnownFacts/KnownFacts.js +2 -5
- package/dist/components/KnownFacts/KnownFacts.js.map +1 -1
- package/dist/components/LoginDrawer/LoginDrawer.css +16 -14
- package/dist/components/LoginDrawer/LoginDrawer.js +19 -11
- package/dist/components/LoginDrawer/LoginDrawer.js.map +1 -1
- package/dist/components/MemoriArtifactSystem/components/ArtifactActions/styles.css +4 -4
- package/dist/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.css +28 -5
- package/dist/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.js +2 -2
- package/dist/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.js.map +1 -1
- package/dist/components/MemoriArtifactSystem/components/ArtifactHandler/ArtifactHandler.js +1 -1
- package/dist/components/MemoriArtifactSystem/components/ArtifactHandler/ArtifactHandler.js.map +1 -1
- package/dist/components/MemoriWidget/MemoriWidget.d.ts +1 -0
- package/dist/components/MemoriWidget/MemoriWidget.js +93 -32
- package/dist/components/MemoriWidget/MemoriWidget.js.map +1 -1
- package/dist/components/MobileSessionPanel/MobileSessionPanel.css +2 -2
- package/dist/components/PositionPopover/PositionPopover.css +3 -3
- package/dist/components/PositionPopover/PositionPopover.js +38 -25
- package/dist/components/PositionPopover/PositionPopover.js.map +1 -1
- package/dist/components/Snippet/Snippet.css +1 -1
- package/dist/components/StartPanel/StartPanel.css +19 -3
- package/dist/components/StartPanel/StartPanel.js +12 -18
- package/dist/components/StartPanel/StartPanel.js.map +1 -1
- package/dist/components/layouts/WebsiteAssistant/website-assistant.css +3 -3
- package/dist/components/layouts/chat.css +5 -2
- package/dist/components/layouts/totem.css +43 -9
- package/dist/helpers/nats/getNatsConfig.js.map +1 -1
- package/dist/helpers/nats/useNats.d.ts +2 -1
- package/dist/helpers/nats/useNats.js +87 -20
- package/dist/helpers/nats/useNats.js.map +1 -1
- package/dist/helpers/nats/useNatsSession.d.ts +6 -1
- package/dist/helpers/nats/useNatsSession.js +48 -7
- package/dist/helpers/nats/useNatsSession.js.map +1 -1
- package/dist/helpers/positionPopover.d.ts +2 -1
- package/dist/helpers/positionPopover.js +10 -2
- package/dist/helpers/positionPopover.js.map +1 -1
- package/dist/icons/MemoriIcon.js +1 -1
- package/dist/icons/MemoriIcon.js.map +1 -1
- package/dist/locales/de.json +4 -1
- package/dist/locales/en.json +3 -1
- package/dist/locales/es.json +3 -1
- package/dist/locales/fr.json +3 -1
- package/dist/locales/it.json +3 -1
- package/dist/styles.css +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/esm/components/AgeVerificationModal/AgeVerificationModal.css +1 -7
- package/esm/components/AgeVerificationModal/AgeVerificationModal.js +1 -1
- package/esm/components/AgeVerificationModal/AgeVerificationModal.js.map +1 -1
- package/esm/components/Auth/Auth.css +12 -5
- package/esm/components/Auth/Auth.d.ts +1 -1
- package/esm/components/Auth/Auth.js +47 -33
- package/esm/components/Auth/Auth.js.map +1 -1
- package/esm/components/BlockedMemoriBadge/BlockedMemoriBadge.css +7 -6
- package/esm/components/Chat/Chat.css +1 -0
- package/esm/components/Chat/Chat.js +1 -1
- package/esm/components/Chat/Chat.js.map +1 -1
- package/esm/components/ChatBubble/ChatBubble.css +32 -5
- package/esm/components/ChatBubble/ChatBubble.js +14 -11
- package/esm/components/ChatBubble/ChatBubble.js.map +1 -1
- package/esm/components/ChatHistoryDrawer/ChatHistory.d.ts +3 -1
- package/esm/components/ChatHistoryDrawer/ChatHistory.js +2 -2
- package/esm/components/ChatHistoryDrawer/ChatHistory.js.map +1 -1
- package/esm/components/ChatHistoryDrawer/ChatResumeDrawer.css +1 -1
- package/esm/components/ChatHistoryDrawer/ChatResumeDrawer.d.ts +3 -1
- package/esm/components/ChatHistoryDrawer/ChatResumeDrawer.js +9 -59
- package/esm/components/ChatHistoryDrawer/ChatResumeDrawer.js.map +1 -1
- package/esm/components/ChatInputs/ChatInputs.js +11 -2
- package/esm/components/ChatInputs/ChatInputs.js.map +1 -1
- package/esm/components/ChatTextArea/ChatTextArea.css +1 -1
- package/esm/components/ContentPreviewModal/ContentPreviewModal.css +1 -10
- package/esm/components/ContentPreviewModal/ContentPreviewModal.js +1 -1
- package/esm/components/ContentPreviewModal/ContentPreviewModal.js.map +1 -1
- package/esm/components/ExpertsDrawer/ExpertsDrawer.css +0 -6
- package/esm/components/FeedbackButtons/FeedbackButtons.js +2 -2
- package/esm/components/FeedbackButtons/FeedbackButtons.js.map +1 -1
- package/esm/components/Header/Header.css +8 -3
- package/esm/components/Header/Header.js +15 -18
- package/esm/components/Header/Header.js.map +1 -1
- package/esm/components/IconButton/IconButton.d.ts +1 -1
- package/esm/components/KnownFacts/KnownFacts.css +1 -1
- package/esm/components/KnownFacts/KnownFacts.js +2 -5
- package/esm/components/KnownFacts/KnownFacts.js.map +1 -1
- package/esm/components/LoginDrawer/LoginDrawer.css +16 -14
- package/esm/components/LoginDrawer/LoginDrawer.js +20 -12
- package/esm/components/LoginDrawer/LoginDrawer.js.map +1 -1
- package/esm/components/MemoriArtifactSystem/components/ArtifactActions/styles.css +4 -4
- package/esm/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.css +28 -5
- package/esm/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.js +2 -2
- package/esm/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.js.map +1 -1
- package/esm/components/MemoriArtifactSystem/components/ArtifactHandler/ArtifactHandler.js +1 -1
- package/esm/components/MemoriArtifactSystem/components/ArtifactHandler/ArtifactHandler.js.map +1 -1
- package/esm/components/MemoriWidget/MemoriWidget.d.ts +1 -0
- package/esm/components/MemoriWidget/MemoriWidget.js +93 -33
- package/esm/components/MemoriWidget/MemoriWidget.js.map +1 -1
- package/esm/components/MobileSessionPanel/MobileSessionPanel.css +2 -2
- package/esm/components/PositionPopover/PositionPopover.css +3 -3
- package/esm/components/PositionPopover/PositionPopover.js +39 -26
- package/esm/components/PositionPopover/PositionPopover.js.map +1 -1
- package/esm/components/Snippet/Snippet.css +1 -1
- package/esm/components/StartPanel/StartPanel.css +19 -3
- package/esm/components/StartPanel/StartPanel.js +12 -18
- package/esm/components/StartPanel/StartPanel.js.map +1 -1
- package/esm/components/layouts/WebsiteAssistant/website-assistant.css +3 -3
- package/esm/components/layouts/chat.css +5 -2
- package/esm/components/layouts/totem.css +43 -9
- package/esm/helpers/nats/getNatsConfig.js.map +1 -1
- package/esm/helpers/nats/useNats.d.ts +2 -1
- package/esm/helpers/nats/useNats.js +87 -20
- package/esm/helpers/nats/useNats.js.map +1 -1
- package/esm/helpers/nats/useNatsSession.d.ts +6 -1
- package/esm/helpers/nats/useNatsSession.js +48 -8
- package/esm/helpers/nats/useNatsSession.js.map +1 -1
- package/esm/helpers/positionPopover.d.ts +2 -1
- package/esm/helpers/positionPopover.js +9 -2
- package/esm/helpers/positionPopover.js.map +1 -1
- package/esm/icons/MemoriIcon.js +1 -1
- package/esm/icons/MemoriIcon.js.map +1 -1
- package/esm/locales/de.json +4 -1
- package/esm/locales/en.json +3 -1
- package/esm/locales/es.json +3 -1
- package/esm/locales/fr.json +3 -1
- package/esm/locales/it.json +3 -1
- package/esm/styles.css +1 -1
- package/esm/version.d.ts +1 -1
- package/esm/version.js +1 -1
- package/package.json +8 -5
- package/src/Live/Agents.stories.tsx +49 -0
- package/src/Live/KnownFacts.stories.tsx +50 -0
- package/src/Showcase.stories.tsx +3 -14
- package/src/components/AgeVerificationModal/AgeVerificationModal.css +1 -7
- package/src/components/AgeVerificationModal/AgeVerificationModal.stories.tsx +1 -1
- package/src/components/AgeVerificationModal/AgeVerificationModal.tsx +1 -0
- package/src/components/Auth/Auth.css +12 -5
- package/src/components/Auth/Auth.stories.tsx +1 -1
- package/src/components/Auth/Auth.test.tsx +68 -1
- package/src/components/Auth/Auth.tsx +69 -54
- package/src/components/Auth/__snapshots__/Auth.test.tsx.snap +5 -6
- package/src/components/Avatar/Avatar.stories.tsx +1 -18
- package/src/components/Avatar/AvatarView/AvatarView.stories.tsx +1 -103
- package/src/components/Blob/Blob.stories.tsx +1 -1
- package/src/components/BlockedMemoriBadge/BlockedMemoriBadge.css +7 -6
- package/src/components/BlockedMemoriBadge/BlockedMemoriBadge.stories.tsx +1 -1
- package/src/components/ChangeMode/ChangeMode.stories.tsx +1 -1
- package/src/components/Chat/Chat.css +1 -0
- package/src/components/Chat/Chat.stories.tsx +61 -7
- package/src/components/Chat/Chat.tsx +1 -0
- package/src/components/Chat/__snapshots__/Chat.test.tsx.snap +151 -151
- package/src/components/ChatBubble/ChatBubble.css +32 -5
- package/src/components/ChatBubble/ChatBubble.stories.tsx +24 -2
- package/src/components/ChatBubble/ChatBubble.test.tsx +37 -1
- package/src/components/ChatBubble/ChatBubble.tsx +308 -299
- package/src/components/ChatBubble/__snapshots__/ChatBubble.test.tsx.snap +384 -264
- package/src/components/ChatHistoryDrawer/ChatHistory.stories.tsx +1 -1
- package/src/components/ChatHistoryDrawer/ChatHistory.tsx +6 -0
- package/src/components/ChatHistoryDrawer/ChatResumeDrawer.css +1 -1
- package/src/components/ChatHistoryDrawer/ChatResumeDrawer.tsx +24 -81
- package/src/components/ChatInputs/ChatInputs.stories.tsx +1 -39
- package/src/components/ChatInputs/ChatInputs.test.tsx +47 -0
- package/src/components/ChatInputs/ChatInputs.tsx +12 -2
- package/src/components/ChatTextArea/ChatTextArea.css +1 -1
- package/src/components/CompletionProviderStatus/CompletionProviderStatus.stories.tsx +1 -1
- package/src/components/ContentPreviewModal/ContentPreviewModal.css +1 -10
- package/src/components/ContentPreviewModal/ContentPreviewModal.tsx +1 -1
- package/src/components/ExpertsDrawer/ExpertsDrawer.css +0 -6
- package/src/components/ExpertsDrawer/ExpertsDrawer.stories.tsx +1 -1
- package/src/components/FeedbackButtons/FeedbackButtons.stories.tsx +29 -10
- package/src/components/FeedbackButtons/FeedbackButtons.tsx +2 -0
- package/src/components/FeedbackButtons/__snapshots__/FeedbackButtons.test.tsx.snap +1 -1
- package/src/components/Header/Header.css +8 -3
- package/src/components/Header/Header.stories.tsx +1 -1
- package/src/components/Header/Header.tsx +146 -117
- package/src/components/KnownFacts/KnownFacts.css +1 -1
- package/src/components/KnownFacts/KnownFacts.stories.tsx +1 -23
- package/src/components/KnownFacts/KnownFacts.tsx +4 -9
- package/src/components/KnownFacts/__snapshots__/KnownFacts.test.tsx.snap +6 -2
- package/src/components/LoginDrawer/LoginDrawer.css +16 -14
- package/src/components/LoginDrawer/LoginDrawer.stories.tsx +2 -52
- package/src/components/LoginDrawer/LoginDrawer.tsx +51 -39
- package/src/components/LoginDrawer/__snapshots__/LoginDrawer.test.tsx.snap +33 -11
- package/src/components/MediaWidget/MediaItemWidget.stories.tsx +1 -15
- package/src/components/MediaWidget/MediaWidget.stories.tsx +1 -45
- package/src/components/MemoriArtifactSystem/components/ArtifactActions/CopyButton.stories.tsx +1 -1
- package/src/components/MemoriArtifactSystem/components/ArtifactActions/styles.css +4 -4
- package/src/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.css +28 -5
- package/src/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.tsx +4 -6
- package/src/components/MemoriArtifactSystem/components/ArtifactHandler/ArtifactHandler.tsx +1 -1
- package/src/components/MemoriArtifactSystem/utils/ArtifactAPI.test.tsx +32 -28
- package/src/components/MemoriWidget/MemoriUIProvider.contract.test.tsx +55 -0
- package/src/components/MemoriWidget/MemoriWidget.stories.tsx +55 -77
- package/src/components/MemoriWidget/MemoriWidget.tsx +114 -45
- package/src/components/MemoriWidget/getChatStyles.test.ts +24 -0
- package/src/components/MicrophoneButton/MicrophoneButton.stories.tsx +1 -1
- package/src/components/MobileSessionPanel/MobileSessionPanel.css +2 -2
- package/src/components/PositionPopover/PositionPopover.css +3 -3
- package/src/components/PositionPopover/PositionPopover.stories.tsx +1 -1
- package/src/components/PositionPopover/PositionPopover.tsx +50 -28
- package/src/components/PoweredBy/PoweredBy.stories.tsx +1 -54
- package/src/components/PoweredBy/__snapshots__/PoweredBy.test.tsx.snap +2 -2
- package/src/components/SendOnEnterMenu/SendOnEnterMenu.stories.tsx +1 -1
- package/src/components/SettingsDrawer/SettingsDrawer.stories.tsx +1 -1
- package/src/components/ShareButton/ShareButton.stories.tsx +1 -1
- package/src/components/Snippet/Snippet.css +1 -1
- package/src/components/Snippet/Snippet.stories.tsx +1 -1
- package/src/components/StartPanel/StartPanel.css +19 -3
- package/src/components/StartPanel/StartPanel.stories.tsx +2 -2
- package/src/components/StartPanel/StartPanel.tsx +22 -35
- package/src/components/StartPanel/__snapshots__/StartPanel.test.tsx.snap +177 -121
- package/src/components/Typing/Typing.stories.tsx +1 -1
- package/src/components/WhyThisAnswer/WhyThisAnswer.stories.tsx +22 -44
- package/src/components/WhyThisAnswer/__snapshots__/WhyThisAnswer.test.tsx.snap +9 -3
- package/src/components/layouts/FullBody/FullBody.stories.tsx +55 -68
- package/src/components/layouts/Totem/Totem.stories.tsx +69 -87
- package/src/components/layouts/WebsiteAssistant/website-assistant.css +3 -3
- package/src/components/layouts/ZoomedFullBody/ZoomedFullBody.stories.tsx +69 -87
- package/src/components/layouts/__snapshots__/Chat.test.tsx.snap +19 -41
- package/src/components/layouts/__snapshots__/FullPage.test.tsx.snap +39 -83
- package/src/components/layouts/__snapshots__/HiddenChat.test.tsx.snap +15 -11
- package/src/components/layouts/__snapshots__/Totem.test.tsx.snap +116 -42
- package/src/components/layouts/__snapshots__/ZoomedFullBody.test.tsx.snap +18 -40
- package/src/components/layouts/chat.css +5 -2
- package/src/components/layouts/layouts.stories.tsx +96 -179
- package/src/components/layouts/totem.css +43 -9
- package/src/helpers/nats/getNatsConfig.ts +4 -1
- package/src/helpers/nats/useNats.test.tsx +81 -0
- package/src/helpers/nats/useNats.ts +109 -29
- package/src/helpers/nats/useNatsSession.test.ts +16 -0
- package/src/helpers/nats/useNatsSession.ts +79 -13
- package/src/helpers/positionPopover.test.ts +36 -1
- package/src/helpers/positionPopover.ts +21 -4
- package/src/i18n.knownFacts.test.ts +40 -0
- package/src/icons/MemoriIcon.tsx +1 -1
- package/src/index.stories.tsx +1 -47
- package/src/locales/de.json +4 -1
- package/src/locales/en.json +3 -1
- package/src/locales/es.json +3 -1
- package/src/locales/fr.json +3 -1
- package/src/locales/it.json +3 -1
- package/src/styles.css +13 -27
- package/src/version.ts +1 -1
- package/src/components/ChatTextArea/ChatTextArea.stories.tsx +0 -55
- package/src/components/CustomGLBModelViewer/ModelViewer.stories.tsx +0 -58
- package/src/components/DateSelector/DateSelector.stories.tsx +0 -47
- package/src/components/FilePreview/FilePreview.stories.tsx +0 -63
- package/src/components/MemoriArtifactSystem/ArtifactDrawer.stories.tsx +0 -265
- package/src/components/UploadButton/UploadButton.stories.tsx +0 -510
- package/src/components/VenueWidget/VenueWidget.stories.tsx +0 -69
- package/src/components/layouts/WebsiteAssistant/WebsiteAssistant.stories.tsx +0 -115
|
@@ -39,7 +39,6 @@ import {
|
|
|
39
39
|
} from '../../helpers/message';
|
|
40
40
|
import { Expandable, Modal } from '@memori.ai/ui';
|
|
41
41
|
import memoriApiClient from '@memori.ai/memori-api-client';
|
|
42
|
-
import { usePressTooltip } from '../../helpers/usePressTooltip';
|
|
43
42
|
import { useWidgetSurfaceEl } from '../../context/widgetSurfaceContext';
|
|
44
43
|
const ASSET_URL_PATTERN = /https?:\/\/\S*\/api\/v\d+\/asset\/\S+/gi;
|
|
45
44
|
|
|
@@ -131,7 +130,6 @@ const ChatBubble: React.FC<Props> = ({
|
|
|
131
130
|
const { t, i18n } = useTranslation();
|
|
132
131
|
const surfaceEl = useWidgetSurfaceEl();
|
|
133
132
|
const lang = i18n.language || 'en';
|
|
134
|
-
const generatedByAiTooltip = usePressTooltip();
|
|
135
133
|
const [showingWhyThisAnswer, setShowingWhyThisAnswer] = useState(false);
|
|
136
134
|
const [openFunctionCache, setOpenFunctionCache] = useState(false);
|
|
137
135
|
const [copyStatus, setCopyStatus] = useState<{
|
|
@@ -498,19 +496,17 @@ const ChatBubble: React.FC<Props> = ({
|
|
|
498
496
|
) || []),
|
|
499
497
|
...parseDocumentAttachmentsFromMessage(
|
|
500
498
|
message.translatedText || message.text
|
|
501
|
-
).map(
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
})
|
|
513
|
-
),
|
|
499
|
+
).map((attachment, attachmentIndex): Medium & { type?: string } => ({
|
|
500
|
+
mediumID: `doc_${Date.now()}_${attachmentIndex}_${Math.random()
|
|
501
|
+
.toString(36)
|
|
502
|
+
.substr(2, 9)}`,
|
|
503
|
+
url: attachment.url,
|
|
504
|
+
mimeType: attachment.type,
|
|
505
|
+
title: attachment.filename,
|
|
506
|
+
content: attachment.content,
|
|
507
|
+
properties: { isDocumentAttachment: true },
|
|
508
|
+
type: 'document',
|
|
509
|
+
})),
|
|
514
510
|
];
|
|
515
511
|
|
|
516
512
|
const codeMediaWidgetMedia =
|
|
@@ -562,307 +558,319 @@ const ChatBubble: React.FC<Props> = ({
|
|
|
562
558
|
'memori-chat--bubble-shell--from-user': !!message.fromUser,
|
|
563
559
|
})}
|
|
564
560
|
>
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
<div
|
|
572
|
-
className={cx('memori-chat--bubble', {
|
|
573
|
-
'memori-chat--user-bubble': !!message.fromUser,
|
|
574
|
-
'memori-chat--with-addon':
|
|
575
|
-
shouldShowCopyButtons || (showFeedback && simulateUserPrompt),
|
|
576
|
-
'memori-chat--ai-generated': message.generatedByAI,
|
|
577
|
-
'memori-chat--with-feedback': showFeedback,
|
|
578
|
-
})}
|
|
579
|
-
>
|
|
580
|
-
{message.fromUser ? (
|
|
581
|
-
<Expandable
|
|
582
|
-
className="memori-chat--bubble-content"
|
|
583
|
-
mode="characters"
|
|
584
|
-
>
|
|
585
|
-
<div
|
|
586
|
-
dir="auto"
|
|
587
|
-
className="memori-chat--bubble-content"
|
|
588
|
-
dangerouslySetInnerHTML={{ __html: sanitizeMsg(cleanText) }}
|
|
589
|
-
/>
|
|
590
|
-
</Expandable>
|
|
591
|
-
) : (
|
|
592
|
-
<div
|
|
593
|
-
dir="auto"
|
|
594
|
-
className="memori-chat--bubble-content"
|
|
595
|
-
dangerouslySetInnerHTML={{ __html: renderedText }}
|
|
596
|
-
/>
|
|
597
|
-
)}
|
|
598
|
-
|
|
599
|
-
{!!usageHtml && (
|
|
561
|
+
<div
|
|
562
|
+
className={cx('memori-chat--bubble-anchor', {
|
|
563
|
+
'memori-chat--bubble-anchor--from-user': !!message.fromUser,
|
|
564
|
+
'memori-chat--bubble-anchor--has-addon': shouldShowBubbleAddon,
|
|
565
|
+
})}
|
|
566
|
+
>
|
|
600
567
|
<div
|
|
601
|
-
className=
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
568
|
+
className={cx('memori-chat--bubble', {
|
|
569
|
+
'memori-chat--user-bubble': !!message.fromUser,
|
|
570
|
+
'memori-chat--with-addon':
|
|
571
|
+
shouldShowCopyButtons ||
|
|
572
|
+
(showFeedback && simulateUserPrompt),
|
|
573
|
+
'memori-chat--ai-generated': message.generatedByAI,
|
|
574
|
+
'memori-chat--with-feedback': showFeedback,
|
|
575
|
+
})}
|
|
576
|
+
>
|
|
577
|
+
{message.fromUser ? (
|
|
578
|
+
<Expandable
|
|
579
|
+
className="memori-chat--bubble-content"
|
|
580
|
+
mode="characters"
|
|
581
|
+
>
|
|
582
|
+
<div
|
|
583
|
+
dir="auto"
|
|
584
|
+
className="memori-chat--bubble-content"
|
|
585
|
+
dangerouslySetInnerHTML={{
|
|
586
|
+
__html: sanitizeMsg(cleanText).replaceAll(
|
|
587
|
+
'\n',
|
|
588
|
+
'<br/>'
|
|
589
|
+
),
|
|
590
|
+
}}
|
|
591
|
+
/>
|
|
592
|
+
</Expandable>
|
|
593
|
+
) : (
|
|
594
|
+
<div
|
|
595
|
+
dir="auto"
|
|
596
|
+
className="memori-chat--bubble-content"
|
|
597
|
+
dangerouslySetInnerHTML={{ __html: renderedText }}
|
|
598
|
+
/>
|
|
599
|
+
)}
|
|
606
600
|
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
601
|
+
{!!usageHtml && (
|
|
602
|
+
<div
|
|
603
|
+
className="memori-chat--usage-inside-bubble"
|
|
604
|
+
dangerouslySetInnerHTML={{ __html: usageHtml }}
|
|
605
|
+
/>
|
|
606
|
+
)}
|
|
607
|
+
</div>
|
|
608
|
+
|
|
609
|
+
{shouldShowBubbleAddon && (
|
|
610
|
+
<div className="memori-chat--bubble-addon">
|
|
611
|
+
{shouldShowTimestampInAddon && (
|
|
612
|
+
<div className="memori-chat--bubble-timestamp-container">
|
|
613
|
+
<p className="memori-chat--bubble-timestamp">
|
|
614
|
+
{formattedTimestamp}
|
|
615
|
+
</p>
|
|
616
|
+
{hasAddonAfterTimestamp && (
|
|
617
|
+
<span className="memori-chat--bubble-timestamp-separator">
|
|
618
|
+
•
|
|
619
|
+
</span>
|
|
620
|
+
)}
|
|
621
|
+
</div>
|
|
618
622
|
)}
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
placement="bottom"
|
|
625
|
-
content={
|
|
626
|
-
copyStatus.plain === 'success'
|
|
627
|
-
? copiedLabel
|
|
628
|
-
: copyStatus.plain === 'error'
|
|
629
|
-
? t('copyFailed')
|
|
630
|
-
: t('copy') || 'Copy'
|
|
631
|
-
}
|
|
632
|
-
>
|
|
633
|
-
<span className="memori-chat--bubble-addon-tooltip-trigger">
|
|
634
|
-
<Button
|
|
635
|
-
variant="ghost"
|
|
636
|
-
shape="circle"
|
|
637
|
-
type="button"
|
|
638
|
-
aria-label={
|
|
623
|
+
{shouldShowCopyButtons && (
|
|
624
|
+
<Tooltip
|
|
625
|
+
{...bubbleAddonTooltipProps}
|
|
626
|
+
placement="bottom"
|
|
627
|
+
content={
|
|
639
628
|
copyStatus.plain === 'success'
|
|
640
|
-
?
|
|
629
|
+
? copiedLabel
|
|
641
630
|
: copyStatus.plain === 'error'
|
|
642
|
-
?
|
|
643
|
-
:
|
|
631
|
+
? t('copyFailed')
|
|
632
|
+
: t('copy') || 'Copy'
|
|
644
633
|
}
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
634
|
+
>
|
|
635
|
+
<span className="memori-chat--bubble-addon-tooltip-trigger">
|
|
636
|
+
<Button
|
|
637
|
+
variant="ghost"
|
|
638
|
+
shape="circle"
|
|
639
|
+
type="button"
|
|
640
|
+
size="sm"
|
|
641
|
+
aria-label={
|
|
642
|
+
copyStatus.plain === 'success'
|
|
643
|
+
? String(copiedLabel)
|
|
644
|
+
: copyStatus.plain === 'error'
|
|
645
|
+
? String(t('copyFailed'))
|
|
646
|
+
: String(t('copy') || 'Copy')
|
|
647
|
+
}
|
|
648
|
+
className={cx(
|
|
649
|
+
'memori-chat--bubble-action-button',
|
|
650
|
+
'memori-share-button--copy-item',
|
|
651
|
+
{
|
|
652
|
+
'memori-share-button--copy-item--success':
|
|
653
|
+
copyStatus.plain === 'success',
|
|
654
|
+
'memori-share-button--copy-item--error':
|
|
655
|
+
copyStatus.plain === 'error',
|
|
656
|
+
}
|
|
657
|
+
)}
|
|
658
|
+
icon={
|
|
659
|
+
copyStatus.plain === 'success' ? (
|
|
660
|
+
<Check
|
|
661
|
+
className="memori-share-button--copy-icon"
|
|
662
|
+
aria-hidden
|
|
663
|
+
strokeWidth={2.5}
|
|
664
|
+
/>
|
|
665
|
+
) : (
|
|
666
|
+
<Copy
|
|
667
|
+
className="memori-share-button--copy-icon"
|
|
668
|
+
aria-hidden
|
|
669
|
+
/>
|
|
670
|
+
)
|
|
671
|
+
}
|
|
672
|
+
onClick={() => handleCopyClick('plain', copyText)}
|
|
673
|
+
/>
|
|
674
|
+
</span>
|
|
675
|
+
</Tooltip>
|
|
676
|
+
)}
|
|
674
677
|
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
copyStatus.raw === 'success'
|
|
681
|
-
? copiedLabel
|
|
682
|
-
: copyStatus.raw === 'error'
|
|
683
|
-
? t('copyFailed')
|
|
684
|
-
: t('copyRawCode') || 'Copy raw code'
|
|
685
|
-
}
|
|
686
|
-
>
|
|
687
|
-
<span className="memori-chat--bubble-addon-tooltip-trigger">
|
|
688
|
-
<Button
|
|
689
|
-
variant="ghost"
|
|
690
|
-
shape="circle"
|
|
691
|
-
type="button"
|
|
692
|
-
aria-label={
|
|
678
|
+
{shouldShowCopyRawButton && (
|
|
679
|
+
<Tooltip
|
|
680
|
+
{...bubbleAddonTooltipProps}
|
|
681
|
+
placement="bottom"
|
|
682
|
+
content={
|
|
693
683
|
copyStatus.raw === 'success'
|
|
694
|
-
?
|
|
684
|
+
? copiedLabel
|
|
695
685
|
: copyStatus.raw === 'error'
|
|
696
|
-
?
|
|
697
|
-
:
|
|
698
|
-
}
|
|
699
|
-
className={cx(
|
|
700
|
-
'memori-chat--bubble-action-button',
|
|
701
|
-
'memori-share-button--copy-item',
|
|
702
|
-
{
|
|
703
|
-
'memori-share-button--copy-item--success':
|
|
704
|
-
copyStatus.raw === 'success',
|
|
705
|
-
'memori-share-button--copy-item--error':
|
|
706
|
-
copyStatus.raw === 'error',
|
|
707
|
-
}
|
|
708
|
-
)}
|
|
709
|
-
icon={
|
|
710
|
-
copyStatus.raw === 'success' ? (
|
|
711
|
-
<Check
|
|
712
|
-
className="memori-share-button--copy-icon"
|
|
713
|
-
aria-hidden
|
|
714
|
-
strokeWidth={2.5}
|
|
715
|
-
/>
|
|
716
|
-
) : (
|
|
717
|
-
<Code
|
|
718
|
-
className="memori-share-button--copy-icon"
|
|
719
|
-
aria-hidden
|
|
720
|
-
/>
|
|
721
|
-
)
|
|
686
|
+
? t('copyFailed')
|
|
687
|
+
: t('copyRawCode') || 'Copy raw code'
|
|
722
688
|
}
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
689
|
+
>
|
|
690
|
+
<span className="memori-chat--bubble-addon-tooltip-trigger">
|
|
691
|
+
<Button
|
|
692
|
+
variant="ghost"
|
|
693
|
+
shape="circle"
|
|
694
|
+
type="button"
|
|
695
|
+
size="sm"
|
|
696
|
+
aria-label={
|
|
697
|
+
copyStatus.raw === 'success'
|
|
698
|
+
? String(copiedLabel)
|
|
699
|
+
: copyStatus.raw === 'error'
|
|
700
|
+
? String(t('copyFailed'))
|
|
701
|
+
: String(t('copyRawCode') || 'Copy raw code')
|
|
702
|
+
}
|
|
703
|
+
className={cx(
|
|
704
|
+
'memori-chat--bubble-action-button',
|
|
705
|
+
'memori-share-button--copy-item',
|
|
706
|
+
{
|
|
707
|
+
'memori-share-button--copy-item--success':
|
|
708
|
+
copyStatus.raw === 'success',
|
|
709
|
+
'memori-share-button--copy-item--error':
|
|
710
|
+
copyStatus.raw === 'error',
|
|
711
|
+
}
|
|
712
|
+
)}
|
|
713
|
+
icon={
|
|
714
|
+
copyStatus.raw === 'success' ? (
|
|
715
|
+
<Check
|
|
716
|
+
className="memori-share-button--copy-icon"
|
|
717
|
+
aria-hidden
|
|
718
|
+
strokeWidth={2.5}
|
|
719
|
+
/>
|
|
720
|
+
) : (
|
|
721
|
+
<Code
|
|
722
|
+
className="memori-share-button--copy-icon"
|
|
723
|
+
aria-hidden
|
|
724
|
+
/>
|
|
725
|
+
)
|
|
726
|
+
}
|
|
727
|
+
onClick={() => handleCopyClick('raw', rawMessageText)}
|
|
728
|
+
/>
|
|
729
|
+
</span>
|
|
730
|
+
</Tooltip>
|
|
731
|
+
)}
|
|
728
732
|
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
733
|
+
{!message.fromUser &&
|
|
734
|
+
showFunctionCache &&
|
|
735
|
+
message.media?.some(
|
|
736
|
+
m =>
|
|
737
|
+
Boolean(m.properties?.functionCache) ||
|
|
738
|
+
m.properties?.functionCache === 'true'
|
|
739
|
+
) && (
|
|
740
|
+
<Tooltip
|
|
741
|
+
{...bubbleAddonTooltipProps}
|
|
742
|
+
placement="bottom"
|
|
743
|
+
content={t('functionCache') || 'Function cache'}
|
|
744
|
+
className="memori-chat--bubble-action-icon memori-chat--bubble-action-icon--debug"
|
|
745
|
+
>
|
|
746
|
+
<span className="memori-chat--bubble-addon-tooltip-trigger">
|
|
747
|
+
<Button
|
|
748
|
+
variant="ghost"
|
|
749
|
+
shape="circle"
|
|
750
|
+
size="sm"
|
|
751
|
+
className="memori-chat--bubble-action-button"
|
|
752
|
+
icon={
|
|
753
|
+
<Bug
|
|
754
|
+
aria-label={
|
|
755
|
+
t('functionCache') || 'Function cache'
|
|
756
|
+
}
|
|
757
|
+
/>
|
|
758
|
+
}
|
|
759
|
+
onClick={() => setOpenFunctionCache(true)}
|
|
750
760
|
/>
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
onNegativeClick={msg => {
|
|
764
|
-
if (msg) simulateUserPrompt(msg);
|
|
765
|
-
}}
|
|
766
|
-
/>
|
|
767
|
-
)}
|
|
768
|
-
|
|
769
|
-
{message.generatedByAI && showAIicon && (
|
|
770
|
-
<Tooltip
|
|
771
|
-
{...bubbleAddonTooltipProps}
|
|
772
|
-
placement="bottom"
|
|
773
|
-
content={t('generatedByAI')}
|
|
774
|
-
className="memori-chat--bubble-action-icon memori-chat--bubble-action-icon--ai"
|
|
775
|
-
{...generatedByAiTooltip.tooltipProps}
|
|
776
|
-
>
|
|
777
|
-
<span className="memori-chat--bubble-addon-tooltip-trigger">
|
|
778
|
-
<Button
|
|
779
|
-
variant="ghost"
|
|
780
|
-
shape="circle"
|
|
781
|
-
type="button"
|
|
782
|
-
className="memori-chat--bubble-action-button"
|
|
783
|
-
aria-label={String(t('generatedByAI'))}
|
|
784
|
-
icon={<Bot aria-hidden />}
|
|
785
|
-
{...generatedByAiTooltip.pressTriggerProps}
|
|
761
|
+
</span>
|
|
762
|
+
</Tooltip>
|
|
763
|
+
)}
|
|
764
|
+
|
|
765
|
+
{showFeedback && !!simulateUserPrompt && (
|
|
766
|
+
<FeedbackButtons
|
|
767
|
+
memori={memori}
|
|
768
|
+
className="memori-chat--bubble-feedback"
|
|
769
|
+
dropdown
|
|
770
|
+
onNegativeClick={msg => {
|
|
771
|
+
if (msg) simulateUserPrompt(msg);
|
|
772
|
+
}}
|
|
786
773
|
/>
|
|
787
|
-
|
|
788
|
-
</Tooltip>
|
|
789
|
-
)}
|
|
774
|
+
)}
|
|
790
775
|
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
className="memori-chat--bubble-action-button"
|
|
808
|
-
aria-label={
|
|
809
|
-
lang === 'it' ? 'Testo originale' : 'Original text'
|
|
810
|
-
}
|
|
811
|
-
icon={<Languages aria-hidden />}
|
|
812
|
-
/>
|
|
813
|
-
</span>
|
|
814
|
-
</Tooltip>
|
|
815
|
-
)}
|
|
776
|
+
{message.generatedByAI && showAIicon && (
|
|
777
|
+
<Tooltip
|
|
778
|
+
{...bubbleAddonTooltipProps}
|
|
779
|
+
placement="bottom"
|
|
780
|
+
content={t('generatedByAI')}
|
|
781
|
+
className="memori-chat--bubble-action-icon memori-chat--bubble-action-icon--ai"
|
|
782
|
+
>
|
|
783
|
+
<span
|
|
784
|
+
className="memori-chat--bubble-addon-tooltip-trigger memori-chat--bubble-ai-icon"
|
|
785
|
+
role="img"
|
|
786
|
+
aria-label={String(t('generatedByAI'))}
|
|
787
|
+
>
|
|
788
|
+
<Bot aria-hidden />
|
|
789
|
+
</span>
|
|
790
|
+
</Tooltip>
|
|
791
|
+
)}
|
|
816
792
|
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
793
|
+
{showTranslationOriginal &&
|
|
794
|
+
message.translatedText &&
|
|
795
|
+
message.translatedText !== message.text && (
|
|
796
|
+
<Tooltip
|
|
797
|
+
{...bubbleAddonTooltipProps}
|
|
798
|
+
placement="bottom"
|
|
799
|
+
content={`${
|
|
800
|
+
lang === 'it' ? 'Testo originale' : 'Original text'
|
|
801
|
+
}: ${stripAllInternalTags(message.text)}`}
|
|
802
|
+
className="memori-chat--bubble-action-icon memori-chat--bubble-action-icon--ai"
|
|
803
|
+
>
|
|
804
|
+
<span className="memori-chat--bubble-addon-tooltip-trigger">
|
|
805
|
+
<Button
|
|
806
|
+
variant="ghost"
|
|
807
|
+
shape="circle"
|
|
808
|
+
type="button"
|
|
809
|
+
size="sm"
|
|
810
|
+
className="memori-chat--bubble-action-button"
|
|
811
|
+
aria-label={
|
|
812
|
+
lang === 'it'
|
|
813
|
+
? 'Testo originale'
|
|
814
|
+
: 'Original text'
|
|
815
|
+
}
|
|
816
|
+
icon={<Languages aria-hidden />}
|
|
817
|
+
/>
|
|
818
|
+
</span>
|
|
819
|
+
</Tooltip>
|
|
820
|
+
)}
|
|
821
|
+
|
|
822
|
+
{!message.fromUser &&
|
|
823
|
+
message.questionAnswered &&
|
|
824
|
+
apiUrl &&
|
|
825
|
+
showWhyThisAnswer && (
|
|
826
|
+
<Tooltip
|
|
827
|
+
{...bubbleAddonTooltipProps}
|
|
828
|
+
placement="bottom"
|
|
829
|
+
content={t('whyThisAnswer') || 'Why this answer?'}
|
|
830
|
+
>
|
|
831
|
+
<span className="memori-chat--bubble-addon-tooltip-trigger">
|
|
832
|
+
<Button
|
|
833
|
+
variant="ghost"
|
|
834
|
+
shape="circle"
|
|
835
|
+
size="sm"
|
|
836
|
+
className="memori-chat--bubble-action-button"
|
|
837
|
+
onClick={() => setShowingWhyThisAnswer(true)}
|
|
838
|
+
disabled={showingWhyThisAnswer}
|
|
839
|
+
aria-label={
|
|
840
|
+
t('whyThisAnswer') || 'Why this answer?'
|
|
841
|
+
}
|
|
842
|
+
icon={<HelpCircle aria-hidden />}
|
|
843
|
+
/>
|
|
844
|
+
</span>
|
|
845
|
+
</Tooltip>
|
|
846
|
+
)}
|
|
847
|
+
</div>
|
|
848
|
+
)}
|
|
839
849
|
</div>
|
|
840
|
-
)}
|
|
841
|
-
</div>
|
|
842
850
|
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
851
|
+
{!message.fromUser && (
|
|
852
|
+
<div
|
|
853
|
+
className={cx('memori-chat--artifact-block', {
|
|
854
|
+
'memori-chat--artifact-block--chatlog': isChatlogPanel,
|
|
855
|
+
})}
|
|
856
|
+
>
|
|
857
|
+
<ArtifactHandler
|
|
858
|
+
isChatlogPanel={isChatlogPanel}
|
|
859
|
+
message={message}
|
|
860
|
+
/>
|
|
861
|
+
</div>
|
|
862
|
+
)}
|
|
863
|
+
|
|
864
|
+
<MediaWidget
|
|
865
|
+
simulateUserPrompt={simulateUserPrompt}
|
|
866
|
+
media={codeMediaWidgetMedia}
|
|
867
|
+
sessionID={sessionID}
|
|
868
|
+
baseUrl={baseUrl}
|
|
869
|
+
apiUrl={apiUrl}
|
|
870
|
+
translateTo={translateTo}
|
|
871
|
+
customMediaRenderer={customMediaRenderer}
|
|
872
|
+
fromUser={message.fromUser}
|
|
873
|
+
/>
|
|
866
874
|
</div>
|
|
867
875
|
|
|
868
876
|
{message.fromUser && renderUserAvatar()}
|
|
@@ -885,6 +893,7 @@ const ChatBubble: React.FC<Props> = ({
|
|
|
885
893
|
container={surfaceEl ?? undefined}
|
|
886
894
|
open={openFunctionCache}
|
|
887
895
|
className="memori-chat--function-cache-modal"
|
|
896
|
+
stacking="stacked"
|
|
888
897
|
title={t('functionCache') || 'Function Cache'}
|
|
889
898
|
closable={true}
|
|
890
899
|
onOpenChange={setOpenFunctionCache}
|