stream-chat-react-native-core 5.39.6 → 5.40.0-beta.1

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 (433) hide show
  1. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerSelectionBar.js +27 -0
  2. package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerSelectionBar.js.map +1 -1
  3. package/lib/commonjs/components/Channel/Channel.js +17 -4
  4. package/lib/commonjs/components/Channel/Channel.js.map +1 -1
  5. package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js +7 -1
  6. package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  7. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js +5 -1
  8. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  9. package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js +46 -3
  10. package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
  11. package/lib/commonjs/components/Chat/Chat.js +2 -0
  12. package/lib/commonjs/components/Chat/Chat.js.map +1 -1
  13. package/lib/commonjs/components/Chat/hooks/handleEventToSyncDB.js +10 -0
  14. package/lib/commonjs/components/Chat/hooks/handleEventToSyncDB.js.map +1 -1
  15. package/lib/commonjs/components/Message/Message.js +13 -0
  16. package/lib/commonjs/components/Message/Message.js.map +1 -1
  17. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js +31 -15
  18. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
  19. package/lib/commonjs/components/MessageInput/MessageInput.js +44 -1
  20. package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
  21. package/lib/commonjs/components/MessageInput/components/NativeAttachmentPicker.js +18 -1
  22. package/lib/commonjs/components/MessageInput/components/NativeAttachmentPicker.js.map +1 -1
  23. package/lib/commonjs/components/MessageOverlay/MessageOverlay.js +10 -0
  24. package/lib/commonjs/components/MessageOverlay/MessageOverlay.js.map +1 -1
  25. package/lib/commonjs/components/Poll/CreatePollContent.js +386 -0
  26. package/lib/commonjs/components/Poll/CreatePollContent.js.map +1 -0
  27. package/lib/commonjs/components/Poll/Poll.js +112 -0
  28. package/lib/commonjs/components/Poll/Poll.js.map +1 -0
  29. package/lib/commonjs/components/Poll/components/Button.js +513 -0
  30. package/lib/commonjs/components/Poll/components/Button.js.map +1 -0
  31. package/lib/commonjs/components/Poll/components/CreatePollIcon.js +23 -0
  32. package/lib/commonjs/components/Poll/components/CreatePollIcon.js.map +1 -0
  33. package/lib/commonjs/components/Poll/components/CreatePollOptions.js +281 -0
  34. package/lib/commonjs/components/Poll/components/CreatePollOptions.js.map +1 -0
  35. package/lib/commonjs/components/Poll/components/PollAnswersList.js +154 -0
  36. package/lib/commonjs/components/Poll/components/PollAnswersList.js.map +1 -0
  37. package/lib/commonjs/components/Poll/components/PollInputDialog.js +139 -0
  38. package/lib/commonjs/components/Poll/components/PollInputDialog.js.map +1 -0
  39. package/lib/commonjs/components/Poll/components/PollModalHeader.js +60 -0
  40. package/lib/commonjs/components/Poll/components/PollModalHeader.js.map +1 -0
  41. package/lib/commonjs/components/Poll/components/PollOption.js +209 -0
  42. package/lib/commonjs/components/Poll/components/PollOption.js.map +1 -0
  43. package/lib/commonjs/components/Poll/components/PollResults/PollOptionFullResults.js +123 -0
  44. package/lib/commonjs/components/Poll/components/PollResults/PollOptionFullResults.js.map +1 -0
  45. package/lib/commonjs/components/Poll/components/PollResults/PollResultItem.js +152 -0
  46. package/lib/commonjs/components/Poll/components/PollResults/PollResultItem.js.map +1 -0
  47. package/lib/commonjs/components/Poll/components/PollResults/PollResults.js +101 -0
  48. package/lib/commonjs/components/Poll/components/PollResults/PollResults.js.map +1 -0
  49. package/lib/commonjs/components/Poll/components/PollResults/index.js +37 -0
  50. package/lib/commonjs/components/Poll/components/PollResults/index.js.map +1 -0
  51. package/lib/commonjs/components/Poll/components/index.js +92 -0
  52. package/lib/commonjs/components/Poll/components/index.js.map +1 -0
  53. package/lib/commonjs/components/Poll/hooks/usePollAnswersPagination.js +129 -0
  54. package/lib/commonjs/components/Poll/hooks/usePollAnswersPagination.js.map +1 -0
  55. package/lib/commonjs/components/Poll/hooks/usePollOptionVotesPagination.js +140 -0
  56. package/lib/commonjs/components/Poll/hooks/usePollOptionVotesPagination.js.map +1 -0
  57. package/lib/commonjs/components/Poll/hooks/usePollState.js +103 -0
  58. package/lib/commonjs/components/Poll/hooks/usePollState.js.map +1 -0
  59. package/lib/commonjs/components/Poll/hooks/usePollStateStore.js +13 -0
  60. package/lib/commonjs/components/Poll/hooks/usePollStateStore.js.map +1 -0
  61. package/lib/commonjs/components/Poll/index.js +81 -0
  62. package/lib/commonjs/components/Poll/index.js.map +1 -0
  63. package/lib/commonjs/components/Reply/Reply.js +1 -1
  64. package/lib/commonjs/components/Reply/Reply.js.map +1 -1
  65. package/lib/commonjs/components/index.js +11 -0
  66. package/lib/commonjs/components/index.js.map +1 -1
  67. package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
  68. package/lib/commonjs/contexts/index.js +11 -0
  69. package/lib/commonjs/contexts/index.js.map +1 -1
  70. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +26 -3
  71. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  72. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +9 -1
  73. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  74. package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -1
  75. package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
  76. package/lib/commonjs/contexts/overlayContext/OverlayContext.js.map +1 -1
  77. package/lib/commonjs/contexts/overlayContext/OverlayProvider.js +4 -0
  78. package/lib/commonjs/contexts/overlayContext/OverlayProvider.js.map +1 -1
  79. package/lib/commonjs/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js +3 -0
  80. package/lib/commonjs/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js.map +1 -1
  81. package/lib/commonjs/contexts/pollContext/createPollContentContext.js +33 -0
  82. package/lib/commonjs/contexts/pollContext/createPollContentContext.js.map +1 -0
  83. package/lib/commonjs/contexts/pollContext/index.js +26 -0
  84. package/lib/commonjs/contexts/pollContext/index.js.map +1 -0
  85. package/lib/commonjs/contexts/pollContext/pollContext.js +33 -0
  86. package/lib/commonjs/contexts/pollContext/pollContext.js.map +1 -0
  87. package/lib/commonjs/contexts/themeContext/utils/theme.js +126 -0
  88. package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
  89. package/lib/commonjs/i18n/en.json +34 -0
  90. package/lib/commonjs/i18n/es.json +38 -0
  91. package/lib/commonjs/i18n/fr.json +38 -0
  92. package/lib/commonjs/i18n/he.json +38 -0
  93. package/lib/commonjs/i18n/hi.json +34 -0
  94. package/lib/commonjs/i18n/it.json +38 -0
  95. package/lib/commonjs/i18n/ja.json +34 -0
  96. package/lib/commonjs/i18n/ko.json +34 -0
  97. package/lib/commonjs/i18n/nl.json +34 -0
  98. package/lib/commonjs/i18n/pt-br.json +38 -0
  99. package/lib/commonjs/i18n/ru.json +42 -0
  100. package/lib/commonjs/i18n/tr.json +34 -0
  101. package/lib/commonjs/icons/Back.js +19 -0
  102. package/lib/commonjs/icons/Back.js.map +1 -0
  103. package/lib/commonjs/icons/DragHandle.js +21 -0
  104. package/lib/commonjs/icons/DragHandle.js.map +1 -0
  105. package/lib/commonjs/icons/PollThumbnail.js +19 -0
  106. package/lib/commonjs/icons/PollThumbnail.js.map +1 -0
  107. package/lib/commonjs/icons/SendPoll.js +19 -0
  108. package/lib/commonjs/icons/SendPoll.js.map +1 -0
  109. package/lib/commonjs/icons/index.js +44 -0
  110. package/lib/commonjs/icons/index.js.map +1 -1
  111. package/lib/commonjs/store/QuickSqliteClient.js +1 -1
  112. package/lib/commonjs/store/apis/index.js +11 -0
  113. package/lib/commonjs/store/apis/index.js.map +1 -1
  114. package/lib/commonjs/store/apis/updatePollMessage.js +50 -0
  115. package/lib/commonjs/store/apis/updatePollMessage.js.map +1 -0
  116. package/lib/commonjs/store/mappers/mapMessageToStorable.js +5 -1
  117. package/lib/commonjs/store/mappers/mapMessageToStorable.js.map +1 -1
  118. package/lib/commonjs/store/mappers/mapStorableToMessage.js +5 -1
  119. package/lib/commonjs/store/mappers/mapStorableToMessage.js.map +1 -1
  120. package/lib/commonjs/store/schema.js +2 -0
  121. package/lib/commonjs/store/schema.js.map +1 -1
  122. package/lib/commonjs/version.json +1 -1
  123. package/lib/module/components/AttachmentPicker/components/AttachmentPickerSelectionBar.js +27 -0
  124. package/lib/module/components/AttachmentPicker/components/AttachmentPickerSelectionBar.js.map +1 -1
  125. package/lib/module/components/Channel/Channel.js +17 -4
  126. package/lib/module/components/Channel/Channel.js.map +1 -1
  127. package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js +7 -1
  128. package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  129. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js +5 -1
  130. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  131. package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js +46 -3
  132. package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
  133. package/lib/module/components/Chat/Chat.js +2 -0
  134. package/lib/module/components/Chat/Chat.js.map +1 -1
  135. package/lib/module/components/Chat/hooks/handleEventToSyncDB.js +10 -0
  136. package/lib/module/components/Chat/hooks/handleEventToSyncDB.js.map +1 -1
  137. package/lib/module/components/Message/Message.js +13 -0
  138. package/lib/module/components/Message/Message.js.map +1 -1
  139. package/lib/module/components/Message/MessageSimple/MessageContent.js +31 -15
  140. package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
  141. package/lib/module/components/MessageInput/MessageInput.js +44 -1
  142. package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
  143. package/lib/module/components/MessageInput/components/NativeAttachmentPicker.js +18 -1
  144. package/lib/module/components/MessageInput/components/NativeAttachmentPicker.js.map +1 -1
  145. package/lib/module/components/MessageOverlay/MessageOverlay.js +10 -0
  146. package/lib/module/components/MessageOverlay/MessageOverlay.js.map +1 -1
  147. package/lib/module/components/Poll/CreatePollContent.js +386 -0
  148. package/lib/module/components/Poll/CreatePollContent.js.map +1 -0
  149. package/lib/module/components/Poll/Poll.js +112 -0
  150. package/lib/module/components/Poll/Poll.js.map +1 -0
  151. package/lib/module/components/Poll/components/Button.js +513 -0
  152. package/lib/module/components/Poll/components/Button.js.map +1 -0
  153. package/lib/module/components/Poll/components/CreatePollIcon.js +23 -0
  154. package/lib/module/components/Poll/components/CreatePollIcon.js.map +1 -0
  155. package/lib/module/components/Poll/components/CreatePollOptions.js +281 -0
  156. package/lib/module/components/Poll/components/CreatePollOptions.js.map +1 -0
  157. package/lib/module/components/Poll/components/PollAnswersList.js +154 -0
  158. package/lib/module/components/Poll/components/PollAnswersList.js.map +1 -0
  159. package/lib/module/components/Poll/components/PollInputDialog.js +139 -0
  160. package/lib/module/components/Poll/components/PollInputDialog.js.map +1 -0
  161. package/lib/module/components/Poll/components/PollModalHeader.js +60 -0
  162. package/lib/module/components/Poll/components/PollModalHeader.js.map +1 -0
  163. package/lib/module/components/Poll/components/PollOption.js +209 -0
  164. package/lib/module/components/Poll/components/PollOption.js.map +1 -0
  165. package/lib/module/components/Poll/components/PollResults/PollOptionFullResults.js +123 -0
  166. package/lib/module/components/Poll/components/PollResults/PollOptionFullResults.js.map +1 -0
  167. package/lib/module/components/Poll/components/PollResults/PollResultItem.js +152 -0
  168. package/lib/module/components/Poll/components/PollResults/PollResultItem.js.map +1 -0
  169. package/lib/module/components/Poll/components/PollResults/PollResults.js +101 -0
  170. package/lib/module/components/Poll/components/PollResults/PollResults.js.map +1 -0
  171. package/lib/module/components/Poll/components/PollResults/index.js +37 -0
  172. package/lib/module/components/Poll/components/PollResults/index.js.map +1 -0
  173. package/lib/module/components/Poll/components/index.js +92 -0
  174. package/lib/module/components/Poll/components/index.js.map +1 -0
  175. package/lib/module/components/Poll/hooks/usePollAnswersPagination.js +129 -0
  176. package/lib/module/components/Poll/hooks/usePollAnswersPagination.js.map +1 -0
  177. package/lib/module/components/Poll/hooks/usePollOptionVotesPagination.js +140 -0
  178. package/lib/module/components/Poll/hooks/usePollOptionVotesPagination.js.map +1 -0
  179. package/lib/module/components/Poll/hooks/usePollState.js +103 -0
  180. package/lib/module/components/Poll/hooks/usePollState.js.map +1 -0
  181. package/lib/module/components/Poll/hooks/usePollStateStore.js +13 -0
  182. package/lib/module/components/Poll/hooks/usePollStateStore.js.map +1 -0
  183. package/lib/module/components/Poll/index.js +81 -0
  184. package/lib/module/components/Poll/index.js.map +1 -0
  185. package/lib/module/components/Reply/Reply.js +1 -1
  186. package/lib/module/components/Reply/Reply.js.map +1 -1
  187. package/lib/module/components/index.js +11 -0
  188. package/lib/module/components/index.js.map +1 -1
  189. package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
  190. package/lib/module/contexts/index.js +11 -0
  191. package/lib/module/contexts/index.js.map +1 -1
  192. package/lib/module/contexts/messageInputContext/MessageInputContext.js +26 -3
  193. package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  194. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +9 -1
  195. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  196. package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -1
  197. package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
  198. package/lib/module/contexts/overlayContext/OverlayContext.js.map +1 -1
  199. package/lib/module/contexts/overlayContext/OverlayProvider.js +4 -0
  200. package/lib/module/contexts/overlayContext/OverlayProvider.js.map +1 -1
  201. package/lib/module/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js +3 -0
  202. package/lib/module/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js.map +1 -1
  203. package/lib/module/contexts/pollContext/createPollContentContext.js +33 -0
  204. package/lib/module/contexts/pollContext/createPollContentContext.js.map +1 -0
  205. package/lib/module/contexts/pollContext/index.js +26 -0
  206. package/lib/module/contexts/pollContext/index.js.map +1 -0
  207. package/lib/module/contexts/pollContext/pollContext.js +33 -0
  208. package/lib/module/contexts/pollContext/pollContext.js.map +1 -0
  209. package/lib/module/contexts/themeContext/utils/theme.js +126 -0
  210. package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
  211. package/lib/module/i18n/en.json +34 -0
  212. package/lib/module/i18n/es.json +38 -0
  213. package/lib/module/i18n/fr.json +38 -0
  214. package/lib/module/i18n/he.json +38 -0
  215. package/lib/module/i18n/hi.json +34 -0
  216. package/lib/module/i18n/it.json +38 -0
  217. package/lib/module/i18n/ja.json +34 -0
  218. package/lib/module/i18n/ko.json +34 -0
  219. package/lib/module/i18n/nl.json +34 -0
  220. package/lib/module/i18n/pt-br.json +38 -0
  221. package/lib/module/i18n/ru.json +42 -0
  222. package/lib/module/i18n/tr.json +34 -0
  223. package/lib/module/icons/Back.js +19 -0
  224. package/lib/module/icons/Back.js.map +1 -0
  225. package/lib/module/icons/DragHandle.js +21 -0
  226. package/lib/module/icons/DragHandle.js.map +1 -0
  227. package/lib/module/icons/PollThumbnail.js +19 -0
  228. package/lib/module/icons/PollThumbnail.js.map +1 -0
  229. package/lib/module/icons/SendPoll.js +19 -0
  230. package/lib/module/icons/SendPoll.js.map +1 -0
  231. package/lib/module/icons/index.js +44 -0
  232. package/lib/module/icons/index.js.map +1 -1
  233. package/lib/module/store/QuickSqliteClient.js +1 -1
  234. package/lib/module/store/apis/index.js +11 -0
  235. package/lib/module/store/apis/index.js.map +1 -1
  236. package/lib/module/store/apis/updatePollMessage.js +50 -0
  237. package/lib/module/store/apis/updatePollMessage.js.map +1 -0
  238. package/lib/module/store/mappers/mapMessageToStorable.js +5 -1
  239. package/lib/module/store/mappers/mapMessageToStorable.js.map +1 -1
  240. package/lib/module/store/mappers/mapStorableToMessage.js +5 -1
  241. package/lib/module/store/mappers/mapStorableToMessage.js.map +1 -1
  242. package/lib/module/store/schema.js +2 -0
  243. package/lib/module/store/schema.js.map +1 -1
  244. package/lib/module/version.json +1 -1
  245. package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerSelectionBar.d.ts.map +1 -1
  246. package/lib/typescript/components/Channel/Channel.d.ts +2 -2
  247. package/lib/typescript/components/Channel/Channel.d.ts.map +1 -1
  248. package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts +1 -1
  249. package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts.map +1 -1
  250. package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +1 -1
  251. package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts.map +1 -1
  252. package/lib/typescript/components/ChannelPreview/hooks/useLatestMessagePreview.d.ts +5 -1
  253. package/lib/typescript/components/ChannelPreview/hooks/useLatestMessagePreview.d.ts.map +1 -1
  254. package/lib/typescript/components/Chat/Chat.d.ts.map +1 -1
  255. package/lib/typescript/components/Chat/hooks/handleEventToSyncDB.d.ts.map +1 -1
  256. package/lib/typescript/components/Message/Message.d.ts +1 -1
  257. package/lib/typescript/components/Message/Message.d.ts.map +1 -1
  258. package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts.map +1 -1
  259. package/lib/typescript/components/MessageInput/MessageInput.d.ts +1 -1
  260. package/lib/typescript/components/MessageInput/MessageInput.d.ts.map +1 -1
  261. package/lib/typescript/components/MessageInput/components/NativeAttachmentPicker.d.ts.map +1 -1
  262. package/lib/typescript/components/MessageOverlay/MessageOverlay.d.ts.map +1 -1
  263. package/lib/typescript/components/Poll/CreatePollContent.d.ts +6 -0
  264. package/lib/typescript/components/Poll/CreatePollContent.d.ts.map +1 -0
  265. package/lib/typescript/components/Poll/Poll.d.ts +13 -0
  266. package/lib/typescript/components/Poll/Poll.d.ts.map +1 -0
  267. package/lib/typescript/components/Poll/components/Button.d.ts +35 -0
  268. package/lib/typescript/components/Poll/components/Button.d.ts.map +1 -0
  269. package/lib/typescript/components/Poll/components/CreatePollIcon.d.ts +3 -0
  270. package/lib/typescript/components/Poll/components/CreatePollIcon.d.ts.map +1 -0
  271. package/lib/typescript/components/Poll/components/CreatePollOptions.d.ts +34 -0
  272. package/lib/typescript/components/Poll/components/CreatePollOptions.d.ts.map +1 -0
  273. package/lib/typescript/components/Poll/components/PollAnswersList.d.ts +15 -0
  274. package/lib/typescript/components/Poll/components/PollAnswersList.d.ts.map +1 -0
  275. package/lib/typescript/components/Poll/components/PollInputDialog.d.ts +10 -0
  276. package/lib/typescript/components/Poll/components/PollInputDialog.d.ts.map +1 -0
  277. package/lib/typescript/components/Poll/components/PollModalHeader.d.ts +7 -0
  278. package/lib/typescript/components/Poll/components/PollModalHeader.d.ts.map +1 -0
  279. package/lib/typescript/components/Poll/components/PollOption.d.ts +16 -0
  280. package/lib/typescript/components/Poll/components/PollOption.d.ts.map +1 -0
  281. package/lib/typescript/components/Poll/components/PollResults/PollOptionFullResults.d.ts +18 -0
  282. package/lib/typescript/components/Poll/components/PollResults/PollOptionFullResults.d.ts.map +1 -0
  283. package/lib/typescript/components/Poll/components/PollResults/PollResultItem.d.ts +9 -0
  284. package/lib/typescript/components/Poll/components/PollResults/PollResultItem.d.ts.map +1 -0
  285. package/lib/typescript/components/Poll/components/PollResults/PollResults.d.ts +10 -0
  286. package/lib/typescript/components/Poll/components/PollResults/PollResults.d.ts.map +1 -0
  287. package/lib/typescript/components/Poll/components/PollResults/index.d.ts +4 -0
  288. package/lib/typescript/components/Poll/components/PollResults/index.d.ts.map +1 -0
  289. package/lib/typescript/components/Poll/components/index.d.ts +9 -0
  290. package/lib/typescript/components/Poll/components/index.d.ts.map +1 -0
  291. package/lib/typescript/components/Poll/hooks/usePollAnswersPagination.d.ts +29 -0
  292. package/lib/typescript/components/Poll/hooks/usePollAnswersPagination.d.ts.map +1 -0
  293. package/lib/typescript/components/Poll/hooks/usePollOptionVotesPagination.d.ts +32 -0
  294. package/lib/typescript/components/Poll/hooks/usePollOptionVotesPagination.d.ts.map +1 -0
  295. package/lib/typescript/components/Poll/hooks/usePollState.d.ts +26 -0
  296. package/lib/typescript/components/Poll/hooks/usePollState.d.ts.map +1 -0
  297. package/lib/typescript/components/Poll/hooks/usePollStateStore.d.ts +3 -0
  298. package/lib/typescript/components/Poll/hooks/usePollStateStore.d.ts.map +1 -0
  299. package/lib/typescript/components/Poll/index.d.ts +8 -0
  300. package/lib/typescript/components/Poll/index.d.ts.map +1 -0
  301. package/lib/typescript/components/Reply/Reply.d.ts.map +1 -1
  302. package/lib/typescript/components/index.d.ts +1 -0
  303. package/lib/typescript/components/index.d.ts.map +1 -1
  304. package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts +7 -1
  305. package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts.map +1 -1
  306. package/lib/typescript/contexts/index.d.ts +1 -0
  307. package/lib/typescript/contexts/index.d.ts.map +1 -1
  308. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +11 -2
  309. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts.map +1 -1
  310. package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts +1 -1
  311. package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts.map +1 -1
  312. package/lib/typescript/contexts/messageOverlayContext/MessageOverlayContext.d.ts +2 -1
  313. package/lib/typescript/contexts/messageOverlayContext/MessageOverlayContext.d.ts.map +1 -1
  314. package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +9 -1
  315. package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts.map +1 -1
  316. package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts +1 -1
  317. package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts.map +1 -1
  318. package/lib/typescript/contexts/overlayContext/OverlayProvider.d.ts.map +1 -1
  319. package/lib/typescript/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.d.ts +3 -0
  320. package/lib/typescript/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.d.ts.map +1 -1
  321. package/lib/typescript/contexts/pollContext/createPollContentContext.d.ts +20 -0
  322. package/lib/typescript/contexts/pollContext/createPollContentContext.d.ts.map +1 -0
  323. package/lib/typescript/contexts/pollContext/index.d.ts +3 -0
  324. package/lib/typescript/contexts/pollContext/index.d.ts.map +1 -0
  325. package/lib/typescript/contexts/pollContext/pollContext.d.ts +14 -0
  326. package/lib/typescript/contexts/pollContext/pollContext.d.ts.map +1 -0
  327. package/lib/typescript/contexts/themeContext/utils/theme.d.ts +126 -0
  328. package/lib/typescript/contexts/themeContext/utils/theme.d.ts.map +1 -1
  329. package/lib/typescript/i18n/en.json +34 -0
  330. package/lib/typescript/i18n/es.json +38 -0
  331. package/lib/typescript/i18n/fr.json +38 -0
  332. package/lib/typescript/i18n/he.json +38 -0
  333. package/lib/typescript/i18n/hi.json +34 -0
  334. package/lib/typescript/i18n/it.json +38 -0
  335. package/lib/typescript/i18n/ja.json +34 -0
  336. package/lib/typescript/i18n/ko.json +34 -0
  337. package/lib/typescript/i18n/nl.json +34 -0
  338. package/lib/typescript/i18n/pt-br.json +38 -0
  339. package/lib/typescript/i18n/ru.json +42 -0
  340. package/lib/typescript/i18n/tr.json +34 -0
  341. package/lib/typescript/icons/Back.d.ts +4 -0
  342. package/lib/typescript/icons/Back.d.ts.map +1 -0
  343. package/lib/typescript/icons/DragHandle.d.ts +4 -0
  344. package/lib/typescript/icons/DragHandle.d.ts.map +1 -0
  345. package/lib/typescript/icons/PollThumbnail.d.ts +4 -0
  346. package/lib/typescript/icons/PollThumbnail.d.ts.map +1 -0
  347. package/lib/typescript/icons/SendPoll.d.ts +4 -0
  348. package/lib/typescript/icons/SendPoll.d.ts.map +1 -0
  349. package/lib/typescript/icons/index.d.ts +4 -0
  350. package/lib/typescript/icons/index.d.ts.map +1 -1
  351. package/lib/typescript/store/apis/index.d.ts +1 -0
  352. package/lib/typescript/store/apis/index.d.ts.map +1 -1
  353. package/lib/typescript/store/apis/updatePollMessage.d.ts +7 -0
  354. package/lib/typescript/store/apis/updatePollMessage.d.ts.map +1 -0
  355. package/lib/typescript/store/mappers/mapMessageToStorable.d.ts.map +1 -1
  356. package/lib/typescript/store/mappers/mapStorableToMessage.d.ts.map +1 -1
  357. package/lib/typescript/store/schema.d.ts +2 -0
  358. package/lib/typescript/store/schema.d.ts.map +1 -1
  359. package/lib/typescript/utils/i18n/Streami18n.d.ts +34 -0
  360. package/lib/typescript/utils/i18n/Streami18n.d.ts.map +1 -1
  361. package/package.json +2 -2
  362. package/src/components/AttachmentPicker/components/AttachmentPickerSelectionBar.tsx +35 -2
  363. package/src/components/Channel/Channel.tsx +27 -4
  364. package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts +16 -1
  365. package/src/components/Channel/hooks/useCreateMessagesContext.ts +5 -0
  366. package/src/components/ChannelPreview/hooks/useLatestMessagePreview.ts +63 -4
  367. package/src/components/Chat/Chat.tsx +2 -0
  368. package/src/components/Chat/hooks/handleEventToSyncDB.ts +19 -0
  369. package/src/components/Message/Message.tsx +15 -1
  370. package/src/components/Message/MessageSimple/MessageContent.tsx +16 -0
  371. package/src/components/MessageInput/MessageInput.tsx +58 -1
  372. package/src/components/MessageInput/__tests__/MessageInput.test.js +2 -0
  373. package/src/components/MessageInput/components/NativeAttachmentPicker.tsx +29 -2
  374. package/src/components/MessageOverlay/MessageOverlay.tsx +10 -0
  375. package/src/components/Poll/CreatePollContent.tsx +299 -0
  376. package/src/components/Poll/Poll.tsx +126 -0
  377. package/src/components/Poll/components/Button.tsx +465 -0
  378. package/src/components/Poll/components/CreatePollIcon.tsx +14 -0
  379. package/src/components/Poll/components/CreatePollOptions.tsx +351 -0
  380. package/src/components/Poll/components/PollAnswersList.tsx +134 -0
  381. package/src/components/Poll/components/PollInputDialog.tsx +117 -0
  382. package/src/components/Poll/components/PollModalHeader.tsx +42 -0
  383. package/src/components/Poll/components/PollOption.tsx +172 -0
  384. package/src/components/Poll/components/PollResults/PollOptionFullResults.tsx +108 -0
  385. package/src/components/Poll/components/PollResults/PollResultItem.tsx +115 -0
  386. package/src/components/Poll/components/PollResults/PollResults.tsx +79 -0
  387. package/src/components/Poll/components/PollResults/index.ts +3 -0
  388. package/src/components/Poll/components/index.ts +8 -0
  389. package/src/components/Poll/hooks/usePollAnswersPagination.ts +109 -0
  390. package/src/components/Poll/hooks/usePollOptionVotesPagination.ts +119 -0
  391. package/src/components/Poll/hooks/usePollState.ts +122 -0
  392. package/src/components/Poll/hooks/usePollStateStore.ts +13 -0
  393. package/src/components/Poll/index.ts +10 -0
  394. package/src/components/Reply/Reply.tsx +2 -0
  395. package/src/components/index.ts +1 -0
  396. package/src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx +12 -1
  397. package/src/contexts/index.ts +1 -0
  398. package/src/contexts/messageInputContext/MessageInputContext.tsx +38 -10
  399. package/src/contexts/messageInputContext/__tests__/pickFile.test.tsx +4 -2
  400. package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +9 -0
  401. package/src/contexts/messageOverlayContext/MessageOverlayContext.tsx +2 -1
  402. package/src/contexts/messagesContext/MessagesContext.tsx +15 -2
  403. package/src/contexts/overlayContext/OverlayContext.tsx +1 -0
  404. package/src/contexts/overlayContext/OverlayProvider.tsx +3 -0
  405. package/src/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.tsx +3 -0
  406. package/src/contexts/pollContext/createPollContentContext.tsx +49 -0
  407. package/src/contexts/pollContext/index.ts +2 -0
  408. package/src/contexts/pollContext/pollContext.tsx +43 -0
  409. package/src/contexts/themeContext/utils/theme.ts +233 -0
  410. package/src/i18n/en.json +34 -0
  411. package/src/i18n/es.json +38 -0
  412. package/src/i18n/fr.json +38 -0
  413. package/src/i18n/he.json +38 -0
  414. package/src/i18n/hi.json +34 -0
  415. package/src/i18n/it.json +38 -0
  416. package/src/i18n/ja.json +34 -0
  417. package/src/i18n/ko.json +34 -0
  418. package/src/i18n/nl.json +34 -0
  419. package/src/i18n/pt-br.json +38 -0
  420. package/src/i18n/ru.json +42 -0
  421. package/src/i18n/tr.json +34 -0
  422. package/src/icons/Back.tsx +12 -0
  423. package/src/icons/DragHandle.tsx +9 -0
  424. package/src/icons/PollThumbnail.tsx +12 -0
  425. package/src/icons/SendPoll.tsx +12 -0
  426. package/src/icons/index.ts +4 -0
  427. package/src/store/QuickSqliteClient.ts +1 -1
  428. package/src/store/apis/index.ts +1 -0
  429. package/src/store/apis/updatePollMessage.ts +48 -0
  430. package/src/store/mappers/mapMessageToStorable.ts +4 -0
  431. package/src/store/mappers/mapStorableToMessage.ts +4 -0
  432. package/src/store/schema.ts +4 -0
  433. package/src/version.json +1 -1
@@ -6,14 +6,17 @@ import { isTestEnvironment } from '../utils/isTestEnvironment';
6
6
 
7
7
  export const allOwnCapabilities = {
8
8
  banChannelMembers: 'ban-channel-members',
9
+ castPollVote: 'cast-poll-vote',
9
10
  deleteAnyMessage: 'delete-any-message',
10
11
  deleteOwnMessage: 'delete-own-message',
11
12
  flagMessage: 'flag-message',
12
13
  pinMessage: 'pin-message',
14
+ queryPollVotes: 'query-poll-votes',
13
15
  quoteMessage: 'quote-message',
14
16
  readEvents: 'read-events',
15
17
  sendLinks: 'send-links',
16
18
  sendMessage: 'send-message',
19
+ sendPoll: 'send-poll',
17
20
  sendReaction: 'send-reaction',
18
21
  sendReply: 'send-reply',
19
22
  sendTypingEvents: 'send-typing-events',
@@ -0,0 +1,49 @@
1
+ import React, { PropsWithChildren, useContext } from 'react';
2
+
3
+ import { CreatePollData } from 'stream-chat';
4
+
5
+ import { MessageInputContextValue } from '../messageInputContext/MessageInputContext';
6
+ import { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';
7
+
8
+ import { isTestEnvironment } from '../utils/isTestEnvironment';
9
+
10
+ export type CreatePollContentContextValue = {
11
+ createAndSendPoll: (pollData: CreatePollData) => Promise<void>;
12
+ sendMessage: MessageInputContextValue['sendMessage'];
13
+ /**
14
+ * A property that defines the constant height of the options within the poll creation screen.
15
+ *
16
+ * **Default: ** 71
17
+ */
18
+ closePollCreationDialog?: () => void;
19
+ createPollOptionHeight?: number;
20
+ };
21
+
22
+ export const CreatePollContentContext = React.createContext(
23
+ DEFAULT_BASE_CONTEXT_VALUE as CreatePollContentContextValue,
24
+ );
25
+
26
+ export const CreatePollContentProvider = ({
27
+ children,
28
+ value,
29
+ }: PropsWithChildren<{
30
+ value: CreatePollContentContextValue;
31
+ }>) => (
32
+ <CreatePollContentContext.Provider value={value as unknown as CreatePollContentContextValue}>
33
+ {children}
34
+ </CreatePollContentContext.Provider>
35
+ );
36
+
37
+ export const useCreatePollContentContext = () => {
38
+ const contextValue = useContext(
39
+ CreatePollContentContext,
40
+ ) as unknown as CreatePollContentContextValue;
41
+
42
+ if (contextValue === DEFAULT_BASE_CONTEXT_VALUE && !isTestEnvironment()) {
43
+ throw new Error(
44
+ `The useCreatePollContentContext hook was called outside of the CreatePollContentContext provider. Make sure you have configured the CreatePollContent component correctly - https://getstream.io/chat/docs/sdk/reactnative/basics/hello_stream_chat/#channel`,
45
+ );
46
+ }
47
+
48
+ return contextValue;
49
+ };
@@ -0,0 +1,2 @@
1
+ export * from './createPollContentContext';
2
+ export * from './pollContext';
@@ -0,0 +1,43 @@
1
+ import React, { PropsWithChildren, useContext } from 'react';
2
+
3
+ import { Poll } from 'stream-chat';
4
+
5
+ import { MessageType } from '../../components';
6
+ import type { DefaultStreamChatGenerics } from '../../types/types';
7
+ import { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';
8
+
9
+ import { isTestEnvironment } from '../utils/isTestEnvironment';
10
+
11
+ export type PollContextValue<
12
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
13
+ > = {
14
+ message: MessageType<StreamChatGenerics>;
15
+ poll: Poll<StreamChatGenerics>;
16
+ };
17
+
18
+ export const PollContext = React.createContext(DEFAULT_BASE_CONTEXT_VALUE as PollContextValue);
19
+
20
+ export const PollContextProvider = <
21
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
22
+ >({
23
+ children,
24
+ value,
25
+ }: PropsWithChildren<{
26
+ value: PollContextValue<StreamChatGenerics>;
27
+ }>) => (
28
+ <PollContext.Provider value={value as unknown as PollContextValue}>
29
+ {children}
30
+ </PollContext.Provider>
31
+ );
32
+
33
+ export const usePollContext = () => {
34
+ const contextValue = useContext(PollContext) as unknown as PollContextValue;
35
+
36
+ if (contextValue === DEFAULT_BASE_CONTEXT_VALUE && !isTestEnvironment()) {
37
+ throw new Error(
38
+ `The useCreatePollContext hook was called outside of the PollContext provider. Make sure you have configured the Poll component correctly - https://getstream.io/chat/docs/sdk/reactnative/basics/hello_stream_chat/#channel`,
39
+ );
40
+ }
41
+
42
+ return contextValue;
43
+ };
@@ -7,13 +7,18 @@ export const DEFAULT_STATUS_ICON_SIZE = 16;
7
7
 
8
8
  export const Colors = {
9
9
  accent_blue: '#005FFF',
10
+ accent_dark_blue: '#005DFF',
11
+ accent_error: '#FF3842',
10
12
  accent_green: '#20E070',
13
+ accent_info: '#1FE06F',
11
14
  accent_red: '#FF3742',
12
15
  bg_gradient_end: '#F7F7F7',
13
16
  bg_gradient_start: '#FCFCFC',
17
+ bg_user: '#F7F7F8',
14
18
  black: '#000000',
15
19
  blue_alice: '#E9F2FF',
16
20
  border: '#00000014', // 14 = 8% opacity; top: x=0, y=-1; bottom: x=0, y=1
21
+ disabled: '#B4BBBA',
17
22
  grey: '#7A7A7A',
18
23
  grey_dark: '#72767E',
19
24
  grey_gainsboro: '#DBDBDB',
@@ -613,6 +618,120 @@ export type Theme = {
613
618
  unSelectedIcon: IconProps;
614
619
  };
615
620
  };
621
+ poll: {
622
+ allOptions: {
623
+ listContainer: ViewStyle;
624
+ titleContainer: ViewStyle;
625
+ titleText: TextStyle;
626
+ wrapper: ViewStyle;
627
+ };
628
+ answersList: {
629
+ buttonContainer: ViewStyle;
630
+ container: ViewStyle;
631
+ item: {
632
+ answerText: TextStyle;
633
+ container: ViewStyle;
634
+ infoContainer: ViewStyle;
635
+ userInfoContainer: ViewStyle;
636
+ };
637
+ };
638
+ button: { container: ViewStyle; text: TextStyle };
639
+ createContent: {
640
+ addComment: {
641
+ title: TextStyle;
642
+ wrapper: ViewStyle;
643
+ };
644
+ anonymousPoll: {
645
+ title: TextStyle;
646
+ wrapper: ViewStyle;
647
+ };
648
+ headerContainer: ViewStyle;
649
+ maxVotes: {
650
+ input: TextStyle;
651
+ validationText: TextStyle;
652
+ wrapper: ViewStyle;
653
+ };
654
+ multipleAnswers: {
655
+ row: ViewStyle;
656
+ title: TextStyle;
657
+ wrapper: ViewStyle;
658
+ };
659
+ name: {
660
+ input: TextStyle;
661
+ title: TextStyle;
662
+ };
663
+ pollOptions: {
664
+ addOption: {
665
+ text: TextStyle;
666
+ wrapper: ViewStyle;
667
+ };
668
+ container: ViewStyle;
669
+ optionStyle: {
670
+ input: TextStyle;
671
+ validationErrorText: TextStyle;
672
+ wrapper: ViewStyle;
673
+ };
674
+ title: TextStyle;
675
+ };
676
+ scrollView: ViewStyle;
677
+ sendButton: ViewStyle;
678
+ suggestOption: {
679
+ title: TextStyle;
680
+ wrapper: ViewStyle;
681
+ };
682
+ };
683
+ fullResults: {
684
+ container: ViewStyle;
685
+ contentContainer: ViewStyle;
686
+ headerContainer: ViewStyle;
687
+ headerText: TextStyle;
688
+ };
689
+ inputDialog: {
690
+ button: TextStyle;
691
+ buttonContainer: ViewStyle;
692
+ container: ViewStyle;
693
+ input: TextStyle;
694
+ title: TextStyle;
695
+ transparentContainer: ViewStyle;
696
+ };
697
+ message: {
698
+ container: ViewStyle;
699
+ header: {
700
+ subtitle: TextStyle;
701
+ title: TextStyle;
702
+ };
703
+ option: {
704
+ container: ViewStyle;
705
+ progressBar: ViewStyle;
706
+ progressBarEmptyFill: string;
707
+ progressBarVotedFill: string;
708
+ progressBarWinnerFill: string;
709
+ text: TextStyle;
710
+ voteButtonActive: string;
711
+ voteButtonContainer: ViewStyle;
712
+ voteButtonInactive: string;
713
+ votesContainer: ViewStyle;
714
+ wrapper: ViewStyle;
715
+ };
716
+ optionsWrapper: ViewStyle;
717
+ };
718
+ modalHeader: {
719
+ container: ViewStyle;
720
+ title: TextStyle;
721
+ };
722
+ results: {
723
+ container: ViewStyle;
724
+ item: {
725
+ container: ViewStyle;
726
+ headerContainer: ViewStyle;
727
+ title: TextStyle;
728
+ voteCount: TextStyle;
729
+ };
730
+ scrollView: ViewStyle;
731
+ title: TextStyle;
732
+ vote: { container: ViewStyle; dateText: TextStyle; userName: TextStyle };
733
+ };
734
+ };
616
735
  progressControl: {
617
736
  container: ViewStyle;
618
737
  filledColor: ColorValue;
@@ -1242,6 +1361,120 @@ export const defaultTheme: Theme = {
1242
1361
  unSelectedIcon: {},
1243
1362
  },
1244
1363
  },
1364
+ poll: {
1365
+ allOptions: {
1366
+ listContainer: {},
1367
+ titleContainer: {},
1368
+ titleText: {},
1369
+ wrapper: {},
1370
+ },
1371
+ answersList: {
1372
+ buttonContainer: {},
1373
+ container: {},
1374
+ item: {
1375
+ answerText: {},
1376
+ container: {},
1377
+ infoContainer: {},
1378
+ userInfoContainer: {},
1379
+ },
1380
+ },
1381
+ button: { container: {}, text: {} },
1382
+ createContent: {
1383
+ addComment: {
1384
+ title: {},
1385
+ wrapper: {},
1386
+ },
1387
+ anonymousPoll: {
1388
+ title: {},
1389
+ wrapper: {},
1390
+ },
1391
+ headerContainer: {},
1392
+ maxVotes: {
1393
+ input: {},
1394
+ validationText: {},
1395
+ wrapper: {},
1396
+ },
1397
+ multipleAnswers: {
1398
+ row: {},
1399
+ title: {},
1400
+ wrapper: {},
1401
+ },
1402
+ name: {
1403
+ input: {},
1404
+ title: {},
1405
+ },
1406
+ pollOptions: {
1407
+ addOption: {
1408
+ text: {},
1409
+ wrapper: {},
1410
+ },
1411
+ container: {},
1412
+ optionStyle: {
1413
+ input: {},
1414
+ validationErrorText: {},
1415
+ wrapper: {},
1416
+ },
1417
+ title: {},
1418
+ },
1419
+ scrollView: {},
1420
+ sendButton: {},
1421
+ suggestOption: {
1422
+ title: {},
1423
+ wrapper: {},
1424
+ },
1425
+ },
1426
+ fullResults: {
1427
+ container: {},
1428
+ contentContainer: {},
1429
+ headerContainer: {},
1430
+ headerText: {},
1431
+ },
1432
+ inputDialog: {
1433
+ button: {},
1434
+ buttonContainer: {},
1435
+ container: {},
1436
+ input: {},
1437
+ title: {},
1438
+ transparentContainer: {},
1439
+ },
1440
+ message: {
1441
+ container: {},
1442
+ header: {
1443
+ subtitle: {},
1444
+ title: {},
1445
+ },
1446
+ option: {
1447
+ container: {},
1448
+ progressBar: {},
1449
+ progressBarEmptyFill: '',
1450
+ progressBarVotedFill: '',
1451
+ progressBarWinnerFill: '',
1452
+ text: {},
1453
+ voteButtonActive: '',
1454
+ voteButtonContainer: {},
1455
+ voteButtonInactive: '',
1456
+ votesContainer: {},
1457
+ wrapper: {},
1458
+ },
1459
+ optionsWrapper: {},
1460
+ },
1461
+ modalHeader: {
1462
+ container: {},
1463
+ title: {},
1464
+ },
1465
+ results: {
1466
+ container: {},
1467
+ item: {
1468
+ container: {},
1469
+ headerContainer: {},
1470
+ title: {},
1471
+ voteCount: {},
1472
+ },
1473
+ scrollView: {},
1474
+ title: {},
1475
+ vote: { container: {}, dateText: {}, userName: {} },
1476
+ },
1477
+ },
1245
1478
  progressControl: {
1246
1479
  container: {},
1247
1480
  filledColor: '',
package/src/i18n/en.json CHANGED
@@ -1,17 +1,23 @@
1
1
  {
2
2
  "1 Reply": "1 Reply",
3
3
  "1 Thread Reply": "1 Thread Reply",
4
+ "Add a comment": "Add a comment",
5
+ "Add an option": "Add an option",
4
6
  "Allow access to your Gallery": "Allow access to your Gallery",
5
7
  "Allow camera access in device settings": "Allow camera access in device settings",
6
8
  "Also send to channel": "Also send to channel",
9
+ "Anonymous": "Anonymous",
10
+ "Anonymous poll": "Anonymous poll",
7
11
  "Are you sure you want to permanently delete this message?": "Are you sure you want to permanently delete this message?",
8
12
  "Are you sure?": "Are you sure?",
13
+ "Ask a question": "Ask a question",
9
14
  "Ban User": "Ban User",
10
15
  "Block User": "Block User",
11
16
  "Cancel": "Cancel",
12
17
  "Cannot Flag Message": "Cannot Flag Message",
13
18
  "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Consider how your comment might make others feel and be sure to follow our Community Guidelines",
14
19
  "Copy Message": "Copy Message",
20
+ "Create Poll": "Create Poll",
15
21
  "Delete": "Delete",
16
22
  "Delete Message": "Delete Message",
17
23
  "Device camera is used to take photos or videos.": "Device camera is used to take photos or videos.",
@@ -22,6 +28,7 @@
22
28
  "Editing Message": "Editing Message",
23
29
  "Emoji matching": "Emoji matching",
24
30
  "Empty message...": "Empty message...",
31
+ "End Vote": "End Vote",
25
32
  "Error loading": "Error loading",
26
33
  "Error loading channel list...": "Error loading channel list...",
27
34
  "Error loading messages for this channel...": "Error loading messages for this channel...",
@@ -41,9 +48,11 @@
41
48
  "Loading threads...": "Loading threads...",
42
49
  "Loading...": "Loading...",
43
50
  "Maximum number of files reached": "Maximum number of files reached",
51
+ "Maximum votes per person": "Maximum votes per person",
44
52
  "Message Reactions": "Message Reactions",
45
53
  "Message deleted": "Message deleted",
46
54
  "Message flagged": "Message flagged",
55
+ "Multiple answers": "Multiple answers",
47
56
  "Mute User": "Mute User",
48
57
  "No chats here yet…": "No chats here yet…",
49
58
  "No threads here yet": "No threads here yet",
@@ -52,6 +61,8 @@
52
61
  "Ok": "Ok",
53
62
  "Only visible to you": "Only visible to you",
54
63
  "Open Settings": "Open Settings",
64
+ "Option": "Option",
65
+ "Options": "Options",
55
66
  "Photo": "Photo",
56
67
  "Photos and Videos": "Photos and Videos",
57
68
  "Pin to Conversation": "Pin to Conversation",
@@ -59,28 +70,48 @@
59
70
  "Please allow Audio permissions in settings.": "Please allow Audio permissions in settings.",
60
71
  "Please enable access to your photos and videos so you can share them.": "Please enable access to your photos and videos so you can share them.",
61
72
  "Please select a channel first": "Please select a channel first",
73
+ "Poll Comments": "Poll Comments",
74
+ "Poll Options": "Poll Options",
75
+ "Poll Results": "Poll Results",
76
+ "Questions": "Questions",
62
77
  "Reconnecting...": "Reconnecting...",
63
78
  "Reply": "Reply",
64
79
  "Reply to Message": "Reply to Message",
65
80
  "Resend": "Resend",
81
+ "SEND": "SEND",
66
82
  "Search GIFs": "Search GIFs",
83
+ "See all {{count}} options_one": "See all {{count}} options",
84
+ "See all {{count}} options_other": "See all {{count}} options",
67
85
  "Select More Photos": "Select More Photos",
86
+ "Select one": "Select one",
87
+ "Select one or more": "Select one or more",
88
+ "Select up to {{count}}_one": "Select up to {{count}}",
89
+ "Select up to {{count}}_other": "Select up to {{count}}",
68
90
  "Send Anyway": "Send Anyway",
69
91
  "Send a message": "Send a message",
70
92
  "Sending links is not allowed in this conversation": "Sending links is not allowed in this conversation",
93
+ "Show All": "Show All",
71
94
  "Slow mode ON": "Slow mode ON",
95
+ "Suggest an option": "Suggest an option",
72
96
  "The message has been reported to a moderator.": "The message has been reported to a moderator.",
73
97
  "The source message was deleted": "The source message was deleted",
98
+ "This is already an option": "This is already an option",
74
99
  "This reply was deleted": "This reply was deleted",
75
100
  "Thread Reply": "Thread Reply",
101
+ "Type a number from 2 to 10": "Type a number from 2 to 10",
76
102
  "Unban User": "Unban User",
77
103
  "Unblock User": "Unblock User",
78
104
  "Unknown User": "Unknown User",
79
105
  "Unmute User": "Unmute User",
80
106
  "Unpin from Conversation": "Unpin from Conversation",
81
107
  "Unread Messages": "Unread Messages",
108
+ "Update your comment": "Update your comment",
82
109
  "Video": "Video",
110
+ "View Results": "View Results",
111
+ "View {{count}} comments_one": "View {{count}} comment",
112
+ "View {{count}} comments_other": "View {{count}} comments",
83
113
  "Voice message": "Voice message",
114
+ "Vote ended": "Vote ended",
84
115
  "You": "You",
85
116
  "You can't send messages in this channel": "You can't send messages in this channel",
86
117
  "replied to": "replied to",
@@ -90,6 +121,7 @@
90
121
  "timestamp/MessageEditedTimestamp": "{{ timestamp | timestampFormatter(calendar: true) }}",
91
122
  "timestamp/MessageSystem": "{{ timestamp | timestampFormatter(calendar: true) }}",
92
123
  "timestamp/MessageTimestamp": "{{ timestamp | timestampFormatter(format: LT) }}",
124
+ "timestamp/PollVote": "{{ timestamp | timestampFormatter(calendar: true; calendarFormats: {\"lastDay\":\"[Yesterday]\", \"lastWeek\":\"dddd\", \"nextDay\":\"[Tomorrow]\", \"nextWeek\":\"dddd [at] LT\", \"sameDay\":\"LT\", \"sameElse\":\"L\"}) }}",
93
125
  "timestamp/StickyHeader": "{{ timestamp | timestampFormatter(calendar: true) }}",
94
126
  "timestamp/ThreadListItem": "{{ timestamp | timestampFormatter(calendar: true; calendarFormats: {\"lastDay\":\"[Yesterday]\", \"lastWeek\":\"dddd\", \"nextDay\":\"[Tomorrow]\", \"nextWeek\":\"dddd [at] LT\", \"sameDay\":\"LT\", \"sameElse\":\"L\"}) }}",
95
127
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} and {{ nonSelfUserLength }} more are typing",
@@ -97,5 +129,7 @@
97
129
  "{{ replyCount }} Replies": "{{ replyCount }} Replies",
98
130
  "{{ replyCount }} Thread Replies": "{{ replyCount }} Thread Replies",
99
131
  "{{ user }} is typing": "{{ user }} is typing",
132
+ "{{count}} votes_one": "{{count}} vote",
133
+ "{{count}} votes_other": "{{count}} votes",
100
134
  "🏙 Attachment...": "🏙 Attachment..."
101
135
  }
package/src/i18n/es.json CHANGED
@@ -1,17 +1,23 @@
1
1
  {
2
2
  "1 Reply": "1 respuesta",
3
3
  "1 Thread Reply": "1 respuesta de hilo",
4
+ "Add a comment": "Agregar un comentario",
5
+ "Add an option": "Agregar una opción",
4
6
  "Allow access to your Gallery": "Permitir acceso a tu galería",
5
7
  "Allow camera access in device settings": "Permitir el acceso a la cámara en la configuración del dispositivo",
6
8
  "Also send to channel": "También enviar al canal",
9
+ "Anonymous": "Anónimo",
10
+ "Anonymous poll": "Encuesta anónima",
7
11
  "Are you sure you want to permanently delete this message?": "¿Estás seguro de que deseas eliminar permanentemente este mensaje?",
8
12
  "Are you sure?": "¿Estás seguro?",
13
+ "Ask a question": "Hacer una pregunta",
9
14
  "Ban User": "Bloquear Usuario",
10
15
  "Block User": "Bloquear usuario",
11
16
  "Cancel": "Cancelar",
12
17
  "Cannot Flag Message": "No se puede reportar el mensaje",
13
18
  "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Considera cómo tu comentario podría hacer sentir a los demás y asegúrate de seguir nuestras Normas de la Comunidad",
14
19
  "Copy Message": "Copiar mensaje",
20
+ "Create Poll": "Crear encuesta",
15
21
  "Delete": "Eliminar",
16
22
  "Delete Message": "Eliminar mensaje",
17
23
  "Device camera is used to take photos or videos.": "La cámara del dispositivo se utiliza para tomar fotografías o vídeos.",
@@ -22,6 +28,7 @@
22
28
  "Editing Message": "Editando mensaje",
23
29
  "Emoji matching": "Coincidencia de emoji",
24
30
  "Empty message...": "Mensaje vacío...",
31
+ "End Vote": "Finalizar votación",
25
32
  "Error loading": "Error al cargar",
26
33
  "Error loading channel list...": "Error al cargar la lista de canales...",
27
34
  "Error loading messages for this channel...": "Error al cargar los mensajes de este canal...",
@@ -41,9 +48,11 @@
41
48
  "Loading threads...": "Cargando hilos...",
42
49
  "Loading...": "Cargando...",
43
50
  "Maximum number of files reached": "Número máximo de archivos alcanzado",
51
+ "Maximum votes per person": "Máximo de votos por persona",
44
52
  "Message Reactions": "Reacciones al mensaje",
45
53
  "Message deleted": "Mensaje eliminado",
46
54
  "Message flagged": "Mensaje reportado",
55
+ "Multiple answers": "Respuestas múltiples",
47
56
  "Mute User": "Silenciar usuario",
48
57
  "No chats here yet…": "No hay chats aquí todavía...",
49
58
  "No threads here yet": "Aún no hay hilos aquí",
@@ -52,6 +61,8 @@
52
61
  "Ok": "Aceptar",
53
62
  "Only visible to you": "Solo visible para ti",
54
63
  "Open Settings": "Configuración abierta",
64
+ "Option": "Opción",
65
+ "Options": "Opciones",
55
66
  "Photo": "Foto",
56
67
  "Photos and Videos": "Fotos y videos",
57
68
  "Pin to Conversation": "Fijar a la conversación",
@@ -59,28 +70,51 @@
59
70
  "Please allow Audio permissions in settings.": "Por favor, permita los permisos de audio en la configuración.",
60
71
  "Please enable access to your photos and videos so you can share them.": "Por favor, habilita el acceso a tus fotos y videos para poder compartirlos.",
61
72
  "Please select a channel first": "Por favor, selecciona primero un canal",
73
+ "Poll Comments": "Comentarios de la encuesta",
74
+ "Poll Options": "Opciones de la encuesta",
75
+ "Poll Results": "Resultados de la encuesta",
76
+ "Questions": "Preguntas",
62
77
  "Reconnecting...": "Reconectando...",
63
78
  "Reply": "Responder",
64
79
  "Reply to Message": "Responder al mensaje",
65
80
  "Resend": "Reenviar",
81
+ "SEND": "ENVIAR",
66
82
  "Search GIFs": "Buscar GIFs",
83
+ "See all {{count}} options_many": "Ver las {{count}} opciones",
84
+ "See all {{count}} options_one": "Ver las {{count}} opciones",
85
+ "See all {{count}} options_other": "Ver las {{count}} opciones",
67
86
  "Select More Photos": "Seleccionar más fotos",
87
+ "Select one": "Seleccionar una",
88
+ "Select one or more": "Seleccionar una o más",
89
+ "Select up to {{count}}_many": "Selecciona hasta {{count}}",
90
+ "Select up to {{count}}_one": "Selecciona hasta {{count}}",
91
+ "Select up to {{count}}_other": "Selecciona hasta {{count}}",
68
92
  "Send Anyway": "Enviar de todos modos",
69
93
  "Send a message": "Enviar un mensaje",
70
94
  "Sending links is not allowed in this conversation": "No está permitido enviar enlaces en esta conversación",
95
+ "Show All": "Mostrar todo",
71
96
  "Slow mode ON": "Modo lento ACTIVADO",
97
+ "Suggest an option": "Sugerir una opción",
72
98
  "The message has been reported to a moderator.": "El mensaje ha sido reportado a un moderador.",
73
99
  "The source message was deleted": "El mensaje original fue eliminado",
100
+ "This is already an option": "Esto ya es una opción",
74
101
  "This reply was deleted": "Esta respuesta fue eliminada",
75
102
  "Thread Reply": "Respuesta de hilo",
103
+ "Type a number from 2 to 10": "Escribe un número de 2 a 10",
76
104
  "Unban User": "Desbloquear usuario",
77
105
  "Unblock User": "Usuario desconocido",
78
106
  "Unknown User": "Desbloquear Usuario",
79
107
  "Unmute User": "Activar sonido del usuario",
80
108
  "Unpin from Conversation": "Desmarcar de la conversación",
81
109
  "Unread Messages": "Mensajes no leídos",
110
+ "Update your comment": "Actualizar tu comentario",
82
111
  "Video": "Video",
112
+ "View Results": "Ver resultados",
113
+ "View {{count}} comments_many": "Ver {{count}} comentarios",
114
+ "View {{count}} comments_one": "Ver {{count}} comentario",
115
+ "View {{count}} comments_other": "Ver {{count}} comentarios",
83
116
  "Voice message": "Mensaje de voz",
117
+ "Vote ended": "Votación finalizada",
84
118
  "You": "Tú",
85
119
  "You can't send messages in this channel": "No puedes enviar mensajes en este canal",
86
120
  "replied to": "respondió a",
@@ -90,6 +124,7 @@
90
124
  "timestamp/MessageEditedTimestamp": "{{ timestamp | timestampFormatter(calendar: true) }}",
91
125
  "timestamp/MessageSystem": "{{ timestamp | timestampFormatter(calendar: true) }}",
92
126
  "timestamp/MessageTimestamp": "{{ timestamp | timestampFormatter(format: LT) }}",
127
+ "timestamp/PollVote": "{{ timestamp | timestampFormatter(calendar: true; calendarFormats: {\"lastDay\":\"[Ayer]\", \"lastWeek\":\"dddd\", \"nextDay\":\"[Mañana]\", \"nextWeek\":\"dddd [a las] LT\", \"sameDay\":\"LT\", \"sameElse\":\"L\"}) }}",
93
128
  "timestamp/StickyHeader": "{{ timestamp | timestampFormatter(calendar: true) }}",
94
129
  "timestamp/ThreadListItem": "{{ timestamp | timestampFormatter(calendar: true; calendarFormats: {\"lastDay\":\"[Ayer]\", \"lastWeek\":\"dddd\", \"nextDay\":\"[Mañana]\", \"nextWeek\":\"dddd [a las] LT\", \"sameDay\":\"LT\", \"sameElse\":\"L\"}) }}",
95
130
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} y {{ nonSelfUserLength }} más están escribiendo",
@@ -97,5 +132,8 @@
97
132
  "{{ replyCount }} Replies": "{{ replyCount }} Respuestas",
98
133
  "{{ replyCount }} Thread Replies": "{{ replyCount }} respuestas de hilo",
99
134
  "{{ user }} is typing": "{{ user }} está escribiendo",
135
+ "{{count}} votes_many": "{{count}} votos",
136
+ "{{count}} votes_one": "{{count}} voto",
137
+ "{{count}} votes_other": "{{count}} votos",
100
138
  "🏙 Attachment...": "🏙 Adjunto..."
101
139
  }