@memori.ai/memori-react 8.29.1 → 8.30.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.
- package/CHANGELOG.md +24 -0
- package/README.md +1 -1
- package/dist/components/Chat/Chat.css +110 -9
- package/dist/components/Chat/Chat.d.ts +1 -0
- package/dist/components/Chat/Chat.js +72 -5
- package/dist/components/Chat/Chat.js.map +1 -1
- package/dist/components/ChatBubble/ChatBubble.d.ts +1 -0
- package/dist/components/ChatBubble/ChatBubble.js +2 -2
- package/dist/components/ChatBubble/ChatBubble.js.map +1 -1
- package/dist/components/ChatInputs/ChatInputs.js +2 -11
- package/dist/components/ChatInputs/ChatInputs.js.map +1 -1
- package/dist/components/MemoriWidget/MemoriWidget.d.ts +2 -1
- package/dist/components/MemoriWidget/MemoriWidget.js +13 -3
- package/dist/components/MemoriWidget/MemoriWidget.js.map +1 -1
- package/dist/components/UploadButton/UploadButton.js +8 -14
- package/dist/components/UploadButton/UploadButton.js.map +1 -1
- package/dist/components/UploadButton/UploadDocuments/UploadDocuments.d.ts +0 -1
- package/dist/components/UploadButton/UploadDocuments/UploadDocuments.js +1 -20
- package/dist/components/UploadButton/UploadDocuments/UploadDocuments.js.map +1 -1
- package/dist/helpers/constants.d.ts +1 -2
- package/dist/helpers/constants.js +2 -3
- package/dist/helpers/constants.js.map +1 -1
- package/dist/helpers/llmUsage.d.ts +60 -0
- package/dist/helpers/llmUsage.js +223 -0
- package/dist/helpers/llmUsage.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/locales/de.json +22 -0
- package/dist/locales/en.json +22 -0
- package/dist/locales/es.json +22 -0
- package/dist/locales/fr.json +22 -0
- package/dist/locales/it.json +22 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/esm/components/Chat/Chat.css +110 -9
- package/esm/components/Chat/Chat.d.ts +1 -0
- package/esm/components/Chat/Chat.js +74 -7
- package/esm/components/Chat/Chat.js.map +1 -1
- package/esm/components/ChatBubble/ChatBubble.d.ts +1 -0
- package/esm/components/ChatBubble/ChatBubble.js +2 -2
- package/esm/components/ChatBubble/ChatBubble.js.map +1 -1
- package/esm/components/ChatInputs/ChatInputs.js +2 -11
- package/esm/components/ChatInputs/ChatInputs.js.map +1 -1
- package/esm/components/MemoriWidget/MemoriWidget.d.ts +2 -1
- package/esm/components/MemoriWidget/MemoriWidget.js +13 -3
- package/esm/components/MemoriWidget/MemoriWidget.js.map +1 -1
- package/esm/components/UploadButton/UploadButton.js +8 -14
- package/esm/components/UploadButton/UploadButton.js.map +1 -1
- package/esm/components/UploadButton/UploadDocuments/UploadDocuments.d.ts +0 -1
- package/esm/components/UploadButton/UploadDocuments/UploadDocuments.js +1 -20
- package/esm/components/UploadButton/UploadDocuments/UploadDocuments.js.map +1 -1
- package/esm/helpers/constants.d.ts +1 -2
- package/esm/helpers/constants.js +1 -2
- package/esm/helpers/constants.js.map +1 -1
- package/esm/helpers/llmUsage.d.ts +60 -0
- package/esm/helpers/llmUsage.js +212 -0
- package/esm/helpers/llmUsage.js.map +1 -0
- package/esm/index.d.ts +1 -0
- package/esm/index.js +3 -1
- package/esm/index.js.map +1 -1
- package/esm/locales/de.json +22 -0
- package/esm/locales/en.json +22 -0
- package/esm/locales/es.json +22 -0
- package/esm/locales/fr.json +22 -0
- package/esm/locales/it.json +22 -0
- package/esm/version.d.ts +1 -1
- package/esm/version.js +1 -1
- package/package.json +3 -4
- package/src/components/Chat/Chat.css +110 -9
- package/src/components/Chat/Chat.stories.tsx +42 -0
- package/src/components/Chat/Chat.test.tsx +47 -0
- package/src/components/Chat/Chat.tsx +238 -5
- package/src/components/Chat/__snapshots__/Chat.test.tsx.snap +745 -0
- package/src/components/ChatBubble/ChatBubble.tsx +9 -0
- package/src/components/ChatInputs/ChatInputs.tsx +4 -15
- package/src/components/MemoriWidget/MemoriWidget.tsx +20 -2
- package/src/components/UploadButton/UploadButton.stories.tsx +3 -3
- package/src/components/UploadButton/UploadButton.tsx +8 -23
- package/src/components/UploadButton/UploadDocuments/UploadDocuments.tsx +1 -27
- package/src/helpers/constants.ts +1 -2
- package/src/helpers/llmUsage.ts +328 -0
- package/src/index.stories.tsx +2 -3
- package/src/index.tsx +5 -1
- package/src/locales/de.json +22 -0
- package/src/locales/en.json +22 -0
- package/src/locales/es.json +22 -0
- package/src/locales/fr.json +22 -0
- package/src/locales/it.json +22 -0
- package/src/version.ts +1 -1
|
@@ -5368,6 +5368,751 @@ exports[`renders Chat with memori typing unchanged 1`] = `
|
|
|
5368
5368
|
</div>
|
|
5369
5369
|
`;
|
|
5370
5370
|
|
|
5371
|
+
exports[`renders Chat with message consumption unchanged 1`] = `
|
|
5372
|
+
<div>
|
|
5373
|
+
<div
|
|
5374
|
+
class="memori-chat--wrapper"
|
|
5375
|
+
data-memori-lang="IT"
|
|
5376
|
+
id="chat-wrapper"
|
|
5377
|
+
>
|
|
5378
|
+
<div
|
|
5379
|
+
class="memori-chat--history"
|
|
5380
|
+
>
|
|
5381
|
+
<div
|
|
5382
|
+
class="memori-chat--content"
|
|
5383
|
+
style="padding-bottom: 0px;"
|
|
5384
|
+
>
|
|
5385
|
+
<div
|
|
5386
|
+
class="memori-chat--cover"
|
|
5387
|
+
/>
|
|
5388
|
+
<div
|
|
5389
|
+
class="memori-media-widget"
|
|
5390
|
+
/>
|
|
5391
|
+
<div
|
|
5392
|
+
class="memori-chat--bubble-initial"
|
|
5393
|
+
/>
|
|
5394
|
+
<div
|
|
5395
|
+
class="memori-chat--bubble-container memori-chat-scroll-item"
|
|
5396
|
+
>
|
|
5397
|
+
<picture
|
|
5398
|
+
class="memori-chat--bubble-avatar transition ease-in-out duration-300 opacity-0 scale-075 translate-x--15"
|
|
5399
|
+
title="Memori"
|
|
5400
|
+
>
|
|
5401
|
+
<img
|
|
5402
|
+
alt="Memori"
|
|
5403
|
+
class="memori-chat--bubble-avatar-img"
|
|
5404
|
+
src="https://aisuru.com/images/aisuru/square_logo.png"
|
|
5405
|
+
/>
|
|
5406
|
+
</picture>
|
|
5407
|
+
<div
|
|
5408
|
+
class="memori-chat--bubble memori-chat--with-addon transition ease-in-out duration-300 opacity-0 scale-09 translate-x--30"
|
|
5409
|
+
>
|
|
5410
|
+
<div
|
|
5411
|
+
class="memori-chat--bubble-content"
|
|
5412
|
+
dir="auto"
|
|
5413
|
+
>
|
|
5414
|
+
<p>
|
|
5415
|
+
Ciao, io sono test, c'è qualcosa che vorresti chiedermi?
|
|
5416
|
+
</p>
|
|
5417
|
+
</div>
|
|
5418
|
+
<div
|
|
5419
|
+
class="memori-chat--bubble-addon"
|
|
5420
|
+
>
|
|
5421
|
+
<button
|
|
5422
|
+
class="memori-button memori-button--ghost memori-button--circle memori-button--padded memori-button--icon-only memori-chat--bubble-action-icon"
|
|
5423
|
+
title="copy"
|
|
5424
|
+
>
|
|
5425
|
+
<span
|
|
5426
|
+
class="memori-button--icon"
|
|
5427
|
+
>
|
|
5428
|
+
<svg
|
|
5429
|
+
aria-hidden="true"
|
|
5430
|
+
fill="none"
|
|
5431
|
+
focusable="false"
|
|
5432
|
+
role="img"
|
|
5433
|
+
stroke="currentColor"
|
|
5434
|
+
stroke-linecap="round"
|
|
5435
|
+
stroke-linejoin="round"
|
|
5436
|
+
stroke-width="1.5"
|
|
5437
|
+
viewBox="0 0 24 24"
|
|
5438
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
5439
|
+
>
|
|
5440
|
+
<rect
|
|
5441
|
+
height="14"
|
|
5442
|
+
rx="2"
|
|
5443
|
+
ry="2"
|
|
5444
|
+
width="14"
|
|
5445
|
+
x="8"
|
|
5446
|
+
y="8"
|
|
5447
|
+
/>
|
|
5448
|
+
<path
|
|
5449
|
+
d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"
|
|
5450
|
+
/>
|
|
5451
|
+
</svg>
|
|
5452
|
+
</span>
|
|
5453
|
+
</button>
|
|
5454
|
+
</div>
|
|
5455
|
+
</div>
|
|
5456
|
+
</div>
|
|
5457
|
+
<div
|
|
5458
|
+
class="memori-media-widget"
|
|
5459
|
+
/>
|
|
5460
|
+
<div
|
|
5461
|
+
class="memori-chat--bubble-container memori-chat-scroll-item memori-chat--bubble-from-user"
|
|
5462
|
+
>
|
|
5463
|
+
<div
|
|
5464
|
+
class="memori-chat--bubble memori-chat--user-bubble memori-chat--with-addon transition ease-in-out duration-300 opacity-0 scale-09 translate-x-30"
|
|
5465
|
+
>
|
|
5466
|
+
<div
|
|
5467
|
+
class="memori-expandable memori-chat--bubble-content"
|
|
5468
|
+
>
|
|
5469
|
+
<div
|
|
5470
|
+
class="memori-expandable--inner"
|
|
5471
|
+
style="max-height: 9999px;"
|
|
5472
|
+
>
|
|
5473
|
+
<div
|
|
5474
|
+
class="memori-chat--bubble-content"
|
|
5475
|
+
dir="auto"
|
|
5476
|
+
>
|
|
5477
|
+
Prova
|
|
5478
|
+
</div>
|
|
5479
|
+
</div>
|
|
5480
|
+
</div>
|
|
5481
|
+
<div
|
|
5482
|
+
class="memori-chat--bubble-addon"
|
|
5483
|
+
>
|
|
5484
|
+
<button
|
|
5485
|
+
class="memori-button memori-button--ghost memori-button--circle memori-button--padded memori-button--icon-only memori-chat--bubble-action-icon memori-chat--bubble-action-icon--from-user"
|
|
5486
|
+
title="copy"
|
|
5487
|
+
>
|
|
5488
|
+
<span
|
|
5489
|
+
class="memori-button--icon"
|
|
5490
|
+
>
|
|
5491
|
+
<svg
|
|
5492
|
+
aria-hidden="true"
|
|
5493
|
+
fill="none"
|
|
5494
|
+
focusable="false"
|
|
5495
|
+
role="img"
|
|
5496
|
+
stroke="currentColor"
|
|
5497
|
+
stroke-linecap="round"
|
|
5498
|
+
stroke-linejoin="round"
|
|
5499
|
+
stroke-width="1.5"
|
|
5500
|
+
viewBox="0 0 24 24"
|
|
5501
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
5502
|
+
>
|
|
5503
|
+
<rect
|
|
5504
|
+
height="14"
|
|
5505
|
+
rx="2"
|
|
5506
|
+
ry="2"
|
|
5507
|
+
width="14"
|
|
5508
|
+
x="8"
|
|
5509
|
+
y="8"
|
|
5510
|
+
/>
|
|
5511
|
+
<path
|
|
5512
|
+
d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"
|
|
5513
|
+
/>
|
|
5514
|
+
</svg>
|
|
5515
|
+
</span>
|
|
5516
|
+
</button>
|
|
5517
|
+
</div>
|
|
5518
|
+
</div>
|
|
5519
|
+
<div
|
|
5520
|
+
class="memori-chat--bubble-avatar transition ease-in-out duration-300 opacity-0 scale-075 translate-x-15"
|
|
5521
|
+
>
|
|
5522
|
+
<svg
|
|
5523
|
+
aria-hidden="true"
|
|
5524
|
+
focusable="false"
|
|
5525
|
+
role="img"
|
|
5526
|
+
viewBox="0 0 1024 1024"
|
|
5527
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
5528
|
+
>
|
|
5529
|
+
<path
|
|
5530
|
+
d="M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"
|
|
5531
|
+
/>
|
|
5532
|
+
</svg>
|
|
5533
|
+
</div>
|
|
5534
|
+
</div>
|
|
5535
|
+
<div
|
|
5536
|
+
class="memori-media-widget"
|
|
5537
|
+
/>
|
|
5538
|
+
<div
|
|
5539
|
+
class="memori-chat--bubble-container memori-chat-scroll-item"
|
|
5540
|
+
>
|
|
5541
|
+
<picture
|
|
5542
|
+
class="memori-chat--bubble-avatar transition ease-in-out duration-300 opacity-0 scale-075 translate-x--15"
|
|
5543
|
+
title="Memori"
|
|
5544
|
+
>
|
|
5545
|
+
<img
|
|
5546
|
+
alt="Memori"
|
|
5547
|
+
class="memori-chat--bubble-avatar-img"
|
|
5548
|
+
src="https://aisuru.com/images/aisuru/square_logo.png"
|
|
5549
|
+
/>
|
|
5550
|
+
</picture>
|
|
5551
|
+
<div
|
|
5552
|
+
class="memori-chat--bubble memori-chat--with-addon transition ease-in-out duration-300 opacity-0 scale-09 translate-x--30"
|
|
5553
|
+
>
|
|
5554
|
+
<div
|
|
5555
|
+
class="memori-chat--bubble-content"
|
|
5556
|
+
dir="auto"
|
|
5557
|
+
>
|
|
5558
|
+
<p>
|
|
5559
|
+
Mi dispiace, le mie risposte sono limitate. Devi farmi le domande giuste. C'è altro che vuoi sapere?
|
|
5560
|
+
</p>
|
|
5561
|
+
</div>
|
|
5562
|
+
<div
|
|
5563
|
+
class="memori-chat--bubble-addon"
|
|
5564
|
+
>
|
|
5565
|
+
<button
|
|
5566
|
+
class="memori-button memori-button--ghost memori-button--circle memori-button--padded memori-button--icon-only memori-chat--bubble-action-icon"
|
|
5567
|
+
title="copy"
|
|
5568
|
+
>
|
|
5569
|
+
<span
|
|
5570
|
+
class="memori-button--icon"
|
|
5571
|
+
>
|
|
5572
|
+
<svg
|
|
5573
|
+
aria-hidden="true"
|
|
5574
|
+
fill="none"
|
|
5575
|
+
focusable="false"
|
|
5576
|
+
role="img"
|
|
5577
|
+
stroke="currentColor"
|
|
5578
|
+
stroke-linecap="round"
|
|
5579
|
+
stroke-linejoin="round"
|
|
5580
|
+
stroke-width="1.5"
|
|
5581
|
+
viewBox="0 0 24 24"
|
|
5582
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
5583
|
+
>
|
|
5584
|
+
<rect
|
|
5585
|
+
height="14"
|
|
5586
|
+
rx="2"
|
|
5587
|
+
ry="2"
|
|
5588
|
+
width="14"
|
|
5589
|
+
x="8"
|
|
5590
|
+
y="8"
|
|
5591
|
+
/>
|
|
5592
|
+
<path
|
|
5593
|
+
d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"
|
|
5594
|
+
/>
|
|
5595
|
+
</svg>
|
|
5596
|
+
</span>
|
|
5597
|
+
</button>
|
|
5598
|
+
</div>
|
|
5599
|
+
</div>
|
|
5600
|
+
</div>
|
|
5601
|
+
<div
|
|
5602
|
+
class="memori-media-widget"
|
|
5603
|
+
/>
|
|
5604
|
+
<div
|
|
5605
|
+
class="memori-chat--bubble-container memori-chat-scroll-item memori-chat--bubble-from-user"
|
|
5606
|
+
>
|
|
5607
|
+
<div
|
|
5608
|
+
class="memori-chat--bubble memori-chat--user-bubble memori-chat--with-addon transition ease-in-out duration-300 opacity-0 scale-09 translate-x-30"
|
|
5609
|
+
>
|
|
5610
|
+
<div
|
|
5611
|
+
class="memori-expandable memori-chat--bubble-content"
|
|
5612
|
+
>
|
|
5613
|
+
<div
|
|
5614
|
+
class="memori-expandable--inner"
|
|
5615
|
+
style="max-height: 9999px;"
|
|
5616
|
+
>
|
|
5617
|
+
<div
|
|
5618
|
+
class="memori-chat--bubble-content"
|
|
5619
|
+
dir="auto"
|
|
5620
|
+
>
|
|
5621
|
+
Come faccio a fare delle cose con questa cosa?
|
|
5622
|
+
</div>
|
|
5623
|
+
</div>
|
|
5624
|
+
</div>
|
|
5625
|
+
<div
|
|
5626
|
+
class="memori-chat--bubble-addon"
|
|
5627
|
+
>
|
|
5628
|
+
<button
|
|
5629
|
+
class="memori-button memori-button--ghost memori-button--circle memori-button--padded memori-button--icon-only memori-chat--bubble-action-icon memori-chat--bubble-action-icon--from-user"
|
|
5630
|
+
title="copy"
|
|
5631
|
+
>
|
|
5632
|
+
<span
|
|
5633
|
+
class="memori-button--icon"
|
|
5634
|
+
>
|
|
5635
|
+
<svg
|
|
5636
|
+
aria-hidden="true"
|
|
5637
|
+
fill="none"
|
|
5638
|
+
focusable="false"
|
|
5639
|
+
role="img"
|
|
5640
|
+
stroke="currentColor"
|
|
5641
|
+
stroke-linecap="round"
|
|
5642
|
+
stroke-linejoin="round"
|
|
5643
|
+
stroke-width="1.5"
|
|
5644
|
+
viewBox="0 0 24 24"
|
|
5645
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
5646
|
+
>
|
|
5647
|
+
<rect
|
|
5648
|
+
height="14"
|
|
5649
|
+
rx="2"
|
|
5650
|
+
ry="2"
|
|
5651
|
+
width="14"
|
|
5652
|
+
x="8"
|
|
5653
|
+
y="8"
|
|
5654
|
+
/>
|
|
5655
|
+
<path
|
|
5656
|
+
d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"
|
|
5657
|
+
/>
|
|
5658
|
+
</svg>
|
|
5659
|
+
</span>
|
|
5660
|
+
</button>
|
|
5661
|
+
</div>
|
|
5662
|
+
</div>
|
|
5663
|
+
<div
|
|
5664
|
+
class="memori-chat--bubble-avatar transition ease-in-out duration-300 opacity-0 scale-075 translate-x-15"
|
|
5665
|
+
>
|
|
5666
|
+
<svg
|
|
5667
|
+
aria-hidden="true"
|
|
5668
|
+
focusable="false"
|
|
5669
|
+
role="img"
|
|
5670
|
+
viewBox="0 0 1024 1024"
|
|
5671
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
5672
|
+
>
|
|
5673
|
+
<path
|
|
5674
|
+
d="M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"
|
|
5675
|
+
/>
|
|
5676
|
+
</svg>
|
|
5677
|
+
</div>
|
|
5678
|
+
</div>
|
|
5679
|
+
<div
|
|
5680
|
+
class="memori-media-widget"
|
|
5681
|
+
>
|
|
5682
|
+
<div
|
|
5683
|
+
class="memori-media-items"
|
|
5684
|
+
>
|
|
5685
|
+
<div
|
|
5686
|
+
class="memori-media-items--grid memori-chat-scroll-item memori-media-items--agent"
|
|
5687
|
+
>
|
|
5688
|
+
<div
|
|
5689
|
+
class="memori-media-item ease-out duration-500 delay-0 opacity-0 scale-95"
|
|
5690
|
+
>
|
|
5691
|
+
<a
|
|
5692
|
+
class="memori-media-item--link memori-media-item--document-link"
|
|
5693
|
+
href="https://memori.ai/131165be-9d1a-42fb-a3ce-e8f86d40c88f"
|
|
5694
|
+
rel="noopener noreferrer"
|
|
5695
|
+
target="_blank"
|
|
5696
|
+
title="Link"
|
|
5697
|
+
>
|
|
5698
|
+
<div
|
|
5699
|
+
class="memori-media-item--document"
|
|
5700
|
+
>
|
|
5701
|
+
<div
|
|
5702
|
+
class="memori-media-item--document-header"
|
|
5703
|
+
>
|
|
5704
|
+
<div
|
|
5705
|
+
class="memori-media-item--document-title"
|
|
5706
|
+
>
|
|
5707
|
+
Link
|
|
5708
|
+
</div>
|
|
5709
|
+
</div>
|
|
5710
|
+
<span
|
|
5711
|
+
class="memori-media-item--document-badge"
|
|
5712
|
+
>
|
|
5713
|
+
Link
|
|
5714
|
+
</span>
|
|
5715
|
+
</div>
|
|
5716
|
+
</a>
|
|
5717
|
+
</div>
|
|
5718
|
+
</div>
|
|
5719
|
+
</div>
|
|
5720
|
+
</div>
|
|
5721
|
+
<div
|
|
5722
|
+
class="memori-chat--bubble-container memori-chat-scroll-item"
|
|
5723
|
+
>
|
|
5724
|
+
<picture
|
|
5725
|
+
class="memori-chat--bubble-avatar transition ease-in-out duration-300 opacity-0 scale-075 translate-x--15"
|
|
5726
|
+
title="Memori"
|
|
5727
|
+
>
|
|
5728
|
+
<img
|
|
5729
|
+
alt="Memori"
|
|
5730
|
+
class="memori-chat--bubble-avatar-img"
|
|
5731
|
+
src="https://aisuru.com/images/aisuru/square_logo.png"
|
|
5732
|
+
/>
|
|
5733
|
+
</picture>
|
|
5734
|
+
<div
|
|
5735
|
+
class="memori-chat--bubble memori-chat--with-addon transition ease-in-out duration-300 opacity-0 scale-09 translate-x--30"
|
|
5736
|
+
>
|
|
5737
|
+
<div
|
|
5738
|
+
class="memori-chat--bubble-content"
|
|
5739
|
+
dir="auto"
|
|
5740
|
+
>
|
|
5741
|
+
<p>
|
|
5742
|
+
Ecco qui come.
|
|
5743
|
+
</p>
|
|
5744
|
+
</div>
|
|
5745
|
+
<div
|
|
5746
|
+
class="memori-chat--bubble-addon"
|
|
5747
|
+
>
|
|
5748
|
+
<button
|
|
5749
|
+
class="memori-button memori-button--ghost memori-button--circle memori-button--padded memori-button--icon-only memori-chat--bubble-action-icon"
|
|
5750
|
+
title="copy"
|
|
5751
|
+
>
|
|
5752
|
+
<span
|
|
5753
|
+
class="memori-button--icon"
|
|
5754
|
+
>
|
|
5755
|
+
<svg
|
|
5756
|
+
aria-hidden="true"
|
|
5757
|
+
fill="none"
|
|
5758
|
+
focusable="false"
|
|
5759
|
+
role="img"
|
|
5760
|
+
stroke="currentColor"
|
|
5761
|
+
stroke-linecap="round"
|
|
5762
|
+
stroke-linejoin="round"
|
|
5763
|
+
stroke-width="1.5"
|
|
5764
|
+
viewBox="0 0 24 24"
|
|
5765
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
5766
|
+
>
|
|
5767
|
+
<rect
|
|
5768
|
+
height="14"
|
|
5769
|
+
rx="2"
|
|
5770
|
+
ry="2"
|
|
5771
|
+
width="14"
|
|
5772
|
+
x="8"
|
|
5773
|
+
y="8"
|
|
5774
|
+
/>
|
|
5775
|
+
<path
|
|
5776
|
+
d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"
|
|
5777
|
+
/>
|
|
5778
|
+
</svg>
|
|
5779
|
+
</span>
|
|
5780
|
+
</button>
|
|
5781
|
+
</div>
|
|
5782
|
+
</div>
|
|
5783
|
+
</div>
|
|
5784
|
+
<div
|
|
5785
|
+
class="memori-media-widget"
|
|
5786
|
+
/>
|
|
5787
|
+
<div
|
|
5788
|
+
class="memori-chat--bubble-container memori-chat-scroll-item memori-chat--bubble-from-user"
|
|
5789
|
+
>
|
|
5790
|
+
<div
|
|
5791
|
+
class="memori-chat--bubble memori-chat--user-bubble memori-chat--with-addon transition ease-in-out duration-300 opacity-0 scale-09 translate-x-30"
|
|
5792
|
+
>
|
|
5793
|
+
<div
|
|
5794
|
+
class="memori-expandable memori-chat--bubble-content"
|
|
5795
|
+
>
|
|
5796
|
+
<div
|
|
5797
|
+
class="memori-expandable--inner"
|
|
5798
|
+
style="max-height: 9999px;"
|
|
5799
|
+
>
|
|
5800
|
+
<div
|
|
5801
|
+
class="memori-chat--bubble-content"
|
|
5802
|
+
dir="auto"
|
|
5803
|
+
>
|
|
5804
|
+
Ah, grazie! Ciao!
|
|
5805
|
+
</div>
|
|
5806
|
+
</div>
|
|
5807
|
+
</div>
|
|
5808
|
+
<div
|
|
5809
|
+
class="memori-chat--bubble-addon"
|
|
5810
|
+
>
|
|
5811
|
+
<button
|
|
5812
|
+
class="memori-button memori-button--ghost memori-button--circle memori-button--padded memori-button--icon-only memori-chat--bubble-action-icon memori-chat--bubble-action-icon--from-user"
|
|
5813
|
+
title="copy"
|
|
5814
|
+
>
|
|
5815
|
+
<span
|
|
5816
|
+
class="memori-button--icon"
|
|
5817
|
+
>
|
|
5818
|
+
<svg
|
|
5819
|
+
aria-hidden="true"
|
|
5820
|
+
fill="none"
|
|
5821
|
+
focusable="false"
|
|
5822
|
+
role="img"
|
|
5823
|
+
stroke="currentColor"
|
|
5824
|
+
stroke-linecap="round"
|
|
5825
|
+
stroke-linejoin="round"
|
|
5826
|
+
stroke-width="1.5"
|
|
5827
|
+
viewBox="0 0 24 24"
|
|
5828
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
5829
|
+
>
|
|
5830
|
+
<rect
|
|
5831
|
+
height="14"
|
|
5832
|
+
rx="2"
|
|
5833
|
+
ry="2"
|
|
5834
|
+
width="14"
|
|
5835
|
+
x="8"
|
|
5836
|
+
y="8"
|
|
5837
|
+
/>
|
|
5838
|
+
<path
|
|
5839
|
+
d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"
|
|
5840
|
+
/>
|
|
5841
|
+
</svg>
|
|
5842
|
+
</span>
|
|
5843
|
+
</button>
|
|
5844
|
+
</div>
|
|
5845
|
+
</div>
|
|
5846
|
+
<div
|
|
5847
|
+
class="memori-chat--bubble-avatar transition ease-in-out duration-300 opacity-0 scale-075 translate-x-15"
|
|
5848
|
+
>
|
|
5849
|
+
<svg
|
|
5850
|
+
aria-hidden="true"
|
|
5851
|
+
focusable="false"
|
|
5852
|
+
role="img"
|
|
5853
|
+
viewBox="0 0 1024 1024"
|
|
5854
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
5855
|
+
>
|
|
5856
|
+
<path
|
|
5857
|
+
d="M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"
|
|
5858
|
+
/>
|
|
5859
|
+
</svg>
|
|
5860
|
+
</div>
|
|
5861
|
+
</div>
|
|
5862
|
+
<div
|
|
5863
|
+
class="memori-media-widget"
|
|
5864
|
+
/>
|
|
5865
|
+
<div
|
|
5866
|
+
class="memori-chat--bubble-container memori-chat-scroll-item"
|
|
5867
|
+
>
|
|
5868
|
+
<picture
|
|
5869
|
+
class="memori-chat--bubble-avatar transition ease-in-out duration-300 opacity-0 scale-075 translate-x--15"
|
|
5870
|
+
title="Memori"
|
|
5871
|
+
>
|
|
5872
|
+
<img
|
|
5873
|
+
alt="Memori"
|
|
5874
|
+
class="memori-chat--bubble-avatar-img"
|
|
5875
|
+
src="https://aisuru.com/images/aisuru/square_logo.png"
|
|
5876
|
+
/>
|
|
5877
|
+
</picture>
|
|
5878
|
+
<div
|
|
5879
|
+
class="memori-chat--bubble memori-chat--with-addon transition ease-in-out duration-300 opacity-0 scale-09 translate-x--30"
|
|
5880
|
+
>
|
|
5881
|
+
<div
|
|
5882
|
+
class="memori-chat--bubble-content"
|
|
5883
|
+
dir="auto"
|
|
5884
|
+
>
|
|
5885
|
+
<p>
|
|
5886
|
+
Arrivederci.
|
|
5887
|
+
</p>
|
|
5888
|
+
</div>
|
|
5889
|
+
<div
|
|
5890
|
+
class="memori-chat--bubble-addon"
|
|
5891
|
+
>
|
|
5892
|
+
<button
|
|
5893
|
+
class="memori-button memori-button--ghost memori-button--circle memori-button--padded memori-button--icon-only memori-chat--bubble-action-icon"
|
|
5894
|
+
title="copy"
|
|
5895
|
+
>
|
|
5896
|
+
<span
|
|
5897
|
+
class="memori-button--icon"
|
|
5898
|
+
>
|
|
5899
|
+
<svg
|
|
5900
|
+
aria-hidden="true"
|
|
5901
|
+
fill="none"
|
|
5902
|
+
focusable="false"
|
|
5903
|
+
role="img"
|
|
5904
|
+
stroke="currentColor"
|
|
5905
|
+
stroke-linecap="round"
|
|
5906
|
+
stroke-linejoin="round"
|
|
5907
|
+
stroke-width="1.5"
|
|
5908
|
+
viewBox="0 0 24 24"
|
|
5909
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
5910
|
+
>
|
|
5911
|
+
<rect
|
|
5912
|
+
height="14"
|
|
5913
|
+
rx="2"
|
|
5914
|
+
ry="2"
|
|
5915
|
+
width="14"
|
|
5916
|
+
x="8"
|
|
5917
|
+
y="8"
|
|
5918
|
+
/>
|
|
5919
|
+
<path
|
|
5920
|
+
d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"
|
|
5921
|
+
/>
|
|
5922
|
+
</svg>
|
|
5923
|
+
</span>
|
|
5924
|
+
</button>
|
|
5925
|
+
</div>
|
|
5926
|
+
</div>
|
|
5927
|
+
</div>
|
|
5928
|
+
<div
|
|
5929
|
+
class="memori-media-widget"
|
|
5930
|
+
/>
|
|
5931
|
+
<div
|
|
5932
|
+
class="memori-chat--bubble-container memori-chat-scroll-item"
|
|
5933
|
+
>
|
|
5934
|
+
<picture
|
|
5935
|
+
class="memori-chat--bubble-avatar transition ease-in-out duration-300 opacity-0 scale-075 translate-x--15"
|
|
5936
|
+
title="Memori"
|
|
5937
|
+
>
|
|
5938
|
+
<img
|
|
5939
|
+
alt="Memori"
|
|
5940
|
+
class="memori-chat--bubble-avatar-img"
|
|
5941
|
+
src="https://aisuru.com/images/aisuru/square_logo.png"
|
|
5942
|
+
/>
|
|
5943
|
+
</picture>
|
|
5944
|
+
<div
|
|
5945
|
+
class="memori-chat--bubble memori-chat--with-addon transition ease-in-out duration-300 opacity-0 scale-09 translate-x--30"
|
|
5946
|
+
>
|
|
5947
|
+
<div
|
|
5948
|
+
class="memori-chat--bubble-content"
|
|
5949
|
+
dir="auto"
|
|
5950
|
+
>
|
|
5951
|
+
<p>
|
|
5952
|
+
AI message with usage
|
|
5953
|
+
</p>
|
|
5954
|
+
</div>
|
|
5955
|
+
<div
|
|
5956
|
+
class="memori-chat--usage-inside-bubble"
|
|
5957
|
+
>
|
|
5958
|
+
<div
|
|
5959
|
+
class="memori-chat--llm-usage"
|
|
5960
|
+
data-llm-usage=""
|
|
5961
|
+
>
|
|
5962
|
+
<hr
|
|
5963
|
+
class="memori-chat--llm-usage-hr"
|
|
5964
|
+
/>
|
|
5965
|
+
<p
|
|
5966
|
+
class="memori-chat--llm-usage-hint"
|
|
5967
|
+
>
|
|
5968
|
+
chatLogs.usageBadgesHint
|
|
5969
|
+
</p>
|
|
5970
|
+
<div
|
|
5971
|
+
class="memori-chat--llm-usage-badges"
|
|
5972
|
+
>
|
|
5973
|
+
<button
|
|
5974
|
+
aria-label="chatLogs.llm"
|
|
5975
|
+
class="memori-chat--usage-badge memori-chat--usage-badge-llm"
|
|
5976
|
+
data-line-index="7"
|
|
5977
|
+
data-llm-badge-type="llm"
|
|
5978
|
+
type="button"
|
|
5979
|
+
>
|
|
5980
|
+
🤖
|
|
5981
|
+
<span
|
|
5982
|
+
class="memori-chat--usage-badge-label"
|
|
5983
|
+
>
|
|
5984
|
+
chatLogs.llm
|
|
5985
|
+
</span>
|
|
5986
|
+
</button>
|
|
5987
|
+
<button
|
|
5988
|
+
aria-label="chatLogs.energy 1 Wh"
|
|
5989
|
+
class="memori-chat--usage-badge memori-chat--usage-badge-energy"
|
|
5990
|
+
data-line-index="7"
|
|
5991
|
+
data-llm-badge-type="energy"
|
|
5992
|
+
type="button"
|
|
5993
|
+
>
|
|
5994
|
+
⚡
|
|
5995
|
+
<span
|
|
5996
|
+
class="memori-chat--usage-badge-value"
|
|
5997
|
+
>
|
|
5998
|
+
1 Wh
|
|
5999
|
+
</span>
|
|
6000
|
+
</button>
|
|
6001
|
+
</div>
|
|
6002
|
+
</div>
|
|
6003
|
+
</div>
|
|
6004
|
+
<div
|
|
6005
|
+
class="memori-chat--bubble-addon"
|
|
6006
|
+
>
|
|
6007
|
+
<button
|
|
6008
|
+
class="memori-button memori-button--ghost memori-button--circle memori-button--padded memori-button--icon-only memori-chat--bubble-action-icon"
|
|
6009
|
+
title="copy"
|
|
6010
|
+
>
|
|
6011
|
+
<span
|
|
6012
|
+
class="memori-button--icon"
|
|
6013
|
+
>
|
|
6014
|
+
<svg
|
|
6015
|
+
aria-hidden="true"
|
|
6016
|
+
fill="none"
|
|
6017
|
+
focusable="false"
|
|
6018
|
+
role="img"
|
|
6019
|
+
stroke="currentColor"
|
|
6020
|
+
stroke-linecap="round"
|
|
6021
|
+
stroke-linejoin="round"
|
|
6022
|
+
stroke-width="1.5"
|
|
6023
|
+
viewBox="0 0 24 24"
|
|
6024
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6025
|
+
>
|
|
6026
|
+
<rect
|
|
6027
|
+
height="14"
|
|
6028
|
+
rx="2"
|
|
6029
|
+
ry="2"
|
|
6030
|
+
width="14"
|
|
6031
|
+
x="8"
|
|
6032
|
+
y="8"
|
|
6033
|
+
/>
|
|
6034
|
+
<path
|
|
6035
|
+
d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"
|
|
6036
|
+
/>
|
|
6037
|
+
</svg>
|
|
6038
|
+
</span>
|
|
6039
|
+
</button>
|
|
6040
|
+
</div>
|
|
6041
|
+
</div>
|
|
6042
|
+
</div>
|
|
6043
|
+
<div
|
|
6044
|
+
id="end-messages-ref"
|
|
6045
|
+
/>
|
|
6046
|
+
</div>
|
|
6047
|
+
</div>
|
|
6048
|
+
<div
|
|
6049
|
+
class="memori-chat-inputs-wrapper"
|
|
6050
|
+
>
|
|
6051
|
+
<fieldset
|
|
6052
|
+
class="memori-chat-inputs"
|
|
6053
|
+
id="chat-fieldset"
|
|
6054
|
+
>
|
|
6055
|
+
<div
|
|
6056
|
+
class="memori-chat-inputs--container"
|
|
6057
|
+
>
|
|
6058
|
+
<div
|
|
6059
|
+
class="memori-chat-inputs--leading"
|
|
6060
|
+
/>
|
|
6061
|
+
<div
|
|
6062
|
+
class="memori-chat-inputs--primary"
|
|
6063
|
+
>
|
|
6064
|
+
<div
|
|
6065
|
+
class="memori-chat-textarea"
|
|
6066
|
+
data-testid="chat-textarea"
|
|
6067
|
+
>
|
|
6068
|
+
<div
|
|
6069
|
+
class="memori-chat-textarea--inner"
|
|
6070
|
+
style="height: 36px;"
|
|
6071
|
+
>
|
|
6072
|
+
<textarea
|
|
6073
|
+
class="memori-chat-textarea--input"
|
|
6074
|
+
maxlength="100000"
|
|
6075
|
+
placeholder="placeholder"
|
|
6076
|
+
style="height: 36px;"
|
|
6077
|
+
/>
|
|
6078
|
+
</div>
|
|
6079
|
+
</div>
|
|
6080
|
+
</div>
|
|
6081
|
+
<div
|
|
6082
|
+
class="memori-chat-inputs--trailing"
|
|
6083
|
+
>
|
|
6084
|
+
<div
|
|
6085
|
+
class="memori-chat-inputs--trailing-inner"
|
|
6086
|
+
>
|
|
6087
|
+
<button
|
|
6088
|
+
aria-label="send"
|
|
6089
|
+
class="memori-chat-inputs--send-btn memori-chat-inputs--send-btn--disabled"
|
|
6090
|
+
disabled=""
|
|
6091
|
+
title="send"
|
|
6092
|
+
type="button"
|
|
6093
|
+
>
|
|
6094
|
+
<svg
|
|
6095
|
+
aria-hidden="true"
|
|
6096
|
+
class="icon"
|
|
6097
|
+
focusable="false"
|
|
6098
|
+
role="img"
|
|
6099
|
+
viewBox="0 0 1024 1024"
|
|
6100
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6101
|
+
>
|
|
6102
|
+
<path
|
|
6103
|
+
d="M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2-8.5 2.1-13.8 10.7-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"
|
|
6104
|
+
/>
|
|
6105
|
+
</svg>
|
|
6106
|
+
</button>
|
|
6107
|
+
</div>
|
|
6108
|
+
</div>
|
|
6109
|
+
</div>
|
|
6110
|
+
</fieldset>
|
|
6111
|
+
</div>
|
|
6112
|
+
</div>
|
|
6113
|
+
</div>
|
|
6114
|
+
`;
|
|
6115
|
+
|
|
5371
6116
|
exports[`renders Chat with user unchanged 1`] = `
|
|
5372
6117
|
<div>
|
|
5373
6118
|
<div
|