@memori.ai/memori-react 8.41.6 → 8.42.0
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 +12 -0
- package/dist/components/ChatHistoryDrawer/ChatResumeDrawer.css +367 -0
- package/dist/components/ChatHistoryDrawer/ChatResumeDrawer.d.ts +36 -0
- package/dist/components/ChatHistoryDrawer/ChatResumeDrawer.js +116 -0
- package/dist/components/ChatHistoryDrawer/ChatResumeDrawer.js.map +1 -0
- package/dist/components/DrawerFooter/DrawerFooter.css +62 -0
- package/dist/components/DrawerFooter/DrawerFooter.d.ts +12 -0
- package/dist/components/DrawerFooter/DrawerFooter.js +10 -0
- package/dist/components/DrawerFooter/DrawerFooter.js.map +1 -0
- package/dist/components/MobileSessionPanel/MobileSessionPanel.css +437 -0
- package/dist/components/MobileSessionPanel/MobileSessionPanel.d.ts +62 -0
- package/dist/components/MobileSessionPanel/MobileSessionPanel.js +292 -0
- package/dist/components/MobileSessionPanel/MobileSessionPanel.js.map +1 -0
- package/dist/components/PositionPopover/PositionPopover.css +219 -0
- package/dist/components/PositionPopover/PositionPopover.d.ts +20 -0
- package/dist/components/PositionPopover/PositionPopover.js +187 -0
- package/dist/components/PositionPopover/PositionPopover.js.map +1 -0
- package/dist/components/layouts/WebsiteAssistant/WebsiteAssistant.d.ts +4 -0
- package/dist/components/layouts/WebsiteAssistant/WebsiteAssistant.js +43 -0
- package/dist/components/layouts/WebsiteAssistant/WebsiteAssistant.js.map +1 -0
- package/dist/components/layouts/WebsiteAssistant/website-assistant.css +724 -0
- package/dist/components/layouts/fullpage.css +425 -0
- package/dist/context/widgetSurfaceContext.d.ts +3 -0
- package/dist/context/widgetSurfaceContext.js +11 -0
- package/dist/context/widgetSurfaceContext.js.map +1 -0
- package/dist/helpers/media.js +18 -3
- package/dist/helpers/media.js.map +1 -1
- package/dist/helpers/positionPopover.d.ts +1 -0
- package/dist/helpers/positionPopover.js +7 -0
- package/dist/helpers/positionPopover.js.map +1 -0
- package/dist/helpers/usePressTooltip.d.ts +13 -0
- package/dist/helpers/usePressTooltip.js +23 -0
- package/dist/helpers/usePressTooltip.js.map +1 -0
- package/dist/icons/FacebookIcon.d.ts +3 -0
- package/dist/icons/FacebookIcon.js +6 -0
- package/dist/icons/FacebookIcon.js.map +1 -0
- package/dist/icons/LinkedinIcon.d.ts +3 -0
- package/dist/icons/LinkedinIcon.js +6 -0
- package/dist/icons/LinkedinIcon.js.map +1 -0
- package/dist/icons/MemoriIcon.d.ts +3 -0
- package/dist/icons/MemoriIcon.js +8 -0
- package/dist/icons/MemoriIcon.js.map +1 -0
- package/dist/icons/TelegramIcon.d.ts +3 -0
- package/dist/icons/TelegramIcon.js +6 -0
- package/dist/icons/TelegramIcon.js.map +1 -0
- package/dist/icons/TwitterIcon.d.ts +3 -0
- package/dist/icons/TwitterIcon.js +6 -0
- package/dist/icons/TwitterIcon.js.map +1 -0
- package/dist/icons/WhatsappIcon.d.ts +3 -0
- package/dist/icons/WhatsappIcon.js +6 -0
- package/dist/icons/WhatsappIcon.js.map +1 -0
- package/dist/icons/artifacts/DocumentIcon.d.ts +3 -0
- package/dist/icons/artifacts/DocumentIcon.js +6 -0
- package/dist/icons/artifacts/DocumentIcon.js.map +1 -0
- package/dist/icons/artifacts/HtmlIcon.d.ts +3 -0
- package/dist/icons/artifacts/HtmlIcon.js +6 -0
- package/dist/icons/artifacts/HtmlIcon.js.map +1 -0
- package/dist/icons/artifacts/JavascriptIcon.d.ts +3 -0
- package/dist/icons/artifacts/JavascriptIcon.js +6 -0
- package/dist/icons/artifacts/JavascriptIcon.js.map +1 -0
- package/dist/icons/artifacts/MarkdownIcon.d.ts +3 -0
- package/dist/icons/artifacts/MarkdownIcon.js +6 -0
- package/dist/icons/artifacts/MarkdownIcon.js.map +1 -0
- package/dist/icons/artifacts/PythonIcon.d.ts +3 -0
- package/dist/icons/artifacts/PythonIcon.js +6 -0
- package/dist/icons/artifacts/PythonIcon.js.map +1 -0
- package/dist/icons/artifacts/SvgIcon.d.ts +3 -0
- package/dist/icons/artifacts/SvgIcon.js +6 -0
- package/dist/icons/artifacts/SvgIcon.js.map +1 -0
- package/dist/icons/artifacts/XmlIcon.d.ts +3 -0
- package/dist/icons/artifacts/XmlIcon.js +6 -0
- package/dist/icons/artifacts/XmlIcon.js.map +1 -0
- package/dist/icons/artifacts/cssIcon.d.ts +3 -0
- package/dist/icons/artifacts/cssIcon.js +6 -0
- package/dist/icons/artifacts/cssIcon.js.map +1 -0
- package/dist/testUtils.d.ts +5 -0
- package/dist/testUtils.js +18 -0
- package/dist/testUtils.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/esm/components/ChatHistoryDrawer/ChatResumeDrawer.css +367 -0
- package/esm/components/ChatHistoryDrawer/ChatResumeDrawer.d.ts +36 -0
- package/esm/components/ChatHistoryDrawer/ChatResumeDrawer.js +113 -0
- package/esm/components/ChatHistoryDrawer/ChatResumeDrawer.js.map +1 -0
- package/esm/components/DrawerFooter/DrawerFooter.css +62 -0
- package/esm/components/DrawerFooter/DrawerFooter.d.ts +12 -0
- package/esm/components/DrawerFooter/DrawerFooter.js +8 -0
- package/esm/components/DrawerFooter/DrawerFooter.js.map +1 -0
- package/esm/components/MobileSessionPanel/MobileSessionPanel.css +437 -0
- package/esm/components/MobileSessionPanel/MobileSessionPanel.d.ts +62 -0
- package/esm/components/MobileSessionPanel/MobileSessionPanel.js +289 -0
- package/esm/components/MobileSessionPanel/MobileSessionPanel.js.map +1 -0
- package/esm/components/PositionPopover/PositionPopover.css +219 -0
- package/esm/components/PositionPopover/PositionPopover.d.ts +20 -0
- package/esm/components/PositionPopover/PositionPopover.js +182 -0
- package/esm/components/PositionPopover/PositionPopover.js.map +1 -0
- package/esm/components/layouts/WebsiteAssistant/WebsiteAssistant.d.ts +4 -0
- package/esm/components/layouts/WebsiteAssistant/WebsiteAssistant.js +40 -0
- package/esm/components/layouts/WebsiteAssistant/WebsiteAssistant.js.map +1 -0
- package/esm/components/layouts/WebsiteAssistant/website-assistant.css +724 -0
- package/esm/components/layouts/fullpage.css +425 -0
- package/esm/context/widgetSurfaceContext.d.ts +3 -0
- package/esm/context/widgetSurfaceContext.js +7 -0
- package/esm/context/widgetSurfaceContext.js.map +1 -0
- package/esm/helpers/media.js +18 -3
- package/esm/helpers/media.js.map +1 -1
- package/esm/helpers/positionPopover.d.ts +1 -0
- package/esm/helpers/positionPopover.js +4 -0
- package/esm/helpers/positionPopover.js.map +1 -0
- package/esm/helpers/usePressTooltip.d.ts +13 -0
- package/esm/helpers/usePressTooltip.js +20 -0
- package/esm/helpers/usePressTooltip.js.map +1 -0
- package/esm/icons/FacebookIcon.d.ts +3 -0
- package/esm/icons/FacebookIcon.js +4 -0
- package/esm/icons/FacebookIcon.js.map +1 -0
- package/esm/icons/LinkedinIcon.d.ts +3 -0
- package/esm/icons/LinkedinIcon.js +4 -0
- package/esm/icons/LinkedinIcon.js.map +1 -0
- package/esm/icons/MemoriIcon.d.ts +3 -0
- package/esm/icons/MemoriIcon.js +6 -0
- package/esm/icons/MemoriIcon.js.map +1 -0
- package/esm/icons/TelegramIcon.d.ts +3 -0
- package/esm/icons/TelegramIcon.js +4 -0
- package/esm/icons/TelegramIcon.js.map +1 -0
- package/esm/icons/TwitterIcon.d.ts +3 -0
- package/esm/icons/TwitterIcon.js +4 -0
- package/esm/icons/TwitterIcon.js.map +1 -0
- package/esm/icons/WhatsappIcon.d.ts +3 -0
- package/esm/icons/WhatsappIcon.js +4 -0
- package/esm/icons/WhatsappIcon.js.map +1 -0
- package/esm/icons/artifacts/DocumentIcon.d.ts +3 -0
- package/esm/icons/artifacts/DocumentIcon.js +4 -0
- package/esm/icons/artifacts/DocumentIcon.js.map +1 -0
- package/esm/icons/artifacts/HtmlIcon.d.ts +3 -0
- package/esm/icons/artifacts/HtmlIcon.js +4 -0
- package/esm/icons/artifacts/HtmlIcon.js.map +1 -0
- package/esm/icons/artifacts/JavascriptIcon.d.ts +3 -0
- package/esm/icons/artifacts/JavascriptIcon.js +4 -0
- package/esm/icons/artifacts/JavascriptIcon.js.map +1 -0
- package/esm/icons/artifacts/MarkdownIcon.d.ts +3 -0
- package/esm/icons/artifacts/MarkdownIcon.js +4 -0
- package/esm/icons/artifacts/MarkdownIcon.js.map +1 -0
- package/esm/icons/artifacts/PythonIcon.d.ts +3 -0
- package/esm/icons/artifacts/PythonIcon.js +4 -0
- package/esm/icons/artifacts/PythonIcon.js.map +1 -0
- package/esm/icons/artifacts/SvgIcon.d.ts +3 -0
- package/esm/icons/artifacts/SvgIcon.js +4 -0
- package/esm/icons/artifacts/SvgIcon.js.map +1 -0
- package/esm/icons/artifacts/XmlIcon.d.ts +3 -0
- package/esm/icons/artifacts/XmlIcon.js +4 -0
- package/esm/icons/artifacts/XmlIcon.js.map +1 -0
- package/esm/icons/artifacts/cssIcon.d.ts +3 -0
- package/esm/icons/artifacts/cssIcon.js +4 -0
- package/esm/icons/artifacts/cssIcon.js.map +1 -0
- package/esm/testUtils.d.ts +5 -0
- package/esm/testUtils.js +15 -0
- package/esm/testUtils.js.map +1 -0
- package/esm/version.d.ts +1 -1
- package/esm/version.js +1 -1
- package/package.json +1 -1
- package/src/components/Chat/__snapshots__/Chat.test.tsx.snap +10 -10
- package/src/helpers/media.test.ts +36 -0
- package/src/helpers/media.ts +39 -12
- package/src/version.ts +1 -1
- package/dist/components/MemoriArtifactSystem/utils/applyEdits.d.ts +0 -8
- package/dist/components/MemoriArtifactSystem/utils/applyEdits.js +0 -117
- package/dist/components/MemoriArtifactSystem/utils/applyEdits.js.map +0 -1
- package/dist/helpers/nats/natsBundled.js +0 -13224
- package/esm/components/MemoriArtifactSystem/utils/applyEdits.d.ts +0 -8
- package/esm/components/MemoriArtifactSystem/utils/applyEdits.js +0 -112
- package/esm/components/MemoriArtifactSystem/utils/applyEdits.js.map +0 -1
- package/esm/helpers/nats/natsBundled.js +0 -13225
|
@@ -0,0 +1,437 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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;
|