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.esm.js CHANGED
@@ -4504,7 +4504,7 @@ const ChatPlaceholder = (props) => {
4504
4504
  getBaseUrl();
4505
4505
  }, []);
4506
4506
  const handleRectangleClick = (agentId, title) => {
4507
- if (legacyAgentScreen) {
4507
+ if (legacyAgentScreen || displayQuestions) {
4508
4508
  setCurrentAgentId(agentId);
4509
4509
  const initiateAgentPayload = {
4510
4510
  agent_id: agentId,
@@ -4553,7 +4553,7 @@ const ChatPlaceholder = (props) => {
4553
4553
  agentId: card.agentId || card.id
4554
4554
  }));
4555
4555
  const dataToMap = legacyAgentScreen || displayQuestions ? transformedCardList : rectangleData;
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 }, 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))) })] }));
4557
4557
  };
4558
4558
 
4559
4559
  const dateFormat = "DD-MM-YYYY HH:mm:ss";