impact-ui 4.0.1-alpha.2 → 4.0.1-alpha.21

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 (192) hide show
  1. package/dist/_virtual/North.js +4 -0
  2. package/dist/_virtual/_commonjsHelpers.js +1 -1
  3. package/dist/_virtual/index13.js +2 -2
  4. package/dist/_virtual/index14.js +2 -2
  5. package/dist/_virtual/index15.js +2 -2
  6. package/dist/_virtual/index16.js +2 -2
  7. package/dist/components/AccordionModern/index.js +5 -10
  8. package/dist/components/BottomSheet/index.d.ts.map +1 -1
  9. package/dist/components/BottomSheet/index.js +5 -4
  10. package/dist/components/Chart/index.d.ts.map +1 -1
  11. package/dist/components/Chart/index.js +5 -7
  12. package/dist/components/Chatbot/constant.d.ts.map +1 -1
  13. package/dist/components/Chatbot/constant.js +8 -2
  14. package/dist/components/Chatbot/index.d.ts.map +1 -1
  15. package/dist/components/Chatbot/index.js +24 -15
  16. package/dist/components/Chatbot/newChatComponent.js +1 -1
  17. package/dist/components/Checkbox/Default.js +1 -1
  18. package/dist/components/CommentsPanel/CommentsContext.js +5 -9
  19. package/dist/components/CommentsPanel/CommentsPanel.impl.d.ts.map +1 -1
  20. package/dist/components/CommentsPanel/CommentsPanel.impl.js +8 -12
  21. package/dist/components/DatePicker/index.d.ts.map +1 -1
  22. package/dist/components/DatePicker/index.js +1 -1
  23. package/dist/components/DateRangePicker/dateRangePickerCustom.d.ts +1 -5
  24. package/dist/components/DateRangePicker/dateRangePickerCustom.d.ts.map +1 -1
  25. package/dist/components/DateRangePicker/dateRangePickerCustom.js +1 -4
  26. package/dist/components/DateRangePicker/dateRangePickerDropdown.d.ts +1 -44
  27. package/dist/components/DateRangePicker/dateRangePickerDropdown.d.ts.map +1 -1
  28. package/dist/components/DateRangePicker/dateRangePickerDropdown.js +204 -166
  29. package/dist/components/DateRangePicker/dateRangePickerFooter.d.ts +1 -11
  30. package/dist/components/DateRangePicker/dateRangePickerFooter.d.ts.map +1 -1
  31. package/dist/components/DateRangePicker/dateRangePickerFooter.js +1 -1
  32. package/dist/components/DateRangePicker/dateRangePickerInput.d.ts +1 -30
  33. package/dist/components/DateRangePicker/dateRangePickerInput.d.ts.map +1 -1
  34. package/dist/components/DateRangePicker/dateRangePickerInput.js +225 -180
  35. package/dist/components/DateRangePicker/index.d.ts +2 -6
  36. package/dist/components/DateRangePicker/index.d.ts.map +1 -1
  37. package/dist/components/DateRangePicker/index.js +158 -164
  38. package/dist/components/DateRangePicker/showMonthYearSelect.d.ts +1 -12
  39. package/dist/components/DateRangePicker/showMonthYearSelect.d.ts.map +1 -1
  40. package/dist/components/DateRangePicker/showMonthYearSelect.js +37 -51
  41. package/dist/components/DateRangePicker/utils.d.ts +13 -39
  42. package/dist/components/DateRangePicker/utils.d.ts.map +1 -1
  43. package/dist/components/DateRangePicker/utils.js +25 -30
  44. package/dist/components/FileUpload/index.d.ts.map +1 -1
  45. package/dist/components/FileUpload/index.js +4 -2
  46. package/dist/components/FiltersStrip/AppliedFilters.d.ts.map +1 -1
  47. package/dist/components/FiltersStrip/AppliedFilters.js +6 -6
  48. package/dist/components/Header/index.js +1 -1
  49. package/dist/components/KeyboardShortCuts/Keycombo.d.ts +3 -1
  50. package/dist/components/KeyboardShortCuts/Keycombo.d.ts.map +1 -1
  51. package/dist/components/KeyboardShortCuts/Keycombo.js +11 -1
  52. package/dist/components/KeyboardShortCuts/ShortcutLandingPage.d.ts.map +1 -1
  53. package/dist/components/KeyboardShortCuts/ShortcutLandingPage.js +38 -12
  54. package/dist/components/KeyboardShortCuts/ShortcutModal.d.ts.map +1 -1
  55. package/dist/components/KeyboardShortCuts/ShortcutModal.js +100 -43
  56. package/dist/components/KeyboardShortCuts/allSetBox.js +1 -1
  57. package/dist/components/KeyboardShortCuts/index.js +1 -1
  58. package/dist/components/KeyboardShortCuts/tutorial.d.ts.map +1 -1
  59. package/dist/components/KeyboardShortCuts/tutorial.js +9 -6
  60. package/dist/components/Loader/index.js +1 -1
  61. package/dist/components/Menu/MenuHeaderInfo.d.ts.map +1 -1
  62. package/dist/components/Menu/MenuHeaderInfo.js +4 -7
  63. package/dist/components/Modal/Modal.types.d.ts +12 -1
  64. package/dist/components/Modal/Modal.types.d.ts.map +1 -1
  65. package/dist/components/Modal/index.js +2 -2
  66. package/dist/components/Notification/Notification.types.d.ts +4 -0
  67. package/dist/components/Notification/Notification.types.d.ts.map +1 -1
  68. package/dist/components/Notification/NotificationBody/NotificationList/NotificationChipsList.d.ts.map +1 -1
  69. package/dist/components/Notification/NotificationBody/NotificationList/NotificationChipsList.js +2 -1
  70. package/dist/components/Notification/NotificationBody/NotificationList/NotificationList.d.ts.map +1 -1
  71. package/dist/components/Notification/NotificationBody/NotificationList/NotificationList.js +9 -4
  72. package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.d.ts.map +1 -1
  73. package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.js +169 -47
  74. package/dist/components/Notification/index.js +1 -1
  75. package/dist/components/Notification/mockData.d.ts.map +1 -1
  76. package/dist/components/Select/Select.types.d.ts +4 -6
  77. package/dist/components/Select/Select.types.d.ts.map +1 -1
  78. package/dist/components/Select/customGroupHeading.d.ts.map +1 -1
  79. package/dist/components/Select/customGroupHeading.js +9 -3
  80. package/dist/components/Select/dropdown.d.ts.map +1 -1
  81. package/dist/components/Select/dropdown.js +1 -1
  82. package/dist/components/Select/hooks/useMenuPosition.d.ts +1 -1
  83. package/dist/components/Select/hooks/useMenuPosition.d.ts.map +1 -1
  84. package/dist/components/Select/hooks/useMenuPosition.js +25 -39
  85. package/dist/components/Select/hooks/useScrollIntoView.d.ts +2 -1
  86. package/dist/components/Select/hooks/useScrollIntoView.d.ts.map +1 -1
  87. package/dist/components/Select/hooks/useScrollIntoView.js +4 -2
  88. package/dist/components/Select/index.d.ts.map +1 -1
  89. package/dist/components/Select/index.js +6 -13
  90. package/dist/components/Select/menuList.d.ts.map +1 -1
  91. package/dist/components/Select/menuList.js +19 -19
  92. package/dist/components/Slider/index.d.ts +1 -1
  93. package/dist/components/Slider/index.d.ts.map +1 -1
  94. package/dist/components/Slider/index.js +2 -8
  95. package/dist/components/Table/AdvanceSortModal.d.ts.map +1 -1
  96. package/dist/components/Table/AdvanceSortModal.js +3 -5
  97. package/dist/components/Table/AgGridHeader.d.ts.map +1 -1
  98. package/dist/components/Table/AgGridHeader.js +27 -10
  99. package/dist/components/Table/CommentsPortal.d.ts.map +1 -1
  100. package/dist/components/Table/CommentsPortal.js +6 -10
  101. package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModal.d.ts.map +1 -1
  102. package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModal.js +5 -1
  103. package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts.map +1 -1
  104. package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.js +6 -1
  105. package/dist/components/Table/NoComments.d.ts.map +1 -1
  106. package/dist/components/Table/NoComments.js +2 -3
  107. package/dist/components/Table/index.d.ts +1 -2
  108. package/dist/components/Table/index.d.ts.map +1 -1
  109. package/dist/components/Table/index.js +156 -112
  110. package/dist/components/Table/tableFunctions.d.ts.map +1 -1
  111. package/dist/components/Table/tableFunctions.js +176 -104
  112. package/dist/components/Table/tableHeader.d.ts +2 -1
  113. package/dist/components/Table/tableHeader.d.ts.map +1 -1
  114. package/dist/components/Table/tableHeader.js +2 -0
  115. package/dist/components/Table/tableMoreOptions.d.ts +2 -1
  116. package/dist/components/Table/tableMoreOptions.d.ts.map +1 -1
  117. package/dist/components/Table/tableMoreOptions.js +2 -1
  118. package/dist/components/Table/tableSettings.d.ts +2 -1
  119. package/dist/components/Table/tableSettings.d.ts.map +1 -1
  120. package/dist/components/Table/tableSettings.js +2 -0
  121. package/dist/components/Table/withCommentIcon.d.ts.map +1 -1
  122. package/dist/components/Table/withCommentIcon.js +2 -3
  123. package/dist/components/TableChat/EmptyContainer.js +1 -1
  124. package/dist/components/TableChat/TableChatSidePanel.d.ts.map +1 -1
  125. package/dist/components/TableChat/TableChatSidePanel.js +18 -22
  126. package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.d.ts +1 -2
  127. package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.d.ts.map +1 -1
  128. package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.js +15 -18
  129. package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.d.ts +1 -3
  130. package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.d.ts.map +1 -1
  131. package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.js +26 -22
  132. package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelList.d.ts.map +1 -1
  133. package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelList.js +4 -52
  134. package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.d.ts +1 -3
  135. package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.d.ts.map +1 -1
  136. package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.js +2 -7
  137. package/dist/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.js +1 -1
  138. package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.d.ts +1 -2
  139. package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.d.ts.map +1 -1
  140. package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.js +17 -17
  141. package/dist/components/TableChat/components/TableChatRightSection/{ChatEditedMessageType/ChatEditedMessageType.d.ts → ChatEditedMessageType /ChatEditedMessageType.d.ts } +0 -1
  142. package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType /ChatEditedMessageType.d.ts.map +1 -0
  143. package/dist/components/TableChat/components/TableChatRightSection/{ChatEditedMessageType/ChatEditedMessageType.js → ChatEditedMessageType /ChatEditedMessageType.js } +2 -4
  144. package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.d.ts +1 -2
  145. package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.d.ts.map +1 -1
  146. package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.js +7 -8
  147. package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.d.ts.map +1 -1
  148. package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.js +4 -8
  149. package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.d.ts +1 -1
  150. package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.d.ts.map +1 -1
  151. package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.js +18 -9
  152. package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.d.ts.map +1 -1
  153. package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.js +7 -9
  154. package/dist/components/TableChat/components/TableChatRightSection/ChatMessageAvatar/ChatMessageAvatar.js +1 -1
  155. package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.d.ts +1 -2
  156. package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.d.ts.map +1 -1
  157. package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.js +5 -9
  158. package/dist/components/TableChat/components/TableChatRightSection/DateSeparator/DateSeparator.js +1 -1
  159. package/dist/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChatPanel.d.ts.map +1 -1
  160. package/dist/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChatPanel.js +6 -18
  161. package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.d.ts +1 -3
  162. package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.d.ts.map +1 -1
  163. package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.js +4 -13
  164. package/dist/components/TableChat/components/TextEditor/Mention.js +1 -1
  165. package/dist/components/TableChat/components/TextEditor/MentionList.js +1 -1
  166. package/dist/components/TableChat/utils/formatChatTimestamp.js +14 -0
  167. package/dist/components/TableOld/AgGridHeader.d.ts.map +1 -1
  168. package/dist/components/TableOld/AgGridHeader.js +10 -4
  169. package/dist/components/TableOld/index.d.ts.map +1 -1
  170. package/dist/components/TableOld/index.js +3 -1
  171. package/dist/components/TableOld/tableFunctions.d.ts.map +1 -1
  172. package/dist/components/TableOld/tableFunctions.js +176 -104
  173. package/dist/components/TableOld/tableHeader.d.ts +2 -1
  174. package/dist/components/TableOld/tableHeader.d.ts.map +1 -1
  175. package/dist/components/TableOld/tableHeader.js +2 -0
  176. package/dist/components/TextArea/index.js +1 -1
  177. package/dist/mcp-component-registry.json +1 -1
  178. package/dist/node_modules/@impactsmartsuite/impact-icons/dist/index.js +5195 -0
  179. package/dist/node_modules/@mui/icons-material/North.js +17 -0
  180. package/dist/node_modules/call-bind/index.js +1 -1
  181. package/dist/node_modules/global-cache/index.js +4 -5
  182. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
  183. package/dist/node_modules/is-callable/index.js +1 -1
  184. package/dist/node_modules/is-symbol/index.js +1 -1
  185. package/dist/node_modules/lodash/lodash.js +1 -1
  186. package/dist/node_modules/object-inspect/index.js +1 -2
  187. package/dist/node_modules/react-with-styles-interface-css/dist/index.js +1 -1
  188. package/dist/utils/helper.d.ts +4 -2
  189. package/dist/utils/helper.d.ts.map +1 -1
  190. package/dist/utils/helper.js +13 -8
  191. package/package.json +5 -4
  192. package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType/ChatEditedMessageType.d.ts.map +0 -1
@@ -1,4 +1,4 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(':root{--ia-focus-color:#4259ee;--ia-focus-bg:#fff;--ia-focus-ring-width:2px;--ia-focus-ring-offset:2px}*,:after,:before{box-sizing:border-box}body,textarea{font-style:normal;font-weight:500}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font-size:100%;font:inherit;margin:0;padding:0;vertical-align:initial}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}body{font-family:Manrope,sans-serif}.impact-notification-separator{background-color:#d9dde7;display:inline-block;height:16px;width:1.5px}.impact-notification-horizontal-separator{background-color:#d9dde7;display:inline-block;height:1px;width:100%}ul.storybook-order-list{list-style-type:disc;padding-left:12px}ul.storybook-order-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-list li strong{font-weight:800}ul.storybook-order-child-list{list-style-type:circle;padding-left:20px}ul.storybook-order-child-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-child-list li strong{font-weight:800}#table-chat-side-panel .impact_drawer_container{background:#fff}#table-chat-side-panel .impact_drawer_header{background:#eceefd;border-bottom:1px solid #d9dde7}#table-chat-side-panel .impact_drawer_body{padding:0}.table-chat-container{display:flex;flex-direction:row;gap:10px;height:100%;width:100%}.empty-container{align-items:center;display:flex;justify-content:center}.empty-container img{height:197px;width:190px}.empty-container p:first-of-type{color:#1f2b4d;font-size:20px;font-style:normal;font-weight:800;line-height:30px}.empty-container p:nth-of-type(2){color:#7a8294;font-size:16px;font-style:normal;font-weight:500;line-height:125%;text-align:center}.loader-padding{padding:16px;width:100%}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(':root{--ia-focus-color:#4259ee;--ia-focus-bg:#fff;--ia-focus-ring-width:2px;--ia-focus-ring-offset:2px}*,:after,:before{box-sizing:border-box}body,textarea{font-style:normal;font-weight:500}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font-size:100%;font:inherit;margin:0;padding:0;vertical-align:initial}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}body{font-family:Manrope,sans-serif}.impact-notification-separator{background-color:#d9dde7;display:inline-block;height:16px;width:1.5px}.impact-notification-horizontal-separator{background-color:#d9dde7;display:inline-block;height:1px;width:100%}ul.storybook-order-list{list-style-type:disc;padding-left:12px}ul.storybook-order-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-list li strong{font-weight:800}ul.storybook-order-child-list{list-style-type:circle;padding-left:20px}ul.storybook-order-child-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-child-list li strong{font-weight:800}#table-chat-side-panel .impact_drawer_container{background:#fff}#table-chat-side-panel .impact_drawer_header{background:#eceefd;border-bottom:1px solid #d9dde7}#table-chat-side-panel .impact_drawer_body{padding:0}.table-chat-container{box-sizing:border-box;display:flex;flex-direction:row;gap:10px;height:100%;overflow:hidden;width:100%}.table-chat-container .table-left-panel-container{flex:0 0 350px;flex-shrink:0;max-width:350px;width:350px}.table-chat-container .table-chat-right-section-container{flex:1 1 0;max-width:100%;min-width:0;width:auto}.empty-container{align-items:center;display:flex;justify-content:center}.empty-container img{height:197px;width:190px}.empty-container p:first-of-type{color:#1f2b4d;font-size:20px;font-style:normal;font-weight:800;line-height:30px}.empty-container p:nth-of-type(2){color:#7a8294;font-size:16px;font-style:normal;font-weight:500;line-height:125%;text-align:center}.loader-padding{padding:16px;width:100%}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
2
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
3
3
  import { useState, useCallback, useMemo, useEffect } from "react";
4
4
  import { Panel } from "../Panel/index.js";
@@ -10,9 +10,10 @@ import TableChatChannelHeader from "./components/TableChatLeftSection/TableChatC
10
10
  import { PinnedPanel } from "./components/TableChatRightSection/PinedChatPanel/PinedChatPanel.js";
11
11
  import TableChatRightSection from "./components/TableChatRightSection/TableChatRightSection.js";
12
12
  import { EmptyContainer } from "./EmptyContainer.js";
13
+ import { formatChatHeaderTimestamp } from "./utils/formatChatTimestamp.js";
13
14
 
14
15
  const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration }) => {
15
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P;
16
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L;
16
17
  const [selectedChannelId, setSelectedChannelId] = useState(null);
17
18
  const [selectedChannelInfo, setSelectedChannelInfo] = useState(null);
18
19
  const [selectedChatId, setSelectedChatId] = useState(null);
@@ -125,7 +126,7 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration }) => {
125
126
  var _a3, _b3;
126
127
  setShowPinnedMsg(false);
127
128
  setShowThread(true);
128
- handleThreadClick();
129
+ handleThreadClick(messageId);
129
130
  (_b3 = (_a3 = chatConfiguration == null ? void 0 : chatConfiguration.messageChatConfig) == null ? void 0 : _a3.onThreadClick) == null ? void 0 : _b3.call(_a3, messageId, messageItem);
130
131
  },
131
132
  // Load participants for mentions
@@ -221,12 +222,13 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration }) => {
221
222
  id: (_d2 = (_c2 = newChat == null ? void 0 : newChat.otherProps) == null ? void 0 : _c2.object_ids) == null ? void 0 : _d2[0],
222
223
  title: "Chat List",
223
224
  objectType: (_e2 = newChat == null ? void 0 : newChat.otherProps) == null ? void 0 : _e2.object_type
224
- // or get from configuration
225
225
  };
226
226
  await fetchChatList(newChannelInfo);
227
227
  setSelectedChannelInfo(newChannelInfo);
228
228
  setSelectedChannelId((_g2 = (_f2 = newChat == null ? void 0 : newChat.otherProps) == null ? void 0 : _f2.object_ids) == null ? void 0 : _g2[0]);
229
229
  await handleChatClick(newChat.id, newChat);
230
+ } else if (selectedChannelId2) {
231
+ await fetchChatList(selectedChannelId2);
230
232
  }
231
233
  }
232
234
  return response;
@@ -307,6 +309,7 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration }) => {
307
309
  setIsSearchOpen(false);
308
310
  setIsMoreOpen(false);
309
311
  setHighlightMessageId(null);
312
+ setIsCreateNewChatOpen(false);
310
313
  };
311
314
  const handleBackToChannels = async () => {
312
315
  var _a2;
@@ -477,13 +480,11 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration }) => {
477
480
  TableChatChannelHeader,
478
481
  {
479
482
  channels: isChannelsScreen ? channelsList : chatList,
480
- currentUserId,
481
483
  filterChannelsByTitle,
482
484
  handleChatName,
483
485
  handleChatSelect,
484
486
  handleToast,
485
487
  headerConfig: (_s = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _s.leftHeaderPanel,
486
- inputPanelConfig: (_t = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _t.inputPanelConfig,
487
488
  isCreateNewChatOpen,
488
489
  isSearchOpen,
489
490
  loadingChannels: loadingChannelsOrChats,
@@ -491,9 +492,9 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration }) => {
491
492
  selectedChannelOrChatId,
492
493
  selectedChat,
493
494
  setIsCreateNewChatOpen,
494
- showAddChatBtn: (_v = (_u = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _u.leftHeaderPanel) == null ? void 0 : _v.showAddChat,
495
+ showAddChatBtn: (_u = (_t = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _t.leftHeaderPanel) == null ? void 0 : _u.showAddChat,
495
496
  showChannelList: isChannelsScreen,
496
- showCheckbox: (_x = (_w = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _w.leftChatPanel) == null ? void 0 : _x.showCheckbox,
497
+ showCheckbox: (_w = (_v = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _v.leftChatPanel) == null ? void 0 : _w.showCheckbox,
497
498
  title: isChannelsScreen ? "Channels List" : selectedChannelInfo == null ? void 0 : selectedChannelInfo.title,
498
499
  onBack: handleBackToChannels,
499
500
  onChannelSelect: (id, selectedChannelOrChat) => {
@@ -506,15 +507,15 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration }) => {
506
507
  onDeleteTopics: handleDeletePromptOpen,
507
508
  onMenuClick: toggleMenu,
508
509
  onMoreClick: showMore,
509
- onPinnedChatClick: (_y = chatConfiguration == null ? void 0 : chatConfiguration.headerChatConfig) == null ? void 0 : _y.onPinnedChatClick,
510
+ onPinnedChatClick: (_x = chatConfiguration == null ? void 0 : chatConfiguration.headerChatConfig) == null ? void 0 : _x.onPinnedChatClick,
510
511
  onSearchClick: openSearch
511
512
  }
512
513
  ),
513
514
  loadingMessages ? /* @__PURE__ */ jsx(ChatSkeleton, { text: "Loading messages..." }) : /* @__PURE__ */ jsx(Fragment, { children: !selectedChannelId || !selectedChatId ? /* @__PURE__ */ jsx(
514
515
  EmptyContainer,
515
516
  {
516
- subTitle: !selectedChannelId ? (_z = chatConfiguration == null ? void 0 : chatConfiguration.messageChatConfig) == null ? void 0 : _z.emptyChannelStateSubTitle : !selectedChatId ? (_A = chatConfiguration == null ? void 0 : chatConfiguration.messageChatConfig) == null ? void 0 : _A.emptyChatStateSubTitle : "",
517
- title: !selectedChannelId ? (_B = chatConfiguration == null ? void 0 : chatConfiguration.messageChatConfig) == null ? void 0 : _B.emptyChannelStateTitle : !selectedChatId ? (_C = chatConfiguration == null ? void 0 : chatConfiguration.messageChatConfig) == null ? void 0 : _C.emptyChatStateTitle : ""
517
+ subTitle: !selectedChannelId ? (_y = chatConfiguration == null ? void 0 : chatConfiguration.messageChatConfig) == null ? void 0 : _y.emptyChannelStateSubTitle : !selectedChatId ? (_z = chatConfiguration == null ? void 0 : chatConfiguration.messageChatConfig) == null ? void 0 : _z.emptyChatStateSubTitle : "",
518
+ title: !selectedChannelId ? (_A = chatConfiguration == null ? void 0 : chatConfiguration.messageChatConfig) == null ? void 0 : _A.emptyChannelStateTitle : !selectedChatId ? (_B = chatConfiguration == null ? void 0 : chatConfiguration.messageChatConfig) == null ? void 0 : _B.emptyChatStateTitle : ""
518
519
  }
519
520
  ) : /* @__PURE__ */ jsx(
520
521
  TableChatRightSection,
@@ -528,23 +529,18 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration }) => {
528
529
  }
529
530
  },
530
531
  chatId: selectedChatId,
531
- CreatedBy: ((_D = selectedChatInfo == null ? void 0 : selectedChatInfo.otherProps) == null ? void 0 : _D.created_by_user) ?? (selectedChatInfo == null ? void 0 : selectedChatInfo.createdBy) ?? (selectedChatInfo == null ? void 0 : selectedChatInfo.user) ?? "—",
532
+ CreatedBy: (selectedChatInfo == null ? void 0 : selectedChatInfo.createdBy) || (selectedChatInfo == null ? void 0 : selectedChatInfo.user) || ((_C = selectedChatInfo == null ? void 0 : selectedChatInfo.otherProps) == null ? void 0 : _C.created_by_user),
532
533
  handleToast,
533
534
  inputChatConfig: {
534
535
  ...chatConfiguration.inputChatConfig
535
536
  },
536
- createdAt: (selectedChatInfo == null ? void 0 : selectedChatInfo.timestamp) ?? (selectedChatInfo == null ? void 0 : selectedChatInfo.createdAt) ?? (((_E = selectedChatInfo == null ? void 0 : selectedChatInfo.otherProps) == null ? void 0 : _E.created_at) ? new Date(selectedChatInfo.otherProps.created_at).toLocaleString(void 0, {
537
- dateStyle: "medium",
538
- timeStyle: "short"
539
- }) : ""),
540
537
  messageConfig: memoizedMessageConfig,
541
- owner: (_F = selectedChatInfo == null ? void 0 : selectedChatInfo.otherProps) == null ? void 0 : _F.created_by,
542
538
  setPinnedMessages,
543
- showActionBtn: (_H = (_G = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _G.rightHeaderPanel) == null ? void 0 : _H.showActionBtn,
544
- showChatId: (_J = (_I = chatConfiguration == null ? void 0 : chatConfiguration.headerChatConfig) == null ? void 0 : _I.headerConfig) == null ? void 0 : _J.showChatId,
545
- showParticipantsList: (_L = (_K = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _K.rightHeaderPanel) == null ? void 0 : _L.showParticipants,
546
- showPinnedChat: (_N = (_M = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _M.rightHeaderPanel) == null ? void 0 : _N.showPinnedChat,
547
- showSearch: (_P = (_O = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _O.rightHeaderPanel) == null ? void 0 : _P.showChatSearch,
539
+ showActionBtn: (_E = (_D = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _D.rightHeaderPanel) == null ? void 0 : _E.showActionBtn,
540
+ showParticipantsList: (_G = (_F = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _F.rightHeaderPanel) == null ? void 0 : _G.showParticipants,
541
+ showPinnedChat: (_I = (_H = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _H.rightHeaderPanel) == null ? void 0 : _I.showPinnedChat,
542
+ showSearch: (_K = (_J = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _J.rightHeaderPanel) == null ? void 0 : _K.showChatSearch,
543
+ createdAt: (selectedChatInfo == null ? void 0 : selectedChatInfo.createdAt) || formatChatHeaderTimestamp((_L = selectedChatInfo == null ? void 0 : selectedChatInfo.otherProps) == null ? void 0 : _L.created_at),
548
544
  title: selectedChatInfo == null ? void 0 : selectedChatInfo.title
549
545
  }
550
546
  ) }),
@@ -1,11 +1,10 @@
1
1
 
2
- declare const AddChat: ({ setShowAddChat, handleChatName, selectedChannelInfo, handleToast, setIsCreateNewChatOpen, inputPanelConfig, }: {
2
+ declare const AddChat: ({ setShowAddChat, handleChatName, selectedChannelInfo, handleToast, setIsCreateNewChatOpen, }: {
3
3
  setShowAddChat: any;
4
4
  handleChatName: any;
5
5
  selectedChannelInfo: any;
6
6
  handleToast: any;
7
7
  setIsCreateNewChatOpen: any;
8
- inputPanelConfig: any;
9
8
  }) => import("react/jsx-runtime").JSX.Element;
10
9
  export default AddChat;
11
10
  //# sourceMappingURL=AddChatContainer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AddChatContainer.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.tsx"],"names":[],"mappings":"AAMA,OAAO,gCAAgC,CAAC;AA4BxC,QAAA,MAAM,OAAO,GAAI;;;;;;;CAOhB,4CA4HA,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"AddChatContainer.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.tsx"],"names":[],"mappings":"AAMA,OAAO,gCAAgC,CAAC;AAuBxC,QAAA,MAAM,OAAO,GAAI;;;;;;CAMhB,4CAyHA,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -17,11 +17,6 @@ const validationRules = {
17
17
  value: 50,
18
18
  message: "Chat name cannot exceed 50 characters"
19
19
  }
20
- // pattern: {
21
- // value: /^[a-zA-Z0-9\s\-_]+$/,
22
- // message:
23
- // "Chat name can only contain letters, numbers, spaces, hyphens, and underscores",
24
- // },
25
20
  },
26
21
  chatDescription: {
27
22
  maxLength: {
@@ -35,23 +30,26 @@ const AddChat = ({
35
30
  handleChatName,
36
31
  selectedChannelInfo,
37
32
  handleToast,
38
- setIsCreateNewChatOpen,
39
- inputPanelConfig
33
+ setIsCreateNewChatOpen
40
34
  }) => {
41
35
  const containerRef = useRef(null);
42
36
  const {
43
37
  control,
44
38
  handleSubmit,
45
- formState: { errors, isSubmitting, isValid },
39
+ formState: { errors, isSubmitting },
46
40
  reset
47
41
  } = useForm({
48
42
  mode: "onSubmit",
49
- // Validate on change for real-time feedback
50
43
  defaultValues: {
51
44
  chatName: "",
52
45
  chatDescription: ""
53
46
  }
54
47
  });
48
+ const handleCancel = () => {
49
+ reset();
50
+ setShowAddChat(false);
51
+ setIsCreateNewChatOpen(false);
52
+ };
55
53
  useEffect(() => {
56
54
  function handleClickOutside(event) {
57
55
  if (containerRef.current && !containerRef.current.contains(event.target)) {
@@ -66,6 +64,10 @@ const AddChat = ({
66
64
  const onSubmit = async (data) => {
67
65
  try {
68
66
  const response = await handleChatName(data, selectedChannelInfo);
67
+ if ((response == null ? void 0 : response.success) === false) {
68
+ handleToast(true, "Error while saving chat", "error");
69
+ return;
70
+ }
69
71
  handleToast(true, "Chat saved successfully", "success");
70
72
  handleCancel();
71
73
  } catch (err) {
@@ -73,11 +75,6 @@ const AddChat = ({
73
75
  handleToast(true, "Error while saving chat", "error");
74
76
  }
75
77
  };
76
- const handleCancel = () => {
77
- reset();
78
- setShowAddChat(false);
79
- setIsCreateNewChatOpen(false);
80
- };
81
78
  return /* @__PURE__ */ jsx("div", { ref: containerRef, className: "addChat_container", children: /* @__PURE__ */ jsxs("form", { noValidate: true, className: "chatcontainer", onSubmit: handleSubmit(onSubmit), children: [
82
79
  /* @__PURE__ */ jsx(
83
80
  Controller,
@@ -95,7 +92,7 @@ const AddChat = ({
95
92
  isHelperText: !!errors.chatName,
96
93
  label: "Chat name",
97
94
  name: field.name,
98
- placeholder: (inputPanelConfig == null ? void 0 : inputPanelConfig.inputPlaceholder) || "Price negotiation",
95
+ placeholder: "Price negotiation",
99
96
  type: "text",
100
97
  value: field.value,
101
98
  onBlur: field.onBlur,
@@ -123,7 +120,7 @@ const AddChat = ({
123
120
  label: "Add description",
124
121
  maxRows: 2,
125
122
  name: field.name,
126
- placeholder: (inputPanelConfig == null ? void 0 : inputPanelConfig.textAreaPlaceholder) || "Lets review the latest changes",
123
+ placeholder: "Lets review the latest changes",
127
124
  secondaryLabel: (_a = errors.chatDescription) == null ? void 0 : _a.message,
128
125
  value: field.value || "",
129
126
  width: "100%",
@@ -140,8 +137,8 @@ const AddChat = ({
140
137
  Button,
141
138
  {
142
139
  disabled: isSubmitting,
140
+ htmlType: "button",
143
141
  size: "large",
144
- type: "button",
145
142
  variant: "tertiary",
146
143
  onClick: handleCancel,
147
144
  children: "Cancel"
@@ -152,8 +149,8 @@ const AddChat = ({
152
149
  {
153
150
  className: "chat_save_btn",
154
151
  disabled: isSubmitting,
152
+ htmlType: "submit",
155
153
  size: "large",
156
- type: "submit",
157
154
  variant: "primary",
158
155
  children: isSubmitting ? /* @__PURE__ */ jsx(Fragment, { children: "Saving..." }) : "Save"
159
156
  }
@@ -1,4 +1,4 @@
1
- export declare const ChatChannelItem: ({ id, title, subtitle, timestamp, unreadCount, avatar, isSelected, isMuted, onClick, showChannelList, showCheckbox, handleChatSelect, selectedChat, onPinnedChatClick, onPinnedChange, handleToast, isPinned: isPinnedProp, ...rest }: {
1
+ export declare const ChatChannelItem: ({ id, title, subtitle, timestamp, unreadCount, avatar, isSelected, isMuted, onClick, showChannelList, showCheckbox, handleChatSelect, selectedChat, onPinnedChatClick, handleToast, ...rest }: {
2
2
  [x: string]: any;
3
3
  id: any;
4
4
  title: any;
@@ -16,8 +16,6 @@ export declare const ChatChannelItem: ({ id, title, subtitle, timestamp, unreadC
16
16
  } | undefined;
17
17
  selectedChat: any;
18
18
  onPinnedChatClick: any;
19
- onPinnedChange: any;
20
19
  handleToast: any;
21
- isPinned: any;
22
20
  }) => import("react/jsx-runtime").JSX.Element;
23
21
  //# sourceMappingURL=ChatChannelItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChatChannelItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableChat/components/TableChatLeftSection/ChatChannelItem.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,eAAe,GAAI;;;;;;;;;;;;;;;;;;;;;CAmB/B,4CAmFA,CAAC"}
1
+ {"version":3,"file":"ChatChannelItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableChat/components/TableChatLeftSection/ChatChannelItem.tsx"],"names":[],"mappings":"AAUA,eAAO,MAAM,eAAe,GAAI;;;;;;;;;;;;;;;;;;;CAiB/B,4CA4FA,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
+ import { useState, useEffect } from "react";
2
3
  import default_1 from "../../../../node_modules/@mui/icons-material/NotificationsOff.js";
3
4
  import { getAssetUrl } from "../../../../utils/assetBase.js";
4
5
  import { ChannelCheckbox } from "./ChannelCheckbox/ChannelCheckbox.js";
@@ -20,25 +21,24 @@ const ChatChannelItem = ({
20
21
  handleChatSelect = { handleChatSelect },
21
22
  selectedChat,
22
23
  onPinnedChatClick,
23
- onPinnedChange,
24
24
  handleToast,
25
- isPinned: isPinnedProp,
26
25
  ...rest
27
26
  }) => {
28
- const isPinned = Boolean(isPinnedProp ?? rest.isPinned);
29
- const handlePinnedChatClick = async (chatId, newPinned) => {
27
+ const [showPinned, setShowPinned] = useState(rest.isPinned);
28
+ const handlePinnedChatClick = async (chatId, isPinned) => {
30
29
  if (onPinnedChatClick) {
31
- onPinnedChange == null ? void 0 : onPinnedChange(chatId, newPinned);
32
30
  try {
33
- const response = await onPinnedChatClick(chatId, newPinned);
34
- onPinnedChange == null ? void 0 : onPinnedChange(chatId, response);
31
+ const response = await onPinnedChatClick(chatId, isPinned);
32
+ setShowPinned(response);
35
33
  } catch (error) {
36
- onPinnedChange == null ? void 0 : onPinnedChange(chatId, !newPinned);
37
34
  handleToast(true, "Error pinning chat", "error");
38
35
  console.error("Error pinning chat:", error);
39
36
  }
40
37
  }
41
38
  };
39
+ useEffect(() => {
40
+ setShowPinned(rest.isPinned);
41
+ }, [rest.isPinned]);
42
42
  return /* @__PURE__ */ jsxs(
43
43
  "div",
44
44
  {
@@ -75,28 +75,32 @@ const ChatChannelItem = ({
75
75
  /* @__PURE__ */ jsx("p", { className: "channel-subtitle", children: subtitle }),
76
76
  /* @__PURE__ */ jsxs("div", { className: "pinnedChat_container", children: [
77
77
  /* @__PURE__ */ jsx("span", { className: "channel-time", children: timestamp }),
78
- !showChannelList && /* @__PURE__ */ jsx(
78
+ !showChannelList && /* @__PURE__ */ jsx(Fragment, { children: showPinned ? /* @__PURE__ */ jsx(
79
79
  "img",
80
80
  {
81
81
  alt: "",
82
- "aria-label": isPinned ? "Unpin chat" : "Pin chat",
83
- className: isPinned ? "pinnedChat pinnedChat--active" : "pinnedChat",
84
- role: "button",
82
+ height: 16,
85
83
  src: PinnedIcon,
86
- tabIndex: 0,
84
+ width: 16,
87
85
  onClick: (e) => {
88
86
  e.stopPropagation();
89
- handlePinnedChatClick(id, !isPinned);
90
- },
91
- onKeyDown: (e) => {
92
- if (e.key === "Enter" || e.key === " ") {
93
- e.preventDefault();
94
- e.stopPropagation();
95
- handlePinnedChatClick(id, !isPinned);
96
- }
87
+ handlePinnedChatClick(id, false);
97
88
  }
98
89
  }
99
- )
90
+ ) : /* @__PURE__ */ jsx(
91
+ "img",
92
+ {
93
+ alt: "",
94
+ className: "pinnedChat",
95
+ height: 16,
96
+ src: PinnedIcon,
97
+ width: 16,
98
+ onClick: (e) => {
99
+ e.stopPropagation();
100
+ handlePinnedChatClick(id, true);
101
+ }
102
+ }
103
+ ) })
100
104
  ] })
101
105
  ] })
102
106
  ]
@@ -1 +1 @@
1
- {"version":3,"file":"ChatChannelList.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableChat/components/TableChatLeftSection/ChatChannelList.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe,GAAI;;;;;;;;;;CAU/B,4CA4EA,CAAC"}
1
+ {"version":3,"file":"ChatChannelList.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableChat/components/TableChatLeftSection/ChatChannelList.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe,GAAI;;;;;;;;;;CAU/B,4CA4BA,CAAC"}
@@ -1,10 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { useState, useEffect, useCallback } from "react";
3
2
  import { ChatChannelItem } from "./ChatChannelItem.js";
4
- const isItemPinned = (item) => {
5
- var _a;
6
- return Boolean((item == null ? void 0 : item.isPinned) ?? ((_a = item == null ? void 0 : item.otherProps) == null ? void 0 : _a.is_pinned));
7
- };
8
3
  const ChatChannelList = ({
9
4
  channels,
10
5
  selectedChannelOrChatId,
@@ -16,66 +11,23 @@ const ChatChannelList = ({
16
11
  onPinnedChatClick,
17
12
  handleToast
18
13
  }) => {
19
- const [pinnedOverrides, setPinnedOverrides] = useState({});
20
- useEffect(() => {
21
- if (!Array.isArray(channels)) return;
22
- setPinnedOverrides((prev) => {
23
- let changed = false;
24
- const next = { ...prev };
25
- channels.forEach((ch) => {
26
- if ((ch == null ? void 0 : ch.id) != null && prev[ch.id] !== void 0 && isItemPinned(ch) === Boolean(prev[ch.id])) {
27
- delete next[ch.id];
28
- changed = true;
29
- }
30
- });
31
- return changed ? next : prev;
32
- });
33
- }, [channels]);
34
- const getEffectivePinned = useCallback(
35
- (item) => {
36
- if ((item == null ? void 0 : item.id) != null && pinnedOverrides.hasOwnProperty(item.id)) {
37
- return Boolean(pinnedOverrides[item.id]);
38
- }
39
- return isItemPinned(item);
40
- },
41
- [pinnedOverrides]
42
- );
43
- const handlePinnedChange = useCallback((chatId, newPinned) => {
44
- setPinnedOverrides((prev) => ({ ...prev, [chatId]: newPinned }));
45
- }, []);
46
- const sortedChannels = Array.isArray(channels) ? [...channels].sort((a, b) => {
47
- const aPinned = getEffectivePinned(a);
48
- const bPinned = getEffectivePinned(b);
49
- if (aPinned === bPinned) return 0;
50
- return aPinned ? -1 : 1;
51
- }) : [];
52
- return /* @__PURE__ */ jsx("div", { className: "chat-channel-list", children: sortedChannels.length > 0 ? sortedChannels.map((channel, index) => /* @__PURE__ */ jsx(
14
+ return /* @__PURE__ */ jsx("div", { className: "chat-channel-list", children: Array.isArray(channels) && channels.length > 0 ? channels.map((channel, index) => /* @__PURE__ */ jsx(
53
15
  ChatChannelItem,
54
16
  {
55
17
  ...channel,
56
18
  handleChatSelect,
57
19
  handleToast,
58
- isPinned: getEffectivePinned(channel),
59
20
  isSelected: channel.id === selectedChannelOrChatId,
60
21
  selectedChat,
61
22
  showChannelList,
62
23
  showCheckbox,
63
24
  onClick: (e) => onChannelSelect(channel == null ? void 0 : channel.id, channel),
64
- onPinnedChange: handlePinnedChange,
65
25
  onPinnedChatClick
66
26
  },
67
- channel.id
27
+ `${channel.id}-${index}`
68
28
  )) : /* @__PURE__ */ jsxs("div", { className: "no-channels-found-container", children: [
69
- /* @__PURE__ */ jsxs("p", { className: "no-channels-found", children: [
70
- "No ",
71
- showChannelList ? "Channels" : "Chats",
72
- " found"
73
- ] }),
74
- /* @__PURE__ */ jsxs("p", { className: "no-channels-found-description", children: [
75
- "Please create a new ",
76
- showChannelList ? "channel" : "chat",
77
- " to get started."
78
- ] })
29
+ /* @__PURE__ */ jsx("p", { className: "no-channels-found", children: "No channels found" }),
30
+ /* @__PURE__ */ jsx("p", { className: "no-channels-found-description", children: "No channels found. Please create a new channel to get started." })
79
31
  ] }) });
80
32
  };
81
33
  export {
@@ -1,6 +1,5 @@
1
1
 
2
- declare const TableChatChannelHeader: ({ currentUserId, title, channels, selectedChannelOrChatId, onBack, onChannelSelect, onMenuClick, onSearchClick, onMoreClick, showChannelList, setShowPinnedMsg, onThreadClick, isSearchOpen, headerConfig, showAddChatBtn, showCheckbox, handleChatName, filterChannelsByTitle, loadingChannels, selectedChannelInfo, handleToast, onPinnedChatClick, onDeleteTopics, selectedChat, handleChatSelect, isCreateNewChatOpen, setIsCreateNewChatOpen, inputPanelConfig, }: {
3
- currentUserId: any;
2
+ declare const TableChatChannelHeader: ({ title, channels, selectedChannelOrChatId, onBack, onChannelSelect, onMenuClick, onSearchClick, onMoreClick, showChannelList, setShowPinnedMsg, onThreadClick, isSearchOpen, headerConfig, showAddChatBtn, showCheckbox, handleChatName, filterChannelsByTitle, loadingChannels, selectedChannelInfo, handleToast, onPinnedChatClick, onDeleteTopics, selectedChat, handleChatSelect, isCreateNewChatOpen, setIsCreateNewChatOpen, }: {
4
3
  title?: string | undefined;
5
4
  channels?: never[] | undefined;
6
5
  selectedChannelOrChatId: any;
@@ -27,7 +26,6 @@ declare const TableChatChannelHeader: ({ currentUserId, title, channels, selecte
27
26
  handleChatSelect: any;
28
27
  isCreateNewChatOpen: any;
29
28
  setIsCreateNewChatOpen: any;
30
- inputPanelConfig: any;
31
29
  }) => import("react/jsx-runtime").JSX.Element;
32
30
  export default TableChatChannelHeader;
33
31
  //# sourceMappingURL=TableChatChannelHeader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableChatChannelHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.tsx"],"names":[],"mappings":"AAKA,OAAO,sCAAsC,CAAC;AAE9C,QAAA,MAAM,sBAAsB,GAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6B/B,4CAoFA,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"TableChatChannelHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.tsx"],"names":[],"mappings":"AAKA,OAAO,sCAAsC,CAAC;AAE9C,QAAA,MAAM,sBAAsB,GAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2B/B,4CAiFA,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -1,11 +1,10 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(':root{--ia-focus-color:#4259ee;--ia-focus-bg:#fff;--ia-focus-ring-width:2px;--ia-focus-ring-offset:2px}*,:after,:before{box-sizing:border-box}body,textarea{font-style:normal;font-weight:500}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font-size:100%;font:inherit;margin:0;padding:0;vertical-align:initial}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}body{font-family:Manrope,sans-serif}.impact-notification-separator{background-color:#d9dde7;display:inline-block;height:16px;width:1.5px}.impact-notification-horizontal-separator{background-color:#d9dde7;display:inline-block;height:1px;width:100%}ul.storybook-order-list{list-style-type:disc;padding-left:12px}ul.storybook-order-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-list li strong{font-weight:800}ul.storybook-order-child-list{list-style-type:circle;padding-left:20px}ul.storybook-order-child-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-child-list li strong{font-weight:800}.table-left-panel-container{background:#fff;border-radius:16px;box-shadow:12px 13px 45px -1px #0000001a;max-width:350px;overflow:hidden;width:350px}.table-left-panel-container:before{background:linear-gradient(180deg,#4259ee99,#4259ee33,#4259ee00);border-radius:16px;content:"";top:0;right:0;bottom:0;left:0;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;padding:1px;pointer-events:none;position:absolute}.table-left-panel-container .ia-styles.ia-btn.ia-btn-tertiary,.table-left-panel-container .ia-styles.ia-btn.ia-btn-tertiary:hover{background:none!important;box-shadow:none!important}.chat-header-navigation{align-items:center;background:#fff;border-bottom:1px solid #d9dde7;border-top-left-radius:10px;border-top-right-radius:10px;display:flex;justify-content:space-between;padding:12px 16px}.chat-header-navigation .nav-left{align-items:center;display:flex;gap:0}.chat-header-navigation .nav-left button{background:none;border:none!important;box-shadow:none}.chat-header-navigation .nav-title{color:#0d152c;font-size:16px;font-weight:800;line-height:24px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:132px}.chat-header-navigation .nav-right{align-items:center;display:flex;gap:8px;position:relative}.chat-header-navigation .nav-right button{background:none;border:none!important;box-shadow:none}.chat-header-navigation .nav-icon-button{align-items:center;background:#0000;border:none;border-radius:6px;color:#7a8294;cursor:pointer;display:flex;height:20px;justify-content:center;transition:all .2s ease;width:20px}.chat-header-navigation .nav-icon-button:hover{color:#4259ee}.chat-header-navigation .nav-icon-button:focus{outline-offset:1px}.chat-header-navigation .chat-button{background:#4259ee!important;border-radius:8px!important;box-shadow:none!important;color:#fff!important;font-size:14px!important;font-weight:500!important;height:32px;padding:6px 12px!important;width:77px}.chat-header-navigation .chat-button:hover{background:#2b44ec!important}.chat-header-navigation .chat-button .ia-btn-icon{margin-right:4px}.chat-header-navigation .impact_inputbox_container_with_icons{width:100%}.channel_list{background:#f2f4fb}.channel_list,.chat-channel-item,.chat_list{align-items:baseline;border-radius:8px;cursor:pointer;display:flex;gap:12px;padding:12px 16px;transition:background-color .2s ease}.channel_list .ia-styles.ia-avatar,.chat-channel-item .ia-styles.ia-avatar,.chat_list .ia-styles.ia-avatar{background:#7a8294;border-radius:16px}.channel_list:hover,.chat-channel-item:hover,.chat_list:hover{background:#eceefd}.channel_list:hover .ia-styles.ia-avatar,.channel_list:hover .unread-badge,.chat-channel-item:hover .ia-styles.ia-avatar,.chat-channel-item:hover .unread-badge,.chat_list:hover .ia-styles.ia-avatar,.chat_list:hover .unread-badge{background:#4259ee}.channel_list.selected,.chat-channel-item.selected,.chat_list.selected{background:#eceefd}.channel_list.selected .ia-styles.ia-avatar,.channel_list.selected .unread-badge,.chat-channel-item.selected .ia-styles.ia-avatar,.chat-channel-item.selected .unread-badge,.chat_list.selected .ia-styles.ia-avatar,.chat_list.selected .unread-badge{background:#4259ee}.channel_list.muted,.chat-channel-item.muted,.chat_list.muted{opacity:.7}.channel_list:focus,.chat-channel-item:focus,.chat_list:focus{outline-offset:-2px}.channel_list:last-child,.chat-channel-item:last-child,.chat_list:last-child{border-bottom:none}.channel-checkbox{align-items:center;display:flex;padding-top:2px}.channel-checkbox input[type=checkbox]{accent-color:#4259ee;border:1px solid #d9dde7;border-radius:3px;cursor:pointer;height:16px;width:16px}.channel-checkbox input[type=checkbox]:checked{background:#4259ee;border-color:#4259ee}.channel-avatar{border-radius:16px;flex-shrink:0;margin-top:2px}.channel-avatar .ia-avatar{font-size:14px!important;font-weight:600!important;height:32px!important;width:32px!important}.channel-content{flex:1;min-width:0}.channel-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:4px}.channel-title{color:#0d152c;flex:1;font-size:16px;font-weight:600;height:24px;line-height:24px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.channel-meta.selected{background:#eceefd}.muted-icon{color:#7a8294;font-size:16px!important}.unread-badge{align-items:center;background:#7a8294;border-radius:10px;color:#fff;display:flex;font-size:10px;font-weight:400;height:18px;justify-content:center;line-height:1;min-width:18px;padding:2px 6px}.channel-subtitle{color:#7a8294;margin:0 0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.channel-subtitle,.channel-time{font-size:12px;font-weight:500;line-height:16px}.channel-time{color:#b4bac7}@media (max-width:768px){.chat-header-navigation .nav-title{font-size:15px}.chat-header-navigation .chat-button{font-size:13px!important;padding:4px 8px!important}.chat-channel-item{padding:10px 12px}.channel-title{font-size:13px}.channel-subtitle{font-size:12px}}.table-left-panel-container{background-image:url(https://impact-kit.devs.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/tableChat_bg.svg);background-position:50%;background-repeat:repeat;background-size:cover;box-shadow:0 1px 3px #0000001a;position:relative}.chat-header-navigation{background:#0000;border-bottom-color:#d9dde7;box-shadow:0 1px 3px #0000001a;height:64px;overflow:hidden;padding-left:16px;position:relative}.nav-title{color:#fff}.chat-channel-list{display:flex;flex-direction:column;gap:12px;margin:8px;max-height:calc(100vh - 150px);overflow-y:auto}.chat-channel-list .no-channels-found-container{align-items:center;background:#f2f4fb;border-radius:8px;display:flex;flex-direction:column;gap:12px;justify-content:center;padding:12px}.chat-channel-list .no-channels-found-container .no-channels-found{color:#0d152c;font-size:16px;font-weight:600}.chat-channel-list .no-channels-found-container .no-channels-found-description{color:#7a8294;font-size:12px;font-weight:500;line-height:16px;text-align:center}.chat-channel-item.selected,.chat-channel-item:hover{background:#eceefd}.channel-time{color:#60697d}.channel-list-header{align-items:center;display:flex;justify-content:space-between;width:100%}.chanel_icon{background:#fff;border:1px solid #c3c8d4;border-radius:8px;max-height:32px;padding:8px}.chanel_search{align-items:center;background:#f5f6fa;border-radius:8px;display:flex;height:32px;justify-content:center;width:32px}.chanel_search svg{cursor:pointer}.chanel_right_navigation{display:flex;gap:8px}.delete_chat_container{height:32px!important;width:32px}.pinnedChat_container{align-items:center;display:flex;gap:4px;justify-content:space-between}.pinnedChat_container .pinnedChat{cursor:pointer;flex-shrink:0;opacity:0;transition:opacity .2s ease}.chat_list:hover .pinnedChat_container .pinnedChat:not(.pinnedChat--active),.pinnedChat_container .pinnedChat--active{opacity:1}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(':root{--ia-focus-color:#4259ee;--ia-focus-bg:#fff;--ia-focus-ring-width:2px;--ia-focus-ring-offset:2px}*,:after,:before{box-sizing:border-box}body,textarea{font-style:normal;font-weight:500}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font-size:100%;font:inherit;margin:0;padding:0;vertical-align:initial}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}body{font-family:Manrope,sans-serif}.impact-notification-separator{background-color:#d9dde7;display:inline-block;height:16px;width:1.5px}.impact-notification-horizontal-separator{background-color:#d9dde7;display:inline-block;height:1px;width:100%}ul.storybook-order-list{list-style-type:disc;padding-left:12px}ul.storybook-order-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-list li strong{font-weight:800}ul.storybook-order-child-list{list-style-type:circle;padding-left:20px}ul.storybook-order-child-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-child-list li strong{font-weight:800}.table-left-panel-container{background:#fff;border-radius:16px;box-shadow:12px 13px 45px -1px #0000001a;flex-shrink:0;max-width:350px;overflow:hidden;width:350px}.table-left-panel-container:before{background:linear-gradient(180deg,#4259ee99,#4259ee33,#4259ee00);border-radius:16px;content:"";top:0;right:0;bottom:0;left:0;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;padding:1px;pointer-events:none;position:absolute}.table-left-panel-container .ia-styles.ia-btn.ia-btn-tertiary,.table-left-panel-container .ia-styles.ia-btn.ia-btn-tertiary:hover{background:none!important;box-shadow:none!important}.chat-header-navigation{align-items:center;background:#fff;border-bottom:1px solid #d9dde7;border-top-left-radius:10px;border-top-right-radius:10px;display:flex;justify-content:space-between;padding:12px 16px}.chat-header-navigation .nav-left{align-items:center;display:flex;gap:7px}.chat-header-navigation .nav-left button{background:none;border:none!important;box-shadow:none}.chat-header-navigation .nav-title{color:#0d152c;font-size:16px;font-weight:800;line-height:24px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:130px}.chat-header-navigation .nav-right{align-items:center;display:flex;gap:8px;position:relative}.chat-header-navigation .nav-right button{background:none;border:none!important;box-shadow:none}.chat-header-navigation .nav-icon-button{align-items:center;background:#0000;border:none;border-radius:6px;color:#7a8294;cursor:pointer;display:flex;height:20px;justify-content:center;transition:all .2s ease;width:20px}.chat-header-navigation .nav-icon-button:hover{color:#4259ee}.chat-header-navigation .nav-icon-button:focus{outline-offset:1px}.chat-header-navigation .chat-button{background:#4259ee!important;border-radius:8px!important;box-shadow:none!important;color:#fff!important;font-size:14px!important;font-weight:500!important;height:32px;padding:6px 12px!important;width:77px}.chat-header-navigation .chat-button:hover{background:#2b44ec!important}.chat-header-navigation .chat-button .ia-btn-icon{margin-right:4px}.chat-header-navigation .impact_inputbox_container_with_icons{width:100%}.channel_list{background:#f2f4fb}.channel_list,.chat-channel-item,.chat_list{align-items:baseline;border-radius:8px;cursor:pointer;display:flex;gap:12px;padding:12px 16px;transition:background-color .2s ease}.channel_list .ia-styles.ia-avatar,.chat-channel-item .ia-styles.ia-avatar,.chat_list .ia-styles.ia-avatar{background:#7a8294;border-radius:16px}.channel_list:hover,.chat-channel-item:hover,.chat_list:hover{background:#eceefd}.channel_list:hover .ia-styles.ia-avatar,.channel_list:hover .unread-badge,.chat-channel-item:hover .ia-styles.ia-avatar,.chat-channel-item:hover .unread-badge,.chat_list:hover .ia-styles.ia-avatar,.chat_list:hover .unread-badge{background:#4259ee}.channel_list.selected,.chat-channel-item.selected,.chat_list.selected{background:#eceefd}.channel_list.selected .ia-styles.ia-avatar,.channel_list.selected .unread-badge,.chat-channel-item.selected .ia-styles.ia-avatar,.chat-channel-item.selected .unread-badge,.chat_list.selected .ia-styles.ia-avatar,.chat_list.selected .unread-badge{background:#4259ee}.channel_list.muted,.chat-channel-item.muted,.chat_list.muted{opacity:.7}.channel_list:focus,.chat-channel-item:focus,.chat_list:focus{outline-offset:-2px}.channel_list:last-child,.chat-channel-item:last-child,.chat_list:last-child{border-bottom:none}.channel-checkbox{align-items:center;display:flex;padding-top:2px}.channel-checkbox input[type=checkbox]{accent-color:#4259ee;border:1px solid #d9dde7;border-radius:3px;cursor:pointer;height:16px;width:16px}.channel-checkbox input[type=checkbox]:checked{background:#4259ee;border-color:#4259ee}.channel-avatar{border-radius:16px;flex-shrink:0;margin-top:2px}.channel-avatar .ia-avatar{font-size:14px!important;font-weight:600!important;height:32px!important;width:32px!important}.channel-content{flex:1;min-width:0}.channel-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:4px}.channel-title{color:#0d152c;flex:1;font-size:16px;font-weight:600;height:24px;line-height:24px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.channel-meta.selected{background:#eceefd}.muted-icon{color:#7a8294;font-size:16px!important}.unread-badge{align-items:center;background:#7a8294;border-radius:10px;color:#fff;display:flex;font-size:10px;font-weight:400;height:18px;justify-content:center;line-height:1;min-width:18px;padding:2px 6px}.channel-subtitle{color:#7a8294;margin:0 0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.channel-subtitle,.channel-time{font-size:12px;font-weight:500;line-height:16px}.channel-time{color:#b4bac7}@media (max-width:768px){.chat-header-navigation .nav-title{font-size:15px}.chat-header-navigation .chat-button{font-size:13px!important;padding:4px 8px!important}.chat-channel-item{padding:10px 12px}.channel-title{font-size:13px}.channel-subtitle{font-size:12px}}.table-left-panel-container{background-image:url(https://impact-kit.devs.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/tableChat_bg.svg);background-position:50%;background-repeat:repeat;background-size:cover;box-shadow:0 1px 3px #0000001a;position:relative}.chat-header-navigation{background:#0000;border-bottom-color:#d9dde7;box-shadow:0 1px 3px #0000001a;height:64px;overflow:hidden;padding-left:16px;position:relative}.nav-title{color:#fff}.chat-channel-list{display:flex;flex-direction:column;gap:12px;margin:8px;max-height:calc(100vh - 150px);overflow-y:auto}.chat-channel-list .no-channels-found-container{align-items:center;background:#f2f4fb;border-radius:8px;display:flex;flex-direction:column;gap:12px;justify-content:center;padding:12px}.chat-channel-list .no-channels-found-container .no-channels-found{color:#0d152c;font-size:16px;font-weight:600}.chat-channel-list .no-channels-found-container .no-channels-found-description{color:#7a8294;font-size:12px;font-weight:500;line-height:16px;text-align:center}.chat-channel-item.selected,.chat-channel-item:hover{background:#eceefd}.channel-time{color:#60697d}.channel-list-header{align-items:center;display:flex;justify-content:space-between;width:100%}.chanel_icon{background:#fff;border:1px solid #c3c8d4;border-radius:8px;max-height:32px;padding:8px}.chanel_search{align-items:center;background:#f5f6fa;border-radius:8px;display:flex;height:32px;justify-content:center;width:32px}.chanel_search svg{cursor:pointer}.chanel_right_navigation{display:flex;gap:8px}.delete_chat_container{height:32px!important;width:32px}.pinnedChat_container{display:flex;justify-content:space-between}.pinnedChat_container .pinnedChat{opacity:0;transition:opacity .2s ease}.chat_list:hover .pinnedChat_container .pinnedChat{opacity:1}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
2
2
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
3
3
  import { ChatChannelList } from "./ChatChannelList.js";
4
4
  import { ChatHeaderNavigation } from "./ChatHeaderNavigation.js";
5
5
  import { SkeletonList } from "../SkeletonList.js";
6
6
 
7
7
  const TableChatChannelHeader = ({
8
- currentUserId,
9
8
  title = "Create new Chat",
10
9
  channels = [],
11
10
  selectedChannelOrChatId,
@@ -31,8 +30,7 @@ const TableChatChannelHeader = ({
31
30
  selectedChat,
32
31
  handleChatSelect,
33
32
  isCreateNewChatOpen,
34
- setIsCreateNewChatOpen,
35
- inputPanelConfig
33
+ setIsCreateNewChatOpen
36
34
  }) => {
37
35
  const handleChannelSelect = (channelId, channelItem) => {
38
36
  onChannelSelect == null ? void 0 : onChannelSelect(channelId, channelItem);
@@ -42,13 +40,10 @@ const TableChatChannelHeader = ({
42
40
  /* @__PURE__ */ jsx(
43
41
  ChatHeaderNavigation,
44
42
  {
45
- channels: channelsToShow,
46
- currentUserId,
47
43
  filterChannelsByTitle,
48
44
  handleChatName,
49
45
  handleToast,
50
46
  headerConfig,
51
- inputPanelConfig,
52
47
  isCreateNewChatOpen,
53
48
  isSearchOpen,
54
49
  selectedChannelInfo,
@@ -1,4 +1,4 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode(':root{--ia-focus-color:#4259ee;--ia-focus-bg:#fff;--ia-focus-ring-width:2px;--ia-focus-ring-offset:2px}*,:after,:before{box-sizing:border-box}body,textarea{font-style:normal;font-weight:500}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font-size:100%;font:inherit;margin:0;padding:0;vertical-align:initial}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}body{font-family:Manrope,sans-serif}.impact-notification-separator{background-color:#d9dde7;display:inline-block;height:16px;width:1.5px}.impact-notification-horizontal-separator{background-color:#d9dde7;display:inline-block;height:1px;width:100%}ul.storybook-order-list{list-style-type:disc;padding-left:12px}ul.storybook-order-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-list li strong{font-weight:800}ul.storybook-order-child-list{list-style-type:circle;padding-left:20px}ul.storybook-order-child-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-child-list li strong{font-weight:800}.avatar-stack-container{align-items:center;background-color:#f0f0f0;display:flex;flex-direction:column;font-family:Inter,sans-serif;gap:2rem;justify-content:center;min-height:100vh}.avatar-stack{display:flex;gap:8px}.avatar-wrapper{position:relative}.avatar-wrapper:not(:first-child){margin-left:-20px}.avatar-wrapper--sm:not(:first-child){margin-left:-15px}.avatar-wrapper--md:not(:first-child){margin-left:-20px}.avatar-wrapper--lg:not(:first-child){margin-left:-30px}.avatar{align-items:center;background-color:#31935f;border-color:#fff;border-radius:50%;border-style:solid;color:#fff;display:flex;font-weight:600;justify-content:center;overflow:hidden;position:relative}.avatar img{height:100%;object-fit:cover;width:100%}.avatar__initials{text-transform:uppercase}.avatar--sm{font-size:12px;height:24px;width:24px}.avatar--md{font-size:16px;height:32px;width:32px}.avatar--lg{font-size:20px;height:36px;width:36px}.avatar--more{background-color:#f1f3fe;border-color:#b3bdf8;color:#4259ee;cursor:pointer;font-size:12px;font-weight:500}.avatar-menu.ia-styles.ia-menu .MuiButtonBase-root{cursor:default}.avatar-menu.ia-styles.ia-menu .MuiButtonBase-root:hover{background:#0000}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode(':root{--ia-focus-color:#4259ee;--ia-focus-bg:#fff;--ia-focus-ring-width:2px;--ia-focus-ring-offset:2px}*,:after,:before{box-sizing:border-box}body,textarea{font-style:normal;font-weight:500}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font-size:100%;font:inherit;margin:0;padding:0;vertical-align:initial}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}body{font-family:Manrope,sans-serif}.impact-notification-separator{background-color:#d9dde7;display:inline-block;height:16px;width:1.5px}.impact-notification-horizontal-separator{background-color:#d9dde7;display:inline-block;height:1px;width:100%}ul.storybook-order-list{list-style-type:disc;padding-left:12px}ul.storybook-order-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-list li strong{font-weight:800}ul.storybook-order-child-list{list-style-type:circle;padding-left:20px}ul.storybook-order-child-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-child-list li strong{font-weight:800}.avatar-stack-container{align-items:center;background-color:#f0f0f0;display:flex;flex-direction:column;font-family:Inter,sans-serif;gap:2rem;justify-content:center;min-height:100vh}.avatar-stack{display:flex;gap:8px}.avatar-wrapper{position:relative}.avatar-wrapper:not(:first-child){margin-left:-20px}.avatar-wrapper--sm:not(:first-child){margin-left:-15px}.avatar-wrapper--md:not(:first-child){margin-left:-20px}.avatar-wrapper--lg:not(:first-child){margin-left:-30px}.avatar{align-items:center;background-color:#31935f;border-color:#fff;border-radius:50%;border-style:solid;color:#fff;display:flex;font-weight:600;justify-content:center;overflow:hidden;position:relative}.avatar img{height:100%;object-fit:cover;width:100%}.avatar__initials{text-transform:uppercase}.avatar--sm{font-size:12px;height:24px;width:24px}.avatar--md{font-size:16px;height:32px;width:32px}.avatar--lg{font-size:20px;height:36px;width:36px}.avatar--more{background-color:#f1f3fe;border-color:#b3bdf8;color:#4259ee;font-size:12px;font-weight:500}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { useState, useEffect } from "react";
4
4
 
@@ -1,5 +1,5 @@
1
1
 
2
- declare const ChatDefaultMessageType: ({ content, timestamp, handleClickOnMoreOptions, priority, edited, onThreadClick, pinned, visibility, onPin, isUser, isThreadIconVisible, isPinChatIconvisible, isHighlighted, highlightColor, showThreeDotIcon, }: {
2
+ declare const ChatDefaultMessageType: ({ content, timestamp, handleClickOnMoreOptions, priority, edited, onThreadClick, pinned, visibility, onPin, isUser, isThreadIconVisible, isPinChatIconvisible, isHighlighted, highlightColor, }: {
3
3
  content: any;
4
4
  timestamp: any;
5
5
  handleClickOnMoreOptions: any;
@@ -14,7 +14,6 @@ declare const ChatDefaultMessageType: ({ content, timestamp, handleClickOnMoreOp
14
14
  isPinChatIconvisible: any;
15
15
  isHighlighted?: boolean | undefined;
16
16
  highlightColor?: null | undefined;
17
- showThreeDotIcon: any;
18
17
  }) => import("react/jsx-runtime").JSX.Element;
19
18
  export default ChatDefaultMessageType;
20
19
  //# sourceMappingURL=ChatDefaultMessageType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChatDefaultMessageType.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.tsx"],"names":[],"mappings":"AAEA,OAAO,sCAAsC,CAAC;AAoB9C,QAAA,MAAM,sBAAsB,GAAI;;;;;;;;;;;;;;;;CAgB/B,4CA+KA,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"ChatDefaultMessageType.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.tsx"],"names":[],"mappings":"AAKA,OAAO,sCAAsC,CAAC;AAW9C,QAAA,MAAM,sBAAsB,GAAI;;;;;;;;;;;;;;;CAe/B,4CAiLA,CAAC;AAEF,eAAe,sBAAsB,CAAC"}