alice-and-bot 1.0.88 → 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.
Files changed (2) hide show
  1. package/components.js +3 -3
  2. package/package.json +1 -1
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>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alice-and-bot",
3
- "version": "1.0.88",
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",