@sendbird/uikit-react 3.14.3 → 3.14.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/App.js +377 -378
- package/App.js.map +1 -1
- package/CHANGELOG.md +23 -0
- package/Channel/components/ChannelHeader.js +36 -34
- package/Channel/components/ChannelHeader.js.map +1 -1
- package/Channel/components/ChannelUI.js +74 -74
- package/Channel/components/FileViewer.js +37 -33
- package/Channel/components/FileViewer.js.map +1 -1
- package/Channel/components/FrozenNotification.js +5 -5
- package/Channel/components/Message.js +80 -81
- package/Channel/components/Message.js.map +1 -1
- package/Channel/components/MessageInput.js +72 -70
- package/Channel/components/MessageInput.js.map +1 -1
- package/Channel/components/MessageInputWrapper.js +45 -43
- package/Channel/components/MessageInputWrapper.js.map +1 -1
- package/Channel/components/MessageList.js +249 -250
- package/Channel/components/MessageList.js.map +1 -1
- package/Channel/components/RemoveMessageModal.js +38 -33
- package/Channel/components/RemoveMessageModal.js.map +1 -1
- package/Channel/components/SuggestedMentionList.js +29 -30
- package/Channel/components/SuggestedMentionList.js.map +1 -1
- package/Channel/components/TypingIndicator.js +6 -6
- package/Channel/components/UnreadCount.js +7 -7
- package/Channel/context.js +1453 -1453
- package/Channel/hooks/useHandleUploadFiles.js +125 -120
- package/Channel/hooks/useHandleUploadFiles.js.map +1 -1
- package/Channel/hooks/useInitialMessagesFetch.js +6 -6
- package/Channel/utils/compareMessagesForGrouping.js +50 -51
- package/Channel/utils/compareMessagesForGrouping.js.map +1 -1
- package/Channel/utils/getMessagePartsInfo.js +26 -27
- package/Channel/utils/getMessagePartsInfo.js.map +1 -1
- package/Channel.js +71 -71
- package/ChannelList/components/AddChannel.js +29 -26
- package/ChannelList/components/AddChannel.js.map +1 -1
- package/ChannelList/components/ChannelListHeader.js +13 -8
- package/ChannelList/components/ChannelListHeader.js.map +1 -1
- package/ChannelList/components/ChannelListUI.js +109 -106
- package/ChannelList/components/ChannelListUI.js.map +1 -1
- package/ChannelList/components/ChannelPreview.js +43 -38
- package/ChannelList/components/ChannelPreview.js.map +1 -1
- package/ChannelList/components/ChannelPreviewAction.js +16 -12
- package/ChannelList/components/ChannelPreviewAction.js.map +1 -1
- package/ChannelList/context.js +9 -10
- package/ChannelList/context.js.map +1 -1
- package/ChannelList.js +43 -40
- package/ChannelList.js.map +1 -1
- package/ChannelSettings/components/ChannelProfile.js +57 -47
- package/ChannelSettings/components/ChannelProfile.js.map +1 -1
- package/ChannelSettings/components/ChannelSettingsHeader.js +24 -21
- package/ChannelSettings/components/ChannelSettingsHeader.js.map +1 -1
- package/ChannelSettings/components/ChannelSettingsUI.js +78 -75
- package/ChannelSettings/components/ChannelSettingsUI.js.map +1 -1
- package/ChannelSettings/components/EditDetailsModal.js +90 -80
- package/ChannelSettings/components/EditDetailsModal.js.map +1 -1
- package/ChannelSettings/components/LeaveChannel.js +63 -53
- package/ChannelSettings/components/LeaveChannel.js.map +1 -1
- package/ChannelSettings/components/ModerationPanel.js +447 -445
- package/ChannelSettings/components/ModerationPanel.js.map +1 -1
- package/ChannelSettings/components/UserListItem.js +49 -49
- package/ChannelSettings/components/UserPanel.js +47 -45
- package/ChannelSettings/components/UserPanel.js.map +1 -1
- package/ChannelSettings/context.js +105 -105
- package/ChannelSettings.js +35 -32
- package/ChannelSettings.js.map +1 -1
- package/CreateChannel/components/CreateChannelUI.js +33 -29
- package/CreateChannel/components/CreateChannelUI.js.map +1 -1
- package/CreateChannel/components/InviteUsers.js +143 -139
- package/CreateChannel/components/InviteUsers.js.map +1 -1
- package/CreateChannel/components/SelectChannelType.js +76 -65
- package/CreateChannel/components/SelectChannelType.js.map +1 -1
- package/CreateChannel/context.js +4 -4
- package/CreateChannel.js +27 -23
- package/CreateChannel.js.map +1 -1
- package/CreateOpenChannel/components/CreateOpenChannelUI.js +63 -52
- package/CreateOpenChannel/components/CreateOpenChannelUI.js.map +1 -1
- package/CreateOpenChannel/context.js +41 -41
- package/CreateOpenChannel.js +28 -17
- package/CreateOpenChannel.js.map +1 -1
- package/EditUserProfile/components/EditUserProfileUI.js +110 -99
- package/EditUserProfile/components/EditUserProfileUI.js.map +1 -1
- package/EditUserProfile/context.js +12 -12
- package/EditUserProfile.js +27 -16
- package/EditUserProfile.js.map +1 -1
- package/GroupChannel/components/FileViewer.js +62 -58
- package/GroupChannel/components/FileViewer.js.map +1 -1
- package/GroupChannel/components/FrozenNotification.js +10 -10
- package/GroupChannel/components/GroupChannelHeader.js +30 -28
- package/GroupChannel/components/GroupChannelHeader.js.map +1 -1
- package/GroupChannel/components/GroupChannelUI.js +68 -68
- package/GroupChannel/components/Message.js +66 -77
- package/GroupChannel/components/Message.js.map +1 -1
- package/GroupChannel/components/MessageInputWrapper.js +63 -62
- package/GroupChannel/components/MessageInputWrapper.js.map +1 -1
- package/GroupChannel/components/MessageList.js +154 -155
- package/GroupChannel/components/MessageList.js.map +1 -1
- package/GroupChannel/components/RemoveMessageModal.js +32 -27
- package/GroupChannel/components/RemoveMessageModal.js.map +1 -1
- package/GroupChannel/components/SuggestedMentionList.js +14 -14
- package/GroupChannel/components/SuggestedReplies.js +15 -14
- package/GroupChannel/components/SuggestedReplies.js.map +1 -1
- package/GroupChannel/components/TypingIndicator.js +59 -59
- package/GroupChannel/components/UnreadCount.js +26 -26
- package/GroupChannel/context.js +568 -568
- package/GroupChannel.js +65 -65
- package/GroupChannelList/components/AddGroupChannel.js +30 -27
- package/GroupChannelList/components/AddGroupChannel.js.map +1 -1
- package/GroupChannelList/components/GroupChannelListHeader.js +34 -28
- package/GroupChannelList/components/GroupChannelListHeader.js.map +1 -1
- package/GroupChannelList/components/GroupChannelListItem.js +39 -35
- package/GroupChannelList/components/GroupChannelListItem.js.map +1 -1
- package/GroupChannelList/components/GroupChannelListUI.js +86 -83
- package/GroupChannelList/components/GroupChannelListUI.js.map +1 -1
- package/GroupChannelList/components/GroupChannelPreviewAction.js +48 -44
- package/GroupChannelList/components/GroupChannelPreviewAction.js.map +1 -1
- package/GroupChannelList/context.js +81 -97
- package/GroupChannelList/context.js.map +1 -1
- package/GroupChannelList.js +43 -40
- package/GroupChannelList.js.map +1 -1
- package/Message/context.js +21 -21
- package/Message/hooks/useDirtyGetMentions.js +52 -52
- package/MessageSearch/components/MessageSearchUI.js +71 -72
- package/MessageSearch/components/MessageSearchUI.js.map +1 -1
- package/MessageSearch/context.js +247 -247
- package/MessageSearch.js +59 -59
- package/OpenChannel/components/FrozenChannelNotification.js +9 -9
- package/OpenChannel/components/OpenChannelHeader.js +43 -38
- package/OpenChannel/components/OpenChannelHeader.js.map +1 -1
- package/OpenChannel/components/OpenChannelInput.js +47 -45
- package/OpenChannel/components/OpenChannelInput.js.map +1 -1
- package/OpenChannel/components/OpenChannelMessage.js +158 -157
- package/OpenChannel/components/OpenChannelMessage.js.map +1 -1
- package/OpenChannel/components/OpenChannelMessageList.js +95 -94
- package/OpenChannel/components/OpenChannelMessageList.js.map +1 -1
- package/OpenChannel/components/OpenChannelUI.js +71 -70
- package/OpenChannel/components/OpenChannelUI.js.map +1 -1
- package/OpenChannel/context.js +23 -18
- package/OpenChannel/context.js.map +1 -1
- package/OpenChannel.js +44 -43
- package/OpenChannel.js.map +1 -1
- package/OpenChannelList/components/OpenChannelListUI.js +102 -92
- package/OpenChannelList/components/OpenChannelListUI.js.map +1 -1
- package/OpenChannelList/components/OpenChannelPreview.js +20 -20
- package/OpenChannelList/context.js +3 -3
- package/OpenChannelList.js +34 -24
- package/OpenChannelList.js.map +1 -1
- package/OpenChannelSettings/components/EditDetailsModal.js +82 -73
- package/OpenChannelSettings/components/EditDetailsModal.js.map +1 -1
- package/OpenChannelSettings/components/OpenChannelProfile.js +47 -38
- package/OpenChannelSettings/components/OpenChannelProfile.js.map +1 -1
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js +61 -57
- package/OpenChannelSettings/components/OpenChannelSettingsUI.js.map +1 -1
- package/OpenChannelSettings/components/OperatorUI.js +454 -450
- package/OpenChannelSettings/components/OperatorUI.js.map +1 -1
- package/OpenChannelSettings/components/ParticipantUI.js +21 -17
- package/OpenChannelSettings/components/ParticipantUI.js.map +1 -1
- package/OpenChannelSettings/context.js +114 -114
- package/OpenChannelSettings.js +29 -25
- package/OpenChannelSettings.js.map +1 -1
- package/README.md +2 -13
- package/SendbirdProvider.js +1139 -1183
- package/SendbirdProvider.js.map +1 -1
- package/Thread/components/ParentMessageInfo.js +240 -239
- package/Thread/components/ParentMessageInfo.js.map +1 -1
- package/Thread/components/ParentMessageInfoItem.js +148 -148
- package/Thread/components/ThreadHeader.js +23 -26
- package/Thread/components/ThreadHeader.js.map +1 -1
- package/Thread/components/ThreadList.js +122 -122
- package/Thread/components/ThreadListItem.js +341 -340
- package/Thread/components/ThreadListItem.js.map +1 -1
- package/Thread/components/ThreadMessageInput.js +167 -165
- package/Thread/components/ThreadMessageInput.js.map +1 -1
- package/Thread/components/ThreadUI.js +207 -207
- package/Thread/context/types.js +21 -21
- package/Thread/context.js +1283 -1281
- package/Thread/context.js.map +1 -1
- package/Thread.js +73 -73
- package/VoicePlayer/context.js +3 -3
- package/VoicePlayer/useVoicePlayer.js +68 -60
- package/VoicePlayer/useVoicePlayer.js.map +1 -1
- package/VoiceRecorder/context.js +21 -127
- package/VoiceRecorder/context.js.map +1 -1
- package/VoiceRecorder/useVoiceRecorder.js +105 -96
- package/VoiceRecorder/useVoiceRecorder.js.map +1 -1
- package/chunks/{bundle-DiuoVXwl.js → bundle--nVHk3fx.js} +161 -162
- package/chunks/{bundle-DiuoVXwl.js.map → bundle--nVHk3fx.js.map} +1 -1
- package/chunks/{bundle-CUPPssXo.js → bundle-2uJIsyo2.js} +27 -27
- package/chunks/bundle-2uJIsyo2.js.map +1 -0
- package/chunks/bundle-3amhHjNa.js +120 -0
- package/chunks/bundle-3amhHjNa.js.map +1 -0
- package/chunks/{bundle-DZcgZWKq.js → bundle-7oF7KbGv.js} +2 -2
- package/chunks/{bundle-DZcgZWKq.js.map → bundle-7oF7KbGv.js.map} +1 -1
- package/chunks/{bundle-CXtl77MC.js → bundle-9MhshueU.js} +21 -21
- package/chunks/bundle-9MhshueU.js.map +1 -0
- package/chunks/{bundle-COLsFI7t.js → bundle-B5N2u5f-.js} +1 -1
- package/chunks/bundle-B5N2u5f-.js.map +1 -0
- package/chunks/{bundle-DGnpw8up.js → bundle-B7barEsR.js} +19 -19
- package/chunks/bundle-B7barEsR.js.map +1 -0
- package/chunks/{bundle-mRqHYNyY.js → bundle-B8gKMDtp.js} +28 -28
- package/chunks/bundle-B8gKMDtp.js.map +1 -0
- package/chunks/{bundle-D8JekjLy.js → bundle-BAvMd_j0.js} +45 -46
- package/chunks/bundle-BAvMd_j0.js.map +1 -0
- package/chunks/{bundle-DfDCjniq.js → bundle-BHn3F_OF.js} +17 -17
- package/chunks/bundle-BHn3F_OF.js.map +1 -0
- package/chunks/{bundle-BbeHRXOp.js → bundle-BJ46V6XQ.js} +10 -10
- package/chunks/bundle-BJ46V6XQ.js.map +1 -0
- package/chunks/{bundle-DQKxIg_X.js → bundle-BKho3Uub.js} +11 -11
- package/chunks/bundle-BKho3Uub.js.map +1 -0
- package/chunks/{bundle-BTLVyMgj.js → bundle-BOSnopxk.js} +8 -8
- package/chunks/bundle-BOSnopxk.js.map +1 -0
- package/chunks/{bundle-DbwlpQTj.js → bundle-BTD0sBED.js} +89 -89
- package/chunks/{bundle-DbwlpQTj.js.map → bundle-BTD0sBED.js.map} +1 -1
- package/chunks/{bundle-CkgVJjMI.js → bundle-BTkRy0wv.js} +94 -94
- package/chunks/{bundle-CkgVJjMI.js.map → bundle-BTkRy0wv.js.map} +1 -1
- package/chunks/{bundle-DwApARpe.js → bundle-BWCGFXhj.js} +732 -731
- package/chunks/bundle-BWCGFXhj.js.map +1 -0
- package/chunks/{bundle-BX_IXLSp.js → bundle-BWuyd0AD.js} +37 -37
- package/chunks/bundle-BWuyd0AD.js.map +1 -0
- package/chunks/{bundle-DOG83iYO.js → bundle-BZd5IHBF.js} +83 -83
- package/chunks/{bundle-DOG83iYO.js.map → bundle-BZd5IHBF.js.map} +1 -1
- package/chunks/{bundle-BiINvVSK.js → bundle-B__zC9zD.js} +131 -132
- package/chunks/{bundle-DBBVxbFA.js.map → bundle-B__zC9zD.js.map} +1 -1
- package/chunks/bundle-BbWD2VuS.js +93 -0
- package/chunks/bundle-BbWD2VuS.js.map +1 -0
- package/chunks/{bundle-CDnCdfIC.js → bundle-Bi8Wfc2I.js} +1326 -1327
- package/chunks/{bundle-CDnCdfIC.js.map → bundle-Bi8Wfc2I.js.map} +1 -1
- package/chunks/{bundle-BcKA_SAt.js → bundle-BjrRhdgd.js} +258 -258
- package/chunks/{bundle-BcKA_SAt.js.map → bundle-BjrRhdgd.js.map} +1 -1
- package/chunks/{bundle-CYXIQgUE.js → bundle-BmTGlIgs.js} +920 -923
- package/chunks/{bundle-CYXIQgUE.js.map → bundle-BmTGlIgs.js.map} +1 -1
- package/chunks/{bundle-BhkcPTQE.js → bundle-BtY8jyVv.js} +26 -26
- package/chunks/{bundle-BhkcPTQE.js.map → bundle-BtY8jyVv.js.map} +1 -1
- package/chunks/{bundle-C3K7W_E-.js → bundle-BvG71y_P.js} +31 -31
- package/chunks/bundle-BvG71y_P.js.map +1 -0
- package/chunks/{bundle-DS5ljghe.js → bundle-BvaqGh4L.js} +5 -5
- package/chunks/bundle-BvaqGh4L.js.map +1 -0
- package/chunks/{bundle-tIPAQa1P.js → bundle-Bx5vhTbU.js} +11 -11
- package/chunks/bundle-Bx5vhTbU.js.map +1 -0
- package/chunks/{bundle-DkspvEHK.js → bundle-Byig85JJ.js} +185 -185
- package/chunks/{bundle-DkspvEHK.js.map → bundle-Byig85JJ.js.map} +1 -1
- package/chunks/bundle-BymWz1lX.js +30 -0
- package/chunks/bundle-BymWz1lX.js.map +1 -0
- package/chunks/{bundle-DZl__KhG.js → bundle-ByvmbZD0.js} +36 -29
- package/chunks/bundle-ByvmbZD0.js.map +1 -0
- package/chunks/{bundle-DZie-lCF.js → bundle-C040958G.js} +2 -2
- package/chunks/{bundle-DZie-lCF.js.map → bundle-C040958G.js.map} +1 -1
- package/chunks/{bundle-Danvz0zD.js → bundle-C1ds4cil.js} +1 -1
- package/chunks/{bundle-Danvz0zD.js.map → bundle-C1ds4cil.js.map} +1 -1
- package/chunks/{bundle-D4x1_hkl.js → bundle-C1hw1sij.js} +26 -26
- package/chunks/bundle-C1hw1sij.js.map +1 -0
- package/chunks/bundle-C4Z-NWqF.js +279 -0
- package/chunks/bundle-C4Z-NWqF.js.map +1 -0
- package/chunks/{bundle-BLGMGsvT.js → bundle-C8im5l9B.js} +234 -234
- package/chunks/{bundle-BLGMGsvT.js.map → bundle-C8im5l9B.js.map} +1 -1
- package/chunks/{bundle-Dc7E6GJc.js → bundle-CD9AzC6s.js} +35 -35
- package/chunks/bundle-CD9AzC6s.js.map +1 -0
- package/chunks/{bundle-DpCn3P9s.js → bundle-CDwtSJbC.js} +210 -206
- package/chunks/{bundle-CwHpV2cp.js.map → bundle-CDwtSJbC.js.map} +1 -1
- package/chunks/{bundle-BbusXHy3.js → bundle-CIwVkd-E.js} +234 -234
- package/chunks/{bundle-BbusXHy3.js.map → bundle-CIwVkd-E.js.map} +1 -1
- package/chunks/{bundle-B9sTU4LX.js → bundle-CJk_QDUV.js} +58 -58
- package/chunks/bundle-CJk_QDUV.js.map +1 -0
- package/chunks/{bundle-BPvfVEd8.js → bundle-CNJMLyGJ.js} +61 -61
- package/chunks/bundle-CNJMLyGJ.js.map +1 -0
- package/chunks/{bundle-CUd4X5O2.js → bundle-CT8ZXUi2.js} +12 -12
- package/chunks/bundle-CT8ZXUi2.js.map +1 -0
- package/chunks/{bundle-Bf6VvPhp.js → bundle-C_Vyt_ii.js} +25 -25
- package/chunks/bundle-C_Vyt_ii.js.map +1 -0
- package/chunks/{bundle-Bkbg_RQ-.js → bundle-CaaUNO3F.js} +2 -2
- package/chunks/{bundle-Bkbg_RQ-.js.map → bundle-CaaUNO3F.js.map} +1 -1
- package/chunks/{bundle-DL_Xts3y.js → bundle-Ci146LvO.js} +370 -368
- package/chunks/{bundle-DL_Xts3y.js.map → bundle-Ci146LvO.js.map} +1 -1
- package/chunks/{bundle-fxTywxQ4.js → bundle-Clhqc2C_.js} +6 -6
- package/chunks/bundle-Clhqc2C_.js.map +1 -0
- package/chunks/{bundle-B7J4Fm0y.js → bundle-D2i2ti1U.js} +36 -36
- package/chunks/bundle-D2i2ti1U.js.map +1 -0
- package/chunks/{bundle-CY2Lga-4.js → bundle-DDhhxSv0.js} +64 -65
- package/chunks/bundle-DDhhxSv0.js.map +1 -0
- package/chunks/{bundle-DWW0XPV9.js → bundle-DDkUg3Os.js} +118 -118
- package/chunks/{bundle-DWW0XPV9.js.map → bundle-DDkUg3Os.js.map} +1 -1
- package/chunks/{bundle-Otcx8Wxy.js → bundle-DJTSztr0.js} +124 -124
- package/chunks/bundle-DJTSztr0.js.map +1 -0
- package/chunks/{bundle-WmbZYtqM.js → bundle-DNMURwG9.js} +120 -120
- package/chunks/bundle-DNMURwG9.js.map +1 -0
- package/chunks/{bundle-B_fxVgAX.js → bundle-DO1vNias.js} +244 -244
- package/chunks/{bundle-B_fxVgAX.js.map → bundle-DO1vNias.js.map} +1 -1
- package/chunks/{bundle-D5lQwKgM.js → bundle-DQ2q-zNM.js} +1 -1
- package/chunks/bundle-DQ2q-zNM.js.map +1 -0
- package/chunks/{bundle-5yHWoLVJ.js → bundle-DQFIz2Zf.js} +11 -11
- package/chunks/bundle-DQFIz2Zf.js.map +1 -0
- package/chunks/{bundle-DpkEqNiD.js → bundle-DSOf9RKe.js} +1 -1
- package/chunks/bundle-DSOf9RKe.js.map +1 -0
- package/chunks/{bundle-BOUVMTAt.js → bundle-DThbnyZd.js} +25 -25
- package/chunks/bundle-DThbnyZd.js.map +1 -0
- package/chunks/{bundle-CwHpV2cp.js → bundle-DXCQovsu.js} +213 -213
- package/{cjs/chunks/bundle-66eVSkB5.js.map → chunks/bundle-DXCQovsu.js.map} +1 -1
- package/chunks/{bundle-BmFbOU4C.js → bundle-D_eJq5Xk.js} +12 -12
- package/chunks/bundle-D_eJq5Xk.js.map +1 -0
- package/chunks/{bundle-CXxeDfXV.js → bundle-DaAoUDJk.js} +164 -164
- package/chunks/{bundle-CXxeDfXV.js.map → bundle-DaAoUDJk.js.map} +1 -1
- package/chunks/{bundle-CMZVPZeM.js → bundle-DaoHZIZy.js} +51 -51
- package/chunks/bundle-DaoHZIZy.js.map +1 -0
- package/chunks/{bundle-BlK-fMQm.js → bundle-Diqj6For.js} +71 -71
- package/chunks/bundle-Diqj6For.js.map +1 -0
- package/chunks/{bundle-CKf9oBLV.js → bundle-DlfN5GTa.js} +160 -160
- package/chunks/{bundle-CKf9oBLV.js.map → bundle-DlfN5GTa.js.map} +1 -1
- package/chunks/{bundle-BPj0X5TA.js → bundle-DmYqVYeD.js} +6 -6
- package/chunks/bundle-DmYqVYeD.js.map +1 -0
- package/chunks/{bundle-DBBVxbFA.js → bundle-DpGWywZ5.js} +138 -138
- package/chunks/bundle-DpGWywZ5.js.map +1 -0
- package/chunks/{bundle-BPbwxMIx.js → bundle-DzxiMlgV.js} +11 -12
- package/chunks/bundle-DzxiMlgV.js.map +1 -0
- package/chunks/{bundle-BwJTKHEl.js → bundle-Gx0ryc_f.js} +72 -72
- package/chunks/bundle-Gx0ryc_f.js.map +1 -0
- package/chunks/{bundle-BMPm6lKq.js → bundle-HoQqraNc.js} +23 -23
- package/chunks/bundle-HoQqraNc.js.map +1 -0
- package/chunks/{bundle-CllFAkeZ.js → bundle-IGQYX_K1.js} +152 -1079
- package/chunks/bundle-IGQYX_K1.js.map +1 -0
- package/chunks/{bundle-DfhJ_oFZ.js → bundle-Jir4hfa9.js} +13 -13
- package/chunks/bundle-Jir4hfa9.js.map +1 -0
- package/chunks/{bundle-Dk211z5R.js → bundle-LYAWKk4n.js} +78 -79
- package/chunks/bundle-LYAWKk4n.js.map +1 -0
- package/chunks/{bundle-OIgXk-TJ.js → bundle-QxUVt4Ms.js} +15 -15
- package/chunks/bundle-QxUVt4Ms.js.map +1 -0
- package/chunks/{bundle-C2A3dCIs.js → bundle-ZsYMd8JA.js} +192 -185
- package/chunks/{bundle-C2A3dCIs.js.map → bundle-ZsYMd8JA.js.map} +1 -1
- package/chunks/{bundle-BKCDSKx6.js → bundle-_-vntp1z.js} +28 -28
- package/chunks/bundle-_-vntp1z.js.map +1 -0
- package/chunks/{bundle-BzYv4x2T.js → bundle-afCfXO2C.js} +22 -22
- package/chunks/bundle-afCfXO2C.js.map +1 -0
- package/chunks/{bundle-D4rjbjNv.js → bundle-dC3DwujZ.js} +18 -18
- package/chunks/bundle-dC3DwujZ.js.map +1 -0
- package/chunks/{bundle-CUDCHaXM.js → bundle-fRP_rTVb.js} +75 -74
- package/chunks/bundle-fRP_rTVb.js.map +1 -0
- package/chunks/{bundle-Dzm909k5.js → bundle-h3a36twH.js} +48 -48
- package/chunks/bundle-h3a36twH.js.map +1 -0
- package/chunks/{bundle-XogVJY7Q.js → bundle-k3XccyCm.js} +333 -333
- package/chunks/{bundle-XogVJY7Q.js.map → bundle-k3XccyCm.js.map} +1 -1
- package/chunks/{bundle-Y3Y435SA.js → bundle-oCSRGy9i.js} +29 -29
- package/chunks/bundle-oCSRGy9i.js.map +1 -0
- package/chunks/{bundle-BLMDgHS-.js → bundle-uBJzoaNT.js} +82 -82
- package/chunks/bundle-uBJzoaNT.js.map +1 -0
- package/chunks/{bundle-BKTUnkiE.js → bundle-yZ1rqvSQ.js} +3 -3
- package/chunks/{bundle-BKTUnkiE.js.map → bundle-yZ1rqvSQ.js.map} +1 -1
- package/cjs/App.js +377 -378
- package/cjs/App.js.map +1 -1
- package/cjs/Channel/components/ChannelHeader.js +36 -34
- package/cjs/Channel/components/ChannelHeader.js.map +1 -1
- package/cjs/Channel/components/ChannelUI.js +74 -74
- package/cjs/Channel/components/FileViewer.js +37 -33
- package/cjs/Channel/components/FileViewer.js.map +1 -1
- package/cjs/Channel/components/FrozenNotification.js +5 -5
- package/cjs/Channel/components/Message.js +80 -81
- package/cjs/Channel/components/Message.js.map +1 -1
- package/cjs/Channel/components/MessageInput.js +72 -70
- package/cjs/Channel/components/MessageInput.js.map +1 -1
- package/cjs/Channel/components/MessageInputWrapper.js +45 -43
- package/cjs/Channel/components/MessageInputWrapper.js.map +1 -1
- package/cjs/Channel/components/MessageList.js +249 -250
- package/cjs/Channel/components/MessageList.js.map +1 -1
- package/cjs/Channel/components/RemoveMessageModal.js +38 -33
- package/cjs/Channel/components/RemoveMessageModal.js.map +1 -1
- package/cjs/Channel/components/SuggestedMentionList.js +29 -30
- package/cjs/Channel/components/SuggestedMentionList.js.map +1 -1
- package/cjs/Channel/components/TypingIndicator.js +6 -6
- package/cjs/Channel/components/UnreadCount.js +7 -7
- package/cjs/Channel/context.js +1453 -1453
- package/cjs/Channel/hooks/useHandleUploadFiles.js +125 -120
- package/cjs/Channel/hooks/useHandleUploadFiles.js.map +1 -1
- package/cjs/Channel/hooks/useInitialMessagesFetch.js +6 -6
- package/cjs/Channel/utils/compareMessagesForGrouping.js +50 -51
- package/cjs/Channel/utils/compareMessagesForGrouping.js.map +1 -1
- package/cjs/Channel/utils/getMessagePartsInfo.js +26 -27
- package/cjs/Channel/utils/getMessagePartsInfo.js.map +1 -1
- package/cjs/Channel.js +71 -71
- package/cjs/ChannelList/components/AddChannel.js +29 -26
- package/cjs/ChannelList/components/AddChannel.js.map +1 -1
- package/cjs/ChannelList/components/ChannelListHeader.js +13 -8
- package/cjs/ChannelList/components/ChannelListHeader.js.map +1 -1
- package/cjs/ChannelList/components/ChannelListUI.js +109 -106
- package/cjs/ChannelList/components/ChannelListUI.js.map +1 -1
- package/cjs/ChannelList/components/ChannelPreview.js +43 -38
- package/cjs/ChannelList/components/ChannelPreview.js.map +1 -1
- package/cjs/ChannelList/components/ChannelPreviewAction.js +16 -12
- package/cjs/ChannelList/components/ChannelPreviewAction.js.map +1 -1
- package/cjs/ChannelList/context.js +9 -10
- package/cjs/ChannelList/context.js.map +1 -1
- package/cjs/ChannelList.js +43 -40
- package/cjs/ChannelList.js.map +1 -1
- package/cjs/ChannelSettings/components/ChannelProfile.js +57 -47
- package/cjs/ChannelSettings/components/ChannelProfile.js.map +1 -1
- package/cjs/ChannelSettings/components/ChannelSettingsHeader.js +23 -20
- package/cjs/ChannelSettings/components/ChannelSettingsHeader.js.map +1 -1
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js +78 -75
- package/cjs/ChannelSettings/components/ChannelSettingsUI.js.map +1 -1
- package/cjs/ChannelSettings/components/EditDetailsModal.js +90 -80
- package/cjs/ChannelSettings/components/EditDetailsModal.js.map +1 -1
- package/cjs/ChannelSettings/components/LeaveChannel.js +63 -53
- package/cjs/ChannelSettings/components/LeaveChannel.js.map +1 -1
- package/cjs/ChannelSettings/components/ModerationPanel.js +447 -445
- package/cjs/ChannelSettings/components/ModerationPanel.js.map +1 -1
- package/cjs/ChannelSettings/components/UserListItem.js +49 -49
- package/cjs/ChannelSettings/components/UserPanel.js +47 -45
- package/cjs/ChannelSettings/components/UserPanel.js.map +1 -1
- package/cjs/ChannelSettings/context.js +105 -105
- package/cjs/ChannelSettings.js +35 -32
- package/cjs/ChannelSettings.js.map +1 -1
- package/cjs/CreateChannel/components/CreateChannelUI.js +33 -29
- package/cjs/CreateChannel/components/CreateChannelUI.js.map +1 -1
- package/cjs/CreateChannel/components/InviteUsers.js +143 -139
- package/cjs/CreateChannel/components/InviteUsers.js.map +1 -1
- package/cjs/CreateChannel/components/SelectChannelType.js +76 -65
- package/cjs/CreateChannel/components/SelectChannelType.js.map +1 -1
- package/cjs/CreateChannel/context.js +4 -4
- package/cjs/CreateChannel.js +27 -23
- package/cjs/CreateChannel.js.map +1 -1
- package/cjs/CreateOpenChannel/components/CreateOpenChannelUI.js +63 -52
- package/cjs/CreateOpenChannel/components/CreateOpenChannelUI.js.map +1 -1
- package/cjs/CreateOpenChannel/context.js +41 -41
- package/cjs/CreateOpenChannel.js +28 -17
- package/cjs/CreateOpenChannel.js.map +1 -1
- package/cjs/EditUserProfile/components/EditUserProfileUI.js +110 -99
- package/cjs/EditUserProfile/components/EditUserProfileUI.js.map +1 -1
- package/cjs/EditUserProfile/context.js +12 -12
- package/cjs/EditUserProfile.js +27 -16
- package/cjs/EditUserProfile.js.map +1 -1
- package/cjs/GroupChannel/components/FileViewer.js +62 -58
- package/cjs/GroupChannel/components/FileViewer.js.map +1 -1
- package/cjs/GroupChannel/components/FrozenNotification.js +10 -10
- package/cjs/GroupChannel/components/GroupChannelHeader.js +30 -28
- package/cjs/GroupChannel/components/GroupChannelHeader.js.map +1 -1
- package/cjs/GroupChannel/components/GroupChannelUI.js +68 -68
- package/cjs/GroupChannel/components/Message.js +66 -77
- package/cjs/GroupChannel/components/Message.js.map +1 -1
- package/cjs/GroupChannel/components/MessageInputWrapper.js +62 -61
- package/cjs/GroupChannel/components/MessageInputWrapper.js.map +1 -1
- package/cjs/GroupChannel/components/MessageList.js +154 -155
- package/cjs/GroupChannel/components/MessageList.js.map +1 -1
- package/cjs/GroupChannel/components/RemoveMessageModal.js +32 -27
- package/cjs/GroupChannel/components/RemoveMessageModal.js.map +1 -1
- package/cjs/GroupChannel/components/SuggestedMentionList.js +14 -14
- package/cjs/GroupChannel/components/SuggestedReplies.js +15 -14
- package/cjs/GroupChannel/components/SuggestedReplies.js.map +1 -1
- package/cjs/GroupChannel/components/TypingIndicator.js +59 -59
- package/cjs/GroupChannel/components/UnreadCount.js +26 -26
- package/cjs/GroupChannel/context.js +568 -568
- package/cjs/GroupChannel.js +65 -65
- package/cjs/GroupChannelList/components/AddGroupChannel.js +30 -27
- package/cjs/GroupChannelList/components/AddGroupChannel.js.map +1 -1
- package/cjs/GroupChannelList/components/GroupChannelListHeader.js +34 -28
- package/cjs/GroupChannelList/components/GroupChannelListHeader.js.map +1 -1
- package/cjs/GroupChannelList/components/GroupChannelListItem.js +39 -35
- package/cjs/GroupChannelList/components/GroupChannelListItem.js.map +1 -1
- package/cjs/GroupChannelList/components/GroupChannelListUI.js +86 -83
- package/cjs/GroupChannelList/components/GroupChannelListUI.js.map +1 -1
- package/cjs/GroupChannelList/components/GroupChannelPreviewAction.js +48 -44
- package/cjs/GroupChannelList/components/GroupChannelPreviewAction.js.map +1 -1
- package/cjs/GroupChannelList/context.js +81 -97
- package/cjs/GroupChannelList/context.js.map +1 -1
- package/cjs/GroupChannelList.js +43 -40
- package/cjs/GroupChannelList.js.map +1 -1
- package/cjs/Message/context.js +21 -21
- package/cjs/Message/hooks/useDirtyGetMentions.js +52 -52
- package/cjs/MessageSearch/components/MessageSearchUI.js +71 -72
- package/cjs/MessageSearch/components/MessageSearchUI.js.map +1 -1
- package/cjs/MessageSearch/context.js +247 -247
- package/cjs/MessageSearch.js +59 -59
- package/cjs/OpenChannel/components/FrozenChannelNotification.js +9 -9
- package/cjs/OpenChannel/components/OpenChannelHeader.js +43 -38
- package/cjs/OpenChannel/components/OpenChannelHeader.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelInput.js +47 -45
- package/cjs/OpenChannel/components/OpenChannelInput.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelMessage.js +158 -157
- package/cjs/OpenChannel/components/OpenChannelMessage.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelMessageList.js +95 -94
- package/cjs/OpenChannel/components/OpenChannelMessageList.js.map +1 -1
- package/cjs/OpenChannel/components/OpenChannelUI.js +71 -70
- package/cjs/OpenChannel/components/OpenChannelUI.js.map +1 -1
- package/cjs/OpenChannel/context.js +23 -18
- package/cjs/OpenChannel/context.js.map +1 -1
- package/cjs/OpenChannel.js +44 -43
- package/cjs/OpenChannel.js.map +1 -1
- package/cjs/OpenChannelList/components/OpenChannelListUI.js +102 -92
- package/cjs/OpenChannelList/components/OpenChannelListUI.js.map +1 -1
- package/cjs/OpenChannelList/components/OpenChannelPreview.js +20 -20
- package/cjs/OpenChannelList/context.js +3 -3
- package/cjs/OpenChannelList.js +34 -24
- package/cjs/OpenChannelList.js.map +1 -1
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js +82 -73
- package/cjs/OpenChannelSettings/components/EditDetailsModal.js.map +1 -1
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js +47 -38
- package/cjs/OpenChannelSettings/components/OpenChannelProfile.js.map +1 -1
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js +61 -57
- package/cjs/OpenChannelSettings/components/OpenChannelSettingsUI.js.map +1 -1
- package/cjs/OpenChannelSettings/components/OperatorUI.js +454 -450
- package/cjs/OpenChannelSettings/components/OperatorUI.js.map +1 -1
- package/cjs/OpenChannelSettings/components/ParticipantUI.js +21 -17
- package/cjs/OpenChannelSettings/components/ParticipantUI.js.map +1 -1
- package/cjs/OpenChannelSettings/context.js +114 -114
- package/cjs/OpenChannelSettings.js +29 -25
- package/cjs/OpenChannelSettings.js.map +1 -1
- package/cjs/SendbirdProvider.js +1139 -1183
- package/cjs/SendbirdProvider.js.map +1 -1
- package/cjs/Thread/components/ParentMessageInfo.js +240 -239
- package/cjs/Thread/components/ParentMessageInfo.js.map +1 -1
- package/cjs/Thread/components/ParentMessageInfoItem.js +148 -148
- package/cjs/Thread/components/ThreadHeader.js +22 -25
- package/cjs/Thread/components/ThreadHeader.js.map +1 -1
- package/cjs/Thread/components/ThreadList.js +122 -122
- package/cjs/Thread/components/ThreadListItem.js +341 -340
- package/cjs/Thread/components/ThreadListItem.js.map +1 -1
- package/cjs/Thread/components/ThreadMessageInput.js +167 -165
- package/cjs/Thread/components/ThreadMessageInput.js.map +1 -1
- package/cjs/Thread/components/ThreadUI.js +207 -207
- package/cjs/Thread/context/types.js +21 -21
- package/cjs/Thread/context.js +1283 -1281
- package/cjs/Thread/context.js.map +1 -1
- package/cjs/Thread.js +73 -73
- package/cjs/VoicePlayer/context.js +3 -3
- package/cjs/VoicePlayer/useVoicePlayer.js +68 -60
- package/cjs/VoicePlayer/useVoicePlayer.js.map +1 -1
- package/cjs/VoiceRecorder/context.js +25 -127
- package/cjs/VoiceRecorder/context.js.map +1 -1
- package/cjs/VoiceRecorder/useVoiceRecorder.js +105 -96
- package/cjs/VoiceRecorder/useVoiceRecorder.js.map +1 -1
- package/cjs/chunks/{bundle-BRjBigtB.js → bundle-1XtsxT8L.js} +10 -10
- package/cjs/chunks/bundle-1XtsxT8L.js.map +1 -0
- package/cjs/chunks/{bundle-CVSpiKNJ.js → bundle-4vdy6J5u.js} +17 -17
- package/cjs/chunks/bundle-4vdy6J5u.js.map +1 -0
- package/cjs/chunks/{bundle-BuYf2Pa8.js → bundle-5_kPn4wU.js} +77 -79
- package/cjs/chunks/bundle-5_kPn4wU.js.map +1 -0
- package/cjs/chunks/{bundle-ByBh6M0g.js → bundle-7UHC8ujA.js} +94 -94
- package/cjs/chunks/bundle-7UHC8ujA.js.map +1 -0
- package/cjs/chunks/{bundle-DessEmBr.js → bundle-8VyIP0TE.js} +1 -1
- package/cjs/chunks/bundle-8VyIP0TE.js.map +1 -0
- package/cjs/chunks/{bundle-C80RIOub.js → bundle-B-olJv7b.js} +1326 -1327
- package/cjs/chunks/{bundle-C80RIOub.js.map → bundle-B-olJv7b.js.map} +1 -1
- package/cjs/chunks/{bundle-DBdGwyXE.js → bundle-B31bbem0.js} +192 -185
- package/cjs/chunks/bundle-B31bbem0.js.map +1 -0
- package/cjs/chunks/{bundle-CFWumCsy.js → bundle-BBoPpUMg.js} +22 -22
- package/cjs/chunks/bundle-BBoPpUMg.js.map +1 -0
- package/cjs/chunks/{bundle-C0LFi1ur.js → bundle-BLc7P6Sp.js} +244 -244
- package/cjs/chunks/bundle-BLc7P6Sp.js.map +1 -0
- package/cjs/chunks/{bundle-XEpryGfs.js → bundle-BOkZUm8a.js} +27 -27
- package/cjs/chunks/bundle-BOkZUm8a.js.map +1 -0
- package/cjs/chunks/{bundle-BiXN0Ylc.js → bundle-BSAWCcb_.js} +920 -923
- package/cjs/chunks/{bundle-BiXN0Ylc.js.map → bundle-BSAWCcb_.js.map} +1 -1
- package/cjs/chunks/bundle-BTU876jx.js +95 -0
- package/cjs/chunks/{bundle-BRUrQgUE.js.map → bundle-BTU876jx.js.map} +1 -1
- package/cjs/chunks/{bundle-BRUrQgUE.js → bundle-BTod-EOk.js} +83 -83
- package/cjs/chunks/bundle-BTod-EOk.js.map +1 -0
- package/cjs/chunks/{bundle-BwvM-P29.js → bundle-BWGOXLHb.js} +1 -1
- package/cjs/chunks/{bundle-BwvM-P29.js.map → bundle-BWGOXLHb.js.map} +1 -1
- package/cjs/chunks/{bundle-DbS-u43Y.js → bundle-BXEGf4g2.js} +164 -164
- package/cjs/chunks/bundle-BXEGf4g2.js.map +1 -0
- package/cjs/chunks/{bundle-juHuQ6-V.js → bundle-B_51Svr9.js} +3 -3
- package/cjs/chunks/{bundle-juHuQ6-V.js.map → bundle-B_51Svr9.js.map} +1 -1
- package/cjs/chunks/{bundle-DdSNUhSn.js → bundle-BaAUvjl9.js} +6 -6
- package/cjs/chunks/bundle-BaAUvjl9.js.map +1 -0
- package/cjs/chunks/{bundle-D3tBia0F.js → bundle-BaM5Ed34.js} +160 -160
- package/cjs/chunks/{bundle-D3tBia0F.js.map → bundle-BaM5Ed34.js.map} +1 -1
- package/cjs/chunks/{bundle-CZObcUAk.js → bundle-BaQc9oOW.js} +29 -29
- package/cjs/chunks/bundle-BaQc9oOW.js.map +1 -0
- package/cjs/chunks/{bundle-pZbKLQPU.js → bundle-BhCAlWKP.js} +11 -11
- package/cjs/chunks/bundle-BhCAlWKP.js.map +1 -0
- package/cjs/chunks/{bundle-B3N7ehMH.js → bundle-Bi-soOXA.js} +258 -258
- package/cjs/chunks/bundle-Bi-soOXA.js.map +1 -0
- package/cjs/chunks/{bundle-D8-ob9Ia.js → bundle-BjgfoBVC.js} +26 -26
- package/cjs/chunks/bundle-BjgfoBVC.js.map +1 -0
- package/cjs/chunks/{bundle-BDbnsPGF.js → bundle-BoLhr7Ko.js} +36 -28
- package/cjs/chunks/bundle-BoLhr7Ko.js.map +1 -0
- package/cjs/chunks/{bundle-D5AiwZE4.js → bundle-BrNoc2XZ.js} +185 -185
- package/cjs/chunks/bundle-BrNoc2XZ.js.map +1 -0
- package/cjs/chunks/{bundle-BwEcnJDm.js → bundle-BwQ4BJif.js} +71 -71
- package/cjs/chunks/bundle-BwQ4BJif.js.map +1 -0
- package/cjs/chunks/{bundle-GtlapnzG.js → bundle-ByyccRIt.js} +210 -206
- package/cjs/chunks/{bundle-DvWHV-PM.js.map → bundle-ByyccRIt.js.map} +1 -1
- package/cjs/chunks/{bundle-Dn17aH6v.js → bundle-C1XVsHlE.js} +51 -51
- package/cjs/chunks/bundle-C1XVsHlE.js.map +1 -0
- package/cjs/chunks/{bundle-Df0cAbH6.js → bundle-C3DKUT4Q.js} +26 -26
- package/cjs/chunks/bundle-C3DKUT4Q.js.map +1 -0
- package/cjs/chunks/{bundle-ZuDe6I0q.js → bundle-C3RFfU6_.js} +89 -89
- package/cjs/chunks/bundle-C3RFfU6_.js.map +1 -0
- package/cjs/chunks/{bundle-C8aAwUsg.js → bundle-C51HeaX4.js} +25 -25
- package/cjs/chunks/bundle-C51HeaX4.js.map +1 -0
- package/cjs/chunks/{bundle-D9hSjP4_.js → bundle-C6a-umLQ.js} +131 -132
- package/{chunks/bundle-BiINvVSK.js.map → cjs/chunks/bundle-C6a-umLQ.js.map} +1 -1
- package/cjs/chunks/{bundle-C-zGGOpz.js → bundle-C93-onMF.js} +12 -12
- package/cjs/chunks/bundle-C93-onMF.js.map +1 -0
- package/cjs/chunks/{bundle-C7_tieEZ.js → bundle-CAUMYdVU.js} +19 -19
- package/cjs/chunks/bundle-CAUMYdVU.js.map +1 -0
- package/cjs/chunks/{bundle-Djp6Qheo.js → bundle-CDIVI7bT.js} +146 -1073
- package/cjs/chunks/bundle-CDIVI7bT.js.map +1 -0
- package/cjs/chunks/{bundle-u8pJrzSP.js → bundle-CE6bFQmu.js} +118 -118
- package/cjs/chunks/bundle-CE6bFQmu.js.map +1 -0
- package/cjs/chunks/{bundle-SdH24Cv9.js → bundle-CLOaQmX9.js} +138 -138
- package/cjs/chunks/bundle-CLOaQmX9.js.map +1 -0
- package/cjs/chunks/{bundle-7zHCY6TY.js → bundle-CQ34zxiR.js} +36 -36
- package/cjs/chunks/bundle-CQ34zxiR.js.map +1 -0
- package/cjs/chunks/{bundle-B6uiunjG.js → bundle-CR04Yhbr.js} +8 -8
- package/cjs/chunks/bundle-CR04Yhbr.js.map +1 -0
- package/cjs/chunks/bundle-CZfcXYaX.js +292 -0
- package/cjs/chunks/bundle-CZfcXYaX.js.map +1 -0
- package/cjs/chunks/{bundle-66eVSkB5.js → bundle-Cgl5e8xs.js} +213 -213
- package/cjs/chunks/bundle-Cgl5e8xs.js.map +1 -0
- package/cjs/chunks/{bundle-BoCS4RH3.js → bundle-CmpLg1_S.js} +15 -15
- package/cjs/chunks/bundle-CmpLg1_S.js.map +1 -0
- package/cjs/chunks/{bundle-DsKL-Ede.js → bundle-Com-Z-XI.js} +82 -82
- package/cjs/chunks/bundle-Com-Z-XI.js.map +1 -0
- package/cjs/chunks/{bundle-BrD0IuOc.js → bundle-CsJKON_3.js} +120 -120
- package/cjs/chunks/bundle-CsJKON_3.js.map +1 -0
- package/cjs/chunks/{bundle-B6hKU81Z.js → bundle-D-qAbZhp.js} +48 -48
- package/cjs/chunks/bundle-D-qAbZhp.js.map +1 -0
- package/cjs/chunks/{bundle-DPoAoYEl.js → bundle-D4aDRH9m.js} +1 -1
- package/cjs/chunks/bundle-D4aDRH9m.js.map +1 -0
- package/cjs/chunks/{bundle-BF3NYKgh.js → bundle-D6E8Fmnl.js} +333 -333
- package/cjs/chunks/{bundle-BF3NYKgh.js.map → bundle-D6E8Fmnl.js.map} +1 -1
- package/cjs/chunks/{bundle-q2tBQOdq.js → bundle-D8gia2Hg.js} +11 -12
- package/cjs/chunks/bundle-D8gia2Hg.js.map +1 -0
- package/cjs/chunks/{bundle-IVTygAtE.js → bundle-DAIf7fWo.js} +28 -28
- package/cjs/chunks/bundle-DAIf7fWo.js.map +1 -0
- package/cjs/chunks/{bundle-BmEl3iIW.js → bundle-DAj-1QVM.js} +2 -2
- package/cjs/chunks/{bundle-BmEl3iIW.js.map → bundle-DAj-1QVM.js.map} +1 -1
- package/cjs/chunks/{bundle-DI-qrtXL.js → bundle-DAxedY0T.js} +23 -23
- package/cjs/chunks/bundle-DAxedY0T.js.map +1 -0
- package/cjs/chunks/{bundle-DR-T3oW9.js → bundle-DMGpM9Ye.js} +370 -368
- package/cjs/chunks/{bundle-DR-T3oW9.js.map → bundle-DMGpM9Ye.js.map} +1 -1
- package/cjs/chunks/{bundle-BzR58JaC.js → bundle-DQy218lT.js} +31 -31
- package/cjs/chunks/bundle-DQy218lT.js.map +1 -0
- package/cjs/chunks/{bundle-BJBClQcM.js → bundle-DRp9IuV2.js} +28 -28
- package/cjs/chunks/bundle-DRp9IuV2.js.map +1 -0
- package/cjs/chunks/{bundle-DbykvtHO.js → bundle-DRy7eNJ0.js} +11 -11
- package/cjs/chunks/bundle-DRy7eNJ0.js.map +1 -0
- package/cjs/chunks/{bundle-ChIhNCh1.js → bundle-DTCz0BH1.js} +161 -162
- package/cjs/chunks/bundle-DTCz0BH1.js.map +1 -0
- package/cjs/chunks/{bundle-DDmTdnuT.js → bundle-DcSTnNI0.js} +64 -65
- package/cjs/chunks/bundle-DcSTnNI0.js.map +1 -0
- package/cjs/chunks/{bundle-DIxulCCm.js → bundle-DdxJqNSP.js} +1 -1
- package/cjs/chunks/bundle-DdxJqNSP.js.map +1 -0
- package/cjs/chunks/{bundle-t1Tb_Gz2.js → bundle-DeQZn8GZ.js} +75 -74
- package/cjs/chunks/bundle-DeQZn8GZ.js.map +1 -0
- package/cjs/chunks/{bundle-0W_w8lRK.js → bundle-Dehhi1FZ.js} +37 -37
- package/cjs/chunks/bundle-Dehhi1FZ.js.map +1 -0
- package/cjs/chunks/{bundle-DnXNmdmw.js → bundle-DfcEln0Z.js} +34 -34
- package/cjs/chunks/bundle-DfcEln0Z.js.map +1 -0
- package/cjs/chunks/bundle-DmX69_-l.js +32 -0
- package/cjs/chunks/bundle-DmX69_-l.js.map +1 -0
- package/cjs/chunks/{bundle-DLdV8LNR.js → bundle-Dnq2YP_l.js} +6 -6
- package/cjs/chunks/bundle-Dnq2YP_l.js.map +1 -0
- package/cjs/chunks/{bundle-C-gA8UhR.js → bundle-Dww6fCVQ.js} +13 -13
- package/cjs/chunks/bundle-Dww6fCVQ.js.map +1 -0
- package/cjs/chunks/{bundle-oUs61pbv.js → bundle-DxSB9NRz.js} +61 -61
- package/cjs/chunks/bundle-DxSB9NRz.js.map +1 -0
- package/cjs/chunks/{bundle-CY1bUkfG.js → bundle-HGbi-rCv.js} +1 -1
- package/cjs/chunks/bundle-HGbi-rCv.js.map +1 -0
- package/cjs/chunks/{bundle-DYZo-ek9.js → bundle-JtgSY0zB.js} +58 -58
- package/cjs/chunks/bundle-JtgSY0zB.js.map +1 -0
- package/cjs/chunks/{bundle-DlPLp6fm.js → bundle-L3FEqZsK.js} +234 -234
- package/cjs/chunks/bundle-L3FEqZsK.js.map +1 -0
- package/cjs/chunks/{bundle-DHuWzY0s.js → bundle-N_CwOE5a.js} +124 -124
- package/cjs/chunks/bundle-N_CwOE5a.js.map +1 -0
- package/cjs/chunks/bundle-Q4icQ1qH.js +122 -0
- package/{chunks/bundle-CVu64-xY.js.map → cjs/chunks/bundle-Q4icQ1qH.js.map} +1 -1
- package/cjs/chunks/{bundle-C-noHeKZ.js → bundle-T4lp5F85.js} +25 -25
- package/cjs/chunks/bundle-T4lp5F85.js.map +1 -0
- package/cjs/chunks/{bundle-CBmExSEr.js → bundle-Tjx9wNAv.js} +21 -21
- package/cjs/chunks/bundle-Tjx9wNAv.js.map +1 -0
- package/cjs/chunks/{bundle-CZz2cvTG.js → bundle-X03vJTEw.js} +45 -46
- package/cjs/chunks/bundle-X03vJTEw.js.map +1 -0
- package/cjs/chunks/{bundle-jkB4LAcp.js → bundle-_ekaw3iI.js} +18 -18
- package/cjs/chunks/bundle-_ekaw3iI.js.map +1 -0
- package/cjs/chunks/{bundle-CEueJUxG.js → bundle-bqRlVm3u.js} +12 -12
- package/cjs/chunks/bundle-bqRlVm3u.js.map +1 -0
- package/cjs/chunks/{bundle-DvWHV-PM.js → bundle-gtkPlUrw.js} +234 -234
- package/cjs/chunks/bundle-gtkPlUrw.js.map +1 -0
- package/cjs/chunks/{bundle-D4pqJjg-.js → bundle-miB6ue8g.js} +72 -72
- package/cjs/chunks/bundle-miB6ue8g.js.map +1 -0
- package/cjs/chunks/{bundle-E9H8fQL4.js → bundle-oeWNUdCB.js} +11 -11
- package/cjs/chunks/bundle-oeWNUdCB.js.map +1 -0
- package/cjs/chunks/{bundle-BufWOg42.js → bundle-qI5gnScC.js} +5 -5
- package/cjs/chunks/bundle-qI5gnScC.js.map +1 -0
- package/cjs/chunks/{bundle--yYCgVRq.js → bundle-wMKhbE3c.js} +2 -2
- package/cjs/chunks/{bundle--yYCgVRq.js.map → bundle-wMKhbE3c.js.map} +1 -1
- package/cjs/chunks/{bundle-D3Gxy8S0.js → bundle-wl1uuzU7.js} +733 -730
- package/cjs/chunks/bundle-wl1uuzU7.js.map +1 -0
- package/cjs/handlers/OpenChannelHandler.js +2 -2
- package/cjs/handlers/SessionHandler.js +2 -2
- package/cjs/hooks/useModal.js +25 -48
- package/cjs/hooks/useModal.js.map +1 -1
- package/cjs/index.js +80 -81
- package/cjs/index.js.map +1 -1
- package/cjs/pubSub/topics.js +1 -1
- package/cjs/sendbirdSelectors.js +550 -550
- package/cjs/ui/Accordion.js +25 -25
- package/cjs/ui/AccordionGroup.js +40 -40
- package/cjs/ui/AdminMessage.js +13 -13
- package/cjs/ui/Avatar.js +4 -4
- package/cjs/ui/Badge.js +18 -18
- package/cjs/ui/BottomSheet.js +40 -26
- package/cjs/ui/BottomSheet.js.map +1 -1
- package/cjs/ui/Button.js +41 -41
- package/cjs/ui/ChannelAvatar.js +21 -21
- package/cjs/ui/Checkbox.js +15 -15
- package/cjs/ui/ConnectionStatus.js +11 -11
- package/cjs/ui/ContextMenu.js +180 -267
- package/cjs/ui/ContextMenu.js.map +1 -1
- package/cjs/ui/DateSeparator.js +13 -13
- package/cjs/ui/EmojiReactions.js +167 -164
- package/cjs/ui/EmojiReactions.js.map +1 -1
- package/cjs/ui/FallbackTemplateMessageItemBody.tsx.js +20 -21
- package/cjs/ui/FallbackTemplateMessageItemBody.tsx.js.map +1 -1
- package/cjs/ui/FeedbackIconButton.js +14 -14
- package/cjs/ui/FileMessageItemBody.js +65 -66
- package/cjs/ui/FileMessageItemBody.js.map +1 -1
- package/cjs/ui/FileViewer.js +23 -17
- package/cjs/ui/FileViewer.js.map +1 -1
- package/cjs/ui/Header.js +53 -0
- package/cjs/ui/Header.js.map +1 -0
- package/cjs/ui/Icon.js +844 -964
- package/cjs/ui/Icon.js.map +1 -1
- package/cjs/ui/IconButton.js +18 -18
- package/cjs/ui/ImageRenderer.js +151 -151
- package/cjs/ui/Input.js +15 -15
- package/cjs/ui/Label.js +4 -4
- package/cjs/ui/LinkLabel.js +21 -21
- package/cjs/ui/Loader.js +11 -11
- package/cjs/ui/LoadingTemplateMessageItemBody.tsx.js +13 -14
- package/cjs/ui/LoadingTemplateMessageItemBody.tsx.js.map +1 -1
- package/cjs/ui/MentionLabel.js +50 -50
- package/cjs/ui/MentionUserLabel.js +4 -4
- package/cjs/ui/MessageContent.js +586 -581
- package/cjs/ui/MessageContent.js.map +1 -1
- package/cjs/ui/MessageFeedbackFailedModal.js +34 -22
- package/cjs/ui/MessageFeedbackFailedModal.js.map +1 -1
- package/cjs/ui/MessageFeedbackModal.js +66 -54
- package/cjs/ui/MessageFeedbackModal.js.map +1 -1
- package/cjs/ui/MessageInput/hooks/usePaste.js +7 -7
- package/cjs/ui/MessageInput.js +423 -424
- package/cjs/ui/MessageInput.js.map +1 -1
- package/cjs/ui/MessageItemMenu.js +134 -134
- package/cjs/ui/MessageItemReactionMenu.js +42 -42
- package/cjs/ui/MessageSearchFileItem.js +77 -78
- package/cjs/ui/MessageSearchFileItem.js.map +1 -1
- package/cjs/ui/MessageSearchItem.js +50 -50
- package/cjs/ui/MessageStatus.js +11 -12
- package/cjs/ui/MessageStatus.js.map +1 -1
- package/cjs/ui/MessageTemplate.js +1 -2
- package/cjs/ui/MessageTemplate.js.map +1 -1
- package/cjs/ui/MobileFeedbackMenu.js +36 -25
- package/cjs/ui/MobileFeedbackMenu.js.map +1 -1
- package/cjs/ui/Modal.js +21 -8
- package/cjs/ui/Modal.js.map +1 -1
- package/cjs/ui/MutedAvatarOverlay.js +14 -14
- package/cjs/ui/OGMessageItemBody.js +76 -76
- package/cjs/ui/OpenChannelAdminMessage.js +9 -9
- package/cjs/ui/OpenChannelAvatar.js +15 -15
- package/cjs/ui/OpenchannelConversationHeader.js +22 -22
- package/cjs/ui/OpenchannelFileMessage.js +117 -117
- package/cjs/ui/OpenchannelOGMessage.js +146 -146
- package/cjs/ui/OpenchannelThumbnailMessage.js +155 -155
- package/cjs/ui/OpenchannelUserMessage.js +128 -128
- package/cjs/ui/PlaceHolder.js +45 -45
- package/cjs/ui/PlaybackTime.js +11 -11
- package/cjs/ui/ProgressBar.js +12 -12
- package/cjs/ui/QuoteMessage.js +69 -70
- package/cjs/ui/QuoteMessage.js.map +1 -1
- package/cjs/ui/QuoteMessageInput.js +66 -67
- package/cjs/ui/QuoteMessageInput.js.map +1 -1
- package/cjs/ui/ReactionBadge.js +20 -20
- package/cjs/ui/ReactionButton.js +17 -17
- package/cjs/ui/SortByRow.js +23 -23
- package/cjs/ui/TemplateMessageItemBody.js +423 -424
- package/cjs/ui/TemplateMessageItemBody.js.map +1 -1
- package/cjs/ui/TextButton.js +9 -9
- package/cjs/ui/TextMessageItemBody.js +44 -44
- package/cjs/ui/ThreadReplies.js +34 -34
- package/cjs/ui/ThumbnailMessageItemBody.js +36 -37
- package/cjs/ui/ThumbnailMessageItemBody.js.map +1 -1
- package/cjs/ui/Toggle.js +110 -110
- package/cjs/ui/Tooltip.js +9 -9
- package/cjs/ui/TooltipWrapper.js +13 -13
- package/cjs/ui/TypingIndicatorBubble.js +56 -56
- package/cjs/ui/UnknownMessageItemBody.js +19 -20
- package/cjs/ui/UnknownMessageItemBody.js.map +1 -1
- package/cjs/ui/UserListItem.js +56 -56
- package/cjs/ui/UserProfile.js +45 -45
- package/cjs/ui/VoiceMessageInput.js +9 -9
- package/cjs/ui/VoiceMessageItemBody.js +62 -54
- package/cjs/ui/VoiceMessageItemBody.js.map +1 -1
- package/cjs/ui/Word.js +41 -41
- package/cjs/useSendbirdStateContext.js +15 -15
- package/cjs/utils/message/getOutgoingMessageState.js +32 -32
- package/cjs/utils/message/isVoiceMessage.js +2 -3
- package/cjs/utils/message/isVoiceMessage.js.map +1 -1
- package/cjs/withSendbird.js +17 -17
- package/dist/index.css +195 -169
- package/dist/index.css.map +1 -1
- package/handlers/OpenChannelHandler.js +2 -2
- package/handlers/SessionHandler.js +2 -2
- package/hooks/useModal.js +22 -50
- package/hooks/useModal.js.map +1 -1
- package/index.js +80 -81
- package/index.js.map +1 -1
- package/package.json +13 -5
- package/pubSub/topics.js +1 -1
- package/sendbirdSelectors.js +550 -550
- package/types/lib/pubSub/topics.d.ts +2 -2
- package/types/lib/types.d.ts +50 -15
- package/types/modules/App/index.d.ts +17 -10
- package/types/modules/Channel/context/ChannelProvider.d.ts +1 -4
- package/types/modules/ChannelList/components/ChannelPreviewAction.d.ts +2 -2
- package/types/modules/ChannelSettings/components/ChannelSettingsUI/ChannelSettingsHeader.d.ts +4 -3
- package/types/modules/GroupChannel/components/FileViewer/FileViewerView.d.ts +2 -2
- package/types/modules/GroupChannel/components/GroupChannelHeader/GroupChannelHeaderView.d.ts +3 -2
- package/types/modules/GroupChannel/components/GroupChannelHeader/index.d.ts +3 -2
- package/types/modules/GroupChannel/components/MessageInputWrapper/MessageInputWrapperView.d.ts +1 -1
- package/types/modules/GroupChannel/components/MessageInputWrapper/VoiceMessageInputWrapper.d.ts +2 -2
- package/types/modules/GroupChannel/components/MessageInputWrapper/index.d.ts +1 -1
- package/types/modules/GroupChannel/components/SuggestedReplies/index.d.ts +3 -1
- package/types/modules/GroupChannelList/components/GroupChannelListHeader/index.d.ts +4 -2
- package/types/modules/MessageSearch/context/MessageSearchProvider.d.ts +1 -1
- package/types/modules/OpenChannelApp/index.d.ts +3 -3
- package/types/modules/Thread/components/ThreadHeader/index.d.ts +2 -2
- package/types/ui/Header/index.d.ts +45 -0
- package/types/ui/Icon/index.d.ts +2 -3
- package/types/ui/Label/index.d.ts +3 -4
- package/types/ui/MessageInput/hooks/usePaste/consts.d.ts +1 -1
- package/types/ui/Modal/index.d.ts +2 -4
- package/types/ui/TextButton/index.d.ts +1 -1
- package/types/ui/Toggle/ToggleContainer.d.ts +2 -1
- package/types/utils/index.d.ts +0 -1
- package/types/utils/utils.d.ts +2 -0
- package/ui/Accordion.js +25 -25
- package/ui/AccordionGroup.js +40 -40
- package/ui/AdminMessage.js +13 -13
- package/ui/Avatar.js +4 -4
- package/ui/Badge.js +18 -18
- package/ui/BottomSheet.js +40 -26
- package/ui/BottomSheet.js.map +1 -1
- package/ui/Button.js +41 -41
- package/ui/ChannelAvatar.js +21 -21
- package/ui/Checkbox.js +15 -15
- package/ui/ConnectionStatus.js +11 -11
- package/ui/ContextMenu.js +180 -267
- package/ui/ContextMenu.js.map +1 -1
- package/ui/DateSeparator.js +13 -13
- package/ui/EmojiReactions.js +167 -164
- package/ui/EmojiReactions.js.map +1 -1
- package/ui/FallbackTemplateMessageItemBody.tsx.js +20 -21
- package/ui/FallbackTemplateMessageItemBody.tsx.js.map +1 -1
- package/ui/FeedbackIconButton.js +14 -14
- package/ui/FileMessageItemBody.js +65 -66
- package/ui/FileMessageItemBody.js.map +1 -1
- package/ui/FileViewer.js +23 -17
- package/ui/FileViewer.js.map +1 -1
- package/ui/Header.js +45 -0
- package/ui/Header.js.map +1 -0
- package/ui/Icon.js +845 -965
- package/ui/Icon.js.map +1 -1
- package/ui/IconButton.js +18 -18
- package/ui/ImageRenderer.js +151 -151
- package/ui/Input.js +15 -15
- package/ui/Label.js +3 -3
- package/ui/LinkLabel.js +21 -21
- package/ui/Loader.js +11 -11
- package/ui/LoadingTemplateMessageItemBody.tsx.js +13 -14
- package/ui/LoadingTemplateMessageItemBody.tsx.js.map +1 -1
- package/ui/MentionLabel.js +50 -50
- package/ui/MentionUserLabel.js +4 -4
- package/ui/MessageContent.js +586 -581
- package/ui/MessageContent.js.map +1 -1
- package/ui/MessageFeedbackFailedModal.js +34 -22
- package/ui/MessageFeedbackFailedModal.js.map +1 -1
- package/ui/MessageFeedbackModal.js +66 -54
- package/ui/MessageFeedbackModal.js.map +1 -1
- package/ui/MessageInput/hooks/usePaste.js +7 -7
- package/ui/MessageInput.js +423 -424
- package/ui/MessageInput.js.map +1 -1
- package/ui/MessageItemMenu.js +134 -134
- package/ui/MessageItemReactionMenu.js +42 -42
- package/ui/MessageSearchFileItem.js +77 -78
- package/ui/MessageSearchFileItem.js.map +1 -1
- package/ui/MessageSearchItem.js +50 -50
- package/ui/MessageStatus.js +11 -12
- package/ui/MessageStatus.js.map +1 -1
- package/ui/MessageTemplate.js +1 -2
- package/ui/MessageTemplate.js.map +1 -1
- package/ui/MobileFeedbackMenu.js +36 -25
- package/ui/MobileFeedbackMenu.js.map +1 -1
- package/ui/Modal.js +21 -8
- package/ui/Modal.js.map +1 -1
- package/ui/MutedAvatarOverlay.js +14 -14
- package/ui/OGMessageItemBody.js +76 -76
- package/ui/OpenChannelAdminMessage.js +9 -9
- package/ui/OpenChannelAvatar.js +15 -15
- package/ui/OpenchannelConversationHeader.js +22 -22
- package/ui/OpenchannelFileMessage.js +117 -117
- package/ui/OpenchannelOGMessage.js +146 -146
- package/ui/OpenchannelThumbnailMessage.js +155 -155
- package/ui/OpenchannelUserMessage.js +128 -128
- package/ui/PlaceHolder.js +45 -45
- package/ui/PlaybackTime.js +11 -11
- package/ui/ProgressBar.js +12 -12
- package/ui/QuoteMessage.js +69 -70
- package/ui/QuoteMessage.js.map +1 -1
- package/ui/QuoteMessageInput.js +66 -67
- package/ui/QuoteMessageInput.js.map +1 -1
- package/ui/ReactionBadge.js +20 -20
- package/ui/ReactionButton.js +17 -17
- package/ui/SortByRow.js +23 -23
- package/ui/TemplateMessageItemBody.js +423 -424
- package/ui/TemplateMessageItemBody.js.map +1 -1
- package/ui/TextButton.js +9 -9
- package/ui/TextMessageItemBody.js +44 -44
- package/ui/ThreadReplies.js +34 -34
- package/ui/ThumbnailMessageItemBody.js +36 -37
- package/ui/ThumbnailMessageItemBody.js.map +1 -1
- package/ui/Toggle.js +110 -110
- package/ui/Tooltip.js +9 -9
- package/ui/TooltipWrapper.js +13 -13
- package/ui/TypingIndicatorBubble.js +56 -56
- package/ui/UnknownMessageItemBody.js +19 -20
- package/ui/UnknownMessageItemBody.js.map +1 -1
- package/ui/UserListItem.js +56 -56
- package/ui/UserProfile.js +45 -45
- package/ui/VoiceMessageInput.js +9 -9
- package/ui/VoiceMessageItemBody.js +62 -54
- package/ui/VoiceMessageItemBody.js.map +1 -1
- package/ui/Word.js +41 -41
- package/useSendbirdStateContext.js +15 -15
- package/utils/message/getOutgoingMessageState.js +32 -32
- package/utils/message/isVoiceMessage.js +2 -3
- package/utils/message/isVoiceMessage.js.map +1 -1
- package/withSendbird.js +17 -17
- package/chunks/bundle-5yHWoLVJ.js.map +0 -1
- package/chunks/bundle-B7J4Fm0y.js.map +0 -1
- package/chunks/bundle-B9rwLbgh.js +0 -36
- package/chunks/bundle-B9rwLbgh.js.map +0 -1
- package/chunks/bundle-B9sTU4LX.js.map +0 -1
- package/chunks/bundle-BKCDSKx6.js.map +0 -1
- package/chunks/bundle-BLMDgHS-.js.map +0 -1
- package/chunks/bundle-BMPm6lKq.js.map +0 -1
- package/chunks/bundle-BOUVMTAt.js.map +0 -1
- package/chunks/bundle-BPbwxMIx.js.map +0 -1
- package/chunks/bundle-BPj0X5TA.js.map +0 -1
- package/chunks/bundle-BPvfVEd8.js.map +0 -1
- package/chunks/bundle-BTLVyMgj.js.map +0 -1
- package/chunks/bundle-BX_IXLSp.js.map +0 -1
- package/chunks/bundle-BbeHRXOp.js.map +0 -1
- package/chunks/bundle-Bdw6eUSG.js +0 -4
- package/chunks/bundle-Bdw6eUSG.js.map +0 -1
- package/chunks/bundle-Bf6VvPhp.js.map +0 -1
- package/chunks/bundle-BlK-fMQm.js.map +0 -1
- package/chunks/bundle-BmFbOU4C.js.map +0 -1
- package/chunks/bundle-BwJTKHEl.js.map +0 -1
- package/chunks/bundle-BzYv4x2T.js.map +0 -1
- package/chunks/bundle-C3K7W_E-.js.map +0 -1
- package/chunks/bundle-CMZVPZeM.js.map +0 -1
- package/chunks/bundle-COLsFI7t.js.map +0 -1
- package/chunks/bundle-CSOdmQ75.js +0 -65
- package/chunks/bundle-CSOdmQ75.js.map +0 -1
- package/chunks/bundle-CUDCHaXM.js.map +0 -1
- package/chunks/bundle-CUPPssXo.js.map +0 -1
- package/chunks/bundle-CUd4X5O2.js.map +0 -1
- package/chunks/bundle-CVu64-xY.js +0 -122
- package/chunks/bundle-CXtl77MC.js.map +0 -1
- package/chunks/bundle-CY2Lga-4.js.map +0 -1
- package/chunks/bundle-CllFAkeZ.js.map +0 -1
- package/chunks/bundle-D4rjbjNv.js.map +0 -1
- package/chunks/bundle-D4x1_hkl.js.map +0 -1
- package/chunks/bundle-D5lQwKgM.js.map +0 -1
- package/chunks/bundle-D8JekjLy.js.map +0 -1
- package/chunks/bundle-DGnpw8up.js.map +0 -1
- package/chunks/bundle-DQKxIg_X.js.map +0 -1
- package/chunks/bundle-DS5ljghe.js.map +0 -1
- package/chunks/bundle-DZl__KhG.js.map +0 -1
- package/chunks/bundle-Dc7E6GJc.js.map +0 -1
- package/chunks/bundle-DfDCjniq.js.map +0 -1
- package/chunks/bundle-DfhJ_oFZ.js.map +0 -1
- package/chunks/bundle-Dk211z5R.js.map +0 -1
- package/chunks/bundle-DpCn3P9s.js.map +0 -1
- package/chunks/bundle-DpkEqNiD.js.map +0 -1
- package/chunks/bundle-DwApARpe.js.map +0 -1
- package/chunks/bundle-Dzm909k5.js.map +0 -1
- package/chunks/bundle-OIgXk-TJ.js.map +0 -1
- package/chunks/bundle-Otcx8Wxy.js.map +0 -1
- package/chunks/bundle-WmbZYtqM.js.map +0 -1
- package/chunks/bundle-Y3Y435SA.js.map +0 -1
- package/chunks/bundle-fxTywxQ4.js.map +0 -1
- package/chunks/bundle-mRqHYNyY.js.map +0 -1
- package/chunks/bundle-tIPAQa1P.js.map +0 -1
- package/cjs/chunks/bundle-0W_w8lRK.js.map +0 -1
- package/cjs/chunks/bundle-7zHCY6TY.js.map +0 -1
- package/cjs/chunks/bundle-B3N7ehMH.js.map +0 -1
- package/cjs/chunks/bundle-B6hKU81Z.js.map +0 -1
- package/cjs/chunks/bundle-B6uiunjG.js.map +0 -1
- package/cjs/chunks/bundle-BDbnsPGF.js.map +0 -1
- package/cjs/chunks/bundle-BJBClQcM.js.map +0 -1
- package/cjs/chunks/bundle-BRjBigtB.js.map +0 -1
- package/cjs/chunks/bundle-Bka-H9ks.js +0 -7
- package/cjs/chunks/bundle-Bka-H9ks.js.map +0 -1
- package/cjs/chunks/bundle-BoCS4RH3.js.map +0 -1
- package/cjs/chunks/bundle-BrD0IuOc.js.map +0 -1
- package/cjs/chunks/bundle-BuYf2Pa8.js.map +0 -1
- package/cjs/chunks/bundle-BufWOg42.js.map +0 -1
- package/cjs/chunks/bundle-BwEcnJDm.js.map +0 -1
- package/cjs/chunks/bundle-ByBh6M0g.js.map +0 -1
- package/cjs/chunks/bundle-BzR58JaC.js.map +0 -1
- package/cjs/chunks/bundle-C-gA8UhR.js.map +0 -1
- package/cjs/chunks/bundle-C-noHeKZ.js.map +0 -1
- package/cjs/chunks/bundle-C-zGGOpz.js.map +0 -1
- package/cjs/chunks/bundle-C0LFi1ur.js.map +0 -1
- package/cjs/chunks/bundle-C7_tieEZ.js.map +0 -1
- package/cjs/chunks/bundle-C8aAwUsg.js.map +0 -1
- package/cjs/chunks/bundle-CBmExSEr.js.map +0 -1
- package/cjs/chunks/bundle-CEueJUxG.js.map +0 -1
- package/cjs/chunks/bundle-CFWumCsy.js.map +0 -1
- package/cjs/chunks/bundle-CVSpiKNJ.js.map +0 -1
- package/cjs/chunks/bundle-CY1bUkfG.js.map +0 -1
- package/cjs/chunks/bundle-CZObcUAk.js.map +0 -1
- package/cjs/chunks/bundle-CZz2cvTG.js.map +0 -1
- package/cjs/chunks/bundle-Cc-KyTf-.js +0 -38
- package/cjs/chunks/bundle-Cc-KyTf-.js.map +0 -1
- package/cjs/chunks/bundle-ChIhNCh1.js.map +0 -1
- package/cjs/chunks/bundle-D3Gxy8S0.js.map +0 -1
- package/cjs/chunks/bundle-D4pqJjg-.js.map +0 -1
- package/cjs/chunks/bundle-D5AiwZE4.js.map +0 -1
- package/cjs/chunks/bundle-D8-ob9Ia.js.map +0 -1
- package/cjs/chunks/bundle-D9hSjP4_.js.map +0 -1
- package/cjs/chunks/bundle-DBdGwyXE.js.map +0 -1
- package/cjs/chunks/bundle-DDmTdnuT.js.map +0 -1
- package/cjs/chunks/bundle-DHuWzY0s.js.map +0 -1
- package/cjs/chunks/bundle-DI-qrtXL.js.map +0 -1
- package/cjs/chunks/bundle-DIxulCCm.js.map +0 -1
- package/cjs/chunks/bundle-DLdV8LNR.js.map +0 -1
- package/cjs/chunks/bundle-DPoAoYEl.js.map +0 -1
- package/cjs/chunks/bundle-DYZo-ek9.js.map +0 -1
- package/cjs/chunks/bundle-DbS-u43Y.js.map +0 -1
- package/cjs/chunks/bundle-DbykvtHO.js.map +0 -1
- package/cjs/chunks/bundle-DdSNUhSn.js.map +0 -1
- package/cjs/chunks/bundle-DessEmBr.js.map +0 -1
- package/cjs/chunks/bundle-Df0cAbH6.js.map +0 -1
- package/cjs/chunks/bundle-Djp6Qheo.js.map +0 -1
- package/cjs/chunks/bundle-DlPLp6fm.js.map +0 -1
- package/cjs/chunks/bundle-Dn17aH6v.js.map +0 -1
- package/cjs/chunks/bundle-DnXNmdmw.js.map +0 -1
- package/cjs/chunks/bundle-DsKL-Ede.js.map +0 -1
- package/cjs/chunks/bundle-E9H8fQL4.js.map +0 -1
- package/cjs/chunks/bundle-GtlapnzG.js.map +0 -1
- package/cjs/chunks/bundle-IVTygAtE.js.map +0 -1
- package/cjs/chunks/bundle-SdH24Cv9.js.map +0 -1
- package/cjs/chunks/bundle-XEpryGfs.js.map +0 -1
- package/cjs/chunks/bundle-ZuDe6I0q.js.map +0 -1
- package/cjs/chunks/bundle-fG1bRzYE.js +0 -72
- package/cjs/chunks/bundle-fG1bRzYE.js.map +0 -1
- package/cjs/chunks/bundle-jkB4LAcp.js.map +0 -1
- package/cjs/chunks/bundle-oUs61pbv.js.map +0 -1
- package/cjs/chunks/bundle-pZbKLQPU.js.map +0 -1
- package/cjs/chunks/bundle-q2tBQOdq.js.map +0 -1
- package/cjs/chunks/bundle-t1Tb_Gz2.js.map +0 -1
- package/cjs/chunks/bundle-ti18J4ii.js +0 -124
- package/cjs/chunks/bundle-ti18J4ii.js.map +0 -1
- package/cjs/chunks/bundle-u8pJrzSP.js.map +0 -1
- package/types/modules/OpenChannelApp/stories/utils.d.ts +0 -6
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var index = require('./bundle-
|
|
5
|
-
var tokenize = require('./bundle-
|
|
4
|
+
var index = require('./bundle-wl1uuzU7.js');
|
|
5
|
+
var tokenize = require('./bundle-CLOaQmX9.js');
|
|
6
6
|
var Message_context = require('../Message/context.js');
|
|
7
7
|
var ui_MentionLabel = require('../ui/MentionLabel.js');
|
|
8
8
|
var ui_LinkLabel = require('../ui/LinkLabel.js');
|
|
9
|
-
var ui_Label = require('./bundle-
|
|
9
|
+
var ui_Label = require('./bundle-5_kPn4wU.js');
|
|
10
10
|
|
|
11
|
-
// this function is used to generate a unique key for token in message
|
|
12
|
-
// it changes with updated time and index
|
|
13
|
-
// messageUpdatedAt is the key part of this key generator
|
|
14
|
-
function keyGenerator(createdAt, messageUpdatedAt, index) {
|
|
15
|
-
return "sb-msg_".concat(createdAt, "_").concat(messageUpdatedAt, "_").concat(index);
|
|
11
|
+
// this function is used to generate a unique key for token in message
|
|
12
|
+
// it changes with updated time and index
|
|
13
|
+
// messageUpdatedAt is the key part of this key generator
|
|
14
|
+
function keyGenerator(createdAt, messageUpdatedAt, index) {
|
|
15
|
+
return "sb-msg_".concat(createdAt, "_").concat(messageUpdatedAt, "_").concat(index);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
function TextFragment(_a) {
|
|
19
|
-
var tokens = _a.tokens;
|
|
20
|
-
var messageStore = Message_context.useMessageContext();
|
|
21
|
-
var message = messageStore === null || messageStore === void 0 ? void 0 : messageStore.message;
|
|
22
|
-
var isByMe = messageStore === null || messageStore === void 0 ? void 0 : messageStore.isByMe;
|
|
23
|
-
var updatedAt = message.updatedAt, createdAt = message.createdAt;
|
|
24
|
-
return (React.createElement(React.Fragment, null, tokens === null || tokens === void 0 ? void 0 : tokens.map(function (token, idx) {
|
|
25
|
-
var key = keyGenerator(createdAt, updatedAt, idx);
|
|
26
|
-
return index.K(token.type)
|
|
27
|
-
.with(tokenize.TOKEN_TYPES.mention, function () { return (React.createElement("span", { className: "sendbird-word", key: key },
|
|
28
|
-
React.createElement(ui_MentionLabel, { mentionTemplate: tokenize.USER_MENTION_PREFIX,
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
mentionedUserId: token.userId, mentionedUserNickname: token.value, isByMe: isByMe }))); })
|
|
31
|
-
.with(tokenize.TOKEN_TYPES.url, function () { return (React.createElement("span", { className: "sendbird-word", key: key },
|
|
32
|
-
React.createElement(ui_LinkLabel.default, { className: "sendbird-word__url", src: token.value, type: ui_Label.LabelTypography.BODY_1 }, token.value))); })
|
|
33
|
-
.otherwise(function () { return React.createElement(React.Fragment, { key: key }, tokenize.getWhiteSpacePreservedText(token.value)); });
|
|
34
|
-
})));
|
|
18
|
+
function TextFragment(_a) {
|
|
19
|
+
var tokens = _a.tokens;
|
|
20
|
+
var messageStore = Message_context.useMessageContext();
|
|
21
|
+
var message = messageStore === null || messageStore === void 0 ? void 0 : messageStore.message;
|
|
22
|
+
var isByMe = messageStore === null || messageStore === void 0 ? void 0 : messageStore.isByMe;
|
|
23
|
+
var updatedAt = message.updatedAt, createdAt = message.createdAt;
|
|
24
|
+
return (React.createElement(React.Fragment, null, tokens === null || tokens === void 0 ? void 0 : tokens.map(function (token, idx) {
|
|
25
|
+
var key = keyGenerator(createdAt, updatedAt, idx);
|
|
26
|
+
return index.K(token.type)
|
|
27
|
+
.with(tokenize.TOKEN_TYPES.mention, function () { return (React.createElement("span", { className: "sendbird-word", key: key },
|
|
28
|
+
React.createElement(ui_MentionLabel, { mentionTemplate: tokenize.USER_MENTION_PREFIX,
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
mentionedUserId: token.userId, mentionedUserNickname: token.value, isByMe: isByMe }))); })
|
|
31
|
+
.with(tokenize.TOKEN_TYPES.url, function () { return (React.createElement("span", { className: "sendbird-word", key: key },
|
|
32
|
+
React.createElement(ui_LinkLabel.default, { className: "sendbird-word__url", src: token.value, type: ui_Label.LabelTypography.BODY_1 }, token.value))); })
|
|
33
|
+
.otherwise(function () { return React.createElement(React.Fragment, { key: key }, tokenize.getWhiteSpacePreservedText(token.value)); });
|
|
34
|
+
})));
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
exports.TextFragment = TextFragment;
|
|
38
|
-
//# sourceMappingURL=bundle-
|
|
38
|
+
//# sourceMappingURL=bundle-C3DKUT4Q.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-C3DKUT4Q.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -3,97 +3,97 @@
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var ui_ContextMenu = require('../ui/ContextMenu.js');
|
|
5
5
|
var useSendbirdStateContext = require('../useSendbirdStateContext.js');
|
|
6
|
-
var LocalizationContext = require('./bundle-
|
|
6
|
+
var LocalizationContext = require('./bundle-oeWNUdCB.js');
|
|
7
7
|
|
|
8
|
-
var OpenChannelMessageStatusTypes = {
|
|
9
|
-
NONE: 'none',
|
|
10
|
-
PENDING: 'pending',
|
|
11
|
-
FAILED: 'failed',
|
|
12
|
-
CANCELED: 'canceled',
|
|
13
|
-
SUCCEEDED: 'succeeded',
|
|
14
|
-
};
|
|
15
|
-
var getSenderFromMessage = function (message) {
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
return message.sender || message._sender;
|
|
18
|
-
};
|
|
19
|
-
var checkIsSent = function (status) { return (status === OpenChannelMessageStatusTypes.SUCCEEDED); };
|
|
20
|
-
var checkIsPending = function (status) { return (status === OpenChannelMessageStatusTypes.PENDING); };
|
|
21
|
-
var checkIsFailed = function (status) { return (status === OpenChannelMessageStatusTypes.FAILED); };
|
|
22
|
-
var checkIsByMe = function (message, userId) { return (getSenderFromMessage(message).userId === userId); };
|
|
23
|
-
var isFineCopy = function (_a) {
|
|
24
|
-
var _b;
|
|
25
|
-
var message = _a.message;
|
|
26
|
-
return ((message === null || message === void 0 ? void 0 : message.messageType) === 'user' && ((_b = message === null || message === void 0 ? void 0 : message.message) === null || _b === void 0 ? void 0 : _b.length) > 0);
|
|
27
|
-
};
|
|
28
|
-
var isFineResend = function (_a) {
|
|
29
|
-
var message = _a.message, status = _a.status, userId = _a.userId;
|
|
30
|
-
return checkIsByMe(message, userId)
|
|
31
|
-
&& checkIsFailed(status)
|
|
32
|
-
// @ts-ignore
|
|
33
|
-
&& (message === null || message === void 0 ? void 0 : message.isResendable);
|
|
34
|
-
};
|
|
35
|
-
var isFineEdit = function (_a) {
|
|
36
|
-
var _b;
|
|
37
|
-
var message = _a.message, status = _a.status, userId = _a.userId;
|
|
38
|
-
return checkIsByMe(message, userId) && checkIsSent(status) && ((_b = message === null || message === void 0 ? void 0 : message.isUserMessage) === null || _b === void 0 ? void 0 : _b.call(message));
|
|
39
|
-
};
|
|
40
|
-
var isFineDelete = function (_a) {
|
|
41
|
-
var message = _a.message, userId = _a.userId;
|
|
42
|
-
return checkIsByMe(message, userId);
|
|
43
|
-
};
|
|
44
|
-
var isFineDownload = function (_a) {
|
|
45
|
-
var _b;
|
|
46
|
-
var message = _a.message, status = _a.status;
|
|
47
|
-
if (((_b = message === null || message === void 0 ? void 0 : message.isFileMessage) === null || _b === void 0 ? void 0 : _b.call(message)) && checkIsSent(status)) {
|
|
48
|
-
return true;
|
|
49
|
-
}
|
|
50
|
-
return false;
|
|
51
|
-
};
|
|
52
|
-
var showMenuTrigger = function (props) {
|
|
53
|
-
var message = props.message, status = props.status, userId = props.userId;
|
|
54
|
-
// @ts-ignore
|
|
55
|
-
if (message.messageType === 'user') {
|
|
56
|
-
return (isFineDelete({ message: message, status: status, userId: userId })
|
|
57
|
-
|| isFineEdit({ message: message, status: status, userId: userId })
|
|
58
|
-
// @ts-ignore
|
|
59
|
-
|| isFineCopy({ message: message, status: status, userId: userId })
|
|
60
|
-
|| isFineResend({ message: message, status: status, userId: userId }));
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
return (isFineDelete({ message: message, status: status, userId: userId })
|
|
64
|
-
|| isFineResend({ message: message, status: status, userId: userId }));
|
|
65
|
-
}
|
|
8
|
+
var OpenChannelMessageStatusTypes = {
|
|
9
|
+
NONE: 'none',
|
|
10
|
+
PENDING: 'pending',
|
|
11
|
+
FAILED: 'failed',
|
|
12
|
+
CANCELED: 'canceled',
|
|
13
|
+
SUCCEEDED: 'succeeded',
|
|
14
|
+
};
|
|
15
|
+
var getSenderFromMessage = function (message) {
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
return message.sender || message._sender;
|
|
18
|
+
};
|
|
19
|
+
var checkIsSent = function (status) { return (status === OpenChannelMessageStatusTypes.SUCCEEDED); };
|
|
20
|
+
var checkIsPending = function (status) { return (status === OpenChannelMessageStatusTypes.PENDING); };
|
|
21
|
+
var checkIsFailed = function (status) { return (status === OpenChannelMessageStatusTypes.FAILED); };
|
|
22
|
+
var checkIsByMe = function (message, userId) { return (getSenderFromMessage(message).userId === userId); };
|
|
23
|
+
var isFineCopy = function (_a) {
|
|
24
|
+
var _b;
|
|
25
|
+
var message = _a.message;
|
|
26
|
+
return ((message === null || message === void 0 ? void 0 : message.messageType) === 'user' && ((_b = message === null || message === void 0 ? void 0 : message.message) === null || _b === void 0 ? void 0 : _b.length) > 0);
|
|
27
|
+
};
|
|
28
|
+
var isFineResend = function (_a) {
|
|
29
|
+
var message = _a.message, status = _a.status, userId = _a.userId;
|
|
30
|
+
return checkIsByMe(message, userId)
|
|
31
|
+
&& checkIsFailed(status)
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
&& (message === null || message === void 0 ? void 0 : message.isResendable);
|
|
34
|
+
};
|
|
35
|
+
var isFineEdit = function (_a) {
|
|
36
|
+
var _b;
|
|
37
|
+
var message = _a.message, status = _a.status, userId = _a.userId;
|
|
38
|
+
return checkIsByMe(message, userId) && checkIsSent(status) && ((_b = message === null || message === void 0 ? void 0 : message.isUserMessage) === null || _b === void 0 ? void 0 : _b.call(message));
|
|
39
|
+
};
|
|
40
|
+
var isFineDelete = function (_a) {
|
|
41
|
+
var message = _a.message, userId = _a.userId;
|
|
42
|
+
return checkIsByMe(message, userId);
|
|
43
|
+
};
|
|
44
|
+
var isFineDownload = function (_a) {
|
|
45
|
+
var _b;
|
|
46
|
+
var message = _a.message, status = _a.status;
|
|
47
|
+
if (((_b = message === null || message === void 0 ? void 0 : message.isFileMessage) === null || _b === void 0 ? void 0 : _b.call(message)) && checkIsSent(status)) {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
return false;
|
|
51
|
+
};
|
|
52
|
+
var showMenuTrigger = function (props) {
|
|
53
|
+
var message = props.message, status = props.status, userId = props.userId;
|
|
54
|
+
// @ts-ignore
|
|
55
|
+
if (message.messageType === 'user') {
|
|
56
|
+
return (isFineDelete({ message: message, status: status, userId: userId })
|
|
57
|
+
|| isFineEdit({ message: message, status: status, userId: userId })
|
|
58
|
+
// @ts-ignore
|
|
59
|
+
|| isFineCopy({ message: message, status: status, userId: userId })
|
|
60
|
+
|| isFineResend({ message: message, status: status, userId: userId }));
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
return (isFineDelete({ message: message, status: status, userId: userId })
|
|
64
|
+
|| isFineResend({ message: message, status: status, userId: userId }));
|
|
65
|
+
}
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
var OpenChannelMobileMenu = function (props) {
|
|
69
|
-
var _a, _b;
|
|
70
|
-
var message = props.message, parentRef = props.parentRef, resendMessage = props.resendMessage, showEdit = props.showEdit, showRemove = props.showRemove, copyToClipboard = props.copyToClipboard, hideMenu = props.hideMenu, _c = props.isEphemeral, isEphemeral = _c === void 0 ? false : _c;
|
|
71
|
-
var userMessage = message;
|
|
72
|
-
var status = message === null || message === void 0 ? void 0 : message.sendingStatus;
|
|
73
|
-
var stringSet = LocalizationContext.useLocalization().stringSet;
|
|
74
|
-
var userId = (_b = (_a = useSendbirdStateContext.useSendbirdStateContext()) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.userId;
|
|
75
|
-
var fileMessage = message;
|
|
76
|
-
return (React.createElement(ui_ContextMenu.default, { isOpen: true, menuItems: function () { return (React.createElement(ui_ContextMenu.MenuItems, { className: "sendbird-openchannel__mobile-menu", parentRef: parentRef, parentContainRef: parentRef, closeDropdown: hideMenu },
|
|
77
|
-
isFineCopy({ message: userMessage, userId: userId, status: status }) && (React.createElement(ui_ContextMenu.MenuItem, { className: "sendbird-openchannel-og-message__top__context-menu__copy", onClick: function () {
|
|
78
|
-
copyToClipboard();
|
|
79
|
-
}, dataSbId: "open_channel_mobile_context_menu_copy" },
|
|
80
|
-
React.createElement(React.Fragment, null, stringSet.CONTEXT_MENU_DROPDOWN__COPY))),
|
|
81
|
-
(!isEphemeral && isFineEdit({ message: message, userId: userId, status: status })) && (React.createElement(ui_ContextMenu.MenuItem, { className: "sendbird-openchannel-og-message__top__context-menu__edit", onClick: function () {
|
|
82
|
-
showEdit();
|
|
83
|
-
}, dataSbId: "open_channel_mobile_context_menu_edit" },
|
|
84
|
-
React.createElement(React.Fragment, null, stringSet.CONTEXT_MENU_DROPDOWN__EDIT))),
|
|
85
|
-
isFineResend({ message: message, userId: userId, status: status }) && (React.createElement(ui_ContextMenu.MenuItem, { onClick: function () {
|
|
86
|
-
resendMessage();
|
|
87
|
-
}, dataSbId: "open_channel_mobile_context_menu_resend" },
|
|
88
|
-
React.createElement(React.Fragment, null, stringSet.CONTEXT_MENU_DROPDOWN__RESEND))),
|
|
89
|
-
(!isEphemeral && isFineDelete({ message: message, userId: userId, status: status })) && (React.createElement(ui_ContextMenu.MenuItem, { onClick: function () {
|
|
90
|
-
showRemove();
|
|
91
|
-
}, dataSbId: "open_channel_mobile_context_menu_delete" },
|
|
92
|
-
React.createElement(React.Fragment, null, stringSet.CONTEXT_MENU_DROPDOWN__DELETE))),
|
|
93
|
-
isFineDownload({ message: message, status: status }) && (React.createElement(ui_ContextMenu.MenuItem, { onClick: function () {
|
|
94
|
-
hideMenu();
|
|
95
|
-
}, dataSbId: "open_channel_mobile_context_menu_download_file" },
|
|
96
|
-
React.createElement("a", { className: "sendbird-openchannel__mobile-menu-hyperlink", rel: "noopener noreferrer", href: fileMessage === null || fileMessage === void 0 ? void 0 : fileMessage.url, target: "_blank" }, stringSet.CONTEXT_MENU_DROPDOWN__SAVE))))); } }));
|
|
68
|
+
var OpenChannelMobileMenu = function (props) {
|
|
69
|
+
var _a, _b;
|
|
70
|
+
var message = props.message, parentRef = props.parentRef, resendMessage = props.resendMessage, showEdit = props.showEdit, showRemove = props.showRemove, copyToClipboard = props.copyToClipboard, hideMenu = props.hideMenu, _c = props.isEphemeral, isEphemeral = _c === void 0 ? false : _c;
|
|
71
|
+
var userMessage = message;
|
|
72
|
+
var status = message === null || message === void 0 ? void 0 : message.sendingStatus;
|
|
73
|
+
var stringSet = LocalizationContext.useLocalization().stringSet;
|
|
74
|
+
var userId = (_b = (_a = useSendbirdStateContext.useSendbirdStateContext()) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.userId;
|
|
75
|
+
var fileMessage = message;
|
|
76
|
+
return (React.createElement(ui_ContextMenu.default, { isOpen: true, menuItems: function () { return (React.createElement(ui_ContextMenu.MenuItems, { className: "sendbird-openchannel__mobile-menu", parentRef: parentRef, parentContainRef: parentRef, closeDropdown: hideMenu },
|
|
77
|
+
isFineCopy({ message: userMessage, userId: userId, status: status }) && (React.createElement(ui_ContextMenu.MenuItem, { className: "sendbird-openchannel-og-message__top__context-menu__copy", onClick: function () {
|
|
78
|
+
copyToClipboard();
|
|
79
|
+
}, dataSbId: "open_channel_mobile_context_menu_copy" },
|
|
80
|
+
React.createElement(React.Fragment, null, stringSet.CONTEXT_MENU_DROPDOWN__COPY))),
|
|
81
|
+
(!isEphemeral && isFineEdit({ message: message, userId: userId, status: status })) && (React.createElement(ui_ContextMenu.MenuItem, { className: "sendbird-openchannel-og-message__top__context-menu__edit", onClick: function () {
|
|
82
|
+
showEdit();
|
|
83
|
+
}, dataSbId: "open_channel_mobile_context_menu_edit" },
|
|
84
|
+
React.createElement(React.Fragment, null, stringSet.CONTEXT_MENU_DROPDOWN__EDIT))),
|
|
85
|
+
isFineResend({ message: message, userId: userId, status: status }) && (React.createElement(ui_ContextMenu.MenuItem, { onClick: function () {
|
|
86
|
+
resendMessage();
|
|
87
|
+
}, dataSbId: "open_channel_mobile_context_menu_resend" },
|
|
88
|
+
React.createElement(React.Fragment, null, stringSet.CONTEXT_MENU_DROPDOWN__RESEND))),
|
|
89
|
+
(!isEphemeral && isFineDelete({ message: message, userId: userId, status: status })) && (React.createElement(ui_ContextMenu.MenuItem, { onClick: function () {
|
|
90
|
+
showRemove();
|
|
91
|
+
}, dataSbId: "open_channel_mobile_context_menu_delete" },
|
|
92
|
+
React.createElement(React.Fragment, null, stringSet.CONTEXT_MENU_DROPDOWN__DELETE))),
|
|
93
|
+
isFineDownload({ message: message, status: status }) && (React.createElement(ui_ContextMenu.MenuItem, { onClick: function () {
|
|
94
|
+
hideMenu();
|
|
95
|
+
}, dataSbId: "open_channel_mobile_context_menu_download_file" },
|
|
96
|
+
React.createElement("a", { className: "sendbird-openchannel__mobile-menu-hyperlink", rel: "noopener noreferrer", href: fileMessage === null || fileMessage === void 0 ? void 0 : fileMessage.url, target: "_blank" }, stringSet.CONTEXT_MENU_DROPDOWN__SAVE))))); } }));
|
|
97
97
|
};
|
|
98
98
|
|
|
99
99
|
exports.OpenChannelMobileMenu = OpenChannelMobileMenu;
|
|
@@ -106,4 +106,4 @@ exports.isFineDelete = isFineDelete;
|
|
|
106
106
|
exports.isFineEdit = isFineEdit;
|
|
107
107
|
exports.isFineResend = isFineResend;
|
|
108
108
|
exports.showMenuTrigger = showMenuTrigger;
|
|
109
|
-
//# sourceMappingURL=bundle-
|
|
109
|
+
//# sourceMappingURL=bundle-C3RFfU6_.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-C3RFfU6_.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var copyToClipboard = function (text) {
|
|
4
|
-
// @ts-ignore: Unreachable code error
|
|
5
|
-
if (window.clipboardData && window.clipboardData.setData) {
|
|
6
|
-
// Internet Explorer-specific code path to prevent textarea being shown while dialog is visible.
|
|
7
|
-
// @ts-ignore: Unreachable code error
|
|
8
|
-
return window.clipboardData.setData('Text', text);
|
|
9
|
-
}
|
|
10
|
-
if (document.queryCommandSupported && document.queryCommandSupported('copy')) {
|
|
11
|
-
var textarea = document.createElement('textarea');
|
|
12
|
-
textarea.textContent = text;
|
|
13
|
-
textarea.style.position = 'fixed'; // Prevent scrolling to bottom of page in Microsoft Edge.
|
|
14
|
-
document.body.appendChild(textarea);
|
|
15
|
-
textarea.select();
|
|
16
|
-
try {
|
|
17
|
-
return document.execCommand('copy'); // Security exception may be thrown by some browsers.
|
|
18
|
-
}
|
|
19
|
-
catch (ex) {
|
|
20
|
-
return false;
|
|
21
|
-
}
|
|
22
|
-
finally {
|
|
23
|
-
document.body.removeChild(textarea);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
return false;
|
|
3
|
+
var copyToClipboard = function (text) {
|
|
4
|
+
// @ts-ignore: Unreachable code error
|
|
5
|
+
if (window.clipboardData && window.clipboardData.setData) {
|
|
6
|
+
// Internet Explorer-specific code path to prevent textarea being shown while dialog is visible.
|
|
7
|
+
// @ts-ignore: Unreachable code error
|
|
8
|
+
return window.clipboardData.setData('Text', text);
|
|
9
|
+
}
|
|
10
|
+
if (document.queryCommandSupported && document.queryCommandSupported('copy')) {
|
|
11
|
+
var textarea = document.createElement('textarea');
|
|
12
|
+
textarea.textContent = text;
|
|
13
|
+
textarea.style.position = 'fixed'; // Prevent scrolling to bottom of page in Microsoft Edge.
|
|
14
|
+
document.body.appendChild(textarea);
|
|
15
|
+
textarea.select();
|
|
16
|
+
try {
|
|
17
|
+
return document.execCommand('copy'); // Security exception may be thrown by some browsers.
|
|
18
|
+
}
|
|
19
|
+
catch (ex) {
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
finally {
|
|
23
|
+
document.body.removeChild(textarea);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return false;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
exports.copyToClipboard = copyToClipboard;
|
|
30
|
-
//# sourceMappingURL=bundle-
|
|
30
|
+
//# sourceMappingURL=bundle-C51HeaX4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle-C51HeaX4.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,152 +1,151 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _tslib = require('./bundle-
|
|
3
|
+
var _tslib = require('./bundle-HGbi-rCv.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var reactDom = require('react-dom');
|
|
6
|
-
var LocalizationContext = require('./bundle-
|
|
7
|
-
require('
|
|
8
|
-
var index = require('./bundle-
|
|
9
|
-
var utils = require('./bundle-
|
|
10
|
-
var ui_Avatar = require('./bundle-
|
|
11
|
-
var ui_Label = require('./bundle-
|
|
6
|
+
var LocalizationContext = require('./bundle-oeWNUdCB.js');
|
|
7
|
+
var ui_Modal = require('./bundle-CZfcXYaX.js');
|
|
8
|
+
var index = require('./bundle-wl1uuzU7.js');
|
|
9
|
+
var utils = require('./bundle-BoLhr7Ko.js');
|
|
10
|
+
var ui_Avatar = require('./bundle-DxSB9NRz.js');
|
|
11
|
+
var ui_Label = require('./bundle-5_kPn4wU.js');
|
|
12
12
|
var ui_Icon = require('../ui/Icon.js');
|
|
13
|
-
var consts = require('./bundle-
|
|
14
|
-
var useKeyDown = require('./bundle-
|
|
15
|
-
var ui_Modal = require('./bundle-fG1bRzYE.js');
|
|
13
|
+
var consts = require('./bundle-DfcEln0Z.js');
|
|
14
|
+
var useKeyDown = require('./bundle-bqRlVm3u.js');
|
|
16
15
|
|
|
17
|
-
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Complete_list_of_MIME_types
|
|
18
|
-
var SUPPORTED_MIMES = {
|
|
19
|
-
IMAGE: [
|
|
20
|
-
'image/jpeg',
|
|
21
|
-
'image/jpg',
|
|
22
|
-
'image/png',
|
|
23
|
-
'image/gif',
|
|
24
|
-
'image/svg+xml',
|
|
25
|
-
'image/webp',
|
|
26
|
-
],
|
|
27
|
-
VIDEO: [
|
|
28
|
-
'video/mpeg',
|
|
29
|
-
'video/ogg',
|
|
30
|
-
'video/webm',
|
|
31
|
-
'video/mp4',
|
|
32
|
-
],
|
|
33
|
-
};
|
|
34
|
-
var isImage = function (type) { return SUPPORTED_MIMES.IMAGE.indexOf(type) >= 0; };
|
|
35
|
-
var isVideo = function (type) { return SUPPORTED_MIMES.VIDEO.indexOf(type) >= 0; };
|
|
36
|
-
_tslib.__assign({}, SUPPORTED_MIMES);
|
|
37
|
-
var ViewerTypes = {
|
|
38
|
-
SINGLE: 'SINGLE',
|
|
39
|
-
MULTI: 'MULTI',
|
|
16
|
+
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Complete_list_of_MIME_types
|
|
17
|
+
var SUPPORTED_MIMES = {
|
|
18
|
+
IMAGE: [
|
|
19
|
+
'image/jpeg',
|
|
20
|
+
'image/jpg',
|
|
21
|
+
'image/png',
|
|
22
|
+
'image/gif',
|
|
23
|
+
'image/svg+xml',
|
|
24
|
+
'image/webp',
|
|
25
|
+
],
|
|
26
|
+
VIDEO: [
|
|
27
|
+
'video/mpeg',
|
|
28
|
+
'video/ogg',
|
|
29
|
+
'video/webm',
|
|
30
|
+
'video/mp4',
|
|
31
|
+
],
|
|
32
|
+
};
|
|
33
|
+
var isImage = function (type) { return SUPPORTED_MIMES.IMAGE.indexOf(type) >= 0; };
|
|
34
|
+
var isVideo = function (type) { return SUPPORTED_MIMES.VIDEO.indexOf(type) >= 0; };
|
|
35
|
+
_tslib.__assign({}, SUPPORTED_MIMES);
|
|
36
|
+
var ViewerTypes = {
|
|
37
|
+
SINGLE: 'SINGLE',
|
|
38
|
+
MULTI: 'MULTI',
|
|
40
39
|
};
|
|
41
40
|
|
|
42
|
-
function mapFileViewerComponentProps(_a) {
|
|
43
|
-
var props = _a.props;
|
|
44
|
-
if (props.viewerType === ViewerTypes.MULTI) {
|
|
45
|
-
var _b = props, fileInfoList = _b.fileInfoList, currentIndex = _b.currentIndex;
|
|
46
|
-
return fileInfoList[currentIndex];
|
|
47
|
-
}
|
|
48
|
-
var fileInfo = props;
|
|
49
|
-
return {
|
|
50
|
-
name: fileInfo.name,
|
|
51
|
-
type: fileInfo.type,
|
|
52
|
-
url: fileInfo.url,
|
|
53
|
-
};
|
|
41
|
+
function mapFileViewerComponentProps(_a) {
|
|
42
|
+
var props = _a.props;
|
|
43
|
+
if (props.viewerType === ViewerTypes.MULTI) {
|
|
44
|
+
var _b = props, fileInfoList = _b.fileInfoList, currentIndex = _b.currentIndex;
|
|
45
|
+
return fileInfoList[currentIndex];
|
|
46
|
+
}
|
|
47
|
+
var fileInfo = props;
|
|
48
|
+
return {
|
|
49
|
+
name: fileInfo.name,
|
|
50
|
+
type: fileInfo.type,
|
|
51
|
+
url: fileInfo.url,
|
|
52
|
+
};
|
|
54
53
|
}
|
|
55
54
|
|
|
56
|
-
function DeleteButton(props) {
|
|
57
|
-
if (props.viewerType !== ViewerTypes.MULTI) {
|
|
58
|
-
var onDelete_1 = props.onDelete, isByMe = props.isByMe, disableDelete_1 = props.disableDelete, className = props.className;
|
|
59
|
-
return (isByMe)
|
|
60
|
-
? (React.createElement("div", { className: "sendbird-fileviewer__header__right__actions__delete ".concat(className) },
|
|
61
|
-
React.createElement(ui_Icon.default, { className: disableDelete_1 ? 'disabled' : '', type: ui_Icon.IconTypes.DELETE, fillColor: disableDelete_1 ? ui_Icon.IconColors.GRAY : ui_Icon.IconColors.ON_BACKGROUND_1, height: "24px", width: "24px", onClick: function (e) { if (!disableDelete_1) {
|
|
62
|
-
onDelete_1 === null || onDelete_1 === void 0 ? void 0 : onDelete_1(e);
|
|
63
|
-
} } })))
|
|
64
|
-
: React.createElement(React.Fragment, null);
|
|
65
|
-
}
|
|
66
|
-
return React.createElement(React.Fragment, null);
|
|
55
|
+
function DeleteButton(props) {
|
|
56
|
+
if (props.viewerType !== ViewerTypes.MULTI) {
|
|
57
|
+
var onDelete_1 = props.onDelete, isByMe = props.isByMe, disableDelete_1 = props.disableDelete, className = props.className;
|
|
58
|
+
return (isByMe)
|
|
59
|
+
? (React.createElement("div", { className: "sendbird-fileviewer__header__right__actions__delete ".concat(className) },
|
|
60
|
+
React.createElement(ui_Icon.default, { className: disableDelete_1 ? 'disabled' : '', type: ui_Icon.IconTypes.DELETE, fillColor: disableDelete_1 ? ui_Icon.IconColors.GRAY : ui_Icon.IconColors.ON_BACKGROUND_1, height: "24px", width: "24px", onClick: function (e) { if (!disableDelete_1) {
|
|
61
|
+
onDelete_1 === null || onDelete_1 === void 0 ? void 0 : onDelete_1(e);
|
|
62
|
+
} } })))
|
|
63
|
+
: React.createElement(React.Fragment, null);
|
|
64
|
+
}
|
|
65
|
+
return React.createElement(React.Fragment, null);
|
|
67
66
|
}
|
|
68
67
|
|
|
69
|
-
// this is a slider component that is used to navigate between images
|
|
70
|
-
function Slider(props) {
|
|
71
|
-
if (props.viewerType === ViewerTypes.MULTI) {
|
|
72
|
-
var onClickLeft_1 = props.onClickLeft, onClickRight_1 = props.onClickRight;
|
|
73
|
-
return (React.createElement("div", { className: "sendbird-file-viewer-slider" },
|
|
74
|
-
React.createElement("div", { className: "sendbird-file-viewer-arrow--left" },
|
|
75
|
-
React.createElement(ui_Icon.default, { type: ui_Icon.IconTypes.SLIDE_LEFT, fillColor: ui_Icon.IconColors.ON_BACKGROUND_1, height: consts.SLIDER_BUTTON_ICON_SIDE_LENGTH, width: consts.SLIDER_BUTTON_ICON_SIDE_LENGTH, onClick: function (e) {
|
|
76
|
-
onClickLeft_1 === null || onClickLeft_1 === void 0 ? void 0 : onClickLeft_1();
|
|
77
|
-
e.stopPropagation();
|
|
78
|
-
} })),
|
|
79
|
-
React.createElement("div", { className: "sendbird-file-viewer-arrow--right" },
|
|
80
|
-
React.createElement(ui_Icon.default, { type: ui_Icon.IconTypes.SLIDE_LEFT, fillColor: ui_Icon.IconColors.ON_BACKGROUND_1, height: consts.SLIDER_BUTTON_ICON_SIDE_LENGTH, width: consts.SLIDER_BUTTON_ICON_SIDE_LENGTH, onClick: function (e) {
|
|
81
|
-
e.stopPropagation();
|
|
82
|
-
onClickRight_1 === null || onClickRight_1 === void 0 ? void 0 : onClickRight_1();
|
|
83
|
-
} }))));
|
|
84
|
-
}
|
|
85
|
-
// return empty fragment if viewerType is not ViewerTypes.MULTI
|
|
86
|
-
return React.createElement(React.Fragment, null);
|
|
68
|
+
// this is a slider component that is used to navigate between images
|
|
69
|
+
function Slider(props) {
|
|
70
|
+
if (props.viewerType === ViewerTypes.MULTI) {
|
|
71
|
+
var onClickLeft_1 = props.onClickLeft, onClickRight_1 = props.onClickRight;
|
|
72
|
+
return (React.createElement("div", { className: "sendbird-file-viewer-slider" },
|
|
73
|
+
React.createElement("div", { className: "sendbird-file-viewer-arrow--left" },
|
|
74
|
+
React.createElement(ui_Icon.default, { type: ui_Icon.IconTypes.SLIDE_LEFT, fillColor: ui_Icon.IconColors.ON_BACKGROUND_1, height: consts.SLIDER_BUTTON_ICON_SIDE_LENGTH, width: consts.SLIDER_BUTTON_ICON_SIDE_LENGTH, onClick: function (e) {
|
|
75
|
+
onClickLeft_1 === null || onClickLeft_1 === void 0 ? void 0 : onClickLeft_1();
|
|
76
|
+
e.stopPropagation();
|
|
77
|
+
} })),
|
|
78
|
+
React.createElement("div", { className: "sendbird-file-viewer-arrow--right" },
|
|
79
|
+
React.createElement(ui_Icon.default, { type: ui_Icon.IconTypes.SLIDE_LEFT, fillColor: ui_Icon.IconColors.ON_BACKGROUND_1, height: consts.SLIDER_BUTTON_ICON_SIDE_LENGTH, width: consts.SLIDER_BUTTON_ICON_SIDE_LENGTH, onClick: function (e) {
|
|
80
|
+
e.stopPropagation();
|
|
81
|
+
onClickRight_1 === null || onClickRight_1 === void 0 ? void 0 : onClickRight_1();
|
|
82
|
+
} }))));
|
|
83
|
+
}
|
|
84
|
+
// return empty fragment if viewerType is not ViewerTypes.MULTI
|
|
85
|
+
return React.createElement(React.Fragment, null);
|
|
87
86
|
}
|
|
88
87
|
|
|
89
|
-
var FileViewerComponent = function (props) {
|
|
90
|
-
var profileUrl = props.profileUrl, nickname = props.nickname, onClose = props.onClose, onDownloadClick = props.onDownloadClick;
|
|
91
|
-
var _a = props, onClickLeft = _a.onClickLeft, onClickRight = _a.onClickRight;
|
|
92
|
-
var ref = React.useRef(null);
|
|
93
|
-
var onKeyDown = useKeyDown.useKeyDown(ref, {
|
|
94
|
-
Escape: function (e) { return onClose === null || onClose === void 0 ? void 0 : onClose(e); },
|
|
95
|
-
ArrowLeft: function () { return onClickLeft === null || onClickLeft === void 0 ? void 0 : onClickLeft(); },
|
|
96
|
-
ArrowRight: function () { return onClickRight === null || onClickRight === void 0 ? void 0 : onClickRight(); },
|
|
97
|
-
});
|
|
98
|
-
var _b = mapFileViewerComponentProps({ props: props }), name = _b.name, type = _b.type, url = _b.url;
|
|
99
|
-
var stringSet = React.useContext(LocalizationContext.LocalizationContext).stringSet;
|
|
100
|
-
return (React.createElement("div", { className: "sendbird-fileviewer", onKeyDown: onKeyDown,
|
|
101
|
-
// to focus
|
|
102
|
-
tabIndex: 1, ref: ref },
|
|
103
|
-
React.createElement("div", { className: "sendbird-fileviewer__header" },
|
|
104
|
-
React.createElement("div", { className: "sendbird-fileviewer__header__left" },
|
|
105
|
-
React.createElement("div", { className: "sendbird-fileviewer__header__left__avatar" },
|
|
106
|
-
React.createElement(ui_Avatar.Avatar, { height: "32px", width: "32px", src: profileUrl })),
|
|
107
|
-
React.createElement(ui_Label.Label, { className: "sendbird-fileviewer__header__left__filename", type: ui_Label.LabelTypography.H_2, color: ui_Label.LabelColors.ONBACKGROUND_1 }, name),
|
|
108
|
-
React.createElement(ui_Label.Label, { className: "sendbird-fileviewer__header__left__sender-name", type: ui_Label.LabelTypography.BODY_1, color: ui_Label.LabelColors.ONBACKGROUND_2 }, nickname)),
|
|
109
|
-
React.createElement("div", { className: "sendbird-fileviewer__header__right" },
|
|
110
|
-
index.isSupportedFileView(type) && (React.createElement("div", { className: "sendbird-fileviewer__header__right__actions" },
|
|
111
|
-
React.createElement("a", { className: "sendbird-fileviewer__header__right__actions__download", rel: "noopener noreferrer", href: url, target: "_blank", onClick: onDownloadClick },
|
|
112
|
-
React.createElement(ui_Icon.default, { type: ui_Icon.IconTypes.DOWNLOAD, fillColor: ui_Icon.IconColors.ON_BACKGROUND_1, height: "24px", width: "24px" })),
|
|
113
|
-
React.createElement(DeleteButton, _tslib.__assign({ className: 'sendbird-fileviewer__header__right__actions__delete' }, props)))),
|
|
114
|
-
React.createElement("div", { className: "sendbird-fileviewer__header__right__actions__close" },
|
|
115
|
-
React.createElement(ui_Icon.default, { type: ui_Icon.IconTypes.CLOSE, fillColor: ui_Icon.IconColors.ON_BACKGROUND_1, height: "24px", width: "24px", onClick: function (e) { return onClose === null || onClose === void 0 ? void 0 : onClose(e); } })))),
|
|
116
|
-
React.createElement("div", { className: "sendbird-fileviewer__content" },
|
|
117
|
-
index.isVideo(type) && (React.createElement("video", { controls: true, className: "sendbird-fileviewer__content__video" },
|
|
118
|
-
React.createElement("source", { src: url, type: type }))),
|
|
119
|
-
index.isImage(type) && (React.createElement("img", { src: url, alt: name, className: props.viewerType === ViewerTypes.MULTI
|
|
120
|
-
? 'sendbird-fileviewer__content__img__multi'
|
|
121
|
-
: 'sendbird-fileviewer__content__img' })),
|
|
122
|
-
!index.isSupportedFileView(type) && (React.createElement("div", { className: "sendbird-fileviewer__content__unsupported" },
|
|
123
|
-
React.createElement(ui_Label.Label, { type: ui_Label.LabelTypography.H_1, color: ui_Label.LabelColors.ONBACKGROUND_1 }, (stringSet === null || stringSet === void 0 ? void 0 : stringSet.UI__FILE_VIEWER__UNSUPPORT) || 'Unsupported message'))),
|
|
124
|
-
React.createElement(Slider, _tslib.__assign({}, props)))));
|
|
125
|
-
};
|
|
126
|
-
function FileViewer(_a) {
|
|
127
|
-
var _b, _c, _d;
|
|
128
|
-
var message = _a.message, _e = _a.statefulFileInfoList, statefulFileInfoList = _e === void 0 ? [] : _e, onClose = _a.onClose, _f = _a.isByMe, isByMe = _f === void 0 ? false : _f, onDelete = _a.onDelete, currentIndex = _a.currentIndex, onClickLeft = _a.onClickLeft, onClickRight = _a.onClickRight, onDownloadClick = _a.onDownloadClick;
|
|
129
|
-
if (index.isMultipleFilesMessage(message)) {
|
|
130
|
-
var castedMessage = message;
|
|
131
|
-
return (React.createElement(FileViewerComponent, { profileUrl: castedMessage.sender.profileUrl, nickname: castedMessage.sender.nickname, viewerType: ViewerTypes.MULTI, fileInfoList: statefulFileInfoList.filter(function (fileInfo) {
|
|
132
|
-
return fileInfo.url; // Caution: This assumes that defined url means file upload has completed.
|
|
133
|
-
}).map(function (fileInfo) {
|
|
134
|
-
return {
|
|
135
|
-
name: fileInfo.fileName || '',
|
|
136
|
-
type: fileInfo.mimeType || '',
|
|
137
|
-
url: fileInfo.url,
|
|
138
|
-
};
|
|
139
|
-
}), currentIndex: currentIndex || 0, onClickLeft: onClickLeft || utils.noop, onClickRight: onClickRight || utils.noop, onClose: onClose, onDownloadClick: onDownloadClick }));
|
|
140
|
-
}
|
|
141
|
-
else if (index.isFileMessage(message)) {
|
|
142
|
-
var castedMessage = message;
|
|
143
|
-
return reactDom.createPortal((React.createElement(FileViewerComponent, { profileUrl: (_b = castedMessage.sender) === null || _b === void 0 ? void 0 : _b.profileUrl, nickname: (_c = castedMessage.sender) === null || _c === void 0 ? void 0 : _c.nickname, name: castedMessage.name, type: castedMessage.type, url: castedMessage === null || castedMessage === void 0 ? void 0 : castedMessage.url, isByMe: isByMe, disableDelete: (((_d = castedMessage.threadInfo) === null || _d === void 0 ? void 0 : _d.replyCount) || 0) > 0, onClose: onClose, onDelete: onDelete || utils.noop, onDownloadClick: onDownloadClick })), document.getElementById(ui_Modal.MODAL_ROOT));
|
|
144
|
-
}
|
|
145
|
-
return React.createElement(React.Fragment, null);
|
|
88
|
+
var FileViewerComponent = function (props) {
|
|
89
|
+
var profileUrl = props.profileUrl, nickname = props.nickname, onClose = props.onClose, onDownloadClick = props.onDownloadClick;
|
|
90
|
+
var _a = props, onClickLeft = _a.onClickLeft, onClickRight = _a.onClickRight;
|
|
91
|
+
var ref = React.useRef(null);
|
|
92
|
+
var onKeyDown = useKeyDown.useKeyDown(ref, {
|
|
93
|
+
Escape: function (e) { return onClose === null || onClose === void 0 ? void 0 : onClose(e); },
|
|
94
|
+
ArrowLeft: function () { return onClickLeft === null || onClickLeft === void 0 ? void 0 : onClickLeft(); },
|
|
95
|
+
ArrowRight: function () { return onClickRight === null || onClickRight === void 0 ? void 0 : onClickRight(); },
|
|
96
|
+
});
|
|
97
|
+
var _b = mapFileViewerComponentProps({ props: props }), name = _b.name, type = _b.type, url = _b.url;
|
|
98
|
+
var stringSet = React.useContext(LocalizationContext.LocalizationContext).stringSet;
|
|
99
|
+
return (React.createElement("div", { className: "sendbird-fileviewer", onKeyDown: onKeyDown,
|
|
100
|
+
// to focus
|
|
101
|
+
tabIndex: 1, ref: ref },
|
|
102
|
+
React.createElement("div", { className: "sendbird-fileviewer__header" },
|
|
103
|
+
React.createElement("div", { className: "sendbird-fileviewer__header__left" },
|
|
104
|
+
React.createElement("div", { className: "sendbird-fileviewer__header__left__avatar" },
|
|
105
|
+
React.createElement(ui_Avatar.Avatar, { height: "32px", width: "32px", src: profileUrl })),
|
|
106
|
+
React.createElement(ui_Label.Label, { className: "sendbird-fileviewer__header__left__filename", type: ui_Label.LabelTypography.H_2, color: ui_Label.LabelColors.ONBACKGROUND_1 }, name),
|
|
107
|
+
React.createElement(ui_Label.Label, { className: "sendbird-fileviewer__header__left__sender-name", type: ui_Label.LabelTypography.BODY_1, color: ui_Label.LabelColors.ONBACKGROUND_2 }, nickname)),
|
|
108
|
+
React.createElement("div", { className: "sendbird-fileviewer__header__right" },
|
|
109
|
+
index.isSupportedFileView(type) && (React.createElement("div", { className: "sendbird-fileviewer__header__right__actions" },
|
|
110
|
+
React.createElement("a", { className: "sendbird-fileviewer__header__right__actions__download", rel: "noopener noreferrer", href: url, target: "_blank", onClick: onDownloadClick },
|
|
111
|
+
React.createElement(ui_Icon.default, { type: ui_Icon.IconTypes.DOWNLOAD, fillColor: ui_Icon.IconColors.ON_BACKGROUND_1, height: "24px", width: "24px" })),
|
|
112
|
+
React.createElement(DeleteButton, _tslib.__assign({ className: 'sendbird-fileviewer__header__right__actions__delete' }, props)))),
|
|
113
|
+
React.createElement("div", { className: "sendbird-fileviewer__header__right__actions__close" },
|
|
114
|
+
React.createElement(ui_Icon.default, { type: ui_Icon.IconTypes.CLOSE, fillColor: ui_Icon.IconColors.ON_BACKGROUND_1, height: "24px", width: "24px", onClick: function (e) { return onClose === null || onClose === void 0 ? void 0 : onClose(e); } })))),
|
|
115
|
+
React.createElement("div", { className: "sendbird-fileviewer__content" },
|
|
116
|
+
index.isVideo(type) && (React.createElement("video", { controls: true, className: "sendbird-fileviewer__content__video" },
|
|
117
|
+
React.createElement("source", { src: url, type: type }))),
|
|
118
|
+
index.isImage(type) && (React.createElement("img", { src: url, alt: name, className: props.viewerType === ViewerTypes.MULTI
|
|
119
|
+
? 'sendbird-fileviewer__content__img__multi'
|
|
120
|
+
: 'sendbird-fileviewer__content__img' })),
|
|
121
|
+
!index.isSupportedFileView(type) && (React.createElement("div", { className: "sendbird-fileviewer__content__unsupported" },
|
|
122
|
+
React.createElement(ui_Label.Label, { type: ui_Label.LabelTypography.H_1, color: ui_Label.LabelColors.ONBACKGROUND_1 }, (stringSet === null || stringSet === void 0 ? void 0 : stringSet.UI__FILE_VIEWER__UNSUPPORT) || 'Unsupported message'))),
|
|
123
|
+
React.createElement(Slider, _tslib.__assign({}, props)))));
|
|
124
|
+
};
|
|
125
|
+
function FileViewer(_a) {
|
|
126
|
+
var _b, _c, _d;
|
|
127
|
+
var message = _a.message, _e = _a.statefulFileInfoList, statefulFileInfoList = _e === void 0 ? [] : _e, onClose = _a.onClose, _f = _a.isByMe, isByMe = _f === void 0 ? false : _f, onDelete = _a.onDelete, currentIndex = _a.currentIndex, onClickLeft = _a.onClickLeft, onClickRight = _a.onClickRight, onDownloadClick = _a.onDownloadClick;
|
|
128
|
+
if (index.isMultipleFilesMessage(message)) {
|
|
129
|
+
var castedMessage = message;
|
|
130
|
+
return (React.createElement(FileViewerComponent, { profileUrl: castedMessage.sender.profileUrl, nickname: castedMessage.sender.nickname, viewerType: ViewerTypes.MULTI, fileInfoList: statefulFileInfoList.filter(function (fileInfo) {
|
|
131
|
+
return fileInfo.url; // Caution: This assumes that defined url means file upload has completed.
|
|
132
|
+
}).map(function (fileInfo) {
|
|
133
|
+
return {
|
|
134
|
+
name: fileInfo.fileName || '',
|
|
135
|
+
type: fileInfo.mimeType || '',
|
|
136
|
+
url: fileInfo.url,
|
|
137
|
+
};
|
|
138
|
+
}), currentIndex: currentIndex || 0, onClickLeft: onClickLeft || utils.noop, onClickRight: onClickRight || utils.noop, onClose: onClose, onDownloadClick: onDownloadClick }));
|
|
139
|
+
}
|
|
140
|
+
else if (index.isFileMessage(message)) {
|
|
141
|
+
var castedMessage = message;
|
|
142
|
+
return reactDom.createPortal((React.createElement(FileViewerComponent, { profileUrl: (_b = castedMessage.sender) === null || _b === void 0 ? void 0 : _b.profileUrl, nickname: (_c = castedMessage.sender) === null || _c === void 0 ? void 0 : _c.nickname, name: castedMessage.name, type: castedMessage.type, url: castedMessage === null || castedMessage === void 0 ? void 0 : castedMessage.url, isByMe: isByMe, disableDelete: (((_d = castedMessage.threadInfo) === null || _d === void 0 ? void 0 : _d.replyCount) || 0) > 0, onClose: onClose, onDelete: onDelete || utils.noop, onDownloadClick: onDownloadClick })), document.getElementById(ui_Modal.MODAL_ROOT));
|
|
143
|
+
}
|
|
144
|
+
return React.createElement(React.Fragment, null);
|
|
146
145
|
}
|
|
147
146
|
|
|
148
147
|
exports.FileViewer = FileViewer;
|
|
149
148
|
exports.FileViewerComponent = FileViewerComponent;
|
|
150
149
|
exports.isImage = isImage;
|
|
151
150
|
exports.isVideo = isVideo;
|
|
152
|
-
//# sourceMappingURL=bundle-
|
|
151
|
+
//# sourceMappingURL=bundle-C6a-umLQ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-
|
|
1
|
+
{"version":3,"file":"bundle-C6a-umLQ.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|