@memori.ai/memori-react 7.11.3 → 7.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 +48 -0
- package/README.md +2 -1
- package/dist/components/Avatar/AvatarView/AvatarComponent/avatarComponent.js +52 -75
- package/dist/components/Avatar/AvatarView/AvatarComponent/avatarComponent.js.map +1 -1
- package/dist/components/Avatar/AvatarView/AvatarComponent/components/FullbodyAvatar/AnimationController.js +2 -2
- package/dist/components/Avatar/AvatarView/AvatarComponent/components/FullbodyAvatar/AnimationController.js.map +1 -1
- package/dist/components/Avatar/AvatarView/AvatarComponent/components/FullbodyAvatar/fullbodyAvatar.d.ts +1 -1
- package/dist/components/Avatar/AvatarView/AvatarComponent/components/FullbodyAvatar/fullbodyAvatar.js +8 -2
- package/dist/components/Avatar/AvatarView/AvatarComponent/components/FullbodyAvatar/fullbodyAvatar.js.map +1 -1
- package/dist/components/Avatar/AvatarView/AvatarComponent/components/FullbodyAvatar/types.d.ts +1 -0
- package/dist/components/Avatar/AvatarView/AvatarComponent/components/MorphTargetController.js +6 -3
- package/dist/components/Avatar/AvatarView/AvatarComponent/components/MorphTargetController.js.map +1 -1
- package/dist/components/Avatar/AvatarView/AvatarComponent/components/PositionController.js +1 -1
- package/dist/components/Avatar/AvatarView/AvatarComponent/components/PositionController.js.map +1 -1
- package/dist/components/Avatar/AvatarView/AvatarComponent/components/controls.d.ts +1 -1
- package/dist/components/Avatar/AvatarView/AvatarComponent/components/controls.js +1 -1
- package/dist/components/Avatar/AvatarView/AvatarComponent/components/controls.js.map +1 -1
- package/dist/components/Avatar/AvatarView/AvatarComponent/components/halfbodyAvatar.js +1 -1
- package/dist/components/Avatar/AvatarView/AvatarComponent/components/halfbodyAvatar.js.map +1 -1
- package/dist/components/Avatar/AvatarView/AvatarComponent/constants.d.ts +74 -0
- package/dist/components/Avatar/AvatarView/AvatarComponent/constants.js +101 -0
- package/dist/components/Avatar/AvatarView/AvatarComponent/constants.js.map +1 -0
- package/dist/components/Chat/Chat.d.ts +10 -1
- package/dist/components/Chat/Chat.js +2 -10
- package/dist/components/Chat/Chat.js.map +1 -1
- package/dist/components/ChatBubble/ChatBubble.css +4 -0
- package/dist/components/ChatBubble/ChatBubble.js +14 -4
- package/dist/components/ChatBubble/ChatBubble.js.map +1 -1
- package/dist/components/ChatInputs/ChatInputs.d.ts +11 -2
- package/dist/components/ChatInputs/ChatInputs.js +44 -6
- package/dist/components/ChatInputs/ChatInputs.js.map +1 -1
- package/dist/components/CompletionProviderStatus/CompletionProviderStatus.css +8 -0
- package/dist/components/CompletionProviderStatus/CompletionProviderStatus.js +75 -51
- package/dist/components/CompletionProviderStatus/CompletionProviderStatus.js.map +1 -1
- package/dist/components/ExpertsDrawer/ExpertsDrawer.js +1 -1
- package/dist/components/ExpertsDrawer/ExpertsDrawer.js.map +1 -1
- package/dist/components/FilePreview/FilePreview.css +155 -0
- package/dist/components/FilePreview/FilePreview.d.ts +12 -0
- package/dist/components/FilePreview/FilePreview.js +21 -0
- package/dist/components/FilePreview/FilePreview.js.map +1 -0
- package/dist/components/MemoriWidget/MemoriWidget.d.ts +3 -1
- package/dist/components/MemoriWidget/MemoriWidget.js +26 -11
- package/dist/components/MemoriWidget/MemoriWidget.js.map +1 -1
- package/dist/components/UploadButton/UploadButton.css +38 -0
- package/dist/components/UploadButton/UploadButton.d.ts +8 -0
- package/dist/components/UploadButton/UploadButton.js +79 -0
- package/dist/components/UploadButton/UploadButton.js.map +1 -0
- package/dist/components/icons/Preview.d.ts +5 -0
- package/dist/components/icons/Preview.js +6 -0
- package/dist/components/icons/Preview.js.map +1 -0
- package/dist/components/icons/Upload.d.ts +5 -0
- package/dist/components/icons/Upload.js +6 -0
- package/dist/components/icons/Upload.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/styles.css +2 -0
- package/esm/components/Avatar/AvatarView/AvatarComponent/avatarComponent.js +52 -75
- package/esm/components/Avatar/AvatarView/AvatarComponent/avatarComponent.js.map +1 -1
- package/esm/components/Avatar/AvatarView/AvatarComponent/components/FullbodyAvatar/AnimationController.js +2 -2
- package/esm/components/Avatar/AvatarView/AvatarComponent/components/FullbodyAvatar/AnimationController.js.map +1 -1
- package/esm/components/Avatar/AvatarView/AvatarComponent/components/FullbodyAvatar/fullbodyAvatar.d.ts +1 -1
- package/esm/components/Avatar/AvatarView/AvatarComponent/components/FullbodyAvatar/fullbodyAvatar.js +8 -2
- package/esm/components/Avatar/AvatarView/AvatarComponent/components/FullbodyAvatar/fullbodyAvatar.js.map +1 -1
- package/esm/components/Avatar/AvatarView/AvatarComponent/components/FullbodyAvatar/types.d.ts +1 -0
- package/esm/components/Avatar/AvatarView/AvatarComponent/components/MorphTargetController.js +6 -3
- package/esm/components/Avatar/AvatarView/AvatarComponent/components/MorphTargetController.js.map +1 -1
- package/esm/components/Avatar/AvatarView/AvatarComponent/components/PositionController.js +1 -1
- package/esm/components/Avatar/AvatarView/AvatarComponent/components/PositionController.js.map +1 -1
- package/esm/components/Avatar/AvatarView/AvatarComponent/components/controls.d.ts +1 -1
- package/esm/components/Avatar/AvatarView/AvatarComponent/components/controls.js +1 -1
- package/esm/components/Avatar/AvatarView/AvatarComponent/components/controls.js.map +1 -1
- package/esm/components/Avatar/AvatarView/AvatarComponent/components/halfbodyAvatar.js +1 -1
- package/esm/components/Avatar/AvatarView/AvatarComponent/components/halfbodyAvatar.js.map +1 -1
- package/esm/components/Avatar/AvatarView/AvatarComponent/constants.d.ts +74 -0
- package/esm/components/Avatar/AvatarView/AvatarComponent/constants.js +98 -0
- package/esm/components/Avatar/AvatarView/AvatarComponent/constants.js.map +1 -0
- package/esm/components/Chat/Chat.d.ts +10 -1
- package/esm/components/Chat/Chat.js +2 -10
- package/esm/components/Chat/Chat.js.map +1 -1
- package/esm/components/ChatBubble/ChatBubble.css +4 -0
- package/esm/components/ChatBubble/ChatBubble.js +14 -4
- package/esm/components/ChatBubble/ChatBubble.js.map +1 -1
- package/esm/components/ChatInputs/ChatInputs.d.ts +11 -2
- package/esm/components/ChatInputs/ChatInputs.js +45 -7
- package/esm/components/ChatInputs/ChatInputs.js.map +1 -1
- package/esm/components/CompletionProviderStatus/CompletionProviderStatus.css +8 -0
- package/esm/components/CompletionProviderStatus/CompletionProviderStatus.js +76 -52
- package/esm/components/CompletionProviderStatus/CompletionProviderStatus.js.map +1 -1
- package/esm/components/ExpertsDrawer/ExpertsDrawer.js +1 -1
- package/esm/components/ExpertsDrawer/ExpertsDrawer.js.map +1 -1
- package/esm/components/FilePreview/FilePreview.css +155 -0
- package/esm/components/FilePreview/FilePreview.d.ts +12 -0
- package/esm/components/FilePreview/FilePreview.js +18 -0
- package/esm/components/FilePreview/FilePreview.js.map +1 -0
- package/esm/components/MemoriWidget/MemoriWidget.d.ts +3 -1
- package/esm/components/MemoriWidget/MemoriWidget.js +26 -11
- package/esm/components/MemoriWidget/MemoriWidget.js.map +1 -1
- package/esm/components/UploadButton/UploadButton.css +38 -0
- package/esm/components/UploadButton/UploadButton.d.ts +8 -0
- package/esm/components/UploadButton/UploadButton.js +76 -0
- package/esm/components/UploadButton/UploadButton.js.map +1 -0
- package/esm/components/icons/Preview.d.ts +5 -0
- package/esm/components/icons/Preview.js +4 -0
- package/esm/components/icons/Preview.js.map +1 -0
- package/esm/components/icons/Upload.d.ts +5 -0
- package/esm/components/icons/Upload.js +4 -0
- package/esm/components/icons/Upload.js.map +1 -0
- package/esm/index.d.ts +1 -0
- package/esm/index.js +3 -2
- package/esm/index.js.map +1 -1
- package/esm/styles.css +2 -0
- package/package.json +2 -1
- package/src/components/Avatar/AvatarView/AvatarComponent/avatarComponent.tsx +120 -153
- package/src/components/Avatar/AvatarView/AvatarComponent/components/FullbodyAvatar/AnimationController.ts +3 -6
- package/src/components/Avatar/AvatarView/AvatarComponent/components/FullbodyAvatar/fullbodyAvatar.tsx +11 -1
- package/src/components/Avatar/AvatarView/AvatarComponent/components/FullbodyAvatar/types.ts +1 -0
- package/src/components/Avatar/AvatarView/AvatarComponent/components/MorphTargetController.ts +33 -10
- package/src/components/Avatar/AvatarView/AvatarComponent/components/PositionController.ts +1 -1
- package/src/components/Avatar/AvatarView/AvatarComponent/components/controls.tsx +2 -2
- package/src/components/Avatar/AvatarView/AvatarComponent/components/halfbodyAvatar.tsx +1 -1
- package/src/components/Avatar/AvatarView/AvatarComponent/constants.ts +127 -0
- package/src/components/Chat/Chat.tsx +16 -10
- package/src/components/ChatBubble/ChatBubble.css +4 -0
- package/src/components/ChatBubble/ChatBubble.stories.tsx +12 -0
- package/src/components/ChatBubble/ChatBubble.tsx +23 -2
- package/src/components/ChatInputs/ChatInputs.stories.tsx +5 -0
- package/src/components/ChatInputs/ChatInputs.test.tsx +6 -6
- package/src/components/ChatInputs/ChatInputs.tsx +91 -23
- package/src/components/CompletionProviderStatus/CompletionProviderStatus.css +8 -0
- package/src/components/CompletionProviderStatus/CompletionProviderStatus.stories.tsx +1 -1
- package/src/components/CompletionProviderStatus/CompletionProviderStatus.tsx +95 -66
- package/src/components/ExpertsDrawer/ExpertsDrawer.tsx +3 -1
- package/src/components/FilePreview/FilePreview.css +155 -0
- package/src/components/FilePreview/FilePreview.stories.tsx +66 -0
- package/src/components/FilePreview/FilePreview.test.tsx +26 -0
- package/src/components/FilePreview/FilePreview.tsx +85 -0
- package/src/components/FilePreview/__snapshots__/FilePreview.test.tsx.snap +149 -0
- package/src/components/MemoriWidget/MemoriWidget.tsx +68 -3
- package/src/components/StartPanel/__snapshots__/StartPanel.test.tsx.snap +240 -0
- package/src/components/UploadButton/UploadButton.css +38 -0
- package/src/components/UploadButton/UploadButton.stories.tsx +62 -0
- package/src/components/UploadButton/UploadButton.test.tsx +11 -0
- package/src/components/UploadButton/UploadButton.tsx +126 -0
- package/src/components/UploadButton/__snapshots__/UploadButton.test.tsx.snap +31 -0
- package/src/components/icons/Preview.tsx +23 -0
- package/src/components/icons/Upload.tsx +23 -0
- package/src/components/layouts/__snapshots__/Chat.test.tsx.snap +24 -0
- package/src/components/layouts/__snapshots__/FullPage.test.tsx.snap +24 -0
- package/src/components/layouts/__snapshots__/Totem.test.tsx.snap +24 -0
- package/src/components/layouts/__snapshots__/ZoomedFullBody.test.tsx.snap +24 -0
- package/src/components/layouts/layouts.stories.tsx +30 -46
- package/src/index.stories.tsx +68 -2
- package/src/index.tsx +4 -0
- package/src/styles.css +2 -0
- package/src/components/Avatar/AvatarView/AvatarComponent/components/constants.ts +0 -29
|
@@ -435,6 +435,30 @@ exports[`renders Totem layout unchanged 1`] = `
|
|
|
435
435
|
>
|
|
436
436
|
INIZIAMO
|
|
437
437
|
</button>
|
|
438
|
+
<div
|
|
439
|
+
class="memori--completion-provider-status--loading"
|
|
440
|
+
>
|
|
441
|
+
<div
|
|
442
|
+
class="memori-spin memori-spin--spinning"
|
|
443
|
+
>
|
|
444
|
+
<div
|
|
445
|
+
class="memori-spin--spinner"
|
|
446
|
+
>
|
|
447
|
+
<svg
|
|
448
|
+
aria-hidden="true"
|
|
449
|
+
class="memori-loading-icon"
|
|
450
|
+
focusable="false"
|
|
451
|
+
role="img"
|
|
452
|
+
viewBox="0 0 1024 1024"
|
|
453
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
454
|
+
>
|
|
455
|
+
<path
|
|
456
|
+
d="M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"
|
|
457
|
+
/>
|
|
458
|
+
</svg>
|
|
459
|
+
</div>
|
|
460
|
+
</div>
|
|
461
|
+
</div>
|
|
438
462
|
<p
|
|
439
463
|
class="memori--start-description"
|
|
440
464
|
>
|
|
@@ -381,6 +381,30 @@ exports[`renders ZOOMED_FULL_BODY layout unchanged 1`] = `
|
|
|
381
381
|
>
|
|
382
382
|
INIZIAMO
|
|
383
383
|
</button>
|
|
384
|
+
<div
|
|
385
|
+
class="memori--completion-provider-status--loading"
|
|
386
|
+
>
|
|
387
|
+
<div
|
|
388
|
+
class="memori-spin memori-spin--spinning"
|
|
389
|
+
>
|
|
390
|
+
<div
|
|
391
|
+
class="memori-spin--spinner"
|
|
392
|
+
>
|
|
393
|
+
<svg
|
|
394
|
+
aria-hidden="true"
|
|
395
|
+
class="memori-loading-icon"
|
|
396
|
+
focusable="false"
|
|
397
|
+
role="img"
|
|
398
|
+
viewBox="0 0 1024 1024"
|
|
399
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
400
|
+
>
|
|
401
|
+
<path
|
|
402
|
+
d="M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"
|
|
403
|
+
/>
|
|
404
|
+
</svg>
|
|
405
|
+
</div>
|
|
406
|
+
</div>
|
|
407
|
+
</div>
|
|
384
408
|
<p
|
|
385
409
|
class="memori--start-description"
|
|
386
410
|
>
|
|
@@ -205,20 +205,41 @@ ChatOnly.args = {
|
|
|
205
205
|
uiLang: 'it',
|
|
206
206
|
showShare: true,
|
|
207
207
|
showSettings: true,
|
|
208
|
+
showUpload: true,
|
|
208
209
|
// memori,
|
|
209
210
|
// tenant,
|
|
211
|
+
|
|
210
212
|
memori: {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
+
memoriName: 'CreaRiassunti',
|
|
214
|
+
ownerUserName: 'patini929',
|
|
215
|
+
memoriID: '514dd043-ec26-4c57-a014-a512c9014822',
|
|
216
|
+
ownerUserID: '1941d326-6986-4fa1-872b-458d09fb654c',
|
|
217
|
+
tenantID: 'www.aisuru.com',
|
|
218
|
+
engineURL: 'https://engine.memori.ai',
|
|
219
|
+
apiURL: 'https://backend.memori.ai',
|
|
220
|
+
baseURL: 'https://www.aisuru.com',
|
|
221
|
+
uiLang: 'IT',
|
|
222
|
+
spokenLang: 'FR',
|
|
223
|
+
layout: 'FULLPAGE',
|
|
224
|
+
showInstruct: false,
|
|
225
|
+
showSettings: true,
|
|
226
|
+
showClear: false,
|
|
227
|
+
showAIicon: true,
|
|
228
|
+
showWhyThisAnswer: true,
|
|
229
|
+
showTypingText: false,
|
|
230
|
+
showOnlyLastMessages: false,
|
|
231
|
+
showTranslationOriginal: false,
|
|
232
|
+
showCopyButton: false,
|
|
233
|
+
showShare: true,
|
|
234
|
+
showLogin: false,
|
|
235
|
+
enableAudio: true,
|
|
236
|
+
name: 'CreaRiassunti',
|
|
213
237
|
password: null,
|
|
214
238
|
recoveryTokens: null,
|
|
215
239
|
newPassword: null,
|
|
216
|
-
ownerUserID: null,
|
|
217
|
-
ownerUserName: 'nzambello',
|
|
218
240
|
ownerTenantName: 'aisuru.com',
|
|
219
241
|
memoriConfigurationID: 'fd10bb42-98d9-4c08-8e02-2b08bd4e4975',
|
|
220
|
-
description:
|
|
221
|
-
'Sono Nicola Zambello, sviluppatore e attivista per un web etico e sostenibile',
|
|
242
|
+
description: '',
|
|
222
243
|
completionDescription: null,
|
|
223
244
|
engineMemoriID: '9b0a2913-d3d8-4e98-a49d-6e1c99479e1b',
|
|
224
245
|
isOwner: false,
|
|
@@ -234,8 +255,8 @@ ChatOnly.args = {
|
|
|
234
255
|
receivedInvitations: [],
|
|
235
256
|
integrations: [
|
|
236
257
|
{
|
|
237
|
-
integrationID: '
|
|
238
|
-
memoriID: '
|
|
258
|
+
integrationID: '37d368cf-6241-4cc8-a1f3-742786f22431',
|
|
259
|
+
memoriID: '514dd043-ec26-4c57-a014-a512c9014822',
|
|
239
260
|
type: 'LANDING_EXPERIENCE',
|
|
240
261
|
state: 'NEW',
|
|
241
262
|
deviceEmails: null,
|
|
@@ -249,25 +270,10 @@ ChatOnly.args = {
|
|
|
249
270
|
lastChangeTimestamp: '2022-06-13T14:44:52.833573Z',
|
|
250
271
|
},
|
|
251
272
|
],
|
|
252
|
-
avatarURL:
|
|
253
|
-
'https://assets.memori.ai/api/v2/asset/3049582f-db5f-452c-913d-e4340d4afd0a.png',
|
|
254
|
-
coverURL:
|
|
255
|
-
'https://assets.memori.ai/api/v2/asset/e9bb9f6d-8f34-45ab-af9e-6d630d9a51a8.png',
|
|
256
|
-
avatar3DURL:
|
|
257
|
-
'https://assets.memori.ai/api/v2/asset/893c41df-7619-436d-9e86-fe1d406fc933.glb',
|
|
258
|
-
avatarOriginal3DURL:
|
|
259
|
-
'https://d1a370nemizbjq.cloudfront.net/c7c80a1d-deda-4fe1-96c6-fabad0771aa2.glb',
|
|
260
273
|
needsPosition: false,
|
|
261
274
|
voiceType: 'MALE',
|
|
262
275
|
culture: 'it-IT',
|
|
263
|
-
categories: [
|
|
264
|
-
'biografico',
|
|
265
|
-
'tecnologia',
|
|
266
|
-
'web',
|
|
267
|
-
'open-source',
|
|
268
|
-
'green',
|
|
269
|
-
'privacy',
|
|
270
|
-
],
|
|
276
|
+
categories: ['demo'],
|
|
271
277
|
exposed: true,
|
|
272
278
|
disableR2R3Loop: null,
|
|
273
279
|
disableR4Loop: null,
|
|
@@ -285,28 +291,6 @@ ChatOnly.args = {
|
|
|
285
291
|
creationTimestamp: '2022-06-13T14:21:55.793034Z',
|
|
286
292
|
lastChangeTimestamp: '2023-04-15T08:15:36.403546Z',
|
|
287
293
|
},
|
|
288
|
-
integration: {
|
|
289
|
-
integrationID: '62de8c99-0ac2-4cbe-bd95-a39ad7dc6b32',
|
|
290
|
-
memoriID: '6573844d-a7cd-47ef-9e78-840d82020c21',
|
|
291
|
-
type: 'LANDING_EXPERIENCE',
|
|
292
|
-
state: 'NEW',
|
|
293
|
-
deviceEmails: null,
|
|
294
|
-
invocationText: null,
|
|
295
|
-
jobID: null,
|
|
296
|
-
publish: true,
|
|
297
|
-
creationTimestamp: '2022-06-13T14:44:52.833573Z',
|
|
298
|
-
lastChangeTimestamp: '2022-06-13T14:44:52.833573Z',
|
|
299
|
-
customData: JSON.stringify({
|
|
300
|
-
...JSON.parse(
|
|
301
|
-
'{"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"}'
|
|
302
|
-
),
|
|
303
|
-
avatar: 'readyplayerme-full',
|
|
304
|
-
avatarURL:
|
|
305
|
-
'https://models.readyplayer.me/63b55751f17e295642bf07a2.glb#' +
|
|
306
|
-
// 'https://models.readyplayer.me/63b558263858282637c54115.glb#' +
|
|
307
|
-
new Date(Date.now()).getTime(),
|
|
308
|
-
}),
|
|
309
|
-
},
|
|
310
294
|
layout: 'CHAT',
|
|
311
295
|
};
|
|
312
296
|
|
package/src/index.stories.tsx
CHANGED
|
@@ -50,6 +50,20 @@ WithPreviousSession.args = {
|
|
|
50
50
|
spokenLang: 'IT',
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
+
export const WithUpload = Template.bind({});
|
|
54
|
+
WithUpload.args = {
|
|
55
|
+
ownerUserName: 'nzambello',
|
|
56
|
+
memoriName: 'Nicola',
|
|
57
|
+
tenantID: 'www.aisuru.com',
|
|
58
|
+
engineURL: 'https://engine.memori.ai',
|
|
59
|
+
apiURL: 'https://backend.memori.ai',
|
|
60
|
+
baseURL: 'https://www.aisuru.com',
|
|
61
|
+
uiLang: 'IT',
|
|
62
|
+
spokenLang: 'IT',
|
|
63
|
+
enableAudio: true,
|
|
64
|
+
showUpload: true,
|
|
65
|
+
};
|
|
66
|
+
|
|
53
67
|
export const Nunzio = Template.bind({});
|
|
54
68
|
Nunzio.args = {
|
|
55
69
|
ownerUserName: 'nunzio.fiore',
|
|
@@ -127,8 +141,32 @@ Giovanna.args = {
|
|
|
127
141
|
layout: 'ZOOMED_FULL_BODY',
|
|
128
142
|
};
|
|
129
143
|
|
|
130
|
-
export const
|
|
131
|
-
|
|
144
|
+
export const GiovannaRPMProva = Template.bind({});
|
|
145
|
+
GiovannaRPMProva.args = {
|
|
146
|
+
memoriName: 'Giovanna Test',
|
|
147
|
+
ownerUserName: 'andrea.patini3',
|
|
148
|
+
memoriID: '431d9819-c958-442c-a799-f90617371c0c',
|
|
149
|
+
ownerUserID: '58770358-a5db-4b49-b3a4-734fc468e745',
|
|
150
|
+
tenantID: 'aisuru-staging.aclambda.online',
|
|
151
|
+
engineURL: 'https://engine-staging.memori.ai',
|
|
152
|
+
apiURL: 'https://backend-staging.memori.ai',
|
|
153
|
+
baseURL: 'https://aisuru-staging.aclambda.online',
|
|
154
|
+
uiLang: 'EN',
|
|
155
|
+
spokenLang: 'IT',
|
|
156
|
+
layout: 'ZOOMED_FULL_BODY',
|
|
157
|
+
integrationID: '061898c0-2138-49da-a6b3-5d86267aad05',
|
|
158
|
+
initialQuestion: 'inizio simulazione',
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
export const GiovannaGLBProva = Template.bind({});
|
|
162
|
+
GiovannaGLBProva.args = {
|
|
163
|
+
...GiovannaRPMProva.args,
|
|
164
|
+
integrationID: 'd2099459-0f10-40cd-85e1-06e77a678723',
|
|
165
|
+
layout: 'ZOOMED_FULL_BODY',
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
export const GiovannaProvaWithPreviousSession = Template.bind({});
|
|
169
|
+
GiovannaProvaWithPreviousSession.args = {
|
|
132
170
|
memoriName: 'Giovanna Test',
|
|
133
171
|
ownerUserName: 'andrea.patini3',
|
|
134
172
|
memoriID: '431d9819-c958-442c-a799-f90617371c0c',
|
|
@@ -142,6 +180,34 @@ GiovannaProva.args = {
|
|
|
142
180
|
layout: 'ZOOMED_FULL_BODY',
|
|
143
181
|
integrationID: 'e92ac275-39b5-474d-8f9e-826cc5284f1e',
|
|
144
182
|
initialQuestion: 'inizio simulazione',
|
|
183
|
+
sessionID: 'c1d13cec-1571-41a0-90bc-15bd2d62e263',
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
export const CreaRiassunti = Template.bind({});
|
|
187
|
+
CreaRiassunti.args = {
|
|
188
|
+
memoriName: 'Crea Riassunti',
|
|
189
|
+
ownerUserName: 'patini929',
|
|
190
|
+
memoriID: '514dd043-ec26-4c57-a014-a512c9014822',
|
|
191
|
+
ownerUserID: '1941d326-6986-4fa1-872b-458d09fb654c',
|
|
192
|
+
tenantID: 'www.aisuru.com',
|
|
193
|
+
engineURL: 'https://engine.memori.ai',
|
|
194
|
+
apiURL: 'https://backend.memori.ai',
|
|
195
|
+
baseURL: 'https://www.aisuru.com',
|
|
196
|
+
uiLang: 'IT',
|
|
197
|
+
spokenLang: 'FR',
|
|
198
|
+
layout: 'CHAT',
|
|
199
|
+
showUpload: true,
|
|
200
|
+
showInstruct: false,
|
|
201
|
+
showSettings: true,
|
|
202
|
+
showClear: false,
|
|
203
|
+
showAIicon: true,
|
|
204
|
+
showWhyThisAnswer: true,
|
|
205
|
+
showTypingText: false,
|
|
206
|
+
showOnlyLastMessages: false,
|
|
207
|
+
showTranslationOriginal: false,
|
|
208
|
+
showCopyButton: false,
|
|
209
|
+
showShare: true,
|
|
210
|
+
showLogin: false,
|
|
145
211
|
};
|
|
146
212
|
|
|
147
213
|
export const NunzioFiore = Template.bind({});
|
package/src/index.tsx
CHANGED
|
@@ -44,6 +44,7 @@ export interface Props {
|
|
|
44
44
|
showOnlyLastMessages?: boolean;
|
|
45
45
|
showTypingText?: boolean;
|
|
46
46
|
showLogin?: boolean;
|
|
47
|
+
showUpload?: boolean;
|
|
47
48
|
height?: number | string;
|
|
48
49
|
baseURL?: string;
|
|
49
50
|
apiURL?: string;
|
|
@@ -107,6 +108,7 @@ const Memori: React.FC<Props> = ({
|
|
|
107
108
|
showInputs = true,
|
|
108
109
|
showDates = false,
|
|
109
110
|
showContextPerLine = false,
|
|
111
|
+
showUpload = false,
|
|
110
112
|
showLogin,
|
|
111
113
|
height = '100%',
|
|
112
114
|
baseURL,
|
|
@@ -266,6 +268,7 @@ const Memori: React.FC<Props> = ({
|
|
|
266
268
|
showDates={showDates}
|
|
267
269
|
showContextPerLine={showContextPerLine}
|
|
268
270
|
showLogin={showLogin ?? memori?.enableDeepThought}
|
|
271
|
+
showUpload={showUpload}
|
|
269
272
|
integration={memori?.integrations?.find(i =>
|
|
270
273
|
integrationID
|
|
271
274
|
? i.integrationID === integrationID
|
|
@@ -343,6 +346,7 @@ Memori.propTypes = {
|
|
|
343
346
|
showOnlyLastMessages: PropTypes.bool,
|
|
344
347
|
showTypingText: PropTypes.bool,
|
|
345
348
|
showLogin: PropTypes.bool,
|
|
349
|
+
showUpload: PropTypes.bool,
|
|
346
350
|
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
347
351
|
baseURL: PropTypes.string,
|
|
348
352
|
apiURL: PropTypes.string,
|
package/src/styles.css
CHANGED
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
@import url('./components/ui/Details.css');
|
|
11
11
|
@import url('./components/ui/Expandable.css');
|
|
12
12
|
@import url('./components/ui/Slider.css');
|
|
13
|
+
@import url('./components/UploadButton/UploadButton.css');
|
|
14
|
+
@import url('./components/FilePreview/FilePreview.css');
|
|
13
15
|
|
|
14
16
|
@import url('./components/CompletionProviderStatus/CompletionProviderStatus.css');
|
|
15
17
|
@import url('./components/PoweredBy/PoweredBy.css');
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Vector3, Euler } from 'three';
|
|
2
|
-
import { AnimationConfig } from './FullbodyAvatar/types';
|
|
3
|
-
|
|
4
|
-
export const AVATAR_POSITION = new Vector3(0, -1, 0);
|
|
5
|
-
export const AVATAR_ROTATION = new Euler(0.175, 0, 0);
|
|
6
|
-
export const AVATAR_POSITION_ZOOMED = new Vector3(0, -1.45, 0);
|
|
7
|
-
export const SCALE_LERP_FACTOR = 0.1;
|
|
8
|
-
|
|
9
|
-
export const ANIMATION_URLS = {
|
|
10
|
-
MALE: 'https://assets.memori.ai/api/v2/asset/2c5e88a4-cf62-408b-9ef0-518b099dfcb2.glb',
|
|
11
|
-
FEMALE:
|
|
12
|
-
'https://assets.memori.ai/api/v2/asset/2adc934b-24b2-45bd-94ad-ffec58d3cb32.glb',
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export const BLINK_CONFIG = {
|
|
16
|
-
minInterval: 1000,
|
|
17
|
-
maxInterval: 5000,
|
|
18
|
-
blinkDuration: 150,
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export const DEFAULT_CONFIG: AnimationConfig = {
|
|
22
|
-
fadeInDuration: 0.8,
|
|
23
|
-
fadeOutDuration: 0.8,
|
|
24
|
-
idleCount: 5,
|
|
25
|
-
timeScale: 1.0,
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export const EMOTION_SMOOTHING = 0.3;
|
|
29
|
-
export const VISEME_SMOOTHING = 0.5;
|