@memori.ai/memori-react 8.10.1 → 8.11.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.
@@ -1,22 +1,18 @@
1
1
  import React from 'react';
2
2
  import { Meta, Story } from '@storybook/react';
3
3
  import { memori, tenant, integration } from '../../mocks/data';
4
- import Memori, { LayoutProps, Props } from '../MemoriWidget/MemoriWidget';
4
+ import { LayoutProps, Props } from '../MemoriWidget/MemoriWidget';
5
+ import Memori from '../../index';
5
6
  import I18nWrapper from '../../I18nWrapper';
6
7
  import Spin from '../ui/Spin';
7
8
  import { VisemeProvider } from '../../context/visemeContext';
8
9
  import { ArtifactProvider } from '../MemoriArtifactSystem/context/ArtifactContext';
9
10
 
11
+
10
12
  const meta: Meta = {
11
13
  title: 'General/Layouts',
12
- component: Memori,
13
- argTypes: {
14
- AZURE_COGNITIVE_SERVICES_TTS_KEY: {
15
- control: {
16
- type: 'text',
17
- },
18
- },
19
- },
14
+ component: (args: Props) => <Memori {...args} engineURL="https://engine.memori.ai" apiURL="https://backend.memori.ai" baseURL="https://www.aisuru.com" />,
15
+ argTypes: {},
20
16
  parameters: {
21
17
  controls: { expanded: true },
22
18
  layout: 'fullscreen',
@@ -25,241 +21,71 @@ const meta: Meta = {
25
21
 
26
22
  export default meta;
27
23
 
24
+
28
25
  const Template: Story<Props> = args => (
29
26
  <I18nWrapper>
30
- <ArtifactProvider >
31
- <VisemeProvider>
32
- <Memori {...args} />
33
- </VisemeProvider>
27
+ <ArtifactProvider>
28
+ <VisemeProvider>
29
+ <Memori {...args} />
30
+ </VisemeProvider>
34
31
  </ArtifactProvider>
35
32
  </I18nWrapper>
36
33
  );
37
- // By passing using the Args format for exported stories, you can control the props for a component for reuse in a test
38
- // https://storybook.js.org/docs/react/workflows/unit-testing
34
+
35
+ const DefaultLayout = Template.bind({});
36
+ DefaultLayout.args = {
37
+ memoriName: 'Layout Storybook',
38
+ ownerUserName: 'andrea.patini',
39
+ memoriID: '157860e8-f014-43b3-a7c5-fb4a08c87025',
40
+ ownerUserID: '95753bbe-9e88-4799-ae35-dc060bc11c48',
41
+ tenantID: 'www.aisuru.com',
42
+ engineURL: 'https://engine.memori.ai/memori/v2',
43
+ apiURL: 'https://backend.memori.ai/api/v2',
44
+ baseURL: 'https://www.aisuru.com',
45
+ layout: 'FULL_CHAT',
46
+ uiLang: 'IT',
47
+ spokenLang: 'IT',
48
+ integrationID: '0b1256c1-530c-4e67-aef8-36667c8887bb',
49
+ autoStart: false,
50
+ sessionID: '' as string | undefined,
51
+
52
+ };
53
+
54
+
39
55
  export const Default = Template.bind({});
40
56
  Default.args = {
41
- uiLang: 'it',
42
- showShare: true,
43
- showSettings: true,
44
- memori,
45
- tenant,
46
- layout: 'FULLPAGE',
57
+ ...DefaultLayout.args,
47
58
  };
48
59
 
49
- export const FullPage = Template.bind({});
50
- FullPage.args = {
51
- uiLang: 'it',
52
- showShare: true,
53
- showSettings: true,
54
- memori,
55
- tenant,
56
- layout: 'FULLPAGE',
57
- };
60
+
58
61
 
59
62
  export const Totem = Template.bind({});
60
63
  Totem.args = {
64
+ ...DefaultLayout.args,
61
65
  uiLang: 'it',
62
66
  showShare: true,
63
67
  showSettings: true,
64
- // memori,
65
- // tenant,
66
- memori: {
67
- memoriID: '6573844d-a7cd-47ef-9e78-840d82020c21',
68
- name: 'Nicola',
69
- password: null,
70
- recoveryTokens: null,
71
- newPassword: null,
72
- ownerUserID: null,
73
- ownerUserName: 'nzambello',
74
- ownerTenantName: 'aisuru.com',
75
- memoriConfigurationID: 'fd10bb42-98d9-4c08-8e02-2b08bd4e4975',
76
- description:
77
- 'Sono Nicola Zambello, sviluppatore e attivista per un web etico e sostenibile',
78
- completionDescription: null,
79
- engineMemoriID: '9b0a2913-d3d8-4e98-a49d-6e1c99479e1b',
80
- isOwner: false,
81
- isGiver: false,
82
- isReceiver: false,
83
- giverTag: null,
84
- giverPIN: null,
85
- privacyType: 'PUBLIC',
86
- secretToken: null,
87
- minimumNumberOfRecoveryTokens: null,
88
- totalNumberOfRecoveryTokens: null,
89
- sentInvitations: [],
90
- receivedInvitations: [],
91
- integrations: [
92
- {
93
- integrationID: '62de8c99-0ac2-4cbe-bd95-a39ad7dc6b32',
94
- memoriID: '6573844d-a7cd-47ef-9e78-840d82020c21',
95
- type: 'LANDING_EXPERIENCE',
96
- state: 'NEW',
97
- deviceEmails: null,
98
- invocationText: null,
99
- jobID: null,
100
- customData:
101
- '{"textColor":"#000000","buttonBgColor":"#007eb6","buttonTextColor":"#ffffff","globalBackground":"https://assets.memori.ai/api/v2/asset/cade3b9c-0437-4342-b2bd-8db9c2a3a20e.png","blurBackground":true,"innerBgColor":"light","multilanguage":true,"avatar":"readyplayerme","avatarURL":"https://assets.memori.ai/api/v2/asset/893c41df-7619-436d-9e86-fe1d406fc933.glb#1681736752156","name":"Pagina pubblica","contextVars":"ANIMALE:CANE","personTag":"☠️","personPIN":"666666","personName":"Pirata","showShare":true,"avatarFullBodyURL":"https://models.readyplayer.me/63b55751f17e295642bf07a2.glb"}',
102
- resources: [],
103
- publish: true,
104
- creationTimestamp: '2022-06-13T14:44:52.833573Z',
105
- lastChangeTimestamp: '2022-06-13T14:44:52.833573Z',
106
- },
107
- ],
108
- avatarURL:
109
- 'https://assets.memori.ai/api/v2/asset/3049582f-db5f-452c-913d-e4340d4afd0a.png',
110
- coverURL:
111
- 'https://assets.memori.ai/api/v2/asset/e9bb9f6d-8f34-45ab-af9e-6d630d9a51a8.png',
112
- avatar3DURL:
113
- 'https://assets.memori.ai/api/v2/asset/893c41df-7619-436d-9e86-fe1d406fc933.glb',
114
- avatarOriginal3DURL:
115
- 'https://d1a370nemizbjq.cloudfront.net/c7c80a1d-deda-4fe1-96c6-fabad0771aa2.glb',
116
- needsPosition: false,
117
- voiceType: 'MALE',
118
- culture: 'it-IT',
119
- categories: [
120
- 'biografico',
121
- 'tecnologia',
122
- 'web',
123
- 'open-source',
124
- 'green',
125
- 'privacy',
126
- ],
127
- exposed: true,
128
- disableR2R3Loop: null,
129
- disableR4Loop: null,
130
- disableR5Loop: null,
131
- enableCompletions: true,
132
- completionModel: null,
133
- chainingMemoriID: null,
134
- chainingBaseURL: null,
135
- chainingPassword: null,
136
- contentQualityIndex: 210.8,
137
- contentQualityIndexTimestamp: '2023-04-17T00:01:32.194744Z',
138
- publishedInTheMetaverse: true,
139
- metaverseEnvironment: 'apartment',
140
- blockedUntil: null,
141
- creationTimestamp: '2022-06-13T14:21:55.793034Z',
142
- lastChangeTimestamp: '2023-04-15T08:15:36.403546Z',
143
- },
68
+ memori: memori,
144
69
  integration: {
145
- integrationID: '62de8c99-0ac2-4cbe-bd95-a39ad7dc6b32',
146
- memoriID: '6573844d-a7cd-47ef-9e78-840d82020c21',
147
- type: 'LANDING_EXPERIENCE',
148
- state: 'NEW',
149
- deviceEmails: null,
150
- invocationText: null,
151
- jobID: null,
152
- publish: true,
153
- creationTimestamp: '2022-06-13T14:44:52.833573Z',
154
- lastChangeTimestamp: '2022-06-13T14:44:52.833573Z',
155
- customData: JSON.stringify({
156
- ...JSON.parse(
157
- '{"textColor":"#000000","buttonBgColor":"#007eb6","buttonTextColor":"#ffffff","globalBackground":"https://assets.memori.ai/api/v2/asset/cade3b9c-0437-4342-b2bd-8db9c2a3a20e.png","blurBackground":true,"innerBgColor":"light","multilanguage":true,"avatar":"readyplayerme","avatarURL":"https://assets.memori.ai/api/v2/asset/893c41df-7619-436d-9e86-fe1d406fc933.glb#1681736752156","name":"Pagina pubblica","contextVars":"ANIMALE:CANE","personTag":"☠️","personPIN":"666666","personName":"Pirata","showShare":true,"avatarFullBodyURL":"https://models.readyplayer.me/63b55751f17e295642bf07a2.glb"}'
158
- ),
159
- avatar: 'readyplayerme-full',
160
- avatarURL:
161
- 'https://models.readyplayer.me/63b55751f17e295642bf07a2.glb#' +
162
- // 'https://models.readyplayer.me/63b558263858282637c54115.glb#' +
163
- new Date(Date.now()).getTime(),
164
- }),
70
+ ...integration,
165
71
  },
72
+ tenant,
166
73
  layout: 'TOTEM',
167
74
  };
168
75
 
169
76
  export const ChatOnly = Template.bind({});
170
77
  ChatOnly.args = {
78
+ ...DefaultLayout.args,
171
79
  uiLang: 'it',
172
80
  showShare: true,
173
81
  showSettings: true,
174
82
  showUpload: true,
175
- // memori,
176
- // tenant,
177
-
178
- memori: {
179
- memoriName: 'CreaRiassunti',
180
- ownerUserName: 'patini929',
181
- memoriID: '514dd043-ec26-4c57-a014-a512c9014822',
182
- ownerUserID: '1941d326-6986-4fa1-872b-458d09fb654c',
183
- tenantID: 'www.aisuru.com',
184
- engineURL: 'https://engine.memori.ai',
185
- apiURL: 'https://backend.memori.ai',
186
- baseURL: 'https://www.aisuru.com',
187
- uiLang: 'IT',
188
- spokenLang: 'FR',
189
- layout: 'FULLPAGE',
190
- showSettings: true,
191
- showClear: false,
192
- showAIicon: true,
193
- showWhyThisAnswer: true,
194
- showTypingText: false,
195
- showOnlyLastMessages: false,
196
- showTranslationOriginal: false,
197
- showCopyButton: false,
198
- showShare: true,
199
- showLogin: false,
200
- enableAudio: true,
201
- name: 'CreaRiassunti',
202
- password: null,
203
- recoveryTokens: null,
204
- newPassword: null,
205
- ownerTenantName: 'aisuru.com',
206
- memoriConfigurationID: 'fd10bb42-98d9-4c08-8e02-2b08bd4e4975',
207
- description: '',
208
- completionDescription: null,
209
- engineMemoriID: '9b0a2913-d3d8-4e98-a49d-6e1c99479e1b',
210
- isOwner: false,
211
- isGiver: false,
212
- isReceiver: false,
213
- giverTag: null,
214
- giverPIN: null,
215
- privacyType: 'PUBLIC',
216
- secretToken: null,
217
- minimumNumberOfRecoveryTokens: null,
218
- totalNumberOfRecoveryTokens: null,
219
- sentInvitations: [],
220
- receivedInvitations: [],
221
- integrations: [
222
- {
223
- integrationID: '37d368cf-6241-4cc8-a1f3-742786f22431',
224
- memoriID: '514dd043-ec26-4c57-a014-a512c9014822',
225
- type: 'LANDING_EXPERIENCE',
226
- state: 'NEW',
227
- deviceEmails: null,
228
- invocationText: null,
229
- jobID: null,
230
- customData:
231
- '{"textColor":"#000000","buttonBgColor":"#007eb6","buttonTextColor":"#ffffff","globalBackground":"https://assets.memori.ai/api/v2/asset/cade3b9c-0437-4342-b2bd-8db9c2a3a20e.png","blurBackground":true,"innerBgColor":"light","multilanguage":true,"avatar":"readyplayerme","avatarURL":"https://assets.memori.ai/api/v2/asset/893c41df-7619-436d-9e86-fe1d406fc933.glb#1681736752156","name":"Pagina pubblica","contextVars":"ANIMALE:CANE","personTag":"☠️","personPIN":"666666","personName":"Pirata","showShare":true,"avatarFullBodyURL":"https://models.readyplayer.me/63b55751f17e295642bf07a2.glb"}',
232
- resources: [],
233
- publish: true,
234
- creationTimestamp: '2022-06-13T14:44:52.833573Z',
235
- lastChangeTimestamp: '2022-06-13T14:44:52.833573Z',
236
- },
237
- ],
238
- needsPosition: false,
239
- voiceType: 'MALE',
240
- culture: 'it-IT',
241
- categories: ['demo'],
242
- exposed: true,
243
- disableR2R3Loop: null,
244
- disableR4Loop: null,
245
- disableR5Loop: null,
246
- enableCompletions: true,
247
- completionModel: null,
248
- chainingMemoriID: null,
249
- chainingBaseURL: null,
250
- chainingPassword: null,
251
- contentQualityIndex: 210.8,
252
- contentQualityIndexTimestamp: '2023-04-17T00:01:32.194744Z',
253
- publishedInTheMetaverse: true,
254
- metaverseEnvironment: 'apartment',
255
- blockedUntil: null,
256
- creationTimestamp: '2022-06-13T14:21:55.793034Z',
257
- lastChangeTimestamp: '2023-04-15T08:15:36.403546Z',
258
- },
83
+ memori: memori,
84
+ tenant,
259
85
  layout: 'CHAT',
260
86
  };
261
87
 
262
- export const CustomLayout: React.FC<LayoutProps> = ({
88
+ const CustomLayout: React.FC<LayoutProps> = ({
263
89
  Header,
264
90
  headerProps,
265
91
  Avatar,
@@ -295,10 +121,11 @@ export const CustomLayout: React.FC<LayoutProps> = ({
295
121
 
296
122
  export const Custom = Template.bind({});
297
123
  Custom.args = {
124
+ ...DefaultLayout.args,
298
125
  uiLang: 'it',
299
126
  showShare: true,
300
127
  showSettings: true,
301
- memori,
128
+ memori: memori,
302
129
  tenant,
303
130
  layout: 'FULLPAGE',
304
131
  customLayout: CustomLayout,
@@ -306,322 +133,41 @@ Custom.args = {
306
133
 
307
134
  export const WebsiteAssistant = Template.bind({});
308
135
  WebsiteAssistant.args = {
136
+ ...DefaultLayout.args,
309
137
  uiLang: 'it',
310
138
  showShare: true,
311
139
  showSettings: true,
312
- memori: {
313
- memoriID: '6573844d-a7cd-47ef-9e78-840d82020c21',
314
- name: 'Nicola',
315
- password: null,
316
- recoveryTokens: null,
317
- newPassword: null,
318
- ownerUserID: null,
319
- ownerUserName: 'nzambello',
320
- ownerTenantName: 'aisuru.com',
321
- memoriConfigurationID: 'fd10bb42-98d9-4c08-8e02-2b08bd4e4975',
322
- description:
323
- 'Sono Nicola Zambello, sviluppatore e attivista per un web etico e sostenibile',
324
- completionDescription: null,
325
- engineMemoriID: '9b0a2913-d3d8-4e98-a49d-6e1c99479e1b',
326
- isOwner: false,
327
- isGiver: false,
328
- isReceiver: false,
329
- giverTag: null,
330
- giverPIN: null,
331
- privacyType: 'PUBLIC',
332
- secretToken: null,
333
- minimumNumberOfRecoveryTokens: null,
334
- totalNumberOfRecoveryTokens: null,
335
- sentInvitations: [],
336
- receivedInvitations: [],
337
- integrations: [
338
- {
339
- integrationID: '62de8c99-0ac2-4cbe-bd95-a39ad7dc6b32',
340
- memoriID: '6573844d-a7cd-47ef-9e78-840d82020c21',
341
- type: 'LANDING_EXPERIENCE',
342
- state: 'NEW',
343
- deviceEmails: null,
344
- invocationText: null,
345
- jobID: null,
346
- customData:
347
- '{"textColor":"#000000","buttonBgColor":"#007eb6","buttonTextColor":"#ffffff","globalBackground":"https://assets.memori.ai/api/v2/asset/cade3b9c-0437-4342-b2bd-8db9c2a3a20e.png","blurBackground":true,"innerBgColor":"light","multilanguage":true,"avatar":"readyplayerme","avatarURL":"https://assets.memori.ai/api/v2/asset/893c41df-7619-436d-9e86-fe1d406fc933.glb#1681736752156","name":"Pagina pubblica","contextVars":"ANIMALE:CANE","personTag":"☠️","personPIN":"666666","personName":"Pirata","showShare":true,"avatarFullBodyURL":"https://models.readyplayer.me/63b55751f17e295642bf07a2.glb"}',
348
- resources: [],
349
- publish: true,
350
- creationTimestamp: '2022-06-13T14:44:52.833573Z',
351
- lastChangeTimestamp: '2022-06-13T14:44:52.833573Z',
352
- },
353
- ],
354
- avatarURL:
355
- 'https://assets.memori.ai/api/v2/asset/3049582f-db5f-452c-913d-e4340d4afd0a.png',
356
- coverURL:
357
- 'https://assets.memori.ai/api/v2/asset/e9bb9f6d-8f34-45ab-af9e-6d630d9a51a8.png',
358
- avatar3DURL:
359
- 'https://assets.memori.ai/api/v2/asset/893c41df-7619-436d-9e86-fe1d406fc933.glb',
360
- avatarOriginal3DURL:
361
- 'https://d1a370nemizbjq.cloudfront.net/c7c80a1d-deda-4fe1-96c6-fabad0771aa2.glb',
362
- needsPosition: false,
363
- voiceType: 'MALE',
364
- culture: 'it-IT',
365
- categories: [
366
- 'biografico',
367
- 'tecnologia',
368
- 'web',
369
- 'open-source',
370
- 'green',
371
- 'privacy',
372
- ],
373
- exposed: true,
374
- disableR2R3Loop: null,
375
- disableR4Loop: null,
376
- disableR5Loop: null,
377
- enableCompletions: true,
378
- completionModel: null,
379
- chainingMemoriID: null,
380
- chainingBaseURL: null,
381
- chainingPassword: null,
382
- contentQualityIndex: 210.8,
383
- contentQualityIndexTimestamp: '2023-04-17T00:01:32.194744Z',
384
- publishedInTheMetaverse: true,
385
- metaverseEnvironment: 'apartment',
386
- blockedUntil: null,
387
- creationTimestamp: '2022-06-13T14:21:55.793034Z',
388
- lastChangeTimestamp: '2023-04-15T08:15:36.403546Z',
389
- },
390
- integration: {
391
- integrationID: '62de8c99-0ac2-4cbe-bd95-a39ad7dc6b32',
392
- memoriID: '6573844d-a7cd-47ef-9e78-840d82020c21',
393
- type: 'LANDING_EXPERIENCE',
394
- state: 'NEW',
395
- deviceEmails: null,
396
- invocationText: null,
397
- jobID: null,
398
- publish: true,
399
- creationTimestamp: '2022-06-13T14:44:52.833573Z',
400
- lastChangeTimestamp: '2022-06-13T14:44:52.833573Z',
401
- customData: JSON.stringify({
402
- ...JSON.parse(
403
- '{"textColor":"#000000","buttonBgColor":"#007eb6","buttonTextColor":"#ffffff","globalBackground":"https://assets.memori.ai/api/v2/asset/cade3b9c-0437-4342-b2bd-8db9c2a3a20e.png","blurBackground":true,"innerBgColor":"light","multilanguage":true,"avatar":"readyplayerme","avatarURL":"https://assets.memori.ai/api/v2/asset/893c41df-7619-436d-9e86-fe1d406fc933.glb#1681736752156","name":"Pagina pubblica","contextVars":"ANIMALE:CANE","personTag":"☠️","personPIN":"666666","personName":"Pirata","showShare":true,"avatarFullBodyURL":"https://models.readyplayer.me/63b55751f17e295642bf07a2.glb"}'
404
- ),
405
- avatar: 'readyplayerme-full',
406
- avatarURL:
407
- 'https://models.readyplayer.me/63b55751f17e295642bf07a2.glb#' +
408
- // 'https://models.readyplayer.me/63b558263858282637c54115.glb#' +
409
- new Date(Date.now()).getTime(),
410
- }),
411
- },
140
+ memori: memori,
412
141
  tenant,
413
142
  layout: 'WEBSITE_ASSISTANT',
414
143
  };
415
144
 
416
145
  export const HiddenChat = Template.bind({});
417
146
  HiddenChat.args = {
147
+ ...DefaultLayout.args,
418
148
  uiLang: 'it',
419
149
  showShare: true,
420
150
  showSettings: true,
421
- // autoStart: true,
422
- // memori,
423
- // tenant,
424
- memori: {
425
- memoriID: '6573844d-a7cd-47ef-9e78-840d82020c21',
426
- name: 'Nicola',
427
- password: null,
428
- recoveryTokens: null,
429
- newPassword: null,
430
- ownerUserID: null,
431
- ownerUserName: 'nzambello',
432
- ownerTenantName: 'aisuru.com',
433
- memoriConfigurationID: 'fd10bb42-98d9-4c08-8e02-2b08bd4e4975',
434
- description:
435
- 'Sono Nicola Zambello, sviluppatore e attivista per un web etico e sostenibile',
436
- completionDescription: null,
437
- engineMemoriID: '9b0a2913-d3d8-4e98-a49d-6e1c99479e1b',
438
- isOwner: false,
439
- isGiver: false,
440
- isReceiver: false,
441
- giverTag: null,
442
- giverPIN: null,
443
- privacyType: 'PUBLIC',
444
- secretToken: null,
445
- minimumNumberOfRecoveryTokens: null,
446
- totalNumberOfRecoveryTokens: null,
447
- sentInvitations: [],
448
- receivedInvitations: [],
449
- integrations: [
450
- {
451
- integrationID: '62de8c99-0ac2-4cbe-bd95-a39ad7dc6b32',
452
- memoriID: '6573844d-a7cd-47ef-9e78-840d82020c21',
453
- type: 'LANDING_EXPERIENCE',
454
- state: 'NEW',
455
- deviceEmails: null,
456
- invocationText: null,
457
- jobID: null,
458
- customData:
459
- '{"textColor":"#000000","buttonBgColor":"#007eb6","buttonTextColor":"#ffffff","globalBackground":"https://assets.memori.ai/api/v2/asset/cade3b9c-0437-4342-b2bd-8db9c2a3a20e.png","blurBackground":true,"innerBgColor":"light","multilanguage":true,"avatar":"readyplayerme","avatarURL":"https://assets.memori.ai/api/v2/asset/893c41df-7619-436d-9e86-fe1d406fc933.glb#1681736752156","name":"Pagina pubblica","contextVars":"ANIMALE:CANE","personTag":"☠️","personPIN":"666666","personName":"Pirata","showShare":true,"avatarFullBodyURL":"https://models.readyplayer.me/63b55751f17e295642bf07a2.glb"}',
460
- resources: [],
461
- publish: true,
462
- creationTimestamp: '2022-06-13T14:44:52.833573Z',
463
- lastChangeTimestamp: '2022-06-13T14:44:52.833573Z',
464
- },
465
- ],
466
- avatarURL:
467
- 'https://assets.memori.ai/api/v2/asset/3049582f-db5f-452c-913d-e4340d4afd0a.png',
468
- coverURL:
469
- 'https://assets.memori.ai/api/v2/asset/e9bb9f6d-8f34-45ab-af9e-6d630d9a51a8.png',
470
- avatar3DURL:
471
- 'https://assets.memori.ai/api/v2/asset/893c41df-7619-436d-9e86-fe1d406fc933.glb',
472
- avatarOriginal3DURL:
473
- 'https://d1a370nemizbjq.cloudfront.net/c7c80a1d-deda-4fe1-96c6-fabad0771aa2.glb',
474
- needsPosition: false,
475
- voiceType: 'MALE',
476
- culture: 'it-IT',
477
- categories: [
478
- 'biografico',
479
- 'tecnologia',
480
- 'web',
481
- 'open-source',
482
- 'green',
483
- 'privacy',
484
- ],
485
- exposed: true,
486
- disableR2R3Loop: null,
487
- disableR4Loop: null,
488
- disableR5Loop: null,
489
- enableCompletions: true,
490
- completionModel: null,
491
- chainingMemoriID: null,
492
- chainingBaseURL: null,
493
- chainingPassword: null,
494
- contentQualityIndex: 210.8,
495
- contentQualityIndexTimestamp: '2023-04-17T00:01:32.194744Z',
496
- publishedInTheMetaverse: true,
497
- metaverseEnvironment: 'apartment',
498
- blockedUntil: null,
499
- creationTimestamp: '2022-06-13T14:21:55.793034Z',
500
- lastChangeTimestamp: '2023-04-15T08:15:36.403546Z',
501
- },
502
- integration: {
503
- integrationID: '62de8c99-0ac2-4cbe-bd95-a39ad7dc6b32',
504
- memoriID: '6573844d-a7cd-47ef-9e78-840d82020c21',
505
- type: 'LANDING_EXPERIENCE',
506
- state: 'NEW',
507
- deviceEmails: null,
508
- invocationText: null,
509
- jobID: null,
510
- publish: true,
511
- creationTimestamp: '2022-06-13T14:44:52.833573Z',
512
- lastChangeTimestamp: '2022-06-13T14:44:52.833573Z',
513
- customData: JSON.stringify({
514
- ...JSON.parse(
515
- '{"textColor":"#000000","buttonBgColor":"#007eb6","buttonTextColor":"#ffffff","globalBackground":"https://assets.memori.ai/api/v2/asset/cade3b9c-0437-4342-b2bd-8db9c2a3a20e.png","blurBackground":true,"innerBgColor":"light","multilanguage":true,"avatar":"readyplayerme","avatarURL":"https://assets.memori.ai/api/v2/asset/893c41df-7619-436d-9e86-fe1d406fc933.glb#1681736752156","name":"Pagina pubblica","contextVars":"ANIMALE:CANE","personTag":"☠️","personPIN":"666666","personName":"Pirata","showShare":true,"avatarFullBodyURL":"https://models.readyplayer.me/63b55751f17e295642bf07a2.glb"}'
516
- ),
517
- avatar: 'readyplayerme-full',
518
- avatarURL:
519
- 'https://models.readyplayer.me/63b55751f17e295642bf07a2.glb#' +
520
- // 'https://models.readyplayer.me/63b558263858282637c54115.glb#' +
521
- new Date(Date.now()).getTime(),
522
- }),
523
- },
151
+ memori: memori,
152
+ tenant,
524
153
  layout: 'HIDDEN_CHAT',
525
154
  };
526
155
 
527
156
  export const ZoomedFullBody = Template.bind({});
528
157
  ZoomedFullBody.args = {
158
+ ...DefaultLayout.args,
529
159
  uiLang: 'it',
530
160
  showShare: true,
531
161
  showSettings: true,
532
162
  showAudio: true,
533
163
  enableAudio: true,
164
+ integration: {
165
+
166
+ },
534
167
  memori: {
535
- memoriID: '6573844d-a7cd-47ef-9e78-840d82020c21',
536
- name: 'Nicola',
537
- password: null,
538
- recoveryTokens: null,
539
- newPassword: null,
540
- ownerUserID: null,
541
- ownerUserName: 'nzambello',
542
- ownerTenantName: 'aisuru.com',
543
- memoriConfigurationID: 'fd10bb42-98d9-4c08-8e02-2b08bd4e4975',
544
- description:
545
- 'Sono Nicola Zambello, sviluppatore e attivista per un web etico e sostenibile',
546
- completionDescription: null,
547
- engineMemoriID: '9b0a2913-d3d8-4e98-a49d-6e1c99479e1b',
548
- isOwner: false,
549
- isGiver: false,
550
- isReceiver: false,
551
- giverTag: null,
552
- giverPIN: null,
553
- privacyType: 'PUBLIC',
554
- enableAudio: true,
555
- secretToken: null,
556
- minimumNumberOfRecoveryTokens: null,
557
- totalNumberOfRecoveryTokens: null,
558
- sentInvitations: [],
559
- receivedInvitations: [],
560
- integrations: [
561
- {
562
- integrationID: '62de8c99-0ac2-4cbe-bd95-a39ad7dc6b32',
563
- memoriID: '6573844d-a7cd-47ef-9e78-840d82020c21',
564
- type: 'LANDING_EXPERIENCE',
565
- state: 'NEW',
566
- deviceEmails: null,
567
- invocationText: null,
568
- jobID: null,
569
- customData:
570
- '{"textColor":"#000000","buttonBgColor":"#007eb6","buttonTextColor":"#ffffff","globalBackground":"https://assets.memori.ai/api/v2/asset/cade3b9c-0437-4342-b2bd-8db9c2a3a20e.png","blurBackground":true,"innerBgColor":"light","multilanguage":true,"avatar":"readyplayerme","avatarURL":"https://assets.memori.ai/api/v2/asset/893c41df-7619-436d-9e86-fe1d406fc933.glb#1681736752156","name":"Pagina pubblica","contextVars":"ANIMALE:CANE","personTag":"☠️","personPIN":"666666","personName":"Pirata","showShare":true,"avatarFullBodyURL":"https://models.readyplayer.me/63b55751f17e295642bf07a2.glb"}',
571
- resources: [],
572
- publish: true,
573
- creationTimestamp: '2022-06-13T14:44:52.833573Z',
574
- lastChangeTimestamp: '2022-06-13T14:44:52.833573Z',
575
- },
576
- ],
577
- needsPosition: false,
168
+ ...memori,
578
169
  voiceType: 'FEMALE',
579
- culture: 'it-IT',
580
- categories: [
581
- 'biografico',
582
- 'tecnologia',
583
- 'web',
584
- 'open-source',
585
- 'green',
586
- 'privacy',
587
- ],
588
- exposed: true,
589
- disableR2R3Loop: null,
590
- disableR4Loop: null,
591
- disableR5Loop: null,
592
- enableCompletions: true,
593
- completionModel: null,
594
- chainingMemoriID: null,
595
- chainingBaseURL: null,
596
- chainingPassword: null,
597
- contentQualityIndex: 210.8,
598
- contentQualityIndexTimestamp: '2023-04-17T00:01:32.194744Z',
599
- publishedInTheMetaverse: true,
600
- metaverseEnvironment: 'apartment',
601
- blockedUntil: null,
602
- creationTimestamp: '2022-06-13T14:21:55.793034Z',
603
- lastChangeTimestamp: '2023-04-15T08:15:36.403546Z',
604
- },
605
- integration: {
606
- integrationID: '62de8c99-0ac2-4cbe-bd95-a39ad7dc6b32',
607
- memoriID: '6573844d-a7cd-47ef-9e78-840d82020c21',
608
- type: 'LANDING_EXPERIENCE',
609
- state: 'NEW',
610
- deviceEmails: null,
611
- invocationText: null,
612
- jobID: null,
613
- publish: true,
614
- creationTimestamp: '2022-06-13T14:44:52.833573Z',
615
- lastChangeTimestamp: '2022-06-13T14:44:52.833573Z',
616
- customData: JSON.stringify({
617
- ...JSON.parse(
618
- '{"textColor":"#000000","buttonBgColor":"#007eb6","buttonTextColor":"#ffffff","globalBackground":"https://assets.memori.ai/api/v2/asset/cade3b9c-0437-4342-b2bd-8db9c2a3a20e.png","blurBackground":true,"innerBgColor":"light","multilanguage":true,"avatar":"readyplayerme","avatarURL":"https://assets.memori.ai/api/v2/asset/893c41df-7619-436d-9e86-fe1d406fc933.glb#1681736752156","name":"Pagina pubblica","contextVars":"ANIMALE:CANE","personTag":"☠️","personPIN":"666666","personName":"Pirata","showShare":true,"avatarFullBodyURL":"https://models.readyplayer.me/63b55751f17e295642bf07a2.glb"}'
619
- ),
620
- avatar: 'readyplayerme-full',
621
- avatarURL:
622
- 'https://assets.memori.ai/api/v2/asset/3932bf70-e953-4e8a-b63a-f316544c283e.glb' +
623
- new Date(Date.now()).getTime(),
624
- }),
625
170
  },
171
+ tenant,
626
172
  layout: 'ZOOMED_FULL_BODY',
627
173
  };