@memori.ai/memori-react 8.10.1 → 8.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +66 -0
- package/dist/components/AgeVerificationModal/AgeVerificationModal.css +41 -14
- package/dist/components/AgeVerificationModal/AgeVerificationModal.js +2 -2
- package/dist/components/AgeVerificationModal/AgeVerificationModal.js.map +1 -1
- package/dist/components/Auth/Auth.js +36 -8
- package/dist/components/Auth/Auth.js.map +1 -1
- package/dist/components/Avatar/AvatarView/AvatarComponent/positionControls/positionControls.css +2 -2
- package/dist/components/Chat/Chat.js +2 -2
- package/dist/components/Chat/Chat.js.map +1 -1
- package/dist/components/ChatBubble/ChatBubble.css +81 -13
- package/dist/components/ChatBubble/ChatBubble.js +86 -19
- package/dist/components/ChatBubble/ChatBubble.js.map +1 -1
- package/dist/components/ChatHistoryDrawer/ChatHistory.css +5 -1
- package/dist/components/ChatInputs/ChatInputs.d.ts +1 -0
- package/dist/components/ChatInputs/ChatInputs.js +8 -3
- package/dist/components/ChatInputs/ChatInputs.js.map +1 -1
- package/dist/components/DateSelector/DateSelector.css +125 -104
- package/dist/components/DateSelector/DateSelector.d.ts +1 -1
- package/dist/components/DateSelector/DateSelector.js +110 -52
- package/dist/components/DateSelector/DateSelector.js.map +1 -1
- package/dist/components/Header/Header.js +1 -1
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/LoginDrawer/LoginDrawer.css +37 -5
- package/dist/components/LoginDrawer/LoginDrawer.d.ts +1 -2
- package/dist/components/LoginDrawer/LoginDrawer.js +2 -9
- package/dist/components/LoginDrawer/LoginDrawer.js.map +1 -1
- package/dist/components/MediaWidget/MediaItemWidget.js +40 -5
- package/dist/components/MediaWidget/MediaItemWidget.js.map +1 -1
- package/dist/components/MediaWidget/MediaWidget.css +4 -0
- package/dist/components/MemoriArtifactSystem/components/ArtifactActions/ArtifactActions.js +1 -1
- package/dist/components/MemoriArtifactSystem/components/ArtifactActions/ArtifactActions.js.map +1 -1
- package/dist/components/MemoriArtifactSystem/components/ArtifactActions/components/CopyButtonWithDropdown.js +1 -1
- package/dist/components/MemoriArtifactSystem/components/ArtifactActions/components/CopyButtonWithDropdown.js.map +1 -1
- package/dist/components/MemoriArtifactSystem/components/ArtifactActions/components/CopyMenuItem.js +3 -0
- package/dist/components/MemoriArtifactSystem/components/ArtifactActions/components/CopyMenuItem.js.map +1 -1
- 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/ArtifactPreview/ArtifactPreview.css +16 -7
- package/dist/components/MemoriArtifactSystem/components/ArtifactPreview/ArtifactPreview.js +6 -4
- package/dist/components/MemoriArtifactSystem/components/ArtifactPreview/ArtifactPreview.js.map +1 -1
- package/dist/components/MemoriWidget/MemoriWidget.js +69 -25
- package/dist/components/MemoriWidget/MemoriWidget.js.map +1 -1
- package/dist/components/UploadButton/UploadButton.js +2 -0
- package/dist/components/UploadButton/UploadButton.js.map +1 -1
- package/dist/components/UploadButton/UploadImages/UploadImages.js +2 -2
- package/dist/components/UploadButton/UploadImages/UploadImages.js.map +1 -1
- package/dist/components/ui/Drawer.css +8 -0
- package/dist/components/ui/Drawer.d.ts +2 -0
- package/dist/components/ui/Drawer.js +2 -2
- package/dist/components/ui/Drawer.js.map +1 -1
- package/dist/components/ui/Tooltip.css +49 -1
- package/dist/components/ui/Tooltip.d.ts +1 -1
- package/dist/locales/de.json +6 -1
- package/dist/locales/en.json +9 -1
- package/dist/locales/es.json +6 -1
- package/dist/locales/fr.json +5 -1
- package/dist/locales/it.json +8 -1
- package/dist/styles.css +3 -2
- package/esm/components/AgeVerificationModal/AgeVerificationModal.css +41 -14
- package/esm/components/AgeVerificationModal/AgeVerificationModal.js +2 -2
- package/esm/components/AgeVerificationModal/AgeVerificationModal.js.map +1 -1
- package/esm/components/Auth/Auth.js +36 -8
- package/esm/components/Auth/Auth.js.map +1 -1
- package/esm/components/Avatar/AvatarView/AvatarComponent/positionControls/positionControls.css +2 -2
- package/esm/components/Chat/Chat.js +2 -2
- package/esm/components/Chat/Chat.js.map +1 -1
- package/esm/components/ChatBubble/ChatBubble.css +81 -13
- package/esm/components/ChatBubble/ChatBubble.js +87 -20
- package/esm/components/ChatBubble/ChatBubble.js.map +1 -1
- package/esm/components/ChatHistoryDrawer/ChatHistory.css +5 -1
- package/esm/components/ChatInputs/ChatInputs.d.ts +1 -0
- package/esm/components/ChatInputs/ChatInputs.js +8 -3
- package/esm/components/ChatInputs/ChatInputs.js.map +1 -1
- package/esm/components/DateSelector/DateSelector.css +125 -104
- package/esm/components/DateSelector/DateSelector.d.ts +1 -1
- package/esm/components/DateSelector/DateSelector.js +111 -52
- package/esm/components/DateSelector/DateSelector.js.map +1 -1
- package/esm/components/Header/Header.js +1 -1
- package/esm/components/Header/Header.js.map +1 -1
- package/esm/components/LoginDrawer/LoginDrawer.css +37 -5
- package/esm/components/LoginDrawer/LoginDrawer.d.ts +1 -2
- package/esm/components/LoginDrawer/LoginDrawer.js +2 -9
- package/esm/components/LoginDrawer/LoginDrawer.js.map +1 -1
- package/esm/components/MediaWidget/MediaItemWidget.js +40 -5
- package/esm/components/MediaWidget/MediaItemWidget.js.map +1 -1
- package/esm/components/MediaWidget/MediaWidget.css +4 -0
- package/esm/components/MemoriArtifactSystem/components/ArtifactActions/ArtifactActions.js +1 -1
- package/esm/components/MemoriArtifactSystem/components/ArtifactActions/ArtifactActions.js.map +1 -1
- package/esm/components/MemoriArtifactSystem/components/ArtifactActions/components/CopyButtonWithDropdown.js +1 -1
- package/esm/components/MemoriArtifactSystem/components/ArtifactActions/components/CopyButtonWithDropdown.js.map +1 -1
- package/esm/components/MemoriArtifactSystem/components/ArtifactActions/components/CopyMenuItem.js +3 -0
- package/esm/components/MemoriArtifactSystem/components/ArtifactActions/components/CopyMenuItem.js.map +1 -1
- 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/ArtifactPreview/ArtifactPreview.css +16 -7
- package/esm/components/MemoriArtifactSystem/components/ArtifactPreview/ArtifactPreview.js +6 -4
- package/esm/components/MemoriArtifactSystem/components/ArtifactPreview/ArtifactPreview.js.map +1 -1
- package/esm/components/MemoriWidget/MemoriWidget.js +69 -25
- package/esm/components/MemoriWidget/MemoriWidget.js.map +1 -1
- package/esm/components/UploadButton/UploadButton.js +2 -0
- package/esm/components/UploadButton/UploadButton.js.map +1 -1
- package/esm/components/UploadButton/UploadImages/UploadImages.js +2 -2
- package/esm/components/UploadButton/UploadImages/UploadImages.js.map +1 -1
- package/esm/components/ui/Drawer.css +8 -0
- package/esm/components/ui/Drawer.d.ts +2 -0
- package/esm/components/ui/Drawer.js +2 -2
- package/esm/components/ui/Drawer.js.map +1 -1
- package/esm/components/ui/Tooltip.css +49 -1
- package/esm/components/ui/Tooltip.d.ts +1 -1
- package/esm/locales/de.json +6 -1
- package/esm/locales/en.json +9 -1
- package/esm/locales/es.json +6 -1
- package/esm/locales/fr.json +5 -1
- package/esm/locales/it.json +8 -1
- package/esm/styles.css +3 -2
- package/package.json +2 -2
- package/src/components/AgeVerificationModal/AgeVerificationModal.css +41 -14
- package/src/components/AgeVerificationModal/AgeVerificationModal.tsx +3 -1
- package/src/components/Auth/Auth.tsx +55 -11
- package/src/components/Avatar/Avatar.stories.tsx +3 -0
- package/src/components/Avatar/AvatarView/AvatarComponent/positionControls/positionControls.css +2 -2
- package/src/components/Chat/Chat.stories.tsx +16 -2
- package/src/components/Chat/Chat.tsx +2 -1
- package/src/components/Chat/__snapshots__/Chat.test.tsx.snap +1036 -36
- package/src/components/ChatBubble/ChatBubble.css +81 -13
- package/src/components/ChatBubble/ChatBubble.stories.tsx +16 -2
- package/src/components/ChatBubble/ChatBubble.test.tsx +17 -0
- package/src/components/ChatBubble/ChatBubble.tsx +144 -31
- package/src/components/ChatBubble/__snapshots__/ChatBubble.test.tsx.snap +304 -8
- package/src/components/ChatHistoryDrawer/ChatHistory.css +5 -1
- package/src/components/ChatInputs/ChatInputs.tsx +14 -1
- package/src/components/DateSelector/DateSelector.css +125 -104
- package/src/components/DateSelector/DateSelector.stories.tsx +1 -1
- package/src/components/DateSelector/DateSelector.test.tsx +137 -23
- package/src/components/DateSelector/DateSelector.tsx +203 -177
- package/src/components/Header/Header.stories.tsx +5 -1
- package/src/components/Header/Header.tsx +1 -1
- package/src/components/Header/__snapshots__/Header.test.tsx.snap +1 -1
- package/src/components/LoginDrawer/LoginDrawer.css +37 -5
- package/src/components/LoginDrawer/LoginDrawer.stories.tsx +0 -1
- package/src/components/LoginDrawer/LoginDrawer.test.tsx +0 -1
- package/src/components/LoginDrawer/LoginDrawer.tsx +0 -19
- package/src/components/MediaWidget/MediaItemWidget.stories.tsx +69 -0
- package/src/components/MediaWidget/MediaItemWidget.tsx +66 -18
- package/src/components/MediaWidget/MediaWidget.css +4 -0
- package/src/components/MediaWidget/__snapshots__/MediaItemWidget.test.tsx.snap +10 -10
- package/src/components/MediaWidget/__snapshots__/MediaWidget.test.tsx.snap +2 -2
- package/src/components/MemoriArtifactSystem/ArtifactDrawer.stories.tsx +996 -204
- package/src/components/MemoriArtifactSystem/components/ArtifactActions/ArtifactActions.tsx +2 -2
- package/src/components/MemoriArtifactSystem/components/ArtifactActions/components/CopyButtonWithDropdown.tsx +1 -1
- package/src/components/MemoriArtifactSystem/components/ArtifactActions/components/CopyMenuItem.tsx +3 -0
- package/src/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.tsx +56 -54
- package/src/components/MemoriArtifactSystem/components/ArtifactPreview/ArtifactPreview.css +16 -7
- package/src/components/MemoriArtifactSystem/components/ArtifactPreview/ArtifactPreview.tsx +12 -3
- package/src/components/MemoriWidget/MemoriWidget.stories.tsx +6 -3
- package/src/components/MemoriWidget/MemoriWidget.tsx +123 -48
- package/src/components/UploadButton/UploadButton.tsx +2 -0
- package/src/components/UploadButton/UploadImages/UploadImages.tsx +3 -2
- package/src/components/layouts/FullBody/FullBody.stories.tsx +110 -0
- package/src/components/layouts/Totem/Totem.stories.tsx +131 -0
- package/src/components/layouts/ZoomedFullBody/ZoomedFullBody.stories.tsx +131 -0
- package/src/components/layouts/layouts.stories.tsx +55 -508
- package/src/components/ui/Drawer.css +8 -0
- package/src/components/ui/Drawer.tsx +16 -12
- package/src/components/ui/Tooltip.css +49 -1
- package/src/components/ui/Tooltip.tsx +1 -1
- package/src/index.stories.tsx +13 -320
- package/src/locales/de.json +6 -1
- package/src/locales/en.json +9 -1
- package/src/locales/es.json +6 -1
- package/src/locales/fr.json +5 -1
- package/src/locales/it.json +8 -1
- package/src/mocks/data.ts +4 -2
- package/src/styles.css +3 -2
- package/src/components/SignupForm/SignupForm.test.tsx +0 -40
- package/src/components/SignupForm/SignupForm.tsx +0 -457
- package/src/components/SignupForm/__snapshots__/SignupForm.test.tsx.snap +0 -247
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Meta, Story } from '@storybook/react';
|
|
3
|
+
import { tenant } from '../../../mocks/data';
|
|
4
|
+
import { Props } from '../../MemoriWidget/MemoriWidget';
|
|
5
|
+
import Memori from '../../../index';
|
|
6
|
+
import I18nWrapper from '../../../I18nWrapper';
|
|
7
|
+
import { VisemeProvider } from '../../../context/visemeContext';
|
|
8
|
+
import { ArtifactProvider } from '../../MemoriArtifactSystem/context/ArtifactContext';
|
|
9
|
+
|
|
10
|
+
const meta: Meta = {
|
|
11
|
+
title: 'General/Layouts/FullBody',
|
|
12
|
+
component: (args: Props) => <Memori {...args} />,
|
|
13
|
+
argTypes: {},
|
|
14
|
+
parameters: {
|
|
15
|
+
controls: { expanded: true },
|
|
16
|
+
layout: 'fullscreen',
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export default meta;
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
const Template: Story<Props> = args => (
|
|
24
|
+
<I18nWrapper>
|
|
25
|
+
<ArtifactProvider>
|
|
26
|
+
<VisemeProvider>
|
|
27
|
+
<Memori {...args} />
|
|
28
|
+
</VisemeProvider>
|
|
29
|
+
</ArtifactProvider>
|
|
30
|
+
</I18nWrapper>
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
const DefaultLayout = Template.bind({});
|
|
34
|
+
DefaultLayout.args = {
|
|
35
|
+
emoriName: '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
|
+
layout: 'FULL_CHAT',
|
|
43
|
+
uiLang: 'IT',
|
|
44
|
+
spokenLang: 'IT',
|
|
45
|
+
integrationID: '0b1256c1-530c-4e67-aef8-36667c8887bb',
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const baseIntegration = {
|
|
49
|
+
integrationID: '0b1256c1-530c-4e67-aef8-36667c8887bb',
|
|
50
|
+
memoriID: '157860e8-f014-43b3-a7c5-fb4a08c87025',
|
|
51
|
+
type: 'LANDING_EXPERIENCE',
|
|
52
|
+
state: 'NEW',
|
|
53
|
+
deviceEmails: null,
|
|
54
|
+
invocationText: null,
|
|
55
|
+
jobID: null,
|
|
56
|
+
publish: true,
|
|
57
|
+
creationTimestamp: '2022-06-13T14:44:52.833573Z',
|
|
58
|
+
lastChangeTimestamp: '2022-06-13T14:44:52.833573Z',
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export const FullBodyWithFullBodyAvatar = Template.bind({});
|
|
62
|
+
FullBodyWithFullBodyAvatar.args = {
|
|
63
|
+
...DefaultLayout.args,
|
|
64
|
+
avatar3DURL:
|
|
65
|
+
'https://assets-staging.memori.ai/api/v2/asset/c0bb0d40-aebf-4e58-bfa0-45a4d7935153.glb#1763646903757',
|
|
66
|
+
integration: {
|
|
67
|
+
...baseIntegration,
|
|
68
|
+
customData: JSON.stringify({
|
|
69
|
+
textColor: '#000000',
|
|
70
|
+
buttonBgColor: '#007eb6',
|
|
71
|
+
buttonTextColor: '#ffffff',
|
|
72
|
+
blurBackground: true,
|
|
73
|
+
innerBgColor: 'light',
|
|
74
|
+
multilanguage: true,
|
|
75
|
+
avatar: 'readyplayerme-full',
|
|
76
|
+
avatarURL:
|
|
77
|
+
'https://assets-staging.memori.ai/api/v2/asset/c0bb0d40-aebf-4e58-bfa0-45a4d7935153.glb#1763646903757',
|
|
78
|
+
name: 'Layout Storybook',
|
|
79
|
+
showShare: true,
|
|
80
|
+
}),
|
|
81
|
+
},
|
|
82
|
+
tenant,
|
|
83
|
+
layout: 'FULLPAGE',
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export const FullBodyWithHalfBodyAvatar = Template.bind({});
|
|
87
|
+
FullBodyWithHalfBodyAvatar.args = {
|
|
88
|
+
...DefaultLayout.args,
|
|
89
|
+
avatar3DURL:
|
|
90
|
+
'https://assets.memori.ai/api/v2/asset/acc38f4a-e4c3-4a21-9818-c3d1672820ea.glb#1762875973109',
|
|
91
|
+
integration: {
|
|
92
|
+
...baseIntegration,
|
|
93
|
+
customData: JSON.stringify({
|
|
94
|
+
textColor: '#000000',
|
|
95
|
+
buttonBgColor: '#007eb6',
|
|
96
|
+
buttonTextColor: '#ffffff',
|
|
97
|
+
blurBackground: true,
|
|
98
|
+
innerBgColor: 'light',
|
|
99
|
+
multilanguage: true,
|
|
100
|
+
avatar: 'readyplayerme',
|
|
101
|
+
avatarURL:
|
|
102
|
+
'https://assets.memori.ai/api/v2/asset/acc38f4a-e4c3-4a21-9818-c3d1672820ea.glb#1762875973109',
|
|
103
|
+
name: 'Layout Storybook',
|
|
104
|
+
showShare: true,
|
|
105
|
+
}),
|
|
106
|
+
},
|
|
107
|
+
tenant,
|
|
108
|
+
layout: 'FULLPAGE',
|
|
109
|
+
};
|
|
110
|
+
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Meta, Story } from '@storybook/react';
|
|
3
|
+
import { memori, tenant } from '../../../mocks/data';
|
|
4
|
+
import { Props } from '../../MemoriWidget/MemoriWidget';
|
|
5
|
+
import Memori from '../../../index';
|
|
6
|
+
import I18nWrapper from '../../../I18nWrapper';
|
|
7
|
+
import { VisemeProvider } from '../../../context/visemeContext';
|
|
8
|
+
import { ArtifactProvider } from '../../MemoriArtifactSystem/context/ArtifactContext';
|
|
9
|
+
|
|
10
|
+
const meta: Meta = {
|
|
11
|
+
title: 'General/Layouts/Totem',
|
|
12
|
+
component: (args: Props) => <Memori {...args} engineURL="https://engine.memori.ai" apiURL="https://backend.memori.ai" baseURL="https://www.aisuru.com" />,
|
|
13
|
+
argTypes: {},
|
|
14
|
+
parameters: {
|
|
15
|
+
controls: { expanded: true },
|
|
16
|
+
layout: 'fullscreen',
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export default meta;
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
const Template: Story<Props> = args => (
|
|
24
|
+
<I18nWrapper>
|
|
25
|
+
<ArtifactProvider>
|
|
26
|
+
<VisemeProvider>
|
|
27
|
+
<Memori {...args} />
|
|
28
|
+
</VisemeProvider>
|
|
29
|
+
</ArtifactProvider>
|
|
30
|
+
</I18nWrapper>
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
const DefaultLayout = Template.bind({});
|
|
34
|
+
DefaultLayout.args = {
|
|
35
|
+
emoriName: '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
|
+
layout: 'FULL_CHAT',
|
|
43
|
+
uiLang: 'IT',
|
|
44
|
+
spokenLang: 'IT',
|
|
45
|
+
integrationID: '0b1256c1-530c-4e67-aef8-36667c8887bb',
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const baseIntegration = {
|
|
49
|
+
integrationID: '0b1256c1-530c-4e67-aef8-36667c8887bb',
|
|
50
|
+
memoriID: '157860e8-f014-43b3-a7c5-fb4a08c87025',
|
|
51
|
+
type: 'LANDING_EXPERIENCE',
|
|
52
|
+
state: 'NEW',
|
|
53
|
+
deviceEmails: null,
|
|
54
|
+
invocationText: null,
|
|
55
|
+
jobID: null,
|
|
56
|
+
publish: true,
|
|
57
|
+
creationTimestamp: '2022-06-13T14:44:52.833573Z',
|
|
58
|
+
lastChangeTimestamp: '2022-06-13T14:44:52.833573Z',
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export const TotemWithFullBodyAvatar = Template.bind({});
|
|
62
|
+
TotemWithFullBodyAvatar.args = {
|
|
63
|
+
...DefaultLayout.args,
|
|
64
|
+
avatar3DURL:
|
|
65
|
+
'https://assets-staging.memori.ai/api/v2/asset/c0bb0d40-aebf-4e58-bfa0-45a4d7935153.glb#1763646903757',
|
|
66
|
+
integration: {
|
|
67
|
+
...baseIntegration,
|
|
68
|
+
customData: JSON.stringify({
|
|
69
|
+
textColor: '#000000',
|
|
70
|
+
buttonBgColor: '#007eb6',
|
|
71
|
+
buttonTextColor: '#ffffff',
|
|
72
|
+
blurBackground: true,
|
|
73
|
+
innerBgColor: 'light',
|
|
74
|
+
multilanguage: true,
|
|
75
|
+
avatar: 'readyplayerme-full',
|
|
76
|
+
avatarURL:
|
|
77
|
+
'https://assets-staging.memori.ai/api/v2/asset/c0bb0d40-aebf-4e58-bfa0-45a4d7935153.glb#1763646903757',
|
|
78
|
+
name: 'Layout Storybook',
|
|
79
|
+
showShare: true,
|
|
80
|
+
}),
|
|
81
|
+
},
|
|
82
|
+
tenant,
|
|
83
|
+
layout: 'TOTEM',
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export const TotemWithHalfBodyAvatar = Template.bind({});
|
|
87
|
+
TotemWithHalfBodyAvatar.args = {
|
|
88
|
+
...DefaultLayout.args,
|
|
89
|
+
avatar3DURL:
|
|
90
|
+
'https://assets.memori.ai/api/v2/asset/acc38f4a-e4c3-4a21-9818-c3d1672820ea.glb#1762875973109',
|
|
91
|
+
integration: {
|
|
92
|
+
...baseIntegration,
|
|
93
|
+
customData: JSON.stringify({
|
|
94
|
+
textColor: '#000000',
|
|
95
|
+
buttonBgColor: '#007eb6',
|
|
96
|
+
buttonTextColor: '#ffffff',
|
|
97
|
+
blurBackground: true,
|
|
98
|
+
innerBgColor: 'light',
|
|
99
|
+
multilanguage: true,
|
|
100
|
+
avatar: 'readyplayerme',
|
|
101
|
+
avatarURL:
|
|
102
|
+
'https://assets.memori.ai/api/v2/asset/acc38f4a-e4c3-4a21-9818-c3d1672820ea.glb#1762875973109',
|
|
103
|
+
name: 'Layout Storybook',
|
|
104
|
+
showShare: true,
|
|
105
|
+
}),
|
|
106
|
+
},
|
|
107
|
+
tenant,
|
|
108
|
+
layout: 'TOTEM',
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
export const TotemWithDefaultTotem = Template.bind({});
|
|
112
|
+
TotemWithDefaultTotem.args = {
|
|
113
|
+
...DefaultLayout.args,
|
|
114
|
+
integration: {
|
|
115
|
+
...baseIntegration,
|
|
116
|
+
customData: JSON.stringify({
|
|
117
|
+
textColor: '#000000',
|
|
118
|
+
buttonBgColor: '#007eb6',
|
|
119
|
+
buttonTextColor: '#ffffff',
|
|
120
|
+
blurBackground: true,
|
|
121
|
+
innerBgColor: 'light',
|
|
122
|
+
multilanguage: true,
|
|
123
|
+
avatar: 'default_totem',
|
|
124
|
+
name: 'Layout Storybook',
|
|
125
|
+
showShare: true,
|
|
126
|
+
}),
|
|
127
|
+
},
|
|
128
|
+
tenant,
|
|
129
|
+
layout: 'TOTEM',
|
|
130
|
+
};
|
|
131
|
+
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Meta, Story } from '@storybook/react';
|
|
3
|
+
import { memori, tenant } from '../../../mocks/data';
|
|
4
|
+
import { Props } from '../../MemoriWidget/MemoriWidget';
|
|
5
|
+
import Memori from '../../../index';
|
|
6
|
+
import I18nWrapper from '../../../I18nWrapper';
|
|
7
|
+
import { VisemeProvider } from '../../../context/visemeContext';
|
|
8
|
+
import { ArtifactProvider } from '../../MemoriArtifactSystem/context/ArtifactContext';
|
|
9
|
+
|
|
10
|
+
const meta: Meta = {
|
|
11
|
+
title: 'General/Layouts/ZoomedFullBody',
|
|
12
|
+
component: (args: Props) => <Memori {...args} engineURL="https://engine.memori.ai" apiURL="https://backend.memori.ai" baseURL="https://www.aisuru.com" />,
|
|
13
|
+
argTypes: {},
|
|
14
|
+
parameters: {
|
|
15
|
+
controls: { expanded: true },
|
|
16
|
+
layout: 'fullscreen',
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export default meta;
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
const Template: Story<Props> = args => (
|
|
24
|
+
<I18nWrapper>
|
|
25
|
+
<ArtifactProvider>
|
|
26
|
+
<VisemeProvider>
|
|
27
|
+
<Memori {...args} />
|
|
28
|
+
</VisemeProvider>
|
|
29
|
+
</ArtifactProvider>
|
|
30
|
+
</I18nWrapper>
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
const DefaultLayout = Template.bind({});
|
|
34
|
+
DefaultLayout.args = {
|
|
35
|
+
emoriName: '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
|
+
layout: 'FULL_CHAT',
|
|
43
|
+
uiLang: 'IT',
|
|
44
|
+
spokenLang: 'IT',
|
|
45
|
+
integrationID: '0b1256c1-530c-4e67-aef8-36667c8887bb',
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const baseIntegration = {
|
|
49
|
+
integrationID: '0b1256c1-530c-4e67-aef8-36667c8887bb',
|
|
50
|
+
memoriID: '157860e8-f014-43b3-a7c5-fb4a08c87025',
|
|
51
|
+
type: 'LANDING_EXPERIENCE',
|
|
52
|
+
state: 'NEW',
|
|
53
|
+
deviceEmails: null,
|
|
54
|
+
invocationText: null,
|
|
55
|
+
jobID: null,
|
|
56
|
+
publish: true,
|
|
57
|
+
creationTimestamp: '2022-06-13T14:44:52.833573Z',
|
|
58
|
+
lastChangeTimestamp: '2022-06-13T14:44:52.833573Z',
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export const ZoomedFullBodyWithFullBodyAvatar = Template.bind({});
|
|
62
|
+
ZoomedFullBodyWithFullBodyAvatar.args = {
|
|
63
|
+
...DefaultLayout.args,
|
|
64
|
+
avatar3DURL:
|
|
65
|
+
'https://assets-staging.memori.ai/api/v2/asset/c0bb0d40-aebf-4e58-bfa0-45a4d7935153.glb#1763646903757',
|
|
66
|
+
integration: {
|
|
67
|
+
...baseIntegration,
|
|
68
|
+
customData: JSON.stringify({
|
|
69
|
+
textColor: '#000000',
|
|
70
|
+
buttonBgColor: '#007eb6',
|
|
71
|
+
buttonTextColor: '#ffffff',
|
|
72
|
+
blurBackground: true,
|
|
73
|
+
innerBgColor: 'light',
|
|
74
|
+
multilanguage: true,
|
|
75
|
+
avatar: 'readyplayerme-full',
|
|
76
|
+
avatarURL:
|
|
77
|
+
'https://assets-staging.memori.ai/api/v2/asset/c0bb0d40-aebf-4e58-bfa0-45a4d7935153.glb#1763646903757',
|
|
78
|
+
name: 'Layout Storybook',
|
|
79
|
+
showShare: true,
|
|
80
|
+
}),
|
|
81
|
+
},
|
|
82
|
+
tenant,
|
|
83
|
+
layout: 'ZOOMED_FULL_BODY',
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export const ZoomedFullBodyWithHalfBodyAvatar = Template.bind({});
|
|
87
|
+
ZoomedFullBodyWithHalfBodyAvatar.args = {
|
|
88
|
+
...DefaultLayout.args,
|
|
89
|
+
avatar3DURL:
|
|
90
|
+
'https://assets.memori.ai/api/v2/asset/acc38f4a-e4c3-4a21-9818-c3d1672820ea.glb#1762875973109',
|
|
91
|
+
integration: {
|
|
92
|
+
...baseIntegration,
|
|
93
|
+
customData: JSON.stringify({
|
|
94
|
+
textColor: '#000000',
|
|
95
|
+
buttonBgColor: '#007eb6',
|
|
96
|
+
buttonTextColor: '#ffffff',
|
|
97
|
+
blurBackground: true,
|
|
98
|
+
innerBgColor: 'light',
|
|
99
|
+
multilanguage: true,
|
|
100
|
+
avatar: 'readyplayerme',
|
|
101
|
+
avatarURL:
|
|
102
|
+
'https://assets.memori.ai/api/v2/asset/acc38f4a-e4c3-4a21-9818-c3d1672820ea.glb#1762875973109',
|
|
103
|
+
name: 'Layout Storybook',
|
|
104
|
+
showShare: true,
|
|
105
|
+
}),
|
|
106
|
+
},
|
|
107
|
+
tenant,
|
|
108
|
+
layout: 'ZOOMED_FULL_BODY',
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
export const ZoomedFullBodyWithDefaultTotem = Template.bind({});
|
|
112
|
+
ZoomedFullBodyWithDefaultTotem.args = {
|
|
113
|
+
...DefaultLayout.args,
|
|
114
|
+
integration: {
|
|
115
|
+
...baseIntegration,
|
|
116
|
+
customData: JSON.stringify({
|
|
117
|
+
textColor: '#000000',
|
|
118
|
+
buttonBgColor: '#007eb6',
|
|
119
|
+
buttonTextColor: '#ffffff',
|
|
120
|
+
blurBackground: true,
|
|
121
|
+
innerBgColor: 'light',
|
|
122
|
+
multilanguage: true,
|
|
123
|
+
avatar: 'default_totem',
|
|
124
|
+
name: 'Layout Storybook',
|
|
125
|
+
showShare: true,
|
|
126
|
+
}),
|
|
127
|
+
},
|
|
128
|
+
tenant,
|
|
129
|
+
layout: 'ZOOMED_FULL_BODY',
|
|
130
|
+
};
|
|
131
|
+
|