@memori.ai/memori-react 8.46.0 → 8.46.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/components/ChatBubble/ChatBubble.css +94 -9
- package/dist/components/ChatInputs/ChatInputs.css +7 -5
- package/dist/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.css +27 -0
- package/dist/components/MemoriWidget/MemoriWidget.js +9 -0
- package/dist/components/MemoriWidget/MemoriWidget.js.map +1 -1
- package/dist/components/layouts/chat.css +11 -1
- package/dist/components/layouts/totem.css +2 -0
- package/dist/helpers/message.js +45 -1
- package/dist/helpers/message.js.map +1 -1
- package/dist/styles.css +19 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/esm/components/ChatBubble/ChatBubble.css +94 -9
- package/esm/components/ChatInputs/ChatInputs.css +7 -5
- package/esm/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.css +27 -0
- package/esm/components/MemoriWidget/MemoriWidget.js +9 -0
- package/esm/components/MemoriWidget/MemoriWidget.js.map +1 -1
- package/esm/components/layouts/chat.css +11 -1
- package/esm/components/layouts/totem.css +2 -0
- package/esm/helpers/message.js +45 -1
- package/esm/helpers/message.js.map +1 -1
- package/esm/styles.css +19 -0
- package/esm/version.d.ts +1 -1
- package/esm/version.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [8.46.1](https://github.com/memori-ai/memori-react/compare/v8.46.0...v8.46.1) (2026-10-05)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **chat:** enhance chat UI with new styles and markdown rendering improvements ([30e9aac](https://github.com/memori-ai/memori-react/commit/30e9aacf6f4dfc79b5c102ac4973893e383280ee))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Maintenance
|
|
12
|
+
|
|
13
|
+
* update dompurify to version 3.4.16 ([c0b4aa5](https://github.com/memori-ai/memori-react/commit/c0b4aa568b0f29a11afdc2cf36efe9215205ea9b))
|
|
14
|
+
|
|
3
15
|
## [8.46.0](https://github.com/memori-ai/memori-react/compare/v8.45.6...v8.46.0) (2026-09-29)
|
|
4
16
|
|
|
5
17
|
|
|
@@ -126,6 +126,100 @@
|
|
|
126
126
|
margin-bottom: 0;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
+
.memori-chat--bubble strong,
|
|
130
|
+
.memori-chat--bubble b {
|
|
131
|
+
font-weight: 700;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.memori-chat--bubble em,
|
|
135
|
+
.memori-chat--bubble i {
|
|
136
|
+
font-style: italic;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.memori-chat--bubble h1,
|
|
140
|
+
.memori-chat--bubble h2,
|
|
141
|
+
.memori-chat--bubble h3,
|
|
142
|
+
.memori-chat--bubble h4,
|
|
143
|
+
.memori-chat--bubble h5,
|
|
144
|
+
.memori-chat--bubble h6 {
|
|
145
|
+
margin: 0.75em 0 0.35em;
|
|
146
|
+
color: inherit;
|
|
147
|
+
font-weight: 700;
|
|
148
|
+
line-height: 1.3;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.memori-chat--bubble h1 {
|
|
152
|
+
font-size: 1.25em;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.memori-chat--bubble h2 {
|
|
156
|
+
font-size: 1.15em;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.memori-chat--bubble h3 {
|
|
160
|
+
font-size: 1.05em;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.memori-chat--bubble h1:first-child,
|
|
164
|
+
.memori-chat--bubble h2:first-child,
|
|
165
|
+
.memori-chat--bubble h3:first-child,
|
|
166
|
+
.memori-chat--bubble h4:first-child,
|
|
167
|
+
.memori-chat--bubble h5:first-child,
|
|
168
|
+
.memori-chat--bubble h6:first-child {
|
|
169
|
+
margin-top: 0;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.memori-chat--bubble blockquote {
|
|
173
|
+
padding-left: 0.75em;
|
|
174
|
+
border-left: 3px solid rgba(20, 21, 21, 0.25);
|
|
175
|
+
margin: 0.65em 0;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.memori-chat--bubble.memori-chat--user-bubble blockquote {
|
|
179
|
+
border-left-color: rgba(255, 255, 255, 0.55);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.memori-chat--bubble code {
|
|
183
|
+
padding: 0.1em 0.35em;
|
|
184
|
+
border-radius: 4px;
|
|
185
|
+
background: rgba(20, 21, 21, 0.06);
|
|
186
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
|
|
187
|
+
font-size: 0.9em;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.memori-chat--bubble pre {
|
|
191
|
+
max-width: 100%;
|
|
192
|
+
box-sizing: border-box;
|
|
193
|
+
padding: 10px 12px;
|
|
194
|
+
border-radius: 8px;
|
|
195
|
+
margin: 0.65em 0;
|
|
196
|
+
background: #161b22;
|
|
197
|
+
color: #e6edf3;
|
|
198
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
|
|
199
|
+
font-size: 0.85em;
|
|
200
|
+
line-height: 1.45;
|
|
201
|
+
overflow-x: auto;
|
|
202
|
+
white-space: pre-wrap;
|
|
203
|
+
word-break: break-word;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.memori-chat--bubble pre code {
|
|
207
|
+
padding: 0;
|
|
208
|
+
background: transparent;
|
|
209
|
+
color: inherit;
|
|
210
|
+
font-size: inherit;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.memori-chat--bubble.memori-chat--user-bubble code {
|
|
214
|
+
background: rgba(255, 255, 255, 0.18);
|
|
215
|
+
color: inherit;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.memori-chat--bubble.memori-chat--user-bubble pre code {
|
|
219
|
+
background: transparent;
|
|
220
|
+
color: inherit;
|
|
221
|
+
}
|
|
222
|
+
|
|
129
223
|
.memori-chat--bubble ul,
|
|
130
224
|
.memori-chat--bubble ol {
|
|
131
225
|
padding-left: 1rem;
|
|
@@ -154,15 +248,6 @@
|
|
|
154
248
|
color: var(--memori-primary-text);
|
|
155
249
|
}
|
|
156
250
|
|
|
157
|
-
.memori-chat--bubble h1,
|
|
158
|
-
.memori-chat--bubble h2,
|
|
159
|
-
.memori-chat--bubble h3,
|
|
160
|
-
.memori-chat--bubble h4,
|
|
161
|
-
.memori-chat--bubble h5,
|
|
162
|
-
.memori-chat--bubble h6 {
|
|
163
|
-
color: inherit;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
251
|
@media (max-width: 600px) {
|
|
167
252
|
.memori-chat--bubble p {
|
|
168
253
|
font-size: 12px;
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
padding: 0;
|
|
7
7
|
padding-bottom: 1.5rem;
|
|
8
8
|
margin: 0;
|
|
9
|
-
/*
|
|
9
|
+
/* Solid surface so messages scrolling under the sticky composer stay hidden. */
|
|
10
|
+
background-color: var(--memori-chat-inputs-surface, #fff);
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
.memori-chat-inputs {
|
|
@@ -148,8 +149,8 @@
|
|
|
148
149
|
padding: 4px 12px;
|
|
149
150
|
border-radius: 10px;
|
|
150
151
|
margin-top: 2px;
|
|
151
|
-
background-color: var(--memori-
|
|
152
|
-
color: rgba(0, 0, 0, 0.6);
|
|
152
|
+
background-color: var(--memori-chat-inputs-surface, #fff);
|
|
153
|
+
color: var(--memori-chat-inputs-disclaimer, rgba(0, 0, 0, 0.6));
|
|
153
154
|
font-size: 12px;
|
|
154
155
|
line-height: 1.5;
|
|
155
156
|
text-align: center;
|
|
@@ -307,14 +308,15 @@
|
|
|
307
308
|
justify-content: center;
|
|
308
309
|
padding: 8px 60px;
|
|
309
310
|
margin-top: -4px;
|
|
310
|
-
color:
|
|
311
|
+
background-color: var(--memori-chat-inputs-surface, #fff);
|
|
312
|
+
color: var(--memori-chat-inputs-disclaimer, rgba(0, 0, 0, 0.6));
|
|
311
313
|
font-size: 12px;
|
|
312
314
|
line-height: 1.5;
|
|
313
315
|
text-align: center;
|
|
314
316
|
}
|
|
315
317
|
|
|
316
318
|
.memori-chat-inputs--disclaimer a {
|
|
317
|
-
color: rgba(0, 0, 0, 0.8);
|
|
319
|
+
color: var(--memori-chat-inputs-disclaimer-link, rgba(0, 0, 0, 0.8));
|
|
318
320
|
cursor: pointer;
|
|
319
321
|
text-decoration: underline;
|
|
320
322
|
}
|
|
@@ -24,6 +24,33 @@
|
|
|
24
24
|
pointer-events: none;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
/*
|
|
28
|
+
* Side panel only covers the right half, so the chat column keeps wheel/touch scroll.
|
|
29
|
+
* 50% matches widthLg in ArtifactDrawer.tsx; the Drawer sets its width vars on the panel, not here.
|
|
30
|
+
*/
|
|
31
|
+
@media (min-width: 1025px) {
|
|
32
|
+
.memori-artifact-panel-drawer .memori-drawer--container {
|
|
33
|
+
left: auto;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
width: 50%;
|
|
36
|
+
pointer-events: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.memori-artifact-panel-drawer .memori-drawer--container-scrollable {
|
|
40
|
+
width: 100%;
|
|
41
|
+
height: 100%;
|
|
42
|
+
min-height: 0;
|
|
43
|
+
justify-content: flex-end;
|
|
44
|
+
pointer-events: none;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.memori-artifact-panel-drawer .memori-drawer--panel {
|
|
48
|
+
width: 100%;
|
|
49
|
+
max-width: none;
|
|
50
|
+
pointer-events: auto;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
27
54
|
/* Main Drawer Container (Mobile Only) */
|
|
28
55
|
.memori-artifact-drawer {
|
|
29
56
|
position: relative;
|
|
@@ -1589,6 +1589,15 @@ const MemoriWidget = ({ memori, memoriConfigs, ownerUserID, ownerUserName, tenan
|
|
|
1589
1589
|
'--memori-inner-bg': `rgba(${integrationConfig.innerBgColor === 'dark'
|
|
1590
1590
|
? '0, 0, 0'
|
|
1591
1591
|
: '255, 255, 255'}, ${(_y = integrationConfig.innerBgAlpha) !== null && _y !== void 0 ? _y : 0.4})`,
|
|
1592
|
+
'--memori-chat-inputs-surface': integrationConfig.innerBgColor === 'dark'
|
|
1593
|
+
? '#141414'
|
|
1594
|
+
: '#ffffff',
|
|
1595
|
+
'--memori-chat-inputs-disclaimer': integrationConfig.innerBgColor === 'dark'
|
|
1596
|
+
? 'rgba(255, 255, 255, 0.72)'
|
|
1597
|
+
: 'rgba(0, 0, 0, 0.6)',
|
|
1598
|
+
'--memori-chat-inputs-disclaimer-link': integrationConfig.innerBgColor === 'dark'
|
|
1599
|
+
? 'rgba(255, 255, 255, 0.88)'
|
|
1600
|
+
: 'rgba(0, 0, 0, 0.8)',
|
|
1592
1601
|
'--memori-inner-content-pad': '1.5rem',
|
|
1593
1602
|
'--memori-nav-bg-image': 'none',
|
|
1594
1603
|
'--memori-nav-bg': `rgba(${integrationConfig.innerBgColor === 'dark'
|