impact-chatbot 2.3.6 → 2.3.8
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 +6 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +6 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -4487,7 +4487,10 @@ const ChatPlaceholder = (props) => {
|
|
|
4487
4487
|
setLoading(false);
|
|
4488
4488
|
}
|
|
4489
4489
|
};
|
|
4490
|
-
if (baseUrl &&
|
|
4490
|
+
if (baseUrl &&
|
|
4491
|
+
legacyAgentScreen &&
|
|
4492
|
+
!displayQuestions &&
|
|
4493
|
+
isEmpty$1(cardList)) {
|
|
4491
4494
|
loadCards();
|
|
4492
4495
|
}
|
|
4493
4496
|
if (questions &&
|
|
@@ -4501,7 +4504,7 @@ const ChatPlaceholder = (props) => {
|
|
|
4501
4504
|
getBaseUrl();
|
|
4502
4505
|
}, []);
|
|
4503
4506
|
const handleRectangleClick = (agentId, title) => {
|
|
4504
|
-
if (legacyAgentScreen) {
|
|
4507
|
+
if (legacyAgentScreen || displayQuestions) {
|
|
4505
4508
|
setCurrentAgentId(agentId);
|
|
4506
4509
|
const initiateAgentPayload = {
|
|
4507
4510
|
agent_id: agentId,
|
|
@@ -4550,7 +4553,7 @@ const ChatPlaceholder = (props) => {
|
|
|
4550
4553
|
agentId: card.agentId || card.id
|
|
4551
4554
|
}));
|
|
4552
4555
|
const dataToMap = legacyAgentScreen || displayQuestions ? transformedCardList : rectangleData;
|
|
4553
|
-
return (jsxs("div", { className: classes.placeholderContainer, children: [jsx("div", { className: classes.centerIconContainer, children: jsx(SvgCenter3D, { className: classes.centerIcon }) }), jsx(Typography, { variant: "h1", className: classes.heading, children: "Alan's Capabilities" }), jsx(Typography, { variant: "body1", className: classes.headingHelperText, children: "Discover potential issues & opportunities Alan can help you with!" }), jsx("div", { className: classes.rectanglesContainer, children: dataToMap.map((item, index) => (jsx(Rectangle, { type: item.type, icon: item.icon, title: item.title, description: item.description, onClick: () => handleRectangleClick(item?.agentId, item?.title), hoverable: legacyAgentScreen }, index))) })] }));
|
|
4556
|
+
return (jsxs("div", { className: classes.placeholderContainer, children: [jsx("div", { className: classes.centerIconContainer, children: jsx(SvgCenter3D, { className: classes.centerIcon }) }), jsx(Typography, { variant: "h1", className: classes.heading, children: "Alan's Capabilities" }), jsx(Typography, { variant: "body1", className: classes.headingHelperText, children: "Discover potential issues & opportunities Alan can help you with!" }), jsx("div", { className: classes.rectanglesContainer, children: dataToMap.map((item, index) => (jsx(Rectangle, { type: item.type, icon: item.icon, title: item.title, description: item.description, onClick: () => handleRectangleClick(item?.agentId, item?.title), hoverable: legacyAgentScreen || displayQuestions }, index))) })] }));
|
|
4554
4557
|
};
|
|
4555
4558
|
|
|
4556
4559
|
const dateFormat = "DD-MM-YYYY HH:mm:ss";
|