odaptos_design_system 1.4.113 → 1.4.115

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.
@@ -8041,7 +8041,7 @@ const Chat = ({
8041
8041
  }, /*#__PURE__*/React.createElement("p", {
8042
8042
  className: styles$b.user_text
8043
8043
  }, detectAndWrapLinks(message.body))), /*#__PURE__*/React.createElement(Text, {
8044
- text: message.createdAt.toLocaleTimeString(),
8044
+ text: new Date(message.createdAt).toLocaleTimeString(),
8045
8045
  size: "xs",
8046
8046
  color: "grey",
8047
8047
  className: styles$b.user_text_message_username
@@ -8061,7 +8061,7 @@ const Chat = ({
8061
8061
  }, /*#__PURE__*/React.createElement("p", {
8062
8062
  className: styles$b.user_text
8063
8063
  }, detectAndWrapLinks(message.body))), /*#__PURE__*/React.createElement(Text, {
8064
- text: message.createdAt.toLocaleTimeString(),
8064
+ text: new Date(message.createdAt).toLocaleTimeString(),
8065
8065
  size: "xs",
8066
8066
  color: "grey",
8067
8067
  className: styles$b.user_text_message_username
@@ -8072,7 +8072,7 @@ const Chat = ({
8072
8072
  weight: "bold",
8073
8073
  color: "white",
8074
8074
  size: "sm"
8075
- }))));else return /*#__PURE__*/React.createElement("div", {
8075
+ }))));else if (message.from && message.createdAt && message.body) return /*#__PURE__*/React.createElement("div", {
8076
8076
  className: styles$b.message_container_chatbot
8077
8077
  }, /*#__PURE__*/React.createElement("div", {
8078
8078
  className: styles$b.bot_indicator
@@ -8088,11 +8088,11 @@ const Chat = ({
8088
8088
  }, /*#__PURE__*/React.createElement("p", {
8089
8089
  className: styles$b.user_text
8090
8090
  }, detectAndWrapLinks(message.body))), /*#__PURE__*/React.createElement(Text, {
8091
- text: message.createdAt.toLocaleTimeString(),
8091
+ text: new Date(message.createdAt).toLocaleTimeString(),
8092
8092
  size: "xs",
8093
8093
  color: "grey"
8094
- })));
8095
- } else return null;
8094
+ })));else return /*#__PURE__*/React.createElement(React.Fragment, null);
8095
+ } else return /*#__PURE__*/React.createElement(React.Fragment, null);
8096
8096
  }))), !isTaskMode && chatInputPlaceholder && typeof chatInputValue === 'string' && chatInputonChange && /*#__PURE__*/React.createElement(ChatInput, {
8097
8097
  placeholder: chatInputPlaceholder,
8098
8098
  value: chatInputValue,