impact-ui 4.0.7-alpha.2 → 4.0.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.
Files changed (76) hide show
  1. package/dist/_virtual/index13.js +2 -2
  2. package/dist/_virtual/index14.js +2 -2
  3. package/dist/_virtual/index2.js +2 -2
  4. package/dist/_virtual/index3.js +2 -4
  5. package/dist/_virtual/index4.js +3 -3
  6. package/dist/_virtual/index5.js +4 -2
  7. package/dist/components/ButtonGroup/index.js +1 -1
  8. package/dist/components/Chatbot/Chatbot.types.d.ts +1 -12
  9. package/dist/components/Chatbot/Chatbot.types.d.ts.map +1 -1
  10. package/dist/components/Chatbot/chatInput.d.ts.map +1 -1
  11. package/dist/components/Chatbot/chatInput.js +4 -22
  12. package/dist/components/Chatbot/chatbotModuleMenu.d.ts +1 -1
  13. package/dist/components/Chatbot/chatbotModuleMenu.d.ts.map +1 -1
  14. package/dist/components/Chatbot/chatbotModuleMenu.js +186 -162
  15. package/dist/components/Chatbot/conversationScreen.d.ts +1 -1
  16. package/dist/components/Chatbot/conversationScreen.d.ts.map +1 -1
  17. package/dist/components/Chatbot/conversationScreen.js +3 -7
  18. package/dist/components/Chatbot/customScreen.d.ts +1 -1
  19. package/dist/components/Chatbot/customScreen.d.ts.map +1 -1
  20. package/dist/components/Chatbot/customScreen.js +25 -26
  21. package/dist/components/Chatbot/index.d.ts.map +1 -1
  22. package/dist/components/Chatbot/index.js +240 -330
  23. package/dist/components/Chatbot/newChatComponent.d.ts +1 -1
  24. package/dist/components/Chatbot/newChatComponent.d.ts.map +1 -1
  25. package/dist/components/Chatbot/newChatComponent.js +2 -5
  26. package/dist/components/CommentsPanel/CommentsPanel.impl.d.ts +6 -2
  27. package/dist/components/CommentsPanel/CommentsPanel.impl.d.ts.map +1 -1
  28. package/dist/components/CommentsPanel/CommentsPanel.impl.js +1 -6
  29. package/dist/components/CommentsPanel/CommentsPanel.types.d.ts +2 -2
  30. package/dist/components/CommentsPanel/CommentsPanel.types.d.ts.map +1 -1
  31. package/dist/components/KeyboardShortCuts/ShortcutLandingPage.js +1 -1
  32. package/dist/components/KeyboardShortCuts/ShortcutModal.d.ts.map +1 -1
  33. package/dist/components/KeyboardShortCuts/ShortcutModal.js +5 -4
  34. package/dist/components/KeyboardShortCuts/allSetBox.js +1 -1
  35. package/dist/components/KeyboardShortCuts/index.js +1 -1
  36. package/dist/components/KeyboardShortCuts/tutorial.js +1 -1
  37. package/dist/components/Menu/IconMenuItem.d.ts.map +1 -1
  38. package/dist/components/Menu/IconMenuItem.js +1 -2
  39. package/dist/components/Menu/MenuHeaderInfo.js +1 -1
  40. package/dist/components/Menu/NestedMenuItem.js +2 -2
  41. package/dist/components/Menu/index.js +1 -1
  42. package/dist/components/Menu/nestedMenuItemsFromObject.js +1 -1
  43. package/dist/components/RadioButtonGroup/index.js +1 -1
  44. package/dist/components/Slider/index.js +1 -1
  45. package/dist/components/Table/index.d.ts +2 -1
  46. package/dist/components/Table/index.d.ts.map +1 -1
  47. package/dist/components/Table/index.js +1 -1
  48. package/dist/components/Table/tableFunctions.d.ts.map +1 -1
  49. package/dist/components/Table/tableFunctions.js +19 -9
  50. package/dist/components/TableOld/index.d.ts.map +1 -1
  51. package/dist/components/TableOld/index.js +1 -2
  52. package/dist/components/TableOld/tableFunctions.d.ts.map +1 -1
  53. package/dist/components/TableOld/tableFunctions.js +19 -9
  54. package/dist/dev/productGroupTableData.d.ts +363 -0
  55. package/dist/dev/productGroupTableData.d.ts.map +1 -0
  56. package/dist/locales/de-DE.json.d.ts +2 -0
  57. package/dist/locales/de-DE.json.js +2 -0
  58. package/dist/locales/en-US.json.d.ts +2 -0
  59. package/dist/locales/en-US.json.js +2 -0
  60. package/dist/mcp-component-registry.json +1 -1
  61. package/dist/node_modules/@mui/system/colorManipulator.js +2 -2
  62. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
  63. package/dist/node_modules/prop-types/index.js +1 -1
  64. package/dist/node_modules/react-is/index.js +1 -1
  65. package/dist/node_modules/react-with-styles-interface-css/dist/index.js +1 -1
  66. package/dist/utils/index.d.ts +0 -1
  67. package/dist/utils/index.d.ts.map +1 -1
  68. package/package.json +1 -1
  69. package/dist/hooks/useDraggableResizable.d.ts +0 -104
  70. package/dist/hooks/useDraggableResizable.d.ts.map +0 -1
  71. package/dist/hooks/useDraggableResizable.js +0 -323
  72. package/dist/hooks/useMediaQuery.d.ts +0 -9
  73. package/dist/hooks/useMediaQuery.d.ts.map +0 -1
  74. package/dist/utils/onResize.d.ts +0 -24
  75. package/dist/utils/onResize.d.ts.map +0 -1
  76. package/dist/utils/onResize.js +0 -28
@@ -13,8 +13,6 @@ const ActiveIcon = getAssetUrl("icons/activeModuleIcon.svg");
13
13
  const HomeIcon = getAssetUrl("icons/chat-home-icon.svg");
14
14
  const CloseThreadIcon = getAssetUrl("icons/close.svg");
15
15
  const SmartBotIcon = getAssetUrl("icons/smartBotAlan.svg");
16
- const CollapseIcon = getAssetUrl("icons/Collapse.svg");
17
- const ExpandIcon = getAssetUrl("icons/expand-icon.svg");
18
16
  function ChatbotModuleMenu({
19
17
  hideMenuArrow,
20
18
  onModuleClick,
@@ -31,10 +29,7 @@ function ChatbotModuleMenu({
31
29
  isFullWidth,
32
30
  handleCloseThread: handleCloseThreadProp,
33
31
  handleThreadClick,
34
- onMinimiseChatBot,
35
- dragHandleProps,
36
- isCollapsed = false,
37
- onToggleCollapse
32
+ onMinimiseChatBot
38
33
  }) {
39
34
  var _a;
40
35
  const { t } = useTranslation();
@@ -67,181 +62,210 @@ function ChatbotModuleMenu({
67
62
  document.removeEventListener("mousedown", handleClickOutside);
68
63
  };
69
64
  }, []);
70
- return /* @__PURE__ */ jsxs(
71
- "div",
72
- {
73
- className: `conversation-screen-container-header ${dragHandleProps ? "draggable" : ""} ${isCollapsed ? "collapsed" : ""}`,
74
- onPointerDown: dragHandleProps == null ? void 0 : dragHandleProps.onPointerDown,
75
- children: [
76
- /* @__PURE__ */ jsxs("div", { className: "left_logo_arrow_container", children: [
77
- !hideSmartBotIcon && /* @__PURE__ */ jsx("div", { className: "conversation_chatbot_logo_container", children: /* @__PURE__ */ jsx("img", { alt: "smartbot", draggable: false, src: SmartBotIcon }) }),
78
- !hideMenuArrow && /* @__PURE__ */ jsxs("div", { className: "menu_arrow", children: [
79
- /* @__PURE__ */ jsx(
80
- Button,
81
- {
82
- icon: isDropdownOpen ? /* @__PURE__ */ jsx(default_1, {}) : /* @__PURE__ */ jsx(default_1$1, {}),
83
- iconPlacement: "right",
84
- size: hideChildren ? "small" : "medium",
85
- type: "default",
86
- variant: "text",
87
- onClick: () => {
88
- setIsDropdownOpen(!isDropdownOpen);
89
- },
90
- children: !hideChildren && t("chatBot.moduleMenu.module")
91
- }
92
- ),
93
- isDropdownOpen && /* @__PURE__ */ jsx(
65
+ return /* @__PURE__ */ jsxs("div", { className: "conversation-screen-container-header", children: [
66
+ /* @__PURE__ */ jsxs("div", { className: "left_logo_arrow_container", children: [
67
+ !hideSmartBotIcon && /* @__PURE__ */ jsx("div", { className: "conversation_chatbot_logo_container", children: /* @__PURE__ */ jsx("img", { alt: "smartbot", src: SmartBotIcon }) }),
68
+ !hideMenuArrow && /* @__PURE__ */ jsxs("div", { className: "menu_arrow", children: [
69
+ /* @__PURE__ */ jsx(
70
+ Button,
71
+ {
72
+ icon: isDropdownOpen ? /* @__PURE__ */ jsx(default_1, {}) : /* @__PURE__ */ jsx(default_1$1, {}),
73
+ iconPlacement: "right",
74
+ size: hideChildren ? "small" : "medium",
75
+ type: "default",
76
+ variant: "text",
77
+ onClick: () => {
78
+ setIsDropdownOpen(!isDropdownOpen);
79
+ },
80
+ children: !hideChildren && t("chatBot.moduleMenu.module")
81
+ }
82
+ ),
83
+ isDropdownOpen && /* @__PURE__ */ jsx(
84
+ "div",
85
+ {
86
+ className: `chatbot-component-header-dropdown-container ${isDropdownOpen ? "open" : ""}`,
87
+ style: {
88
+ width: 397,
89
+ position: "absolute",
90
+ boxShadow: "0px 1px 6px 0px #1933451A",
91
+ top: 52,
92
+ zIndex: 999999,
93
+ backgroundColor: "white",
94
+ padding: "16px",
95
+ borderRadius: "18px"
96
+ },
97
+ children: isModuleListLoading ? /* @__PURE__ */ jsx(Loader, {}) : /* @__PURE__ */ jsx(
94
98
  "div",
95
99
  {
96
- className: `chatbot-component-header-dropdown-container ${isDropdownOpen ? "open" : ""}`,
97
- children: isModuleListLoading ? /* @__PURE__ */ jsx(Loader, {}) : /* @__PURE__ */ jsx("div", { className: `item ${isCollapsed ? "isCollapsed" : ""}`, children: moduleList.map((module, idx) => /* @__PURE__ */ jsxs(
100
+ className: "chatbot-component-header-dropdown-item",
101
+ style: {
102
+ display: "flex",
103
+ flexDirection: "column",
104
+ justifyContent: "center",
105
+ backgroundColor: "white",
106
+ gap: 16,
107
+ cursor: "pointer"
108
+ },
109
+ children: moduleList.map((module, idx) => /* @__PURE__ */ jsxs(
98
110
  "div",
99
111
  {
100
- className: `item-container ${isCollapsed ? "isCollapsed" : ""}`,
112
+ className: "chatbot-component-header-dropdown-item-container",
113
+ style: {
114
+ display: "flex",
115
+ height: 66,
116
+ alignItems: "center",
117
+ justifyContent: "space-between",
118
+ padding: "12px"
119
+ },
101
120
  onClick: () => {
102
121
  setActiveModule(module.name ?? "");
103
122
  onModuleClick == null ? void 0 : onModuleClick(module.id, module.name, activeList);
104
123
  setIsDropdownOpen(false);
105
124
  },
106
125
  children: [
107
- /* @__PURE__ */ jsxs("div", { className: "item-content", children: [
108
- typeof module.icon === "string" ? /* @__PURE__ */ jsx("img", { alt: module.key ?? module.name, src: module.icon }) : module.icon,
109
- /* @__PURE__ */ jsxs("div", { className: "item-content-text", children: [
110
- /* @__PURE__ */ jsx(
111
- "span",
112
- {
113
- className: `item-content-text-name ${isCollapsed ? "collapsed" : ""}`,
114
- children: module.name
115
- }
116
- ),
117
- /* @__PURE__ */ jsx(
118
- "span",
119
- {
120
- className: `item-content-text-description ${isCollapsed ? "collapsed" : ""}`,
121
- children: module.description
122
- }
123
- )
124
- ] })
125
- ] }),
126
+ /* @__PURE__ */ jsxs(
127
+ "div",
128
+ {
129
+ className: "chatbot-component-header-dropdown-item-content",
130
+ style: { display: "flex", alignItems: "center", gap: 10 },
131
+ children: [
132
+ typeof module.icon === "string" ? /* @__PURE__ */ jsx("img", { alt: module.key ?? module.name, src: module.icon }) : module.icon,
133
+ /* @__PURE__ */ jsxs(
134
+ "div",
135
+ {
136
+ className: "chatbot-component-header-dropdown-item-content-text",
137
+ style: { display: "flex", flexDirection: "column" },
138
+ children: [
139
+ /* @__PURE__ */ jsx(
140
+ "span",
141
+ {
142
+ className: "chatbot-component-header-dropdown-item-content-text-name",
143
+ style: {
144
+ fontWeight: 600,
145
+ fontSize: 16,
146
+ lineHeight: "24px",
147
+ color: "#1F2B4D"
148
+ },
149
+ children: module.name
150
+ }
151
+ ),
152
+ /* @__PURE__ */ jsx(
153
+ "span",
154
+ {
155
+ className: "chatbot-component-header-dropdown-item-content-text-description",
156
+ style: {
157
+ fontWeight: 500,
158
+ fontSize: 12,
159
+ lineHeight: "16px",
160
+ color: "#7A8294"
161
+ },
162
+ children: module.description
163
+ }
164
+ )
165
+ ]
166
+ }
167
+ )
168
+ ]
169
+ }
170
+ ),
126
171
  activeModule === module.name && /* @__PURE__ */ jsx("img", { alt: "active", src: ActiveIcon })
127
172
  ]
128
173
  },
129
174
  `${module.id ?? module.name ?? idx}`
130
- )) })
175
+ ))
131
176
  }
132
177
  )
133
- ] })
134
- ] }),
135
- !isCollapsed && !hideCenterOptions && /* @__PURE__ */ jsxs("div", { className: "center_options_container", children: [
136
- /* @__PURE__ */ jsx("div", { className: "left_tabs_container", children: /* @__PURE__ */ jsx("ul", { children: threadList.map((thread, idx) => /* @__PURE__ */ jsx(
137
- "li",
138
- {
139
- className: `${activeThread === thread ? "active" : ""} ${thread === "Home" ? "home" : ""}`,
140
- role: "tab",
141
- tabIndex: 0,
142
- onClick: () => {
143
- setActiveThread(thread);
144
- handleThreadClick == null ? void 0 : handleThreadClick(thread, idx);
145
- },
146
- onKeyDown: (e) => {
147
- if (e.key === "Enter" || e.key === " ") {
148
- e.preventDefault();
149
- setActiveThread(thread);
150
- handleThreadClick == null ? void 0 : handleThreadClick(thread, idx);
151
- }
152
- },
153
- children: thread === "Home" ? /* @__PURE__ */ jsx("img", { alt: t("chatBot.moduleMenu.homeAlt"), draggable: false, src: HomeIcon }) : /* @__PURE__ */ jsxs(Fragment, { children: [
154
- thread,
155
- /* @__PURE__ */ jsx(
156
- "span",
178
+ }
179
+ )
180
+ ] })
181
+ ] }),
182
+ !hideCenterOptions && /* @__PURE__ */ jsxs("div", { className: "center_options_container", children: [
183
+ /* @__PURE__ */ jsx("div", { className: "left_tabs_container", children: /* @__PURE__ */ jsx("ul", { children: threadList.map((thread, idx) => /* @__PURE__ */ jsx(
184
+ "li",
185
+ {
186
+ className: `${activeThread === thread ? "active" : ""} ${thread === "Home" ? "home" : ""}`,
187
+ role: "tab",
188
+ tabIndex: 0,
189
+ onClick: () => {
190
+ setActiveThread(thread);
191
+ handleThreadClick == null ? void 0 : handleThreadClick(thread, idx);
192
+ },
193
+ onKeyDown: (e) => {
194
+ if (e.key === "Enter" || e.key === " ") {
195
+ e.preventDefault();
196
+ setActiveThread(thread);
197
+ handleThreadClick == null ? void 0 : handleThreadClick(thread, idx);
198
+ }
199
+ },
200
+ children: thread === "Home" ? /* @__PURE__ */ jsx("img", { alt: t("chatBot.moduleMenu.homeAlt"), src: HomeIcon }) : /* @__PURE__ */ jsxs(Fragment, { children: [
201
+ thread,
202
+ /* @__PURE__ */ jsx(
203
+ "span",
204
+ {
205
+ className: "close_thread",
206
+ role: "button",
207
+ tabIndex: 0,
208
+ onKeyDown: (e) => {
209
+ if (e.key === "Enter" || e.key === " ") {
210
+ e.preventDefault();
211
+ e.stopPropagation();
212
+ handleCloseThread(e, idx);
213
+ }
214
+ },
215
+ children: /* @__PURE__ */ jsx(
216
+ "img",
157
217
  {
158
- className: "close_thread",
159
- role: "button",
160
- tabIndex: 0,
161
- onKeyDown: (e) => {
162
- if (e.key === "Enter" || e.key === " ") {
163
- e.preventDefault();
164
- e.stopPropagation();
165
- handleCloseThread(e, idx);
166
- }
167
- },
168
- children: /* @__PURE__ */ jsx(
169
- "img",
170
- {
171
- alt: t("chatBot.moduleMenu.closeThreadAlt"),
172
- draggable: false,
173
- src: CloseThreadIcon,
174
- onClick: (e) => {
175
- handleCloseThread(e, idx);
176
- }
177
- }
178
- )
218
+ alt: t("chatBot.moduleMenu.closeThreadAlt"),
219
+ src: CloseThreadIcon,
220
+ onClick: (e) => {
221
+ handleCloseThread(e, idx);
222
+ }
179
223
  }
180
224
  )
181
- ] })
182
- },
183
- idx
184
- )) }) }),
185
- /* @__PURE__ */ jsx("div", { className: "right_info_container" })
186
- ] }),
187
- /* @__PURE__ */ jsxs("div", { className: "right_close_save_icon_container", children: [
188
- onMinimiseChatBot && !isFullWidth && /* @__PURE__ */ jsx("div", { className: "minimise_icon_container", children: /* @__PURE__ */ jsx(
189
- Button,
190
- {
191
- className: "chatbot-component-header-close-icon",
192
- icon: /* @__PURE__ */ jsx(default_1$2, {}),
193
- size: "small",
194
- type: "default",
195
- variant: "text",
196
- onClick: onMinimiseChatBot
197
- }
198
- ) }),
199
- handleSavedChat && /* @__PURE__ */ jsx("div", { className: "save_icon_container", children: /* @__PURE__ */ jsx(
200
- Button,
201
- {
202
- icon: /* @__PURE__ */ jsx(default_1$3, {}),
203
- iconPlacement: "left",
204
- size: "small",
205
- type: "default",
206
- variant: "text",
207
- onClick: handleSavedChat
208
- }
209
- ) }),
210
- onToggleCollapse && !isFullWidth && /* @__PURE__ */ jsx("div", { className: "collapse_icon_container", children: /* @__PURE__ */ jsx(
211
- Button,
212
- {
213
- "aria-label": isCollapsed ? "Expand chatbot" : "Collapse chatbot",
214
- icon: /* @__PURE__ */ jsx(
215
- "img",
216
- {
217
- alt: "",
218
- draggable: false,
219
- height: isCollapsed ? 24 : 26,
220
- src: isCollapsed ? ExpandIcon : CollapseIcon,
221
- width: isCollapsed ? 24 : 26
222
- }
223
- ),
224
- size: "small",
225
- type: "default",
226
- variant: "text",
227
- onClick: onToggleCollapse
228
- }
229
- ) }),
230
- !isFullWidth && /* @__PURE__ */ jsx("div", { className: "close_icon_container", children: /* @__PURE__ */ jsx(
231
- Button,
232
- {
233
- icon: /* @__PURE__ */ jsx(default_1$4, {}),
234
- iconPlacement: "left",
235
- size: "small",
236
- type: "default",
237
- variant: "text",
238
- onClick: onClose
239
- }
240
- ) })
241
- ] })
242
- ]
243
- }
244
- );
225
+ }
226
+ )
227
+ ] })
228
+ },
229
+ idx
230
+ )) }) }),
231
+ /* @__PURE__ */ jsx("div", { className: "right_info_container" })
232
+ ] }),
233
+ /* @__PURE__ */ jsxs("div", { className: "right_close_save_icon_container", children: [
234
+ onMinimiseChatBot && !isFullWidth && /* @__PURE__ */ jsx("div", { className: "minimise_icon_container", children: /* @__PURE__ */ jsx(
235
+ Button,
236
+ {
237
+ className: "chatbot-component-header-close-icon",
238
+ icon: /* @__PURE__ */ jsx(default_1$2, {}),
239
+ size: "small",
240
+ type: "default",
241
+ variant: "text",
242
+ onClick: onMinimiseChatBot
243
+ }
244
+ ) }),
245
+ handleSavedChat && /* @__PURE__ */ jsx("div", { className: "save_icon_container", children: /* @__PURE__ */ jsx(
246
+ Button,
247
+ {
248
+ icon: /* @__PURE__ */ jsx(default_1$3, {}),
249
+ iconPlacement: "left",
250
+ size: "small",
251
+ type: "default",
252
+ variant: "text",
253
+ onClick: handleSavedChat
254
+ }
255
+ ) }),
256
+ !isFullWidth && /* @__PURE__ */ jsx("div", { className: "close_icon_container", children: /* @__PURE__ */ jsx(
257
+ Button,
258
+ {
259
+ icon: /* @__PURE__ */ jsx(default_1$4, {}),
260
+ iconPlacement: "left",
261
+ size: "small",
262
+ type: "default",
263
+ variant: "text",
264
+ onClick: onClose
265
+ }
266
+ ) })
267
+ ] })
268
+ ] });
245
269
  }
246
270
  export {
247
271
  ChatbotModuleMenu
@@ -1,4 +1,4 @@
1
1
  import { ConversationScreenProps } from './Chatbot.types';
2
2
 
3
- export declare function ConversationScreen({ userChats, setUserChats, onSendIconClick, conversation, isAssistantThinking, activeList, onLikeClick, onDislikeClick, inputText, handleRefresh, handleSaveChat, handleMicClick, suggestionBanner, isStopIcon, onStopIconClick, onCloseSuggestionBanner, showSuggestionBanner, customInputComponent, footerText, isCollapsed, }: ConversationScreenProps): import("react/jsx-runtime").JSX.Element;
3
+ export declare function ConversationScreen({ userChats, setUserChats, onSendIconClick, conversation, isAssistantThinking, activeList, onLikeClick, onDislikeClick, inputText, handleRefresh, handleSaveChat, handleMicClick, suggestionBanner, isStopIcon, onStopIconClick, onCloseSuggestionBanner, showSuggestionBanner, customInputComponent, }: ConversationScreenProps): import("react/jsx-runtime").JSX.Element;
4
4
  //# sourceMappingURL=conversationScreen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"conversationScreen.d.ts","sourceRoot":"","sources":["../../../src/components/Chatbot/conversationScreen.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAe,uBAAuB,EAAsB,MAAM,iBAAiB,CAAC;AAEhG,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,EACT,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,UAAU,EACV,WAAW,EACX,cAAc,EACd,SAAS,EACT,aAAa,EACb,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,eAAe,EACf,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,UAAU,EACV,WAAW,GACZ,EAAE,uBAAuB,2CAwNzB"}
1
+ {"version":3,"file":"conversationScreen.d.ts","sourceRoot":"","sources":["../../../src/components/Chatbot/conversationScreen.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAe,uBAAuB,EAAsB,MAAM,iBAAiB,CAAC;AAEhG,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,EACT,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,UAAU,EACV,WAAW,EACX,cAAc,EACd,SAAS,EACT,aAAa,EACb,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,eAAe,EACf,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,GACrB,EAAE,uBAAuB,2CAuNzB"}
@@ -1,7 +1,6 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useState, useRef, useEffect, Fragment } from "react";
3
3
  import moment from "moment";
4
- import { ChatBotFooter } from "./chatBotFooter.js";
5
4
  import ChatInput from "./chatInput.js";
6
5
  import { getDateLabel, formatAMPM } from "./utils.js";
7
6
  import { useTranslation } from "../../i18n/useTranslation.js";
@@ -23,9 +22,7 @@ function ConversationScreen({
23
22
  onStopIconClick,
24
23
  onCloseSuggestionBanner,
25
24
  showSuggestionBanner,
26
- customInputComponent,
27
- footerText,
28
- isCollapsed
25
+ customInputComponent
29
26
  }) {
30
27
  const { t, locale } = useTranslation();
31
28
  const [input, setInput] = useState(inputText ?? "");
@@ -89,7 +86,7 @@ function ConversationScreen({
89
86
  "div",
90
87
  {
91
88
  ref: conversationBodyRef,
92
- className: `conversation-body-container ${showSuggestionBanner ? "show-suggestion-banner" : ""} ${isCollapsed ? "collapsed" : ""}`,
89
+ className: `conversation-body-container ${showSuggestionBanner ? "show-suggestion-banner" : ""}`,
93
90
  children: [
94
91
  conversationMessages.map((chat, idx) => {
95
92
  var _a, _b, _c;
@@ -198,8 +195,7 @@ function ConversationScreen({
198
195
  onSendIconClick,
199
196
  onStopIconClick
200
197
  }
201
- ) }),
202
- /* @__PURE__ */ jsx(ChatBotFooter, { footerText })
198
+ ) })
203
199
  ] });
204
200
  }
205
201
  export {
@@ -1,4 +1,4 @@
1
1
  import { CustomScreenProps } from './Chatbot.types';
2
2
 
3
- export declare function CustomScreen({ onClose, customScreenJsx, userChats, setUserChats, onSendIconClick, activeList, handleRefresh, handleMicClick, suggestionBanner, isStopIcon, onStopIconClick, onCloseSuggestionBanner, showSuggestionBanner, customInputComponent, isFullWidth, footerText, }: CustomScreenProps): import("react/jsx-runtime").JSX.Element;
3
+ export declare function CustomScreen({ onClose, customScreenJsx, userChats, setUserChats, onSendIconClick, activeList, handleRefresh, handleMicClick, suggestionBanner, isStopIcon, onStopIconClick, onCloseSuggestionBanner, showSuggestionBanner, customInputComponent, isFullWidth, }: CustomScreenProps): import("react/jsx-runtime").JSX.Element;
4
4
  //# sourceMappingURL=customScreen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"customScreen.d.ts","sourceRoot":"","sources":["../../../src/components/Chatbot/customScreen.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,wBAAgB,YAAY,CAAC,EAC3B,OAAO,EACP,eAAe,EACf,SAAS,EACT,YAAY,EACZ,eAAe,EACf,UAAU,EACV,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,eAAe,EACf,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,WAAW,EACX,UAAU,GACX,EAAE,iBAAiB,2CA0CnB"}
1
+ {"version":3,"file":"customScreen.d.ts","sourceRoot":"","sources":["../../../src/components/Chatbot/customScreen.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,wBAAgB,YAAY,CAAC,EAC3B,OAAO,EACP,eAAe,EACf,SAAS,EACT,YAAY,EACZ,eAAe,EACf,UAAU,EACV,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,eAAe,EACf,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,WAAW,GACZ,EAAE,iBAAiB,2CA2CnB"}
@@ -2,7 +2,6 @@ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useState } from "react";
3
3
  import default_1 from "../../node_modules/@mui/icons-material/Clear.js";
4
4
  import { Button } from "../Button/index.js";
5
- import { ChatBotFooter } from "./chatBotFooter.js";
6
5
  import ChatInput from "./chatInput.js";
7
6
  function CustomScreen({
8
7
  onClose,
@@ -19,8 +18,7 @@ function CustomScreen({
19
18
  onCloseSuggestionBanner,
20
19
  showSuggestionBanner,
21
20
  customInputComponent,
22
- isFullWidth,
23
- footerText
21
+ isFullWidth
24
22
  }) {
25
23
  const [input, setInput] = useState("");
26
24
  return /* @__PURE__ */ jsxs("div", { className: "chatbot-landing-screen-container", style: { pointerEvents: "auto" }, children: [
@@ -36,29 +34,30 @@ function CustomScreen({
36
34
  onClick: onClose
37
35
  }
38
36
  ) }),
39
- /* @__PURE__ */ jsx("div", { className: "chatbot-landing-screen-container-body", children: customScreenJsx }),
40
- /* @__PURE__ */ jsx("div", { className: "conversation-footer-container", children: /* @__PURE__ */ jsx(
41
- ChatInput,
42
- {
43
- customScreen: true,
44
- activeList,
45
- customInputComponent,
46
- handleMicClick,
47
- handleRefresh,
48
- inputValue: input,
49
- isStopIcon,
50
- minRows: 1,
51
- setInputValue: setInput,
52
- setUserChats,
53
- showSuggestionBanner,
54
- suggestionBanner,
55
- userChats,
56
- onCloseSuggestionBanner,
57
- onSendIconClick,
58
- onStopIconClick
59
- }
60
- ) }),
61
- /* @__PURE__ */ jsx(ChatBotFooter, { footerText })
37
+ /* @__PURE__ */ jsxs("div", { className: "chatbot-landing-screen-container-body", children: [
38
+ customScreenJsx,
39
+ /* @__PURE__ */ jsx("div", { className: "conversation-footer-container", children: /* @__PURE__ */ jsx(
40
+ ChatInput,
41
+ {
42
+ customScreen: true,
43
+ activeList,
44
+ customInputComponent,
45
+ handleMicClick,
46
+ handleRefresh,
47
+ inputValue: input,
48
+ isStopIcon,
49
+ minRows: 1,
50
+ setInputValue: setInput,
51
+ setUserChats,
52
+ showSuggestionBanner,
53
+ suggestionBanner,
54
+ userChats,
55
+ onCloseSuggestionBanner,
56
+ onSendIconClick,
57
+ onStopIconClick
58
+ }
59
+ ) })
60
+ ] })
62
61
  ] });
63
62
  }
64
63
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Chatbot/index.tsx"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,YAAY,EAAwB,MAAM,iBAAiB,CAAC;AAC1E,OAAO,sBAAsB,CAAC;AAiD9B,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAoCpD,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,YAAiD,EACjD,QAAQ,EAAE,SAAS,EACnB,aAAa,EAAE,cAAc,EAC7B,cAAc,EAAE,eAAe,EAC/B,mBAAmB,EACnB,mBAAmB,EACnB,eAA0B,EAC1B,cAAc,EAAE,eAAoB,EACpC,mBAA2B,EAC3B,UAAe,EACf,aAAwB,EACxB,OAAO,EACP,eAAe,EACf,UAA6C,EAC7C,YAAmB,EACnB,cAAsB,EACtB,eAAsB,EACtB,WAAsB,EACtB,cAAyB,EACzB,kBAA6B,EAC7B,SAAc,EACd,aAAa,EACb,cAAc,EACd,cAAc,EACd,aAAqB,EACrB,aAAqB,EACrB,mBAA2B,EAC3B,gBAAgB,EAChB,UAAkB,EAClB,eAA0B,EAC1B,aAAqB,EACrB,UAAU,EACV,uBAAkC,EAClC,oBAA4B,EAC5B,WAAgB,EAChB,oBAA2B,EAC3B,mBAA8B,EAC9B,gBAAqB,EACrB,qBAAgC,EAChC,2BAAsC,EACtC,oBAA+B,EAC/B,iBAAiB,EACjB,mBAA8B,EAC9B,gBAAuB,EACvB,WAAmB,EACnB,oBAAoB,EACpB,iBAA4B,EAC5B,iBAA4B,EAC5B,iBAAiB,EACjB,eAA0B,GAC3B,EAAE,YAAY,kDAscd;yBA7fe,gBAAgB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Chatbot/index.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,YAAY,EAAwB,MAAM,iBAAiB,CAAC;AAC1E,OAAO,sBAAsB,CAAC;AAI9B,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAoCpD,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,YAAiD,EACjD,QAAQ,EAAE,SAAS,EACnB,aAAa,EAAE,cAAc,EAC7B,cAAc,EAAE,eAAe,EAC/B,mBAAmB,EACnB,mBAAmB,EACnB,eAA0B,EAC1B,cAAc,EAAE,eAAoB,EACpC,mBAA2B,EAC3B,UAAe,EACf,aAAwB,EACxB,OAAO,EACP,eAAe,EACf,UAA6C,EAC7C,YAAmB,EACnB,cAAsB,EACtB,eAAsB,EACtB,WAAsB,EACtB,cAAyB,EACzB,kBAA6B,EAC7B,SAAc,EACd,aAAa,EACb,cAAc,EACd,cAAc,EACd,aAAqB,EACrB,aAAqB,EACrB,mBAA2B,EAC3B,gBAAgB,EAChB,UAAkB,EAClB,eAA0B,EAC1B,aAAqB,EACrB,UAAU,EACV,uBAAkC,EAClC,oBAA4B,EAC5B,WAAgB,EAChB,oBAA2B,EAC3B,mBAA8B,EAC9B,gBAAqB,EACrB,qBAAgC,EAChC,2BAAsC,EACtC,oBAA+B,EAC/B,iBAAiB,EACjB,mBAA8B,EAC9B,gBAAuB,EACvB,WAAmB,EACnB,oBAAoB,EACpB,iBAA4B,EAC5B,iBAA4B,EAC5B,iBAAiB,EACjB,eAA0B,GAC3B,EAAE,YAAY,kDA6Wd;yBApae,gBAAgB"}