@memori.ai/memori-react 8.17.3 → 8.18.1

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.
Files changed (117) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +1 -0
  3. package/dist/components/Chat/Chat.d.ts +1 -0
  4. package/dist/components/Chat/Chat.js +2 -2
  5. package/dist/components/Chat/Chat.js.map +1 -1
  6. package/dist/components/ChatBubble/ChatBubble.js +2 -2
  7. package/dist/components/ChatBubble/ChatBubble.js.map +1 -1
  8. package/dist/components/ChatInputs/ChatInputs.css +9 -3
  9. package/dist/components/ChatInputs/ChatInputs.d.ts +1 -0
  10. package/dist/components/ChatInputs/ChatInputs.js +69 -3
  11. package/dist/components/ChatInputs/ChatInputs.js.map +1 -1
  12. package/dist/components/ChatTextArea/ChatTextArea.d.ts +1 -0
  13. package/dist/components/ChatTextArea/ChatTextArea.js +2 -2
  14. package/dist/components/ChatTextArea/ChatTextArea.js.map +1 -1
  15. package/dist/components/ContentPreviewModal/ContentPreviewModal.css +15 -0
  16. package/dist/components/FilePreview/FilePreview.css +17 -9
  17. package/dist/components/FilePreview/FilePreview.js +1 -2
  18. package/dist/components/FilePreview/FilePreview.js.map +1 -1
  19. package/dist/components/MediaWidget/MediaItemWidget.js +7 -1
  20. package/dist/components/MediaWidget/MediaItemWidget.js.map +1 -1
  21. package/dist/components/MemoriWidget/MemoriWidget.d.ts +2 -1
  22. package/dist/components/MemoriWidget/MemoriWidget.js +2 -1
  23. package/dist/components/MemoriWidget/MemoriWidget.js.map +1 -1
  24. package/dist/components/UploadButton/UploadButton.d.ts +1 -0
  25. package/dist/components/UploadButton/UploadButton.js +50 -24
  26. package/dist/components/UploadButton/UploadButton.js.map +1 -1
  27. package/dist/components/UploadButton/UploadDocuments/UploadDocuments.d.ts +5 -1
  28. package/dist/components/UploadButton/UploadDocuments/UploadDocuments.js +76 -21
  29. package/dist/components/UploadButton/UploadDocuments/UploadDocuments.js.map +1 -1
  30. package/dist/components/UploadButton/UploadImages/UploadImages.js +23 -4
  31. package/dist/components/UploadButton/UploadImages/UploadImages.js.map +1 -1
  32. package/dist/components/layouts/fullpage.css +1 -0
  33. package/dist/helpers/constants.d.ts +3 -1
  34. package/dist/helpers/constants.js +4 -2
  35. package/dist/helpers/constants.js.map +1 -1
  36. package/dist/index.d.ts +1 -0
  37. package/dist/index.js +3 -2
  38. package/dist/index.js.map +1 -1
  39. package/dist/locales/de.json +12 -1
  40. package/dist/locales/en.json +15 -1
  41. package/dist/locales/es.json +12 -1
  42. package/dist/locales/fr.json +12 -1
  43. package/dist/locales/it.json +15 -1
  44. package/dist/version.d.ts +1 -1
  45. package/dist/version.js +1 -1
  46. package/esm/components/Chat/Chat.d.ts +1 -0
  47. package/esm/components/Chat/Chat.js +2 -2
  48. package/esm/components/Chat/Chat.js.map +1 -1
  49. package/esm/components/ChatBubble/ChatBubble.js +2 -2
  50. package/esm/components/ChatBubble/ChatBubble.js.map +1 -1
  51. package/esm/components/ChatInputs/ChatInputs.css +9 -3
  52. package/esm/components/ChatInputs/ChatInputs.d.ts +1 -0
  53. package/esm/components/ChatInputs/ChatInputs.js +70 -4
  54. package/esm/components/ChatInputs/ChatInputs.js.map +1 -1
  55. package/esm/components/ChatTextArea/ChatTextArea.d.ts +1 -0
  56. package/esm/components/ChatTextArea/ChatTextArea.js +2 -2
  57. package/esm/components/ChatTextArea/ChatTextArea.js.map +1 -1
  58. package/esm/components/ContentPreviewModal/ContentPreviewModal.css +15 -0
  59. package/esm/components/FilePreview/FilePreview.css +17 -9
  60. package/esm/components/FilePreview/FilePreview.js +1 -2
  61. package/esm/components/FilePreview/FilePreview.js.map +1 -1
  62. package/esm/components/MediaWidget/MediaItemWidget.js +7 -1
  63. package/esm/components/MediaWidget/MediaItemWidget.js.map +1 -1
  64. package/esm/components/MemoriWidget/MemoriWidget.d.ts +2 -1
  65. package/esm/components/MemoriWidget/MemoriWidget.js +2 -1
  66. package/esm/components/MemoriWidget/MemoriWidget.js.map +1 -1
  67. package/esm/components/UploadButton/UploadButton.d.ts +1 -0
  68. package/esm/components/UploadButton/UploadButton.js +50 -24
  69. package/esm/components/UploadButton/UploadButton.js.map +1 -1
  70. package/esm/components/UploadButton/UploadDocuments/UploadDocuments.d.ts +5 -1
  71. package/esm/components/UploadButton/UploadDocuments/UploadDocuments.js +77 -22
  72. package/esm/components/UploadButton/UploadDocuments/UploadDocuments.js.map +1 -1
  73. package/esm/components/UploadButton/UploadImages/UploadImages.js +23 -4
  74. package/esm/components/UploadButton/UploadImages/UploadImages.js.map +1 -1
  75. package/esm/components/layouts/fullpage.css +1 -0
  76. package/esm/helpers/constants.d.ts +3 -1
  77. package/esm/helpers/constants.js +3 -1
  78. package/esm/helpers/constants.js.map +1 -1
  79. package/esm/index.d.ts +1 -0
  80. package/esm/index.js +3 -2
  81. package/esm/index.js.map +1 -1
  82. package/esm/locales/de.json +12 -1
  83. package/esm/locales/en.json +15 -1
  84. package/esm/locales/es.json +12 -1
  85. package/esm/locales/fr.json +12 -1
  86. package/esm/locales/it.json +15 -1
  87. package/esm/version.d.ts +1 -1
  88. package/esm/version.js +1 -1
  89. package/package.json +1 -1
  90. package/src/__snapshots__/index.test.tsx.snap +5 -5
  91. package/src/components/Chat/Chat.tsx +4 -0
  92. package/src/components/Chat/__snapshots__/Chat.test.tsx.snap +27 -81
  93. package/src/components/ChatBubble/ChatBubble.tsx +2 -2
  94. package/src/components/ChatBubble/__snapshots__/ChatBubble.test.tsx.snap +7 -21
  95. package/src/components/ChatInputs/ChatInputs.css +9 -3
  96. package/src/components/ChatInputs/ChatInputs.test.tsx +328 -1
  97. package/src/components/ChatInputs/ChatInputs.tsx +130 -8
  98. package/src/components/ChatTextArea/ChatTextArea.tsx +3 -0
  99. package/src/components/ContentPreviewModal/ContentPreviewModal.css +15 -0
  100. package/src/components/FilePreview/FilePreview.css +17 -9
  101. package/src/components/FilePreview/FilePreview.tsx +1 -7
  102. package/src/components/FilePreview/__snapshots__/FilePreview.test.tsx.snap +3 -3
  103. package/src/components/MediaWidget/MediaItemWidget.tsx +20 -2
  104. package/src/components/MemoriWidget/MemoriWidget.tsx +4 -0
  105. package/src/components/UploadButton/UploadButton.tsx +58 -31
  106. package/src/components/UploadButton/UploadDocuments/UploadDocuments.tsx +98 -30
  107. package/src/components/UploadButton/UploadImages/UploadImages.tsx +26 -5
  108. package/src/components/layouts/layouts.stories.tsx +1 -31
  109. package/src/helpers/constants.ts +16 -4
  110. package/src/index.stories.tsx +3 -2
  111. package/src/index.tsx +5 -0
  112. package/src/locales/de.json +12 -1
  113. package/src/locales/en.json +15 -1
  114. package/src/locales/es.json +12 -1
  115. package/src/locales/fr.json +12 -1
  116. package/src/locales/it.json +15 -1
  117. package/src/version.ts +1 -1
@@ -281,6 +281,8 @@
281
281
  },
282
282
  "upload": {
283
283
  "loginRequired": "Login richiesto",
284
+ "pastedText": "testo-copiato",
285
+ "uploadNotification": "Upload Fallito",
284
286
  "loginRequiredDescription": "Per caricare immagini, devi prima accedere",
285
287
  "uploadFiles": "Carica file ({{shortcut}}+O per aprire il selettore file)",
286
288
  "uploadFilesWithShortcut": "{{shortcut}}+O per aprire il selettore file",
@@ -303,7 +305,19 @@
303
305
  "uploadSuccessDescription": "Il file è stato caricato con successo",
304
306
  "partialUpload": "Solo {{uploaded}} immagini su {{total}} immagini saranno caricate. Massimo {{max}} immagini consentite.",
305
307
  "cancel": "Annulla",
306
- "dragAndDropFiles": "Trascina qui i file per aggiungerli alla chat"
308
+ "dragAndDropFiles": "Trascina qui i file per aggiungerli alla chat",
309
+ "pasteMaxAttachmentsReached": "Massimo {{max}} allegati. Rimuovine uno per aggiungere questo come file.",
310
+ "pasteContentTooLong": "Il testo incollato è troppo lungo (max {{size}}KB). Accorcialo o dividilo.",
311
+ "pasteAddedAsAttachment": "Testo incollato aggiunto come allegato",
312
+ "contextSizeExceedsLimit": "La dimensione del contesto supera il limite. Prova a ridurre il numero di file o il contenuto della conversazione.",
313
+ "filesNotAddedMaxAllowed": "{{count}} file non aggiunto/i (massimo {{max}} file consentiti).",
314
+ "documentsNotAddedMaxAllowed": "{{count}} documento/i non aggiunto/i (massimo {{max}} file consentiti).",
315
+ "imagesNotAddedMaxAllowed": "{{count}} immagine/i non aggiunta/e (massimo {{max}} file consentiti).",
316
+ "documentsNotAddedContextSize": "{{count}} documento/i non aggiunto/i (limite dimensione contesto).",
317
+ "documentNotReadable": "Il documento \"{{name}}\" non è stato letto o era vuoto.",
318
+ "noDocumentsAdded": "Nessun documento aggiunto. Controlla tipo, dimensione (max 10MB) e che il file sia leggibile.",
319
+ "noImagesAdded": "Nessuna immagine aggiunta. Controlla tipo (.jpg, .jpeg, .png) e dimensione (max 10MB).",
320
+ "imagesNotAddedMediaNotAccepted": "{{count}} immagine/i non aggiunta/e (caricamento media non consentito)."
307
321
  },
308
322
  "gamification": {
309
323
  "level": "Livello",
package/esm/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "8.17.3";
1
+ export declare const version = "8.18.1";
package/esm/version.js CHANGED
@@ -1,2 +1,2 @@
1
- export const version = '8.17.3';
1
+ export const version = '8.18.1';
2
2
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "8.17.3",
2
+ "version": "8.18.1",
3
3
  "name": "@memori.ai/memori-react",
4
4
  "author": "Memori Srl",
5
5
  "main": "dist/index.js",
@@ -3,7 +3,7 @@
3
3
  exports[`renders client 1`] = `
4
4
  <div>
5
5
  <div
6
- data-rht-toaster=""
6
+ id="_rht_toaster"
7
7
  style="position: fixed; z-index: 9999; top: 16px; left: 16px; right: 16px; bottom: 16px; pointer-events: none;"
8
8
  />
9
9
  <div
@@ -22,7 +22,7 @@ exports[`renders client 1`] = `
22
22
  exports[`renders client with all the props 1`] = `
23
23
  <div>
24
24
  <div
25
- data-rht-toaster=""
25
+ id="_rht_toaster"
26
26
  style="position: fixed; z-index: 9999; top: 16px; left: 16px; right: 16px; bottom: 16px; pointer-events: none;"
27
27
  />
28
28
  <div
@@ -41,7 +41,7 @@ exports[`renders client with all the props 1`] = `
41
41
  exports[`renders client with audio disabled 1`] = `
42
42
  <div>
43
43
  <div
44
- data-rht-toaster=""
44
+ id="_rht_toaster"
45
45
  style="position: fixed; z-index: 9999; top: 16px; left: 16px; right: 16px; bottom: 16px; pointer-events: none;"
46
46
  />
47
47
  <div
@@ -60,7 +60,7 @@ exports[`renders client with audio disabled 1`] = `
60
60
  exports[`renders client with whiteListedDomains on allowed domains 1`] = `
61
61
  <div>
62
62
  <div
63
- data-rht-toaster=""
63
+ id="_rht_toaster"
64
64
  style="position: fixed; z-index: 9999; top: 16px; left: 16px; right: 16px; bottom: 16px; pointer-events: none;"
65
65
  />
66
66
  <div
@@ -79,7 +79,7 @@ exports[`renders client with whiteListedDomains on allowed domains 1`] = `
79
79
  exports[`renders client with whiteListedDomains on not allowed domains 1`] = `
80
80
  <div>
81
81
  <div
82
- data-rht-toaster=""
82
+ id="_rht_toaster"
83
83
  style="position: fixed; z-index: 9999; top: 16px; left: 16px; right: 16px; bottom: 16px; pointer-events: none;"
84
84
  />
85
85
  <div
@@ -74,6 +74,8 @@ export interface Props {
74
74
  isHistoryView?: boolean;
75
75
  isChatlogPanel?: boolean;
76
76
  showFunctionCache?: boolean;
77
+ /** Override total document payload and per-document content limit (character count). */
78
+ maxTotalMessagePayload?: number;
77
79
  }
78
80
 
79
81
  const Chat: React.FC<Props> = ({
@@ -125,6 +127,7 @@ const Chat: React.FC<Props> = ({
125
127
  isHistoryView = false,
126
128
  isChatlogPanel = false,
127
129
  showFunctionCache = false,
130
+ maxTotalMessagePayload,
128
131
  }) => {
129
132
  const [isTextareaExpanded, setIsTextareaExpanded] = useState(false);
130
133
  const [isDragging, setIsDragging] = useState(false);
@@ -542,6 +545,7 @@ const Chat: React.FC<Props> = ({
542
545
  isPlayingAudio={isPlayingAudio}
543
546
  showMicrophone={showMicrophone}
544
547
  memoriID={memori?.memoriID}
548
+ maxTotalMessagePayload={maxTotalMessagePayload}
545
549
  />
546
550
  )}
547
551
  </div>
@@ -106,9 +106,7 @@ exports[`renders Chat unchanged 1`] = `
106
106
  class="memori-chat--bubble-content"
107
107
  dir="auto"
108
108
  >
109
- <p>
110
- Prova
111
- </p>
109
+ Prova
112
110
  </div>
113
111
  </div>
114
112
  </div>
@@ -252,9 +250,7 @@ exports[`renders Chat unchanged 1`] = `
252
250
  class="memori-chat--bubble-content"
253
251
  dir="auto"
254
252
  >
255
- <p>
256
- Come faccio a fare delle cose con questa cosa?
257
- </p>
253
+ Come faccio a fare delle cose con questa cosa?
258
254
  </div>
259
255
  </div>
260
256
  </div>
@@ -437,9 +433,7 @@ exports[`renders Chat unchanged 1`] = `
437
433
  class="memori-chat--bubble-content"
438
434
  dir="auto"
439
435
  >
440
- <p>
441
- Ah, grazie! Ciao!
442
- </p>
436
+ Ah, grazie! Ciao!
443
437
  </div>
444
438
  </div>
445
439
  </div>
@@ -742,9 +736,7 @@ exports[`renders Chat with context vars unchanged 1`] = `
742
736
  class="memori-chat--bubble-content"
743
737
  dir="auto"
744
738
  >
745
- <p>
746
- Prova
747
- </p>
739
+ Prova
748
740
  </div>
749
741
  </div>
750
742
  </div>
@@ -888,9 +880,7 @@ exports[`renders Chat with context vars unchanged 1`] = `
888
880
  class="memori-chat--bubble-content"
889
881
  dir="auto"
890
882
  >
891
- <p>
892
- Come faccio a fare delle cose con questa cosa?
893
- </p>
883
+ Come faccio a fare delle cose con questa cosa?
894
884
  </div>
895
885
  </div>
896
886
  </div>
@@ -1088,9 +1078,7 @@ exports[`renders Chat with context vars unchanged 1`] = `
1088
1078
  class="memori-chat--bubble-content"
1089
1079
  dir="auto"
1090
1080
  >
1091
- <p>
1092
- Ah, grazie! Ciao!
1093
- </p>
1081
+ Ah, grazie! Ciao!
1094
1082
  </div>
1095
1083
  </div>
1096
1084
  </div>
@@ -1408,9 +1396,7 @@ exports[`renders Chat with custom user avatar as react element unchanged 1`] = `
1408
1396
  class="memori-chat--bubble-content"
1409
1397
  dir="auto"
1410
1398
  >
1411
- <p>
1412
- Prova
1413
- </p>
1399
+ Prova
1414
1400
  </div>
1415
1401
  </div>
1416
1402
  </div>
@@ -1546,9 +1532,7 @@ exports[`renders Chat with custom user avatar as react element unchanged 1`] = `
1546
1532
  class="memori-chat--bubble-content"
1547
1533
  dir="auto"
1548
1534
  >
1549
- <p>
1550
- Come faccio a fare delle cose con questa cosa?
1551
- </p>
1535
+ Come faccio a fare delle cose con questa cosa?
1552
1536
  </div>
1553
1537
  </div>
1554
1538
  </div>
@@ -1723,9 +1707,7 @@ exports[`renders Chat with custom user avatar as react element unchanged 1`] = `
1723
1707
  class="memori-chat--bubble-content"
1724
1708
  dir="auto"
1725
1709
  >
1726
- <p>
1727
- Ah, grazie! Ciao!
1728
- </p>
1710
+ Ah, grazie! Ciao!
1729
1711
  </div>
1730
1712
  </div>
1731
1713
  </div>
@@ -2020,9 +2002,7 @@ exports[`renders Chat with custom user avatar unchanged 1`] = `
2020
2002
  class="memori-chat--bubble-content"
2021
2003
  dir="auto"
2022
2004
  >
2023
- <p>
2024
- Prova
2025
- </p>
2005
+ Prova
2026
2006
  </div>
2027
2007
  </div>
2028
2008
  </div>
@@ -2160,9 +2140,7 @@ exports[`renders Chat with custom user avatar unchanged 1`] = `
2160
2140
  class="memori-chat--bubble-content"
2161
2141
  dir="auto"
2162
2142
  >
2163
- <p>
2164
- Come faccio a fare delle cose con questa cosa?
2165
- </p>
2143
+ Come faccio a fare delle cose con questa cosa?
2166
2144
  </div>
2167
2145
  </div>
2168
2146
  </div>
@@ -2339,9 +2317,7 @@ exports[`renders Chat with custom user avatar unchanged 1`] = `
2339
2317
  class="memori-chat--bubble-content"
2340
2318
  dir="auto"
2341
2319
  >
2342
- <p>
2343
- Ah, grazie! Ciao!
2344
- </p>
2320
+ Ah, grazie! Ciao!
2345
2321
  </div>
2346
2322
  </div>
2347
2323
  </div>
@@ -2643,9 +2619,7 @@ exports[`renders Chat with dates unchanged 1`] = `
2643
2619
  class="memori-chat--bubble-content"
2644
2620
  dir="auto"
2645
2621
  >
2646
- <p>
2647
- Prova
2648
- </p>
2622
+ Prova
2649
2623
  </div>
2650
2624
  </div>
2651
2625
  </div>
@@ -2799,9 +2773,7 @@ exports[`renders Chat with dates unchanged 1`] = `
2799
2773
  class="memori-chat--bubble-content"
2800
2774
  dir="auto"
2801
2775
  >
2802
- <p>
2803
- Come faccio a fare delle cose con questa cosa?
2804
- </p>
2776
+ Come faccio a fare delle cose con questa cosa?
2805
2777
  </div>
2806
2778
  </div>
2807
2779
  </div>
@@ -2994,9 +2966,7 @@ exports[`renders Chat with dates unchanged 1`] = `
2994
2966
  class="memori-chat--bubble-content"
2995
2967
  dir="auto"
2996
2968
  >
2997
- <p>
2998
- Ah, grazie! Ciao!
2999
- </p>
2969
+ Ah, grazie! Ciao!
3000
2970
  </div>
3001
2971
  </div>
3002
2972
  </div>
@@ -3309,9 +3279,7 @@ exports[`renders Chat with hints unchanged 1`] = `
3309
3279
  class="memori-chat--bubble-content"
3310
3280
  dir="auto"
3311
3281
  >
3312
- <p>
3313
- Prova
3314
- </p>
3282
+ Prova
3315
3283
  </div>
3316
3284
  </div>
3317
3285
  </div>
@@ -3455,9 +3423,7 @@ exports[`renders Chat with hints unchanged 1`] = `
3455
3423
  class="memori-chat--bubble-content"
3456
3424
  dir="auto"
3457
3425
  >
3458
- <p>
3459
- Come faccio a fare delle cose con questa cosa?
3460
- </p>
3426
+ Come faccio a fare delle cose con questa cosa?
3461
3427
  </div>
3462
3428
  </div>
3463
3429
  </div>
@@ -3640,9 +3606,7 @@ exports[`renders Chat with hints unchanged 1`] = `
3640
3606
  class="memori-chat--bubble-content"
3641
3607
  dir="auto"
3642
3608
  >
3643
- <p>
3644
- Ah, grazie! Ciao!
3645
- </p>
3609
+ Ah, grazie! Ciao!
3646
3610
  </div>
3647
3611
  </div>
3648
3612
  </div>
@@ -3971,9 +3935,7 @@ exports[`renders Chat with media unchanged 1`] = `
3971
3935
  class="memori-chat--bubble-content"
3972
3936
  dir="auto"
3973
3937
  >
3974
- <p>
3975
- Prova
3976
- </p>
3938
+ Prova
3977
3939
  </div>
3978
3940
  </div>
3979
3941
  </div>
@@ -4117,9 +4079,7 @@ exports[`renders Chat with media unchanged 1`] = `
4117
4079
  class="memori-chat--bubble-content"
4118
4080
  dir="auto"
4119
4081
  >
4120
- <p>
4121
- Come faccio a fare delle cose con questa cosa?
4122
- </p>
4082
+ Come faccio a fare delle cose con questa cosa?
4123
4083
  </div>
4124
4084
  </div>
4125
4085
  </div>
@@ -4569,9 +4529,7 @@ exports[`renders Chat with media unchanged 1`] = `
4569
4529
  class="memori-chat--bubble-content"
4570
4530
  dir="auto"
4571
4531
  >
4572
- <p>
4573
- Ah, grazie! Ciao!
4574
- </p>
4532
+ Ah, grazie! Ciao!
4575
4533
  </div>
4576
4534
  </div>
4577
4535
  </div>
@@ -4874,9 +4832,7 @@ exports[`renders Chat with memori typing unchanged 1`] = `
4874
4832
  class="memori-chat--bubble-content"
4875
4833
  dir="auto"
4876
4834
  >
4877
- <p>
4878
- Prova
4879
- </p>
4835
+ Prova
4880
4836
  </div>
4881
4837
  </div>
4882
4838
  </div>
@@ -5020,9 +4976,7 @@ exports[`renders Chat with memori typing unchanged 1`] = `
5020
4976
  class="memori-chat--bubble-content"
5021
4977
  dir="auto"
5022
4978
  >
5023
- <p>
5024
- Come faccio a fare delle cose con questa cosa?
5025
- </p>
4979
+ Come faccio a fare delle cose con questa cosa?
5026
4980
  </div>
5027
4981
  </div>
5028
4982
  </div>
@@ -5205,9 +5159,7 @@ exports[`renders Chat with memori typing unchanged 1`] = `
5205
5159
  class="memori-chat--bubble-content"
5206
5160
  dir="auto"
5207
5161
  >
5208
- <p>
5209
- Ah, grazie! Ciao!
5210
- </p>
5162
+ Ah, grazie! Ciao!
5211
5163
  </div>
5212
5164
  </div>
5213
5165
  </div>
@@ -5522,9 +5474,7 @@ exports[`renders Chat with user unchanged 1`] = `
5522
5474
  class="memori-chat--bubble-content"
5523
5475
  dir="auto"
5524
5476
  >
5525
- <p>
5526
- Prova
5527
- </p>
5477
+ Prova
5528
5478
  </div>
5529
5479
  </div>
5530
5480
  </div>
@@ -5662,9 +5612,7 @@ exports[`renders Chat with user unchanged 1`] = `
5662
5612
  class="memori-chat--bubble-content"
5663
5613
  dir="auto"
5664
5614
  >
5665
- <p>
5666
- Come faccio a fare delle cose con questa cosa?
5667
- </p>
5615
+ Come faccio a fare delle cose con questa cosa?
5668
5616
  </div>
5669
5617
  </div>
5670
5618
  </div>
@@ -5841,9 +5789,7 @@ exports[`renders Chat with user unchanged 1`] = `
5841
5789
  class="memori-chat--bubble-content"
5842
5790
  dir="auto"
5843
5791
  >
5844
- <p>
5845
- Ah, grazie! Ciao!
5846
- </p>
5792
+ Ah, grazie! Ciao!
5847
5793
  </div>
5848
5794
  </div>
5849
5795
  </div>
@@ -113,7 +113,7 @@ const ChatBubble: React.FC<Props> = ({
113
113
  ''
114
114
  );
115
115
  const { text: renderedText } = renderMsg(
116
- cleanText,
116
+ message.fromUser ? truncateMessage(cleanText) : cleanText,
117
117
  useMathFormatting,
118
118
  t('reasoning') || 'Reasoning...',
119
119
  showReasoning
@@ -440,7 +440,7 @@ const ChatBubble: React.FC<Props> = ({
440
440
  <div
441
441
  dir="auto"
442
442
  className="memori-chat--bubble-content"
443
- dangerouslySetInnerHTML={{ __html: renderedText }}
443
+ dangerouslySetInnerHTML={{ __html: cleanText }}
444
444
  />
445
445
  </Expandable>
446
446
  ) : (
@@ -19,9 +19,7 @@ exports[`renders ChatBubble from user with avatar as react element unchanged 1`]
19
19
  class="memori-chat--bubble-content"
20
20
  dir="auto"
21
21
  >
22
- <p>
23
- Proin libero ante, dignissim sit amet turpis a, pretium condimentum dolor.
24
- </p>
22
+ Proin libero ante, dignissim sit amet turpis a, pretium condimentum dolor.
25
23
  </div>
26
24
  </div>
27
25
  </div>
@@ -93,9 +91,7 @@ exports[`renders ChatBubble from user with avatar unchanged 1`] = `
93
91
  class="memori-chat--bubble-content"
94
92
  dir="auto"
95
93
  >
96
- <p>
97
- Proin libero ante, dignissim sit amet turpis a, pretium condimentum dolor.
98
- </p>
94
+ Proin libero ante, dignissim sit amet turpis a, pretium condimentum dolor.
99
95
  </div>
100
96
  </div>
101
97
  </div>
@@ -169,9 +165,7 @@ exports[`renders ChatBubble from user with custom avatar unchanged 1`] = `
169
165
  class="memori-chat--bubble-content"
170
166
  dir="auto"
171
167
  >
172
- <p>
173
- Proin libero ante, dignissim sit amet turpis a, pretium condimentum dolor.
174
- </p>
168
+ Proin libero ante, dignissim sit amet turpis a, pretium condimentum dolor.
175
169
  </div>
176
170
  </div>
177
171
  </div>
@@ -7764,9 +7758,7 @@ exports[`renders ChatBubble with msg from BoE expert unchanged 1`] = `
7764
7758
  class="memori-chat--bubble-content"
7765
7759
  dir="auto"
7766
7760
  >
7767
- <p>
7768
- Proin libero ante, dignissim sit amet turpis a, pretium condimentum dolor.
7769
- </p>
7761
+ Proin libero ante, dignissim sit amet turpis a, pretium condimentum dolor.
7770
7762
  </div>
7771
7763
  </div>
7772
7764
  </div>
@@ -7891,9 +7883,7 @@ exports[`renders ChatBubble with msg generated by AI unchanged 1`] = `
7891
7883
  class="memori-chat--bubble-content"
7892
7884
  dir="auto"
7893
7885
  >
7894
- <p>
7895
- Proin libero ante, dignissim sit amet turpis a, pretium condimentum dolor.
7896
- </p>
7886
+ Proin libero ante, dignissim sit amet turpis a, pretium condimentum dolor.
7897
7887
  </div>
7898
7888
  </div>
7899
7889
  </div>
@@ -8622,9 +8612,7 @@ exports[`renders ChatBubble with user msg unchanged 1`] = `
8622
8612
  class="memori-chat--bubble-content"
8623
8613
  dir="auto"
8624
8614
  >
8625
- <p>
8626
- Proin libero ante, dignissim sit amet turpis a, pretium condimentum dolor.
8627
- </p>
8615
+ Proin libero ante, dignissim sit amet turpis a, pretium condimentum dolor.
8628
8616
  </div>
8629
8617
  </div>
8630
8618
  </div>
@@ -8704,9 +8692,7 @@ exports[`shows copy button for user messages 1`] = `
8704
8692
  class="memori-chat--bubble-content"
8705
8693
  dir="auto"
8706
8694
  >
8707
- <p>
8708
- Mostra i pulsanti copia sul messaggio utente.
8709
- </p>
8695
+ Mostra i pulsanti copia sul messaggio utente.
8710
8696
  </div>
8711
8697
  </div>
8712
8698
  </div>
@@ -12,9 +12,8 @@
12
12
  .memori-chat-inputs {
13
13
  position: relative;
14
14
  display: flex;
15
- width: 100%;
16
- min-width: 97%;
17
- max-width: 97%;
15
+ min-width: 98%;
16
+ max-width: 98%;
18
17
  box-sizing: border-box;
19
18
  flex-flow: column;
20
19
  flex-shrink: 0;
@@ -34,6 +33,13 @@
34
33
  pointer-events: none;
35
34
  }
36
35
 
36
+ /* Wrapper so FilePreview horizontal scroll is constrained */
37
+ .memori-chat-inputs--preview-wrapper {
38
+ overflow: hidden;
39
+ width: 100%;
40
+ min-width: 0;
41
+ }
42
+
37
43
  .memori-chat-inputs--container {
38
44
  position: relative;
39
45
  display: grid;