@memori.ai/memori-react 2.2.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.
Files changed (90) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/components/Avatar/Avatar.css +0 -1
  3. package/dist/components/Blob/Blob.css +6 -1
  4. package/dist/components/ChangeMode/ChangeMode.css +1 -1
  5. package/dist/components/Chat/Chat.css +3 -2
  6. package/dist/components/ChatBubble/ChatBubble.css +1 -1
  7. package/dist/components/ChatInputs/ChatInputs.css +2 -2
  8. package/dist/components/ChatTextArea/ChatTextArea.css +7 -3
  9. package/dist/components/DateSelector/DateSelector.css +17 -15
  10. package/dist/components/ExportHistoryButton/ExportHistoryButton.css +1 -1
  11. package/dist/components/FeedbackButtons/FeedbackButtons.css +4 -4
  12. package/dist/components/Header/Header.css +2 -1
  13. package/dist/components/Header/Header.js +1 -1
  14. package/dist/components/Header/Header.js.map +1 -1
  15. package/dist/components/ImageUpload/ImageUpload.css +2 -3
  16. package/dist/components/MediaWidget/MediaItemWidget.css +2 -0
  17. package/dist/components/MediaWidget/MediaWidget.css +1 -1
  18. package/dist/components/MemoriWidget/MemoriWidget.css +1 -2
  19. package/dist/components/MicrophoneButton/MicrophoneButton.css +10 -4
  20. package/dist/components/StartPanel/StartPanel.css +1 -1
  21. package/dist/components/layouts/totem.css +49 -8
  22. package/dist/components/ui/Button.css +1 -1
  23. package/dist/components/ui/Checkbox.css +0 -2
  24. package/dist/components/ui/Drawer.css +1 -1
  25. package/dist/components/ui/Modal.css +1 -1
  26. package/dist/components/ui/Select.css +17 -16
  27. package/dist/components/ui/Tooltip.css +11 -7
  28. package/dist/helpers/translations.js +1 -2
  29. package/dist/helpers/translations.js.map +1 -1
  30. package/dist/styles.css +2 -2
  31. package/esm/components/Avatar/Avatar.css +0 -1
  32. package/esm/components/Blob/Blob.css +6 -1
  33. package/esm/components/ChangeMode/ChangeMode.css +1 -1
  34. package/esm/components/Chat/Chat.css +3 -2
  35. package/esm/components/ChatBubble/ChatBubble.css +1 -1
  36. package/esm/components/ChatInputs/ChatInputs.css +2 -2
  37. package/esm/components/ChatTextArea/ChatTextArea.css +7 -3
  38. package/esm/components/DateSelector/DateSelector.css +17 -15
  39. package/esm/components/ExportHistoryButton/ExportHistoryButton.css +1 -1
  40. package/esm/components/FeedbackButtons/FeedbackButtons.css +4 -4
  41. package/esm/components/Header/Header.css +2 -1
  42. package/esm/components/Header/Header.js +1 -1
  43. package/esm/components/Header/Header.js.map +1 -1
  44. package/esm/components/ImageUpload/ImageUpload.css +2 -3
  45. package/esm/components/MediaWidget/MediaItemWidget.css +2 -0
  46. package/esm/components/MediaWidget/MediaWidget.css +1 -1
  47. package/esm/components/MemoriWidget/MemoriWidget.css +1 -2
  48. package/esm/components/MicrophoneButton/MicrophoneButton.css +10 -4
  49. package/esm/components/StartPanel/StartPanel.css +1 -1
  50. package/esm/components/layouts/totem.css +49 -8
  51. package/esm/components/ui/Button.css +1 -1
  52. package/esm/components/ui/Checkbox.css +0 -2
  53. package/esm/components/ui/Drawer.css +1 -1
  54. package/esm/components/ui/Modal.css +1 -1
  55. package/esm/components/ui/Select.css +17 -16
  56. package/esm/components/ui/Tooltip.css +11 -7
  57. package/esm/helpers/translations.js +1 -2
  58. package/esm/helpers/translations.js.map +1 -1
  59. package/esm/styles.css +2 -2
  60. package/package.json +1 -1
  61. package/src/components/Avatar/Avatar.css +0 -1
  62. package/src/components/Blob/Blob.css +6 -1
  63. package/src/components/ChangeMode/ChangeMode.css +1 -1
  64. package/src/components/Chat/Chat.css +3 -2
  65. package/src/components/ChatBubble/ChatBubble.css +1 -1
  66. package/src/components/ChatInputs/ChatInputs.css +2 -2
  67. package/src/components/ChatTextArea/ChatTextArea.css +7 -3
  68. package/src/components/DateSelector/DateSelector.css +17 -15
  69. package/src/components/ExportHistoryButton/ExportHistoryButton.css +1 -1
  70. package/src/components/FeedbackButtons/FeedbackButtons.css +4 -4
  71. package/src/components/Header/Header.css +2 -1
  72. package/src/components/Header/Header.tsx +1 -1
  73. package/src/components/Header/__snapshots__/Header.test.tsx.snap +1 -1
  74. package/src/components/ImageUpload/ImageUpload.css +2 -3
  75. package/src/components/MediaWidget/MediaItemWidget.css +2 -0
  76. package/src/components/MediaWidget/MediaWidget.css +1 -1
  77. package/src/components/MemoriWidget/MemoriWidget.css +1 -2
  78. package/src/components/MicrophoneButton/MicrophoneButton.css +10 -4
  79. package/src/components/StartPanel/StartPanel.css +1 -1
  80. package/src/components/layouts/__snapshots__/FullPage.test.tsx.snap +1 -1
  81. package/src/components/layouts/__snapshots__/Totem.test.tsx.snap +1 -1
  82. package/src/components/layouts/totem.css +49 -8
  83. package/src/components/ui/Button.css +1 -1
  84. package/src/components/ui/Checkbox.css +0 -2
  85. package/src/components/ui/Drawer.css +1 -1
  86. package/src/components/ui/Modal.css +1 -1
  87. package/src/components/ui/Select.css +17 -16
  88. package/src/components/ui/Tooltip.css +11 -7
  89. package/src/helpers/translations.ts +3 -2
  90. package/src/styles.css +2 -2
@@ -7,14 +7,15 @@
7
7
  position: relative;
8
8
  width: 100%;
9
9
  min-height: 38px;
10
- padding-top: .5rem;
10
+ padding-top: 0.5rem;
11
11
  padding-right: 2.5rem;
12
- padding-bottom: .5rem;
13
- padding-left: .75rem;
12
+ padding-bottom: 0.5rem;
13
+ padding-left: 0.75rem;
14
14
  border: 1px solid #e5e7eb;
15
- border-radius: .5rem;
15
+ border-radius: 0.5rem;
16
16
  background: #fff;
17
- 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, rgba(0, 0, 0, 0.1) 0px 2px 4px -2px;
17
+ 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,
18
+ rgba(0, 0, 0, 0.1) 0px 2px 4px -2px;
18
19
  cursor: pointer;
19
20
  text-align: left;
20
21
  }
@@ -46,7 +47,7 @@
46
47
 
47
48
  @media (min-width: 640px) {
48
49
  .memori-select--button {
49
- font-size: .875rem;
50
+ font-size: 0.875rem;
50
51
  line-height: 1.25rem;
51
52
  }
52
53
  }
@@ -74,7 +75,7 @@
74
75
  bottom: 0;
75
76
  display: flex;
76
77
  align-items: center;
77
- padding-right: .5rem;
78
+ padding-right: 0.5rem;
78
79
  pointer-events: none;
79
80
  }
80
81
 
@@ -91,32 +92,33 @@ ul.memori-select--options {
91
92
  width: 100%;
92
93
  max-width: min(18rem, 30%);
93
94
  max-height: 15rem;
94
- padding-top: .25rem;
95
+ padding-top: 0.25rem;
95
96
  padding-right: 0;
96
- padding-bottom: .25rem;
97
+ padding-bottom: 0.25rem;
97
98
  padding-left: 0;
98
- border-radius: .375rem;
99
- margin-top: .25rem;
99
+ border-radius: 0.375rem;
100
+ margin-top: 0.25rem;
100
101
  margin-right: 0;
101
102
  margin-bottom: 0;
102
103
  margin-left: 0;
103
104
  background: #fff;
104
- box-shadow: rgb(255, 255, 255) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 0px 0px 1px, rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.1) 0px 4px 6px -4px;
105
+ box-shadow: rgb(255, 255, 255) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 0px 0px 1px,
106
+ rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.1) 0px 4px 6px -4px;
105
107
  list-style: none;
106
108
  }
107
109
 
108
110
  @media (min-width: 640px) {
109
111
  .memori-select--options {
110
- font-size: .875rem;
112
+ font-size: 0.875rem;
111
113
  line-height: 1.25rem;
112
114
  }
113
115
  }
114
116
 
115
117
  li.memori-select--option {
116
118
  position: relative;
117
- padding-top: .5rem;
119
+ padding-top: 0.5rem;
118
120
  padding-right: 1rem;
119
- padding-bottom: .5rem;
121
+ padding-bottom: 0.5rem;
120
122
  padding-left: 1rem;
121
123
  color: rgb(17 24 39/1);
122
124
  cursor: pointer;
@@ -132,4 +134,3 @@ li.memori-select--option:focus {
132
134
  outline: 2px solid #63b3ed;
133
135
  outline-offset: 2px;
134
136
  }
135
-
@@ -41,10 +41,10 @@
41
41
  border: 10px solid rgba(0, 0, 0, 0.8);
42
42
  border-color: transparent rgba(0, 0, 0, 0.8) transparent transparent;
43
43
  margin-left: -5px;
44
- content: "";
44
+ content: '';
45
45
  opacity: 0;
46
46
  transform: translateY(-50%);
47
- transition: .3s;
47
+ transition: 0.3s;
48
48
  }
49
49
 
50
50
  .memori-tooltip.memori-tooltip--align-left .memori-tooltip--content::before {
@@ -81,8 +81,10 @@
81
81
  opacity: 1;
82
82
  }
83
83
 
84
- .memori-tooltip.memori-tooltip--align-topRight:not(.memori-tooltip--disabled).memori-tooltip--visible .memori-tooltip--content,
85
- .memori-tooltip.memori-tooltip--align-topRight:not(.memori-tooltip--disabled):not(.memori-tooltip--visible):hover .memori-tooltip--content {
84
+ .memori-tooltip.memori-tooltip--align-topRight:not(.memori-tooltip--disabled).memori-tooltip--visible
85
+ .memori-tooltip--content,
86
+ .memori-tooltip.memori-tooltip--align-topRight:not(.memori-tooltip--disabled):not(.memori-tooltip--visible):hover
87
+ .memori-tooltip--content {
86
88
  transform: translateY(-150%) translateX(-33%);
87
89
  }
88
90
 
@@ -95,8 +97,10 @@
95
97
  margin-left: 5px;
96
98
  }
97
99
 
98
- .memori-tooltip.memori-tooltip--align-topLeft:not(.memori-tooltip--disabled).memori-tooltip--visible .memori-tooltip--content,
99
- .memori-tooltip.memori-tooltip--align-topLeft:not(.memori-tooltip--disabled):not(.memori-tooltip--visible):hover .memori-tooltip--content {
100
+ .memori-tooltip.memori-tooltip--align-topLeft:not(.memori-tooltip--disabled).memori-tooltip--visible
101
+ .memori-tooltip--content,
102
+ .memori-tooltip.memori-tooltip--align-topLeft:not(.memori-tooltip--disabled):not(.memori-tooltip--visible):hover
103
+ .memori-tooltip--content {
100
104
  transform: translateY(-150%) translateX(33%);
101
105
  }
102
106
 
@@ -108,4 +112,4 @@
108
112
 
109
113
  .memori-tooltip.memori-tooltip--disabled {
110
114
  cursor: not-allowed;
111
- }
115
+ }
@@ -12,8 +12,7 @@ export const getTranslation = async (text, to, from, baseUrl) => {
12
12
  var _a;
13
13
  const isReservedKeyword = dialogKeywords.indexOf(text.toLowerCase()) > -1;
14
14
  const fromLanguage = isReservedKeyword ? 'IT' : from === null || from === void 0 ? void 0 : from.toUpperCase();
15
- const deeplResult = await fetch(`${baseUrl ||
16
- 'https://app.twincreator.com'}/api/translate?text=${encodeURIComponent(text)}&target_lang=${to.toUpperCase()}${fromLanguage ? `&source_lang=${fromLanguage}` : ''}`, {
15
+ const deeplResult = await fetch(`${baseUrl || 'https://app.twincreator.com'}/api/translate?text=${encodeURIComponent(text)}&target_lang=${to.toUpperCase()}${fromLanguage ? `&source_lang=${fromLanguage}` : ''}`, {
17
16
  method: 'GET',
18
17
  headers: {
19
18
  Accept: '*/*',
@@ -1 +1 @@
1
- {"version":3,"file":"translations.js","sourceRoot":"","sources":["../../src/helpers/translations.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS;IACT,WAAW;IACX,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,aAAa;IACb,eAAe;IACf,mBAAmB;CACpB,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,EACjC,IAAY,EACZ,EAAU,EACV,IAAa,EACb,OAAgB,EACW,EAAE;;IAC7B,MAAM,iBAAiB,GAAG,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1E,MAAM,YAAY,GAAG,iBAAiB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,WAAW,EAAE,CAAC;IACpE,MAAM,WAAW,GAAG,MAAM,KAAK,CAC7B,GAAG,OAAO;QACR,6BAA6B,uBAAuB,kBAAkB,CACtE,IAAI,CACL,gBAAgB,EAAE,CAAC,WAAW,EAAE,GAC/B,YAAY,CAAC,CAAC,CAAC,gBAAgB,YAAY,EAAE,CAAC,CAAC,CAAC,EAClD,EAAE,EACF;QACE,MAAM,EAAE,KAAK;QACb,OAAO,EAAE;YACP,MAAM,EAAE,KAAK;SACd;KACF,CACF,CAAC;IACF,MAAM,aAAa,GAAG,MAAM,WAAW,CAAC,IAAI,EAAE,CAAC;IAC/C,OAAO,MAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,YAAY,0CAAG,CAAC,CAAC,CAAC;AAC1C,CAAC,CAAC"}
1
+ {"version":3,"file":"translations.js","sourceRoot":"","sources":["../../src/helpers/translations.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS;IACT,WAAW;IACX,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,aAAa;IACb,eAAe;IACf,mBAAmB;CACpB,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,EACjC,IAAY,EACZ,EAAU,EACV,IAAa,EACb,OAAgB,EACW,EAAE;;IAC7B,MAAM,iBAAiB,GAAG,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1E,MAAM,YAAY,GAAG,iBAAiB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,WAAW,EAAE,CAAC;IACpE,MAAM,WAAW,GAAG,MAAM,KAAK,CAC7B,GACE,OAAO,IAAI,6BACb,uBAAuB,kBAAkB,CACvC,IAAI,CACL,gBAAgB,EAAE,CAAC,WAAW,EAAE,GAC/B,YAAY,CAAC,CAAC,CAAC,gBAAgB,YAAY,EAAE,CAAC,CAAC,CAAC,EAClD,EAAE,EACF;QACE,MAAM,EAAE,KAAK;QACb,OAAO,EAAE;YACP,MAAM,EAAE,KAAK;SACd;KACF,CACF,CAAC;IACF,MAAM,aAAa,GAAG,MAAM,WAAW,CAAC,IAAI,EAAE,CAAC;IAC/C,OAAO,MAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,YAAY,0CAAG,CAAC,CAAC,CAAC;AAC1C,CAAC,CAAC"}
package/esm/styles.css CHANGED
@@ -56,7 +56,7 @@
56
56
 
57
57
  memori-client,
58
58
  memori-client #root,
59
- memori-client+#headlessui-portal-root,
59
+ memori-client ~ #headlessui-portal-root,
60
60
  body.sb-show-main #root,
61
61
  body.sb-show-main #headlessui-portal-root,
62
62
  #storybook-root,
@@ -84,4 +84,4 @@ body.sb-show-main #headlessui-portal-root,
84
84
  --memori-modal--width: 100%;
85
85
  --memori-modal--width--md: 80%;
86
86
  --memori-error-color: #ff4d4f;
87
- }
87
+ }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.2.0",
2
+ "version": "2.2.1",
3
3
  "name": "@memori.ai/memori-react",
4
4
  "author": "Memori Srl",
5
5
  "main": "dist/index.js",
@@ -61,7 +61,6 @@
61
61
  }
62
62
 
63
63
  @media (max-width: 870px) {
64
-
65
64
  .memori--avatar-wrapper div,
66
65
  .memori--avatar-wrapper canvas,
67
66
  .memori--avatar-wrapper model-viewer {
@@ -93,20 +93,25 @@
93
93
  filter: brightness(1);
94
94
  transform: scale(1);
95
95
  }
96
+
96
97
  15% {
97
98
  filter: brightness(1.1);
98
99
  }
100
+
99
101
  30% {
100
102
  filter: brightness(1);
101
103
  transform: scale(0.99);
102
104
  }
105
+
103
106
  50% {
104
107
  filter: brightness(1.05);
105
108
  transform: scale(1.01);
106
109
  }
110
+
107
111
  75% {
108
112
  filter: brightness(1.15);
109
113
  }
114
+
110
115
  100% {
111
116
  filter: brightness(1.1);
112
117
  transform: scale(0.99);
@@ -140,7 +145,7 @@
140
145
  object-fit: contain;
141
146
  }
142
147
 
143
- .memori-blob figure~.mainDiv {
148
+ .memori-blob figure ~ .mainDiv {
144
149
  opacity: 0.2;
145
150
  }
146
151
 
@@ -17,6 +17,6 @@
17
17
  border-top-left-radius: 0;
18
18
  }
19
19
 
20
- .memori--changeMode-instruct-radio-button[data-headlessui-state="checked"] button {
20
+ .memori--changeMode-instruct-radio-button[data-headlessui-state='checked'] button {
21
21
  font-weight: 600;
22
22
  }
@@ -12,6 +12,7 @@
12
12
  padding: calc(var(--memori-inner-content-pad) / 4) calc(var(--memori-inner-content-pad) / 2);
13
13
  border-radius: 10px;
14
14
  margin: 1rem 0;
15
+ -webkit-backdrop-filter: blur(10px);
15
16
  backdrop-filter: blur(10px);
16
17
  background-color: var(--memori-inner-bg);
17
18
  }
@@ -48,7 +49,7 @@
48
49
  border-top-right-radius: 3px;
49
50
  }
50
51
 
51
- .memori-chat--cover+.memori-chat--bubble-initial {
52
+ .memori-chat--cover + .memori-chat--bubble-initial {
52
53
  display: none;
53
54
  }
54
55
 
@@ -102,7 +103,7 @@
102
103
  white-space: nowrap;
103
104
  }
104
105
 
105
- .memori-chat--context-tag+.memori-chat--context-tag {
106
+ .memori-chat--context-tag + .memori-chat--context-tag {
106
107
  margin-top: 0.5rem;
107
108
  }
108
109
 
@@ -64,7 +64,7 @@
64
64
  margin-bottom: 0;
65
65
  }
66
66
 
67
- .memori-chat--bubble p+p {
67
+ .memori-chat--bubble p + p {
68
68
  margin-top: 0.5em;
69
69
  }
70
70
 
@@ -11,11 +11,11 @@
11
11
  margin: 0;
12
12
  }
13
13
 
14
- .memori-chat-inputs .memori-upload-menu+.memori-send-on-enter-menu {
14
+ .memori-chat-inputs .memori-upload-menu + .memori-send-on-enter-menu {
15
15
  margin-left: 0.33rem;
16
16
  }
17
17
 
18
18
  .memori-chat-inputs .memori--conversation-button {
19
19
  background: #fff;
20
20
  color: #000;
21
- }
21
+ }
@@ -40,7 +40,7 @@ textarea.memori-chat-textarea--input {
40
40
  border: none;
41
41
  background: #fff;
42
42
  color: #000;
43
- font-family: "Exo 2", sans-serif;
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) .memori-chat-textarea--inner:focus .memori-chat-textarea--expand-button,
82
- .memori-chat-textarea:not(.memori-chat-textarea--disabled) .memori-chat-textarea--inner:focus-within .memori-chat-textarea--expand-button {
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, rgba(0, 0, 0, 0.1) 0px 2px 4px -2px;
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, rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.1) 0px 4px 6px -4px;
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;
@@ -12,7 +12,7 @@
12
12
  text-align: left;
13
13
  }
14
14
 
15
- .memori-export-history-button--panel button+button {
15
+ .memori-export-history-button--panel button + button {
16
16
  margin-left: 0.5rem;
17
17
  }
18
18
 
@@ -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,.2,1);
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+.memori-header--button {
28
+ .memori-header--button + .memori-header--button {
28
29
  margin-left: 0.25rem;
29
30
  }
30
31
 
@@ -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 .ant-upload-list-picture-card-container,
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;
@@ -32,7 +32,7 @@
32
32
  margin-bottom: 0.5rem;
33
33
  }
34
34
 
35
- .memori-media--hints li+li {
35
+ .memori-media--hints li + li {
36
36
  margin-left: 0.5rem;
37
37
  }
38
38
 
@@ -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+.memori--conversation-button {
178
+ .memori--conversation-button + .memori--conversation-button {
180
179
  margin-left: 0.33rem;
181
180
  }
182
181
 
@@ -1,5 +1,11 @@
1
- .memori-mic-btn-tooltip.memori-tooltip.memori-tooltip--align-topLeft:not(.memori-tooltip--disabled).memori-tooltip--visible .memori-tooltip--content,
2
- .memori-mic-btn-tooltip.memori-tooltip.memori-tooltip--align-topLeft:not(.memori-tooltip--disabled):not(.memori-tooltip--visible):hover .memori-tooltip--content {
1
+ .memori-mic-btn-tooltip.memori-tooltip.memori-tooltip--align-topLeft:not(
2
+ .memori-tooltip--disabled
3
+ ).memori-tooltip--visible
4
+ .memori-tooltip--content,
5
+ .memori-mic-btn-tooltip.memori-tooltip.memori-tooltip--align-topLeft:not(.memori-tooltip--disabled):not(
6
+ .memori-tooltip--visible
7
+ ):hover
8
+ .memori-tooltip--content {
3
9
  touch-action: none;
4
10
  transform: translateY(-180%) translateX(27%);
5
11
  -webkit-user-select: none;
@@ -78,7 +84,7 @@
78
84
  border-radius: 50%;
79
85
  animation: micBtnActivePulse 2s infinite;
80
86
  background: var(--memori-primary);
81
- content: "";
87
+ content: '';
82
88
  opacity: 0.2;
83
89
  }
84
90
 
@@ -98,4 +104,4 @@
98
104
 
99
105
  .memori-chat-inputs--mic.memori-chat-inputs--mic--listening svg {
100
106
  color: red !important;
101
- }
107
+ }
@@ -23,6 +23,7 @@
23
23
  padding: var(--memori-inner-content-pad, 0);
24
24
  border-radius: 10px;
25
25
  margin-top: 2rem;
26
+ -webkit-backdrop-filter: blur(10px);
26
27
  backdrop-filter: blur(10px);
27
28
  background-color: var(--memori-inner-bg, transparent);
28
29
  color: var(--memori-text-color, rgba(0, 0, 0, 0.85)) !important;
@@ -68,7 +69,6 @@
68
69
  box-shadow: 0 0 5px rgba(50, 50, 50, 0.3);
69
70
  }
70
71
 
71
-
72
72
  .memori--avatar img {
73
73
  width: 100%;
74
74
  height: 100%;
@@ -71,7 +71,7 @@ exports[`renders FullPage layout unchanged 1`] = `
71
71
  </button>
72
72
  </div>
73
73
  <button
74
- class="memori-button memori-button--primary memori-button--circle memori-button--padded memori-button--icon-only memori-header--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
75
  title="widget.settings"
76
76
  >
77
77
  <span
@@ -124,7 +124,7 @@ exports[`renders Totem layout unchanged 1`] = `
124
124
  </button>
125
125
  </div>
126
126
  <button
127
- class="memori-button memori-button--primary memori-button--circle memori-button--padded memori-button--icon-only memori-header--button"
127
+ class="memori-button memori-button--primary memori-button--circle memori-button--padded memori-button--icon-only memori-header--button memori-header--button-settings"
128
128
  title="widget.settings"
129
129
  >
130
130
  <span
@@ -10,8 +10,6 @@
10
10
  display: flex;
11
11
  height: 100%;
12
12
  flex-direction: column;
13
-
14
- /* --memori-text-color: #fff; */
15
13
  }
16
14
 
17
15
  .memori-totem-layout--header {
@@ -31,6 +29,22 @@
31
29
  width: 100%;
32
30
  }
33
31
 
32
+ .memori-totem-layout--avatar .memori--blob-container {
33
+ display: block;
34
+ }
35
+
36
+ @media (max-width: 480px) {
37
+ .memori-totem-layout--avatar .memori--blob-container {
38
+ display: block;
39
+ }
40
+ }
41
+
42
+ @media (max-width: 870px) {
43
+ .memori-totem-layout--avatar .memori--blob-container {
44
+ display: block;
45
+ }
46
+ }
47
+
34
48
  .memori-totem-layout .memori-header {
35
49
  position: relative;
36
50
  z-index: 100;
@@ -97,6 +111,27 @@
97
111
  margin: 0 auto;
98
112
  }
99
113
 
114
+ @media (max-width: 870px) {
115
+ .memori-totem-layout--controls .memori--start-panel,
116
+ .memori-totem-layout--controls .memori-chat--wrapper {
117
+ width: 100%;
118
+ }
119
+
120
+ .memori-totem-layout--controls .memori-chat--wrapper {
121
+ padding: 0;
122
+ }
123
+ }
124
+
125
+ @media (max-width: 480px) {
126
+ .memori-send-on-enter-menu {
127
+ display: none;
128
+ }
129
+
130
+ .memori-header--button-settings {
131
+ display: none;
132
+ }
133
+ }
134
+
100
135
  .memori-totem-layout .memori--avatar-toggle {
101
136
  display: none;
102
137
  width: 100%;
@@ -113,14 +148,20 @@
113
148
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(200, 200, 200, 0.8));
114
149
  }
115
150
 
116
- .memori-widget.memori-controls-center .memori-totem-layout--controls {
117
- position: absolute;
118
- top: 40%;
119
- width: 100%;
151
+ @media (min-width: 481px) {
152
+ .memori-widget.memori-controls-center .memori-totem-layout--controls {
153
+ position: absolute;
154
+ top: 40%;
155
+ width: 100%;
156
+ }
120
157
  }
121
158
 
122
- .memori-widget.memori-layout-totem.memori--hide-emissions .memori-totem-layout--controls .memori-chat--bubble-container:not(.memori-chat--bubble-from-user),
123
- .memori-widget.memori-layout-totem.memori--hide-emissions.memori--with-speechkey .memori-totem-layout--controls .memori-chat--bubble-container:not(.memori-chat--bubble-from-user) {
159
+ .memori-widget.memori-layout-totem.memori--hide-emissions
160
+ .memori-totem-layout--controls
161
+ .memori-chat--bubble-container:not(.memori-chat--bubble-from-user),
162
+ .memori-widget.memori-layout-totem.memori--hide-emissions.memori--with-speechkey
163
+ .memori-totem-layout--controls
164
+ .memori-chat--bubble-container:not(.memori-chat--bubble-from-user) {
124
165
  display: none;
125
166
  }
126
167