@zohoim/chat-components 0.0.11 → 0.0.14
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/es/ActionIcon/ActionIcon.js +56 -34
- package/es/ActionIcon/css/ActionIcon.module.css +4 -23
- package/es/ActionIcon/props/defaultProps.js +4 -2
- package/es/ActionIcon/props/propTypes.js +10 -3
- package/es/ActionIconWrapper/ActionIconWrapper.js +49 -0
- package/es/ActionIconWrapper/css/ActionIconWrapper.module.css +27 -0
- package/es/ActionIconWrapper/index.js +1 -0
- package/es/{MessageWrapper → ActionIconWrapper}/props/defaultProps.js +3 -3
- package/es/ActionIconWrapper/props/propTypes.js +11 -0
- package/es/AttachmentBubble/AttachmentBubble.js +36 -34
- package/es/AttachmentBubble/css/AttachmentBubble.module.css +16 -15
- package/es/AttachmentBubble/props/defaultProps.js +2 -2
- package/es/AttachmentBubble/props/propTypes.js +10 -5
- package/es/AttachmentBubbleInfo/AttachmentBubbleInfo.js +7 -20
- package/es/AttachmentBubbleInfo/css/AttachmentBubbleInfo.module.css +20 -15
- package/es/AttachmentBubbleInfo/props/defaultProps.js +1 -1
- package/es/AttachmentBubbleInfo/props/propTypes.js +3 -3
- package/es/AttachmentIcon/AttachmentIcon.js +47 -0
- package/es/AttachmentIcon/css/AttachmentIcon.module.css +4 -0
- package/es/AttachmentIcon/index.js +1 -0
- package/es/{MediaControls → AttachmentIcon}/props/defaultProps.js +3 -3
- package/es/AttachmentIcon/props/propTypes.js +11 -0
- package/es/AttachmentIcon/utils/getAttachmentIconComponent.js +55 -0
- package/es/Audio/Audio.js +12 -34
- package/es/Audio/css/Audio.module.css +3 -3
- package/es/Audio/props/defaultProps.js +2 -3
- package/es/Audio/props/propTypes.js +3 -4
- package/es/AudioBubble/AudioBubble.js +25 -43
- package/es/AudioBubble/props/defaultProps.js +2 -4
- package/es/AudioBubble/props/propTypes.js +10 -7
- package/es/Fonts/puviFont.module.css +55 -54
- package/es/ImageBubble/ImageBubble.js +26 -25
- package/es/ImageBubble/css/ImageBubble.module.css +8 -11
- package/es/ImageBubble/props/defaultProps.js +1 -1
- package/es/ImageBubble/props/propTypes.js +5 -3
- package/es/InfoBubble/InfoBubble.js +6 -9
- package/es/InfoBubble/props/defaultProps.js +1 -1
- package/es/LazyLoadImage/LazyLoadImage.js +8 -19
- package/es/LazyLoadImage/css/LazyLoadImage.module.css +1 -0
- package/es/LazyLoadImage/props/defaultProps.js +1 -1
- package/es/LazyLoadImage/props/propTypes.js +3 -3
- package/es/LocationBubble/LocationBubble.js +25 -44
- package/es/LocationBubble/css/LocationBubble.module.css +11 -9
- package/es/LocationBubble/props/defaultProps.js +1 -1
- package/es/LocationBubble/props/propTypes.js +2 -2
- package/es/MediaBubbleWrapper/MediaBubbleWrapper.js +59 -0
- package/es/MediaBubbleWrapper/css/MediaBubbleWrapper.module.css +3 -0
- package/es/MediaBubbleWrapper/index.js +1 -0
- package/es/MediaBubbleWrapper/props/defaultProps.js +7 -0
- package/es/MediaBubbleWrapper/props/propTypes.js +16 -0
- package/es/Message/Message.js +91 -104
- package/es/Message/props/defaultProps.js +3 -35
- package/es/Message/props/propTypes.js +26 -85
- package/es/MessageAction/MessageAction.js +32 -19
- package/es/MessageAction/props/defaultProps.js +4 -4
- package/es/MessageAction/props/propTypes.js +11 -8
- package/es/MessageActions/MessageActions.js +86 -53
- package/es/MessageActions/css/MessageActions.module.css +23 -2
- package/es/MessageActions/props/defaultProps.js +5 -5
- package/es/MessageActions/props/propTypes.js +15 -3
- package/es/MessageActionsMore/MessageActionsMore.js +45 -37
- package/es/MessageActionsMore/css/MessageActionsMore.module.css +8 -5
- package/es/MessageActionsMore/props/defaultProps.js +3 -2
- package/es/MessageActionsMore/props/propTypes.js +3 -2
- package/es/MessageActionsWrapper/MessageActionsWrapper.js +67 -0
- package/es/MessageActionsWrapper/css/MessageActionsWrapper.module.css +3 -0
- package/es/MessageActionsWrapper/index.js +1 -0
- package/es/MessageActionsWrapper/props/defaultProps.js +9 -0
- package/es/MessageActionsWrapper/props/propTypes.js +15 -0
- package/es/MessageAvatar/MessageAvatar.js +15 -22
- package/es/MessageAvatar/css/MessageAvatar.module.css +3 -3
- package/es/MessageAvatar/props/defaultProps.js +2 -6
- package/es/MessageAvatar/props/propTypes.js +5 -5
- package/es/MessageBox/MessageBox.js +24 -25
- package/es/MessageBox/css/MessageBox.module.css +12 -14
- package/es/MessageBox/css/cssJSLogic.js +1 -21
- package/es/MessageBox/props/defaultProps.js +1 -3
- package/es/MessageBox/props/propTypes.js +8 -7
- package/es/MessageBubble/MessageBubble.js +61 -38
- package/es/MessageBubble/css/MessageBubble.module.css +11 -8
- package/es/MessageBubble/css/cssJSLogic.js +10 -26
- package/es/MessageBubble/props/defaultProps.js +2 -2
- package/es/MessageBubble/props/propTypes.js +9 -9
- package/es/MessageStatus/MessageStatus.js +72 -0
- package/es/{im/IMMessageStatus/css/IMMessageStatus.module.css → MessageStatus/css/MessageStatus.module.css} +1 -1
- package/es/MessageStatus/css/cssJSLogic.js +26 -0
- package/es/MessageStatus/index.js +1 -0
- package/es/{im/IMAttachmentIcon → MessageStatus}/props/defaultProps.js +3 -3
- package/es/MessageStatus/props/propTypes.js +12 -0
- package/es/MoreActionItem/MoreActionItem.js +25 -37
- package/es/MoreActionItem/css/MoreActionItem.module.css +5 -11
- package/es/MoreActionItem/props/defaultProps.js +1 -5
- package/es/MoreActionItem/props/propTypes.js +6 -5
- package/es/ReplyBubble/ReplyBubble.js +62 -30
- package/es/ReplyBubble/css/ReplyBubble.module.css +17 -0
- package/es/ReplyBubble/props/defaultProps.js +3 -4
- package/es/ReplyBubble/props/propTypes.js +15 -8
- package/es/ReplyBubbleContent/ReplyBubbleContent.js +21 -28
- package/es/ReplyBubbleContent/css/ReplyBubbleContent.module.css +44 -34
- package/es/ReplyBubbleContent/props/defaultProps.js +1 -1
- package/es/ReplyBubbleContent/props/propTypes.js +4 -4
- package/es/ReplyBubbleHeader/ReplyBubbleHeader.js +25 -29
- package/es/ReplyBubbleHeader/css/ReplyBubbleHeader.module.css +12 -4
- package/es/ReplyBubbleHeader/props/defaultProps.js +2 -5
- package/es/ReplyBubbleHeader/props/propTypes.js +2 -2
- package/es/TextBubble/TextBubble.js +15 -34
- package/es/TextBubble/css/TextBubble.module.css +16 -3
- package/es/TextBubble/props/defaultProps.js +2 -5
- package/es/TextBubble/props/propTypes.js +3 -4
- package/es/Theme/{DeskAssets.js → ThemeAssets.js} +10 -6
- package/es/Theme/ThemeWrapper.js +62 -62
- package/es/Theme/{ToolttipWrapper.js → TooltipWrapper.js} +29 -25
- package/es/Theme/constants/index.js +1 -4
- package/es/Theme/crm/dark/blueFanTheme.js +5 -5
- package/es/Theme/crm/dark/blueTheme.js +5 -5
- package/es/Theme/crm/dark/commonColorVariable.js +5 -5
- package/es/Theme/crm/dark/darkBlueTheme.js +5 -5
- package/es/Theme/crm/dark/darkGreyTheme.js +5 -5
- package/es/Theme/crm/dark/greenTheme.js +5 -5
- package/es/Theme/crm/dark/orangeTheme.js +5 -5
- package/es/Theme/crm/dark/pinkTheme.js +5 -5
- package/es/Theme/crm/dark/tealTheme.js +5 -5
- package/es/Theme/crm/dark/whiteTheme.js +5 -5
- package/es/Theme/crm/light/blueFanTheme.js +5 -5
- package/es/Theme/crm/light/blueTheme.js +3 -3
- package/es/Theme/crm/light/commonColorVariable.js +3 -3
- package/es/Theme/crm/light/darkBlueTheme.js +5 -5
- package/es/Theme/crm/light/darkGreyTheme.js +5 -5
- package/es/Theme/crm/light/greenTheme.js +3 -3
- package/es/Theme/crm/light/orangeTheme.js +3 -3
- package/es/Theme/crm/light/pinkTheme.js +3 -3
- package/es/Theme/crm/light/tealTheme.js +3 -3
- package/es/Theme/crm/light/whiteTheme.js +5 -5
- package/es/Theme/crm/pureDark/blueFanTheme.js +5 -5
- package/es/Theme/crm/pureDark/blueTheme.js +5 -5
- package/es/Theme/crm/pureDark/commonColorVariable.js +3 -3
- package/es/Theme/crm/pureDark/darkBlueTheme.js +5 -5
- package/es/Theme/crm/pureDark/darkGreyTheme.js +5 -5
- package/es/Theme/crm/pureDark/greenTheme.js +5 -5
- package/es/Theme/crm/pureDark/orangeTheme.js +5 -5
- package/es/Theme/crm/pureDark/pinkTheme.js +5 -5
- package/es/Theme/crm/pureDark/tealTheme.js +5 -5
- package/es/Theme/crm/pureDark/whiteTheme.js +5 -5
- package/es/Theme/css/TooltipWrapper.module.css +2 -2
- package/es/Theme/props/defaultProps.js +2 -3
- package/es/Theme/props/propTypes.js +5 -6
- package/es/Theme/themeVariables/commonThemeColorVariable.js +13 -0
- package/es/Theme/themeVariables/dark/blueTheme.js +68 -0
- package/es/Theme/themeVariables/dark/commonColorVariable.js +10 -0
- package/es/Theme/themeVariables/dark/greenTheme.js +67 -0
- package/es/Theme/themeVariables/dark/orangeTheme.js +67 -0
- package/es/Theme/themeVariables/dark/redTheme.js +76 -0
- package/es/Theme/themeVariables/dark/yellowTheme.js +67 -0
- package/es/Theme/themeVariables/light/blueTheme.js +63 -0
- package/es/Theme/themeVariables/light/commonColorVariable.js +12 -0
- package/es/Theme/themeVariables/light/greenTheme.js +63 -0
- package/es/Theme/themeVariables/light/orangeTheme.js +61 -0
- package/es/Theme/themeVariables/light/redTheme.js +61 -0
- package/es/Theme/themeVariables/light/yellowTheme.js +63 -0
- package/es/Theme/themeVariables/pureDark/blueTheme.js +68 -0
- package/es/Theme/themeVariables/pureDark/commonColorVariable.js +12 -0
- package/es/Theme/themeVariables/pureDark/greenTheme.js +67 -0
- package/es/Theme/themeVariables/pureDark/orangeTheme.js +67 -0
- package/es/Theme/themeVariables/pureDark/redTheme.js +67 -0
- package/es/Theme/themeVariables/pureDark/yellowTheme.js +67 -0
- package/es/Theme/utils/combineConfigurations.js +17 -0
- package/es/Theme/utils/flatVariables.js +12 -0
- package/es/Theme/utils/getCustomizedCssVariables.js +19 -0
- package/es/Theme/utils/getThemeConfigurations.js +47 -175
- package/es/Theme/utils/getWrapperDivProps.js +12 -0
- package/es/Video/Video.js +14 -45
- package/es/Video/css/Video.module.css +2 -7
- package/es/Video/props/defaultProps.js +2 -3
- package/es/Video/props/propTypes.js +3 -4
- package/es/VideoBubble/VideoBubble.js +31 -36
- package/es/VideoBubble/css/VideoBubble.module.css +4 -4
- package/es/VideoBubble/props/defaultProps.js +2 -3
- package/es/VideoBubble/props/propTypes.js +11 -7
- package/es/icons/create-icon-components.js +31 -0
- package/es/icons/icon.template.js +10 -9
- package/es/icons/iconSrc/attachments/Audio.js +1 -0
- package/es/icons/iconSrc/attachments/Code.js +1 -0
- package/es/icons/iconSrc/attachments/Image.js +1 -0
- package/es/icons/iconSrc/attachments/Pdf.js +1 -0
- package/es/icons/iconSrc/attachments/Txt.js +1 -0
- package/es/icons/iconSrc/attachments/Unknown.js +1 -0
- package/es/icons/iconSrc/attachments/Video.js +1 -0
- package/es/icons/iconSrc/attachments/Zip.js +1 -0
- package/es/icons/iconSrc/attachments/index.js +8 -8
- package/es/icons/iconSrc/common/Article.js +1 -0
- package/es/icons/iconSrc/common/index.js +1 -2
- package/es/icons/iconSrc/integrations/ChInstagram.js +1 -0
- package/es/icons/iconSrc/integrations/ChWhatsApp.js +1 -0
- package/es/icons/iconSrc/integrations/TtASAP.js +1 -0
- package/es/icons/iconSrc/integrations/TtTelegram.js +1 -0
- package/es/icons/iconSrc/integrations/TtTwillio.js +1 -0
- package/es/icons/iconSrc/integrations/TtTwitter.js +1 -0
- package/es/icons/iconSrc/integrations/TtWechat.js +1 -0
- package/es/icons/iconSrc/integrations/index.js +7 -7
- package/es/icons/iconSrc/messageStatus/Clock.js +1 -0
- package/es/icons/iconSrc/messageStatus/DoubleTick.js +1 -0
- package/es/icons/iconSrc/messageStatus/Failed.js +1 -0
- package/es/icons/iconSrc/messageStatus/Tick.js +1 -0
- package/es/icons/iconSrc/messageStatus/index.js +4 -4
- package/es/im/ArticleBubble/ArticleBubble.js +66 -0
- package/es/im/ArticleBubble/css/ArticleBubble.module.css +47 -0
- package/es/{ArticleBubble → im/ArticleBubble}/props/defaultProps.js +1 -1
- package/es/im/ArticleBubble/props/propTypes.js +13 -0
- package/es/im/IMAutoMessageInfo/IMAutoMessageInfo.js +10 -21
- package/es/im/IMAutoMessageInfo/css/IMAutoMessageInfo.module.css +2 -3
- package/es/im/IMAutoMessageInfo/props/defaultProps.js +1 -1
- package/es/im/IMAutoMessageInfo/props/propTypes.js +11 -9
- package/es/im/IMInfoBubble/IMInfoBubble.js +6 -9
- package/es/im/IMInfoBubble/props/defaultProps.js +1 -1
- package/es/im/IMIntegrationIcon/IMIntegrationIcon.js +31 -38
- package/es/im/IMIntegrationIcon/css/IMIntegrationIcon.module.css +5 -8
- package/es/im/IMIntegrationIcon/css/cssJSLogic.js +9 -13
- package/es/im/IMIntegrationIcon/index.js +1 -2
- package/es/im/IMIntegrationIcon/props/defaultProps.js +6 -4
- package/es/im/IMIntegrationIcon/props/propTypes.js +6 -17
- package/es/im/IMMessage/IMMessage.js +95 -156
- package/es/im/IMMessage/props/defaultProps.js +2 -29
- package/es/im/IMMessage/props/propTypes.js +57 -117
- package/es/im/IMMessageContent/IMMessageContent.js +80 -55
- package/es/im/IMMessageContent/css/IMMessageContent.module.css +3 -0
- package/es/im/IMMessageContent/props/defaultProps.js +2 -3
- package/es/im/IMMessageContent/props/propTypes.js +28 -23
- package/es/im/IMMessageMeta/IMMessageMeta.js +28 -24
- package/es/im/IMMessageMeta/css/IMMessageMeta.module.css +15 -4
- package/es/im/IMMessageMeta/css/cssJSLogic.js +11 -3
- package/es/im/IMMessageMeta/props/defaultProps.js +1 -1
- package/es/im/IMMessageMeta/props/propTypes.js +17 -12
- package/es/im/IMReplyBubble/IMReplyBubble.js +21 -61
- package/es/im/IMReplyBubble/props/defaultProps.js +2 -4
- package/es/im/IMReplyBubble/props/propTypes.js +16 -14
- package/es/im/IMTextBubble/IMTextBubble.js +16 -33
- package/es/im/IMTextBubble/props/defaultProps.js +3 -9
- package/es/im/IMTextBubble/props/propTypes.js +22 -8
- package/es/im/IMTicketLink/IMTicketLink.js +13 -13
- package/es/im/IMTicketLink/css/IMTicketLink.module.css +3 -4
- package/es/im/IMTicketLink/props/defaultProps.js +1 -1
- package/es/im/IMTicketLink/props/propTypes.js +4 -3
- package/es/im/index.js +1 -11
- package/es/index.js +30 -34
- package/package.json +32 -14
- package/es/ActionIcon/css/cssJSLogic.js +0 -10
- package/es/ArticleBubble/ArticleBubble.js +0 -68
- package/es/ArticleBubble/css/ArticleBubble.module.css +0 -40
- package/es/ArticleBubble/css/cssJSLogic.js +0 -34
- package/es/ArticleBubble/props/propTypes.js +0 -10
- package/es/AttachmentBubble/css/cssJSLogic.js +0 -18
- package/es/AttachmentBubbleInfo/css/cssJSLogic.js +0 -18
- package/es/Audio/css/cssJSLogic.js +0 -14
- package/es/AudioBubble/css/AudioBubble.module.css +0 -3
- package/es/AudioBubble/css/cssJSLogic.js +0 -20
- package/es/ImageBubble/css/cssJSLogic.js +0 -22
- package/es/LazyLoadImage/css/cssJSLogic.js +0 -10
- package/es/LocationBubble/css/cssJSLogic.js +0 -30
- package/es/MediaControls/MediaControls.js +0 -60
- package/es/MediaControls/css/MediaControls.module.css +0 -1
- package/es/MediaControls/css/cssJSLogic.js +0 -22
- package/es/MediaControls/index.js +0 -1
- package/es/MediaControls/props/propTypes.js +0 -11
- package/es/Message/css/Message.module.css +0 -0
- package/es/Message/css/cssJSLogic.js +0 -10
- package/es/MessageAction/css/MessageAction.module.css +0 -0
- package/es/MessageAction/css/cssJSLogic.js +0 -0
- package/es/MessageActions/css/cssJSLogic.js +0 -10
- package/es/MessageActions/props/propConstants.js +0 -7
- package/es/MessageActionsMore/css/cssJSLogic.js +0 -28
- package/es/MessageAvatar/css/cssJSLogic.js +0 -18
- package/es/MessageBoxFooter/MessageBoxFooter.js +0 -39
- package/es/MessageBoxFooter/css/MessageBoxFooter.module.css +0 -3
- package/es/MessageBoxFooter/css/cssJSLogic.js +0 -10
- package/es/MessageBoxFooter/index.js +0 -1
- package/es/MessageBoxFooter/props/defaultProps.js +0 -5
- package/es/MessageBoxFooter/props/propTypes.js +0 -6
- package/es/MessageBoxHeader/MessageBoxHeader.js +0 -7
- package/es/MessageBoxHeader/css/MessageBoxHeader.module.css +0 -0
- package/es/MessageBoxHeader/css/cssJsLogic.js +0 -0
- package/es/MessageBoxHeader/index.js +0 -2
- package/es/MessageBoxHeader/props/defaultProps.js +0 -0
- package/es/MessageBoxHeader/props/propTypes.js +0 -0
- package/es/MessageBubble/props/propConstants.js +0 -6
- package/es/MessageWrapper/MessageWrapper.js +0 -37
- package/es/MessageWrapper/css/MessageWrapper.module.css +0 -0
- package/es/MessageWrapper/css/cssJSLogic.js +0 -10
- package/es/MessageWrapper/index.js +0 -1
- package/es/MessageWrapper/props/propTypes.js +0 -6
- package/es/MoreActionItem/css/cssJSLogic.js +0 -27
- package/es/ReplyBubble/css/cssJSLogic.js +0 -10
- package/es/ReplyBubbleContent/css/cssJSLogic.js +0 -22
- package/es/ReplyBubbleHeader/css/cssJSLogic.js +0 -10
- package/es/TextBubble/css/cssJSLogic.js +0 -18
- package/es/TextMessage/DefaultActions.js +0 -60
- package/es/TextMessage/TextMessage.js +0 -67
- package/es/TextMessage/TextMessage1.js +0 -69
- package/es/TextMessage/css/TextMessage.module.css +0 -5
- package/es/TextMessage/css/cssJSLogic.js +0 -0
- package/es/TextMessage/index.js +0 -1
- package/es/TextMessage/props/defaultProps.js +0 -4
- package/es/TextMessage/props/propConstants.js +0 -3
- package/es/TextMessage/props/propTypes.js +0 -17
- package/es/Theme/css/cssJSLogic.js +0 -14
- package/es/Theme/darkTheme.js +0 -9
- package/es/Theme/defaultTheme.js +0 -33
- package/es/Theme/desk/commonDeskColorVariable.js +0 -14
- package/es/Theme/desk/dark/blueTheme.js +0 -42
- package/es/Theme/desk/dark/commonColorVariable.js +0 -5
- package/es/Theme/desk/dark/greenTheme.js +0 -41
- package/es/Theme/desk/dark/orangeTheme.js +0 -41
- package/es/Theme/desk/dark/redTheme.js +0 -41
- package/es/Theme/desk/dark/yellowTheme.js +0 -41
- package/es/Theme/desk/light/blueTheme.js +0 -46
- package/es/Theme/desk/light/commonColorVariable.js +0 -6
- package/es/Theme/desk/light/greenTheme.js +0 -37
- package/es/Theme/desk/light/orangeTheme.js +0 -36
- package/es/Theme/desk/light/redTheme.js +0 -36
- package/es/Theme/desk/light/yellowTheme.js +0 -37
- package/es/Theme/desk/pureDark/blueTheme.js +0 -41
- package/es/Theme/desk/pureDark/commonColorVariable.js +0 -7
- package/es/Theme/desk/pureDark/greenTheme.js +0 -41
- package/es/Theme/desk/pureDark/orangeTheme.js +0 -41
- package/es/Theme/desk/pureDark/redTheme.js +0 -41
- package/es/Theme/desk/pureDark/yellowTheme.js +0 -41
- package/es/Video/css/cssJSLogic.js +0 -14
- package/es/VideoBubble/css/cssJSLogic.js +0 -10
- package/es/icons/factory/actions/convertTicket.svg +0 -21
- package/es/icons/factory/common/quote.svg +0 -1
- package/es/icons/iconSrc/actions/ConvertTicket.js +0 -24
- package/es/icons/iconSrc/actions/index.js +0 -1
- package/es/icons/iconSrc/common/Quote.js +0 -16
- package/es/im/IMArticleBubble/IMArticleBubble.js +0 -55
- package/es/im/IMArticleBubble/css/IMArticleBubble.module.css +0 -0
- package/es/im/IMArticleBubble/css/cssJSLogic.js +0 -10
- package/es/im/IMArticleBubble/index.js +0 -1
- package/es/im/IMArticleBubble/props/defaultProps.js +0 -8
- package/es/im/IMArticleBubble/props/propTypes.js +0 -14
- package/es/im/IMAttachmentBubble/IMAttachmentBubble.js +0 -63
- package/es/im/IMAttachmentBubble/css/IMAttachmentBubble.module.css +0 -1
- package/es/im/IMAttachmentBubble/css/cssJSLogic.js +0 -10
- package/es/im/IMAttachmentBubble/index.js +0 -1
- package/es/im/IMAttachmentBubble/props/defaultProps.js +0 -10
- package/es/im/IMAttachmentBubble/props/propTypes.js +0 -16
- package/es/im/IMAttachmentIcon/IMAttachmentIcon.js +0 -86
- package/es/im/IMAttachmentIcon/css/IMAttachmentIcon.module.css +0 -4
- package/es/im/IMAttachmentIcon/css/cssJSLogic.js +0 -16
- package/es/im/IMAttachmentIcon/index.js +0 -1
- package/es/im/IMAttachmentIcon/props/propTypes.js +0 -26
- package/es/im/IMAudioBubble/IMAudioBubble.js +0 -63
- package/es/im/IMAudioBubble/css/IMAudioBubble.module.css +0 -8
- package/es/im/IMAudioBubble/css/cssJSLogic.js +0 -20
- package/es/im/IMAudioBubble/index.js +0 -1
- package/es/im/IMAudioBubble/props/defaultProps.js +0 -11
- package/es/im/IMAudioBubble/props/propTypes.js +0 -17
- package/es/im/IMAutoMessageInfo/css/cssJSLogic.js +0 -10
- package/es/im/IMDateTime/IMDateTime.js +0 -41
- package/es/im/IMDateTime/css/IMDateTime.module.css +0 -5
- package/es/im/IMDateTime/css/cssJSLogic.js +0 -10
- package/es/im/IMDateTime/index.js +0 -1
- package/es/im/IMDateTime/props/defaultProps.js +0 -6
- package/es/im/IMDateTime/props/propTypes.js +0 -6
- package/es/im/IMImageBubble/IMImageBubble.js +0 -49
- package/es/im/IMImageBubble/css/IMImageBubble.module.css +0 -0
- package/es/im/IMImageBubble/css/cssJSLogic.js +0 -10
- package/es/im/IMImageBubble/index.js +0 -1
- package/es/im/IMImageBubble/props/defaultProps.js +0 -7
- package/es/im/IMImageBubble/props/propTypes.js +0 -13
- package/es/im/IMIntegrationIcon/props/propConstants.js +0 -8
- package/es/im/IMLocationBubble/IMLocationBubble.js +0 -49
- package/es/im/IMLocationBubble/css/IMLocationBubble.module.css +0 -0
- package/es/im/IMLocationBubble/css/cssJSLogic.js +0 -10
- package/es/im/IMLocationBubble/index.js +0 -1
- package/es/im/IMLocationBubble/props/defaultProps.js +0 -8
- package/es/im/IMLocationBubble/props/propTypes.js +0 -11
- package/es/im/IMMessage/css/IMMessage.module.css +0 -0
- package/es/im/IMMessage/css/cssJSLogic.js +0 -10
- package/es/im/IMMessage/renderChild/renderMessage.js +0 -8
- package/es/im/IMMessage/renderChild/renderMessageActions.js +0 -8
- package/es/im/IMMessage/renderChild/renderMessageBox.js +0 -15
- package/es/im/IMMessage/renderChild/renderMessageBoxFooter.js +0 -8
- package/es/im/IMMessage/renderChild/renderMessageFooter.js +0 -8
- package/es/im/IMMessage/renderChild/renderMessageHeader.js +0 -8
- package/es/im/IMMessage/renderChild/renderMessageOwner.js +0 -8
- package/es/im/IMMessage/renderChild/renderMessageStatus.js +0 -8
- package/es/im/IMMessageActions/IMMessageActions.js +0 -150
- package/es/im/IMMessageActions/css/IMMessageActions.module.css +0 -31
- package/es/im/IMMessageActions/css/cssJSLogic.js +0 -20
- package/es/im/IMMessageActions/index.js +0 -1
- package/es/im/IMMessageActions/props/defaultProps.js +0 -12
- package/es/im/IMMessageActions/props/propTypes.js +0 -30
- package/es/im/IMMessageAvatar/IMMessageAvatar.js +0 -45
- package/es/im/IMMessageAvatar/css/IMMessageAvatar.module.css +0 -0
- package/es/im/IMMessageAvatar/css/cssJSLogic.js +0 -0
- package/es/im/IMMessageAvatar/index.js +0 -1
- package/es/im/IMMessageAvatar/props/defaultProps.js +0 -12
- package/es/im/IMMessageAvatar/props/propTypes.js +0 -28
- package/es/im/IMMessageContent/css/cssJSLogic.js +0 -10
- package/es/im/IMMessageStatus/IMMessageStatus.js +0 -69
- package/es/im/IMMessageStatus/css/cssJSLogic.js +0 -22
- package/es/im/IMMessageStatus/index.js +0 -1
- package/es/im/IMMessageStatus/props/defaultProps.js +0 -6
- package/es/im/IMMessageStatus/props/propTypes.js +0 -21
- package/es/im/IMReplyBubble/css/IMReplyBubble.module.css +0 -24
- package/es/im/IMReplyBubble/css/cssJSLogic.js +0 -10
- package/es/im/IMTextBubble/css/IMTextBubble.module.css +0 -1
- package/es/im/IMTextBubble/css/cssJSLogic.js +0 -10
- package/es/im/IMVideoBubble/IMVideoBubble.js +0 -62
- package/es/im/IMVideoBubble/css/IMVideoBubble.module.css +0 -1
- package/es/im/IMVideoBubble/css/cssJSLogic.js +0 -10
- package/es/im/IMVideoBubble/index.js +0 -1
- package/es/im/IMVideoBubble/props/defaultProps.js +0 -11
- package/es/im/IMVideoBubble/props/propTypes.js +0 -17
- package/es/unused/AvatarSpace/AvatarSpace.js +0 -40
- package/es/unused/AvatarSpace/css/AvatarSpace.module.css +0 -1
- package/es/unused/AvatarSpace/css/cssJSLogic.js +0 -15
- package/es/unused/AvatarSpace/index.js +0 -1
- package/es/unused/AvatarSpace/props/defaultProps.js +0 -10
- package/es/unused/AvatarSpace/props/propConstants.js +0 -7
- package/es/unused/AvatarSpace/props/propTypes.js +0 -8
- /package/es/{ArticleBubble → im/ArticleBubble}/index.js +0 -0
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor } from "./commonColorVariable.js";
|
|
3
|
-
import { imIntegrationIcon } from "../commonDeskColorVariable.js";
|
|
4
|
-
export default {
|
|
5
|
-
library: "chat_components",
|
|
6
|
-
variables: {
|
|
7
|
-
messageBubble: {
|
|
8
|
-
active_bg_color: bubbleActiveBgColor,
|
|
9
|
-
messageBox_footer_text_color: "#5a616f"
|
|
10
|
-
},
|
|
11
|
-
messageBox: {
|
|
12
|
-
incoming_bg_color: incomingBubbleBgColor,
|
|
13
|
-
outgoing_bg_color: "#fdf5ef",
|
|
14
|
-
bg_color: "#f1f7fe",
|
|
15
|
-
failed_bg_color: "#fcebeb",
|
|
16
|
-
text_color: messagetextColor
|
|
17
|
-
},
|
|
18
|
-
actionIcon: {
|
|
19
|
-
color: actionIconColor,
|
|
20
|
-
bg_color: "#fdf5ef",
|
|
21
|
-
border_color: "#f7d6b9"
|
|
22
|
-
},
|
|
23
|
-
messageStatus: {
|
|
24
|
-
send_color: messageStatusSendColor,
|
|
25
|
-
read_color: "#e57717",
|
|
26
|
-
failed_color: messageStatusFailedColor
|
|
27
|
-
},
|
|
28
|
-
attachmentBubble: {
|
|
29
|
-
bg_color: "#fff",
|
|
30
|
-
border_color: "#ebf0f5"
|
|
31
|
-
},
|
|
32
|
-
imTicketLink: {
|
|
33
|
-
color: "#e57717"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor } from "./commonColorVariable.js";
|
|
3
|
-
import { imIntegrationIcon } from "../commonDeskColorVariable.js";
|
|
4
|
-
export default {
|
|
5
|
-
library: "chat_components",
|
|
6
|
-
variables: {
|
|
7
|
-
messageBubble: {
|
|
8
|
-
active_bg_color: bubbleActiveBgColor,
|
|
9
|
-
messageBox_footer_text_color: "#5a616f"
|
|
10
|
-
},
|
|
11
|
-
messageBox: {
|
|
12
|
-
incoming_bg_color: incomingBubbleBgColor,
|
|
13
|
-
outgoing_bg_color: "#fdf3f3",
|
|
14
|
-
bg_color: "#f1f7fe",
|
|
15
|
-
failed_bg_color: "#fcebeb",
|
|
16
|
-
text_color: messagetextColor
|
|
17
|
-
},
|
|
18
|
-
actionIcon: {
|
|
19
|
-
color: actionIconColor,
|
|
20
|
-
bg_color: "#fdf3f3",
|
|
21
|
-
border_color: "#f8d7d7"
|
|
22
|
-
},
|
|
23
|
-
messageStatus: {
|
|
24
|
-
send_color: messageStatusSendColor,
|
|
25
|
-
read_color: "#de3535",
|
|
26
|
-
failed_color: messageStatusFailedColor
|
|
27
|
-
},
|
|
28
|
-
attachmentBubble: {
|
|
29
|
-
bg_color: "#fff",
|
|
30
|
-
border_color: "#ebf0f5"
|
|
31
|
-
},
|
|
32
|
-
imTicketLink: {
|
|
33
|
-
color: "#de3535"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor } from "./commonColorVariable.js";
|
|
3
|
-
import { imIntegrationIcon } from "../commonDeskColorVariable.js";
|
|
4
|
-
export default {
|
|
5
|
-
library: "chat_components",
|
|
6
|
-
variables: {
|
|
7
|
-
messageBubble: {
|
|
8
|
-
active_bg_color: bubbleActiveBgColor,
|
|
9
|
-
messageBox_footer_text_color: "#5a616f"
|
|
10
|
-
},
|
|
11
|
-
messageBox: {
|
|
12
|
-
incoming_bg_color: incomingBubbleBgColor,
|
|
13
|
-
outgoing_bg_color: "#fdf8e9",
|
|
14
|
-
bg_color: "#f1f7fe",
|
|
15
|
-
failed_bg_color: "#fcebeb",
|
|
16
|
-
text_color: messagetextColor
|
|
17
|
-
},
|
|
18
|
-
actionIcon: {
|
|
19
|
-
color: actionIconColor,
|
|
20
|
-
bg_color: "#fdf8e9",
|
|
21
|
-
border_color: "#f6e3a7"
|
|
22
|
-
},
|
|
23
|
-
imIntegrationIcon,
|
|
24
|
-
messageStatus: {
|
|
25
|
-
send_color: messageStatusSendColor,
|
|
26
|
-
read_color: "#b68c07",
|
|
27
|
-
failed_color: messageStatusFailedColor
|
|
28
|
-
},
|
|
29
|
-
attachmentBubble: {
|
|
30
|
-
bg_color: "#fff",
|
|
31
|
-
border_color: "#ebf0f5"
|
|
32
|
-
},
|
|
33
|
-
imTicketLink: {
|
|
34
|
-
color: "#b68c07"
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from "./commonColorVariable.js";
|
|
3
|
-
import { imIntegrationIcon, messagetextColor } from "../commonDeskColorVariable.js";
|
|
4
|
-
export default {
|
|
5
|
-
library: "chat_components",
|
|
6
|
-
variables: {
|
|
7
|
-
messageBubble: {
|
|
8
|
-
active_bg_color: bubbleActiveBgColor,
|
|
9
|
-
messageBox_footer_text_color: "#5a616f"
|
|
10
|
-
},
|
|
11
|
-
messageBox: {
|
|
12
|
-
incoming_bg_color: incomingBubbleBgColor,
|
|
13
|
-
outgoing_bg_color: outgoingBubbleBgColor,
|
|
14
|
-
bg_color: "#f1f7fe",
|
|
15
|
-
failed_bg_color: "#fcebeb",
|
|
16
|
-
text_color: messagetextColor
|
|
17
|
-
},
|
|
18
|
-
actionIcon: {
|
|
19
|
-
color: actionIconColor,
|
|
20
|
-
bg_color: "#252d37",
|
|
21
|
-
border_color: "#2c4664"
|
|
22
|
-
},
|
|
23
|
-
imIntegrationIcon,
|
|
24
|
-
messageStatus: {
|
|
25
|
-
send_color: messageStatusSendColor,
|
|
26
|
-
read_color: "#479dff",
|
|
27
|
-
failed_color: messageStatusFailedColor
|
|
28
|
-
},
|
|
29
|
-
attachmentBubbleInfo: {
|
|
30
|
-
fileName_color: "#e2e4e6",
|
|
31
|
-
fileSize_color: "#788190"
|
|
32
|
-
},
|
|
33
|
-
attachmentBubble: {
|
|
34
|
-
bg_color: "#212121",
|
|
35
|
-
border_color: "#161515"
|
|
36
|
-
},
|
|
37
|
-
imTicketLink: {
|
|
38
|
-
color: "#479dff"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export const incomingBubbleBgColor = '#2e2e2e';
|
|
2
|
-
export const outgoingBubbleBgColor = '#2e2e2e';
|
|
3
|
-
export const bubbleActiveBgColor = '#202821';
|
|
4
|
-
export const actionIconColor = '#e2e4e6';
|
|
5
|
-
export const messageStatusSendColor = '#61667a';
|
|
6
|
-
export const messageStatusFailedColor = '#de3535';
|
|
7
|
-
export const messagetextColor = "#e2e4e6";
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from "./commonColorVariable.js";
|
|
3
|
-
import { imIntegrationIcon, messagetextColor } from "../commonDeskColorVariable.js";
|
|
4
|
-
export default {
|
|
5
|
-
library: "chat_components",
|
|
6
|
-
variables: {
|
|
7
|
-
messageBubble: {
|
|
8
|
-
active_bg_color: bubbleActiveBgColor,
|
|
9
|
-
messageBox_footer_text_color: "#5a616f"
|
|
10
|
-
},
|
|
11
|
-
messageBox: {
|
|
12
|
-
incoming_bg_color: incomingBubbleBgColor,
|
|
13
|
-
outgoing_bg_color: outgoingBubbleBgColor,
|
|
14
|
-
bg_color: "#f1f7fe",
|
|
15
|
-
failed_bg_color: "#fcebeb",
|
|
16
|
-
text_color: messagetextColor
|
|
17
|
-
},
|
|
18
|
-
actionIcon: {
|
|
19
|
-
color: actionIconColor,
|
|
20
|
-
bg_color: "#252e27",
|
|
21
|
-
border_color: "#2c4732"
|
|
22
|
-
},
|
|
23
|
-
imIntegrationIcon,
|
|
24
|
-
messageStatus: {
|
|
25
|
-
send_color: messageStatusSendColor,
|
|
26
|
-
read_color: "#45a159",
|
|
27
|
-
failed_color: messageStatusFailedColor
|
|
28
|
-
},
|
|
29
|
-
attachmentBubbleInfo: {
|
|
30
|
-
fileName_color: "#e2e4e6",
|
|
31
|
-
fileSize_color: "#788190"
|
|
32
|
-
},
|
|
33
|
-
attachmentBubble: {
|
|
34
|
-
bg_color: "#212121",
|
|
35
|
-
border_color: "#161515"
|
|
36
|
-
},
|
|
37
|
-
imTicketLink: {
|
|
38
|
-
color: "#45a159"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from "./commonColorVariable.js";
|
|
3
|
-
import { imIntegrationIcon, messagetextColor } from "../commonDeskColorVariable.js";
|
|
4
|
-
export default {
|
|
5
|
-
library: "chat_components",
|
|
6
|
-
variables: {
|
|
7
|
-
messageBubble: {
|
|
8
|
-
active_bg_color: bubbleActiveBgColor,
|
|
9
|
-
messageBox_footer_text_color: "#5a616f"
|
|
10
|
-
},
|
|
11
|
-
messageBox: {
|
|
12
|
-
incoming_bg_color: incomingBubbleBgColor,
|
|
13
|
-
outgoing_bg_color: outgoingBubbleBgColor,
|
|
14
|
-
bg_color: "#f1f7fe",
|
|
15
|
-
failed_bg_color: "#fcebeb",
|
|
16
|
-
text_color: messagetextColor
|
|
17
|
-
},
|
|
18
|
-
actionIcon: {
|
|
19
|
-
color: actionIconColor,
|
|
20
|
-
bg_color: "#312821",
|
|
21
|
-
border_color: "#4d3421"
|
|
22
|
-
},
|
|
23
|
-
imIntegrationIcon,
|
|
24
|
-
messageStatus: {
|
|
25
|
-
send_color: messageStatusSendColor,
|
|
26
|
-
read_color: "#ff801f",
|
|
27
|
-
failed_color: messageStatusFailedColor
|
|
28
|
-
},
|
|
29
|
-
attachmentBubbleInfo: {
|
|
30
|
-
fileName_color: "#e2e4e6",
|
|
31
|
-
fileSize_color: "#788190"
|
|
32
|
-
},
|
|
33
|
-
attachmentBubble: {
|
|
34
|
-
bg_color: "#212121",
|
|
35
|
-
border_color: "#161515"
|
|
36
|
-
},
|
|
37
|
-
imTicketLink: {
|
|
38
|
-
color: "#ff801f"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from "./commonColorVariable.js";
|
|
3
|
-
import { imIntegrationIcon, messagetextColor } from "../commonDeskColorVariable.js";
|
|
4
|
-
export default {
|
|
5
|
-
library: "chat_components",
|
|
6
|
-
variables: {
|
|
7
|
-
messageBubble: {
|
|
8
|
-
active_bg_color: bubbleActiveBgColor,
|
|
9
|
-
messageBox_footer_text_color: "#5a616f"
|
|
10
|
-
},
|
|
11
|
-
messageBox: {
|
|
12
|
-
incoming_bg_color: incomingBubbleBgColor,
|
|
13
|
-
outgoing_bg_color: outgoingBubbleBgColor,
|
|
14
|
-
bg_color: "#f1f7fe",
|
|
15
|
-
failed_bg_color: "#fcebeb",
|
|
16
|
-
text_color: messagetextColor
|
|
17
|
-
},
|
|
18
|
-
actionIcon: {
|
|
19
|
-
color: actionIconColor,
|
|
20
|
-
bg_color: "#2f2424",
|
|
21
|
-
border_color: "#492A29"
|
|
22
|
-
},
|
|
23
|
-
imIntegrationIcon,
|
|
24
|
-
messageStatus: {
|
|
25
|
-
send_color: messageStatusSendColor,
|
|
26
|
-
read_color: "#e94f4f",
|
|
27
|
-
failed_color: messageStatusFailedColor
|
|
28
|
-
},
|
|
29
|
-
attachmentBubbleInfo: {
|
|
30
|
-
fileName_color: "#e2e4e6",
|
|
31
|
-
fileSize_color: "#788190"
|
|
32
|
-
},
|
|
33
|
-
attachmentBubble: {
|
|
34
|
-
bg_color: "#212121",
|
|
35
|
-
border_color: "#161515"
|
|
36
|
-
},
|
|
37
|
-
imTicketLink: {
|
|
38
|
-
color: "#e94f4f"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, messageStatusSendColor, messageStatusFailedColor, actionIconColor } from "./commonColorVariable.js";
|
|
3
|
-
import { imIntegrationIcon, messagetextColor } from "../commonDeskColorVariable.js";
|
|
4
|
-
export default {
|
|
5
|
-
library: "chat_components",
|
|
6
|
-
variables: {
|
|
7
|
-
messageBubble: {
|
|
8
|
-
active_bg_color: bubbleActiveBgColor,
|
|
9
|
-
messageBox_footer_text_color: "#5a616f"
|
|
10
|
-
},
|
|
11
|
-
messageBox: {
|
|
12
|
-
incoming_bg_color: incomingBubbleBgColor,
|
|
13
|
-
outgoing_bg_color: outgoingBubbleBgColor,
|
|
14
|
-
bg_color: "#f1f7fe",
|
|
15
|
-
failed_bg_color: "#fcebeb",
|
|
16
|
-
text_color: messagetextColor
|
|
17
|
-
},
|
|
18
|
-
actionIcon: {
|
|
19
|
-
color: actionIconColor,
|
|
20
|
-
bg_color: "#2e2922",
|
|
21
|
-
border_color: "#453925"
|
|
22
|
-
},
|
|
23
|
-
imIntegrationIcon,
|
|
24
|
-
messageStatus: {
|
|
25
|
-
send_color: messageStatusSendColor,
|
|
26
|
-
read_color: "#d79835",
|
|
27
|
-
failed_color: messageStatusFailedColor
|
|
28
|
-
},
|
|
29
|
-
attachmentBubbleInfo: {
|
|
30
|
-
fileName_color: "#e2e4e6",
|
|
31
|
-
fileSize_color: "#788190"
|
|
32
|
-
},
|
|
33
|
-
attachmentBubble: {
|
|
34
|
-
bg_color: "#212121",
|
|
35
|
-
border_color: "#161515"
|
|
36
|
-
},
|
|
37
|
-
imTicketLink: {
|
|
38
|
-
color: "#d79835"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/** ** Methods *** */
|
|
2
|
-
import { compileClassNames } from '@zohodesk/utils';
|
|
3
|
-
export default function cssJSLogic(props, style) {
|
|
4
|
-
const videoWrapperClass = compileClassNames({
|
|
5
|
-
[style.videoWrapper]: true
|
|
6
|
-
});
|
|
7
|
-
const videoClass = compileClassNames({
|
|
8
|
-
[style.video]: true
|
|
9
|
-
});
|
|
10
|
-
return {
|
|
11
|
-
videoWrapperClass,
|
|
12
|
-
videoClass
|
|
13
|
-
};
|
|
14
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<!-- Generator: Adobe Illustrator 21.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
-
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
-
viewBox="0 0 32 32" style="enable-background:new 0 0 32 32;" xml:space="preserve">
|
|
5
|
-
<style type="text/css">.st0{fill:#333333;}.st1{fill:#FF5650;}.st2{fill:#00A3FE;}</style>
|
|
6
|
-
<path d="M30.96,14.934c-0.031-0.435-0.397-0.765-0.843-0.731c-0.435,0.031-0.762,0.409-0.731,0.843
|
|
7
|
-
c0.153,2.137-0.199,4.226-1.044,6.209c-2.901,6.806-10.801,9.983-17.604,7.083c-6.806-2.9-9.984-10.798-7.083-17.605
|
|
8
|
-
c2.9-6.806,10.796-9.983,17.605-7.083c0.638,0.272,1.242,0.608,1.828,0.972l-1.911,1.879l6.825,1.891l-1.775-6.857l-1.991,1.957
|
|
9
|
-
c-0.75-0.492-1.53-0.941-2.359-1.294C14.271-1.04,5.444,2.509,2.203,10.117c-3.242,7.607,0.31,16.433,7.917,19.675
|
|
10
|
-
C12.01,30.597,14.002,31,15.996,31c1.895,0,3.79-0.364,5.6-1.092c3.715-1.495,6.627-4.349,8.197-8.033
|
|
11
|
-
C30.725,19.69,31.129,17.29,30.96,14.934z M20.603,17.895l0.812-0.812l-0.812-0.812l-0.812,0.812L20.603,17.895z M14.646,20.603
|
|
12
|
-
l0.812,0.812l2.031-2.031l-0.812-0.812L14.646,20.603z M16.541,15.458l-3.52,3.52l0.812,0.812l3.52-3.52L16.541,15.458z
|
|
13
|
-
M19.385,16.677l0.812-0.812l-0.812-0.812l-0.812,0.812L19.385,16.677z M18.166,15.458l0.812-0.812l-0.812-0.812l-0.812,0.812
|
|
14
|
-
L18.166,15.458z M16.948,14.24l0.812-0.812l-0.812-0.812l-0.812,0.812L16.948,14.24z M11.37,23.825l3.005,3.005l11.643-11.643
|
|
15
|
-
l-3.005-3.005l-0.406,0.406c-0.672,0.672-1.765,0.672-2.437,0c-0.672-0.672-0.672-1.765,0-2.437l0.406-0.406l-2.951-2.951
|
|
16
|
-
L5.982,18.437l2.951,2.951l0.406-0.406c0.672-0.672,1.765-0.672,2.437,0c0.672,0.672,0.672,1.765,0,2.437L11.37,23.825z
|
|
17
|
-
M8.974,19.804l-1.367-1.367L17.625,8.418l1.368,1.368c-0.737,1.114-0.615,2.634,0.365,3.614c0.981,0.981,2.5,1.102,3.614,0.365
|
|
18
|
-
l1.422,1.422L14.375,25.206l-1.422-1.422c0.737-1.115,0.615-2.634-0.365-3.615C11.608,19.189,10.088,19.067,8.974,19.804z
|
|
19
|
-
M14.917,13.834l-3.52,3.52l0.812,0.812l3.52-3.52L14.917,13.834z M16.541,12.209l-0.812-0.812l-0.812,0.812l0.812,0.812
|
|
20
|
-
L16.541,12.209z"/>
|
|
21
|
-
</svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?><svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M9.58,14.69s-.09,.01-.14,.01c.44-2.28,1.79-4.43,3.55-6.14v-.03c.14-.63-.46-.5-.61-.46-.03,.01-.04,.01-.04,.01-.54,.28-1.07,.6-1.58,.94-3.28,2.07-6,5.69-5.93,9.6-.04,.25,.12,1.51,.12,1.51,.36,2.24,2.29,3.95,4.62,3.95,2.6,0,4.7-2.1,4.7-4.7s-2.1-4.7-4.7-4.7Z"/><path d="M22.28,14.69s-.09,.01-.14,.01c.44-2.28,1.79-4.43,3.55-6.14v-.03c.14-.63-.46-.5-.61-.46-.03,.01-.04,.01-.04,.01-.54,.28-1.07,.6-1.58,.94-3.28,2.07-6,5.69-5.93,9.6-.04,.25,.12,1.51,.12,1.51,.36,2.24,2.29,3.95,4.62,3.95,2.6,0,4.7-2.1,4.7-4.7s-2.1-4.7-4.7-4.7Z"/></svg>
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Icon from '@zohodesk/icon/es/Icon/Icon';
|
|
3
|
-
export default function IconComponent(props) {
|
|
4
|
-
return /*#__PURE__*/React.createElement(Icon, props, /*#__PURE__*/React.createElement("svg", {
|
|
5
|
-
id: "Layer_1",
|
|
6
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
8
|
-
x: "0px",
|
|
9
|
-
y: "0px",
|
|
10
|
-
viewBox: "0 0 32 32",
|
|
11
|
-
style: {
|
|
12
|
-
"enableBackground": "new 0 0 32 32"
|
|
13
|
-
},
|
|
14
|
-
xmlSpace: "preserve"
|
|
15
|
-
}, " ", /*#__PURE__*/React.createElement("style", {
|
|
16
|
-
dangerouslySetInnerHTML: {
|
|
17
|
-
__html: `.st0{fill:#333333;}.st1{fill:#FF5650;}.st2{fill:#00A3FE;}`
|
|
18
|
-
}
|
|
19
|
-
}), " ", /*#__PURE__*/React.createElement("path", {
|
|
20
|
-
d: "M30.96,14.934c-0.031-0.435-0.397-0.765-0.843-0.731c-0.435,0.031-0.762,0.409-0.731,0.843 c0.153,2.137-0.199,4.226-1.044,6.209c-2.901,6.806-10.801,9.983-17.604,7.083c-6.806-2.9-9.984-10.798-7.083-17.605 c2.9-6.806,10.796-9.983,17.605-7.083c0.638,0.272,1.242,0.608,1.828,0.972l-1.911,1.879l6.825,1.891l-1.775-6.857l-1.991,1.957 c-0.75-0.492-1.53-0.941-2.359-1.294C14.271-1.04,5.444,2.509,2.203,10.117c-3.242,7.607,0.31,16.433,7.917,19.675 C12.01,30.597,14.002,31,15.996,31c1.895,0,3.79-0.364,5.6-1.092c3.715-1.495,6.627-4.349,8.197-8.033 C30.725,19.69,31.129,17.29,30.96,14.934z M20.603,17.895l0.812-0.812l-0.812-0.812l-0.812,0.812L20.603,17.895z M14.646,20.603 l0.812,0.812l2.031-2.031l-0.812-0.812L14.646,20.603z M16.541,15.458l-3.52,3.52l0.812,0.812l3.52-3.52L16.541,15.458z M19.385,16.677l0.812-0.812l-0.812-0.812l-0.812,0.812L19.385,16.677z M18.166,15.458l0.812-0.812l-0.812-0.812l-0.812,0.812 L18.166,15.458z M16.948,14.24l0.812-0.812l-0.812-0.812l-0.812,0.812L16.948,14.24z M11.37,23.825l3.005,3.005l11.643-11.643 l-3.005-3.005l-0.406,0.406c-0.672,0.672-1.765,0.672-2.437,0c-0.672-0.672-0.672-1.765,0-2.437l0.406-0.406l-2.951-2.951 L5.982,18.437l2.951,2.951l0.406-0.406c0.672-0.672,1.765-0.672,2.437,0c0.672,0.672,0.672,1.765,0,2.437L11.37,23.825z M8.974,19.804l-1.367-1.367L17.625,8.418l1.368,1.368c-0.737,1.114-0.615,2.634,0.365,3.614c0.981,0.981,2.5,1.102,3.614,0.365 l1.422,1.422L14.375,25.206l-1.422-1.422c0.737-1.115,0.615-2.634-0.365-3.615C11.608,19.189,10.088,19.067,8.974,19.804z M14.917,13.834l-3.52,3.52l0.812,0.812l3.52-3.52L14.917,13.834z M16.541,12.209l-0.812-0.812l-0.812,0.812l0.812,0.812 L16.541,12.209z",
|
|
21
|
-
className: "path-0"
|
|
22
|
-
}), " "));
|
|
23
|
-
}
|
|
24
|
-
IconComponent.propTypes = Icon.propTypes;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ConvertTicket } from "./ConvertTicket";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Icon from '@zohodesk/icon/es/Icon/Icon';
|
|
3
|
-
export default function IconComponent(props) {
|
|
4
|
-
return /*#__PURE__*/React.createElement(Icon, props, /*#__PURE__*/React.createElement("svg", {
|
|
5
|
-
id: "Layer_1",
|
|
6
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
-
viewBox: "0 0 32 32"
|
|
8
|
-
}, " ", /*#__PURE__*/React.createElement("path", {
|
|
9
|
-
d: "M9.58,14.69s-.09,.01-.14,.01c.44-2.28,1.79-4.43,3.55-6.14v-.03c.14-.63-.46-.5-.61-.46-.03,.01-.04,.01-.04,.01-.54,.28-1.07,.6-1.58,.94-3.28,2.07-6,5.69-5.93,9.6-.04,.25,.12,1.51,.12,1.51,.36,2.24,2.29,3.95,4.62,3.95,2.6,0,4.7-2.1,4.7-4.7s-2.1-4.7-4.7-4.7Z",
|
|
10
|
-
className: "path-0"
|
|
11
|
-
}), " ", /*#__PURE__*/React.createElement("path", {
|
|
12
|
-
d: "M22.28,14.69s-.09,.01-.14,.01c.44-2.28,1.79-4.43,3.55-6.14v-.03c.14-.63-.46-.5-.61-.46-.03,.01-.04,.01-.04,.01-.54,.28-1.07,.6-1.58,.94-3.28,2.07-6,5.69-5.93,9.6-.04,.25,.12,1.51,.12,1.51,.36,2.24,2.29,3.95,4.62,3.95,2.6,0,4.7-2.1,4.7-4.7s-2.1-4.7-4.7-4.7Z",
|
|
13
|
-
className: "path-1"
|
|
14
|
-
}), " "));
|
|
15
|
-
}
|
|
16
|
-
IconComponent.propTypes = Icon.propTypes;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/* eslint-disable react/jsx-no-bind */
|
|
2
|
-
/* eslint-disable max-len */
|
|
3
|
-
|
|
4
|
-
/** ** Libraries *** */
|
|
5
|
-
import React from 'react';
|
|
6
|
-
|
|
7
|
-
/** ** Hooks *** */
|
|
8
|
-
import useMergeStyle from '@zohodesk/hooks/es/utils/useMergeStyle';
|
|
9
|
-
|
|
10
|
-
/** ** Constants *** */
|
|
11
|
-
import imArticleBubbleDefaultProps from './props/defaultProps';
|
|
12
|
-
import imArticleBubblePropTypes from './props/propTypes';
|
|
13
|
-
|
|
14
|
-
/** ** Methods *** */
|
|
15
|
-
import renderHandler from '@zohoim/chat-components-utils/es/common/renderHandler';
|
|
16
|
-
import cssJSLogic from './css/cssJSLogic';
|
|
17
|
-
|
|
18
|
-
/** ** Styles *** */
|
|
19
|
-
import style from './css/IMArticleBubble.module.css';
|
|
20
|
-
import useIMArticleBubble from '@zohoim/chat-components-hooks/es/im/IMArticleBubble/useIMArticleBubble';
|
|
21
|
-
import ArticleBubble from '../../ArticleBubble/ArticleBubble';
|
|
22
|
-
export default function IMArticleBubble(props) {
|
|
23
|
-
const {
|
|
24
|
-
customStyle,
|
|
25
|
-
articleCustomStyle,
|
|
26
|
-
articleDetails,
|
|
27
|
-
articleShareI18N
|
|
28
|
-
} = props;
|
|
29
|
-
|
|
30
|
-
/* External customization */
|
|
31
|
-
const newStyle = useMergeStyle(style, customStyle);
|
|
32
|
-
/* CSS classnames added based on logic */
|
|
33
|
-
const {
|
|
34
|
-
imArticleBubbleClass
|
|
35
|
-
} = cssJSLogic(props, newStyle);
|
|
36
|
-
const {
|
|
37
|
-
articleURL,
|
|
38
|
-
summary,
|
|
39
|
-
title
|
|
40
|
-
} = useIMArticleBubble({
|
|
41
|
-
articleDetails
|
|
42
|
-
});
|
|
43
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
44
|
-
className: imArticleBubbleClass
|
|
45
|
-
}, /*#__PURE__*/React.createElement(ArticleBubble, {
|
|
46
|
-
bubbleInfo: articleShareI18N,
|
|
47
|
-
customStyle: articleCustomStyle,
|
|
48
|
-
articleURL: articleURL,
|
|
49
|
-
summary: summary,
|
|
50
|
-
title: title
|
|
51
|
-
}));
|
|
52
|
-
}
|
|
53
|
-
IMArticleBubble.propTypes = imArticleBubblePropTypes;
|
|
54
|
-
IMArticleBubble.defaultProps = imArticleBubbleDefaultProps;
|
|
55
|
-
IMArticleBubble.displayName = 'IMArticleBubble';
|
|
File without changes
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/** ** Methods *** */
|
|
2
|
-
import { compileClassNames } from '@zohodesk/utils';
|
|
3
|
-
export default function cssJSLogic(props, style) {
|
|
4
|
-
const imArticleBubbleClass = compileClassNames({
|
|
5
|
-
[style.imArticleBubble]: true
|
|
6
|
-
});
|
|
7
|
-
return {
|
|
8
|
-
imArticleBubbleClass
|
|
9
|
-
};
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as IMArticleBubble } from './IMArticleBubble';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/** ** Constants *** */
|
|
2
|
-
import { dummyObject } from '@zohoim/chat-components-utils/es/constants';
|
|
3
|
-
const imArticleBubbleDefaultProps = {
|
|
4
|
-
customStyle: dummyObject,
|
|
5
|
-
articleCustomStyle: dummyObject,
|
|
6
|
-
articleDetails: dummyObject
|
|
7
|
-
};
|
|
8
|
-
export default imArticleBubbleDefaultProps;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/** ** Libraries *** */
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
const imArticleBubblePropTypes = {
|
|
4
|
-
customStyle: PropTypes.object,
|
|
5
|
-
articleCustomStyle: PropTypes.object,
|
|
6
|
-
articleDetails: PropTypes.shape({
|
|
7
|
-
createdTime: PropTypes.string,
|
|
8
|
-
id: PropTypes.string,
|
|
9
|
-
summary: PropTypes.string,
|
|
10
|
-
title: PropTypes.string,
|
|
11
|
-
webUrl: PropTypes.string
|
|
12
|
-
})
|
|
13
|
-
};
|
|
14
|
-
export default imArticleBubblePropTypes;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/* eslint-disable react/jsx-no-bind */
|
|
2
|
-
/* eslint-disable max-len */
|
|
3
|
-
|
|
4
|
-
/** ** Libraries *** */
|
|
5
|
-
import React from 'react';
|
|
6
|
-
|
|
7
|
-
/** ** Hooks *** */
|
|
8
|
-
import useMergeStyle from '@zohodesk/hooks/es/utils/useMergeStyle';
|
|
9
|
-
|
|
10
|
-
/** ** Constants *** */
|
|
11
|
-
import imAttachmentBubbleDefaultProps from './props/defaultProps';
|
|
12
|
-
import imAttachmentBubblePropTypes from './props/propTypes';
|
|
13
|
-
|
|
14
|
-
/** ** Methods *** */
|
|
15
|
-
import renderHandler from '@zohoim/chat-components-utils/es/common/renderHandler';
|
|
16
|
-
import cssJSLogic from './css/cssJSLogic';
|
|
17
|
-
|
|
18
|
-
/** ** Styles *** */
|
|
19
|
-
import style from './css/IMAttachmentBubble.module.css';
|
|
20
|
-
import AttachmentBubble from '../../AttachmentBubble/AttachmentBubble';
|
|
21
|
-
import IMAttachmentIcon from '../IMAttachmentIcon/IMAttachmentIcon';
|
|
22
|
-
import useIMAttachmentBubble from '@zohoim/chat-components-hooks/es/im/IMAttachmentBubble/useIMAttachmentBubble';
|
|
23
|
-
export default function IMAttachmentBubble(props) {
|
|
24
|
-
const {
|
|
25
|
-
customStyle,
|
|
26
|
-
iconCustomStyle,
|
|
27
|
-
bubbleCustomStyle,
|
|
28
|
-
bubbleInfoCustomStyle,
|
|
29
|
-
attachmentDetails
|
|
30
|
-
} = props;
|
|
31
|
-
|
|
32
|
-
/* External customization */
|
|
33
|
-
const newStyle = useMergeStyle(style, customStyle);
|
|
34
|
-
/* CSS classnames added based on logic */
|
|
35
|
-
const {
|
|
36
|
-
imAttachmentBubbleClass
|
|
37
|
-
} = cssJSLogic(props, newStyle);
|
|
38
|
-
const {
|
|
39
|
-
formattedFileSize: fileSize,
|
|
40
|
-
fileName,
|
|
41
|
-
fileFormat
|
|
42
|
-
} = useIMAttachmentBubble({
|
|
43
|
-
attachmentDetails
|
|
44
|
-
});
|
|
45
|
-
function renderFileTypeIcon() {
|
|
46
|
-
return /*#__PURE__*/React.createElement(IMAttachmentIcon, {
|
|
47
|
-
customStyle: iconCustomStyle,
|
|
48
|
-
fileFormat: fileFormat
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
52
|
-
className: imAttachmentBubbleClass
|
|
53
|
-
}, /*#__PURE__*/React.createElement(AttachmentBubble, {
|
|
54
|
-
customStyle: bubbleCustomStyle,
|
|
55
|
-
renderFileTypeIcon: renderFileTypeIcon,
|
|
56
|
-
fileName: fileName,
|
|
57
|
-
fileSize: fileSize,
|
|
58
|
-
bubbleInfoCustomStyle: bubbleInfoCustomStyle
|
|
59
|
-
}));
|
|
60
|
-
}
|
|
61
|
-
IMAttachmentBubble.propTypes = imAttachmentBubblePropTypes;
|
|
62
|
-
IMAttachmentBubble.defaultProps = imAttachmentBubbleDefaultProps;
|
|
63
|
-
IMAttachmentBubble.displayName = 'IMAttachmentBubble';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/** ** Methods *** */
|
|
2
|
-
import { compileClassNames } from '@zohodesk/utils';
|
|
3
|
-
export default function cssJSLogic(props, style) {
|
|
4
|
-
const imAttachmentBubbleClass = compileClassNames({
|
|
5
|
-
[style.imAttachmentBubble]: true
|
|
6
|
-
});
|
|
7
|
-
return {
|
|
8
|
-
imAttachmentBubbleClass
|
|
9
|
-
};
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as IMAttachmentBubble } from './IMAttachmentBubble';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/** ** Constants *** */
|
|
2
|
-
import { dummyObject } from '@zohoim/chat-components-utils/es/constants';
|
|
3
|
-
const imAttachmentBubbleDefaultProps = {
|
|
4
|
-
customStyle: dummyObject,
|
|
5
|
-
bubbleCustomStyle: dummyObject,
|
|
6
|
-
bubbleInfoCustomStyle: dummyObject,
|
|
7
|
-
iconCustomStyle: dummyObject,
|
|
8
|
-
attachmentDetails: dummyObject
|
|
9
|
-
};
|
|
10
|
-
export default imAttachmentBubbleDefaultProps;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/** ** Libraries *** */
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
const imAttachmentBubblePropTypes = {
|
|
4
|
-
customStyle: PropTypes.object,
|
|
5
|
-
iconCustomStyle: PropTypes.object,
|
|
6
|
-
bubbleCustomStyle: PropTypes.object,
|
|
7
|
-
bubbleInfoCustomStyle: PropTypes.object,
|
|
8
|
-
attachmentDetails: PropTypes.shape({
|
|
9
|
-
name: PropTypes.string,
|
|
10
|
-
size: PropTypes.string,
|
|
11
|
-
type: PropTypes.string,
|
|
12
|
-
url: PropTypes.string,
|
|
13
|
-
id: PropTypes.string
|
|
14
|
-
})
|
|
15
|
-
};
|
|
16
|
-
export default imAttachmentBubblePropTypes;
|