@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.
Files changed (774) hide show
  1. package/README.md +55 -33
  2. package/lib/commonjs/components/ChannelCover.js +54 -40
  3. package/lib/commonjs/components/ChannelCover.js.map +1 -1
  4. package/lib/commonjs/{domain/groupChannel/component/GroupChannelInput → components/ChannelInput}/EditInput.js +28 -13
  5. package/lib/commonjs/components/ChannelInput/EditInput.js.map +1 -0
  6. package/lib/commonjs/{domain/groupChannel/component/GroupChannelInput → components/ChannelInput}/SendInput.js +126 -37
  7. package/lib/commonjs/components/ChannelInput/SendInput.js.map +1 -0
  8. package/lib/commonjs/{domain/groupChannel/component/GroupChannelInput → components/ChannelInput}/index.js +34 -34
  9. package/lib/commonjs/components/ChannelInput/index.js.map +1 -0
  10. package/lib/commonjs/components/FileViewer.js +5 -8
  11. package/lib/commonjs/components/FileViewer.js.map +1 -1
  12. package/lib/commonjs/components/MessageRenderer/FileMessage/BaseFileMessage.js +1 -1
  13. package/lib/commonjs/components/MessageRenderer/FileMessage/BaseFileMessage.js.map +1 -1
  14. package/lib/commonjs/components/MessageRenderer/FileMessage/ImageFileMessage.js +1 -1
  15. package/lib/commonjs/components/MessageRenderer/FileMessage/ImageFileMessage.js.map +1 -1
  16. package/lib/commonjs/components/MessageRenderer/FileMessage/VideoFileMessage.js +3 -3
  17. package/lib/commonjs/components/MessageRenderer/FileMessage/VideoFileMessage.js.map +1 -1
  18. package/lib/commonjs/components/MessageRenderer/FileMessage/index.js +1 -6
  19. package/lib/commonjs/components/MessageRenderer/FileMessage/index.js.map +1 -1
  20. package/lib/commonjs/components/MessageRenderer/MessageDateSeparator.js.map +1 -1
  21. package/lib/commonjs/components/MessageRenderer/MessageIncomingSenderName.js +1 -1
  22. package/lib/commonjs/components/MessageRenderer/MessageIncomingSenderName.js.map +1 -1
  23. package/lib/commonjs/components/MessageRenderer/MessageTime.js +1 -1
  24. package/lib/commonjs/components/MessageRenderer/MessageTime.js.map +1 -1
  25. package/lib/commonjs/components/MessageRenderer/UnknownMessage/index.js +1 -1
  26. package/lib/commonjs/components/MessageRenderer/UnknownMessage/index.js.map +1 -1
  27. package/lib/commonjs/components/MessageRenderer/UserMessage/BaseUserMessage.js +3 -3
  28. package/lib/commonjs/components/MessageRenderer/UserMessage/BaseUserMessage.js.map +1 -1
  29. package/lib/commonjs/components/MessageRenderer/UserMessage/OpenGraphUserMessage.js +6 -4
  30. package/lib/commonjs/components/MessageRenderer/UserMessage/OpenGraphUserMessage.js.map +1 -1
  31. package/lib/commonjs/components/OpenChannelMessageRenderer/OpenChannelMessageDateSeparator.js +58 -0
  32. package/lib/commonjs/components/OpenChannelMessageRenderer/OpenChannelMessageDateSeparator.js.map +1 -0
  33. package/lib/commonjs/components/OpenChannelMessageRenderer/index.js +135 -0
  34. package/lib/commonjs/components/OpenChannelMessageRenderer/index.js.map +1 -0
  35. package/lib/commonjs/components/ReactionAddons/BottomSheetReactionAddon.js +2 -4
  36. package/lib/commonjs/components/ReactionAddons/BottomSheetReactionAddon.js.map +1 -1
  37. package/lib/commonjs/components/TypedPlaceholder.js +6 -0
  38. package/lib/commonjs/components/TypedPlaceholder.js.map +1 -1
  39. package/lib/commonjs/containers/GroupChannelPreviewContainer.js +2 -2
  40. package/lib/commonjs/containers/GroupChannelPreviewContainer.js.map +1 -1
  41. package/lib/commonjs/containers/SendbirdUIKitContainer.js +29 -6
  42. package/lib/commonjs/containers/SendbirdUIKitContainer.js.map +1 -1
  43. package/lib/commonjs/contexts/PlatformServiceCtx.js.map +1 -1
  44. package/lib/commonjs/contexts/SendbirdChatCtx.js +10 -14
  45. package/lib/commonjs/contexts/SendbirdChatCtx.js.map +1 -1
  46. package/lib/commonjs/contexts/UserProfileCtx.js +20 -10
  47. package/lib/commonjs/contexts/UserProfileCtx.js.map +1 -1
  48. package/lib/commonjs/domain/groupChannel/component/GroupChannelInput.js +54 -0
  49. package/lib/commonjs/domain/groupChannel/component/GroupChannelInput.js.map +1 -0
  50. package/lib/commonjs/domain/groupChannel/component/GroupChannelMessageList.js +13 -11
  51. package/lib/commonjs/domain/groupChannel/component/GroupChannelMessageList.js.map +1 -1
  52. package/lib/commonjs/domain/groupChannel/module/moduleContext.js +2 -2
  53. package/lib/commonjs/domain/groupChannel/module/moduleContext.js.map +1 -1
  54. package/lib/commonjs/domain/groupChannel/types.js.map +1 -1
  55. package/lib/commonjs/domain/groupChannelBannedUsers/index.js +8 -0
  56. package/lib/commonjs/domain/groupChannelBannedUsers/index.js.map +1 -1
  57. package/lib/commonjs/domain/groupChannelList/component/GroupChannelListList.js +1 -1
  58. package/lib/commonjs/domain/groupChannelList/component/GroupChannelListList.js.map +1 -1
  59. package/lib/commonjs/domain/groupChannelMutedMembers/component/GroupChannelMutedMembersList.js +4 -2
  60. package/lib/commonjs/domain/groupChannelMutedMembers/component/GroupChannelMutedMembersList.js.map +1 -1
  61. package/lib/commonjs/domain/groupChannelOperators/component/GroupChannelOperatorsList.js +4 -2
  62. package/lib/commonjs/domain/groupChannelOperators/component/GroupChannelOperatorsList.js.map +1 -1
  63. package/lib/commonjs/domain/groupChannelSettings/component/GroupChannelSettingsInfo.js +1 -1
  64. package/lib/commonjs/domain/groupChannelSettings/component/GroupChannelSettingsInfo.js.map +1 -1
  65. package/lib/commonjs/domain/groupChannelSettings/module/moduleContext.js +4 -5
  66. package/lib/commonjs/domain/groupChannelSettings/module/moduleContext.js.map +1 -1
  67. package/lib/commonjs/domain/openChannel/component/OpenChannelHeader.js +83 -0
  68. package/lib/commonjs/domain/openChannel/component/OpenChannelHeader.js.map +1 -0
  69. package/lib/commonjs/domain/openChannel/component/OpenChannelInput.js +95 -0
  70. package/lib/commonjs/domain/openChannel/component/OpenChannelInput.js.map +1 -0
  71. package/lib/commonjs/domain/openChannel/component/OpenChannelMessageList.js +351 -0
  72. package/lib/commonjs/domain/openChannel/component/OpenChannelMessageList.js.map +1 -0
  73. package/lib/commonjs/domain/openChannel/component/OpenChannelStatusEmpty.js +34 -0
  74. package/lib/commonjs/domain/openChannel/component/OpenChannelStatusEmpty.js.map +1 -0
  75. package/lib/commonjs/domain/openChannel/component/OpenChannelStatusLoading.js +34 -0
  76. package/lib/commonjs/domain/openChannel/component/OpenChannelStatusLoading.js.map +1 -0
  77. package/lib/commonjs/domain/openChannel/index.js +62 -0
  78. package/lib/commonjs/domain/openChannel/index.js.map +1 -0
  79. package/lib/commonjs/domain/openChannel/module/createOpenChannelModule.js +45 -0
  80. package/lib/commonjs/domain/openChannel/module/createOpenChannelModule.js.map +1 -0
  81. package/lib/commonjs/domain/openChannel/module/moduleContext.js +53 -0
  82. package/lib/commonjs/domain/openChannel/module/moduleContext.js.map +1 -0
  83. package/lib/commonjs/domain/openChannel/types.js +6 -0
  84. package/lib/commonjs/domain/openChannel/types.js.map +1 -0
  85. package/lib/commonjs/domain/openChannelBannedUsers/component/OpenChannelBannedUsersHeader.js +39 -0
  86. package/lib/commonjs/domain/openChannelBannedUsers/component/OpenChannelBannedUsersHeader.js.map +1 -0
  87. package/lib/commonjs/domain/openChannelBannedUsers/component/OpenChannelBannedUsersList.js +54 -0
  88. package/lib/commonjs/domain/openChannelBannedUsers/component/OpenChannelBannedUsersList.js.map +1 -0
  89. package/lib/commonjs/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusEmpty.js +28 -0
  90. package/lib/commonjs/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusEmpty.js.map +1 -0
  91. package/lib/commonjs/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusError.js +32 -0
  92. package/lib/commonjs/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusError.js.map +1 -0
  93. package/lib/commonjs/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusLoading.js +28 -0
  94. package/lib/commonjs/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusLoading.js.map +1 -0
  95. package/lib/commonjs/domain/openChannelBannedUsers/index.js +70 -0
  96. package/lib/commonjs/domain/openChannelBannedUsers/index.js.map +1 -0
  97. package/lib/commonjs/domain/openChannelBannedUsers/module/createOpenChannelBannedUsersModule.js +45 -0
  98. package/lib/commonjs/domain/openChannelBannedUsers/module/createOpenChannelBannedUsersModule.js.map +1 -0
  99. package/lib/commonjs/domain/openChannelBannedUsers/module/moduleContext.js +45 -0
  100. package/lib/commonjs/domain/openChannelBannedUsers/module/moduleContext.js.map +1 -0
  101. package/lib/commonjs/domain/openChannelBannedUsers/types.js +6 -0
  102. package/lib/commonjs/domain/openChannelBannedUsers/types.js.map +1 -0
  103. package/lib/commonjs/domain/openChannelCreate/component/OpenChannelCreateHeader.js +53 -0
  104. package/lib/commonjs/domain/openChannelCreate/component/OpenChannelCreateHeader.js.map +1 -0
  105. package/lib/commonjs/domain/openChannelCreate/component/OpenChannelCreateProfileInput.js +169 -0
  106. package/lib/commonjs/domain/openChannelCreate/component/OpenChannelCreateProfileInput.js.map +1 -0
  107. package/lib/commonjs/domain/openChannelCreate/component/OpenChannelCreateStatusLoading.js +22 -0
  108. package/lib/commonjs/domain/openChannelCreate/component/OpenChannelCreateStatusLoading.js.map +1 -0
  109. package/lib/commonjs/domain/openChannelCreate/index.js +54 -0
  110. package/lib/commonjs/domain/openChannelCreate/index.js.map +1 -0
  111. package/lib/commonjs/domain/openChannelCreate/module/createOpenChannelCreateModule.js +37 -0
  112. package/lib/commonjs/domain/openChannelCreate/module/createOpenChannelCreateModule.js.map +1 -0
  113. package/lib/commonjs/domain/openChannelCreate/module/moduleContext.js +44 -0
  114. package/lib/commonjs/domain/openChannelCreate/module/moduleContext.js.map +1 -0
  115. package/lib/commonjs/domain/openChannelCreate/types.js +6 -0
  116. package/lib/commonjs/domain/openChannelCreate/types.js.map +1 -0
  117. package/lib/commonjs/domain/openChannelList/component/OpenChannelListHeader.js +39 -0
  118. package/lib/commonjs/domain/openChannelList/component/OpenChannelListHeader.js.map +1 -0
  119. package/lib/commonjs/domain/openChannelList/component/OpenChannelListList.js +58 -0
  120. package/lib/commonjs/domain/openChannelList/component/OpenChannelListList.js.map +1 -0
  121. package/lib/commonjs/domain/openChannelList/component/OpenChannelListStatusEmpty.js +34 -0
  122. package/lib/commonjs/domain/openChannelList/component/OpenChannelListStatusEmpty.js.map +1 -0
  123. package/lib/commonjs/domain/openChannelList/component/OpenChannelListStatusError.js +32 -0
  124. package/lib/commonjs/domain/openChannelList/component/OpenChannelListStatusError.js.map +1 -0
  125. package/lib/commonjs/domain/openChannelList/component/OpenChannelListStatusLoading.js +34 -0
  126. package/lib/commonjs/domain/openChannelList/component/OpenChannelListStatusLoading.js.map +1 -0
  127. package/lib/commonjs/domain/openChannelList/index.js +70 -0
  128. package/lib/commonjs/domain/openChannelList/index.js.map +1 -0
  129. package/lib/commonjs/domain/openChannelList/module/createOpenChannelListModule.js +45 -0
  130. package/lib/commonjs/domain/openChannelList/module/createOpenChannelListModule.js.map +1 -0
  131. package/lib/commonjs/domain/openChannelList/module/moduleContext.js +42 -0
  132. package/lib/commonjs/domain/openChannelList/module/moduleContext.js.map +1 -0
  133. package/lib/commonjs/domain/openChannelList/types.js +6 -0
  134. package/lib/commonjs/domain/openChannelList/types.js.map +1 -0
  135. package/lib/commonjs/domain/openChannelModeration/component/OpenChannelModerationHeader.js +39 -0
  136. package/lib/commonjs/domain/openChannelModeration/component/OpenChannelModerationHeader.js.map +1 -0
  137. package/lib/commonjs/domain/openChannelModeration/component/OpenChannelModerationMenu.js +74 -0
  138. package/lib/commonjs/domain/openChannelModeration/component/OpenChannelModerationMenu.js.map +1 -0
  139. package/lib/commonjs/domain/openChannelModeration/index.js +46 -0
  140. package/lib/commonjs/domain/openChannelModeration/index.js.map +1 -0
  141. package/lib/commonjs/domain/openChannelModeration/module/createOpenChannelModerationModule.js +33 -0
  142. package/lib/commonjs/domain/openChannelModeration/module/createOpenChannelModerationModule.js.map +1 -0
  143. package/lib/commonjs/domain/openChannelModeration/module/moduleContext.js +45 -0
  144. package/lib/commonjs/domain/openChannelModeration/module/moduleContext.js.map +1 -0
  145. package/lib/commonjs/domain/openChannelModeration/types.js +6 -0
  146. package/lib/commonjs/domain/openChannelModeration/types.js.map +1 -0
  147. package/lib/commonjs/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsHeader.js +39 -0
  148. package/lib/commonjs/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsHeader.js.map +1 -0
  149. package/lib/commonjs/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsList.js +54 -0
  150. package/lib/commonjs/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsList.js.map +1 -0
  151. package/lib/commonjs/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusEmpty.js +28 -0
  152. package/lib/commonjs/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusEmpty.js.map +1 -0
  153. package/lib/commonjs/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusError.js +32 -0
  154. package/lib/commonjs/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusError.js.map +1 -0
  155. package/lib/commonjs/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusLoading.js +28 -0
  156. package/lib/commonjs/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusLoading.js.map +1 -0
  157. package/lib/commonjs/domain/openChannelMutedParticipants/index.js +62 -0
  158. package/lib/commonjs/domain/openChannelMutedParticipants/index.js.map +1 -0
  159. package/lib/commonjs/domain/openChannelMutedParticipants/module/createOpenChannelMutedParticipantsModule.js +45 -0
  160. package/lib/commonjs/domain/openChannelMutedParticipants/module/createOpenChannelMutedParticipantsModule.js.map +1 -0
  161. package/lib/commonjs/domain/openChannelMutedParticipants/module/moduleContext.js +45 -0
  162. package/lib/commonjs/domain/openChannelMutedParticipants/module/moduleContext.js.map +1 -0
  163. package/lib/commonjs/domain/openChannelMutedParticipants/types.js +6 -0
  164. package/lib/commonjs/domain/openChannelMutedParticipants/types.js.map +1 -0
  165. package/lib/commonjs/domain/openChannelOperators/component/OpenChannelOperatorsHeader.js +44 -0
  166. package/lib/commonjs/domain/openChannelOperators/component/OpenChannelOperatorsHeader.js.map +1 -0
  167. package/lib/commonjs/domain/openChannelOperators/component/OpenChannelOperatorsList.js +54 -0
  168. package/lib/commonjs/domain/openChannelOperators/component/OpenChannelOperatorsList.js.map +1 -0
  169. package/lib/commonjs/domain/openChannelOperators/component/OpenChannelOperatorsStatusEmpty.js +28 -0
  170. package/lib/commonjs/domain/openChannelOperators/component/OpenChannelOperatorsStatusEmpty.js.map +1 -0
  171. package/lib/commonjs/domain/openChannelOperators/component/OpenChannelOperatorsStatusError.js +32 -0
  172. package/lib/commonjs/domain/openChannelOperators/component/OpenChannelOperatorsStatusError.js.map +1 -0
  173. package/lib/commonjs/domain/openChannelOperators/component/OpenChannelOperatorsStatusLoading.js +28 -0
  174. package/lib/commonjs/domain/openChannelOperators/component/OpenChannelOperatorsStatusLoading.js.map +1 -0
  175. package/lib/commonjs/domain/openChannelOperators/index.js +62 -0
  176. package/lib/commonjs/domain/openChannelOperators/index.js.map +1 -0
  177. package/lib/commonjs/domain/openChannelOperators/module/createOpenChannelOperatorsModule.js +45 -0
  178. package/lib/commonjs/domain/openChannelOperators/module/createOpenChannelOperatorsModule.js.map +1 -0
  179. package/lib/commonjs/domain/openChannelOperators/module/moduleContext.js +45 -0
  180. package/lib/commonjs/domain/openChannelOperators/module/moduleContext.js.map +1 -0
  181. package/lib/commonjs/domain/openChannelOperators/types.js +6 -0
  182. package/lib/commonjs/domain/openChannelOperators/types.js.map +1 -0
  183. package/lib/commonjs/domain/openChannelSettings/component/OpenChannelSettingsHeader.js +49 -0
  184. package/lib/commonjs/domain/openChannelSettings/component/OpenChannelSettingsHeader.js.map +1 -0
  185. package/lib/commonjs/domain/openChannelSettings/component/OpenChannelSettingsInfo.js +68 -0
  186. package/lib/commonjs/domain/openChannelSettings/component/OpenChannelSettingsInfo.js.map +1 -0
  187. package/lib/commonjs/domain/openChannelSettings/component/OpenChannelSettingsMenu.js +118 -0
  188. package/lib/commonjs/domain/openChannelSettings/component/OpenChannelSettingsMenu.js.map +1 -0
  189. package/lib/commonjs/domain/openChannelSettings/index.js +54 -0
  190. package/lib/commonjs/domain/openChannelSettings/index.js.map +1 -0
  191. package/lib/commonjs/domain/openChannelSettings/module/createOpenChannelSettingsModule.js +37 -0
  192. package/lib/commonjs/domain/openChannelSettings/module/createOpenChannelSettingsModule.js.map +1 -0
  193. package/lib/commonjs/domain/openChannelSettings/module/moduleContext.js +186 -0
  194. package/lib/commonjs/domain/openChannelSettings/module/moduleContext.js.map +1 -0
  195. package/lib/commonjs/domain/openChannelSettings/types.js +6 -0
  196. package/lib/commonjs/domain/openChannelSettings/types.js.map +1 -0
  197. package/lib/commonjs/domain/openChannelUserList/types.js +6 -0
  198. package/lib/commonjs/domain/openChannelUserList/types.js.map +1 -0
  199. package/lib/commonjs/fragments/createGroupChannelCreateFragment.js +3 -6
  200. package/lib/commonjs/fragments/createGroupChannelCreateFragment.js.map +1 -1
  201. package/lib/commonjs/fragments/createGroupChannelFragment.js +33 -3
  202. package/lib/commonjs/fragments/createGroupChannelFragment.js.map +1 -1
  203. package/lib/commonjs/fragments/createGroupChannelListFragment.js +4 -14
  204. package/lib/commonjs/fragments/createGroupChannelListFragment.js.map +1 -1
  205. package/lib/commonjs/fragments/createGroupChannelMembersFragment.js +6 -8
  206. package/lib/commonjs/fragments/createGroupChannelMembersFragment.js.map +1 -1
  207. package/lib/commonjs/fragments/createGroupChannelMutedMembersFragment.js +13 -4
  208. package/lib/commonjs/fragments/createGroupChannelMutedMembersFragment.js.map +1 -1
  209. package/lib/commonjs/fragments/createGroupChannelOperatorsFragment.js +2 -4
  210. package/lib/commonjs/fragments/createGroupChannelOperatorsFragment.js.map +1 -1
  211. package/lib/commonjs/fragments/createOpenChannelBannedUsersFragment.js +101 -0
  212. package/lib/commonjs/fragments/createOpenChannelBannedUsersFragment.js.map +1 -0
  213. package/lib/commonjs/fragments/createOpenChannelCreateFragment.js +86 -0
  214. package/lib/commonjs/fragments/createOpenChannelCreateFragment.js.map +1 -0
  215. package/lib/commonjs/fragments/createOpenChannelFragment.js +177 -0
  216. package/lib/commonjs/fragments/createOpenChannelFragment.js.map +1 -0
  217. package/lib/commonjs/fragments/createOpenChannelListFragment.js +93 -0
  218. package/lib/commonjs/fragments/createOpenChannelListFragment.js.map +1 -0
  219. package/lib/commonjs/fragments/createOpenChannelModerationFragment.js +68 -0
  220. package/lib/commonjs/fragments/createOpenChannelModerationFragment.js.map +1 -0
  221. package/lib/commonjs/fragments/createOpenChannelMutedParticipantsFragment.js +117 -0
  222. package/lib/commonjs/fragments/createOpenChannelMutedParticipantsFragment.js.map +1 -0
  223. package/lib/commonjs/fragments/createOpenChannelOperatorsFragment.js +124 -0
  224. package/lib/commonjs/fragments/createOpenChannelOperatorsFragment.js.map +1 -0
  225. package/lib/commonjs/fragments/createOpenChannelParticipantsFragment.js +162 -0
  226. package/lib/commonjs/fragments/createOpenChannelParticipantsFragment.js.map +1 -0
  227. package/lib/commonjs/fragments/createOpenChannelRegisterOperatorFragment.js +116 -0
  228. package/lib/commonjs/fragments/createOpenChannelRegisterOperatorFragment.js.map +1 -0
  229. package/lib/commonjs/fragments/createOpenChannelSettingsFragment.js +70 -0
  230. package/lib/commonjs/fragments/createOpenChannelSettingsFragment.js.map +1 -0
  231. package/lib/commonjs/hooks/useKeyboardStatus.js +13 -9
  232. package/lib/commonjs/hooks/useKeyboardStatus.js.map +1 -1
  233. package/lib/commonjs/hooks/useMentionSuggestion.js +3 -12
  234. package/lib/commonjs/hooks/useMentionSuggestion.js.map +1 -1
  235. package/lib/commonjs/index.js +475 -46
  236. package/lib/commonjs/index.js.map +1 -1
  237. package/lib/commonjs/libs/ImageCompressionConfig.js +38 -0
  238. package/lib/commonjs/libs/ImageCompressionConfig.js.map +1 -0
  239. package/lib/commonjs/libs/SBUUtils.js +27 -0
  240. package/lib/commonjs/libs/SBUUtils.js.map +1 -1
  241. package/lib/commonjs/localization/StringSet.en.js +2 -2
  242. package/lib/commonjs/localization/StringSet.en.js.map +1 -1
  243. package/lib/commonjs/localization/StringSet.type.js +0 -247
  244. package/lib/commonjs/localization/StringSet.type.js.map +1 -1
  245. package/lib/commonjs/localization/createBaseStringSet.js +393 -0
  246. package/lib/commonjs/localization/createBaseStringSet.js.map +1 -0
  247. package/lib/commonjs/platform/createFileService.native.js +5 -0
  248. package/lib/commonjs/platform/createFileService.native.js.map +1 -1
  249. package/lib/commonjs/platform/createMediaService.expo.js +35 -1
  250. package/lib/commonjs/platform/createMediaService.expo.js.map +1 -1
  251. package/lib/commonjs/platform/createMediaService.native.js +41 -6
  252. package/lib/commonjs/platform/createMediaService.native.js.map +1 -1
  253. package/lib/commonjs/platform/dynamicModule.js +9 -57
  254. package/lib/commonjs/platform/dynamicModule.js.map +1 -1
  255. package/lib/commonjs/platform/types.js.map +1 -1
  256. package/lib/commonjs/version.js +1 -1
  257. package/lib/commonjs/version.js.map +1 -1
  258. package/lib/module/components/ChannelCover.js +47 -33
  259. package/lib/module/components/ChannelCover.js.map +1 -1
  260. package/lib/module/{domain/groupChannel/component/GroupChannelInput → components/ChannelInput}/EditInput.js +28 -13
  261. package/lib/module/components/ChannelInput/EditInput.js.map +1 -0
  262. package/lib/module/components/ChannelInput/SendInput.js +267 -0
  263. package/lib/module/components/ChannelInput/SendInput.js.map +1 -0
  264. package/lib/module/{domain/groupChannel/component/GroupChannelInput → components/ChannelInput}/index.js +36 -35
  265. package/lib/module/components/ChannelInput/index.js.map +1 -0
  266. package/lib/module/components/FileViewer.js +5 -8
  267. package/lib/module/components/FileViewer.js.map +1 -1
  268. package/lib/module/components/MessageRenderer/FileMessage/BaseFileMessage.js +1 -1
  269. package/lib/module/components/MessageRenderer/FileMessage/BaseFileMessage.js.map +1 -1
  270. package/lib/module/components/MessageRenderer/FileMessage/ImageFileMessage.js +1 -1
  271. package/lib/module/components/MessageRenderer/FileMessage/ImageFileMessage.js.map +1 -1
  272. package/lib/module/components/MessageRenderer/FileMessage/VideoFileMessage.js +3 -3
  273. package/lib/module/components/MessageRenderer/FileMessage/VideoFileMessage.js.map +1 -1
  274. package/lib/module/components/MessageRenderer/FileMessage/index.js +1 -5
  275. package/lib/module/components/MessageRenderer/FileMessage/index.js.map +1 -1
  276. package/lib/module/components/MessageRenderer/MessageDateSeparator.js.map +1 -1
  277. package/lib/module/components/MessageRenderer/MessageIncomingSenderName.js +1 -1
  278. package/lib/module/components/MessageRenderer/MessageIncomingSenderName.js.map +1 -1
  279. package/lib/module/components/MessageRenderer/MessageTime.js +1 -1
  280. package/lib/module/components/MessageRenderer/MessageTime.js.map +1 -1
  281. package/lib/module/components/MessageRenderer/UnknownMessage/index.js +1 -1
  282. package/lib/module/components/MessageRenderer/UnknownMessage/index.js.map +1 -1
  283. package/lib/module/components/MessageRenderer/UserMessage/BaseUserMessage.js +3 -3
  284. package/lib/module/components/MessageRenderer/UserMessage/BaseUserMessage.js.map +1 -1
  285. package/lib/module/components/MessageRenderer/UserMessage/OpenGraphUserMessage.js +5 -5
  286. package/lib/module/components/MessageRenderer/UserMessage/OpenGraphUserMessage.js.map +1 -1
  287. package/lib/module/components/OpenChannelMessageRenderer/OpenChannelMessageDateSeparator.js +44 -0
  288. package/lib/module/components/OpenChannelMessageRenderer/OpenChannelMessageDateSeparator.js.map +1 -0
  289. package/lib/module/components/OpenChannelMessageRenderer/index.js +119 -0
  290. package/lib/module/components/OpenChannelMessageRenderer/index.js.map +1 -0
  291. package/lib/module/components/ReactionAddons/BottomSheetReactionAddon.js +3 -4
  292. package/lib/module/components/ReactionAddons/BottomSheetReactionAddon.js.map +1 -1
  293. package/lib/module/components/TypedPlaceholder.js +6 -0
  294. package/lib/module/components/TypedPlaceholder.js.map +1 -1
  295. package/lib/module/containers/GroupChannelPreviewContainer.js +3 -3
  296. package/lib/module/containers/GroupChannelPreviewContainer.js.map +1 -1
  297. package/lib/module/containers/SendbirdUIKitContainer.js +28 -6
  298. package/lib/module/containers/SendbirdUIKitContainer.js.map +1 -1
  299. package/lib/module/contexts/PlatformServiceCtx.js.map +1 -1
  300. package/lib/module/contexts/SendbirdChatCtx.js +12 -14
  301. package/lib/module/contexts/SendbirdChatCtx.js.map +1 -1
  302. package/lib/module/contexts/UserProfileCtx.js +21 -11
  303. package/lib/module/contexts/UserProfileCtx.js.map +1 -1
  304. package/lib/module/domain/groupChannel/component/GroupChannelInput.js +36 -0
  305. package/lib/module/domain/groupChannel/component/GroupChannelInput.js.map +1 -0
  306. package/lib/module/domain/groupChannel/component/GroupChannelMessageList.js +13 -12
  307. package/lib/module/domain/groupChannel/component/GroupChannelMessageList.js.map +1 -1
  308. package/lib/module/domain/groupChannel/module/moduleContext.js +3 -3
  309. package/lib/module/domain/groupChannel/module/moduleContext.js.map +1 -1
  310. package/lib/module/domain/groupChannel/types.js.map +1 -1
  311. package/lib/module/domain/groupChannelBannedUsers/index.js +1 -0
  312. package/lib/module/domain/groupChannelBannedUsers/index.js.map +1 -1
  313. package/lib/module/domain/groupChannelList/component/GroupChannelListList.js +2 -2
  314. package/lib/module/domain/groupChannelList/component/GroupChannelListList.js.map +1 -1
  315. package/lib/module/domain/groupChannelMutedMembers/component/GroupChannelMutedMembersList.js +4 -2
  316. package/lib/module/domain/groupChannelMutedMembers/component/GroupChannelMutedMembersList.js.map +1 -1
  317. package/lib/module/domain/groupChannelOperators/component/GroupChannelOperatorsList.js +4 -2
  318. package/lib/module/domain/groupChannelOperators/component/GroupChannelOperatorsList.js.map +1 -1
  319. package/lib/module/domain/groupChannelSettings/component/GroupChannelSettingsInfo.js +1 -1
  320. package/lib/module/domain/groupChannelSettings/component/GroupChannelSettingsInfo.js.map +1 -1
  321. package/lib/module/domain/groupChannelSettings/module/moduleContext.js +5 -6
  322. package/lib/module/domain/groupChannelSettings/module/moduleContext.js.map +1 -1
  323. package/lib/module/domain/openChannel/component/OpenChannelHeader.js +63 -0
  324. package/lib/module/domain/openChannel/component/OpenChannelHeader.js.map +1 -0
  325. package/lib/module/domain/openChannel/component/OpenChannelInput.js +74 -0
  326. package/lib/module/domain/openChannel/component/OpenChannelInput.js.map +1 -0
  327. package/lib/module/domain/openChannel/component/OpenChannelMessageList.js +325 -0
  328. package/lib/module/domain/openChannel/component/OpenChannelMessageList.js.map +1 -0
  329. package/lib/module/domain/openChannel/component/OpenChannelStatusEmpty.js +21 -0
  330. package/lib/module/domain/openChannel/component/OpenChannelStatusEmpty.js.map +1 -0
  331. package/lib/module/domain/openChannel/component/OpenChannelStatusLoading.js +21 -0
  332. package/lib/module/domain/openChannel/component/OpenChannelStatusLoading.js.map +1 -0
  333. package/lib/module/domain/openChannel/index.js +7 -0
  334. package/lib/module/domain/openChannel/index.js.map +1 -0
  335. package/lib/module/domain/openChannel/module/createOpenChannelModule.js +30 -0
  336. package/lib/module/domain/openChannel/module/createOpenChannelModule.js.map +1 -0
  337. package/lib/module/domain/openChannel/module/moduleContext.js +32 -0
  338. package/lib/module/domain/openChannel/module/moduleContext.js.map +1 -0
  339. package/lib/module/domain/openChannel/types.js +2 -0
  340. package/lib/module/domain/openChannel/types.js.map +1 -0
  341. package/lib/module/domain/openChannelBannedUsers/component/OpenChannelBannedUsersHeader.js +25 -0
  342. package/lib/module/domain/openChannelBannedUsers/component/OpenChannelBannedUsersHeader.js.map +1 -0
  343. package/lib/module/domain/openChannelBannedUsers/component/OpenChannelBannedUsersList.js +41 -0
  344. package/lib/module/domain/openChannelBannedUsers/component/OpenChannelBannedUsersList.js.map +1 -0
  345. package/lib/module/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusEmpty.js +16 -0
  346. package/lib/module/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusEmpty.js.map +1 -0
  347. package/lib/module/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusError.js +20 -0
  348. package/lib/module/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusError.js.map +1 -0
  349. package/lib/module/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusLoading.js +16 -0
  350. package/lib/module/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusLoading.js.map +1 -0
  351. package/lib/module/domain/openChannelBannedUsers/index.js +8 -0
  352. package/lib/module/domain/openChannelBannedUsers/index.js.map +1 -0
  353. package/lib/module/domain/openChannelBannedUsers/module/createOpenChannelBannedUsersModule.js +30 -0
  354. package/lib/module/domain/openChannelBannedUsers/module/createOpenChannelBannedUsersModule.js.map +1 -0
  355. package/lib/module/domain/openChannelBannedUsers/module/moduleContext.js +25 -0
  356. package/lib/module/domain/openChannelBannedUsers/module/moduleContext.js.map +1 -0
  357. package/lib/module/domain/openChannelBannedUsers/types.js +2 -0
  358. package/lib/module/domain/openChannelBannedUsers/types.js.map +1 -0
  359. package/lib/module/domain/openChannelCreate/component/OpenChannelCreateHeader.js +38 -0
  360. package/lib/module/domain/openChannelCreate/component/OpenChannelCreateHeader.js.map +1 -0
  361. package/lib/module/domain/openChannelCreate/component/OpenChannelCreateProfileInput.js +153 -0
  362. package/lib/module/domain/openChannelCreate/component/OpenChannelCreateProfileInput.js.map +1 -0
  363. package/lib/module/domain/openChannelCreate/component/OpenChannelCreateStatusLoading.js +11 -0
  364. package/lib/module/domain/openChannelCreate/component/OpenChannelCreateStatusLoading.js.map +1 -0
  365. package/lib/module/domain/openChannelCreate/index.js +6 -0
  366. package/lib/module/domain/openChannelCreate/index.js.map +1 -0
  367. package/lib/module/domain/openChannelCreate/module/createOpenChannelCreateModule.js +24 -0
  368. package/lib/module/domain/openChannelCreate/module/createOpenChannelCreateModule.js.map +1 -0
  369. package/lib/module/domain/openChannelCreate/module/moduleContext.js +24 -0
  370. package/lib/module/domain/openChannelCreate/module/moduleContext.js.map +1 -0
  371. package/lib/module/domain/openChannelCreate/types.js +2 -0
  372. package/lib/module/domain/openChannelCreate/types.js.map +1 -0
  373. package/lib/module/domain/openChannelList/component/OpenChannelListHeader.js +25 -0
  374. package/lib/module/domain/openChannelList/component/OpenChannelListHeader.js.map +1 -0
  375. package/lib/module/domain/openChannelList/component/OpenChannelListList.js +45 -0
  376. package/lib/module/domain/openChannelList/component/OpenChannelListList.js.map +1 -0
  377. package/lib/module/domain/openChannelList/component/OpenChannelListStatusEmpty.js +21 -0
  378. package/lib/module/domain/openChannelList/component/OpenChannelListStatusEmpty.js.map +1 -0
  379. package/lib/module/domain/openChannelList/component/OpenChannelListStatusError.js +20 -0
  380. package/lib/module/domain/openChannelList/component/OpenChannelListStatusError.js.map +1 -0
  381. package/lib/module/domain/openChannelList/component/OpenChannelListStatusLoading.js +21 -0
  382. package/lib/module/domain/openChannelList/component/OpenChannelListStatusLoading.js.map +1 -0
  383. package/lib/module/domain/openChannelList/index.js +8 -0
  384. package/lib/module/domain/openChannelList/index.js.map +1 -0
  385. package/lib/module/domain/openChannelList/module/createOpenChannelListModule.js +30 -0
  386. package/lib/module/domain/openChannelList/module/createOpenChannelListModule.js.map +1 -0
  387. package/lib/module/domain/openChannelList/module/moduleContext.js +22 -0
  388. package/lib/module/domain/openChannelList/module/moduleContext.js.map +1 -0
  389. package/lib/module/domain/openChannelList/types.js +2 -0
  390. package/lib/module/domain/openChannelList/types.js.map +1 -0
  391. package/lib/module/domain/openChannelModeration/component/OpenChannelModerationHeader.js +25 -0
  392. package/lib/module/domain/openChannelModeration/component/OpenChannelModerationHeader.js.map +1 -0
  393. package/lib/module/domain/openChannelModeration/component/OpenChannelModerationMenu.js +61 -0
  394. package/lib/module/domain/openChannelModeration/component/OpenChannelModerationMenu.js.map +1 -0
  395. package/lib/module/domain/openChannelModeration/index.js +5 -0
  396. package/lib/module/domain/openChannelModeration/index.js.map +1 -0
  397. package/lib/module/domain/openChannelModeration/module/createOpenChannelModerationModule.js +21 -0
  398. package/lib/module/domain/openChannelModeration/module/createOpenChannelModerationModule.js.map +1 -0
  399. package/lib/module/domain/openChannelModeration/module/moduleContext.js +25 -0
  400. package/lib/module/domain/openChannelModeration/module/moduleContext.js.map +1 -0
  401. package/lib/module/domain/openChannelModeration/types.js +2 -0
  402. package/lib/module/domain/openChannelModeration/types.js.map +1 -0
  403. package/lib/module/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsHeader.js +25 -0
  404. package/lib/module/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsHeader.js.map +1 -0
  405. package/lib/module/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsList.js +41 -0
  406. package/lib/module/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsList.js.map +1 -0
  407. package/lib/module/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusEmpty.js +16 -0
  408. package/lib/module/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusEmpty.js.map +1 -0
  409. package/lib/module/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusError.js +20 -0
  410. package/lib/module/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusError.js.map +1 -0
  411. package/lib/module/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusLoading.js +16 -0
  412. package/lib/module/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusLoading.js.map +1 -0
  413. package/lib/module/domain/openChannelMutedParticipants/index.js +7 -0
  414. package/lib/module/domain/openChannelMutedParticipants/index.js.map +1 -0
  415. package/lib/module/domain/openChannelMutedParticipants/module/createOpenChannelMutedParticipantsModule.js +30 -0
  416. package/lib/module/domain/openChannelMutedParticipants/module/createOpenChannelMutedParticipantsModule.js.map +1 -0
  417. package/lib/module/domain/openChannelMutedParticipants/module/moduleContext.js +25 -0
  418. package/lib/module/domain/openChannelMutedParticipants/module/moduleContext.js.map +1 -0
  419. package/lib/module/domain/openChannelMutedParticipants/types.js +2 -0
  420. package/lib/module/domain/openChannelMutedParticipants/types.js.map +1 -0
  421. package/lib/module/domain/openChannelOperators/component/OpenChannelOperatorsHeader.js +30 -0
  422. package/lib/module/domain/openChannelOperators/component/OpenChannelOperatorsHeader.js.map +1 -0
  423. package/lib/module/domain/openChannelOperators/component/OpenChannelOperatorsList.js +41 -0
  424. package/lib/module/domain/openChannelOperators/component/OpenChannelOperatorsList.js.map +1 -0
  425. package/lib/module/domain/openChannelOperators/component/OpenChannelOperatorsStatusEmpty.js +16 -0
  426. package/lib/module/domain/openChannelOperators/component/OpenChannelOperatorsStatusEmpty.js.map +1 -0
  427. package/lib/module/domain/openChannelOperators/component/OpenChannelOperatorsStatusError.js +20 -0
  428. package/lib/module/domain/openChannelOperators/component/OpenChannelOperatorsStatusError.js.map +1 -0
  429. package/lib/module/domain/openChannelOperators/component/OpenChannelOperatorsStatusLoading.js +16 -0
  430. package/lib/module/domain/openChannelOperators/component/OpenChannelOperatorsStatusLoading.js.map +1 -0
  431. package/lib/module/domain/openChannelOperators/index.js +7 -0
  432. package/lib/module/domain/openChannelOperators/index.js.map +1 -0
  433. package/lib/module/domain/openChannelOperators/module/createOpenChannelOperatorsModule.js +30 -0
  434. package/lib/module/domain/openChannelOperators/module/createOpenChannelOperatorsModule.js.map +1 -0
  435. package/lib/module/domain/openChannelOperators/module/moduleContext.js +25 -0
  436. package/lib/module/domain/openChannelOperators/module/moduleContext.js.map +1 -0
  437. package/lib/module/domain/openChannelOperators/types.js +2 -0
  438. package/lib/module/domain/openChannelOperators/types.js.map +1 -0
  439. package/lib/module/domain/openChannelSettings/component/OpenChannelSettingsHeader.js +35 -0
  440. package/lib/module/domain/openChannelSettings/component/OpenChannelSettingsHeader.js.map +1 -0
  441. package/lib/module/domain/openChannelSettings/component/OpenChannelSettingsInfo.js +49 -0
  442. package/lib/module/domain/openChannelSettings/component/OpenChannelSettingsInfo.js.map +1 -0
  443. package/lib/module/domain/openChannelSettings/component/OpenChannelSettingsMenu.js +99 -0
  444. package/lib/module/domain/openChannelSettings/component/OpenChannelSettingsMenu.js.map +1 -0
  445. package/lib/module/domain/openChannelSettings/index.js +6 -0
  446. package/lib/module/domain/openChannelSettings/index.js.map +1 -0
  447. package/lib/module/domain/openChannelSettings/module/createOpenChannelSettingsModule.js +24 -0
  448. package/lib/module/domain/openChannelSettings/module/createOpenChannelSettingsModule.js.map +1 -0
  449. package/lib/module/domain/openChannelSettings/module/moduleContext.js +161 -0
  450. package/lib/module/domain/openChannelSettings/module/moduleContext.js.map +1 -0
  451. package/lib/module/domain/openChannelSettings/types.js +2 -0
  452. package/lib/module/domain/openChannelSettings/types.js.map +1 -0
  453. package/lib/module/domain/openChannelUserList/types.js +2 -0
  454. package/lib/module/domain/openChannelUserList/types.js.map +1 -0
  455. package/lib/module/fragments/createGroupChannelCreateFragment.js +4 -7
  456. package/lib/module/fragments/createGroupChannelCreateFragment.js.map +1 -1
  457. package/lib/module/fragments/createGroupChannelFragment.js +33 -3
  458. package/lib/module/fragments/createGroupChannelFragment.js.map +1 -1
  459. package/lib/module/fragments/createGroupChannelListFragment.js +5 -9
  460. package/lib/module/fragments/createGroupChannelListFragment.js.map +1 -1
  461. package/lib/module/fragments/createGroupChannelMembersFragment.js +7 -9
  462. package/lib/module/fragments/createGroupChannelMembersFragment.js.map +1 -1
  463. package/lib/module/fragments/createGroupChannelMutedMembersFragment.js +14 -4
  464. package/lib/module/fragments/createGroupChannelMutedMembersFragment.js.map +1 -1
  465. package/lib/module/fragments/createGroupChannelOperatorsFragment.js +3 -4
  466. package/lib/module/fragments/createGroupChannelOperatorsFragment.js.map +1 -1
  467. package/lib/module/fragments/createOpenChannelBannedUsersFragment.js +84 -0
  468. package/lib/module/fragments/createOpenChannelBannedUsersFragment.js.map +1 -0
  469. package/lib/module/fragments/createOpenChannelCreateFragment.js +69 -0
  470. package/lib/module/fragments/createOpenChannelCreateFragment.js.map +1 -0
  471. package/lib/module/fragments/createOpenChannelFragment.js +153 -0
  472. package/lib/module/fragments/createOpenChannelFragment.js.map +1 -0
  473. package/lib/module/fragments/createOpenChannelListFragment.js +77 -0
  474. package/lib/module/fragments/createOpenChannelListFragment.js.map +1 -0
  475. package/lib/module/fragments/createOpenChannelModerationFragment.js +53 -0
  476. package/lib/module/fragments/createOpenChannelModerationFragment.js.map +1 -0
  477. package/lib/module/fragments/createOpenChannelMutedParticipantsFragment.js +100 -0
  478. package/lib/module/fragments/createOpenChannelMutedParticipantsFragment.js.map +1 -0
  479. package/lib/module/fragments/createOpenChannelOperatorsFragment.js +106 -0
  480. package/lib/module/fragments/createOpenChannelOperatorsFragment.js.map +1 -0
  481. package/lib/module/fragments/createOpenChannelParticipantsFragment.js +140 -0
  482. package/lib/module/fragments/createOpenChannelParticipantsFragment.js.map +1 -0
  483. package/lib/module/fragments/createOpenChannelRegisterOperatorFragment.js +96 -0
  484. package/lib/module/fragments/createOpenChannelRegisterOperatorFragment.js.map +1 -0
  485. package/lib/module/fragments/createOpenChannelSettingsFragment.js +55 -0
  486. package/lib/module/fragments/createOpenChannelSettingsFragment.js.map +1 -0
  487. package/lib/module/hooks/useKeyboardStatus.js +12 -9
  488. package/lib/module/hooks/useKeyboardStatus.js.map +1 -1
  489. package/lib/module/hooks/useMentionSuggestion.js +5 -14
  490. package/lib/module/hooks/useMentionSuggestion.js.map +1 -1
  491. package/lib/module/index.js +48 -6
  492. package/lib/module/index.js.map +1 -1
  493. package/lib/module/libs/ImageCompressionConfig.js +30 -0
  494. package/lib/module/libs/ImageCompressionConfig.js.map +1 -0
  495. package/lib/module/libs/SBUUtils.js +26 -1
  496. package/lib/module/libs/SBUUtils.js.map +1 -1
  497. package/lib/module/localization/StringSet.en.js +1 -1
  498. package/lib/module/localization/StringSet.en.js.map +1 -1
  499. package/lib/module/localization/StringSet.type.js +1 -247
  500. package/lib/module/localization/StringSet.type.js.map +1 -1
  501. package/lib/module/localization/createBaseStringSet.js +384 -0
  502. package/lib/module/localization/createBaseStringSet.js.map +1 -0
  503. package/lib/module/platform/createFileService.native.js +5 -0
  504. package/lib/module/platform/createFileService.native.js.map +1 -1
  505. package/lib/module/platform/createMediaService.expo.js +33 -1
  506. package/lib/module/platform/createMediaService.expo.js.map +1 -1
  507. package/lib/module/platform/createMediaService.native.js +38 -5
  508. package/lib/module/platform/createMediaService.native.js.map +1 -1
  509. package/lib/module/platform/dynamicModule.js +10 -56
  510. package/lib/module/platform/dynamicModule.js.map +1 -1
  511. package/lib/module/platform/types.js.map +1 -1
  512. package/lib/module/version.js +1 -1
  513. package/lib/module/version.js.map +1 -1
  514. package/lib/typescript/src/components/ChannelCover.d.ts +2 -2
  515. package/lib/typescript/src/components/ChannelInput/EditInput.d.ts +16 -0
  516. package/lib/typescript/src/components/ChannelInput/SendInput.d.ts +12 -0
  517. package/lib/typescript/src/components/ChannelInput/index.d.ts +43 -0
  518. package/lib/typescript/src/components/OpenChannelMessageRenderer/OpenChannelMessageDateSeparator.d.ts +6 -0
  519. package/lib/typescript/src/components/OpenChannelMessageRenderer/index.d.ts +16 -0
  520. package/lib/typescript/src/components/TypedPlaceholder.d.ts +1 -1
  521. package/lib/typescript/src/containers/SendbirdUIKitContainer.d.ts +13 -9
  522. package/lib/typescript/src/contexts/PlatformServiceCtx.d.ts +8 -2
  523. package/lib/typescript/src/contexts/SendbirdChatCtx.d.ts +8 -3
  524. package/lib/typescript/src/contexts/UserProfileCtx.d.ts +6 -2
  525. package/lib/typescript/src/domain/groupChannel/component/GroupChannelInput.d.ts +3 -0
  526. package/lib/typescript/src/domain/groupChannel/types.d.ts +9 -28
  527. package/lib/typescript/src/domain/groupChannelBannedUsers/index.d.ts +1 -0
  528. package/lib/typescript/src/domain/groupChannelMutedMembers/component/GroupChannelMutedMembersList.d.ts +1 -1
  529. package/lib/typescript/src/domain/groupChannelOperators/component/GroupChannelOperatorsList.d.ts +1 -1
  530. package/lib/typescript/src/domain/openChannel/component/OpenChannelHeader.d.ts +7 -0
  531. package/lib/typescript/src/domain/openChannel/component/OpenChannelInput.d.ts +3 -0
  532. package/lib/typescript/src/domain/openChannel/component/OpenChannelMessageList.d.ts +39 -0
  533. package/lib/typescript/src/domain/openChannel/component/OpenChannelStatusEmpty.d.ts +2 -0
  534. package/lib/typescript/src/domain/openChannel/component/OpenChannelStatusLoading.d.ts +2 -0
  535. package/lib/typescript/src/domain/openChannel/index.d.ts +6 -0
  536. package/lib/typescript/src/domain/openChannel/module/createOpenChannelModule.d.ts +3 -0
  537. package/lib/typescript/src/domain/openChannel/module/moduleContext.d.ts +3 -0
  538. package/lib/typescript/src/domain/openChannel/types.d.ts +97 -0
  539. package/lib/typescript/src/domain/openChannelBannedUsers/component/OpenChannelBannedUsersHeader.d.ts +3 -0
  540. package/lib/typescript/src/domain/openChannelBannedUsers/component/OpenChannelBannedUsersList.d.ts +3 -0
  541. package/lib/typescript/src/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusEmpty.d.ts +2 -0
  542. package/lib/typescript/src/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusError.d.ts +3 -0
  543. package/lib/typescript/src/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusLoading.d.ts +2 -0
  544. package/lib/typescript/src/domain/openChannelBannedUsers/index.d.ts +7 -0
  545. package/lib/typescript/src/domain/openChannelBannedUsers/module/createOpenChannelBannedUsersModule.d.ts +3 -0
  546. package/lib/typescript/src/domain/openChannelBannedUsers/module/moduleContext.d.ts +3 -0
  547. package/lib/typescript/src/domain/openChannelBannedUsers/types.d.ts +47 -0
  548. package/lib/typescript/src/domain/openChannelCreate/component/OpenChannelCreateHeader.d.ts +3 -0
  549. package/lib/typescript/src/domain/openChannelCreate/component/OpenChannelCreateProfileInput.d.ts +3 -0
  550. package/lib/typescript/src/domain/openChannelCreate/component/OpenChannelCreateStatusLoading.d.ts +2 -0
  551. package/lib/typescript/src/domain/openChannelCreate/index.d.ts +5 -0
  552. package/lib/typescript/src/domain/openChannelCreate/module/createOpenChannelCreateModule.d.ts +3 -0
  553. package/lib/typescript/src/domain/openChannelCreate/module/moduleContext.d.ts +3 -0
  554. package/lib/typescript/src/domain/openChannelCreate/types.d.ts +40 -0
  555. package/lib/typescript/src/domain/openChannelList/component/OpenChannelListHeader.d.ts +3 -0
  556. package/lib/typescript/src/domain/openChannelList/component/OpenChannelListList.d.ts +3 -0
  557. package/lib/typescript/src/domain/openChannelList/component/OpenChannelListStatusEmpty.d.ts +2 -0
  558. package/lib/typescript/src/domain/openChannelList/component/OpenChannelListStatusError.d.ts +3 -0
  559. package/lib/typescript/src/domain/openChannelList/component/OpenChannelListStatusLoading.d.ts +2 -0
  560. package/lib/typescript/src/domain/openChannelList/index.d.ts +7 -0
  561. package/lib/typescript/src/domain/openChannelList/module/createOpenChannelListModule.d.ts +3 -0
  562. package/lib/typescript/src/domain/openChannelList/module/moduleContext.d.ts +3 -0
  563. package/lib/typescript/src/domain/openChannelList/types.d.ts +60 -0
  564. package/lib/typescript/src/domain/openChannelModeration/component/OpenChannelModerationHeader.d.ts +3 -0
  565. package/lib/typescript/src/domain/openChannelModeration/component/OpenChannelModerationMenu.d.ts +3 -0
  566. package/lib/typescript/src/domain/openChannelModeration/index.d.ts +4 -0
  567. package/lib/typescript/src/domain/openChannelModeration/module/createOpenChannelModerationModule.d.ts +3 -0
  568. package/lib/typescript/src/domain/openChannelModeration/module/moduleContext.d.ts +3 -0
  569. package/lib/typescript/src/domain/openChannelModeration/types.d.ts +43 -0
  570. package/lib/typescript/src/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsHeader.d.ts +3 -0
  571. package/lib/typescript/src/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsList.d.ts +3 -0
  572. package/lib/typescript/src/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusEmpty.d.ts +2 -0
  573. package/lib/typescript/src/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusError.d.ts +3 -0
  574. package/lib/typescript/src/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusLoading.d.ts +2 -0
  575. package/lib/typescript/src/domain/openChannelMutedParticipants/index.d.ts +6 -0
  576. package/lib/typescript/src/domain/openChannelMutedParticipants/module/createOpenChannelMutedParticipantsModule.d.ts +3 -0
  577. package/lib/typescript/src/domain/openChannelMutedParticipants/module/moduleContext.d.ts +3 -0
  578. package/lib/typescript/src/domain/openChannelMutedParticipants/types.d.ts +47 -0
  579. package/lib/typescript/src/domain/openChannelOperators/component/OpenChannelOperatorsHeader.d.ts +3 -0
  580. package/lib/typescript/src/domain/openChannelOperators/component/OpenChannelOperatorsList.d.ts +3 -0
  581. package/lib/typescript/src/domain/openChannelOperators/component/OpenChannelOperatorsStatusEmpty.d.ts +2 -0
  582. package/lib/typescript/src/domain/openChannelOperators/component/OpenChannelOperatorsStatusError.d.ts +3 -0
  583. package/lib/typescript/src/domain/openChannelOperators/component/OpenChannelOperatorsStatusLoading.d.ts +2 -0
  584. package/lib/typescript/src/domain/openChannelOperators/index.d.ts +6 -0
  585. package/lib/typescript/src/domain/openChannelOperators/module/createOpenChannelOperatorsModule.d.ts +3 -0
  586. package/lib/typescript/src/domain/openChannelOperators/module/moduleContext.d.ts +3 -0
  587. package/lib/typescript/src/domain/openChannelOperators/types.d.ts +49 -0
  588. package/lib/typescript/src/domain/openChannelSettings/component/OpenChannelSettingsHeader.d.ts +3 -0
  589. package/lib/typescript/src/domain/openChannelSettings/component/OpenChannelSettingsInfo.d.ts +3 -0
  590. package/lib/typescript/src/domain/openChannelSettings/component/OpenChannelSettingsMenu.d.ts +3 -0
  591. package/lib/typescript/src/domain/openChannelSettings/index.d.ts +5 -0
  592. package/lib/typescript/src/domain/openChannelSettings/module/createOpenChannelSettingsModule.d.ts +3 -0
  593. package/lib/typescript/src/domain/openChannelSettings/module/moduleContext.d.ts +3 -0
  594. package/lib/typescript/src/domain/openChannelSettings/types.d.ts +49 -0
  595. package/lib/typescript/src/domain/openChannelUserList/types.d.ts +23 -0
  596. package/lib/typescript/src/fragments/createOpenChannelBannedUsersFragment.d.ts +3 -0
  597. package/lib/typescript/src/fragments/createOpenChannelCreateFragment.d.ts +3 -0
  598. package/lib/typescript/src/fragments/createOpenChannelFragment.d.ts +3 -0
  599. package/lib/typescript/src/fragments/createOpenChannelListFragment.d.ts +3 -0
  600. package/lib/typescript/src/fragments/createOpenChannelModerationFragment.d.ts +3 -0
  601. package/lib/typescript/src/fragments/createOpenChannelMutedParticipantsFragment.d.ts +3 -0
  602. package/lib/typescript/src/fragments/createOpenChannelOperatorsFragment.d.ts +3 -0
  603. package/lib/typescript/src/fragments/createOpenChannelParticipantsFragment.d.ts +5 -0
  604. package/lib/typescript/src/fragments/createOpenChannelRegisterOperatorFragment.d.ts +5 -0
  605. package/lib/typescript/src/fragments/createOpenChannelSettingsFragment.d.ts +3 -0
  606. package/lib/typescript/src/hooks/useContext.d.ts +2 -29
  607. package/lib/typescript/src/index.d.ts +44 -11
  608. package/lib/typescript/src/libs/ImageCompressionConfig.d.ts +16 -0
  609. package/lib/typescript/src/libs/MentionManager.d.ts +1 -1
  610. package/lib/typescript/src/libs/SBUUtils.d.ts +6 -0
  611. package/lib/typescript/src/localization/StringSet.type.d.ts +139 -26
  612. package/lib/typescript/src/localization/createBaseStringSet.d.ts +16 -0
  613. package/lib/typescript/src/platform/createMediaService.expo.d.ts +5 -1
  614. package/lib/typescript/src/platform/createMediaService.native.d.ts +7 -5
  615. package/lib/typescript/src/platform/dynamicModule.d.ts +7 -12
  616. package/lib/typescript/src/platform/types.d.ts +28 -3
  617. package/lib/typescript/src/version.d.ts +1 -1
  618. package/package.json +19 -8
  619. package/src/components/ChannelCover.tsx +46 -37
  620. package/src/{domain/groupChannel/component/GroupChannelInput → components/ChannelInput}/EditInput.tsx +30 -19
  621. package/src/components/ChannelInput/SendInput.tsx +302 -0
  622. package/src/{domain/groupChannel/component/GroupChannelInput → components/ChannelInput}/index.tsx +93 -37
  623. package/src/components/FileViewer.tsx +5 -8
  624. package/src/components/MessageRenderer/FileMessage/BaseFileMessage.tsx +1 -1
  625. package/src/components/MessageRenderer/FileMessage/ImageFileMessage.tsx +10 -1
  626. package/src/components/MessageRenderer/FileMessage/VideoFileMessage.tsx +7 -3
  627. package/src/components/MessageRenderer/FileMessage/index.tsx +1 -4
  628. package/src/components/MessageRenderer/MessageDateSeparator.tsx +1 -0
  629. package/src/components/MessageRenderer/MessageIncomingSenderName.tsx +1 -1
  630. package/src/components/MessageRenderer/MessageTime.tsx +1 -1
  631. package/src/components/MessageRenderer/UnknownMessage/index.tsx +1 -1
  632. package/src/components/MessageRenderer/UserMessage/BaseUserMessage.tsx +3 -3
  633. package/src/components/MessageRenderer/UserMessage/OpenGraphUserMessage.tsx +5 -5
  634. package/src/components/OpenChannelMessageRenderer/OpenChannelMessageDateSeparator.tsx +46 -0
  635. package/src/components/OpenChannelMessageRenderer/index.tsx +91 -0
  636. package/src/components/ReactionAddons/BottomSheetReactionAddon.tsx +3 -4
  637. package/src/components/TypedPlaceholder.tsx +3 -0
  638. package/src/containers/GroupChannelPreviewContainer.tsx +3 -3
  639. package/src/containers/SendbirdUIKitContainer.tsx +42 -12
  640. package/src/contexts/PlatformServiceCtx.tsx +9 -2
  641. package/src/contexts/SendbirdChatCtx.tsx +22 -19
  642. package/src/contexts/UserProfileCtx.tsx +27 -12
  643. package/src/domain/groupChannel/component/GroupChannelInput.tsx +42 -0
  644. package/src/domain/groupChannel/component/GroupChannelMessageList.tsx +13 -12
  645. package/src/domain/groupChannel/module/moduleContext.tsx +3 -3
  646. package/src/domain/groupChannel/types.ts +24 -37
  647. package/src/domain/groupChannelBannedUsers/index.ts +1 -0
  648. package/src/domain/groupChannelList/component/GroupChannelListList.tsx +2 -2
  649. package/src/domain/groupChannelMutedMembers/component/GroupChannelMutedMembersList.tsx +2 -0
  650. package/src/domain/groupChannelOperators/component/GroupChannelOperatorsList.tsx +2 -0
  651. package/src/domain/groupChannelSettings/component/GroupChannelSettingsInfo.tsx +1 -1
  652. package/src/domain/groupChannelSettings/module/moduleContext.tsx +11 -6
  653. package/src/domain/openChannel/component/OpenChannelHeader.tsx +47 -0
  654. package/src/domain/openChannel/component/OpenChannelInput.tsx +80 -0
  655. package/src/domain/openChannel/component/OpenChannelMessageList.tsx +322 -0
  656. package/src/domain/openChannel/component/OpenChannelStatusEmpty.tsx +18 -0
  657. package/src/domain/openChannel/component/OpenChannelStatusLoading.tsx +18 -0
  658. package/src/domain/openChannel/index.ts +6 -0
  659. package/src/domain/openChannel/module/createOpenChannelModule.tsx +21 -0
  660. package/src/domain/openChannel/module/moduleContext.tsx +41 -0
  661. package/src/domain/openChannel/types.ts +127 -0
  662. package/src/domain/openChannelBannedUsers/component/OpenChannelBannedUsersHeader.tsx +14 -0
  663. package/src/domain/openChannelBannedUsers/component/OpenChannelBannedUsersList.tsx +33 -0
  664. package/src/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusEmpty.tsx +15 -0
  665. package/src/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusError.tsx +16 -0
  666. package/src/domain/openChannelBannedUsers/component/OpenChannelBannedUsersStatusLoading.tsx +15 -0
  667. package/src/domain/openChannelBannedUsers/index.ts +7 -0
  668. package/src/domain/openChannelBannedUsers/module/createOpenChannelBannedUsersModule.tsx +21 -0
  669. package/src/domain/openChannelBannedUsers/module/moduleContext.tsx +30 -0
  670. package/src/domain/openChannelBannedUsers/types.ts +50 -0
  671. package/src/domain/openChannelCreate/component/OpenChannelCreateHeader.tsx +35 -0
  672. package/src/domain/openChannelCreate/component/OpenChannelCreateProfileInput.tsx +155 -0
  673. package/src/domain/openChannelCreate/component/OpenChannelCreateStatusLoading.tsx +9 -0
  674. package/src/domain/openChannelCreate/index.ts +5 -0
  675. package/src/domain/openChannelCreate/module/createOpenChannelCreateModule.tsx +17 -0
  676. package/src/domain/openChannelCreate/module/moduleContext.tsx +28 -0
  677. package/src/domain/openChannelCreate/types.ts +45 -0
  678. package/src/domain/openChannelList/component/OpenChannelListHeader.tsx +14 -0
  679. package/src/domain/openChannelList/component/OpenChannelListList.tsx +37 -0
  680. package/src/domain/openChannelList/component/OpenChannelListStatusEmpty.tsx +18 -0
  681. package/src/domain/openChannelList/component/OpenChannelListStatusError.tsx +16 -0
  682. package/src/domain/openChannelList/component/OpenChannelListStatusLoading.tsx +18 -0
  683. package/src/domain/openChannelList/index.ts +7 -0
  684. package/src/domain/openChannelList/module/createOpenChannelListModule.tsx +21 -0
  685. package/src/domain/openChannelList/module/moduleContext.tsx +22 -0
  686. package/src/domain/openChannelList/types.ts +63 -0
  687. package/src/domain/openChannelModeration/component/OpenChannelModerationHeader.tsx +15 -0
  688. package/src/domain/openChannelModeration/component/OpenChannelModerationMenu.tsx +62 -0
  689. package/src/domain/openChannelModeration/index.ts +4 -0
  690. package/src/domain/openChannelModeration/module/createOpenChannelModerationModule.tsx +15 -0
  691. package/src/domain/openChannelModeration/module/moduleContext.tsx +33 -0
  692. package/src/domain/openChannelModeration/types.ts +48 -0
  693. package/src/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsHeader.tsx +14 -0
  694. package/src/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsList.tsx +33 -0
  695. package/src/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusEmpty.tsx +15 -0
  696. package/src/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusError.tsx +18 -0
  697. package/src/domain/openChannelMutedParticipants/component/OpenChannelMutedParticipantsStatusLoading.tsx +15 -0
  698. package/src/domain/openChannelMutedParticipants/index.ts +9 -0
  699. package/src/domain/openChannelMutedParticipants/module/createOpenChannelMutedParticipantsModule.tsx +21 -0
  700. package/src/domain/openChannelMutedParticipants/module/moduleContext.tsx +30 -0
  701. package/src/domain/openChannelMutedParticipants/types.ts +50 -0
  702. package/src/domain/openChannelOperators/component/OpenChannelOperatorsHeader.tsx +22 -0
  703. package/src/domain/openChannelOperators/component/OpenChannelOperatorsList.tsx +31 -0
  704. package/src/domain/openChannelOperators/component/OpenChannelOperatorsStatusEmpty.tsx +15 -0
  705. package/src/domain/openChannelOperators/component/OpenChannelOperatorsStatusError.tsx +16 -0
  706. package/src/domain/openChannelOperators/component/OpenChannelOperatorsStatusLoading.tsx +15 -0
  707. package/src/domain/openChannelOperators/index.ts +6 -0
  708. package/src/domain/openChannelOperators/module/createOpenChannelOperatorsModule.tsx +21 -0
  709. package/src/domain/openChannelOperators/module/moduleContext.tsx +27 -0
  710. package/src/domain/openChannelOperators/types.ts +52 -0
  711. package/src/domain/openChannelSettings/component/OpenChannelSettingsHeader.tsx +29 -0
  712. package/src/domain/openChannelSettings/component/OpenChannelSettingsInfo.tsx +47 -0
  713. package/src/domain/openChannelSettings/component/OpenChannelSettingsMenu.tsx +105 -0
  714. package/src/domain/openChannelSettings/index.ts +5 -0
  715. package/src/domain/openChannelSettings/module/createOpenChannelSettingsModule.tsx +17 -0
  716. package/src/domain/openChannelSettings/module/moduleContext.tsx +171 -0
  717. package/src/domain/openChannelSettings/types.ts +54 -0
  718. package/src/domain/openChannelUserList/types.ts +30 -0
  719. package/src/fragments/createGroupChannelCreateFragment.tsx +4 -7
  720. package/src/fragments/createGroupChannelFragment.tsx +37 -2
  721. package/src/fragments/createGroupChannelListFragment.tsx +5 -9
  722. package/src/fragments/createGroupChannelMembersFragment.tsx +11 -8
  723. package/src/fragments/createGroupChannelMutedMembersFragment.tsx +12 -5
  724. package/src/fragments/createGroupChannelOperatorsFragment.tsx +3 -4
  725. package/src/fragments/createOpenChannelBannedUsersFragment.tsx +80 -0
  726. package/src/fragments/createOpenChannelCreateFragment.tsx +77 -0
  727. package/src/fragments/createOpenChannelFragment.tsx +157 -0
  728. package/src/fragments/createOpenChannelListFragment.tsx +67 -0
  729. package/src/fragments/createOpenChannelModerationFragment.tsx +55 -0
  730. package/src/fragments/createOpenChannelMutedParticipantsFragment.tsx +100 -0
  731. package/src/fragments/createOpenChannelOperatorsFragment.tsx +101 -0
  732. package/src/fragments/createOpenChannelParticipantsFragment.tsx +144 -0
  733. package/src/fragments/createOpenChannelRegisterOperatorFragment.tsx +99 -0
  734. package/src/fragments/createOpenChannelSettingsFragment.tsx +57 -0
  735. package/src/hooks/useKeyboardStatus.ts +10 -5
  736. package/src/hooks/useMentionSuggestion.ts +10 -17
  737. package/src/index.ts +55 -48
  738. package/src/libs/ImageCompressionConfig.ts +31 -0
  739. package/src/libs/SBUUtils.ts +28 -1
  740. package/src/localization/StringSet.en.ts +1 -1
  741. package/src/localization/StringSet.type.ts +150 -255
  742. package/src/localization/createBaseStringSet.ts +369 -0
  743. package/src/platform/createFileService.native.ts +8 -0
  744. package/src/platform/createMediaService.expo.tsx +24 -1
  745. package/src/platform/createMediaService.native.tsx +31 -9
  746. package/src/platform/dynamicModule.ts +17 -59
  747. package/src/platform/types.ts +29 -7
  748. package/src/version.ts +1 -1
  749. package/lib/commonjs/domain/groupChannel/component/GroupChannelInput/EditInput.js.map +0 -1
  750. package/lib/commonjs/domain/groupChannel/component/GroupChannelInput/SendInput.js.map +0 -1
  751. package/lib/commonjs/domain/groupChannel/component/GroupChannelInput/index.js.map +0 -1
  752. package/lib/commonjs/utils/common.js +0 -19
  753. package/lib/commonjs/utils/common.js.map +0 -1
  754. package/lib/module/domain/groupChannel/component/GroupChannelInput/EditInput.js.map +0 -1
  755. package/lib/module/domain/groupChannel/component/GroupChannelInput/SendInput.js +0 -178
  756. package/lib/module/domain/groupChannel/component/GroupChannelInput/SendInput.js.map +0 -1
  757. package/lib/module/domain/groupChannel/component/GroupChannelInput/index.js.map +0 -1
  758. package/lib/module/utils/common.js +0 -7
  759. package/lib/module/utils/common.js.map +0 -1
  760. package/lib/typescript/__template__/component/__domain__Header.d.ts +0 -3
  761. package/lib/typescript/__template__/component/__domain__StatusEmpty.d.ts +0 -2
  762. package/lib/typescript/__template__/component/__domain__StatusLoading.d.ts +0 -2
  763. package/lib/typescript/__template__/component/__domain__View.d.ts +0 -3
  764. package/lib/typescript/__template__/create__domain__Fragment.d.ts +0 -2
  765. package/lib/typescript/__template__/index.d.ts +0 -6
  766. package/lib/typescript/__template__/module/create__domain__Module.d.ts +0 -3
  767. package/lib/typescript/__template__/module/moduleContext.d.ts +0 -3
  768. package/lib/typescript/__template__/types.d.ts +0 -31
  769. package/lib/typescript/src/domain/groupChannel/component/GroupChannelInput/EditInput.d.ts +0 -39
  770. package/lib/typescript/src/domain/groupChannel/component/GroupChannelInput/SendInput.d.ts +0 -37
  771. package/lib/typescript/src/domain/groupChannel/component/GroupChannelInput/index.d.ts +0 -26
  772. package/lib/typescript/src/utils/common.d.ts +0 -1
  773. package/src/domain/groupChannel/component/GroupChannelInput/SendInput.tsx +0 -208
  774. package/src/utils/common.ts +0 -8
@@ -1,4 +1,6 @@
1
- import { Linking, Platform } from 'react-native';
1
+ import { Image, Linking, Platform } from 'react-native';
2
+
3
+ import { Logger } from '@sendbird/uikit-utils';
2
4
 
3
5
  export default class SBUUtils {
4
6
  static openSettings() {
@@ -6,4 +8,29 @@ export default class SBUUtils {
6
8
  if (Platform.OS === 'ios') Linking.openURL('App-Prefs:root');
7
9
  });
8
10
  }
11
+
12
+ static openURL(url: string) {
13
+ const targetUrl = url.startsWith('http') ? url : 'https://' + url;
14
+ Linking.openURL(targetUrl).catch((err) => Logger.warn('Cannot open url', err));
15
+ }
16
+
17
+ static getImageSize(uri: string): Promise<{ width: number; height: number }> {
18
+ return new Promise((resolve, reject) => {
19
+ Image.getSize(
20
+ uri,
21
+ (width, height) => {
22
+ resolve({ width, height });
23
+ },
24
+ (error) => {
25
+ reject(error);
26
+ },
27
+ );
28
+ });
29
+ }
30
+
31
+ static async safeRun(callback: () => Promise<void>) {
32
+ try {
33
+ await callback();
34
+ } catch (e) {}
35
+ }
9
36
  }
@@ -1,6 +1,6 @@
1
1
  import dateLocale from 'date-fns/locale/en-US';
2
2
 
3
- import { createBaseStringSet } from './StringSet.type';
3
+ import { createBaseStringSet } from './createBaseStringSet';
4
4
 
5
5
  const StringSetEn = createBaseStringSet({ dateLocale });
6
6
 
@@ -1,26 +1,113 @@
1
1
  import type { Locale } from 'date-fns';
2
2
 
3
3
  import type {
4
- PartialDeep,
5
4
  SendbirdFileMessage,
6
5
  SendbirdGroupChannel,
7
6
  SendbirdMember,
8
7
  SendbirdMessage,
8
+ SendbirdOpenChannel,
9
+ SendbirdParticipant,
9
10
  SendbirdUser,
10
11
  } from '@sendbird/uikit-utils';
11
- import {
12
- getDateSeparatorFormat,
13
- getGroupChannelLastMessage,
14
- getGroupChannelPreviewTime,
15
- getGroupChannelTitle,
16
- getMessageTimeFormat,
17
- } from '@sendbird/uikit-utils';
18
12
 
19
13
  /**
20
14
  * StringSet interface
21
15
  * Do not configure over 3 depths (for overrides easy)
22
16
  * */
23
17
  export interface StringSet {
18
+ OPEN_CHANNEL: {
19
+ /** OpenChannel > Header */
20
+ HEADER_TITLE: (channel: SendbirdOpenChannel) => string;
21
+ HEADER_SUBTITLE: (channel: SendbirdOpenChannel) => string;
22
+
23
+ /** OpenChannel > List */
24
+ LIST_BANNER_FROZEN: string;
25
+ LIST_DATE_SEPARATOR: (date: Date, locale?: Locale) => string;
26
+
27
+ /** OpenChannel > Message bubble */
28
+ MESSAGE_BUBBLE_TIME: (message: SendbirdMessage, locale?: Locale) => string;
29
+ MESSAGE_BUBBLE_FILE_TITLE: (message: SendbirdFileMessage) => string;
30
+ MESSAGE_BUBBLE_EDITED_POSTFIX: string;
31
+ MESSAGE_BUBBLE_UNKNOWN_TITLE: (message: SendbirdMessage) => string;
32
+ MESSAGE_BUBBLE_UNKNOWN_DESC: (message: SendbirdMessage) => string;
33
+ };
34
+ OPEN_CHANNEL_PARTICIPANTS: {
35
+ /** OpenChannelParticipants > Header */
36
+ HEADER_TITLE: string;
37
+ };
38
+ OPEN_CHANNEL_SETTINGS: {
39
+ /** OpenChannelSettings > Header */
40
+ HEADER_TITLE: string;
41
+ HEADER_RIGHT: string;
42
+
43
+ /** OpenChannelSettings > Info */
44
+ INFO_URL: string;
45
+
46
+ /** OpenChannelSettings > Menu */
47
+ MENU_MODERATION: string;
48
+ MENU_PARTICIPANTS: string;
49
+ MENU_DELETE_CHANNEL: string;
50
+
51
+ /** OpenChannelSettings > Dialog */
52
+ DIALOG_CHANNEL_DELETE_CONFIRM_TITLE: string;
53
+ DIALOG_CHANNEL_DELETE_CONFIRM_OK: string;
54
+ DIALOG_CHANNEL_DELETE_CONFIRM_CANCEL: string;
55
+ DIALOG_CHANGE_NAME: string;
56
+ DIALOG_CHANGE_IMAGE: string;
57
+ DIALOG_CHANGE_NAME_PROMPT_TITLE: string;
58
+ DIALOG_CHANGE_NAME_PROMPT_PLACEHOLDER: string;
59
+ DIALOG_CHANGE_NAME_PROMPT_CANCEL: string;
60
+ DIALOG_CHANGE_NAME_PROMPT_OK: string;
61
+ DIALOG_CHANGE_IMAGE_MENU_TITLE: string;
62
+ DIALOG_CHANGE_IMAGE_MENU_CAMERA: string;
63
+ DIALOG_CHANGE_IMAGE_MENU_PHOTO_LIBRARY: string;
64
+ };
65
+ OPEN_CHANNEL_LIST: {
66
+ /** OpenChannelList > Header */
67
+ HEADER_TITLE: string;
68
+
69
+ /** OpenChannelList > Channel preview */
70
+ CHANNEL_PREVIEW_TITLE: (channel: SendbirdOpenChannel) => string;
71
+ };
72
+ OPEN_CHANNEL_CREATE: {
73
+ /** OpenChannelCreate > Header */
74
+ HEADER_TITLE: string;
75
+ HEADER_RIGHT: string;
76
+
77
+ /** OpenChannelCreate > ProfileInput */
78
+ PLACEHOLDER: string;
79
+
80
+ /** OpenChannelCreate > Dialog */
81
+ DIALOG_IMAGE_MENU_REMOVE: string;
82
+ DIALOG_IMAGE_MENU_CAMERA: string;
83
+ DIALOG_IMAGE_MENU_PHOTO_LIBRARY: string;
84
+ };
85
+ OPEN_CHANNEL_MODERATION: {
86
+ /** OpenChannelModeration > Header */
87
+ HEADER_TITLE: string;
88
+
89
+ /** OpenChannelModeration > Menu */
90
+ MENU_OPERATORS: string;
91
+ MENU_MUTED_PARTICIPANTS: string;
92
+ MENU_BANNED_USERS: string;
93
+ };
94
+ OPEN_CHANNEL_BANNED_USERS: {
95
+ /** OpenChannelBannedUsers > Header */
96
+ HEADER_TITLE: string;
97
+ };
98
+ OPEN_CHANNEL_MUTED_PARTICIPANTS: {
99
+ /** OpenChannelMutedMembers > Header */
100
+ HEADER_TITLE: string;
101
+ };
102
+ OPEN_CHANNEL_OPERATORS: {
103
+ /** OpenChannelOperators > Header */
104
+ HEADER_TITLE: string;
105
+ };
106
+ OPEN_CHANNEL_REGISTER_OPERATOR: {
107
+ /** OpenChannelRegisterOperator > Header */
108
+ HEADER_TITLE: string;
109
+ HEADER_RIGHT: (params: { selectedUsers: Array<SendbirdParticipant> }) => string;
110
+ };
24
111
  GROUP_CHANNEL: {
25
112
  /** GroupChannel > Header */
26
113
  HEADER_TITLE: (currentUserId: string, channel: SendbirdGroupChannel) => string;
@@ -37,33 +124,43 @@ export interface StringSet {
37
124
  MESSAGE_BUBBLE_UNKNOWN_TITLE: (message: SendbirdMessage) => string;
38
125
  MESSAGE_BUBBLE_UNKNOWN_DESC: (message: SendbirdMessage) => string;
39
126
 
40
- /** GroupChannel > Input */
41
- INPUT_PLACEHOLDER_ACTIVE: string;
42
- INPUT_PLACEHOLDER_DISABLED: string;
43
- INPUT_PLACEHOLDER_MUTED: string;
44
- INPUT_EDIT_OK: string;
45
- INPUT_EDIT_CANCEL: string;
46
-
47
127
  /** GroupChannel > Suggested mention list */
48
128
  MENTION_LIMITED: (mentionLimit: number) => string;
49
129
 
50
- /** GroupChannel > Dialog > Message */
130
+ /** @deprecated Please use LABELS.CHANNEL_MESSAGE_COPY **/
51
131
  DIALOG_MESSAGE_COPY: string;
132
+ /** @deprecated Please use LABELS.CHANNEL_MESSAGE_EDIT **/
52
133
  DIALOG_MESSAGE_EDIT: string;
134
+ /** @deprecated Please use LABELS.CHANNEL_MESSAGE_SAVE **/
53
135
  DIALOG_MESSAGE_SAVE: string;
136
+ /** @deprecated Please use LABELS.CHANNEL_MESSAGE_DELETE **/
54
137
  DIALOG_MESSAGE_DELETE: string;
55
- /** GroupChannel > Dialog > Message > Delete confirm */
138
+ /** @deprecated Please use LABELS.CHANNEL_MESSAGE_DELETE_CONFIRM_TITLE **/
56
139
  DIALOG_MESSAGE_DELETE_CONFIRM_TITLE: string;
140
+ /** @deprecated Please use LABELS.CHANNEL_MESSAGE_DELETE_CONFIRM_OK **/
57
141
  DIALOG_MESSAGE_DELETE_CONFIRM_OK: string;
142
+ /** @deprecated Please use LABELS.CHANNEL_MESSAGE_DELETE_CONFIRM_CANCEL **/
58
143
  DIALOG_MESSAGE_DELETE_CONFIRM_CANCEL: string;
59
- /** GroupChannel > Dialog > Message > Failed */
144
+ /** @deprecated Please use LABELS.CHANNEL_MESSAGE_FAILED_RETRY **/
60
145
  DIALOG_MESSAGE_FAILED_RETRY: string;
146
+ /** @deprecated Please use LABELS.CHANNEL_MESSAGE_FAILED_REMOVE **/
61
147
  DIALOG_MESSAGE_FAILED_REMOVE: string;
62
-
63
- /** GroupChannel > Dialog > Attachments */
148
+ /** @deprecated Please use LABELS.CHANNEL_INPUT_ATTACHMENT_CAMERA **/
64
149
  DIALOG_ATTACHMENT_CAMERA: string;
150
+ /** @deprecated Please use LABELS.CHANNEL_INPUT_ATTACHMENT_PHOTO_LIBRARY **/
65
151
  DIALOG_ATTACHMENT_PHOTO_LIBRARY: string;
152
+ /** @deprecated Please use LABELS.CHANNEL_INPUT_ATTACHMENT_FILES **/
66
153
  DIALOG_ATTACHMENT_FILES: string;
154
+ /** @deprecated Please use LABELS.CHANNEL_INPUT_PLACEHOLDER_ACTIVE **/
155
+ INPUT_PLACEHOLDER_ACTIVE: string;
156
+ /** @deprecated Please use LABELS.CHANNEL_INPUT_PLACEHOLDER_DISABLED **/
157
+ INPUT_PLACEHOLDER_DISABLED: string;
158
+ /** @deprecated Please use LABELS.CHANNEL_INPUT_PLACEHOLDER_MUTED **/
159
+ INPUT_PLACEHOLDER_MUTED: string;
160
+ /** @deprecated Please use LABELS.CHANNEL_INPUT_EDIT_OK **/
161
+ INPUT_EDIT_OK: string;
162
+ /** @deprecated Please use LABELS.CHANNEL_INPUT_EDIT_CANCEL **/
163
+ INPUT_EDIT_CANCEL: string;
67
164
  };
68
165
  GROUP_CHANNEL_SETTINGS: {
69
166
  /** GroupChannelSettings > Header */
@@ -152,9 +249,9 @@ export interface StringSet {
152
249
  /** GroupChannelMembers > Header */
153
250
  HEADER_TITLE: string;
154
251
 
155
- /** @deprecated Please use in LABELS **/
252
+ /** @deprecated Please use LABELS.USER_BAR_ME_POSTFIX **/
156
253
  USER_BAR_ME_POSTFIX: string;
157
- /** @deprecated Please use in LABELS **/
254
+ /** @deprecated Please use LABELS.USER_BAR_OPERATOR **/
158
255
  USER_BAR_OPERATOR: string;
159
256
  };
160
257
  GROUP_CHANNEL_INVITE: {
@@ -169,6 +266,10 @@ export interface StringSet {
169
266
  };
170
267
  // UI
171
268
  LABELS: {
269
+ PERMISSION_APP_NAME: string;
270
+ PERMISSION_CAMERA: string;
271
+ PERMISSION_DEVICE_STORAGE: string;
272
+
172
273
  USER_NO_NAME: string;
173
274
  CHANNEL_NO_MEMBERS: string;
174
275
  TYPING_INDICATOR_TYPINGS: (users: SendbirdUser[]) => string | undefined;
@@ -182,6 +283,30 @@ export interface StringSet {
182
283
  UNMUTE: string;
183
284
  BAN: string;
184
285
  UNBAN: string;
286
+
287
+ /** ChannelInput **/
288
+ CHANNEL_INPUT_PLACEHOLDER_ACTIVE: string;
289
+ CHANNEL_INPUT_PLACEHOLDER_DISABLED: string;
290
+ CHANNEL_INPUT_PLACEHOLDER_MUTED: string;
291
+ CHANNEL_INPUT_EDIT_OK: string;
292
+ CHANNEL_INPUT_EDIT_CANCEL: string;
293
+ /** ChannelInput > Attachments **/
294
+ CHANNEL_INPUT_ATTACHMENT_CAMERA: string;
295
+ CHANNEL_INPUT_ATTACHMENT_PHOTO_LIBRARY: string;
296
+ CHANNEL_INPUT_ATTACHMENT_FILES: string;
297
+
298
+ /** Channel > Message **/
299
+ CHANNEL_MESSAGE_COPY: string;
300
+ CHANNEL_MESSAGE_EDIT: string;
301
+ CHANNEL_MESSAGE_SAVE: string;
302
+ CHANNEL_MESSAGE_DELETE: string;
303
+ /** Channel > Message > Delete confirm **/
304
+ CHANNEL_MESSAGE_DELETE_CONFIRM_TITLE: string;
305
+ CHANNEL_MESSAGE_DELETE_CONFIRM_OK: string;
306
+ CHANNEL_MESSAGE_DELETE_CONFIRM_CANCEL: string;
307
+ /** Channel > Message > Failed **/
308
+ CHANNEL_MESSAGE_FAILED_RETRY: string;
309
+ CHANNEL_MESSAGE_FAILED_REMOVE: string;
185
310
  };
186
311
  FILE_VIEWER: {
187
312
  TITLE: (message: SendbirdFileMessage) => string;
@@ -193,6 +318,7 @@ export interface StringSet {
193
318
  NO_CHANNELS: string;
194
319
  NO_MESSAGES: string;
195
320
  NO_MUTED_MEMBERS: string;
321
+ NO_MUTED_PARTICIPANTS: string;
196
322
  NO_RESULTS_FOUND: string;
197
323
  ERROR: {
198
324
  MESSAGE: string;
@@ -225,6 +351,8 @@ export interface StringSet {
225
351
  TURN_ON_NOTIFICATIONS_ERROR: string;
226
352
  TURN_OFF_NOTIFICATIONS_ERROR: string;
227
353
  LEAVE_CHANNEL_ERROR: string;
354
+ UNKNOWN_ERROR: string;
355
+ GET_CHANNEL_ERROR: string;
228
356
  };
229
357
  PROFILE_CARD: {
230
358
  BUTTON_MESSAGE: string;
@@ -232,236 +360,3 @@ export interface StringSet {
232
360
  BODY: (user: SendbirdUser | SendbirdMember) => string;
233
361
  };
234
362
  }
235
-
236
- type StringSetCreateOptions = {
237
- dateLocale: Locale;
238
- overrides?: PartialDeep<StringSet>;
239
- };
240
-
241
- /**
242
- * Create string set
243
- * You can create localized String set, you should provide locale for date and string as a parameters
244
- *
245
- * @param {StringSetCreateOptions.dateLocale} dateLocale Date locale (from date-fns)
246
- * @param {StringSetCreateOptions.overrides} [overrides] Localized strings
247
- * */
248
- export const createBaseStringSet = ({ dateLocale, overrides }: StringSetCreateOptions): StringSet => {
249
- const USER_NO_NAME = overrides?.LABELS?.USER_NO_NAME ?? '(No name)';
250
- const CHANNEL_NO_MEMBERS = overrides?.LABELS?.CHANNEL_NO_MEMBERS ?? '(No members)';
251
- return {
252
- GROUP_CHANNEL: {
253
- HEADER_TITLE: (currentUserId, channel) =>
254
- getGroupChannelTitle(currentUserId, channel, USER_NO_NAME, CHANNEL_NO_MEMBERS),
255
- LIST_BANNER_FROZEN: 'Channel is frozen',
256
- LIST_DATE_SEPARATOR: (date, locale) => getDateSeparatorFormat(date, locale ?? dateLocale),
257
- LIST_BUTTON_NEW_MSG: (newMessages) => `${newMessages.length} new messages`,
258
-
259
- MESSAGE_BUBBLE_TIME: (message, locale) => getMessageTimeFormat(new Date(message.createdAt), locale ?? dateLocale),
260
- MESSAGE_BUBBLE_FILE_TITLE: (message) => message.name,
261
- MESSAGE_BUBBLE_EDITED_POSTFIX: ' (edited)',
262
- MESSAGE_BUBBLE_UNKNOWN_TITLE: () => '(Unknown message type)',
263
- MESSAGE_BUBBLE_UNKNOWN_DESC: () => 'Cannot read this message.',
264
-
265
- INPUT_PLACEHOLDER_ACTIVE: 'Enter message',
266
- INPUT_PLACEHOLDER_DISABLED: 'Chat not available in this channel.',
267
- INPUT_PLACEHOLDER_MUTED: "You're muted by the operator.",
268
- INPUT_EDIT_OK: 'Save',
269
- INPUT_EDIT_CANCEL: 'Cancel',
270
-
271
- MENTION_LIMITED: (mentionLimit) => `You can have up to ${mentionLimit} mentions per message.`,
272
-
273
- DIALOG_MESSAGE_COPY: 'Copy',
274
- DIALOG_MESSAGE_EDIT: 'Edit',
275
- DIALOG_MESSAGE_SAVE: 'Save',
276
- DIALOG_MESSAGE_DELETE: 'Delete',
277
- DIALOG_MESSAGE_DELETE_CONFIRM_TITLE: 'Delete message?',
278
- DIALOG_MESSAGE_DELETE_CONFIRM_OK: 'Delete',
279
- DIALOG_MESSAGE_DELETE_CONFIRM_CANCEL: 'Cancel',
280
- DIALOG_MESSAGE_FAILED_RETRY: 'Retry',
281
- DIALOG_MESSAGE_FAILED_REMOVE: 'Remove',
282
-
283
- DIALOG_ATTACHMENT_CAMERA: 'Camera',
284
- DIALOG_ATTACHMENT_PHOTO_LIBRARY: 'Photo library',
285
- DIALOG_ATTACHMENT_FILES: 'Files',
286
- ...overrides?.GROUP_CHANNEL,
287
- },
288
- GROUP_CHANNEL_SETTINGS: {
289
- HEADER_TITLE: 'Channel information',
290
- HEADER_RIGHT: 'Edit',
291
- MENU_MODERATION: 'Moderation',
292
- MENU_MEMBERS: 'Members',
293
- MENU_LEAVE_CHANNEL: 'Leave channel',
294
- MENU_NOTIFICATION: 'Notifications',
295
- MENU_NOTIFICATION_LABEL_ON: 'On',
296
- MENU_NOTIFICATION_LABEL_OFF: 'Off',
297
- MENU_NOTIFICATION_LABEL_MENTION_ONLY: 'Mentions only',
298
- DIALOG_CHANGE_NAME: 'Change channel name',
299
- DIALOG_CHANGE_NAME_PROMPT_TITLE: 'Change channel name',
300
- DIALOG_CHANGE_NAME_PROMPT_PLACEHOLDER: 'Enter name',
301
- DIALOG_CHANGE_NAME_PROMPT_OK: 'Save',
302
- DIALOG_CHANGE_NAME_PROMPT_CANCEL: 'Cancel',
303
- DIALOG_CHANGE_IMAGE: 'Change channel image',
304
- DIALOG_CHANGE_IMAGE_MENU_TITLE: 'Change channel image',
305
- DIALOG_CHANGE_IMAGE_MENU_CAMERA: 'Take photo',
306
- DIALOG_CHANGE_IMAGE_MENU_PHOTO_LIBRARY: 'Choose photo',
307
- ...overrides?.GROUP_CHANNEL_SETTINGS,
308
- },
309
- GROUP_CHANNEL_NOTIFICATIONS: {
310
- HEADER_TITLE: 'Notifications',
311
- MENU_NOTIFICATIONS: 'Notifications',
312
- MENU_NOTIFICATIONS_DESC:
313
- 'Turn on push notifications if you wish to be notified when messages are delivered to this channel.',
314
- MENU_NOTIFICATIONS_OPTION_ALL: 'All new messages',
315
- MENU_NOTIFICATIONS_OPTION_MENTION_ONLY: 'Mentions only',
316
- ...overrides?.GROUP_CHANNEL_NOTIFICATIONS,
317
- },
318
- GROUP_CHANNEL_MODERATION: {
319
- HEADER_TITLE: 'Moderation',
320
- MENU_OPERATORS: 'Operators',
321
- MENU_MUTED_MEMBERS: 'Muted members',
322
- MENU_BANNED_USERS: 'Banned users',
323
- MENU_FREEZE_CHANNEL: 'Freeze channel',
324
- ...overrides?.GROUP_CHANNEL_MODERATION,
325
- },
326
- GROUP_CHANNEL_OPERATORS: {
327
- HEADER_TITLE: 'Operators',
328
- ...overrides?.GROUP_CHANNEL_OPERATORS,
329
- },
330
- GROUP_CHANNEL_REGISTER_OPERATOR: {
331
- HEADER_TITLE: 'Set as operators',
332
- HEADER_RIGHT: ({ selectedUsers }) => {
333
- const len = selectedUsers.length;
334
- if (len === 0) return 'Add';
335
- return `Add (${len})`;
336
- },
337
- ...overrides?.GROUP_CHANNEL_OPERATORS,
338
- },
339
- GROUP_CHANNEL_MUTED_MEMBERS: {
340
- HEADER_TITLE: 'Muted members',
341
- ...overrides?.GROUP_CHANNEL_MUTED_MEMBERS,
342
- },
343
- GROUP_CHANNEL_BANNED_USERS: {
344
- HEADER_TITLE: 'Banned users',
345
- ...overrides?.GROUP_CHANNEL_BANNED_USERS,
346
- },
347
- GROUP_CHANNEL_LIST: {
348
- HEADER_TITLE: 'Channels',
349
- CHANNEL_PREVIEW_TITLE: (currentUserId, channel) =>
350
- getGroupChannelTitle(currentUserId, channel, USER_NO_NAME, CHANNEL_NO_MEMBERS),
351
- CHANNEL_PREVIEW_TITLE_CAPTION: (channel, locale) => getGroupChannelPreviewTime(channel, locale ?? dateLocale),
352
- CHANNEL_PREVIEW_BODY: (channel) => getGroupChannelLastMessage(channel),
353
- TYPE_SELECTOR_HEADER_TITLE: 'Channel type',
354
- TYPE_SELECTOR_GROUP: 'Group',
355
- TYPE_SELECTOR_SUPER_GROUP: 'Super group',
356
- TYPE_SELECTOR_BROADCAST: 'Broadcast',
357
- DIALOG_CHANNEL_TITLE: (currentUserId, channel) =>
358
- getGroupChannelTitle(currentUserId, channel, USER_NO_NAME, CHANNEL_NO_MEMBERS),
359
- DIALOG_CHANNEL_NOTIFICATION: (channel) => {
360
- if (!channel) return '';
361
- if (channel.myPushTriggerOption === 'off') return 'Turn on notifications';
362
- return 'Turn off notifications';
363
- },
364
- DIALOG_CHANNEL_LEAVE: 'Leave channel',
365
- ...overrides?.GROUP_CHANNEL_LIST,
366
- },
367
- GROUP_CHANNEL_MEMBERS: {
368
- HEADER_TITLE: 'Members',
369
- /** @deprecated Please use in LABELS **/
370
- USER_BAR_ME_POSTFIX: ' (You)',
371
- /** @deprecated Please use in LABELS **/
372
- USER_BAR_OPERATOR: 'Operator',
373
- ...overrides?.GROUP_CHANNEL_MEMBERS,
374
- },
375
- GROUP_CHANNEL_CREATE: {
376
- HEADER_TITLE: 'New channel',
377
- HEADER_RIGHT: ({ selectedUsers }) => {
378
- const len = selectedUsers.length;
379
- if (len === 0) return 'Create';
380
- return `Create (${len})`;
381
- },
382
- ...overrides?.GROUP_CHANNEL_CREATE,
383
- },
384
- GROUP_CHANNEL_INVITE: {
385
- HEADER_TITLE: 'Invite users',
386
- HEADER_RIGHT: ({ selectedUsers }) => {
387
- const len = selectedUsers.length;
388
- if (len === 0) return 'Invite';
389
- return `Invite (${len})`;
390
- },
391
- ...overrides?.GROUP_CHANNEL_INVITE,
392
- },
393
- LABELS: {
394
- USER_NO_NAME,
395
- CHANNEL_NO_MEMBERS,
396
- TYPING_INDICATOR_TYPINGS: (users, NO_NAME = USER_NO_NAME) => {
397
- const userNames = users.map((u) => u.nickname || NO_NAME);
398
- if (userNames.length === 0) return;
399
- if (userNames.length === 1) return `${userNames[0]} is typing...`;
400
- if (users.length === 2) return `${userNames.join(' and ')} are typing...`;
401
- return 'Several people are typing...';
402
- },
403
- USER_BAR_ME_POSTFIX: ' (You)',
404
- USER_BAR_OPERATOR: 'Operator',
405
- REGISTER_AS_OPERATOR: 'Register as operator',
406
- UNREGISTER_OPERATOR: 'Unregister operator',
407
- MUTE: 'Mute',
408
- UNMUTE: 'Unmute',
409
- BAN: 'Ban',
410
- UNBAN: 'Unban',
411
- ...overrides?.LABELS,
412
- },
413
- FILE_VIEWER: {
414
- TITLE: (message) => message.sender?.nickname || USER_NO_NAME,
415
- SUBTITLE: (message) => getMessageTimeFormat(new Date(message.createdAt), dateLocale),
416
- },
417
- PLACEHOLDER: {
418
- NO_BANNED_USERS: 'No banned users',
419
- NO_USERS: 'No users',
420
- NO_CHANNELS: 'No channels',
421
- NO_MESSAGES: 'No messages',
422
- NO_MUTED_MEMBERS: 'No muted members',
423
- NO_RESULTS_FOUND: 'No results found',
424
- ...overrides?.PLACEHOLDER,
425
- ERROR: {
426
- MESSAGE: 'Something went wrong',
427
- RETRY_LABEL: 'Retry',
428
- ...overrides?.PLACEHOLDER?.ERROR,
429
- },
430
- },
431
- DIALOG: {
432
- ALERT_DEFAULT_OK: 'OK',
433
- ALERT_PERMISSIONS_TITLE: 'Allow access?',
434
- ALERT_PERMISSIONS_MESSAGE: (permission, appName = 'Application') => {
435
- return `${appName} need permission to access your ${permission}.`;
436
- },
437
- ALERT_PERMISSIONS_OK: 'Go to settings',
438
- PROMPT_DEFAULT_OK: 'Submit',
439
- PROMPT_DEFAULT_CANCEL: 'Cancel',
440
- PROMPT_DEFAULT_PLACEHOLDER: 'Enter',
441
- ...overrides?.DIALOG,
442
- },
443
- TOAST: {
444
- COPY_OK: 'Copied',
445
- DOWNLOAD_START: 'Downloading...',
446
- DOWNLOAD_OK: 'File saved',
447
- DOWNLOAD_ERROR: "Couldn't download file.",
448
- OPEN_CAMERA_ERROR: "Couldn't open camera.",
449
- OPEN_FILES_ERROR: "Couldn't open files.",
450
- OPEN_PHOTO_LIBRARY_ERROR: "Couldn't open photo library.",
451
- DELETE_MSG_ERROR: "Couldn't delete message.",
452
- RESEND_MSG_ERROR: "Couldn't send message.",
453
- SEND_MSG_ERROR: "Couldn't send message.",
454
- UPDATE_MSG_ERROR: "Couldn't edit message.",
455
- TURN_ON_NOTIFICATIONS_ERROR: "Couldn't turn on notifications.",
456
- TURN_OFF_NOTIFICATIONS_ERROR: "Couldn't turn off notifications.",
457
- LEAVE_CHANNEL_ERROR: "Couldn't leave channel.",
458
- ...overrides?.TOAST,
459
- },
460
- PROFILE_CARD: {
461
- BUTTON_MESSAGE: 'Message',
462
- BODY_LABEL: 'User ID',
463
- BODY: (user) => user.userId,
464
- ...overrides?.PROFILE_CARD,
465
- },
466
- };
467
- };