@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
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
import type { Locale } from 'date-fns';
|
|
2
|
+
|
|
3
|
+
import type { PartialDeep } from '@sendbird/uikit-utils';
|
|
4
|
+
import {
|
|
5
|
+
getDateSeparatorFormat,
|
|
6
|
+
getGroupChannelLastMessage,
|
|
7
|
+
getGroupChannelPreviewTime,
|
|
8
|
+
getGroupChannelTitle,
|
|
9
|
+
getMessageTimeFormat,
|
|
10
|
+
getOpenChannelParticipants,
|
|
11
|
+
getOpenChannelTitle,
|
|
12
|
+
} from '@sendbird/uikit-utils';
|
|
13
|
+
|
|
14
|
+
import type { StringSet } from './StringSet.type';
|
|
15
|
+
|
|
16
|
+
type StringSetCreateOptions = {
|
|
17
|
+
dateLocale: Locale;
|
|
18
|
+
overrides?: PartialDeep<StringSet>;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Create string set
|
|
23
|
+
* You can create localized String set, you should provide locale for date and string as a parameters
|
|
24
|
+
*
|
|
25
|
+
* @param {StringSetCreateOptions.dateLocale} dateLocale Date locale (from date-fns)
|
|
26
|
+
* @param {StringSetCreateOptions.overrides} [overrides] Localized strings
|
|
27
|
+
* */
|
|
28
|
+
export const createBaseStringSet = ({ dateLocale, overrides }: StringSetCreateOptions): StringSet => {
|
|
29
|
+
const USER_NO_NAME = overrides?.LABELS?.USER_NO_NAME ?? '(No name)';
|
|
30
|
+
const CHANNEL_NO_MEMBERS = overrides?.LABELS?.CHANNEL_NO_MEMBERS ?? '(No members)';
|
|
31
|
+
return {
|
|
32
|
+
OPEN_CHANNEL: {
|
|
33
|
+
HEADER_TITLE: (channel) => getOpenChannelTitle(channel),
|
|
34
|
+
HEADER_SUBTITLE: (channel) => getOpenChannelParticipants(channel),
|
|
35
|
+
LIST_BANNER_FROZEN: 'Channel is frozen',
|
|
36
|
+
LIST_DATE_SEPARATOR: (date, locale) => getDateSeparatorFormat(date, locale ?? dateLocale),
|
|
37
|
+
MESSAGE_BUBBLE_TIME: (message, locale) => getMessageTimeFormat(new Date(message.createdAt), locale ?? dateLocale),
|
|
38
|
+
MESSAGE_BUBBLE_FILE_TITLE: (message) => message.name,
|
|
39
|
+
MESSAGE_BUBBLE_EDITED_POSTFIX: ' (edited)',
|
|
40
|
+
MESSAGE_BUBBLE_UNKNOWN_TITLE: () => '(Unknown message type)',
|
|
41
|
+
MESSAGE_BUBBLE_UNKNOWN_DESC: () => 'Cannot read this message.',
|
|
42
|
+
...overrides?.OPEN_CHANNEL,
|
|
43
|
+
},
|
|
44
|
+
OPEN_CHANNEL_PARTICIPANTS: {
|
|
45
|
+
HEADER_TITLE: 'Participants',
|
|
46
|
+
...overrides?.OPEN_CHANNEL_PARTICIPANTS,
|
|
47
|
+
},
|
|
48
|
+
OPEN_CHANNEL_SETTINGS: {
|
|
49
|
+
HEADER_TITLE: 'Channel information',
|
|
50
|
+
HEADER_RIGHT: 'Edit',
|
|
51
|
+
INFO_URL: 'URL',
|
|
52
|
+
MENU_MODERATION: 'Moderation',
|
|
53
|
+
MENU_PARTICIPANTS: 'Participants',
|
|
54
|
+
MENU_DELETE_CHANNEL: 'Delete channel',
|
|
55
|
+
DIALOG_CHANNEL_DELETE_CONFIRM_TITLE: 'Delete channel?',
|
|
56
|
+
DIALOG_CHANNEL_DELETE_CONFIRM_OK: 'Delete',
|
|
57
|
+
DIALOG_CHANNEL_DELETE_CONFIRM_CANCEL: 'Cancel',
|
|
58
|
+
DIALOG_CHANGE_NAME: 'Change channel name',
|
|
59
|
+
DIALOG_CHANGE_NAME_PROMPT_TITLE: 'Change channel name',
|
|
60
|
+
DIALOG_CHANGE_NAME_PROMPT_PLACEHOLDER: 'Enter name',
|
|
61
|
+
DIALOG_CHANGE_NAME_PROMPT_OK: 'Save',
|
|
62
|
+
DIALOG_CHANGE_NAME_PROMPT_CANCEL: 'Cancel',
|
|
63
|
+
DIALOG_CHANGE_IMAGE: 'Change channel image',
|
|
64
|
+
DIALOG_CHANGE_IMAGE_MENU_TITLE: 'Change channel image',
|
|
65
|
+
DIALOG_CHANGE_IMAGE_MENU_CAMERA: 'Take photo',
|
|
66
|
+
DIALOG_CHANGE_IMAGE_MENU_PHOTO_LIBRARY: 'Choose photo',
|
|
67
|
+
...overrides?.OPEN_CHANNEL_SETTINGS,
|
|
68
|
+
},
|
|
69
|
+
OPEN_CHANNEL_LIST: {
|
|
70
|
+
HEADER_TITLE: 'Channels',
|
|
71
|
+
CHANNEL_PREVIEW_TITLE: (channel) => getOpenChannelTitle(channel),
|
|
72
|
+
...overrides?.OPEN_CHANNEL_LIST,
|
|
73
|
+
},
|
|
74
|
+
OPEN_CHANNEL_CREATE: {
|
|
75
|
+
HEADER_TITLE: 'New channel',
|
|
76
|
+
HEADER_RIGHT: 'Create',
|
|
77
|
+
PLACEHOLDER: 'Enter channel name',
|
|
78
|
+
DIALOG_IMAGE_MENU_REMOVE: 'Remove photo',
|
|
79
|
+
DIALOG_IMAGE_MENU_CAMERA: 'Take photo',
|
|
80
|
+
DIALOG_IMAGE_MENU_PHOTO_LIBRARY: 'Choose photo',
|
|
81
|
+
...overrides?.OPEN_CHANNEL_CREATE,
|
|
82
|
+
},
|
|
83
|
+
OPEN_CHANNEL_MODERATION: {
|
|
84
|
+
HEADER_TITLE: 'Moderation',
|
|
85
|
+
MENU_OPERATORS: 'Operators',
|
|
86
|
+
MENU_MUTED_PARTICIPANTS: 'Muted participants',
|
|
87
|
+
MENU_BANNED_USERS: 'Banned users',
|
|
88
|
+
...overrides?.OPEN_CHANNEL_MODERATION,
|
|
89
|
+
},
|
|
90
|
+
OPEN_CHANNEL_BANNED_USERS: {
|
|
91
|
+
HEADER_TITLE: 'Banned users',
|
|
92
|
+
...overrides?.OPEN_CHANNEL_BANNED_USERS,
|
|
93
|
+
},
|
|
94
|
+
OPEN_CHANNEL_MUTED_PARTICIPANTS: {
|
|
95
|
+
HEADER_TITLE: 'Muted participants',
|
|
96
|
+
...overrides?.OPEN_CHANNEL_MUTED_PARTICIPANTS,
|
|
97
|
+
},
|
|
98
|
+
OPEN_CHANNEL_OPERATORS: {
|
|
99
|
+
HEADER_TITLE: 'Operators',
|
|
100
|
+
...overrides?.OPEN_CHANNEL_OPERATORS,
|
|
101
|
+
},
|
|
102
|
+
OPEN_CHANNEL_REGISTER_OPERATOR: {
|
|
103
|
+
HEADER_TITLE: 'Set as operators',
|
|
104
|
+
HEADER_RIGHT: ({ selectedUsers }) => {
|
|
105
|
+
const len = selectedUsers.length;
|
|
106
|
+
if (len === 0) return 'Add';
|
|
107
|
+
return `Add (${len})`;
|
|
108
|
+
},
|
|
109
|
+
...overrides?.OPEN_CHANNEL_REGISTER_OPERATOR,
|
|
110
|
+
},
|
|
111
|
+
GROUP_CHANNEL: {
|
|
112
|
+
HEADER_TITLE: (uid, channel) => getGroupChannelTitle(uid, channel, USER_NO_NAME, CHANNEL_NO_MEMBERS),
|
|
113
|
+
LIST_BANNER_FROZEN: 'Channel is frozen',
|
|
114
|
+
LIST_DATE_SEPARATOR: (date, locale) => getDateSeparatorFormat(date, locale ?? dateLocale),
|
|
115
|
+
LIST_BUTTON_NEW_MSG: (newMessages) => `${newMessages.length} new messages`,
|
|
116
|
+
|
|
117
|
+
MESSAGE_BUBBLE_TIME: (message, locale) => getMessageTimeFormat(new Date(message.createdAt), locale ?? dateLocale),
|
|
118
|
+
MESSAGE_BUBBLE_FILE_TITLE: (message) => message.name,
|
|
119
|
+
MESSAGE_BUBBLE_EDITED_POSTFIX: ' (edited)',
|
|
120
|
+
MESSAGE_BUBBLE_UNKNOWN_TITLE: () => '(Unknown message type)',
|
|
121
|
+
MESSAGE_BUBBLE_UNKNOWN_DESC: () => 'Cannot read this message.',
|
|
122
|
+
|
|
123
|
+
MENTION_LIMITED: (mentionLimit) => `You can have up to ${mentionLimit} mentions per message.`,
|
|
124
|
+
|
|
125
|
+
/** @deprecated Please use LABELS.CHANNEL_MESSAGE_COPY **/
|
|
126
|
+
DIALOG_MESSAGE_COPY: 'Copy',
|
|
127
|
+
/** @deprecated Please use LABELS.CHANNEL_MESSAGE_EDIT **/
|
|
128
|
+
DIALOG_MESSAGE_EDIT: 'Edit',
|
|
129
|
+
/** @deprecated Please use LABELS.CHANNEL_MESSAGE_SAVE **/
|
|
130
|
+
DIALOG_MESSAGE_SAVE: 'Save',
|
|
131
|
+
/** @deprecated Please use LABELS.CHANNEL_MESSAGE_DELETE **/
|
|
132
|
+
DIALOG_MESSAGE_DELETE: 'Delete',
|
|
133
|
+
/** @deprecated Please use LABELS.CHANNEL_MESSAGE_DELETE_CONFIRM_TITLE **/
|
|
134
|
+
DIALOG_MESSAGE_DELETE_CONFIRM_TITLE: 'Delete message?',
|
|
135
|
+
/** @deprecated Please use LABELS.CHANNEL_MESSAGE_DELETE_CONFIRM_OK **/
|
|
136
|
+
DIALOG_MESSAGE_DELETE_CONFIRM_OK: 'Delete',
|
|
137
|
+
/** @deprecated Please use LABELS.CHANNEL_MESSAGE_DELETE_CONFIRM_CANCEL **/
|
|
138
|
+
DIALOG_MESSAGE_DELETE_CONFIRM_CANCEL: 'Cancel',
|
|
139
|
+
/** @deprecated Please use LABELS.CHANNEL_MESSAGE_FAILED_RETRY **/
|
|
140
|
+
DIALOG_MESSAGE_FAILED_RETRY: 'Retry',
|
|
141
|
+
/** @deprecated Please use LABELS.CHANNEL_MESSAGE_FAILED_REMOVE **/
|
|
142
|
+
DIALOG_MESSAGE_FAILED_REMOVE: 'Remove',
|
|
143
|
+
/** @deprecated Please use LABELS.CHANNEL_INPUT_ATTACHMENT_CAMERA **/
|
|
144
|
+
DIALOG_ATTACHMENT_CAMERA: 'Camera',
|
|
145
|
+
/** @deprecated Please use LABELS.CHANNEL_INPUT_ATTACHMENT_PHOTO_LIBRARY **/
|
|
146
|
+
DIALOG_ATTACHMENT_PHOTO_LIBRARY: 'Photo library',
|
|
147
|
+
/** @deprecated Please use LABELS.CHANNEL_INPUT_ATTACHMENT_FILES **/
|
|
148
|
+
DIALOG_ATTACHMENT_FILES: 'Files',
|
|
149
|
+
/** @deprecated Please use LABELS.CHANNEL_INPUT_PLACEHOLDER_ACTIVE **/
|
|
150
|
+
INPUT_PLACEHOLDER_ACTIVE: 'Enter message',
|
|
151
|
+
/** @deprecated Please use LABELS.CHANNEL_INPUT_PLACEHOLDER_DISABLED **/
|
|
152
|
+
INPUT_PLACEHOLDER_DISABLED: 'Chat not available in this channel.',
|
|
153
|
+
/** @deprecated Please use LABELS.CHANNEL_INPUT_PLACEHOLDER_MUTED **/
|
|
154
|
+
INPUT_PLACEHOLDER_MUTED: "You're muted by the operator.",
|
|
155
|
+
/** @deprecated Please use LABELS.CHANNEL_INPUT_EDIT_OK **/
|
|
156
|
+
INPUT_EDIT_OK: 'Save',
|
|
157
|
+
/** @deprecated Please use LABELS.CHANNEL_INPUT_EDIT_CANCEL **/
|
|
158
|
+
INPUT_EDIT_CANCEL: 'Cancel',
|
|
159
|
+
...overrides?.GROUP_CHANNEL,
|
|
160
|
+
},
|
|
161
|
+
GROUP_CHANNEL_SETTINGS: {
|
|
162
|
+
HEADER_TITLE: 'Channel information',
|
|
163
|
+
HEADER_RIGHT: 'Edit',
|
|
164
|
+
MENU_MODERATION: 'Moderation',
|
|
165
|
+
MENU_MEMBERS: 'Members',
|
|
166
|
+
MENU_LEAVE_CHANNEL: 'Leave channel',
|
|
167
|
+
MENU_NOTIFICATION: 'Notifications',
|
|
168
|
+
MENU_NOTIFICATION_LABEL_ON: 'On',
|
|
169
|
+
MENU_NOTIFICATION_LABEL_OFF: 'Off',
|
|
170
|
+
MENU_NOTIFICATION_LABEL_MENTION_ONLY: 'Mentions only',
|
|
171
|
+
DIALOG_CHANGE_NAME: 'Change channel name',
|
|
172
|
+
DIALOG_CHANGE_NAME_PROMPT_TITLE: 'Change channel name',
|
|
173
|
+
DIALOG_CHANGE_NAME_PROMPT_PLACEHOLDER: 'Enter name',
|
|
174
|
+
DIALOG_CHANGE_NAME_PROMPT_OK: 'Save',
|
|
175
|
+
DIALOG_CHANGE_NAME_PROMPT_CANCEL: 'Cancel',
|
|
176
|
+
DIALOG_CHANGE_IMAGE: 'Change channel image',
|
|
177
|
+
DIALOG_CHANGE_IMAGE_MENU_TITLE: 'Change channel image',
|
|
178
|
+
DIALOG_CHANGE_IMAGE_MENU_CAMERA: 'Take photo',
|
|
179
|
+
DIALOG_CHANGE_IMAGE_MENU_PHOTO_LIBRARY: 'Choose photo',
|
|
180
|
+
...overrides?.GROUP_CHANNEL_SETTINGS,
|
|
181
|
+
},
|
|
182
|
+
GROUP_CHANNEL_NOTIFICATIONS: {
|
|
183
|
+
HEADER_TITLE: 'Notifications',
|
|
184
|
+
MENU_NOTIFICATIONS: 'Notifications',
|
|
185
|
+
MENU_NOTIFICATIONS_DESC:
|
|
186
|
+
'Turn on push notifications if you wish to be notified when messages are delivered to this channel.',
|
|
187
|
+
MENU_NOTIFICATIONS_OPTION_ALL: 'All new messages',
|
|
188
|
+
MENU_NOTIFICATIONS_OPTION_MENTION_ONLY: 'Mentions only',
|
|
189
|
+
...overrides?.GROUP_CHANNEL_NOTIFICATIONS,
|
|
190
|
+
},
|
|
191
|
+
GROUP_CHANNEL_MODERATION: {
|
|
192
|
+
HEADER_TITLE: 'Moderation',
|
|
193
|
+
MENU_OPERATORS: 'Operators',
|
|
194
|
+
MENU_MUTED_MEMBERS: 'Muted members',
|
|
195
|
+
MENU_BANNED_USERS: 'Banned users',
|
|
196
|
+
MENU_FREEZE_CHANNEL: 'Freeze channel',
|
|
197
|
+
...overrides?.GROUP_CHANNEL_MODERATION,
|
|
198
|
+
},
|
|
199
|
+
GROUP_CHANNEL_OPERATORS: {
|
|
200
|
+
HEADER_TITLE: 'Operators',
|
|
201
|
+
...overrides?.GROUP_CHANNEL_OPERATORS,
|
|
202
|
+
},
|
|
203
|
+
GROUP_CHANNEL_REGISTER_OPERATOR: {
|
|
204
|
+
HEADER_TITLE: 'Set as operators',
|
|
205
|
+
HEADER_RIGHT: ({ selectedUsers }) => {
|
|
206
|
+
const len = selectedUsers.length;
|
|
207
|
+
if (len === 0) return 'Add';
|
|
208
|
+
return `Add (${len})`;
|
|
209
|
+
},
|
|
210
|
+
...overrides?.GROUP_CHANNEL_OPERATORS,
|
|
211
|
+
},
|
|
212
|
+
GROUP_CHANNEL_MUTED_MEMBERS: {
|
|
213
|
+
HEADER_TITLE: 'Muted members',
|
|
214
|
+
...overrides?.GROUP_CHANNEL_MUTED_MEMBERS,
|
|
215
|
+
},
|
|
216
|
+
GROUP_CHANNEL_BANNED_USERS: {
|
|
217
|
+
HEADER_TITLE: 'Banned users',
|
|
218
|
+
...overrides?.GROUP_CHANNEL_BANNED_USERS,
|
|
219
|
+
},
|
|
220
|
+
GROUP_CHANNEL_LIST: {
|
|
221
|
+
HEADER_TITLE: 'Channels',
|
|
222
|
+
CHANNEL_PREVIEW_TITLE: (currentUserId, channel) =>
|
|
223
|
+
getGroupChannelTitle(currentUserId, channel, USER_NO_NAME, CHANNEL_NO_MEMBERS),
|
|
224
|
+
CHANNEL_PREVIEW_TITLE_CAPTION: (channel, locale) => getGroupChannelPreviewTime(channel, locale ?? dateLocale),
|
|
225
|
+
CHANNEL_PREVIEW_BODY: (channel) => getGroupChannelLastMessage(channel),
|
|
226
|
+
TYPE_SELECTOR_HEADER_TITLE: 'Channel type',
|
|
227
|
+
TYPE_SELECTOR_GROUP: 'Group',
|
|
228
|
+
TYPE_SELECTOR_SUPER_GROUP: 'Super group',
|
|
229
|
+
TYPE_SELECTOR_BROADCAST: 'Broadcast',
|
|
230
|
+
DIALOG_CHANNEL_TITLE: (currentUserId, channel) =>
|
|
231
|
+
getGroupChannelTitle(currentUserId, channel, USER_NO_NAME, CHANNEL_NO_MEMBERS),
|
|
232
|
+
DIALOG_CHANNEL_NOTIFICATION: (channel) => {
|
|
233
|
+
if (!channel) return '';
|
|
234
|
+
if (channel.myPushTriggerOption === 'off') return 'Turn on notifications';
|
|
235
|
+
return 'Turn off notifications';
|
|
236
|
+
},
|
|
237
|
+
DIALOG_CHANNEL_LEAVE: 'Leave channel',
|
|
238
|
+
...overrides?.GROUP_CHANNEL_LIST,
|
|
239
|
+
},
|
|
240
|
+
GROUP_CHANNEL_MEMBERS: {
|
|
241
|
+
HEADER_TITLE: 'Members',
|
|
242
|
+
/** @deprecated Please use LABELS.USER_BAR_ME_POSTFIX **/
|
|
243
|
+
USER_BAR_ME_POSTFIX: ' (You)',
|
|
244
|
+
/** @deprecated Please use LABELS.USER_BAR_OPERATOR **/
|
|
245
|
+
USER_BAR_OPERATOR: 'Operator',
|
|
246
|
+
...overrides?.GROUP_CHANNEL_MEMBERS,
|
|
247
|
+
},
|
|
248
|
+
GROUP_CHANNEL_CREATE: {
|
|
249
|
+
HEADER_TITLE: 'New channel',
|
|
250
|
+
HEADER_RIGHT: ({ selectedUsers }) => {
|
|
251
|
+
const len = selectedUsers.length;
|
|
252
|
+
if (len === 0) return 'Create';
|
|
253
|
+
return `Create (${len})`;
|
|
254
|
+
},
|
|
255
|
+
...overrides?.GROUP_CHANNEL_CREATE,
|
|
256
|
+
},
|
|
257
|
+
GROUP_CHANNEL_INVITE: {
|
|
258
|
+
HEADER_TITLE: 'Invite users',
|
|
259
|
+
HEADER_RIGHT: ({ selectedUsers }) => {
|
|
260
|
+
const len = selectedUsers.length;
|
|
261
|
+
if (len === 0) return 'Invite';
|
|
262
|
+
return `Invite (${len})`;
|
|
263
|
+
},
|
|
264
|
+
...overrides?.GROUP_CHANNEL_INVITE,
|
|
265
|
+
},
|
|
266
|
+
LABELS: {
|
|
267
|
+
PERMISSION_APP_NAME: 'Application',
|
|
268
|
+
PERMISSION_CAMERA: 'camera',
|
|
269
|
+
PERMISSION_DEVICE_STORAGE: 'device storage',
|
|
270
|
+
USER_NO_NAME,
|
|
271
|
+
CHANNEL_NO_MEMBERS,
|
|
272
|
+
TYPING_INDICATOR_TYPINGS: (users, NO_NAME = USER_NO_NAME) => {
|
|
273
|
+
const userNames = users.map((u) => u.nickname || NO_NAME);
|
|
274
|
+
if (userNames.length === 0) return;
|
|
275
|
+
if (userNames.length === 1) return `${userNames[0]} is typing...`;
|
|
276
|
+
if (users.length === 2) return `${userNames.join(' and ')} are typing...`;
|
|
277
|
+
return 'Several people are typing...';
|
|
278
|
+
},
|
|
279
|
+
USER_BAR_ME_POSTFIX: ' (You)',
|
|
280
|
+
USER_BAR_OPERATOR: 'Operator',
|
|
281
|
+
REGISTER_AS_OPERATOR: 'Register as operator',
|
|
282
|
+
UNREGISTER_OPERATOR: 'Unregister operator',
|
|
283
|
+
MUTE: 'Mute',
|
|
284
|
+
UNMUTE: 'Unmute',
|
|
285
|
+
BAN: 'Ban',
|
|
286
|
+
UNBAN: 'Unban',
|
|
287
|
+
|
|
288
|
+
// Deprecation backward
|
|
289
|
+
CHANNEL_MESSAGE_COPY: overrides?.GROUP_CHANNEL?.DIALOG_MESSAGE_COPY ?? 'Copy',
|
|
290
|
+
CHANNEL_MESSAGE_EDIT: overrides?.GROUP_CHANNEL?.DIALOG_MESSAGE_EDIT ?? 'Edit',
|
|
291
|
+
CHANNEL_MESSAGE_SAVE: overrides?.GROUP_CHANNEL?.DIALOG_MESSAGE_SAVE ?? 'Save',
|
|
292
|
+
CHANNEL_MESSAGE_DELETE: overrides?.GROUP_CHANNEL?.DIALOG_MESSAGE_DELETE ?? 'Delete',
|
|
293
|
+
CHANNEL_MESSAGE_DELETE_CONFIRM_TITLE:
|
|
294
|
+
overrides?.GROUP_CHANNEL?.DIALOG_MESSAGE_DELETE_CONFIRM_TITLE ?? 'Delete message?',
|
|
295
|
+
CHANNEL_MESSAGE_DELETE_CONFIRM_OK: overrides?.GROUP_CHANNEL?.DIALOG_MESSAGE_DELETE_CONFIRM_OK ?? 'Delete',
|
|
296
|
+
CHANNEL_MESSAGE_DELETE_CONFIRM_CANCEL: overrides?.GROUP_CHANNEL?.DIALOG_MESSAGE_DELETE_CONFIRM_CANCEL ?? 'Cancel',
|
|
297
|
+
CHANNEL_MESSAGE_FAILED_RETRY: overrides?.GROUP_CHANNEL?.DIALOG_MESSAGE_FAILED_RETRY ?? 'Retry',
|
|
298
|
+
CHANNEL_MESSAGE_FAILED_REMOVE: overrides?.GROUP_CHANNEL?.DIALOG_MESSAGE_FAILED_REMOVE ?? 'Remove',
|
|
299
|
+
CHANNEL_INPUT_ATTACHMENT_CAMERA: overrides?.GROUP_CHANNEL?.DIALOG_ATTACHMENT_CAMERA ?? 'Camera',
|
|
300
|
+
CHANNEL_INPUT_ATTACHMENT_PHOTO_LIBRARY:
|
|
301
|
+
overrides?.GROUP_CHANNEL?.DIALOG_ATTACHMENT_PHOTO_LIBRARY ?? 'Photo library',
|
|
302
|
+
CHANNEL_INPUT_ATTACHMENT_FILES: overrides?.GROUP_CHANNEL?.DIALOG_ATTACHMENT_FILES ?? 'Files',
|
|
303
|
+
CHANNEL_INPUT_PLACEHOLDER_ACTIVE: overrides?.GROUP_CHANNEL?.INPUT_PLACEHOLDER_ACTIVE ?? 'Enter message',
|
|
304
|
+
CHANNEL_INPUT_PLACEHOLDER_DISABLED:
|
|
305
|
+
overrides?.GROUP_CHANNEL?.INPUT_PLACEHOLDER_DISABLED ?? 'Chat not available in this channel.',
|
|
306
|
+
CHANNEL_INPUT_PLACEHOLDER_MUTED:
|
|
307
|
+
overrides?.GROUP_CHANNEL?.INPUT_PLACEHOLDER_MUTED ?? "You're muted by the operator.",
|
|
308
|
+
CHANNEL_INPUT_EDIT_OK: overrides?.GROUP_CHANNEL?.INPUT_EDIT_OK ?? 'Save',
|
|
309
|
+
CHANNEL_INPUT_EDIT_CANCEL: overrides?.GROUP_CHANNEL?.INPUT_EDIT_CANCEL ?? 'Cancel',
|
|
310
|
+
...overrides?.LABELS,
|
|
311
|
+
},
|
|
312
|
+
FILE_VIEWER: {
|
|
313
|
+
TITLE: (message) => message.sender?.nickname || USER_NO_NAME,
|
|
314
|
+
SUBTITLE: (message) => getMessageTimeFormat(new Date(message.createdAt), dateLocale),
|
|
315
|
+
},
|
|
316
|
+
PLACEHOLDER: {
|
|
317
|
+
NO_BANNED_USERS: 'No banned users',
|
|
318
|
+
NO_USERS: 'No users',
|
|
319
|
+
NO_CHANNELS: 'No channels',
|
|
320
|
+
NO_MESSAGES: 'No messages',
|
|
321
|
+
NO_MUTED_MEMBERS: 'No muted members',
|
|
322
|
+
NO_MUTED_PARTICIPANTS: 'No muted participants',
|
|
323
|
+
NO_RESULTS_FOUND: 'No results found',
|
|
324
|
+
...overrides?.PLACEHOLDER,
|
|
325
|
+
ERROR: {
|
|
326
|
+
MESSAGE: 'Something went wrong',
|
|
327
|
+
RETRY_LABEL: 'Retry',
|
|
328
|
+
...overrides?.PLACEHOLDER?.ERROR,
|
|
329
|
+
},
|
|
330
|
+
},
|
|
331
|
+
DIALOG: {
|
|
332
|
+
ALERT_DEFAULT_OK: 'OK',
|
|
333
|
+
ALERT_PERMISSIONS_TITLE: 'Allow access?',
|
|
334
|
+
ALERT_PERMISSIONS_MESSAGE: (permission, appName = 'Application') => {
|
|
335
|
+
return `${appName} need permission to access your ${permission}.`;
|
|
336
|
+
},
|
|
337
|
+
ALERT_PERMISSIONS_OK: 'Go to settings',
|
|
338
|
+
PROMPT_DEFAULT_OK: 'Submit',
|
|
339
|
+
PROMPT_DEFAULT_CANCEL: 'Cancel',
|
|
340
|
+
PROMPT_DEFAULT_PLACEHOLDER: 'Enter',
|
|
341
|
+
...overrides?.DIALOG,
|
|
342
|
+
},
|
|
343
|
+
TOAST: {
|
|
344
|
+
COPY_OK: 'Copied',
|
|
345
|
+
DOWNLOAD_START: 'Downloading...',
|
|
346
|
+
DOWNLOAD_OK: 'File saved',
|
|
347
|
+
DOWNLOAD_ERROR: "Couldn't download file.",
|
|
348
|
+
OPEN_CAMERA_ERROR: "Couldn't open camera.",
|
|
349
|
+
OPEN_FILES_ERROR: "Couldn't open files.",
|
|
350
|
+
OPEN_PHOTO_LIBRARY_ERROR: "Couldn't open photo library.",
|
|
351
|
+
DELETE_MSG_ERROR: "Couldn't delete message.",
|
|
352
|
+
RESEND_MSG_ERROR: "Couldn't send message.",
|
|
353
|
+
SEND_MSG_ERROR: "Couldn't send message.",
|
|
354
|
+
UPDATE_MSG_ERROR: "Couldn't edit message.",
|
|
355
|
+
TURN_ON_NOTIFICATIONS_ERROR: "Couldn't turn on notifications.",
|
|
356
|
+
TURN_OFF_NOTIFICATIONS_ERROR: "Couldn't turn off notifications.",
|
|
357
|
+
LEAVE_CHANNEL_ERROR: "Couldn't leave channel.",
|
|
358
|
+
UNKNOWN_ERROR: 'Something went wrong.',
|
|
359
|
+
GET_CHANNEL_ERROR: "Couldn't retrieve channel.",
|
|
360
|
+
...overrides?.TOAST,
|
|
361
|
+
},
|
|
362
|
+
PROFILE_CARD: {
|
|
363
|
+
BUTTON_MESSAGE: 'Message',
|
|
364
|
+
BODY_LABEL: 'User ID',
|
|
365
|
+
BODY: (user) => user.userId,
|
|
366
|
+
...overrides?.PROFILE_CARD,
|
|
367
|
+
},
|
|
368
|
+
};
|
|
369
|
+
};
|
|
@@ -76,6 +76,14 @@ const createNativeFileService = ({
|
|
|
76
76
|
}
|
|
77
77
|
async hasMediaLibraryPermission(): Promise<boolean> {
|
|
78
78
|
const status = await permissionModule.checkMultiple(mediaLibraryPermissions);
|
|
79
|
+
if (
|
|
80
|
+
__DEV__ &&
|
|
81
|
+
Platform.OS === 'ios' &&
|
|
82
|
+
status['ios.permission.MEDIA_LIBRARY'] === 'unavailable' &&
|
|
83
|
+
status['ios.permission.PHOTO_LIBRARY'] === 'granted'
|
|
84
|
+
) {
|
|
85
|
+
return true;
|
|
86
|
+
}
|
|
79
87
|
return nativePermissionGranted(status);
|
|
80
88
|
}
|
|
81
89
|
async requestMediaLibraryPermission(): Promise<boolean> {
|
|
@@ -1,15 +1,27 @@
|
|
|
1
1
|
import type * as ExpoAV from 'expo-av';
|
|
2
|
+
import type * as ExpoFS from 'expo-file-system';
|
|
3
|
+
import type * as ExpoImageManipulator from 'expo-image-manipulator';
|
|
2
4
|
import type * as ExpoVideoThumbnail from 'expo-video-thumbnails';
|
|
3
5
|
import React from 'react';
|
|
4
6
|
|
|
7
|
+
import { getDownscaleSize } from '@sendbird/uikit-utils';
|
|
8
|
+
|
|
9
|
+
import SBUUtils from '../libs/SBUUtils';
|
|
5
10
|
import type { MediaServiceInterface } from './types';
|
|
6
11
|
|
|
7
12
|
type Modules = {
|
|
8
13
|
avModule: typeof ExpoAV;
|
|
9
14
|
thumbnailModule: typeof ExpoVideoThumbnail;
|
|
15
|
+
imageManipulator: typeof ExpoImageManipulator;
|
|
16
|
+
fsModule: typeof ExpoFS;
|
|
10
17
|
};
|
|
11
18
|
|
|
12
|
-
const createExpoMediaService = ({
|
|
19
|
+
const createExpoMediaService = ({
|
|
20
|
+
avModule,
|
|
21
|
+
thumbnailModule,
|
|
22
|
+
imageManipulator,
|
|
23
|
+
fsModule,
|
|
24
|
+
}: Modules): MediaServiceInterface => {
|
|
13
25
|
return {
|
|
14
26
|
VideoComponent({ source, resizeMode, onLoad, ...props }) {
|
|
15
27
|
// FIXME: type error https://github.com/expo/expo/issues/17101
|
|
@@ -24,6 +36,17 @@ const createExpoMediaService = ({ avModule, thumbnailModule }: Modules): MediaSe
|
|
|
24
36
|
return null;
|
|
25
37
|
}
|
|
26
38
|
},
|
|
39
|
+
async compressImage({ maxWidth, maxHeight, compressionRate = 1, uri }) {
|
|
40
|
+
const originSize = await SBUUtils.getImageSize(uri);
|
|
41
|
+
const resizingSize = getDownscaleSize(originSize, { width: maxWidth, height: maxHeight });
|
|
42
|
+
|
|
43
|
+
const { uri: compressedURI } = await imageManipulator.manipulateAsync(uri, [{ resize: resizingSize }], {
|
|
44
|
+
compress: Math.min(Math.max(0, compressionRate), 1),
|
|
45
|
+
});
|
|
46
|
+
const { size = 0 } = await fsModule.getInfoAsync(uri);
|
|
47
|
+
|
|
48
|
+
return { uri: compressedURI, size };
|
|
49
|
+
},
|
|
27
50
|
};
|
|
28
51
|
};
|
|
29
52
|
|
|
@@ -1,19 +1,24 @@
|
|
|
1
|
+
import type * as RNImageResizer from '@bam.tech/react-native-image-resizer';
|
|
1
2
|
import React from 'react';
|
|
2
|
-
import type * as
|
|
3
|
-
import type
|
|
3
|
+
import type * as RNCreateThumbnail from 'react-native-create-thumbnail';
|
|
4
|
+
import type RNVideo from 'react-native-video';
|
|
4
5
|
|
|
6
|
+
import { getDownscaleSize, getFileExtension, hash } from '@sendbird/uikit-utils';
|
|
7
|
+
|
|
8
|
+
import SBUUtils from '../libs/SBUUtils';
|
|
5
9
|
import type { MediaServiceInterface } from './types';
|
|
6
10
|
|
|
7
11
|
type Modules = {
|
|
8
|
-
VideoComponent: typeof
|
|
9
|
-
thumbnailModule: typeof
|
|
12
|
+
VideoComponent: typeof RNVideo;
|
|
13
|
+
thumbnailModule: typeof RNCreateThumbnail;
|
|
14
|
+
imageResizerModule: typeof RNImageResizer;
|
|
10
15
|
};
|
|
11
16
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
const createNativeMediaService = ({
|
|
18
|
+
VideoComponent,
|
|
19
|
+
thumbnailModule,
|
|
20
|
+
imageResizerModule,
|
|
21
|
+
}: Modules): MediaServiceInterface => {
|
|
17
22
|
return {
|
|
18
23
|
VideoComponent({ source, resizeMode, onLoad, ...props }) {
|
|
19
24
|
return <VideoComponent {...props} source={source} resizeMode={resizeMode} onLoad={onLoad} controls />;
|
|
@@ -31,6 +36,23 @@ const createNativeMediaService = ({ VideoComponent, thumbnailModule }: Modules):
|
|
|
31
36
|
return null;
|
|
32
37
|
}
|
|
33
38
|
},
|
|
39
|
+
async compressImage({ uri, maxWidth, maxHeight, compressionRate = 1 }) {
|
|
40
|
+
const originSize = await SBUUtils.getImageSize(uri);
|
|
41
|
+
const { width, height } = getDownscaleSize(originSize, { width: maxWidth, height: maxHeight });
|
|
42
|
+
const extension = (() => {
|
|
43
|
+
return { 'png': 'PNG', 'jpeg': 'JPEG', 'jpg': 'JPEG' }[getFileExtension(uri)] ?? 'JPEG';
|
|
44
|
+
})() as 'PNG' | 'JPEG';
|
|
45
|
+
|
|
46
|
+
const { size: resizedSize, uri: compressedURI } = await imageResizerModule.default.createResizedImage(
|
|
47
|
+
uri,
|
|
48
|
+
width,
|
|
49
|
+
height,
|
|
50
|
+
extension,
|
|
51
|
+
Math.min(Math.max(0, compressionRate), 1) * 100,
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
return { uri: compressedURI, size: resizedSize };
|
|
55
|
+
},
|
|
34
56
|
};
|
|
35
57
|
};
|
|
36
58
|
|
|
@@ -1,43 +1,28 @@
|
|
|
1
1
|
/* eslint-disable no-console */
|
|
2
|
-
import type
|
|
3
|
-
import { NativeModules } from 'react-native';
|
|
4
|
-
import type RNFastImage from 'react-native-fast-image';
|
|
5
|
-
import type RNFileAccess from 'react-native-file-access';
|
|
2
|
+
import type * as RNCNetInfo from '@react-native-community/netinfo';
|
|
3
|
+
import { NativeModules, UIManager } from 'react-native';
|
|
6
4
|
|
|
7
5
|
import { Logger } from '@sendbird/uikit-utils';
|
|
8
6
|
|
|
9
|
-
export interface DynamicModules {
|
|
10
|
-
'react-native-file-access': typeof RNFileAccess;
|
|
11
|
-
'react-native-fast-image': typeof RNFastImage;
|
|
12
|
-
'@react-native-community/netinfo': typeof RNNetInfo;
|
|
13
|
-
}
|
|
14
7
|
export type SBUNativeModule = keyof DynamicModules;
|
|
15
8
|
|
|
16
9
|
interface SBUDynamicModuleInfo {
|
|
17
10
|
packageName: SBUNativeModule;
|
|
18
|
-
|
|
19
|
-
moduleName: string;
|
|
11
|
+
nativeModuleNamespace: string;
|
|
20
12
|
getPackage: <T>(logLevel: 'error' | 'warn' | 'none') => T;
|
|
21
13
|
url: string;
|
|
14
|
+
isComponent?: boolean;
|
|
22
15
|
}
|
|
23
16
|
|
|
24
|
-
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
if (minMinor < currMinor) return true;
|
|
31
|
-
if (minMinor === currMinor) {
|
|
32
|
-
return minPatch <= currPatch;
|
|
17
|
+
function checkLink(dmi: SBUDynamicModuleInfo, logLevel: 'error' | 'warn' | 'none') {
|
|
18
|
+
const nativeModule = (() => {
|
|
19
|
+
if (dmi.isComponent) {
|
|
20
|
+
return UIManager.getViewManagerConfig(dmi.nativeModuleNamespace);
|
|
21
|
+
} else {
|
|
22
|
+
return NativeModules[dmi.nativeModuleNamespace];
|
|
33
23
|
}
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
return false;
|
|
37
|
-
}
|
|
24
|
+
})();
|
|
38
25
|
|
|
39
|
-
function checkLink(dmi: SBUDynamicModuleInfo, logLevel: 'error' | 'warn' | 'none') {
|
|
40
|
-
const nativeModule = NativeModules[dmi.moduleName];
|
|
41
26
|
if (!nativeModule) {
|
|
42
27
|
const message = `[UIKit] Cannot use native module, you should install and link ${dmi.packageName} (${dmi.url})`;
|
|
43
28
|
if (logLevel === 'error') console.error(message);
|
|
@@ -45,41 +30,14 @@ function checkLink(dmi: SBUDynamicModuleInfo, logLevel: 'error' | 'warn' | 'none
|
|
|
45
30
|
}
|
|
46
31
|
}
|
|
47
32
|
|
|
48
|
-
|
|
49
|
-
'react-native-
|
|
50
|
-
|
|
51
|
-
packageName: 'react-native-file-access',
|
|
52
|
-
moduleName: 'RNFileAccess',
|
|
53
|
-
url: 'https://github.com/alpha0010/react-native-file-access',
|
|
54
|
-
getPackage(logLevel) {
|
|
55
|
-
checkLink(this, logLevel);
|
|
56
|
-
|
|
57
|
-
try {
|
|
58
|
-
return require('react-native-file-access');
|
|
59
|
-
} catch (e) {
|
|
60
|
-
return null;
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
'react-native-fast-image': {
|
|
65
|
-
minVersion: '8.5.11',
|
|
66
|
-
packageName: 'react-native-fast-image',
|
|
67
|
-
moduleName: 'FastImageView',
|
|
68
|
-
url: 'https://github.com/DylanVann/react-native-fast-image',
|
|
69
|
-
getPackage(logLevel) {
|
|
70
|
-
checkLink(this, logLevel);
|
|
33
|
+
export interface DynamicModules {
|
|
34
|
+
'@react-native-community/netinfo': typeof RNCNetInfo;
|
|
35
|
+
}
|
|
71
36
|
|
|
72
|
-
|
|
73
|
-
return require('react-native-fast-image');
|
|
74
|
-
} catch (e) {
|
|
75
|
-
return null;
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
},
|
|
37
|
+
const SBUDynamicModuleRegistry: Record<SBUNativeModule, SBUDynamicModuleInfo> = {
|
|
79
38
|
'@react-native-community/netinfo': {
|
|
80
|
-
minVersion: '9.3.0',
|
|
81
39
|
packageName: '@react-native-community/netinfo',
|
|
82
|
-
|
|
40
|
+
nativeModuleNamespace: 'RNCNetInfo',
|
|
83
41
|
url: 'https://github.com/react-native-netinfo/react-native-netinfo',
|
|
84
42
|
getPackage(logLevel) {
|
|
85
43
|
checkLink(this, logLevel);
|
|
@@ -95,7 +53,7 @@ const SBUDynamicModuleRegistry: Record<SBUNativeModule, SBUDynamicModuleInfo> =
|
|
|
95
53
|
|
|
96
54
|
const SBUDynamicModule = {
|
|
97
55
|
register(mdi: SBUDynamicModuleInfo) {
|
|
98
|
-
SBUDynamicModuleRegistry[mdi.
|
|
56
|
+
SBUDynamicModuleRegistry[mdi.nativeModuleNamespace as SBUNativeModule] = mdi;
|
|
99
57
|
},
|
|
100
58
|
getInfo(name: SBUNativeModule) {
|
|
101
59
|
return SBUDynamicModuleRegistry[name] ?? null;
|
package/src/platform/types.ts
CHANGED
|
@@ -66,13 +66,35 @@ interface GetVideoThumbnailOptions {
|
|
|
66
66
|
timeMills?: number;
|
|
67
67
|
quality?: number;
|
|
68
68
|
}
|
|
69
|
+
|
|
70
|
+
interface CompressImageOptions {
|
|
71
|
+
/**
|
|
72
|
+
* A uri of image file to compress
|
|
73
|
+
* */
|
|
74
|
+
uri: string;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* A resize width, apply only to downscale
|
|
78
|
+
* */
|
|
79
|
+
maxWidth?: number;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* A resize height, apply only to downscale
|
|
83
|
+
* */
|
|
84
|
+
maxHeight?: number;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* A value in range 0.0 - 1.0 specifying compression level of the result image.
|
|
88
|
+
* 1 means highest quality and 0 the lowest quality.
|
|
89
|
+
* */
|
|
90
|
+
compressionRate?: number;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
type GetVideoThumbnailResult = Promise<{ path: string } | null>;
|
|
94
|
+
type CompressImageResult = Promise<{ uri: string; size: number } | null>;
|
|
95
|
+
|
|
69
96
|
export interface MediaServiceInterface {
|
|
70
97
|
VideoComponent<Props = {}>(props: VideoProps & Props): JSX.Element;
|
|
71
|
-
getVideoThumbnail(options: GetVideoThumbnailOptions):
|
|
72
|
-
|
|
73
|
-
// path: string;
|
|
74
|
-
// compressionRate: number;
|
|
75
|
-
// resizingWidth: number;
|
|
76
|
-
// resizingHeight: number;
|
|
77
|
-
// }): Promise<{ path: string }>;
|
|
98
|
+
getVideoThumbnail(options: GetVideoThumbnailOptions): GetVideoThumbnailResult;
|
|
99
|
+
compressImage(options: CompressImageOptions): CompressImageResult;
|
|
78
100
|
}
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const VERSION = '2.
|
|
1
|
+
const VERSION = '2.4.0';
|
|
2
2
|
export default VERSION;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["EditInput","forwardRef","ref","text","onChangeText","messageToEdit","setMessageToEdit","onUpdateUserMessage","onSelectionChange","disabled","autoFocus","mentionedUsers","mentionManager","useSendbirdChat","STRINGS","useLocalization","toast","useToast","onPressCancel","onPressSave","isUserMessage","mention","userIds","map","it","user","userId","messageTemplate","textToMentionedMessageTemplate","type","MentionType","USERS","catch","show","TOAST","UPDATE_MSG_ERROR","styles","editInputContainer","inputWrapper","input","GROUP_CHANNEL","INPUT_PLACEHOLDER_ACTIVE","textToMentionedComponents","marginTop","flexDirection","INPUT_EDIT_CANCEL","space","INPUT_EDIT_OK","createStyleSheet","paddingVertical","paddingHorizontal","alignItems","flex","marginRight","minHeight","maxHeight","Platform","select","ios","default","borderRadius"],"sources":["EditInput.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport {\n NativeSyntheticEvent,\n Platform,\n TextInput as RNTextInput,\n TextInputSelectionChangeEventData,\n View,\n} from 'react-native';\n\nimport { MentionType } from '@sendbird/chat/message';\nimport { Button, TextInput, createStyleSheet, useToast } from '@sendbird/uikit-react-native-foundation';\nimport type { SendbirdFileMessage, SendbirdUserMessage } from '@sendbird/uikit-utils';\n\nimport { useLocalization, useSendbirdChat } from '../../../../hooks/useContext';\nimport type { MentionedUser } from '../../../../types';\nimport type { GroupChannelProps } from '../../types';\n\ntype EditInputProps = GroupChannelProps['Input'] & {\n text: string;\n onChangeText: (val: string) => void;\n messageToEdit: SendbirdUserMessage | SendbirdFileMessage;\n setMessageToEdit: (msg?: SendbirdUserMessage | SendbirdFileMessage) => void;\n onSelectionChange: (e: NativeSyntheticEvent<TextInputSelectionChangeEventData>) => void;\n disabled: boolean;\n autoFocus: boolean;\n mentionedUsers: MentionedUser[];\n};\n\nconst EditInput = forwardRef<RNTextInput, EditInputProps>(function EditInput(\n {\n text,\n onChangeText,\n messageToEdit,\n setMessageToEdit,\n onUpdateUserMessage,\n onSelectionChange,\n disabled,\n autoFocus,\n mentionedUsers,\n },\n ref,\n) {\n const { mentionManager } = useSendbirdChat();\n const { STRINGS } = useLocalization();\n const toast = useToast();\n\n const onPressCancel = () => {\n setMessageToEdit();\n onChangeText('');\n };\n\n const onPressSave = () => {\n if (messageToEdit.isUserMessage()) {\n const mention = {\n userIds: mentionedUsers.map((it) => it.user.userId),\n messageTemplate: mentionManager.textToMentionedMessageTemplate(text, mentionedUsers),\n type: MentionType.USERS,\n };\n\n onUpdateUserMessage(text, messageToEdit, mention).catch(() =>\n toast.show(STRINGS.TOAST.UPDATE_MSG_ERROR, 'error'),\n );\n }\n setMessageToEdit();\n onChangeText('');\n };\n\n return (\n <View style={styles.editInputContainer}>\n <View style={styles.inputWrapper}>\n <TextInput\n ref={ref}\n multiline\n disableFullscreenUI\n editable={!disabled}\n autoFocus={autoFocus}\n onChangeText={onChangeText}\n style={styles.input}\n placeholder={STRINGS.GROUP_CHANNEL.INPUT_PLACEHOLDER_ACTIVE}\n onSelectionChange={onSelectionChange}\n >\n {mentionManager.textToMentionedComponents(text, mentionedUsers)}\n </TextInput>\n </View>\n <View style={{ marginTop: 8, flexDirection: 'row' }}>\n <Button variant={'text'} onPress={onPressCancel}>\n {STRINGS.GROUP_CHANNEL.INPUT_EDIT_CANCEL}\n </Button>\n <View style={styles.space} />\n <Button variant={'contained'} onPress={onPressSave}>\n {STRINGS.GROUP_CHANNEL.INPUT_EDIT_OK}\n </Button>\n </View>\n </View>\n );\n});\n\nconst styles = createStyleSheet({\n editInputContainer: {\n paddingVertical: 10,\n paddingHorizontal: 16,\n flexDirection: 'column',\n alignItems: 'center',\n },\n input: {\n flex: 1,\n marginRight: 4,\n minHeight: 36,\n maxHeight: 36 * Platform.select({ ios: 2.5, default: 2 }),\n borderRadius: 20,\n },\n inputWrapper: {\n flexDirection: 'row',\n },\n space: {\n flex: 1,\n },\n});\n\nexport default EditInput;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAQA;;AACA;;AAGA;;;;;;AAeA,MAAMA,SAAS,gBAAG,IAAAC,iBAAA,EAAwC,SAASD,SAAT,OAYxDE,GAZwD,EAaxD;EAAA,IAZA;IACEC,IADF;IAEEC,YAFF;IAGEC,aAHF;IAIEC,gBAJF;IAKEC,mBALF;IAMEC,iBANF;IAOEC,QAPF;IAQEC,SARF;IASEC;EATF,CAYA;EACA,MAAM;IAAEC;EAAF,IAAqB,IAAAC,2BAAA,GAA3B;EACA,MAAM;IAAEC;EAAF,IAAc,IAAAC,2BAAA,GAApB;EACA,MAAMC,KAAK,GAAG,IAAAC,oCAAA,GAAd;;EAEA,MAAMC,aAAa,GAAG,MAAM;IAC1BZ,gBAAgB;IAChBF,YAAY,CAAC,EAAD,CAAZ;EACD,CAHD;;EAKA,MAAMe,WAAW,GAAG,MAAM;IACxB,IAAId,aAAa,CAACe,aAAd,EAAJ,EAAmC;MACjC,MAAMC,OAAO,GAAG;QACdC,OAAO,EAAEX,cAAc,CAACY,GAAf,CAAoBC,EAAD,IAAQA,EAAE,CAACC,IAAH,CAAQC,MAAnC,CADK;QAEdC,eAAe,EAAEf,cAAc,CAACgB,8BAAf,CAA8CzB,IAA9C,EAAoDQ,cAApD,CAFH;QAGdkB,IAAI,EAAEC,oBAAA,CAAYC;MAHJ,CAAhB;MAMAxB,mBAAmB,CAACJ,IAAD,EAAOE,aAAP,EAAsBgB,OAAtB,CAAnB,CAAkDW,KAAlD,CAAwD,MACtDhB,KAAK,CAACiB,IAAN,CAAWnB,OAAO,CAACoB,KAAR,CAAcC,gBAAzB,EAA2C,OAA3C,CADF;IAGD;;IACD7B,gBAAgB;IAChBF,YAAY,CAAC,EAAD,CAAZ;EACD,CAdD;;EAgBA,oBACE,6BAAC,iBAAD;IAAM,KAAK,EAAEgC,MAAM,CAACC;EAApB,gBACE,6BAAC,iBAAD;IAAM,KAAK,EAAED,MAAM,CAACE;EAApB,gBACE,6BAAC,qCAAD;IACE,GAAG,EAAEpC,GADP;IAEE,SAAS,MAFX;IAGE,mBAAmB,MAHrB;IAIE,QAAQ,EAAE,CAACO,QAJb;IAKE,SAAS,EAAEC,SALb;IAME,YAAY,EAAEN,YANhB;IAOE,KAAK,EAAEgC,MAAM,CAACG,KAPhB;IAQE,WAAW,EAAEzB,OAAO,CAAC0B,aAAR,CAAsBC,wBARrC;IASE,iBAAiB,EAAEjC;EATrB,GAWGI,cAAc,CAAC8B,yBAAf,CAAyCvC,IAAzC,EAA+CQ,cAA/C,CAXH,CADF,CADF,eAgBE,6BAAC,iBAAD;IAAM,KAAK,EAAE;MAAEgC,SAAS,EAAE,CAAb;MAAgBC,aAAa,EAAE;IAA/B;EAAb,gBACE,6BAAC,kCAAD;IAAQ,OAAO,EAAE,MAAjB;IAAyB,OAAO,EAAE1B;EAAlC,GACGJ,OAAO,CAAC0B,aAAR,CAAsBK,iBADzB,CADF,eAIE,6BAAC,iBAAD;IAAM,KAAK,EAAET,MAAM,CAACU;EAApB,EAJF,eAKE,6BAAC,kCAAD;IAAQ,OAAO,EAAE,WAAjB;IAA8B,OAAO,EAAE3B;EAAvC,GACGL,OAAO,CAAC0B,aAAR,CAAsBO,aADzB,CALF,CAhBF,CADF;AA4BD,CAnEiB,CAAlB;AAqEA,MAAMX,MAAM,GAAG,IAAAY,4CAAA,EAAiB;EAC9BX,kBAAkB,EAAE;IAClBY,eAAe,EAAE,EADC;IAElBC,iBAAiB,EAAE,EAFD;IAGlBN,aAAa,EAAE,QAHG;IAIlBO,UAAU,EAAE;EAJM,CADU;EAO9BZ,KAAK,EAAE;IACLa,IAAI,EAAE,CADD;IAELC,WAAW,EAAE,CAFR;IAGLC,SAAS,EAAE,EAHN;IAILC,SAAS,EAAE,KAAKC,qBAAA,CAASC,MAAT,CAAgB;MAAEC,GAAG,EAAE,GAAP;MAAYC,OAAO,EAAE;IAArB,CAAhB,CAJX;IAKLC,YAAY,EAAE;EALT,CAPuB;EAc9BtB,YAAY,EAAE;IACZM,aAAa,EAAE;EADH,CAdgB;EAiB9BE,KAAK,EAAE;IACLM,IAAI,EAAE;EADD;AAjBuB,CAAjB,CAAf;eAsBepD,S"}
|