impact-chatbot 2.3.89 → 2.3.90
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/index.cjs.js +9 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +9 -8
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -4236,10 +4236,11 @@ const useStyles$a = styles.makeStyles((theme) => ({
|
|
|
4236
4236
|
},
|
|
4237
4237
|
hideBotStyle: {
|
|
4238
4238
|
"& .chatbot-component-container": {
|
|
4239
|
-
width: "0px",
|
|
4240
|
-
height: "0px",
|
|
4241
|
-
opacity: "0",
|
|
4242
|
-
position: "fixed",
|
|
4239
|
+
width: "0px !important",
|
|
4240
|
+
height: "0px !important",
|
|
4241
|
+
opacity: "0 !important",
|
|
4242
|
+
position: "fixed !important",
|
|
4243
|
+
pointerEvents: "none !important",
|
|
4243
4244
|
}
|
|
4244
4245
|
},
|
|
4245
4246
|
radioGrpLabel: {
|
|
@@ -13721,9 +13722,9 @@ const ChatbotInput = (props) => {
|
|
|
13721
13722
|
}, [showAnswerModeMenu]);
|
|
13722
13723
|
const ANSWER_MODE_OPTIONS = [
|
|
13723
13724
|
{ value: "fast", label: "Fast", description: "Speed over depth" },
|
|
13724
|
-
{ value: "auto", label: "
|
|
13725
|
+
{ value: "auto", label: "Deep Analysis", description: "Adapts depth, detail, and visuals" },
|
|
13725
13726
|
];
|
|
13726
|
-
const selectedModeOption = ANSWER_MODE_OPTIONS.find((opt) => opt.value === answerMode) || ANSWER_MODE_OPTIONS[
|
|
13727
|
+
const selectedModeOption = ANSWER_MODE_OPTIONS.find((opt) => opt.value === answerMode) || ANSWER_MODE_OPTIONS[0];
|
|
13727
13728
|
return (jsxRuntime.jsx("div", { className: "chat-input-container", ref: chatInputContainerRef, onClick: (e) => {
|
|
13728
13729
|
// Focus editor when clicking anywhere in the input container
|
|
13729
13730
|
// unless clicking on a button or interactive element
|
|
@@ -15216,7 +15217,7 @@ const SmartBot = (props) => {
|
|
|
15216
15217
|
const [filterOptions, setFilterOptions] = React.useState([]);
|
|
15217
15218
|
const [savedFilterSets, setSavedFilterSets] = React.useState([]);
|
|
15218
15219
|
const [selectedFilterSet, setSelectedFilterSet] = React.useState(null);
|
|
15219
|
-
const [answerMode, setAnswerMode] = React.useState("
|
|
15220
|
+
const [answerMode, setAnswerMode] = React.useState("fast");
|
|
15220
15221
|
const [chatBotWidth, setChatBotWidth] = React.useState(null);
|
|
15221
15222
|
const [tabList, setTabList] = React.useState([]);
|
|
15222
15223
|
React.useRef(0);
|
|
@@ -16261,7 +16262,7 @@ const SmartBot = (props) => {
|
|
|
16261
16262
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [partialClose && (minimizedStreamData?.isStreaming || minimizedStreamData?.stepStatus === "step_form") && (jsxRuntime.jsx(MinimizedChatWidget, { onExpand: () => {
|
|
16262
16263
|
setShowModal(true);
|
|
16263
16264
|
setPartialClose(false);
|
|
16264
|
-
} })), jsxRuntime.jsxs("div", { ref: smartBotWrapperRef, className: `${classes.agentStyleOverride} ${partialClose ? classes.hideBotStyle : ""} `, children: [jsxRuntime.jsx(MemoryModal, { isModalOpen: isModalOpen, setIsModalOpen: setIsModalOpen, displaySnackMessages: displaySnackMessages }), jsxRuntime.jsx(UploadModal, { isUploadModalOpen: isUploadModalOpen, setIsUploadModalOpen: setIsUploadModalOpen, displaySnackMessages: displaySnackMessages }), jsxRuntime.jsx(impactUiV3.ChatBotComponent, { isFullWidth: forceOpen, userName: userName, showHistoryPanel: false, customInputComponent: currentMode === "agent" && !showSavedFilters ? (jsxRuntime.jsx(ChatbotInput, { newChatScreen: newChatScreen, inputValue: userInput, setInputValue: setUserInput, isStopIcon: isStop, onSendIconClick: onSendIconClick, onStopIconClick: onStopIconClick, currentMode: currentMode, filterOptions: filterOptions,
|
|
16265
|
+
} })), jsxRuntime.jsxs("div", { ref: smartBotWrapperRef, className: `${classes.agentStyleOverride} ${partialClose || !(showModal || forceOpen) ? classes.hideBotStyle : ""} `, children: [jsxRuntime.jsx(MemoryModal, { isModalOpen: isModalOpen, setIsModalOpen: setIsModalOpen, displaySnackMessages: displaySnackMessages }), jsxRuntime.jsx(UploadModal, { isUploadModalOpen: isUploadModalOpen, setIsUploadModalOpen: setIsUploadModalOpen, displaySnackMessages: displaySnackMessages }), jsxRuntime.jsx(impactUiV3.ChatBotComponent, { isFullWidth: forceOpen, userName: userName, showHistoryPanel: false, customInputComponent: currentMode === "agent" && !showSavedFilters ? (jsxRuntime.jsx(ChatbotInput, { newChatScreen: newChatScreen, inputValue: userInput, setInputValue: setUserInput, isStopIcon: isStop, onSendIconClick: onSendIconClick, onStopIconClick: onStopIconClick, currentMode: currentMode, filterOptions: filterOptions,
|
|
16265
16266
|
// onSaveClick={saveCurrentChat}
|
|
16266
16267
|
savedFilterSets: savedFilterSets, selectedFilterSet: selectedFilterSet, onFilterSetSelect: (filterSet) => setSelectedFilterSet(filterSet), onClearFilterSet: () => setSelectedFilterSet(null), onTriggerRefresh: triggerRefreshAction, answerMode: answerMode, setAnswerMode: setAnswerMode })) : showSavedFilters ? jsxRuntime.jsx(jsxRuntime.Fragment, {}) : null, isChatBotOpen: showModal || forceOpen, historyPanelData: historyPanelData, onHistorySearchChange: (params) => { console.log("History Search Change", params); }, onHistorySelectConversation: (params) => {
|
|
16267
16268
|
console.log("History Select Conversation", params);
|