impact-chatbot 2.3.11 → 2.3.13
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/hooks/useChatFlow.d.ts +1 -1
- package/dist/hooks/useChatState.d.ts +2 -0
- package/dist/index.cjs.js +27 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +27 -6
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const useChatFlow: (chatDataRef: any, setLoader: any, setFlowType: any, setScreenName: any, setUserInput: any, setQuestionIndex: any, setCurrentAppLink: any, flowType: any, screenName: any, questionIndex: any, userInput: any, dateFormat: any, currentMode: any, activeConversationId: any, setIsModuleChanged: any, chatBodyRef: any, filterReducerState: any, dispatch: any, navigate: any, setShowChatPlaceholder: any, baseUrl: any, setChatDataState: any, setCurrentSessionId: any, customChatConfig: any, chatDataInfoRef: any, chatbotContext: any, setInitValue: any, setSessionId: any, thinkingContent: any, setThinkingContent: any, isThinking: any, setIsThinking: any, chatId: any, setChatId: any, isStop: any, setIsStop: any, functionsRef: any, functionsState: any, setFunctionsState: any, thinkingHeaderMessage: any, setThinkingHeaderMessage: any, uniqueChatId: any, initValue: any, sessionId: any, fieldNumber: any, setFieldNumber: any) => {
|
|
1
|
+
export declare const useChatFlow: (chatDataRef: any, setLoader: any, setFlowType: any, setScreenName: any, setUserInput: any, setQuestionIndex: any, setCurrentAppLink: any, flowType: any, screenName: any, questionIndex: any, userInput: any, dateFormat: any, currentMode: any, activeConversationId: any, setIsModuleChanged: any, chatBodyRef: any, filterReducerState: any, dispatch: any, navigate: any, setShowChatPlaceholder: any, baseUrl: any, setChatDataState: any, setCurrentSessionId: any, customChatConfig: any, chatDataInfoRef: any, chatbotContext: any, setInitValue: any, setSessionId: any, thinkingContent: any, setThinkingContent: any, isThinking: any, setIsThinking: any, chatId: any, setChatId: any, isStop: any, setIsStop: any, functionsRef: any, functionsState: any, setFunctionsState: any, thinkingHeaderMessage: any, setThinkingHeaderMessage: any, uniqueChatId: any, initValue: any, sessionId: any, fieldNumber: any, setFieldNumber: any, additionalArgs: any) => {
|
|
2
2
|
setUserFlow: (data: any) => Promise<void>;
|
|
3
3
|
setUserScreenAndFlow: (data: any) => void;
|
|
4
4
|
fetchUserResultsFromQuery: (refObject: any, fetchQuestions?: boolean, inputValue?: any) => Promise<void>;
|
|
@@ -92,6 +92,8 @@ export declare const useChatState: () => {
|
|
|
92
92
|
setIsUploadModalOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
93
93
|
isRefreshTriggered: boolean;
|
|
94
94
|
setIsRefreshTriggered: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
95
|
+
additionalArgs: {};
|
|
96
|
+
setAdditionalArgs: import("react").Dispatch<import("react").SetStateAction<{}>>;
|
|
95
97
|
grabPositionRef: import("react").MutableRefObject<any>;
|
|
96
98
|
chatDataRef: import("react").MutableRefObject<{
|
|
97
99
|
insights: {
|
package/dist/index.cjs.js
CHANGED
|
@@ -1230,6 +1230,7 @@ const useAgentFlow = (dateFormat, chatDataRef, currentMode, setShowChatPlacehold
|
|
|
1230
1230
|
setUniqueChatId: utilityObjectData?.setUniqueChatId,
|
|
1231
1231
|
fieldNumber: utilityObjectData?.fieldNumber,
|
|
1232
1232
|
setFieldNumber: utilityObjectData?.setFieldNumber,
|
|
1233
|
+
setAdditionalArgs: utilityObjectData?.setAdditionalArgs,
|
|
1233
1234
|
baseUrl: baseUrlTemp,
|
|
1234
1235
|
};
|
|
1235
1236
|
response = await parseResponse(null, "stream", "", currentModeValue, false, "", {}, payload, utilityObject);
|
|
@@ -1757,6 +1758,7 @@ const useAgentFlow = (dateFormat, chatDataRef, currentMode, setShowChatPlacehold
|
|
|
1757
1758
|
chat_input: data?.chatInput,
|
|
1758
1759
|
delay: 0.3,
|
|
1759
1760
|
chat_id: utilityObjectData?.uniqueChatId ? utilityObjectData?.uniqueChatId : utilityObjectData?.currentAgentChatId,
|
|
1761
|
+
...(!isEmpty(utilityObjectData?.additionalArgs) ? utilityObjectData.additionalArgs : {}),
|
|
1760
1762
|
};
|
|
1761
1763
|
// Handle @ filter mentions - user_explicit_input contains filter values
|
|
1762
1764
|
if (!isEmpty(data?.userExplicitInput)) {
|
|
@@ -1922,7 +1924,7 @@ const useAgentFlow = (dateFormat, chatDataRef, currentMode, setShowChatPlacehold
|
|
|
1922
1924
|
};
|
|
1923
1925
|
};
|
|
1924
1926
|
|
|
1925
|
-
const useChatFlow = (chatDataRef, setLoader, setFlowType, setScreenName, setUserInput, setQuestionIndex, setCurrentAppLink, flowType, screenName, questionIndex, userInput, dateFormat, currentMode, activeConversationId, setIsModuleChanged, chatBodyRef, filterReducerState, dispatch, navigate, setShowChatPlaceholder, baseUrl, setChatDataState, setCurrentSessionId, customChatConfig, chatDataInfoRef, chatbotContext, setInitValue, setSessionId, thinkingContent, setThinkingContent, isThinking, setIsThinking, chatId, setChatId, isStop, setIsStop, functionsRef, functionsState, setFunctionsState, thinkingHeaderMessage, setThinkingHeaderMessage, uniqueChatId, initValue, sessionId, fieldNumber, setFieldNumber) => {
|
|
1927
|
+
const useChatFlow = (chatDataRef, setLoader, setFlowType, setScreenName, setUserInput, setQuestionIndex, setCurrentAppLink, flowType, screenName, questionIndex, userInput, dateFormat, currentMode, activeConversationId, setIsModuleChanged, chatBodyRef, filterReducerState, dispatch, navigate, setShowChatPlaceholder, baseUrl, setChatDataState, setCurrentSessionId, customChatConfig, chatDataInfoRef, chatbotContext, setInitValue, setSessionId, thinkingContent, setThinkingContent, isThinking, setIsThinking, chatId, setChatId, isStop, setIsStop, functionsRef, functionsState, setFunctionsState, thinkingHeaderMessage, setThinkingHeaderMessage, uniqueChatId, initValue, sessionId, fieldNumber, setFieldNumber, additionalArgs) => {
|
|
1926
1928
|
const { prepareDataAndSendToAgent, setAgentFlow, processResponse, } = useAgentFlow(dateFormat, chatDataRef, currentMode, setShowChatPlaceholder, setLoader, baseUrl, setCurrentSessionId, customChatConfig, chatDataInfoRef, {
|
|
1927
1929
|
setChatDataState,
|
|
1928
1930
|
activeConversationId,
|
|
@@ -1947,6 +1949,7 @@ const useChatFlow = (chatDataRef, setLoader, setFlowType, setScreenName, setUser
|
|
|
1947
1949
|
uniqueChatId,
|
|
1948
1950
|
fieldNumber,
|
|
1949
1951
|
setFieldNumber,
|
|
1952
|
+
setAdditionalArgs: () => { },
|
|
1950
1953
|
});
|
|
1951
1954
|
const getCurrentDateTimeString = () => {
|
|
1952
1955
|
return moment().format(dateFormat);
|
|
@@ -2110,6 +2113,7 @@ const useChatFlow = (chatDataRef, setLoader, setFlowType, setScreenName, setUser
|
|
|
2110
2113
|
setSessionId: setSessionId,
|
|
2111
2114
|
setInitValue: setInitValue,
|
|
2112
2115
|
uniqueChatId: uniqueChatId,
|
|
2116
|
+
additionalArgs: additionalArgs,
|
|
2113
2117
|
});
|
|
2114
2118
|
}
|
|
2115
2119
|
else if (data.actionType === "indirect") {
|
|
@@ -3884,6 +3888,7 @@ const useChatState = () => {
|
|
|
3884
3888
|
const [isModalOpen, setIsModalOpen] = React.useState(false);
|
|
3885
3889
|
const [isUploadModalOpen, setIsUploadModalOpen] = React.useState(false);
|
|
3886
3890
|
const [isRefreshTriggered, setIsRefreshTriggered] = React.useState(false);
|
|
3891
|
+
const [additionalArgs, setAdditionalArgs] = React.useState({});
|
|
3887
3892
|
// Selectors
|
|
3888
3893
|
const filterReducerState = reactRedux.useSelector((state) => state.filterReducer);
|
|
3889
3894
|
const notificationData = reactRedux.useSelector((state) => state.notificationReducer.notificationData);
|
|
@@ -4028,6 +4033,8 @@ const useChatState = () => {
|
|
|
4028
4033
|
setIsUploadModalOpen,
|
|
4029
4034
|
isRefreshTriggered,
|
|
4030
4035
|
setIsRefreshTriggered,
|
|
4036
|
+
additionalArgs,
|
|
4037
|
+
setAdditionalArgs,
|
|
4031
4038
|
// Refs
|
|
4032
4039
|
grabPositionRef,
|
|
4033
4040
|
chatDataRef,
|
|
@@ -4452,7 +4459,7 @@ const Rectangle = ({ type, icon, title, description, onClick, hoverable }) => {
|
|
|
4452
4459
|
return (jsxRuntime.jsx("div", { className: `${classes.rectangle} ${classes[type]} ${hoverable ? classes.rectangleHoverable : ''}`, onClick: onClick, children: jsxRuntime.jsxs("div", { className: classes.textContainer, children: [jsxRuntime.jsx(material.Typography, { className: classes.title, children: title }), jsxRuntime.jsx(material.Typography, { className: classes.description, children: description })] }) }));
|
|
4453
4460
|
};
|
|
4454
4461
|
const ChatPlaceholder = (props) => {
|
|
4455
|
-
const { dateFormat, chatDataRef, currentMode, setShowChatPlaceholder, setLoader, setCurrentAgentId, baseUrl, setBaseUrl, setCurrentSessionId, customChatConfig, chatDataInfoRef, setChatDataState, userInput, legacyAgentScreen, activeConversationId, chatBodyRef, chatbotContext, setInitValue, setSessionId, thinkingContent, setThinkingContent, isThinking, setIsThinking, chatId, setChatId, isStop, setIsStop, functionsRef, functionsState, setFunctionsState, thinkingHeaderMessage, setThinkingHeaderMessage, uniqueChatId, setUniqueChatId, fieldNumber, setFieldNumber, questions, displayQuestions } = props;
|
|
4462
|
+
const { dateFormat, chatDataRef, currentMode, setShowChatPlaceholder, setLoader, setCurrentAgentId, baseUrl, setBaseUrl, setCurrentSessionId, customChatConfig, chatDataInfoRef, setChatDataState, userInput, legacyAgentScreen, activeConversationId, chatBodyRef, chatbotContext, setInitValue, setSessionId, thinkingContent, setThinkingContent, isThinking, setIsThinking, chatId, setChatId, isStop, setIsStop, functionsRef, functionsState, setFunctionsState, thinkingHeaderMessage, setThinkingHeaderMessage, uniqueChatId, setUniqueChatId, fieldNumber, setFieldNumber, setAdditionalArgs, questions, displayQuestions } = props;
|
|
4456
4463
|
const classes = useStyles$5();
|
|
4457
4464
|
globalStyles();
|
|
4458
4465
|
const [cardList, setCardList] = React.useState([]);
|
|
@@ -4482,6 +4489,7 @@ const ChatPlaceholder = (props) => {
|
|
|
4482
4489
|
setUniqueChatId,
|
|
4483
4490
|
fieldNumber,
|
|
4484
4491
|
setFieldNumber,
|
|
4492
|
+
setAdditionalArgs,
|
|
4485
4493
|
});
|
|
4486
4494
|
const getBaseUrl = async () => {
|
|
4487
4495
|
try {
|
|
@@ -5102,6 +5110,9 @@ const sseevent = (message, messageToStoreRef) => {
|
|
|
5102
5110
|
messageToStoreRef.current.uniqueChatId = parsedData?.chat_id
|
|
5103
5111
|
? parsedData.chat_id
|
|
5104
5112
|
: "";
|
|
5113
|
+
messageToStoreRef.current.additionalArgs = parsedData?.additional_args
|
|
5114
|
+
? parsedData.additional_args
|
|
5115
|
+
: {};
|
|
5105
5116
|
}
|
|
5106
5117
|
// Handle widget status - capture widget_data when status is "widget"
|
|
5107
5118
|
if (parsedData?.status === "widget" && !lodash.isEmpty(parsedData?.widget_data)) {
|
|
@@ -5122,6 +5133,9 @@ const sseevent = (message, messageToStoreRef) => {
|
|
|
5122
5133
|
: "";
|
|
5123
5134
|
messageToStoreRef.current.initValue = true;
|
|
5124
5135
|
messageToStoreRef.current.status = "completed";
|
|
5136
|
+
messageToStoreRef.current.additionalArgs = parsedData?.additional_args
|
|
5137
|
+
? parsedData.additional_args
|
|
5138
|
+
: {};
|
|
5125
5139
|
}
|
|
5126
5140
|
if (parsedData?.status === "completed" ||
|
|
5127
5141
|
parsedData?.status === "follow-up") {
|
|
@@ -5947,6 +5961,7 @@ const StreamedContent = ({ botData }) => {
|
|
|
5947
5961
|
initValue: false,
|
|
5948
5962
|
sessionId: "",
|
|
5949
5963
|
uniqueChatId: "",
|
|
5964
|
+
additionalArgs: {},
|
|
5950
5965
|
});
|
|
5951
5966
|
React.useRef(new Set()); // Tracks processed message chunks to prevent duplicates
|
|
5952
5967
|
React.useRef(""); // Tracks current content before adding new chunk
|
|
@@ -6252,6 +6267,9 @@ const StreamedContent = ({ botData }) => {
|
|
|
6252
6267
|
];
|
|
6253
6268
|
botData.utilityObject.setInitValue(messageToStoreRef.current.initValue);
|
|
6254
6269
|
botData.utilityObject.setSessionId(messageToStoreRef.current.sessionId);
|
|
6270
|
+
botData.utilityObject.setAdditionalArgs(!isEmpty(messageToStoreRef.current.additionalArgs)
|
|
6271
|
+
? messageToStoreRef.current.additionalArgs
|
|
6272
|
+
: {});
|
|
6255
6273
|
if (!wasStreamingAbortedRef.current) {
|
|
6256
6274
|
botData.utilityObject.setUniqueChatId(messageToStoreRef.current.uniqueChatId);
|
|
6257
6275
|
dispatch(smartBotActions.setCurrentAgentChatId(messageToStoreRef.current.uniqueChatId));
|
|
@@ -9755,7 +9773,7 @@ let chatbotFilterCustomConfig = {
|
|
|
9755
9773
|
|
|
9756
9774
|
const SmartBot = (props) => {
|
|
9757
9775
|
const { userName, partialClose, setPartialClose, forceOpen, customBaseUrl = "", displayQuestions, questions = [] } = props;
|
|
9758
|
-
const { showModal, setShowModal, minimizedMode, setMinimizedMode, userInput, setUserInput, position, setPosition, flowType, setFlowType, screenName, setScreenName, questionIndex, setQuestionIndex, currentAppLink, setCurrentAppLink, loader, setLoader, enableRefreshAction, setEnableRefreshAction, refreshLoader, setRefreshLoader, chatDataState, setChatDataState, showExtendedContent, setShowExtendedContent, currentMode, setCurrentMode, selectedModule, setSelectedModule, isCardVisible, setIsCardVisible, templateData, setTemplateData, showAlert, setShowAlert, grabPositionRef, chatDataRef, chatBodyRef, minimizedBtnRef, chatDataScreenLinkRef, navigate, location, dispatch, globalClasses, classes, dateFormat, filterReducerState, activeConversationId, setActiveConversationId, isModuleChanged, setIsModuleChanged, showChatPlaceholder, setShowChatPlaceholder, currentAgentId, setCurrentAgentId, baseUrl = customBaseUrl, setBaseUrl, currentSessionId, setCurrentSessionId, notificationData, agentTaskCompleted, setAgentTaskCompleted, customChatConfig, setCustomChatConfig, setMiddleWareFunction, chatBotInfoRef, chatDataInfoRef, initValue, setInitValue, sessionId, setSessionId, thinkingContent, setThinkingContent, isThinking, setIsThinking, chatId, setChatId, isStop, setIsStop, functionsRef, functionsState, setFunctionsState, thinkingHeaderMessage, setThinkingHeaderMessage, legacyAgentScreen, setLegacyAgentScreen, uniqueChatId, setUniqueChatId, fieldNumber, setFieldNumber, thinkingContext, isModalOpen, setIsModalOpen, utilityList, setUtilityList, isUploadModalOpen, setIsUploadModalOpen, isRefreshTriggered, setIsRefreshTriggered, } = useChatState();
|
|
9776
|
+
const { showModal, setShowModal, minimizedMode, setMinimizedMode, userInput, setUserInput, position, setPosition, flowType, setFlowType, screenName, setScreenName, questionIndex, setQuestionIndex, currentAppLink, setCurrentAppLink, loader, setLoader, enableRefreshAction, setEnableRefreshAction, refreshLoader, setRefreshLoader, chatDataState, setChatDataState, showExtendedContent, setShowExtendedContent, currentMode, setCurrentMode, selectedModule, setSelectedModule, isCardVisible, setIsCardVisible, templateData, setTemplateData, showAlert, setShowAlert, grabPositionRef, chatDataRef, chatBodyRef, minimizedBtnRef, chatDataScreenLinkRef, navigate, location, dispatch, globalClasses, classes, dateFormat, filterReducerState, activeConversationId, setActiveConversationId, isModuleChanged, setIsModuleChanged, showChatPlaceholder, setShowChatPlaceholder, currentAgentId, setCurrentAgentId, baseUrl = customBaseUrl, setBaseUrl, currentSessionId, setCurrentSessionId, notificationData, agentTaskCompleted, setAgentTaskCompleted, customChatConfig, setCustomChatConfig, setMiddleWareFunction, chatBotInfoRef, chatDataInfoRef, initValue, setInitValue, sessionId, setSessionId, thinkingContent, setThinkingContent, isThinking, setIsThinking, chatId, setChatId, isStop, setIsStop, functionsRef, functionsState, setFunctionsState, thinkingHeaderMessage, setThinkingHeaderMessage, legacyAgentScreen, setLegacyAgentScreen, uniqueChatId, setUniqueChatId, fieldNumber, setFieldNumber, thinkingContext, isModalOpen, setIsModalOpen, utilityList, setUtilityList, isUploadModalOpen, setIsUploadModalOpen, isRefreshTriggered, setIsRefreshTriggered, additionalArgs, setAdditionalArgs, } = useChatState();
|
|
9759
9777
|
// Add state for confirmation dialogs
|
|
9760
9778
|
React.useState(false);
|
|
9761
9779
|
React.useState(null);
|
|
@@ -9779,7 +9797,7 @@ const SmartBot = (props) => {
|
|
|
9779
9797
|
const [isLandingScreen, setIsLandingScreen] = React.useState(true);
|
|
9780
9798
|
const [showSuggestionBanner, setShowSuggestionBanner] = React.useState(true);
|
|
9781
9799
|
const [filterOptions, setFilterOptions] = React.useState([]);
|
|
9782
|
-
const { setUserFlow, setUserScreenAndFlow, fetchUserResultsFromQuery, getCurrentDateTimeString, setLink, } = useChatFlow(chatDataRef, setLoader, setFlowType, setScreenName, setUserInput, setQuestionIndex, setCurrentAppLink, flowType, screenName, questionIndex, userInput, dateFormat, currentMode, activeConversationId, setIsModuleChanged, chatBodyRef, filterReducerState, dispatch, navigate, setShowChatPlaceholder, baseUrl, setChatDataState, setCurrentSessionId, customChatConfig, chatDataInfoRef, chatbotContext, setInitValue, setSessionId, thinkingContent, setThinkingContent, isThinking, setIsThinking, chatId, setChatId, isStop, setIsStop, functionsRef, functionsState, setFunctionsState, thinkingHeaderMessage, setThinkingHeaderMessage, uniqueChatId, initValue, sessionId, fieldNumber, setFieldNumber);
|
|
9800
|
+
const { setUserFlow, setUserScreenAndFlow, fetchUserResultsFromQuery, getCurrentDateTimeString, setLink, } = useChatFlow(chatDataRef, setLoader, setFlowType, setScreenName, setUserInput, setQuestionIndex, setCurrentAppLink, flowType, screenName, questionIndex, userInput, dateFormat, currentMode, activeConversationId, setIsModuleChanged, chatBodyRef, filterReducerState, dispatch, navigate, setShowChatPlaceholder, baseUrl, setChatDataState, setCurrentSessionId, customChatConfig, chatDataInfoRef, chatbotContext, setInitValue, setSessionId, thinkingContent, setThinkingContent, isThinking, setIsThinking, chatId, setChatId, isStop, setIsStop, functionsRef, functionsState, setFunctionsState, thinkingHeaderMessage, setThinkingHeaderMessage, uniqueChatId, initValue, sessionId, fieldNumber, setFieldNumber, additionalArgs);
|
|
9783
9801
|
const { parseSavedFlow, saveCurrentChanges, endCurrentSession, clearChatSession, initiateNewChat, hasUnsavedChanges, } = useChatSession(chatDataRef, setFlowType, setScreenName, setUserInput, setTemplateData, chatDataScreenLinkRef, setShowModal, setMinimizedMode, setSelectedModule, setChatDataState, currentMode, setUserFlow, getCurrentDateTimeString, setCurrentAppLink, selectedModule, fetchUserResultsFromQuery, props.closeBot, activeConversationId, setActiveConversationId, setShowChatPlaceholder);
|
|
9784
9802
|
const { refreshAndUpdateUserManual, configureBotActions, displaySnackMessages, } = useBotConfiguration(setRefreshLoader, setEnableRefreshAction, dispatch);
|
|
9785
9803
|
const { prepareDataAndSendToAgent } = useAgentFlow(dateFormat, chatDataRef, currentMode, setShowChatPlaceholder, setLoader, baseUrl, setCurrentSessionId, customChatConfig, chatDataInfoRef, {
|
|
@@ -9807,6 +9825,7 @@ const SmartBot = (props) => {
|
|
|
9807
9825
|
setUniqueChatId,
|
|
9808
9826
|
fieldNumber,
|
|
9809
9827
|
setFieldNumber,
|
|
9828
|
+
setAdditionalArgs,
|
|
9810
9829
|
});
|
|
9811
9830
|
const fetchCustomBotConfigurations = async () => {
|
|
9812
9831
|
try {
|
|
@@ -10173,7 +10192,8 @@ const SmartBot = (props) => {
|
|
|
10173
10192
|
setSessionId: setSessionId,
|
|
10174
10193
|
setInitValue: setInitValue,
|
|
10175
10194
|
uniqueChatId: uniqueChatId,
|
|
10176
|
-
currentAgentChatId: currentAgentChatId
|
|
10195
|
+
currentAgentChatId: currentAgentChatId,
|
|
10196
|
+
additionalArgs: lodash.isEmpty(userInput) ? additionalArgs : {}
|
|
10177
10197
|
});
|
|
10178
10198
|
setUserInput("");
|
|
10179
10199
|
}
|
|
@@ -10336,6 +10356,7 @@ const SmartBot = (props) => {
|
|
|
10336
10356
|
}));
|
|
10337
10357
|
setInitValue(true);
|
|
10338
10358
|
setSessionId("");
|
|
10359
|
+
setAdditionalArgs({});
|
|
10339
10360
|
setIsStop(false);
|
|
10340
10361
|
setUserInput("");
|
|
10341
10362
|
setUniqueChatId("");
|
|
@@ -10453,7 +10474,7 @@ const SmartBot = (props) => {
|
|
|
10453
10474
|
},
|
|
10454
10475
|
icon: jsxRuntime.jsx(SvgNavigationIcon, {}),
|
|
10455
10476
|
},
|
|
10456
|
-
], utilityList: utilityList, isAssistantThinking: loader, isCustomScreen: showChatPlaceholder, customScreenJsx: jsxRuntime.jsx(ChatPlaceholder, { dateFormat: dateFormat, chatDataRef: chatDataRef, currentMode: currentMode, setShowChatPlaceholder: setShowChatPlaceholder, setLoader: setLoader, setCurrentAgentId: setCurrentAgentId, baseUrl: baseUrl, setBaseUrl: setBaseUrl, setCurrentSessionId: setCurrentSessionId, customChatConfig: customChatConfig, chatDataInfoRef: chatDataInfoRef, setChatDataState: setChatDataState, userInput: userInput, legacyAgentScreen: legacyAgentScreen, activeConversationId: activeConversationId, chatBodyRef: chatBodyRef, chatbotContext: chatbotContext, setInitValue: setInitValue, setSessionId: setSessionId, thinkingContent: thinkingContext?.thinkingContent, setThinkingContent: setThinkingContent, isThinking: isThinking, setIsThinking: setIsThinking, chatId: chatId, setChatId: setChatId, isStop: isStop, setIsStop: setIsStop, functionsRef: functionsRef, functionsState: functionsState, setFunctionsState: setFunctionsState, thinkingHeaderMessage: thinkingContext?.thinkingHeaderMessage, setThinkingHeaderMessage: setThinkingHeaderMessage, uniqueChatId: uniqueChatId, setUniqueChatId: setUniqueChatId, fieldNumber: fieldNumber, setFieldNumber: setFieldNumber, displayQuestions: displayQuestions, questions: questions }), inputText: userInput, threadList: ["Home"], hideMenuArrow: hideMenu, newChatScreen: newChatScreen, isModuleListLoading: modulesLoading, suggestionBanner: {
|
|
10477
|
+
], utilityList: utilityList, isAssistantThinking: loader, isCustomScreen: showChatPlaceholder, customScreenJsx: jsxRuntime.jsx(ChatPlaceholder, { dateFormat: dateFormat, chatDataRef: chatDataRef, currentMode: currentMode, setShowChatPlaceholder: setShowChatPlaceholder, setLoader: setLoader, setCurrentAgentId: setCurrentAgentId, baseUrl: baseUrl, setBaseUrl: setBaseUrl, setCurrentSessionId: setCurrentSessionId, customChatConfig: customChatConfig, chatDataInfoRef: chatDataInfoRef, setChatDataState: setChatDataState, userInput: userInput, legacyAgentScreen: legacyAgentScreen, activeConversationId: activeConversationId, chatBodyRef: chatBodyRef, chatbotContext: chatbotContext, setInitValue: setInitValue, setSessionId: setSessionId, thinkingContent: thinkingContext?.thinkingContent, setThinkingContent: setThinkingContent, isThinking: isThinking, setIsThinking: setIsThinking, chatId: chatId, setChatId: setChatId, isStop: isStop, setIsStop: setIsStop, functionsRef: functionsRef, functionsState: functionsState, setFunctionsState: setFunctionsState, thinkingHeaderMessage: thinkingContext?.thinkingHeaderMessage, setThinkingHeaderMessage: setThinkingHeaderMessage, uniqueChatId: uniqueChatId, setUniqueChatId: setUniqueChatId, fieldNumber: fieldNumber, setFieldNumber: setFieldNumber, setAdditionalArgs: setAdditionalArgs, displayQuestions: displayQuestions, questions: questions }), inputText: userInput, threadList: ["Home"], hideMenuArrow: hideMenu, newChatScreen: newChatScreen, isModuleListLoading: modulesLoading, suggestionBanner: {
|
|
10457
10478
|
freeTextHeading: "Try adding more details :",
|
|
10458
10479
|
freeTextContent: "Alan works better when you provide more context and pointed questions",
|
|
10459
10480
|
}, isStopIcon: isStop, onStopIconClick: onStopIconClick, footerText: "AI-generated responses may contain errors\u2014please verify important information", showSuggestionBanner: showSuggestionBanner, onCloseSuggestionBanner: () => {
|