impact-ui 4.0.1-alpha.2 → 4.0.1-alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/North.js +4 -0
- package/dist/_virtual/_commonjsHelpers.js +1 -1
- package/dist/_virtual/index13.js +2 -2
- package/dist/_virtual/index14.js +2 -2
- package/dist/_virtual/index15.js +2 -2
- package/dist/_virtual/index16.js +2 -2
- package/dist/components/AccordionModern/index.js +5 -10
- package/dist/components/BottomSheet/index.d.ts.map +1 -1
- package/dist/components/BottomSheet/index.js +5 -4
- package/dist/components/Chart/index.d.ts.map +1 -1
- package/dist/components/Chart/index.js +5 -7
- package/dist/components/Chatbot/constant.d.ts.map +1 -1
- package/dist/components/Chatbot/constant.js +8 -2
- package/dist/components/Chatbot/index.d.ts.map +1 -1
- package/dist/components/Chatbot/index.js +24 -15
- package/dist/components/Chatbot/newChatComponent.js +1 -1
- package/dist/components/Checkbox/Default.js +1 -1
- package/dist/components/CommentsPanel/CommentsContext.js +5 -9
- package/dist/components/CommentsPanel/CommentsPanel.impl.d.ts.map +1 -1
- package/dist/components/CommentsPanel/CommentsPanel.impl.js +8 -12
- package/dist/components/DatePicker/index.d.ts.map +1 -1
- package/dist/components/DatePicker/index.js +1 -1
- package/dist/components/DateRangePicker/dateRangePickerCustom.d.ts +1 -5
- package/dist/components/DateRangePicker/dateRangePickerCustom.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerCustom.js +1 -4
- package/dist/components/DateRangePicker/dateRangePickerDropdown.d.ts +1 -44
- package/dist/components/DateRangePicker/dateRangePickerDropdown.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerDropdown.js +204 -166
- package/dist/components/DateRangePicker/dateRangePickerFooter.d.ts +1 -11
- package/dist/components/DateRangePicker/dateRangePickerFooter.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerFooter.js +1 -1
- package/dist/components/DateRangePicker/dateRangePickerInput.d.ts +1 -30
- package/dist/components/DateRangePicker/dateRangePickerInput.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerInput.js +225 -180
- package/dist/components/DateRangePicker/index.d.ts +2 -6
- package/dist/components/DateRangePicker/index.d.ts.map +1 -1
- package/dist/components/DateRangePicker/index.js +158 -164
- package/dist/components/DateRangePicker/showMonthYearSelect.d.ts +1 -12
- package/dist/components/DateRangePicker/showMonthYearSelect.d.ts.map +1 -1
- package/dist/components/DateRangePicker/showMonthYearSelect.js +37 -51
- package/dist/components/DateRangePicker/utils.d.ts +13 -39
- package/dist/components/DateRangePicker/utils.d.ts.map +1 -1
- package/dist/components/DateRangePicker/utils.js +25 -30
- package/dist/components/FileUpload/index.d.ts.map +1 -1
- package/dist/components/FileUpload/index.js +4 -2
- package/dist/components/FiltersStrip/AppliedFilters.d.ts.map +1 -1
- package/dist/components/FiltersStrip/AppliedFilters.js +6 -6
- package/dist/components/Header/index.js +1 -1
- package/dist/components/KeyboardShortCuts/Keycombo.d.ts +3 -1
- package/dist/components/KeyboardShortCuts/Keycombo.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/Keycombo.js +11 -1
- package/dist/components/KeyboardShortCuts/ShortcutLandingPage.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/ShortcutLandingPage.js +38 -12
- package/dist/components/KeyboardShortCuts/ShortcutModal.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/ShortcutModal.js +100 -43
- package/dist/components/KeyboardShortCuts/allSetBox.js +1 -1
- package/dist/components/KeyboardShortCuts/index.js +1 -1
- package/dist/components/KeyboardShortCuts/tutorial.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/tutorial.js +9 -6
- package/dist/components/Loader/index.js +1 -1
- package/dist/components/Menu/MenuHeaderInfo.d.ts.map +1 -1
- package/dist/components/Menu/MenuHeaderInfo.js +4 -7
- package/dist/components/Modal/Modal.types.d.ts +12 -1
- package/dist/components/Modal/Modal.types.d.ts.map +1 -1
- package/dist/components/Modal/index.js +2 -2
- package/dist/components/Notification/Notification.types.d.ts +4 -0
- package/dist/components/Notification/Notification.types.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationChipsList.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationChipsList.js +2 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationList.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationList.js +9 -4
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.js +169 -47
- package/dist/components/Notification/index.js +1 -1
- package/dist/components/Notification/mockData.d.ts.map +1 -1
- package/dist/components/Select/Select.types.d.ts +4 -6
- package/dist/components/Select/Select.types.d.ts.map +1 -1
- package/dist/components/Select/customGroupHeading.d.ts.map +1 -1
- package/dist/components/Select/customGroupHeading.js +9 -3
- package/dist/components/Select/dropdown.d.ts.map +1 -1
- package/dist/components/Select/dropdown.js +1 -1
- package/dist/components/Select/hooks/useMenuPosition.d.ts +1 -1
- package/dist/components/Select/hooks/useMenuPosition.d.ts.map +1 -1
- package/dist/components/Select/hooks/useMenuPosition.js +25 -39
- package/dist/components/Select/hooks/useScrollIntoView.d.ts +2 -1
- package/dist/components/Select/hooks/useScrollIntoView.d.ts.map +1 -1
- package/dist/components/Select/hooks/useScrollIntoView.js +4 -2
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/index.js +6 -13
- package/dist/components/Select/menuList.d.ts.map +1 -1
- package/dist/components/Select/menuList.js +19 -19
- package/dist/components/Slider/index.d.ts +1 -1
- package/dist/components/Slider/index.d.ts.map +1 -1
- package/dist/components/Slider/index.js +2 -8
- package/dist/components/Table/AdvanceSortModal.d.ts.map +1 -1
- package/dist/components/Table/AdvanceSortModal.js +3 -5
- package/dist/components/Table/AgGridHeader.d.ts.map +1 -1
- package/dist/components/Table/AgGridHeader.js +27 -10
- package/dist/components/Table/CommentsPortal.d.ts.map +1 -1
- package/dist/components/Table/CommentsPortal.js +6 -10
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModal.d.ts.map +1 -1
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModal.js +5 -1
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts.map +1 -1
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.js +6 -1
- package/dist/components/Table/NoComments.d.ts.map +1 -1
- package/dist/components/Table/NoComments.js +2 -3
- package/dist/components/Table/index.d.ts +1 -2
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js +156 -112
- package/dist/components/Table/tableFunctions.d.ts.map +1 -1
- package/dist/components/Table/tableFunctions.js +176 -104
- package/dist/components/Table/tableHeader.d.ts +2 -1
- package/dist/components/Table/tableHeader.d.ts.map +1 -1
- package/dist/components/Table/tableHeader.js +2 -0
- package/dist/components/Table/tableMoreOptions.d.ts +2 -1
- package/dist/components/Table/tableMoreOptions.d.ts.map +1 -1
- package/dist/components/Table/tableMoreOptions.js +2 -1
- package/dist/components/Table/tableSettings.d.ts +2 -1
- package/dist/components/Table/tableSettings.d.ts.map +1 -1
- package/dist/components/Table/tableSettings.js +2 -0
- package/dist/components/Table/withCommentIcon.d.ts.map +1 -1
- package/dist/components/Table/withCommentIcon.js +2 -3
- package/dist/components/TableChat/EmptyContainer.js +1 -1
- package/dist/components/TableChat/TableChatSidePanel.d.ts.map +1 -1
- package/dist/components/TableChat/TableChatSidePanel.js +18 -22
- package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.d.ts +1 -2
- package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.js +15 -18
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.d.ts +1 -3
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.js +26 -22
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelList.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelList.js +4 -52
- package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.d.ts +1 -3
- package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.js +2 -7
- package/dist/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.d.ts +1 -2
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.js +17 -17
- package/dist/components/TableChat/components/TableChatRightSection/{ChatEditedMessageType/ChatEditedMessageType.d.ts → ChatEditedMessageType /ChatEditedMessageType.d.ts } +0 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType /ChatEditedMessageType.d.ts.map +1 -0
- package/dist/components/TableChat/components/TableChatRightSection/{ChatEditedMessageType/ChatEditedMessageType.js → ChatEditedMessageType /ChatEditedMessageType.js } +2 -4
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.d.ts +1 -2
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.js +7 -8
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.js +4 -8
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.js +18 -9
- package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.js +7 -9
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessageAvatar/ChatMessageAvatar.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.d.ts +1 -2
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.js +5 -9
- package/dist/components/TableChat/components/TableChatRightSection/DateSeparator/DateSeparator.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChatPanel.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChatPanel.js +6 -18
- package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.d.ts +1 -3
- package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.js +4 -13
- package/dist/components/TableChat/components/TextEditor/Mention.js +1 -1
- package/dist/components/TableChat/components/TextEditor/MentionList.js +1 -1
- package/dist/components/TableChat/utils/formatChatTimestamp.js +14 -0
- package/dist/components/TableOld/AgGridHeader.d.ts.map +1 -1
- package/dist/components/TableOld/AgGridHeader.js +10 -4
- package/dist/components/TableOld/index.d.ts.map +1 -1
- package/dist/components/TableOld/index.js +3 -1
- package/dist/components/TableOld/tableFunctions.d.ts.map +1 -1
- package/dist/components/TableOld/tableFunctions.js +176 -104
- package/dist/components/TableOld/tableHeader.d.ts +2 -1
- package/dist/components/TableOld/tableHeader.d.ts.map +1 -1
- package/dist/components/TableOld/tableHeader.js +2 -0
- package/dist/components/TextArea/index.js +1 -1
- package/dist/mcp-component-registry.json +1 -1
- package/dist/node_modules/@impactsmartsuite/impact-icons/dist/index.js +5195 -0
- package/dist/node_modules/@mui/icons-material/North.js +17 -0
- package/dist/node_modules/call-bind/index.js +1 -1
- package/dist/node_modules/global-cache/index.js +4 -5
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/is-callable/index.js +1 -1
- package/dist/node_modules/is-symbol/index.js +1 -1
- package/dist/node_modules/lodash/lodash.js +1 -1
- package/dist/node_modules/object-inspect/index.js +1 -2
- package/dist/node_modules/react-with-styles-interface-css/dist/index.js +1 -1
- package/dist/utils/helper.d.ts +4 -2
- package/dist/utils/helper.d.ts.map +1 -1
- package/dist/utils/helper.js +13 -8
- package/package.json +5 -4
- package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType/ChatEditedMessageType.d.ts.map +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(':root{--ia-focus-color:#4259ee;--ia-focus-bg:#fff;--ia-focus-ring-width:2px;--ia-focus-ring-offset:2px}*,:after,:before{box-sizing:border-box}body,textarea{font-style:normal;font-weight:500}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font-size:100%;font:inherit;margin:0;padding:0;vertical-align:initial}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}body{font-family:Manrope,sans-serif}.impact-notification-separator{background-color:#d9dde7;display:inline-block;height:16px;width:1.5px}.impact-notification-horizontal-separator{background-color:#d9dde7;display:inline-block;height:1px;width:100%}ul.storybook-order-list{list-style-type:disc;padding-left:12px}ul.storybook-order-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-list li strong{font-weight:800}ul.storybook-order-child-list{list-style-type:circle;padding-left:20px}ul.storybook-order-child-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-child-list li strong{font-weight:800}.chat-message .message-text{background-color:#eceefd;border-radius:10px;box-shadow:0 1px 2px #0000000f;color:#1f2b4d;font-size:14px;line-height:1.4;padding:12px
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(':root{--ia-focus-color:#4259ee;--ia-focus-bg:#fff;--ia-focus-ring-width:2px;--ia-focus-ring-offset:2px}*,:after,:before{box-sizing:border-box}body,textarea{font-style:normal;font-weight:500}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font-size:100%;font:inherit;margin:0;padding:0;vertical-align:initial}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}body{font-family:Manrope,sans-serif}.impact-notification-separator{background-color:#d9dde7;display:inline-block;height:16px;width:1.5px}.impact-notification-horizontal-separator{background-color:#d9dde7;display:inline-block;height:1px;width:100%}ul.storybook-order-list{list-style-type:disc;padding-left:12px}ul.storybook-order-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-list li strong{font-weight:800}ul.storybook-order-child-list{list-style-type:circle;padding-left:20px}ul.storybook-order-child-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-child-list li strong{font-weight:800}.chat-message .message-text{background-color:#eceefd;border-radius:10px;box-shadow:0 1px 2px #0000000f;color:#1f2b4d;flex-shrink:0;font-size:14px;line-height:1.4;max-width:100%;overflow-wrap:break-word;padding:8px 12px;transition:box-shadow .25s ease,transform .2s ease,background-color .25s ease;white-space:pre-wrap;width:fit-content;word-break:normal}.chat-message .message-text:hover{box-shadow:0 2px 10px #00000014;transform:translateY(-1px)}.chat-message .message-text.highlighted-message-content{animation:highlightScalePulse 1.5s infinite;border:2px solid #4259ee;box-shadow:0 0 8px #4259ee4d}.chat-message .message-text .priority-container{align-items:center;display:flex;justify-content:flex-start;margin-bottom:12px}.chat-message .message-text .priority-container .priority-label{align-items:center;display:flex;font-size:14px;gap:4px}.chat-message .message-text.low{border-left:3px solid #31935f}.chat-message .message-text.medium{border-left:3px solid #e1bc29}.chat-message .message-text.high{border-left:3px solid #e15554}.chat-message .message-text.normal{border-left:3px solid #4259ee}.chat-message .message-text p{color:#60697d;font-size:14px;font-style:normal;font-weight:500;letter-spacing:.14px;line-height:160%;margin:0 0 4px;text-align:left}.chat-message .message-text p:last-child{margin-bottom:0}.chat-message .message-text .message-content{display:block;margin:0;max-width:100%;width:auto}.chat-message .message-text .message-content p{color:#60697d;font-size:14px;font-style:normal;font-weight:500;letter-spacing:.14px;line-height:160%;margin:0;text-align:left}.chat-message .message-text .message-content p:last-child{margin-bottom:0}.chat-message .message-text .message-content .mention{background-color:#4259ee1a;border:1px solid #4259ee4d;border-radius:4px;color:#4259ee;display:inline-block;font-weight:600;margin:0 2px;padding:0 6px;text-decoration:none;transition:all .2s ease}.chat-message .message-text .message-content .mention:hover{background-color:#4259ee26;border-color:#4259ee80}.chat-message .message-text .message-content strong{color:#60697d;font-weight:700}.chat-message .message-text .message-content em{color:#60697d;font-style:italic}.chat-message .message-text .message-content u{color:#60697d;text-decoration:underline}.chat-message .message-text .message-content mark{background-color:#fef3c7;border-radius:4px;color:#60697d;padding:2px 4px}.chat-message .message-text .message-content a{color:#4259ee;text-decoration:underline}.chat-message .message-text .message-content a:hover{color:#1531e8}.chat-message .message-text .message-content ol,.chat-message .message-text .message-content ul{margin:8px 0;padding-left:20px}.chat-message .message-text .message-content ol li,.chat-message .message-text .message-content ul li{color:#60697d;margin:4px 0}.chat-message .message-text .message-content h1,.chat-message .message-text .message-content h2,.chat-message .message-text .message-content h3,.chat-message .message-text .message-content h4,.chat-message .message-text .message-content h5,.chat-message .message-text .message-content h6{color:#60697d;font-weight:600;margin:12px 0 8px}.chat-message .message-text .message-content h1:first-child,.chat-message .message-text .message-content h2:first-child,.chat-message .message-text .message-content h3:first-child,.chat-message .message-text .message-content h4:first-child,.chat-message .message-text .message-content h5:first-child,.chat-message .message-text .message-content h6:first-child{margin-top:0}.chat-message .message-text .message-content h1{font-size:20px}.chat-message .message-text .message-content h2{font-size:18px}.chat-message .message-text .message-content h3{font-size:16px}.chat-message .message-text .message-content h4{font-size:15px}.chat-message .message-text .message-content h5{font-size:14px}.chat-message .message-text .message-content h6{font-size:13px}.chat-message .message-text .message-action-info-container{align-items:center;display:flex;gap:8px}.chat-message .message-text .message-action-info-container .pin-button{display:flex;transition:opacity .2s ease,transform .2s ease}.chat-message .message-text .message-action-info-container .pin-button-hover{display:flex;max-width:0;opacity:0;overflow:hidden;pointer-events:none;transform:scale(.85);transition:opacity .25s ease,max-width .25s ease,transform .25s ease}.chat-message .message-text:hover .message-action-info-container .pin-button-hover{max-width:32px;opacity:1;pointer-events:auto;transform:scale(1)}.chat-message .flex-end{justify-content:flex-end;min-height:24px}.chat-message.assistant-message .message-text{background:linear-gradient(92.25deg,#f8f9fb -.92%,#f2f4fb 98.11%);color:#60697d;transition:box-shadow .25s ease,transform .2s ease,background-color .25s ease}.chat-message.assistant-message .message-text:hover{box-shadow:0 2px 10px #0000000f;transform:translateY(-1px)}.message-header{align-items:center;display:flex;gap:6px;justify-content:flex-end;margin-top:4px;transition:gap .25s ease}.message-header .message-action-container{align-items:center;display:flex;gap:4px;margin-right:auto;max-width:0;opacity:0;overflow:hidden;pointer-events:none;transform:translate(6px);transition:opacity .25s ease,max-width .25s ease,transform .25s ease}.message-header .message-action-container img,.message-header .message-action-container svg{color:#b4bac7;cursor:pointer;transition:color .2s ease,transform .2s ease;width:14px}.message-header .message-action-container img:hover,.message-header .message-action-container svg:hover{color:#4259ee;transform:scale(1.08)}.message-header .message-action-container.visibility-enabled,.message-text:hover .message-action-container{max-width:96px;opacity:1;pointer-events:auto;transform:translate(0)}.btn_border_default{background-color:initial!important;border:none!important}.message-timestamp{color:#7a8294;font-size:11px;font-variant-numeric:tabular-nums;font-weight:500;letter-spacing:.02em;opacity:.85;white-space:nowrap}.message-timestamp .edited-label{color:#7a8294;font-style:italic;font-weight:400;opacity:.75}@keyframes highlightScalePulse{0%{box-shadow:0 0 #4259ee00;transform:scale(1)}30%{box-shadow:0 0 12px #4259ee99;transform:scale(1.03)}60%{box-shadow:0 0 10px #4259ee66;transform:scale(.98)}to{box-shadow:0 0 8px #4259ee4d;transform:scale(1)}}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
|
-
import { getAssetUrl } from "../../../../../utils/assetBase.js";
|
|
4
|
-
|
|
5
|
-
import { Button } from "../../../../Button/index.js";
|
|
6
3
|
import { useState, useEffect } from "react";
|
|
7
4
|
import DOMPurify from "dompurify";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
const
|
|
5
|
+
import { getAssetUrl } from "../../../../../utils/assetBase.js";
|
|
6
|
+
import { Button } from "../../../../Button/index.js";
|
|
7
|
+
|
|
8
|
+
const ThreeDotIcon = getAssetUrl("icons/treedotIcon.svg");
|
|
9
|
+
const TreadChatIcon = getAssetUrl("icons/treadChatIcon.svg");
|
|
13
10
|
const PinnedIcon = getAssetUrl("icons/pinedIcon.svg");
|
|
14
|
-
const
|
|
15
|
-
const
|
|
11
|
+
const UnpinIcon = getAssetUrl("icons/unpinedIcon.svg");
|
|
12
|
+
const CheckBlueIcon = getAssetUrl("icons/checkBlueIcon.svg");
|
|
13
|
+
const WarningRedIcon = getAssetUrl("icons/warningRedIcon.svg");
|
|
14
|
+
const ThumbsUpYellowIcon = getAssetUrl("icons/thumbsUpYellowIcon.svg");
|
|
15
|
+
const NotAllowedGreenIcon = getAssetUrl("icons/notAllowedGreenIcon.svg");
|
|
16
16
|
const ChatDefaultMessageType = ({
|
|
17
17
|
content,
|
|
18
18
|
timestamp,
|
|
@@ -27,8 +27,7 @@ const ChatDefaultMessageType = ({
|
|
|
27
27
|
isThreadIconVisible,
|
|
28
28
|
isPinChatIconvisible,
|
|
29
29
|
isHighlighted = false,
|
|
30
|
-
highlightColor = null
|
|
31
|
-
showThreeDotIcon
|
|
30
|
+
highlightColor = null
|
|
32
31
|
}) => {
|
|
33
32
|
const renderContent = (content2) => {
|
|
34
33
|
if (typeof content2 === "string") {
|
|
@@ -109,6 +108,7 @@ const ChatDefaultMessageType = ({
|
|
|
109
108
|
" Low Priority"
|
|
110
109
|
] })
|
|
111
110
|
};
|
|
111
|
+
const showPriority = priority && priority !== "default" && priorityContent[priority];
|
|
112
112
|
const pinnedIconSrc = showPinned ? PinnedIcon : UnpinIcon;
|
|
113
113
|
return /* @__PURE__ */ jsxs(
|
|
114
114
|
"div",
|
|
@@ -116,15 +116,15 @@ const ChatDefaultMessageType = ({
|
|
|
116
116
|
className: `message-text ${priority} ${isHighlighted ? "highlighted-message-content" : ""}`,
|
|
117
117
|
style: customHighlightStyle,
|
|
118
118
|
children: [
|
|
119
|
-
/* @__PURE__ */ jsx("section", { className: "priority-container", children: priorityContent[priority] }),
|
|
119
|
+
showPriority ? /* @__PURE__ */ jsx("section", { className: "priority-container", children: priorityContent[priority] }) : null,
|
|
120
120
|
renderContent(content),
|
|
121
121
|
/* @__PURE__ */ jsxs("div", { className: `message-header ${!isUser ? "flex-end" : ""}`, children: [
|
|
122
122
|
isUser ? /* @__PURE__ */ jsxs("div", { className: `message-action-container ${visibility ? "visibility-enabled" : ""}`, children: [
|
|
123
|
-
|
|
123
|
+
/* @__PURE__ */ jsx(
|
|
124
124
|
Button,
|
|
125
125
|
{
|
|
126
126
|
className: "btn_border_default participants-button",
|
|
127
|
-
icon: /* @__PURE__ */ jsx(
|
|
127
|
+
icon: /* @__PURE__ */ jsx("img", { alt: "threedot", src: ThreeDotIcon }),
|
|
128
128
|
iconPlacement: "left",
|
|
129
129
|
size: "small",
|
|
130
130
|
type: "default",
|
|
@@ -136,7 +136,7 @@ const ChatDefaultMessageType = ({
|
|
|
136
136
|
Button,
|
|
137
137
|
{
|
|
138
138
|
className: "btn_border_default participants-button",
|
|
139
|
-
icon: /* @__PURE__ */ jsx(
|
|
139
|
+
icon: /* @__PURE__ */ jsx("img", { alt: "thread", src: TreadChatIcon }),
|
|
140
140
|
iconPlacement: "left",
|
|
141
141
|
size: "large",
|
|
142
142
|
type: "default",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatEditedMessageType.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/ChatEditedMessageType /ChatEditedMessageType.tsx"],"names":[],"mappings":"AASA,QAAA,MAAM,qBAAqB,GAAI;;;;;;;;;CAS9B,4CAuCA,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(':root{--ia-focus-color:#4259ee;--ia-focus-bg:#fff;--ia-focus-ring-width:2px;--ia-focus-ring-offset:2px}*,:after,:before{box-sizing:border-box}body,textarea{font-style:normal;font-weight:500}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font-size:100%;font:inherit;margin:0;padding:0;vertical-align:initial}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}body{font-family:Manrope,sans-serif}.impact-notification-separator{background-color:#d9dde7;display:inline-block;height:16px;width:1.5px}.impact-notification-horizontal-separator{background-color:#d9dde7;display:inline-block;height:1px;width:100%}ul.storybook-order-list{list-style-type:disc;padding-left:12px}ul.storybook-order-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-list li strong{font-weight:800}ul.storybook-order-child-list{list-style-type:circle;padding-left:20px}ul.storybook-order-child-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-child-list li strong{font-weight:800}.message-action-info{color:#7a8294;font-size:12px;font-weight:400}.message-action-info .edited-label{color:#7a8294;font-style:italic;opacity:.8}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}}();
|
|
2
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
2
|
import { useState } from "react";
|
|
4
3
|
import { getAssetUrl } from "../../../../../utils/assetBase.js";
|
|
5
|
-
|
|
6
|
-
const PinnedIcon = getAssetUrl("icons/pinedIcon.svg");
|
|
7
|
-
const TreadChatIcon = getAssetUrl("icons/treadChatIcon.svg");
|
|
8
4
|
const ThreeDotIcon = getAssetUrl("icons/treedotIcon.svg");
|
|
5
|
+
const TreadChatIcon = getAssetUrl("icons/treadChatIcon.svg");
|
|
6
|
+
const PinnedIcon = getAssetUrl("icons/pinedIcon.svg");
|
|
9
7
|
const UnpinIcon = getAssetUrl("icons/unpinedIcon.svg");
|
|
10
8
|
const ChatEditedMessageType = ({
|
|
11
9
|
content,
|
package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
export declare const ChatHeader: ({
|
|
2
|
+
export declare const ChatHeader: ({ title, chatId, participants, className, participantsList, onSaveNotification, createdBy, createdAt, chatHeaderConfig, ...restProps }: {
|
|
3
3
|
[x: string]: any;
|
|
4
|
-
showChatId: any;
|
|
5
4
|
title: any;
|
|
6
5
|
chatId: any;
|
|
7
6
|
participants?: never[] | undefined;
|
package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatHeader.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatHeader.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.tsx"],"names":[],"mappings":"AAKA,OAAO,0BAA0B,CAAC;AAoBlC,eAAO,MAAM,UAAU,GAAI;;;;;;;;;;;CAW1B,4CAsYA,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode(':root{--ia-focus-color:#4259ee;--ia-focus-bg:#fff;--ia-focus-ring-width:2px;--ia-focus-ring-offset:2px}*,:after,:before{box-sizing:border-box}body,textarea{font-style:normal;font-weight:500}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font-size:100%;font:inherit;margin:0;padding:0;vertical-align:initial}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}body{font-family:Manrope,sans-serif}.impact-notification-separator{background-color:#d9dde7;display:inline-block;height:16px;width:1.5px}.impact-notification-horizontal-separator{background-color:#d9dde7;display:inline-block;height:1px;width:100%}ul.storybook-order-list{list-style-type:disc;padding-left:12px}ul.storybook-order-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-list li strong{font-weight:800}ul.storybook-order-child-list{list-style-type:circle;padding-left:20px}ul.storybook-order-child-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-child-list li strong{font-weight:800}.chat-header{align-items:center;background:#fff;border-bottom:1px solid #b3bdf8;border-radius:10px 10px 0 0;display:flex;height:64px;justify-content:space-between;padding:6px 20px 5px}.chat-header .chat-header-
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode(':root{--ia-focus-color:#4259ee;--ia-focus-bg:#fff;--ia-focus-ring-width:2px;--ia-focus-ring-offset:2px}*,:after,:before{box-sizing:border-box}body,textarea{font-style:normal;font-weight:500}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font-size:100%;font:inherit;margin:0;padding:0;vertical-align:initial}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}body{font-family:Manrope,sans-serif}.impact-notification-separator{background-color:#d9dde7;display:inline-block;height:16px;width:1.5px}.impact-notification-horizontal-separator{background-color:#d9dde7;display:inline-block;height:1px;width:100%}ul.storybook-order-list{list-style-type:disc;padding-left:12px}ul.storybook-order-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-list li strong{font-weight:800}ul.storybook-order-child-list{list-style-type:circle;padding-left:20px}ul.storybook-order-child-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-child-list li strong{font-weight:800}.chat-header{align-items:center;background:#fff;border-bottom:1px solid #b3bdf8;border-radius:10px 10px 0 0;box-sizing:border-box;display:flex;height:64px;justify-content:space-between;min-width:0;overflow:hidden;padding:6px 20px 5px}.chat-header .chat-header-info-slot{flex:1 1 auto;max-width:calc(100% - 220px);min-width:0;overflow:hidden}.chat-header .chat-header-info-slot.is-collapsed{flex:0 0 0;max-width:0;overflow:hidden;visibility:hidden;width:0}.chat-header .chat-header-content{max-width:100%;width:100%}.chat-header .chat-header-content .chat-title{color:#1f2b4d;display:block;font-size:16px;font-style:normal;font-weight:800;line-height:24px;min-width:0}.chat-header .chat-header-content .chat-title .resolved-badge{align-items:center;color:#4259ee;display:flex;font-size:14px;font-style:normal;font-weight:500;line-height:20px}.chat-header .chat-header-content .chat-title .resolved-badge img{height:16px;margin-right:2px;width:16px}.chat-header .chat-header-content .chat-created-by,.chat-header .chat-header-content .chat-id{color:#c3c8d4;font-size:14px;font-style:normal;font-weight:500;line-height:21px}.chat-header .chat-header-content .chat-created-by{margin-left:5px}.chat-header .chat-header-content .chat-created-by:before{color:#c3c8d4;content:"|";margin-right:6px}.chat-header .chat-header-content .chat-info-outer{display:block;min-width:0;width:100%}.chat-header .chat-header-content .chat-info-outer>span{display:block!important;min-width:0;width:100%}.chat-header .chat-header-content .chat-info-container{color:#c3c8d4;display:block;font-size:14px;font-style:normal;font-weight:500;line-height:21px;max-width:100%;min-width:0;white-space:nowrap;width:100%}.chat-header .chat-header-content .chat-created-by-container{display:inline-block;max-width:100%}.chat-header .chat-header-content .chat-created-at{color:#c3c8d4;font-size:14px;font-style:normal;font-weight:500;line-height:21px}.chat-header .chat-header-content .chat-text-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-header .chat-participants{align-items:center;display:flex;gap:12px}.chat-header .chat-participants .participant-avatars{align-items:center;display:flex}.chat-header .chat-participants .participant-avatars .participant-avatar{border:2px solid #fff;box-shadow:0 1px 3px #0000001a}.chat-header .chat-participants .participant-avatars .more-participants{align-items:center;background:#eceefd;border:2px solid #fff;border-radius:50%;color:#4259ee;display:flex;font-size:11px;font-weight:600;height:24px;justify-content:center;margin-left:-8px;min-width:24px;padding:4px 6px}.chat-header .chat-participants .participants-button{background:none!important;border:none!important;border-radius:4px;color:#7a8294;cursor:pointer;padding:4px}.chat-pinned{cursor:pointer;padding:.25rem;transition:all .2s ease-in-out}.chat-header-right{align-items:center;display:flex;flex:0 0 auto;gap:.5rem;justify-content:flex-end;min-width:0}.chat-header-right.search-enabled{flex:1;min-width:0}.ia-styles.ia-menu.three-dot-menu-container .MuiPaper-root{margin-left:32px;margin-top:4px}.chat-search-container{align-items:center;display:flex;flex:0 0 auto;gap:.5rem;position:relative}.chat-search-container .search-icon{cursor:pointer;flex-shrink:0}.chat-search-container .chat-search-input-container{position:relative;width:100%}.chat-search-container .chat-search-input-container .chat-search-input{background:none;border:1px solid #f0f0f0;border-radius:8px;box-sizing:border-box;color:#60697d;font-family:inherit;font-size:14px;height:32px;line-height:1.4;outline:none;padding:.5rem 2rem .5rem 1.75rem;transition:all .2s ease-in-out;width:100%}.chat-search-container .chat-search-input-container .chat-search-input::placeholder{color:#60697d;font-size:12px;padding-left:.5rem}.chat-search-container .chat-search-input-container .chat-search-input:focus{border:1px solid #4259ee}.chat-search-container .chat-search-input-container .chat-input-search-icon{color:#b2c2e0;cursor:pointer;height:1.5rem;left:.25rem;position:absolute;top:.25rem;width:1.5rem}.chat-search-container .chat-search-input-container .chat-search-input-close-icon{color:#60697d;cursor:pointer;height:12px;position:absolute;right:.625rem;top:.625rem;width:12px}.search-enabled .chat-search-container{flex:1 1 auto;min-width:0}.chat-participants-container{align-items:center;display:flex;gap:.5rem;position:relative}.chat-header-right-button{align-items:center;background:#f5f6fa;border-radius:10px;cursor:pointer;display:flex;font-size:3em;height:32px;justify-content:center;padding:.5rem;width:32px}.chat-header-right-button:active{background-color:#e2f4ff;transform:scale(.98)}.ia-styles.ia-menu.participants-menu-container .MuiPaper-root{display:flex;flex-direction:column;margin-left:28px;overflow:hidden!important;width:260px}.ia-styles.ia-menu.participants-menu-container .menu-header{background:#fff;border-radius:16px 16px 0 0;flex-shrink:0;padding:4px 0 0;position:sticky;top:0;z-index:10}.ia-styles.ia-menu.participants-menu-container .MuiList-root{flex:1;overflow-x:hidden;padding-top:0}.ia-styles.ia-menu.participants-menu-container .MuiList-root::-webkit-scrollbar{width:6px}.ia-styles.ia-menu.participants-menu-container .MuiList-root::-webkit-scrollbar-track{background:#0000}.ia-styles.ia-menu.participants-menu-container .MuiList-root::-webkit-scrollbar-thumb{background:#c3c8d4;border-radius:3px}.ia-styles.ia-menu.participants-menu-container .MuiList-root::-webkit-scrollbar-thumb:hover{background:#b4bac7}.ia-styles.ia-menu.participants-menu-container .MuiMenu-paper{overflow:hidden!important}.ia-styles.ia-menu.participants-menu-container .MuiMenu-list{max-height:320px;overflow-x:hidden!important;overflow-y:auto!important}.ia-styles.ia-menu.participants-menu-container .MuiButtonBase-root{padding:6px 16px}.ia-styles.ia-menu.participants-menu-container .menu-header-radio-group-container .ia-radioGroup .MuiFormControlLabel-root .MuiButtonBase-root{padding-left:12px!important}.ia-styles.ia-menu.participants-menu-container .menu-header-radio-group-container .MuiButtonBase-root{padding:8px 8px 8px 14px}.ia-styles.ia-menu.participants-menu-container .ia-menu-action-button-container{background:#fff;border-top:none;bottom:0;box-sizing:border-box;display:flex;flex-shrink:0;gap:12px;justify-content:flex-end;margin-top:auto;padding:8px 8px 4px;position:sticky;width:100%;z-index:10}.participants-img{height:22px}.btn_border_participant{background:#f5f6fa!important;border:none!important;height:32px!important}.pinned_img{background:none;background-color:initial!important;border:none!important}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useEffect, useCallback } from "react";
|
|
4
4
|
import { getAssetUrl } from "../../../../../utils/assetBase.js";
|
|
5
|
-
import {
|
|
5
|
+
import { MenuHeaderInfo } from "../../../../Menu/MenuHeaderInfo.js";
|
|
6
6
|
|
|
7
|
-
import ChatHeaderInfo from "./ChatHeaderInfo.js";
|
|
8
7
|
import ChatHeaderAction from "./ChatHeaderAction.js";
|
|
8
|
+
import ChatHeaderInfo from "./ChatHeaderInfo.js";
|
|
9
9
|
import { chartConfig } from "../../chatConfig.js";
|
|
10
10
|
const ActiveNotificationIcon = getAssetUrl("icons/active-notificationIcon.svg");
|
|
11
11
|
function debounce(func, wait) {
|
|
@@ -20,7 +20,6 @@ function debounce(func, wait) {
|
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
const ChatHeader = ({
|
|
23
|
-
showChatId,
|
|
24
23
|
title,
|
|
25
24
|
chatId,
|
|
26
25
|
participants = [],
|
|
@@ -240,7 +239,7 @@ const ChatHeader = ({
|
|
|
240
239
|
const renderCustomHeader = (headerProps) => {
|
|
241
240
|
var _a2;
|
|
242
241
|
return /* @__PURE__ */ jsx(
|
|
243
|
-
|
|
242
|
+
MenuHeaderInfo,
|
|
244
243
|
{
|
|
245
244
|
...headerProps,
|
|
246
245
|
customHeaderProps: {
|
|
@@ -264,16 +263,16 @@ const ChatHeader = ({
|
|
|
264
263
|
);
|
|
265
264
|
};
|
|
266
265
|
return /* @__PURE__ */ jsxs("div", { className: `chat-header ${className}`, children: [
|
|
267
|
-
|
|
266
|
+
/* @__PURE__ */ jsx("div", { className: `chat-header-info-slot ${enableSearch ? "is-collapsed" : ""}`, children: /* @__PURE__ */ jsx(
|
|
268
267
|
ChatHeaderInfo,
|
|
269
268
|
{
|
|
270
269
|
chatId,
|
|
271
270
|
createdAt,
|
|
272
271
|
createdBy,
|
|
273
|
-
showChatId,
|
|
272
|
+
showChatId: chatHeaderConfig.showChatId ?? false,
|
|
274
273
|
title
|
|
275
274
|
}
|
|
276
|
-
)
|
|
275
|
+
) }),
|
|
277
276
|
/* @__PURE__ */ jsx(
|
|
278
277
|
ChatHeaderAction,
|
|
279
278
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatHeaderAction.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatHeaderAction.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.tsx"],"names":[],"mappings":"AAmBA,QAAA,MAAM,gBAAgB,GAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCzB,4CAmUA,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.js
CHANGED
|
@@ -11,11 +11,10 @@ import { Menu } from "../../../../Menu/index.js";
|
|
|
11
11
|
import { chartConfig } from "../../chatConfig.js";
|
|
12
12
|
import AvatarGroup from "../AvatarGroup/AvatarGroup.js";
|
|
13
13
|
import { ChatNotificationSettings } from "../ChatNotificationSettings/ChatNotificationSettings.js";
|
|
14
|
-
const ThreedotIcon = getAssetUrl("icons/treedotIcon.svg");
|
|
15
|
-
const UserPlusIcon = getAssetUrl("icons/userPlusIcon1.svg");
|
|
16
|
-
getAssetUrl("icons/close.svg");
|
|
17
|
-
const SearchIcon = getAssetUrl("icons/searchIcon.svg");
|
|
18
14
|
const PinnedIcon = getAssetUrl("icons/pinnedIcon.svg");
|
|
15
|
+
const SearchIcon = getAssetUrl("icons/searchIcon.svg");
|
|
16
|
+
const UserPlusIcon = getAssetUrl("icons/userPlusIcon1.svg");
|
|
17
|
+
const ThreedotIcon = getAssetUrl("icons/treedotIcon.svg");
|
|
19
18
|
const ChatHeaderAction = ({
|
|
20
19
|
enableSearch,
|
|
21
20
|
messageSearchValue,
|
|
@@ -109,7 +108,7 @@ const ChatHeaderAction = ({
|
|
|
109
108
|
}
|
|
110
109
|
}, [chatId, externalSavingMembers, menuOptions == null ? void 0 : menuOptions.length]);
|
|
111
110
|
const handleParticipantAddOrRemove = async () => {
|
|
112
|
-
var _a
|
|
111
|
+
var _a;
|
|
113
112
|
try {
|
|
114
113
|
setIsParticipantAdding(true);
|
|
115
114
|
if (externalHandlers == null ? void 0 : externalHandlers.onParticipantAdd) {
|
|
@@ -124,9 +123,6 @@ const ChatHeaderAction = ({
|
|
|
124
123
|
console.error("Error adding participants:", error);
|
|
125
124
|
} finally {
|
|
126
125
|
setIsParticipantAdding(false);
|
|
127
|
-
setOpenMenu(false);
|
|
128
|
-
setAnchorEl(null);
|
|
129
|
-
(_b = externalHandlers == null ? void 0 : externalHandlers.onClose) == null ? void 0 : _b.call(externalHandlers);
|
|
130
126
|
}
|
|
131
127
|
};
|
|
132
128
|
return /* @__PURE__ */ jsxs("div", { className: `chat-header-right ${className} ${enableSearch ? "search-enabled" : ""}`, children: [
|
package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ declare const ChatHeaderInfo: ({ title, createdBy, createdAt, chatId, showChatId
|
|
|
3
3
|
createdBy: any;
|
|
4
4
|
createdAt: any;
|
|
5
5
|
chatId: any;
|
|
6
|
-
showChatId
|
|
6
|
+
showChatId?: boolean | undefined;
|
|
7
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export default ChatHeaderInfo;
|
|
9
9
|
//# sourceMappingURL=ChatHeaderInfo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatHeaderInfo.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatHeaderInfo.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.tsx"],"names":[],"mappings":"AAIA,QAAA,MAAM,cAAc,GAAI;;;;;;CAA2D,4CAoClF,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.js
CHANGED
|
@@ -1,23 +1,32 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { getAssetUrl } from "../../../../../utils/assetBase.js";
|
|
3
2
|
import { useTextOverflow } from "../../../../../utils/useTextOverflow.js";
|
|
4
3
|
import { Tooltip } from "../../../../Tooltip/index.js";
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
const { textRef: fullTextRef, isOverflowing: isFullTextOverflowing } = useTextOverflow(
|
|
8
|
-
|
|
4
|
+
const ChatHeaderInfo = ({ title, createdBy, createdAt, chatId, showChatId = false }) => {
|
|
5
|
+
const fullText = `${showChatId && chatId ? `ID : ${chatId} ` : ""}${createdBy ? `Created by : ${createdBy}` : ""}${createdAt ? ` at : ${createdAt}` : ""}`;
|
|
6
|
+
const { textRef: fullTextRef, isOverflowing: isFullTextOverflowing } = useTextOverflow([
|
|
7
|
+
fullText,
|
|
8
|
+
title
|
|
9
|
+
]);
|
|
9
10
|
return /* @__PURE__ */ jsxs("div", { className: "chat-header-content", children: [
|
|
10
|
-
/* @__PURE__ */ jsx("h1", { className: "chat-title", children: title }),
|
|
11
|
-
/* @__PURE__ */ jsx(
|
|
11
|
+
/* @__PURE__ */ jsx("h1", { className: "chat-title chat-text-ellipsis", title, children: title }),
|
|
12
|
+
fullText ? /* @__PURE__ */ jsx("div", { className: "chat-info-outer", children: /* @__PURE__ */ jsx(
|
|
12
13
|
Tooltip,
|
|
13
14
|
{
|
|
14
15
|
isHoverEnabled: isFullTextOverflowing,
|
|
15
16
|
orientation: "bottom",
|
|
16
17
|
title: fullText,
|
|
17
18
|
variant: "tertiary",
|
|
18
|
-
children: /* @__PURE__ */ jsx(
|
|
19
|
+
children: /* @__PURE__ */ jsx(
|
|
20
|
+
"div",
|
|
21
|
+
{
|
|
22
|
+
ref: fullTextRef,
|
|
23
|
+
className: `chat-info-container ${isFullTextOverflowing ? "chat-text-ellipsis" : ""}`,
|
|
24
|
+
title: isFullTextOverflowing ? fullText : void 0,
|
|
25
|
+
children: fullText
|
|
26
|
+
}
|
|
27
|
+
)
|
|
19
28
|
}
|
|
20
|
-
)
|
|
29
|
+
) }) : null
|
|
21
30
|
] });
|
|
22
31
|
};
|
|
23
32
|
export {
|
package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatInput.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.tsx"],"names":[],"mappings":"AAWA,OAAO,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatInput.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.tsx"],"names":[],"mappings":"AAWA,OAAO,yBAAyB,CAAC;AAcjC,eAAO,MAAM,SAAS,GAAI;;;;;;;;;;;;;;;;;;;CAmBzB,4CA0tBA,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode(':root{--ia-focus-color:#4259ee;--ia-focus-bg:#fff;--ia-focus-ring-width:2px;--ia-focus-ring-offset:2px}*,:after,:before{box-sizing:border-box}body,textarea{font-style:normal;font-weight:500}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font-size:100%;font:inherit;margin:0;padding:0;vertical-align:initial}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}body{font-family:Manrope,sans-serif}.impact-notification-separator{background-color:#d9dde7;display:inline-block;height:16px;width:1.5px}.impact-notification-horizontal-separator{background-color:#d9dde7;display:inline-block;height:1px;width:100%}ul.storybook-order-list{list-style-type:disc;padding-left:12px}ul.storybook-order-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-list li strong{font-weight:800}ul.storybook-order-child-list{list-style-type:circle;padding-left:20px}ul.storybook-order-child-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-child-list li strong{font-weight:800}.chat-input{background:#fff;margin:0
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode(':root{--ia-focus-color:#4259ee;--ia-focus-bg:#fff;--ia-focus-ring-width:2px;--ia-focus-ring-offset:2px}*,:after,:before{box-sizing:border-box}body,textarea{font-style:normal;font-weight:500}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font-size:100%;font:inherit;margin:0;padding:0;vertical-align:initial}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}body{font-family:Manrope,sans-serif}.impact-notification-separator{background-color:#d9dde7;display:inline-block;height:16px;width:1.5px}.impact-notification-horizontal-separator{background-color:#d9dde7;display:inline-block;height:1px;width:100%}ul.storybook-order-list{list-style-type:disc;padding-left:12px}ul.storybook-order-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-list li strong{font-weight:800}ul.storybook-order-child-list{list-style-type:circle;padding-left:20px}ul.storybook-order-child-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-child-list li strong{font-weight:800}.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(t)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
|
|
2
2
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
3
3
|
import React__default, { useState, useRef, useEffect } from "react";
|
|
4
4
|
import { getAssetUrl } from "../../../../../utils/assetBase.js";
|
|
@@ -10,19 +10,17 @@ import TableChatEmojiPicker from "../EmojiPicker/EmojiPicker.js";
|
|
|
10
10
|
import FileUploader from "../FileUploader/FileUploader.js";
|
|
11
11
|
import ImageUploader from "../ImageUploader/ImageUploader.js";
|
|
12
12
|
|
|
13
|
-
getAssetUrl("icons/ChatCheckIcon.svg");
|
|
14
|
-
const CheckBlueIcon = getAssetUrl("icons/checkBlueIcon.svg");
|
|
15
|
-
const CheckGreenIcon = getAssetUrl("icons/checkGreeIcon.svg");
|
|
16
|
-
const CheckIcon = getAssetUrl("icons/checkIcon.svg");
|
|
17
|
-
const DeleteRedIcon = getAssetUrl("icons/deleteRedIcon.svg");
|
|
18
|
-
const EditYellowIcon = getAssetUrl("icons/editYellowIcon.svg");
|
|
19
13
|
const ListIcon = getAssetUrl("icons/listIcon.svg");
|
|
20
|
-
const NotAllowedGreenIcon = getAssetUrl("icons/notAllowedGreenIcon.svg");
|
|
21
14
|
const ThumbsUpIcon = getAssetUrl("icons/thumbsupBlueIcon.svg");
|
|
15
|
+
const CheckGreenIcon = getAssetUrl("icons/checkGreeIcon.svg");
|
|
16
|
+
const EditYellowIcon = getAssetUrl("icons/editYellowIcon.svg");
|
|
17
|
+
const DeleteRedIcon = getAssetUrl("icons/deleteRedIcon.svg");
|
|
18
|
+
const CheckBlueIcon = getAssetUrl("icons/checkBlueIcon.svg");
|
|
22
19
|
const WarningRedIcon = getAssetUrl("icons/warningRedIcon.svg");
|
|
23
20
|
const ThumbsUpYellowIcon = getAssetUrl("icons/thumbsUpYellowIcon.svg");
|
|
21
|
+
const NotAllowedGreenIcon = getAssetUrl("icons/notAllowedGreenIcon.svg");
|
|
24
22
|
const SendIcon = getAssetUrl("icons/sendIcon.svg");
|
|
25
|
-
getAssetUrl("icons/
|
|
23
|
+
const CheckIcon = getAssetUrl("icons/checkIcon.svg");
|
|
26
24
|
const ChatInput = ({
|
|
27
25
|
placeholder = "Type message",
|
|
28
26
|
value,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".message-avatar{flex-shrink:0}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
import { ChatAvatar } from "../AvatarGroup/AvatarGroup.js";
|
package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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, 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, }: {
|
|
3
3
|
messageId: any;
|
|
4
4
|
author: any;
|
|
5
5
|
authorName: any;
|
|
@@ -30,6 +30,5 @@ export declare const ChatMessage: ({ messageId, author, authorName, authorAvatar
|
|
|
30
30
|
isPinChatIconvisible: any;
|
|
31
31
|
isHighlighted?: boolean | undefined;
|
|
32
32
|
highlightColor?: null | undefined;
|
|
33
|
-
showThreeDotIcon: any;
|
|
34
33
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
35
34
|
//# sourceMappingURL=ChatMessage.d.ts.map
|
package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.d.ts.map
CHANGED
|
@@ -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;
|
|
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,4CA2KA,CAAC"}
|
package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(':root{--ia-focus-color:#4259ee;--ia-focus-bg:#fff;--ia-focus-ring-width:2px;--ia-focus-ring-offset:2px}*,:after,:before{box-sizing:border-box}body,textarea{font-style:normal;font-weight:500}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font-size:100%;font:inherit;margin:0;padding:0;vertical-align:initial}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}body{font-family:Manrope,sans-serif}.impact-notification-separator{background-color:#d9dde7;display:inline-block;height:16px;width:1.5px}.impact-notification-horizontal-separator{background-color:#d9dde7;display:inline-block;height:1px;width:100%}ul.storybook-order-list{list-style-type:disc;padding-left:12px}ul.storybook-order-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-list li strong{font-weight:800}ul.storybook-order-child-list{list-style-type:circle;padding-left:20px}ul.storybook-order-child-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-child-list li strong{font-weight:800}.chat-message{align-items:flex-start;display:flex;gap:
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(':root{--ia-focus-color:#4259ee;--ia-focus-bg:#fff;--ia-focus-ring-width:2px;--ia-focus-ring-offset:2px}*,:after,:before{box-sizing:border-box}body,textarea{font-style:normal;font-weight:500}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font-size:100%;font:inherit;margin:0;padding:0;vertical-align:initial}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}body{font-family:Manrope,sans-serif}.impact-notification-separator{background-color:#d9dde7;display:inline-block;height:16px;width:1.5px}.impact-notification-horizontal-separator{background-color:#d9dde7;display:inline-block;height:1px;width:100%}ul.storybook-order-list{list-style-type:disc;padding-left:12px}ul.storybook-order-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-list li strong{font-weight:800}ul.storybook-order-child-list{list-style-type:circle;padding-left:20px}ul.storybook-order-child-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-child-list li strong{font-weight:800}.chat-message{align-items:flex-start;box-sizing:border-box;display:flex;gap:8px;min-width:0;transition:transform .2s ease;width:100%}.chat-message.user-message{flex-direction:row-reverse}.chat-message.user-message>.message-content{align-items:flex-end;margin-left:48px;text-align:right}.chat-message.user-message .message-actions{justify-content:flex-end}.chat-message.assistant-message>.message-content{align-items:flex-start;margin-right:48px}.chat-message .message-header{align-items:center;display:flex;gap:6px;justify-content:flex-end}.chat-message .message-header .message-action-container{align-items:center;display:flex;gap:4px;margin-right:auto;max-width:0;opacity:0;overflow:hidden;pointer-events:none;transform:translate(6px);transition:opacity .25s ease,max-width .25s ease,transform .25s ease}.chat-message .message-header .message-action-container img,.chat-message .message-header .message-action-container svg{color:#b4bac7;cursor:pointer;transition:color .2s ease,transform .2s ease;width:14px}.chat-message .message-header .message-action-container.visibility-enabled{max-width:96px;opacity:1;pointer-events:auto;transform:translate(0)}.chat-message .message-header .message-action-info-container{align-items:center;display:flex;gap:8px}.chat-message .message-header .message-action-info-container svg{color:#b4bac7;cursor:pointer}.chat-message .message-header .message-action-info-container .message-action-info{color:#b4bac7;font-size:12px}.chat-message .message-header .message-action-info-container .message-timestamp{color:#60697d;font-size:11px;font-variant-numeric:tabular-nums;font-weight:500;letter-spacing:.02em;opacity:.85;white-space:nowrap}.chat-message .message-header .message-action-info-container .ia-styles.ia-btn.ia-btn-tertiary{background:#0000;border:none}.chat-message .flex-end{justify-content:flex-end!important}.chat-message.assistant-message .message-text,.chat-message.user-message .message-text{margin-left:0;margin-right:0}.chat-message>.message-content{display:flex;flex:0 1 auto;flex-direction:column;max-width:calc(100% - 40px);min-width:0;width:auto}.ia-styles.ia-menu.more-options-menu .MuiPaper-root{max-width:332px;min-width:220px}.delete_modal_txt{color:#0d152c;font-size:16px;font-style:normal;font-weight:800;line-height:24px}.delete_modal_subTxt{color:#60697d;font-size:12px;font-style:normal;font-weight:500;line-height:16px;text-align:center}.chat-message:hover .message-actions{opacity:1}.chat-message .message-action-container.visibility-enabled,.chat-message .message-text:hover .message-action-container{max-width:96px;opacity:1;pointer-events:auto;transform:translate(0)}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { getAssetUrl } from "../../../../../utils/assetBase.js";
|
|
@@ -6,13 +6,11 @@ import { Menu } from "../../../../Menu/index.js";
|
|
|
6
6
|
import { Prompt } from "../../../../Prompt/index.js";
|
|
7
7
|
import ChatDefaultMessageType from "../ChatDefaultMessageType/ChatDefaultMessageType.js";
|
|
8
8
|
import { ChatDeletedMessageType } from "../ChatDeleteMessageType/ChatDeletedMessageType.js";
|
|
9
|
-
import ChatEditedMessageType from "../ChatEditedMessageType/ChatEditedMessageType.js";
|
|
9
|
+
import ChatEditedMessageType from "../ChatEditedMessageType /ChatEditedMessageType.js";
|
|
10
10
|
import { ChatMessageAvatar } from "../ChatMessageAvatar/ChatMessageAvatar.js";
|
|
11
11
|
|
|
12
|
-
const DeleteIcon = getAssetUrl("icons/deleteIcon.svg");
|
|
13
|
-
getAssetUrl("icons/unpinedIcon.svg");
|
|
14
12
|
const EditIcon = getAssetUrl("icons/pencilIcon.svg");
|
|
15
|
-
getAssetUrl("icons/
|
|
13
|
+
const DeleteIcon = getAssetUrl("icons/deleteIcon.svg");
|
|
16
14
|
const ChatMessage = ({
|
|
17
15
|
messageId,
|
|
18
16
|
author,
|
|
@@ -43,8 +41,7 @@ const ChatMessage = ({
|
|
|
43
41
|
isThreadIconVisible,
|
|
44
42
|
isPinChatIconvisible,
|
|
45
43
|
isHighlighted = false,
|
|
46
|
-
highlightColor = null
|
|
47
|
-
showThreeDotIcon
|
|
44
|
+
highlightColor = null
|
|
48
45
|
}) => {
|
|
49
46
|
const [moreOptionsAnchorEl, setMoreOptionsAnchorEl] = useState(null);
|
|
50
47
|
const [moreOptionsMenuOpen, setMoreOptionsMenuOpen] = useState(false);
|
|
@@ -127,7 +124,6 @@ const ChatMessage = ({
|
|
|
127
124
|
isUser,
|
|
128
125
|
pinned,
|
|
129
126
|
priority,
|
|
130
|
-
showThreeDotIcon,
|
|
131
127
|
timestamp,
|
|
132
128
|
visibility: moreOptionsMenuOpen,
|
|
133
129
|
onPin,
|
|
@@ -185,7 +181,7 @@ const ChatMessage = ({
|
|
|
185
181
|
onSecondaryButtonClick: () => {
|
|
186
182
|
setShowDeleteModal(false);
|
|
187
183
|
},
|
|
188
|
-
children: "This will permanently delete
|
|
184
|
+
children: "This will permanently delete all messages in this conversation."
|
|
189
185
|
}
|
|
190
186
|
)
|
|
191
187
|
] });
|
package/dist/components/TableChat/components/TableChatRightSection/DateSeparator/DateSeparator.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".date-separator{align-items:center;display:flex;justify-content:center;left:220px;margin:12px 0;padding:4px 8px;position:sticky;top:-10px;transition:opacity .3s ease;width:
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".date-separator{align-items:center;background-color:#fff;display:flex;justify-content:center;left:220px;margin:12px 0;padding:4px 8px 4px 0;position:sticky;top:-10px;transition:opacity .3s ease;width:140px;z-index:999}.date-separator .impact_badges_only_label_stroke{background:linear-gradient(90deg,#f5f5f5 6%,#f5f5f500 120%),#fff;border:1px solid #d9dde7}.date-separator .MuiChip-label,.date-separator .date-text{color:#60697d!important;font-size:12px!important;font-weight:500!important;padding:4px 12px}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Badge } from "../../../../Badge/index.js";
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PinedChatPanel.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChatPanel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PinedChatPanel.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChatPanel.tsx"],"names":[],"mappings":"AAQA,OAAO,yBAAyB,CAAC;AA6KjC,eAAO,MAAM,WAAW,GAAI;;;;;CAK3B,4CAsCA,CAAC"}
|
package/dist/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChatPanel.js
CHANGED
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import default_1 from "../../../../../node_modules/@mui/icons-material/Block.js";
|
|
4
4
|
import DOMPurify from "dompurify";
|
|
5
|
+
import { getAssetUrl } from "../../../../../utils/assetBase.js";
|
|
5
6
|
import { Avatar } from "../../../../Avatar/index.js";
|
|
6
7
|
import { ChatAvatar } from "../AvatarGroup/AvatarGroup.js";
|
|
7
8
|
import { ChatInput } from "../ChatInput/ChatInput.js";
|
|
8
9
|
|
|
10
|
+
const DEFAULT_CHAT_AVATAR = getAssetUrl("avatar_sample.webp");
|
|
9
11
|
const renderContent = (content) => {
|
|
10
12
|
if (!content) return null;
|
|
11
13
|
if (typeof content === "string") {
|
|
@@ -78,17 +80,10 @@ const MessageItem = ({ type, msg, onMessageClick }) => {
|
|
|
78
80
|
{
|
|
79
81
|
label: msg == null ? void 0 : msg.userInitials,
|
|
80
82
|
size: "small",
|
|
81
|
-
src: (msg == null ? void 0 : msg.src) ||
|
|
83
|
+
src: (msg == null ? void 0 : msg.src) || DEFAULT_CHAT_AVATAR,
|
|
82
84
|
type: "withoutPicture"
|
|
83
85
|
}
|
|
84
|
-
) : /* @__PURE__ */ jsx(
|
|
85
|
-
ChatAvatar,
|
|
86
|
-
{
|
|
87
|
-
name: msg == null ? void 0 : msg.userInitials,
|
|
88
|
-
size: "sm",
|
|
89
|
-
src: (msg == null ? void 0 : msg.src) || "static/media/src/assets/avatar_sample.jpeg"
|
|
90
|
-
}
|
|
91
|
-
),
|
|
86
|
+
) : /* @__PURE__ */ jsx(ChatAvatar, { name: msg == null ? void 0 : msg.userInitials, size: "sm", src: (msg == null ? void 0 : msg.src) || DEFAULT_CHAT_AVATAR }),
|
|
92
87
|
/* @__PURE__ */ jsxs("div", { className: isPinned ? "pinned-info" : "thread-info", children: [
|
|
93
88
|
isPinned && /* @__PURE__ */ jsxs("div", { className: "pinned-meta", children: [
|
|
94
89
|
/* @__PURE__ */ jsx("span", { className: "user-title", children: msg.senderName }),
|
|
@@ -116,17 +111,10 @@ const MessageItem = ({ type, msg, onMessageClick }) => {
|
|
|
116
111
|
{
|
|
117
112
|
label: msg == null ? void 0 : msg.userInitials,
|
|
118
113
|
size: "small",
|
|
119
|
-
src: (msg == null ? void 0 : msg.src) ||
|
|
114
|
+
src: (msg == null ? void 0 : msg.src) || DEFAULT_CHAT_AVATAR,
|
|
120
115
|
type: "withoutPicture"
|
|
121
116
|
}
|
|
122
|
-
) : /* @__PURE__ */ jsx(
|
|
123
|
-
ChatAvatar,
|
|
124
|
-
{
|
|
125
|
-
name: msg == null ? void 0 : msg.userInitials,
|
|
126
|
-
size: "sm",
|
|
127
|
-
src: (msg == null ? void 0 : msg.src) || "static/media/src/assets/avatar_sample.jpeg"
|
|
128
|
-
}
|
|
129
|
-
),
|
|
117
|
+
) : /* @__PURE__ */ jsx(ChatAvatar, { name: msg == null ? void 0 : msg.userInitials, size: "sm", src: (msg == null ? void 0 : msg.src) || DEFAULT_CHAT_AVATAR }),
|
|
130
118
|
/* @__PURE__ */ jsxs("div", { className: isPinned ? "pinned-info" : "thread-info", children: [
|
|
131
119
|
isPinned && /* @__PURE__ */ jsxs("div", { className: "pinned-meta", children: [
|
|
132
120
|
/* @__PURE__ */ jsx("span", { className: "user-title", children: msg.senderName }),
|
package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
declare const TableChatRightSection: ({
|
|
2
|
+
declare const TableChatRightSection: ({ title, chatId, CreatedBy, createdAt, participants, participantsList, onParticipantsClick, messages: propMessages, placeholder, showFormatting, maxLength, onMessageReply, onMessageBookmark, onMessagePin, onMessageMore, onAttachFile, onImageUpload, onEmojiClick, setPinnedMessages, className, showDateSeparators, autoScroll, onThreadClick, messageConfig, inputChatConfig, ...restProps }: {
|
|
3
3
|
[x: string]: any;
|
|
4
|
-
showChatId: any;
|
|
5
4
|
title: any;
|
|
6
5
|
chatId: any;
|
|
7
6
|
CreatedBy: any;
|
|
@@ -27,7 +26,6 @@ declare const TableChatRightSection: ({ showChatId, title, chatId, CreatedBy, cr
|
|
|
27
26
|
onThreadClick: any;
|
|
28
27
|
messageConfig?: {} | undefined;
|
|
29
28
|
inputChatConfig?: {} | undefined;
|
|
30
|
-
owner: any;
|
|
31
29
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
32
30
|
export default TableChatRightSection;
|
|
33
31
|
//# sourceMappingURL=TableChatRightSection.d.ts.map
|
package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableChatRightSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableChat/components/TableChatRightSection/TableChatRightSection.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TableChatRightSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableChat/components/TableChatRightSection/TableChatRightSection.tsx"],"names":[],"mappings":"AAiBA,OAAO,qCAAqC,CAAC;AAI7C,QAAA,MAAM,qBAAqB,GAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuC9B,4CAwrCA,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|