@memori.ai/memori-react 8.45.4 → 8.45.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 (264) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/components/Chat/Chat.d.ts +1 -0
  3. package/dist/components/Chat/Chat.js +2 -2
  4. package/dist/components/Chat/Chat.js.map +1 -1
  5. package/dist/components/ChatHistoryDrawer/ChatResumeDrawer.css +78 -0
  6. package/dist/components/ChatHistoryDrawer/ChatResumeDrawer.d.ts +3 -3
  7. package/dist/components/ChatHistoryDrawer/ChatResumeDrawer.js +5 -28
  8. package/dist/components/ChatHistoryDrawer/ChatResumeDrawer.js.map +1 -1
  9. package/dist/components/ChatInputs/ChatInputs.d.ts +1 -0
  10. package/dist/components/ChatInputs/ChatInputs.js +2 -2
  11. package/dist/components/ChatInputs/ChatInputs.js.map +1 -1
  12. package/dist/components/ContentPreviewModal/DocumentMarkdown.d.ts +7 -0
  13. package/dist/components/ContentPreviewModal/DocumentMarkdown.js +31 -0
  14. package/dist/components/ContentPreviewModal/DocumentMarkdown.js.map +1 -0
  15. package/dist/components/DrawerFooter/DrawerFooter.css +62 -0
  16. package/dist/components/IconButton/IconButton.css +135 -0
  17. package/dist/components/IconButton/IconButton.d.ts +1 -1
  18. package/dist/components/LoginModal/LoginModal.css +270 -0
  19. package/dist/components/LoginModal/LoginModal.d.ts +19 -0
  20. package/dist/components/LoginModal/LoginModal.js +355 -0
  21. package/dist/components/LoginModal/LoginModal.js.map +1 -0
  22. package/dist/components/MemoriWidget/MemoriWidget.d.ts +1 -1
  23. package/dist/components/MemoriWidget/MemoriWidget.js +45 -23
  24. package/dist/components/MemoriWidget/MemoriWidget.js.map +1 -1
  25. package/dist/components/MobileSessionPanel/MobileSessionPanel.css +540 -0
  26. package/dist/components/MobileSessionPanel/MobileSessionPanel.js +72 -112
  27. package/dist/components/MobileSessionPanel/MobileSessionPanel.js.map +1 -1
  28. package/dist/components/PositionPopover/PositionPopover.css +218 -0
  29. package/dist/components/ReasoningBlock/ReasoningBlock.css +156 -0
  30. package/dist/components/ReasoningBlock/ReasoningBlock.d.ts +7 -0
  31. package/dist/components/ReasoningBlock/ReasoningBlock.js +61 -0
  32. package/dist/components/ReasoningBlock/ReasoningBlock.js.map +1 -0
  33. package/dist/components/SideDrawer/SideDrawer.css +112 -0
  34. package/dist/components/SideDrawer/SideDrawer.d.ts +22 -0
  35. package/dist/components/SideDrawer/SideDrawer.js +17 -0
  36. package/dist/components/SideDrawer/SideDrawer.js.map +1 -0
  37. package/dist/components/UploadButton/UploadButton.d.ts +2 -0
  38. package/dist/components/UploadButton/UploadButton.js +2 -2
  39. package/dist/components/UploadButton/UploadButton.js.map +1 -1
  40. package/dist/components/UploadButton/UploadImages/UploadImages.d.ts +2 -0
  41. package/dist/components/UploadButton/UploadImages/UploadImages.js +7 -1
  42. package/dist/components/UploadButton/UploadImages/UploadImages.js.map +1 -1
  43. package/dist/components/layouts/WebsiteAssistant/WebsiteAssistant.js +87 -7
  44. package/dist/components/layouts/WebsiteAssistant/WebsiteAssistant.js.map +1 -1
  45. package/dist/components/layouts/WebsiteAssistant/website-assistant.css +889 -0
  46. package/dist/components/layouts/fullpage.css +628 -0
  47. package/dist/helpers/artifactPanel.d.ts +6 -0
  48. package/dist/helpers/artifactPanel.js +42 -0
  49. package/dist/helpers/artifactPanel.js.map +1 -0
  50. package/dist/helpers/chatScroll.d.ts +12 -0
  51. package/dist/helpers/chatScroll.js +14 -0
  52. package/dist/helpers/chatScroll.js.map +1 -0
  53. package/dist/helpers/conversationHistory.d.ts +16 -0
  54. package/dist/helpers/conversationHistory.js +89 -0
  55. package/dist/helpers/conversationHistory.js.map +1 -0
  56. package/dist/helpers/conversationTitle.d.ts +8 -0
  57. package/dist/helpers/conversationTitle.js +27 -0
  58. package/dist/helpers/conversationTitle.js.map +1 -0
  59. package/dist/helpers/enhanceBubbleCodeBlocks.d.ts +5 -0
  60. package/dist/helpers/enhanceBubbleCodeBlocks.js +97 -0
  61. package/dist/helpers/enhanceBubbleCodeBlocks.js.map +1 -0
  62. package/dist/helpers/highlightMatches.d.ts +2 -0
  63. package/dist/helpers/highlightMatches.js +54 -0
  64. package/dist/helpers/highlightMatches.js.map +1 -0
  65. package/dist/helpers/nats/dialogStateCatchUp.d.ts +3 -0
  66. package/dist/helpers/nats/dialogStateCatchUp.js +40 -0
  67. package/dist/helpers/nats/dialogStateCatchUp.js.map +1 -0
  68. package/dist/helpers/positionPopover.d.ts +1 -0
  69. package/dist/helpers/positionPopover.js +9 -3
  70. package/dist/helpers/positionPopover.js.map +1 -1
  71. package/dist/helpers/prism.d.ts +16 -0
  72. package/dist/helpers/prism.js +78 -0
  73. package/dist/helpers/prism.js.map +1 -0
  74. package/dist/helpers/reasoning.d.ts +7 -0
  75. package/dist/helpers/reasoning.js +43 -0
  76. package/dist/helpers/reasoning.js.map +1 -0
  77. package/dist/helpers/relativeTime.d.ts +3 -0
  78. package/dist/helpers/relativeTime.js +56 -0
  79. package/dist/helpers/relativeTime.js.map +1 -0
  80. package/dist/helpers/sourcesCount.d.ts +2 -0
  81. package/dist/helpers/sourcesCount.js +22 -0
  82. package/dist/helpers/sourcesCount.js.map +1 -0
  83. package/dist/helpers/speech/speechRequest.d.ts +15 -0
  84. package/dist/helpers/speech/speechRequest.js +76 -0
  85. package/dist/helpers/speech/speechRequest.js.map +1 -0
  86. package/dist/helpers/stt/useSTT.d.ts +4 -0
  87. package/dist/helpers/stt/useSTT.js +20 -13
  88. package/dist/helpers/stt/useSTT.js.map +1 -1
  89. package/dist/helpers/tts/muteSpeaker.js +3 -4
  90. package/dist/helpers/tts/muteSpeaker.js.map +1 -1
  91. package/dist/helpers/tts/useTTS.d.ts +5 -0
  92. package/dist/helpers/tts/useTTS.js +12 -4
  93. package/dist/helpers/tts/useTTS.js.map +1 -1
  94. package/dist/helpers/usePressTooltip.d.ts +6 -1
  95. package/dist/helpers/usePressTooltip.js +17 -3
  96. package/dist/helpers/usePressTooltip.js.map +1 -1
  97. package/dist/locales/de.json +4 -0
  98. package/dist/locales/en.json +4 -0
  99. package/dist/locales/es.json +4 -0
  100. package/dist/locales/fr.json +4 -0
  101. package/dist/locales/it.json +4 -0
  102. package/dist/styles/motion.css +25 -0
  103. package/dist/version.d.ts +1 -1
  104. package/dist/version.js +1 -1
  105. package/esm/components/Chat/Chat.d.ts +1 -0
  106. package/esm/components/Chat/Chat.js +2 -2
  107. package/esm/components/Chat/Chat.js.map +1 -1
  108. package/esm/components/ChatHistoryDrawer/ChatResumeDrawer.css +78 -0
  109. package/esm/components/ChatHistoryDrawer/ChatResumeDrawer.d.ts +39 -0
  110. package/esm/components/ChatHistoryDrawer/ChatResumeDrawer.js +40 -0
  111. package/esm/components/ChatHistoryDrawer/ChatResumeDrawer.js.map +1 -0
  112. package/esm/components/ChatInputs/ChatInputs.d.ts +1 -0
  113. package/esm/components/ChatInputs/ChatInputs.js +2 -2
  114. package/esm/components/ChatInputs/ChatInputs.js.map +1 -1
  115. package/esm/components/ContentPreviewModal/DocumentMarkdown.d.ts +7 -0
  116. package/esm/components/ContentPreviewModal/DocumentMarkdown.js +28 -0
  117. package/esm/components/ContentPreviewModal/DocumentMarkdown.js.map +1 -0
  118. package/esm/components/DrawerFooter/DrawerFooter.css +62 -0
  119. package/esm/components/DrawerFooter/DrawerFooter.d.ts +12 -0
  120. package/esm/components/DrawerFooter/DrawerFooter.js +8 -0
  121. package/esm/components/DrawerFooter/DrawerFooter.js.map +1 -0
  122. package/esm/components/IconButton/IconButton.css +135 -0
  123. package/esm/components/IconButton/IconButton.d.ts +9 -0
  124. package/esm/components/IconButton/IconButton.js +33 -0
  125. package/esm/components/IconButton/IconButton.js.map +1 -0
  126. package/esm/components/LoginModal/LoginModal.css +270 -0
  127. package/esm/components/LoginModal/LoginModal.d.ts +19 -0
  128. package/esm/components/LoginModal/LoginModal.js +352 -0
  129. package/esm/components/LoginModal/LoginModal.js.map +1 -0
  130. package/esm/components/MemoriWidget/MemoriWidget.d.ts +1 -1
  131. package/esm/components/MemoriWidget/MemoriWidget.js +40 -19
  132. package/esm/components/MemoriWidget/MemoriWidget.js.map +1 -1
  133. package/esm/components/MobileSessionPanel/MobileSessionPanel.css +540 -0
  134. package/esm/components/MobileSessionPanel/MobileSessionPanel.d.ts +65 -0
  135. package/esm/components/MobileSessionPanel/MobileSessionPanel.js +251 -0
  136. package/esm/components/MobileSessionPanel/MobileSessionPanel.js.map +1 -0
  137. package/esm/components/PositionPopover/PositionPopover.css +218 -0
  138. package/esm/components/PositionPopover/PositionPopover.d.ts +22 -0
  139. package/esm/components/PositionPopover/PositionPopover.js +203 -0
  140. package/esm/components/PositionPopover/PositionPopover.js.map +1 -0
  141. package/esm/components/ReasoningBlock/ReasoningBlock.css +156 -0
  142. package/esm/components/ReasoningBlock/ReasoningBlock.d.ts +7 -0
  143. package/esm/components/ReasoningBlock/ReasoningBlock.js +58 -0
  144. package/esm/components/ReasoningBlock/ReasoningBlock.js.map +1 -0
  145. package/esm/components/SideDrawer/SideDrawer.css +112 -0
  146. package/esm/components/SideDrawer/SideDrawer.d.ts +22 -0
  147. package/esm/components/SideDrawer/SideDrawer.js +12 -0
  148. package/esm/components/SideDrawer/SideDrawer.js.map +1 -0
  149. package/esm/components/UploadButton/UploadButton.d.ts +2 -0
  150. package/esm/components/UploadButton/UploadButton.js +2 -2
  151. package/esm/components/UploadButton/UploadButton.js.map +1 -1
  152. package/esm/components/UploadButton/UploadImages/UploadImages.d.ts +2 -0
  153. package/esm/components/UploadButton/UploadImages/UploadImages.js +7 -1
  154. package/esm/components/UploadButton/UploadImages/UploadImages.js.map +1 -1
  155. package/esm/components/layouts/WebsiteAssistant/WebsiteAssistant.d.ts +4 -0
  156. package/esm/components/layouts/WebsiteAssistant/WebsiteAssistant.js +141 -0
  157. package/esm/components/layouts/WebsiteAssistant/WebsiteAssistant.js.map +1 -0
  158. package/esm/components/layouts/WebsiteAssistant/website-assistant.css +889 -0
  159. package/esm/components/layouts/fullpage.css +628 -0
  160. package/esm/helpers/artifactPanel.d.ts +6 -0
  161. package/esm/helpers/artifactPanel.js +37 -0
  162. package/esm/helpers/artifactPanel.js.map +1 -0
  163. package/esm/helpers/chatScroll.d.ts +12 -0
  164. package/esm/helpers/chatScroll.js +9 -0
  165. package/esm/helpers/chatScroll.js.map +1 -0
  166. package/esm/helpers/conversationHistory.d.ts +16 -0
  167. package/esm/helpers/conversationHistory.js +82 -0
  168. package/esm/helpers/conversationHistory.js.map +1 -0
  169. package/esm/helpers/conversationTitle.d.ts +8 -0
  170. package/esm/helpers/conversationTitle.js +23 -0
  171. package/esm/helpers/conversationTitle.js.map +1 -0
  172. package/esm/helpers/enhanceBubbleCodeBlocks.d.ts +5 -0
  173. package/esm/helpers/enhanceBubbleCodeBlocks.js +94 -0
  174. package/esm/helpers/enhanceBubbleCodeBlocks.js.map +1 -0
  175. package/esm/helpers/highlightMatches.d.ts +2 -0
  176. package/esm/helpers/highlightMatches.js +49 -0
  177. package/esm/helpers/highlightMatches.js.map +1 -0
  178. package/esm/helpers/nats/dialogStateCatchUp.d.ts +3 -0
  179. package/esm/helpers/nats/dialogStateCatchUp.js +35 -0
  180. package/esm/helpers/nats/dialogStateCatchUp.js.map +1 -0
  181. package/esm/helpers/positionPopover.d.ts +3 -0
  182. package/esm/helpers/positionPopover.js +17 -0
  183. package/esm/helpers/positionPopover.js.map +1 -0
  184. package/esm/helpers/prism.d.ts +16 -0
  185. package/esm/helpers/prism.js +74 -0
  186. package/esm/helpers/prism.js.map +1 -0
  187. package/esm/helpers/reasoning.d.ts +7 -0
  188. package/esm/helpers/reasoning.js +39 -0
  189. package/esm/helpers/reasoning.js.map +1 -0
  190. package/esm/helpers/relativeTime.d.ts +3 -0
  191. package/esm/helpers/relativeTime.js +50 -0
  192. package/esm/helpers/relativeTime.js.map +1 -0
  193. package/esm/helpers/sourcesCount.d.ts +2 -0
  194. package/esm/helpers/sourcesCount.js +18 -0
  195. package/esm/helpers/sourcesCount.js.map +1 -0
  196. package/esm/helpers/speech/speechRequest.d.ts +15 -0
  197. package/esm/helpers/speech/speechRequest.js +68 -0
  198. package/esm/helpers/speech/speechRequest.js.map +1 -0
  199. package/esm/helpers/stt/useSTT.d.ts +4 -0
  200. package/esm/helpers/stt/useSTT.js +20 -13
  201. package/esm/helpers/stt/useSTT.js.map +1 -1
  202. package/esm/helpers/tts/muteSpeaker.d.ts +13 -0
  203. package/esm/helpers/tts/muteSpeaker.js +21 -0
  204. package/esm/helpers/tts/muteSpeaker.js.map +1 -0
  205. package/esm/helpers/tts/useTTS.d.ts +5 -0
  206. package/esm/helpers/tts/useTTS.js +12 -4
  207. package/esm/helpers/tts/useTTS.js.map +1 -1
  208. package/esm/helpers/usePressTooltip.d.ts +18 -0
  209. package/esm/helpers/usePressTooltip.js +35 -0
  210. package/esm/helpers/usePressTooltip.js.map +1 -0
  211. package/esm/icons/FacebookIcon.d.ts +3 -0
  212. package/esm/icons/FacebookIcon.js +4 -0
  213. package/esm/icons/FacebookIcon.js.map +1 -0
  214. package/esm/icons/LinkedinIcon.d.ts +3 -0
  215. package/esm/icons/LinkedinIcon.js +4 -0
  216. package/esm/icons/LinkedinIcon.js.map +1 -0
  217. package/esm/icons/MemoriIcon.d.ts +3 -0
  218. package/esm/icons/MemoriIcon.js +6 -0
  219. package/esm/icons/MemoriIcon.js.map +1 -0
  220. package/esm/icons/TelegramIcon.d.ts +3 -0
  221. package/esm/icons/TelegramIcon.js +4 -0
  222. package/esm/icons/TelegramIcon.js.map +1 -0
  223. package/esm/icons/TwitterIcon.d.ts +3 -0
  224. package/esm/icons/TwitterIcon.js +4 -0
  225. package/esm/icons/TwitterIcon.js.map +1 -0
  226. package/esm/icons/WhatsappIcon.d.ts +3 -0
  227. package/esm/icons/WhatsappIcon.js +4 -0
  228. package/esm/icons/WhatsappIcon.js.map +1 -0
  229. package/esm/icons/artifacts/DocumentIcon.d.ts +3 -0
  230. package/esm/icons/artifacts/DocumentIcon.js +4 -0
  231. package/esm/icons/artifacts/DocumentIcon.js.map +1 -0
  232. package/esm/icons/artifacts/HtmlIcon.d.ts +3 -0
  233. package/esm/icons/artifacts/HtmlIcon.js +4 -0
  234. package/esm/icons/artifacts/HtmlIcon.js.map +1 -0
  235. package/esm/icons/artifacts/JavascriptIcon.d.ts +3 -0
  236. package/esm/icons/artifacts/JavascriptIcon.js +4 -0
  237. package/esm/icons/artifacts/JavascriptIcon.js.map +1 -0
  238. package/esm/icons/artifacts/MarkdownIcon.d.ts +3 -0
  239. package/esm/icons/artifacts/MarkdownIcon.js +4 -0
  240. package/esm/icons/artifacts/MarkdownIcon.js.map +1 -0
  241. package/esm/icons/artifacts/PythonIcon.d.ts +3 -0
  242. package/esm/icons/artifacts/PythonIcon.js +4 -0
  243. package/esm/icons/artifacts/PythonIcon.js.map +1 -0
  244. package/esm/icons/artifacts/SvgIcon.d.ts +3 -0
  245. package/esm/icons/artifacts/SvgIcon.js +4 -0
  246. package/esm/icons/artifacts/SvgIcon.js.map +1 -0
  247. package/esm/icons/artifacts/XmlIcon.d.ts +3 -0
  248. package/esm/icons/artifacts/XmlIcon.js +4 -0
  249. package/esm/icons/artifacts/XmlIcon.js.map +1 -0
  250. package/esm/icons/artifacts/cssIcon.d.ts +3 -0
  251. package/esm/icons/artifacts/cssIcon.js +4 -0
  252. package/esm/icons/artifacts/cssIcon.js.map +1 -0
  253. package/esm/locales/de.json +4 -0
  254. package/esm/locales/en.json +4 -0
  255. package/esm/locales/es.json +4 -0
  256. package/esm/locales/fr.json +4 -0
  257. package/esm/locales/it.json +4 -0
  258. package/esm/styles/motion.css +25 -0
  259. package/esm/version.d.ts +1 -1
  260. package/esm/version.js +1 -1
  261. package/package.json +2 -1
  262. package/dist/context/widgetSurfaceContext.d.ts +0 -3
  263. package/dist/context/widgetSurfaceContext.js +0 -11
  264. package/dist/context/widgetSurfaceContext.js.map +0 -1
@@ -0,0 +1,540 @@
1
+ .memori-mobile-session-panel--overlay {
2
+ position: absolute;
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: var(--memori-radius-overlay) var(--memori-radius-overlay) 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: var(--memori-radius-overlay);
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: var(--memori-radius-control);
200
+ color: var(--memori-icon-button-icon, color-mix(in oklch, var(--memori-text-color, #111827) 72%, transparent));
201
+ }
202
+
203
+ [data-theme='dark'] .memori-mobile-session-panel--action-icon {
204
+ border-color: color-mix(in srgb, #fff 16%, transparent);
205
+ color: #fff;
206
+ }
207
+
208
+ .memori-mobile-session-panel--logout .memori-mobile-session-panel--action-icon {
209
+ color: #a53b45;
210
+ }
211
+
212
+ .memori-mobile-session-panel--action:focus-visible .memori-mobile-session-panel--action-icon {
213
+ color: var(--memori-primary);
214
+ }
215
+
216
+ .memori-mobile-session-panel--action:hover:not(:disabled) .memori-mobile-session-panel--action-icon {
217
+ color: var(--memori-primary);
218
+ }
219
+
220
+ [data-theme='dark'] .memori-mobile-session-panel--action:focus-visible .memori-mobile-session-panel--action-icon {
221
+ color: var(--memori-primary);
222
+ }
223
+
224
+ [data-theme='dark']
225
+ .memori-mobile-session-panel--action:hover:not(:disabled)
226
+ .memori-mobile-session-panel--action-icon {
227
+ color: var(--memori-primary);
228
+ }
229
+
230
+ .memori-mobile-session-panel--action-icon svg {
231
+ width: 1rem;
232
+ max-width: 1rem;
233
+ height: 1rem;
234
+ max-height: 1rem;
235
+ flex-shrink: 0;
236
+ color: inherit;
237
+ }
238
+
239
+ .memori-mobile-session-panel--action-copy {
240
+ display: flex;
241
+ min-width: 0;
242
+ flex: 1;
243
+ flex-direction: column;
244
+ }
245
+
246
+ .memori-mobile-session-panel--action-title {
247
+ color: var(--memori-text-color, #111);
248
+ font-size: 1rem;
249
+ font-weight: 500;
250
+ }
251
+
252
+ .memori-mobile-session-panel--action-subtitle {
253
+ color: var(--memori-text-color);
254
+ font-size: 0.82rem;
255
+ }
256
+
257
+ .memori-mobile-session-panel--action-trailing {
258
+ display: inline-flex;
259
+ align-items: center;
260
+ margin-left: auto;
261
+ color: var(--memori-text-color);
262
+ }
263
+
264
+ .memori-mobile-session-panel--chevron {
265
+ font-size: 1rem;
266
+ font-weight: 700;
267
+ }
268
+
269
+ .memori-mobile-session-panel--logout {
270
+ display: flex !important;
271
+ width: calc(100% - 2rem);
272
+ align-items: center !important;
273
+ justify-content: flex-start !important;
274
+ padding: 0.85rem 0rem !important;
275
+ border: 0;
276
+ border-radius: 0 !important;
277
+ border-top: 1px solid var(--memori-border-color);
278
+ margin: 0.35rem 1rem 0.2rem;
279
+ background: transparent;
280
+ color: #a53b45;
281
+ cursor: pointer;
282
+ gap: 0.7rem;
283
+ }
284
+
285
+ .memori-mobile-session-panel--logout > span {
286
+ gap: 0.5rem;
287
+ }
288
+
289
+ .memori-mobile-session-panel--action .memori-button__content {
290
+ display: flex !important;
291
+ width: 100%;
292
+ align-items: center;
293
+ gap: 0.5rem;
294
+ }
295
+
296
+ .memori-mobile-session-panel--logout-label {
297
+ font-size: 1.02rem;
298
+ font-weight: 500;
299
+ }
300
+
301
+ .memori-mobile-session-panel--page {
302
+ display: flex;
303
+ min-height: 0;
304
+ flex-direction: column;
305
+ padding: 0;
306
+ }
307
+
308
+ .memori-mobile-session-panel--page-header {
309
+ position: sticky;
310
+ z-index: 1;
311
+ top: 0;
312
+ padding: 0.65rem 1rem 0.75rem;
313
+ border-bottom: 0.5px solid var(--memori-border-color, #e5e7eb);
314
+ background: var(--memori-secondary-background, #f5f5f5);
315
+ }
316
+
317
+ .memori-mobile-session-panel--back {
318
+ display: inline-flex !important;
319
+ align-items: center !important;
320
+ padding: 0;
321
+ border: 0;
322
+ border-radius: 0 !important;
323
+ margin-bottom: var(--memori-spacing-md);
324
+ background: transparent;
325
+ color: var(--memori-text-color);
326
+ cursor: pointer;
327
+ font-size: 0.88rem;
328
+ font-weight: 600;
329
+ gap: 0.35rem;
330
+ }
331
+
332
+ /* User details typography */
333
+ .memori-dropdown--user-details {
334
+ display: flex;
335
+ min-width: 0;
336
+ flex: 1;
337
+ flex-direction: column;
338
+ gap: 2px;
339
+ }
340
+
341
+ .memori-dropdown--user-name {
342
+ margin: 0;
343
+ color: var(--memori-text-color, #111);
344
+ font-size: var(--memori-text-size-lg);
345
+ font-weight: 700;
346
+ letter-spacing: -0.01em;
347
+ line-height: 1.3;
348
+ }
349
+
350
+ .memori-dropdown--user-email {
351
+ overflow: hidden;
352
+ margin: 0;
353
+ color: var(--memori-neutral, #666);
354
+ font-size: 0.875rem;
355
+ line-height: 1.35;
356
+ text-overflow: ellipsis;
357
+ white-space: nowrap;
358
+ }
359
+
360
+ .memori-mobile-session-panel--page-title {
361
+ margin: 0;
362
+ color: var(--memori-text-color, #111);
363
+ font-size: 1.15rem;
364
+ }
365
+
366
+ .memori-mobile-session-panel--page-content {
367
+ display: flex;
368
+ flex-direction: column;
369
+ padding: 0.75rem 1rem 1rem;
370
+ gap: 0.8rem;
371
+ }
372
+
373
+ .memori-mobile-session-panel--share-content {
374
+ padding: 0.25rem 0 0.85rem;
375
+ font-family: var(--memori-font-family, 'Lexend Deca', sans-serif);
376
+ gap: 0;
377
+ }
378
+
379
+ .memori-mobile-session-panel--share-content .memori-share-button--inline-item {
380
+ padding-right: 1rem;
381
+ padding-left: 1rem;
382
+ border-radius: 0;
383
+ }
384
+
385
+ .memori-mobile-session-panel--share-content
386
+ .memori-share-button--dropdown-section-primary
387
+ .memori-share-button--inline-item
388
+ svg {
389
+ box-sizing: content-box;
390
+ padding: 0.55rem;
391
+ border: 1px solid color-mix(in srgb, var(--memori-text-color, #111827) 16%, transparent);
392
+ border-radius: var(--memori-radius-control);
393
+ color: var(--memori-icon-button-icon, color-mix(in oklch, var(--memori-text-color, #111827) 72%, transparent));
394
+ }
395
+
396
+ [data-theme='dark']
397
+ .memori-mobile-session-panel--share-content
398
+ .memori-share-button--dropdown-section-primary
399
+ .memori-share-button--inline-item
400
+ svg {
401
+ border-color: color-mix(in srgb, #fff 16%, transparent);
402
+ color: #fff;
403
+ }
404
+
405
+ .memori-mobile-session-panel--share-content
406
+ .memori-share-button--dropdown-section-social {
407
+ padding-right: 0.75rem;
408
+ padding-left: 0.75rem;
409
+ }
410
+
411
+ .memori-mobile-session-panel--share-content
412
+ .memori-share-button--dropdown-section-social
413
+ .memori-share-button--inline-item {
414
+ padding: 0.65rem 0.35rem;
415
+ border-radius: var(--memori-radius-control);
416
+ }
417
+
418
+ .memori-mobile-session-panel--share-content .memori-share-button--dropdown-divider {
419
+ margin-right: 1rem;
420
+ margin-left: 1rem;
421
+ }
422
+
423
+ .memori-mobile-session-panel--share-content .memori-share-button--qr-content {
424
+ padding: 0.75rem 1rem 0.15rem;
425
+ }
426
+
427
+ .memori-mobile-session-panel--share-content .memori-share-button--qr-download {
428
+ border-radius: var(--memori-radius-control);
429
+ }
430
+
431
+ .memori-mobile-session-panel--ai-usage-content {
432
+ padding-top: 0.25rem;
433
+ padding-bottom: 0.85rem;
434
+ }
435
+
436
+ .memori-mobile-session-panel--ai-usage.memori-dropdown--sustainability {
437
+ width: 100%;
438
+ min-width: 0;
439
+ padding: 0;
440
+ }
441
+
442
+ .memori-mobile-session-panel--meta-label {
443
+ margin: 0;
444
+ color: var(--memori-text-color);
445
+ font-size: 0.8rem;
446
+ text-transform: uppercase;
447
+ }
448
+
449
+ .memori-mobile-session-panel--meta-value {
450
+ margin: 0;
451
+ color: var(--memori-text-color, #111);
452
+ font-size: 0.96rem;
453
+ }
454
+
455
+ .memori-mobile-session-panel--page-actions {
456
+ display: flex;
457
+ flex-direction: column;
458
+ gap: 0.5rem;
459
+ }
460
+
461
+ .memori-mobile-session-panel--page-btn {
462
+ display: flex !important;
463
+ width: 100%;
464
+ align-items: center !important;
465
+ justify-content: center !important;
466
+ padding: 0.65rem 0.75rem;
467
+ border: 1px solid rgba(0, 0, 0, 0.12);
468
+ /* border-radius: 0 !important; */
469
+ background: var(--memori-main-background);
470
+ color: var(--memori-text-color, #111);
471
+ cursor: pointer;
472
+ font-size: 0.9rem;
473
+ font-weight: 600;
474
+ text-align: center;
475
+ }
476
+
477
+ .memori-mobile-session-panel--page-btn .memori-button__content {
478
+ display: inline-flex !important;
479
+ width: 100%;
480
+ align-items: center;
481
+ justify-content: center;
482
+ gap: 0.5rem;
483
+ }
484
+
485
+ .memori-mobile-session-panel--page-btn-active {
486
+ border-color: color-mix(in oklch, var(--memori-success, #16a34a) 55%, var(--memori-border-color, #e5e7eb));
487
+ color: var(--memori-text-color, #111);
488
+ }
489
+
490
+ .memori-mobile-session-panel--page-btn:disabled {
491
+ cursor: not-allowed;
492
+ opacity: 0.45;
493
+ }
494
+
495
+ .memori-mobile-session-panel--page-btn-secondary {
496
+ background: transparent;
497
+ }
498
+
499
+ [data-theme='dark'] .memori-mobile-session-panel--page-btn-active,
500
+ .memori-widget[data-theme='dark'] .memori-mobile-session-panel--page-btn-active {
501
+ background: transparent;
502
+ color: var(--memori-text-color, #fff);
503
+ }
504
+
505
+ .memori-mobile-session-panel--known-facts-description,
506
+ .memori-mobile-session-panel--known-facts-count {
507
+ margin: 0;
508
+ color: rgba(0, 0, 0, 0.7);
509
+ font-size: 0.9rem;
510
+ }
511
+
512
+ @media (max-width: 768px) {
513
+ .memori-mobile-session-panel--overlay {
514
+ display: flex;
515
+ }
516
+
517
+ .memori-mobile-session-panel--overlay-popover {
518
+ align-items: flex-start;
519
+ justify-content: flex-end;
520
+ }
521
+ }
522
+
523
+ .memori-mobile-session-panel-drawer.memori-drawer--bottom {
524
+ width: 100%;
525
+ max-width: 100%;
526
+ height: auto;
527
+ max-height: 90vh;
528
+ padding: 0;
529
+ border-radius: var(--memori-radius-overlay) var(--memori-radius-overlay) 0 0;
530
+ }
531
+
532
+ .memori-mobile-session-panel-drawer .memori-drawer__body {
533
+ overflow: auto;
534
+ padding: 0;
535
+ }
536
+
537
+ .memori-mobile-session-panel-drawer .memori-mobile-session-panel {
538
+ max-height: none;
539
+ border-radius: 0;
540
+ }
@@ -0,0 +1,65 @@
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
+ showKnownFacts?: boolean;
56
+ history?: Message[];
57
+ aiUsageTitle?: string;
58
+ showMessageConsumption?: boolean;
59
+ isLoggedIn?: boolean;
60
+ showLogin?: boolean;
61
+ loginLabel?: string;
62
+ onLogin?: () => void;
63
+ }
64
+ declare const MobileSessionPanel: React.FC<MobileSessionPanelProps>;
65
+ export default MobileSessionPanel;