alice-and-bot 1.0.87 → 1.0.89
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connected-chat.d.ts","sources":["../../../lit/components/connected-chat.ts"],"names":[],"mappings":"AAAA,SAAe,UAAU,EAAE,OAAO,EAAE,KAAK,cAAc,cAAwB;AAE/E,cAEE,WAAW,0CAI4B;AAoBzC,SAEE,KAAK,YAAY,mCAWe;AAuDlC,cAKE,YAAY,EAGZ,gBAAgB,qBACE;
|
|
1
|
+
{"version":3,"file":"connected-chat.d.ts","sources":["../../../lit/components/connected-chat.ts"],"names":[],"mappings":"AAAA,SAAe,UAAU,EAAE,OAAO,EAAE,KAAK,cAAc,cAAwB;AAE/E,cAEE,WAAW,0CAI4B;AAoBzC,SAEE,KAAK,YAAY,mCAWe;AAuDlC,cAKE,YAAY,EAGZ,gBAAgB,qBACE;AAiqBpB,OAAO,cAAM,sBAAsB;EACjC,gBAAgB;IACd;MAAe;;IACf;MAAkB;;IAClB;MAAuB;;IACvB;MAAU;;IACV;MAAW;;IACX;MAAoB;;IACpB;MAAoB;;IACpB;MAAgB;;IAChB;MAAqB;;IACrB;MAAwB;;IACxB;MAAmB;;IACnB;MAA2B;;IAC3B;MAAsB;;IACtB;MAA6B;;IAC7B;MAAuB;;IACvB;MAAU;;IACV;MAAgB;;IAChB;MAAgB;;IAChB;MAAqB;;IACrB;MAAc;;IACd;MAAe;;IACf;MAAwB;;IACxB;MAA+B;;IAC/B;MAAoB;;IACpB;EAEM,aAAa,cAAc,IAAI,CAAC;EAChC,gBAAgB,MAAM,CAAC;EACvB,qBAAqB,eAAe,IAAI,GAAG,SAAS,CAAC;EACrD,eAAe,IAAI,IAAI,SAAS,CAAC;EACjC,gBAAgB,IAAI,IAAI,SAAS,CAAC;EAClC,kBAAkB,OAAO,CAAC;EAC1B,kBAAkB,OAAO,GAAG,SAAS,CAAC;EACt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AQN;EAEF,QAAQ,+BAMN;EAEF,QAAQ,mBAuCN;EAEF,QAAQ,2BAyBN;EAEF,QAAQ,uBAA0B;EAElC,QAAQ,kBAiBN;EAEF,QAAQ,qBA0DN;EAEF,QAAQ,2BAIN;EAEF,QAAQ,4BAcN;EAEF,QAAQ,0BAKN;EAEF,QAAQ,yBAoCN;EAEF,QAAQ,6BAIN;EAEF,QAAQ,4BAaN;EAEF,QAAQ,sBAEN;EACF,QAAQ,uBAEN;EACF,QAAQ,uBAEN;EACF,QAAQ,oBAEN;EACF,QAAQ,uBAEN;EAEF,QAAQ,mBAGN;UAEM;EAgBR,QAAQ,0BA+BN;EAEF,QAAQ,wBAGN;EAEF,QAAQ,0BAiBN;UAEM;UAwLA;EA4FR,SAAS,UAAU,wBAAwB;AAiT7C"}
|
package/components.js
CHANGED
|
@@ -7596,9 +7596,9 @@ var stepSelectedMessageId = (messages, selectedId, direction) => {
|
|
|
7596
7596
|
|
|
7597
7597
|
// lit/components/chat-box.ts
|
|
7598
7598
|
var indicatorColor = (isDark, color, stale) => stale ? isDark ? "#f87171" : "#b91c1c" : color ?? (isDark ? "#cbd5e1" : "#475569");
|
|
7599
|
-
var indicatorTextStyle = (isDark, color, stale, isRtl) => `padding:${isRtl ? "6px 44px 6px 12px" : "6px 12px 6px 44px"};color:${indicatorColor(isDark, color, stale)};font-size:14px;text-align:start`;
|
|
7599
|
+
var indicatorTextStyle = (isDark, color, stale, isRtl) => `padding:${isRtl ? "6px 44px 6px 12px" : "6px 12px 6px 44px"};color:${indicatorColor(isDark, color, stale)};font-size:14px;text-align:start;max-width:100%;min-width:0;box-sizing:border-box;overflow-wrap:anywhere;word-break:break-word`;
|
|
7600
7600
|
var nextFrame = () => new Promise((resolve) => requestAnimationFrame(() => resolve()));
|
|
7601
|
-
var linearBarTrackStyle = (isDark, color, stale, isRtl) => `width:200px;height:8px;border:1px solid ${indicatorColor(isDark, color, stale)};border-radius:4px;margin-top:4px;overflow:hidden;${isRtl ? "margin-left:auto;margin-right:0" : "margin-left:0;margin-right:auto"}`;
|
|
7601
|
+
var linearBarTrackStyle = (isDark, color, stale, isRtl) => `width:200px;max-width:100%;box-sizing:border-box;height:8px;border:1px solid ${indicatorColor(isDark, color, stale)};border-radius:4px;margin-top:4px;overflow:hidden;${isRtl ? "margin-left:auto;margin-right:0" : "margin-left:0;margin-right:auto"}`;
|
|
7602
7602
|
var linearBarFillStyle = (percentage, isDark, color, stale) => `height:100%;background-color:${indicatorColor(isDark, color, stale)};border-radius:4px;width:${Math.min(100, Math.max(0, percentage * 100))}%;transition:width 0.3s ease`;
|
|
7603
7603
|
var indeterminateBarStyle = (isDark, color) => `height:100%;width:60px;background-color:${indicatorColor(isDark, color)};border-radius:4px;animation:indeterminate 1.2s linear infinite`;
|
|
7604
7604
|
var renderSpinnerIndicator = (spinner, isDark, hideNames, isGroupChat, color) => {
|
|
@@ -9408,7 +9408,7 @@ var ChatBox = class extends LitElement8 {
|
|
|
9408
9408
|
>
|
|
9409
9409
|
<div
|
|
9410
9410
|
data-content-inner
|
|
9411
|
-
style="display:flex;flex-direction:column;gap:8px;padding:12px 12px ${this._inputAreaHeight}px 12px;flex-grow:1;box-sizing:border-box;min-width:0;${contentMaxWidthStyle(customColors)}"
|
|
9411
|
+
style="display:flex;flex-direction:column;gap:8px;padding:12px 12px ${this._inputAreaHeight}px 12px;flex-grow:1;width:100%;max-width:100%;box-sizing:border-box;min-width:0;${contentMaxWidthStyle(customColors)}"
|
|
9412
9412
|
>
|
|
9413
9413
|
${this.isLoading ? html9`
|
|
9414
9414
|
<div style="${centerFillStyle(isDark)}">${spinnerEl(isDark, customColors?.text)}</div>
|
|
@@ -10030,14 +10030,14 @@ var sidebarInlineRenameInputStyle = (isDark) => `width:100%;box-sizing:border-bo
|
|
|
10030
10030
|
var sidebarRenameButtonStyle = (isDark, customColors) => `background:transparent;border:none;cursor:pointer;padding:6px;border-radius:6px;color:${customColors?.text ?? (isDark ? "#9ca3af" : "#6b7280")};display:flex;align-items:center;justify-content:center;font-size:12px;transition:opacity 0.15s,background 0.15s;flex-shrink:0`;
|
|
10031
10031
|
var sidebarItemBodyStyle = "flex:1;min-width:0;display:flex;flex-direction:column;gap:2px";
|
|
10032
10032
|
var sidebarItemTopRowStyle = "display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;min-height:18px";
|
|
10033
|
-
var sidebarItemTimeStyle = (isDark
|
|
10033
|
+
var sidebarItemTimeStyle = (isDark) => `font-size:11px;line-height:18px;flex-shrink:0;font-variant-numeric:tabular-nums;font-weight:400;color:${isDark ? "#9e988e" : "#625e56"}`;
|
|
10034
10034
|
var sidebarItemBottomRowStyle = "display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;min-height:19px";
|
|
10035
10035
|
var sidebarItemPreviewRowStyle = "font-size:12px;line-height:15px;min-height:15px;height:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0";
|
|
10036
|
-
var sidebarItemPreviewStyle = (isDark
|
|
10037
|
-
var sidebarItemTypingStyle = (isDark) => `${sidebarItemPreviewRowStyle};font-weight:500;color:${isDark ? "#60a5fa" : "#
|
|
10036
|
+
var sidebarItemPreviewStyle = (isDark) => `${sidebarItemPreviewRowStyle};font-weight:400;color:${isDark ? "#aba59b" : "#55514a"}`;
|
|
10037
|
+
var sidebarItemTypingStyle = (isDark) => `${sidebarItemPreviewRowStyle};font-weight:500;color:${isDark ? "#60a5fa" : "#1d4ed8"}`;
|
|
10038
10038
|
var sidebarUnreadBadgeStyle = (isDark) => `display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 5px;border-radius:9999px;font-size:11px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums;flex-shrink:0;background:${isDark ? "#60a5fa" : "#2563eb"};color:${isDark ? "#0d1526" : "#ffffff"}`;
|
|
10039
|
-
var sidebarUnreadDotStyle = (isDark) => `display:inline-block;width:
|
|
10040
|
-
var sidebarPinnedIndicatorStyle = (isDark) => `display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:${isDark ? "#
|
|
10039
|
+
var sidebarUnreadDotStyle = (isDark) => `display:inline-block;width:12px;height:12px;border-radius:9999px;flex-shrink:0;background:${isDark ? "#60a5fa" : "#2563eb"}`;
|
|
10040
|
+
var sidebarPinnedIndicatorStyle = (isDark) => `display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:${isDark ? "#9e988e" : "#625e56"}`;
|
|
10041
10041
|
var sidebarPinSvg = html11`
|
|
10042
10042
|
<svg
|
|
10043
10043
|
width="12"
|
|
@@ -10183,8 +10183,8 @@ var sidebarContainerStyle = (isDark, customColors) => `width:280px;min-width:240
|
|
|
10183
10183
|
var sidebarHeaderStyle = (isDark) => `padding:12px 14px;border-bottom:1px solid ${isDark ? "#222222" : "#eeeeee"};display:flex;flex-direction:column;gap:8px;flex-shrink:0`;
|
|
10184
10184
|
var sidebarSearchInputStyle = (isDark, customColors) => `width:100%;padding:8px 12px;border-radius:8px;font-size:13px;outline:none;border:1px solid ${inputBorderColor(isDark, customColors)};background:${customColors?.inputBackground ?? defaultInputBackground(isDark)};color:${customColors?.inputBackground ? inputTextColor(isDark, customColors) : customColors?.text ?? (isDark ? "#f4f4f4" : "#111827")};box-sizing:border-box`;
|
|
10185
10185
|
var sidebarListStyle = (scrollbarColor) => `flex:1;min-height:0;overflow-y:auto;padding:6px 8px;display:flex;flex-direction:column;gap:2px;${scrollbarColor ? `scrollbar-color:${scrollbarColor};` : ""}`;
|
|
10186
|
-
var sidebarItemStyle = (isSelected, isDark, customColors
|
|
10187
|
-
var sidebarItemTitleStyle = (isDark, isSelected, customColors
|
|
10186
|
+
var sidebarItemStyle = (isSelected, isDark, customColors) => `display:flex;align-items:center;gap:10px;padding:8px 10px;width:100%;text-align:left;background:${isSelected ? isDark ? "rgba(255,255,255,0.08)" : "rgba(0,0,0,0.06)" : "transparent"};border:none;border-left:3px solid ${isSelected ? customColors?.primary ?? defaultPrimary(isDark) : "transparent"};border-radius:8px;cursor:pointer;transition:background 0.15s;box-sizing:border-box;outline:none`;
|
|
10187
|
+
var sidebarItemTitleStyle = (isDark, isSelected, customColors) => `font-size:13px;line-height:18px;font-weight:${isSelected ? "600" : "500"};color:${customColors?.text ?? (isDark ? "#f3f1ea" : "#181715")};white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0`;
|
|
10188
10188
|
var mobileBackButtonStyle = (isDark, customColors) => `position:absolute;top:10px;left:10px;z-index:90;display:flex;align-items:center;gap:6px;padding:6px 12px;border-radius:18px;background:${isDark ? "rgba(30,30,30,0.9)" : "rgba(255,255,255,0.9)"};color:${customColors?.text ?? (isDark ? "#f4f4f4" : "#111827")};border:1px solid ${isDark ? "#444" : "#e5e7eb"};box-shadow:0 2px 8px rgba(0,0,0,0.15);cursor:pointer;font-size:12px;font-weight:600;backdrop-filter:blur(4px)`;
|
|
10189
10189
|
var mobileFullListStyle = (isDark, customColors) => `display:flex;flex-direction:column;width:100%;height:100%;min-height:0;background:${customColors?.background ?? (isDark ? "#111110" : "#f6f4ee")};font-family:sans-serif;box-sizing:border-box`;
|
|
10190
10190
|
var mainChatContainerStyle = "display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;overflow:hidden;position:relative";
|
|
@@ -11420,7 +11420,7 @@ var ConnectedChat = class extends LitElement10 {
|
|
|
11420
11420
|
data-conversation-id="${conv.id}"
|
|
11421
11421
|
data-unread="${unread.isUnread ? "true" : "false"}"
|
|
11422
11422
|
data-pinned="${isPinned ? "true" : "false"}"
|
|
11423
|
-
style="${sidebarItemStyle(isSelected, isDark, this.customColors
|
|
11423
|
+
style="${sidebarItemStyle(isSelected, isDark, this.customColors)}"
|
|
11424
11424
|
@click="${() => this._selectConversation(conv.id)}"
|
|
11425
11425
|
>
|
|
11426
11426
|
<chat-avatar
|
|
@@ -11445,17 +11445,17 @@ var ConnectedChat = class extends LitElement10 {
|
|
|
11445
11445
|
@blur="${this._commitSidebarRename}"
|
|
11446
11446
|
/>
|
|
11447
11447
|
` : html11`
|
|
11448
|
-
<div style="${sidebarItemTitleStyle(isDark, isSelected, this.customColors
|
|
11448
|
+
<div style="${sidebarItemTitleStyle(isDark, isSelected, this.customColors)}">
|
|
11449
11449
|
${displayName}
|
|
11450
11450
|
</div>
|
|
11451
11451
|
`} ${timeLabel && this._editingSidebarConvId !== conv.id ? html11`
|
|
11452
|
-
<span style="${sidebarItemTimeStyle(isDark
|
|
11452
|
+
<span style="${sidebarItemTimeStyle(isDark)}">${timeLabel}</span>
|
|
11453
11453
|
` : nothing6}
|
|
11454
11454
|
</div>
|
|
11455
11455
|
<div style="${sidebarItemBottomRowStyle}">
|
|
11456
11456
|
<div
|
|
11457
11457
|
data-testid="conversation-preview-slot"
|
|
11458
|
-
style="${typingLabel2 ? sidebarItemTypingStyle(isDark) : sidebarItemPreviewStyle(isDark
|
|
11458
|
+
style="${typingLabel2 ? sidebarItemTypingStyle(isDark) : sidebarItemPreviewStyle(isDark)}"
|
|
11459
11459
|
>
|
|
11460
11460
|
${typingLabel2 || previewLine || nothing6}
|
|
11461
11461
|
</div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alice-and-bot",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.89",
|
|
4
4
|
"description": "A chat network for agents. Open-source, end-to-end encrypted messaging SDK, React chat UI, and embeddable widgets for AI agents and humans.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|