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.
@@ -78,16 +78,8 @@ export declare const useChatState: () => {
78
78
  thinkingContext: any;
79
79
  isModalOpen: boolean;
80
80
  setIsModalOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
81
- utilityList: {
82
- key: string;
83
- onClick: () => void;
84
- icon: import("react/jsx-runtime").JSX.Element;
85
- }[];
86
- setUtilityList: import("react").Dispatch<import("react").SetStateAction<{
87
- key: string;
88
- onClick: () => void;
89
- icon: import("react/jsx-runtime").JSX.Element;
90
- }[]>>;
81
+ utilityList: any[];
82
+ setUtilityList: import("react").Dispatch<import("react").SetStateAction<any[]>>;
91
83
  isUploadModalOpen: boolean;
92
84
  setIsUploadModalOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
93
85
  isRefreshTriggered: boolean;
package/dist/index.cjs.js CHANGED
@@ -3490,27 +3490,6 @@ const globalStyles = styles.makeStyles((theme) => ({
3490
3490
  },
3491
3491
  }));
3492
3492
 
3493
- var _path$l, _path2$3;
3494
- 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); }
3495
- var SvgSettingsIcon = function SvgSettingsIcon(props) {
3496
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
3497
- xmlns: "http://www.w3.org/2000/svg",
3498
- fill: "none",
3499
- stroke: "#0D152C",
3500
- strokeWidth: 1.5,
3501
- className: "size-6",
3502
- viewBox: "0 0 24 24"
3503
- }, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
3504
- strokeLinecap: "round",
3505
- strokeLinejoin: "round",
3506
- 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"
3507
- })), _path2$3 || (_path2$3 = /*#__PURE__*/React__namespace.createElement("path", {
3508
- strokeLinecap: "round",
3509
- strokeLinejoin: "round",
3510
- d: "M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0"
3511
- })));
3512
- };
3513
-
3514
3493
  const useStyles$8 = styles.makeStyles((theme) => ({
3515
3494
  botTitle: {
3516
3495
  fontFamily: "Manrope",
@@ -4202,15 +4181,22 @@ const useChatState = () => {
4202
4181
  const classes = useStyles$8({ position, minimizedBtnRef });
4203
4182
  // Constants
4204
4183
  const dateFormat = "DD-MM-YYYY HH:mm:ss";
4205
- const [utilityList, setUtilityList] = React.useState([
4206
- {
4207
- key: "Memory",
4208
- onClick: () => {
4209
- setIsModalOpen(true);
4210
- },
4211
- icon: (jsxRuntime.jsx("div", { className: classes.memoryModalIconDiv, children: jsxRuntime.jsx(SvgSettingsIcon, { style: { width: 20, height: 20 } }) })),
4212
- },
4213
- ]);
4184
+ const [utilityList, setUtilityList] = React.useState([]);
4185
+ // const [utilityList, setUtilityList] = useState([
4186
+ // {
4187
+ // key: "Memory",
4188
+ // onClick: () => {
4189
+ // setIsModalOpen(true);
4190
+ // },
4191
+ // icon: (
4192
+ // <div
4193
+ // className={classes.memoryModalIconDiv}
4194
+ // >
4195
+ // <SettingsIcon style={{ width: 20, height: 20 }} />
4196
+ // </div>
4197
+ // ),
4198
+ // },
4199
+ // ]);
4214
4200
  return {
4215
4201
  // States
4216
4202
  showModal,
@@ -14045,10 +14031,7 @@ const SmartBot = (props) => {
14045
14031
  }
14046
14032
  const likeDislikeKey = `${params?.response_heading || params?.screen_name}_${params?.timeStamp}`;
14047
14033
  handleLikeDislike(likeDislikeKey, false, params?.bodyText, params2);
14048
- }, handleSaveChat: () => {
14049
- // Handle save chat logic here
14050
- saveCurrentChat();
14051
- }, onChatBotResize: (params) => {
14034
+ }, handleSaveChat: null, onChatBotResize: (params) => {
14052
14035
  setChatBotWidth(params);
14053
14036
  }, onMinimiseChatBot: () => {
14054
14037
  setPartialClose(true);