@memori.ai/memori-react 2.1.0 → 2.2.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 +37 -0
- package/dist/components/Avatar/Avatar.css +0 -1
- package/dist/components/Blob/Blob.css +6 -1
- package/dist/components/ChangeMode/ChangeMode.css +1 -1
- package/dist/components/Chat/Chat.css +3 -2
- package/dist/components/Chat/Chat.d.ts +1 -0
- package/dist/components/Chat/Chat.js +2 -2
- package/dist/components/Chat/Chat.js.map +1 -1
- package/dist/components/ChatBubble/ChatBubble.css +1 -1
- package/dist/components/ChatBubble/ChatBubble.js +1 -1
- package/dist/components/ChatBubble/ChatBubble.js.map +1 -1
- package/dist/components/ChatInputs/ChatInputs.css +1 -41
- package/dist/components/ChatInputs/ChatInputs.d.ts +1 -0
- package/dist/components/ChatInputs/ChatInputs.js +9 -3
- package/dist/components/ChatInputs/ChatInputs.js.map +1 -1
- package/dist/components/ChatTextArea/ChatTextArea.css +7 -3
- package/dist/components/DateSelector/DateSelector.css +17 -15
- package/dist/components/ExportHistoryButton/ExportHistoryButton.css +1 -1
- package/dist/components/FeedbackButtons/FeedbackButtons.css +4 -4
- package/dist/components/FeedbackButtons/FeedbackButtons.js +1 -1
- package/dist/components/FeedbackButtons/FeedbackButtons.js.map +1 -1
- package/dist/components/Header/Header.css +2 -1
- package/dist/components/Header/Header.js +1 -1
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/ImageUpload/ImageUpload.css +2 -3
- package/dist/components/MediaWidget/MediaItemWidget.css +2 -0
- package/dist/components/MediaWidget/MediaWidget.css +1 -1
- package/dist/components/MemoriWidget/MemoriWidget.css +1 -2
- package/dist/components/MemoriWidget/MemoriWidget.js +23 -13
- package/dist/components/MemoriWidget/MemoriWidget.js.map +1 -1
- package/dist/components/MicrophoneButton/MicrophoneButton.css +107 -0
- package/dist/components/MicrophoneButton/MicrophoneButton.d.ts +9 -0
- package/dist/components/MicrophoneButton/MicrophoneButton.js +46 -0
- package/dist/components/MicrophoneButton/MicrophoneButton.js.map +1 -0
- package/dist/components/SettingsDrawer/SettingsDrawer.d.ts +3 -3
- package/dist/components/SettingsDrawer/SettingsDrawer.js +8 -6
- package/dist/components/SettingsDrawer/SettingsDrawer.js.map +1 -1
- package/dist/components/SettingsDrawer/SettingsDrawer.test.js +7 -7
- package/dist/components/SettingsDrawer/SettingsDrawer.test.js.map +1 -1
- package/dist/components/StartPanel/StartPanel.css +1 -1
- package/dist/components/StartPanel/StartPanel.js +1 -1
- package/dist/components/StartPanel/StartPanel.js.map +1 -1
- package/dist/components/layouts/totem.css +49 -8
- package/dist/components/ui/Button.css +1 -1
- package/dist/components/ui/Button.d.ts +5 -1
- package/dist/components/ui/Button.js +1 -1
- package/dist/components/ui/Button.js.map +1 -1
- package/dist/components/ui/Checkbox.css +0 -2
- package/dist/components/ui/Drawer.css +1 -1
- package/dist/components/ui/Modal.css +1 -1
- package/dist/components/ui/Select.css +17 -16
- package/dist/components/ui/Tooltip.css +38 -3
- package/dist/components/ui/Tooltip.d.ts +2 -1
- package/dist/components/ui/Tooltip.js +1 -2
- package/dist/components/ui/Tooltip.js.map +1 -1
- package/dist/components/ui/Tooltip.test.js +16 -0
- package/dist/components/ui/Tooltip.test.js.map +1 -1
- package/dist/helpers/configuration.js +1 -1
- package/dist/helpers/configuration.js.map +1 -1
- package/dist/helpers/translations.js +1 -2
- package/dist/helpers/translations.js.map +1 -1
- package/dist/locales/en.json +4 -0
- package/dist/locales/it.json +4 -0
- package/dist/styles.css +2 -1
- package/esm/components/Avatar/Avatar.css +0 -1
- package/esm/components/Blob/Blob.css +6 -1
- package/esm/components/ChangeMode/ChangeMode.css +1 -1
- package/esm/components/Chat/Chat.css +3 -2
- package/esm/components/Chat/Chat.d.ts +1 -0
- package/esm/components/Chat/Chat.js +2 -2
- package/esm/components/Chat/Chat.js.map +1 -1
- package/esm/components/ChatBubble/ChatBubble.css +1 -1
- package/esm/components/ChatBubble/ChatBubble.js +1 -1
- package/esm/components/ChatBubble/ChatBubble.js.map +1 -1
- package/esm/components/ChatInputs/ChatInputs.css +1 -41
- package/esm/components/ChatInputs/ChatInputs.d.ts +1 -0
- package/esm/components/ChatInputs/ChatInputs.js +9 -3
- package/esm/components/ChatInputs/ChatInputs.js.map +1 -1
- package/esm/components/ChatTextArea/ChatTextArea.css +7 -3
- package/esm/components/DateSelector/DateSelector.css +17 -15
- package/esm/components/ExportHistoryButton/ExportHistoryButton.css +1 -1
- package/esm/components/FeedbackButtons/FeedbackButtons.css +4 -4
- package/esm/components/FeedbackButtons/FeedbackButtons.js +1 -1
- package/esm/components/FeedbackButtons/FeedbackButtons.js.map +1 -1
- package/esm/components/Header/Header.css +2 -1
- package/esm/components/Header/Header.js +1 -1
- package/esm/components/Header/Header.js.map +1 -1
- package/esm/components/ImageUpload/ImageUpload.css +2 -3
- package/esm/components/MediaWidget/MediaItemWidget.css +2 -0
- package/esm/components/MediaWidget/MediaWidget.css +1 -1
- package/esm/components/MemoriWidget/MemoriWidget.css +1 -2
- package/esm/components/MemoriWidget/MemoriWidget.js +23 -13
- package/esm/components/MemoriWidget/MemoriWidget.js.map +1 -1
- package/esm/components/MicrophoneButton/MicrophoneButton.css +107 -0
- package/esm/components/MicrophoneButton/MicrophoneButton.d.ts +9 -0
- package/esm/components/MicrophoneButton/MicrophoneButton.js +43 -0
- package/esm/components/MicrophoneButton/MicrophoneButton.js.map +1 -0
- package/esm/components/SettingsDrawer/SettingsDrawer.d.ts +3 -3
- package/esm/components/SettingsDrawer/SettingsDrawer.js +9 -7
- package/esm/components/SettingsDrawer/SettingsDrawer.js.map +1 -1
- package/esm/components/SettingsDrawer/SettingsDrawer.test.js +7 -7
- package/esm/components/SettingsDrawer/SettingsDrawer.test.js.map +1 -1
- package/esm/components/StartPanel/StartPanel.css +1 -1
- package/esm/components/StartPanel/StartPanel.js +1 -1
- package/esm/components/StartPanel/StartPanel.js.map +1 -1
- package/esm/components/layouts/totem.css +49 -8
- package/esm/components/ui/Button.css +1 -1
- package/esm/components/ui/Button.d.ts +5 -1
- package/esm/components/ui/Button.js +1 -1
- package/esm/components/ui/Button.js.map +1 -1
- package/esm/components/ui/Checkbox.css +0 -2
- package/esm/components/ui/Drawer.css +1 -1
- package/esm/components/ui/Modal.css +1 -1
- package/esm/components/ui/Select.css +17 -16
- package/esm/components/ui/Tooltip.css +38 -3
- package/esm/components/ui/Tooltip.d.ts +2 -1
- package/esm/components/ui/Tooltip.js +1 -2
- package/esm/components/ui/Tooltip.js.map +1 -1
- package/esm/components/ui/Tooltip.test.js +16 -0
- package/esm/components/ui/Tooltip.test.js.map +1 -1
- package/esm/helpers/configuration.js +1 -1
- package/esm/helpers/configuration.js.map +1 -1
- package/esm/helpers/translations.js +1 -2
- package/esm/helpers/translations.js.map +1 -1
- package/esm/locales/en.json +4 -0
- package/esm/locales/it.json +4 -0
- package/esm/styles.css +2 -1
- package/package.json +1 -1
- package/src/components/Avatar/Avatar.css +0 -1
- package/src/components/Blob/Blob.css +6 -1
- package/src/components/BlockedMemoriBadge/__snapshots__/BlockedMemoriBadge.test.tsx.snap +4 -4
- package/src/components/ChangeMode/ChangeMode.css +1 -1
- package/src/components/Chat/Chat.css +3 -2
- package/src/components/Chat/Chat.tsx +3 -0
- package/src/components/ChatBubble/ChatBubble.css +1 -1
- package/src/components/ChatBubble/ChatBubble.tsx +1 -1
- package/src/components/ChatBubble/__snapshots__/ChatBubble.test.tsx.snap +1 -1
- package/src/components/ChatInputs/ChatInputs.css +1 -41
- package/src/components/ChatInputs/ChatInputs.stories.tsx +50 -3
- package/src/components/ChatInputs/ChatInputs.tsx +20 -3
- package/src/components/ChatInputs/__snapshots__/ChatInputs.test.tsx.snap +160 -85
- package/src/components/ChatTextArea/ChatTextArea.css +7 -3
- package/src/components/DateSelector/DateSelector.css +17 -15
- package/src/components/ExportHistoryButton/ExportHistoryButton.css +1 -1
- package/src/components/FeedbackButtons/FeedbackButtons.css +4 -4
- package/src/components/FeedbackButtons/FeedbackButtons.tsx +1 -1
- package/src/components/Header/Header.css +2 -1
- package/src/components/Header/Header.stories.tsx +3 -0
- package/src/components/Header/Header.tsx +1 -1
- package/src/components/Header/__snapshots__/Header.test.tsx.snap +1 -1
- package/src/components/ImageUpload/ImageUpload.css +2 -3
- package/src/components/MediaWidget/MediaItemWidget.css +2 -0
- package/src/components/MediaWidget/MediaWidget.css +1 -1
- package/src/components/MemoriWidget/MemoriWidget.css +1 -2
- package/src/components/MemoriWidget/MemoriWidget.tsx +29 -12
- package/src/components/MicrophoneButton/MicrophoneButton.css +107 -0
- package/src/components/MicrophoneButton/MicrophoneButton.stories.tsx +49 -0
- package/src/components/MicrophoneButton/MicrophoneButton.tsx +95 -0
- package/src/components/SettingsDrawer/SettingsDrawer.stories.tsx +6 -4
- package/src/components/SettingsDrawer/SettingsDrawer.test.tsx +14 -14
- package/src/components/SettingsDrawer/SettingsDrawer.tsx +57 -25
- package/src/components/StartPanel/StartPanel.css +1 -1
- package/src/components/StartPanel/StartPanel.tsx +3 -3
- package/src/components/layouts/__snapshots__/FullPage.test.tsx.snap +1 -1
- package/src/components/layouts/__snapshots__/Totem.test.tsx.snap +1 -1
- package/src/components/layouts/totem.css +49 -8
- package/src/components/ui/Button.css +1 -1
- package/src/components/ui/Button.tsx +21 -1
- package/src/components/ui/Checkbox.css +0 -2
- package/src/components/ui/Drawer.css +1 -1
- package/src/components/ui/Modal.css +1 -1
- package/src/components/ui/Select.css +17 -16
- package/src/components/ui/Tooltip.css +38 -3
- package/src/components/ui/Tooltip.stories.tsx +40 -3
- package/src/components/ui/Tooltip.test.tsx +52 -0
- package/src/components/ui/Tooltip.tsx +12 -7
- package/src/components/ui/__snapshots__/Tooltip.test.tsx.snap +80 -4
- package/src/helpers/configuration.ts +1 -1
- package/src/helpers/translations.ts +3 -2
- package/src/locales/en.json +4 -0
- package/src/locales/it.json +4 -0
- package/src/styles.css +2 -1
|
@@ -88,26 +88,41 @@ exports[`renders ChatInputs disabled unchanged 1`] = `
|
|
|
88
88
|
</svg>
|
|
89
89
|
</span>
|
|
90
90
|
</button>
|
|
91
|
-
<
|
|
92
|
-
class="memori-
|
|
93
|
-
title="write_and_speak.micButtonPopover"
|
|
91
|
+
<div
|
|
92
|
+
class="memori-tooltip memori-tooltip--align-topLeft memori-mic-btn-tooltip"
|
|
94
93
|
>
|
|
95
|
-
<
|
|
96
|
-
class="memori-
|
|
94
|
+
<div
|
|
95
|
+
class="memori-tooltip--content"
|
|
97
96
|
>
|
|
98
|
-
<
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
97
|
+
<span>
|
|
98
|
+
write_and_speak.pressAndHoldToSpeak
|
|
99
|
+
</span>
|
|
100
|
+
</div>
|
|
101
|
+
<div
|
|
102
|
+
class="memori-tooltip--trigger"
|
|
103
|
+
>
|
|
104
|
+
<button
|
|
105
|
+
class="memori-button memori-button--primary memori-button--circle memori-button--padded memori-button--icon-only memori-chat-inputs--mic"
|
|
106
|
+
title="write_and_speak.micButtonPopover"
|
|
104
107
|
>
|
|
105
|
-
<
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
<span
|
|
109
|
+
class="memori-button--icon"
|
|
110
|
+
>
|
|
111
|
+
<svg
|
|
112
|
+
aria-hidden="true"
|
|
113
|
+
focusable="false"
|
|
114
|
+
role="img"
|
|
115
|
+
viewBox="0 0 1024 1024"
|
|
116
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
117
|
+
>
|
|
118
|
+
<path
|
|
119
|
+
d="M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"
|
|
120
|
+
/>
|
|
121
|
+
</svg>
|
|
122
|
+
</span>
|
|
123
|
+
</button>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
111
126
|
</fieldset>
|
|
112
127
|
</div>
|
|
113
128
|
`;
|
|
@@ -198,26 +213,41 @@ exports[`renders ChatInputs listening unchanged 1`] = `
|
|
|
198
213
|
</svg>
|
|
199
214
|
</span>
|
|
200
215
|
</button>
|
|
201
|
-
<
|
|
202
|
-
class="memori-
|
|
203
|
-
title="write_and_speak.micButtonPopoverListening"
|
|
216
|
+
<div
|
|
217
|
+
class="memori-tooltip memori-tooltip--align-topLeft memori-mic-btn-tooltip"
|
|
204
218
|
>
|
|
205
|
-
<
|
|
206
|
-
class="memori-
|
|
219
|
+
<div
|
|
220
|
+
class="memori-tooltip--content"
|
|
207
221
|
>
|
|
208
|
-
<
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
222
|
+
<span>
|
|
223
|
+
write_and_speak.pressAndHoldToSpeak
|
|
224
|
+
</span>
|
|
225
|
+
</div>
|
|
226
|
+
<div
|
|
227
|
+
class="memori-tooltip--trigger"
|
|
228
|
+
>
|
|
229
|
+
<button
|
|
230
|
+
class="memori-button memori-button--primary memori-button--circle memori-button--padded memori-button--icon-only memori-chat-inputs--mic memori-chat-inputs--mic--listening"
|
|
231
|
+
title="write_and_speak.micButtonPopoverListening"
|
|
214
232
|
>
|
|
215
|
-
<
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
233
|
+
<span
|
|
234
|
+
class="memori-button--icon"
|
|
235
|
+
>
|
|
236
|
+
<svg
|
|
237
|
+
aria-hidden="true"
|
|
238
|
+
focusable="false"
|
|
239
|
+
role="img"
|
|
240
|
+
viewBox="0 0 1024 1024"
|
|
241
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
242
|
+
>
|
|
243
|
+
<path
|
|
244
|
+
d="M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"
|
|
245
|
+
/>
|
|
246
|
+
</svg>
|
|
247
|
+
</span>
|
|
248
|
+
</button>
|
|
249
|
+
</div>
|
|
250
|
+
</div>
|
|
221
251
|
</fieldset>
|
|
222
252
|
</div>
|
|
223
253
|
`;
|
|
@@ -337,26 +367,41 @@ exports[`renders ChatInputs on instruct unchanged 1`] = `
|
|
|
337
367
|
</svg>
|
|
338
368
|
</span>
|
|
339
369
|
</button>
|
|
340
|
-
<
|
|
341
|
-
class="memori-
|
|
342
|
-
title="write_and_speak.micButtonPopover"
|
|
370
|
+
<div
|
|
371
|
+
class="memori-tooltip memori-tooltip--align-topLeft memori-mic-btn-tooltip"
|
|
343
372
|
>
|
|
344
|
-
<
|
|
345
|
-
class="memori-
|
|
373
|
+
<div
|
|
374
|
+
class="memori-tooltip--content"
|
|
346
375
|
>
|
|
347
|
-
<
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
376
|
+
<span>
|
|
377
|
+
write_and_speak.pressAndHoldToSpeak
|
|
378
|
+
</span>
|
|
379
|
+
</div>
|
|
380
|
+
<div
|
|
381
|
+
class="memori-tooltip--trigger"
|
|
382
|
+
>
|
|
383
|
+
<button
|
|
384
|
+
class="memori-button memori-button--primary memori-button--circle memori-button--padded memori-button--icon-only memori-chat-inputs--mic"
|
|
385
|
+
title="write_and_speak.micButtonPopover"
|
|
353
386
|
>
|
|
354
|
-
<
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
387
|
+
<span
|
|
388
|
+
class="memori-button--icon"
|
|
389
|
+
>
|
|
390
|
+
<svg
|
|
391
|
+
aria-hidden="true"
|
|
392
|
+
focusable="false"
|
|
393
|
+
role="img"
|
|
394
|
+
viewBox="0 0 1024 1024"
|
|
395
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
396
|
+
>
|
|
397
|
+
<path
|
|
398
|
+
d="M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"
|
|
399
|
+
/>
|
|
400
|
+
</svg>
|
|
401
|
+
</span>
|
|
402
|
+
</button>
|
|
403
|
+
</div>
|
|
404
|
+
</div>
|
|
360
405
|
</fieldset>
|
|
361
406
|
</div>
|
|
362
407
|
`;
|
|
@@ -446,26 +491,41 @@ exports[`renders ChatInputs unchanged 1`] = `
|
|
|
446
491
|
</svg>
|
|
447
492
|
</span>
|
|
448
493
|
</button>
|
|
449
|
-
<
|
|
450
|
-
class="memori-
|
|
451
|
-
title="write_and_speak.micButtonPopover"
|
|
494
|
+
<div
|
|
495
|
+
class="memori-tooltip memori-tooltip--align-topLeft memori-mic-btn-tooltip"
|
|
452
496
|
>
|
|
453
|
-
<
|
|
454
|
-
class="memori-
|
|
497
|
+
<div
|
|
498
|
+
class="memori-tooltip--content"
|
|
455
499
|
>
|
|
456
|
-
<
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
500
|
+
<span>
|
|
501
|
+
write_and_speak.pressAndHoldToSpeak
|
|
502
|
+
</span>
|
|
503
|
+
</div>
|
|
504
|
+
<div
|
|
505
|
+
class="memori-tooltip--trigger"
|
|
506
|
+
>
|
|
507
|
+
<button
|
|
508
|
+
class="memori-button memori-button--primary memori-button--circle memori-button--padded memori-button--icon-only memori-chat-inputs--mic"
|
|
509
|
+
title="write_and_speak.micButtonPopover"
|
|
462
510
|
>
|
|
463
|
-
<
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
511
|
+
<span
|
|
512
|
+
class="memori-button--icon"
|
|
513
|
+
>
|
|
514
|
+
<svg
|
|
515
|
+
aria-hidden="true"
|
|
516
|
+
focusable="false"
|
|
517
|
+
role="img"
|
|
518
|
+
viewBox="0 0 1024 1024"
|
|
519
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
520
|
+
>
|
|
521
|
+
<path
|
|
522
|
+
d="M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"
|
|
523
|
+
/>
|
|
524
|
+
</svg>
|
|
525
|
+
</span>
|
|
526
|
+
</button>
|
|
527
|
+
</div>
|
|
528
|
+
</div>
|
|
469
529
|
</fieldset>
|
|
470
530
|
</div>
|
|
471
531
|
`;
|
|
@@ -556,26 +616,41 @@ exports[`renders ChatInputs with user message unchanged 1`] = `
|
|
|
556
616
|
</svg>
|
|
557
617
|
</span>
|
|
558
618
|
</button>
|
|
559
|
-
<
|
|
560
|
-
class="memori-
|
|
561
|
-
title="write_and_speak.micButtonPopover"
|
|
619
|
+
<div
|
|
620
|
+
class="memori-tooltip memori-tooltip--align-topLeft memori-mic-btn-tooltip"
|
|
562
621
|
>
|
|
563
|
-
<
|
|
564
|
-
class="memori-
|
|
622
|
+
<div
|
|
623
|
+
class="memori-tooltip--content"
|
|
565
624
|
>
|
|
566
|
-
<
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
625
|
+
<span>
|
|
626
|
+
write_and_speak.pressAndHoldToSpeak
|
|
627
|
+
</span>
|
|
628
|
+
</div>
|
|
629
|
+
<div
|
|
630
|
+
class="memori-tooltip--trigger"
|
|
631
|
+
>
|
|
632
|
+
<button
|
|
633
|
+
class="memori-button memori-button--primary memori-button--circle memori-button--padded memori-button--icon-only memori-chat-inputs--mic"
|
|
634
|
+
title="write_and_speak.micButtonPopover"
|
|
572
635
|
>
|
|
573
|
-
<
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
636
|
+
<span
|
|
637
|
+
class="memori-button--icon"
|
|
638
|
+
>
|
|
639
|
+
<svg
|
|
640
|
+
aria-hidden="true"
|
|
641
|
+
focusable="false"
|
|
642
|
+
role="img"
|
|
643
|
+
viewBox="0 0 1024 1024"
|
|
644
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
645
|
+
>
|
|
646
|
+
<path
|
|
647
|
+
d="M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"
|
|
648
|
+
/>
|
|
649
|
+
</svg>
|
|
650
|
+
</span>
|
|
651
|
+
</button>
|
|
652
|
+
</div>
|
|
653
|
+
</div>
|
|
579
654
|
</fieldset>
|
|
580
655
|
</div>
|
|
581
656
|
`;
|
|
@@ -40,7 +40,7 @@ textarea.memori-chat-textarea--input {
|
|
|
40
40
|
border: none;
|
|
41
41
|
background: #fff;
|
|
42
42
|
color: #000;
|
|
43
|
-
font-family:
|
|
43
|
+
font-family: 'Exo 2', sans-serif;
|
|
44
44
|
resize: none;
|
|
45
45
|
}
|
|
46
46
|
|
|
@@ -78,8 +78,12 @@ button.memori-chat-textarea--expand-button:focus {
|
|
|
78
78
|
outline: none;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
.memori-chat-textarea:not(.memori-chat-textarea--disabled)
|
|
82
|
-
.memori-chat-textarea
|
|
81
|
+
.memori-chat-textarea:not(.memori-chat-textarea--disabled)
|
|
82
|
+
.memori-chat-textarea--inner:focus
|
|
83
|
+
.memori-chat-textarea--expand-button,
|
|
84
|
+
.memori-chat-textarea:not(.memori-chat-textarea--disabled)
|
|
85
|
+
.memori-chat-textarea--inner:focus-within
|
|
86
|
+
.memori-chat-textarea--expand-button {
|
|
83
87
|
opacity: 1;
|
|
84
88
|
}
|
|
85
89
|
|
|
@@ -12,14 +12,15 @@
|
|
|
12
12
|
.memori--date-selector__select-button {
|
|
13
13
|
position: relative;
|
|
14
14
|
width: 100%;
|
|
15
|
-
padding-top: .5rem;
|
|
15
|
+
padding-top: 0.5rem;
|
|
16
16
|
padding-right: 2.5rem;
|
|
17
|
-
padding-bottom: .5rem;
|
|
18
|
-
padding-left: .75rem;
|
|
17
|
+
padding-bottom: 0.5rem;
|
|
18
|
+
padding-left: 0.75rem;
|
|
19
19
|
border: 1px solid #e5e7eb;
|
|
20
|
-
border-radius: .5rem;
|
|
20
|
+
border-radius: 0.5rem;
|
|
21
21
|
background: #fff;
|
|
22
|
-
box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 4px 6px -1px,
|
|
22
|
+
box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 4px 6px -1px,
|
|
23
|
+
rgba(0, 0, 0, 0.1) 0px 2px 4px -2px;
|
|
23
24
|
cursor: pointer;
|
|
24
25
|
text-align: left;
|
|
25
26
|
}
|
|
@@ -51,7 +52,7 @@
|
|
|
51
52
|
|
|
52
53
|
@media (min-width: 640px) {
|
|
53
54
|
.memori--date-selector__select-button {
|
|
54
|
-
font-size: .875rem;
|
|
55
|
+
font-size: 0.875rem;
|
|
55
56
|
line-height: 1.25rem;
|
|
56
57
|
}
|
|
57
58
|
}
|
|
@@ -75,7 +76,7 @@
|
|
|
75
76
|
bottom: 0;
|
|
76
77
|
display: flex;
|
|
77
78
|
align-items: center;
|
|
78
|
-
padding-right: .5rem;
|
|
79
|
+
padding-right: 0.5rem;
|
|
79
80
|
pointer-events: none;
|
|
80
81
|
}
|
|
81
82
|
|
|
@@ -92,32 +93,33 @@ ul.memori--date-selector__select-options {
|
|
|
92
93
|
width: 100%;
|
|
93
94
|
max-width: min(18rem, 30%);
|
|
94
95
|
max-height: 15rem;
|
|
95
|
-
padding-top: .25rem;
|
|
96
|
+
padding-top: 0.25rem;
|
|
96
97
|
padding-right: 0;
|
|
97
|
-
padding-bottom: .25rem;
|
|
98
|
+
padding-bottom: 0.25rem;
|
|
98
99
|
padding-left: 0;
|
|
99
|
-
border-radius: .375rem;
|
|
100
|
-
margin-top: .25rem;
|
|
100
|
+
border-radius: 0.375rem;
|
|
101
|
+
margin-top: 0.25rem;
|
|
101
102
|
margin-right: 0;
|
|
102
103
|
margin-bottom: 0;
|
|
103
104
|
margin-left: 0;
|
|
104
105
|
background: #fff;
|
|
105
|
-
box-shadow: rgb(255, 255, 255) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 0px 0px 1px,
|
|
106
|
+
box-shadow: rgb(255, 255, 255) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 0px 0px 1px,
|
|
107
|
+
rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.1) 0px 4px 6px -4px;
|
|
106
108
|
list-style: none;
|
|
107
109
|
}
|
|
108
110
|
|
|
109
111
|
@media (min-width: 640px) {
|
|
110
112
|
.memori--date-selector__select-options {
|
|
111
|
-
font-size: .875rem;
|
|
113
|
+
font-size: 0.875rem;
|
|
112
114
|
line-height: 1.25rem;
|
|
113
115
|
}
|
|
114
116
|
}
|
|
115
117
|
|
|
116
118
|
li.memori--date-selector__select-option {
|
|
117
119
|
position: relative;
|
|
118
|
-
padding-top: .5rem;
|
|
120
|
+
padding-top: 0.5rem;
|
|
119
121
|
padding-right: 1rem;
|
|
120
|
-
padding-bottom: .5rem;
|
|
122
|
+
padding-bottom: 0.5rem;
|
|
121
123
|
padding-left: 1rem;
|
|
122
124
|
color: rgb(17 24 39/1);
|
|
123
125
|
cursor: pointer;
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.transition {
|
|
24
|
-
transition-duration: .15s;
|
|
24
|
+
transition-duration: 0.15s;
|
|
25
25
|
transition-property: all;
|
|
26
|
-
transition-timing-function: cubic-bezier(.4,0
|
|
26
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.ease-out {
|
|
@@ -63,11 +63,11 @@
|
|
|
63
63
|
top: calc(100% - 0.25rem);
|
|
64
64
|
right: -2rem;
|
|
65
65
|
width: 14rem;
|
|
66
|
-
border: 1px solid rgba(0,0,0,0.05);
|
|
66
|
+
border: 1px solid rgba(0, 0, 0, 0.05);
|
|
67
67
|
border-radius: 0.375rem;
|
|
68
68
|
margin-top: 0.5rem;
|
|
69
69
|
background-color: #fff;
|
|
70
|
-
box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06);
|
|
70
|
+
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
|
|
71
71
|
outline: none;
|
|
72
72
|
transform-origin: top right;
|
|
73
73
|
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
padding: calc(var(--memori-inner-content-pad) / 4) calc(var(--memori-inner-content-pad) / 2);
|
|
7
7
|
border-radius: 10px;
|
|
8
8
|
margin-left: auto;
|
|
9
|
+
-webkit-backdrop-filter: blur(10px);
|
|
9
10
|
backdrop-filter: blur(10px);
|
|
10
11
|
background-color: var(--memori-inner-bg, #fff);
|
|
11
12
|
text-align: right;
|
|
@@ -24,7 +25,7 @@
|
|
|
24
25
|
justify-content: center;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
|
-
.memori-header--button
|
|
28
|
+
.memori-header--button + .memori-header--button {
|
|
28
29
|
margin-left: 0.25rem;
|
|
29
30
|
}
|
|
30
31
|
|
|
@@ -46,6 +46,9 @@ const Template: Story<Props> = args => {
|
|
|
46
46
|
continuousSpeechTimeout={continuousSpeechTimeout}
|
|
47
47
|
setContinuousSpeech={setContinuousSpeech}
|
|
48
48
|
setContinuousSpeechTimeout={setContinuousSpeechTimeout}
|
|
49
|
+
setControlsPosition={() => {}}
|
|
50
|
+
controlsPosition="bottom"
|
|
51
|
+
setHideEmissions={() => {}}
|
|
49
52
|
/>
|
|
50
53
|
</>
|
|
51
54
|
);
|
|
@@ -126,7 +126,7 @@ const Header: React.FC<Props> = ({
|
|
|
126
126
|
<Button
|
|
127
127
|
primary
|
|
128
128
|
shape="circle"
|
|
129
|
-
className="memori-header--button"
|
|
129
|
+
className="memori-header--button memori-header--button-settings"
|
|
130
130
|
icon={<Setting />}
|
|
131
131
|
onClick={() => setShowSettingsDrawer(true)}
|
|
132
132
|
title={t('widget.settings') || 'Settings'}
|
|
@@ -200,7 +200,7 @@ exports[`renders Header with settings button unchanged 1`] = `
|
|
|
200
200
|
</button>
|
|
201
201
|
</div>
|
|
202
202
|
<button
|
|
203
|
-
class="memori-button memori-button--primary memori-button--circle memori-button--padded memori-button--icon-only memori-header--button"
|
|
203
|
+
class="memori-button memori-button--primary memori-button--circle memori-button--padded memori-button--icon-only memori-header--button memori-header--button-settings"
|
|
204
204
|
title="widget.settings"
|
|
205
205
|
>
|
|
206
206
|
<span
|
|
@@ -11,7 +11,7 @@ legend.helper p {
|
|
|
11
11
|
margin-bottom: 0;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
.memori--upload
|
|
14
|
+
.memori--upload .ant-upload-list-picture-card-container,
|
|
15
15
|
.memori--upload .ant-upload.ant-upload-select-picture-card {
|
|
16
16
|
width: auto;
|
|
17
17
|
min-width: 100px;
|
|
@@ -88,8 +88,7 @@ legend.helper p {
|
|
|
88
88
|
text-align: center;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
.memori--list-item-wrapper .ant-upload-list-item-error
|
|
92
|
-
.ant-upload-list-item-name {
|
|
91
|
+
.memori--list-item-wrapper .ant-upload-list-item-error .ant-upload-list-item-name {
|
|
93
92
|
position: static;
|
|
94
93
|
margin: 0 0 1rem;
|
|
95
94
|
}
|
|
@@ -94,6 +94,7 @@ a.memori-media-item--link {
|
|
|
94
94
|
.memori-media-item--modal .memori-modal--panel {
|
|
95
95
|
width: 75vw;
|
|
96
96
|
height: 85vh;
|
|
97
|
+
-webkit-backdrop-filter: blur(var(--memori-blur-background, 10px));
|
|
97
98
|
backdrop-filter: blur(var(--memori-blur-background, 10px));
|
|
98
99
|
background: rgba(0, 0, 0, 0.25);
|
|
99
100
|
}
|
|
@@ -121,6 +122,7 @@ a.memori-media-item--link {
|
|
|
121
122
|
position: absolute;
|
|
122
123
|
bottom: 0;
|
|
123
124
|
width: 100%;
|
|
125
|
+
-webkit-backdrop-filter: blur(var(--memori-blur-background, 5px));
|
|
124
126
|
backdrop-filter: blur(var(--memori-blur-background, 5px));
|
|
125
127
|
background: rgba(255, 255, 255, 0.5);
|
|
126
128
|
color: #000;
|
|
@@ -121,7 +121,6 @@
|
|
|
121
121
|
filter: blur(var(--memori-blur-background, 0));
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
|
|
125
124
|
.memori--powered-by {
|
|
126
125
|
position: absolute;
|
|
127
126
|
z-index: 1000;
|
|
@@ -176,7 +175,7 @@
|
|
|
176
175
|
font-size: 1rem;
|
|
177
176
|
}
|
|
178
177
|
|
|
179
|
-
.memori--conversation-button
|
|
178
|
+
.memori--conversation-button + .memori--conversation-button {
|
|
180
179
|
margin-left: 0.33rem;
|
|
181
180
|
}
|
|
182
181
|
|