@sendbird/uikit-react-native 3.1.2 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +67 -42
- package/lib/commonjs/components/ChannelInput/EditInput.js +2 -11
- package/lib/commonjs/components/ChannelInput/EditInput.js.map +1 -1
- package/lib/commonjs/components/ChannelInput/MessageToReplyPreview.js +145 -0
- package/lib/commonjs/components/ChannelInput/MessageToReplyPreview.js.map +1 -0
- package/lib/commonjs/components/ChannelInput/SendInput.js +149 -323
- package/lib/commonjs/components/ChannelInput/SendInput.js.map +1 -1
- package/lib/commonjs/components/ChannelInput/VoiceMessageInput.js +238 -0
- package/lib/commonjs/components/ChannelInput/VoiceMessageInput.js.map +1 -0
- package/lib/commonjs/components/ChannelInput/index.js +34 -3
- package/lib/commonjs/components/ChannelInput/index.js.map +1 -1
- package/lib/commonjs/components/ChannelMessageList/index.js +148 -116
- package/lib/commonjs/components/ChannelMessageList/index.js.map +1 -1
- package/lib/commonjs/components/GroupChannelMessageRenderer/GroupChannelMessageParentMessage.js +24 -13
- package/lib/commonjs/components/GroupChannelMessageRenderer/GroupChannelMessageParentMessage.js.map +1 -1
- package/lib/commonjs/components/GroupChannelMessageRenderer/index.js +134 -6
- package/lib/commonjs/components/GroupChannelMessageRenderer/index.js.map +1 -1
- package/lib/commonjs/components/MessageSearchResultItem.js +1 -0
- package/lib/commonjs/components/MessageSearchResultItem.js.map +1 -1
- package/lib/commonjs/components/OpenChannelMessageRenderer/index.js +1 -0
- package/lib/commonjs/components/OpenChannelMessageRenderer/index.js.map +1 -1
- package/lib/commonjs/components/ReactionBottomSheets/ReactionUserListBottomSheet.js +2 -2
- package/lib/commonjs/components/ReactionBottomSheets/ReactionUserListBottomSheet.js.map +1 -1
- package/lib/commonjs/components/ReactionBottomSheets/index.js.map +1 -1
- package/lib/commonjs/components/StatusComposition.js.map +1 -1
- package/lib/commonjs/constants.js +5 -1
- package/lib/commonjs/constants.js.map +1 -1
- package/lib/commonjs/containers/GroupChannelPreviewContainer.js +1 -0
- package/lib/commonjs/containers/GroupChannelPreviewContainer.js.map +1 -1
- package/lib/commonjs/containers/InternalErrorBoundaryContainer.js.map +1 -1
- package/lib/commonjs/containers/SendbirdUIKitContainer.js +72 -34
- package/lib/commonjs/containers/SendbirdUIKitContainer.js.map +1 -1
- package/lib/commonjs/contexts/PlatformServiceCtx.js +16 -12
- package/lib/commonjs/contexts/PlatformServiceCtx.js.map +1 -1
- package/lib/commonjs/contexts/ReactionCtx.js +3 -2
- package/lib/commonjs/contexts/ReactionCtx.js.map +1 -1
- package/lib/commonjs/contexts/SendbirdChatCtx.js +2 -0
- package/lib/commonjs/contexts/SendbirdChatCtx.js.map +1 -1
- package/lib/commonjs/domain/groupChannel/component/GroupChannelHeader.js +14 -4
- package/lib/commonjs/domain/groupChannel/component/GroupChannelHeader.js.map +1 -1
- package/lib/commonjs/domain/groupChannel/component/GroupChannelMessageList.js +28 -42
- package/lib/commonjs/domain/groupChannel/component/GroupChannelMessageList.js.map +1 -1
- package/lib/commonjs/domain/groupChannel/module/moduleContext.js +109 -5
- package/lib/commonjs/domain/groupChannel/module/moduleContext.js.map +1 -1
- package/lib/commonjs/domain/groupChannel/types.js.map +1 -1
- package/lib/commonjs/domain/userList/types.js.map +1 -1
- package/lib/commonjs/fragments/createGroupChannelFragment.js +34 -7
- package/lib/commonjs/fragments/createGroupChannelFragment.js.map +1 -1
- package/lib/commonjs/fragments/createMessageSearchFragment.js +1 -1
- package/lib/commonjs/fragments/createMessageSearchFragment.js.map +1 -1
- package/lib/commonjs/hooks/useChannelInputItems.js +211 -0
- package/lib/commonjs/hooks/useChannelInputItems.js.map +1 -0
- package/lib/commonjs/hooks/useConnection.js +1 -1
- package/lib/commonjs/hooks/useConnection.js.map +1 -1
- package/lib/commonjs/hooks/useVoiceMessageInput.js +207 -0
- package/lib/commonjs/hooks/useVoiceMessageInput.js.map +1 -0
- package/lib/commonjs/index.js +36 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/libs/MentionManager.js.map +1 -1
- package/lib/commonjs/libs/SBUUtils.js +4 -0
- package/lib/commonjs/libs/SBUUtils.js.map +1 -1
- package/lib/commonjs/libs/VoiceMessageConfig.js +30 -0
- package/lib/commonjs/libs/VoiceMessageConfig.js.map +1 -0
- package/lib/commonjs/localization/StringSet.type.js.map +1 -1
- package/lib/commonjs/localization/createBaseStringSet.js +24 -9
- package/lib/commonjs/localization/createBaseStringSet.js.map +1 -1
- package/lib/commonjs/platform/createFileService.expo.js +10 -0
- package/lib/commonjs/platform/createFileService.expo.js.map +1 -1
- package/lib/commonjs/platform/createFileService.native.js +19 -0
- package/lib/commonjs/platform/createFileService.native.js.map +1 -1
- package/lib/commonjs/platform/createPlayerService.expo.js +137 -0
- package/lib/commonjs/platform/createPlayerService.expo.js.map +1 -0
- package/lib/commonjs/platform/createPlayerService.native.js +139 -0
- package/lib/commonjs/platform/createPlayerService.native.js.map +1 -0
- package/lib/commonjs/platform/createRecorderService.expo.js +158 -0
- package/lib/commonjs/platform/createRecorderService.expo.js.map +1 -0
- package/lib/commonjs/platform/createRecorderService.native.js +157 -0
- package/lib/commonjs/platform/createRecorderService.native.js.map +1 -0
- package/lib/commonjs/platform/types.js.map +1 -1
- package/lib/commonjs/types.js +7 -0
- package/lib/commonjs/types.js.map +1 -1
- package/lib/commonjs/utils/promise.js +138 -0
- package/lib/commonjs/utils/promise.js.map +1 -0
- package/lib/commonjs/version.js +1 -1
- package/lib/commonjs/version.js.map +1 -1
- package/lib/module/components/ChannelInput/EditInput.js +3 -12
- package/lib/module/components/ChannelInput/EditInput.js.map +1 -1
- package/lib/module/components/ChannelInput/MessageToReplyPreview.js +137 -0
- package/lib/module/components/ChannelInput/MessageToReplyPreview.js.map +1 -0
- package/lib/module/components/ChannelInput/SendInput.js +152 -326
- package/lib/module/components/ChannelInput/SendInput.js.map +1 -1
- package/lib/module/components/ChannelInput/VoiceMessageInput.js +228 -0
- package/lib/module/components/ChannelInput/VoiceMessageInput.js.map +1 -0
- package/lib/module/components/ChannelInput/index.js +36 -5
- package/lib/module/components/ChannelInput/index.js.map +1 -1
- package/lib/module/components/ChannelMessageList/index.js +149 -117
- package/lib/module/components/ChannelMessageList/index.js.map +1 -1
- package/lib/module/components/GroupChannelMessageRenderer/GroupChannelMessageParentMessage.js +24 -13
- package/lib/module/components/GroupChannelMessageRenderer/GroupChannelMessageParentMessage.js.map +1 -1
- package/lib/module/components/GroupChannelMessageRenderer/index.js +132 -7
- package/lib/module/components/GroupChannelMessageRenderer/index.js.map +1 -1
- package/lib/module/components/MessageSearchResultItem.js +2 -1
- package/lib/module/components/MessageSearchResultItem.js.map +1 -1
- package/lib/module/components/OpenChannelMessageRenderer/index.js +1 -0
- package/lib/module/components/OpenChannelMessageRenderer/index.js.map +1 -1
- package/lib/module/components/ReactionBottomSheets/ReactionUserListBottomSheet.js +2 -2
- package/lib/module/components/ReactionBottomSheets/ReactionUserListBottomSheet.js.map +1 -1
- package/lib/module/components/ReactionBottomSheets/index.js.map +1 -1
- package/lib/module/components/StatusComposition.js.map +1 -1
- package/lib/module/constants.js +2 -0
- package/lib/module/constants.js.map +1 -1
- package/lib/module/containers/GroupChannelPreviewContainer.js +2 -1
- package/lib/module/containers/GroupChannelPreviewContainer.js.map +1 -1
- package/lib/module/containers/InternalErrorBoundaryContainer.js.map +1 -1
- package/lib/module/containers/SendbirdUIKitContainer.js +74 -36
- package/lib/module/containers/SendbirdUIKitContainer.js.map +1 -1
- package/lib/module/contexts/PlatformServiceCtx.js +14 -11
- package/lib/module/contexts/PlatformServiceCtx.js.map +1 -1
- package/lib/module/contexts/ReactionCtx.js +3 -2
- package/lib/module/contexts/ReactionCtx.js.map +1 -1
- package/lib/module/contexts/SendbirdChatCtx.js +2 -0
- package/lib/module/contexts/SendbirdChatCtx.js.map +1 -1
- package/lib/module/domain/groupChannel/component/GroupChannelHeader.js +15 -5
- package/lib/module/domain/groupChannel/component/GroupChannelHeader.js.map +1 -1
- package/lib/module/domain/groupChannel/component/GroupChannelMessageList.js +29 -43
- package/lib/module/domain/groupChannel/component/GroupChannelMessageList.js.map +1 -1
- package/lib/module/domain/groupChannel/module/moduleContext.js +111 -7
- package/lib/module/domain/groupChannel/module/moduleContext.js.map +1 -1
- package/lib/module/domain/groupChannel/types.js.map +1 -1
- package/lib/module/domain/userList/types.js.map +1 -1
- package/lib/module/fragments/createGroupChannelFragment.js +36 -9
- package/lib/module/fragments/createGroupChannelFragment.js.map +1 -1
- package/lib/module/fragments/createMessageSearchFragment.js +1 -1
- package/lib/module/fragments/createMessageSearchFragment.js.map +1 -1
- package/lib/module/hooks/useChannelInputItems.js +203 -0
- package/lib/module/hooks/useChannelInputItems.js.map +1 -0
- package/lib/module/hooks/useConnection.js +1 -1
- package/lib/module/hooks/useConnection.js.map +1 -1
- package/lib/module/hooks/useVoiceMessageInput.js +199 -0
- package/lib/module/hooks/useVoiceMessageInput.js.map +1 -0
- package/lib/module/index.js +8 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/libs/MentionManager.js.map +1 -1
- package/lib/module/libs/SBUUtils.js +4 -0
- package/lib/module/libs/SBUUtils.js.map +1 -1
- package/lib/module/libs/VoiceMessageConfig.js +23 -0
- package/lib/module/libs/VoiceMessageConfig.js.map +1 -0
- package/lib/module/localization/StringSet.type.js.map +1 -1
- package/lib/module/localization/createBaseStringSet.js +25 -10
- package/lib/module/localization/createBaseStringSet.js.map +1 -1
- package/lib/module/platform/createFileService.expo.js +10 -0
- package/lib/module/platform/createFileService.expo.js.map +1 -1
- package/lib/module/platform/createFileService.native.js +19 -0
- package/lib/module/platform/createFileService.native.js.map +1 -1
- package/lib/module/platform/createPlayerService.expo.js +129 -0
- package/lib/module/platform/createPlayerService.expo.js.map +1 -0
- package/lib/module/platform/createPlayerService.native.js +132 -0
- package/lib/module/platform/createPlayerService.native.js.map +1 -0
- package/lib/module/platform/createRecorderService.expo.js +150 -0
- package/lib/module/platform/createRecorderService.expo.js.map +1 -0
- package/lib/module/platform/createRecorderService.native.js +149 -0
- package/lib/module/platform/createRecorderService.native.js.map +1 -0
- package/lib/module/platform/types.js.map +1 -1
- package/lib/module/types.js +5 -1
- package/lib/module/types.js.map +1 -1
- package/lib/module/utils/promise.js +132 -0
- package/lib/module/utils/promise.js.map +1 -0
- package/lib/module/version.js +1 -1
- package/lib/module/version.js.map +1 -1
- package/lib/typescript/src/components/ChannelCover.d.ts +2 -1
- package/lib/typescript/src/components/ChannelInput/AttachmentsButton.d.ts +2 -1
- package/lib/typescript/src/components/ChannelInput/MessageToReplyPreview.d.ts +7 -0
- package/lib/typescript/src/components/ChannelInput/VoiceMessageInput.d.ts +11 -0
- package/lib/typescript/src/components/ChannelInput/index.d.ts +9 -3
- package/lib/typescript/src/components/ChannelMessageList/index.d.ts +4 -1
- package/lib/typescript/src/components/FileViewer.d.ts +2 -1
- package/lib/typescript/src/components/GroupChannelMessageRenderer/GroupChannelMessageDateSeparator.d.ts +2 -1
- package/lib/typescript/src/components/GroupChannelMessageRenderer/GroupChannelMessageFocusAnimation.d.ts +1 -1
- package/lib/typescript/src/components/GroupChannelMessageRenderer/GroupChannelMessageOutgoingStatus.d.ts +1 -1
- package/lib/typescript/src/components/GroupChannelMessageRenderer/GroupChannelMessageParentMessage.d.ts +4 -2
- package/lib/typescript/src/components/GroupChannelMessageRenderer/index.d.ts +3 -0
- package/lib/typescript/src/components/NewMessagesButton.d.ts +1 -1
- package/lib/typescript/src/components/OpenChannelMessageRenderer/OpenChannelMessageDateSeparator.d.ts +2 -1
- package/lib/typescript/src/components/OpenChannelMessageRenderer/index.d.ts +2 -0
- package/lib/typescript/src/components/ProviderLayout.d.ts +1 -1
- package/lib/typescript/src/components/ReactionAddons/BottomSheetReactionAddon.d.ts +2 -1
- package/lib/typescript/src/components/ReactionAddons/MessageReactionAddon.d.ts +2 -1
- package/lib/typescript/src/components/ReactionAddons/ReactionRoundedButton.d.ts +3 -2
- package/lib/typescript/src/components/ReactionAddons/index.d.ts +3 -2
- package/lib/typescript/src/components/ReactionBottomSheets/ReactionListBottomSheet.d.ts +2 -1
- package/lib/typescript/src/components/ReactionBottomSheets/ReactionUserListBottomSheet.d.ts +2 -1
- package/lib/typescript/src/components/ReactionBottomSheets/index.d.ts +4 -4
- package/lib/typescript/src/components/ScrollToBottomButton.d.ts +1 -1
- package/lib/typescript/src/components/StatusComposition.d.ts +4 -4
- package/lib/typescript/src/components/TypedPlaceholder.d.ts +2 -1
- package/lib/typescript/src/components/UserActionBar.d.ts +2 -1
- package/lib/typescript/src/components/UserSelectableBar.d.ts +2 -1
- package/lib/typescript/src/constants.d.ts +2 -0
- package/lib/typescript/src/containers/GroupChannelPreviewContainer.d.ts +2 -1
- package/lib/typescript/src/containers/InternalErrorBoundaryContainer.d.ts +3 -3
- package/lib/typescript/src/containers/SendbirdUIKitContainer.d.ts +19 -8
- package/lib/typescript/src/contexts/LocalizationCtx.d.ts +1 -1
- package/lib/typescript/src/contexts/PlatformServiceCtx.d.ts +8 -8
- package/lib/typescript/src/contexts/ReactionCtx.d.ts +5 -2
- package/lib/typescript/src/contexts/SendbirdChatCtx.d.ts +6 -3
- package/lib/typescript/src/contexts/UserProfileCtx.d.ts +1 -1
- package/lib/typescript/src/domain/groupChannel/component/GroupChannelHeader.d.ts +2 -1
- package/lib/typescript/src/domain/groupChannel/component/GroupChannelInput.d.ts +1 -1
- package/lib/typescript/src/domain/groupChannel/component/GroupChannelMessageList.d.ts +1 -1
- package/lib/typescript/src/domain/groupChannel/component/GroupChannelStatusEmpty.d.ts +2 -1
- package/lib/typescript/src/domain/groupChannel/component/GroupChannelStatusLoading.d.ts +2 -1
- package/lib/typescript/src/domain/groupChannel/component/GroupChannelSuggestedMentionList.d.ts +2 -1
- package/lib/typescript/src/domain/groupChannel/types.d.ts +48 -0
- package/lib/typescript/src/domain/groupChannelBannedUsers/component/GroupChannelBannedUsersHeader.d.ts +2 -1
- package/lib/typescript/src/domain/groupChannelBannedUsers/component/GroupChannelBannedUsersList.d.ts +2 -1
- package/lib/typescript/src/domain/groupChannelBannedUsers/component/GroupChannelBannedUsersStatusEmpty.d.ts +2 -1
- package/lib/typescript/src/domain/groupChannelBannedUsers/component/GroupChannelBannedUsersStatusLoading.d.ts +2 -1
- package/lib/typescript/src/domain/groupChannelList/component/GroupChannelListHeader.d.ts +2 -1
- package/lib/typescript/src/domain/groupChannelList/component/GroupChannelListList.d.ts +2 -1
- package/lib/typescript/src/domain/groupChannelList/component/GroupChannelListStatusEmpty.d.ts +2 -1
- package/lib/typescript/src/domain/groupChannelList/component/GroupChannelListStatusLoading.d.ts +2 -1
- package/lib/typescript/src/domain/groupChannelList/component/GroupChannelListTypeSelector.d.ts +2 -1
- package/lib/typescript/src/domain/groupChannelModeration/component/GroupChannelModerationHeader.d.ts +2 -1
- package/lib/typescript/src/domain/groupChannelModeration/component/GroupChannelModerationMenu.d.ts +2 -1
- package/lib/typescript/src/domain/groupChannelMutedMembers/component/GroupChannelMutedMembersHeader.d.ts +2 -1
- package/lib/typescript/src/domain/groupChannelMutedMembers/component/GroupChannelMutedMembersList.d.ts +2 -1
- package/lib/typescript/src/domain/groupChannelMutedMembers/component/GroupChannelMutedMembersStatusEmpty.d.ts +2 -1
- package/lib/typescript/src/domain/groupChannelMutedMembers/component/GroupChannelMutedMembersStatusLoading.d.ts +2 -1
- package/lib/typescript/src/domain/groupChannelNotifications/component/GroupChannelNotificationsHeader.d.ts +2 -1
- package/lib/typescript/src/domain/groupChannelNotifications/component/GroupChannelNotificationsView.d.ts +2 -1
- package/lib/typescript/src/domain/groupChannelOperators/component/GroupChannelOperatorsHeader.d.ts +2 -1
- package/lib/typescript/src/domain/groupChannelOperators/component/GroupChannelOperatorsList.d.ts +2 -1
- package/lib/typescript/src/domain/groupChannelOperators/component/GroupChannelOperatorsStatusEmpty.d.ts +2 -1
- package/lib/typescript/src/domain/groupChannelOperators/component/GroupChannelOperatorsStatusLoading.d.ts +2 -1
- package/lib/typescript/src/domain/groupChannelSettings/component/GroupChannelSettingsHeader.d.ts +2 -1
- package/lib/typescript/src/domain/groupChannelSettings/component/GroupChannelSettingsInfo.d.ts +2 -1
- package/lib/typescript/src/domain/groupChannelSettings/component/GroupChannelSettingsMenu.d.ts +2 -1
- package/lib/typescript/src/domain/messageSearch/component/MessageSearchHeader.d.ts +2 -1
- package/lib/typescript/src/domain/messageSearch/component/MessageSearchList.d.ts +2 -1
- package/lib/typescript/src/domain/messageSearch/component/MessageSearchStatusEmpty.d.ts +2 -1
- package/lib/typescript/src/domain/messageSearch/component/MessageSearchStatusLoading.d.ts +2 -1
- package/lib/typescript/src/domain/openChannel/component/OpenChannelHeader.d.ts +2 -2
- package/lib/typescript/src/domain/openChannel/component/OpenChannelInput.d.ts +1 -1
- package/lib/typescript/src/domain/openChannel/component/OpenChannelMessageList.d.ts +1 -1
- package/lib/typescript/src/domain/openChannel/component/OpenChannelStatusEmpty.d.ts +2 -1
- package/lib/typescript/src/domain/openChannel/component/OpenChannelStatusLoading.d.ts +2 -1
- package/lib/typescript/src/domain/openChannelBannedUsers/component/OpenChannelBannedUsersHeader.d.ts +2 -1
- package/lib/typescript/src/domain/openChannelBannedUsers/component/OpenChannelBannedUsersList.d.ts +2 -1
- package/lib/typescript/src/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusEmpty.d.ts +2 -1
- package/lib/typescript/src/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusLoading.d.ts +2 -1
- package/lib/typescript/src/domain/openChannelCreate/component/OpenChannelCreateHeader.d.ts +2 -1
- package/lib/typescript/src/domain/openChannelCreate/component/OpenChannelCreateProfileInput.d.ts +2 -1
- package/lib/typescript/src/domain/openChannelCreate/component/OpenChannelCreateStatusLoading.d.ts +2 -1
- package/lib/typescript/src/domain/openChannelList/component/OpenChannelListHeader.d.ts +2 -1
- package/lib/typescript/src/domain/openChannelList/component/OpenChannelListList.d.ts +2 -1
- package/lib/typescript/src/domain/openChannelList/component/OpenChannelListStatusEmpty.d.ts +2 -1
- package/lib/typescript/src/domain/openChannelList/component/OpenChannelListStatusLoading.d.ts +2 -1
- package/lib/typescript/src/domain/openChannelModeration/component/OpenChannelModerationHeader.d.ts +2 -1
- package/lib/typescript/src/domain/openChannelModeration/component/OpenChannelModerationMenu.d.ts +2 -1
- package/lib/typescript/src/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsHeader.d.ts +2 -1
- package/lib/typescript/src/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsList.d.ts +2 -1
- package/lib/typescript/src/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusEmpty.d.ts +2 -1
- package/lib/typescript/src/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusLoading.d.ts +2 -1
- package/lib/typescript/src/domain/openChannelOperators/component/OpenChannelOperatorsHeader.d.ts +2 -1
- package/lib/typescript/src/domain/openChannelOperators/component/OpenChannelOperatorsList.d.ts +2 -1
- package/lib/typescript/src/domain/openChannelOperators/component/OpenChannelOperatorsStatusEmpty.d.ts +2 -1
- package/lib/typescript/src/domain/openChannelOperators/component/OpenChannelOperatorsStatusLoading.d.ts +2 -1
- package/lib/typescript/src/domain/openChannelSettings/component/OpenChannelSettingsHeader.d.ts +2 -1
- package/lib/typescript/src/domain/openChannelSettings/component/OpenChannelSettingsInfo.d.ts +2 -1
- package/lib/typescript/src/domain/openChannelSettings/component/OpenChannelSettingsMenu.d.ts +2 -1
- package/lib/typescript/src/domain/userList/component/UserListHeader.d.ts +3 -3
- package/lib/typescript/src/domain/userList/component/UserListList.d.ts +1 -1
- package/lib/typescript/src/domain/userList/component/UserListStatusEmpty.d.ts +2 -1
- package/lib/typescript/src/domain/userList/component/UserListStatusLoading.d.ts +2 -1
- package/lib/typescript/src/domain/userList/types.d.ts +2 -2
- package/lib/typescript/src/hooks/useChannelInputItems.d.ts +10 -0
- package/lib/typescript/src/hooks/useVoiceMessageInput.d.ts +53 -0
- package/lib/typescript/src/index.d.ts +4 -0
- package/lib/typescript/src/libs/MentionManager.d.ts +2 -1
- package/lib/typescript/src/libs/SBUUtils.d.ts +1 -0
- package/lib/typescript/src/libs/VoiceMessageConfig.d.ts +25 -0
- package/lib/typescript/src/localization/StringSet.type.d.ts +7 -0
- package/lib/typescript/src/platform/createPlayerService.expo.d.ts +7 -0
- package/lib/typescript/src/platform/createPlayerService.native.d.ts +9 -0
- package/lib/typescript/src/platform/createRecorderService.expo.d.ts +7 -0
- package/lib/typescript/src/platform/createRecorderService.native.d.ts +9 -0
- package/lib/typescript/src/platform/types.d.ts +100 -1
- package/lib/typescript/src/types.d.ts +5 -1
- package/lib/typescript/src/utils/promise.d.ts +7 -0
- package/lib/typescript/src/version.d.ts +1 -1
- package/package.json +10 -12
- package/src/components/ChannelInput/EditInput.tsx +3 -15
- package/src/components/ChannelInput/MessageToReplyPreview.tsx +133 -0
- package/src/components/ChannelInput/SendInput.tsx +131 -329
- package/src/components/ChannelInput/VoiceMessageInput.tsx +206 -0
- package/src/components/ChannelInput/index.tsx +37 -6
- package/src/components/ChannelMessageList/index.tsx +145 -113
- package/src/components/GroupChannelMessageRenderer/GroupChannelMessageParentMessage.tsx +24 -11
- package/src/components/GroupChannelMessageRenderer/index.tsx +113 -4
- package/src/components/MessageSearchResultItem.tsx +2 -1
- package/src/components/OpenChannelMessageRenderer/index.tsx +1 -0
- package/src/components/ReactionBottomSheets/ReactionUserListBottomSheet.tsx +2 -2
- package/src/components/ReactionBottomSheets/index.tsx +3 -2
- package/src/components/StatusComposition.tsx +3 -3
- package/src/constants.ts +2 -0
- package/src/containers/GroupChannelPreviewContainer.tsx +2 -0
- package/src/containers/InternalErrorBoundaryContainer.tsx +1 -1
- package/src/containers/SendbirdUIKitContainer.tsx +103 -59
- package/src/contexts/PlatformServiceCtx.tsx +22 -20
- package/src/contexts/ReactionCtx.tsx +7 -5
- package/src/contexts/SendbirdChatCtx.tsx +10 -2
- package/src/domain/groupChannel/component/GroupChannelHeader.tsx +14 -3
- package/src/domain/groupChannel/component/GroupChannelMessageList.tsx +30 -43
- package/src/domain/groupChannel/module/moduleContext.tsx +119 -7
- package/src/domain/groupChannel/types.ts +45 -0
- package/src/domain/userList/types.ts +2 -2
- package/src/fragments/createGroupChannelFragment.tsx +43 -8
- package/src/fragments/createMessageSearchFragment.tsx +1 -1
- package/src/hooks/useChannelInputItems.ts +215 -0
- package/src/hooks/useConnection.ts +1 -1
- package/src/hooks/useVoiceMessageInput.ts +237 -0
- package/src/index.ts +9 -1
- package/src/libs/MentionManager.tsx +1 -1
- package/src/libs/SBUUtils.ts +5 -0
- package/src/libs/VoiceMessageConfig.ts +28 -0
- package/src/localization/StringSet.type.ts +8 -0
- package/src/localization/createBaseStringSet.ts +27 -11
- package/src/platform/createFileService.expo.ts +10 -0
- package/src/platform/createFileService.native.ts +19 -0
- package/src/platform/createPlayerService.expo.tsx +142 -0
- package/src/platform/createPlayerService.native.tsx +148 -0
- package/src/platform/createRecorderService.expo.tsx +160 -0
- package/src/platform/createRecorderService.native.tsx +170 -0
- package/src/platform/types.ts +114 -1
- package/src/types.ts +6 -1
- package/src/utils/promise.ts +139 -0
- package/src/version.ts +1 -1
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import 'react-native';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This file contains subcomponents with separate copyright notices and license terms.
|
|
5
|
+
* Your use of the source code for these subcomponents is subject to the terms and conditions of the following licenses.
|
|
6
|
+
*
|
|
7
|
+
* MIT License: https://github.com/then/promise
|
|
8
|
+
*
|
|
9
|
+
* Copyright (c) 2014 Forbes Lindesay
|
|
10
|
+
*
|
|
11
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
13
|
+
* in the Software without restriction, including without limitation the rights
|
|
14
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
15
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
16
|
+
* furnished to do so, subject to the following conditions:
|
|
17
|
+
*
|
|
18
|
+
* The above copyright notice and this permission notice shall be included in
|
|
19
|
+
* all copies or substantial portions of the Software.
|
|
20
|
+
*
|
|
21
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
26
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
27
|
+
* THE SOFTWARE.
|
|
28
|
+
*
|
|
29
|
+
* Original code: https://github.com/then/promise/blob/master/src/es6-extensions.js
|
|
30
|
+
* */
|
|
31
|
+
let iterableToArray = function (iterable) {
|
|
32
|
+
if (typeof Array.from === 'function') {
|
|
33
|
+
// ES2015+, iterables exist
|
|
34
|
+
iterableToArray = Array.from;
|
|
35
|
+
return Array.from(iterable);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// ES5, only arrays and array-likes exist
|
|
39
|
+
iterableToArray = function (x) {
|
|
40
|
+
return Array.prototype.slice.call(x);
|
|
41
|
+
};
|
|
42
|
+
return Array.prototype.slice.call(iterable);
|
|
43
|
+
};
|
|
44
|
+
function onSettledFulfill(value) {
|
|
45
|
+
return {
|
|
46
|
+
status: 'fulfilled',
|
|
47
|
+
value: value
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function onSettledReject(reason) {
|
|
51
|
+
return {
|
|
52
|
+
status: 'rejected',
|
|
53
|
+
reason: reason
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function mapAllSettled(item) {
|
|
57
|
+
if (item && (typeof item === 'object' || typeof item === 'function')) {
|
|
58
|
+
if (item instanceof Promise && item.then === Promise.prototype.then) {
|
|
59
|
+
return item.then(onSettledFulfill, onSettledReject);
|
|
60
|
+
}
|
|
61
|
+
// @ts-expect-error
|
|
62
|
+
const then = item.then;
|
|
63
|
+
if (typeof then === 'function') {
|
|
64
|
+
return new Promise(then.bind(item)).then(onSettledFulfill, onSettledReject);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// @ts-expect-error
|
|
69
|
+
return onSettledFulfill(item);
|
|
70
|
+
}
|
|
71
|
+
function getAggregateError(errors) {
|
|
72
|
+
if (typeof AggregateError === 'function') {
|
|
73
|
+
return new AggregateError(errors, 'All promises were rejected');
|
|
74
|
+
}
|
|
75
|
+
const error = new Error('All promises were rejected');
|
|
76
|
+
error.name = 'AggregateError';
|
|
77
|
+
error.errors = errors;
|
|
78
|
+
return error;
|
|
79
|
+
}
|
|
80
|
+
export const PromisePolyfill = {
|
|
81
|
+
allSettled(values) {
|
|
82
|
+
return Promise.all(iterableToArray(values).map(mapAllSettled));
|
|
83
|
+
},
|
|
84
|
+
race(values) {
|
|
85
|
+
return new Promise(function (resolve, reject) {
|
|
86
|
+
iterableToArray(values).forEach(function (value) {
|
|
87
|
+
Promise.resolve(value).then(resolve, reject);
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
},
|
|
91
|
+
any(values) {
|
|
92
|
+
return new Promise(function (resolve, reject) {
|
|
93
|
+
const promises = iterableToArray(values);
|
|
94
|
+
let hasResolved = false;
|
|
95
|
+
const rejectionReasons = [];
|
|
96
|
+
function resolveOnce(value) {
|
|
97
|
+
if (!hasResolved) {
|
|
98
|
+
hasResolved = true;
|
|
99
|
+
resolve(value);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
function rejectionCheck(reason) {
|
|
103
|
+
rejectionReasons.push(reason);
|
|
104
|
+
if (rejectionReasons.length === promises.length) {
|
|
105
|
+
reject(getAggregateError(rejectionReasons));
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
if (promises.length === 0) {
|
|
109
|
+
reject(getAggregateError(rejectionReasons));
|
|
110
|
+
} else {
|
|
111
|
+
promises.forEach(function (value) {
|
|
112
|
+
Promise.resolve(value).then(resolveOnce, rejectionCheck);
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
},
|
|
117
|
+
apply() {
|
|
118
|
+
// https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Utilities/PolyfillFunctions.js
|
|
119
|
+
if (typeof global !== 'undefined' && 'Promise' in global) {
|
|
120
|
+
if (!global.Promise.allSettled) {
|
|
121
|
+
global.Promise.allSettled = this.allSettled;
|
|
122
|
+
}
|
|
123
|
+
if (!global.Promise.any) {
|
|
124
|
+
global.Promise.any = this.any;
|
|
125
|
+
}
|
|
126
|
+
if (!global.Promise.race) {
|
|
127
|
+
global.Promise.race = this.race;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
//# sourceMappingURL=promise.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["iterableToArray","iterable","Array","from","x","prototype","slice","call","onSettledFulfill","value","status","onSettledReject","reason","mapAllSettled","item","Promise","then","bind","getAggregateError","errors","AggregateError","error","Error","name","PromisePolyfill","allSettled","values","all","map","race","resolve","reject","forEach","any","promises","hasResolved","rejectionReasons","resolveOnce","rejectionCheck","push","length","apply","global"],"sources":["promise.ts"],"sourcesContent":["import 'react-native';\n\n/**\n * This file contains subcomponents with separate copyright notices and license terms.\n * Your use of the source code for these subcomponents is subject to the terms and conditions of the following licenses.\n *\n * MIT License: https://github.com/then/promise\n *\n * Copyright (c) 2014 Forbes Lindesay\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *\n * Original code: https://github.com/then/promise/blob/master/src/es6-extensions.js\n * */\nlet iterableToArray = function <T>(iterable: Iterable<T | PromiseLike<T>>): (T | PromiseLike<T>)[] {\n if (typeof Array.from === 'function') {\n // ES2015+, iterables exist\n iterableToArray = Array.from;\n return Array.from(iterable);\n }\n\n // ES5, only arrays and array-likes exist\n iterableToArray = function (x) {\n return Array.prototype.slice.call(x);\n };\n return Array.prototype.slice.call(iterable);\n};\n\nfunction onSettledFulfill<T>(value: T) {\n return { status: 'fulfilled', value: value } as const;\n}\n\nfunction onSettledReject<T>(reason: T) {\n return { status: 'rejected', reason: reason } as const;\n}\n\nfunction mapAllSettled<T>(item: T | PromiseLike<T>): PromiseLike<PromiseSettledResult<T>> | PromiseSettledResult<T> {\n if (item && (typeof item === 'object' || typeof item === 'function')) {\n if (item instanceof Promise && item.then === Promise.prototype.then) {\n return item.then(onSettledFulfill, onSettledReject);\n }\n // @ts-expect-error\n const then = item.then;\n if (typeof then === 'function') {\n return new Promise<T>(then.bind(item)).then(onSettledFulfill, onSettledReject);\n }\n }\n\n // @ts-expect-error\n return onSettledFulfill(item);\n}\n\nfunction getAggregateError(errors: unknown[]) {\n if (typeof AggregateError === 'function') {\n return new AggregateError(errors, 'All promises were rejected');\n }\n\n const error = new Error('All promises were rejected') as Error & { errors: unknown[] };\n\n error.name = 'AggregateError';\n error.errors = errors;\n\n return error;\n}\n\nexport const PromisePolyfill = {\n allSettled<T extends readonly unknown[] | []>(values: T) {\n return Promise.all(iterableToArray(values).map(mapAllSettled)) as Promise<{\n -readonly [P in keyof T]: PromiseSettledResult<Awaited<T[P]>>;\n }>;\n },\n race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>> {\n return new Promise(function (resolve, reject) {\n iterableToArray(values).forEach(function (value) {\n Promise.resolve(value).then(resolve, reject);\n });\n });\n },\n any<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>> {\n return new Promise<Awaited<T>>(function (resolve, reject) {\n const promises = iterableToArray(values);\n let hasResolved = false;\n const rejectionReasons: unknown[] = [];\n\n function resolveOnce(value: Awaited<T>) {\n if (!hasResolved) {\n hasResolved = true;\n resolve(value);\n }\n }\n\n function rejectionCheck(reason: unknown) {\n rejectionReasons.push(reason);\n\n if (rejectionReasons.length === promises.length) {\n reject(getAggregateError(rejectionReasons));\n }\n }\n\n if (promises.length === 0) {\n reject(getAggregateError(rejectionReasons));\n } else {\n promises.forEach(function (value) {\n Promise.resolve(value).then(resolveOnce, rejectionCheck);\n });\n }\n });\n },\n apply() {\n // https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Utilities/PolyfillFunctions.js\n if (typeof global !== 'undefined' && 'Promise' in global) {\n if (!global.Promise.allSettled) {\n global.Promise.allSettled = this.allSettled;\n }\n if (!global.Promise.any) {\n global.Promise.any = this.any;\n }\n if (!global.Promise.race) {\n global.Promise.race = this.race;\n }\n }\n },\n};\n"],"mappings":"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"}
|
package/lib/module/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["VERSION"],"sources":["version.ts"],"sourcesContent":["const VERSION = '3.
|
|
1
|
+
{"version":3,"names":["VERSION"],"sources":["version.ts"],"sourcesContent":["const VERSION = '3.3.0';\nexport default VERSION;\n"],"mappings":"AAAA,MAAMA,OAAO,GAAG,OAAO;AACvB,eAAeA,OAAO"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
2
3
|
import { SendbirdBaseChannel } from '@sendbird/uikit-utils';
|
|
3
4
|
type Props = {
|
|
@@ -5,5 +6,5 @@ type Props = {
|
|
|
5
6
|
size: number;
|
|
6
7
|
containerStyle?: StyleProp<ViewStyle>;
|
|
7
8
|
};
|
|
8
|
-
declare const ChannelCover: ({ channel, ...avatarProps }: Props) => JSX.Element;
|
|
9
|
+
declare const ChannelCover: ({ channel, ...avatarProps }: Props) => React.JSX.Element;
|
|
9
10
|
export default ChannelCover;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
export type AttachmentsButtonProps = {
|
|
2
3
|
onPress: () => void;
|
|
3
4
|
disabled: boolean;
|
|
4
5
|
};
|
|
5
|
-
declare const AttachmentsButton: ({ onPress, disabled }: AttachmentsButtonProps) => JSX.Element;
|
|
6
|
+
declare const AttachmentsButton: ({ onPress, disabled }: AttachmentsButtonProps) => React.JSX.Element;
|
|
6
7
|
export default AttachmentsButton;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SendbirdFileMessage, SendbirdUserMessage } from '@sendbird/uikit-utils';
|
|
3
|
+
export type MessageToReplyPreviewProps = {
|
|
4
|
+
messageToReply?: SendbirdFileMessage | SendbirdUserMessage;
|
|
5
|
+
setMessageToReply?: (message?: undefined | SendbirdFileMessage | SendbirdUserMessage) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const MessageToReplyPreview: ({ messageToReply, setMessageToReply }: MessageToReplyPreviewProps) => React.JSX.Element | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FileType } from '../../platform/types';
|
|
3
|
+
export type VoiceMessageInputProps = {
|
|
4
|
+
onClose: () => Promise<void>;
|
|
5
|
+
onSend: (params: {
|
|
6
|
+
file: FileType;
|
|
7
|
+
duration: number;
|
|
8
|
+
}) => void;
|
|
9
|
+
};
|
|
10
|
+
declare const VoiceMessageInput: ({ onClose, onSend }: VoiceMessageInputProps) => React.JSX.Element;
|
|
11
|
+
export default VoiceMessageInput;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { StyleProp, TextStyle } from 'react-native';
|
|
2
3
|
import { SendbirdBaseChannel, SendbirdFileMessage, SendbirdFileMessageCreateParams, SendbirdFileMessageUpdateParams, SendbirdMember, SendbirdUserMessage, SendbirdUserMessageCreateParams, SendbirdUserMessageUpdateParams } from '@sendbird/uikit-utils';
|
|
3
4
|
import type { MentionedUser, Range } from '../../types';
|
|
4
5
|
import type { AttachmentsButtonProps } from './AttachmentsButton';
|
|
6
|
+
import type { MessageToReplyPreviewProps } from './MessageToReplyPreview';
|
|
7
|
+
import { VoiceMessageInputProps } from './VoiceMessageInput';
|
|
5
8
|
export type SuggestedMentionListProps = {
|
|
6
9
|
text: string;
|
|
7
10
|
selection: Range;
|
|
@@ -12,6 +15,7 @@ export type SuggestedMentionListProps = {
|
|
|
12
15
|
mentionedUsers: MentionedUser[];
|
|
13
16
|
};
|
|
14
17
|
export type ChannelInputProps = {
|
|
18
|
+
style?: StyleProp<TextStyle>;
|
|
15
19
|
channel: SendbirdBaseChannel;
|
|
16
20
|
shouldRenderInput: boolean;
|
|
17
21
|
keyboardAvoidOffset: number;
|
|
@@ -26,8 +30,10 @@ export type ChannelInputProps = {
|
|
|
26
30
|
setMessageToEdit: (message?: undefined | SendbirdUserMessage | SendbirdFileMessage) => void;
|
|
27
31
|
messageToReply?: undefined | SendbirdUserMessage | SendbirdFileMessage;
|
|
28
32
|
setMessageToReply?: (message?: undefined | SendbirdUserMessage | SendbirdFileMessage) => void;
|
|
29
|
-
SuggestedMentionList?: (props: SuggestedMentionListProps) =>
|
|
30
|
-
AttachmentsButton?: (props: AttachmentsButtonProps) =>
|
|
33
|
+
SuggestedMentionList?: (props: SuggestedMentionListProps) => React.ReactNode | null;
|
|
34
|
+
AttachmentsButton?: (props: AttachmentsButtonProps) => React.ReactNode | null;
|
|
35
|
+
MessageToReplyPreview?: (props: MessageToReplyPreviewProps) => React.ReactNode | null;
|
|
36
|
+
VoiceMessageInput?: (props: VoiceMessageInputProps) => React.ReactNode | null;
|
|
31
37
|
};
|
|
32
|
-
declare const _default: React.MemoExoticComponent<(props: ChannelInputProps) => JSX.Element>;
|
|
38
|
+
declare const _default: React.MemoExoticComponent<(props: ChannelInputProps) => React.JSX.Element>;
|
|
33
39
|
export default _default;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { Ref } from 'react';
|
|
2
2
|
import { FlatList, FlatListProps } from 'react-native';
|
|
3
|
+
import { BottomSheetItem } from '@sendbird/uikit-react-native-foundation';
|
|
3
4
|
import { SendbirdFileMessage, SendbirdGroupChannel, SendbirdMessage, SendbirdOpenChannel, SendbirdUserMessage } from '@sendbird/uikit-utils';
|
|
4
5
|
import type { UserProfileContextType } from '../../contexts/UserProfileCtx';
|
|
5
6
|
import type { CommonComponent } from '../../types';
|
|
@@ -38,6 +39,8 @@ export type ChannelMessageListProps<T extends SendbirdGroupChannel | SendbirdOpe
|
|
|
38
39
|
channel: T;
|
|
39
40
|
currentUserId?: ChannelMessageListProps<T>['currentUserId'];
|
|
40
41
|
enableMessageGrouping: ChannelMessageListProps<T>['enableMessageGrouping'];
|
|
42
|
+
bottomSheetItem?: BottomSheetItem;
|
|
43
|
+
isFirstItem: boolean;
|
|
41
44
|
}) => React.ReactElement | null;
|
|
42
45
|
renderNewMessagesButton: null | CommonComponent<{
|
|
43
46
|
visible: boolean;
|
|
@@ -52,5 +55,5 @@ export type ChannelMessageListProps<T extends SendbirdGroupChannel | SendbirdOpe
|
|
|
52
55
|
} & {
|
|
53
56
|
ref?: Ref<FlatList<SendbirdMessage>> | undefined;
|
|
54
57
|
};
|
|
55
|
-
declare const _default: <T extends import("@sendbird/chat/openChannel").OpenChannel | import("@sendbird/chat/groupChannel").GroupChannel>({ searchItem, hasNext, channel, onEditMessage, onReplyMessage, onDeleteMessage, onResendFailedMessage, onPressMediaMessage, onPressParentMessage, currentUserId, renderNewMessagesButton, renderScrollToBottomButton, renderMessage, messages, newMessages, enableMessageGrouping, onScrolledAwayFromBottom, scrolledAwayFromBottom, onBottomReached, onTopReached, flatListProps, onPressNewMessagesButton, onPressScrollToBottomButton, }: ChannelMessageListProps<T>, ref: React.ForwardedRef<FlatList<SendbirdMessage>>) => JSX.Element;
|
|
58
|
+
declare const _default: <T extends import("@sendbird/chat/openChannel").OpenChannel | import("@sendbird/chat/groupChannel").GroupChannel>({ searchItem, hasNext, channel, onEditMessage, onReplyMessage, onDeleteMessage, onResendFailedMessage, onPressMediaMessage, onPressParentMessage, currentUserId, renderNewMessagesButton, renderScrollToBottomButton, renderMessage, messages, newMessages, enableMessageGrouping, onScrolledAwayFromBottom, scrolledAwayFromBottom, onBottomReached, onTopReached, flatListProps, onPressNewMessagesButton, onPressScrollToBottomButton, }: ChannelMessageListProps<T>, ref: React.ForwardedRef<FlatList<SendbirdMessage>>) => React.JSX.Element;
|
|
56
59
|
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { SendbirdFileMessage } from '@sendbird/uikit-utils';
|
|
2
3
|
type Props = {
|
|
3
4
|
fileMessage: SendbirdFileMessage;
|
|
@@ -8,5 +9,5 @@ type Props = {
|
|
|
8
9
|
headerShown?: boolean;
|
|
9
10
|
headerTopInset?: number;
|
|
10
11
|
};
|
|
11
|
-
declare const FileViewer: ({ headerShown, deleteMessage, headerTopInset, fileMessage, onPressDownload, onPressDelete, onClose, }: Props) => JSX.Element;
|
|
12
|
+
declare const FileViewer: ({ headerShown, deleteMessage, headerTopInset, fileMessage, onPressDownload, onPressDelete, onClose, }: Props) => React.JSX.Element;
|
|
12
13
|
export default FileViewer;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { SendbirdMessage } from '@sendbird/uikit-utils';
|
|
2
3
|
declare const GroupChannelMessageDateSeparator: ({ message, prevMessage, }: {
|
|
3
4
|
message: SendbirdMessage;
|
|
4
5
|
prevMessage?: SendbirdMessage | undefined;
|
|
5
|
-
}) => JSX.Element | null;
|
|
6
|
+
}) => React.JSX.Element | null;
|
|
6
7
|
export default GroupChannelMessageDateSeparator;
|
|
@@ -6,5 +6,5 @@ type Props = {
|
|
|
6
6
|
message: SendbirdMessage;
|
|
7
7
|
style?: StyleProp<ImageStyle>;
|
|
8
8
|
};
|
|
9
|
-
declare const _default: React.MemoExoticComponent<({ channel, message, style }: Props) => JSX.Element | null>;
|
|
9
|
+
declare const _default: React.MemoExoticComponent<({ channel, message, style }: Props) => React.JSX.Element | null>;
|
|
10
10
|
export default _default;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SendbirdFileMessage, SendbirdGroupChannel, SendbirdMessage, SendbirdUserMessage } from '@sendbird/uikit-utils';
|
|
2
3
|
type Props = {
|
|
3
4
|
variant: 'outgoing' | 'incoming';
|
|
5
|
+
channel: SendbirdGroupChannel;
|
|
4
6
|
message: SendbirdUserMessage | SendbirdFileMessage;
|
|
5
7
|
childMessage: SendbirdUserMessage | SendbirdFileMessage;
|
|
6
8
|
onPress?: (message: SendbirdMessage) => void;
|
|
7
9
|
};
|
|
8
|
-
declare const GroupChannelMessageParentMessage: ({ variant, message, childMessage, onPress }: Props) => JSX.Element;
|
|
10
|
+
declare const GroupChannelMessageParentMessage: ({ variant, channel, message, childMessage, onPress }: Props) => React.JSX.Element;
|
|
9
11
|
export default GroupChannelMessageParentMessage;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SendbirdMessage } from '@sendbird/uikit-utils';
|
|
3
|
+
export declare const GroupChannelTypingIndicatorBubble: () => React.JSX.Element | null;
|
|
3
4
|
declare const _default: React.MemoExoticComponent<(props: {
|
|
4
5
|
focused: boolean;
|
|
5
6
|
message: SendbirdMessage;
|
|
@@ -14,5 +15,7 @@ declare const _default: React.MemoExoticComponent<(props: {
|
|
|
14
15
|
channel: import("@sendbird/chat/groupChannel").GroupChannel;
|
|
15
16
|
currentUserId?: string | undefined;
|
|
16
17
|
enableMessageGrouping: boolean;
|
|
18
|
+
bottomSheetItem?: import("@sendbird/uikit-react-native-foundation").BottomSheetItem | undefined;
|
|
19
|
+
isFirstItem: boolean;
|
|
17
20
|
}) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null>;
|
|
18
21
|
export default _default;
|
|
@@ -5,5 +5,5 @@ type Props = {
|
|
|
5
5
|
visible: boolean;
|
|
6
6
|
onPress: () => void;
|
|
7
7
|
};
|
|
8
|
-
declare const _default: React.MemoExoticComponent<({ newMessages, visible, onPress }: Props) => JSX.Element | null>;
|
|
8
|
+
declare const _default: React.MemoExoticComponent<({ newMessages, visible, onPress }: Props) => React.JSX.Element | null>;
|
|
9
9
|
export default _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { SendbirdMessage } from '@sendbird/uikit-utils';
|
|
2
3
|
declare const OpenChannelMessageDateSeparator: ({ message, prevMessage, }: {
|
|
3
4
|
message: SendbirdMessage;
|
|
4
5
|
prevMessage?: SendbirdMessage | undefined;
|
|
5
|
-
}) => JSX.Element | null;
|
|
6
|
+
}) => React.JSX.Element | null;
|
|
6
7
|
export default OpenChannelMessageDateSeparator;
|
|
@@ -14,5 +14,7 @@ declare const _default: React.MemoExoticComponent<(props: {
|
|
|
14
14
|
channel: import("@sendbird/chat/openChannel").OpenChannel;
|
|
15
15
|
currentUserId?: string | undefined;
|
|
16
16
|
enableMessageGrouping: boolean;
|
|
17
|
+
bottomSheetItem?: import("@sendbird/uikit-react-native-foundation").BottomSheetItem | undefined;
|
|
18
|
+
isFirstItem: boolean;
|
|
17
19
|
}) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null>;
|
|
18
20
|
export default _default;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { SendbirdBaseChannel, SendbirdBaseMessage } from '@sendbird/uikit-utils';
|
|
2
3
|
type Props = {
|
|
3
4
|
onClose: () => Promise<void>;
|
|
4
5
|
channel: SendbirdBaseChannel;
|
|
5
6
|
message: SendbirdBaseMessage;
|
|
6
7
|
};
|
|
7
|
-
declare const BottomSheetReactionAddon: ({ onClose, message, channel }: Props) => JSX.Element;
|
|
8
|
+
declare const BottomSheetReactionAddon: ({ onClose, message, channel }: Props) => React.JSX.Element;
|
|
8
9
|
export default BottomSheetReactionAddon;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { SendbirdBaseChannel, SendbirdBaseMessage } from '@sendbird/uikit-utils';
|
|
2
3
|
declare const MessageReactionAddon: ({ channel, message }: {
|
|
3
4
|
channel: SendbirdBaseChannel;
|
|
4
5
|
message: SendbirdBaseMessage;
|
|
5
|
-
}) => JSX.Element | null;
|
|
6
|
+
}) => React.JSX.Element | null;
|
|
6
7
|
export default MessageReactionAddon;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
3
|
type Props = {
|
|
3
4
|
url: string;
|
|
@@ -6,9 +7,9 @@ type Props = {
|
|
|
6
7
|
style: StyleProp<ViewStyle>;
|
|
7
8
|
};
|
|
8
9
|
declare const ReactionRoundedButton: {
|
|
9
|
-
({ url, count, reacted, style }: Props): JSX.Element;
|
|
10
|
+
({ url, count, reacted, style }: Props): React.JSX.Element;
|
|
10
11
|
More({ pressed }: {
|
|
11
12
|
pressed: boolean;
|
|
12
|
-
}): JSX.Element;
|
|
13
|
+
}): React.JSX.Element;
|
|
13
14
|
};
|
|
14
15
|
export default ReactionRoundedButton;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const ReactionAddons: {
|
|
2
3
|
BottomSheet: ({ onClose, message, channel }: {
|
|
3
4
|
onClose: () => Promise<void>;
|
|
4
5
|
channel: import("@sendbird/chat").BaseChannel;
|
|
5
6
|
message: import("@sendbird/chat/message").BaseMessage;
|
|
6
|
-
}) => JSX.Element;
|
|
7
|
+
}) => import("react").JSX.Element;
|
|
7
8
|
Message: ({ channel, message }: {
|
|
8
9
|
channel: import("@sendbird/chat").BaseChannel;
|
|
9
10
|
message: import("@sendbird/chat/message").BaseMessage;
|
|
10
|
-
}) => JSX.Element | null;
|
|
11
|
+
}) => import("react").JSX.Element | null;
|
|
11
12
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { ReactionBottomSheetProps } from './index';
|
|
2
|
-
declare const ReactionListBottomSheet: ({ visible, onClose, onDismiss, reactionCtx, chatCtx }: ReactionBottomSheetProps) => JSX.Element;
|
|
3
|
+
declare const ReactionListBottomSheet: ({ visible, onClose, onDismiss, reactionCtx, chatCtx }: ReactionBottomSheetProps) => React.JSX.Element;
|
|
3
4
|
export default ReactionListBottomSheet;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { ReactionBottomSheetProps } from './index';
|
|
2
|
-
declare const ReactionUserListBottomSheet: ({ visible, onClose, onDismiss, reactionCtx, chatCtx, localizationCtx,
|
|
3
|
+
declare const ReactionUserListBottomSheet: ({ visible, onClose, onDismiss, reactionCtx, chatCtx, localizationCtx, onPressUserProfile, }: ReactionBottomSheetProps) => React.JSX.Element;
|
|
3
4
|
export default ReactionUserListBottomSheet;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
+
import type { SendbirdMember, SendbirdUser } from '@sendbird/uikit-utils';
|
|
2
3
|
import type { LocalizationContext } from '../../contexts/LocalizationCtx';
|
|
3
4
|
import type { ReactionContext } from '../../contexts/ReactionCtx';
|
|
4
5
|
import type { SendbirdChatContext } from '../../contexts/SendbirdChatCtx';
|
|
5
|
-
import type { UserProfileContext } from '../../contexts/UserProfileCtx';
|
|
6
6
|
type GetFromContext<T> = T extends React.Context<infer Value> ? NonNullable<Value> : never;
|
|
7
7
|
export type ReactionBottomSheetProps = {
|
|
8
8
|
visible: boolean;
|
|
9
9
|
onDismiss: () => void;
|
|
10
10
|
onClose: () => Promise<void>;
|
|
11
|
+
onPressUserProfile: (user: SendbirdUser | SendbirdMember) => void;
|
|
11
12
|
chatCtx: GetFromContext<typeof SendbirdChatContext>;
|
|
12
13
|
reactionCtx: GetFromContext<typeof ReactionContext>;
|
|
13
14
|
localizationCtx: GetFromContext<typeof LocalizationContext>;
|
|
14
|
-
userProfileCtx: GetFromContext<typeof UserProfileContext>;
|
|
15
15
|
};
|
|
16
16
|
export declare const ReactionBottomSheets: {
|
|
17
|
-
ReactionList: ({ visible, onClose, onDismiss, reactionCtx, chatCtx }: ReactionBottomSheetProps) => JSX.Element;
|
|
18
|
-
UserList: ({ visible, onClose, onDismiss, reactionCtx, chatCtx, localizationCtx,
|
|
17
|
+
ReactionList: ({ visible, onClose, onDismiss, reactionCtx, chatCtx }: ReactionBottomSheetProps) => React.JSX.Element;
|
|
18
|
+
UserList: ({ visible, onClose, onDismiss, reactionCtx, chatCtx, localizationCtx, onPressUserProfile, }: ReactionBottomSheetProps) => React.JSX.Element;
|
|
19
19
|
};
|
|
20
20
|
export {};
|
|
@@ -3,5 +3,5 @@ type Props = {
|
|
|
3
3
|
visible: boolean;
|
|
4
4
|
onPress: () => void;
|
|
5
5
|
};
|
|
6
|
-
declare const _default: React.MemoExoticComponent<({ visible, onPress }: Props) => JSX.Element | null>;
|
|
6
|
+
declare const _default: React.MemoExoticComponent<({ visible, onPress }: Props) => React.JSX.Element | null>;
|
|
7
7
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
type Props = {
|
|
3
3
|
loading?: boolean;
|
|
4
|
-
LoadingComponent?:
|
|
4
|
+
LoadingComponent?: ReactNode;
|
|
5
5
|
error?: boolean;
|
|
6
|
-
ErrorComponent?:
|
|
6
|
+
ErrorComponent?: ReactNode;
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
};
|
|
9
|
-
declare const StatusComposition: ({ children, error, ErrorComponent, LoadingComponent, loading }: Props) => JSX.Element;
|
|
9
|
+
declare const StatusComposition: ({ children, error, ErrorComponent, LoadingComponent, loading }: Props) => React.JSX.Element;
|
|
10
10
|
export default StatusComposition;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
type Props = {
|
|
2
3
|
type: 'no-muted-members' | 'no-muted-participants' | 'no-banned-users' | 'no-channels' | 'no-messages' | 'no-users' | 'no-results-found' | 'error-wrong' | 'loading';
|
|
3
4
|
onPressRetry?: () => void;
|
|
4
5
|
};
|
|
5
|
-
declare const TypedPlaceholder: ({ type, onPressRetry }: Props) => JSX.Element;
|
|
6
|
+
declare const TypedPlaceholder: ({ type, onPressRetry }: Props) => React.JSX.Element;
|
|
6
7
|
export default TypedPlaceholder;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { GestureResponderEvent } from 'react-native';
|
|
2
3
|
type Props = {
|
|
3
4
|
uri: string;
|
|
@@ -8,5 +9,5 @@ type Props = {
|
|
|
8
9
|
onPressActionMenu?: (ev: GestureResponderEvent) => void;
|
|
9
10
|
onPressAvatar?: (ev: GestureResponderEvent) => void;
|
|
10
11
|
};
|
|
11
|
-
declare const UserActionBar: ({ muted, uri, name, disabled, label, onPressActionMenu, onPressAvatar }: Props) => JSX.Element;
|
|
12
|
+
declare const UserActionBar: ({ muted, uri, name, disabled, label, onPressActionMenu, onPressAvatar }: Props) => React.JSX.Element;
|
|
12
13
|
export default UserActionBar;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
type Props = {
|
|
2
3
|
uri: string;
|
|
3
4
|
name: string;
|
|
4
5
|
selected: boolean;
|
|
5
6
|
disabled: boolean;
|
|
6
7
|
};
|
|
7
|
-
declare const UserSelectableBar: ({ uri, name, selected, disabled }: Props) => JSX.Element;
|
|
8
|
+
declare const UserSelectableBar: ({ uri, name, selected, disabled }: Props) => React.JSX.Element;
|
|
8
9
|
export default UserSelectableBar;
|
|
@@ -2,3 +2,5 @@ export declare const DEFAULT_LONG_PRESS_DELAY = 350;
|
|
|
2
2
|
export declare const MESSAGE_SEARCH_SAFE_SCROLL_DELAY = 500;
|
|
3
3
|
export declare const MESSAGE_FOCUS_ANIMATION_DELAY = 250;
|
|
4
4
|
export declare const UNKNOWN_USER_ID = "##__USER_ID_IS_NOT_PROVIDED__##";
|
|
5
|
+
export declare const VOICE_MESSAGE_META_ARRAY_DURATION_KEY = "KEY_VOICE_MESSAGE_DURATION";
|
|
6
|
+
export declare const VOICE_MESSAGE_META_ARRAY_MESSAGE_TYPE_KEY = "KEY_INTERNAL_MESSAGE_TYPE";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { SendbirdGroupChannel } from '@sendbird/uikit-utils';
|
|
2
3
|
type Props = {
|
|
3
4
|
channel: SendbirdGroupChannel;
|
|
4
5
|
onPress: () => void;
|
|
5
6
|
onLongPress: () => void;
|
|
6
7
|
};
|
|
7
|
-
declare const GroupChannelPreviewContainer: ({ onPress, onLongPress, channel }: Props) => JSX.Element;
|
|
8
|
+
declare const GroupChannelPreviewContainer: ({ onPress, onLongPress, channel }: Props) => React.JSX.Element;
|
|
8
9
|
export default GroupChannelPreviewContainer;
|
|
@@ -2,11 +2,11 @@ import React, { ErrorInfo } from 'react';
|
|
|
2
2
|
import type { ErrorBoundaryProps } from '../types';
|
|
3
3
|
declare class InternalErrorBoundaryContainer extends React.PureComponent<{
|
|
4
4
|
onError?: (props: ErrorBoundaryProps) => void;
|
|
5
|
-
ErrorInfoComponent?: (props: ErrorBoundaryProps) =>
|
|
5
|
+
ErrorInfoComponent?: (props: ErrorBoundaryProps) => React.ReactNode;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
}> {
|
|
8
8
|
static defaultProps: {
|
|
9
|
-
ErrorInfoComponent: (props: ErrorBoundaryProps) => JSX.Element;
|
|
9
|
+
ErrorInfoComponent: (props: ErrorBoundaryProps) => React.JSX.Element;
|
|
10
10
|
};
|
|
11
11
|
state: {
|
|
12
12
|
error: Error | null;
|
|
@@ -14,6 +14,6 @@ declare class InternalErrorBoundaryContainer extends React.PureComponent<{
|
|
|
14
14
|
};
|
|
15
15
|
componentDidCatch: (error: Error, errorInfo: ErrorInfo) => void;
|
|
16
16
|
reset: () => void;
|
|
17
|
-
render: () => JSX.Element | null;
|
|
17
|
+
render: () => string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null;
|
|
18
18
|
}
|
|
19
19
|
export default InternalErrorBoundaryContainer;
|