@memori.ai/memori-react 8.41.4 → 8.41.6

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 (201) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/components/AgeVerificationModal/AgeVerificationModal.js +4 -3
  3. package/dist/components/AgeVerificationModal/AgeVerificationModal.js.map +1 -1
  4. package/dist/components/CompletionProviderStatus/CompletionProviderStatus.js +6 -3
  5. package/dist/components/CompletionProviderStatus/CompletionProviderStatus.js.map +1 -1
  6. package/dist/components/DateSelector/DateSelector.d.ts +2 -1
  7. package/dist/components/DateSelector/DateSelector.js +17 -7
  8. package/dist/components/DateSelector/DateSelector.js.map +1 -1
  9. package/dist/components/FilePreview/FilePreview.js +1 -3
  10. package/dist/components/FilePreview/FilePreview.js.map +1 -1
  11. package/dist/components/MediaWidget/MediaItemWidget.js +1 -3
  12. package/dist/components/MediaWidget/MediaItemWidget.js.map +1 -1
  13. package/dist/components/MediaWidget/MediaPreviewModal.js +2 -6
  14. package/dist/components/MediaWidget/MediaPreviewModal.js.map +1 -1
  15. package/dist/components/MemoriArtifactSystem/utils/applyEdits.d.ts +8 -0
  16. package/dist/components/MemoriArtifactSystem/utils/applyEdits.js +117 -0
  17. package/dist/components/MemoriArtifactSystem/utils/applyEdits.js.map +1 -0
  18. package/dist/helpers/message.d.ts +1 -1
  19. package/dist/helpers/message.js +4 -4
  20. package/dist/helpers/message.js.map +1 -1
  21. package/dist/helpers/nats/natsBundled.js +13224 -0
  22. package/dist/helpers/utils.js +9 -3
  23. package/dist/helpers/utils.js.map +1 -1
  24. package/dist/version.d.ts +1 -1
  25. package/dist/version.js +1 -1
  26. package/esm/components/AgeVerificationModal/AgeVerificationModal.js +4 -3
  27. package/esm/components/AgeVerificationModal/AgeVerificationModal.js.map +1 -1
  28. package/esm/components/CompletionProviderStatus/CompletionProviderStatus.js +6 -3
  29. package/esm/components/CompletionProviderStatus/CompletionProviderStatus.js.map +1 -1
  30. package/esm/components/DateSelector/DateSelector.d.ts +2 -1
  31. package/esm/components/DateSelector/DateSelector.js +17 -7
  32. package/esm/components/DateSelector/DateSelector.js.map +1 -1
  33. package/esm/components/FilePreview/FilePreview.js +1 -3
  34. package/esm/components/FilePreview/FilePreview.js.map +1 -1
  35. package/esm/components/MediaWidget/MediaItemWidget.js +2 -4
  36. package/esm/components/MediaWidget/MediaItemWidget.js.map +1 -1
  37. package/esm/components/MediaWidget/MediaPreviewModal.js +2 -6
  38. package/esm/components/MediaWidget/MediaPreviewModal.js.map +1 -1
  39. package/esm/components/MemoriArtifactSystem/utils/applyEdits.d.ts +8 -0
  40. package/esm/components/MemoriArtifactSystem/utils/applyEdits.js +112 -0
  41. package/esm/components/MemoriArtifactSystem/utils/applyEdits.js.map +1 -0
  42. package/esm/helpers/message.d.ts +1 -1
  43. package/esm/helpers/message.js +2 -2
  44. package/esm/helpers/message.js.map +1 -1
  45. package/esm/helpers/nats/natsBundled.js +13225 -0
  46. package/esm/helpers/utils.js +9 -3
  47. package/esm/helpers/utils.js.map +1 -1
  48. package/esm/version.d.ts +1 -1
  49. package/esm/version.js +1 -1
  50. package/package.json +2 -2
  51. package/src/components/AgeVerificationModal/AgeVerificationModal.tsx +6 -4
  52. package/src/components/CompletionProviderStatus/CompletionProviderStatus.tsx +8 -4
  53. package/src/components/DateSelector/DateSelector.stories.tsx +11 -2
  54. package/src/components/DateSelector/DateSelector.tsx +28 -9
  55. package/src/components/FilePreview/FilePreview.tsx +1 -3
  56. package/src/components/MediaWidget/MediaItemWidget.tsx +2 -3
  57. package/src/components/MediaWidget/MediaPreviewModal.tsx +2 -6
  58. package/src/components/layouts/layouts.stories.tsx +1 -1
  59. package/src/helpers/message.test.ts +28 -1
  60. package/src/helpers/message.ts +4 -4
  61. package/src/helpers/utils.test.ts +49 -0
  62. package/src/helpers/utils.ts +16 -3
  63. package/src/version.ts +1 -1
  64. package/dist/components/ChatHistoryDrawer/ChatResumeDrawer.css +0 -367
  65. package/dist/components/ChatHistoryDrawer/ChatResumeDrawer.d.ts +0 -36
  66. package/dist/components/ChatHistoryDrawer/ChatResumeDrawer.js +0 -116
  67. package/dist/components/ChatHistoryDrawer/ChatResumeDrawer.js.map +0 -1
  68. package/dist/components/DrawerFooter/DrawerFooter.css +0 -62
  69. package/dist/components/DrawerFooter/DrawerFooter.d.ts +0 -12
  70. package/dist/components/DrawerFooter/DrawerFooter.js +0 -10
  71. package/dist/components/DrawerFooter/DrawerFooter.js.map +0 -1
  72. package/dist/components/MobileSessionPanel/MobileSessionPanel.css +0 -437
  73. package/dist/components/MobileSessionPanel/MobileSessionPanel.d.ts +0 -62
  74. package/dist/components/MobileSessionPanel/MobileSessionPanel.js +0 -292
  75. package/dist/components/MobileSessionPanel/MobileSessionPanel.js.map +0 -1
  76. package/dist/components/PositionPopover/PositionPopover.css +0 -219
  77. package/dist/components/PositionPopover/PositionPopover.d.ts +0 -20
  78. package/dist/components/PositionPopover/PositionPopover.js +0 -187
  79. package/dist/components/PositionPopover/PositionPopover.js.map +0 -1
  80. package/dist/components/layouts/WebsiteAssistant/WebsiteAssistant.d.ts +0 -4
  81. package/dist/components/layouts/WebsiteAssistant/WebsiteAssistant.js +0 -41
  82. package/dist/components/layouts/WebsiteAssistant/WebsiteAssistant.js.map +0 -1
  83. package/dist/components/layouts/WebsiteAssistant/website-assistant.css +0 -690
  84. package/dist/components/layouts/fullpage.css +0 -396
  85. package/dist/helpers/usePressTooltip.d.ts +0 -13
  86. package/dist/helpers/usePressTooltip.js +0 -23
  87. package/dist/helpers/usePressTooltip.js.map +0 -1
  88. package/dist/icons/FacebookIcon.d.ts +0 -3
  89. package/dist/icons/FacebookIcon.js +0 -6
  90. package/dist/icons/FacebookIcon.js.map +0 -1
  91. package/dist/icons/LinkedinIcon.d.ts +0 -3
  92. package/dist/icons/LinkedinIcon.js +0 -6
  93. package/dist/icons/LinkedinIcon.js.map +0 -1
  94. package/dist/icons/MemoriIcon.d.ts +0 -3
  95. package/dist/icons/MemoriIcon.js +0 -8
  96. package/dist/icons/MemoriIcon.js.map +0 -1
  97. package/dist/icons/TelegramIcon.d.ts +0 -3
  98. package/dist/icons/TelegramIcon.js +0 -6
  99. package/dist/icons/TelegramIcon.js.map +0 -1
  100. package/dist/icons/TwitterIcon.d.ts +0 -3
  101. package/dist/icons/TwitterIcon.js +0 -6
  102. package/dist/icons/TwitterIcon.js.map +0 -1
  103. package/dist/icons/WhatsappIcon.d.ts +0 -3
  104. package/dist/icons/WhatsappIcon.js +0 -6
  105. package/dist/icons/WhatsappIcon.js.map +0 -1
  106. package/dist/icons/artifacts/DocumentIcon.d.ts +0 -3
  107. package/dist/icons/artifacts/DocumentIcon.js +0 -6
  108. package/dist/icons/artifacts/DocumentIcon.js.map +0 -1
  109. package/dist/icons/artifacts/HtmlIcon.d.ts +0 -3
  110. package/dist/icons/artifacts/HtmlIcon.js +0 -6
  111. package/dist/icons/artifacts/HtmlIcon.js.map +0 -1
  112. package/dist/icons/artifacts/JavascriptIcon.d.ts +0 -3
  113. package/dist/icons/artifacts/JavascriptIcon.js +0 -6
  114. package/dist/icons/artifacts/JavascriptIcon.js.map +0 -1
  115. package/dist/icons/artifacts/MarkdownIcon.d.ts +0 -3
  116. package/dist/icons/artifacts/MarkdownIcon.js +0 -6
  117. package/dist/icons/artifacts/MarkdownIcon.js.map +0 -1
  118. package/dist/icons/artifacts/PythonIcon.d.ts +0 -3
  119. package/dist/icons/artifacts/PythonIcon.js +0 -6
  120. package/dist/icons/artifacts/PythonIcon.js.map +0 -1
  121. package/dist/icons/artifacts/SvgIcon.d.ts +0 -3
  122. package/dist/icons/artifacts/SvgIcon.js +0 -6
  123. package/dist/icons/artifacts/SvgIcon.js.map +0 -1
  124. package/dist/icons/artifacts/XmlIcon.d.ts +0 -3
  125. package/dist/icons/artifacts/XmlIcon.js +0 -6
  126. package/dist/icons/artifacts/XmlIcon.js.map +0 -1
  127. package/dist/icons/artifacts/cssIcon.d.ts +0 -3
  128. package/dist/icons/artifacts/cssIcon.js +0 -6
  129. package/dist/icons/artifacts/cssIcon.js.map +0 -1
  130. package/dist/testUtils.d.ts +0 -5
  131. package/dist/testUtils.js +0 -18
  132. package/dist/testUtils.js.map +0 -1
  133. package/esm/components/ChatHistoryDrawer/ChatResumeDrawer.css +0 -367
  134. package/esm/components/ChatHistoryDrawer/ChatResumeDrawer.d.ts +0 -36
  135. package/esm/components/ChatHistoryDrawer/ChatResumeDrawer.js +0 -113
  136. package/esm/components/ChatHistoryDrawer/ChatResumeDrawer.js.map +0 -1
  137. package/esm/components/DrawerFooter/DrawerFooter.css +0 -62
  138. package/esm/components/DrawerFooter/DrawerFooter.d.ts +0 -12
  139. package/esm/components/DrawerFooter/DrawerFooter.js +0 -8
  140. package/esm/components/DrawerFooter/DrawerFooter.js.map +0 -1
  141. package/esm/components/MobileSessionPanel/MobileSessionPanel.css +0 -437
  142. package/esm/components/MobileSessionPanel/MobileSessionPanel.d.ts +0 -62
  143. package/esm/components/MobileSessionPanel/MobileSessionPanel.js +0 -289
  144. package/esm/components/MobileSessionPanel/MobileSessionPanel.js.map +0 -1
  145. package/esm/components/PositionPopover/PositionPopover.css +0 -219
  146. package/esm/components/PositionPopover/PositionPopover.d.ts +0 -20
  147. package/esm/components/PositionPopover/PositionPopover.js +0 -182
  148. package/esm/components/PositionPopover/PositionPopover.js.map +0 -1
  149. package/esm/components/layouts/WebsiteAssistant/WebsiteAssistant.d.ts +0 -4
  150. package/esm/components/layouts/WebsiteAssistant/WebsiteAssistant.js +0 -38
  151. package/esm/components/layouts/WebsiteAssistant/WebsiteAssistant.js.map +0 -1
  152. package/esm/components/layouts/WebsiteAssistant/website-assistant.css +0 -690
  153. package/esm/components/layouts/fullpage.css +0 -396
  154. package/esm/helpers/usePressTooltip.d.ts +0 -13
  155. package/esm/helpers/usePressTooltip.js +0 -20
  156. package/esm/helpers/usePressTooltip.js.map +0 -1
  157. package/esm/icons/FacebookIcon.d.ts +0 -3
  158. package/esm/icons/FacebookIcon.js +0 -4
  159. package/esm/icons/FacebookIcon.js.map +0 -1
  160. package/esm/icons/LinkedinIcon.d.ts +0 -3
  161. package/esm/icons/LinkedinIcon.js +0 -4
  162. package/esm/icons/LinkedinIcon.js.map +0 -1
  163. package/esm/icons/MemoriIcon.d.ts +0 -3
  164. package/esm/icons/MemoriIcon.js +0 -6
  165. package/esm/icons/MemoriIcon.js.map +0 -1
  166. package/esm/icons/TelegramIcon.d.ts +0 -3
  167. package/esm/icons/TelegramIcon.js +0 -4
  168. package/esm/icons/TelegramIcon.js.map +0 -1
  169. package/esm/icons/TwitterIcon.d.ts +0 -3
  170. package/esm/icons/TwitterIcon.js +0 -4
  171. package/esm/icons/TwitterIcon.js.map +0 -1
  172. package/esm/icons/WhatsappIcon.d.ts +0 -3
  173. package/esm/icons/WhatsappIcon.js +0 -4
  174. package/esm/icons/WhatsappIcon.js.map +0 -1
  175. package/esm/icons/artifacts/DocumentIcon.d.ts +0 -3
  176. package/esm/icons/artifacts/DocumentIcon.js +0 -4
  177. package/esm/icons/artifacts/DocumentIcon.js.map +0 -1
  178. package/esm/icons/artifacts/HtmlIcon.d.ts +0 -3
  179. package/esm/icons/artifacts/HtmlIcon.js +0 -4
  180. package/esm/icons/artifacts/HtmlIcon.js.map +0 -1
  181. package/esm/icons/artifacts/JavascriptIcon.d.ts +0 -3
  182. package/esm/icons/artifacts/JavascriptIcon.js +0 -4
  183. package/esm/icons/artifacts/JavascriptIcon.js.map +0 -1
  184. package/esm/icons/artifacts/MarkdownIcon.d.ts +0 -3
  185. package/esm/icons/artifacts/MarkdownIcon.js +0 -4
  186. package/esm/icons/artifacts/MarkdownIcon.js.map +0 -1
  187. package/esm/icons/artifacts/PythonIcon.d.ts +0 -3
  188. package/esm/icons/artifacts/PythonIcon.js +0 -4
  189. package/esm/icons/artifacts/PythonIcon.js.map +0 -1
  190. package/esm/icons/artifacts/SvgIcon.d.ts +0 -3
  191. package/esm/icons/artifacts/SvgIcon.js +0 -4
  192. package/esm/icons/artifacts/SvgIcon.js.map +0 -1
  193. package/esm/icons/artifacts/XmlIcon.d.ts +0 -3
  194. package/esm/icons/artifacts/XmlIcon.js +0 -4
  195. package/esm/icons/artifacts/XmlIcon.js.map +0 -1
  196. package/esm/icons/artifacts/cssIcon.d.ts +0 -3
  197. package/esm/icons/artifacts/cssIcon.js +0 -4
  198. package/esm/icons/artifacts/cssIcon.js.map +0 -1
  199. package/esm/testUtils.d.ts +0 -5
  200. package/esm/testUtils.js +0 -15
  201. package/esm/testUtils.js.map +0 -1
@@ -1,437 +0,0 @@
1
- .memori-mobile-session-panel--overlay {
2
- position: fixed;
3
- z-index: 2100;
4
- top: 0;
5
- right: 0;
6
- bottom: 0;
7
- left: 0;
8
- display: flex;
9
- align-items: flex-end;
10
- background: rgba(0, 0, 0, 0.34);
11
- }
12
-
13
- .memori-mobile-session-panel--backdrop {
14
- position: absolute;
15
- z-index: 0;
16
- padding: 0;
17
- border: none;
18
- margin: 0;
19
- background: transparent;
20
- cursor: default;
21
- inset: 0;
22
- }
23
-
24
- .memori-mobile-session-panel--overlay-popover {
25
- align-items: flex-start;
26
- justify-content: flex-end;
27
- background: transparent;
28
- pointer-events: none;
29
- }
30
-
31
- .memori-mobile-session-panel {
32
- position: relative;
33
- z-index: 1;
34
- overflow: auto;
35
- width: 100%;
36
- max-height: 90vh;
37
- padding: 0.75rem 0 0;
38
- border-radius: 20px 20px 0 0;
39
- background: var(--memori-secondary-background, #f5f5f5);
40
- transition: transform 0.2s ease-out;
41
- }
42
-
43
- .memori-mobile-session-panel:not(.memori-mobile-session-panel--popover) {
44
- margin-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
45
- }
46
-
47
- .memori-mobile-session-panel--popover {
48
- width: min(24rem, calc(100vw - 1rem));
49
- max-height: min(75vh, 34rem);
50
- border: 1px solid var(--memori-border-color, rgba(0, 0, 0, 0.08));
51
- border-radius: 14px;
52
- margin: 0.5rem;
53
- margin-top: 4.5rem;
54
- box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
55
- overflow-x: hidden;
56
- overflow-y: auto;
57
- pointer-events: auto;
58
- }
59
-
60
- .memori-mobile-session-panel--handle {
61
- width: 44px;
62
- height: 4px;
63
- border-radius: 999px;
64
- margin: 0 auto 0.875rem;
65
- background: var(--memori-border-color);
66
- }
67
-
68
- .memori-mobile-session-panel--user {
69
- display: flex;
70
- align-items: center;
71
- padding: 0 1rem 0.9rem;
72
- border-bottom: 1px solid var(--memori-border-color);
73
- gap: 0.75rem;
74
- }
75
-
76
- .memori-mobile-session-panel--login {
77
- display: inline-flex;
78
- align-items: center;
79
- justify-content: center;
80
- padding: 0.45rem 0.8rem;
81
- border: 1px solid rgba(0, 0, 0, 0.15);
82
- border-radius: 999px;
83
- margin-left: auto;
84
- background: var(--memori-main-background);
85
- color: var(--memori-text-color, #111);
86
- cursor: pointer;
87
- font-size: 0.82rem;
88
- font-weight: 600;
89
- }
90
-
91
- .memori-mobile-session-panel--login-cta-wrap {
92
- position: sticky;
93
- bottom: 0;
94
- /* padding: 0.75rem 1rem calc(0.95rem + env(safe-area-inset-bottom, 0px)); */
95
- border-top: 1px solid var(--memori-border-color, rgba(0, 0, 0, 0.08));
96
- margin-top: 0.5rem;
97
- background: var(--memori-secondary-background, #f5f5f5);
98
- }
99
-
100
- .memori-mobile-session-panel--login-cta {
101
- width: 100%;
102
- min-height: 2.8rem;
103
- justify-content: flex-start !important;
104
- padding: 0.72rem 1rem !important;
105
- border: 0 !important;
106
- border-radius: 0 !important;
107
- gap: 0.5rem;
108
- }
109
-
110
- .memori-mobile-session-panel--login-cta > span {
111
- gap: 0.5rem;
112
- }
113
-
114
- .memori-mobile-session-panel--avatar {
115
- display: inline-flex;
116
- width: 42px;
117
- height: 42px;
118
- align-items: center;
119
- justify-content: center;
120
- border-radius: 999px;
121
- background: linear-gradient(140deg, #6f63d9, #4f5dcf);
122
- color: #fff;
123
- font-size: 1rem;
124
- font-weight: 600;
125
- }
126
-
127
- .memori-mobile-session-panel--user-meta {
128
- min-width: 0;
129
- }
130
-
131
- .memori-mobile-session-panel--user-name {
132
- margin: 0;
133
- color: var(--memori-text-color, #111);
134
- font-size: 1rem;
135
- font-weight: 600;
136
- }
137
-
138
- .memori-mobile-session-panel--user-email {
139
- overflow: hidden;
140
- margin: 0.1rem 0 0;
141
- color: var(--memori-text-color);
142
- font-size: 0.9rem;
143
- text-overflow: ellipsis;
144
- white-space: nowrap;
145
- }
146
-
147
- .memori-mobile-session-panel--session-info {
148
- padding-bottom: 0.15rem;
149
- border-bottom: 1px solid var(--memori-border-color, rgba(0, 0, 0, 0.08));
150
- margin-bottom: 0.15rem;
151
- }
152
-
153
- .memori-mobile-session-panel--section-title {
154
- padding: 0.85rem 1rem 0.3rem;
155
- color: var(--memori-text-color);
156
- font-size: 0.8rem;
157
- font-weight: 600;
158
- letter-spacing: 0.03em;
159
- text-transform: uppercase;
160
- }
161
-
162
- .memori-mobile-session-panel--actions {
163
- padding: 0;
164
- margin: 0;
165
- list-style: none;
166
- }
167
-
168
- .memori-mobile-session-panel--action {
169
- display: flex;
170
- width: 100%;
171
- align-items: center;
172
- justify-content: flex-start;
173
- padding: 0.72rem 1rem;
174
- border: 0;
175
- border-radius: 0 !important;
176
- background: transparent;
177
- color: inherit;
178
- cursor: pointer;
179
- gap: 0.7rem;
180
- text-align: left;
181
- }
182
-
183
- .memori-mobile-session-panel--actions li {
184
- width: 100%;
185
- }
186
-
187
- .memori-mobile-session-panel--action:disabled {
188
- cursor: not-allowed;
189
- opacity: 0.45;
190
- }
191
-
192
- .memori-mobile-session-panel--action-icon {
193
- display: inline-flex;
194
- width: 2.3rem;
195
- height: 2.3rem;
196
- align-items: center;
197
- justify-content: center;
198
- border: 1px solid color-mix(in srgb, var(--memori-text-color, #111827) 16%, transparent);
199
- border-radius: 12px;
200
- /* background: var(--memori-main-background); */
201
- color: var(--memori-primary);
202
- }
203
-
204
- [data-theme='dark'] .memori-mobile-session-panel--action-icon {
205
- border-color: color-mix(in srgb, #fff 16%, transparent);
206
- color: #fff;
207
- }
208
-
209
- .memori-mobile-session-panel--action-icon svg {
210
- width: 1rem;
211
- max-width: 1rem;
212
- height: 1rem;
213
- max-height: 1rem;
214
- flex-shrink: 0;
215
- /* color: var(--memori-primary); */
216
- }
217
-
218
- .memori-mobile-session-panel--action-copy {
219
- display: flex;
220
- min-width: 0;
221
- flex: 1;
222
- flex-direction: column;
223
- }
224
-
225
- .memori-mobile-session-panel--action-title {
226
- color: var(--memori-text-color, #111);
227
- font-size: 1rem;
228
- font-weight: 500;
229
- }
230
-
231
- .memori-mobile-session-panel--action-subtitle {
232
- color: var(--memori-text-color);
233
- font-size: 0.82rem;
234
- }
235
-
236
- .memori-mobile-session-panel--action-trailing {
237
- display: inline-flex;
238
- align-items: center;
239
- margin-left: auto;
240
- color: var(--memori-text-color);
241
- }
242
-
243
- .memori-mobile-session-panel--chevron {
244
- font-size: 1rem;
245
- font-weight: 700;
246
- }
247
-
248
- .memori-mobile-session-panel--logout {
249
- display: flex !important;
250
- width: calc(100% - 2rem);
251
- align-items: center !important;
252
- justify-content: flex-start !important;
253
- padding: 0.85rem 0rem !important;
254
- border: 0;
255
- border-radius: 0 !important;
256
- border-top: 1px solid var(--memori-border-color);
257
- margin: 0.35rem 1rem 0.2rem;
258
- background: transparent;
259
- color: #a53b45;
260
- cursor: pointer;
261
- gap: 0.7rem;
262
- }
263
-
264
- .memori-mobile-session-panel--logout > span {
265
- gap: 0.5rem;
266
- }
267
-
268
- .memori-mobile-session-panel--action .memori-button__content {
269
- display: flex !important;
270
- width: 100%;
271
- align-items: center;
272
- gap: 0.5rem;
273
- }
274
-
275
- .memori-mobile-session-panel--logout .memori-mobile-session-panel--action-icon {
276
- color: #a53b45;
277
- }
278
-
279
- .memori-mobile-session-panel--logout-label {
280
- font-size: 1.02rem;
281
- font-weight: 500;
282
- }
283
-
284
- .memori-mobile-session-panel--page {
285
- padding: 0.25rem 1rem 1rem;
286
- }
287
-
288
- .memori-mobile-session-panel--back {
289
- display: inline-flex !important;
290
- align-items: center !important;
291
- padding: 0;
292
- border: 0;
293
- border-radius: 0 !important;
294
- margin-bottom: 0.4rem;
295
- background: transparent;
296
- color: var(--memori-text-color);
297
- cursor: pointer;
298
- font-size: 0.88rem;
299
- font-weight: 600;
300
- gap: 0.35rem;
301
- }
302
-
303
- /* User details typography */
304
- .memori-dropdown--user-details {
305
- display: flex;
306
- min-width: 0;
307
- flex: 1;
308
- flex-direction: column;
309
- gap: 2px;
310
- }
311
-
312
- .memori-dropdown--user-name {
313
- margin: 0;
314
- color: var(--memori-text-color, #111);
315
- font-size: 1.05rem;
316
- font-weight: 700;
317
- letter-spacing: -0.01em;
318
- line-height: 1.3;
319
- }
320
-
321
- .memori-dropdown--user-email {
322
- overflow: hidden;
323
- margin: 0;
324
- color: var(--memori-text-muted, #666);
325
- font-size: 0.875rem;
326
- line-height: 1.35;
327
- text-overflow: ellipsis;
328
- white-space: nowrap;
329
- }
330
-
331
- .memori-mobile-session-panel--page-title {
332
- margin: 0 0 0.8rem;
333
- color: var(--memori-text-color, #111);
334
- font-size: 1.15rem;
335
- }
336
-
337
- .memori-mobile-session-panel--page-content {
338
- display: flex;
339
- flex-direction: column;
340
- gap: 0.8rem;
341
- }
342
-
343
- .memori-mobile-session-panel--share-content,
344
- .memori-mobile-session-panel--share-content * {
345
- font-family: var(--memori-font-family, 'Lexend Deca', sans-serif);
346
- }
347
-
348
- .memori-mobile-session-panel--ai-usage-content {
349
- padding: 0;
350
- }
351
-
352
- .memori-mobile-session-panel--ai-usage.memori-dropdown--sustainability {
353
- width: 100%;
354
- min-width: 0;
355
- padding: 0;
356
- }
357
-
358
- .memori-mobile-session-panel--meta-label {
359
- margin: 0;
360
- color: var(--memori-text-color);
361
- font-size: 0.8rem;
362
- text-transform: uppercase;
363
- }
364
-
365
- .memori-mobile-session-panel--meta-value {
366
- margin: 0;
367
- color: var(--memori-text-color, #111);
368
- font-size: 0.96rem;
369
- }
370
-
371
- .memori-mobile-session-panel--page-actions {
372
- display: flex;
373
- flex-direction: column;
374
- gap: 0.5rem;
375
- }
376
-
377
- .memori-mobile-session-panel--page-btn {
378
- display: flex !important;
379
- width: 100%;
380
- align-items: center !important;
381
- justify-content: center !important;
382
- padding: 0.65rem 0.75rem;
383
- border: 1px solid rgba(0, 0, 0, 0.12);
384
- /* border-radius: 0 !important; */
385
- background: var(--memori-main-background);
386
- color: var(--memori-text-color, #111);
387
- cursor: pointer;
388
- font-size: 0.9rem;
389
- font-weight: 600;
390
- text-align: center;
391
- }
392
-
393
- .memori-mobile-session-panel--page-btn .memori-button__content {
394
- display: inline-flex !important;
395
- width: 100%;
396
- align-items: center;
397
- justify-content: center;
398
- gap: 0.5rem;
399
- }
400
-
401
- .memori-mobile-session-panel--page-btn-active {
402
- border-color: color-mix(in oklch, var(--memori-success, #16a34a) 55%, var(--memori-border-color, #e5e7eb));
403
- color: var(--memori-text-color, #111);
404
- }
405
-
406
- .memori-mobile-session-panel--page-btn:disabled {
407
- cursor: not-allowed;
408
- opacity: 0.45;
409
- }
410
-
411
- .memori-mobile-session-panel--page-btn-secondary {
412
- background: transparent;
413
- }
414
-
415
- [data-theme='dark'] .memori-mobile-session-panel--page-btn-active,
416
- .memori-widget[data-theme='dark'] .memori-mobile-session-panel--page-btn-active {
417
- background: transparent;
418
- color: var(--memori-text-color, #fff);
419
- }
420
-
421
- .memori-mobile-session-panel--known-facts-description,
422
- .memori-mobile-session-panel--known-facts-count {
423
- margin: 0;
424
- color: rgba(0, 0, 0, 0.7);
425
- font-size: 0.9rem;
426
- }
427
-
428
- @media (max-width: 768px) {
429
- .memori-mobile-session-panel--overlay {
430
- display: flex;
431
- }
432
-
433
- .memori-mobile-session-panel--overlay-popover {
434
- align-items: flex-start;
435
- justify-content: flex-end;
436
- }
437
- }
@@ -1,62 +0,0 @@
1
- import React from 'react';
2
- import { Message, User, Venue } from '@memori.ai/memori-api-client/dist/types';
3
- type SessionAction = {
4
- key: string;
5
- icon: React.ReactNode;
6
- title: string;
7
- subtitle?: string;
8
- onClick?: () => void;
9
- trailing?: React.ReactNode;
10
- view?: 'location' | 'knownFacts' | 'share';
11
- disabled?: boolean;
12
- };
13
- export interface MobileSessionPanelProps {
14
- open: boolean;
15
- onClose: () => void;
16
- presentation?: 'sheet' | 'popover';
17
- title: string;
18
- loginToken?: string;
19
- userName: string;
20
- userInitial?: string;
21
- user?: User;
22
- apiClient?: {
23
- backend?: {
24
- uploadAsset?: (name: string, payload: string, token: string) => Promise<any>;
25
- pwlUpdateUser?: (token: string, userID: string, user: Partial<User>) => Promise<any>;
26
- };
27
- };
28
- userEmail?: string;
29
- birthDate?: string;
30
- avatarURL?: string;
31
- actions: SessionAction[];
32
- logoutLabel?: string;
33
- onLogout?: () => void;
34
- onKnownFactsOpen?: () => void;
35
- onLocationEnable?: () => void;
36
- onLocationDisable?: () => void;
37
- knownFactsPageTitle?: string;
38
- sharePageTitle?: string;
39
- locationPageTitle?: string;
40
- backLabel?: string;
41
- locationStatusLabel?: string;
42
- locationPlace?: string;
43
- locationUnknownLabel?: string;
44
- locationEnableLabel?: string;
45
- locationDisableLabel?: string;
46
- venue?: Venue;
47
- setVenue?: (venue?: Venue) => void;
48
- knownFactsDescription?: string;
49
- knownFactsCtaLabel?: string;
50
- knownFactsCountLabel?: string;
51
- shareContent?: React.ReactNode;
52
- knownFactsDisabled?: boolean;
53
- knownFactsHint?: string;
54
- showSessionInfo?: boolean;
55
- history?: Message[];
56
- aiUsageTitle?: string;
57
- isLoggedIn?: boolean;
58
- loginLabel?: string;
59
- onLogin?: () => void;
60
- }
61
- declare const MobileSessionPanel: React.FC<MobileSessionPanelProps>;
62
- export default MobileSessionPanel;