@eshal-bot/chat-widget 0.1.57 → 0.1.58
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.js
CHANGED
|
@@ -60900,7 +60900,7 @@
|
|
|
60900
60900
|
defaultLanguage = "en"
|
|
60901
60901
|
} = _ref;
|
|
60902
60902
|
const resolvedHeaderBg = primaryColor;
|
|
60903
|
-
const resolvedHeaderText = headerTextColor ||
|
|
60903
|
+
const resolvedHeaderText = headerTextColor || "#FFFFFF";
|
|
60904
60904
|
const resolvedHeaderFontFamily = headerFontFamily || fontFamily || "Inter";
|
|
60905
60905
|
const resolvedHeaderFontSize = headerFontSize || fontSize;
|
|
60906
60906
|
useGoogleFont(resolvedHeaderFontFamily);
|
|
@@ -62496,7 +62496,7 @@
|
|
|
62496
62496
|
} = _ref;
|
|
62497
62497
|
const t = reactExports.useMemo(() => createTranslator(defaultLanguage), [defaultLanguage]);
|
|
62498
62498
|
const launcherBg = primaryColor;
|
|
62499
|
-
const iconColor = headerTextColor ||
|
|
62499
|
+
const iconColor = headerTextColor || "#FFFFFF";
|
|
62500
62500
|
return /*#__PURE__*/jsxRuntimeExports.jsxs("button", {
|
|
62501
62501
|
onClick: onToggle,
|
|
62502
62502
|
className: "group relative w-16 h-16 rounded-full shadow-2xl transition-all duration-300 flex items-center justify-center text-white overflow-hidden ".concat(isOpen ? "rotate-0 scale-100" : "hover:scale-110"),
|
|
@@ -62660,7 +62660,7 @@
|
|
|
62660
62660
|
|
|
62661
62661
|
// Map API response to widget props (use props as overrides if provided)
|
|
62662
62662
|
const widgetConfig = reactExports.useMemo(() => {
|
|
62663
|
-
var _agentConfig$config, _cfg$identity, _cfg$branding, _cfg$typography, _cfg$messages, _cfg$voice, _cfg$onboarding, _cfg$disclaimer, _cfg$csat, _cfg$inactivity, _cfg$behavior, _cfg$security, _cfg$layout, _ref2, _messages$bundles$loc, _messages$bundles, _messages$bundles$en, _messages$bundles2, _ref3, _ref4, _ref5, _ref6, _branding$chatbotAvat, _branding$chatbotAvat2, _ref7, _ref8, _ref9, _ref0, _ref1, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18, _inactivity$timeoutVa, _inactivity$timeoutUn, _ref19, _ref20, _ref21, _ref22, _ref23, _ref24, _ref25, _ref26, _csat$enabled, _csat$format, _csat$prompt, _csat$triggerType, _csat$idleTimeoutMins, _csat$followUpEnabled, _csat$followUpPrompt, _behavior$autoPromptE, _behavior$allowFeedba, _behavior$provideCita;
|
|
62663
|
+
var _agentConfig$config, _cfg$identity, _cfg$branding, _cfg$typography, _cfg$messages, _cfg$voice, _cfg$onboarding, _cfg$disclaimer, _cfg$csat, _cfg$inactivity, _cfg$behavior, _cfg$security, _cfg$layout, _ref2, _messages$bundles$loc, _messages$bundles, _messages$bundles$en, _messages$bundles2, _ref3, _ref4, _ref5, _ref6, _branding$chatbotAvat, _branding$chatbotAvat2, _ref7, _ref8, _ref9, _ref0, _ref1, _ref10, _ref11, _ref12, _typography$headerTex, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18, _inactivity$timeoutVa, _inactivity$timeoutUn, _ref19, _ref20, _ref21, _ref22, _ref23, _ref24, _ref25, _ref26, _csat$enabled, _csat$format, _csat$prompt, _csat$triggerType, _csat$idleTimeoutMins, _csat$followUpEnabled, _csat$followUpPrompt, _behavior$autoPromptE, _behavior$allowFeedba, _behavior$provideCita;
|
|
62664
62664
|
if (!agentConfig) {
|
|
62665
62665
|
return null;
|
|
62666
62666
|
}
|
|
@@ -62722,7 +62722,7 @@
|
|
|
62722
62722
|
organizationId: orgId,
|
|
62723
62723
|
headerTextBold: (_ref11 = headerTextBold !== null && headerTextBold !== void 0 ? headerTextBold : typography.headerTextBold) !== null && _ref11 !== void 0 ? _ref11 : false,
|
|
62724
62724
|
headerTextItalic: (_ref12 = headerTextItalic !== null && headerTextItalic !== void 0 ? headerTextItalic : typography.headerTextItalic) !== null && _ref12 !== void 0 ? _ref12 : false,
|
|
62725
|
-
headerTextColor: typography.headerTextColor,
|
|
62725
|
+
headerTextColor: (_typography$headerTex = typography.headerTextColor) !== null && _typography$headerTex !== void 0 ? _typography$headerTex : "#FFFFFF",
|
|
62726
62726
|
headerFontFamily: typography.headerFontFamily,
|
|
62727
62727
|
headerFontSize: typography.headerFontSize,
|
|
62728
62728
|
enableVoiceInteraction: (_ref13 = enableVoiceInteraction !== null && enableVoiceInteraction !== void 0 ? enableVoiceInteraction : voice.enableVoiceInteraction) !== null && _ref13 !== void 0 ? _ref13 : false,
|