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,7 @@
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}.chat-input{background:#fff;box-sizing:border-box;margin:0 16px 12px;min-width:0}.chat-input.focused{border-top-color:#4259ee}.chat-input .edit-mode-indicator{background-color:#fff3cd;border:1px solid #ffeaa7;border-radius:8px;margin-bottom:8px;padding:8px 12px}.chat-input .edit-mode-indicator .edit-mode-text{align-items:center;color:#856404;display:flex;font-size:14px;justify-content:space-between}.chat-input .edit-mode-indicator .edit-mode-text span{align-items:center;display:flex;font-weight:500;gap:6px}.chat-input .edit-mode-indicator .edit-mode-text .cancel-edit-btn{background:none;border:1px solid #ffeaa7;border-radius:4px;color:#856404;cursor:pointer;font-size:12px;padding:4px 8px;transition:all .2s ease}.chat-input .edit-mode-indicator .edit-mode-text .cancel-edit-btn:hover{background-color:#ffeaa7;color:#6c5400}.chat-input .quick-action-container{align-items:center;display:flex;justify-content:flex-end;margin-bottom:6px}.chat-input .show-formatting-enabled{justify-content:space-between}.chat-input .formatting-toolbar{align-items:center}.chat-input .formatting-toolbar .format-button{align-items:center;background:none;border:none;color:#7a8294;cursor:pointer;display:flex;justify-content:center;padding:6px}.chat-input .formatting-toolbar .format-button:hover{background:#eceefd;color:#4259ee}.chat-input .input-container{position:relative}.chat-input .input-container .input-wrapper{align-items:flex-end;background:#fff;border:1px solid #d9dde7;border-radius:12px;box-shadow:0 0 12px 8px #0000000f;display:flex;gap:8px;padding:12px 16px;transition:border-color .2s ease}.chat-input .input-container .input-wrapper:focus-within{border-color:#4259ee}.chat-input .input-container .input-wrapper .message-input{background:none;border:none;color:#1f2b4d;flex:1;font-family:Manrope,sans-serif;font-size:14px;line-height:1.4;outline:none}.chat-input .input-container .input-wrapper .message-input::placeholder{color:#7a8294}.chat-input .input-container .input-wrapper .image-input-container{display:flex;flex-direction:column;gap:2px;width:100%}.chat-input .input-container .character-count{bottom:-22px;color:#b4bac7;font-size:11px;position:absolute;right:-5px}.chat-input .formatting-toolbar{display:flex;gap:4px;padding:4px}.chat-input .formatting-toolbar .format-button{border-radius:4px;padding:4px;transition:all .2s ease}.chat-input .formatting-toolbar .format-button:hover{background-color:#f5f5f5}.chat-input .formatting-toolbar .format-button.is-active{background-color:#e2f4ff;color:#4259ee}.chat-input .upload-container{display:flex;flex-direction:column;width:100%}.chat-input .upload-container .image-preview-container{display:flex;flex-wrap:wrap;gap:8px}.chat-input .upload-container .image-preview-container img{border-radius:8px;object-fit:cover}.chat-input .upload-container .file-preview-container{display:flex;flex-direction:column;gap:4px}.chat-input .message-input{border:1px solid #f0f0f0;border-radius:4px;font-size:14px;line-height:1.5;padding:8px;width:100%}.chat-input .message-input:focus{border-color:#4259ee;outline:none}.chat-input .chat-input-section{border-radius:12px;display:flex;flex-direction:column;gap:6px;position:static;width:100%}.chat-input .chat-input-section.new-chat-screen{bottom:0;position:relative;width:100%}.chat-input .chat-input-section.custom-screen{bottom:15px;width:95%}.chat-input .chat-input-textarea{border:none;max-height:500px;min-height:10px;outline:none;overflow-y:auto;resize:none;width:100%}.chat-input .chat-input-container{background:#fff;border:1px solid #d9dde7;border-radius:12px;box-shadow:0 0 12px 8px #0000000f;padding:12px;position:relative;width:100%}.chat-input .chat-input-container:focus-within,.chat-input .chat-input-container:hover{border:1px solid #b3bdf8}.chat-input .chat-input-wrapper{align-items:flex-end;display:flex;max-height:182px;transition:all .2s ease-in-out;width:100%}.chat-input .chat-input-wrapper.stacked{align-items:stretch;flex-direction:column}.chat-input .chat-input-wrapper.empty{align-items:flex-end;flex-direction:row}.chat-input .chat-input-wrapper.single-line-textarea{align-items:center}.chat-input .message-input-container{display:flex;flex-direction:column;gap:4px;width:100%}.chat-input .chat-textarea{background:#0000;border:none;color:#1f2b4d;flex:1;font-family:Manrope,sans-serif;font-size:14px;font-weight:400;line-height:160%;max-height:142px;outline:none;overflow-y:hidden;padding:0;resize:none;width:100%}.chat-input .chat-textarea::placeholder{color:#b4bac7}.chat-input .chat-textarea{transition:all .2s ease-in-out}.chat-input .chat-textarea.scrollable{overflow-y:auto}.chat-input .chat-actions{align-items:flex-end;display:flex;gap:12px;height:32px;justify-content:flex-end}.chat-input .chat-actions.fixed{height:36px}.chat-input .chat-actions.not-fixed{height:32px}.chat-input .input-actions{align-items:center;display:flex;gap:8px}.chat-input .input-actions .send-actions{align-items:center;display:flex;gap:8px;height:30px}.chat-input .input-actions .send-actions .ia-btn-icon{height:28px;margin-bottom:-4px}.chat-input .input-actions .send-actions img{width:12px}.chat-input .input-actions .send-actions .check-button{background:none;border:3px solid #eceefd;border-radius:8px;color:#7a8294;cursor:pointer;height:32px;padding:8px;width:32px}.chat-input .input-actions .send-actions .check-button .check-icon{width:12px}.chat-input .input-actions .send-actions .send-button{align-items:center!important;background:#0000!important;border:none!important;border-radius:6px!important;color:#fff!important;display:flex!important;height:32px!important;justify-content:center!important;min-width:32px!important;padding:0!important;width:32px!important}.tiptap p.is-editor-empty:first-child:before{color:#d9dde7;content:attr(data-placeholder);float:left;height:0;pointer-events:none}.quick-action-menu.MuiPopover-root .MuiPaper-root{margin-bottom:8px!important}.ia-styles.ia-menu.quick-action-container .MuiList-root{min-width:214px!important}.ia-styles.ia-menu.quick-action-container .MuiPaper-root{margin-left:6px!important;margin-top:-10px!important}.ia-styles.ia-menu.priority-action-container .MuiList-root{min-width:214px!important}.ia-styles.ia-menu.priority-action-container .MuiPaper-root{margin-left:36px!important;margin-top:-6px!important}.input-actions .send-actions .ia-btn-icon-loading{margin-bottom:0;padding-top:7px}.selected_action_priority{border:1px solid #3649c6!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}.chat-input{background:#fff;box-sizing:border-box;margin:0 16px 12px;min-width:0}.chat-input.focused{border-top-color:#4259ee}.chat-input--disabled{cursor:not-allowed;opacity:.65;pointer-events:none}.chat-input--disabled .check-button,.chat-input--disabled .formatting-toolbar .format-button,.chat-input--disabled .quick-action-button{cursor:not-allowed}.chat-input .edit-mode-indicator{background-color:#fff3cd;border:1px solid #ffeaa7;border-radius:8px;margin-bottom:8px;padding:8px 12px}.chat-input .edit-mode-indicator .edit-mode-text{align-items:center;color:#856404;display:flex;font-size:14px;justify-content:space-between}.chat-input .edit-mode-indicator .edit-mode-text span{align-items:center;display:flex;font-weight:500;gap:6px}.chat-input .edit-mode-indicator .edit-mode-text .cancel-edit-btn{background:none;border:1px solid #ffeaa7;border-radius:4px;color:#856404;cursor:pointer;font-size:12px;padding:4px 8px;transition:all .2s ease}.chat-input .edit-mode-indicator .edit-mode-text .cancel-edit-btn:hover{background-color:#ffeaa7;color:#6c5400}.chat-input .quick-action-container{align-items:center;display:flex;justify-content:flex-end;margin-bottom:6px}.chat-input .show-formatting-enabled{justify-content:space-between}.chat-input .formatting-toolbar{align-items:center}.chat-input .formatting-toolbar .format-button{align-items:center;background:none;border:none;color:#7a8294;cursor:pointer;display:flex;justify-content:center;padding:6px}.chat-input .formatting-toolbar .format-button:hover{background:#eceefd;color:#4259ee}.chat-input .input-container{position:relative}.chat-input .input-container .input-wrapper{align-items:flex-end;background:#fff;border:1px solid #d9dde7;border-radius:12px;box-shadow:0 0 12px 8px #0000000f;display:flex;gap:8px;padding:12px 16px;transition:border-color .2s ease}.chat-input .input-container .input-wrapper:focus-within{border-color:#4259ee}.chat-input .input-container .input-wrapper .message-input{background:none;border:none;color:#1f2b4d;flex:1;font-family:Manrope,sans-serif;font-size:14px;line-height:1.4;outline:none}.chat-input .input-container .input-wrapper .message-input::placeholder{color:#7a8294}.chat-input .input-container .input-wrapper .image-input-container{display:flex;flex-direction:column;gap:2px;width:100%}.chat-input .input-container .character-count{bottom:-22px;color:#b4bac7;font-size:11px;position:absolute;right:-5px}.chat-input .formatting-toolbar{display:flex;gap:4px;padding:4px}.chat-input .formatting-toolbar .format-button{border-radius:4px;padding:4px;transition:all .2s ease}.chat-input .formatting-toolbar .format-button:hover{background-color:#f5f5f5}.chat-input .formatting-toolbar .format-button.is-active{background-color:#e2f4ff;color:#4259ee}.chat-input .upload-container{display:flex;flex-direction:column;width:100%}.chat-input .upload-container .image-preview-container{display:flex;flex-wrap:wrap;gap:8px}.chat-input .upload-container .image-preview-container img{border-radius:8px;object-fit:cover}.chat-input .upload-container .file-preview-container{display:flex;flex-direction:column;gap:4px}.chat-input .message-input{border:1px solid #f0f0f0;border-radius:4px;font-size:14px;line-height:1.5;padding:8px;width:100%}.chat-input .message-input:focus{border-color:#4259ee;outline:none}.chat-input .chat-input-section{border-radius:12px;display:flex;flex-direction:column;gap:6px;position:static;width:100%}.chat-input .chat-input-section.new-chat-screen{bottom:0;position:relative;width:100%}.chat-input .chat-input-section.custom-screen{bottom:15px;width:95%}.chat-input .chat-input-textarea{border:none;max-height:500px;min-height:10px;outline:none;overflow-y:auto;resize:none;width:100%}.chat-input .chat-input-container{background:#fff;border:1px solid #d9dde7;border-radius:12px;box-shadow:0 0 12px 8px #0000000f;box-sizing:border-box;display:flex;flex-direction:column;gap:12px;padding:12px;position:relative;width:100%}.chat-input .chat-input-container:focus-within,.chat-input .chat-input-container:hover{border:1px solid #b3bdf8}.chat-input .reply-preview{align-items:flex-start;background:#f2f4fb;border-radius:8px 8px 0 0;box-sizing:border-box;display:flex;gap:8px;padding:8px;width:100%}.chat-input .reply-preview__text{color:#60697d;flex:1;font-size:14px;font-weight:500;letter-spacing:.14px;line-height:1.6;margin:0;min-width:0;word-break:break-word}.chat-input .reply-preview__close{align-items:center;background:#0000;border:none;border-radius:4px;color:#7a8294;cursor:pointer;display:inline-flex;flex-shrink:0;height:20px;justify-content:center;margin:0;padding:0;width:20px}.chat-input .reply-preview__close:hover{background:#1f2b4d0f;color:#1f2b4d}.chat-input .chat-input-wrapper{align-items:flex-end;display:flex;max-height:182px;transition:all .2s ease-in-out;width:100%}.chat-input .chat-input-wrapper.stacked{align-items:stretch;flex-direction:column}.chat-input .chat-input-wrapper.empty{align-items:flex-end;flex-direction:row}.chat-input .chat-input-wrapper.single-line-textarea{align-items:center}.chat-input .message-input-container{display:flex;flex-direction:column;gap:4px;width:100%}.chat-input .chat-textarea{background:#0000;border:none;color:#1f2b4d;flex:1;font-family:Manrope,sans-serif;font-size:14px;font-weight:400;line-height:160%;max-height:142px;outline:none;overflow-y:hidden;padding:0;resize:none;width:100%}.chat-input .chat-textarea::placeholder{color:#b4bac7}.chat-input .chat-textarea{transition:all .2s ease-in-out}.chat-input .chat-textarea.scrollable{overflow-y:auto}.chat-input .chat-actions{align-items:flex-end;display:flex;gap:12px;height:32px;justify-content:flex-end}.chat-input .chat-actions.fixed{height:36px}.chat-input .chat-actions.not-fixed{height:32px}.chat-input .input-actions{align-items:center;display:flex;gap:8px}.chat-input .input-actions .send-actions{align-items:center;display:flex;gap:8px;height:30px}.chat-input .input-actions .send-actions .ia-btn-icon{height:28px;margin-bottom:-4px}.chat-input .input-actions .send-actions img{width:12px}.chat-input .input-actions .send-actions .check-button{background:none;border:3px solid #eceefd;border-radius:8px;color:#7a8294;cursor:pointer;height:32px;padding:8px;width:32px}.chat-input .input-actions .send-actions .check-button .check-icon{width:12px}.chat-input .input-actions .send-actions .send-button{align-items:center!important;background:#0000!important;border:none!important;border-radius:6px!important;color:#fff!important;display:flex!important;height:32px!important;justify-content:center!important;min-width:32px!important;padding:0!important;width:32px!important}.tiptap p.is-editor-empty:first-child:before{color:#d9dde7;content:attr(data-placeholder);float:left;height:0;pointer-events:none}.quick-action-menu.MuiPopover-root .MuiPaper-root{margin-bottom:8px!important}.ia-styles.ia-menu.quick-action-container .MuiList-root{min-width:214px!important}.ia-styles.ia-menu.quick-action-container .MuiPaper-root{margin-left:6px!important;margin-top:-10px!important}.ia-styles.ia-menu.priority-action-container .MuiList-root{min-width:214px!important}.ia-styles.ia-menu.priority-action-container .MuiPaper-root{margin-left:36px!important;margin-top:-6px!important}.input-actions .send-actions .ia-btn-icon-loading{margin-bottom:0;padding-top:7px}.selected_action_priority{border:1px solid #3649c6!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
- import React__default, { useState, useRef, useEffect } from "react";
3
+ import React__default, { useState, useRef, useMemo, useEffect } from "react";
4
+ import default_1 from "../../../../../node_modules/@mui/icons-material/Close.js";
4
5
  import { getAssetUrl } from "../../../../../utils/assetBase.js";
5
6
  import { Button } from "../../../../Button/index.js";
6
7
  import { Menu } from "../../../../Menu/index.js";
@@ -30,6 +31,7 @@ const ChatInput = ({
30
31
  onAttach,
31
32
  onImageUpload,
32
33
  onEmojiClick,
34
+ onQuickAction,
33
35
  showFormatting = true,
34
36
  showQuickAction = true,
35
37
  quickActionLabel,
@@ -40,6 +42,9 @@ const ChatInput = ({
40
42
  isEditMode = false,
41
43
  editingMessage = null,
42
44
  onCancelEdit,
45
+ isReplyMode = false,
46
+ replyingToMessage = null,
47
+ onCancelReply,
43
48
  chatId
44
49
  }) => {
45
50
  var _a, _b, _c, _d, _e, _f;
@@ -67,6 +72,15 @@ const ChatInput = ({
67
72
  const [height, setHeight] = useState("auto");
68
73
  const [selectedPriority, setSelectedPriority] = useState("");
69
74
  const [selectedQuickAction, setSelectedQuickAction] = useState(null);
75
+ const REPLY_PREVIEW_MAX_LENGTH = 140;
76
+ const replyPreviewText = useMemo(() => {
77
+ if (!replyingToMessage) return "";
78
+ const raw = replyingToMessage.content || replyingToMessage.text || "";
79
+ if (typeof raw !== "string") return "";
80
+ const plain = raw.replace(/<[^>]*>/g, " ").replace(/\s+/g, " ").trim();
81
+ if (plain.length <= REPLY_PREVIEW_MAX_LENGTH) return plain;
82
+ return `${plain.slice(0, REPLY_PREVIEW_MAX_LENGTH).trim()}...`;
83
+ }, [replyingToMessage]);
70
84
  const [isFormatActive, setIsFormatActive] = useState({
71
85
  bold: false,
72
86
  italic: false,
@@ -271,6 +285,7 @@ const ChatInput = ({
271
285
  }, [updateFormatState]);
272
286
  const handleEmojiClick = (emoji) => {
273
287
  var _a2;
288
+ if (disabled) return;
274
289
  if ((_a2 = editorRef.current) == null ? void 0 : _a2.insertEmoji) {
275
290
  editorRef.current.insertEmoji(emoji);
276
291
  }
@@ -312,10 +327,12 @@ const ChatInput = ({
312
327
  }
313
328
  };
314
329
  const handleQuickActionClick = (event) => {
330
+ if (disabled) return;
315
331
  setQuickActionMenuOpen(true);
316
332
  setQuickActionAnchorEl(event.currentTarget);
317
333
  };
318
334
  const handlePriorityClick = (event) => {
335
+ if (disabled) return;
319
336
  setPriorityMenuOpen(true);
320
337
  setPriorityAnchorEl(event.currentTarget);
321
338
  };
@@ -384,6 +401,7 @@ const ChatInput = ({
384
401
  setEmojiAnchorEl(null);
385
402
  };
386
403
  const handleEmojiPickerOpen = (event) => {
404
+ if (disabled) return;
387
405
  event.preventDefault();
388
406
  event.stopPropagation();
389
407
  setEmojiAnchorEl(event.currentTarget);
@@ -395,156 +413,42 @@ const ChatInput = ({
395
413
  setIsFixed(false);
396
414
  }
397
415
  }, [message]);
398
- return /* @__PURE__ */ jsxs("div", { className: `${className} ${isFocused ? "focused" : ""}`, children: [
399
- isEditMode && editingMessage && /* @__PURE__ */ jsx("div", { className: "edit-mode-indicator", children: /* @__PURE__ */ jsxs("div", { className: "edit-mode-text", children: [
400
- /* @__PURE__ */ jsxs("span", { children: [
401
- "✏️ ",
402
- t("tableChat.input.editingMessage")
403
- ] }),
404
- /* @__PURE__ */ jsx("button", { className: "cancel-edit-btn", type: "button", onClick: onCancelEdit, children: t("common.cancel") })
405
- ] }) }),
406
- /* @__PURE__ */ jsxs("div", { className: `quick-action-container ${showFormatting ? "show-formatting-enabled" : ""}`, children: [
407
- showFormatting && /* @__PURE__ */ jsx(
408
- EditorToolbar,
409
- {
410
- ref: toolbarRef,
411
- activeStates: isFormatActive,
412
- className: "formatting-toolbar",
413
- enabledItems: [
414
- "bold",
415
- "italic",
416
- "link",
417
- // "bulletList", // Enabled if required (functionality implemented)
418
- // "orderedList",
419
- "strike",
420
- "highlight"
421
- // "h1",
422
- // "h2",
423
- // "h3",
424
- // "h4",
425
- // "h5",
426
- // "h6",
427
- ],
428
- editor: editorRef.current,
429
- onEmojiSelect: handleEmojiPickerOpen
430
- }
431
- ),
432
- showQuickAction && /* @__PURE__ */ jsxs(Fragment, { children: [
433
- /* @__PURE__ */ jsx(
434
- Button,
435
- {
436
- className: `${(selectedQuickAction == null ? void 0 : selectedQuickAction.value) && "selected_action_priority"} quick-action-button `,
437
- icon: /* @__PURE__ */ jsx("img", { src: ListIcon }),
438
- variant: "tertiary",
439
- onClick: handleQuickActionClick,
440
- children: quickActionLabel || t("tableChat.input.quickAction")
441
- }
442
- ),
443
- /* @__PURE__ */ jsx(
444
- Menu,
445
- {
446
- anchorEl: quickActionAnchorEl,
447
- iconPlacement: "top",
448
- menuContainerClassName: "quick-action-container",
449
- MenuProps: {
450
- anchorOrigin: {
451
- vertical: "top",
452
- horizontal: "left"
453
- },
454
- transformOrigin: {
455
- vertical: "bottom",
456
- horizontal: "center"
457
- }
458
- },
459
- open: quickActionMenuOpen,
460
- options: quickActionMenuOptions,
461
- selected: selectedQuickAction,
462
- onClick: (option) => {
463
- var _a2;
464
- const text = getPrefillText(option.value, quickActionMenuOptions);
465
- if ((selectedQuickAction == null ? void 0 : selectedQuickAction.value) === option.value) {
466
- setSelectedQuickAction(null);
467
- setMessage("");
468
- if ((_a2 = editorRef.current) == null ? void 0 : _a2.clearContent) {
469
- editorRef.current.clearContent();
470
- }
471
- } else {
472
- setSelectedQuickAction(text);
473
- const prefillText = (text == null ? void 0 : text.prefillText) || "";
474
- setMessage(prefillText);
475
- }
476
- setQuickActionMenuOpen(false);
477
- },
478
- onClose: () => {
479
- setQuickActionMenuOpen(false);
416
+ return /* @__PURE__ */ jsxs(
417
+ "div",
418
+ {
419
+ className: `${className} ${isFocused ? "focused" : ""}${disabled ? " chat-input--disabled" : ""}`,
420
+ "aria-disabled": disabled || void 0,
421
+ children: [
422
+ /* @__PURE__ */ jsxs("div", { className: `quick-action-container ${showFormatting ? "show-formatting-enabled" : ""}`, children: [
423
+ showFormatting && /* @__PURE__ */ jsx(
424
+ EditorToolbar,
425
+ {
426
+ ref: toolbarRef,
427
+ activeStates: isFormatActive,
428
+ className: "formatting-toolbar",
429
+ enabledItems: ["bold", "italic", "link", "strike", "highlight"],
430
+ editor: editorRef.current,
431
+ onEmojiSelect: disabled ? void 0 : handleEmojiPickerOpen
480
432
  }
481
- }
482
- )
483
- ] })
484
- ] }),
485
- /* @__PURE__ */ jsx("div", { className: "chat-input-section", children: /* @__PURE__ */ jsx("div", { className: "chat-input-container", children: /* @__PURE__ */ jsxs(
486
- "div",
487
- {
488
- className: `chat-input-wrapper ${isFixed ? "stacked" : ""} ${!isFixed || message === "" ? "empty" : ""} ${!isFixed ? "single-line-textarea" : ""}`,
489
- style: { height },
490
- children: [
491
- /* @__PURE__ */ jsxs("div", { className: "message-input-container", children: [
492
- /* @__PURE__ */ jsxs("div", { className: "upload-container", children: [
493
- /* @__PURE__ */ jsx("div", { className: "image-preview-container", children: image || isLoading || isError ? /* @__PURE__ */ jsx(
494
- ImageUploader,
495
- {
496
- handleClear,
497
- handleRetry,
498
- image,
499
- isError,
500
- isLoading
501
- }
502
- ) : null }),
503
- /* @__PURE__ */ jsx("div", { className: "file-preview-container", children: (uploadedFile || fileUploadLoading || fileUploadError) && /* @__PURE__ */ jsx(
504
- FileUploader,
505
- {
506
- file: uploadedFile,
507
- fileUrl,
508
- isError: fileUploadError,
509
- isLoading: fileUploadLoading,
510
- onClear: handleFileClear,
511
- onDownload: handleFileDownload,
512
- onRetry: handleFileRetry
513
- }
514
- ) })
515
- ] }),
516
- /* @__PURE__ */ jsx(
517
- MentionEditor,
518
- {
519
- ref: editorRef,
520
- chatId,
521
- disabled,
522
- loadParticipantsAvatar: messageConfig.loadParticipantsAvatar,
523
- maxLength,
524
- placeholder: t("tableChat.input.mentionPlaceholder"),
525
- value: getDisplayValue(),
526
- onChange: handleInputChange,
527
- onSend: handleSend
528
- }
529
- )
530
- ] }),
531
- /* @__PURE__ */ jsx("div", { className: `chat-actions ${isFixed ? "fixed" : ""}`, children: /* @__PURE__ */ jsx("div", { className: "input-actions", children: /* @__PURE__ */ jsxs("div", { className: "send-actions", children: [
433
+ ),
434
+ showQuickAction && /* @__PURE__ */ jsxs(Fragment, { children: [
532
435
  /* @__PURE__ */ jsx(
533
436
  Button,
534
437
  {
535
- ariaLabel: t("tableChat.input.markAsDone"),
536
- className: `${selectedPriority.value && "selected_action_priority"} check-button`,
537
- icon: /* @__PURE__ */ jsx("img", { className: "check-icon", src: CheckIcon }),
438
+ className: `${(selectedQuickAction == null ? void 0 : selectedQuickAction.value) && "selected_action_priority"} quick-action-button `,
439
+ disabled,
440
+ icon: /* @__PURE__ */ jsx("img", { src: ListIcon }),
538
441
  variant: "tertiary",
539
- onClick: handlePriorityClick
442
+ onClick: handleQuickActionClick,
443
+ children: quickActionLabel || t("tableChat.input.quickAction")
540
444
  }
541
445
  ),
542
446
  /* @__PURE__ */ jsx(
543
447
  Menu,
544
448
  {
545
- anchorEl: priorityAnchorEl,
449
+ anchorEl: quickActionAnchorEl,
546
450
  iconPlacement: "top",
547
- menuContainerClassName: "priority-action-container",
451
+ menuContainerClassName: "quick-action-container",
548
452
  MenuProps: {
549
453
  anchorOrigin: {
550
454
  vertical: "top",
@@ -552,52 +456,175 @@ const ChatInput = ({
552
456
  },
553
457
  transformOrigin: {
554
458
  vertical: "bottom",
555
- horizontal: "right"
459
+ horizontal: "center"
556
460
  }
557
461
  },
558
- open: priorityMenuOpen,
559
- options: priorityMenuOptions,
560
- selected: selectedPriority,
462
+ open: quickActionMenuOpen,
463
+ options: quickActionMenuOptions,
464
+ selected: selectedQuickAction,
561
465
  onClick: (option) => {
562
- const text = getPrefillText(option.value, priorityMenuOptions);
563
- if (selectedPriority.value === option.value) {
564
- setSelectedPriority("");
466
+ var _a2, _b2;
467
+ const text = getPrefillText(option.value, quickActionMenuOptions);
468
+ if ((selectedQuickAction == null ? void 0 : selectedQuickAction.value) === option.value) {
469
+ setSelectedQuickAction(null);
470
+ setMessage("");
471
+ if ((_a2 = editorRef.current) == null ? void 0 : _a2.clearContent) {
472
+ editorRef.current.clearContent();
473
+ }
474
+ onChange == null ? void 0 : onChange("");
565
475
  } else {
566
- setSelectedPriority(text);
476
+ setSelectedQuickAction(text);
477
+ const prefillText = (text == null ? void 0 : text.prefillText) || "";
478
+ setMessage(prefillText);
479
+ if (((_b2 = editorRef.current) == null ? void 0 : _b2.editor) && prefillText) {
480
+ editorRef.current.editor.commands.setContent(`<p>${prefillText}</p>`);
481
+ }
482
+ onChange == null ? void 0 : onChange(prefillText);
483
+ onQuickAction == null ? void 0 : onQuickAction(option, chatId);
567
484
  }
568
- setPriorityMenuOpen(false);
485
+ setQuickActionMenuOpen(false);
569
486
  },
570
487
  onClose: () => {
571
- setPriorityMenuOpen(false);
488
+ setQuickActionMenuOpen(false);
572
489
  }
573
490
  }
574
- ),
575
- /* @__PURE__ */ jsx(
576
- Button,
491
+ )
492
+ ] })
493
+ ] }),
494
+ /* @__PURE__ */ jsx("div", { className: `chat-input-section ${isReplyMode && replyingToMessage ? "is-replying" : ""}`, children: /* @__PURE__ */ jsxs("div", { className: "chat-input-container", children: [
495
+ isReplyMode && replyingToMessage ? /* @__PURE__ */ jsxs("div", { className: "reply-preview", children: [
496
+ /* @__PURE__ */ jsx("p", { className: "reply-preview__text", children: replyPreviewText }),
497
+ onCancelReply ? /* @__PURE__ */ jsx(
498
+ "button",
577
499
  {
578
- "aria-label": isEditMode ? t("tableChat.input.updateMessage") : t("tableChat.input.sendMessage"),
579
- disabled: !getTrimmedValue(),
580
- icon: /* @__PURE__ */ jsx("img", { src: SendIcon }),
581
- loading: isSending,
582
- title: isEditMode ? t("tableChat.input.updateMessage") : t("tableChat.input.sendMessage"),
583
- variant: "primary",
584
- onClick: handleSend
500
+ "aria-label": t("common.close"),
501
+ className: "reply-preview__close",
502
+ type: "button",
503
+ onClick: onCancelReply,
504
+ children: /* @__PURE__ */ jsx(default_1, { fontSize: "small" })
585
505
  }
586
- )
587
- ] }) }) })
588
- ]
589
- }
590
- ) }) }),
591
- /* @__PURE__ */ jsx(
592
- TableChatEmojiPicker,
593
- {
594
- anchorEl: emojiAnchorEl,
595
- open: emojiPickerOpen,
596
- onClose: handleEmojiPickerClose,
597
- onEmojiClick: handleEmojiClick
598
- }
599
- )
600
- ] });
506
+ ) : null
507
+ ] }) : null,
508
+ /* @__PURE__ */ jsxs(
509
+ "div",
510
+ {
511
+ className: `chat-input-wrapper ${isFixed ? "stacked" : ""} ${!isFixed || message === "" ? "empty" : ""} ${!isFixed ? "single-line-textarea" : ""}`,
512
+ style: { height },
513
+ children: [
514
+ /* @__PURE__ */ jsxs("div", { className: "message-input-container", children: [
515
+ /* @__PURE__ */ jsxs("div", { className: "upload-container", children: [
516
+ /* @__PURE__ */ jsx("div", { className: "image-preview-container", children: image || isLoading || isError ? /* @__PURE__ */ jsx(
517
+ ImageUploader,
518
+ {
519
+ handleClear,
520
+ handleRetry,
521
+ image,
522
+ isError,
523
+ isLoading
524
+ }
525
+ ) : null }),
526
+ /* @__PURE__ */ jsx("div", { className: "file-preview-container", children: (uploadedFile || fileUploadLoading || fileUploadError) && /* @__PURE__ */ jsx(
527
+ FileUploader,
528
+ {
529
+ file: uploadedFile,
530
+ fileUrl,
531
+ isError: fileUploadError,
532
+ isLoading: fileUploadLoading,
533
+ onClear: handleFileClear,
534
+ onDownload: handleFileDownload,
535
+ onRetry: handleFileRetry
536
+ }
537
+ ) })
538
+ ] }),
539
+ /* @__PURE__ */ jsx(
540
+ MentionEditor,
541
+ {
542
+ ref: editorRef,
543
+ chatId,
544
+ disabled,
545
+ loadParticipantsAvatar: messageConfig.loadParticipantsAvatar,
546
+ maxLength,
547
+ placeholder: placeholder || t("tableChat.input.mentionPlaceholder"),
548
+ value: getDisplayValue(),
549
+ onChange: handleInputChange,
550
+ onSend: handleSend
551
+ }
552
+ )
553
+ ] }),
554
+ /* @__PURE__ */ jsx("div", { className: `chat-actions ${isFixed ? "fixed" : ""}`, children: /* @__PURE__ */ jsx("div", { className: "input-actions", children: /* @__PURE__ */ jsxs("div", { className: "send-actions", children: [
555
+ /* @__PURE__ */ jsx(
556
+ Button,
557
+ {
558
+ ariaLabel: t("tableChat.input.markAsDone"),
559
+ className: `${selectedPriority.value && "selected_action_priority"} check-button`,
560
+ disabled,
561
+ icon: /* @__PURE__ */ jsx("img", { className: "check-icon", src: CheckIcon }),
562
+ variant: "tertiary",
563
+ onClick: handlePriorityClick
564
+ }
565
+ ),
566
+ /* @__PURE__ */ jsx(
567
+ Menu,
568
+ {
569
+ anchorEl: priorityAnchorEl,
570
+ iconPlacement: "top",
571
+ menuContainerClassName: "priority-action-container",
572
+ MenuProps: {
573
+ anchorOrigin: {
574
+ vertical: "top",
575
+ horizontal: "left"
576
+ },
577
+ transformOrigin: {
578
+ vertical: "bottom",
579
+ horizontal: "right"
580
+ }
581
+ },
582
+ open: priorityMenuOpen,
583
+ options: priorityMenuOptions,
584
+ selected: selectedPriority,
585
+ onClick: (option) => {
586
+ const text = getPrefillText(option.value, priorityMenuOptions);
587
+ if (selectedPriority.value === option.value) {
588
+ setSelectedPriority("");
589
+ } else {
590
+ setSelectedPriority(text);
591
+ }
592
+ setPriorityMenuOpen(false);
593
+ },
594
+ onClose: () => {
595
+ setPriorityMenuOpen(false);
596
+ }
597
+ }
598
+ ),
599
+ /* @__PURE__ */ jsx(
600
+ Button,
601
+ {
602
+ "aria-label": t("tableChat.input.sendMessage"),
603
+ disabled: disabled || !getTrimmedValue(),
604
+ icon: /* @__PURE__ */ jsx("img", { src: SendIcon }),
605
+ loading: isSending,
606
+ title: t("tableChat.input.sendMessage"),
607
+ variant: "primary",
608
+ onClick: handleSend
609
+ }
610
+ )
611
+ ] }) }) })
612
+ ]
613
+ }
614
+ )
615
+ ] }) }),
616
+ /* @__PURE__ */ jsx(
617
+ TableChatEmojiPicker,
618
+ {
619
+ anchorEl: emojiAnchorEl,
620
+ open: emojiPickerOpen,
621
+ onClose: handleEmojiPickerClose,
622
+ onEmojiClick: handleEmojiClick
623
+ }
624
+ )
625
+ ]
626
+ }
627
+ );
601
628
  };
602
629
  export {
603
630
  ChatInput
@@ -1,34 +1,36 @@
1
1
 
2
- export declare const ChatMessage: ({ messageId, author, authorName, authorAvatar, content, timestamp, isUser, showActions, showAvatar, isDeleted, edited, deleted, onReply, onReact, onBookmark, onPin, pinned, onMore, onEdit, onMessageDelete, onRefetchMessages, type, priority, actions, className, onThreadClick, isThreadIconVisible, isPinChatIconvisible, isHighlighted, highlightColor, }: {
2
+ export declare const ChatMessage: ({ messageId, authorName, authorAvatar, content, timestamp, isUser, isDeleted, edited, deleted, onReply, onFinalize, onPin, pinned, onEdit, onMessageDelete, type, priority, className, onThreadClick, isThreadIconVisible, isPinChatIconvisible, isHighlighted, highlightColor, quote, showReplyActions, showFinalize, showEditOption, showDeleteOption, moreOptions, isEditing, onCancelEdit, onSaveEdit, }: {
3
3
  messageId: any;
4
- author: any;
5
4
  authorName: any;
6
5
  authorAvatar: any;
7
6
  content: any;
8
7
  timestamp: any;
9
8
  isUser?: boolean | undefined;
10
- showActions?: boolean | undefined;
11
- showAvatar?: boolean | undefined;
12
9
  isDeleted?: boolean | undefined;
13
10
  edited?: boolean | undefined;
14
11
  deleted?: boolean | undefined;
15
12
  onReply: any;
16
- onReact: any;
17
- onBookmark: any;
13
+ onFinalize: any;
18
14
  onPin: any;
19
15
  pinned: any;
20
- onMore: any;
21
16
  onEdit: any;
22
17
  onMessageDelete: any;
23
- onRefetchMessages: any;
24
18
  type?: string | undefined;
25
19
  priority?: string | undefined;
26
- actions?: never[] | undefined;
27
20
  className?: string | undefined;
28
21
  onThreadClick: any;
29
22
  isThreadIconVisible: any;
30
23
  isPinChatIconvisible: any;
31
24
  isHighlighted?: boolean | undefined;
32
25
  highlightColor?: null | undefined;
26
+ quote: any;
27
+ showReplyActions?: boolean | undefined;
28
+ showFinalize?: boolean | undefined;
29
+ showEditOption?: boolean | undefined;
30
+ showDeleteOption?: boolean | undefined;
31
+ moreOptions?: never[] | undefined;
32
+ isEditing?: boolean | undefined;
33
+ onCancelEdit: any;
34
+ onSaveEdit: any;
33
35
  }) => import("react/jsx-runtime").JSX.Element;
34
36
  //# sourceMappingURL=ChatMessage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChatMessage.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.tsx"],"names":[],"mappings":"AAUA,OAAO,2BAA2B,CAAC;AAKnC,eAAO,MAAM,WAAW,GAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+B3B,4CA4KA,CAAC"}
1
+ {"version":3,"file":"ChatMessage.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.tsx"],"names":[],"mappings":"AAWA,OAAO,2BAA2B,CAAC;AAKnC,eAAO,MAAM,WAAW,GAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiC3B,4CA0JA,CAAC"}