@aikaara/chat-sdk 0.9.2 → 0.9.4

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.
@@ -454,9 +454,7 @@ function Il(c, e, t = 15e3) {
454
454
  if (!i && !s && !o) return null;
455
455
  const l = new Date(e.createdAt).getTime();
456
456
  for (let u = c.length - 1; u >= 0; u--) {
457
- const d = c[u];
458
- if (d.role !== e.role) continue;
459
- const p = d.attachments && d.attachments[0], y = (d.metadata ?? {}).attributes;
457
+ const d = c[u], p = d.attachments && d.attachments[0], y = (d.metadata ?? {}).attributes;
460
458
  if (!(!!p || !!(y && y.fileMessage)) || Math.abs(l - new Date(d.createdAt).getTime()) > t) continue;
461
459
  const g = fo(d);
462
460
  if (i && g && i === g) return d;
@@ -12520,9 +12518,12 @@ class lh extends HTMLElement {
12520
12518
  gap: 8px;
12521
12519
  scroll-behavior: smooth;
12522
12520
  }
12523
- .message-list::-webkit-scrollbar { width: 6px; }
12521
+ .message-list { scrollbar-width: thin; scrollbar-color: var(--aikaara-border, #e5e7eb) transparent; }
12522
+ .message-list::-webkit-scrollbar { width: 6px; height: 6px; }
12524
12523
  .message-list::-webkit-scrollbar-track { background: transparent; }
12525
12524
  .message-list::-webkit-scrollbar-thumb { background: var(--aikaara-border, #e5e7eb); border-radius: 3px; }
12525
+ .message-list::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
12526
+ .message-list::-webkit-scrollbar-corner { background: transparent; }
12526
12527
  .message-wrap { display: flex; flex-direction: column; }
12527
12528
  .message-wrap.user { align-items: flex-end; }
12528
12529
  .message-wrap.assistant,