impact-chatbot 2.1.0 → 2.2.0
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 +12 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +12 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -901,6 +901,8 @@ const getFormattedApplicationName = (applicationURL) => {
|
|
|
901
901
|
return "PriceSmart Markdown";
|
|
902
902
|
case "pricesmart-promo":
|
|
903
903
|
return "PriceSmart Promo";
|
|
904
|
+
case "agentic-assort":
|
|
905
|
+
return "AssortSmart";
|
|
904
906
|
default:
|
|
905
907
|
return "workflow input center";
|
|
906
908
|
}
|
|
@@ -9278,7 +9280,7 @@ let chatbotFilterCustomConfig = {
|
|
|
9278
9280
|
};
|
|
9279
9281
|
|
|
9280
9282
|
const SmartBot = (props) => {
|
|
9281
|
-
const { userName, partialClose, setPartialClose } = props;
|
|
9283
|
+
const { userName, partialClose, setPartialClose, forceOpen } = props;
|
|
9282
9284
|
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, 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();
|
|
9283
9285
|
// Add state for confirmation dialogs
|
|
9284
9286
|
useState(false);
|
|
@@ -9823,7 +9825,15 @@ const SmartBot = (props) => {
|
|
|
9823
9825
|
}, 1000);
|
|
9824
9826
|
}
|
|
9825
9827
|
}, [showModal]);
|
|
9826
|
-
|
|
9828
|
+
useEffect(() => {
|
|
9829
|
+
if (forceOpen) {
|
|
9830
|
+
setShowModal(true);
|
|
9831
|
+
setPartialClose(false);
|
|
9832
|
+
setCurrentMode("agent");
|
|
9833
|
+
setShowChatPlaceholder(true);
|
|
9834
|
+
}
|
|
9835
|
+
}, [forceOpen]);
|
|
9836
|
+
return (jsxs("div", { className: `${classes.agentStyleOverride} ${partialClose ? classes.hideBotStyle : ""}`, children: [jsx(MemoryModal, { isModalOpen: isModalOpen, setIsModalOpen: setIsModalOpen, displaySnackMessages: displaySnackMessages }), jsx(UploadModal, { isUploadModalOpen: isUploadModalOpen, setIsUploadModalOpen: setIsUploadModalOpen, displaySnackMessages: displaySnackMessages }), jsx(ChatBotComponent, { isFullWidth: true, userName: userName, showHistoryPanel: false, customInputComponent: currentMode === "agent" ? (jsx(ChatbotInput, { newChatScreen: newChatScreen, inputValue: userInput, setInputValue: setUserInput, isStopIcon: isStop, onSendIconClick: onSendIconClick, onStopIconClick: onStopIconClick, currentMode: currentMode, filterOptions: filterOptions })) : null, isChatBotOpen: showModal || forceOpen,
|
|
9827
9837
|
// landingScreen={true}
|
|
9828
9838
|
handleNewChatClick: () => {
|
|
9829
9839
|
localStorage.setItem("isStreaming", "false");
|