impact-ui 5.0.2-alpha.5 → 5.0.2-alpha.6

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 (103) hide show
  1. package/dist/_virtual/Check.js +4 -0
  2. package/dist/_virtual/index2.js +2 -2
  3. package/dist/_virtual/index3.js +4 -2
  4. package/dist/_virtual/index4.js +3 -3
  5. package/dist/_virtual/index5.js +2 -4
  6. package/dist/components/Badge/index.js +1 -1
  7. package/dist/components/Badge/stroke/strokeOnlyLabelBadges/index.js +1 -1
  8. package/dist/components/Checkbox/index.js +1 -1
  9. package/dist/components/Menu/MenuHeaderInfo.d.ts.map +1 -1
  10. package/dist/components/Menu/MenuHeaderInfo.js +4 -3
  11. package/dist/components/Menu/index.d.ts.map +1 -1
  12. package/dist/components/Menu/index.js +1 -1
  13. package/dist/components/Panel/Panel.types.d.ts +7 -0
  14. package/dist/components/Panel/Panel.types.d.ts.map +1 -1
  15. package/dist/components/Panel/index.d.ts +1 -1
  16. package/dist/components/Panel/index.d.ts.map +1 -1
  17. package/dist/components/Panel/index.js +5 -2
  18. package/dist/components/TableChat/EmptyContainer.js +3 -3
  19. package/dist/components/TableChat/TableChatSidePanel.d.ts +2 -1
  20. package/dist/components/TableChat/TableChatSidePanel.d.ts.map +1 -1
  21. package/dist/components/TableChat/TableChatSidePanel.js +227 -26
  22. package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.js +1 -1
  23. package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.d.ts +7 -2
  24. package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.d.ts.map +1 -1
  25. package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.js +92 -24
  26. package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelList.d.ts.map +1 -1
  27. package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelList.js +3 -2
  28. package/dist/components/TableChat/components/TableChatLeftSection/ChatFilterChips/ChatFilterChips.d.ts +11 -0
  29. package/dist/components/TableChat/components/TableChatLeftSection/ChatFilterChips/ChatFilterChips.d.ts.map +1 -0
  30. package/dist/components/TableChat/components/TableChatLeftSection/ChatFilterChips/ChatFilterChips.js +57 -0
  31. package/dist/components/TableChat/components/TableChatLeftSection/ChatHeaderButton/ChatHeaderButton.d.ts +2 -2
  32. package/dist/components/TableChat/components/TableChatLeftSection/ChatHeaderButton/ChatHeaderButton.d.ts.map +1 -1
  33. package/dist/components/TableChat/components/TableChatLeftSection/ChatHeaderButton/ChatHeaderButton.js +3 -2
  34. package/dist/components/TableChat/components/TableChatLeftSection/ChatHeaderNavigation.d.ts.map +1 -1
  35. package/dist/components/TableChat/components/TableChatLeftSection/ChatHeaderNavigation.js +66 -51
  36. package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.d.ts.map +1 -1
  37. package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.js +37 -2
  38. package/dist/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.d.ts.map +1 -1
  39. package/dist/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.js +54 -18
  40. package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.d.ts +4 -1
  41. package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.d.ts.map +1 -1
  42. package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.js +90 -81
  43. package/dist/components/TableChat/components/TableChatRightSection/ChatDeleteMessageType/ChatDeletedMessageType.js +2 -2
  44. package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.d.ts.map +1 -1
  45. package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.js +51 -16
  46. package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.d.ts.map +1 -1
  47. package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.js +68 -57
  48. package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.d.ts +8 -1
  49. package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.d.ts.map +1 -1
  50. package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.js +170 -4
  51. package/dist/components/TableChat/components/TableChatRightSection/ChatInlineEdit/ChatInlineEdit.d.ts +12 -0
  52. package/dist/components/TableChat/components/TableChatRightSection/ChatInlineEdit/ChatInlineEdit.d.ts.map +1 -0
  53. package/dist/components/TableChat/components/TableChatRightSection/ChatInlineEdit/ChatInlineEdit.js +132 -0
  54. package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.d.ts +5 -1
  55. package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.d.ts.map +1 -1
  56. package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.js +203 -176
  57. package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.d.ts +11 -9
  58. package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.d.ts.map +1 -1
  59. package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.js +102 -106
  60. package/dist/components/TableChat/components/TableChatRightSection/ChatNotificationSettings/ChatNotificationSettings.d.ts +2 -1
  61. package/dist/components/TableChat/components/TableChatRightSection/ChatNotificationSettings/ChatNotificationSettings.d.ts.map +1 -1
  62. package/dist/components/TableChat/components/TableChatRightSection/ChatNotificationSettings/ChatNotificationSettings.js +64 -77
  63. package/dist/components/TableChat/components/TableChatRightSection/DateSeparator/DateSeparator.d.ts.map +1 -1
  64. package/dist/components/TableChat/components/TableChatRightSection/DateSeparator/DateSeparator.js +4 -1
  65. package/dist/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChatPanel.d.ts +3 -1
  66. package/dist/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChatPanel.d.ts.map +1 -1
  67. package/dist/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChatPanel.js +7 -2
  68. package/dist/components/TableChat/components/TableChatRightSection/ReplyBadge/ReplyBadge.d.ts +2 -1
  69. package/dist/components/TableChat/components/TableChatRightSection/ReplyBadge/ReplyBadge.d.ts.map +1 -1
  70. package/dist/components/TableChat/components/TableChatRightSection/ReplyBadge/ReplyBadge.js +29 -0
  71. package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.d.ts.map +1 -1
  72. package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.js +346 -223
  73. package/dist/components/TableChat/components/chatConfig.js +0 -1
  74. package/dist/components/TableV36/AgGridHeader.d.ts.map +1 -1
  75. package/dist/components/TableV36/AgGridHeader.js +8 -34
  76. package/dist/components/TableV36/advanceSearchModal.d.ts.map +1 -1
  77. package/dist/components/TableV36/filterUtils.d.ts +0 -10
  78. package/dist/components/TableV36/filterUtils.d.ts.map +1 -1
  79. package/dist/components/TableV36/filterUtils.js +0 -29
  80. package/dist/components/TableV36/index.d.ts.map +1 -1
  81. package/dist/components/TableV36/index.js +140 -15
  82. package/dist/components/TableV36/tableHeader.d.ts +6 -1
  83. package/dist/components/TableV36/tableHeader.d.ts.map +1 -1
  84. package/dist/components/TableV36/tableHeader.js +39 -11
  85. package/dist/components/TableV36/withChatIndicator.d.ts +3 -0
  86. package/dist/components/TableV36/withChatIndicator.d.ts.map +1 -0
  87. package/dist/components/TableV36/withChatIndicator.js +89 -0
  88. package/dist/locales/de-DE.json.d.ts +19 -3
  89. package/dist/locales/de-DE.json.js +18 -3
  90. package/dist/locales/en-US.json.d.ts +19 -3
  91. package/dist/locales/en-US.json.js +18 -3
  92. package/dist/locales/es-ES.json.d.ts +19 -3
  93. package/dist/locales/es-ES.json.js +18 -3
  94. package/dist/mcp-component-registry.json +1 -7
  95. package/dist/node_modules/@impactsmartsuite/impact-icons/dist/index.js +3 -1
  96. package/dist/node_modules/@mui/icons-material/Check.js +17 -0
  97. package/dist/node_modules/@mui/system/colorManipulator.js +2 -2
  98. package/dist/node_modules/prop-types/index.js +1 -1
  99. package/dist/node_modules/react-is/index.js +1 -1
  100. package/dist/stories/tableV36ChatApiMock.d.ts +227 -74
  101. package/dist/stories/tableV36ChatApiMock.d.ts.map +1 -1
  102. package/package.json +2 -2
  103. package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType/ChatEditedMessageType.js +0 -65
@@ -1,6 +1,8 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('@keyframes ia-shimmer-horizontal{0%{background-position:100% 0}to{background-position:0 0}}@keyframes ia-shimmer-vertical{0%{background-position:0 100%}to{background-position:0 0}}@property --ia-shimmer-angle{syntax:"<angle>";inherits:false;initial-value:0deg}@keyframes ia-shimmer-circular{0%{--ia-shimmer-angle:0deg}to{--ia-shimmer-angle:360deg}}.ia-shimmer{animation:ia-shimmer-horizontal 1.6s ease-in-out infinite;animation-direction:normal;background-color:#e8edf5;background-image:linear-gradient(90deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:300% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer{animation:none;background-image:linear-gradient(90deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--ltr{animation:ia-shimmer-horizontal 1.6s ease-in-out infinite;animation-direction:normal;background-color:#e8edf5;background-image:linear-gradient(90deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:300% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer--ltr{animation:none;background-image:linear-gradient(90deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--rtl{animation:ia-shimmer-horizontal 1.6s ease-in-out infinite;animation-direction:reverse;background-color:#e8edf5;background-image:linear-gradient(270deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:300% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer--rtl{animation:none;background-image:linear-gradient(270deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--btt{animation:ia-shimmer-vertical 1.6s ease-in-out infinite;animation-direction:reverse;background-color:#e8edf5;background-image:linear-gradient(0deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:100% 300%}@media (prefers-reduced-motion:reduce){.ia-shimmer--btt{animation:none;background-image:linear-gradient(0deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--ttb{animation:ia-shimmer-vertical 1.6s ease-in-out infinite;animation-direction:normal;background-color:#e8edf5;background-image:linear-gradient(0deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:100% 300%}@media (prefers-reduced-motion:reduce){.ia-shimmer--ttb{animation:none;background-image:linear-gradient(0deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--circular{background-color:#e8edf5;background-repeat:no-repeat;--ia-shimmer-angle:0deg;animation:ia-shimmer-circular 1.6s linear infinite;background-image:conic-gradient(from var(--ia-shimmer-angle),#eceef4 0deg,#e8edf5 80deg,#d5dbe8 160deg,#e8edf5 260deg,#eceef4 1turn);background-size:100% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer--circular{animation:none;background-image:conic-gradient(from 0deg,#eceef4,#e8edf5,#d5dbe8,#e8edf5 1turn)}}:root{--ia-focus-color:#4259ee;--ia-focus-bg:#fff;--ia-focus-ring-width:2px;--ia-focus-ring-offset:2px;--ia-modal-backdrop:#0d152ccc}*,: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(i){console.error("vite-plugin-css-injected-by-js",i)}}();
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('@keyframes ia-shimmer-horizontal{0%{background-position:100% 0}to{background-position:0 0}}@keyframes ia-shimmer-vertical{0%{background-position:0 100%}to{background-position:0 0}}@property --ia-shimmer-angle{syntax:"<angle>";inherits:false;initial-value:0deg}@keyframes ia-shimmer-circular{0%{--ia-shimmer-angle:0deg}to{--ia-shimmer-angle:360deg}}.ia-shimmer{animation:ia-shimmer-horizontal 1.6s ease-in-out infinite;animation-direction:normal;background-color:#e8edf5;background-image:linear-gradient(90deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:300% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer{animation:none;background-image:linear-gradient(90deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--ltr{animation:ia-shimmer-horizontal 1.6s ease-in-out infinite;animation-direction:normal;background-color:#e8edf5;background-image:linear-gradient(90deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:300% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer--ltr{animation:none;background-image:linear-gradient(90deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--rtl{animation:ia-shimmer-horizontal 1.6s ease-in-out infinite;animation-direction:reverse;background-color:#e8edf5;background-image:linear-gradient(270deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:300% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer--rtl{animation:none;background-image:linear-gradient(270deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--btt{animation:ia-shimmer-vertical 1.6s ease-in-out infinite;animation-direction:reverse;background-color:#e8edf5;background-image:linear-gradient(0deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:100% 300%}@media (prefers-reduced-motion:reduce){.ia-shimmer--btt{animation:none;background-image:linear-gradient(0deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--ttb{animation:ia-shimmer-vertical 1.6s ease-in-out infinite;animation-direction:normal;background-color:#e8edf5;background-image:linear-gradient(0deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:100% 300%}@media (prefers-reduced-motion:reduce){.ia-shimmer--ttb{animation:none;background-image:linear-gradient(0deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--circular{background-color:#e8edf5;background-repeat:no-repeat;--ia-shimmer-angle:0deg;animation:ia-shimmer-circular 1.6s linear infinite;background-image:conic-gradient(from var(--ia-shimmer-angle),#eceef4 0deg,#e8edf5 80deg,#d5dbe8 160deg,#e8edf5 260deg,#eceef4 1turn);background-size:100% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer--circular{animation:none;background-image:conic-gradient(from 0deg,#eceef4,#e8edf5,#d5dbe8,#e8edf5 1turn)}}:root{--ia-focus-color:#4259ee;--ia-focus-bg:#fff;--ia-focus-ring-width:2px;--ia-focus-ring-offset:2px;--ia-modal-backdrop:#0d152ccc}*,: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-panel .impact_drawer_container{background:#f8f9fb}.table-chat-panel .impact_drawer_header{background:#fff;border-bottom:1px solid #d9dde7;box-sizing:border-box;height:auto;padding:12px 16px}.table-chat-panel .impact_drawer_header .impact_drawer_heading{color:#1f2b4d;font-size:20px;font-weight:800;line-height:30px}.table-chat-panel .impact_drawer_header .table-chat-panel-close{height:26px;min-width:26px;padding:0;width:26px}.table-chat-panel .impact_drawer_body{height:calc(100% - 56px)!important;padding:6px}.table-chat-container{box-sizing:border-box;display:flex;flex-direction:row;gap:10px;height:100%;overflow:hidden;padding:4px;width:100%}.table-chat-container .table-left-panel-container{flex:0 0 350px;flex-shrink:0;max-width:350px;width:350px;z-index:2}.empty-container{align-items:center;box-sizing:border-box;display:flex;flex-direction:column;gap:4px;justify-content:center;max-width:100%;padding:16px;text-align:center;width:100%}.empty-container img{height:197px;object-fit:contain;width:190px}.empty-container__title{color:#1f2b4d;font-size:20px;font-style:normal;font-weight:800;line-height:30px}.empty-container__subtitle{color:#7a8294;font-size:16px;font-style:normal;font-weight:500;line-height:1.25;text-align:center}.loader-padding{padding:16px;width:100%}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
2
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
3
3
  import { useState, useCallback, useMemo, useEffect } from "react";
4
+ import default_1 from "../../node_modules/@mui/icons-material/Close.js";
5
+ import { Button } from "../Button/index.js";
4
6
  import { Panel } from "../Panel/index.js";
5
7
  import { Prompt } from "../Prompt/index.js";
6
8
  import { Toast } from "../Toast/index.js";
@@ -13,8 +15,8 @@ import { EmptyContainer } from "./EmptyContainer.js";
13
15
  import { formatChatHeaderTimestamp } from "./utils/formatChatTimestamp.js";
14
16
 
15
17
  import { useTranslation } from "../../i18n/useTranslation.js";
16
- const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration }) => {
17
- 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;
18
+ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration, entryContext = null }) => {
19
+ 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, _Q, _R, _S, _T, _U, _V, _W;
18
20
  const { t } = useTranslation();
19
21
  const [selectedChannelId, setSelectedChannelId] = useState(null);
20
22
  const [selectedChannelInfo, setSelectedChannelInfo] = useState(null);
@@ -171,9 +173,14 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration }) => {
171
173
  setToastVariant("info");
172
174
  }
173
175
  };
174
- const handleChatClick = async (chatId, selectedChatData) => {
176
+ const handleChatClick = async (chatId, selectedChatData, options = {}) => {
175
177
  var _a2;
176
- setCurrentSelectedScreen("chats");
178
+ const { screen, keepScreen = false } = options;
179
+ if (screen) {
180
+ setCurrentSelectedScreen(screen);
181
+ } else if (!keepScreen) {
182
+ setCurrentSelectedScreen("chats");
183
+ }
177
184
  setLoadingMessages(true);
178
185
  setSelectedChatId(chatId);
179
186
  setSelectedChatInfo(selectedChatData);
@@ -189,7 +196,7 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration }) => {
189
196
  setLoadingMessages(false);
190
197
  }
191
198
  };
192
- const fetchChatList = async (currentActiveChannelInfo) => {
199
+ const fetchChatList = async (currentActiveChannelInfo, { autoOpenFirst = true } = {}) => {
193
200
  var _a2;
194
201
  setCurrentSelectedScreen("chats");
195
202
  setSelectedChat([]);
@@ -199,6 +206,10 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration }) => {
199
206
  const chatList2 = await chatConfiguration.leftPanel.loadChatList(currentActiveChannelInfo);
200
207
  setChatList(chatList2);
201
208
  setOriginalChatList(chatList2);
209
+ if (autoOpenFirst && (chatList2 == null ? void 0 : chatList2.length) > 0) {
210
+ const firstChat = chatList2[0];
211
+ await handleChatClick(firstChat.id, firstChat, { keepScreen: true });
212
+ }
202
213
  return chatList2;
203
214
  } catch (err) {
204
215
  console.error("[TableChatSidePanel] [fetchChatList] [error]:", err);
@@ -225,7 +236,7 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration }) => {
225
236
  title: t("tableChat.sidePanel.chatList"),
226
237
  objectType: (_e2 = newChat == null ? void 0 : newChat.otherProps) == null ? void 0 : _e2.object_type
227
238
  };
228
- await fetchChatList(newChannelInfo);
239
+ await fetchChatList(newChannelInfo, { autoOpenFirst: false });
229
240
  setSelectedChannelInfo(newChannelInfo);
230
241
  setSelectedChannelId((_g2 = (_f2 = newChat == null ? void 0 : newChat.otherProps) == null ? void 0 : _f2.object_ids) == null ? void 0 : _g2[0]);
231
242
  await handleChatClick(newChat.id, newChat);
@@ -241,6 +252,12 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration }) => {
241
252
  };
242
253
  const fetchChannelList = async () => {
243
254
  setCurrentSelectedScreen("channels");
255
+ setSelectedChannelId(null);
256
+ setSelectedChannelInfo(null);
257
+ setSelectedChatId(null);
258
+ setSelectedChatInfo(null);
259
+ setChatList([]);
260
+ setOriginalChatList([]);
244
261
  setLoadingChannelsOrChats(true);
245
262
  try {
246
263
  const channelList = await chatConfiguration.leftPanel.loadChannelsList();
@@ -296,11 +313,90 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration }) => {
296
313
  setLoadingChannelsOrChats(false);
297
314
  }
298
315
  };
316
+ const openChatFromSelection = async (selectedRows = [], { isSpace = false } = {}) => {
317
+ var _a2;
318
+ setLoadingChannelsOrChats(true);
319
+ setLoadingMessages(true);
320
+ setIsCreateNewChatOpen(false);
321
+ try {
322
+ const onStartNewChat = (_a2 = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _a2.onStartNewChat;
323
+ if (typeof onStartNewChat !== "function") {
324
+ await fetchChannelList();
325
+ return;
326
+ }
327
+ const result = await onStartNewChat(selectedRows, { isSpace });
328
+ const channel = result == null ? void 0 : result.channel;
329
+ const chatToOpen = (result == null ? void 0 : result.openChat) || (result == null ? void 0 : result.formattedChat);
330
+ if (!(result == null ? void 0 : result.success) || !channel || !(chatToOpen == null ? void 0 : chatToOpen.id)) {
331
+ await fetchChannelList();
332
+ return;
333
+ }
334
+ const nextChannels = Array.isArray(result.channelsList) ? result.channelsList : [channel];
335
+ const nextScreen = result.screen === "channels" ? "channels" : "chats";
336
+ const nextChatList = Array.isArray(result.chatList) ? result.chatList : [chatToOpen];
337
+ setChannelsList(nextChannels);
338
+ setOriginalChanelList(nextChannels);
339
+ setSelectedChannelId(channel.id);
340
+ setSelectedChannelInfo(channel);
341
+ setChatList(nextChatList);
342
+ setOriginalChatList(nextChatList);
343
+ setCurrentSelectedScreen(nextScreen);
344
+ await handleChatClick(chatToOpen.id, chatToOpen, { screen: nextScreen });
345
+ } catch (error) {
346
+ console.error("[TableChatSidePanel] [openChatFromSelection] [error]:", error);
347
+ handleToast(true, t("tableChat.sidePanel.errorLoadingChat"), "error");
348
+ await fetchChannelList();
349
+ } finally {
350
+ setLoadingChannelsOrChats(false);
351
+ setLoadingMessages(false);
352
+ }
353
+ };
354
+ const openChannelFromRow = async (selectedRows = []) => {
355
+ var _a2, _b2;
356
+ setLoadingChannelsOrChats(true);
357
+ setIsCreateNewChatOpen(false);
358
+ setSelectedChatId(null);
359
+ setSelectedChatInfo(null);
360
+ try {
361
+ const onOpenChannelFromRow = (_a2 = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _a2.onOpenChannelFromRow;
362
+ if (typeof onOpenChannelFromRow !== "function") {
363
+ await fetchChannelList();
364
+ return;
365
+ }
366
+ const result = await onOpenChannelFromRow(selectedRows);
367
+ if (!(result == null ? void 0 : result.success) || !(result == null ? void 0 : result.channel)) {
368
+ await fetchChannelList();
369
+ return;
370
+ }
371
+ const nextChannels = Array.isArray(result.channelsList) ? result.channelsList : [result.channel];
372
+ const nextChatList = Array.isArray(result.chatList) ? result.chatList : [];
373
+ const nextScreen = result.screen === "channels" ? "channels" : "chats";
374
+ setChannelsList(nextChannels);
375
+ setOriginalChanelList(nextChannels);
376
+ setSelectedChannelId(result.channel.id);
377
+ setSelectedChannelInfo(result.channel);
378
+ setChatList(nextChatList);
379
+ setOriginalChatList(nextChatList);
380
+ setCurrentSelectedScreen(nextScreen);
381
+ const chatToOpen = ((_b2 = result.openChat) == null ? void 0 : _b2.id) != null ? result.openChat : nextChatList.length > 0 ? nextChatList[0] : null;
382
+ if (chatToOpen == null ? void 0 : chatToOpen.id) {
383
+ await handleChatClick(chatToOpen.id, chatToOpen, { screen: nextScreen });
384
+ }
385
+ } catch (error) {
386
+ console.error("[TableChatSidePanel] [openChannelFromRow] [error]:", error);
387
+ handleToast(true, t("tableChat.sidePanel.errorLoadingChat"), "error");
388
+ await fetchChannelList();
389
+ } finally {
390
+ setLoadingChannelsOrChats(false);
391
+ }
392
+ };
299
393
  const clearnupLocalStates = () => {
300
394
  setSelectedChannelId(null);
301
395
  setSelectedChannelInfo(null);
302
396
  setSelectedChatInfo(null);
303
397
  setSelectedChatId(null);
398
+ setChannelsList([]);
399
+ setOriginalChanelList([]);
304
400
  setChatList([]);
305
401
  setOriginalChatList([]);
306
402
  setSelectedChat([]);
@@ -312,6 +408,7 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration }) => {
312
408
  setIsMoreOpen(false);
313
409
  setHighlightMessageId(null);
314
410
  setIsCreateNewChatOpen(false);
411
+ setCurrentSelectedScreen("channels");
315
412
  };
316
413
  const handleBackToChannels = async () => {
317
414
  var _a2;
@@ -322,10 +419,19 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration }) => {
322
419
  await fetchChannelList();
323
420
  };
324
421
  useEffect(() => {
325
- if (isOpen) {
422
+ if (!isOpen) {
423
+ return;
424
+ }
425
+ if ((entryContext == null ? void 0 : entryContext.mode) === "startNewChat" || (entryContext == null ? void 0 : entryContext.mode) === "createSpace") {
426
+ openChatFromSelection(entryContext.selectedRows, {
427
+ isSpace: entryContext.mode === "createSpace"
428
+ });
429
+ } else if ((entryContext == null ? void 0 : entryContext.mode) === "openChannel") {
430
+ openChannelFromRow(entryContext.selectedRows);
431
+ } else {
326
432
  fetchChannelsOrChats();
327
433
  }
328
- }, [isOpen]);
434
+ }, [isOpen, entryContext == null ? void 0 : entryContext.mode, entryContext == null ? void 0 : entryContext.openedAt]);
329
435
  useEffect(() => {
330
436
  var _a2;
331
437
  if (!isOpen) {
@@ -373,13 +479,42 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration }) => {
373
479
  setHighlightTrigger((prev) => prev + 1);
374
480
  };
375
481
  const handleChannelClick = async (selectedChannelId2, selectedChannelInfo2) => {
482
+ var _a2, _b2, _c2;
376
483
  setSelectedChannelId(selectedChannelId2);
377
484
  setSelectedChannelInfo(selectedChannelInfo2);
378
- const chatList2 = await fetchChatList(selectedChannelInfo2);
379
- if (chatList2 && chatList2.length > 0) {
380
- const firstChat = chatList2 == null ? void 0 : chatList2[0];
381
- await handleChatClick(firstChat == null ? void 0 : firstChat.id, firstChat);
485
+ setSelectedChatId(null);
486
+ setSelectedChatInfo(null);
487
+ setSelectedChat([]);
488
+ const onChannelOpen = (_a2 = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _a2.onChannelOpen;
489
+ if (typeof onChannelOpen === "function") {
490
+ try {
491
+ const result = await onChannelOpen(selectedChannelInfo2);
492
+ if (Array.isArray(result == null ? void 0 : result.channelsList)) {
493
+ setChannelsList(result.channelsList);
494
+ setOriginalChanelList(result.channelsList);
495
+ }
496
+ if (Array.isArray(result == null ? void 0 : result.chatList)) {
497
+ setCurrentSelectedScreen(result.screen === "channels" ? "channels" : "chats");
498
+ setChatList(result.chatList);
499
+ setOriginalChatList(result.chatList);
500
+ } else {
501
+ await fetchChatList(selectedChannelInfo2);
502
+ return;
503
+ }
504
+ const chatToOpen = ((_b2 = result == null ? void 0 : result.openChat) == null ? void 0 : _b2.id) != null ? result.openChat : ((_c2 = result == null ? void 0 : result.chatList) == null ? void 0 : _c2.length) > 0 ? result.chatList[0] : null;
505
+ if (chatToOpen == null ? void 0 : chatToOpen.id) {
506
+ await handleChatClick(chatToOpen.id, chatToOpen, {
507
+ screen: result.screen === "channels" ? "channels" : "chats"
508
+ });
509
+ }
510
+ return;
511
+ } catch (error) {
512
+ console.error("[TableChatSidePanel] [onChannelOpen] [error]:", error);
513
+ handleToast(true, t("tableChat.sidePanel.errorLoadingChat"), "error");
514
+ return;
515
+ }
382
516
  }
517
+ await fetchChatList(selectedChannelInfo2);
383
518
  };
384
519
  const handleChatSelect = (selectedChatId2) => {
385
520
  setSelectedChat(
@@ -463,16 +598,35 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration }) => {
463
598
  setLoadingChannelsOrChats(false);
464
599
  }
465
600
  };
601
+ const isChatResolved = Boolean(
602
+ (selectedChatInfo == null ? void 0 : selectedChatInfo.isResolved) ?? ((_s = selectedChatInfo == null ? void 0 : selectedChatInfo.otherProps) == null ? void 0 : _s.is_resolved) ?? ((_t = chatConfiguration == null ? void 0 : chatConfiguration.headerChatConfig) == null ? void 0 : _t.isResolved)
603
+ );
604
+ const hostInputDisabled = Boolean(
605
+ ((_u = chatConfiguration == null ? void 0 : chatConfiguration.inputChatConfig) == null ? void 0 : _u.disabled) ?? ((_w = (_v = chatConfiguration == null ? void 0 : chatConfiguration.inputChatConfig) == null ? void 0 : _v.inputConfig) == null ? void 0 : _w.disabled)
606
+ );
607
+ const isInputDisabled = isChatResolved || hostInputDisabled;
466
608
  return /* @__PURE__ */ jsxs("aside", { id: "table-chat-side-panel", children: [
467
609
  /* @__PURE__ */ jsx(
468
610
  Panel,
469
611
  {
470
612
  anchor: "right",
471
613
  className: "table-chat-panel",
614
+ headerRightContent: /* @__PURE__ */ jsx(
615
+ Button,
616
+ {
617
+ "aria-label": t("common.close"),
618
+ className: "table-chat-panel-close",
619
+ icon: /* @__PURE__ */ jsx(default_1, { fontSize: "small" }),
620
+ size: "medium",
621
+ variant: "text",
622
+ onClick: handleClose
623
+ }
624
+ ),
472
625
  open: isOpen,
473
626
  setIsOpen: () => {
474
627
  setIsChatOpen(!isChatOpen);
475
628
  },
629
+ showCloseButton: false,
476
630
  size: "medium",
477
631
  title: chatConfiguration == null ? void 0 : chatConfiguration.title,
478
632
  width: pinnedMsg || showThread ? 1450 : 985,
@@ -486,7 +640,7 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration }) => {
486
640
  handleChatName,
487
641
  handleChatSelect,
488
642
  handleToast,
489
- headerConfig: (_s = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _s.leftHeaderPanel,
643
+ headerConfig: (_x = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _x.leftHeaderPanel,
490
644
  isCreateNewChatOpen,
491
645
  isSearchOpen,
492
646
  loadingChannels: loadingChannelsOrChats,
@@ -494,10 +648,10 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration }) => {
494
648
  selectedChannelOrChatId,
495
649
  selectedChat,
496
650
  setIsCreateNewChatOpen,
497
- showAddChatBtn: (_u = (_t = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _t.leftHeaderPanel) == null ? void 0 : _u.showAddChat,
651
+ showAddChatBtn: (_z = (_y = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _y.leftHeaderPanel) == null ? void 0 : _z.showAddChat,
498
652
  showChannelList: isChannelsScreen,
499
- showCheckbox: (_w = (_v = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _v.leftChatPanel) == null ? void 0 : _w.showCheckbox,
500
- title: isChannelsScreen ? t("tableChat.sidePanel.channelsList") : selectedChannelInfo == null ? void 0 : selectedChannelInfo.title,
653
+ showCheckbox: (_B = (_A = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _A.leftChatPanel) == null ? void 0 : _B.showCheckbox,
654
+ title: isChannelsScreen ? ((_C = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _C.channelListTitle) ?? t("tableChat.sidePanel.channelsList") : selectedChannelInfo == null ? void 0 : selectedChannelInfo.title,
501
655
  onBack: handleBackToChannels,
502
656
  onChannelSelect: (id, selectedChannelOrChat) => {
503
657
  if (isChannelsScreen) {
@@ -509,21 +663,67 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration }) => {
509
663
  onDeleteTopics: handleDeletePromptOpen,
510
664
  onMenuClick: toggleMenu,
511
665
  onMoreClick: showMore,
512
- onPinnedChatClick: (_x = chatConfiguration == null ? void 0 : chatConfiguration.headerChatConfig) == null ? void 0 : _x.onPinnedChatClick,
666
+ onPinnedChatClick: (_D = chatConfiguration == null ? void 0 : chatConfiguration.headerChatConfig) == null ? void 0 : _D.onPinnedChatClick,
513
667
  onSearchClick: openSearch
514
668
  }
515
669
  ),
516
670
  loadingMessages ? /* @__PURE__ */ jsx(ChatSkeleton, { text: t("tableChat.loadingMessages") }) : /* @__PURE__ */ jsx(Fragment, { children: !selectedChannelId || !selectedChatId ? /* @__PURE__ */ jsx(
517
671
  EmptyContainer,
518
672
  {
519
- 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 : "",
520
- 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 : ""
673
+ subTitle: !selectedChannelId ? (_E = chatConfiguration == null ? void 0 : chatConfiguration.messageChatConfig) == null ? void 0 : _E.emptyChannelStateSubTitle : !selectedChatId ? (_F = chatConfiguration == null ? void 0 : chatConfiguration.messageChatConfig) == null ? void 0 : _F.emptyChatStateSubTitle : "",
674
+ title: !selectedChannelId ? (_G = chatConfiguration == null ? void 0 : chatConfiguration.messageChatConfig) == null ? void 0 : _G.emptyChannelStateTitle : !selectedChatId ? (_H = chatConfiguration == null ? void 0 : chatConfiguration.messageChatConfig) == null ? void 0 : _H.emptyChatStateTitle : ""
521
675
  }
522
676
  ) : /* @__PURE__ */ jsx(
523
677
  TableChatRightSection,
524
678
  {
525
679
  chatHeaderConfig: {
526
680
  ...chatConfiguration == null ? void 0 : chatConfiguration.headerChatConfig,
681
+ isResolved: (selectedChatInfo == null ? void 0 : selectedChatInfo.isResolved) ?? ((_I = selectedChatInfo == null ? void 0 : selectedChatInfo.otherProps) == null ? void 0 : _I.is_resolved) ?? ((_J = chatConfiguration == null ? void 0 : chatConfiguration.headerChatConfig) == null ? void 0 : _J.isResolved),
682
+ chatDisplayId: (selectedChatInfo == null ? void 0 : selectedChatInfo.displayId) ?? ((_K = selectedChatInfo == null ? void 0 : selectedChatInfo.otherProps) == null ? void 0 : _K.reference_id) ?? ((_L = selectedChatInfo == null ? void 0 : selectedChatInfo.otherProps) == null ? void 0 : _L.display_id) ?? ((_M = chatConfiguration == null ? void 0 : chatConfiguration.headerChatConfig) == null ? void 0 : _M.chatDisplayId),
683
+ onResolve: async (resolvedChatId) => {
684
+ var _a2, _b2;
685
+ const result = await ((_b2 = (_a2 = chatConfiguration == null ? void 0 : chatConfiguration.headerChatConfig) == null ? void 0 : _a2.onResolve) == null ? void 0 : _b2.call(_a2, resolvedChatId));
686
+ setSelectedChatInfo(
687
+ (prev) => prev ? {
688
+ ...prev,
689
+ isResolved: true,
690
+ otherProps: { ...prev.otherProps, is_resolved: true }
691
+ } : prev
692
+ );
693
+ return result;
694
+ },
695
+ onTitleChange: async (renamedChatId, nextTitle) => {
696
+ var _a2, _b2, _c2;
697
+ const result = await ((_b2 = (_a2 = chatConfiguration == null ? void 0 : chatConfiguration.headerChatConfig) == null ? void 0 : _a2.onTitleChange) == null ? void 0 : _b2.call(
698
+ _a2,
699
+ renamedChatId,
700
+ nextTitle
701
+ ));
702
+ const resolvedTitle = (result == null ? void 0 : result.title) ?? ((_c2 = result == null ? void 0 : result.formattedChat) == null ? void 0 : _c2.title) ?? nextTitle;
703
+ setSelectedChatInfo(
704
+ (prev) => prev ? {
705
+ ...prev,
706
+ title: resolvedTitle,
707
+ otherProps: {
708
+ ...prev.otherProps,
709
+ name: resolvedTitle
710
+ }
711
+ } : prev
712
+ );
713
+ const patchChatTitle = (list = []) => list.map(
714
+ (chat) => (chat == null ? void 0 : chat.id) === renamedChatId ? {
715
+ ...chat,
716
+ title: resolvedTitle,
717
+ otherProps: {
718
+ ...chat.otherProps,
719
+ name: resolvedTitle
720
+ }
721
+ } : chat
722
+ );
723
+ setChatList((prev) => patchChatTitle(prev));
724
+ setOriginalChatList((prev) => patchChatTitle(prev));
725
+ return result;
726
+ },
527
727
  onPinnedClick: (chatId) => {
528
728
  setShowThread(false);
529
729
  setShowPinnedMsg(true);
@@ -531,18 +731,18 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration }) => {
531
731
  }
532
732
  },
533
733
  chatId: selectedChatId,
534
- 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),
734
+ CreatedBy: (selectedChatInfo == null ? void 0 : selectedChatInfo.createdBy) || (selectedChatInfo == null ? void 0 : selectedChatInfo.user) || ((_N = selectedChatInfo == null ? void 0 : selectedChatInfo.otherProps) == null ? void 0 : _N.created_by_user),
535
735
  handleToast,
536
736
  inputChatConfig: {
537
737
  ...chatConfiguration.inputChatConfig
538
738
  },
539
739
  messageConfig: memoizedMessageConfig,
540
740
  setPinnedMessages,
541
- showActionBtn: (_E = (_D = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _D.rightHeaderPanel) == null ? void 0 : _E.showActionBtn,
542
- showParticipantsList: (_G = (_F = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _F.rightHeaderPanel) == null ? void 0 : _G.showParticipants,
543
- showPinnedChat: (_I = (_H = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _H.rightHeaderPanel) == null ? void 0 : _I.showPinnedChat,
544
- showSearch: (_K = (_J = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _J.rightHeaderPanel) == null ? void 0 : _K.showChatSearch,
545
- createdAt: (selectedChatInfo == null ? void 0 : selectedChatInfo.createdAt) || formatChatHeaderTimestamp((_L = selectedChatInfo == null ? void 0 : selectedChatInfo.otherProps) == null ? void 0 : _L.created_at),
741
+ showActionBtn: (_P = (_O = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _O.rightHeaderPanel) == null ? void 0 : _P.showActionBtn,
742
+ showParticipantsList: (_R = (_Q = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _Q.rightHeaderPanel) == null ? void 0 : _R.showParticipants,
743
+ showPinnedChat: (_T = (_S = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _S.rightHeaderPanel) == null ? void 0 : _T.showPinnedChat,
744
+ showSearch: (_V = (_U = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _U.rightHeaderPanel) == null ? void 0 : _V.showChatSearch,
745
+ createdAt: (selectedChatInfo == null ? void 0 : selectedChatInfo.createdAt) || formatChatHeaderTimestamp((_W = selectedChatInfo == null ? void 0 : selectedChatInfo.otherProps) == null ? void 0 : _W.created_at),
546
746
  title: selectedChatInfo == null ? void 0 : selectedChatInfo.title
547
747
  }
548
748
  ) }),
@@ -560,6 +760,7 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration }) => {
560
760
  loadingThread ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(ChatMessageListSkeleton, { className: "thread-skeleton", messageCount: 5 }) }) : /* @__PURE__ */ jsx(Fragment, { children: showThread && /* @__PURE__ */ jsx(
561
761
  PinnedPanel,
562
762
  {
763
+ disabled: isInputDisabled,
563
764
  handleToast,
564
765
  messages: threadMessages,
565
766
  type: "thread",
@@ -1,4 +1,4 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('@keyframes ia-shimmer-horizontal{0%{background-position:100% 0}to{background-position:0 0}}@keyframes ia-shimmer-vertical{0%{background-position:0 100%}to{background-position:0 0}}@property --ia-shimmer-angle{syntax:"<angle>";inherits:false;initial-value:0deg}@keyframes ia-shimmer-circular{0%{--ia-shimmer-angle:0deg}to{--ia-shimmer-angle:360deg}}.ia-shimmer{animation:ia-shimmer-horizontal 1.6s ease-in-out infinite;animation-direction:normal;background-color:#e8edf5;background-image:linear-gradient(90deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:300% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer{animation:none;background-image:linear-gradient(90deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--ltr{animation:ia-shimmer-horizontal 1.6s ease-in-out infinite;animation-direction:normal;background-color:#e8edf5;background-image:linear-gradient(90deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:300% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer--ltr{animation:none;background-image:linear-gradient(90deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--rtl{animation:ia-shimmer-horizontal 1.6s ease-in-out infinite;animation-direction:reverse;background-color:#e8edf5;background-image:linear-gradient(270deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:300% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer--rtl{animation:none;background-image:linear-gradient(270deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--btt{animation:ia-shimmer-vertical 1.6s ease-in-out infinite;animation-direction:reverse;background-color:#e8edf5;background-image:linear-gradient(0deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:100% 300%}@media (prefers-reduced-motion:reduce){.ia-shimmer--btt{animation:none;background-image:linear-gradient(0deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--ttb{animation:ia-shimmer-vertical 1.6s ease-in-out infinite;animation-direction:normal;background-color:#e8edf5;background-image:linear-gradient(0deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:100% 300%}@media (prefers-reduced-motion:reduce){.ia-shimmer--ttb{animation:none;background-image:linear-gradient(0deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--circular{background-color:#e8edf5;background-repeat:no-repeat;--ia-shimmer-angle:0deg;animation:ia-shimmer-circular 1.6s linear infinite;background-image:conic-gradient(from var(--ia-shimmer-angle),#eceef4 0deg,#e8edf5 80deg,#d5dbe8 160deg,#e8edf5 260deg,#eceef4 1turn);background-size:100% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer--circular{animation:none;background-image:conic-gradient(from 0deg,#eceef4,#e8edf5,#d5dbe8,#e8edf5 1turn)}}:root{--ia-focus-color:#4259ee;--ia-focus-bg:#fff;--ia-focus-ring-width:2px;--ia-focus-ring-offset:2px;--ia-modal-backdrop:#0d152ccc}*,: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}.chatcontainer{background:#fff;border-radius:10px;box-shadow:0 0 4px #0000001f;display:grid;grid-auto-flow:row;padding:10px;position:fixed;row-gap:10px;top:120px;width:231px;z-index:9999}.chatcontainer .chat-header-navigation .nav-right button{background-color:#4259ee!important;border:1px solid #c3c8d4}.chatcontainer .MuiInputBase-root input.MuiInputBase-input{min-width:210px!important}.chatFooterContainer{display:flex;gap:8px;justify-content:flex-end}.addChat_container{position:absolute}.chat_save_btn{background-color:#4259ee!important}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('@keyframes ia-shimmer-horizontal{0%{background-position:100% 0}to{background-position:0 0}}@keyframes ia-shimmer-vertical{0%{background-position:0 100%}to{background-position:0 0}}@property --ia-shimmer-angle{syntax:"<angle>";inherits:false;initial-value:0deg}@keyframes ia-shimmer-circular{0%{--ia-shimmer-angle:0deg}to{--ia-shimmer-angle:360deg}}.ia-shimmer{animation:ia-shimmer-horizontal 1.6s ease-in-out infinite;animation-direction:normal;background-color:#e8edf5;background-image:linear-gradient(90deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:300% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer{animation:none;background-image:linear-gradient(90deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--ltr{animation:ia-shimmer-horizontal 1.6s ease-in-out infinite;animation-direction:normal;background-color:#e8edf5;background-image:linear-gradient(90deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:300% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer--ltr{animation:none;background-image:linear-gradient(90deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--rtl{animation:ia-shimmer-horizontal 1.6s ease-in-out infinite;animation-direction:reverse;background-color:#e8edf5;background-image:linear-gradient(270deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:300% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer--rtl{animation:none;background-image:linear-gradient(270deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--btt{animation:ia-shimmer-vertical 1.6s ease-in-out infinite;animation-direction:reverse;background-color:#e8edf5;background-image:linear-gradient(0deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:100% 300%}@media (prefers-reduced-motion:reduce){.ia-shimmer--btt{animation:none;background-image:linear-gradient(0deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--ttb{animation:ia-shimmer-vertical 1.6s ease-in-out infinite;animation-direction:normal;background-color:#e8edf5;background-image:linear-gradient(0deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:100% 300%}@media (prefers-reduced-motion:reduce){.ia-shimmer--ttb{animation:none;background-image:linear-gradient(0deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--circular{background-color:#e8edf5;background-repeat:no-repeat;--ia-shimmer-angle:0deg;animation:ia-shimmer-circular 1.6s linear infinite;background-image:conic-gradient(from var(--ia-shimmer-angle),#eceef4 0deg,#e8edf5 80deg,#d5dbe8 160deg,#e8edf5 260deg,#eceef4 1turn);background-size:100% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer--circular{animation:none;background-image:conic-gradient(from 0deg,#eceef4,#e8edf5,#d5dbe8,#e8edf5 1turn)}}:root{--ia-focus-color:#4259ee;--ia-focus-bg:#fff;--ia-focus-ring-width:2px;--ia-focus-ring-offset:2px;--ia-modal-backdrop:#0d152ccc}*,: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}.chatcontainer{background:#fff;border-radius:10px;box-shadow:0 0 4px #0000001f;box-sizing:border-box;display:grid;grid-auto-flow:row;padding:10px;row-gap:10px;width:231px}.chatcontainer .MuiInputBase-root input.MuiInputBase-input{min-width:210px!important}.chatFooterContainer{display:flex;gap:8px;justify-content:flex-end}.addChat_container{position:absolute;right:0;top:calc(100% + 4px);z-index:10}.chat_save_btn{background-color:#4259ee!important}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
2
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
3
3
  import { useRef, useEffect } from "react";
4
4
  import { useForm, Controller } from "react-hook-form";
@@ -1,10 +1,12 @@
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, time, unreadCount, chatCount, avatar, isSelected, isMuted, onClick, showChannelList, showCheckbox, handleChatSelect, selectedChat, onPinnedChatClick, onPinnedChange, handleToast, isPinned: isPinnedProp, isSpace, badge, badgeLabel, ...rest }: {
2
2
  [x: string]: any;
3
3
  id: any;
4
4
  title: any;
5
- subtitle: any;
5
+ subtitle?: string | undefined;
6
6
  timestamp: any;
7
+ time: any;
7
8
  unreadCount: any;
9
+ chatCount: any;
8
10
  avatar: any;
9
11
  isSelected: any;
10
12
  isMuted: any;
@@ -19,5 +21,8 @@ export declare const ChatChannelItem: ({ id, title, subtitle, timestamp, unreadC
19
21
  onPinnedChange: any;
20
22
  handleToast: any;
21
23
  isPinned: any;
24
+ isSpace?: boolean | undefined;
25
+ badge: any;
26
+ badgeLabel: any;
22
27
  }) => import("react/jsx-runtime").JSX.Element;
23
28
  //# 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":"AAUA,eAAO,MAAM,eAAe,GAAI;;;;;;;;;;;;;;;;;;;;;CAmB/B,4CAsFA,CAAC"}
1
+ {"version":3,"file":"ChatChannelItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableChat/components/TableChatLeftSection/ChatChannelItem.tsx"],"names":[],"mappings":"AAuCA,eAAO,MAAM,eAAe,GAAI;;;;;;;;;;;;;;;;;;;;;;;;;;CAwB/B,4CAiIA,CAAC"}