@sendbird/uikit-react-native 2.2.0 → 2.4.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 +55 -33
- package/lib/commonjs/components/ChannelCover.js +54 -40
- package/lib/commonjs/components/ChannelCover.js.map +1 -1
- package/lib/commonjs/{domain/groupChannel/component/GroupChannelInput → components/ChannelInput}/EditInput.js +28 -13
- package/lib/commonjs/components/ChannelInput/EditInput.js.map +1 -0
- package/lib/commonjs/{domain/groupChannel/component/GroupChannelInput → components/ChannelInput}/SendInput.js +126 -37
- package/lib/commonjs/components/ChannelInput/SendInput.js.map +1 -0
- package/lib/commonjs/{domain/groupChannel/component/GroupChannelInput → components/ChannelInput}/index.js +34 -34
- package/lib/commonjs/components/ChannelInput/index.js.map +1 -0
- package/lib/commonjs/components/FileViewer.js +5 -8
- package/lib/commonjs/components/FileViewer.js.map +1 -1
- package/lib/commonjs/components/MessageRenderer/FileMessage/BaseFileMessage.js +1 -1
- package/lib/commonjs/components/MessageRenderer/FileMessage/BaseFileMessage.js.map +1 -1
- package/lib/commonjs/components/MessageRenderer/FileMessage/ImageFileMessage.js +1 -1
- package/lib/commonjs/components/MessageRenderer/FileMessage/ImageFileMessage.js.map +1 -1
- package/lib/commonjs/components/MessageRenderer/FileMessage/VideoFileMessage.js +3 -3
- package/lib/commonjs/components/MessageRenderer/FileMessage/VideoFileMessage.js.map +1 -1
- package/lib/commonjs/components/MessageRenderer/FileMessage/index.js +1 -6
- package/lib/commonjs/components/MessageRenderer/FileMessage/index.js.map +1 -1
- package/lib/commonjs/components/MessageRenderer/MessageDateSeparator.js.map +1 -1
- package/lib/commonjs/components/MessageRenderer/MessageIncomingSenderName.js +1 -1
- package/lib/commonjs/components/MessageRenderer/MessageIncomingSenderName.js.map +1 -1
- package/lib/commonjs/components/MessageRenderer/MessageTime.js +1 -1
- package/lib/commonjs/components/MessageRenderer/MessageTime.js.map +1 -1
- package/lib/commonjs/components/MessageRenderer/UnknownMessage/index.js +1 -1
- package/lib/commonjs/components/MessageRenderer/UnknownMessage/index.js.map +1 -1
- package/lib/commonjs/components/MessageRenderer/UserMessage/BaseUserMessage.js +3 -3
- package/lib/commonjs/components/MessageRenderer/UserMessage/BaseUserMessage.js.map +1 -1
- package/lib/commonjs/components/MessageRenderer/UserMessage/OpenGraphUserMessage.js +6 -4
- package/lib/commonjs/components/MessageRenderer/UserMessage/OpenGraphUserMessage.js.map +1 -1
- package/lib/commonjs/components/OpenChannelMessageRenderer/OpenChannelMessageDateSeparator.js +58 -0
- package/lib/commonjs/components/OpenChannelMessageRenderer/OpenChannelMessageDateSeparator.js.map +1 -0
- package/lib/commonjs/components/OpenChannelMessageRenderer/index.js +135 -0
- package/lib/commonjs/components/OpenChannelMessageRenderer/index.js.map +1 -0
- package/lib/commonjs/components/ReactionAddons/BottomSheetReactionAddon.js +2 -4
- package/lib/commonjs/components/ReactionAddons/BottomSheetReactionAddon.js.map +1 -1
- package/lib/commonjs/components/TypedPlaceholder.js +6 -0
- package/lib/commonjs/components/TypedPlaceholder.js.map +1 -1
- package/lib/commonjs/containers/GroupChannelPreviewContainer.js +2 -2
- package/lib/commonjs/containers/GroupChannelPreviewContainer.js.map +1 -1
- package/lib/commonjs/containers/SendbirdUIKitContainer.js +29 -6
- package/lib/commonjs/containers/SendbirdUIKitContainer.js.map +1 -1
- package/lib/commonjs/contexts/PlatformServiceCtx.js.map +1 -1
- package/lib/commonjs/contexts/SendbirdChatCtx.js +10 -14
- package/lib/commonjs/contexts/SendbirdChatCtx.js.map +1 -1
- package/lib/commonjs/contexts/UserProfileCtx.js +20 -10
- package/lib/commonjs/contexts/UserProfileCtx.js.map +1 -1
- package/lib/commonjs/domain/groupChannel/component/GroupChannelInput.js +54 -0
- package/lib/commonjs/domain/groupChannel/component/GroupChannelInput.js.map +1 -0
- package/lib/commonjs/domain/groupChannel/component/GroupChannelMessageList.js +13 -11
- package/lib/commonjs/domain/groupChannel/component/GroupChannelMessageList.js.map +1 -1
- package/lib/commonjs/domain/groupChannel/module/moduleContext.js +2 -2
- 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/groupChannelBannedUsers/index.js +8 -0
- package/lib/commonjs/domain/groupChannelBannedUsers/index.js.map +1 -1
- package/lib/commonjs/domain/groupChannelList/component/GroupChannelListList.js +1 -1
- package/lib/commonjs/domain/groupChannelList/component/GroupChannelListList.js.map +1 -1
- package/lib/commonjs/domain/groupChannelMutedMembers/component/GroupChannelMutedMembersList.js +4 -2
- package/lib/commonjs/domain/groupChannelMutedMembers/component/GroupChannelMutedMembersList.js.map +1 -1
- package/lib/commonjs/domain/groupChannelOperators/component/GroupChannelOperatorsList.js +4 -2
- package/lib/commonjs/domain/groupChannelOperators/component/GroupChannelOperatorsList.js.map +1 -1
- package/lib/commonjs/domain/groupChannelSettings/component/GroupChannelSettingsInfo.js +1 -1
- package/lib/commonjs/domain/groupChannelSettings/component/GroupChannelSettingsInfo.js.map +1 -1
- package/lib/commonjs/domain/groupChannelSettings/module/moduleContext.js +4 -5
- package/lib/commonjs/domain/groupChannelSettings/module/moduleContext.js.map +1 -1
- package/lib/commonjs/domain/openChannel/component/OpenChannelHeader.js +83 -0
- package/lib/commonjs/domain/openChannel/component/OpenChannelHeader.js.map +1 -0
- package/lib/commonjs/domain/openChannel/component/OpenChannelInput.js +95 -0
- package/lib/commonjs/domain/openChannel/component/OpenChannelInput.js.map +1 -0
- package/lib/commonjs/domain/openChannel/component/OpenChannelMessageList.js +351 -0
- package/lib/commonjs/domain/openChannel/component/OpenChannelMessageList.js.map +1 -0
- package/lib/commonjs/domain/openChannel/component/OpenChannelStatusEmpty.js +34 -0
- package/lib/commonjs/domain/openChannel/component/OpenChannelStatusEmpty.js.map +1 -0
- package/lib/commonjs/domain/openChannel/component/OpenChannelStatusLoading.js +34 -0
- package/lib/commonjs/domain/openChannel/component/OpenChannelStatusLoading.js.map +1 -0
- package/lib/commonjs/domain/openChannel/index.js +62 -0
- package/lib/commonjs/domain/openChannel/index.js.map +1 -0
- package/lib/commonjs/domain/openChannel/module/createOpenChannelModule.js +45 -0
- package/lib/commonjs/domain/openChannel/module/createOpenChannelModule.js.map +1 -0
- package/lib/commonjs/domain/openChannel/module/moduleContext.js +53 -0
- package/lib/commonjs/domain/openChannel/module/moduleContext.js.map +1 -0
- package/lib/commonjs/domain/openChannel/types.js +6 -0
- package/lib/commonjs/domain/openChannel/types.js.map +1 -0
- package/lib/commonjs/domain/openChannelBannedUsers/component/OpenChannelBannedUsersHeader.js +39 -0
- package/lib/commonjs/domain/openChannelBannedUsers/component/OpenChannelBannedUsersHeader.js.map +1 -0
- package/lib/commonjs/domain/openChannelBannedUsers/component/OpenChannelBannedUsersList.js +54 -0
- package/lib/commonjs/domain/openChannelBannedUsers/component/OpenChannelBannedUsersList.js.map +1 -0
- package/lib/commonjs/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusEmpty.js +28 -0
- package/lib/commonjs/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusEmpty.js.map +1 -0
- package/lib/commonjs/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusError.js +32 -0
- package/lib/commonjs/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusError.js.map +1 -0
- package/lib/commonjs/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusLoading.js +28 -0
- package/lib/commonjs/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusLoading.js.map +1 -0
- package/lib/commonjs/domain/openChannelBannedUsers/index.js +70 -0
- package/lib/commonjs/domain/openChannelBannedUsers/index.js.map +1 -0
- package/lib/commonjs/domain/openChannelBannedUsers/module/createOpenChannelBannedUsersModule.js +45 -0
- package/lib/commonjs/domain/openChannelBannedUsers/module/createOpenChannelBannedUsersModule.js.map +1 -0
- package/lib/commonjs/domain/openChannelBannedUsers/module/moduleContext.js +45 -0
- package/lib/commonjs/domain/openChannelBannedUsers/module/moduleContext.js.map +1 -0
- package/lib/commonjs/domain/openChannelBannedUsers/types.js +6 -0
- package/lib/commonjs/domain/openChannelBannedUsers/types.js.map +1 -0
- package/lib/commonjs/domain/openChannelCreate/component/OpenChannelCreateHeader.js +53 -0
- package/lib/commonjs/domain/openChannelCreate/component/OpenChannelCreateHeader.js.map +1 -0
- package/lib/commonjs/domain/openChannelCreate/component/OpenChannelCreateProfileInput.js +169 -0
- package/lib/commonjs/domain/openChannelCreate/component/OpenChannelCreateProfileInput.js.map +1 -0
- package/lib/commonjs/domain/openChannelCreate/component/OpenChannelCreateStatusLoading.js +22 -0
- package/lib/commonjs/domain/openChannelCreate/component/OpenChannelCreateStatusLoading.js.map +1 -0
- package/lib/commonjs/domain/openChannelCreate/index.js +54 -0
- package/lib/commonjs/domain/openChannelCreate/index.js.map +1 -0
- package/lib/commonjs/domain/openChannelCreate/module/createOpenChannelCreateModule.js +37 -0
- package/lib/commonjs/domain/openChannelCreate/module/createOpenChannelCreateModule.js.map +1 -0
- package/lib/commonjs/domain/openChannelCreate/module/moduleContext.js +44 -0
- package/lib/commonjs/domain/openChannelCreate/module/moduleContext.js.map +1 -0
- package/lib/commonjs/domain/openChannelCreate/types.js +6 -0
- package/lib/commonjs/domain/openChannelCreate/types.js.map +1 -0
- package/lib/commonjs/domain/openChannelList/component/OpenChannelListHeader.js +39 -0
- package/lib/commonjs/domain/openChannelList/component/OpenChannelListHeader.js.map +1 -0
- package/lib/commonjs/domain/openChannelList/component/OpenChannelListList.js +58 -0
- package/lib/commonjs/domain/openChannelList/component/OpenChannelListList.js.map +1 -0
- package/lib/commonjs/domain/openChannelList/component/OpenChannelListStatusEmpty.js +34 -0
- package/lib/commonjs/domain/openChannelList/component/OpenChannelListStatusEmpty.js.map +1 -0
- package/lib/commonjs/domain/openChannelList/component/OpenChannelListStatusError.js +32 -0
- package/lib/commonjs/domain/openChannelList/component/OpenChannelListStatusError.js.map +1 -0
- package/lib/commonjs/domain/openChannelList/component/OpenChannelListStatusLoading.js +34 -0
- package/lib/commonjs/domain/openChannelList/component/OpenChannelListStatusLoading.js.map +1 -0
- package/lib/commonjs/domain/openChannelList/index.js +70 -0
- package/lib/commonjs/domain/openChannelList/index.js.map +1 -0
- package/lib/commonjs/domain/openChannelList/module/createOpenChannelListModule.js +45 -0
- package/lib/commonjs/domain/openChannelList/module/createOpenChannelListModule.js.map +1 -0
- package/lib/commonjs/domain/openChannelList/module/moduleContext.js +42 -0
- package/lib/commonjs/domain/openChannelList/module/moduleContext.js.map +1 -0
- package/lib/commonjs/domain/openChannelList/types.js +6 -0
- package/lib/commonjs/domain/openChannelList/types.js.map +1 -0
- package/lib/commonjs/domain/openChannelModeration/component/OpenChannelModerationHeader.js +39 -0
- package/lib/commonjs/domain/openChannelModeration/component/OpenChannelModerationHeader.js.map +1 -0
- package/lib/commonjs/domain/openChannelModeration/component/OpenChannelModerationMenu.js +74 -0
- package/lib/commonjs/domain/openChannelModeration/component/OpenChannelModerationMenu.js.map +1 -0
- package/lib/commonjs/domain/openChannelModeration/index.js +46 -0
- package/lib/commonjs/domain/openChannelModeration/index.js.map +1 -0
- package/lib/commonjs/domain/openChannelModeration/module/createOpenChannelModerationModule.js +33 -0
- package/lib/commonjs/domain/openChannelModeration/module/createOpenChannelModerationModule.js.map +1 -0
- package/lib/commonjs/domain/openChannelModeration/module/moduleContext.js +45 -0
- package/lib/commonjs/domain/openChannelModeration/module/moduleContext.js.map +1 -0
- package/lib/commonjs/domain/openChannelModeration/types.js +6 -0
- package/lib/commonjs/domain/openChannelModeration/types.js.map +1 -0
- package/lib/commonjs/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsHeader.js +39 -0
- package/lib/commonjs/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsHeader.js.map +1 -0
- package/lib/commonjs/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsList.js +54 -0
- package/lib/commonjs/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsList.js.map +1 -0
- package/lib/commonjs/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusEmpty.js +28 -0
- package/lib/commonjs/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusEmpty.js.map +1 -0
- package/lib/commonjs/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusError.js +32 -0
- package/lib/commonjs/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusError.js.map +1 -0
- package/lib/commonjs/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusLoading.js +28 -0
- package/lib/commonjs/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusLoading.js.map +1 -0
- package/lib/commonjs/domain/openChannelMutedParticipants/index.js +62 -0
- package/lib/commonjs/domain/openChannelMutedParticipants/index.js.map +1 -0
- package/lib/commonjs/domain/openChannelMutedParticipants/module/createOpenChannelMutedParticipantsModule.js +45 -0
- package/lib/commonjs/domain/openChannelMutedParticipants/module/createOpenChannelMutedParticipantsModule.js.map +1 -0
- package/lib/commonjs/domain/openChannelMutedParticipants/module/moduleContext.js +45 -0
- package/lib/commonjs/domain/openChannelMutedParticipants/module/moduleContext.js.map +1 -0
- package/lib/commonjs/domain/openChannelMutedParticipants/types.js +6 -0
- package/lib/commonjs/domain/openChannelMutedParticipants/types.js.map +1 -0
- package/lib/commonjs/domain/openChannelOperators/component/OpenChannelOperatorsHeader.js +44 -0
- package/lib/commonjs/domain/openChannelOperators/component/OpenChannelOperatorsHeader.js.map +1 -0
- package/lib/commonjs/domain/openChannelOperators/component/OpenChannelOperatorsList.js +54 -0
- package/lib/commonjs/domain/openChannelOperators/component/OpenChannelOperatorsList.js.map +1 -0
- package/lib/commonjs/domain/openChannelOperators/component/OpenChannelOperatorsStatusEmpty.js +28 -0
- package/lib/commonjs/domain/openChannelOperators/component/OpenChannelOperatorsStatusEmpty.js.map +1 -0
- package/lib/commonjs/domain/openChannelOperators/component/OpenChannelOperatorsStatusError.js +32 -0
- package/lib/commonjs/domain/openChannelOperators/component/OpenChannelOperatorsStatusError.js.map +1 -0
- package/lib/commonjs/domain/openChannelOperators/component/OpenChannelOperatorsStatusLoading.js +28 -0
- package/lib/commonjs/domain/openChannelOperators/component/OpenChannelOperatorsStatusLoading.js.map +1 -0
- package/lib/commonjs/domain/openChannelOperators/index.js +62 -0
- package/lib/commonjs/domain/openChannelOperators/index.js.map +1 -0
- package/lib/commonjs/domain/openChannelOperators/module/createOpenChannelOperatorsModule.js +45 -0
- package/lib/commonjs/domain/openChannelOperators/module/createOpenChannelOperatorsModule.js.map +1 -0
- package/lib/commonjs/domain/openChannelOperators/module/moduleContext.js +45 -0
- package/lib/commonjs/domain/openChannelOperators/module/moduleContext.js.map +1 -0
- package/lib/commonjs/domain/openChannelOperators/types.js +6 -0
- package/lib/commonjs/domain/openChannelOperators/types.js.map +1 -0
- package/lib/commonjs/domain/openChannelSettings/component/OpenChannelSettingsHeader.js +49 -0
- package/lib/commonjs/domain/openChannelSettings/component/OpenChannelSettingsHeader.js.map +1 -0
- package/lib/commonjs/domain/openChannelSettings/component/OpenChannelSettingsInfo.js +68 -0
- package/lib/commonjs/domain/openChannelSettings/component/OpenChannelSettingsInfo.js.map +1 -0
- package/lib/commonjs/domain/openChannelSettings/component/OpenChannelSettingsMenu.js +118 -0
- package/lib/commonjs/domain/openChannelSettings/component/OpenChannelSettingsMenu.js.map +1 -0
- package/lib/commonjs/domain/openChannelSettings/index.js +54 -0
- package/lib/commonjs/domain/openChannelSettings/index.js.map +1 -0
- package/lib/commonjs/domain/openChannelSettings/module/createOpenChannelSettingsModule.js +37 -0
- package/lib/commonjs/domain/openChannelSettings/module/createOpenChannelSettingsModule.js.map +1 -0
- package/lib/commonjs/domain/openChannelSettings/module/moduleContext.js +186 -0
- package/lib/commonjs/domain/openChannelSettings/module/moduleContext.js.map +1 -0
- package/lib/commonjs/domain/openChannelSettings/types.js +6 -0
- package/lib/commonjs/domain/openChannelSettings/types.js.map +1 -0
- package/lib/commonjs/domain/openChannelUserList/types.js +6 -0
- package/lib/commonjs/domain/openChannelUserList/types.js.map +1 -0
- package/lib/commonjs/fragments/createGroupChannelCreateFragment.js +3 -6
- package/lib/commonjs/fragments/createGroupChannelCreateFragment.js.map +1 -1
- package/lib/commonjs/fragments/createGroupChannelFragment.js +33 -3
- package/lib/commonjs/fragments/createGroupChannelFragment.js.map +1 -1
- package/lib/commonjs/fragments/createGroupChannelListFragment.js +4 -14
- package/lib/commonjs/fragments/createGroupChannelListFragment.js.map +1 -1
- package/lib/commonjs/fragments/createGroupChannelMembersFragment.js +6 -8
- package/lib/commonjs/fragments/createGroupChannelMembersFragment.js.map +1 -1
- package/lib/commonjs/fragments/createGroupChannelMutedMembersFragment.js +13 -4
- package/lib/commonjs/fragments/createGroupChannelMutedMembersFragment.js.map +1 -1
- package/lib/commonjs/fragments/createGroupChannelOperatorsFragment.js +2 -4
- package/lib/commonjs/fragments/createGroupChannelOperatorsFragment.js.map +1 -1
- package/lib/commonjs/fragments/createOpenChannelBannedUsersFragment.js +101 -0
- package/lib/commonjs/fragments/createOpenChannelBannedUsersFragment.js.map +1 -0
- package/lib/commonjs/fragments/createOpenChannelCreateFragment.js +86 -0
- package/lib/commonjs/fragments/createOpenChannelCreateFragment.js.map +1 -0
- package/lib/commonjs/fragments/createOpenChannelFragment.js +177 -0
- package/lib/commonjs/fragments/createOpenChannelFragment.js.map +1 -0
- package/lib/commonjs/fragments/createOpenChannelListFragment.js +93 -0
- package/lib/commonjs/fragments/createOpenChannelListFragment.js.map +1 -0
- package/lib/commonjs/fragments/createOpenChannelModerationFragment.js +68 -0
- package/lib/commonjs/fragments/createOpenChannelModerationFragment.js.map +1 -0
- package/lib/commonjs/fragments/createOpenChannelMutedParticipantsFragment.js +117 -0
- package/lib/commonjs/fragments/createOpenChannelMutedParticipantsFragment.js.map +1 -0
- package/lib/commonjs/fragments/createOpenChannelOperatorsFragment.js +124 -0
- package/lib/commonjs/fragments/createOpenChannelOperatorsFragment.js.map +1 -0
- package/lib/commonjs/fragments/createOpenChannelParticipantsFragment.js +162 -0
- package/lib/commonjs/fragments/createOpenChannelParticipantsFragment.js.map +1 -0
- package/lib/commonjs/fragments/createOpenChannelRegisterOperatorFragment.js +116 -0
- package/lib/commonjs/fragments/createOpenChannelRegisterOperatorFragment.js.map +1 -0
- package/lib/commonjs/fragments/createOpenChannelSettingsFragment.js +70 -0
- package/lib/commonjs/fragments/createOpenChannelSettingsFragment.js.map +1 -0
- package/lib/commonjs/hooks/useKeyboardStatus.js +13 -9
- package/lib/commonjs/hooks/useKeyboardStatus.js.map +1 -1
- package/lib/commonjs/hooks/useMentionSuggestion.js +3 -12
- package/lib/commonjs/hooks/useMentionSuggestion.js.map +1 -1
- package/lib/commonjs/index.js +475 -46
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/libs/ImageCompressionConfig.js +38 -0
- package/lib/commonjs/libs/ImageCompressionConfig.js.map +1 -0
- package/lib/commonjs/libs/SBUUtils.js +27 -0
- package/lib/commonjs/libs/SBUUtils.js.map +1 -1
- package/lib/commonjs/localization/StringSet.en.js +2 -2
- package/lib/commonjs/localization/StringSet.en.js.map +1 -1
- package/lib/commonjs/localization/StringSet.type.js +0 -247
- package/lib/commonjs/localization/StringSet.type.js.map +1 -1
- package/lib/commonjs/localization/createBaseStringSet.js +393 -0
- package/lib/commonjs/localization/createBaseStringSet.js.map +1 -0
- package/lib/commonjs/platform/createFileService.native.js +5 -0
- package/lib/commonjs/platform/createFileService.native.js.map +1 -1
- package/lib/commonjs/platform/createMediaService.expo.js +35 -1
- package/lib/commonjs/platform/createMediaService.expo.js.map +1 -1
- package/lib/commonjs/platform/createMediaService.native.js +41 -6
- package/lib/commonjs/platform/createMediaService.native.js.map +1 -1
- package/lib/commonjs/platform/dynamicModule.js +9 -57
- package/lib/commonjs/platform/dynamicModule.js.map +1 -1
- package/lib/commonjs/platform/types.js.map +1 -1
- package/lib/commonjs/version.js +1 -1
- package/lib/commonjs/version.js.map +1 -1
- package/lib/module/components/ChannelCover.js +47 -33
- package/lib/module/components/ChannelCover.js.map +1 -1
- package/lib/module/{domain/groupChannel/component/GroupChannelInput → components/ChannelInput}/EditInput.js +28 -13
- package/lib/module/components/ChannelInput/EditInput.js.map +1 -0
- package/lib/module/components/ChannelInput/SendInput.js +267 -0
- package/lib/module/components/ChannelInput/SendInput.js.map +1 -0
- package/lib/module/{domain/groupChannel/component/GroupChannelInput → components/ChannelInput}/index.js +36 -35
- package/lib/module/components/ChannelInput/index.js.map +1 -0
- package/lib/module/components/FileViewer.js +5 -8
- package/lib/module/components/FileViewer.js.map +1 -1
- package/lib/module/components/MessageRenderer/FileMessage/BaseFileMessage.js +1 -1
- package/lib/module/components/MessageRenderer/FileMessage/BaseFileMessage.js.map +1 -1
- package/lib/module/components/MessageRenderer/FileMessage/ImageFileMessage.js +1 -1
- package/lib/module/components/MessageRenderer/FileMessage/ImageFileMessage.js.map +1 -1
- package/lib/module/components/MessageRenderer/FileMessage/VideoFileMessage.js +3 -3
- package/lib/module/components/MessageRenderer/FileMessage/VideoFileMessage.js.map +1 -1
- package/lib/module/components/MessageRenderer/FileMessage/index.js +1 -5
- package/lib/module/components/MessageRenderer/FileMessage/index.js.map +1 -1
- package/lib/module/components/MessageRenderer/MessageDateSeparator.js.map +1 -1
- package/lib/module/components/MessageRenderer/MessageIncomingSenderName.js +1 -1
- package/lib/module/components/MessageRenderer/MessageIncomingSenderName.js.map +1 -1
- package/lib/module/components/MessageRenderer/MessageTime.js +1 -1
- package/lib/module/components/MessageRenderer/MessageTime.js.map +1 -1
- package/lib/module/components/MessageRenderer/UnknownMessage/index.js +1 -1
- package/lib/module/components/MessageRenderer/UnknownMessage/index.js.map +1 -1
- package/lib/module/components/MessageRenderer/UserMessage/BaseUserMessage.js +3 -3
- package/lib/module/components/MessageRenderer/UserMessage/BaseUserMessage.js.map +1 -1
- package/lib/module/components/MessageRenderer/UserMessage/OpenGraphUserMessage.js +5 -5
- package/lib/module/components/MessageRenderer/UserMessage/OpenGraphUserMessage.js.map +1 -1
- package/lib/module/components/OpenChannelMessageRenderer/OpenChannelMessageDateSeparator.js +44 -0
- package/lib/module/components/OpenChannelMessageRenderer/OpenChannelMessageDateSeparator.js.map +1 -0
- package/lib/module/components/OpenChannelMessageRenderer/index.js +119 -0
- package/lib/module/components/OpenChannelMessageRenderer/index.js.map +1 -0
- package/lib/module/components/ReactionAddons/BottomSheetReactionAddon.js +3 -4
- package/lib/module/components/ReactionAddons/BottomSheetReactionAddon.js.map +1 -1
- package/lib/module/components/TypedPlaceholder.js +6 -0
- package/lib/module/components/TypedPlaceholder.js.map +1 -1
- package/lib/module/containers/GroupChannelPreviewContainer.js +3 -3
- package/lib/module/containers/GroupChannelPreviewContainer.js.map +1 -1
- package/lib/module/containers/SendbirdUIKitContainer.js +28 -6
- package/lib/module/containers/SendbirdUIKitContainer.js.map +1 -1
- package/lib/module/contexts/PlatformServiceCtx.js.map +1 -1
- package/lib/module/contexts/SendbirdChatCtx.js +12 -14
- package/lib/module/contexts/SendbirdChatCtx.js.map +1 -1
- package/lib/module/contexts/UserProfileCtx.js +21 -11
- package/lib/module/contexts/UserProfileCtx.js.map +1 -1
- package/lib/module/domain/groupChannel/component/GroupChannelInput.js +36 -0
- package/lib/module/domain/groupChannel/component/GroupChannelInput.js.map +1 -0
- package/lib/module/domain/groupChannel/component/GroupChannelMessageList.js +13 -12
- package/lib/module/domain/groupChannel/component/GroupChannelMessageList.js.map +1 -1
- package/lib/module/domain/groupChannel/module/moduleContext.js +3 -3
- 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/groupChannelBannedUsers/index.js +1 -0
- package/lib/module/domain/groupChannelBannedUsers/index.js.map +1 -1
- package/lib/module/domain/groupChannelList/component/GroupChannelListList.js +2 -2
- package/lib/module/domain/groupChannelList/component/GroupChannelListList.js.map +1 -1
- package/lib/module/domain/groupChannelMutedMembers/component/GroupChannelMutedMembersList.js +4 -2
- package/lib/module/domain/groupChannelMutedMembers/component/GroupChannelMutedMembersList.js.map +1 -1
- package/lib/module/domain/groupChannelOperators/component/GroupChannelOperatorsList.js +4 -2
- package/lib/module/domain/groupChannelOperators/component/GroupChannelOperatorsList.js.map +1 -1
- package/lib/module/domain/groupChannelSettings/component/GroupChannelSettingsInfo.js +1 -1
- package/lib/module/domain/groupChannelSettings/component/GroupChannelSettingsInfo.js.map +1 -1
- package/lib/module/domain/groupChannelSettings/module/moduleContext.js +5 -6
- package/lib/module/domain/groupChannelSettings/module/moduleContext.js.map +1 -1
- package/lib/module/domain/openChannel/component/OpenChannelHeader.js +63 -0
- package/lib/module/domain/openChannel/component/OpenChannelHeader.js.map +1 -0
- package/lib/module/domain/openChannel/component/OpenChannelInput.js +74 -0
- package/lib/module/domain/openChannel/component/OpenChannelInput.js.map +1 -0
- package/lib/module/domain/openChannel/component/OpenChannelMessageList.js +325 -0
- package/lib/module/domain/openChannel/component/OpenChannelMessageList.js.map +1 -0
- package/lib/module/domain/openChannel/component/OpenChannelStatusEmpty.js +21 -0
- package/lib/module/domain/openChannel/component/OpenChannelStatusEmpty.js.map +1 -0
- package/lib/module/domain/openChannel/component/OpenChannelStatusLoading.js +21 -0
- package/lib/module/domain/openChannel/component/OpenChannelStatusLoading.js.map +1 -0
- package/lib/module/domain/openChannel/index.js +7 -0
- package/lib/module/domain/openChannel/index.js.map +1 -0
- package/lib/module/domain/openChannel/module/createOpenChannelModule.js +30 -0
- package/lib/module/domain/openChannel/module/createOpenChannelModule.js.map +1 -0
- package/lib/module/domain/openChannel/module/moduleContext.js +32 -0
- package/lib/module/domain/openChannel/module/moduleContext.js.map +1 -0
- package/lib/module/domain/openChannel/types.js +2 -0
- package/lib/module/domain/openChannel/types.js.map +1 -0
- package/lib/module/domain/openChannelBannedUsers/component/OpenChannelBannedUsersHeader.js +25 -0
- package/lib/module/domain/openChannelBannedUsers/component/OpenChannelBannedUsersHeader.js.map +1 -0
- package/lib/module/domain/openChannelBannedUsers/component/OpenChannelBannedUsersList.js +41 -0
- package/lib/module/domain/openChannelBannedUsers/component/OpenChannelBannedUsersList.js.map +1 -0
- package/lib/module/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusEmpty.js +16 -0
- package/lib/module/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusEmpty.js.map +1 -0
- package/lib/module/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusError.js +20 -0
- package/lib/module/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusError.js.map +1 -0
- package/lib/module/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusLoading.js +16 -0
- package/lib/module/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusLoading.js.map +1 -0
- package/lib/module/domain/openChannelBannedUsers/index.js +8 -0
- package/lib/module/domain/openChannelBannedUsers/index.js.map +1 -0
- package/lib/module/domain/openChannelBannedUsers/module/createOpenChannelBannedUsersModule.js +30 -0
- package/lib/module/domain/openChannelBannedUsers/module/createOpenChannelBannedUsersModule.js.map +1 -0
- package/lib/module/domain/openChannelBannedUsers/module/moduleContext.js +25 -0
- package/lib/module/domain/openChannelBannedUsers/module/moduleContext.js.map +1 -0
- package/lib/module/domain/openChannelBannedUsers/types.js +2 -0
- package/lib/module/domain/openChannelBannedUsers/types.js.map +1 -0
- package/lib/module/domain/openChannelCreate/component/OpenChannelCreateHeader.js +38 -0
- package/lib/module/domain/openChannelCreate/component/OpenChannelCreateHeader.js.map +1 -0
- package/lib/module/domain/openChannelCreate/component/OpenChannelCreateProfileInput.js +153 -0
- package/lib/module/domain/openChannelCreate/component/OpenChannelCreateProfileInput.js.map +1 -0
- package/lib/module/domain/openChannelCreate/component/OpenChannelCreateStatusLoading.js +11 -0
- package/lib/module/domain/openChannelCreate/component/OpenChannelCreateStatusLoading.js.map +1 -0
- package/lib/module/domain/openChannelCreate/index.js +6 -0
- package/lib/module/domain/openChannelCreate/index.js.map +1 -0
- package/lib/module/domain/openChannelCreate/module/createOpenChannelCreateModule.js +24 -0
- package/lib/module/domain/openChannelCreate/module/createOpenChannelCreateModule.js.map +1 -0
- package/lib/module/domain/openChannelCreate/module/moduleContext.js +24 -0
- package/lib/module/domain/openChannelCreate/module/moduleContext.js.map +1 -0
- package/lib/module/domain/openChannelCreate/types.js +2 -0
- package/lib/module/domain/openChannelCreate/types.js.map +1 -0
- package/lib/module/domain/openChannelList/component/OpenChannelListHeader.js +25 -0
- package/lib/module/domain/openChannelList/component/OpenChannelListHeader.js.map +1 -0
- package/lib/module/domain/openChannelList/component/OpenChannelListList.js +45 -0
- package/lib/module/domain/openChannelList/component/OpenChannelListList.js.map +1 -0
- package/lib/module/domain/openChannelList/component/OpenChannelListStatusEmpty.js +21 -0
- package/lib/module/domain/openChannelList/component/OpenChannelListStatusEmpty.js.map +1 -0
- package/lib/module/domain/openChannelList/component/OpenChannelListStatusError.js +20 -0
- package/lib/module/domain/openChannelList/component/OpenChannelListStatusError.js.map +1 -0
- package/lib/module/domain/openChannelList/component/OpenChannelListStatusLoading.js +21 -0
- package/lib/module/domain/openChannelList/component/OpenChannelListStatusLoading.js.map +1 -0
- package/lib/module/domain/openChannelList/index.js +8 -0
- package/lib/module/domain/openChannelList/index.js.map +1 -0
- package/lib/module/domain/openChannelList/module/createOpenChannelListModule.js +30 -0
- package/lib/module/domain/openChannelList/module/createOpenChannelListModule.js.map +1 -0
- package/lib/module/domain/openChannelList/module/moduleContext.js +22 -0
- package/lib/module/domain/openChannelList/module/moduleContext.js.map +1 -0
- package/lib/module/domain/openChannelList/types.js +2 -0
- package/lib/module/domain/openChannelList/types.js.map +1 -0
- package/lib/module/domain/openChannelModeration/component/OpenChannelModerationHeader.js +25 -0
- package/lib/module/domain/openChannelModeration/component/OpenChannelModerationHeader.js.map +1 -0
- package/lib/module/domain/openChannelModeration/component/OpenChannelModerationMenu.js +61 -0
- package/lib/module/domain/openChannelModeration/component/OpenChannelModerationMenu.js.map +1 -0
- package/lib/module/domain/openChannelModeration/index.js +5 -0
- package/lib/module/domain/openChannelModeration/index.js.map +1 -0
- package/lib/module/domain/openChannelModeration/module/createOpenChannelModerationModule.js +21 -0
- package/lib/module/domain/openChannelModeration/module/createOpenChannelModerationModule.js.map +1 -0
- package/lib/module/domain/openChannelModeration/module/moduleContext.js +25 -0
- package/lib/module/domain/openChannelModeration/module/moduleContext.js.map +1 -0
- package/lib/module/domain/openChannelModeration/types.js +2 -0
- package/lib/module/domain/openChannelModeration/types.js.map +1 -0
- package/lib/module/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsHeader.js +25 -0
- package/lib/module/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsHeader.js.map +1 -0
- package/lib/module/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsList.js +41 -0
- package/lib/module/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsList.js.map +1 -0
- package/lib/module/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusEmpty.js +16 -0
- package/lib/module/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusEmpty.js.map +1 -0
- package/lib/module/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusError.js +20 -0
- package/lib/module/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusError.js.map +1 -0
- package/lib/module/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusLoading.js +16 -0
- package/lib/module/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusLoading.js.map +1 -0
- package/lib/module/domain/openChannelMutedParticipants/index.js +7 -0
- package/lib/module/domain/openChannelMutedParticipants/index.js.map +1 -0
- package/lib/module/domain/openChannelMutedParticipants/module/createOpenChannelMutedParticipantsModule.js +30 -0
- package/lib/module/domain/openChannelMutedParticipants/module/createOpenChannelMutedParticipantsModule.js.map +1 -0
- package/lib/module/domain/openChannelMutedParticipants/module/moduleContext.js +25 -0
- package/lib/module/domain/openChannelMutedParticipants/module/moduleContext.js.map +1 -0
- package/lib/module/domain/openChannelMutedParticipants/types.js +2 -0
- package/lib/module/domain/openChannelMutedParticipants/types.js.map +1 -0
- package/lib/module/domain/openChannelOperators/component/OpenChannelOperatorsHeader.js +30 -0
- package/lib/module/domain/openChannelOperators/component/OpenChannelOperatorsHeader.js.map +1 -0
- package/lib/module/domain/openChannelOperators/component/OpenChannelOperatorsList.js +41 -0
- package/lib/module/domain/openChannelOperators/component/OpenChannelOperatorsList.js.map +1 -0
- package/lib/module/domain/openChannelOperators/component/OpenChannelOperatorsStatusEmpty.js +16 -0
- package/lib/module/domain/openChannelOperators/component/OpenChannelOperatorsStatusEmpty.js.map +1 -0
- package/lib/module/domain/openChannelOperators/component/OpenChannelOperatorsStatusError.js +20 -0
- package/lib/module/domain/openChannelOperators/component/OpenChannelOperatorsStatusError.js.map +1 -0
- package/lib/module/domain/openChannelOperators/component/OpenChannelOperatorsStatusLoading.js +16 -0
- package/lib/module/domain/openChannelOperators/component/OpenChannelOperatorsStatusLoading.js.map +1 -0
- package/lib/module/domain/openChannelOperators/index.js +7 -0
- package/lib/module/domain/openChannelOperators/index.js.map +1 -0
- package/lib/module/domain/openChannelOperators/module/createOpenChannelOperatorsModule.js +30 -0
- package/lib/module/domain/openChannelOperators/module/createOpenChannelOperatorsModule.js.map +1 -0
- package/lib/module/domain/openChannelOperators/module/moduleContext.js +25 -0
- package/lib/module/domain/openChannelOperators/module/moduleContext.js.map +1 -0
- package/lib/module/domain/openChannelOperators/types.js +2 -0
- package/lib/module/domain/openChannelOperators/types.js.map +1 -0
- package/lib/module/domain/openChannelSettings/component/OpenChannelSettingsHeader.js +35 -0
- package/lib/module/domain/openChannelSettings/component/OpenChannelSettingsHeader.js.map +1 -0
- package/lib/module/domain/openChannelSettings/component/OpenChannelSettingsInfo.js +49 -0
- package/lib/module/domain/openChannelSettings/component/OpenChannelSettingsInfo.js.map +1 -0
- package/lib/module/domain/openChannelSettings/component/OpenChannelSettingsMenu.js +99 -0
- package/lib/module/domain/openChannelSettings/component/OpenChannelSettingsMenu.js.map +1 -0
- package/lib/module/domain/openChannelSettings/index.js +6 -0
- package/lib/module/domain/openChannelSettings/index.js.map +1 -0
- package/lib/module/domain/openChannelSettings/module/createOpenChannelSettingsModule.js +24 -0
- package/lib/module/domain/openChannelSettings/module/createOpenChannelSettingsModule.js.map +1 -0
- package/lib/module/domain/openChannelSettings/module/moduleContext.js +161 -0
- package/lib/module/domain/openChannelSettings/module/moduleContext.js.map +1 -0
- package/lib/module/domain/openChannelSettings/types.js +2 -0
- package/lib/module/domain/openChannelSettings/types.js.map +1 -0
- package/lib/module/domain/openChannelUserList/types.js +2 -0
- package/lib/module/domain/openChannelUserList/types.js.map +1 -0
- package/lib/module/fragments/createGroupChannelCreateFragment.js +4 -7
- package/lib/module/fragments/createGroupChannelCreateFragment.js.map +1 -1
- package/lib/module/fragments/createGroupChannelFragment.js +33 -3
- package/lib/module/fragments/createGroupChannelFragment.js.map +1 -1
- package/lib/module/fragments/createGroupChannelListFragment.js +5 -9
- package/lib/module/fragments/createGroupChannelListFragment.js.map +1 -1
- package/lib/module/fragments/createGroupChannelMembersFragment.js +7 -9
- package/lib/module/fragments/createGroupChannelMembersFragment.js.map +1 -1
- package/lib/module/fragments/createGroupChannelMutedMembersFragment.js +14 -4
- package/lib/module/fragments/createGroupChannelMutedMembersFragment.js.map +1 -1
- package/lib/module/fragments/createGroupChannelOperatorsFragment.js +3 -4
- package/lib/module/fragments/createGroupChannelOperatorsFragment.js.map +1 -1
- package/lib/module/fragments/createOpenChannelBannedUsersFragment.js +84 -0
- package/lib/module/fragments/createOpenChannelBannedUsersFragment.js.map +1 -0
- package/lib/module/fragments/createOpenChannelCreateFragment.js +69 -0
- package/lib/module/fragments/createOpenChannelCreateFragment.js.map +1 -0
- package/lib/module/fragments/createOpenChannelFragment.js +153 -0
- package/lib/module/fragments/createOpenChannelFragment.js.map +1 -0
- package/lib/module/fragments/createOpenChannelListFragment.js +77 -0
- package/lib/module/fragments/createOpenChannelListFragment.js.map +1 -0
- package/lib/module/fragments/createOpenChannelModerationFragment.js +53 -0
- package/lib/module/fragments/createOpenChannelModerationFragment.js.map +1 -0
- package/lib/module/fragments/createOpenChannelMutedParticipantsFragment.js +100 -0
- package/lib/module/fragments/createOpenChannelMutedParticipantsFragment.js.map +1 -0
- package/lib/module/fragments/createOpenChannelOperatorsFragment.js +106 -0
- package/lib/module/fragments/createOpenChannelOperatorsFragment.js.map +1 -0
- package/lib/module/fragments/createOpenChannelParticipantsFragment.js +140 -0
- package/lib/module/fragments/createOpenChannelParticipantsFragment.js.map +1 -0
- package/lib/module/fragments/createOpenChannelRegisterOperatorFragment.js +96 -0
- package/lib/module/fragments/createOpenChannelRegisterOperatorFragment.js.map +1 -0
- package/lib/module/fragments/createOpenChannelSettingsFragment.js +55 -0
- package/lib/module/fragments/createOpenChannelSettingsFragment.js.map +1 -0
- package/lib/module/hooks/useKeyboardStatus.js +12 -9
- package/lib/module/hooks/useKeyboardStatus.js.map +1 -1
- package/lib/module/hooks/useMentionSuggestion.js +5 -14
- package/lib/module/hooks/useMentionSuggestion.js.map +1 -1
- package/lib/module/index.js +48 -6
- package/lib/module/index.js.map +1 -1
- package/lib/module/libs/ImageCompressionConfig.js +30 -0
- package/lib/module/libs/ImageCompressionConfig.js.map +1 -0
- package/lib/module/libs/SBUUtils.js +26 -1
- package/lib/module/libs/SBUUtils.js.map +1 -1
- package/lib/module/localization/StringSet.en.js +1 -1
- package/lib/module/localization/StringSet.en.js.map +1 -1
- package/lib/module/localization/StringSet.type.js +1 -247
- package/lib/module/localization/StringSet.type.js.map +1 -1
- package/lib/module/localization/createBaseStringSet.js +384 -0
- package/lib/module/localization/createBaseStringSet.js.map +1 -0
- package/lib/module/platform/createFileService.native.js +5 -0
- package/lib/module/platform/createFileService.native.js.map +1 -1
- package/lib/module/platform/createMediaService.expo.js +33 -1
- package/lib/module/platform/createMediaService.expo.js.map +1 -1
- package/lib/module/platform/createMediaService.native.js +38 -5
- package/lib/module/platform/createMediaService.native.js.map +1 -1
- package/lib/module/platform/dynamicModule.js +10 -56
- package/lib/module/platform/dynamicModule.js.map +1 -1
- package/lib/module/platform/types.js.map +1 -1
- package/lib/module/version.js +1 -1
- package/lib/module/version.js.map +1 -1
- package/lib/typescript/src/components/ChannelCover.d.ts +2 -2
- package/lib/typescript/src/components/ChannelInput/EditInput.d.ts +16 -0
- package/lib/typescript/src/components/ChannelInput/SendInput.d.ts +12 -0
- package/lib/typescript/src/components/ChannelInput/index.d.ts +43 -0
- package/lib/typescript/src/components/OpenChannelMessageRenderer/OpenChannelMessageDateSeparator.d.ts +6 -0
- package/lib/typescript/src/components/OpenChannelMessageRenderer/index.d.ts +16 -0
- package/lib/typescript/src/components/TypedPlaceholder.d.ts +1 -1
- package/lib/typescript/src/containers/SendbirdUIKitContainer.d.ts +13 -9
- package/lib/typescript/src/contexts/PlatformServiceCtx.d.ts +8 -2
- package/lib/typescript/src/contexts/SendbirdChatCtx.d.ts +8 -3
- package/lib/typescript/src/contexts/UserProfileCtx.d.ts +6 -2
- package/lib/typescript/src/domain/groupChannel/component/GroupChannelInput.d.ts +3 -0
- package/lib/typescript/src/domain/groupChannel/types.d.ts +9 -28
- package/lib/typescript/src/domain/groupChannelBannedUsers/index.d.ts +1 -0
- package/lib/typescript/src/domain/groupChannelMutedMembers/component/GroupChannelMutedMembersList.d.ts +1 -1
- package/lib/typescript/src/domain/groupChannelOperators/component/GroupChannelOperatorsList.d.ts +1 -1
- package/lib/typescript/src/domain/openChannel/component/OpenChannelHeader.d.ts +7 -0
- package/lib/typescript/src/domain/openChannel/component/OpenChannelInput.d.ts +3 -0
- package/lib/typescript/src/domain/openChannel/component/OpenChannelMessageList.d.ts +39 -0
- package/lib/typescript/src/domain/openChannel/component/OpenChannelStatusEmpty.d.ts +2 -0
- package/lib/typescript/src/domain/openChannel/component/OpenChannelStatusLoading.d.ts +2 -0
- package/lib/typescript/src/domain/openChannel/index.d.ts +6 -0
- package/lib/typescript/src/domain/openChannel/module/createOpenChannelModule.d.ts +3 -0
- package/lib/typescript/src/domain/openChannel/module/moduleContext.d.ts +3 -0
- package/lib/typescript/src/domain/openChannel/types.d.ts +97 -0
- package/lib/typescript/src/domain/openChannelBannedUsers/component/OpenChannelBannedUsersHeader.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelBannedUsers/component/OpenChannelBannedUsersList.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusEmpty.d.ts +2 -0
- package/lib/typescript/src/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusError.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusLoading.d.ts +2 -0
- package/lib/typescript/src/domain/openChannelBannedUsers/index.d.ts +7 -0
- package/lib/typescript/src/domain/openChannelBannedUsers/module/createOpenChannelBannedUsersModule.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelBannedUsers/module/moduleContext.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelBannedUsers/types.d.ts +47 -0
- package/lib/typescript/src/domain/openChannelCreate/component/OpenChannelCreateHeader.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelCreate/component/OpenChannelCreateProfileInput.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelCreate/component/OpenChannelCreateStatusLoading.d.ts +2 -0
- package/lib/typescript/src/domain/openChannelCreate/index.d.ts +5 -0
- package/lib/typescript/src/domain/openChannelCreate/module/createOpenChannelCreateModule.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelCreate/module/moduleContext.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelCreate/types.d.ts +40 -0
- package/lib/typescript/src/domain/openChannelList/component/OpenChannelListHeader.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelList/component/OpenChannelListList.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelList/component/OpenChannelListStatusEmpty.d.ts +2 -0
- package/lib/typescript/src/domain/openChannelList/component/OpenChannelListStatusError.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelList/component/OpenChannelListStatusLoading.d.ts +2 -0
- package/lib/typescript/src/domain/openChannelList/index.d.ts +7 -0
- package/lib/typescript/src/domain/openChannelList/module/createOpenChannelListModule.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelList/module/moduleContext.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelList/types.d.ts +60 -0
- package/lib/typescript/src/domain/openChannelModeration/component/OpenChannelModerationHeader.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelModeration/component/OpenChannelModerationMenu.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelModeration/index.d.ts +4 -0
- package/lib/typescript/src/domain/openChannelModeration/module/createOpenChannelModerationModule.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelModeration/module/moduleContext.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelModeration/types.d.ts +43 -0
- package/lib/typescript/src/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsHeader.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsList.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusEmpty.d.ts +2 -0
- package/lib/typescript/src/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusError.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusLoading.d.ts +2 -0
- package/lib/typescript/src/domain/openChannelMutedParticipants/index.d.ts +6 -0
- package/lib/typescript/src/domain/openChannelMutedParticipants/module/createOpenChannelMutedParticipantsModule.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelMutedParticipants/module/moduleContext.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelMutedParticipants/types.d.ts +47 -0
- package/lib/typescript/src/domain/openChannelOperators/component/OpenChannelOperatorsHeader.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelOperators/component/OpenChannelOperatorsList.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelOperators/component/OpenChannelOperatorsStatusEmpty.d.ts +2 -0
- package/lib/typescript/src/domain/openChannelOperators/component/OpenChannelOperatorsStatusError.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelOperators/component/OpenChannelOperatorsStatusLoading.d.ts +2 -0
- package/lib/typescript/src/domain/openChannelOperators/index.d.ts +6 -0
- package/lib/typescript/src/domain/openChannelOperators/module/createOpenChannelOperatorsModule.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelOperators/module/moduleContext.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelOperators/types.d.ts +49 -0
- package/lib/typescript/src/domain/openChannelSettings/component/OpenChannelSettingsHeader.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelSettings/component/OpenChannelSettingsInfo.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelSettings/component/OpenChannelSettingsMenu.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelSettings/index.d.ts +5 -0
- package/lib/typescript/src/domain/openChannelSettings/module/createOpenChannelSettingsModule.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelSettings/module/moduleContext.d.ts +3 -0
- package/lib/typescript/src/domain/openChannelSettings/types.d.ts +49 -0
- package/lib/typescript/src/domain/openChannelUserList/types.d.ts +23 -0
- package/lib/typescript/src/fragments/createOpenChannelBannedUsersFragment.d.ts +3 -0
- package/lib/typescript/src/fragments/createOpenChannelCreateFragment.d.ts +3 -0
- package/lib/typescript/src/fragments/createOpenChannelFragment.d.ts +3 -0
- package/lib/typescript/src/fragments/createOpenChannelListFragment.d.ts +3 -0
- package/lib/typescript/src/fragments/createOpenChannelModerationFragment.d.ts +3 -0
- package/lib/typescript/src/fragments/createOpenChannelMutedParticipantsFragment.d.ts +3 -0
- package/lib/typescript/src/fragments/createOpenChannelOperatorsFragment.d.ts +3 -0
- package/lib/typescript/src/fragments/createOpenChannelParticipantsFragment.d.ts +5 -0
- package/lib/typescript/src/fragments/createOpenChannelRegisterOperatorFragment.d.ts +5 -0
- package/lib/typescript/src/fragments/createOpenChannelSettingsFragment.d.ts +3 -0
- package/lib/typescript/src/hooks/useContext.d.ts +2 -29
- package/lib/typescript/src/index.d.ts +44 -11
- package/lib/typescript/src/libs/ImageCompressionConfig.d.ts +16 -0
- package/lib/typescript/src/libs/MentionManager.d.ts +1 -1
- package/lib/typescript/src/libs/SBUUtils.d.ts +6 -0
- package/lib/typescript/src/localization/StringSet.type.d.ts +139 -26
- package/lib/typescript/src/localization/createBaseStringSet.d.ts +16 -0
- package/lib/typescript/src/platform/createMediaService.expo.d.ts +5 -1
- package/lib/typescript/src/platform/createMediaService.native.d.ts +7 -5
- package/lib/typescript/src/platform/dynamicModule.d.ts +7 -12
- package/lib/typescript/src/platform/types.d.ts +28 -3
- package/lib/typescript/src/version.d.ts +1 -1
- package/package.json +19 -8
- package/src/components/ChannelCover.tsx +46 -37
- package/src/{domain/groupChannel/component/GroupChannelInput → components/ChannelInput}/EditInput.tsx +30 -19
- package/src/components/ChannelInput/SendInput.tsx +302 -0
- package/src/{domain/groupChannel/component/GroupChannelInput → components/ChannelInput}/index.tsx +93 -37
- package/src/components/FileViewer.tsx +5 -8
- package/src/components/MessageRenderer/FileMessage/BaseFileMessage.tsx +1 -1
- package/src/components/MessageRenderer/FileMessage/ImageFileMessage.tsx +10 -1
- package/src/components/MessageRenderer/FileMessage/VideoFileMessage.tsx +7 -3
- package/src/components/MessageRenderer/FileMessage/index.tsx +1 -4
- package/src/components/MessageRenderer/MessageDateSeparator.tsx +1 -0
- package/src/components/MessageRenderer/MessageIncomingSenderName.tsx +1 -1
- package/src/components/MessageRenderer/MessageTime.tsx +1 -1
- package/src/components/MessageRenderer/UnknownMessage/index.tsx +1 -1
- package/src/components/MessageRenderer/UserMessage/BaseUserMessage.tsx +3 -3
- package/src/components/MessageRenderer/UserMessage/OpenGraphUserMessage.tsx +5 -5
- package/src/components/OpenChannelMessageRenderer/OpenChannelMessageDateSeparator.tsx +46 -0
- package/src/components/OpenChannelMessageRenderer/index.tsx +91 -0
- package/src/components/ReactionAddons/BottomSheetReactionAddon.tsx +3 -4
- package/src/components/TypedPlaceholder.tsx +3 -0
- package/src/containers/GroupChannelPreviewContainer.tsx +3 -3
- package/src/containers/SendbirdUIKitContainer.tsx +42 -12
- package/src/contexts/PlatformServiceCtx.tsx +9 -2
- package/src/contexts/SendbirdChatCtx.tsx +22 -19
- package/src/contexts/UserProfileCtx.tsx +27 -12
- package/src/domain/groupChannel/component/GroupChannelInput.tsx +42 -0
- package/src/domain/groupChannel/component/GroupChannelMessageList.tsx +13 -12
- package/src/domain/groupChannel/module/moduleContext.tsx +3 -3
- package/src/domain/groupChannel/types.ts +24 -37
- package/src/domain/groupChannelBannedUsers/index.ts +1 -0
- package/src/domain/groupChannelList/component/GroupChannelListList.tsx +2 -2
- package/src/domain/groupChannelMutedMembers/component/GroupChannelMutedMembersList.tsx +2 -0
- package/src/domain/groupChannelOperators/component/GroupChannelOperatorsList.tsx +2 -0
- package/src/domain/groupChannelSettings/component/GroupChannelSettingsInfo.tsx +1 -1
- package/src/domain/groupChannelSettings/module/moduleContext.tsx +11 -6
- package/src/domain/openChannel/component/OpenChannelHeader.tsx +47 -0
- package/src/domain/openChannel/component/OpenChannelInput.tsx +80 -0
- package/src/domain/openChannel/component/OpenChannelMessageList.tsx +322 -0
- package/src/domain/openChannel/component/OpenChannelStatusEmpty.tsx +18 -0
- package/src/domain/openChannel/component/OpenChannelStatusLoading.tsx +18 -0
- package/src/domain/openChannel/index.ts +6 -0
- package/src/domain/openChannel/module/createOpenChannelModule.tsx +21 -0
- package/src/domain/openChannel/module/moduleContext.tsx +41 -0
- package/src/domain/openChannel/types.ts +127 -0
- package/src/domain/openChannelBannedUsers/component/OpenChannelBannedUsersHeader.tsx +14 -0
- package/src/domain/openChannelBannedUsers/component/OpenChannelBannedUsersList.tsx +33 -0
- package/src/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusEmpty.tsx +15 -0
- package/src/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusError.tsx +16 -0
- package/src/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusLoading.tsx +15 -0
- package/src/domain/openChannelBannedUsers/index.ts +7 -0
- package/src/domain/openChannelBannedUsers/module/createOpenChannelBannedUsersModule.tsx +21 -0
- package/src/domain/openChannelBannedUsers/module/moduleContext.tsx +30 -0
- package/src/domain/openChannelBannedUsers/types.ts +50 -0
- package/src/domain/openChannelCreate/component/OpenChannelCreateHeader.tsx +35 -0
- package/src/domain/openChannelCreate/component/OpenChannelCreateProfileInput.tsx +155 -0
- package/src/domain/openChannelCreate/component/OpenChannelCreateStatusLoading.tsx +9 -0
- package/src/domain/openChannelCreate/index.ts +5 -0
- package/src/domain/openChannelCreate/module/createOpenChannelCreateModule.tsx +17 -0
- package/src/domain/openChannelCreate/module/moduleContext.tsx +28 -0
- package/src/domain/openChannelCreate/types.ts +45 -0
- package/src/domain/openChannelList/component/OpenChannelListHeader.tsx +14 -0
- package/src/domain/openChannelList/component/OpenChannelListList.tsx +37 -0
- package/src/domain/openChannelList/component/OpenChannelListStatusEmpty.tsx +18 -0
- package/src/domain/openChannelList/component/OpenChannelListStatusError.tsx +16 -0
- package/src/domain/openChannelList/component/OpenChannelListStatusLoading.tsx +18 -0
- package/src/domain/openChannelList/index.ts +7 -0
- package/src/domain/openChannelList/module/createOpenChannelListModule.tsx +21 -0
- package/src/domain/openChannelList/module/moduleContext.tsx +22 -0
- package/src/domain/openChannelList/types.ts +63 -0
- package/src/domain/openChannelModeration/component/OpenChannelModerationHeader.tsx +15 -0
- package/src/domain/openChannelModeration/component/OpenChannelModerationMenu.tsx +62 -0
- package/src/domain/openChannelModeration/index.ts +4 -0
- package/src/domain/openChannelModeration/module/createOpenChannelModerationModule.tsx +15 -0
- package/src/domain/openChannelModeration/module/moduleContext.tsx +33 -0
- package/src/domain/openChannelModeration/types.ts +48 -0
- package/src/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsHeader.tsx +14 -0
- package/src/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsList.tsx +33 -0
- package/src/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusEmpty.tsx +15 -0
- package/src/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusError.tsx +18 -0
- package/src/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusLoading.tsx +15 -0
- package/src/domain/openChannelMutedParticipants/index.ts +9 -0
- package/src/domain/openChannelMutedParticipants/module/createOpenChannelMutedParticipantsModule.tsx +21 -0
- package/src/domain/openChannelMutedParticipants/module/moduleContext.tsx +30 -0
- package/src/domain/openChannelMutedParticipants/types.ts +50 -0
- package/src/domain/openChannelOperators/component/OpenChannelOperatorsHeader.tsx +22 -0
- package/src/domain/openChannelOperators/component/OpenChannelOperatorsList.tsx +31 -0
- package/src/domain/openChannelOperators/component/OpenChannelOperatorsStatusEmpty.tsx +15 -0
- package/src/domain/openChannelOperators/component/OpenChannelOperatorsStatusError.tsx +16 -0
- package/src/domain/openChannelOperators/component/OpenChannelOperatorsStatusLoading.tsx +15 -0
- package/src/domain/openChannelOperators/index.ts +6 -0
- package/src/domain/openChannelOperators/module/createOpenChannelOperatorsModule.tsx +21 -0
- package/src/domain/openChannelOperators/module/moduleContext.tsx +27 -0
- package/src/domain/openChannelOperators/types.ts +52 -0
- package/src/domain/openChannelSettings/component/OpenChannelSettingsHeader.tsx +29 -0
- package/src/domain/openChannelSettings/component/OpenChannelSettingsInfo.tsx +47 -0
- package/src/domain/openChannelSettings/component/OpenChannelSettingsMenu.tsx +105 -0
- package/src/domain/openChannelSettings/index.ts +5 -0
- package/src/domain/openChannelSettings/module/createOpenChannelSettingsModule.tsx +17 -0
- package/src/domain/openChannelSettings/module/moduleContext.tsx +171 -0
- package/src/domain/openChannelSettings/types.ts +54 -0
- package/src/domain/openChannelUserList/types.ts +30 -0
- package/src/fragments/createGroupChannelCreateFragment.tsx +4 -7
- package/src/fragments/createGroupChannelFragment.tsx +37 -2
- package/src/fragments/createGroupChannelListFragment.tsx +5 -9
- package/src/fragments/createGroupChannelMembersFragment.tsx +11 -8
- package/src/fragments/createGroupChannelMutedMembersFragment.tsx +12 -5
- package/src/fragments/createGroupChannelOperatorsFragment.tsx +3 -4
- package/src/fragments/createOpenChannelBannedUsersFragment.tsx +80 -0
- package/src/fragments/createOpenChannelCreateFragment.tsx +77 -0
- package/src/fragments/createOpenChannelFragment.tsx +157 -0
- package/src/fragments/createOpenChannelListFragment.tsx +67 -0
- package/src/fragments/createOpenChannelModerationFragment.tsx +55 -0
- package/src/fragments/createOpenChannelMutedParticipantsFragment.tsx +100 -0
- package/src/fragments/createOpenChannelOperatorsFragment.tsx +101 -0
- package/src/fragments/createOpenChannelParticipantsFragment.tsx +144 -0
- package/src/fragments/createOpenChannelRegisterOperatorFragment.tsx +99 -0
- package/src/fragments/createOpenChannelSettingsFragment.tsx +57 -0
- package/src/hooks/useKeyboardStatus.ts +10 -5
- package/src/hooks/useMentionSuggestion.ts +10 -17
- package/src/index.ts +55 -48
- package/src/libs/ImageCompressionConfig.ts +31 -0
- package/src/libs/SBUUtils.ts +28 -1
- package/src/localization/StringSet.en.ts +1 -1
- package/src/localization/StringSet.type.ts +150 -255
- package/src/localization/createBaseStringSet.ts +369 -0
- package/src/platform/createFileService.native.ts +8 -0
- package/src/platform/createMediaService.expo.tsx +24 -1
- package/src/platform/createMediaService.native.tsx +31 -9
- package/src/platform/dynamicModule.ts +17 -59
- package/src/platform/types.ts +29 -7
- package/src/version.ts +1 -1
- package/lib/commonjs/domain/groupChannel/component/GroupChannelInput/EditInput.js.map +0 -1
- package/lib/commonjs/domain/groupChannel/component/GroupChannelInput/SendInput.js.map +0 -1
- package/lib/commonjs/domain/groupChannel/component/GroupChannelInput/index.js.map +0 -1
- package/lib/commonjs/utils/common.js +0 -19
- package/lib/commonjs/utils/common.js.map +0 -1
- package/lib/module/domain/groupChannel/component/GroupChannelInput/EditInput.js.map +0 -1
- package/lib/module/domain/groupChannel/component/GroupChannelInput/SendInput.js +0 -178
- package/lib/module/domain/groupChannel/component/GroupChannelInput/SendInput.js.map +0 -1
- package/lib/module/domain/groupChannel/component/GroupChannelInput/index.js.map +0 -1
- package/lib/module/utils/common.js +0 -7
- package/lib/module/utils/common.js.map +0 -1
- package/lib/typescript/__template__/component/__domain__Header.d.ts +0 -3
- package/lib/typescript/__template__/component/__domain__StatusEmpty.d.ts +0 -2
- package/lib/typescript/__template__/component/__domain__StatusLoading.d.ts +0 -2
- package/lib/typescript/__template__/component/__domain__View.d.ts +0 -3
- package/lib/typescript/__template__/create__domain__Fragment.d.ts +0 -2
- package/lib/typescript/__template__/index.d.ts +0 -6
- package/lib/typescript/__template__/module/create__domain__Module.d.ts +0 -3
- package/lib/typescript/__template__/module/moduleContext.d.ts +0 -3
- package/lib/typescript/__template__/types.d.ts +0 -31
- package/lib/typescript/src/domain/groupChannel/component/GroupChannelInput/EditInput.d.ts +0 -39
- package/lib/typescript/src/domain/groupChannel/component/GroupChannelInput/SendInput.d.ts +0 -37
- package/lib/typescript/src/domain/groupChannel/component/GroupChannelInput/index.d.ts +0 -26
- package/lib/typescript/src/utils/common.d.ts +0 -1
- package/src/domain/groupChannel/component/GroupChannelInput/SendInput.tsx +0 -208
- package/src/utils/common.ts +0 -8
package/src/libs/SBUUtils.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { Linking, Platform } from 'react-native';
|
|
1
|
+
import { Image, Linking, Platform } from 'react-native';
|
|
2
|
+
|
|
3
|
+
import { Logger } from '@sendbird/uikit-utils';
|
|
2
4
|
|
|
3
5
|
export default class SBUUtils {
|
|
4
6
|
static openSettings() {
|
|
@@ -6,4 +8,29 @@ export default class SBUUtils {
|
|
|
6
8
|
if (Platform.OS === 'ios') Linking.openURL('App-Prefs:root');
|
|
7
9
|
});
|
|
8
10
|
}
|
|
11
|
+
|
|
12
|
+
static openURL(url: string) {
|
|
13
|
+
const targetUrl = url.startsWith('http') ? url : 'https://' + url;
|
|
14
|
+
Linking.openURL(targetUrl).catch((err) => Logger.warn('Cannot open url', err));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static getImageSize(uri: string): Promise<{ width: number; height: number }> {
|
|
18
|
+
return new Promise((resolve, reject) => {
|
|
19
|
+
Image.getSize(
|
|
20
|
+
uri,
|
|
21
|
+
(width, height) => {
|
|
22
|
+
resolve({ width, height });
|
|
23
|
+
},
|
|
24
|
+
(error) => {
|
|
25
|
+
reject(error);
|
|
26
|
+
},
|
|
27
|
+
);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
static async safeRun(callback: () => Promise<void>) {
|
|
32
|
+
try {
|
|
33
|
+
await callback();
|
|
34
|
+
} catch (e) {}
|
|
35
|
+
}
|
|
9
36
|
}
|
|
@@ -1,26 +1,113 @@
|
|
|
1
1
|
import type { Locale } from 'date-fns';
|
|
2
2
|
|
|
3
3
|
import type {
|
|
4
|
-
PartialDeep,
|
|
5
4
|
SendbirdFileMessage,
|
|
6
5
|
SendbirdGroupChannel,
|
|
7
6
|
SendbirdMember,
|
|
8
7
|
SendbirdMessage,
|
|
8
|
+
SendbirdOpenChannel,
|
|
9
|
+
SendbirdParticipant,
|
|
9
10
|
SendbirdUser,
|
|
10
11
|
} from '@sendbird/uikit-utils';
|
|
11
|
-
import {
|
|
12
|
-
getDateSeparatorFormat,
|
|
13
|
-
getGroupChannelLastMessage,
|
|
14
|
-
getGroupChannelPreviewTime,
|
|
15
|
-
getGroupChannelTitle,
|
|
16
|
-
getMessageTimeFormat,
|
|
17
|
-
} from '@sendbird/uikit-utils';
|
|
18
12
|
|
|
19
13
|
/**
|
|
20
14
|
* StringSet interface
|
|
21
15
|
* Do not configure over 3 depths (for overrides easy)
|
|
22
16
|
* */
|
|
23
17
|
export interface StringSet {
|
|
18
|
+
OPEN_CHANNEL: {
|
|
19
|
+
/** OpenChannel > Header */
|
|
20
|
+
HEADER_TITLE: (channel: SendbirdOpenChannel) => string;
|
|
21
|
+
HEADER_SUBTITLE: (channel: SendbirdOpenChannel) => string;
|
|
22
|
+
|
|
23
|
+
/** OpenChannel > List */
|
|
24
|
+
LIST_BANNER_FROZEN: string;
|
|
25
|
+
LIST_DATE_SEPARATOR: (date: Date, locale?: Locale) => string;
|
|
26
|
+
|
|
27
|
+
/** OpenChannel > Message bubble */
|
|
28
|
+
MESSAGE_BUBBLE_TIME: (message: SendbirdMessage, locale?: Locale) => string;
|
|
29
|
+
MESSAGE_BUBBLE_FILE_TITLE: (message: SendbirdFileMessage) => string;
|
|
30
|
+
MESSAGE_BUBBLE_EDITED_POSTFIX: string;
|
|
31
|
+
MESSAGE_BUBBLE_UNKNOWN_TITLE: (message: SendbirdMessage) => string;
|
|
32
|
+
MESSAGE_BUBBLE_UNKNOWN_DESC: (message: SendbirdMessage) => string;
|
|
33
|
+
};
|
|
34
|
+
OPEN_CHANNEL_PARTICIPANTS: {
|
|
35
|
+
/** OpenChannelParticipants > Header */
|
|
36
|
+
HEADER_TITLE: string;
|
|
37
|
+
};
|
|
38
|
+
OPEN_CHANNEL_SETTINGS: {
|
|
39
|
+
/** OpenChannelSettings > Header */
|
|
40
|
+
HEADER_TITLE: string;
|
|
41
|
+
HEADER_RIGHT: string;
|
|
42
|
+
|
|
43
|
+
/** OpenChannelSettings > Info */
|
|
44
|
+
INFO_URL: string;
|
|
45
|
+
|
|
46
|
+
/** OpenChannelSettings > Menu */
|
|
47
|
+
MENU_MODERATION: string;
|
|
48
|
+
MENU_PARTICIPANTS: string;
|
|
49
|
+
MENU_DELETE_CHANNEL: string;
|
|
50
|
+
|
|
51
|
+
/** OpenChannelSettings > Dialog */
|
|
52
|
+
DIALOG_CHANNEL_DELETE_CONFIRM_TITLE: string;
|
|
53
|
+
DIALOG_CHANNEL_DELETE_CONFIRM_OK: string;
|
|
54
|
+
DIALOG_CHANNEL_DELETE_CONFIRM_CANCEL: string;
|
|
55
|
+
DIALOG_CHANGE_NAME: string;
|
|
56
|
+
DIALOG_CHANGE_IMAGE: string;
|
|
57
|
+
DIALOG_CHANGE_NAME_PROMPT_TITLE: string;
|
|
58
|
+
DIALOG_CHANGE_NAME_PROMPT_PLACEHOLDER: string;
|
|
59
|
+
DIALOG_CHANGE_NAME_PROMPT_CANCEL: string;
|
|
60
|
+
DIALOG_CHANGE_NAME_PROMPT_OK: string;
|
|
61
|
+
DIALOG_CHANGE_IMAGE_MENU_TITLE: string;
|
|
62
|
+
DIALOG_CHANGE_IMAGE_MENU_CAMERA: string;
|
|
63
|
+
DIALOG_CHANGE_IMAGE_MENU_PHOTO_LIBRARY: string;
|
|
64
|
+
};
|
|
65
|
+
OPEN_CHANNEL_LIST: {
|
|
66
|
+
/** OpenChannelList > Header */
|
|
67
|
+
HEADER_TITLE: string;
|
|
68
|
+
|
|
69
|
+
/** OpenChannelList > Channel preview */
|
|
70
|
+
CHANNEL_PREVIEW_TITLE: (channel: SendbirdOpenChannel) => string;
|
|
71
|
+
};
|
|
72
|
+
OPEN_CHANNEL_CREATE: {
|
|
73
|
+
/** OpenChannelCreate > Header */
|
|
74
|
+
HEADER_TITLE: string;
|
|
75
|
+
HEADER_RIGHT: string;
|
|
76
|
+
|
|
77
|
+
/** OpenChannelCreate > ProfileInput */
|
|
78
|
+
PLACEHOLDER: string;
|
|
79
|
+
|
|
80
|
+
/** OpenChannelCreate > Dialog */
|
|
81
|
+
DIALOG_IMAGE_MENU_REMOVE: string;
|
|
82
|
+
DIALOG_IMAGE_MENU_CAMERA: string;
|
|
83
|
+
DIALOG_IMAGE_MENU_PHOTO_LIBRARY: string;
|
|
84
|
+
};
|
|
85
|
+
OPEN_CHANNEL_MODERATION: {
|
|
86
|
+
/** OpenChannelModeration > Header */
|
|
87
|
+
HEADER_TITLE: string;
|
|
88
|
+
|
|
89
|
+
/** OpenChannelModeration > Menu */
|
|
90
|
+
MENU_OPERATORS: string;
|
|
91
|
+
MENU_MUTED_PARTICIPANTS: string;
|
|
92
|
+
MENU_BANNED_USERS: string;
|
|
93
|
+
};
|
|
94
|
+
OPEN_CHANNEL_BANNED_USERS: {
|
|
95
|
+
/** OpenChannelBannedUsers > Header */
|
|
96
|
+
HEADER_TITLE: string;
|
|
97
|
+
};
|
|
98
|
+
OPEN_CHANNEL_MUTED_PARTICIPANTS: {
|
|
99
|
+
/** OpenChannelMutedMembers > Header */
|
|
100
|
+
HEADER_TITLE: string;
|
|
101
|
+
};
|
|
102
|
+
OPEN_CHANNEL_OPERATORS: {
|
|
103
|
+
/** OpenChannelOperators > Header */
|
|
104
|
+
HEADER_TITLE: string;
|
|
105
|
+
};
|
|
106
|
+
OPEN_CHANNEL_REGISTER_OPERATOR: {
|
|
107
|
+
/** OpenChannelRegisterOperator > Header */
|
|
108
|
+
HEADER_TITLE: string;
|
|
109
|
+
HEADER_RIGHT: (params: { selectedUsers: Array<SendbirdParticipant> }) => string;
|
|
110
|
+
};
|
|
24
111
|
GROUP_CHANNEL: {
|
|
25
112
|
/** GroupChannel > Header */
|
|
26
113
|
HEADER_TITLE: (currentUserId: string, channel: SendbirdGroupChannel) => string;
|
|
@@ -37,33 +124,43 @@ export interface StringSet {
|
|
|
37
124
|
MESSAGE_BUBBLE_UNKNOWN_TITLE: (message: SendbirdMessage) => string;
|
|
38
125
|
MESSAGE_BUBBLE_UNKNOWN_DESC: (message: SendbirdMessage) => string;
|
|
39
126
|
|
|
40
|
-
/** GroupChannel > Input */
|
|
41
|
-
INPUT_PLACEHOLDER_ACTIVE: string;
|
|
42
|
-
INPUT_PLACEHOLDER_DISABLED: string;
|
|
43
|
-
INPUT_PLACEHOLDER_MUTED: string;
|
|
44
|
-
INPUT_EDIT_OK: string;
|
|
45
|
-
INPUT_EDIT_CANCEL: string;
|
|
46
|
-
|
|
47
127
|
/** GroupChannel > Suggested mention list */
|
|
48
128
|
MENTION_LIMITED: (mentionLimit: number) => string;
|
|
49
129
|
|
|
50
|
-
/**
|
|
130
|
+
/** @deprecated Please use LABELS.CHANNEL_MESSAGE_COPY **/
|
|
51
131
|
DIALOG_MESSAGE_COPY: string;
|
|
132
|
+
/** @deprecated Please use LABELS.CHANNEL_MESSAGE_EDIT **/
|
|
52
133
|
DIALOG_MESSAGE_EDIT: string;
|
|
134
|
+
/** @deprecated Please use LABELS.CHANNEL_MESSAGE_SAVE **/
|
|
53
135
|
DIALOG_MESSAGE_SAVE: string;
|
|
136
|
+
/** @deprecated Please use LABELS.CHANNEL_MESSAGE_DELETE **/
|
|
54
137
|
DIALOG_MESSAGE_DELETE: string;
|
|
55
|
-
/**
|
|
138
|
+
/** @deprecated Please use LABELS.CHANNEL_MESSAGE_DELETE_CONFIRM_TITLE **/
|
|
56
139
|
DIALOG_MESSAGE_DELETE_CONFIRM_TITLE: string;
|
|
140
|
+
/** @deprecated Please use LABELS.CHANNEL_MESSAGE_DELETE_CONFIRM_OK **/
|
|
57
141
|
DIALOG_MESSAGE_DELETE_CONFIRM_OK: string;
|
|
142
|
+
/** @deprecated Please use LABELS.CHANNEL_MESSAGE_DELETE_CONFIRM_CANCEL **/
|
|
58
143
|
DIALOG_MESSAGE_DELETE_CONFIRM_CANCEL: string;
|
|
59
|
-
/**
|
|
144
|
+
/** @deprecated Please use LABELS.CHANNEL_MESSAGE_FAILED_RETRY **/
|
|
60
145
|
DIALOG_MESSAGE_FAILED_RETRY: string;
|
|
146
|
+
/** @deprecated Please use LABELS.CHANNEL_MESSAGE_FAILED_REMOVE **/
|
|
61
147
|
DIALOG_MESSAGE_FAILED_REMOVE: string;
|
|
62
|
-
|
|
63
|
-
/** GroupChannel > Dialog > Attachments */
|
|
148
|
+
/** @deprecated Please use LABELS.CHANNEL_INPUT_ATTACHMENT_CAMERA **/
|
|
64
149
|
DIALOG_ATTACHMENT_CAMERA: string;
|
|
150
|
+
/** @deprecated Please use LABELS.CHANNEL_INPUT_ATTACHMENT_PHOTO_LIBRARY **/
|
|
65
151
|
DIALOG_ATTACHMENT_PHOTO_LIBRARY: string;
|
|
152
|
+
/** @deprecated Please use LABELS.CHANNEL_INPUT_ATTACHMENT_FILES **/
|
|
66
153
|
DIALOG_ATTACHMENT_FILES: string;
|
|
154
|
+
/** @deprecated Please use LABELS.CHANNEL_INPUT_PLACEHOLDER_ACTIVE **/
|
|
155
|
+
INPUT_PLACEHOLDER_ACTIVE: string;
|
|
156
|
+
/** @deprecated Please use LABELS.CHANNEL_INPUT_PLACEHOLDER_DISABLED **/
|
|
157
|
+
INPUT_PLACEHOLDER_DISABLED: string;
|
|
158
|
+
/** @deprecated Please use LABELS.CHANNEL_INPUT_PLACEHOLDER_MUTED **/
|
|
159
|
+
INPUT_PLACEHOLDER_MUTED: string;
|
|
160
|
+
/** @deprecated Please use LABELS.CHANNEL_INPUT_EDIT_OK **/
|
|
161
|
+
INPUT_EDIT_OK: string;
|
|
162
|
+
/** @deprecated Please use LABELS.CHANNEL_INPUT_EDIT_CANCEL **/
|
|
163
|
+
INPUT_EDIT_CANCEL: string;
|
|
67
164
|
};
|
|
68
165
|
GROUP_CHANNEL_SETTINGS: {
|
|
69
166
|
/** GroupChannelSettings > Header */
|
|
@@ -152,9 +249,9 @@ export interface StringSet {
|
|
|
152
249
|
/** GroupChannelMembers > Header */
|
|
153
250
|
HEADER_TITLE: string;
|
|
154
251
|
|
|
155
|
-
/** @deprecated Please use
|
|
252
|
+
/** @deprecated Please use LABELS.USER_BAR_ME_POSTFIX **/
|
|
156
253
|
USER_BAR_ME_POSTFIX: string;
|
|
157
|
-
/** @deprecated Please use
|
|
254
|
+
/** @deprecated Please use LABELS.USER_BAR_OPERATOR **/
|
|
158
255
|
USER_BAR_OPERATOR: string;
|
|
159
256
|
};
|
|
160
257
|
GROUP_CHANNEL_INVITE: {
|
|
@@ -169,6 +266,10 @@ export interface StringSet {
|
|
|
169
266
|
};
|
|
170
267
|
// UI
|
|
171
268
|
LABELS: {
|
|
269
|
+
PERMISSION_APP_NAME: string;
|
|
270
|
+
PERMISSION_CAMERA: string;
|
|
271
|
+
PERMISSION_DEVICE_STORAGE: string;
|
|
272
|
+
|
|
172
273
|
USER_NO_NAME: string;
|
|
173
274
|
CHANNEL_NO_MEMBERS: string;
|
|
174
275
|
TYPING_INDICATOR_TYPINGS: (users: SendbirdUser[]) => string | undefined;
|
|
@@ -182,6 +283,30 @@ export interface StringSet {
|
|
|
182
283
|
UNMUTE: string;
|
|
183
284
|
BAN: string;
|
|
184
285
|
UNBAN: string;
|
|
286
|
+
|
|
287
|
+
/** ChannelInput **/
|
|
288
|
+
CHANNEL_INPUT_PLACEHOLDER_ACTIVE: string;
|
|
289
|
+
CHANNEL_INPUT_PLACEHOLDER_DISABLED: string;
|
|
290
|
+
CHANNEL_INPUT_PLACEHOLDER_MUTED: string;
|
|
291
|
+
CHANNEL_INPUT_EDIT_OK: string;
|
|
292
|
+
CHANNEL_INPUT_EDIT_CANCEL: string;
|
|
293
|
+
/** ChannelInput > Attachments **/
|
|
294
|
+
CHANNEL_INPUT_ATTACHMENT_CAMERA: string;
|
|
295
|
+
CHANNEL_INPUT_ATTACHMENT_PHOTO_LIBRARY: string;
|
|
296
|
+
CHANNEL_INPUT_ATTACHMENT_FILES: string;
|
|
297
|
+
|
|
298
|
+
/** Channel > Message **/
|
|
299
|
+
CHANNEL_MESSAGE_COPY: string;
|
|
300
|
+
CHANNEL_MESSAGE_EDIT: string;
|
|
301
|
+
CHANNEL_MESSAGE_SAVE: string;
|
|
302
|
+
CHANNEL_MESSAGE_DELETE: string;
|
|
303
|
+
/** Channel > Message > Delete confirm **/
|
|
304
|
+
CHANNEL_MESSAGE_DELETE_CONFIRM_TITLE: string;
|
|
305
|
+
CHANNEL_MESSAGE_DELETE_CONFIRM_OK: string;
|
|
306
|
+
CHANNEL_MESSAGE_DELETE_CONFIRM_CANCEL: string;
|
|
307
|
+
/** Channel > Message > Failed **/
|
|
308
|
+
CHANNEL_MESSAGE_FAILED_RETRY: string;
|
|
309
|
+
CHANNEL_MESSAGE_FAILED_REMOVE: string;
|
|
185
310
|
};
|
|
186
311
|
FILE_VIEWER: {
|
|
187
312
|
TITLE: (message: SendbirdFileMessage) => string;
|
|
@@ -193,6 +318,7 @@ export interface StringSet {
|
|
|
193
318
|
NO_CHANNELS: string;
|
|
194
319
|
NO_MESSAGES: string;
|
|
195
320
|
NO_MUTED_MEMBERS: string;
|
|
321
|
+
NO_MUTED_PARTICIPANTS: string;
|
|
196
322
|
NO_RESULTS_FOUND: string;
|
|
197
323
|
ERROR: {
|
|
198
324
|
MESSAGE: string;
|
|
@@ -225,6 +351,8 @@ export interface StringSet {
|
|
|
225
351
|
TURN_ON_NOTIFICATIONS_ERROR: string;
|
|
226
352
|
TURN_OFF_NOTIFICATIONS_ERROR: string;
|
|
227
353
|
LEAVE_CHANNEL_ERROR: string;
|
|
354
|
+
UNKNOWN_ERROR: string;
|
|
355
|
+
GET_CHANNEL_ERROR: string;
|
|
228
356
|
};
|
|
229
357
|
PROFILE_CARD: {
|
|
230
358
|
BUTTON_MESSAGE: string;
|
|
@@ -232,236 +360,3 @@ export interface StringSet {
|
|
|
232
360
|
BODY: (user: SendbirdUser | SendbirdMember) => string;
|
|
233
361
|
};
|
|
234
362
|
}
|
|
235
|
-
|
|
236
|
-
type StringSetCreateOptions = {
|
|
237
|
-
dateLocale: Locale;
|
|
238
|
-
overrides?: PartialDeep<StringSet>;
|
|
239
|
-
};
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* Create string set
|
|
243
|
-
* You can create localized String set, you should provide locale for date and string as a parameters
|
|
244
|
-
*
|
|
245
|
-
* @param {StringSetCreateOptions.dateLocale} dateLocale Date locale (from date-fns)
|
|
246
|
-
* @param {StringSetCreateOptions.overrides} [overrides] Localized strings
|
|
247
|
-
* */
|
|
248
|
-
export const createBaseStringSet = ({ dateLocale, overrides }: StringSetCreateOptions): StringSet => {
|
|
249
|
-
const USER_NO_NAME = overrides?.LABELS?.USER_NO_NAME ?? '(No name)';
|
|
250
|
-
const CHANNEL_NO_MEMBERS = overrides?.LABELS?.CHANNEL_NO_MEMBERS ?? '(No members)';
|
|
251
|
-
return {
|
|
252
|
-
GROUP_CHANNEL: {
|
|
253
|
-
HEADER_TITLE: (currentUserId, channel) =>
|
|
254
|
-
getGroupChannelTitle(currentUserId, channel, USER_NO_NAME, CHANNEL_NO_MEMBERS),
|
|
255
|
-
LIST_BANNER_FROZEN: 'Channel is frozen',
|
|
256
|
-
LIST_DATE_SEPARATOR: (date, locale) => getDateSeparatorFormat(date, locale ?? dateLocale),
|
|
257
|
-
LIST_BUTTON_NEW_MSG: (newMessages) => `${newMessages.length} new messages`,
|
|
258
|
-
|
|
259
|
-
MESSAGE_BUBBLE_TIME: (message, locale) => getMessageTimeFormat(new Date(message.createdAt), locale ?? dateLocale),
|
|
260
|
-
MESSAGE_BUBBLE_FILE_TITLE: (message) => message.name,
|
|
261
|
-
MESSAGE_BUBBLE_EDITED_POSTFIX: ' (edited)',
|
|
262
|
-
MESSAGE_BUBBLE_UNKNOWN_TITLE: () => '(Unknown message type)',
|
|
263
|
-
MESSAGE_BUBBLE_UNKNOWN_DESC: () => 'Cannot read this message.',
|
|
264
|
-
|
|
265
|
-
INPUT_PLACEHOLDER_ACTIVE: 'Enter message',
|
|
266
|
-
INPUT_PLACEHOLDER_DISABLED: 'Chat not available in this channel.',
|
|
267
|
-
INPUT_PLACEHOLDER_MUTED: "You're muted by the operator.",
|
|
268
|
-
INPUT_EDIT_OK: 'Save',
|
|
269
|
-
INPUT_EDIT_CANCEL: 'Cancel',
|
|
270
|
-
|
|
271
|
-
MENTION_LIMITED: (mentionLimit) => `You can have up to ${mentionLimit} mentions per message.`,
|
|
272
|
-
|
|
273
|
-
DIALOG_MESSAGE_COPY: 'Copy',
|
|
274
|
-
DIALOG_MESSAGE_EDIT: 'Edit',
|
|
275
|
-
DIALOG_MESSAGE_SAVE: 'Save',
|
|
276
|
-
DIALOG_MESSAGE_DELETE: 'Delete',
|
|
277
|
-
DIALOG_MESSAGE_DELETE_CONFIRM_TITLE: 'Delete message?',
|
|
278
|
-
DIALOG_MESSAGE_DELETE_CONFIRM_OK: 'Delete',
|
|
279
|
-
DIALOG_MESSAGE_DELETE_CONFIRM_CANCEL: 'Cancel',
|
|
280
|
-
DIALOG_MESSAGE_FAILED_RETRY: 'Retry',
|
|
281
|
-
DIALOG_MESSAGE_FAILED_REMOVE: 'Remove',
|
|
282
|
-
|
|
283
|
-
DIALOG_ATTACHMENT_CAMERA: 'Camera',
|
|
284
|
-
DIALOG_ATTACHMENT_PHOTO_LIBRARY: 'Photo library',
|
|
285
|
-
DIALOG_ATTACHMENT_FILES: 'Files',
|
|
286
|
-
...overrides?.GROUP_CHANNEL,
|
|
287
|
-
},
|
|
288
|
-
GROUP_CHANNEL_SETTINGS: {
|
|
289
|
-
HEADER_TITLE: 'Channel information',
|
|
290
|
-
HEADER_RIGHT: 'Edit',
|
|
291
|
-
MENU_MODERATION: 'Moderation',
|
|
292
|
-
MENU_MEMBERS: 'Members',
|
|
293
|
-
MENU_LEAVE_CHANNEL: 'Leave channel',
|
|
294
|
-
MENU_NOTIFICATION: 'Notifications',
|
|
295
|
-
MENU_NOTIFICATION_LABEL_ON: 'On',
|
|
296
|
-
MENU_NOTIFICATION_LABEL_OFF: 'Off',
|
|
297
|
-
MENU_NOTIFICATION_LABEL_MENTION_ONLY: 'Mentions only',
|
|
298
|
-
DIALOG_CHANGE_NAME: 'Change channel name',
|
|
299
|
-
DIALOG_CHANGE_NAME_PROMPT_TITLE: 'Change channel name',
|
|
300
|
-
DIALOG_CHANGE_NAME_PROMPT_PLACEHOLDER: 'Enter name',
|
|
301
|
-
DIALOG_CHANGE_NAME_PROMPT_OK: 'Save',
|
|
302
|
-
DIALOG_CHANGE_NAME_PROMPT_CANCEL: 'Cancel',
|
|
303
|
-
DIALOG_CHANGE_IMAGE: 'Change channel image',
|
|
304
|
-
DIALOG_CHANGE_IMAGE_MENU_TITLE: 'Change channel image',
|
|
305
|
-
DIALOG_CHANGE_IMAGE_MENU_CAMERA: 'Take photo',
|
|
306
|
-
DIALOG_CHANGE_IMAGE_MENU_PHOTO_LIBRARY: 'Choose photo',
|
|
307
|
-
...overrides?.GROUP_CHANNEL_SETTINGS,
|
|
308
|
-
},
|
|
309
|
-
GROUP_CHANNEL_NOTIFICATIONS: {
|
|
310
|
-
HEADER_TITLE: 'Notifications',
|
|
311
|
-
MENU_NOTIFICATIONS: 'Notifications',
|
|
312
|
-
MENU_NOTIFICATIONS_DESC:
|
|
313
|
-
'Turn on push notifications if you wish to be notified when messages are delivered to this channel.',
|
|
314
|
-
MENU_NOTIFICATIONS_OPTION_ALL: 'All new messages',
|
|
315
|
-
MENU_NOTIFICATIONS_OPTION_MENTION_ONLY: 'Mentions only',
|
|
316
|
-
...overrides?.GROUP_CHANNEL_NOTIFICATIONS,
|
|
317
|
-
},
|
|
318
|
-
GROUP_CHANNEL_MODERATION: {
|
|
319
|
-
HEADER_TITLE: 'Moderation',
|
|
320
|
-
MENU_OPERATORS: 'Operators',
|
|
321
|
-
MENU_MUTED_MEMBERS: 'Muted members',
|
|
322
|
-
MENU_BANNED_USERS: 'Banned users',
|
|
323
|
-
MENU_FREEZE_CHANNEL: 'Freeze channel',
|
|
324
|
-
...overrides?.GROUP_CHANNEL_MODERATION,
|
|
325
|
-
},
|
|
326
|
-
GROUP_CHANNEL_OPERATORS: {
|
|
327
|
-
HEADER_TITLE: 'Operators',
|
|
328
|
-
...overrides?.GROUP_CHANNEL_OPERATORS,
|
|
329
|
-
},
|
|
330
|
-
GROUP_CHANNEL_REGISTER_OPERATOR: {
|
|
331
|
-
HEADER_TITLE: 'Set as operators',
|
|
332
|
-
HEADER_RIGHT: ({ selectedUsers }) => {
|
|
333
|
-
const len = selectedUsers.length;
|
|
334
|
-
if (len === 0) return 'Add';
|
|
335
|
-
return `Add (${len})`;
|
|
336
|
-
},
|
|
337
|
-
...overrides?.GROUP_CHANNEL_OPERATORS,
|
|
338
|
-
},
|
|
339
|
-
GROUP_CHANNEL_MUTED_MEMBERS: {
|
|
340
|
-
HEADER_TITLE: 'Muted members',
|
|
341
|
-
...overrides?.GROUP_CHANNEL_MUTED_MEMBERS,
|
|
342
|
-
},
|
|
343
|
-
GROUP_CHANNEL_BANNED_USERS: {
|
|
344
|
-
HEADER_TITLE: 'Banned users',
|
|
345
|
-
...overrides?.GROUP_CHANNEL_BANNED_USERS,
|
|
346
|
-
},
|
|
347
|
-
GROUP_CHANNEL_LIST: {
|
|
348
|
-
HEADER_TITLE: 'Channels',
|
|
349
|
-
CHANNEL_PREVIEW_TITLE: (currentUserId, channel) =>
|
|
350
|
-
getGroupChannelTitle(currentUserId, channel, USER_NO_NAME, CHANNEL_NO_MEMBERS),
|
|
351
|
-
CHANNEL_PREVIEW_TITLE_CAPTION: (channel, locale) => getGroupChannelPreviewTime(channel, locale ?? dateLocale),
|
|
352
|
-
CHANNEL_PREVIEW_BODY: (channel) => getGroupChannelLastMessage(channel),
|
|
353
|
-
TYPE_SELECTOR_HEADER_TITLE: 'Channel type',
|
|
354
|
-
TYPE_SELECTOR_GROUP: 'Group',
|
|
355
|
-
TYPE_SELECTOR_SUPER_GROUP: 'Super group',
|
|
356
|
-
TYPE_SELECTOR_BROADCAST: 'Broadcast',
|
|
357
|
-
DIALOG_CHANNEL_TITLE: (currentUserId, channel) =>
|
|
358
|
-
getGroupChannelTitle(currentUserId, channel, USER_NO_NAME, CHANNEL_NO_MEMBERS),
|
|
359
|
-
DIALOG_CHANNEL_NOTIFICATION: (channel) => {
|
|
360
|
-
if (!channel) return '';
|
|
361
|
-
if (channel.myPushTriggerOption === 'off') return 'Turn on notifications';
|
|
362
|
-
return 'Turn off notifications';
|
|
363
|
-
},
|
|
364
|
-
DIALOG_CHANNEL_LEAVE: 'Leave channel',
|
|
365
|
-
...overrides?.GROUP_CHANNEL_LIST,
|
|
366
|
-
},
|
|
367
|
-
GROUP_CHANNEL_MEMBERS: {
|
|
368
|
-
HEADER_TITLE: 'Members',
|
|
369
|
-
/** @deprecated Please use in LABELS **/
|
|
370
|
-
USER_BAR_ME_POSTFIX: ' (You)',
|
|
371
|
-
/** @deprecated Please use in LABELS **/
|
|
372
|
-
USER_BAR_OPERATOR: 'Operator',
|
|
373
|
-
...overrides?.GROUP_CHANNEL_MEMBERS,
|
|
374
|
-
},
|
|
375
|
-
GROUP_CHANNEL_CREATE: {
|
|
376
|
-
HEADER_TITLE: 'New channel',
|
|
377
|
-
HEADER_RIGHT: ({ selectedUsers }) => {
|
|
378
|
-
const len = selectedUsers.length;
|
|
379
|
-
if (len === 0) return 'Create';
|
|
380
|
-
return `Create (${len})`;
|
|
381
|
-
},
|
|
382
|
-
...overrides?.GROUP_CHANNEL_CREATE,
|
|
383
|
-
},
|
|
384
|
-
GROUP_CHANNEL_INVITE: {
|
|
385
|
-
HEADER_TITLE: 'Invite users',
|
|
386
|
-
HEADER_RIGHT: ({ selectedUsers }) => {
|
|
387
|
-
const len = selectedUsers.length;
|
|
388
|
-
if (len === 0) return 'Invite';
|
|
389
|
-
return `Invite (${len})`;
|
|
390
|
-
},
|
|
391
|
-
...overrides?.GROUP_CHANNEL_INVITE,
|
|
392
|
-
},
|
|
393
|
-
LABELS: {
|
|
394
|
-
USER_NO_NAME,
|
|
395
|
-
CHANNEL_NO_MEMBERS,
|
|
396
|
-
TYPING_INDICATOR_TYPINGS: (users, NO_NAME = USER_NO_NAME) => {
|
|
397
|
-
const userNames = users.map((u) => u.nickname || NO_NAME);
|
|
398
|
-
if (userNames.length === 0) return;
|
|
399
|
-
if (userNames.length === 1) return `${userNames[0]} is typing...`;
|
|
400
|
-
if (users.length === 2) return `${userNames.join(' and ')} are typing...`;
|
|
401
|
-
return 'Several people are typing...';
|
|
402
|
-
},
|
|
403
|
-
USER_BAR_ME_POSTFIX: ' (You)',
|
|
404
|
-
USER_BAR_OPERATOR: 'Operator',
|
|
405
|
-
REGISTER_AS_OPERATOR: 'Register as operator',
|
|
406
|
-
UNREGISTER_OPERATOR: 'Unregister operator',
|
|
407
|
-
MUTE: 'Mute',
|
|
408
|
-
UNMUTE: 'Unmute',
|
|
409
|
-
BAN: 'Ban',
|
|
410
|
-
UNBAN: 'Unban',
|
|
411
|
-
...overrides?.LABELS,
|
|
412
|
-
},
|
|
413
|
-
FILE_VIEWER: {
|
|
414
|
-
TITLE: (message) => message.sender?.nickname || USER_NO_NAME,
|
|
415
|
-
SUBTITLE: (message) => getMessageTimeFormat(new Date(message.createdAt), dateLocale),
|
|
416
|
-
},
|
|
417
|
-
PLACEHOLDER: {
|
|
418
|
-
NO_BANNED_USERS: 'No banned users',
|
|
419
|
-
NO_USERS: 'No users',
|
|
420
|
-
NO_CHANNELS: 'No channels',
|
|
421
|
-
NO_MESSAGES: 'No messages',
|
|
422
|
-
NO_MUTED_MEMBERS: 'No muted members',
|
|
423
|
-
NO_RESULTS_FOUND: 'No results found',
|
|
424
|
-
...overrides?.PLACEHOLDER,
|
|
425
|
-
ERROR: {
|
|
426
|
-
MESSAGE: 'Something went wrong',
|
|
427
|
-
RETRY_LABEL: 'Retry',
|
|
428
|
-
...overrides?.PLACEHOLDER?.ERROR,
|
|
429
|
-
},
|
|
430
|
-
},
|
|
431
|
-
DIALOG: {
|
|
432
|
-
ALERT_DEFAULT_OK: 'OK',
|
|
433
|
-
ALERT_PERMISSIONS_TITLE: 'Allow access?',
|
|
434
|
-
ALERT_PERMISSIONS_MESSAGE: (permission, appName = 'Application') => {
|
|
435
|
-
return `${appName} need permission to access your ${permission}.`;
|
|
436
|
-
},
|
|
437
|
-
ALERT_PERMISSIONS_OK: 'Go to settings',
|
|
438
|
-
PROMPT_DEFAULT_OK: 'Submit',
|
|
439
|
-
PROMPT_DEFAULT_CANCEL: 'Cancel',
|
|
440
|
-
PROMPT_DEFAULT_PLACEHOLDER: 'Enter',
|
|
441
|
-
...overrides?.DIALOG,
|
|
442
|
-
},
|
|
443
|
-
TOAST: {
|
|
444
|
-
COPY_OK: 'Copied',
|
|
445
|
-
DOWNLOAD_START: 'Downloading...',
|
|
446
|
-
DOWNLOAD_OK: 'File saved',
|
|
447
|
-
DOWNLOAD_ERROR: "Couldn't download file.",
|
|
448
|
-
OPEN_CAMERA_ERROR: "Couldn't open camera.",
|
|
449
|
-
OPEN_FILES_ERROR: "Couldn't open files.",
|
|
450
|
-
OPEN_PHOTO_LIBRARY_ERROR: "Couldn't open photo library.",
|
|
451
|
-
DELETE_MSG_ERROR: "Couldn't delete message.",
|
|
452
|
-
RESEND_MSG_ERROR: "Couldn't send message.",
|
|
453
|
-
SEND_MSG_ERROR: "Couldn't send message.",
|
|
454
|
-
UPDATE_MSG_ERROR: "Couldn't edit message.",
|
|
455
|
-
TURN_ON_NOTIFICATIONS_ERROR: "Couldn't turn on notifications.",
|
|
456
|
-
TURN_OFF_NOTIFICATIONS_ERROR: "Couldn't turn off notifications.",
|
|
457
|
-
LEAVE_CHANNEL_ERROR: "Couldn't leave channel.",
|
|
458
|
-
...overrides?.TOAST,
|
|
459
|
-
},
|
|
460
|
-
PROFILE_CARD: {
|
|
461
|
-
BUTTON_MESSAGE: 'Message',
|
|
462
|
-
BODY_LABEL: 'User ID',
|
|
463
|
-
BODY: (user) => user.userId,
|
|
464
|
-
...overrides?.PROFILE_CARD,
|
|
465
|
-
},
|
|
466
|
-
};
|
|
467
|
-
};
|