impact-chatbot 2.3.7 → 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 CHANGED
@@ -4526,7 +4526,7 @@ const ChatPlaceholder = (props) => {
4526
4526
  getBaseUrl();
4527
4527
  }, []);
4528
4528
  const handleRectangleClick = (agentId, title) => {
4529
- if (legacyAgentScreen) {
4529
+ if (legacyAgentScreen || displayQuestions) {
4530
4530
  setCurrentAgentId(agentId);
4531
4531
  const initiateAgentPayload = {
4532
4532
  agent_id: agentId,
@@ -4575,7 +4575,7 @@ const ChatPlaceholder = (props) => {
4575
4575
  agentId: card.agentId || card.id
4576
4576
  }));
4577
4577
  const dataToMap = legacyAgentScreen || displayQuestions ? transformedCardList : rectangleData;
4578
- return (jsxRuntime.jsxs("div", { className: classes.placeholderContainer, children: [jsxRuntime.jsx("div", { className: classes.centerIconContainer, children: jsxRuntime.jsx(SvgCenter3D, { className: classes.centerIcon }) }), jsxRuntime.jsx(material.Typography, { variant: "h1", className: classes.heading, children: "Alan's Capabilities" }), jsxRuntime.jsx(material.Typography, { variant: "body1", className: classes.headingHelperText, children: "Discover potential issues & opportunities Alan can help you with!" }), jsxRuntime.jsx("div", { className: classes.rectanglesContainer, children: dataToMap.map((item, index) => (jsxRuntime.jsx(Rectangle, { type: item.type, icon: item.icon, title: item.title, description: item.description, onClick: () => handleRectangleClick(item?.agentId, item?.title), hoverable: legacyAgentScreen }, index))) })] }));
4578
+ return (jsxRuntime.jsxs("div", { className: classes.placeholderContainer, children: [jsxRuntime.jsx("div", { className: classes.centerIconContainer, children: jsxRuntime.jsx(SvgCenter3D, { className: classes.centerIcon }) }), jsxRuntime.jsx(material.Typography, { variant: "h1", className: classes.heading, children: "Alan's Capabilities" }), jsxRuntime.jsx(material.Typography, { variant: "body1", className: classes.headingHelperText, children: "Discover potential issues & opportunities Alan can help you with!" }), jsxRuntime.jsx("div", { className: classes.rectanglesContainer, children: dataToMap.map((item, index) => (jsxRuntime.jsx(Rectangle, { type: item.type, icon: item.icon, title: item.title, description: item.description, onClick: () => handleRectangleClick(item?.agentId, item?.title), hoverable: legacyAgentScreen || displayQuestions }, index))) })] }));
4579
4579
  };
4580
4580
 
4581
4581
  const dateFormat = "DD-MM-YYYY HH:mm:ss";