impact-chatbot 2.3.100 → 2.3.101
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 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +9 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -2794,9 +2794,16 @@ const useChatFlow = (chatDataRef, setLoader, setFlowType, setScreenName, setUser
|
|
|
2794
2794
|
else if (data.actionType === "indirect") {
|
|
2795
2795
|
setUserInput(data.displayText);
|
|
2796
2796
|
}
|
|
2797
|
-
else {
|
|
2797
|
+
else if (data.screen_name) {
|
|
2798
2798
|
fetchUserResultsFromQuery(data, true, "", activeConversationId);
|
|
2799
2799
|
}
|
|
2800
|
+
else {
|
|
2801
|
+
// No screen_name (e.g. suggested follow-up chips from navigation-v2):
|
|
2802
|
+
// treat the chip's displayText as a regular user query so it flows
|
|
2803
|
+
// through the navigation streaming endpoint instead of the
|
|
2804
|
+
// fetchRelatedQuestions screen-based endpoint.
|
|
2805
|
+
fetchUserResultsFromQuery(data, false, data.displayText, activeConversationId);
|
|
2806
|
+
}
|
|
2800
2807
|
}, [activeConversationId, baseUrl]);
|
|
2801
2808
|
const fetchUserResultsFromQuery = useCallback(async (refObject, fetchQuestions = false, inputValue = userInput, conversationId = activeConversationId) => {
|
|
2802
2809
|
let flowType = refObject?.flow_type ? refObject?.flow_type : currentMode;
|
|
@@ -16973,7 +16980,7 @@ const SmartBot = (props) => {
|
|
|
16973
16980
|
}, moduleList: modules, tabList: tabList, utilityList: utilityList, isAssistantThinking: false, isCustomScreen: showChatPlaceholder ? showChatPlaceholder : showSavedFilters, customScreenJsx: showChatPlaceholder ?
|
|
16974
16981
|
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, setActiveConversationId: setActiveConversationId, selectedFilterSet: selectedFilterSet, answerMode: answerMode })
|
|
16975
16982
|
:
|
|
16976
|
-
jsx(ChatbotSaveFilterComponent$1, { savedFilterSets: savedFilterSets, partialClose: partialClose, chatBotWidth: chatBotWidth }), inputText: userInput, threadList: ["Home"], hideMenuArrow:
|
|
16983
|
+
jsx(ChatbotSaveFilterComponent$1, { savedFilterSets: savedFilterSets, partialClose: partialClose, chatBotWidth: chatBotWidth }), inputText: userInput, threadList: ["Home"], hideMenuArrow: true, newChatScreen: newChatScreen, isModuleListLoading: modulesLoading, suggestionBanner: {
|
|
16977
16984
|
freeTextHeading: "Try adding more details :",
|
|
16978
16985
|
freeTextContent: "Iris works better when you provide more context and pointed questions",
|
|
16979
16986
|
}, isStopIcon: isStop, onStopIconClick: onStopIconClick, footerText: "AI-generated responses may contain errors\u2014please verify important information", showSuggestionBanner: showSavedFilters ? false : showSuggestionBanner, onCloseSuggestionBanner: () => {
|