@sendbird/uikit-react 3.6.6-rc-0 → 3.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/App.js +48 -48
- package/CHANGELOG.md +2 -0
- package/Channel/components/ChannelHeader.js +19 -19
- package/Channel/components/ChannelUI.js +41 -41
- package/Channel/components/FileViewer.js +15 -15
- package/Channel/components/FrozenNotification.js +4 -4
- package/Channel/components/Message.js +36 -36
- package/Channel/components/MessageInput.js +29 -29
- package/Channel/components/MessageList.js +37 -37
- package/Channel/components/RemoveMessageModal.js +17 -17
- package/Channel/components/SuggestedMentionList.js +17 -17
- package/Channel/components/TypingIndicator.js +15 -15
- package/Channel/components/UnreadCount.js +4 -4
- package/Channel/context.js +12 -12
- package/Channel.js +41 -41
- package/ChannelList/components/AddChannel.js +14 -14
- package/ChannelList/components/ChannelListHeader.js +6 -6
- package/ChannelList/components/ChannelListUI.js +30 -30
- package/ChannelList/components/ChannelPreview.js +26 -26
- package/ChannelList/components/ChannelPreviewAction.js +13 -13
- package/ChannelList/context.js +7 -7
- package/ChannelList.js +30 -30
- package/{ChannelListProvider-e2fb41aa.js → ChannelListProvider-2e7026e9.js} +7 -7
- package/{ChannelListProvider-e2fb41aa.js.map → ChannelListProvider-2e7026e9.js.map} +1 -1
- package/{ChannelProvider-3bd92d16.js → ChannelProvider-31a344d3.js} +11 -11
- package/{ChannelProvider-3bd92d16.js.map → ChannelProvider-31a344d3.js.map} +1 -1
- package/ChannelSettings/components/ChannelProfile.js +11 -11
- package/ChannelSettings/components/ChannelSettingsUI.js +17 -17
- package/ChannelSettings/components/EditDetailsModal.js +11 -11
- package/ChannelSettings/components/LeaveChannel.js +11 -11
- package/ChannelSettings/components/ModerationPanel.js +14 -14
- package/ChannelSettings/components/UserListItem.js +10 -10
- package/ChannelSettings/components/UserPanel.js +13 -13
- package/ChannelSettings/context.js +3 -3
- package/ChannelSettings.js +17 -17
- package/CreateChannel/components/CreateChannelUI.js +13 -13
- package/CreateChannel/components/InviteUsers.js +13 -13
- package/CreateChannel/components/SelectChannelType.js +10 -10
- package/CreateChannel/context.js +4 -4
- package/CreateChannel.js +13 -13
- package/{CreateChannelProvider-5d32c403.js → CreateChannelProvider-eeaa1371.js} +1 -1
- package/{CreateChannelProvider-5d32c403.js.map → CreateChannelProvider-eeaa1371.js.map} +1 -1
- package/CreateOpenChannel/components/CreateOpenChannelUI.js +9 -9
- package/CreateOpenChannel/context.js +1 -1
- package/CreateOpenChannel.js +9 -9
- package/EditUserProfile/components/EditUserProfileUI.js +12 -12
- package/EditUserProfile.js +12 -12
- package/{LocalizationContext-426f3d58.js → LocalizationContext-2952e678.js} +3 -3
- package/{LocalizationContext-426f3d58.js.map → LocalizationContext-2952e678.js.map} +1 -1
- package/{MediaQueryContext-b531adc9.js → MediaQueryContext-2173573f.js} +1 -1
- package/{MediaQueryContext-b531adc9.js.map → MediaQueryContext-2173573f.js.map} +1 -1
- package/{MemberList-125753a0.js → MemberList-a51051e6.js} +5 -5
- package/{MemberList-125753a0.js.map → MemberList-a51051e6.js.map} +1 -1
- package/MessageSearch/components/MessageSearchUI.js +11 -11
- package/MessageSearch/context.js +1 -1
- package/MessageSearch.js +11 -11
- package/OpenChannel/components/FrozenChannelNotification.js +4 -4
- package/OpenChannel/components/OpenChannelHeader.js +12 -12
- package/OpenChannel/components/OpenChannelInput.js +19 -19
- package/OpenChannel/components/OpenChannelMessage.js +27 -27
- package/OpenChannel/components/OpenChannelMessageList.js +31 -31
- package/OpenChannel/components/OpenChannelUI.js +31 -31
- package/OpenChannel/context.js +8 -8
- package/OpenChannel.js +31 -31
- package/OpenChannelList/components/OpenChannelListUI.js +13 -13
- package/OpenChannelList/components/OpenChannelPreview.js +3 -3
- package/OpenChannelList/context.js +3 -3
- package/OpenChannelList.js +13 -13
- package/{OpenChannelListProvider-e4007f04.js → OpenChannelListProvider-ce900f45.js} +3 -3
- package/{OpenChannelListProvider-e4007f04.js.map → OpenChannelListProvider-ce900f45.js.map} +1 -1
- package/{OpenChannelProvider-1efcabea.js → OpenChannelProvider-bc20868c.js} +7 -7
- package/{OpenChannelProvider-1efcabea.js.map → OpenChannelProvider-bc20868c.js.map} +1 -1
- package/OpenChannelSettings/components/EditDetailsModal.js +12 -12
- package/OpenChannelSettings/components/OpenChannelProfile.js +12 -12
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js +17 -17
- package/OpenChannelSettings/components/OperatorUI.js +16 -16
- package/OpenChannelSettings/components/ParticipantUI.js +14 -14
- package/OpenChannelSettings/context.js +3 -3
- package/OpenChannelSettings.js +17 -17
- package/{RemoveMessageModal-3d9ef84c.js → RemoveMessageModal-9c579f0f.js} +3 -3
- package/{RemoveMessageModal-3d9ef84c.js.map → RemoveMessageModal-9c579f0f.js.map} +1 -1
- package/SendbirdProvider.js +15 -15
- package/SendbirdProvider.js.map +1 -1
- package/Thread/components/ParentMessageInfo.js +33 -33
- package/Thread/components/ParentMessageInfoItem.js +21 -21
- package/Thread/components/ThreadHeader.js +6 -6
- package/Thread/components/ThreadList.js +36 -36
- package/Thread/components/ThreadListItem.js +36 -36
- package/Thread/components/ThreadMessageInput.js +30 -30
- package/Thread/components/ThreadUI.js +40 -40
- package/Thread/context.js +8 -8
- package/Thread.js +40 -40
- package/{ThreadProvider-7f67575f.js → ThreadProvider-27c497dc.js} +7 -7
- package/{ThreadProvider-7f67575f.js.map → ThreadProvider-27c497dc.js.map} +1 -1
- package/{UserProfileContext-a59f0533.js → UserProfileContext-76aab169.js} +1 -1
- package/{UserProfileContext-a59f0533.js.map → UserProfileContext-76aab169.js.map} +1 -1
- package/{VoiceMessageInputWrapper-3adde78a.js → VoiceMessageInputWrapper-e45ec2f0.js} +7 -7
- package/{VoiceMessageInputWrapper-3adde78a.js.map → VoiceMessageInputWrapper-e45ec2f0.js.map} +1 -1
- package/VoicePlayer/context.js +3 -3
- package/VoicePlayer/useVoicePlayer.js +9 -9
- package/VoiceRecorder/context.js +9 -9
- package/VoiceRecorder/useVoiceRecorder.js +8 -8
- package/{WebAudioUtils-4efb2aab.js → WebAudioUtils-97e524fa.js} +2 -2
- package/{WebAudioUtils-4efb2aab.js.map → WebAudioUtils-97e524fa.js.map} +1 -1
- package/{_rollupPluginBabelHelpers-a69fd1ce.js → _rollupPluginBabelHelpers-34f2bdc3.js} +1 -1
- package/_rollupPluginBabelHelpers-34f2bdc3.js.map +1 -0
- package/{actionTypes-fa74e46a.js → actionTypes-e67c8999.js} +1 -1
- package/{actionTypes-fa74e46a.js.map → actionTypes-e67c8999.js.map} +1 -1
- package/cjs/App.js +48 -48
- package/cjs/Channel/components/ChannelHeader.js +19 -19
- package/cjs/Channel/components/ChannelUI.js +41 -41
- package/cjs/Channel/components/FileViewer.js +15 -15
- package/cjs/Channel/components/FrozenNotification.js +4 -4
- package/cjs/Channel/components/Message.js +36 -36
- package/cjs/Channel/components/MessageInput.js +29 -29
- package/cjs/Channel/components/MessageList.js +37 -37
- package/cjs/Channel/components/RemoveMessageModal.js +17 -17
- package/cjs/Channel/components/SuggestedMentionList.js +17 -17
- package/cjs/Channel/components/TypingIndicator.js +15 -15
- package/cjs/Channel/components/UnreadCount.js +4 -4
- package/cjs/Channel/context.js +12 -12
- package/cjs/Channel.js +41 -41
- package/cjs/ChannelList/components/AddChannel.js +14 -14
- package/cjs/ChannelList/components/ChannelListHeader.js +6 -6
- package/cjs/ChannelList/components/ChannelListUI.js +30 -30
- package/cjs/ChannelList/components/ChannelPreview.js +26 -26
- package/cjs/ChannelList/components/ChannelPreviewAction.js +13 -13
- package/cjs/ChannelList/context.js +7 -7
- package/cjs/ChannelList.js +30 -30
- package/cjs/{ChannelListProvider-ffde067b.js → ChannelListProvider-51837593.js} +7 -7
- package/cjs/{ChannelListProvider-ffde067b.js.map → ChannelListProvider-51837593.js.map} +1 -1
- package/cjs/{ChannelProvider-5e48d37b.js → ChannelProvider-ab59275b.js} +11 -11
- package/cjs/{ChannelProvider-5e48d37b.js.map → ChannelProvider-ab59275b.js.map} +1 -1
- package/cjs/ChannelSettings/components/ChannelProfile.js +11 -11
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js +17 -17
- package/cjs/ChannelSettings/components/EditDetailsModal.js +11 -11
- package/cjs/ChannelSettings/components/LeaveChannel.js +11 -11
- package/cjs/ChannelSettings/components/ModerationPanel.js +14 -14
- package/cjs/ChannelSettings/components/UserListItem.js +10 -10
- package/cjs/ChannelSettings/components/UserPanel.js +13 -13
- package/cjs/ChannelSettings/context.js +3 -3
- package/cjs/ChannelSettings.js +17 -17
- package/cjs/CreateChannel/components/CreateChannelUI.js +13 -13
- package/cjs/CreateChannel/components/InviteUsers.js +13 -13
- package/cjs/CreateChannel/components/SelectChannelType.js +10 -10
- package/cjs/CreateChannel/context.js +4 -4
- package/cjs/CreateChannel.js +13 -13
- package/cjs/{CreateChannelProvider-ba780bc9.js → CreateChannelProvider-e0ae2cf1.js} +1 -1
- package/cjs/{CreateChannelProvider-ba780bc9.js.map → CreateChannelProvider-e0ae2cf1.js.map} +1 -1
- package/cjs/CreateOpenChannel/components/CreateOpenChannelUI.js +9 -9
- package/cjs/CreateOpenChannel/context.js +1 -1
- package/cjs/CreateOpenChannel.js +9 -9
- package/cjs/EditUserProfile/components/EditUserProfileUI.js +12 -12
- package/cjs/EditUserProfile.js +12 -12
- package/cjs/{LocalizationContext-6adf6aa8.js → LocalizationContext-76831b0e.js} +3 -3
- package/cjs/{LocalizationContext-6adf6aa8.js.map → LocalizationContext-76831b0e.js.map} +1 -1
- package/cjs/{MediaQueryContext-1dd78ce3.js → MediaQueryContext-792b58f7.js} +1 -1
- package/cjs/{MediaQueryContext-1dd78ce3.js.map → MediaQueryContext-792b58f7.js.map} +1 -1
- package/cjs/{MemberList-8121474e.js → MemberList-6b630054.js} +5 -5
- package/cjs/{MemberList-8121474e.js.map → MemberList-6b630054.js.map} +1 -1
- package/cjs/MessageSearch/components/MessageSearchUI.js +11 -11
- package/cjs/MessageSearch/context.js +1 -1
- package/cjs/MessageSearch.js +11 -11
- package/cjs/OpenChannel/components/FrozenChannelNotification.js +4 -4
- package/cjs/OpenChannel/components/OpenChannelHeader.js +12 -12
- package/cjs/OpenChannel/components/OpenChannelInput.js +19 -19
- package/cjs/OpenChannel/components/OpenChannelMessage.js +27 -27
- package/cjs/OpenChannel/components/OpenChannelMessageList.js +31 -31
- package/cjs/OpenChannel/components/OpenChannelUI.js +31 -31
- package/cjs/OpenChannel/context.js +8 -8
- package/cjs/OpenChannel.js +31 -31
- package/cjs/OpenChannelList/components/OpenChannelListUI.js +13 -13
- package/cjs/OpenChannelList/components/OpenChannelPreview.js +3 -3
- package/cjs/OpenChannelList/context.js +3 -3
- package/cjs/OpenChannelList.js +13 -13
- package/cjs/{OpenChannelListProvider-58b81f55.js → OpenChannelListProvider-4d15730f.js} +3 -3
- package/cjs/{OpenChannelListProvider-58b81f55.js.map → OpenChannelListProvider-4d15730f.js.map} +1 -1
- package/cjs/{OpenChannelProvider-966adafd.js → OpenChannelProvider-2f59b53a.js} +7 -7
- package/cjs/{OpenChannelProvider-966adafd.js.map → OpenChannelProvider-2f59b53a.js.map} +1 -1
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js +12 -12
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +12 -12
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +17 -17
- package/cjs/OpenChannelSettings/components/OperatorUI.js +16 -16
- package/cjs/OpenChannelSettings/components/ParticipantUI.js +14 -14
- package/cjs/OpenChannelSettings/context.js +3 -3
- package/cjs/OpenChannelSettings.js +17 -17
- package/cjs/{RemoveMessageModal-84c513e4.js → RemoveMessageModal-47cae846.js} +3 -3
- package/cjs/{RemoveMessageModal-84c513e4.js.map → RemoveMessageModal-47cae846.js.map} +1 -1
- package/cjs/SendbirdProvider.js +15 -15
- package/cjs/SendbirdProvider.js.map +1 -1
- package/cjs/Thread/components/ParentMessageInfo.js +33 -33
- package/cjs/Thread/components/ParentMessageInfoItem.js +21 -21
- package/cjs/Thread/components/ThreadHeader.js +6 -6
- package/cjs/Thread/components/ThreadList.js +36 -36
- package/cjs/Thread/components/ThreadListItem.js +36 -36
- package/cjs/Thread/components/ThreadMessageInput.js +30 -30
- package/cjs/Thread/components/ThreadUI.js +40 -40
- package/cjs/Thread/context.js +8 -8
- package/cjs/Thread.js +40 -40
- package/cjs/{ThreadProvider-593ade0c.js → ThreadProvider-5844bd6d.js} +7 -7
- package/cjs/{ThreadProvider-593ade0c.js.map → ThreadProvider-5844bd6d.js.map} +1 -1
- package/cjs/{UserProfileContext-2ff8462c.js → UserProfileContext-5fd27232.js} +1 -1
- package/cjs/{UserProfileContext-2ff8462c.js.map → UserProfileContext-5fd27232.js.map} +1 -1
- package/cjs/{VoiceMessageInputWrapper-4cca3b34.js → VoiceMessageInputWrapper-e10f305f.js} +7 -7
- package/cjs/{VoiceMessageInputWrapper-4cca3b34.js.map → VoiceMessageInputWrapper-e10f305f.js.map} +1 -1
- package/cjs/VoicePlayer/context.js +3 -3
- package/cjs/VoicePlayer/useVoicePlayer.js +9 -9
- package/cjs/VoiceRecorder/context.js +9 -9
- package/cjs/VoiceRecorder/useVoiceRecorder.js +8 -8
- package/cjs/{WebAudioUtils-6558ec68.js → WebAudioUtils-4227909a.js} +2 -2
- package/cjs/{WebAudioUtils-6558ec68.js.map → WebAudioUtils-4227909a.js.map} +1 -1
- package/cjs/{_rollupPluginBabelHelpers-ea66c137.js → _rollupPluginBabelHelpers-2c208df7.js} +1 -1
- package/cjs/_rollupPluginBabelHelpers-2c208df7.js.map +1 -0
- package/cjs/{actionTypes-5bdd7ab3.js → actionTypes-64cb54b1.js} +1 -1
- package/cjs/{actionTypes-5bdd7ab3.js.map → actionTypes-64cb54b1.js.map} +1 -1
- package/cjs/{color-6641e39b.js → color-2a756176.js} +1 -1
- package/cjs/{color-6641e39b.js.map → color-2a756176.js.map} +1 -1
- package/cjs/{compareIds-7b0e4960.js → compareIds-d6d1cc62.js} +1 -1
- package/cjs/{compareIds-7b0e4960.js.map → compareIds-d6d1cc62.js.map} +1 -1
- package/cjs/{const-f6c8086e.js → const-0f73f007.js} +1 -1
- package/cjs/{const-f6c8086e.js.map → const-0f73f007.js.map} +1 -1
- package/cjs/{const-d9157ccd.js → const-2d057dc1.js} +1 -1
- package/cjs/{const-d9157ccd.js.map → const-2d057dc1.js.map} +1 -1
- package/cjs/{consts-a6f34df8.js → consts-0a4f487c.js} +1 -1
- package/cjs/{consts-a6f34df8.js.map → consts-0a4f487c.js.map} +1 -1
- package/cjs/{consts-bac93d6f.js → consts-5a40550e.js} +1 -1
- package/cjs/{consts-bac93d6f.js.map → consts-5a40550e.js.map} +1 -1
- package/cjs/{consts-c7178b6e.js → consts-c16c955d.js} +1 -1
- package/cjs/{consts-c7178b6e.js.map → consts-c16c955d.js.map} +1 -1
- package/cjs/{consts-3a74400a.js → consts-c1c7f3b9.js} +1 -1
- package/cjs/{consts-3a74400a.js.map → consts-c1c7f3b9.js.map} +1 -1
- package/cjs/{context-b369acb8.js → context-0bf4608e.js} +2 -2
- package/cjs/{context-b369acb8.js.map → context-0bf4608e.js.map} +1 -1
- package/cjs/dist/index.css +55 -55
- package/cjs/dist/index.css.map +1 -1
- package/cjs/{index-c5341a29.js → index-03a83f97.js} +4 -4
- package/cjs/{index-c5341a29.js.map → index-03a83f97.js.map} +1 -1
- package/cjs/{index-66630f40.js → index-060711f6.js} +2 -2
- package/cjs/{index-66630f40.js.map → index-060711f6.js.map} +1 -1
- package/cjs/{index-fb2bc562.js → index-29f85f9b.js} +2 -2
- package/cjs/{index-fb2bc562.js.map → index-29f85f9b.js.map} +1 -1
- package/cjs/{index-267c66ea.js → index-3aeb8bf9.js} +6 -6
- package/cjs/{index-267c66ea.js.map → index-3aeb8bf9.js.map} +1 -1
- package/cjs/{index-bff918b2.js → index-44985c08.js} +2 -2
- package/cjs/{index-bff918b2.js.map → index-44985c08.js.map} +1 -1
- package/cjs/{index-ce276e22.js → index-6977efce.js} +3 -3
- package/cjs/{index-ce276e22.js.map → index-6977efce.js.map} +1 -1
- package/cjs/{index-615ae40b.js → index-6a9e8bcb.js} +4 -4
- package/cjs/{index-615ae40b.js.map → index-6a9e8bcb.js.map} +1 -1
- package/cjs/{index-9b427971.js → index-6b02cca4.js} +3 -3
- package/cjs/{index-9b427971.js.map → index-6b02cca4.js.map} +1 -1
- package/cjs/{index-21cdd005.js → index-6c3bc4f9.js} +6 -6
- package/cjs/{index-21cdd005.js.map → index-6c3bc4f9.js.map} +1 -1
- package/cjs/{index-f84d188a.js → index-71863abf.js} +1 -1
- package/cjs/{index-f84d188a.js.map → index-71863abf.js.map} +1 -1
- package/cjs/{index-8d25341b.js → index-803f2ff2.js} +4 -4
- package/cjs/{index-8d25341b.js.map → index-803f2ff2.js.map} +1 -1
- package/cjs/{index-358554d2.js → index-b1b515a7.js} +2 -2
- package/cjs/{index-358554d2.js.map → index-b1b515a7.js.map} +1 -1
- package/cjs/{index-175b48d7.js → index-b5614bfa.js} +2 -2
- package/cjs/{index-175b48d7.js.map → index-b5614bfa.js.map} +1 -1
- package/cjs/{index-6a7f94de.js → index-c00c028b.js} +1 -1
- package/cjs/{index-6a7f94de.js.map → index-c00c028b.js.map} +1 -1
- package/cjs/{index-9c1aec32.js → index-d69866c1.js} +5 -5
- package/cjs/{index-9c1aec32.js.map → index-d69866c1.js.map} +1 -1
- package/cjs/{index-86e680cb.js → index-ea4739fe.js} +2 -2
- package/cjs/{index-86e680cb.js.map → index-ea4739fe.js.map} +1 -1
- package/cjs/{index-e43a902a.js → index-f3743012.js} +3 -3
- package/cjs/{index-e43a902a.js.map → index-f3743012.js.map} +1 -1
- package/cjs/index.js +52 -52
- package/cjs/{index.module-15d2b97f.js → index.module-bee98cc5.js} +1 -1
- package/cjs/{index.module-15d2b97f.js.map → index.module-bee98cc5.js.map} +1 -1
- package/cjs/package.json +1 -1
- package/cjs/{resolvedReplyType-fb851d3a.js → resolvedReplyType-9517a813.js} +1 -1
- package/cjs/{resolvedReplyType-fb851d3a.js.map → resolvedReplyType-9517a813.js.map} +1 -1
- package/cjs/sendbirdSelectors.js +3 -3
- package/cjs/{stringSet-5157206d.js → stringSet-39e8b84e.js} +1 -1
- package/cjs/{stringSet-5157206d.js.map → stringSet-39e8b84e.js.map} +1 -1
- package/cjs/{tokenize-bc5f4e11.js → tokenize-3176b8f2.js} +2 -2
- package/cjs/{tokenize-bc5f4e11.js.map → tokenize-3176b8f2.js.map} +1 -1
- package/cjs/{topics-2fe6fef6.js → topics-e1897e48.js} +1 -1
- package/cjs/{topics-2fe6fef6.js.map → topics-e1897e48.js.map} +1 -1
- package/cjs/{types-bed448a4.js → types-be32f153.js} +1 -1
- package/cjs/{types-bed448a4.js.map → types-be32f153.js.map} +1 -1
- package/cjs/ui/Accordion.js +2 -2
- package/cjs/ui/AccordionGroup.js +2 -2
- package/cjs/ui/AdminMessage.js +2 -2
- package/cjs/ui/Avatar.js +1 -1
- package/cjs/ui/Badge.js +4 -4
- package/cjs/ui/BottomSheet.js +1 -1
- package/cjs/ui/Button.js +2 -2
- package/cjs/ui/ChannelAvatar.js +2 -2
- package/cjs/ui/ConnectionStatus.js +4 -4
- package/cjs/ui/ContextMenu.js +5 -5
- package/cjs/ui/DateSeparator.js +3 -3
- package/cjs/ui/EmojiReactions.js +13 -13
- package/cjs/ui/FileMessageItemBody.js +6 -6
- package/cjs/ui/FileViewer.js +8 -8
- package/cjs/ui/IconButton.js +1 -1
- package/cjs/ui/Input.js +2 -2
- package/cjs/ui/Label.js +2 -2
- package/cjs/ui/LinkLabel.js +2 -2
- package/cjs/ui/MentionLabel.js +10 -10
- package/cjs/ui/MentionUserLabel.js +1 -1
- package/cjs/ui/MessageContent.js +28 -28
- package/cjs/ui/MessageInput.js +13 -13
- package/cjs/ui/MessageItemMenu.js +8 -8
- package/cjs/ui/MessageItemReactionMenu.js +8 -8
- package/cjs/ui/MessageSearchFileItem.js +10 -10
- package/cjs/ui/MessageSearchItem.js +8 -8
- package/cjs/ui/MessageStatus.js +10 -10
- package/cjs/ui/Modal.js +7 -7
- package/cjs/ui/OGMessageItemBody.js +14 -14
- package/cjs/ui/OpenChannelAdminMessage.js +2 -2
- package/cjs/ui/OpenChannelAvatar.js +5 -5
- package/cjs/ui/OpenchannelConversationHeader.js +6 -6
- package/cjs/ui/OpenchannelFileMessage.js +15 -15
- package/cjs/ui/OpenchannelOGMessage.js +18 -18
- package/cjs/ui/OpenchannelThumbnailMessage.js +14 -14
- package/cjs/ui/OpenchannelUserMessage.js +15 -15
- package/cjs/ui/PlaceHolder.js +5 -5
- package/cjs/ui/PlaybackTime.js +2 -2
- package/cjs/ui/QuoteMessage.js +6 -6
- package/cjs/ui/QuoteMessageInput.js +6 -6
- package/cjs/ui/ReactionBadge.js +2 -2
- package/cjs/ui/ReactionButton.js +4 -4
- package/cjs/ui/SortByRow.js +1 -1
- package/cjs/ui/TextButton.js +1 -1
- package/cjs/ui/TextMessageItemBody.js +14 -14
- package/cjs/ui/ThreadReplies.js +5 -5
- package/cjs/ui/ThumbnailMessageItemBody.js +5 -5
- package/cjs/ui/Toggle.js +1 -1
- package/cjs/ui/Tooltip.js +2 -2
- package/cjs/ui/UnknownMessageItemBody.js +6 -6
- package/cjs/ui/UserListItem.js +10 -10
- package/cjs/ui/UserProfile.js +9 -9
- package/cjs/ui/VoiceMessageItemBody.js +9 -9
- package/cjs/ui/VoiceMessgeInput.js +7 -7
- package/cjs/ui/Word.js +10 -10
- package/cjs/{useDirtyGetMentions-cef5c0f5.js → useDirtyGetMentions-041acd2a.js} +1 -1
- package/cjs/{useDirtyGetMentions-cef5c0f5.js.map → useDirtyGetMentions-041acd2a.js.map} +1 -1
- package/cjs/{useLongPress-928530d4.js → useLongPress-5432edbf.js} +3 -3
- package/cjs/{useLongPress-928530d4.js.map → useLongPress-5432edbf.js.map} +1 -1
- package/cjs/useSendbirdStateContext.js +1 -1
- package/cjs/utils/message/isVoiceMessage.js +2 -2
- package/cjs/{utils-4a8cff57.js → utils-24df69e2.js} +1 -1
- package/cjs/{utils-4a8cff57.js.map → utils-24df69e2.js.map} +1 -1
- package/cjs/{utils-58f8eea0.js → utils-b653226e.js} +1 -1
- package/cjs/{utils-58f8eea0.js.map → utils-b653226e.js.map} +1 -1
- package/cjs/{utils-df6bf1c0.js → utils-bec85954.js} +2 -2
- package/cjs/{utils-df6bf1c0.js.map → utils-bec85954.js.map} +1 -1
- package/cjs/{utils-82da2619.js → utils-e7fdfd61.js} +1 -1
- package/cjs/{utils-82da2619.js.map → utils-e7fdfd61.js.map} +1 -1
- package/cjs/{uuid-f1d9be11.js → uuid-54dc5376.js} +1 -1
- package/cjs/{uuid-f1d9be11.js.map → uuid-54dc5376.js.map} +1 -1
- package/cjs/withSendbird.js +1 -1
- package/{color-e708f53d.js → color-b73a158c.js} +1 -1
- package/{color-e708f53d.js.map → color-b73a158c.js.map} +1 -1
- package/{compareIds-aca19765.js → compareIds-eab12c15.js} +1 -1
- package/{compareIds-aca19765.js.map → compareIds-eab12c15.js.map} +1 -1
- package/{const-9982664a.js → const-72965dcb.js} +1 -1
- package/{const-9982664a.js.map → const-72965dcb.js.map} +1 -1
- package/{const-ddd9d461.js → const-9ab08d0b.js} +1 -1
- package/{const-ddd9d461.js.map → const-9ab08d0b.js.map} +1 -1
- package/{consts-f99cd0da.js → consts-0726d733.js} +1 -1
- package/{consts-f99cd0da.js.map → consts-0726d733.js.map} +1 -1
- package/{consts-15e764c0.js → consts-2475c80c.js} +1 -1
- package/{consts-15e764c0.js.map → consts-2475c80c.js.map} +1 -1
- package/{consts-e64103c6.js → consts-55e36248.js} +1 -1
- package/{consts-e64103c6.js.map → consts-55e36248.js.map} +1 -1
- package/{consts-2eeaa3de.js → consts-8c9214ee.js} +1 -1
- package/{consts-2eeaa3de.js.map → consts-8c9214ee.js.map} +1 -1
- package/{context-e98c1042.js → context-ebecf7b8.js} +2 -2
- package/{context-e98c1042.js.map → context-ebecf7b8.js.map} +1 -1
- package/dist/index.css +55 -55
- package/dist/index.css.map +1 -1
- package/{index-a9ca43b0.js → index-007ff82b.js} +6 -6
- package/{index-a9ca43b0.js.map → index-007ff82b.js.map} +1 -1
- package/{index-2528bdee.js → index-04e037ff.js} +2 -2
- package/{index-2528bdee.js.map → index-04e037ff.js.map} +1 -1
- package/{index-8567d9a9.js → index-055e94b6.js} +4 -4
- package/{index-8567d9a9.js.map → index-055e94b6.js.map} +1 -1
- package/{index-4105bc4d.js → index-0dd2ee39.js} +2 -2
- package/{index-4105bc4d.js.map → index-0dd2ee39.js.map} +1 -1
- package/{index-e3135090.js → index-642e3f32.js} +6 -6
- package/{index-e3135090.js.map → index-642e3f32.js.map} +1 -1
- package/{index-bcbd5c56.js → index-7727118e.js} +5 -5
- package/{index-bcbd5c56.js.map → index-7727118e.js.map} +1 -1
- package/{index-89c84c27.js → index-7b514167.js} +4 -4
- package/{index-89c84c27.js.map → index-7b514167.js.map} +1 -1
- package/{index-80b9e974.js → index-8485f009.js} +2 -2
- package/{index-80b9e974.js.map → index-8485f009.js.map} +1 -1
- package/{index-52ba73b9.js → index-8dcf7652.js} +3 -3
- package/{index-52ba73b9.js.map → index-8dcf7652.js.map} +1 -1
- package/{index-f83f0aac.js → index-96fe32b3.js} +2 -2
- package/{index-f83f0aac.js.map → index-96fe32b3.js.map} +1 -1
- package/{index-3e548496.js → index-a5bf5a96.js} +1 -1
- package/{index-3e548496.js.map → index-a5bf5a96.js.map} +1 -1
- package/{index-eefc5b10.js → index-af1fb797.js} +4 -4
- package/{index-eefc5b10.js.map → index-af1fb797.js.map} +1 -1
- package/{index-e7f4cbdf.js → index-b74226dc.js} +2 -2
- package/{index-e7f4cbdf.js.map → index-b74226dc.js.map} +1 -1
- package/{index-65ed45e9.js → index-c191462d.js} +3 -3
- package/{index-65ed45e9.js.map → index-c191462d.js.map} +1 -1
- package/{index-e40d8b24.js → index-c2640752.js} +2 -2
- package/{index-e40d8b24.js.map → index-c2640752.js.map} +1 -1
- package/{index-8b2036e8.js → index-c2c52b45.js} +3 -3
- package/{index-8b2036e8.js.map → index-c2c52b45.js.map} +1 -1
- package/{index-90420b99.js → index-e43e7fa2.js} +1 -1
- package/{index-90420b99.js.map → index-e43e7fa2.js.map} +1 -1
- package/index.d.ts +1 -1
- package/index.js +52 -52
- package/{index.module-8bb7760e.js → index.module-0ccd37ce.js} +1 -1
- package/{index.module-8bb7760e.js.map → index.module-0ccd37ce.js.map} +1 -1
- package/package.json +1 -1
- package/{resolvedReplyType-7bde5f56.js → resolvedReplyType-6785a18d.js} +1 -1
- package/{resolvedReplyType-7bde5f56.js.map → resolvedReplyType-6785a18d.js.map} +1 -1
- package/sendbirdSelectors.js +3 -3
- package/{stringSet-a62108b2.js → stringSet-23a36018.js} +1 -1
- package/{stringSet-a62108b2.js.map → stringSet-23a36018.js.map} +1 -1
- package/{tokenize-eec42500.js → tokenize-6f680d6a.js} +2 -2
- package/{tokenize-eec42500.js.map → tokenize-6f680d6a.js.map} +1 -1
- package/{topics-247fcf3a.js → topics-67f9a9f1.js} +1 -1
- package/{topics-247fcf3a.js.map → topics-67f9a9f1.js.map} +1 -1
- package/{types-d72e53f1.js → types-82eb7ae8.js} +1 -1
- package/{types-d72e53f1.js.map → types-82eb7ae8.js.map} +1 -1
- package/ui/Accordion.js +2 -2
- package/ui/AccordionGroup.js +2 -2
- package/ui/AdminMessage.js +2 -2
- package/ui/Avatar.js +1 -1
- package/ui/Badge.js +4 -4
- package/ui/BottomSheet.js +1 -1
- package/ui/Button.js +2 -2
- package/ui/ChannelAvatar.js +2 -2
- package/ui/ConnectionStatus.js +4 -4
- package/ui/ContextMenu.js +5 -5
- package/ui/DateSeparator.js +3 -3
- package/ui/EmojiReactions.js +13 -13
- package/ui/FileMessageItemBody.js +6 -6
- package/ui/FileViewer.js +8 -8
- package/ui/IconButton.js +1 -1
- package/ui/Input.js +2 -2
- package/ui/Label.js +2 -2
- package/ui/LinkLabel.js +2 -2
- package/ui/MentionLabel.js +10 -10
- package/ui/MentionUserLabel.js +1 -1
- package/ui/MessageContent.js +28 -28
- package/ui/MessageInput.js +13 -13
- package/ui/MessageItemMenu.js +8 -8
- package/ui/MessageItemReactionMenu.js +8 -8
- package/ui/MessageSearchFileItem.js +10 -10
- package/ui/MessageSearchItem.js +8 -8
- package/ui/MessageStatus.js +10 -10
- package/ui/Modal.js +7 -7
- package/ui/OGMessageItemBody.js +14 -14
- package/ui/OpenChannelAdminMessage.js +2 -2
- package/ui/OpenChannelAvatar.js +5 -5
- package/ui/OpenchannelConversationHeader.js +6 -6
- package/ui/OpenchannelFileMessage.js +15 -15
- package/ui/OpenchannelOGMessage.js +18 -18
- package/ui/OpenchannelThumbnailMessage.js +14 -14
- package/ui/OpenchannelUserMessage.js +15 -15
- package/ui/PlaceHolder.js +5 -5
- package/ui/PlaybackTime.js +2 -2
- package/ui/QuoteMessage.js +6 -6
- package/ui/QuoteMessageInput.js +6 -6
- package/ui/ReactionBadge.js +2 -2
- package/ui/ReactionButton.js +4 -4
- package/ui/SortByRow.js +1 -1
- package/ui/TextButton.js +1 -1
- package/ui/TextMessageItemBody.js +14 -14
- package/ui/ThreadReplies.js +5 -5
- package/ui/ThumbnailMessageItemBody.js +5 -5
- package/ui/Toggle.js +1 -1
- package/ui/Tooltip.js +2 -2
- package/ui/UnknownMessageItemBody.js +6 -6
- package/ui/UserListItem.js +10 -10
- package/ui/UserProfile.js +9 -9
- package/ui/VoiceMessageItemBody.js +9 -9
- package/ui/VoiceMessgeInput.js +7 -7
- package/ui/Word.js +10 -10
- package/{useDirtyGetMentions-f302bddb.js → useDirtyGetMentions-e4e855e3.js} +1 -1
- package/{useDirtyGetMentions-f302bddb.js.map → useDirtyGetMentions-e4e855e3.js.map} +1 -1
- package/{useLongPress-c0ba590c.js → useLongPress-0cf29ece.js} +3 -3
- package/{useLongPress-c0ba590c.js.map → useLongPress-0cf29ece.js.map} +1 -1
- package/useSendbirdStateContext.js +1 -1
- package/utils/message/isVoiceMessage.js +2 -2
- package/{utils-20147203.js → utils-8e781334.js} +1 -1
- package/{utils-20147203.js.map → utils-8e781334.js.map} +1 -1
- package/{utils-d317e3c3.js → utils-a7468577.js} +2 -2
- package/{utils-d317e3c3.js.map → utils-a7468577.js.map} +1 -1
- package/{utils-4bf6e4e6.js → utils-cae251db.js} +1 -1
- package/{utils-4bf6e4e6.js.map → utils-cae251db.js.map} +1 -1
- package/{utils-8e1b51bf.js → utils-e81640a7.js} +1 -1
- package/{utils-8e1b51bf.js.map → utils-e81640a7.js.map} +1 -1
- package/{uuid-2e8efc75.js → uuid-10fc0de7.js} +1 -1
- package/{uuid-2e8efc75.js.map → uuid-10fc0de7.js.map} +1 -1
- package/withSendbird.js +1 -1
- package/_rollupPluginBabelHelpers-a69fd1ce.js.map +0 -1
- package/cjs/_rollupPluginBabelHelpers-ea66c137.js.map +0 -1
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { b as _extends, _ as _objectSpread2 } from '../_rollupPluginBabelHelpers-
|
|
1
|
+
import { b as _extends, _ as _objectSpread2 } from '../_rollupPluginBabelHelpers-34f2bdc3.js';
|
|
2
2
|
import React__default, { useContext, useState, useRef, useMemo, useEffect } from 'react';
|
|
3
|
-
import { f as format } from '../index-
|
|
4
|
-
import { u as useLocalization } from '../LocalizationContext-
|
|
3
|
+
import { f as format } from '../index-b74226dc.js';
|
|
4
|
+
import { u as useLocalization } from '../LocalizationContext-2952e678.js';
|
|
5
5
|
import Avatar from './Avatar.js';
|
|
6
6
|
import ContextMenu, { MenuItems, MenuItem } from './ContextMenu.js';
|
|
7
7
|
import Icon, { IconColors, IconTypes } from './Icon.js';
|
|
8
8
|
import IconButton from './IconButton.js';
|
|
9
9
|
import ImageRenderer from './ImageRenderer.js';
|
|
10
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../index-
|
|
10
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../index-0dd2ee39.js';
|
|
11
11
|
import Loader from './Loader.js';
|
|
12
12
|
import UserProfile from './UserProfile.js';
|
|
13
|
-
import { a as UserProfileContext } from '../UserProfileContext-
|
|
14
|
-
import { g as getSenderFromMessage, b as isFineResend, s as showMenuTrigger, c as isFineDelete, O as OpenChannelMobileMenu, f as checkIsSent, d as checkIsPending, e as checkIsFailed } from '../index-
|
|
15
|
-
import { u as useMediaQueryContext } from '../MediaQueryContext-
|
|
16
|
-
import { u as useLongPress } from '../useLongPress-
|
|
17
|
-
import '../index-
|
|
18
|
-
import '../stringSet-
|
|
19
|
-
import '../uuid-
|
|
13
|
+
import { a as UserProfileContext } from '../UserProfileContext-76aab169.js';
|
|
14
|
+
import { g as getSenderFromMessage, b as isFineResend, s as showMenuTrigger, c as isFineDelete, O as OpenChannelMobileMenu, f as checkIsSent, d as checkIsPending, e as checkIsFailed } from '../index-04e037ff.js';
|
|
15
|
+
import { u as useMediaQueryContext } from '../MediaQueryContext-2173573f.js';
|
|
16
|
+
import { u as useLongPress } from '../useLongPress-0cf29ece.js';
|
|
17
|
+
import '../index-e43e7fa2.js';
|
|
18
|
+
import '../stringSet-23a36018.js';
|
|
19
|
+
import '../uuid-10fc0de7.js';
|
|
20
20
|
import 'prop-types';
|
|
21
21
|
import 'react-dom';
|
|
22
22
|
import './SortByRow.js';
|
|
23
|
-
import '../index-
|
|
23
|
+
import '../index-96fe32b3.js';
|
|
24
24
|
import '../utils/message/getOutgoingMessageState.js';
|
|
25
25
|
import '../sendbirdSelectors.js';
|
|
26
|
-
import '../topics-
|
|
27
|
-
import '../utils-
|
|
26
|
+
import '../topics-67f9a9f1.js';
|
|
27
|
+
import '../utils-cae251db.js';
|
|
28
28
|
import './Button.js';
|
|
29
29
|
import '../useSendbirdStateContext.js';
|
|
30
30
|
import '../withSendbird.js';
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { b as _extends, _ as _objectSpread2 } from '../_rollupPluginBabelHelpers-
|
|
1
|
+
import { b as _extends, _ as _objectSpread2 } from '../_rollupPluginBabelHelpers-34f2bdc3.js';
|
|
2
2
|
import React__default, { useContext, useRef, useState, useEffect } from 'react';
|
|
3
|
-
import { f as format } from '../index-
|
|
3
|
+
import { f as format } from '../index-b74226dc.js';
|
|
4
4
|
import Avatar from './Avatar.js';
|
|
5
5
|
import ContextMenu, { MenuItems, MenuItem } from './ContextMenu.js';
|
|
6
6
|
import Icon, { IconTypes, IconColors } from './Icon.js';
|
|
7
7
|
import IconButton from './IconButton.js';
|
|
8
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../index-
|
|
8
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../index-0dd2ee39.js';
|
|
9
9
|
import Loader from './Loader.js';
|
|
10
10
|
import UserProfile from './UserProfile.js';
|
|
11
|
-
import { a as UserProfileContext } from '../UserProfileContext-
|
|
12
|
-
import { u as useLocalization } from '../LocalizationContext-
|
|
13
|
-
import { c as copyToClipboard } from '../utils-
|
|
14
|
-
import { u as uuidv4 } from '../uuid-
|
|
15
|
-
import { g as getSenderFromMessage, s as showMenuTrigger, i as isFineCopy, a as isFineEdit, b as isFineResend, c as isFineDelete, O as OpenChannelMobileMenu, d as checkIsPending, e as checkIsFailed } from '../index-
|
|
16
|
-
import { u as useMediaQueryContext } from '../MediaQueryContext-
|
|
17
|
-
import { u as useLongPress } from '../useLongPress-
|
|
18
|
-
import { B as isEditedMessage } from '../index-
|
|
19
|
-
import '../index-
|
|
11
|
+
import { a as UserProfileContext } from '../UserProfileContext-76aab169.js';
|
|
12
|
+
import { u as useLocalization } from '../LocalizationContext-2952e678.js';
|
|
13
|
+
import { c as copyToClipboard } from '../utils-e81640a7.js';
|
|
14
|
+
import { u as uuidv4 } from '../uuid-10fc0de7.js';
|
|
15
|
+
import { g as getSenderFromMessage, s as showMenuTrigger, i as isFineCopy, a as isFineEdit, b as isFineResend, c as isFineDelete, O as OpenChannelMobileMenu, d as checkIsPending, e as checkIsFailed } from '../index-04e037ff.js';
|
|
16
|
+
import { u as useMediaQueryContext } from '../MediaQueryContext-2173573f.js';
|
|
17
|
+
import { u as useLongPress } from '../useLongPress-0cf29ece.js';
|
|
18
|
+
import { B as isEditedMessage } from '../index-96fe32b3.js';
|
|
19
|
+
import '../index-e43e7fa2.js';
|
|
20
20
|
import './ImageRenderer.js';
|
|
21
21
|
import 'prop-types';
|
|
22
22
|
import 'react-dom';
|
|
23
23
|
import './SortByRow.js';
|
|
24
24
|
import '../utils/message/getOutgoingMessageState.js';
|
|
25
|
-
import '../stringSet-
|
|
25
|
+
import '../stringSet-23a36018.js';
|
|
26
26
|
import '../sendbirdSelectors.js';
|
|
27
|
-
import '../topics-
|
|
28
|
-
import '../utils-
|
|
27
|
+
import '../topics-67f9a9f1.js';
|
|
28
|
+
import '../utils-cae251db.js';
|
|
29
29
|
import './Button.js';
|
|
30
30
|
import '../useSendbirdStateContext.js';
|
|
31
31
|
import '../withSendbird.js';
|
package/ui/PlaceHolder.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
export { a as PlaceHolderTypes, P as default } from '../index-
|
|
3
|
-
import '../LocalizationContext-
|
|
2
|
+
export { a as PlaceHolderTypes, P as default } from '../index-c2c52b45.js';
|
|
3
|
+
import '../LocalizationContext-2952e678.js';
|
|
4
4
|
import './Icon.js';
|
|
5
|
-
import '../index-
|
|
5
|
+
import '../index-0dd2ee39.js';
|
|
6
6
|
import './Loader.js';
|
|
7
|
-
import '../stringSet-
|
|
8
|
-
import '../index-
|
|
7
|
+
import '../stringSet-23a36018.js';
|
|
8
|
+
import '../index-e43e7fa2.js';
|
|
9
9
|
import 'prop-types';
|
|
10
10
|
//# sourceMappingURL=PlaceHolder.js.map
|
package/ui/PlaybackTime.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { a as LabelTypography, b as LabelColors, L as Label } from '../index-
|
|
2
|
+
import { a as LabelTypography, b as LabelColors, L as Label } from '../index-0dd2ee39.js';
|
|
3
3
|
import 'prop-types';
|
|
4
|
-
import '../stringSet-
|
|
4
|
+
import '../stringSet-23a36018.js';
|
|
5
5
|
|
|
6
6
|
const PlaybackTime = _ref => {
|
|
7
7
|
let {
|
package/ui/QuoteMessage.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React__default, { useContext, useState } from 'react';
|
|
2
2
|
import Icon, { IconTypes, IconColors } from './Icon.js';
|
|
3
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../index-
|
|
3
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../index-0dd2ee39.js';
|
|
4
4
|
import ImageRenderer from './ImageRenderer.js';
|
|
5
|
-
import { a as LocalizationContext } from '../LocalizationContext-
|
|
6
|
-
import { M as getUIKitFileTypes, h as getClassName, q as isUserMessage, d as isVoiceMessage, m as isThumbnailMessage, y as isVideo, N as isGif, r as getUIKitMessageType, U as UIKitMessageTypes, L as getUIKitFileType, t as truncateString } from '../index-
|
|
5
|
+
import { a as LocalizationContext } from '../LocalizationContext-2952e678.js';
|
|
6
|
+
import { M as getUIKitFileTypes, h as getClassName, q as isUserMessage, d as isVoiceMessage, m as isThumbnailMessage, y as isVideo, N as isGif, r as getUIKitMessageType, U as UIKitMessageTypes, L as getUIKitFileType, t as truncateString } from '../index-96fe32b3.js';
|
|
7
7
|
import 'prop-types';
|
|
8
|
-
import '../stringSet-
|
|
9
|
-
import '../index-
|
|
10
|
-
import '../_rollupPluginBabelHelpers-
|
|
8
|
+
import '../stringSet-23a36018.js';
|
|
9
|
+
import '../index-e43e7fa2.js';
|
|
10
|
+
import '../_rollupPluginBabelHelpers-34f2bdc3.js';
|
|
11
11
|
import '../utils/message/getOutgoingMessageState.js';
|
|
12
12
|
|
|
13
13
|
function QuoteMessage(_ref) {
|
package/ui/QuoteMessageInput.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React__default, { useContext } from 'react';
|
|
2
|
-
import { k as isFileMessage, d as isVoiceMessage, l as isImageMessage, m as isThumbnailMessage, n as isAudioMessage, h as getClassName, o as isGifMessage, p as isVideoMessage, q as isUserMessage, r as getUIKitMessageType, U as UIKitMessageTypes } from '../index-
|
|
2
|
+
import { k as isFileMessage, d as isVoiceMessage, l as isImageMessage, m as isThumbnailMessage, n as isAudioMessage, h as getClassName, o as isGifMessage, p as isVideoMessage, q as isUserMessage, r as getUIKitMessageType, U as UIKitMessageTypes } from '../index-96fe32b3.js';
|
|
3
3
|
import Icon, { IconTypes, IconColors } from './Icon.js';
|
|
4
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../index-
|
|
5
|
-
import { a as LocalizationContext } from '../LocalizationContext-
|
|
4
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../index-0dd2ee39.js';
|
|
5
|
+
import { a as LocalizationContext } from '../LocalizationContext-2952e678.js';
|
|
6
6
|
import ImageRenderer from './ImageRenderer.js';
|
|
7
|
-
import '../_rollupPluginBabelHelpers-
|
|
7
|
+
import '../_rollupPluginBabelHelpers-34f2bdc3.js';
|
|
8
8
|
import '../utils/message/getOutgoingMessageState.js';
|
|
9
9
|
import 'prop-types';
|
|
10
|
-
import '../stringSet-
|
|
11
|
-
import '../index-
|
|
10
|
+
import '../stringSet-23a36018.js';
|
|
11
|
+
import '../index-e43e7fa2.js';
|
|
12
12
|
|
|
13
13
|
const componentClassname = 'sendbird-quote_message_input__avatar';
|
|
14
14
|
function QuoteMessageThumbnail(_ref) {
|
package/ui/ReactionBadge.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../index-
|
|
2
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../index-0dd2ee39.js';
|
|
3
3
|
import 'prop-types';
|
|
4
|
-
import '../stringSet-
|
|
4
|
+
import '../stringSet-23a36018.js';
|
|
5
5
|
|
|
6
6
|
const ReactionBadge = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
|
7
7
|
const {
|
package/ui/ReactionButton.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as _extends } from '../_rollupPluginBabelHelpers-
|
|
1
|
+
import { b as _extends } from '../_rollupPluginBabelHelpers-34f2bdc3.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { u as useLongPress } from '../useLongPress-
|
|
4
|
-
import { n as noop } from '../utils-
|
|
5
|
-
import '../MediaQueryContext-
|
|
3
|
+
import { u as useLongPress } from '../useLongPress-0cf29ece.js';
|
|
4
|
+
import { n as noop } from '../utils-cae251db.js';
|
|
5
|
+
import '../MediaQueryContext-2173573f.js';
|
|
6
6
|
|
|
7
7
|
const ReactionButton = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
|
8
8
|
const {
|
package/ui/SortByRow.js
CHANGED
package/ui/TextButton.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import React__default, { useContext, useMemo } from 'react';
|
|
2
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../index-
|
|
3
|
-
import { h as getClassName, B as isEditedMessage } from '../index-
|
|
4
|
-
import { a as LocalizationContext } from '../LocalizationContext-
|
|
5
|
-
import { t as tokenizeMessage } from '../tokenize-
|
|
6
|
-
import { T as TextFragment } from '../index-
|
|
7
|
-
import { T as TEXT_MESSAGE_BODY_CLASSNAME } from '../consts-
|
|
2
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../index-0dd2ee39.js';
|
|
3
|
+
import { h as getClassName, B as isEditedMessage } from '../index-96fe32b3.js';
|
|
4
|
+
import { a as LocalizationContext } from '../LocalizationContext-2952e678.js';
|
|
5
|
+
import { t as tokenizeMessage } from '../tokenize-6f680d6a.js';
|
|
6
|
+
import { T as TextFragment } from '../index-7b514167.js';
|
|
7
|
+
import { T as TEXT_MESSAGE_BODY_CLASSNAME } from '../consts-0726d733.js';
|
|
8
8
|
import 'prop-types';
|
|
9
|
-
import '../stringSet-
|
|
10
|
-
import '../_rollupPluginBabelHelpers-
|
|
9
|
+
import '../stringSet-23a36018.js';
|
|
10
|
+
import '../_rollupPluginBabelHelpers-34f2bdc3.js';
|
|
11
11
|
import '../utils/message/getOutgoingMessageState.js';
|
|
12
|
-
import '../index-
|
|
13
|
-
import '../index.module-
|
|
12
|
+
import '../index-e43e7fa2.js';
|
|
13
|
+
import '../index.module-0ccd37ce.js';
|
|
14
14
|
import '../Message/context.js';
|
|
15
15
|
import './MentionLabel.js';
|
|
16
16
|
import './ContextMenu.js';
|
|
17
17
|
import 'react-dom';
|
|
18
18
|
import './SortByRow.js';
|
|
19
|
-
import '../uuid-
|
|
19
|
+
import '../uuid-10fc0de7.js';
|
|
20
20
|
import './UserProfile.js';
|
|
21
|
-
import '../UserProfileContext-
|
|
21
|
+
import '../UserProfileContext-76aab169.js';
|
|
22
22
|
import '../sendbirdSelectors.js';
|
|
23
|
-
import '../topics-
|
|
24
|
-
import '../utils-
|
|
23
|
+
import '../topics-67f9a9f1.js';
|
|
24
|
+
import '../utils-cae251db.js';
|
|
25
25
|
import './Avatar.js';
|
|
26
26
|
import './ImageRenderer.js';
|
|
27
27
|
import './Icon.js';
|
package/ui/ThreadReplies.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import Avatar from './Avatar.js';
|
|
3
3
|
import Icon, { IconTypes, IconColors } from './Icon.js';
|
|
4
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../index-
|
|
5
|
-
import { u as useLocalization } from '../LocalizationContext-
|
|
6
|
-
import { u as uuidv4 } from '../uuid-
|
|
4
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../index-0dd2ee39.js';
|
|
5
|
+
import { u as useLocalization } from '../LocalizationContext-2952e678.js';
|
|
6
|
+
import { u as uuidv4 } from '../uuid-10fc0de7.js';
|
|
7
7
|
import './ImageRenderer.js';
|
|
8
8
|
import 'prop-types';
|
|
9
|
-
import '../stringSet-
|
|
10
|
-
import '../index-
|
|
9
|
+
import '../stringSet-23a36018.js';
|
|
10
|
+
import '../index-e43e7fa2.js';
|
|
11
11
|
|
|
12
12
|
function ThreadReplies(_ref) {
|
|
13
13
|
var _mostRepliedUsers$;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { b as _extends } from '../_rollupPluginBabelHelpers-
|
|
1
|
+
import { b as _extends } from '../_rollupPluginBabelHelpers-34f2bdc3.js';
|
|
2
2
|
import React__default, { useState } from 'react';
|
|
3
3
|
import Icon, { IconTypes, IconColors } from './Icon.js';
|
|
4
4
|
import ImageRenderer from './ImageRenderer.js';
|
|
5
|
-
import { h as getClassName, p as isVideoMessage, o as isGifMessage, C as isSentMessage } from '../index-
|
|
6
|
-
import { n as noop } from '../utils-
|
|
7
|
-
import { u as useLongPress } from '../useLongPress-
|
|
5
|
+
import { h as getClassName, p as isVideoMessage, o as isGifMessage, C as isSentMessage } from '../index-96fe32b3.js';
|
|
6
|
+
import { n as noop } from '../utils-cae251db.js';
|
|
7
|
+
import { u as useLongPress } from '../useLongPress-0cf29ece.js';
|
|
8
8
|
import 'prop-types';
|
|
9
9
|
import '../utils/message/getOutgoingMessageState.js';
|
|
10
|
-
import '../MediaQueryContext-
|
|
10
|
+
import '../MediaQueryContext-2173573f.js';
|
|
11
11
|
|
|
12
12
|
function ThumbnailMessageItemBody(_ref) {
|
|
13
13
|
var _thumbnails$, _message$reactions$le, _message$reactions;
|
package/ui/Toggle.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default, { useState, useCallback } from 'react';
|
|
2
|
-
import { _ as _objectSpread2 } from '../_rollupPluginBabelHelpers-
|
|
2
|
+
import { _ as _objectSpread2 } from '../_rollupPluginBabelHelpers-34f2bdc3.js';
|
|
3
3
|
import useSendbirdStateContext from '../useSendbirdStateContext.js';
|
|
4
4
|
import '../withSendbird.js';
|
|
5
5
|
|
package/ui/Tooltip.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../index-
|
|
2
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../index-0dd2ee39.js';
|
|
3
3
|
import 'prop-types';
|
|
4
|
-
import '../stringSet-
|
|
4
|
+
import '../stringSet-23a36018.js';
|
|
5
5
|
|
|
6
6
|
function Tooltip(_ref) {
|
|
7
7
|
let {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React__default, { useContext } from 'react';
|
|
2
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../index-
|
|
3
|
-
import { h as getClassName } from '../index-
|
|
4
|
-
import { a as LocalizationContext } from '../LocalizationContext-
|
|
2
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../index-0dd2ee39.js';
|
|
3
|
+
import { h as getClassName } from '../index-96fe32b3.js';
|
|
4
|
+
import { a as LocalizationContext } from '../LocalizationContext-2952e678.js';
|
|
5
5
|
import 'prop-types';
|
|
6
|
-
import '../stringSet-
|
|
7
|
-
import '../_rollupPluginBabelHelpers-
|
|
6
|
+
import '../stringSet-23a36018.js';
|
|
7
|
+
import '../_rollupPluginBabelHelpers-34f2bdc3.js';
|
|
8
8
|
import '../utils/message/getOutgoingMessageState.js';
|
|
9
|
-
import '../index-
|
|
9
|
+
import '../index-e43e7fa2.js';
|
|
10
10
|
|
|
11
11
|
function UnknownMessageItemBody(_ref) {
|
|
12
12
|
var _message$reactions;
|
package/ui/UserListItem.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import React__default, { useContext } from 'react';
|
|
2
|
-
import { a as UserProfileContext } from '../UserProfileContext-
|
|
3
|
-
import { a as LocalizationContext } from '../LocalizationContext-
|
|
2
|
+
import { a as UserProfileContext } from '../UserProfileContext-76aab169.js';
|
|
3
|
+
import { a as LocalizationContext } from '../LocalizationContext-2952e678.js';
|
|
4
4
|
import Avatar from './Avatar.js';
|
|
5
5
|
import MutedAvatarOverlay from './MutedAvatarOverlay.js';
|
|
6
6
|
import Checkbox from './Checkbox.js';
|
|
7
7
|
import UserProfile from './UserProfile.js';
|
|
8
8
|
import ContextMenu, { MenuItems } from './ContextMenu.js';
|
|
9
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../index-
|
|
9
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../index-0dd2ee39.js';
|
|
10
10
|
import 'prop-types';
|
|
11
|
-
import '../stringSet-
|
|
12
|
-
import '../index-
|
|
11
|
+
import '../stringSet-23a36018.js';
|
|
12
|
+
import '../index-e43e7fa2.js';
|
|
13
13
|
import './ImageRenderer.js';
|
|
14
14
|
import './Icon.js';
|
|
15
|
-
import '../uuid-
|
|
15
|
+
import '../uuid-10fc0de7.js';
|
|
16
16
|
import '../sendbirdSelectors.js';
|
|
17
|
-
import '../_rollupPluginBabelHelpers-
|
|
18
|
-
import '../topics-
|
|
19
|
-
import '../utils-
|
|
17
|
+
import '../_rollupPluginBabelHelpers-34f2bdc3.js';
|
|
18
|
+
import '../topics-67f9a9f1.js';
|
|
19
|
+
import '../utils-cae251db.js';
|
|
20
20
|
import './Button.js';
|
|
21
21
|
import '../useSendbirdStateContext.js';
|
|
22
22
|
import '../withSendbird.js';
|
|
23
23
|
import 'react-dom';
|
|
24
24
|
import './SortByRow.js';
|
|
25
|
-
import '../index-
|
|
25
|
+
import '../index-96fe32b3.js';
|
|
26
26
|
import '../utils/message/getOutgoingMessageState.js';
|
|
27
27
|
|
|
28
28
|
function UserListItem(_ref) {
|
package/ui/UserProfile.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import React__default, { useContext } from 'react';
|
|
2
|
-
import { a as LocalizationContext } from '../LocalizationContext-
|
|
3
|
-
import { a as UserProfileContext } from '../UserProfileContext-
|
|
2
|
+
import { a as LocalizationContext } from '../LocalizationContext-2952e678.js';
|
|
3
|
+
import { a as UserProfileContext } from '../UserProfileContext-76aab169.js';
|
|
4
4
|
import { getCreateGroupChannel } from '../sendbirdSelectors.js';
|
|
5
5
|
import Avatar from './Avatar.js';
|
|
6
|
-
import { L as Label, a as LabelTypography, b as LabelColors } from '../index-
|
|
6
|
+
import { L as Label, a as LabelTypography, b as LabelColors } from '../index-0dd2ee39.js';
|
|
7
7
|
import Button, { ButtonTypes } from './Button.js';
|
|
8
8
|
import useSendbirdStateContext from '../useSendbirdStateContext.js';
|
|
9
|
-
import '../stringSet-
|
|
10
|
-
import '../index-
|
|
9
|
+
import '../stringSet-23a36018.js';
|
|
10
|
+
import '../index-e43e7fa2.js';
|
|
11
11
|
import 'prop-types';
|
|
12
|
-
import '../_rollupPluginBabelHelpers-
|
|
13
|
-
import '../topics-
|
|
14
|
-
import '../utils-
|
|
12
|
+
import '../_rollupPluginBabelHelpers-34f2bdc3.js';
|
|
13
|
+
import '../topics-67f9a9f1.js';
|
|
14
|
+
import '../utils-cae251db.js';
|
|
15
15
|
import './ImageRenderer.js';
|
|
16
16
|
import './Icon.js';
|
|
17
|
-
import '../uuid-
|
|
17
|
+
import '../uuid-10fc0de7.js';
|
|
18
18
|
import '../withSendbird.js';
|
|
19
19
|
|
|
20
20
|
function UserProfile(_ref) {
|
|
@@ -4,21 +4,21 @@ import { useVoicePlayer } from '../VoicePlayer/useVoicePlayer.js';
|
|
|
4
4
|
import { PlaybackTime } from './PlaybackTime.js';
|
|
5
5
|
import Loader from './Loader.js';
|
|
6
6
|
import Icon, { IconTypes, IconColors } from './Icon.js';
|
|
7
|
-
import { a as LabelTypography, b as LabelColors } from '../index-
|
|
8
|
-
import { a as VOICE_PLAYER_STATUS } from '../index-
|
|
9
|
-
import '../consts-
|
|
7
|
+
import { a as LabelTypography, b as LabelColors } from '../index-0dd2ee39.js';
|
|
8
|
+
import { a as VOICE_PLAYER_STATUS } from '../index-8dcf7652.js';
|
|
9
|
+
import '../consts-55e36248.js';
|
|
10
10
|
import '../VoiceRecorder/context.js';
|
|
11
|
-
import '../LocalizationContext-
|
|
12
|
-
import '../stringSet-
|
|
13
|
-
import '../index-
|
|
11
|
+
import '../LocalizationContext-2952e678.js';
|
|
12
|
+
import '../stringSet-23a36018.js';
|
|
13
|
+
import '../index-e43e7fa2.js';
|
|
14
14
|
import './Modal.js';
|
|
15
15
|
import 'react-dom';
|
|
16
|
-
import '../index-
|
|
16
|
+
import '../index-a5bf5a96.js';
|
|
17
17
|
import './Button.js';
|
|
18
18
|
import 'prop-types';
|
|
19
19
|
import './IconButton.js';
|
|
20
|
-
import '../_rollupPluginBabelHelpers-
|
|
21
|
-
import '../MediaQueryContext-
|
|
20
|
+
import '../_rollupPluginBabelHelpers-34f2bdc3.js';
|
|
21
|
+
import '../MediaQueryContext-2173573f.js';
|
|
22
22
|
import '../useSendbirdStateContext.js';
|
|
23
23
|
import '../withSendbird.js';
|
|
24
24
|
|
package/ui/VoiceMessgeInput.js
CHANGED
|
@@ -3,12 +3,12 @@ import './PlaybackTime.js';
|
|
|
3
3
|
import './ProgressBar.js';
|
|
4
4
|
import './TextButton.js';
|
|
5
5
|
import './Icon.js';
|
|
6
|
-
import '../index-
|
|
7
|
-
import '../LocalizationContext-
|
|
8
|
-
export { a as VoiceMessageInput } from '../index-
|
|
9
|
-
import '../consts-
|
|
6
|
+
import '../index-0dd2ee39.js';
|
|
7
|
+
import '../LocalizationContext-2952e678.js';
|
|
8
|
+
export { a as VoiceMessageInput } from '../index-055e94b6.js';
|
|
9
|
+
import '../consts-55e36248.js';
|
|
10
10
|
import 'prop-types';
|
|
11
|
-
import '../stringSet-
|
|
12
|
-
import '../color-
|
|
13
|
-
import '../index-
|
|
11
|
+
import '../stringSet-23a36018.js';
|
|
12
|
+
import '../color-b73a158c.js';
|
|
13
|
+
import '../index-e43e7fa2.js';
|
|
14
14
|
//# sourceMappingURL=VoiceMessgeInput.js.map
|
package/ui/Word.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { a as LabelTypography } from '../index-
|
|
2
|
+
import { a as LabelTypography } from '../index-0dd2ee39.js';
|
|
3
3
|
import LinkLabel from './LinkLabel.js';
|
|
4
|
-
import { u as uuidv4 } from '../uuid-
|
|
5
|
-
import { P as convertWordToStringObj, S as StringObjType } from '../index-
|
|
4
|
+
import { u as uuidv4 } from '../uuid-10fc0de7.js';
|
|
5
|
+
import { P as convertWordToStringObj, S as StringObjType } from '../index-96fe32b3.js';
|
|
6
6
|
import MentionLabel from './MentionLabel.js';
|
|
7
7
|
import 'prop-types';
|
|
8
|
-
import '../stringSet-
|
|
9
|
-
import '../_rollupPluginBabelHelpers-
|
|
8
|
+
import '../stringSet-23a36018.js';
|
|
9
|
+
import '../_rollupPluginBabelHelpers-34f2bdc3.js';
|
|
10
10
|
import '../utils/message/getOutgoingMessageState.js';
|
|
11
11
|
import './ContextMenu.js';
|
|
12
12
|
import 'react-dom';
|
|
13
13
|
import './SortByRow.js';
|
|
14
14
|
import './UserProfile.js';
|
|
15
|
-
import '../LocalizationContext-
|
|
16
|
-
import '../index-
|
|
17
|
-
import '../UserProfileContext-
|
|
15
|
+
import '../LocalizationContext-2952e678.js';
|
|
16
|
+
import '../index-e43e7fa2.js';
|
|
17
|
+
import '../UserProfileContext-76aab169.js';
|
|
18
18
|
import '../sendbirdSelectors.js';
|
|
19
|
-
import '../topics-
|
|
20
|
-
import '../utils-
|
|
19
|
+
import '../topics-67f9a9f1.js';
|
|
20
|
+
import '../utils-cae251db.js';
|
|
21
21
|
import './Avatar.js';
|
|
22
22
|
import './ImageRenderer.js';
|
|
23
23
|
import './Icon.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDirtyGetMentions-
|
|
1
|
+
{"version":3,"file":"useDirtyGetMentions-e4e855e3.js","sources":["../src/modules/Message/utils/getMentionNodes.ts","../src/modules/Message/hooks/useDirtyGetMentions.ts"],"sourcesContent":["export function getMentionNodes(root: HTMLElement): Element[] {\n if (root) {\n const mentions = root.querySelectorAll(\"[data-sb-mention='true']\");\n const mentionsArray = Array.from(mentions);\n return mentionsArray;\n }\n return [];\n}\n","import { useEffect, useLayoutEffect, useState } from 'react';\n\nimport { Logger } from '../../../lib/SendbirdState';\nimport { getMentionNodes } from '../utils/getMentionNodes';\n\ninterface DynamicParams {\n ref: React.RefObject<HTMLElement>;\n}\n\ninterface StaticParams {\n logger: Logger;\n}\n\n/**\n * This is a dirty way to get the mentions given DOM node\n */\nexport function useDirtyGetMentions({\n ref,\n}: DynamicParams, {\n logger,\n}: StaticParams) {\n // Select the node that will be observed for mutations\n const targetNode = ref.current as HTMLElement;\n const [mentionNodes, setMentionNodes] = useState<Element[]>([]);\n\n // to get the initial mentions\n useLayoutEffect(() => {\n if (targetNode) {\n const mentions = getMentionNodes(targetNode);\n setMentionNodes(mentions);\n }\n }, [targetNode]);\n\n useEffect(() => {\n // Options for the observer (which mutations to observe)\n const config = { childList: true, subtree: true };\n\n // Callback function to execute when mutations are observed\n const callback = (mutationList: MutationRecord[]): void => {\n const hasMutation = mutationList.length > 0;\n if (hasMutation) {\n setMentionNodes(getMentionNodes(targetNode));\n }\n };\n\n // Create an observer instance linked to the callback function\n const observer = new MutationObserver(callback);\n\n if (targetNode) {\n // Start observing the target node for configured mutations\n observer.observe(targetNode, config);\n logger.info('useDirtyGetMentions: observer started', { observer, config });\n }\n\n return () => {\n try {\n observer.disconnect();\n logger.info('useDirtyGetMentions: observer disconnected', { observer });\n } catch (error) {\n logger.error('useDirtyGetMentions: observer disconnect failed', { observer });\n }\n };\n }, [targetNode]);\n return mentionNodes;\n}\n"],"names":["getMentionNodes","root","mentions","querySelectorAll","mentionsArray","Array","from","useDirtyGetMentions","_ref","_ref2","ref","logger","targetNode","current","mentionNodes","setMentionNodes","useState","useLayoutEffect","useEffect","config","childList","subtree","callback","mutationList","hasMutation","length","observer","MutationObserver","observe","info","disconnect","error"],"mappings":";;AAAO,SAASA,eAAeA,CAACC,IAAiB,EAAa;AAC5D,EAAA,IAAIA,IAAI,EAAE;AACR,IAAA,MAAMC,QAAQ,GAAGD,IAAI,CAACE,gBAAgB,CAAC,0BAA0B,CAAC,CAAA;AAClE,IAAA,MAAMC,aAAa,GAAGC,KAAK,CAACC,IAAI,CAACJ,QAAQ,CAAC,CAAA;AAC1C,IAAA,OAAOE,aAAa,CAAA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AAuC,EAAE;QAAEH,QAAQ;AAAEP,QAAAA,MAAAA;AAAO,OAAC,CAAC,CAAA;AAC5E,KAAA;AAEA,IAAA,OAAO,MAAM;MACX,IAAI;QACFO,QAAQ,CAACI,UAAU,EAAE,CAAA;AACrBnB,QAAAA,MAAM,CAACkB,IAAI,CAAC,4CAA4C,EAAE;AAAEH,UAAAA,QAAAA;AAAS,SAAC,CAAC,CAAA;OACxE,CAAC,OAAOK,KAAK,EAAE;AACdpB,QAAAA,MAAM,CAACoB,KAAK,CAAC,iDAAiD,EAAE;AAAEL,UAAAA,QAAAA;AAAS,SAAC,CAAC,CAAA;AAC/E,OAAA;KACD,CAAA;AACH,GAAC,EAAE,CAACd,UAAU,CAAC,CAAC,CAAA;AAChB,EAAA,OAAOE,YAAY,CAAA;AACrB;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as _objectSpread2 } from './_rollupPluginBabelHelpers-
|
|
1
|
+
import { _ as _objectSpread2 } from './_rollupPluginBabelHelpers-34f2bdc3.js';
|
|
2
2
|
import { useState, useRef, useCallback } from 'react';
|
|
3
|
-
import { u as useMediaQueryContext } from './MediaQueryContext-
|
|
3
|
+
import { u as useMediaQueryContext } from './MediaQueryContext-2173573f.js';
|
|
4
4
|
|
|
5
5
|
const DEFAULT_DURATION = 300;
|
|
6
6
|
function preventDefault(e) {
|
|
@@ -82,4 +82,4 @@ function useLongPress(_ref) {
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
export { useLongPress as u };
|
|
85
|
-
//# sourceMappingURL=useLongPress-
|
|
85
|
+
//# sourceMappingURL=useLongPress-0cf29ece.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLongPress-
|
|
1
|
+
{"version":3,"file":"useLongPress-0cf29ece.js","sources":["../src/hooks/useLongPress.tsx"],"sourcesContent":["// thanks to: https://stackoverflow.com/questions/48048957/react-long-press-event\n/* example:\n const Component = ({ onClick }) => {\n const onLongPress = useLongPress({\n onClick: onClick,\n onLongPress: () => {\n alert('longpress');\n }\n }, {\n delay: 500,\n shouldPreventDefault: true,\n });\n return (\n <button {...onLongPress}>\n hello\n </button>\n )\n }\n*/\nimport React, {\n useState,\n useRef,\n useCallback,\n} from 'react';\nimport {\n useMediaQueryContext,\n} from '../lib/MediaQueryContext';\n\nconst DEFAULT_DURATION = 300;\n\nfunction preventDefault(e: Event) {\n if (!isTouchEvent(e)) {\n return;\n }\n\n if (e.touches.length < 2 && e.preventDefault) {\n e.preventDefault();\n }\n}\n\nexport function isTouchEvent(e: Event): e is TouchEvent {\n return e && 'touches' in e;\n}\n\ninterface PressHandlers<T> {\n onLongPress: (e: React.MouseEvent<T> | React.TouchEvent<T>) => void;\n onClick?: (e: React.MouseEvent<T> | React.TouchEvent<T>) => void;\n}\n\ninterface Options {\n delay?: number;\n shouldPreventDefault?: boolean;\n shouldStopPropagation?: boolean;\n}\n\ninterface UseLongPressType<T> {\n onTouchMove: (e: React.TouchEvent<T>) => void;\n onMouseDown: (e: React.MouseEvent<T>) => void;\n onTouchStart: (e: React.TouchEvent<T>) => void;\n onMouseUp: (e: React.MouseEvent<T>) => void;\n onMouseLeave: (e: React.MouseEvent<T>) => void;\n onTouchEnd: (e: React.TouchEvent<T>) => void;\n}\n\nexport default function useLongPress<T>({\n onLongPress,\n onClick,\n}: PressHandlers<T>, {\n delay = DEFAULT_DURATION,\n shouldPreventDefault = true,\n shouldStopPropagation = false,\n}: Options = {}): UseLongPressType<T> {\n const { isMobile } = useMediaQueryContext();\n const [longPressTriggered, setLongPressTriggered] = useState(false);\n const [dragTriggered, setDragTriggered] = useState(false);\n // https://www.typescriptlang.org/docs/handbook/utility-types.html#returntypetype\n const timeout = useRef<ReturnType<typeof setTimeout>>();\n const target = useRef<EventTarget>();\n\n const start = useCallback((e: React.MouseEvent<T> | React.TouchEvent<T>) => {\n e.persist();\n const clonedEvent = {\n ...e,\n };\n setDragTriggered(false);\n if (shouldStopPropagation) {\n e.stopPropagation();\n }\n if (shouldPreventDefault && e.target) {\n e.target.addEventListener(\n 'touchend',\n preventDefault,\n {\n passive: false,\n },\n );\n target.current = e.target;\n }\n\n timeout.current = setTimeout(() => {\n onLongPress(clonedEvent);\n setLongPressTriggered(true);\n }, delay);\n }, [onLongPress, delay, shouldPreventDefault, shouldStopPropagation, isMobile]);\n\n const clear = useCallback((\n e: React.MouseEvent<T> | React.TouchEvent<T>,\n shouldTriggerClick = true,\n onDrag = false,\n ) => {\n if (onDrag) {\n setDragTriggered(true);\n } else {\n setDragTriggered(false);\n }\n if (timeout?.current) {\n clearTimeout(timeout.current);\n }\n if (shouldTriggerClick && !longPressTriggered && !dragTriggered) {\n onClick?.(e);\n }\n setLongPressTriggered(false);\n if (shouldPreventDefault && target.current) {\n target.current.removeEventListener('touchend', preventDefault);\n }\n }, [shouldPreventDefault, onClick, longPressTriggered, dragTriggered]);\n\n return {\n onMouseDown: (e: React.MouseEvent<T>) => start(e),\n onMouseUp: (e: React.MouseEvent<T>) => clear(e),\n onMouseLeave: (e: React.MouseEvent<T>) => clear(e, false),\n onTouchStart: (e: React.TouchEvent<T>) => start(e),\n // setDragTriggered as true on touchmove, so that next onTouchEnd is ignored\n // if we dont do it, onClick?.(e) will be triggred, see inside clear()\n onTouchMove: (e: React.TouchEvent<T>) => clear(e, false, true),\n onTouchEnd: (e: React.TouchEvent<T>) => clear(e),\n };\n}\n"],"names":["DEFAULT_DURATION","preventDefault","e","isTouchEvent","touches","length","useLongPress","_ref","onLongPress","onClick","delay","shouldPreventDefault","shouldStopPropagation","arguments","undefined","isMobile","useMediaQueryContext","longPressTriggered","setLongPressTriggered","useState","dragTriggered","setDragTriggered","timeout","useRef","target","start","useCallback","persist","clonedEvent","_objectSpread","stopPropagation","addEventListener","passive","current","setTimeout","clear","shouldTriggerClick","onDrag","clearTimeout","removeEventListener","onMouseDown","onMouseUp","onMouseLeave","onTouchStart","onTouchMove","onTouchEnd"],"mappings":";;;;AA4BA,MAAMA,gBAAgB,GAA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PluginBabelHelpers-
|
|
1
|
+
import { d as isVoiceMessage$1 } from '../../index-96fe32b3.js';
|
|
2
|
+
import '../../_rollupPluginBabelHelpers-34f2bdc3.js';
|
|
3
3
|
import './getOutgoingMessageState.js';
|
|
4
4
|
|
|
5
5
|
const isVoiceMessage = isVoiceMessage$1;
|