alice-and-bot 1.0.73 → 1.0.74
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":"chat-box.d.ts","sources":["../../../lit/components/chat-box.ts"],"names":[],"mappings":"AAAA,SAAe,UAAU,EAAW,KAAK,cAAc,cAAwB;AAgD/E,cACE,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,gBAAgB,qBAEE;
|
|
1
|
+
{"version":3,"file":"chat-box.d.ts","sources":["../../../lit/components/chat-box.ts"],"names":[],"mappings":"AAAA,SAAe,UAAU,EAAW,KAAK,cAAc,cAAwB;AAgD/E,cACE,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,gBAAgB,qBAEE;AAgepB,OAAO,cAAM,gBAAgB;EAC3B,gBAAgB;IACd;MAAY;;IACZ;MAAe;;IACf;MAAa;MAAe;;IAC5B;MAAe;;IACf;MAAY;;IACZ;MAAU;;IACV;MAAU;;IACV;MAAyB;;IACzB;MAAU;;IACV;MAAW;;IACX;;IACA;MAAgB;;IAChB;MAAqB;;IACrB;MAAe;;IACf;MAAmB;;IACnB;MAAa;;IACb;MAAoB;;IACpB;MAAgB;;IAChB;MAAuB;;IACvB;MAAqB;;IACrB;MAAwB;;IACxB;MAAmB;;IACnB;;IACA;MAAqB;;IACrB;MAAkB;;IAClB;MAAgB;;IAChB;MAAe;;IACf;MAAgB;;IAChB;MAAgB;;IAChB;MAAa;;IACb;MAAgB;;IAChB;MAAU;;IACV;MAAW;;IACX;MAAiB;;IACjB;MAAkB;;IAClB;MAAkB;;IAClB;MAAkB;;IAClB;MAAiB;;IACjB;MAAe;;IACf;MAAoB;;IACpB;MAAU;;IACV;MAAgB;;IAChB;MAAU;;IACV;MAAiB;;IACjB;MAAmB;;IACnB;MAAgB;;IAChB;MAAsB;;IACtB;MAAsB;;IAC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,MAAM;EAClB,MAAM,MAAM;;AAGd,YAAY;EACV,IAAI,MAAM;EACV,UAAU,MAAM;EAChB,YAAY,MAAM;EAClB,eAAe,MAAM;EACrB,MAAM,MAAM;EACZ,WAAW,MAAM;EACjB,cAAc;EACd,cAAc;EACd;IAAgB,QAAQ,MAAM;IAAE,WAAW,MAAM;;EACjD,YAAY;EACZ,UAAU;;AAGZ,YAAY;EACV,eAAe,MAAM;EACrB,kBAAkB,MAAM;EACxB,YAAY,MAAM;EAClB,MAAM,MAAM;EACZ,WAAW,MAAM;EACjB,WAAW,MAAM;EACjB,QAAQ,OAAO;;AAGjB,YAAY;EACV,YAAY,MAAM;EAClB,MAAM,MAAM;EACZ,WAAW,MAAM;EACjB,WAAW,MAAM;EACjB,QAAQ,OAAO;;AAGjB,YAAY;EACV,YAAY,MAAM;EAClB,MAAM,MAAM;EACZ,YAAY,MAAM;EAClB,WAAW,MAAM;EACjB,WAAW,MAAM;;AAUnB,YAAY,mBAAmB,MAAM;EAAK,OAAO,MAAM;EAAE,MAAM,MAAM;;AAErE,YAAY;EACV,aAAa,MAAM;EACnB,OAAO,MAAM;EACb,UAAU,MAAM;EAChB,mBAAmB,MAAM;EACzB,cAAc,MAAM;EACpB,YAAY,OAAO;EACnB,gBAAgB,OAAO;EACvB,kBAAkB,OAAO;EACzB,YAAY,OAAO;EACnB,gBAAgB,MAAM;EACtB,eAAe,MAAM;EACrB,kBAAkB,MAAM;EACxB,iBAAiB,MAAM"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget.d.ts","sources":["../../../widget/src/widget.ts"],"names":[],"mappings":"AAmBA,cAAc,gBAAgB,wCAAwC;AAqBtE,YAAY;EACV,SAAS,MAAM;EACf,YAAY,MAAM;EAClB,aAAa,MAAM;EACnB,iBAAiB,MAAM;EACvB,iBAAiB,MAAM;;AAqBzB,YAAY;EACV,QAAQ,QAAQ;EAChB,OAAO,QAAQ;;
|
|
1
|
+
{"version":3,"file":"widget.d.ts","sources":["../../../widget/src/widget.ts"],"names":[],"mappings":"AAmBA,cAAc,gBAAgB,wCAAwC;AAqBtE,YAAY;EACV,SAAS,MAAM;EACf,YAAY,MAAM;EAClB,aAAa,MAAM;EACnB,iBAAiB,MAAM;EACvB,iBAAiB,MAAM;;AAqBzB,YAAY;EACV,QAAQ,QAAQ;EAChB,OAAO,QAAQ;;AAqMjB,YAAY;EACV,cAAc,MAAM;EACpB,iBAAiB,MAAM;EACvB,YAAY,OAAO;EACnB,aAAa,MAAM;EACnB,cAAc,MAAM;EACpB,cAAc;EACd,kBAAkB,OAAO;EACzB,oBAAoB;;AA4YtB,OAAO,cAAM,eACX,QAAQ;EACL,SAAS;EAAgB,eAAe,IAAI;EAiX/C"}
|
package/components.js
CHANGED
|
@@ -1338,7 +1338,7 @@ var contentMaxWidthStyle = (custom) => `max-width:${custom?.chatMaxWidth || "860
|
|
|
1338
1338
|
var loadingStyle = "font-size:12px;color:#9c968c";
|
|
1339
1339
|
var centerFillStyle = (isDarkMode) => `display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;text-align:center;color:${isDarkMode ? "#9c968c" : "#78736a"}`;
|
|
1340
1340
|
var defaultOtherBubble = (isDark) => isDark ? "#171614" : "#ffffff";
|
|
1341
|
-
var defaultInputBackground = (isDark) => isDark ? "#
|
|
1341
|
+
var defaultInputBackground = (isDark) => isDark ? "#1c1b19" : "#ffffff";
|
|
1342
1342
|
var primaryHue = 215;
|
|
1343
1343
|
var avatarHues = [
|
|
1344
1344
|
primaryHue,
|
|
@@ -1368,9 +1368,9 @@ var inputSurfaceIsLight = (isDark, custom) => {
|
|
|
1368
1368
|
return isLightColor(bg, isDark);
|
|
1369
1369
|
};
|
|
1370
1370
|
var inputTextColor = (isDark, custom) => inputSurfaceIsLight(isDark, custom) ? "#181715" : "#f3f1ea";
|
|
1371
|
-
var inputPlaceholderColor = (isDark, custom) => inputSurfaceIsLight(isDark, custom) ? "#6b665d" : "#
|
|
1372
|
-
var inputBorderColor = (isDark, custom) => inputSurfaceIsLight(isDark, custom) ? "rgba(24,23,21,0.
|
|
1373
|
-
var inputFocusBorderColor = (isDark, custom) => inputSurfaceIsLight(isDark, custom) ? "rgba(24,23,21,0.
|
|
1371
|
+
var inputPlaceholderColor = (isDark, custom) => inputSurfaceIsLight(isDark, custom) ? "#6b665d" : "#8c877d";
|
|
1372
|
+
var inputBorderColor = (isDark, custom) => inputSurfaceIsLight(isDark, custom) ? "rgba(24,23,21,0.11)" : "rgba(255,255,255,0.12)";
|
|
1373
|
+
var inputFocusBorderColor = (isDark, custom) => inputSurfaceIsLight(isDark, custom) ? "rgba(24,23,21,0.24)" : "rgba(255,255,255,0.24)";
|
|
1374
1374
|
var defaultPrimary = (isDark) => isDark ? `hsl(${primaryHue}, 34%, 28%)` : `hsl(${primaryHue}, 38%, 36%)`;
|
|
1375
1375
|
var attachmentPrimaryColor = (isDark, customColors) => customColors?.primary ?? defaultPrimary(isDark);
|
|
1376
1376
|
var messageBubbleColor = ({ isOwn, isDark, customColors }) => isOwn ? customColors?.primary ?? defaultPrimary(isDark) : customColors?.otherBubble ?? defaultOtherBubble(isDark);
|
|
@@ -1382,13 +1382,13 @@ var quoteBarColor = (isDark, customColors) => customColors?.primary ?? defaultPr
|
|
|
1382
1382
|
var shouldShowAvatar = ({ isStartOfSequence, isOwn, isGroupChat }) => isStartOfSequence && !isOwn && isGroupChat;
|
|
1383
1383
|
var shouldShowName = ({ isStartOfSequence, isOwn, isGroupChat, hideNames }) => isStartOfSequence && !isOwn && !hideNames && isGroupChat;
|
|
1384
1384
|
var titleStyle = (isDark, custom) => {
|
|
1385
|
-
if (custom?.
|
|
1386
|
-
return `display:flex;align-items:center;justify-content:center;font-weight:600;padding:
|
|
1385
|
+
if (custom?.headerBackground) {
|
|
1386
|
+
return `display:flex;align-items:center;justify-content:center;font-weight:600;padding:13px 0;font-size:15px;letter-spacing:-0.01em;background:${custom.headerBackground};color:${isLightColor(custom.headerBackground, isDark) ? "#222" : "#fff"};transition:background 0.2s,color 0.2s`;
|
|
1387
1387
|
}
|
|
1388
1388
|
const bg = isDark ? "#141412" : "#faf9f5";
|
|
1389
1389
|
const fg = isDark ? "#f3f1ea" : "#181715";
|
|
1390
1390
|
const border = isDark ? "rgba(255,255,255,0.07)" : "rgba(24,23,21,0.08)";
|
|
1391
|
-
return `display:flex;align-items:center;justify-content:center;font-weight:600;padding:
|
|
1391
|
+
return `display:flex;align-items:center;justify-content:center;font-weight:600;padding:13px 0;font-size:15px;letter-spacing:-0.01em;background:${bg};color:${fg};border-bottom:1px solid ${border};transition:background 0.2s,color 0.2s,border-color 0.2s`;
|
|
1392
1392
|
};
|
|
1393
1393
|
var emptySuggestionsWrapStyle = "max-width:680px;width:100%;padding:20px 12px;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;gap:20px";
|
|
1394
1394
|
var emptyHeadingStyle = (isDark, textColor) => `font-size:15px;font-weight:500;line-height:1.5;max-width:520px;color:${textColor ?? (isDark ? "#d6d3cb" : "#57534e")}`;
|
|
@@ -4739,10 +4739,12 @@ var headerButtonStyle = "background:transparent;border:none;cursor:pointer;color
|
|
|
4739
4739
|
var messageContainerStyle = (isDark, custom) => `flex-grow:1;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;min-height:0;scrollbar-color:${custom?.scrollbarColor ?? (isDark ? "#2a2a2a #111" : "#cbd5e1 #e2e8f0")};scrollbar-width:thin`;
|
|
4740
4740
|
var isTransparentInput = (custom) => custom?.inputBackground === "transparent";
|
|
4741
4741
|
var sendButtonStyle = (isDark, custom) => {
|
|
4742
|
-
const
|
|
4743
|
-
|
|
4742
|
+
const transparent = isTransparentInput(custom);
|
|
4743
|
+
const width = transparent ? "36px" : "44px";
|
|
4744
|
+
const shadow = transparent ? "none" : isDark ? "0 2px 10px rgba(0,0,0,0.32)" : "0 2px 8px rgba(24,23,21,0.06)";
|
|
4745
|
+
return `width:${width};height:44px;min-width:${width};border-radius:50%;border:none;box-shadow:${shadow};cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:18px;line-height:1;padding:0;transition:background 0.2s,color 0.2s,border-color 0.2s,box-shadow 0.2s,transform 0.15s;flex-shrink:0;background:${custom?.inputBackground ?? defaultInputBackground(isDark)};color:${inputTextColor(isDark, custom)}`;
|
|
4744
4746
|
};
|
|
4745
|
-
var attachButtonStyle = (isDark, custom) => `background:none;border:none;cursor:pointer;color:${inputSurfaceIsLight(isDark, custom) ? "#
|
|
4747
|
+
var attachButtonStyle = (isDark, custom) => `background:none;border:none;cursor:pointer;color:${inputSurfaceIsLight(isDark, custom) ? "#78736a" : "#8c877d"};width:36px;height:36px;padding:0;border-radius:50%;font-size:18px;line-height:1;display:flex;align-items:center;justify-content:center;transition:color 0.15s,background 0.15s`;
|
|
4746
4748
|
var recordingIndicatorStyle = (isDark) => `background:${isDark ? "#7f1d1d" : "#991b1b"};color:#fff;padding:10px 16px;display:flex;align-items:center;justify-content:space-between;font-size:14px`;
|
|
4747
4749
|
var attachMenuStyle = (isDark) => `position:absolute;bottom:calc(100% + 8px);right:0;background:${isDark ? "#1a1a1a" : "#ffffff"};border:1px solid ${isDark ? "#2a2a2a" : "#e5e7eb"};border-radius:8px;box-shadow:0 4px 12px ${isDark ? "rgba(0,0,0,0.5)" : "rgba(0,0,0,0.15)"};z-index:200;min-width:140px;overflow:hidden`;
|
|
4748
4750
|
var attachMenuItemStyle = (isDark) => `display:flex;align-items:center;gap:8px;width:100%;padding:10px 14px;background:transparent;border:none;cursor:pointer;font-size:14px;color:${isDark ? "#e5e7eb" : "#1a1a1a"};white-space:nowrap`;
|
|
@@ -4754,7 +4756,7 @@ var autocompleteItemKeyStyle = (isDark, custom) => `font-size:11px;font-family:m
|
|
|
4754
4756
|
var textareaStyle = (isDark, custom, enableAttachments, height = minTextareaHeight, overflow = "hidden") => {
|
|
4755
4757
|
const transparent = isTransparentInput(custom);
|
|
4756
4758
|
const border = transparent ? "none" : `1px solid ${inputBorderColor(isDark, custom)}`;
|
|
4757
|
-
const shadow = transparent ? "none" : isDark ? "0 2px
|
|
4759
|
+
const shadow = transparent ? "none" : isDark ? "0 2px 12px rgba(0,0,0,0.36)" : "0 2px 10px rgba(24,23,21,0.05)";
|
|
4758
4760
|
return `width:100%;box-sizing:border-box;padding:${enableAttachments ? "10px 40px 10px 16px" : "10px 16px"};border:${border};box-shadow:${shadow};border-radius:22px;background:${custom?.inputBackground ?? defaultInputBackground(isDark)};color:${inputTextColor(isDark, custom)};font-size:15px;outline:none;resize:none;box-sizing:border-box;height:${height}px;min-height:${minTextareaHeight}px;margin:0;overflow-y:${overflow};overflow-x:hidden;max-height:${maxTextareaHeight}px;line-height:1.5;transition:background 0.2s,color 0.2s,border-color 0.2s,box-shadow 0.2s;font-family:inherit;letter-spacing:0.1px;scrollbar-color:${custom?.scrollbarColor ?? (isDark ? "#2a2824 #141412" : "#d6d2c7 #f6f4ee")};scrollbar-width:thin`;
|
|
4759
4761
|
};
|
|
4760
4762
|
var kebabHoverCss2 = `.msg-bubble .msg-kebab{opacity:0;transition:opacity .15s}.msg-bubble:hover .msg-kebab,.msg-kebab[data-open]{opacity:.7}.suggested-message-btn:hover{transform:translateY(-1px);filter:brightness(1.06)}.suggested-message-btn:active{transform:translateY(0)}`;
|
|
@@ -5600,8 +5602,8 @@ var ChatBox = class extends LitElement8 {
|
|
|
5600
5602
|
});
|
|
5601
5603
|
};
|
|
5602
5604
|
_hoverBtnIn = (e) => {
|
|
5603
|
-
const headerIsLight = this.customColors?.
|
|
5604
|
-
e.currentTarget.style.background = headerIsLight ? "rgba(24,23,21,0.06)" : "rgba(255,255,255,0.
|
|
5605
|
+
const headerIsLight = this.customColors?.headerBackground ? isLightColor(this.customColors.headerBackground, this._effectiveDark) : !this._effectiveDark;
|
|
5606
|
+
e.currentTarget.style.background = headerIsLight ? "rgba(24,23,21,0.06)" : "rgba(255,255,255,0.1)";
|
|
5605
5607
|
};
|
|
5606
5608
|
_hoverBtnOut = (e) => {
|
|
5607
5609
|
e.currentTarget.style.background = "transparent";
|
|
@@ -5719,7 +5721,7 @@ var ChatBox = class extends LitElement8 {
|
|
|
5719
5721
|
const showActionBtn = showMic || showStop || showSendBtn;
|
|
5720
5722
|
const inputBgColor = customColors?.inputBackground ?? defaultInputBackground(isDark);
|
|
5721
5723
|
const activePrimary = customColors?.primary ?? defaultPrimary(isDark);
|
|
5722
|
-
const headerIsLight = customColors?.
|
|
5724
|
+
const headerIsLight = customColors?.headerBackground ? isLightColor(customColors.headerBackground, isDark) : !isDark;
|
|
5723
5725
|
const handleButtonClick = () => {
|
|
5724
5726
|
if (showMic) {
|
|
5725
5727
|
if (!this._isMobile) this._startRecording();
|
|
@@ -5852,8 +5854,18 @@ var ChatBox = class extends LitElement8 {
|
|
|
5852
5854
|
}
|
|
5853
5855
|
${isTransparentInput(customColors) ? "" : `[data-testid="message-input"]:focus {
|
|
5854
5856
|
border-color: ${inputFocusBorderColor(isDark, customColors)} !important;
|
|
5855
|
-
box-shadow: ${isDark ? "0
|
|
5857
|
+
box-shadow: ${isDark ? "0 4px 18px rgba(0,0,0,0.48)" : "0 4px 16px rgba(24,23,21,0.09)"} !important;
|
|
5856
5858
|
}`}
|
|
5859
|
+
[data-testid="attach-button"]:hover {
|
|
5860
|
+
color: ${inputTextColor(isDark, customColors)} !important;
|
|
5861
|
+
background: ${inputSurfaceIsLight(isDark, customColors) ? "rgba(24,23,21,0.05)" : "rgba(255,255,255,0.07)"} !important;
|
|
5862
|
+
}
|
|
5863
|
+
[data-testid="send-button"]:hover {
|
|
5864
|
+
transform: scale(1.04);
|
|
5865
|
+
}
|
|
5866
|
+
[data-testid="send-button"]:active {
|
|
5867
|
+
transform: scale(0.96);
|
|
5868
|
+
}
|
|
5857
5869
|
@keyframes fadeInUp {
|
|
5858
5870
|
from {
|
|
5859
5871
|
opacity: 0;
|
|
@@ -6097,8 +6109,8 @@ var ChatBox = class extends LitElement8 {
|
|
|
6097
6109
|
</div>
|
|
6098
6110
|
` : nothing4}
|
|
6099
6111
|
|
|
6100
|
-
<div>
|
|
6101
|
-
<div style="display:flex;align-items:flex-end;padding:${isTransparentInput(customColors) ? "0" : "
|
|
6112
|
+
<div style="${isTransparentInput(customColors) ? "" : `background:linear-gradient(to top, ${customColors?.background ?? (isDark ? "#0c0c0b" : "#f6f4ee")} 62%, transparent)`}">
|
|
6113
|
+
<div style="display:flex;align-items:flex-end;padding:${isTransparentInput(customColors) ? "0" : "10px 14px calc(14px + env(safe-area-inset-bottom, 0px))"};gap:${isTransparentInput(customColors) ? "0px" : "8px"};${customColors?.inputMaxWidth ? `max-width:${customColors.inputMaxWidth};margin:0 auto;width:100%;box-sizing:border-box` : contentMaxWidthStyle(customColors)}">
|
|
6102
6114
|
<input
|
|
6103
6115
|
data-file-input
|
|
6104
6116
|
type="file"
|
|
@@ -8160,8 +8172,8 @@ var defaultColors = {
|
|
|
8160
8172
|
startButton: "hsl(215,34%,28%)",
|
|
8161
8173
|
startButtonText: "#ffffff",
|
|
8162
8174
|
startShadow: "0 4px 14px rgba(0, 0, 0, 0.45)",
|
|
8163
|
-
inputBackground: "#
|
|
8164
|
-
inputBorder: "#
|
|
8175
|
+
inputBackground: "#1c1b19",
|
|
8176
|
+
inputBorder: "#2e2d29",
|
|
8165
8177
|
inputText: "#f3f1ea"
|
|
8166
8178
|
}
|
|
8167
8179
|
};
|
|
@@ -8180,7 +8192,7 @@ var resolveAppearance = (colorScheme, prefersDark) => {
|
|
|
8180
8192
|
},
|
|
8181
8193
|
...inputBg && {
|
|
8182
8194
|
inputText: inputIsLight ? "#181715" : "#f3f1ea",
|
|
8183
|
-
inputBorder: inputIsLight ? "#e7e4dc" : "#
|
|
8195
|
+
inputBorder: inputIsLight ? "#e7e4dc" : "#2e2d29"
|
|
8184
8196
|
}
|
|
8185
8197
|
};
|
|
8186
8198
|
const colorSchemeValue = hasLight && hasDark ? "light dark" : mode;
|
|
@@ -8246,7 +8258,7 @@ var widgetBaseCss = ({ colorScheme, headerColor, hoverBg }) => `
|
|
|
8246
8258
|
}
|
|
8247
8259
|
`;
|
|
8248
8260
|
var startButtonCss = (colors, hasText) => hasText ? `padding:10px 20px;border-radius:8px;border:none;background:${colors.startButton};color:${colors.startButtonText};cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:500;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;box-shadow:0 2px 8px ${colors.startShadow}` : `width:48px;height:48px;border-radius:50%;border:none;background:${colors.startButton};color:${colors.startButtonText};cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:20px;box-shadow:0 2px 8px ${colors.startShadow}`;
|
|
8249
|
-
var containerCss = ({ isMobile, isDark, isOpen, viewportHeight }) => isOpen ? isMobile ? `position:absolute;top:0;left:0;width:100%;height:${viewportHeight ? `${viewportHeight}px` : "100%"};display:flex;flex-direction:column;overflow:hidden;background:#fff;animation:widget-mobile-open 0.28s cubic-bezier(0.16, 1, 0.3, 1)` : `position:absolute;right:24px;bottom:24px;flex-direction:column;width:min(400px, 90vw);height:min(80dvh, 720px);max-width:calc(100vw - 48px);max-height:calc(100dvh - 48px);box-shadow:${isDark ? "0
|
|
8261
|
+
var containerCss = ({ isMobile, isDark, isOpen, viewportHeight }) => isOpen ? isMobile ? `position:absolute;top:0;left:0;width:100%;height:${viewportHeight ? `${viewportHeight}px` : "100%"};display:flex;flex-direction:column;overflow:hidden;background:#fff;animation:widget-mobile-open 0.28s cubic-bezier(0.16, 1, 0.3, 1)` : `position:absolute;right:24px;bottom:24px;flex-direction:column;width:min(400px, 90vw);height:min(80dvh, 720px);max-width:calc(100vw - 48px);max-height:calc(100dvh - 48px);border:1px solid ${isDark ? "rgba(255,255,255,0.11)" : "rgba(24,23,21,0.09)"};box-shadow:${isDark ? "0 20px 50px rgba(0,0,0,0.72)" : "0 18px 44px rgba(24,23,21,0.12),0 2px 8px rgba(24,23,21,0.05)"};display:flex;border-radius:16px;overflow:hidden;transform-origin:bottom right;animation:widget-open 0.28s cubic-bezier(0.16, 1, 0.3, 1)` : "position:absolute;right:24px;bottom:24px;display:flex;flex-direction:column";
|
|
8250
8262
|
var chatWrapperCss = "display:flex;flex-direction:column;width:100%;height:100%;min-height:0;overflow:hidden";
|
|
8251
8263
|
var overlayCss = (colors) => `position:fixed;inset:0;z-index:10002;background:${colors.overlay};display:flex;align-items:center;justify-content:center;padding:16px;font-family:${fontStack};animation:widget-fade-in 0.2s ease-out`;
|
|
8252
8264
|
var toastCss = "position:fixed;top:24px;left:50%;transform:translateX(-50%);z-index:10003;background:#ef4444;color:#fff;padding:10px 20px;border-radius:8px;font-size:14px;font-family:sans-serif;box-shadow:0 4px 12px rgba(0,0,0,0.15);pointer-events:none;transition:opacity 0.3s";
|
|
@@ -8586,9 +8598,9 @@ var createWidget = (params) => {
|
|
|
8586
8598
|
const appearance = () => resolveAppearance(colorScheme, isDark);
|
|
8587
8599
|
const updateShadowContent = () => {
|
|
8588
8600
|
const app = appearance();
|
|
8589
|
-
const
|
|
8590
|
-
const headerColor =
|
|
8591
|
-
const hoverBg =
|
|
8601
|
+
const headerIsLight = app.mode === "light";
|
|
8602
|
+
const headerColor = headerIsLight ? "#181715" : "#f3f1ea";
|
|
8603
|
+
const hoverBg = headerIsLight ? "rgba(24,23,21,0.06)" : "rgba(255,255,255,0.1)";
|
|
8592
8604
|
styleEl.textContent = widgetBaseCss({
|
|
8593
8605
|
colorScheme: app.colorSchemeValue,
|
|
8594
8606
|
headerColor,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alice-and-bot",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.74",
|
|
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",
|