@memori.ai/memori-react 7.5.0 → 7.6.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 (157) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/README.md +10 -2
  3. package/dist/components/Avatar/Avatar.d.ts +2 -0
  4. package/dist/components/Avatar/Avatar.js +11 -6
  5. package/dist/components/Avatar/Avatar.js.map +1 -1
  6. package/dist/components/Avatar/AvatarView/AvatarComponent/avatarComponent.d.ts +20 -0
  7. package/dist/components/Avatar/AvatarView/AvatarComponent/avatarComponent.js +107 -0
  8. package/dist/components/Avatar/AvatarView/AvatarComponent/avatarComponent.js.map +1 -0
  9. package/dist/components/Avatar/AvatarView/AvatarComponent/components/controls.d.ts +26 -0
  10. package/dist/components/Avatar/AvatarView/AvatarComponent/components/controls.js +59 -0
  11. package/dist/components/Avatar/AvatarView/AvatarComponent/components/controls.js.map +1 -0
  12. package/dist/components/Avatar/AvatarView/AvatarComponent/components/fullbodyAvatar.d.ts +30 -0
  13. package/dist/components/Avatar/AvatarView/AvatarComponent/components/fullbodyAvatar.js +148 -0
  14. package/dist/components/Avatar/AvatarView/AvatarComponent/components/fullbodyAvatar.js.map +1 -0
  15. package/dist/components/Avatar/AvatarView/AvatarComponent/components/halfbodyAvatar.d.ts +15 -0
  16. package/dist/components/Avatar/AvatarView/AvatarComponent/components/halfbodyAvatar.js +77 -0
  17. package/dist/components/Avatar/AvatarView/AvatarComponent/components/halfbodyAvatar.js.map +1 -0
  18. package/dist/components/Avatar/AvatarView/AvatarComponent/components/loader.d.ts +5 -0
  19. package/dist/components/Avatar/AvatarView/AvatarComponent/components/loader.js +12 -0
  20. package/dist/components/Avatar/AvatarView/AvatarComponent/components/loader.js.map +1 -0
  21. package/dist/components/Avatar/AvatarView/components/fullbodyAvatar.d.ts +2 -1
  22. package/dist/components/Avatar/AvatarView/components/fullbodyAvatar.js +3 -2
  23. package/dist/components/Avatar/AvatarView/components/fullbodyAvatar.js.map +1 -1
  24. package/dist/components/Avatar/AvatarView/index.d.ts +6 -1
  25. package/dist/components/Avatar/AvatarView/index.js +15 -83
  26. package/dist/components/Avatar/AvatarView/index.js.map +1 -1
  27. package/dist/components/Avatar/AvatarView/utils/useEyeBlink.d.ts +16 -2
  28. package/dist/components/Avatar/AvatarView/utils/useEyeBlink.js +62 -38
  29. package/dist/components/Avatar/AvatarView/utils/useEyeBlink.js.map +1 -1
  30. package/dist/components/Avatar/AvatarView/utils/useMouthAnimation.d.ts +16 -0
  31. package/dist/components/Avatar/AvatarView/utils/useMouthAnimation.js +59 -0
  32. package/dist/components/Avatar/AvatarView/utils/useMouthAnimation.js.map +1 -0
  33. package/dist/components/Avatar/AvatarView/utils/useSmile.js +1 -1
  34. package/dist/components/Avatar/AvatarView/utils/useSmile.js.map +1 -1
  35. package/dist/components/ChatBubble/ChatBubble.js +2 -3
  36. package/dist/components/ChatBubble/ChatBubble.js.map +1 -1
  37. package/dist/components/CompletionProviderStatus/CompletionProviderStatus.d.ts +1 -1
  38. package/dist/components/CompletionProviderStatus/CompletionProviderStatus.js +24 -3
  39. package/dist/components/CompletionProviderStatus/CompletionProviderStatus.js.map +1 -1
  40. package/dist/components/MemoriWidget/MemoriWidget.d.ts +1 -1
  41. package/dist/components/MemoriWidget/MemoriWidget.js +25 -3
  42. package/dist/components/MemoriWidget/MemoriWidget.js.map +1 -1
  43. package/dist/components/StartPanel/StartPanel.js +1 -1
  44. package/dist/components/StartPanel/StartPanel.js.map +1 -1
  45. package/dist/components/layouts/HiddenChat.d.ts +4 -0
  46. package/dist/components/layouts/HiddenChat.js +51 -0
  47. package/dist/components/layouts/HiddenChat.js.map +1 -0
  48. package/dist/components/layouts/ZoomedFullBody.d.ts +4 -0
  49. package/dist/components/layouts/ZoomedFullBody.js +8 -0
  50. package/dist/components/layouts/ZoomedFullBody.js.map +1 -0
  51. package/dist/components/layouts/hidden-chat.css +184 -0
  52. package/dist/context/visemeContext.d.ts +27 -0
  53. package/dist/context/visemeContext.js +221 -0
  54. package/dist/context/visemeContext.js.map +1 -0
  55. package/dist/helpers/utils.d.ts +7 -0
  56. package/dist/helpers/utils.js +51 -1
  57. package/dist/helpers/utils.js.map +1 -1
  58. package/dist/index.js +20 -16
  59. package/dist/index.js.map +1 -1
  60. package/dist/styles.css +1 -0
  61. package/esm/components/Avatar/Avatar.d.ts +2 -0
  62. package/esm/components/Avatar/Avatar.js +11 -6
  63. package/esm/components/Avatar/Avatar.js.map +1 -1
  64. package/esm/components/Avatar/AvatarView/AvatarComponent/avatarComponent.d.ts +20 -0
  65. package/esm/components/Avatar/AvatarView/AvatarComponent/avatarComponent.js +102 -0
  66. package/esm/components/Avatar/AvatarView/AvatarComponent/avatarComponent.js.map +1 -0
  67. package/esm/components/Avatar/AvatarView/AvatarComponent/components/controls.d.ts +26 -0
  68. package/esm/components/Avatar/AvatarView/AvatarComponent/components/controls.js +56 -0
  69. package/esm/components/Avatar/AvatarView/AvatarComponent/components/controls.js.map +1 -0
  70. package/esm/components/Avatar/AvatarView/AvatarComponent/components/fullbodyAvatar.d.ts +30 -0
  71. package/esm/components/Avatar/AvatarView/AvatarComponent/components/fullbodyAvatar.js +145 -0
  72. package/esm/components/Avatar/AvatarView/AvatarComponent/components/fullbodyAvatar.js.map +1 -0
  73. package/esm/components/Avatar/AvatarView/AvatarComponent/components/halfbodyAvatar.d.ts +15 -0
  74. package/esm/components/Avatar/AvatarView/AvatarComponent/components/halfbodyAvatar.js +73 -0
  75. package/esm/components/Avatar/AvatarView/AvatarComponent/components/halfbodyAvatar.js.map +1 -0
  76. package/esm/components/Avatar/AvatarView/AvatarComponent/components/loader.d.ts +5 -0
  77. package/esm/components/Avatar/AvatarView/AvatarComponent/components/loader.js +9 -0
  78. package/esm/components/Avatar/AvatarView/AvatarComponent/components/loader.js.map +1 -0
  79. package/esm/components/Avatar/AvatarView/components/fullbodyAvatar.d.ts +2 -1
  80. package/esm/components/Avatar/AvatarView/components/fullbodyAvatar.js +3 -2
  81. package/esm/components/Avatar/AvatarView/components/fullbodyAvatar.js.map +1 -1
  82. package/esm/components/Avatar/AvatarView/index.d.ts +6 -1
  83. package/esm/components/Avatar/AvatarView/index.js +16 -84
  84. package/esm/components/Avatar/AvatarView/index.js.map +1 -1
  85. package/esm/components/Avatar/AvatarView/utils/useEyeBlink.d.ts +16 -2
  86. package/esm/components/Avatar/AvatarView/utils/useEyeBlink.js +61 -38
  87. package/esm/components/Avatar/AvatarView/utils/useEyeBlink.js.map +1 -1
  88. package/esm/components/Avatar/AvatarView/utils/useMouthAnimation.d.ts +16 -0
  89. package/esm/components/Avatar/AvatarView/utils/useMouthAnimation.js +55 -0
  90. package/esm/components/Avatar/AvatarView/utils/useMouthAnimation.js.map +1 -0
  91. package/esm/components/Avatar/AvatarView/utils/useSmile.js +1 -1
  92. package/esm/components/Avatar/AvatarView/utils/useSmile.js.map +1 -1
  93. package/esm/components/ChatBubble/ChatBubble.js +2 -3
  94. package/esm/components/ChatBubble/ChatBubble.js.map +1 -1
  95. package/esm/components/CompletionProviderStatus/CompletionProviderStatus.d.ts +1 -1
  96. package/esm/components/CompletionProviderStatus/CompletionProviderStatus.js +24 -3
  97. package/esm/components/CompletionProviderStatus/CompletionProviderStatus.js.map +1 -1
  98. package/esm/components/MemoriWidget/MemoriWidget.d.ts +1 -1
  99. package/esm/components/MemoriWidget/MemoriWidget.js +26 -4
  100. package/esm/components/MemoriWidget/MemoriWidget.js.map +1 -1
  101. package/esm/components/StartPanel/StartPanel.js +1 -1
  102. package/esm/components/StartPanel/StartPanel.js.map +1 -1
  103. package/esm/components/layouts/HiddenChat.d.ts +4 -0
  104. package/esm/components/layouts/HiddenChat.js +48 -0
  105. package/esm/components/layouts/HiddenChat.js.map +1 -0
  106. package/esm/components/layouts/ZoomedFullBody.d.ts +4 -0
  107. package/esm/components/layouts/ZoomedFullBody.js +5 -0
  108. package/esm/components/layouts/ZoomedFullBody.js.map +1 -0
  109. package/esm/components/layouts/hidden-chat.css +184 -0
  110. package/esm/context/visemeContext.d.ts +27 -0
  111. package/esm/context/visemeContext.js +216 -0
  112. package/esm/context/visemeContext.js.map +1 -0
  113. package/esm/helpers/utils.d.ts +7 -0
  114. package/esm/helpers/utils.js +45 -0
  115. package/esm/helpers/utils.js.map +1 -1
  116. package/esm/index.js +20 -16
  117. package/esm/index.js.map +1 -1
  118. package/esm/styles.css +1 -0
  119. package/package.json +2 -2
  120. package/src/components/Avatar/Avatar.test.tsx +28 -20
  121. package/src/components/Avatar/Avatar.tsx +19 -5
  122. package/src/components/Avatar/AvatarView/AvatarComponent/avatarComponent.tsx +222 -0
  123. package/src/components/Avatar/AvatarView/{components → AvatarComponent/components}/controls.tsx +16 -10
  124. package/src/components/Avatar/AvatarView/AvatarComponent/components/fullbodyAvatar.tsx +234 -0
  125. package/src/components/Avatar/AvatarView/AvatarComponent/components/halfbodyAvatar.tsx +123 -0
  126. package/src/components/Avatar/AvatarView/{components → AvatarComponent/components}/loader.tsx +1 -1
  127. package/src/components/Avatar/AvatarView/AvatarView.stories.tsx +47 -8
  128. package/src/components/Avatar/AvatarView/index.tsx +47 -174
  129. package/src/components/Avatar/AvatarView/utils/useEyeBlink.ts +89 -48
  130. package/src/components/Avatar/AvatarView/utils/useMouthAnimation.ts +93 -0
  131. package/src/components/Avatar/AvatarView/utils/useSmile.ts +1 -1
  132. package/src/components/ChatBubble/ChatBubble.tsx +3 -4
  133. package/src/components/CompletionProviderStatus/CompletionProviderStatus.tsx +33 -3
  134. package/src/components/CompletionProviderStatus/__snapshots__/CompletionProviderStatus.test.tsx.snap +18 -0
  135. package/src/components/MemoriWidget/MemoriWidget.tsx +60 -5
  136. package/src/components/StartPanel/StartPanel.tsx +1 -1
  137. package/src/components/layouts/Chat.test.tsx +7 -5
  138. package/src/components/layouts/FullPage.test.tsx +11 -8
  139. package/src/components/layouts/HiddenChat.test.tsx +37 -0
  140. package/src/components/layouts/HiddenChat.tsx +108 -0
  141. package/src/components/layouts/Totem.test.tsx +6 -4
  142. package/src/components/layouts/WebsiteAssistant.test.tsx +7 -5
  143. package/src/components/layouts/ZoomedFullBody.test.tsx +37 -0
  144. package/src/components/layouts/ZoomedFullBody.tsx +55 -0
  145. package/src/components/layouts/__snapshots__/HiddenChat.test.tsx.snap +210 -0
  146. package/src/components/layouts/__snapshots__/ZoomedFullBody.test.tsx.snap +444 -0
  147. package/src/components/layouts/hidden-chat.css +184 -0
  148. package/src/components/layouts/layouts.stories.tsx +135 -19
  149. package/src/context/visemeContext.tsx +328 -0
  150. package/src/helpers/utils.test.ts +18 -0
  151. package/src/helpers/utils.ts +73 -0
  152. package/src/index.stories.tsx +40 -17
  153. package/src/index.tsx +82 -78
  154. package/src/styles.css +1 -0
  155. package/src/components/Avatar/AvatarView/components/fullbodyAvatar.tsx +0 -120
  156. package/src/components/Avatar/AvatarView/components/halfbodyAvatar.tsx +0 -69
  157. package/src/components/Avatar/AvatarView/utils/useMouthSpeaking.ts +0 -87
@@ -0,0 +1,210 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders HIDDEN_CHAT layout unchanged 1`] = `
4
+ <div>
5
+ <div
6
+ class="memori memori-widget memori-layout-hidden_chat memori-controls-bottom memori--avatar-readyplayerme memori--with-integration"
7
+ data-memori-engine-state="{}"
8
+ data-memori-id="66b4e161-2431-4b21-9b70-d8c27de730ca"
9
+ data-memori-integration="cb3c4776-7f0b-4f97-a773-c32a5d7a3bf1"
10
+ data-memori-name="Memori"
11
+ data-memori-secondary-id="25ced51c-3520-41af-8bbe-222d861b8e32"
12
+ style="height: 100vh;"
13
+ >
14
+ <input
15
+ class="sidebar-toggle"
16
+ id="sidebar-toggle"
17
+ type="checkbox"
18
+ />
19
+ <div
20
+ class="sidebar-container"
21
+ >
22
+ <label
23
+ class="sidebar-toggle-label open-label"
24
+ for="sidebar-toggle"
25
+ >
26
+ <svg
27
+ aria-hidden="true"
28
+ class="icon"
29
+ fill="none"
30
+ focusable="false"
31
+ role="img"
32
+ stroke="currentColor"
33
+ stroke-linecap="round"
34
+ stroke-linejoin="round"
35
+ stroke-width="1.5"
36
+ viewBox="0 0 24 24"
37
+ xmlns="http://www.w3.org/2000/svg"
38
+ >
39
+ <circle
40
+ cx="12"
41
+ cy="12"
42
+ r="10"
43
+ />
44
+ <path
45
+ d="M9.09 9a3 3 0 015.83 1c0 2-3 3-3 3"
46
+ />
47
+ <path
48
+ d="M12 17L12.01 17"
49
+ />
50
+ </svg>
51
+ </label>
52
+ <aside
53
+ class="sidebar"
54
+ >
55
+ <label
56
+ class="sidebar-toggle-label close-label"
57
+ for="sidebar-toggle"
58
+ >
59
+ <span>
60
+ <svg
61
+ aria-hidden="true"
62
+ class="icon-close"
63
+ focusable="false"
64
+ role="img"
65
+ viewBox="0 0 1024 1024"
66
+ xmlns="http://www.w3.org/2000/svg"
67
+ >
68
+ <path
69
+ d="M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 0 0 203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"
70
+ />
71
+ </svg>
72
+ </span>
73
+ </label>
74
+ <div
75
+ class="sidebar-content"
76
+ >
77
+ <div
78
+ class="memori-hidden-chat-layout--header"
79
+ >
80
+ <div
81
+ class="memori-header memori-hidden-chat-layout-header--layout"
82
+ >
83
+ <div
84
+ class="memori-export-history-button memori-header--button memori-header--button--export"
85
+ data-headlessui-state=""
86
+ title="Vuoi esportare la cronologia chat?"
87
+ >
88
+ <button
89
+ class="memori-button memori-button--circle memori-button--icon-only memori-button--disabled"
90
+ data-headlessui-state=""
91
+ disabled=""
92
+ id="headlessui-popover-button-:r0:"
93
+ type="button"
94
+ >
95
+ <div
96
+ class="memori-button--icon"
97
+ >
98
+ <svg
99
+ aria-hidden="true"
100
+ focusable="false"
101
+ role="img"
102
+ viewBox="0 0 1024 1024"
103
+ xmlns="http://www.w3.org/2000/svg"
104
+ >
105
+ <path
106
+ d="M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"
107
+ />
108
+ </svg>
109
+ </div>
110
+ </button>
111
+ </div>
112
+ <button
113
+ class="memori-button memori-button--primary memori-button--circle memori-button--padded memori-button--icon-only memori-header--button memori-header--button-settings"
114
+ title="Impostazioni"
115
+ >
116
+ <span
117
+ class="memori-button--icon"
118
+ >
119
+ <svg
120
+ aria-hidden="true"
121
+ focusable="false"
122
+ role="img"
123
+ viewBox="0 0 1024 1024"
124
+ xmlns="http://www.w3.org/2000/svg"
125
+ >
126
+ <path
127
+ d="M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"
128
+ />
129
+ </svg>
130
+ </span>
131
+ </button>
132
+ <div
133
+ class="memori-share-button memori-share-button--align-left"
134
+ data-headlessui-state=""
135
+ >
136
+ <button
137
+ aria-expanded="false"
138
+ aria-haspopup="true"
139
+ class="memori-button memori-button--circle memori-button--icon-only memori-share-button--button memori-header--button memori-header--button-share memori-button--primary"
140
+ data-headlessui-state=""
141
+ id="headlessui-menu-button-:r5:"
142
+ title="Condividi"
143
+ type="button"
144
+ >
145
+ <div
146
+ class="memori-button--icon"
147
+ >
148
+ <svg
149
+ aria-hidden="true"
150
+ focusable="false"
151
+ role="img"
152
+ viewBox="0 0 1024 1024"
153
+ xmlns="http://www.w3.org/2000/svg"
154
+ >
155
+ <path
156
+ d="M752 664c-28.5 0-54.8 10-75.4 26.7L469.4 540.8a160.68 160.68 0 0 0 0-57.6l207.2-149.9C697.2 350 723.5 360 752 360c66.2 0 120-53.8 120-120s-53.8-120-120-120-120 53.8-120 120c0 11.6 1.6 22.7 4.7 33.3L439.9 415.8C410.7 377.1 364.3 352 312 352c-88.4 0-160 71.6-160 160s71.6 160 160 160c52.3 0 98.7-25.1 127.9-63.8l196.8 142.5c-3.1 10.6-4.7 21.8-4.7 33.3 0 66.2 53.8 120 120 120s120-53.8 120-120-53.8-120-120-120zm0-476c28.7 0 52 23.3 52 52s-23.3 52-52 52-52-23.3-52-52 23.3-52 52-52zM312 600c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zm440 236c-28.7 0-52-23.3-52-52s23.3-52 52-52 52 23.3 52 52-23.3 52-52 52z"
157
+ />
158
+ </svg>
159
+ </div>
160
+ </button>
161
+ </div>
162
+ </div>
163
+ </div>
164
+ </div>
165
+ <div
166
+ id="extension"
167
+ />
168
+ <div
169
+ class="memori-hidden-chat-layout--controls"
170
+ >
171
+ <div
172
+ class="loading"
173
+ >
174
+ <div
175
+ class="memori-spin"
176
+ >
177
+ <div
178
+ class="memori-spin--spinner"
179
+ >
180
+ <svg
181
+ aria-hidden="true"
182
+ class="memori-loading-icon"
183
+ focusable="false"
184
+ role="img"
185
+ viewBox="0 0 1024 1024"
186
+ xmlns="http://www.w3.org/2000/svg"
187
+ >
188
+ <path
189
+ 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"
190
+ />
191
+ </svg>
192
+ </div>
193
+ </div>
194
+ </div>
195
+ </div>
196
+ </aside>
197
+ </div>
198
+ <audio
199
+ id="memori-audio"
200
+ src="https://aisuru.com/intro.mp3"
201
+ style="display: none;"
202
+ />
203
+ </div>
204
+ <script
205
+ async=""
206
+ id="MathJax-script"
207
+ src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"
208
+ />
209
+ </div>
210
+ `;
@@ -0,0 +1,444 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders ZOOMED_FULL_BODY layout unchanged 1`] = `
4
+ <div>
5
+ <div
6
+ class="memori memori-widget memori-layout-zoomed_full_body memori-controls-bottom memori--avatar-readyplayerme memori--with-integration"
7
+ data-memori-engine-state="{}"
8
+ data-memori-id="66b4e161-2431-4b21-9b70-d8c27de730ca"
9
+ data-memori-integration="cb3c4776-7f0b-4f97-a773-c32a5d7a3bf1"
10
+ data-memori-name="Memori"
11
+ data-memori-secondary-id="25ced51c-3520-41af-8bbe-222d861b8e32"
12
+ style="height: 100vh;"
13
+ >
14
+ <style>
15
+
16
+ :root, .memori-widget, .memori-drawer, .memori-modal {
17
+ --memori-chat-bubble-bg: #fff;
18
+ --memori-text-color: #2a2a2a;
19
+ --memori-button-bg: #823ce1;
20
+ --memori-primary: #823ce1;
21
+ --memori-button-text: #ffffff;
22
+ --memori-blur-background: 5px;
23
+ --memori-inner-bg: rgba(255, 255, 255, 0.8);
24
+ --memori-inner-content-pad: 1.5rem;
25
+ --memori-nav-bg-image: none;
26
+ --memori-nav-bg: rgba(255, 255, 255, 0.8);
27
+ }
28
+
29
+ </style>
30
+ <div
31
+ class="memori--global-background"
32
+ >
33
+ <div
34
+ class="memori--global-background-image"
35
+ style="background-image: url(https://assets.memori.ai/api/v2/asset/364e498c-11da-42d5-9e32-19e5d137d4b8.jpeg);"
36
+ />
37
+ </div>
38
+ <div
39
+ class="memori-spin"
40
+ >
41
+ <div
42
+ class="memori-header"
43
+ >
44
+ <div
45
+ class="memori-export-history-button memori-header--button memori-header--button--export"
46
+ data-headlessui-state=""
47
+ title="Vuoi esportare la cronologia chat?"
48
+ >
49
+ <button
50
+ class="memori-button memori-button--circle memori-button--icon-only memori-button--disabled"
51
+ data-headlessui-state=""
52
+ disabled=""
53
+ id="headlessui-popover-button-:r0:"
54
+ type="button"
55
+ >
56
+ <div
57
+ class="memori-button--icon"
58
+ >
59
+ <svg
60
+ aria-hidden="true"
61
+ focusable="false"
62
+ role="img"
63
+ viewBox="0 0 1024 1024"
64
+ xmlns="http://www.w3.org/2000/svg"
65
+ >
66
+ <path
67
+ d="M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"
68
+ />
69
+ </svg>
70
+ </div>
71
+ </button>
72
+ </div>
73
+ <button
74
+ class="memori-button memori-button--primary memori-button--circle memori-button--padded memori-button--icon-only memori-header--button memori-header--button-settings"
75
+ title="Impostazioni"
76
+ >
77
+ <span
78
+ class="memori-button--icon"
79
+ >
80
+ <svg
81
+ aria-hidden="true"
82
+ focusable="false"
83
+ role="img"
84
+ viewBox="0 0 1024 1024"
85
+ xmlns="http://www.w3.org/2000/svg"
86
+ >
87
+ <path
88
+ d="M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"
89
+ />
90
+ </svg>
91
+ </span>
92
+ </button>
93
+ <div
94
+ class="memori-share-button memori-share-button--align-left"
95
+ data-headlessui-state=""
96
+ >
97
+ <button
98
+ aria-expanded="false"
99
+ aria-haspopup="true"
100
+ class="memori-button memori-button--circle memori-button--icon-only memori-share-button--button memori-header--button memori-header--button-share memori-button--primary"
101
+ data-headlessui-state=""
102
+ id="headlessui-menu-button-:r5:"
103
+ title="Condividi"
104
+ type="button"
105
+ >
106
+ <div
107
+ class="memori-button--icon"
108
+ >
109
+ <svg
110
+ aria-hidden="true"
111
+ focusable="false"
112
+ role="img"
113
+ viewBox="0 0 1024 1024"
114
+ xmlns="http://www.w3.org/2000/svg"
115
+ >
116
+ <path
117
+ d="M752 664c-28.5 0-54.8 10-75.4 26.7L469.4 540.8a160.68 160.68 0 0 0 0-57.6l207.2-149.9C697.2 350 723.5 360 752 360c66.2 0 120-53.8 120-120s-53.8-120-120-120-120 53.8-120 120c0 11.6 1.6 22.7 4.7 33.3L439.9 415.8C410.7 377.1 364.3 352 312 352c-88.4 0-160 71.6-160 160s71.6 160 160 160c52.3 0 98.7-25.1 127.9-63.8l196.8 142.5c-3.1 10.6-4.7 21.8-4.7 33.3 0 66.2 53.8 120 120 120s120-53.8 120-120-53.8-120-120-120zm0-476c28.7 0 52 23.3 52 52s-23.3 52-52 52-52-23.3-52-52 23.3-52 52-52zM312 600c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zm440 236c-28.7 0-52-23.3-52-52s23.3-52 52-52 52 23.3 52 52-23.3 52-52 52z"
118
+ />
119
+ </svg>
120
+ </div>
121
+ </button>
122
+ </div>
123
+ </div>
124
+ <div
125
+ class="memori--grid"
126
+ >
127
+ <div
128
+ class="memori--grid-column memori--grid-column-left"
129
+ >
130
+ <div
131
+ class="memori--avatar-wrapper memori--avatar-readyplayerme"
132
+ >
133
+ <div
134
+ class="memori--blob-container"
135
+ >
136
+ <div
137
+ class="memori-blob"
138
+ >
139
+ <div
140
+ class="mainDiv"
141
+ />
142
+ <div
143
+ class="mainDiv"
144
+ />
145
+ <div
146
+ class="mainDiv"
147
+ />
148
+ <div
149
+ class="mainDiv"
150
+ />
151
+ <div
152
+ class="mainDiv"
153
+ />
154
+ </div>
155
+ </div>
156
+ </div>
157
+ <div
158
+ class="memori--avatar-toggle"
159
+ >
160
+ <button
161
+ class="memori-button memori-button--ghost memori-button--rounded memori-button--padded memori-button--with-icon"
162
+ >
163
+ <span
164
+ class="memori-button--icon"
165
+ >
166
+ <svg
167
+ aria-hidden="true"
168
+ focusable="false"
169
+ role="img"
170
+ viewBox="0 0 1024 1024"
171
+ xmlns="http://www.w3.org/2000/svg"
172
+ >
173
+ <path
174
+ d="M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"
175
+ />
176
+ <path
177
+ d="M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"
178
+ />
179
+ </svg>
180
+ </span>
181
+ <span
182
+ class="memori--avatar-toggle-text"
183
+ >
184
+ Nascondi
185
+ </span>
186
+ </button>
187
+ </div>
188
+ <div
189
+ id="extension"
190
+ />
191
+ </div>
192
+ <div
193
+ class="memori--grid-column memori--grid-column-right"
194
+ >
195
+ <div
196
+ class="memori--start-panel"
197
+ >
198
+ <div
199
+ class="memori--cover"
200
+ >
201
+ <div
202
+ class="memori--completions-enabled"
203
+ >
204
+ <div
205
+ class="memori-tooltip memori-tooltip--align-left"
206
+ >
207
+ <div
208
+ class="memori-tooltip--content"
209
+ >
210
+ IA evoluta, può rispondere con risposte generate automaticamente che talvolta potrebbero contenere informazioni non corrette
211
+ </div>
212
+ <div
213
+ class="memori-tooltip--trigger"
214
+ >
215
+ <span
216
+ aria-label="IA evoluta, può rispondere con risposte generate automaticamente che talvolta potrebbero contenere informazioni non corrette"
217
+ >
218
+ <svg
219
+ aria-hidden="true"
220
+ fill="none"
221
+ focusable="false"
222
+ role="img"
223
+ viewBox="0 0 24 24"
224
+ xmlns="http://www.w3.org/2000/svg"
225
+ >
226
+ <g
227
+ clip-rule="evenodd"
228
+ fill="currentColor"
229
+ fill-rule="evenodd"
230
+ >
231
+ <path
232
+ clip-rule="evenodd"
233
+ d="M0 4a4 4 0 014-4h16a4 4 0 014 4v16a4 4 0 01-4 4H4a4 4 0 01-4-4zm4-2.4A2.4 2.4 0 001.6 4v16A2.4 2.4 0 004 22.4h16a2.4 2.4 0 002.4-2.4V4A2.4 2.4 0 0020 1.6z"
234
+ fill-rule="evenodd"
235
+ />
236
+ <path
237
+ clip-rule="evenodd"
238
+ d="M9.715 8.442a.798.798 0 00-1.43 0l-3.2 6.4a.799.799 0 101.431.716l.579-1.158h3.811l.578 1.158a.8.8 0 001.431-.716zm.391 4.358L9 10.589 7.894 12.8z"
239
+ fill-rule="evenodd"
240
+ />
241
+ <path
242
+ clip-rule="evenodd"
243
+ d="M17 8c.552 0 1 .358 1 .8v6.4c0 .442-.448.8-1 .8s-1-.358-1-.8V8.8c0-.442.448-.8 1-.8z"
244
+ fill-rule="evenodd"
245
+ />
246
+ </g>
247
+ </svg>
248
+ </span>
249
+ </div>
250
+ </div>
251
+ </div>
252
+ </div>
253
+ <picture
254
+ class="memori--avatar"
255
+ >
256
+ <source
257
+ src="https://aisuru.com/images/aisuru/square_logo.png"
258
+ />
259
+ <img
260
+ alt="Memori"
261
+ src="https://aisuru.com/images/aisuru/square_logo.png"
262
+ />
263
+ </picture>
264
+ <h2
265
+ class="memori--title"
266
+ >
267
+ Memori
268
+ </h2>
269
+ <div
270
+ class="memori--description"
271
+ >
272
+ <p>
273
+ <span
274
+ class="memori--description-text"
275
+ >
276
+ Lorem ipsum.
277
+ </span>
278
+ </p>
279
+ <div
280
+ class="memori--language-chooser"
281
+ >
282
+ <label
283
+ for="user-lang-pref"
284
+ id="user-lang-pref-label"
285
+ >
286
+ Voglio parlare con Memori in
287
+ </label>
288
+ <select
289
+ aria-labelledby="user-lang-pref-label"
290
+ class="memori-select--button"
291
+ id="user-lang-pref"
292
+ >
293
+ <option
294
+ aria-label="Italiano"
295
+ value="IT"
296
+ >
297
+ Italiano
298
+ </option>
299
+ <option
300
+ aria-label="English"
301
+ value="EN"
302
+ >
303
+ English
304
+ </option>
305
+ <option
306
+ aria-label="Deutsch"
307
+ value="DE"
308
+ >
309
+ Deutsch
310
+ </option>
311
+ <option
312
+ aria-label="Español"
313
+ value="ES"
314
+ >
315
+ Español
316
+ </option>
317
+ <option
318
+ aria-label="Français"
319
+ value="FR"
320
+ >
321
+ Français
322
+ </option>
323
+ <option
324
+ aria-label="Português"
325
+ value="PT"
326
+ >
327
+ Português
328
+ </option>
329
+ <option
330
+ aria-label="Українська"
331
+ value="UK"
332
+ >
333
+ Українська
334
+ </option>
335
+ <option
336
+ aria-label="Русский"
337
+ value="RU"
338
+ >
339
+ Русский
340
+ </option>
341
+ <option
342
+ aria-label="Polski"
343
+ value="PL"
344
+ >
345
+ Polski
346
+ </option>
347
+ <option
348
+ aria-label="Suomi"
349
+ value="FI"
350
+ >
351
+ Suomi
352
+ </option>
353
+ <option
354
+ aria-label="Ελληνικά"
355
+ value="EL"
356
+ >
357
+ Ελληνικά
358
+ </option>
359
+ <option
360
+ aria-label="العربية"
361
+ value="AR"
362
+ >
363
+ العربية
364
+ </option>
365
+ <option
366
+ aria-label="中文"
367
+ value="ZH"
368
+ >
369
+ 中文
370
+ </option>
371
+ <option
372
+ aria-label="日本語"
373
+ value="JA"
374
+ >
375
+ 日本語
376
+ </option>
377
+ </select>
378
+ </div>
379
+ <button
380
+ class="memori-button memori-button--primary memori-button--rounded memori-button--padded memori--start-button"
381
+ >
382
+ INIZIAMO
383
+ </button>
384
+ <p
385
+ class="memori--start-description"
386
+ >
387
+ Per parlare con me clicca sul pulsante INIZIAMO per cominciare
388
+ </p>
389
+ </div>
390
+ </div>
391
+ </div>
392
+ <div
393
+ class="memori--powered-by"
394
+ >
395
+ <img
396
+ alt=""
397
+ src="https://aisuru.com/images/aisuru/logo.png"
398
+ />
399
+ <p>
400
+ <span
401
+ class="sr-only"
402
+ >
403
+ Powered by
404
+ </span>
405
+ <a
406
+ href="https://memori.ai/it?integrationID=cb3c4776-7f0b-4f97-a773-c32a5d7a3bf1&memori=aisuru.com-username-Memori"
407
+ rel="noopener noreferrer"
408
+ target="_blank"
409
+ >
410
+ Memori.AI
411
+ </a>
412
+ </p>
413
+ </div>
414
+ </div>
415
+ <div
416
+ class="memori-spin--spinner"
417
+ >
418
+ <svg
419
+ aria-hidden="true"
420
+ class="memori-loading-icon"
421
+ focusable="false"
422
+ role="img"
423
+ viewBox="0 0 1024 1024"
424
+ xmlns="http://www.w3.org/2000/svg"
425
+ >
426
+ <path
427
+ 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"
428
+ />
429
+ </svg>
430
+ </div>
431
+ </div>
432
+ <audio
433
+ id="memori-audio"
434
+ src="https://aisuru.com/intro.mp3"
435
+ style="display: none;"
436
+ />
437
+ </div>
438
+ <script
439
+ async=""
440
+ id="MathJax-script"
441
+ src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"
442
+ />
443
+ </div>
444
+ `;