impact-chatbot 2.3.54 → 2.3.55

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
@@ -3468,27 +3468,6 @@ const globalStyles = makeStyles((theme) => ({
3468
3468
  },
3469
3469
  }));
3470
3470
 
3471
- var _path$l, _path2$3;
3472
- function _extends$u() { return _extends$u = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$u.apply(null, arguments); }
3473
- var SvgSettingsIcon = function SvgSettingsIcon(props) {
3474
- return /*#__PURE__*/React.createElement("svg", _extends$u({
3475
- xmlns: "http://www.w3.org/2000/svg",
3476
- fill: "none",
3477
- stroke: "#0D152C",
3478
- strokeWidth: 1.5,
3479
- className: "size-6",
3480
- viewBox: "0 0 24 24"
3481
- }, props), _path$l || (_path$l = /*#__PURE__*/React.createElement("path", {
3482
- strokeLinecap: "round",
3483
- strokeLinejoin: "round",
3484
- d: "M10.343 3.94c.09-.542.56-.94 1.11-.94h1.093c.55 0 1.02.398 1.11.94l.149.894c.07.424.384.764.78.93.398.164.855.142 1.205-.108l.737-.527a1.125 1.125 0 0 1 1.45.12l.773.774c.39.389.44 1.002.12 1.45l-.527.737c-.25.35-.272.806-.107 1.204s.505.71.93.78l.893.15c.543.09.94.559.94 1.109v1.094c0 .55-.397 1.02-.94 1.11l-.894.149c-.424.07-.764.383-.929.78-.165.398-.143.854.107 1.204l.527.738c.32.447.269 1.06-.12 1.45l-.774.773a1.125 1.125 0 0 1-1.449.12l-.738-.527c-.35-.25-.806-.272-1.203-.107-.398.165-.71.505-.781.929l-.149.894c-.09.542-.56.94-1.11.94h-1.094c-.55 0-1.019-.398-1.11-.94l-.148-.894c-.071-.424-.384-.764-.781-.93-.398-.164-.854-.142-1.204.108l-.738.527c-.447.32-1.06.269-1.45-.12l-.773-.774a1.125 1.125 0 0 1-.12-1.45l.527-.737c.25-.35.272-.806.108-1.204s-.506-.71-.93-.78l-.894-.15c-.542-.09-.94-.56-.94-1.109v-1.094c0-.55.398-1.02.94-1.11l.894-.149c.424-.07.765-.383.93-.78.165-.398.143-.854-.108-1.204l-.526-.738a1.125 1.125 0 0 1 .12-1.45l.773-.773a1.125 1.125 0 0 1 1.45-.12l.737.527c.35.25.807.272 1.204.107s.71-.505.78-.929z"
3485
- })), _path2$3 || (_path2$3 = /*#__PURE__*/React.createElement("path", {
3486
- strokeLinecap: "round",
3487
- strokeLinejoin: "round",
3488
- d: "M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0"
3489
- })));
3490
- };
3491
-
3492
3471
  const useStyles$8 = makeStyles((theme) => ({
3493
3472
  botTitle: {
3494
3473
  fontFamily: "Manrope",
@@ -4180,15 +4159,22 @@ const useChatState = () => {
4180
4159
  const classes = useStyles$8({ position, minimizedBtnRef });
4181
4160
  // Constants
4182
4161
  const dateFormat = "DD-MM-YYYY HH:mm:ss";
4183
- const [utilityList, setUtilityList] = useState([
4184
- {
4185
- key: "Memory",
4186
- onClick: () => {
4187
- setIsModalOpen(true);
4188
- },
4189
- icon: (jsx("div", { className: classes.memoryModalIconDiv, children: jsx(SvgSettingsIcon, { style: { width: 20, height: 20 } }) })),
4190
- },
4191
- ]);
4162
+ const [utilityList, setUtilityList] = useState([]);
4163
+ // const [utilityList, setUtilityList] = useState([
4164
+ // {
4165
+ // key: "Memory",
4166
+ // onClick: () => {
4167
+ // setIsModalOpen(true);
4168
+ // },
4169
+ // icon: (
4170
+ // <div
4171
+ // className={classes.memoryModalIconDiv}
4172
+ // >
4173
+ // <SettingsIcon style={{ width: 20, height: 20 }} />
4174
+ // </div>
4175
+ // ),
4176
+ // },
4177
+ // ]);
4192
4178
  return {
4193
4179
  // States
4194
4180
  showModal,
@@ -14023,10 +14009,7 @@ const SmartBot = (props) => {
14023
14009
  }
14024
14010
  const likeDislikeKey = `${params?.response_heading || params?.screen_name}_${params?.timeStamp}`;
14025
14011
  handleLikeDislike(likeDislikeKey, false, params?.bodyText, params2);
14026
- }, handleSaveChat: () => {
14027
- // Handle save chat logic here
14028
- saveCurrentChat();
14029
- }, onChatBotResize: (params) => {
14012
+ }, handleSaveChat: null, onChatBotResize: (params) => {
14030
14013
  setChatBotWidth(params);
14031
14014
  }, onMinimiseChatBot: () => {
14032
14015
  setPartialClose(true);