@memori.ai/memori-react 7.30.0 → 7.30.2

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 (62) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/components/Avatar/AvatarView/AvatarComponent/components/controllers/AnimationController.d.ts +38 -0
  3. package/dist/components/Avatar/AvatarView/AvatarComponent/components/controllers/AnimationController.js +181 -0
  4. package/dist/components/Avatar/AvatarView/AvatarComponent/components/controllers/AnimationController.js.map +1 -0
  5. package/dist/components/ChatBubble/VirtualizedContent/VirtualizedContent.d.ts +7 -0
  6. package/dist/components/ChatBubble/VirtualizedContent/VirtualizedContent.js +69 -0
  7. package/dist/components/ChatBubble/VirtualizedContent/VirtualizedContent.js.map +1 -0
  8. package/dist/components/ChatHistoryDrawer/ChatHistory.css +71 -42
  9. package/dist/components/ChatHistoryDrawer/ChatHistory.d.ts +3 -2
  10. package/dist/components/ChatHistoryDrawer/ChatHistory.js +87 -12
  11. package/dist/components/ChatHistoryDrawer/ChatHistory.js.map +1 -1
  12. package/dist/components/Header/Header.js +3 -4
  13. package/dist/components/Header/Header.js.map +1 -1
  14. package/dist/components/MemoriWidget/MemoriWidget.js +1 -11
  15. package/dist/components/MemoriWidget/MemoriWidget.js.map +1 -1
  16. package/dist/locales/de.json +1 -0
  17. package/dist/locales/en.json +1 -0
  18. package/dist/locales/es.json +1 -0
  19. package/dist/locales/fr.json +1 -0
  20. package/dist/locales/it.json +1 -0
  21. package/esm/components/Avatar/AvatarView/AvatarComponent/components/controllers/AnimationController.d.ts +38 -0
  22. package/esm/components/Avatar/AvatarView/AvatarComponent/components/controllers/AnimationController.js +177 -0
  23. package/esm/components/Avatar/AvatarView/AvatarComponent/components/controllers/AnimationController.js.map +1 -0
  24. package/esm/components/ChatBubble/VirtualizedContent/VirtualizedContent.d.ts +7 -0
  25. package/esm/components/ChatBubble/VirtualizedContent/VirtualizedContent.js +67 -0
  26. package/esm/components/ChatBubble/VirtualizedContent/VirtualizedContent.js.map +1 -0
  27. package/esm/components/ChatHistoryDrawer/ChatHistory.css +71 -42
  28. package/esm/components/ChatHistoryDrawer/ChatHistory.d.ts +3 -2
  29. package/esm/components/ChatHistoryDrawer/ChatHistory.js +88 -13
  30. package/esm/components/ChatHistoryDrawer/ChatHistory.js.map +1 -1
  31. package/esm/components/Header/Header.js +3 -4
  32. package/esm/components/Header/Header.js.map +1 -1
  33. package/esm/components/MemoriWidget/MemoriWidget.js +1 -11
  34. package/esm/components/MemoriWidget/MemoriWidget.js.map +1 -1
  35. package/esm/locales/de.json +1 -0
  36. package/esm/locales/en.json +1 -0
  37. package/esm/locales/es.json +1 -0
  38. package/esm/locales/fr.json +1 -0
  39. package/esm/locales/it.json +1 -0
  40. package/package.json +1 -1
  41. package/src/components/ChatHistoryDrawer/ChatHistory.css +71 -42
  42. package/src/components/ChatHistoryDrawer/ChatHistory.stories.tsx +7 -7
  43. package/src/components/ChatHistoryDrawer/ChatHistory.test.tsx +4 -0
  44. package/src/components/ChatHistoryDrawer/ChatHistory.tsx +301 -94
  45. package/src/components/Header/Header.tsx +4 -7
  46. package/src/components/Header/__snapshots__/Header.test.tsx.snap +26 -472
  47. package/src/components/MemoriWidget/MemoriWidget.tsx +11 -10
  48. package/src/components/layouts/__snapshots__/Chat.test.tsx.snap +1 -30
  49. package/src/components/layouts/__snapshots__/FullPage.test.tsx.snap +2 -60
  50. package/src/components/layouts/__snapshots__/HiddenChat.test.tsx.snap +1 -30
  51. package/src/components/layouts/__snapshots__/Totem.test.tsx.snap +1 -30
  52. package/src/components/layouts/__snapshots__/ZoomedFullBody.test.tsx.snap +1 -30
  53. package/src/locales/de.json +1 -0
  54. package/src/locales/en.json +1 -0
  55. package/src/locales/es.json +1 -0
  56. package/src/locales/fr.json +1 -0
  57. package/src/locales/it.json +1 -0
  58. package/src/components/ChatHistoryDrawer/ChatHistory.scss +0 -41
  59. package/src/components/ExportHistoryButton/ExportHistoryButton.stories.tsx +0 -73
  60. package/src/components/ExportHistoryButton/ExportHistoryButton.test.tsx +0 -69
  61. package/src/components/ExportHistoryButton/ExportHistoryButton.tsx +0 -103
  62. package/src/components/ExportHistoryButton/__snapshots__/ExportHistoryButton.test.tsx.snap +0 -239
@@ -1,239 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`renders ExportHistoryButton unchanged 1`] = `
4
- <div>
5
- <div
6
- class="memori-export-history-button"
7
- data-headlessui-state=""
8
- title="write_and_speak.exportChatHistoryMessage"
9
- >
10
- <button
11
- aria-expanded="false"
12
- class="memori-button memori-button--circle memori-button--icon-only memori-button--primary"
13
- data-headlessui-state=""
14
- id="headlessui-popover-button-:r0:"
15
- type="button"
16
- >
17
- <div
18
- class="memori-button--icon"
19
- >
20
- <svg
21
- aria-hidden="true"
22
- focusable="false"
23
- role="img"
24
- viewBox="0 0 1024 1024"
25
- xmlns="http://www.w3.org/2000/svg"
26
- >
27
- <path
28
- 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"
29
- />
30
- </svg>
31
- </div>
32
- </button>
33
- </div>
34
- </div>
35
- `;
36
-
37
- exports[`renders ExportHistoryButton unchanged disabled 1`] = `
38
- <div>
39
- <div
40
- class="memori-export-history-button"
41
- data-headlessui-state=""
42
- title="write_and_speak.exportChatHistoryMessage"
43
- >
44
- <button
45
- class="memori-button memori-button--circle memori-button--icon-only memori-button--disabled"
46
- data-headlessui-state=""
47
- disabled=""
48
- id="headlessui-popover-button-:rf:"
49
- type="button"
50
- >
51
- <div
52
- class="memori-button--icon"
53
- >
54
- <svg
55
- aria-hidden="true"
56
- focusable="false"
57
- role="img"
58
- viewBox="0 0 1024 1024"
59
- xmlns="http://www.w3.org/2000/svg"
60
- >
61
- <path
62
- 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"
63
- />
64
- </svg>
65
- </div>
66
- </button>
67
- </div>
68
- </div>
69
- `;
70
-
71
- exports[`renders ExportHistoryButton unchanged with className 1`] = `
72
- <div>
73
- <div
74
- class="memori-export-history-button test"
75
- data-headlessui-state=""
76
- title="write_and_speak.exportChatHistoryMessage"
77
- >
78
- <button
79
- aria-expanded="false"
80
- class="memori-button memori-button--circle memori-button--icon-only memori-button--primary"
81
- data-headlessui-state=""
82
- id="headlessui-popover-button-:ra:"
83
- type="button"
84
- >
85
- <div
86
- class="memori-button--icon"
87
- >
88
- <svg
89
- aria-hidden="true"
90
- focusable="false"
91
- role="img"
92
- viewBox="0 0 1024 1024"
93
- xmlns="http://www.w3.org/2000/svg"
94
- >
95
- <path
96
- 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"
97
- />
98
- </svg>
99
- </div>
100
- </button>
101
- </div>
102
- </div>
103
- `;
104
-
105
- exports[`renders ExportHistoryButton unchanged with custom button props 1`] = `
106
- <div>
107
- <div
108
- class="memori-export-history-button"
109
- data-headlessui-state=""
110
- title="write_and_speak.exportChatHistoryMessage"
111
- >
112
- <button
113
- aria-expanded="false"
114
- class="memori-button memori-button--circle memori-button--icon-only test memori-button--primary"
115
- data-headlessui-state=""
116
- id="headlessui-popover-button-:rp:"
117
- type="button"
118
- >
119
- <div
120
- class="memori-button--icon"
121
- >
122
- <svg
123
- aria-hidden="true"
124
- focusable="false"
125
- role="img"
126
- viewBox="0 0 1024 1024"
127
- xmlns="http://www.w3.org/2000/svg"
128
- >
129
- <path
130
- d="M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"
131
- />
132
- </svg>
133
- </div>
134
- </button>
135
- </div>
136
- </div>
137
- `;
138
-
139
- exports[`renders ExportHistoryButton unchanged with custom filename 1`] = `
140
- <div>
141
- <div
142
- class="memori-export-history-button"
143
- data-headlessui-state=""
144
- title="write_and_speak.exportChatHistoryMessage"
145
- >
146
- <button
147
- aria-expanded="false"
148
- class="memori-button memori-button--circle memori-button--icon-only memori-button--primary"
149
- data-headlessui-state=""
150
- id="headlessui-popover-button-:ru:"
151
- type="button"
152
- >
153
- <div
154
- class="memori-button--icon"
155
- >
156
- <svg
157
- aria-hidden="true"
158
- focusable="false"
159
- role="img"
160
- viewBox="0 0 1024 1024"
161
- xmlns="http://www.w3.org/2000/svg"
162
- >
163
- <path
164
- 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"
165
- />
166
- </svg>
167
- </div>
168
- </button>
169
- </div>
170
- </div>
171
- `;
172
-
173
- exports[`renders ExportHistoryButton unchanged with custom icon 1`] = `
174
- <div>
175
- <div
176
- class="memori-export-history-button"
177
- data-headlessui-state=""
178
- title="write_and_speak.exportChatHistoryMessage"
179
- >
180
- <button
181
- aria-expanded="false"
182
- class="memori-button memori-button--circle memori-button--icon-only memori-button--primary"
183
- data-headlessui-state=""
184
- id="headlessui-popover-button-:rk:"
185
- type="button"
186
- >
187
- <div
188
- class="memori-button--icon"
189
- >
190
- <svg
191
- aria-hidden="true"
192
- focusable="false"
193
- role="img"
194
- viewBox="0 0 1024 1024"
195
- xmlns="http://www.w3.org/2000/svg"
196
- >
197
- <path
198
- d="M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"
199
- />
200
- </svg>
201
- </div>
202
- </button>
203
- </div>
204
- </div>
205
- `;
206
-
207
- exports[`renders ExportHistoryButton unchanged with history 1`] = `
208
- <div>
209
- <div
210
- class="memori-export-history-button"
211
- data-headlessui-state=""
212
- title="write_and_speak.exportChatHistoryMessage"
213
- >
214
- <button
215
- aria-expanded="false"
216
- class="memori-button memori-button--circle memori-button--icon-only memori-button--primary"
217
- data-headlessui-state=""
218
- id="headlessui-popover-button-:r5:"
219
- type="button"
220
- >
221
- <div
222
- class="memori-button--icon"
223
- >
224
- <svg
225
- aria-hidden="true"
226
- focusable="false"
227
- role="img"
228
- viewBox="0 0 1024 1024"
229
- xmlns="http://www.w3.org/2000/svg"
230
- >
231
- <path
232
- 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"
233
- />
234
- </svg>
235
- </div>
236
- </button>
237
- </div>
238
- </div>
239
- `;