@memori.ai/memori-react 9.0.0-alpha.21 → 9.0.0-alpha.22
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 +18 -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 +2 -4
- 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/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.js +35 -31
- 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/totem.css +43 -9
- 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 +2 -4
- 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/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.js +36 -32
- 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/totem.css +43 -9
- 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 +5 -3
- 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 +80 -80
- package/src/components/ChatBubble/ChatBubble.css +32 -5
- package/src/components/ChatBubble/ChatBubble.stories.tsx +13 -2
- package/src/components/ChatBubble/ChatBubble.test.tsx +21 -1
- package/src/components/ChatBubble/ChatBubble.tsx +7 -13
- package/src/components/ChatBubble/__snapshots__/ChatBubble.test.tsx.snap +158 -185
- 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/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/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/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 +49 -44
- 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/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/layouts.stories.tsx +96 -179
- package/src/components/layouts/totem.css +43 -9
- 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
|
@@ -27,47 +27,21 @@ exports[`renders Totem layout unchanged 1`] = `
|
|
|
27
27
|
class="memori-widget__surface"
|
|
28
28
|
>
|
|
29
29
|
<style>
|
|
30
|
-
@layer
|
|
30
|
+
@layer memori.overrides {
|
|
31
31
|
body, .memori-client, .memori-widget, .memori-drawer, .memori-modal, .memori-header, .memori-dropdown, .memori-select {
|
|
32
32
|
--memori-primary-color: #823ce1;
|
|
33
|
-
--memori-primary: #823ce1;
|
|
34
33
|
--memori-primary-content: #ffffff;
|
|
35
|
-
--memori-primary-hover: color-mix(in oklch, var(--memori-primary), var(--memori-surface-contrast, black) 15%);
|
|
36
|
-
--memori-primary-active: color-mix(in oklch, var(--memori-primary), var(--memori-surface-contrast, black) 25%);
|
|
37
|
-
--memori-primary-disabled: color-mix(in oklch, var(--memori-primary), transparent 60%);
|
|
38
|
-
--memori-primary-subtle: color-mix(in oklch, var(--memori-primary), var(--memori-surface-contrast-inverse, white) 60%);
|
|
39
|
-
--memori-primary-subtle-hover: color-mix(in oklch, var(--memori-primary), var(--memori-surface-contrast-inverse, white) 50%);
|
|
40
|
-
--memori-border-primary: color-mix(in oklch, var(--memori-primary), transparent 70%);
|
|
41
|
-
--memori-border-primary-hover: color-mix(in oklch, var(--memori-primary), transparent 50%);
|
|
42
|
-
--memori-focus-ring-color: color-mix(in oklch, var(--memori-primary), transparent 80%);
|
|
43
|
-
--memori-focus-ring: 0 0 0 3px var(--memori-focus-ring-color);
|
|
44
|
-
--memori-shadow-primary: 0 8px 16px -4px color-mix(in oklch, var(--memori-primary), transparent 70%);
|
|
45
|
-
--memori-skeleton-base: color-mix(in oklch, var(--memori-primary), var(--memori-surface-contrast-inverse, white) 85%);
|
|
46
|
-
--memori-skeleton-highlight: color-mix(in oklch, var(--memori-primary), var(--memori-surface-contrast-inverse, white) 75%);
|
|
47
34
|
--memori-icon-active-bg: color-mix(in oklch, var(--memori-primary) 12%, transparent);
|
|
48
|
-
--memori-icon-recording-bg: color-mix(in oklch, var(--memori-error
|
|
35
|
+
--memori-icon-recording-bg: color-mix(in oklch, var(--memori-error) 12%, transparent);
|
|
49
36
|
}
|
|
50
37
|
[data-theme="dark"] .memori-widget,
|
|
51
38
|
.memori-widget[data-theme="dark"],
|
|
52
39
|
[data-theme="dark"] memori-client .memori-widget,
|
|
53
40
|
memori-client[data-theme="dark"] .memori-widget {
|
|
54
41
|
--memori-primary-color: #823ce1;
|
|
55
|
-
--memori-primary: #823ce1;
|
|
56
42
|
--memori-primary-content: #ffffff;
|
|
57
|
-
--memori-primary-hover: color-mix(in oklch, var(--memori-primary), var(--memori-surface-contrast, black) 15%);
|
|
58
|
-
--memori-primary-active: color-mix(in oklch, var(--memori-primary), var(--memori-surface-contrast, black) 25%);
|
|
59
|
-
--memori-primary-disabled: color-mix(in oklch, var(--memori-primary), transparent 60%);
|
|
60
|
-
--memori-primary-subtle: color-mix(in oklch, var(--memori-primary), var(--memori-surface-contrast-inverse, white) 60%);
|
|
61
|
-
--memori-primary-subtle-hover: color-mix(in oklch, var(--memori-primary), var(--memori-surface-contrast-inverse, white) 50%);
|
|
62
|
-
--memori-border-primary: color-mix(in oklch, var(--memori-primary), transparent 70%);
|
|
63
|
-
--memori-border-primary-hover: color-mix(in oklch, var(--memori-primary), transparent 50%);
|
|
64
|
-
--memori-focus-ring-color: color-mix(in oklch, var(--memori-primary), transparent 80%);
|
|
65
|
-
--memori-focus-ring: 0 0 0 3px var(--memori-focus-ring-color);
|
|
66
|
-
--memori-shadow-primary: 0 8px 16px -4px color-mix(in oklch, var(--memori-primary), transparent 70%);
|
|
67
|
-
--memori-skeleton-base: color-mix(in oklch, var(--memori-primary), var(--memori-surface-contrast-inverse, white) 85%);
|
|
68
|
-
--memori-skeleton-highlight: color-mix(in oklch, var(--memori-primary), var(--memori-surface-contrast-inverse, white) 75%);
|
|
69
43
|
--memori-icon-active-bg: color-mix(in oklch, var(--memori-primary) 12%, transparent);
|
|
70
|
-
--memori-icon-recording-bg: color-mix(in oklch, var(--memori-error
|
|
44
|
+
--memori-icon-recording-bg: color-mix(in oklch, var(--memori-error) 12%, transparent);
|
|
71
45
|
}
|
|
72
46
|
}
|
|
73
47
|
|
|
@@ -103,7 +77,7 @@ exports[`renders Totem layout unchanged 1`] = `
|
|
|
103
77
|
}
|
|
104
78
|
|
|
105
79
|
.cls-2 {
|
|
106
|
-
fill: var(--memori-
|
|
80
|
+
fill: var(--memori-text-color, '#744c99');
|
|
107
81
|
}
|
|
108
82
|
|
|
109
83
|
</style>
|
|
@@ -346,6 +320,102 @@ exports[`renders Totem layout unchanged 1`] = `
|
|
|
346
320
|
</span>
|
|
347
321
|
</span>
|
|
348
322
|
</div>
|
|
323
|
+
<span
|
|
324
|
+
class="memori-tooltip"
|
|
325
|
+
>
|
|
326
|
+
<span
|
|
327
|
+
class="memori-tooltip__trigger"
|
|
328
|
+
id="base-ui-:rb:"
|
|
329
|
+
>
|
|
330
|
+
<span
|
|
331
|
+
style="display: inline-flex;"
|
|
332
|
+
>
|
|
333
|
+
<button
|
|
334
|
+
aria-label="reload"
|
|
335
|
+
class="memori-button memori-button--toolbar memori-button--sm memori-button--icon-only memori-icon-button memori-totem-rail--button"
|
|
336
|
+
tabindex="0"
|
|
337
|
+
title="reload"
|
|
338
|
+
type="button"
|
|
339
|
+
>
|
|
340
|
+
<span
|
|
341
|
+
class="memori-button__icon"
|
|
342
|
+
>
|
|
343
|
+
<svg
|
|
344
|
+
class="lucide lucide-refresh-cw"
|
|
345
|
+
fill="none"
|
|
346
|
+
height="24"
|
|
347
|
+
stroke="currentColor"
|
|
348
|
+
stroke-linecap="round"
|
|
349
|
+
stroke-linejoin="round"
|
|
350
|
+
stroke-width="2"
|
|
351
|
+
viewBox="0 0 24 24"
|
|
352
|
+
width="24"
|
|
353
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
354
|
+
>
|
|
355
|
+
<path
|
|
356
|
+
d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"
|
|
357
|
+
/>
|
|
358
|
+
<path
|
|
359
|
+
d="M21 3v5h-5"
|
|
360
|
+
/>
|
|
361
|
+
<path
|
|
362
|
+
d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"
|
|
363
|
+
/>
|
|
364
|
+
<path
|
|
365
|
+
d="M8 16H3v5"
|
|
366
|
+
/>
|
|
367
|
+
</svg>
|
|
368
|
+
</span>
|
|
369
|
+
</button>
|
|
370
|
+
</span>
|
|
371
|
+
</span>
|
|
372
|
+
</span>
|
|
373
|
+
<span
|
|
374
|
+
class="memori-tooltip"
|
|
375
|
+
>
|
|
376
|
+
<span
|
|
377
|
+
class="memori-tooltip__trigger"
|
|
378
|
+
id="base-ui-:rd:"
|
|
379
|
+
>
|
|
380
|
+
<span
|
|
381
|
+
style="display: inline-flex;"
|
|
382
|
+
>
|
|
383
|
+
<button
|
|
384
|
+
aria-label="widget.settings"
|
|
385
|
+
class="memori-button memori-button--toolbar memori-button--sm memori-button--icon-only memori-icon-button memori-totem-rail--button"
|
|
386
|
+
tabindex="0"
|
|
387
|
+
title="widget.settings"
|
|
388
|
+
type="button"
|
|
389
|
+
>
|
|
390
|
+
<span
|
|
391
|
+
class="memori-button__icon"
|
|
392
|
+
>
|
|
393
|
+
<svg
|
|
394
|
+
class="lucide lucide-settings"
|
|
395
|
+
fill="none"
|
|
396
|
+
height="24"
|
|
397
|
+
stroke="currentColor"
|
|
398
|
+
stroke-linecap="round"
|
|
399
|
+
stroke-linejoin="round"
|
|
400
|
+
stroke-width="2"
|
|
401
|
+
viewBox="0 0 24 24"
|
|
402
|
+
width="24"
|
|
403
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
404
|
+
>
|
|
405
|
+
<path
|
|
406
|
+
d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"
|
|
407
|
+
/>
|
|
408
|
+
<circle
|
|
409
|
+
cx="12"
|
|
410
|
+
cy="12"
|
|
411
|
+
r="3"
|
|
412
|
+
/>
|
|
413
|
+
</svg>
|
|
414
|
+
</span>
|
|
415
|
+
</button>
|
|
416
|
+
</span>
|
|
417
|
+
</span>
|
|
418
|
+
</span>
|
|
349
419
|
</div>
|
|
350
420
|
<div
|
|
351
421
|
aria-hidden="true"
|
|
@@ -362,7 +432,7 @@ exports[`renders Totem layout unchanged 1`] = `
|
|
|
362
432
|
>
|
|
363
433
|
<span
|
|
364
434
|
class="memori-tooltip__trigger"
|
|
365
|
-
id="base-ui-:
|
|
435
|
+
id="base-ui-:ri:"
|
|
366
436
|
>
|
|
367
437
|
<span
|
|
368
438
|
style="display: inline-flex;"
|
|
@@ -373,7 +443,7 @@ exports[`renders Totem layout unchanged 1`] = `
|
|
|
373
443
|
aria-label="login.user"
|
|
374
444
|
class="memori-button memori-button--toolbar memori-button--sm memori-button--icon-only memori-icon-button memori-totem-rail--button memori-totem-rail--account-trigger"
|
|
375
445
|
data-base-ui-click-trigger=""
|
|
376
|
-
id="base-ui-:
|
|
446
|
+
id="base-ui-:rg:"
|
|
377
447
|
tabindex="0"
|
|
378
448
|
title="login.user"
|
|
379
449
|
type="button"
|
|
@@ -524,11 +594,15 @@ exports[`renders Totem layout unchanged 1`] = `
|
|
|
524
594
|
<div
|
|
525
595
|
class="memori--title-container__content"
|
|
526
596
|
>
|
|
527
|
-
<
|
|
528
|
-
class="memori--title"
|
|
597
|
+
<div
|
|
598
|
+
class="memori--title-row"
|
|
529
599
|
>
|
|
530
|
-
|
|
531
|
-
|
|
600
|
+
<h2
|
|
601
|
+
class="memori--title"
|
|
602
|
+
>
|
|
603
|
+
Memori
|
|
604
|
+
</h2>
|
|
605
|
+
</div>
|
|
532
606
|
<div
|
|
533
607
|
class="memori-expandable memori--description-text memori--description-text--collapsible"
|
|
534
608
|
>
|
|
@@ -588,17 +662,17 @@ exports[`renders Totem layout unchanged 1`] = `
|
|
|
588
662
|
>
|
|
589
663
|
<label
|
|
590
664
|
class="memori-combobox__label"
|
|
591
|
-
for="
|
|
592
|
-
id="
|
|
665
|
+
for="memori-combobox-1"
|
|
666
|
+
id="memori-combobox-1-label"
|
|
593
667
|
>
|
|
594
668
|
write_and_speak.chatLanguageLabel
|
|
595
669
|
</label>
|
|
596
670
|
<button
|
|
597
671
|
aria-expanded="false"
|
|
598
672
|
aria-haspopup="dialog"
|
|
599
|
-
aria-labelledby="
|
|
673
|
+
aria-labelledby="memori-combobox-1-label"
|
|
600
674
|
class="memori-combobox__trigger"
|
|
601
|
-
id="
|
|
675
|
+
id="memori-combobox-1"
|
|
602
676
|
role="combobox"
|
|
603
677
|
tabindex="0"
|
|
604
678
|
type="button"
|
|
@@ -633,7 +707,7 @@ exports[`renders Totem layout unchanged 1`] = `
|
|
|
633
707
|
</button>
|
|
634
708
|
<input
|
|
635
709
|
aria-hidden="true"
|
|
636
|
-
id="base-ui-:
|
|
710
|
+
id="base-ui-:rj:"
|
|
637
711
|
name="user-lang-pref"
|
|
638
712
|
style="overflow: hidden; white-space: nowrap; position: fixed; top: 0px; left: 0px; border: 0px; padding: 0px; width: 1px; height: 1px; margin: -1px;"
|
|
639
713
|
tabindex="-1"
|
|
@@ -702,7 +776,7 @@ exports[`renders Totem layout unchanged 1`] = `
|
|
|
702
776
|
>
|
|
703
777
|
<span
|
|
704
778
|
class="memori-tooltip__trigger"
|
|
705
|
-
id="base-ui-:
|
|
779
|
+
id="base-ui-:rm:"
|
|
706
780
|
>
|
|
707
781
|
<button
|
|
708
782
|
aria-label="privacyPolicy"
|
|
@@ -27,47 +27,21 @@ exports[`renders ZOOMED_FULL_BODY layout unchanged 1`] = `
|
|
|
27
27
|
class="memori-widget__surface"
|
|
28
28
|
>
|
|
29
29
|
<style>
|
|
30
|
-
@layer
|
|
30
|
+
@layer memori.overrides {
|
|
31
31
|
body, .memori-client, .memori-widget, .memori-drawer, .memori-modal, .memori-header, .memori-dropdown, .memori-select {
|
|
32
32
|
--memori-primary-color: #823ce1;
|
|
33
|
-
--memori-primary: #823ce1;
|
|
34
33
|
--memori-primary-content: #ffffff;
|
|
35
|
-
--memori-primary-hover: color-mix(in oklch, var(--memori-primary), var(--memori-surface-contrast, black) 15%);
|
|
36
|
-
--memori-primary-active: color-mix(in oklch, var(--memori-primary), var(--memori-surface-contrast, black) 25%);
|
|
37
|
-
--memori-primary-disabled: color-mix(in oklch, var(--memori-primary), transparent 60%);
|
|
38
|
-
--memori-primary-subtle: color-mix(in oklch, var(--memori-primary), var(--memori-surface-contrast-inverse, white) 60%);
|
|
39
|
-
--memori-primary-subtle-hover: color-mix(in oklch, var(--memori-primary), var(--memori-surface-contrast-inverse, white) 50%);
|
|
40
|
-
--memori-border-primary: color-mix(in oklch, var(--memori-primary), transparent 70%);
|
|
41
|
-
--memori-border-primary-hover: color-mix(in oklch, var(--memori-primary), transparent 50%);
|
|
42
|
-
--memori-focus-ring-color: color-mix(in oklch, var(--memori-primary), transparent 80%);
|
|
43
|
-
--memori-focus-ring: 0 0 0 3px var(--memori-focus-ring-color);
|
|
44
|
-
--memori-shadow-primary: 0 8px 16px -4px color-mix(in oklch, var(--memori-primary), transparent 70%);
|
|
45
|
-
--memori-skeleton-base: color-mix(in oklch, var(--memori-primary), var(--memori-surface-contrast-inverse, white) 85%);
|
|
46
|
-
--memori-skeleton-highlight: color-mix(in oklch, var(--memori-primary), var(--memori-surface-contrast-inverse, white) 75%);
|
|
47
34
|
--memori-icon-active-bg: color-mix(in oklch, var(--memori-primary) 12%, transparent);
|
|
48
|
-
--memori-icon-recording-bg: color-mix(in oklch, var(--memori-error
|
|
35
|
+
--memori-icon-recording-bg: color-mix(in oklch, var(--memori-error) 12%, transparent);
|
|
49
36
|
}
|
|
50
37
|
[data-theme="dark"] .memori-widget,
|
|
51
38
|
.memori-widget[data-theme="dark"],
|
|
52
39
|
[data-theme="dark"] memori-client .memori-widget,
|
|
53
40
|
memori-client[data-theme="dark"] .memori-widget {
|
|
54
41
|
--memori-primary-color: #823ce1;
|
|
55
|
-
--memori-primary: #823ce1;
|
|
56
42
|
--memori-primary-content: #ffffff;
|
|
57
|
-
--memori-primary-hover: color-mix(in oklch, var(--memori-primary), var(--memori-surface-contrast, black) 15%);
|
|
58
|
-
--memori-primary-active: color-mix(in oklch, var(--memori-primary), var(--memori-surface-contrast, black) 25%);
|
|
59
|
-
--memori-primary-disabled: color-mix(in oklch, var(--memori-primary), transparent 60%);
|
|
60
|
-
--memori-primary-subtle: color-mix(in oklch, var(--memori-primary), var(--memori-surface-contrast-inverse, white) 60%);
|
|
61
|
-
--memori-primary-subtle-hover: color-mix(in oklch, var(--memori-primary), var(--memori-surface-contrast-inverse, white) 50%);
|
|
62
|
-
--memori-border-primary: color-mix(in oklch, var(--memori-primary), transparent 70%);
|
|
63
|
-
--memori-border-primary-hover: color-mix(in oklch, var(--memori-primary), transparent 50%);
|
|
64
|
-
--memori-focus-ring-color: color-mix(in oklch, var(--memori-primary), transparent 80%);
|
|
65
|
-
--memori-focus-ring: 0 0 0 3px var(--memori-focus-ring-color);
|
|
66
|
-
--memori-shadow-primary: 0 8px 16px -4px color-mix(in oklch, var(--memori-primary), transparent 70%);
|
|
67
|
-
--memori-skeleton-base: color-mix(in oklch, var(--memori-primary), var(--memori-surface-contrast-inverse, white) 85%);
|
|
68
|
-
--memori-skeleton-highlight: color-mix(in oklch, var(--memori-primary), var(--memori-surface-contrast-inverse, white) 75%);
|
|
69
43
|
--memori-icon-active-bg: color-mix(in oklch, var(--memori-primary) 12%, transparent);
|
|
70
|
-
--memori-icon-recording-bg: color-mix(in oklch, var(--memori-error
|
|
44
|
+
--memori-icon-recording-bg: color-mix(in oklch, var(--memori-error) 12%, transparent);
|
|
71
45
|
}
|
|
72
46
|
}
|
|
73
47
|
|
|
@@ -344,11 +318,15 @@ exports[`renders ZOOMED_FULL_BODY layout unchanged 1`] = `
|
|
|
344
318
|
<div
|
|
345
319
|
class="memori--title-container__content"
|
|
346
320
|
>
|
|
347
|
-
<
|
|
348
|
-
class="memori--title"
|
|
321
|
+
<div
|
|
322
|
+
class="memori--title-row"
|
|
349
323
|
>
|
|
350
|
-
|
|
351
|
-
|
|
324
|
+
<h2
|
|
325
|
+
class="memori--title"
|
|
326
|
+
>
|
|
327
|
+
Memori
|
|
328
|
+
</h2>
|
|
329
|
+
</div>
|
|
352
330
|
<div
|
|
353
331
|
class="memori-expandable memori--description-text memori--description-text--collapsible"
|
|
354
332
|
>
|
|
@@ -408,17 +386,17 @@ exports[`renders ZOOMED_FULL_BODY layout unchanged 1`] = `
|
|
|
408
386
|
>
|
|
409
387
|
<label
|
|
410
388
|
class="memori-combobox__label"
|
|
411
|
-
for="
|
|
412
|
-
id="
|
|
389
|
+
for="memori-combobox-1"
|
|
390
|
+
id="memori-combobox-1-label"
|
|
413
391
|
>
|
|
414
392
|
write_and_speak.chatLanguageLabel
|
|
415
393
|
</label>
|
|
416
394
|
<button
|
|
417
395
|
aria-expanded="false"
|
|
418
396
|
aria-haspopup="dialog"
|
|
419
|
-
aria-labelledby="
|
|
397
|
+
aria-labelledby="memori-combobox-1-label"
|
|
420
398
|
class="memori-combobox__trigger"
|
|
421
|
-
id="
|
|
399
|
+
id="memori-combobox-1"
|
|
422
400
|
role="combobox"
|
|
423
401
|
tabindex="0"
|
|
424
402
|
type="button"
|
|
@@ -453,7 +431,7 @@ exports[`renders ZOOMED_FULL_BODY layout unchanged 1`] = `
|
|
|
453
431
|
</button>
|
|
454
432
|
<input
|
|
455
433
|
aria-hidden="true"
|
|
456
|
-
id="base-ui-:
|
|
434
|
+
id="base-ui-:ra:"
|
|
457
435
|
name="user-lang-pref"
|
|
458
436
|
style="overflow: hidden; white-space: nowrap; position: fixed; top: 0px; left: 0px; border: 0px; padding: 0px; width: 1px; height: 1px; margin: -1px;"
|
|
459
437
|
tabindex="-1"
|
|
@@ -522,7 +500,7 @@ exports[`renders ZOOMED_FULL_BODY layout unchanged 1`] = `
|
|
|
522
500
|
>
|
|
523
501
|
<span
|
|
524
502
|
class="memori-tooltip__trigger"
|
|
525
|
-
id="base-ui-:
|
|
503
|
+
id="base-ui-:rd:"
|
|
526
504
|
>
|
|
527
505
|
<button
|
|
528
506
|
aria-label="privacyPolicy"
|
|
@@ -615,7 +593,7 @@ exports[`renders ZOOMED_FULL_BODY layout unchanged 1`] = `
|
|
|
615
593
|
}
|
|
616
594
|
|
|
617
595
|
.cls-2 {
|
|
618
|
-
fill: var(--memori-
|
|
596
|
+
fill: var(--memori-text-color, '#744c99');
|
|
619
597
|
}
|
|
620
598
|
|
|
621
599
|
</style>
|
|
@@ -1,88 +1,115 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Meta,
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
3
|
import { Spin } from '@memori.ai/ui';
|
|
4
4
|
import { memori, tenant, integration } from '../../mocks/data';
|
|
5
5
|
import Memori, { Props } from '../../index';
|
|
6
6
|
import { LayoutProps } from '../MemoriWidget/MemoriWidget';
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
import { withWidgetProviders } from '../../../.storybook/decorators';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Canonical layout matrix — one story per LayoutName (plus Custom + HiddenChat note).
|
|
11
|
+
* Live staging/localhost agents live under `Live/` (see Live/Agents.stories.tsx).
|
|
12
|
+
*/
|
|
13
|
+
const meta = {
|
|
14
|
+
title: 'Layouts',
|
|
15
|
+
component: Memori,
|
|
16
|
+
decorators: [withWidgetProviders],
|
|
15
17
|
parameters: {
|
|
16
18
|
controls: { expanded: true },
|
|
17
19
|
layout: 'fullscreen',
|
|
18
20
|
},
|
|
19
|
-
}
|
|
21
|
+
} satisfies Meta<typeof Memori>;
|
|
20
22
|
|
|
21
23
|
export default meta;
|
|
24
|
+
type Story = StoryObj<typeof meta>;
|
|
22
25
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
DefaultLayout.args = {
|
|
35
|
-
memoriName: 'Layout Storybook',
|
|
36
|
-
ownerUserName: 'Andrea-Patini',
|
|
37
|
-
memoriID: 'ae20fc5a-cc15-4db9-b7dd-2cd4a621b85e',
|
|
38
|
-
ownerUserID: '91dbc9ba-b684-4fbe-9828-b5980af6cda9',
|
|
39
|
-
tenantID: 'aisuru-staging.aclambda.online',
|
|
40
|
-
engineURL: 'https://engine-staging.memori.ai/memori/v2',
|
|
41
|
-
apiURL: 'https://backend-staging.memori.ai/api/v2',
|
|
42
|
-
// baseURL: 'http://localhost:3000',
|
|
43
|
-
layout: 'ZOOMED_FULL_BODY',
|
|
26
|
+
/** Fixture-first base — deterministic sidebar entry for each layout. */
|
|
27
|
+
const fixtureBase: Partial<Props> = {
|
|
28
|
+
memori,
|
|
29
|
+
tenant,
|
|
30
|
+
memoriName: memori.name,
|
|
31
|
+
memoriID: memori.memoriID,
|
|
32
|
+
ownerUserName: 'memoridev',
|
|
33
|
+
tenantID: 'www.aisuru.com',
|
|
34
|
+
engineURL: 'https://engine.memori.ai',
|
|
35
|
+
apiURL: 'https://backend.memori.ai',
|
|
36
|
+
baseURL: 'https://www.aisuru.com',
|
|
44
37
|
uiLang: 'IT',
|
|
45
38
|
spokenLang: 'IT',
|
|
46
|
-
integrationID: '32922e14-24d6-4f5f-a06b-d963da14a658',
|
|
47
39
|
showSettings: true,
|
|
40
|
+
showShare: true,
|
|
48
41
|
};
|
|
49
42
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
43
|
+
/** Default layout = FULLPAGE (not Zoomed). */
|
|
44
|
+
export const FullPage: Story = {
|
|
45
|
+
args: {
|
|
46
|
+
...fixtureBase,
|
|
47
|
+
layout: 'FULLPAGE',
|
|
48
|
+
},
|
|
53
49
|
};
|
|
54
50
|
|
|
55
|
-
export const
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
showSettings: true,
|
|
61
|
-
// memori: memori,
|
|
62
|
-
integration: {
|
|
63
|
-
...integration,
|
|
51
|
+
export const Chat: Story = {
|
|
52
|
+
args: {
|
|
53
|
+
...fixtureBase,
|
|
54
|
+
layout: 'CHAT',
|
|
55
|
+
showUpload: true,
|
|
64
56
|
},
|
|
65
|
-
tenant,
|
|
66
|
-
layout: 'TOTEM',
|
|
67
57
|
};
|
|
68
58
|
|
|
69
|
-
export const
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
59
|
+
export const Totem: Story = {
|
|
60
|
+
args: {
|
|
61
|
+
...fixtureBase,
|
|
62
|
+
layout: 'TOTEM',
|
|
63
|
+
integration: { ...integration },
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export const ZoomedFullBody: Story = {
|
|
68
|
+
args: {
|
|
69
|
+
...fixtureBase,
|
|
70
|
+
layout: 'ZOOMED_FULL_BODY',
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export const WebsiteAssistant: Story = {
|
|
75
|
+
args: {
|
|
76
|
+
...fixtureBase,
|
|
77
|
+
layout: 'WEBSITE_ASSISTANT',
|
|
78
|
+
multilingual: true,
|
|
79
|
+
integration: {
|
|
80
|
+
...integration,
|
|
81
|
+
customData: JSON.stringify({
|
|
82
|
+
textColor: '#2a2a2a',
|
|
83
|
+
buttonBgColor: '#653165',
|
|
84
|
+
buttonTextColor: '#ffffff',
|
|
85
|
+
blurBackground: true,
|
|
86
|
+
innerBgColor: 'light',
|
|
87
|
+
innerBgAlpha: 0.8,
|
|
88
|
+
multilanguage: true,
|
|
89
|
+
avatar: 'readyplayerme',
|
|
90
|
+
avatarURL:
|
|
91
|
+
'https://assets.memori.ai/api/v2/asset/b791f77c-1a94-4272-829e-eca82fcc62b7.glb',
|
|
92
|
+
}),
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
export const WebsiteAssistantWithout3DAvatar: Story = {
|
|
98
|
+
args: {
|
|
99
|
+
...WebsiteAssistant.args,
|
|
100
|
+
avatar3dHidden: true,
|
|
101
|
+
},
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
/** Collapsed / FAB entry point for HIDDEN_CHAT. */
|
|
105
|
+
export const HiddenChat: Story = {
|
|
106
|
+
args: {
|
|
107
|
+
...fixtureBase,
|
|
108
|
+
layout: 'HIDDEN_CHAT',
|
|
109
|
+
},
|
|
79
110
|
};
|
|
80
111
|
|
|
81
112
|
const CustomLayout: React.FC<LayoutProps> = ({
|
|
82
|
-
Header,
|
|
83
|
-
headerProps,
|
|
84
|
-
Avatar,
|
|
85
|
-
avatarProps,
|
|
86
113
|
Chat,
|
|
87
114
|
chatProps,
|
|
88
115
|
StartPanel,
|
|
@@ -97,10 +124,11 @@ const CustomLayout: React.FC<LayoutProps> = ({
|
|
|
97
124
|
<>
|
|
98
125
|
{integrationStyle}
|
|
99
126
|
{integrationBackground}
|
|
100
|
-
|
|
101
|
-
|
|
127
|
+
<Spin
|
|
128
|
+
spinning={loading}
|
|
129
|
+
className="memori-mycustom-layout"
|
|
130
|
+
>
|
|
102
131
|
{poweredBy}
|
|
103
|
-
|
|
104
132
|
<div className="memori-mycustom-layout--controls">
|
|
105
133
|
{sessionId && hasUserActivatedSpeak && Chat && chatProps ? (
|
|
106
134
|
<Chat {...chatProps} />
|
|
@@ -112,121 +140,10 @@ const CustomLayout: React.FC<LayoutProps> = ({
|
|
|
112
140
|
</>
|
|
113
141
|
);
|
|
114
142
|
|
|
115
|
-
export const Custom =
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
showSettings: true,
|
|
121
|
-
memori: memori,
|
|
122
|
-
tenant,
|
|
123
|
-
layout: 'FULLPAGE',
|
|
124
|
-
customLayout: CustomLayout,
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
export const WebsiteAssistant2 = Template.bind({});
|
|
128
|
-
WebsiteAssistant2.args = {
|
|
129
|
-
memoriName: 'Marconi Express',
|
|
130
|
-
ownerUserName: 'exmita',
|
|
131
|
-
memoriID: '1755979f-28f1-45d1-8f41-bb34e1f7756b',
|
|
132
|
-
ownerUserID: '3194fcd3-040b-4d5e-a925-691911fb1177',
|
|
133
|
-
tenantID: 'exmachina.aclambda.online',
|
|
134
|
-
engineURL: 'https://engine.memori.ai',
|
|
135
|
-
apiURL: 'https://backend.memori.ai',
|
|
136
|
-
baseURL: 'https://exmachina.aclambda.online',
|
|
137
|
-
uiLang: 'IT',
|
|
138
|
-
avatar3dHidden: true,
|
|
139
|
-
spokenLang: 'IT',
|
|
140
|
-
layout: 'WEBSITE_ASSISTANT',
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
export const WebsiteAssistant3 = Template.bind({});
|
|
144
|
-
WebsiteAssistant3.args = {
|
|
145
|
-
memoriName: 'Layout Storybook',
|
|
146
|
-
ownerUserName: 'Andrea-Patini',
|
|
147
|
-
memoriID: 'ae20fc5a-cc15-4db9-b7dd-2cd4a621b85e',
|
|
148
|
-
ownerUserID: '91dbc9ba-b684-4fbe-9828-b5980af6cda9',
|
|
149
|
-
tenantID: 'aisuru-staging.aclambda.online',
|
|
150
|
-
engineURL: 'https://engine-staging.memori.ai/memori/v2',
|
|
151
|
-
apiURL: 'https://backend-staging.memori.ai/api/v2',
|
|
152
|
-
baseURL: 'http://localhost:3000',
|
|
153
|
-
layout: 'WEBSITE_ASSISTANT',
|
|
154
|
-
avatar3dHidden: true,
|
|
155
|
-
uiLang: 'IT',
|
|
156
|
-
spokenLang: 'IT',
|
|
157
|
-
showOnlyLastMessages: true,
|
|
158
|
-
integrationID: '716f4728-919c-4015-aae1-88998a081c6f',
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
export const WebsiteAssistant = Template.bind({});
|
|
162
|
-
WebsiteAssistant.args = {
|
|
163
|
-
uiLang: 'EN',
|
|
164
|
-
showShare: false,
|
|
165
|
-
showSettings: true,
|
|
166
|
-
memori: memori,
|
|
167
|
-
tenant,
|
|
168
|
-
layout: 'WEBSITE_ASSISTANT',
|
|
169
|
-
memoriName: 'Memori',
|
|
170
|
-
memoriID: '25ced51c-3520-41af-8bbe-222d861b8e32',
|
|
171
|
-
ownerUserName: 'memoridev',
|
|
172
|
-
tenantID: 'www.aisuru.com',
|
|
173
|
-
apiURL: 'https://backend.memori.ai',
|
|
174
|
-
baseURL: 'https://www.aisuru.com',
|
|
175
|
-
spokenLang: 'EN',
|
|
176
|
-
context: {
|
|
177
|
-
SOURCE: 'WEBSITE',
|
|
178
|
-
PATH: '/en/',
|
|
179
|
-
},
|
|
180
|
-
multilingual: true,
|
|
181
|
-
integrationID: 'cb3c4776-7f0b-4f97-a773-c32a5d7a3bf1',
|
|
182
|
-
integration: {
|
|
183
|
-
...integration,
|
|
184
|
-
customData: JSON.stringify({
|
|
185
|
-
textColor: '#2a2a2a',
|
|
186
|
-
buttonBgColor: '#653165',
|
|
187
|
-
buttonTextColor: '#ffffff',
|
|
188
|
-
blurBackground: true,
|
|
189
|
-
innerBgColor: 'light',
|
|
190
|
-
innerBgAlpha: 0.8,
|
|
191
|
-
multilanguage: true,
|
|
192
|
-
avatar: 'readyplayerme',
|
|
193
|
-
avatarURL:
|
|
194
|
-
'https://assets.memori.ai/api/v2/asset/b791f77c-1a94-4272-829e-eca82fcc62b7.glb',
|
|
195
|
-
}),
|
|
143
|
+
export const Custom: Story = {
|
|
144
|
+
args: {
|
|
145
|
+
...fixtureBase,
|
|
146
|
+
layout: 'FULLPAGE',
|
|
147
|
+
customLayout: CustomLayout,
|
|
196
148
|
},
|
|
197
149
|
};
|
|
198
|
-
|
|
199
|
-
export const WebsiteAssistantWithout3DAvatar = Template.bind({});
|
|
200
|
-
WebsiteAssistantWithout3DAvatar.args = {
|
|
201
|
-
...WebsiteAssistant.args,
|
|
202
|
-
avatar3dHidden: true,
|
|
203
|
-
};
|
|
204
|
-
|
|
205
|
-
export const HiddenChat = Template.bind({});
|
|
206
|
-
HiddenChat.args = {
|
|
207
|
-
...DefaultLayout.args,
|
|
208
|
-
uiLang: 'it',
|
|
209
|
-
showShare: true,
|
|
210
|
-
showSettings: true,
|
|
211
|
-
memori: memori,
|
|
212
|
-
tenant,
|
|
213
|
-
layout: 'HIDDEN_CHAT',
|
|
214
|
-
};
|
|
215
|
-
|
|
216
|
-
export const ZoomedFullBody = Template.bind({});
|
|
217
|
-
ZoomedFullBody.args = {
|
|
218
|
-
...DefaultLayout.args,
|
|
219
|
-
memoriName: 'Layout Storybook',
|
|
220
|
-
ownerUserName: 'Andrea-Patini',
|
|
221
|
-
memoriID: 'ae20fc5a-cc15-4db9-b7dd-2cd4a621b85e',
|
|
222
|
-
ownerUserID: '91dbc9ba-b684-4fbe-9828-b5980af6cda9',
|
|
223
|
-
tenantID: 'aisuru-staging.aclambda.online',
|
|
224
|
-
engineURL: 'https://engine-staging.memori.ai/memori/v2',
|
|
225
|
-
apiURL: 'https://backend-staging.memori.ai/api/v2',
|
|
226
|
-
// baseURL: 'http://localhost:3000',
|
|
227
|
-
layout: 'ZOOMED_FULL_BODY',
|
|
228
|
-
uiLang: 'IT',
|
|
229
|
-
spokenLang: 'IT',
|
|
230
|
-
integrationID: '32922e14-24d6-4f5f-a06b-d963da14a658',
|
|
231
|
-
showSettings: true,
|
|
232
|
-
};
|