@zohoim/chat-components 1.1.3-beta.1 → 1.1.4
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/README.md +4 -0
- package/es/ActionIcon/ActionIcon.js +4 -5
- package/es/ActionIconWrapper/ActionIconWrapper.js +5 -1
- package/es/ActionIconWrapper/css/ActionIconWrapper.module.css +2 -2
- package/es/AttachmentBubble/AttachmentBubble.js +8 -9
- package/es/AttachmentBubble/css/AttachmentBubble.module.css +1 -2
- package/es/AttachmentBubbleInfo/css/AttachmentBubbleInfo.module.css +2 -2
- package/es/AttachmentHandler/AttachmentHandler.js +7 -5
- package/es/AttachmentPreview/AttachmentPreview.js +7 -7
- package/es/AttachmentPreviewBody/AttachmentPreviewBody.js +7 -7
- package/es/AttachmentPreviewHeader/AttachmentPreviewHeader.js +7 -7
- package/es/AudioBubble/AudioBubble.js +8 -9
- package/es/Emoji/Emoji.js +5 -1
- package/es/Emoji/css/Emoji.module.css +4 -4
- package/es/Emoji/css/cssJSLogic.js +0 -0
- package/es/Emoji/index.js +0 -0
- package/es/Emoji/props/defaultProps.js +0 -0
- package/es/Emoji/props/propTypes.js +0 -0
- package/es/EmojiPopup/EmojiPopup.js +13 -9
- package/es/EmojiPopup/css/EmojiPopup.module.css +0 -5
- package/es/Emojis/Emojis.js +10 -9
- package/es/Emojis/index.js +0 -0
- package/es/Emojis/props/defaultProps.js +0 -0
- package/es/Emojis/props/propTypes.js +0 -0
- package/es/EmojisEmptyState/EmojisEmptyState.js +0 -0
- package/es/EmojisEmptyState/css/EmojisEmptyState.module.css +0 -0
- package/es/EmojisEmptyState/index.js +0 -0
- package/es/EmojisEmptyState/props/defaultProps.js +0 -0
- package/es/EmojisEmptyState/props/propTypes.js +0 -0
- package/es/EmojisFooter/EmojisFooter.js +4 -5
- package/es/EmojisFooter/css/EmojisFooter.module.css +1 -2
- package/es/EmojisFooter/index.js +0 -0
- package/es/EmojisFooter/props/defaultProps.js +0 -0
- package/es/EmojisFooter/props/propTypes.js +0 -0
- package/es/EmojisHeader/EmojisHeader.js +4 -5
- package/es/EmojisHeader/css/EmojisHeader.module.css +0 -0
- package/es/EmojisHeader/index.js +0 -0
- package/es/EmojisHeader/props/defaultProps.js +0 -0
- package/es/EmojisHeader/props/propTypes.js +0 -0
- package/es/EmojisList/EmojisList.js +6 -6
- package/es/EmojisList/css/EmojisList.module.css +3 -3
- package/es/EmojisList/css/cssJSLogic.js +0 -0
- package/es/EmojisList/index.js +0 -0
- package/es/EmojisList/props/defaultProps.js +0 -0
- package/es/EmojisList/props/propTypes.js +0 -0
- package/es/ImageBubble/css/ImageBubble.module.css +1 -1
- package/es/MediaBubbleWrapper/MediaBubbleWrapper.js +4 -6
- package/es/Message/Message.js +16 -9
- package/es/MessageAction/MessageAction.js +11 -10
- package/es/MessageActions/MessageActions.js +16 -12
- package/es/MessageActions/props/propTypes.js +2 -1
- package/es/MessageActionsWrapper/MessageActionsWrapper.js +4 -5
- package/es/MessageBox/css/MessageBox.module.css +5 -5
- package/es/MessageBubble/MessageBubble.js +20 -4
- package/es/MessageBubble/css/MessageBubble.module.css +3 -3
- package/es/MoreActionItem/MoreActionItem.js +4 -0
- package/es/MoreActionItem/css/MoreActionItem.module.css +2 -2
- package/es/ReplyBubble/ReplyBubble.js +11 -10
- package/es/TextBubble/TextBubble.js +5 -2
- package/es/TextBubble/css/TextBubble.module.css +1 -0
- package/es/Theme/ThemeWrapper.js +4 -6
- package/es/Theme/TooltipWrapper.js +4 -5
- package/es/VideoBubble/VideoBubble.js +8 -9
- package/es/icons/iconSrc/attachments/Audio.js +2 -1
- package/es/icons/iconSrc/attachments/Code.js +2 -1
- package/es/icons/iconSrc/attachments/Image.js +2 -1
- package/es/icons/iconSrc/attachments/Pdf.js +2 -1
- package/es/icons/iconSrc/attachments/Ppt.js +2 -1
- package/es/icons/iconSrc/attachments/Text.js +2 -1
- package/es/icons/iconSrc/attachments/Txt.js +2 -1
- package/es/icons/iconSrc/attachments/Unknown.js +2 -1
- package/es/icons/iconSrc/attachments/Video.js +2 -1
- package/es/icons/iconSrc/attachments/Xls.js +2 -1
- package/es/icons/iconSrc/attachments/Zip.js +2 -1
- package/es/icons/iconSrc/common/AlertTriangle.js +2 -1
- package/es/icons/iconSrc/common/Article.js +2 -1
- package/es/icons/iconSrc/common/Reply.js +2 -1
- package/es/icons/iconSrc/messageStatus/Clock.js +2 -1
- package/es/icons/iconSrc/messageStatus/DoubleTick.js +2 -1
- package/es/icons/iconSrc/messageStatus/Failed.js +2 -1
- package/es/icons/iconSrc/messageStatus/Tick.js +2 -1
- package/es/im/IMAttachmentHandler/IMAttachmentHandler.js +4 -5
- package/es/im/IMIntegrationIcon/css/IMIntegrationIcon.module.css +4 -4
- package/es/im/IMMessage/IMMessage.js +20 -17
- package/es/im/IMMessage/css/IMMessage.module.css +3 -3
- package/es/im/IMMessageContent/IMMessageContent.js +30 -18
- package/es/im/IMMessageMeta/IMMessageMeta.js +4 -5
- package/es/im/IMMessageMeta/css/IMMessageMeta.module.css +3 -3
- package/es/im/IMMessageMetaInfo/css/IMMessageMetaInfo.module.css +2 -2
- package/es/im/IMReplyBubble/IMReplyBubble.js +4 -6
- package/es/im/IMTextBubble/IMTextBubble.js +4 -6
- package/es/im/ReplyComposer/ReplyComposer.js +14 -12
- package/es/im/ReplyEditor/ReplyEditor.js +4 -5
- package/es/im/ReplyEditor/css/ReplyEditor.module.css +4 -0
- package/es/im/ReplyEditorExtensions/ReplyEditorExtensions.js +12 -11
- package/es/im/ReplyEditorSuggestions/ReplyEditorSuggestions.js +9 -8
- package/es/im/ReplyEditorSuggestionsPopup/ReplyEditorSuggestionsPopup.js +4 -5
- package/es/rte/Editor/css/Editor.module.css +0 -0
- package/es/rte/Editor/index.js +0 -0
- package/es/rte/Editor/props/defaultProps.js +0 -0
- package/es/rte/Editor/props/propTypes.js +0 -0
- package/package.json +27 -45
- package/lib/ActionIcon/ActionIcon.js +0 -97
- package/lib/ActionIcon/css/ActionIcon.module.css +0 -8
- package/lib/ActionIcon/index.js +0 -15
- package/lib/ActionIcon/props/defaultProps.js +0 -17
- package/lib/ActionIcon/props/propTypes.js +0 -30
- package/lib/ActionIconWrapper/ActionIconWrapper.js +0 -81
- package/lib/ActionIconWrapper/css/ActionIconWrapper.module.css +0 -32
- package/lib/ActionIconWrapper/css/cssJSLogic.js +0 -21
- package/lib/ActionIconWrapper/index.js +0 -15
- package/lib/ActionIconWrapper/props/defaultProps.js +0 -15
- package/lib/ActionIconWrapper/props/propTypes.js +0 -24
- package/lib/AttachmentBubble/AttachmentBubble.js +0 -93
- package/lib/AttachmentBubble/css/AttachmentBubble.module.css +0 -56
- package/lib/AttachmentBubble/css/cssJSLogic.js +0 -22
- package/lib/AttachmentBubble/index.js +0 -15
- package/lib/AttachmentBubble/props/defaultProps.js +0 -17
- package/lib/AttachmentBubble/props/propTypes.js +0 -30
- package/lib/AttachmentBubbleInfo/AttachmentBubbleInfo.js +0 -63
- package/lib/AttachmentBubbleInfo/css/AttachmentBubbleInfo.module.css +0 -39
- package/lib/AttachmentBubbleInfo/css/cssJSLogic.js +0 -20
- package/lib/AttachmentBubbleInfo/index.js +0 -15
- package/lib/AttachmentBubbleInfo/props/defaultProps.js +0 -15
- package/lib/AttachmentBubbleInfo/props/propTypes.js +0 -20
- package/lib/AttachmentHandler/AttachmentHandler.js +0 -101
- package/lib/AttachmentHandler/css/AttachmentHandler.module.css +0 -27
- package/lib/AttachmentHandler/index.js +0 -15
- package/lib/AttachmentHandler/props/defaultProps.js +0 -19
- package/lib/AttachmentHandler/props/propTypes.js +0 -28
- package/lib/AttachmentIcon/AttachmentIcon.js +0 -84
- package/lib/AttachmentIcon/css/AttachmentIcon.module.css +0 -8
- package/lib/AttachmentIcon/css/cssJSLogic.js +0 -20
- package/lib/AttachmentIcon/index.js +0 -15
- package/lib/AttachmentIcon/props/defaultProps.js +0 -17
- package/lib/AttachmentIcon/props/propTypes.js +0 -31
- package/lib/AttachmentIcon/utils/getAttachmentIconComponent.js +0 -78
- package/lib/AttachmentPreview/AttachmentPreview.js +0 -144
- package/lib/AttachmentPreview/css/AttachmentPreview.module.css +0 -39
- package/lib/AttachmentPreview/index.js +0 -15
- package/lib/AttachmentPreview/props/defaultProps.js +0 -18
- package/lib/AttachmentPreview/props/propTypes.js +0 -44
- package/lib/AttachmentPreviewBody/AttachmentPreviewBody.js +0 -120
- package/lib/AttachmentPreviewBody/css/AttachmentPreviewBody.module.css +0 -71
- package/lib/AttachmentPreviewBody/index.js +0 -15
- package/lib/AttachmentPreviewBody/props/defaultProps.js +0 -16
- package/lib/AttachmentPreviewBody/props/propTypes.js +0 -31
- package/lib/AttachmentPreviewHeader/AttachmentPreviewHeader.js +0 -94
- package/lib/AttachmentPreviewHeader/css/AttachmentPreviewHeader.module.css +0 -47
- package/lib/AttachmentPreviewHeader/index.js +0 -15
- package/lib/AttachmentPreviewHeader/props/defaultProps.js +0 -16
- package/lib/AttachmentPreviewHeader/props/propTypes.js +0 -27
- package/lib/Audio/Audio.js +0 -55
- package/lib/Audio/css/Audio.module.css +0 -7
- package/lib/Audio/index.js +0 -15
- package/lib/Audio/props/defaultProps.js +0 -15
- package/lib/Audio/props/propTypes.js +0 -19
- package/lib/AudioBubble/AudioBubble.js +0 -68
- package/lib/AudioBubble/css/AudioBubble.module.css +0 -4
- package/lib/AudioBubble/index.js +0 -15
- package/lib/AudioBubble/props/defaultProps.js +0 -16
- package/lib/AudioBubble/props/propTypes.js +0 -27
- package/lib/Emoji/Emoji.js +0 -87
- package/lib/Emoji/css/Emoji.module.css +0 -48
- package/lib/Emoji/css/cssJSLogic.js +0 -22
- package/lib/Emoji/index.js +0 -15
- package/lib/Emoji/props/defaultProps.js +0 -17
- package/lib/Emoji/props/propTypes.js +0 -27
- package/lib/EmojiPopup/EmojiPopup.js +0 -135
- package/lib/EmojiPopup/css/EmojiPopup.module.css +0 -55
- package/lib/EmojiPopup/index.js +0 -15
- package/lib/EmojiPopup/props/defaultProps.js +0 -20
- package/lib/EmojiPopup/props/propTypes.js +0 -33
- package/lib/Emojis/Emojis.js +0 -92
- package/lib/Emojis/index.js +0 -15
- package/lib/Emojis/props/defaultProps.js +0 -19
- package/lib/Emojis/props/propTypes.js +0 -31
- package/lib/EmojisEmptyState/EmojisEmptyState.js +0 -74
- package/lib/EmojisEmptyState/css/EmojisEmptyState.module.css +0 -18
- package/lib/EmojisEmptyState/index.js +0 -15
- package/lib/EmojisEmptyState/props/defaultProps.js +0 -18
- package/lib/EmojisEmptyState/props/propTypes.js +0 -19
- package/lib/EmojisFooter/EmojisFooter.js +0 -87
- package/lib/EmojisFooter/css/EmojisFooter.module.css +0 -40
- package/lib/EmojisFooter/index.js +0 -15
- package/lib/EmojisFooter/props/defaultProps.js +0 -16
- package/lib/EmojisFooter/props/propTypes.js +0 -23
- package/lib/EmojisHeader/EmojisHeader.js +0 -74
- package/lib/EmojisHeader/css/EmojisHeader.module.css +0 -36
- package/lib/EmojisHeader/index.js +0 -15
- package/lib/EmojisHeader/props/defaultProps.js +0 -17
- package/lib/EmojisHeader/props/propTypes.js +0 -24
- package/lib/EmojisList/EmojisList.js +0 -143
- package/lib/EmojisList/css/EmojisList.module.css +0 -50
- package/lib/EmojisList/css/cssJSLogic.js +0 -27
- package/lib/EmojisList/index.js +0 -15
- package/lib/EmojisList/props/defaultProps.js +0 -19
- package/lib/EmojisList/props/propTypes.js +0 -31
- package/lib/Fonts/puviFont.module.css +0 -62
- package/lib/ImageBubble/ImageBubble.js +0 -98
- package/lib/ImageBubble/css/ImageBubble.module.css +0 -63
- package/lib/ImageBubble/css/cssJSLogic.js +0 -21
- package/lib/ImageBubble/index.js +0 -15
- package/lib/ImageBubble/props/defaultProps.js +0 -15
- package/lib/ImageBubble/props/propTypes.js +0 -24
- package/lib/LazyLoadImage/LazyLoadImage.js +0 -54
- package/lib/LazyLoadImage/css/LazyLoadImage.module.css +0 -5
- package/lib/LazyLoadImage/index.js +0 -15
- package/lib/LazyLoadImage/props/defaultProps.js +0 -15
- package/lib/LazyLoadImage/props/propTypes.js +0 -19
- package/lib/LocationBubble/LocationBubble.js +0 -77
- package/lib/LocationBubble/css/LocationBubble.module.css +0 -57
- package/lib/LocationBubble/css/cssJSLogic.js +0 -20
- package/lib/LocationBubble/images/location.png +0 -0
- package/lib/LocationBubble/index.js +0 -15
- package/lib/LocationBubble/props/defaultProps.js +0 -15
- package/lib/LocationBubble/props/propTypes.js +0 -19
- package/lib/MediaBubbleWrapper/MediaBubbleWrapper.js +0 -76
- package/lib/MediaBubbleWrapper/css/MediaBubbleWrapper.module.css +0 -7
- package/lib/MediaBubbleWrapper/index.js +0 -15
- package/lib/MediaBubbleWrapper/props/defaultProps.js +0 -16
- package/lib/MediaBubbleWrapper/props/propTypes.js +0 -28
- package/lib/Message/Message.js +0 -157
- package/lib/Message/index.js +0 -15
- package/lib/Message/props/defaultProps.js +0 -22
- package/lib/Message/props/propTypes.js +0 -55
- package/lib/MessageAction/MessageAction.js +0 -77
- package/lib/MessageAction/index.js +0 -15
- package/lib/MessageAction/props/defaultProps.js +0 -17
- package/lib/MessageAction/props/propTypes.js +0 -34
- package/lib/MessageActions/MessageActions.js +0 -135
- package/lib/MessageActions/css/MessageActions.module.css +0 -24
- package/lib/MessageActions/index.js +0 -15
- package/lib/MessageActions/props/defaultProps.js +0 -20
- package/lib/MessageActions/props/propTypes.js +0 -38
- package/lib/MessageActionsMore/MessageActionsMore.js +0 -128
- package/lib/MessageActionsMore/css/MessageActionsMore.module.css +0 -24
- package/lib/MessageActionsMore/index.js +0 -15
- package/lib/MessageActionsMore/props/defaultProps.js +0 -18
- package/lib/MessageActionsMore/props/propTypes.js +0 -29
- package/lib/MessageActionsWrapper/MessageActionsWrapper.js +0 -91
- package/lib/MessageActionsWrapper/css/MessageActionsWrapper.module.css +0 -7
- package/lib/MessageActionsWrapper/index.js +0 -15
- package/lib/MessageActionsWrapper/props/defaultProps.js +0 -19
- package/lib/MessageActionsWrapper/props/propTypes.js +0 -27
- package/lib/MessageAvatar/MessageAvatar.js +0 -64
- package/lib/MessageAvatar/css/MessageAvatar.module.css +0 -23
- package/lib/MessageAvatar/index.js +0 -15
- package/lib/MessageAvatar/props/defaultProps.js +0 -16
- package/lib/MessageAvatar/props/propTypes.js +0 -24
- package/lib/MessageBox/MessageBox.js +0 -82
- package/lib/MessageBox/css/MessageBox.module.css +0 -56
- package/lib/MessageBox/css/cssJSLogic.js +0 -22
- package/lib/MessageBox/index.js +0 -15
- package/lib/MessageBox/props/defaultProps.js +0 -15
- package/lib/MessageBox/props/propTypes.js +0 -24
- package/lib/MessageBubble/MessageBubble.js +0 -153
- package/lib/MessageBubble/css/MessageBubble.module.css +0 -101
- package/lib/MessageBubble/css/cssJSLogic.js +0 -38
- package/lib/MessageBubble/index.js +0 -15
- package/lib/MessageBubble/props/defaultProps.js +0 -22
- package/lib/MessageBubble/props/propTypes.js +0 -30
- package/lib/MessageStatus/MessageStatus.js +0 -88
- package/lib/MessageStatus/css/MessageStatus.module.css +0 -17
- package/lib/MessageStatus/css/cssJSLogic.js +0 -33
- package/lib/MessageStatus/index.js +0 -15
- package/lib/MessageStatus/props/defaultProps.js +0 -15
- package/lib/MessageStatus/props/propTypes.js +0 -24
- package/lib/MoreActionItem/MoreActionItem.js +0 -94
- package/lib/MoreActionItem/css/MoreActionItem.module.css +0 -27
- package/lib/MoreActionItem/index.js +0 -15
- package/lib/MoreActionItem/props/defaultProps.js +0 -16
- package/lib/MoreActionItem/props/propTypes.js +0 -25
- package/lib/ReplyBubble/ReplyBubble.js +0 -136
- package/lib/ReplyBubble/css/ReplyBubble.module.css +0 -23
- package/lib/ReplyBubble/css/cssJSLogic.js +0 -20
- package/lib/ReplyBubble/index.js +0 -15
- package/lib/ReplyBubble/props/defaultProps.js +0 -17
- package/lib/ReplyBubble/props/propTypes.js +0 -39
- package/lib/ReplyBubbleContent/ReplyBubbleContent.js +0 -77
- package/lib/ReplyBubbleContent/css/ReplyBubbleContent.module.css +0 -75
- package/lib/ReplyBubbleContent/css/cssJSLogic.js +0 -20
- package/lib/ReplyBubbleContent/index.js +0 -15
- package/lib/ReplyBubbleContent/props/defaultProps.js +0 -15
- package/lib/ReplyBubbleContent/props/propTypes.js +0 -22
- package/lib/ReplyBubbleHeader/ReplyBubbleHeader.js +0 -97
- package/lib/ReplyBubbleHeader/css/ReplyBubbleHeader.module.css +0 -44
- package/lib/ReplyBubbleHeader/css/cssJSLogic.js +0 -18
- package/lib/ReplyBubbleHeader/index.js +0 -15
- package/lib/ReplyBubbleHeader/props/defaultProps.js +0 -16
- package/lib/ReplyBubbleHeader/props/propTypes.js +0 -24
- package/lib/TextBubble/TextBubble.js +0 -69
- package/lib/TextBubble/css/TextBubble.module.css +0 -35
- package/lib/TextBubble/css/cssJSLogic.js +0 -22
- package/lib/TextBubble/index.js +0 -15
- package/lib/TextBubble/props/defaultProps.js +0 -15
- package/lib/TextBubble/props/propTypes.js +0 -21
- package/lib/Theme/ThemeAssets.js +0 -182
- package/lib/Theme/ThemeWrapper.js +0 -130
- package/lib/Theme/TooltipWrapper.js +0 -97
- package/lib/Theme/css/TooltipWrapper.module.css +0 -10
- package/lib/Theme/index.js +0 -15
- package/lib/Theme/props/defaultProps.js +0 -20
- package/lib/Theme/props/propTypes.js +0 -26
- package/lib/Theme/utils/combineConfigurations.js +0 -31
- package/lib/Theme/utils/flatVariables.js +0 -21
- package/lib/Theme/utils/getCustomizedCssVariables.js +0 -29
- package/lib/Theme/utils/getThemeConfigurations.js +0 -28
- package/lib/Theme/utils/getWrapperDivProps.js +0 -23
- package/lib/Video/Video.js +0 -55
- package/lib/Video/css/Video.module.css +0 -5
- package/lib/Video/index.js +0 -15
- package/lib/Video/props/defaultProps.js +0 -15
- package/lib/Video/props/propTypes.js +0 -19
- package/lib/VideoBubble/VideoBubble.js +0 -77
- package/lib/VideoBubble/css/VideoBubble.module.css +0 -12
- package/lib/VideoBubble/css/cssJSLogic.js +0 -20
- package/lib/VideoBubble/index.js +0 -15
- package/lib/VideoBubble/props/defaultProps.js +0 -16
- package/lib/VideoBubble/props/propTypes.js +0 -28
- package/lib/constants/index.js +0 -18
- package/lib/constants/propConstants/editorPropConstants.js +0 -12
- package/lib/constants/propConstants/popupPropConstants.js +0 -10
- package/lib/css/common.module.css +0 -6
- package/lib/icons/create-icon-components.js +0 -199
- package/lib/icons/factory/attachments/audio.svg +0 -19
- package/lib/icons/factory/attachments/code.svg +0 -21
- package/lib/icons/factory/attachments/image.svg +0 -20
- package/lib/icons/factory/attachments/pdf.svg +0 -19
- package/lib/icons/factory/attachments/ppt.svg +0 -1
- package/lib/icons/factory/attachments/text.svg +0 -22
- package/lib/icons/factory/attachments/unknown.svg +0 -21
- package/lib/icons/factory/attachments/video.svg +0 -19
- package/lib/icons/factory/attachments/xls.svg +0 -1
- package/lib/icons/factory/attachments/zip.svg +0 -27
- package/lib/icons/factory/common/alertTriangle.svg +0 -5
- package/lib/icons/factory/common/article.svg +0 -4
- package/lib/icons/factory/common/reply.svg +0 -6
- package/lib/icons/factory/messageStatus/clock.svg +0 -7
- package/lib/icons/factory/messageStatus/doubleTick.svg +0 -1
- package/lib/icons/factory/messageStatus/failed.svg +0 -7
- package/lib/icons/factory/messageStatus/tick.svg +0 -1
- package/lib/icons/icon.template.js +0 -18
- package/lib/icons/iconSrc/attachments/Audio.js +0 -41
- package/lib/icons/iconSrc/attachments/Code.js +0 -47
- package/lib/icons/iconSrc/attachments/Image.js +0 -46
- package/lib/icons/iconSrc/attachments/Pdf.js +0 -41
- package/lib/icons/iconSrc/attachments/Ppt.js +0 -38
- package/lib/icons/iconSrc/attachments/Text.js +0 -50
- package/lib/icons/iconSrc/attachments/Txt.js +0 -50
- package/lib/icons/iconSrc/attachments/Unknown.js +0 -44
- package/lib/icons/iconSrc/attachments/Video.js +0 -41
- package/lib/icons/iconSrc/attachments/Xls.js +0 -38
- package/lib/icons/iconSrc/attachments/Zip.js +0 -89
- package/lib/icons/iconSrc/attachments/index.js +0 -87
- package/lib/icons/iconSrc/common/AlertTriangle.js +0 -35
- package/lib/icons/iconSrc/common/Article.js +0 -29
- package/lib/icons/iconSrc/common/Reply.js +0 -25
- package/lib/icons/iconSrc/common/index.js +0 -31
- package/lib/icons/iconSrc/messageStatus/Clock.js +0 -26
- package/lib/icons/iconSrc/messageStatus/DoubleTick.js +0 -28
- package/lib/icons/iconSrc/messageStatus/Failed.js +0 -26
- package/lib/icons/iconSrc/messageStatus/Tick.js +0 -25
- package/lib/icons/iconSrc/messageStatus/index.js +0 -39
- package/lib/im/ArticleBubble/ArticleBubble.js +0 -104
- package/lib/im/ArticleBubble/css/ArticleBubble.module.css +0 -75
- package/lib/im/ArticleBubble/css/cssJSLogic.js +0 -18
- package/lib/im/ArticleBubble/index.js +0 -15
- package/lib/im/ArticleBubble/props/defaultProps.js +0 -15
- package/lib/im/ArticleBubble/props/propTypes.js +0 -25
- package/lib/im/IMAttachmentHandler/IMAttachmentHandler.js +0 -59
- package/lib/im/IMAttachmentHandler/index.js +0 -15
- package/lib/im/IMAttachmentHandler/props/defaultProps.js +0 -19
- package/lib/im/IMAttachmentHandler/props/propTypes.js +0 -38
- package/lib/im/IMIntegrationIcon/IMIntegrationIcon.js +0 -82
- package/lib/im/IMIntegrationIcon/css/IMIntegrationIcon.module.css +0 -72
- package/lib/im/IMIntegrationIcon/css/cssJSLogic.js +0 -48
- package/lib/im/IMIntegrationIcon/index.js +0 -15
- package/lib/im/IMIntegrationIcon/props/defaultProps.js +0 -21
- package/lib/im/IMIntegrationIcon/props/propTypes.js +0 -27
- package/lib/im/IMMessage/IMMessage.js +0 -223
- package/lib/im/IMMessage/css/IMMessage.module.css +0 -36
- package/lib/im/IMMessage/css/cssJSLogic.js +0 -21
- package/lib/im/IMMessage/index.js +0 -15
- package/lib/im/IMMessage/props/defaultProps.js +0 -25
- package/lib/im/IMMessage/props/propTypes.js +0 -118
- package/lib/im/IMMessageContent/IMMessageContent.js +0 -149
- package/lib/im/IMMessageContent/css/IMMessageContent.module.css +0 -8
- package/lib/im/IMMessageContent/index.js +0 -15
- package/lib/im/IMMessageContent/props/defaultProps.js +0 -18
- package/lib/im/IMMessageContent/props/propTypes.js +0 -65
- package/lib/im/IMMessageMeta/IMMessageMeta.js +0 -79
- package/lib/im/IMMessageMeta/css/IMMessageMeta.module.css +0 -46
- package/lib/im/IMMessageMeta/css/cssJSLogic.js +0 -35
- package/lib/im/IMMessageMeta/index.js +0 -15
- package/lib/im/IMMessageMeta/props/defaultProps.js +0 -21
- package/lib/im/IMMessageMeta/props/propTypes.js +0 -44
- package/lib/im/IMMessageMetaInfo/IMMessageMetaInfo.js +0 -42
- package/lib/im/IMMessageMetaInfo/css/IMMessageMetaInfo.module.css +0 -14
- package/lib/im/IMMessageMetaInfo/index.js +0 -15
- package/lib/im/IMMessageMetaInfo/props/defaultProps.js +0 -17
- package/lib/im/IMMessageMetaInfo/props/propTypes.js +0 -19
- package/lib/im/IMPermaLink/IMPermaLink.js +0 -64
- package/lib/im/IMPermaLink/css/IMPermaLink.module.css +0 -14
- package/lib/im/IMPermaLink/css/cssJSLogic.js +0 -20
- package/lib/im/IMPermaLink/index.js +0 -15
- package/lib/im/IMPermaLink/props/defaultProps.js +0 -15
- package/lib/im/IMPermaLink/props/propTypes.js +0 -22
- package/lib/im/IMReplyBubble/IMReplyBubble.js +0 -59
- package/lib/im/IMReplyBubble/index.js +0 -15
- package/lib/im/IMReplyBubble/props/defaultProps.js +0 -16
- package/lib/im/IMReplyBubble/props/propTypes.js +0 -40
- package/lib/im/IMTextBubble/IMTextBubble.js +0 -47
- package/lib/im/IMTextBubble/index.js +0 -15
- package/lib/im/IMTextBubble/props/defaultProps.js +0 -18
- package/lib/im/IMTextBubble/props/propTypes.js +0 -42
- package/lib/im/ReplyComposer/ReplyComposer.js +0 -176
- package/lib/im/ReplyComposer/css/ReplyComposer.module.css +0 -10
- package/lib/im/ReplyComposer/css/cssJSLogic.js +0 -18
- package/lib/im/ReplyComposer/index.js +0 -15
- package/lib/im/ReplyComposer/props/defaultProps.js +0 -16
- package/lib/im/ReplyComposer/props/propTypes.js +0 -72
- package/lib/im/ReplyComposerFooter/ReplyComposerFooter.js +0 -64
- package/lib/im/ReplyComposerFooter/css/ReplyComposerFooter.module.css +0 -10
- package/lib/im/ReplyComposerFooter/index.js +0 -15
- package/lib/im/ReplyComposerFooter/props/defaultProps.js +0 -17
- package/lib/im/ReplyComposerFooter/props/propTypes.js +0 -28
- package/lib/im/ReplyEditor/ReplyEditor.js +0 -124
- package/lib/im/ReplyEditor/css/ReplyEditor.module.css +0 -50
- package/lib/im/ReplyEditor/css/cssJSLogic.js +0 -17
- package/lib/im/ReplyEditor/index.js +0 -15
- package/lib/im/ReplyEditor/props/defaultProps.js +0 -17
- package/lib/im/ReplyEditor/props/propTypes.js +0 -39
- package/lib/im/ReplyEditorExtensions/ReplyEditorExtensions.js +0 -160
- package/lib/im/ReplyEditorExtensions/css/ReplyEditorExtensions.module.css +0 -5
- package/lib/im/ReplyEditorExtensions/index.js +0 -15
- package/lib/im/ReplyEditorExtensions/props/defaultProps.js +0 -15
- package/lib/im/ReplyEditorExtensions/props/propTypes.js +0 -27
- package/lib/im/ReplyEditorSuggestions/ReplyEditorSuggestions.js +0 -119
- package/lib/im/ReplyEditorSuggestions/css/ReplyEditorSuggestions.module.css +0 -8
- package/lib/im/ReplyEditorSuggestions/index.js +0 -15
- package/lib/im/ReplyEditorSuggestions/props/defaultProps.js +0 -15
- package/lib/im/ReplyEditorSuggestions/props/propTypes.js +0 -32
- package/lib/im/ReplyEditorSuggestionsPopup/ReplyEditorSuggestionsPopup.js +0 -107
- package/lib/im/ReplyEditorSuggestionsPopup/css/ReplyEditorSuggestionsPopup.module.css +0 -7
- package/lib/im/ReplyEditorSuggestionsPopup/index.js +0 -15
- package/lib/im/ReplyEditorSuggestionsPopup/props/defaultProps.js +0 -19
- package/lib/im/ReplyEditorSuggestionsPopup/props/propTypes.js +0 -33
- package/lib/im/css/common.module.css +0 -6
- package/lib/im/index.js +0 -213
- package/lib/rte/Editor/Editor.js +0 -97
- package/lib/rte/Editor/css/Editor.module.css +0 -17
- package/lib/rte/Editor/index.js +0 -15
- package/lib/rte/Editor/props/defaultProps.js +0 -30
- package/lib/rte/Editor/props/propTypes.js +0 -74
- package/lib/rte/index.js +0 -18
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import Icon from '@zohodesk/icon/es/Icon/Icon';
|
|
4
4
|
export default function IconComponent(props) {
|
|
5
|
-
return /*#__PURE__*/React.createElement(Icon, props
|
|
5
|
+
return /*#__PURE__*/React.createElement(Icon, { ...props
|
|
6
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
6
7
|
id: "IM_doubleTick",
|
|
7
8
|
viewBox: "0 0 64 64"
|
|
8
9
|
}, " ", /*#__PURE__*/React.createElement("polygon", {
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import Icon from '@zohodesk/icon/es/Icon/Icon';
|
|
4
4
|
export default function IconComponent(props) {
|
|
5
|
-
return /*#__PURE__*/React.createElement(Icon, props
|
|
5
|
+
return /*#__PURE__*/React.createElement(Icon, { ...props
|
|
6
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
6
7
|
id: "IM_failed",
|
|
7
8
|
viewBox: "0 0 64 64"
|
|
8
9
|
}, " ", /*#__PURE__*/React.createElement("path", {
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import Icon from '@zohodesk/icon/es/Icon/Icon';
|
|
4
4
|
export default function IconComponent(props) {
|
|
5
|
-
return /*#__PURE__*/React.createElement(Icon, props
|
|
5
|
+
return /*#__PURE__*/React.createElement(Icon, { ...props
|
|
6
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
6
7
|
id: "IM_tick",
|
|
7
8
|
viewBox: "0 0 64 64"
|
|
8
9
|
}, " ", /*#__PURE__*/React.createElement("polygon", {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
/** ** Libraries *** */
|
|
4
2
|
import React from 'react';
|
|
5
3
|
/** ** Components *** */
|
|
@@ -36,15 +34,16 @@ export default function IMAttachmentHandler(props) {
|
|
|
36
34
|
attachmentType,
|
|
37
35
|
integrationService
|
|
38
36
|
});
|
|
39
|
-
return /*#__PURE__*/React.createElement(AttachmentHandler,
|
|
37
|
+
return /*#__PURE__*/React.createElement(AttachmentHandler, {
|
|
40
38
|
iconName: iconName,
|
|
41
39
|
iconSize: iconSize,
|
|
42
40
|
iconTitle: iconTitle,
|
|
43
41
|
isMultiAttachment: isMultiAttachment,
|
|
44
42
|
onAttach: onAttach,
|
|
45
43
|
renderCustomIcon: renderCustomIcon,
|
|
46
|
-
supportedFileTypes: supportedTypes
|
|
47
|
-
|
|
44
|
+
supportedFileTypes: supportedTypes,
|
|
45
|
+
...attachmentHandlerProps
|
|
46
|
+
});
|
|
48
47
|
}
|
|
49
48
|
IMAttachmentHandler.propTypes = imAttachmentHandlerPropTypes;
|
|
50
49
|
IMAttachmentHandler.defaultProps = imAttachmentHandlerDefaultProps;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
.varClass {
|
|
2
|
-
--integrationIcon-small_height:
|
|
3
|
-
--integrationIcon-small_width:
|
|
4
|
-
--integrationIcon-medium_height:
|
|
5
|
-
--integrationIcon-medium_width:
|
|
2
|
+
--integrationIcon-small_height: var(--zd_size20);
|
|
3
|
+
--integrationIcon-small_width: var(--zd_size20);
|
|
4
|
+
--integrationIcon-medium_height: var(--zd_size26);
|
|
5
|
+
--integrationIcon-medium_width: var(--zd_size26);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.integrationIcon {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
/** ** Libraries *** */
|
|
4
2
|
import React, { useCallback, useMemo } from 'react';
|
|
5
3
|
/** ** Hooks *** */
|
|
@@ -99,18 +97,19 @@ export default function IMMessage(props) {
|
|
|
99
97
|
displayDateTime,
|
|
100
98
|
tooltip
|
|
101
99
|
} = dateTimeDetails || {};
|
|
102
|
-
return /*#__PURE__*/React.createElement(IMMessageMeta,
|
|
100
|
+
return /*#__PURE__*/React.createElement(IMMessageMeta, {
|
|
103
101
|
autoMessageType: autoMessageType,
|
|
104
102
|
direction: direction,
|
|
105
103
|
isValidAttachment: isValidAttachment,
|
|
106
104
|
messageMetaInfoI18N: messageMetaInfoI18N,
|
|
107
105
|
time: isShowMessageTime ? displayDateTime : '',
|
|
108
|
-
timeTooltip: tooltip
|
|
109
|
-
|
|
106
|
+
timeTooltip: tooltip,
|
|
107
|
+
...imMessageMetaProps
|
|
108
|
+
});
|
|
110
109
|
}, [isShowMessageTime, dateTimeDetails, direction, autoMessageType, imMessageMetaProps, isValidAttachment, messageMetaInfoI18N]);
|
|
111
110
|
/** ** Render Message Content *** */
|
|
112
111
|
|
|
113
|
-
const handleRenderMessage = useCallback(() => /*#__PURE__*/React.createElement(IMMessageContent,
|
|
112
|
+
const handleRenderMessage = useCallback(() => /*#__PURE__*/React.createElement(IMMessageContent, {
|
|
114
113
|
deleteMessageText: deleteMessageText,
|
|
115
114
|
isFailed: isFailedMessage,
|
|
116
115
|
isSending: isSendingMessage,
|
|
@@ -122,8 +121,9 @@ export default function IMMessage(props) {
|
|
|
122
121
|
onLoadFullMessage: onLoadFullMessage,
|
|
123
122
|
replyText: replyText,
|
|
124
123
|
seeMoreText: seeMoreText,
|
|
125
|
-
sessionDetails: sessionDetails
|
|
126
|
-
|
|
124
|
+
sessionDetails: sessionDetails,
|
|
125
|
+
...imMessageContentProps
|
|
126
|
+
}), [seeMoreText, replyText, deleteMessageText, messageDetails, sessionDetails, messageContentClickMapping, messageBubbleTitleI18N, onLoadFullMessage, onClickReply, isFailedMessage, isSendingMessage, imMessageContentProps, isShowFullContent]);
|
|
127
127
|
/** ** Render Secondary Actions - TicketId *** */
|
|
128
128
|
|
|
129
129
|
const handleRenderSecondaryActions = useCallback(() => {
|
|
@@ -136,19 +136,21 @@ export default function IMMessage(props) {
|
|
|
136
136
|
const customStyle = {
|
|
137
137
|
text: imTicketLinkClass
|
|
138
138
|
};
|
|
139
|
-
return /*#__PURE__*/React.createElement(IMPermaLink,
|
|
139
|
+
return /*#__PURE__*/React.createElement(IMPermaLink, {
|
|
140
140
|
customStyle: customStyle,
|
|
141
141
|
href: ticketUrl,
|
|
142
142
|
id: ticketId,
|
|
143
143
|
onClick: onTicketClick,
|
|
144
|
-
text: ticketNumber ? `#${ticketNumber}` : ''
|
|
145
|
-
|
|
144
|
+
text: ticketNumber ? `#${ticketNumber}` : '',
|
|
145
|
+
...imTicketLinkProps
|
|
146
|
+
});
|
|
146
147
|
}, [ticketNumber, ticketUrl, ticketId, onTicketClick, imTicketLinkProps, newStyle, isIncoming, isOutgoing]);
|
|
147
148
|
/** ** Render Owner Status Icon *** */
|
|
148
149
|
|
|
149
|
-
const handleRenderIntegIcon = useCallback(() => /*#__PURE__*/React.createElement(IMIntegrationIcon,
|
|
150
|
-
integrationName: isShowIntegrationIcon ? integrationName : ''
|
|
151
|
-
|
|
150
|
+
const handleRenderIntegIcon = useCallback(() => /*#__PURE__*/React.createElement(IMIntegrationIcon, {
|
|
151
|
+
integrationName: isShowIntegrationIcon ? integrationName : '',
|
|
152
|
+
...imIntegrationIconProps
|
|
153
|
+
}), [isShowIntegrationIcon, integrationName, imIntegrationIconProps]);
|
|
152
154
|
/** ** Construct Owner Details *** */
|
|
153
155
|
|
|
154
156
|
const ownerDetails = useMemo(() => ({
|
|
@@ -174,7 +176,7 @@ export default function IMMessage(props) {
|
|
|
174
176
|
}
|
|
175
177
|
};
|
|
176
178
|
}, [messageProps, handleRenderMessageBoxFooter]);
|
|
177
|
-
return /*#__PURE__*/React.createElement(Message,
|
|
179
|
+
return /*#__PURE__*/React.createElement(Message, {
|
|
178
180
|
actions: actions,
|
|
179
181
|
direction: direction,
|
|
180
182
|
isActive: isHighlightMessage,
|
|
@@ -189,8 +191,9 @@ export default function IMMessage(props) {
|
|
|
189
191
|
renderOwnerStatusIcon: handleRenderIntegIcon,
|
|
190
192
|
renderSecondaryActions: handleRenderSecondaryActions,
|
|
191
193
|
status: messageStatus,
|
|
192
|
-
statusTooltip: messageStatusTitle
|
|
193
|
-
|
|
194
|
+
statusTooltip: messageStatusTitle,
|
|
195
|
+
...messageCustomProps
|
|
196
|
+
});
|
|
194
197
|
}
|
|
195
198
|
IMMessage.propTypes = imMessagePropTypes;
|
|
196
199
|
IMMessage.defaultProps = imMessageDefaultProps;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.varClass {
|
|
2
|
-
--imTicketLink-top_gap:
|
|
3
|
-
--imTicketLink-font_size:
|
|
4
|
-
--imTicketLink-max_width:
|
|
2
|
+
--imTicketLink-top_gap: var(--zd_size5);
|
|
3
|
+
--imTicketLink-font_size: var(--zd_font_size12);
|
|
4
|
+
--imTicketLink-max_width: var(--zd_size150);
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.ticketLink {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
/* eslint-disable react/jsx-indent */
|
|
4
2
|
|
|
5
3
|
/** ** Libraries *** */
|
|
@@ -86,42 +84,56 @@ export default function IMMessageContent(props) {
|
|
|
86
84
|
};
|
|
87
85
|
return /*#__PURE__*/React.createElement(Fragment, null, isShowLayoutBubble ? null : null, isShowDeleteBubble ? /*#__PURE__*/React.createElement("div", {
|
|
88
86
|
className: newStyle.deleteBubble
|
|
89
|
-
}, deleteMessageText) : null, isShowReplyBubble ? /*#__PURE__*/React.createElement("div", wrapperDivProps
|
|
87
|
+
}, deleteMessageText) : null, isShowReplyBubble ? /*#__PURE__*/React.createElement("div", { ...wrapperDivProps
|
|
88
|
+
}, /*#__PURE__*/React.createElement(IMReplyBubble, {
|
|
90
89
|
isFailed: isFailed,
|
|
91
90
|
messageDetails: replyToMessage,
|
|
92
91
|
onClick: onClickReply,
|
|
93
|
-
replyText: replyText
|
|
94
|
-
|
|
92
|
+
replyText: replyText,
|
|
93
|
+
...imReplyBubbleProps
|
|
94
|
+
})) : null, isShowCustomBubble ? renderCustomMessage({
|
|
95
95
|
messageDetails,
|
|
96
96
|
isFailed
|
|
97
|
-
}) : null, isShowImageBubble ? /*#__PURE__*/React.createElement("div", wrapperDivProps
|
|
97
|
+
}) : null, isShowImageBubble ? /*#__PURE__*/React.createElement("div", { ...wrapperDivProps
|
|
98
|
+
}, /*#__PURE__*/React.createElement(ImageBubble, {
|
|
98
99
|
imageDetails: attachmentDetails,
|
|
99
100
|
isFailed: isFailed,
|
|
100
101
|
isSending: isSending,
|
|
101
|
-
onClick: onImageBubbleClick
|
|
102
|
-
|
|
102
|
+
onClick: onImageBubbleClick,
|
|
103
|
+
...imageBubbleProps
|
|
104
|
+
})) : null, isShowVideoBubble ? /*#__PURE__*/React.createElement("div", { ...wrapperDivProps
|
|
105
|
+
}, /*#__PURE__*/React.createElement(VideoBubble, {
|
|
103
106
|
isFailed: isFailed,
|
|
104
|
-
videoDetails: attachmentDetails
|
|
105
|
-
|
|
107
|
+
videoDetails: attachmentDetails,
|
|
108
|
+
...videoBubbleProps
|
|
109
|
+
})) : null, isShowAudioBubble ? /*#__PURE__*/React.createElement("div", { ...wrapperDivProps
|
|
110
|
+
}, /*#__PURE__*/React.createElement(AudioBubble, {
|
|
106
111
|
audioDetails: attachmentDetails,
|
|
107
|
-
isFailed: isFailed
|
|
108
|
-
|
|
112
|
+
isFailed: isFailed,
|
|
113
|
+
...audioBubbleProps
|
|
114
|
+
})) : null, isShowAttachmentBubble ? /*#__PURE__*/React.createElement("div", { ...wrapperDivProps
|
|
115
|
+
}, /*#__PURE__*/React.createElement(AttachmentBubble, {
|
|
109
116
|
attachmentBubbleTitle: attachmentBubbleTitle,
|
|
110
117
|
attachmentDetails: attachmentDetails,
|
|
111
118
|
isFailed: isFailed,
|
|
112
119
|
isSending: isSending,
|
|
113
|
-
onClick: onAttachmentBubbleClick
|
|
114
|
-
|
|
120
|
+
onClick: onAttachmentBubbleClick,
|
|
121
|
+
...attachmentBubbleProps
|
|
122
|
+
})) : null, isShowLocationBubble ? /*#__PURE__*/React.createElement("div", { ...wrapperDivProps
|
|
123
|
+
}, /*#__PURE__*/React.createElement(LocationBubble, {
|
|
115
124
|
isFailed: isFailed,
|
|
116
|
-
locationUrl: locationUrl
|
|
117
|
-
|
|
125
|
+
locationUrl: locationUrl,
|
|
126
|
+
...locationBubbleProps
|
|
127
|
+
})) : null, isShowTextBubble ? /*#__PURE__*/React.createElement("div", { ...wrapperDivProps
|
|
128
|
+
}, /*#__PURE__*/React.createElement(IMTextBubble, {
|
|
118
129
|
isFailed: isFailed,
|
|
119
130
|
isShowFullContent: isShowFullContent,
|
|
120
131
|
messageDetails: messageDetails,
|
|
121
132
|
moreText: seeMoreText,
|
|
122
133
|
onLoadFullMessage: onLoadFullMessage,
|
|
123
|
-
sessionDetails: sessionDetails
|
|
124
|
-
|
|
134
|
+
sessionDetails: sessionDetails,
|
|
135
|
+
...imTextBubbleProps
|
|
136
|
+
})) : null);
|
|
125
137
|
}
|
|
126
138
|
IMMessageContent.propTypes = imMessageContentPropTypes;
|
|
127
139
|
IMMessageContent.defaultProps = imMessageContentDefaultProps;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
/** ** Libraries *** */
|
|
4
2
|
import React from 'react';
|
|
5
3
|
/** ** Hooks *** */
|
|
@@ -57,10 +55,11 @@ export default function IMMessageMeta(props) {
|
|
|
57
55
|
return /*#__PURE__*/React.createElement(React.Fragment, null, imMessageMetaInfoContent || time ? /*#__PURE__*/React.createElement(Container, {
|
|
58
56
|
alignBox: "row",
|
|
59
57
|
className: imMessageMetaClass
|
|
60
|
-
}, imMessageMetaInfoContent ? /*#__PURE__*/React.createElement(IMMessageMetaInfo,
|
|
58
|
+
}, imMessageMetaInfoContent ? /*#__PURE__*/React.createElement(IMMessageMetaInfo, {
|
|
61
59
|
imMessageMetaInfoContent: imMessageMetaInfoContent,
|
|
62
|
-
imMessageMetaInfoTitle: imMessageMetaInfoTitle
|
|
63
|
-
|
|
60
|
+
imMessageMetaInfoTitle: imMessageMetaInfoTitle,
|
|
61
|
+
...imMessageMetaInfoProps
|
|
62
|
+
}) : null, imMessageMetaInfoContent && time ? /*#__PURE__*/React.createElement("div", {
|
|
64
63
|
className: dotClass
|
|
65
64
|
}, "\u22C5") : null, time ? /*#__PURE__*/React.createElement("div", {
|
|
66
65
|
className: newStyle.dateTime,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.varClass {
|
|
2
|
-
--imMessageMeta-gap:
|
|
3
|
-
--imMessageMeta-separator_gap:
|
|
4
|
-
--imMessageMeta-time_padding:
|
|
2
|
+
--imMessageMeta-gap: var(--zd_size5);
|
|
3
|
+
--imMessageMeta-separator_gap: var(--zd_size5);
|
|
4
|
+
--imMessageMeta-time_padding: var(--zd_size45);
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.imMessageMeta {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
/** ** Libraries *** */
|
|
4
2
|
import React from 'react';
|
|
5
3
|
/** ** Hooks *** */
|
|
@@ -35,17 +33,17 @@ export default function IMReplyBubble(props) {
|
|
|
35
33
|
messageDetails,
|
|
36
34
|
onClick: propOnClick
|
|
37
35
|
});
|
|
38
|
-
return /*#__PURE__*/React.createElement(ReplyBubble,
|
|
36
|
+
return /*#__PURE__*/React.createElement(ReplyBubble, {
|
|
39
37
|
attachmentDetails: attachmentDetails,
|
|
40
38
|
dateTimeDetails: dateTimeDetails,
|
|
41
39
|
locationUrl: locationUrl,
|
|
42
40
|
message: message,
|
|
43
41
|
onClick: onClick,
|
|
44
42
|
replyText: replyText,
|
|
45
|
-
senderName: senderName
|
|
46
|
-
|
|
43
|
+
senderName: senderName,
|
|
44
|
+
...replyBubbleProps,
|
|
47
45
|
isFailed: isFailed
|
|
48
|
-
})
|
|
46
|
+
});
|
|
49
47
|
}
|
|
50
48
|
IMReplyBubble.propTypes = imReplyBubblePropTypes;
|
|
51
49
|
IMReplyBubble.defaultProps = imReplyBubbleDefaultProps;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
/** ** Libraries *** */
|
|
4
2
|
import React from 'react';
|
|
5
3
|
/** ** Constants *** */
|
|
@@ -27,13 +25,13 @@ export default function IMTextBubble(props) {
|
|
|
27
25
|
sanitizedDisplayMessage,
|
|
28
26
|
isShowSeeMore
|
|
29
27
|
} = useIMTextBubble(props);
|
|
30
|
-
return /*#__PURE__*/React.createElement(TextBubble,
|
|
28
|
+
return /*#__PURE__*/React.createElement(TextBubble, {
|
|
31
29
|
message: sanitizedDisplayMessage,
|
|
32
30
|
moreText: isShowSeeMore ? moreText : '',
|
|
33
|
-
onClickMore: onLoadFullMessage
|
|
34
|
-
|
|
31
|
+
onClickMore: onLoadFullMessage,
|
|
32
|
+
...textBubbleProps,
|
|
35
33
|
isFailed: isFailed
|
|
36
|
-
})
|
|
34
|
+
});
|
|
37
35
|
}
|
|
38
36
|
IMTextBubble.propTypes = imTextBubblePropTypes;
|
|
39
37
|
IMTextBubble.defaultProps = imTextBubbleDefaultProps;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
/** ** Libraries *** */
|
|
4
2
|
import React, { useMemo } from 'react';
|
|
5
3
|
/** ** Components *** */
|
|
@@ -110,13 +108,14 @@ export default function ReplyComposer(props) {
|
|
|
110
108
|
return /*#__PURE__*/React.createElement(Container, {
|
|
111
109
|
className: newStyle.replyComposer,
|
|
112
110
|
isCover: false
|
|
113
|
-
}, isShowSuggestion ? /*#__PURE__*/React.createElement(ReplyEditorSuggestions,
|
|
111
|
+
}, isShowSuggestion ? /*#__PURE__*/React.createElement(ReplyEditorSuggestions, {
|
|
114
112
|
getMethods: getSuggetPopupMethods,
|
|
115
113
|
onClose: onHideSuggestions,
|
|
116
114
|
onSelect: onSelectSuggestion,
|
|
117
115
|
suggestionDetails: suggestionDetails,
|
|
118
|
-
suggestionsMapping: suggestionsMapping
|
|
119
|
-
|
|
116
|
+
suggestionsMapping: suggestionsMapping,
|
|
117
|
+
...replyEditorSuggestionsProps
|
|
118
|
+
}) : null, files.length > 0 ? /*#__PURE__*/React.createElement(AttachmentPreview, {
|
|
120
119
|
descriptionDetails: filesDescription,
|
|
121
120
|
files: files,
|
|
122
121
|
isDescriptionNeeded: true,
|
|
@@ -124,10 +123,11 @@ export default function ReplyComposer(props) {
|
|
|
124
123
|
onCancel: onFileCancel,
|
|
125
124
|
onDescriptionChange: onChangeFileDescription,
|
|
126
125
|
onSubmit: onFileSubmit,
|
|
127
|
-
texts: attachmentPreviewTexts
|
|
128
|
-
|
|
126
|
+
texts: attachmentPreviewTexts,
|
|
127
|
+
...attachmentPreviewCustomProps
|
|
128
|
+
}) : null, isLoaded ? headerElement : null, stencilsElement || null, /*#__PURE__*/React.createElement("div", {
|
|
129
129
|
className: replEditorWrapperClass
|
|
130
|
-
}, /*#__PURE__*/React.createElement(ReplyEditor,
|
|
130
|
+
}, /*#__PURE__*/React.createElement(ReplyEditor, {
|
|
131
131
|
content: content,
|
|
132
132
|
EDITORURL: EDITORURL,
|
|
133
133
|
features: allFeatures,
|
|
@@ -138,13 +138,15 @@ export default function ReplyComposer(props) {
|
|
|
138
138
|
onChange: onChange,
|
|
139
139
|
onKeyDown: onKeyDown,
|
|
140
140
|
onPaste: onPaste,
|
|
141
|
-
placeHolder: placeHolder
|
|
142
|
-
|
|
141
|
+
placeHolder: placeHolder,
|
|
142
|
+
...replyEditorCustomProps
|
|
143
|
+
})), needFooter && isLoaded ? /*#__PURE__*/React.createElement(ReplyComposerFooter, {
|
|
143
144
|
editor: editor,
|
|
144
145
|
extensions: extensions,
|
|
145
146
|
isHTMLContent: isHTMLContent,
|
|
146
|
-
renderButtons: renderFooter
|
|
147
|
-
|
|
147
|
+
renderButtons: renderFooter,
|
|
148
|
+
...replyComposerFooterProps
|
|
149
|
+
}) : null);
|
|
148
150
|
}
|
|
149
151
|
ReplyComposer.propTypes = replyComposerPropTypes;
|
|
150
152
|
ReplyComposer.defaultProps = replyComposerDefaultProps;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
/** ** Libraries *** */
|
|
4
2
|
import React, { useMemo } from 'react';
|
|
5
3
|
/** ** Components *** */
|
|
@@ -81,7 +79,7 @@ export default function ReplyEditor(props) {
|
|
|
81
79
|
className: newStyle.replyEditor
|
|
82
80
|
}, isRenderEditor ? /*#__PURE__*/React.createElement(Container, {
|
|
83
81
|
className: editorClass
|
|
84
|
-
}, /*#__PURE__*/React.createElement(Editor,
|
|
82
|
+
}, /*#__PURE__*/React.createElement(Editor, {
|
|
85
83
|
appearance: appearance,
|
|
86
84
|
content: content,
|
|
87
85
|
customStyle: editorNewCustomStyle,
|
|
@@ -96,8 +94,9 @@ export default function ReplyEditor(props) {
|
|
|
96
94
|
onKeyDown: onKeyDown,
|
|
97
95
|
onPaste: onPaste,
|
|
98
96
|
onReadyCallback: onReadyCallback,
|
|
99
|
-
placeHolder: placeHolder
|
|
100
|
-
|
|
97
|
+
placeHolder: placeHolder,
|
|
98
|
+
...editorProps
|
|
99
|
+
})) : null);
|
|
101
100
|
}
|
|
102
101
|
ReplyEditor.propTypes = replyEditorPropTypes;
|
|
103
102
|
ReplyEditor.defaultProps = replyEditorDefaultProps;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
/** ** Libraries *** */
|
|
4
2
|
import React, { useCallback, useMemo } from 'react';
|
|
5
3
|
/** ** Components *** */
|
|
@@ -41,7 +39,7 @@ export default function ReplyEditorExtensions(props) {
|
|
|
41
39
|
const {
|
|
42
40
|
needFocusOnSelect
|
|
43
41
|
} = componentProps;
|
|
44
|
-
return /*#__PURE__*/React.createElement(EmojiPopup,
|
|
42
|
+
return /*#__PURE__*/React.createElement(EmojiPopup, {
|
|
45
43
|
key: id,
|
|
46
44
|
onPopupClose: onPopupClose,
|
|
47
45
|
onPopupOpen: onPopupOpen,
|
|
@@ -50,32 +48,35 @@ export default function ReplyEditorExtensions(props) {
|
|
|
50
48
|
content: value,
|
|
51
49
|
needFocus: needFocusOnSelect
|
|
52
50
|
});
|
|
53
|
-
}
|
|
54
|
-
|
|
51
|
+
},
|
|
52
|
+
...componentProps
|
|
53
|
+
});
|
|
55
54
|
}, []);
|
|
56
55
|
const handleRenderImageExtension = useCallback(_ref2 => {
|
|
57
56
|
let {
|
|
58
57
|
id,
|
|
59
58
|
componentProps
|
|
60
59
|
} = _ref2;
|
|
61
|
-
return /*#__PURE__*/React.createElement(IMAttachmentHandler,
|
|
60
|
+
return /*#__PURE__*/React.createElement(IMAttachmentHandler, {
|
|
62
61
|
key: id,
|
|
63
62
|
attachmentType: "image",
|
|
64
63
|
iconName: "ZD-TT-image",
|
|
65
|
-
iconSize: "14"
|
|
66
|
-
|
|
64
|
+
iconSize: "14",
|
|
65
|
+
...componentProps
|
|
66
|
+
});
|
|
67
67
|
}, []);
|
|
68
68
|
const handleRenderFileExtension = useCallback(_ref3 => {
|
|
69
69
|
let {
|
|
70
70
|
id,
|
|
71
71
|
componentProps
|
|
72
72
|
} = _ref3;
|
|
73
|
-
return /*#__PURE__*/React.createElement(IMAttachmentHandler,
|
|
73
|
+
return /*#__PURE__*/React.createElement(IMAttachmentHandler, {
|
|
74
74
|
key: id,
|
|
75
75
|
attachmentType: "document",
|
|
76
76
|
iconName: "ZD-TT-ttAttach",
|
|
77
|
-
iconSize: "14"
|
|
78
|
-
|
|
77
|
+
iconSize: "14",
|
|
78
|
+
...componentProps
|
|
79
|
+
});
|
|
79
80
|
}, []);
|
|
80
81
|
const defaultRenderMethod = useMemo(() => ({
|
|
81
82
|
emoji: {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
/** ** Libraries *** */
|
|
4
2
|
import React, { useMemo, useCallback } from 'react';
|
|
5
3
|
/** ** Components *** */
|
|
@@ -51,7 +49,7 @@ export default function ReplyEditorSuggestions(props) {
|
|
|
51
49
|
} = componentProps || {}; // (-1) -> ':' string is not valid for count.
|
|
52
50
|
|
|
53
51
|
const isShowEmojiPopup = searchText.length - 1 >= searchTextLenForShow;
|
|
54
|
-
return isShowEmojiPopup ? /*#__PURE__*/React.createElement(Emojis,
|
|
52
|
+
return isShowEmojiPopup ? /*#__PURE__*/React.createElement(Emojis, {
|
|
55
53
|
emojisRowType: "single",
|
|
56
54
|
getMethods: getMethods,
|
|
57
55
|
isShowGroupBasedList: false,
|
|
@@ -63,8 +61,9 @@ export default function ReplyEditorSuggestions(props) {
|
|
|
63
61
|
content: value
|
|
64
62
|
});
|
|
65
63
|
},
|
|
66
|
-
searchString: searchText
|
|
67
|
-
|
|
64
|
+
searchString: searchText,
|
|
65
|
+
...componentProps
|
|
66
|
+
}) : null;
|
|
68
67
|
}, []);
|
|
69
68
|
const defaultRenderMethod = useMemo(() => ({
|
|
70
69
|
':': handleRenderEmoji,
|
|
@@ -83,11 +82,13 @@ export default function ReplyEditorSuggestions(props) {
|
|
|
83
82
|
});
|
|
84
83
|
return /*#__PURE__*/React.createElement(Container, {
|
|
85
84
|
className: newStyle.suggestionPopup
|
|
86
|
-
}, /*#__PURE__*/React.createElement(ReplyEditorSuggestionsPopup,
|
|
85
|
+
}, /*#__PURE__*/React.createElement(ReplyEditorSuggestionsPopup, {
|
|
87
86
|
onClose: onClose,
|
|
88
87
|
suggestionElement: suggestionElement,
|
|
89
|
-
targetPosition: position
|
|
90
|
-
|
|
88
|
+
targetPosition: position,
|
|
89
|
+
...replyEditorSuggestionsPopupProps,
|
|
90
|
+
...popupProps
|
|
91
|
+
}));
|
|
91
92
|
}
|
|
92
93
|
ReplyEditorSuggestions.propTypes = replyEditorSuggestionsPropTypes;
|
|
93
94
|
ReplyEditorSuggestions.defaultProps = replyEditorSuggestionsDefaultProps;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
/** ** Libraries *** */
|
|
4
2
|
import React from 'react';
|
|
5
3
|
/** ** Components *** */
|
|
@@ -69,7 +67,7 @@ export function ReplyEditorSuggestionsPopupComp(props) {
|
|
|
69
67
|
ref: getTargetRef,
|
|
70
68
|
className: newStyle.hiddenTarget,
|
|
71
69
|
style: targetElementStyle
|
|
72
|
-
}))), isPopupOpen ? /*#__PURE__*/React.createElement(DropBox,
|
|
70
|
+
}))), isPopupOpen ? /*#__PURE__*/React.createElement(DropBox, {
|
|
73
71
|
boxPosition: position,
|
|
74
72
|
customStyle: dummyObject,
|
|
75
73
|
getRef: getContainerRef,
|
|
@@ -80,8 +78,9 @@ export function ReplyEditorSuggestionsPopupComp(props) {
|
|
|
80
78
|
onClick: removeClose,
|
|
81
79
|
portalId: EDITOR_POPUP_PORTAL,
|
|
82
80
|
positionsOffset: positionsOffset,
|
|
83
|
-
size: popupSize
|
|
84
|
-
|
|
81
|
+
size: popupSize,
|
|
82
|
+
...dropBoxProps
|
|
83
|
+
}, suggestionElement) : null);
|
|
85
84
|
}
|
|
86
85
|
const ReplyEditorSuggestionsPopup = Popup(ReplyEditorSuggestionsPopupComp, undefined, undefined, {
|
|
87
86
|
isAbsolutePositioningNeeded: false
|
|
File without changes
|
package/es/rte/Editor/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|