@eshal-bot/chat-widget 0.1.113 → 0.1.114
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/dist/{chat-widget-MarkdownRenderer-BgfZioLe.esm.js → chat-widget-MarkdownRenderer-0Bwx90p-.esm.js} +1 -1
- package/dist/{chat-widget-index-DWLdojrt.esm.js → chat-widget-index-DngtpZEU.esm.js} +3 -3
- package/dist/chat-widget.esm.js +1 -1
- package/dist/chat-widget.js +18 -3
- package/dist/chat-widget.min.js +3 -3
- package/dist/chat-widget.umd.js +1 -1
- package/package.json +1 -1
package/dist/chat-widget.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{S as default}from"./chat-widget-index-
|
|
1
|
+
export{S as default}from"./chat-widget-index-DngtpZEU.esm.js";import"react";import"react-dom/client";import"react-dom";import"react/jsx-runtime";
|
package/dist/chat-widget.js
CHANGED
|
@@ -15077,6 +15077,7 @@
|
|
|
15077
15077
|
isDark,
|
|
15078
15078
|
primaryColor,
|
|
15079
15079
|
agentMessageBubbleColor,
|
|
15080
|
+
resolvedAgentBubbleColor,
|
|
15080
15081
|
textColor,
|
|
15081
15082
|
assistantTextColor,
|
|
15082
15083
|
fontFamily,
|
|
@@ -15188,7 +15189,14 @@
|
|
|
15188
15189
|
setPendingFeedback(null);
|
|
15189
15190
|
}, []);
|
|
15190
15191
|
const isError = (message === null || message === void 0 ? void 0 : message.isError) === true;
|
|
15191
|
-
|
|
15192
|
+
// EV-2677: ChatWindow computes resolvedAgentBubbleColor (dark-mode-aware -
|
|
15193
|
+
// see its useMemo) but this used to fall through to agentMessageBubbleColor
|
|
15194
|
+
// (raw) / a hardcoded isDark ternary instead, same dead-path bug already
|
|
15195
|
+
// fixed for resolvedUserMessageColor above. No visible symptom today since
|
|
15196
|
+
// ChatWindow's dark-mode default (#1f2937) coincidentally matches this
|
|
15197
|
+
// component's own fallback, but wiring it through removes the duplicate,
|
|
15198
|
+
// independently-maintained color logic.
|
|
15199
|
+
const bubbleColor = isError ? isDark ? "rgba(239,68,68,0.15)" : "#fee2e2" : resolvedAgentBubbleColor !== undefined && resolvedAgentBubbleColor !== null ? resolvedAgentBubbleColor : agentMessageBubbleColor !== undefined && agentMessageBubbleColor !== null ? agentMessageBubbleColor : isDark ? "#1f2937" : "#FFFFFF";
|
|
15192
15200
|
const hasCustomBubbleColor = agentMessageBubbleColor !== undefined && agentMessageBubbleColor !== null && agentMessageBubbleColor !== "#ffffff" && agentMessageBubbleColor !== "#FFFFFF" && agentMessageBubbleColor !== "#1f2937";
|
|
15193
15201
|
const messageTextColor = isError ? isDark ? "#fca5a5" : "#991b1b" : assistantTextColor !== undefined && assistantTextColor !== null ? assistantTextColor : textColor !== undefined && textColor !== null ? textColor : isDark ? "#f3f4f6" : "#1A1A1A";
|
|
15194
15202
|
const messageFontFamily = agentMessageBubbleFontFamily !== undefined && agentMessageBubbleFontFamily !== null ? agentMessageBubbleFontFamily : fontFamily !== undefined && fontFamily !== null ? fontFamily : "Inter";
|
|
@@ -15571,6 +15579,7 @@
|
|
|
15571
15579
|
isDark: isDark,
|
|
15572
15580
|
primaryColor: primaryColor,
|
|
15573
15581
|
agentMessageBubbleColor: agentMessageBubbleColor,
|
|
15582
|
+
resolvedAgentBubbleColor: resolvedAgentBubbleColor,
|
|
15574
15583
|
textColor: textColor,
|
|
15575
15584
|
assistantTextColor: assistantTextColor,
|
|
15576
15585
|
fontFamily: fontFamily,
|
|
@@ -16657,6 +16666,7 @@
|
|
|
16657
16666
|
isDark: isDark,
|
|
16658
16667
|
primaryColor: primaryColor,
|
|
16659
16668
|
agentMessageBubbleColor: agentMessageBubbleColor,
|
|
16669
|
+
resolvedAgentBubbleColor: resolvedAgentBubbleColor,
|
|
16660
16670
|
userMessageBoxColor: userMessageBoxColor,
|
|
16661
16671
|
textColor: textColor,
|
|
16662
16672
|
assistantTextColor: assistantTextColor,
|
|
@@ -17537,6 +17547,7 @@
|
|
|
17537
17547
|
onboardingEnabled = false,
|
|
17538
17548
|
userMessageBubbleFontSize,
|
|
17539
17549
|
userMessageBoxColor,
|
|
17550
|
+
resolvedUserMessageColor,
|
|
17540
17551
|
userTextColor,
|
|
17541
17552
|
promptSuggestions,
|
|
17542
17553
|
onPromptSuggestionClick,
|
|
@@ -17813,8 +17824,11 @@
|
|
|
17813
17824
|
};
|
|
17814
17825
|
}, []);
|
|
17815
17826
|
|
|
17816
|
-
//
|
|
17817
|
-
|
|
17827
|
+
// EV-2677: match UserMessage styling for prompt suggestion pills - it reads
|
|
17828
|
+
// resolvedUserMessageColor first (see MessageBubble.jsx's UserMessage), so
|
|
17829
|
+
// this must too, or an unconfigured org gets gray message bubbles but blue
|
|
17830
|
+
// suggestion pills.
|
|
17831
|
+
const promptPrimary = resolvedUserMessageColor !== undefined && resolvedUserMessageColor !== null ? resolvedUserMessageColor : userMessageBoxColor !== undefined && userMessageBoxColor !== null ? userMessageBoxColor : primaryColor !== undefined && primaryColor !== null ? primaryColor : "#2563eb";
|
|
17818
17832
|
const promptTextColor = userTextColor !== undefined && userTextColor !== null ? userTextColor : textColor !== undefined && textColor !== null ? textColor : "#FFFFFF";
|
|
17819
17833
|
const promptFontFamily = userMessageBubbleFontFamily !== undefined && userMessageBubbleFontFamily !== null ? userMessageBubbleFontFamily : fontFamily !== undefined && fontFamily !== null ? fontFamily : "Inter";
|
|
17820
17834
|
const promptFontSize = userMessageBubbleFontSize !== undefined && userMessageBubbleFontSize !== null ? userMessageBubbleFontSize : fontSize !== undefined && fontSize !== null ? fontSize : "14px";
|
|
@@ -20105,6 +20119,7 @@
|
|
|
20105
20119
|
onboardingCompleted: onboardingCompleted,
|
|
20106
20120
|
onboardingEnabled: onboardingEnabled,
|
|
20107
20121
|
userMessageBoxColor: userMessageBoxColor,
|
|
20122
|
+
resolvedUserMessageColor: resolvedUserMessageColor,
|
|
20108
20123
|
userTextColor: userTextColor,
|
|
20109
20124
|
promptSuggestions: showResolveForm || isConversationResolved || autoPromptEnabled === false || isLoading ? [] : stablePromptSuggestions,
|
|
20110
20125
|
onPromptSuggestionClick: stableOnPromptSuggestionClick,
|