@memori.ai/memori-react 7.1.2 → 7.2.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.
Files changed (58) hide show
  1. package/CHANGELOG.md +19 -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.css +15 -10
  7. package/dist/components/ChatBubble/ChatBubble.d.ts +1 -0
  8. package/dist/components/ChatBubble/ChatBubble.js +14 -4
  9. package/dist/components/ChatBubble/ChatBubble.js.map +1 -1
  10. package/dist/components/MemoriWidget/MemoriWidget.d.ts +2 -1
  11. package/dist/components/MemoriWidget/MemoriWidget.js +17 -16
  12. package/dist/components/MemoriWidget/MemoriWidget.js.map +1 -1
  13. package/dist/components/icons/Code.d.ts +5 -0
  14. package/dist/components/icons/Code.js +6 -0
  15. package/dist/components/icons/Code.js.map +1 -0
  16. package/dist/components/icons/Copy.js +1 -1
  17. package/dist/components/icons/Copy.js.map +1 -1
  18. package/dist/index.d.ts +1 -0
  19. package/dist/index.js +3 -2
  20. package/dist/index.js.map +1 -1
  21. package/dist/locales/en.json +1 -0
  22. package/dist/locales/it.json +1 -0
  23. package/esm/components/Chat/Chat.d.ts +1 -0
  24. package/esm/components/Chat/Chat.js +2 -2
  25. package/esm/components/Chat/Chat.js.map +1 -1
  26. package/esm/components/ChatBubble/ChatBubble.css +15 -10
  27. package/esm/components/ChatBubble/ChatBubble.d.ts +1 -0
  28. package/esm/components/ChatBubble/ChatBubble.js +14 -4
  29. package/esm/components/ChatBubble/ChatBubble.js.map +1 -1
  30. package/esm/components/MemoriWidget/MemoriWidget.d.ts +2 -1
  31. package/esm/components/MemoriWidget/MemoriWidget.js +17 -16
  32. package/esm/components/MemoriWidget/MemoriWidget.js.map +1 -1
  33. package/esm/components/icons/Code.d.ts +5 -0
  34. package/esm/components/icons/Code.js +4 -0
  35. package/esm/components/icons/Code.js.map +1 -0
  36. package/esm/components/icons/Copy.js +2 -2
  37. package/esm/components/icons/Copy.js.map +1 -1
  38. package/esm/index.d.ts +1 -0
  39. package/esm/index.js +3 -2
  40. package/esm/index.js.map +1 -1
  41. package/esm/locales/en.json +1 -0
  42. package/esm/locales/it.json +1 -0
  43. package/package.json +1 -1
  44. package/src/components/Chat/Chat.tsx +3 -0
  45. package/src/components/Chat/__snapshots__/Chat.test.tsx.snap +1672 -44
  46. package/src/components/ChatBubble/ChatBubble.css +15 -10
  47. package/src/components/ChatBubble/ChatBubble.stories.tsx +11 -0
  48. package/src/components/ChatBubble/ChatBubble.test.tsx +16 -0
  49. package/src/components/ChatBubble/ChatBubble.tsx +39 -1
  50. package/src/components/ChatBubble/__snapshots__/ChatBubble.test.tsx.snap +764 -11
  51. package/src/components/MediaWidget/__snapshots__/MediaItemWidget.test.tsx.snap +30 -4
  52. package/src/components/MemoriWidget/MemoriWidget.tsx +18 -15
  53. package/src/components/Snippet/__snapshots__/Snippet.test.tsx.snap +120 -16
  54. package/src/components/icons/Code.tsx +24 -0
  55. package/src/components/icons/Copy.tsx +8 -2
  56. package/src/index.tsx +4 -0
  57. package/src/locales/en.json +1 -0
  58. package/src/locales/it.json +1 -0
@@ -98,7 +98,7 @@ exports[`renders ChatBubble unchanged 1`] = `
98
98
  />
99
99
  </picture>
100
100
  <div
101
- class="memori-chat--bubble transition ease-in-out duration-300 opacity-0 scale-09 translate-x--30"
101
+ class="memori-chat--bubble memori-chat--with-addon transition ease-in-out duration-300 opacity-0 scale-09 translate-x--30"
102
102
  >
103
103
  <div
104
104
  class="memori-chat--bubble-content"
@@ -108,6 +108,43 @@ exports[`renders ChatBubble unchanged 1`] = `
108
108
  Proin libero ante, dignissim sit amet turpis a, pretium condimentum dolor.
109
109
  </p>
110
110
  </div>
111
+ <div
112
+ class="memori-chat--bubble-addon"
113
+ >
114
+ <button
115
+ class="memori-button memori-button--ghost memori-button--circle memori-button--padded memori-button--icon-only memori-chat--bubble-action-icon"
116
+ title="copy"
117
+ >
118
+ <span
119
+ class="memori-button--icon"
120
+ >
121
+ <svg
122
+ aria-hidden="true"
123
+ fill="none"
124
+ focusable="false"
125
+ role="img"
126
+ stroke="currentColor"
127
+ stroke-linecap="round"
128
+ stroke-linejoin="round"
129
+ stroke-width="1.5"
130
+ viewBox="0 0 24 24"
131
+ xmlns="http://www.w3.org/2000/svg"
132
+ >
133
+ <rect
134
+ height="14"
135
+ rx="2"
136
+ ry="2"
137
+ width="14"
138
+ x="8"
139
+ y="8"
140
+ />
141
+ <path
142
+ d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"
143
+ />
144
+ </svg>
145
+ </span>
146
+ </button>
147
+ </div>
111
148
  </div>
112
149
  </div>
113
150
  </div>
@@ -129,7 +166,7 @@ exports[`renders ChatBubble with complex markdown and math 1 unchanged 1`] = `
129
166
  />
130
167
  </picture>
131
168
  <div
132
- class="memori-chat--bubble transition ease-in-out duration-300 opacity-0 scale-09 translate-x--30"
169
+ class="memori-chat--bubble memori-chat--with-addon transition ease-in-out duration-300 opacity-0 scale-09 translate-x--30"
133
170
  >
134
171
  <div
135
172
  class="memori-chat--bubble-content"
@@ -1089,6 +1126,78 @@ exports[`renders ChatBubble with complex markdown and math 1 unchanged 1`] = `
1089
1126
  Quindi, l'ipotenusa del triangolo è di 5 cm.
1090
1127
  </p>
1091
1128
  </div>
1129
+ <div
1130
+ class="memori-chat--bubble-addon"
1131
+ >
1132
+ <button
1133
+ class="memori-button memori-button--ghost memori-button--circle memori-button--padded memori-button--icon-only memori-chat--bubble-action-icon"
1134
+ title="copy"
1135
+ >
1136
+ <span
1137
+ class="memori-button--icon"
1138
+ >
1139
+ <svg
1140
+ aria-hidden="true"
1141
+ fill="none"
1142
+ focusable="false"
1143
+ role="img"
1144
+ stroke="currentColor"
1145
+ stroke-linecap="round"
1146
+ stroke-linejoin="round"
1147
+ stroke-width="1.5"
1148
+ viewBox="0 0 24 24"
1149
+ xmlns="http://www.w3.org/2000/svg"
1150
+ >
1151
+ <rect
1152
+ height="14"
1153
+ rx="2"
1154
+ ry="2"
1155
+ width="14"
1156
+ x="8"
1157
+ y="8"
1158
+ />
1159
+ <path
1160
+ d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"
1161
+ />
1162
+ </svg>
1163
+ </span>
1164
+ </button>
1165
+ <button
1166
+ class="memori-button memori-button--ghost memori-button--circle memori-button--padded memori-button--icon-only memori-chat--bubble-action-icon"
1167
+ title="copyRawCode"
1168
+ >
1169
+ <span
1170
+ class="memori-button--icon"
1171
+ >
1172
+ <svg
1173
+ aria-hidden="true"
1174
+ fill="none"
1175
+ focusable="false"
1176
+ role="img"
1177
+ stroke="currentColor"
1178
+ stroke-linecap="round"
1179
+ stroke-linejoin="round"
1180
+ stroke-width="1.5"
1181
+ viewBox="0 0 24 24"
1182
+ xmlns="http://www.w3.org/2000/svg"
1183
+ >
1184
+ <path
1185
+ d="M10 9.5 8 12l2 2.5"
1186
+ />
1187
+ <path
1188
+ d="m14 9.5 2 2.5-2 2.5"
1189
+ />
1190
+ <rect
1191
+ height="18"
1192
+ rx="2"
1193
+ width="18"
1194
+ x="3"
1195
+ y="3"
1196
+ />
1197
+ </svg>
1198
+ </span>
1199
+ </button>
1200
+ </div>
1092
1201
  </div>
1093
1202
  </div>
1094
1203
  </div>
@@ -1110,7 +1219,7 @@ exports[`renders ChatBubble with complex markdown and math 2 unchanged 1`] = `
1110
1219
  />
1111
1220
  </picture>
1112
1221
  <div
1113
- class="memori-chat--bubble transition ease-in-out duration-300 opacity-0 scale-09 translate-x--30"
1222
+ class="memori-chat--bubble memori-chat--with-addon transition ease-in-out duration-300 opacity-0 scale-09 translate-x--30"
1114
1223
  >
1115
1224
  <div
1116
1225
  class="memori-chat--bubble-content"
@@ -1638,6 +1747,78 @@ exports[`renders ChatBubble with complex markdown and math 2 unchanged 1`] = `
1638
1747
  Seguendo questi passaggi, si ottiene una stima accurata delle resistenze dei materiali che possono essere utilizzate per le verifiche di sicurezza rispetto ad azioni antropiche e ambientali.
1639
1748
  </p>
1640
1749
  </div>
1750
+ <div
1751
+ class="memori-chat--bubble-addon"
1752
+ >
1753
+ <button
1754
+ class="memori-button memori-button--ghost memori-button--circle memori-button--padded memori-button--icon-only memori-chat--bubble-action-icon"
1755
+ title="copy"
1756
+ >
1757
+ <span
1758
+ class="memori-button--icon"
1759
+ >
1760
+ <svg
1761
+ aria-hidden="true"
1762
+ fill="none"
1763
+ focusable="false"
1764
+ role="img"
1765
+ stroke="currentColor"
1766
+ stroke-linecap="round"
1767
+ stroke-linejoin="round"
1768
+ stroke-width="1.5"
1769
+ viewBox="0 0 24 24"
1770
+ xmlns="http://www.w3.org/2000/svg"
1771
+ >
1772
+ <rect
1773
+ height="14"
1774
+ rx="2"
1775
+ ry="2"
1776
+ width="14"
1777
+ x="8"
1778
+ y="8"
1779
+ />
1780
+ <path
1781
+ d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"
1782
+ />
1783
+ </svg>
1784
+ </span>
1785
+ </button>
1786
+ <button
1787
+ class="memori-button memori-button--ghost memori-button--circle memori-button--padded memori-button--icon-only memori-chat--bubble-action-icon"
1788
+ title="copyRawCode"
1789
+ >
1790
+ <span
1791
+ class="memori-button--icon"
1792
+ >
1793
+ <svg
1794
+ aria-hidden="true"
1795
+ fill="none"
1796
+ focusable="false"
1797
+ role="img"
1798
+ stroke="currentColor"
1799
+ stroke-linecap="round"
1800
+ stroke-linejoin="round"
1801
+ stroke-width="1.5"
1802
+ viewBox="0 0 24 24"
1803
+ xmlns="http://www.w3.org/2000/svg"
1804
+ >
1805
+ <path
1806
+ d="M10 9.5 8 12l2 2.5"
1807
+ />
1808
+ <path
1809
+ d="m14 9.5 2 2.5-2 2.5"
1810
+ />
1811
+ <rect
1812
+ height="18"
1813
+ rx="2"
1814
+ width="18"
1815
+ x="3"
1816
+ y="3"
1817
+ />
1818
+ </svg>
1819
+ </span>
1820
+ </button>
1821
+ </div>
1641
1822
  </div>
1642
1823
  </div>
1643
1824
  </div>
@@ -1659,7 +1840,7 @@ exports[`renders ChatBubble with complex markdown and math 3 unchanged 1`] = `
1659
1840
  />
1660
1841
  </picture>
1661
1842
  <div
1662
- class="memori-chat--bubble transition ease-in-out duration-300 opacity-0 scale-09 translate-x--30"
1843
+ class="memori-chat--bubble memori-chat--with-addon transition ease-in-out duration-300 opacity-0 scale-09 translate-x--30"
1663
1844
  >
1664
1845
  <div
1665
1846
  class="memori-chat--bubble-content"
@@ -2527,6 +2708,78 @@ exports[`renders ChatBubble with complex markdown and math 3 unchanged 1`] = `
2527
2708
  .
2528
2709
  </p>
2529
2710
  </div>
2711
+ <div
2712
+ class="memori-chat--bubble-addon"
2713
+ >
2714
+ <button
2715
+ class="memori-button memori-button--ghost memori-button--circle memori-button--padded memori-button--icon-only memori-chat--bubble-action-icon"
2716
+ title="copy"
2717
+ >
2718
+ <span
2719
+ class="memori-button--icon"
2720
+ >
2721
+ <svg
2722
+ aria-hidden="true"
2723
+ fill="none"
2724
+ focusable="false"
2725
+ role="img"
2726
+ stroke="currentColor"
2727
+ stroke-linecap="round"
2728
+ stroke-linejoin="round"
2729
+ stroke-width="1.5"
2730
+ viewBox="0 0 24 24"
2731
+ xmlns="http://www.w3.org/2000/svg"
2732
+ >
2733
+ <rect
2734
+ height="14"
2735
+ rx="2"
2736
+ ry="2"
2737
+ width="14"
2738
+ x="8"
2739
+ y="8"
2740
+ />
2741
+ <path
2742
+ d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"
2743
+ />
2744
+ </svg>
2745
+ </span>
2746
+ </button>
2747
+ <button
2748
+ class="memori-button memori-button--ghost memori-button--circle memori-button--padded memori-button--icon-only memori-chat--bubble-action-icon"
2749
+ title="copyRawCode"
2750
+ >
2751
+ <span
2752
+ class="memori-button--icon"
2753
+ >
2754
+ <svg
2755
+ aria-hidden="true"
2756
+ fill="none"
2757
+ focusable="false"
2758
+ role="img"
2759
+ stroke="currentColor"
2760
+ stroke-linecap="round"
2761
+ stroke-linejoin="round"
2762
+ stroke-width="1.5"
2763
+ viewBox="0 0 24 24"
2764
+ xmlns="http://www.w3.org/2000/svg"
2765
+ >
2766
+ <path
2767
+ d="M10 9.5 8 12l2 2.5"
2768
+ />
2769
+ <path
2770
+ d="m14 9.5 2 2.5-2 2.5"
2771
+ />
2772
+ <rect
2773
+ height="18"
2774
+ rx="2"
2775
+ width="18"
2776
+ x="3"
2777
+ y="3"
2778
+ />
2779
+ </svg>
2780
+ </span>
2781
+ </button>
2782
+ </div>
2530
2783
  </div>
2531
2784
  </div>
2532
2785
  </div>
@@ -2548,7 +2801,7 @@ exports[`renders ChatBubble with complex markdown and math 4 unchanged 1`] = `
2548
2801
  />
2549
2802
  </picture>
2550
2803
  <div
2551
- class="memori-chat--bubble transition ease-in-out duration-300 opacity-0 scale-09 translate-x--30"
2804
+ class="memori-chat--bubble memori-chat--with-addon transition ease-in-out duration-300 opacity-0 scale-09 translate-x--30"
2552
2805
  >
2553
2806
  <div
2554
2807
  class="memori-chat--bubble-content"
@@ -2965,6 +3218,78 @@ exports[`renders ChatBubble with complex markdown and math 4 unchanged 1`] = `
2965
3218
  Per calcoli più dettagliati e specifici, si consiglia di consultare le normative tecniche locali e di utilizzare software di simulazione specializzati che possono prendere in considerazione tutti i fattori rilevanti.
2966
3219
  </p>
2967
3220
  </div>
3221
+ <div
3222
+ class="memori-chat--bubble-addon"
3223
+ >
3224
+ <button
3225
+ class="memori-button memori-button--ghost memori-button--circle memori-button--padded memori-button--icon-only memori-chat--bubble-action-icon"
3226
+ title="copy"
3227
+ >
3228
+ <span
3229
+ class="memori-button--icon"
3230
+ >
3231
+ <svg
3232
+ aria-hidden="true"
3233
+ fill="none"
3234
+ focusable="false"
3235
+ role="img"
3236
+ stroke="currentColor"
3237
+ stroke-linecap="round"
3238
+ stroke-linejoin="round"
3239
+ stroke-width="1.5"
3240
+ viewBox="0 0 24 24"
3241
+ xmlns="http://www.w3.org/2000/svg"
3242
+ >
3243
+ <rect
3244
+ height="14"
3245
+ rx="2"
3246
+ ry="2"
3247
+ width="14"
3248
+ x="8"
3249
+ y="8"
3250
+ />
3251
+ <path
3252
+ d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"
3253
+ />
3254
+ </svg>
3255
+ </span>
3256
+ </button>
3257
+ <button
3258
+ class="memori-button memori-button--ghost memori-button--circle memori-button--padded memori-button--icon-only memori-chat--bubble-action-icon"
3259
+ title="copyRawCode"
3260
+ >
3261
+ <span
3262
+ class="memori-button--icon"
3263
+ >
3264
+ <svg
3265
+ aria-hidden="true"
3266
+ fill="none"
3267
+ focusable="false"
3268
+ role="img"
3269
+ stroke="currentColor"
3270
+ stroke-linecap="round"
3271
+ stroke-linejoin="round"
3272
+ stroke-width="1.5"
3273
+ viewBox="0 0 24 24"
3274
+ xmlns="http://www.w3.org/2000/svg"
3275
+ >
3276
+ <path
3277
+ d="M10 9.5 8 12l2 2.5"
3278
+ />
3279
+ <path
3280
+ d="m14 9.5 2 2.5-2 2.5"
3281
+ />
3282
+ <rect
3283
+ height="18"
3284
+ rx="2"
3285
+ width="18"
3286
+ x="3"
3287
+ y="3"
3288
+ />
3289
+ </svg>
3290
+ </span>
3291
+ </button>
3292
+ </div>
2968
3293
  </div>
2969
3294
  </div>
2970
3295
  </div>
@@ -2986,7 +3311,7 @@ exports[`renders ChatBubble with complex markdown and math 5 unchanged 1`] = `
2986
3311
  />
2987
3312
  </picture>
2988
3313
  <div
2989
- class="memori-chat--bubble transition ease-in-out duration-300 opacity-0 scale-09 translate-x--30"
3314
+ class="memori-chat--bubble memori-chat--with-addon transition ease-in-out duration-300 opacity-0 scale-09 translate-x--30"
2990
3315
  >
2991
3316
  <div
2992
3317
  class="memori-chat--bubble-content"
@@ -3020,6 +3345,109 @@ exports[`renders ChatBubble with complex markdown and math 5 unchanged 1`] = `
3020
3345
  Se hai altre domande o dubbi, sono qui per aiutarti!
3021
3346
  </p>
3022
3347
  </div>
3348
+ <div
3349
+ class="memori-chat--bubble-addon"
3350
+ >
3351
+ <button
3352
+ class="memori-button memori-button--ghost memori-button--circle memori-button--padded memori-button--icon-only memori-chat--bubble-action-icon"
3353
+ title="copy"
3354
+ >
3355
+ <span
3356
+ class="memori-button--icon"
3357
+ >
3358
+ <svg
3359
+ aria-hidden="true"
3360
+ fill="none"
3361
+ focusable="false"
3362
+ role="img"
3363
+ stroke="currentColor"
3364
+ stroke-linecap="round"
3365
+ stroke-linejoin="round"
3366
+ stroke-width="1.5"
3367
+ viewBox="0 0 24 24"
3368
+ xmlns="http://www.w3.org/2000/svg"
3369
+ >
3370
+ <rect
3371
+ height="14"
3372
+ rx="2"
3373
+ ry="2"
3374
+ width="14"
3375
+ x="8"
3376
+ y="8"
3377
+ />
3378
+ <path
3379
+ d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"
3380
+ />
3381
+ </svg>
3382
+ </span>
3383
+ </button>
3384
+ <button
3385
+ class="memori-button memori-button--ghost memori-button--circle memori-button--padded memori-button--icon-only memori-chat--bubble-action-icon"
3386
+ title="copyRawCode"
3387
+ >
3388
+ <span
3389
+ class="memori-button--icon"
3390
+ >
3391
+ <svg
3392
+ aria-hidden="true"
3393
+ fill="none"
3394
+ focusable="false"
3395
+ role="img"
3396
+ stroke="currentColor"
3397
+ stroke-linecap="round"
3398
+ stroke-linejoin="round"
3399
+ stroke-width="1.5"
3400
+ viewBox="0 0 24 24"
3401
+ xmlns="http://www.w3.org/2000/svg"
3402
+ >
3403
+ <path
3404
+ d="M10 9.5 8 12l2 2.5"
3405
+ />
3406
+ <path
3407
+ d="m14 9.5 2 2.5-2 2.5"
3408
+ />
3409
+ <rect
3410
+ height="18"
3411
+ rx="2"
3412
+ width="18"
3413
+ x="3"
3414
+ y="3"
3415
+ />
3416
+ </svg>
3417
+ </span>
3418
+ </button>
3419
+ </div>
3420
+ </div>
3421
+ </div>
3422
+ </div>
3423
+ `;
3424
+
3425
+ exports[`renders ChatBubble with copy disabled unchanged 1`] = `
3426
+ <div>
3427
+ <div
3428
+ class="memori-chat--bubble-container"
3429
+ >
3430
+ <picture
3431
+ class="memori-chat--bubble-avatar transition ease-in-out duration-300 opacity-0 scale-075 translate-x--15"
3432
+ title="Memori"
3433
+ >
3434
+ <img
3435
+ alt="Memori"
3436
+ class="memori-chat--bubble-avatar-img"
3437
+ src="https://aisuru.com/images/aisuru/square_logo.png"
3438
+ />
3439
+ </picture>
3440
+ <div
3441
+ class="memori-chat--bubble transition ease-in-out duration-300 opacity-0 scale-09 translate-x--30"
3442
+ >
3443
+ <div
3444
+ class="memori-chat--bubble-content"
3445
+ dir="auto"
3446
+ >
3447
+ <p>
3448
+ Proin libero ante, dignissim sit amet turpis a, pretium condimentum dolor.
3449
+ </p>
3450
+ </div>
3023
3451
  </div>
3024
3452
  </div>
3025
3453
  </div>
@@ -3044,7 +3472,7 @@ exports[`renders ChatBubble with initial msg unchanged 1`] = `
3044
3472
  />
3045
3473
  </picture>
3046
3474
  <div
3047
- class="memori-chat--bubble transition ease-in-out duration-300 opacity-0 scale-09 translate-x--30"
3475
+ class="memori-chat--bubble memori-chat--with-addon transition ease-in-out duration-300 opacity-0 scale-09 translate-x--30"
3048
3476
  >
3049
3477
  <div
3050
3478
  class="memori-chat--bubble-content"
@@ -3054,6 +3482,43 @@ exports[`renders ChatBubble with initial msg unchanged 1`] = `
3054
3482
  Proin libero ante, dignissim sit amet turpis a, pretium condimentum dolor.
3055
3483
  </p>
3056
3484
  </div>
3485
+ <div
3486
+ class="memori-chat--bubble-addon"
3487
+ >
3488
+ <button
3489
+ class="memori-button memori-button--ghost memori-button--circle memori-button--padded memori-button--icon-only memori-chat--bubble-action-icon"
3490
+ title="copy"
3491
+ >
3492
+ <span
3493
+ class="memori-button--icon"
3494
+ >
3495
+ <svg
3496
+ aria-hidden="true"
3497
+ fill="none"
3498
+ focusable="false"
3499
+ role="img"
3500
+ stroke="currentColor"
3501
+ stroke-linecap="round"
3502
+ stroke-linejoin="round"
3503
+ stroke-width="1.5"
3504
+ viewBox="0 0 24 24"
3505
+ xmlns="http://www.w3.org/2000/svg"
3506
+ >
3507
+ <rect
3508
+ height="14"
3509
+ rx="2"
3510
+ ry="2"
3511
+ width="14"
3512
+ x="8"
3513
+ y="8"
3514
+ />
3515
+ <path
3516
+ d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"
3517
+ />
3518
+ </svg>
3519
+ </span>
3520
+ </button>
3521
+ </div>
3057
3522
  </div>
3058
3523
  </div>
3059
3524
  </div>
@@ -3075,7 +3540,7 @@ exports[`renders ChatBubble with markdown and breakline unchanged 1`] = `
3075
3540
  />
3076
3541
  </picture>
3077
3542
  <div
3078
- class="memori-chat--bubble transition ease-in-out duration-300 opacity-0 scale-09 translate-x--30"
3543
+ class="memori-chat--bubble memori-chat--with-addon transition ease-in-out duration-300 opacity-0 scale-09 translate-x--30"
3079
3544
  >
3080
3545
  <div
3081
3546
  class="memori-chat--bubble-content"
@@ -3097,6 +3562,78 @@ exports[`renders ChatBubble with markdown and breakline unchanged 1`] = `
3097
3562
  - Rischi identificati.
3098
3563
  </p>
3099
3564
  </div>
3565
+ <div
3566
+ class="memori-chat--bubble-addon"
3567
+ >
3568
+ <button
3569
+ class="memori-button memori-button--ghost memori-button--circle memori-button--padded memori-button--icon-only memori-chat--bubble-action-icon"
3570
+ title="copy"
3571
+ >
3572
+ <span
3573
+ class="memori-button--icon"
3574
+ >
3575
+ <svg
3576
+ aria-hidden="true"
3577
+ fill="none"
3578
+ focusable="false"
3579
+ role="img"
3580
+ stroke="currentColor"
3581
+ stroke-linecap="round"
3582
+ stroke-linejoin="round"
3583
+ stroke-width="1.5"
3584
+ viewBox="0 0 24 24"
3585
+ xmlns="http://www.w3.org/2000/svg"
3586
+ >
3587
+ <rect
3588
+ height="14"
3589
+ rx="2"
3590
+ ry="2"
3591
+ width="14"
3592
+ x="8"
3593
+ y="8"
3594
+ />
3595
+ <path
3596
+ d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"
3597
+ />
3598
+ </svg>
3599
+ </span>
3600
+ </button>
3601
+ <button
3602
+ class="memori-button memori-button--ghost memori-button--circle memori-button--padded memori-button--icon-only memori-chat--bubble-action-icon"
3603
+ title="copyRawCode"
3604
+ >
3605
+ <span
3606
+ class="memori-button--icon"
3607
+ >
3608
+ <svg
3609
+ aria-hidden="true"
3610
+ fill="none"
3611
+ focusable="false"
3612
+ role="img"
3613
+ stroke="currentColor"
3614
+ stroke-linecap="round"
3615
+ stroke-linejoin="round"
3616
+ stroke-width="1.5"
3617
+ viewBox="0 0 24 24"
3618
+ xmlns="http://www.w3.org/2000/svg"
3619
+ >
3620
+ <path
3621
+ d="M10 9.5 8 12l2 2.5"
3622
+ />
3623
+ <path
3624
+ d="m14 9.5 2 2.5-2 2.5"
3625
+ />
3626
+ <rect
3627
+ height="18"
3628
+ rx="2"
3629
+ width="18"
3630
+ x="3"
3631
+ y="3"
3632
+ />
3633
+ </svg>
3634
+ </span>
3635
+ </button>
3636
+ </div>
3100
3637
  </div>
3101
3638
  </div>
3102
3639
  </div>
@@ -3118,7 +3655,7 @@ exports[`renders ChatBubble with markdown code unchanged 1`] = `
3118
3655
  />
3119
3656
  </picture>
3120
3657
  <div
3121
- class="memori-chat--bubble transition ease-in-out duration-300 opacity-0 scale-09 translate-x--30"
3658
+ class="memori-chat--bubble memori-chat--with-addon transition ease-in-out duration-300 opacity-0 scale-09 translate-x--30"
3122
3659
  >
3123
3660
  <div
3124
3661
  class="memori-chat--bubble-content"
@@ -3136,6 +3673,78 @@ exports[`renders ChatBubble with markdown code unchanged 1`] = `
3136
3673
  Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
3137
3674
  </p>
3138
3675
  </div>
3676
+ <div
3677
+ class="memori-chat--bubble-addon"
3678
+ >
3679
+ <button
3680
+ class="memori-button memori-button--ghost memori-button--circle memori-button--padded memori-button--icon-only memori-chat--bubble-action-icon"
3681
+ title="copy"
3682
+ >
3683
+ <span
3684
+ class="memori-button--icon"
3685
+ >
3686
+ <svg
3687
+ aria-hidden="true"
3688
+ fill="none"
3689
+ focusable="false"
3690
+ role="img"
3691
+ stroke="currentColor"
3692
+ stroke-linecap="round"
3693
+ stroke-linejoin="round"
3694
+ stroke-width="1.5"
3695
+ viewBox="0 0 24 24"
3696
+ xmlns="http://www.w3.org/2000/svg"
3697
+ >
3698
+ <rect
3699
+ height="14"
3700
+ rx="2"
3701
+ ry="2"
3702
+ width="14"
3703
+ x="8"
3704
+ y="8"
3705
+ />
3706
+ <path
3707
+ d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"
3708
+ />
3709
+ </svg>
3710
+ </span>
3711
+ </button>
3712
+ <button
3713
+ class="memori-button memori-button--ghost memori-button--circle memori-button--padded memori-button--icon-only memori-chat--bubble-action-icon"
3714
+ title="copyRawCode"
3715
+ >
3716
+ <span
3717
+ class="memori-button--icon"
3718
+ >
3719
+ <svg
3720
+ aria-hidden="true"
3721
+ fill="none"
3722
+ focusable="false"
3723
+ role="img"
3724
+ stroke="currentColor"
3725
+ stroke-linecap="round"
3726
+ stroke-linejoin="round"
3727
+ stroke-width="1.5"
3728
+ viewBox="0 0 24 24"
3729
+ xmlns="http://www.w3.org/2000/svg"
3730
+ >
3731
+ <path
3732
+ d="M10 9.5 8 12l2 2.5"
3733
+ />
3734
+ <path
3735
+ d="m14 9.5 2 2.5-2 2.5"
3736
+ />
3737
+ <rect
3738
+ height="18"
3739
+ rx="2"
3740
+ width="18"
3741
+ x="3"
3742
+ y="3"
3743
+ />
3744
+ </svg>
3745
+ </span>
3746
+ </button>
3747
+ </div>
3139
3748
  </div>
3140
3749
  </div>
3141
3750
  </div>
@@ -3157,7 +3766,7 @@ exports[`renders ChatBubble with markdown table unchanged 1`] = `
3157
3766
  />
3158
3767
  </picture>
3159
3768
  <div
3160
- class="memori-chat--bubble transition ease-in-out duration-300 opacity-0 scale-09 translate-x--30"
3769
+ class="memori-chat--bubble memori-chat--with-addon transition ease-in-out duration-300 opacity-0 scale-09 translate-x--30"
3161
3770
  >
3162
3771
  <div
3163
3772
  class="memori-chat--bubble-content"
@@ -3217,6 +3826,78 @@ exports[`renders ChatBubble with markdown table unchanged 1`] = `
3217
3826
  Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
3218
3827
  </p>
3219
3828
  </div>
3829
+ <div
3830
+ class="memori-chat--bubble-addon"
3831
+ >
3832
+ <button
3833
+ class="memori-button memori-button--ghost memori-button--circle memori-button--padded memori-button--icon-only memori-chat--bubble-action-icon"
3834
+ title="copy"
3835
+ >
3836
+ <span
3837
+ class="memori-button--icon"
3838
+ >
3839
+ <svg
3840
+ aria-hidden="true"
3841
+ fill="none"
3842
+ focusable="false"
3843
+ role="img"
3844
+ stroke="currentColor"
3845
+ stroke-linecap="round"
3846
+ stroke-linejoin="round"
3847
+ stroke-width="1.5"
3848
+ viewBox="0 0 24 24"
3849
+ xmlns="http://www.w3.org/2000/svg"
3850
+ >
3851
+ <rect
3852
+ height="14"
3853
+ rx="2"
3854
+ ry="2"
3855
+ width="14"
3856
+ x="8"
3857
+ y="8"
3858
+ />
3859
+ <path
3860
+ d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"
3861
+ />
3862
+ </svg>
3863
+ </span>
3864
+ </button>
3865
+ <button
3866
+ class="memori-button memori-button--ghost memori-button--circle memori-button--padded memori-button--icon-only memori-chat--bubble-action-icon"
3867
+ title="copyRawCode"
3868
+ >
3869
+ <span
3870
+ class="memori-button--icon"
3871
+ >
3872
+ <svg
3873
+ aria-hidden="true"
3874
+ fill="none"
3875
+ focusable="false"
3876
+ role="img"
3877
+ stroke="currentColor"
3878
+ stroke-linecap="round"
3879
+ stroke-linejoin="round"
3880
+ stroke-width="1.5"
3881
+ viewBox="0 0 24 24"
3882
+ xmlns="http://www.w3.org/2000/svg"
3883
+ >
3884
+ <path
3885
+ d="M10 9.5 8 12l2 2.5"
3886
+ />
3887
+ <path
3888
+ d="m14 9.5 2 2.5-2 2.5"
3889
+ />
3890
+ <rect
3891
+ height="18"
3892
+ rx="2"
3893
+ width="18"
3894
+ x="3"
3895
+ y="3"
3896
+ />
3897
+ </svg>
3898
+ </span>
3899
+ </button>
3900
+ </div>
3220
3901
  </div>
3221
3902
  </div>
3222
3903
  </div>
@@ -3238,7 +3919,7 @@ exports[`renders ChatBubble with markdown unchanged 1`] = `
3238
3919
  />
3239
3920
  </picture>
3240
3921
  <div
3241
- class="memori-chat--bubble transition ease-in-out duration-300 opacity-0 scale-09 translate-x--30"
3922
+ class="memori-chat--bubble memori-chat--with-addon transition ease-in-out duration-300 opacity-0 scale-09 translate-x--30"
3242
3923
  >
3243
3924
  <div
3244
3925
  class="memori-chat--bubble-content"
@@ -3404,6 +4085,78 @@ exports[`renders ChatBubble with markdown unchanged 1`] = `
3404
4085
  </a>
3405
4086
  </p>
3406
4087
  </div>
4088
+ <div
4089
+ class="memori-chat--bubble-addon"
4090
+ >
4091
+ <button
4092
+ class="memori-button memori-button--ghost memori-button--circle memori-button--padded memori-button--icon-only memori-chat--bubble-action-icon"
4093
+ title="copy"
4094
+ >
4095
+ <span
4096
+ class="memori-button--icon"
4097
+ >
4098
+ <svg
4099
+ aria-hidden="true"
4100
+ fill="none"
4101
+ focusable="false"
4102
+ role="img"
4103
+ stroke="currentColor"
4104
+ stroke-linecap="round"
4105
+ stroke-linejoin="round"
4106
+ stroke-width="1.5"
4107
+ viewBox="0 0 24 24"
4108
+ xmlns="http://www.w3.org/2000/svg"
4109
+ >
4110
+ <rect
4111
+ height="14"
4112
+ rx="2"
4113
+ ry="2"
4114
+ width="14"
4115
+ x="8"
4116
+ y="8"
4117
+ />
4118
+ <path
4119
+ d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"
4120
+ />
4121
+ </svg>
4122
+ </span>
4123
+ </button>
4124
+ <button
4125
+ class="memori-button memori-button--ghost memori-button--circle memori-button--padded memori-button--icon-only memori-chat--bubble-action-icon"
4126
+ title="copyRawCode"
4127
+ >
4128
+ <span
4129
+ class="memori-button--icon"
4130
+ >
4131
+ <svg
4132
+ aria-hidden="true"
4133
+ fill="none"
4134
+ focusable="false"
4135
+ role="img"
4136
+ stroke="currentColor"
4137
+ stroke-linecap="round"
4138
+ stroke-linejoin="round"
4139
+ stroke-width="1.5"
4140
+ viewBox="0 0 24 24"
4141
+ xmlns="http://www.w3.org/2000/svg"
4142
+ >
4143
+ <path
4144
+ d="M10 9.5 8 12l2 2.5"
4145
+ />
4146
+ <path
4147
+ d="m14 9.5 2 2.5-2 2.5"
4148
+ />
4149
+ <rect
4150
+ height="18"
4151
+ rx="2"
4152
+ width="18"
4153
+ x="3"
4154
+ y="3"
4155
+ />
4156
+ </svg>
4157
+ </span>
4158
+ </button>
4159
+ </div>
3407
4160
  </div>
3408
4161
  </div>
3409
4162
  </div>