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.
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerSelectionBar.js +27 -0
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerSelectionBar.js.map +1 -1
- package/lib/commonjs/components/Channel/Channel.js +17 -4
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js +7 -1
- package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js +5 -1
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js +46 -3
- package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
- package/lib/commonjs/components/Chat/Chat.js +2 -0
- package/lib/commonjs/components/Chat/Chat.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/handleEventToSyncDB.js +10 -0
- package/lib/commonjs/components/Chat/hooks/handleEventToSyncDB.js.map +1 -1
- package/lib/commonjs/components/Message/Message.js +13 -0
- package/lib/commonjs/components/Message/Message.js.map +1 -1
- package/lib/commonjs/components/Message/MessageSimple/MessageContent.js +31 -15
- package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
- package/lib/commonjs/components/MessageInput/MessageInput.js +44 -1
- package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/commonjs/components/MessageInput/components/NativeAttachmentPicker.js +18 -1
- package/lib/commonjs/components/MessageInput/components/NativeAttachmentPicker.js.map +1 -1
- package/lib/commonjs/components/MessageOverlay/MessageOverlay.js +10 -0
- package/lib/commonjs/components/MessageOverlay/MessageOverlay.js.map +1 -1
- package/lib/commonjs/components/Poll/CreatePollContent.js +386 -0
- package/lib/commonjs/components/Poll/CreatePollContent.js.map +1 -0
- package/lib/commonjs/components/Poll/Poll.js +112 -0
- package/lib/commonjs/components/Poll/Poll.js.map +1 -0
- package/lib/commonjs/components/Poll/components/Button.js +513 -0
- package/lib/commonjs/components/Poll/components/Button.js.map +1 -0
- package/lib/commonjs/components/Poll/components/CreatePollIcon.js +23 -0
- package/lib/commonjs/components/Poll/components/CreatePollIcon.js.map +1 -0
- package/lib/commonjs/components/Poll/components/CreatePollOptions.js +281 -0
- package/lib/commonjs/components/Poll/components/CreatePollOptions.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollAnswersList.js +154 -0
- package/lib/commonjs/components/Poll/components/PollAnswersList.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollInputDialog.js +139 -0
- package/lib/commonjs/components/Poll/components/PollInputDialog.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollModalHeader.js +60 -0
- package/lib/commonjs/components/Poll/components/PollModalHeader.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollOption.js +209 -0
- package/lib/commonjs/components/Poll/components/PollOption.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollResults/PollOptionFullResults.js +123 -0
- package/lib/commonjs/components/Poll/components/PollResults/PollOptionFullResults.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollResults/PollResultItem.js +152 -0
- package/lib/commonjs/components/Poll/components/PollResults/PollResultItem.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollResults/PollResults.js +101 -0
- package/lib/commonjs/components/Poll/components/PollResults/PollResults.js.map +1 -0
- package/lib/commonjs/components/Poll/components/PollResults/index.js +37 -0
- package/lib/commonjs/components/Poll/components/PollResults/index.js.map +1 -0
- package/lib/commonjs/components/Poll/components/index.js +92 -0
- package/lib/commonjs/components/Poll/components/index.js.map +1 -0
- package/lib/commonjs/components/Poll/hooks/usePollAnswersPagination.js +129 -0
- package/lib/commonjs/components/Poll/hooks/usePollAnswersPagination.js.map +1 -0
- package/lib/commonjs/components/Poll/hooks/usePollOptionVotesPagination.js +140 -0
- package/lib/commonjs/components/Poll/hooks/usePollOptionVotesPagination.js.map +1 -0
- package/lib/commonjs/components/Poll/hooks/usePollState.js +103 -0
- package/lib/commonjs/components/Poll/hooks/usePollState.js.map +1 -0
- package/lib/commonjs/components/Poll/hooks/usePollStateStore.js +13 -0
- package/lib/commonjs/components/Poll/hooks/usePollStateStore.js.map +1 -0
- package/lib/commonjs/components/Poll/index.js +81 -0
- package/lib/commonjs/components/Poll/index.js.map +1 -0
- package/lib/commonjs/components/Reply/Reply.js +1 -1
- package/lib/commonjs/components/Reply/Reply.js.map +1 -1
- package/lib/commonjs/components/index.js +11 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
- package/lib/commonjs/contexts/index.js +11 -0
- package/lib/commonjs/contexts/index.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +26 -3
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +9 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -1
- package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/commonjs/contexts/overlayContext/OverlayContext.js.map +1 -1
- package/lib/commonjs/contexts/overlayContext/OverlayProvider.js +4 -0
- package/lib/commonjs/contexts/overlayContext/OverlayProvider.js.map +1 -1
- package/lib/commonjs/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js +3 -0
- package/lib/commonjs/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js.map +1 -1
- package/lib/commonjs/contexts/pollContext/createPollContentContext.js +33 -0
- package/lib/commonjs/contexts/pollContext/createPollContentContext.js.map +1 -0
- package/lib/commonjs/contexts/pollContext/index.js +26 -0
- package/lib/commonjs/contexts/pollContext/index.js.map +1 -0
- package/lib/commonjs/contexts/pollContext/pollContext.js +33 -0
- package/lib/commonjs/contexts/pollContext/pollContext.js.map +1 -0
- package/lib/commonjs/contexts/themeContext/utils/theme.js +126 -0
- package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/commonjs/i18n/en.json +34 -0
- package/lib/commonjs/i18n/es.json +38 -0
- package/lib/commonjs/i18n/fr.json +38 -0
- package/lib/commonjs/i18n/he.json +38 -0
- package/lib/commonjs/i18n/hi.json +34 -0
- package/lib/commonjs/i18n/it.json +38 -0
- package/lib/commonjs/i18n/ja.json +34 -0
- package/lib/commonjs/i18n/ko.json +34 -0
- package/lib/commonjs/i18n/nl.json +34 -0
- package/lib/commonjs/i18n/pt-br.json +38 -0
- package/lib/commonjs/i18n/ru.json +42 -0
- package/lib/commonjs/i18n/tr.json +34 -0
- package/lib/commonjs/icons/Back.js +19 -0
- package/lib/commonjs/icons/Back.js.map +1 -0
- package/lib/commonjs/icons/DragHandle.js +21 -0
- package/lib/commonjs/icons/DragHandle.js.map +1 -0
- package/lib/commonjs/icons/PollThumbnail.js +19 -0
- package/lib/commonjs/icons/PollThumbnail.js.map +1 -0
- package/lib/commonjs/icons/SendPoll.js +19 -0
- package/lib/commonjs/icons/SendPoll.js.map +1 -0
- package/lib/commonjs/icons/index.js +44 -0
- package/lib/commonjs/icons/index.js.map +1 -1
- package/lib/commonjs/store/QuickSqliteClient.js +1 -1
- package/lib/commonjs/store/apis/index.js +11 -0
- package/lib/commonjs/store/apis/index.js.map +1 -1
- package/lib/commonjs/store/apis/updatePollMessage.js +50 -0
- package/lib/commonjs/store/apis/updatePollMessage.js.map +1 -0
- package/lib/commonjs/store/mappers/mapMessageToStorable.js +5 -1
- package/lib/commonjs/store/mappers/mapMessageToStorable.js.map +1 -1
- package/lib/commonjs/store/mappers/mapStorableToMessage.js +5 -1
- package/lib/commonjs/store/mappers/mapStorableToMessage.js.map +1 -1
- package/lib/commonjs/store/schema.js +2 -0
- package/lib/commonjs/store/schema.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerSelectionBar.js +27 -0
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerSelectionBar.js.map +1 -1
- package/lib/module/components/Channel/Channel.js +17 -4
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js +7 -1
- package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js +5 -1
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js +46 -3
- package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
- package/lib/module/components/Chat/Chat.js +2 -0
- package/lib/module/components/Chat/Chat.js.map +1 -1
- package/lib/module/components/Chat/hooks/handleEventToSyncDB.js +10 -0
- package/lib/module/components/Chat/hooks/handleEventToSyncDB.js.map +1 -1
- package/lib/module/components/Message/Message.js +13 -0
- package/lib/module/components/Message/Message.js.map +1 -1
- package/lib/module/components/Message/MessageSimple/MessageContent.js +31 -15
- package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
- package/lib/module/components/MessageInput/MessageInput.js +44 -1
- package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/module/components/MessageInput/components/NativeAttachmentPicker.js +18 -1
- package/lib/module/components/MessageInput/components/NativeAttachmentPicker.js.map +1 -1
- package/lib/module/components/MessageOverlay/MessageOverlay.js +10 -0
- package/lib/module/components/MessageOverlay/MessageOverlay.js.map +1 -1
- package/lib/module/components/Poll/CreatePollContent.js +386 -0
- package/lib/module/components/Poll/CreatePollContent.js.map +1 -0
- package/lib/module/components/Poll/Poll.js +112 -0
- package/lib/module/components/Poll/Poll.js.map +1 -0
- package/lib/module/components/Poll/components/Button.js +513 -0
- package/lib/module/components/Poll/components/Button.js.map +1 -0
- package/lib/module/components/Poll/components/CreatePollIcon.js +23 -0
- package/lib/module/components/Poll/components/CreatePollIcon.js.map +1 -0
- package/lib/module/components/Poll/components/CreatePollOptions.js +281 -0
- package/lib/module/components/Poll/components/CreatePollOptions.js.map +1 -0
- package/lib/module/components/Poll/components/PollAnswersList.js +154 -0
- package/lib/module/components/Poll/components/PollAnswersList.js.map +1 -0
- package/lib/module/components/Poll/components/PollInputDialog.js +139 -0
- package/lib/module/components/Poll/components/PollInputDialog.js.map +1 -0
- package/lib/module/components/Poll/components/PollModalHeader.js +60 -0
- package/lib/module/components/Poll/components/PollModalHeader.js.map +1 -0
- package/lib/module/components/Poll/components/PollOption.js +209 -0
- package/lib/module/components/Poll/components/PollOption.js.map +1 -0
- package/lib/module/components/Poll/components/PollResults/PollOptionFullResults.js +123 -0
- package/lib/module/components/Poll/components/PollResults/PollOptionFullResults.js.map +1 -0
- package/lib/module/components/Poll/components/PollResults/PollResultItem.js +152 -0
- package/lib/module/components/Poll/components/PollResults/PollResultItem.js.map +1 -0
- package/lib/module/components/Poll/components/PollResults/PollResults.js +101 -0
- package/lib/module/components/Poll/components/PollResults/PollResults.js.map +1 -0
- package/lib/module/components/Poll/components/PollResults/index.js +37 -0
- package/lib/module/components/Poll/components/PollResults/index.js.map +1 -0
- package/lib/module/components/Poll/components/index.js +92 -0
- package/lib/module/components/Poll/components/index.js.map +1 -0
- package/lib/module/components/Poll/hooks/usePollAnswersPagination.js +129 -0
- package/lib/module/components/Poll/hooks/usePollAnswersPagination.js.map +1 -0
- package/lib/module/components/Poll/hooks/usePollOptionVotesPagination.js +140 -0
- package/lib/module/components/Poll/hooks/usePollOptionVotesPagination.js.map +1 -0
- package/lib/module/components/Poll/hooks/usePollState.js +103 -0
- package/lib/module/components/Poll/hooks/usePollState.js.map +1 -0
- package/lib/module/components/Poll/hooks/usePollStateStore.js +13 -0
- package/lib/module/components/Poll/hooks/usePollStateStore.js.map +1 -0
- package/lib/module/components/Poll/index.js +81 -0
- package/lib/module/components/Poll/index.js.map +1 -0
- package/lib/module/components/Reply/Reply.js +1 -1
- package/lib/module/components/Reply/Reply.js.map +1 -1
- package/lib/module/components/index.js +11 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/contexts/attachmentPickerContext/AttachmentPickerContext.js.map +1 -1
- package/lib/module/contexts/index.js +11 -0
- package/lib/module/contexts/index.js.map +1 -1
- package/lib/module/contexts/messageInputContext/MessageInputContext.js +26 -3
- package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +9 -1
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -1
- package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
- package/lib/module/contexts/overlayContext/OverlayContext.js.map +1 -1
- package/lib/module/contexts/overlayContext/OverlayProvider.js +4 -0
- package/lib/module/contexts/overlayContext/OverlayProvider.js.map +1 -1
- package/lib/module/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js +3 -0
- package/lib/module/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js.map +1 -1
- package/lib/module/contexts/pollContext/createPollContentContext.js +33 -0
- package/lib/module/contexts/pollContext/createPollContentContext.js.map +1 -0
- package/lib/module/contexts/pollContext/index.js +26 -0
- package/lib/module/contexts/pollContext/index.js.map +1 -0
- package/lib/module/contexts/pollContext/pollContext.js +33 -0
- package/lib/module/contexts/pollContext/pollContext.js.map +1 -0
- package/lib/module/contexts/themeContext/utils/theme.js +126 -0
- package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/module/i18n/en.json +34 -0
- package/lib/module/i18n/es.json +38 -0
- package/lib/module/i18n/fr.json +38 -0
- package/lib/module/i18n/he.json +38 -0
- package/lib/module/i18n/hi.json +34 -0
- package/lib/module/i18n/it.json +38 -0
- package/lib/module/i18n/ja.json +34 -0
- package/lib/module/i18n/ko.json +34 -0
- package/lib/module/i18n/nl.json +34 -0
- package/lib/module/i18n/pt-br.json +38 -0
- package/lib/module/i18n/ru.json +42 -0
- package/lib/module/i18n/tr.json +34 -0
- package/lib/module/icons/Back.js +19 -0
- package/lib/module/icons/Back.js.map +1 -0
- package/lib/module/icons/DragHandle.js +21 -0
- package/lib/module/icons/DragHandle.js.map +1 -0
- package/lib/module/icons/PollThumbnail.js +19 -0
- package/lib/module/icons/PollThumbnail.js.map +1 -0
- package/lib/module/icons/SendPoll.js +19 -0
- package/lib/module/icons/SendPoll.js.map +1 -0
- package/lib/module/icons/index.js +44 -0
- package/lib/module/icons/index.js.map +1 -1
- package/lib/module/store/QuickSqliteClient.js +1 -1
- package/lib/module/store/apis/index.js +11 -0
- package/lib/module/store/apis/index.js.map +1 -1
- package/lib/module/store/apis/updatePollMessage.js +50 -0
- package/lib/module/store/apis/updatePollMessage.js.map +1 -0
- package/lib/module/store/mappers/mapMessageToStorable.js +5 -1
- package/lib/module/store/mappers/mapMessageToStorable.js.map +1 -1
- package/lib/module/store/mappers/mapStorableToMessage.js +5 -1
- package/lib/module/store/mappers/mapStorableToMessage.js.map +1 -1
- package/lib/module/store/schema.js +2 -0
- package/lib/module/store/schema.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerSelectionBar.d.ts.map +1 -1
- package/lib/typescript/components/Channel/Channel.d.ts +2 -2
- package/lib/typescript/components/Channel/Channel.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/hooks/useLatestMessagePreview.d.ts +5 -1
- package/lib/typescript/components/ChannelPreview/hooks/useLatestMessagePreview.d.ts.map +1 -1
- package/lib/typescript/components/Chat/Chat.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/handleEventToSyncDB.d.ts.map +1 -1
- package/lib/typescript/components/Message/Message.d.ts +1 -1
- package/lib/typescript/components/Message/Message.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/MessageInput.d.ts +1 -1
- package/lib/typescript/components/MessageInput/MessageInput.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/components/NativeAttachmentPicker.d.ts.map +1 -1
- package/lib/typescript/components/MessageOverlay/MessageOverlay.d.ts.map +1 -1
- package/lib/typescript/components/Poll/CreatePollContent.d.ts +6 -0
- package/lib/typescript/components/Poll/CreatePollContent.d.ts.map +1 -0
- package/lib/typescript/components/Poll/Poll.d.ts +13 -0
- package/lib/typescript/components/Poll/Poll.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/Button.d.ts +35 -0
- package/lib/typescript/components/Poll/components/Button.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/CreatePollIcon.d.ts +3 -0
- package/lib/typescript/components/Poll/components/CreatePollIcon.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/CreatePollOptions.d.ts +34 -0
- package/lib/typescript/components/Poll/components/CreatePollOptions.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollAnswersList.d.ts +15 -0
- package/lib/typescript/components/Poll/components/PollAnswersList.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollInputDialog.d.ts +10 -0
- package/lib/typescript/components/Poll/components/PollInputDialog.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollModalHeader.d.ts +7 -0
- package/lib/typescript/components/Poll/components/PollModalHeader.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollOption.d.ts +16 -0
- package/lib/typescript/components/Poll/components/PollOption.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollResults/PollOptionFullResults.d.ts +18 -0
- package/lib/typescript/components/Poll/components/PollResults/PollOptionFullResults.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollResults/PollResultItem.d.ts +9 -0
- package/lib/typescript/components/Poll/components/PollResults/PollResultItem.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollResults/PollResults.d.ts +10 -0
- package/lib/typescript/components/Poll/components/PollResults/PollResults.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/PollResults/index.d.ts +4 -0
- package/lib/typescript/components/Poll/components/PollResults/index.d.ts.map +1 -0
- package/lib/typescript/components/Poll/components/index.d.ts +9 -0
- package/lib/typescript/components/Poll/components/index.d.ts.map +1 -0
- package/lib/typescript/components/Poll/hooks/usePollAnswersPagination.d.ts +29 -0
- package/lib/typescript/components/Poll/hooks/usePollAnswersPagination.d.ts.map +1 -0
- package/lib/typescript/components/Poll/hooks/usePollOptionVotesPagination.d.ts +32 -0
- package/lib/typescript/components/Poll/hooks/usePollOptionVotesPagination.d.ts.map +1 -0
- package/lib/typescript/components/Poll/hooks/usePollState.d.ts +26 -0
- package/lib/typescript/components/Poll/hooks/usePollState.d.ts.map +1 -0
- package/lib/typescript/components/Poll/hooks/usePollStateStore.d.ts +3 -0
- package/lib/typescript/components/Poll/hooks/usePollStateStore.d.ts.map +1 -0
- package/lib/typescript/components/Poll/index.d.ts +8 -0
- package/lib/typescript/components/Poll/index.d.ts.map +1 -0
- package/lib/typescript/components/Reply/Reply.d.ts.map +1 -1
- package/lib/typescript/components/index.d.ts +1 -0
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts +7 -1
- package/lib/typescript/contexts/attachmentPickerContext/AttachmentPickerContext.d.ts.map +1 -1
- package/lib/typescript/contexts/index.d.ts +1 -0
- package/lib/typescript/contexts/index.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +11 -2
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts +1 -1
- package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageOverlayContext/MessageOverlayContext.d.ts +2 -1
- package/lib/typescript/contexts/messageOverlayContext/MessageOverlayContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +9 -1
- package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts.map +1 -1
- package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts +1 -1
- package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts.map +1 -1
- package/lib/typescript/contexts/overlayContext/OverlayProvider.d.ts.map +1 -1
- package/lib/typescript/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.d.ts +3 -0
- package/lib/typescript/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.d.ts.map +1 -1
- package/lib/typescript/contexts/pollContext/createPollContentContext.d.ts +20 -0
- package/lib/typescript/contexts/pollContext/createPollContentContext.d.ts.map +1 -0
- package/lib/typescript/contexts/pollContext/index.d.ts +3 -0
- package/lib/typescript/contexts/pollContext/index.d.ts.map +1 -0
- package/lib/typescript/contexts/pollContext/pollContext.d.ts +14 -0
- package/lib/typescript/contexts/pollContext/pollContext.d.ts.map +1 -0
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts +126 -0
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts.map +1 -1
- package/lib/typescript/i18n/en.json +34 -0
- package/lib/typescript/i18n/es.json +38 -0
- package/lib/typescript/i18n/fr.json +38 -0
- package/lib/typescript/i18n/he.json +38 -0
- package/lib/typescript/i18n/hi.json +34 -0
- package/lib/typescript/i18n/it.json +38 -0
- package/lib/typescript/i18n/ja.json +34 -0
- package/lib/typescript/i18n/ko.json +34 -0
- package/lib/typescript/i18n/nl.json +34 -0
- package/lib/typescript/i18n/pt-br.json +38 -0
- package/lib/typescript/i18n/ru.json +42 -0
- package/lib/typescript/i18n/tr.json +34 -0
- package/lib/typescript/icons/Back.d.ts +4 -0
- package/lib/typescript/icons/Back.d.ts.map +1 -0
- package/lib/typescript/icons/DragHandle.d.ts +4 -0
- package/lib/typescript/icons/DragHandle.d.ts.map +1 -0
- package/lib/typescript/icons/PollThumbnail.d.ts +4 -0
- package/lib/typescript/icons/PollThumbnail.d.ts.map +1 -0
- package/lib/typescript/icons/SendPoll.d.ts +4 -0
- package/lib/typescript/icons/SendPoll.d.ts.map +1 -0
- package/lib/typescript/icons/index.d.ts +4 -0
- package/lib/typescript/icons/index.d.ts.map +1 -1
- package/lib/typescript/store/apis/index.d.ts +1 -0
- package/lib/typescript/store/apis/index.d.ts.map +1 -1
- package/lib/typescript/store/apis/updatePollMessage.d.ts +7 -0
- package/lib/typescript/store/apis/updatePollMessage.d.ts.map +1 -0
- package/lib/typescript/store/mappers/mapMessageToStorable.d.ts.map +1 -1
- package/lib/typescript/store/mappers/mapStorableToMessage.d.ts.map +1 -1
- package/lib/typescript/store/schema.d.ts +2 -0
- package/lib/typescript/store/schema.d.ts.map +1 -1
- package/lib/typescript/utils/i18n/Streami18n.d.ts +34 -0
- package/lib/typescript/utils/i18n/Streami18n.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/components/AttachmentPicker/components/AttachmentPickerSelectionBar.tsx +35 -2
- package/src/components/Channel/Channel.tsx +27 -4
- package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts +16 -1
- package/src/components/Channel/hooks/useCreateMessagesContext.ts +5 -0
- package/src/components/ChannelPreview/hooks/useLatestMessagePreview.ts +63 -4
- package/src/components/Chat/Chat.tsx +2 -0
- package/src/components/Chat/hooks/handleEventToSyncDB.ts +19 -0
- package/src/components/Message/Message.tsx +15 -1
- package/src/components/Message/MessageSimple/MessageContent.tsx +16 -0
- package/src/components/MessageInput/MessageInput.tsx +58 -1
- package/src/components/MessageInput/__tests__/MessageInput.test.js +2 -0
- package/src/components/MessageInput/components/NativeAttachmentPicker.tsx +29 -2
- package/src/components/MessageOverlay/MessageOverlay.tsx +10 -0
- package/src/components/Poll/CreatePollContent.tsx +299 -0
- package/src/components/Poll/Poll.tsx +126 -0
- package/src/components/Poll/components/Button.tsx +465 -0
- package/src/components/Poll/components/CreatePollIcon.tsx +14 -0
- package/src/components/Poll/components/CreatePollOptions.tsx +351 -0
- package/src/components/Poll/components/PollAnswersList.tsx +134 -0
- package/src/components/Poll/components/PollInputDialog.tsx +117 -0
- package/src/components/Poll/components/PollModalHeader.tsx +42 -0
- package/src/components/Poll/components/PollOption.tsx +172 -0
- package/src/components/Poll/components/PollResults/PollOptionFullResults.tsx +108 -0
- package/src/components/Poll/components/PollResults/PollResultItem.tsx +115 -0
- package/src/components/Poll/components/PollResults/PollResults.tsx +79 -0
- package/src/components/Poll/components/PollResults/index.ts +3 -0
- package/src/components/Poll/components/index.ts +8 -0
- package/src/components/Poll/hooks/usePollAnswersPagination.ts +109 -0
- package/src/components/Poll/hooks/usePollOptionVotesPagination.ts +119 -0
- package/src/components/Poll/hooks/usePollState.ts +122 -0
- package/src/components/Poll/hooks/usePollStateStore.ts +13 -0
- package/src/components/Poll/index.ts +10 -0
- package/src/components/Reply/Reply.tsx +2 -0
- package/src/components/index.ts +1 -0
- package/src/contexts/attachmentPickerContext/AttachmentPickerContext.tsx +12 -1
- package/src/contexts/index.ts +1 -0
- package/src/contexts/messageInputContext/MessageInputContext.tsx +38 -10
- package/src/contexts/messageInputContext/__tests__/pickFile.test.tsx +4 -2
- package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +9 -0
- package/src/contexts/messageOverlayContext/MessageOverlayContext.tsx +2 -1
- package/src/contexts/messagesContext/MessagesContext.tsx +15 -2
- package/src/contexts/overlayContext/OverlayContext.tsx +1 -0
- package/src/contexts/overlayContext/OverlayProvider.tsx +3 -0
- package/src/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.tsx +3 -0
- package/src/contexts/pollContext/createPollContentContext.tsx +49 -0
- package/src/contexts/pollContext/index.ts +2 -0
- package/src/contexts/pollContext/pollContext.tsx +43 -0
- package/src/contexts/themeContext/utils/theme.ts +233 -0
- package/src/i18n/en.json +34 -0
- package/src/i18n/es.json +38 -0
- package/src/i18n/fr.json +38 -0
- package/src/i18n/he.json +38 -0
- package/src/i18n/hi.json +34 -0
- package/src/i18n/it.json +38 -0
- package/src/i18n/ja.json +34 -0
- package/src/i18n/ko.json +34 -0
- package/src/i18n/nl.json +34 -0
- package/src/i18n/pt-br.json +38 -0
- package/src/i18n/ru.json +42 -0
- package/src/i18n/tr.json +34 -0
- package/src/icons/Back.tsx +12 -0
- package/src/icons/DragHandle.tsx +9 -0
- package/src/icons/PollThumbnail.tsx +12 -0
- package/src/icons/SendPoll.tsx +12 -0
- package/src/icons/index.ts +4 -0
- package/src/store/QuickSqliteClient.ts +1 -1
- package/src/store/apis/index.ts +1 -0
- package/src/store/apis/updatePollMessage.ts +48 -0
- package/src/store/mappers/mapMessageToStorable.ts +4 -0
- package/src/store/mappers/mapStorableToMessage.ts +4 -0
- package/src/store/schema.ts +4 -0
- package/src/version.json +1 -1
|
@@ -6,7 +6,7 @@ exports.mapStorableToMessage = void 0;
|
|
|
6
6
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
7
7
|
var _mapStorableToReaction = require("./mapStorableToReaction");
|
|
8
8
|
var _mapStorableToUser = require("./mapStorableToUser");
|
|
9
|
-
var _excluded = ["createdAt", "deletedAt", "extraData", "messageTextUpdatedAt", "reactionGroups", "updatedAt", "user"];
|
|
9
|
+
var _excluded = ["createdAt", "deletedAt", "extraData", "messageTextUpdatedAt", "poll", "poll_id", "reactionGroups", "updatedAt", "user"];
|
|
10
10
|
var mapStorableToMessage = function mapStorableToMessage(_ref) {
|
|
11
11
|
var currentUserId = _ref.currentUserId,
|
|
12
12
|
messageRow = _ref.messageRow,
|
|
@@ -15,6 +15,8 @@ var mapStorableToMessage = function mapStorableToMessage(_ref) {
|
|
|
15
15
|
deletedAt = messageRow.deletedAt,
|
|
16
16
|
extraData = messageRow.extraData,
|
|
17
17
|
messageTextUpdatedAt = messageRow.messageTextUpdatedAt,
|
|
18
|
+
poll = messageRow.poll,
|
|
19
|
+
poll_id = messageRow.poll_id,
|
|
18
20
|
reactionGroups = messageRow.reactionGroups,
|
|
19
21
|
updatedAt = messageRow.updatedAt,
|
|
20
22
|
user = messageRow.user,
|
|
@@ -33,6 +35,8 @@ var mapStorableToMessage = function mapStorableToMessage(_ref) {
|
|
|
33
35
|
latest_reactions: latestReactions,
|
|
34
36
|
message_text_updated_at: messageTextUpdatedAt,
|
|
35
37
|
own_reactions: ownReactions,
|
|
38
|
+
poll: JSON.parse(poll),
|
|
39
|
+
poll_id: poll_id,
|
|
36
40
|
reaction_groups: reactionGroups ? JSON.parse(reactionGroups) : {},
|
|
37
41
|
updated_at: updatedAt,
|
|
38
42
|
user: (0, _mapStorableToUser.mapStorableToUser)(user)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_mapStorableToReaction","require","_mapStorableToUser","_excluded","mapStorableToMessage","_ref","currentUserId","messageRow","reactionRows","createdAt","deletedAt","extraData","messageTextUpdatedAt","reactionGroups","updatedAt","user","rest","_objectWithoutProperties2","latestReactions","map","reaction","mapStorableToReaction","ownReactions","filter","_reaction$user","id","Object","assign","attachments","JSON","parse","created_at","deleted_at","latest_reactions","message_text_updated_at","own_reactions","reaction_groups","updated_at","mapStorableToUser","exports"],"sourceRoot":"../../../../src","sources":["store/mappers/mapStorableToMessage.ts"],"mappings":";;;;;;AAEA,IAAAA,sBAAA,GAAAC,OAAA;AAEA,IAAAC,kBAAA,GAAAD,OAAA;AAAwD,IAAAE,SAAA;AAMjD,IAAMC,oBAAoB,GAAG,SAAvBA,oBAAoBA,CAAAC,IAAA,EAUU;EAAA,IAPzCC,aAAa,GAAAD,IAAA,CAAbC,aAAa;IACbC,UAAU,GAAAF,IAAA,CAAVE,UAAU;IACVC,YAAY,GAAAH,IAAA,CAAZG,YAAY;EAMZ,IACEC,SAAS,
|
|
1
|
+
{"version":3,"names":["_mapStorableToReaction","require","_mapStorableToUser","_excluded","mapStorableToMessage","_ref","currentUserId","messageRow","reactionRows","createdAt","deletedAt","extraData","messageTextUpdatedAt","poll","poll_id","reactionGroups","updatedAt","user","rest","_objectWithoutProperties2","latestReactions","map","reaction","mapStorableToReaction","ownReactions","filter","_reaction$user","id","Object","assign","attachments","JSON","parse","created_at","deleted_at","latest_reactions","message_text_updated_at","own_reactions","reaction_groups","updated_at","mapStorableToUser","exports"],"sourceRoot":"../../../../src","sources":["store/mappers/mapStorableToMessage.ts"],"mappings":";;;;;;AAEA,IAAAA,sBAAA,GAAAC,OAAA;AAEA,IAAAC,kBAAA,GAAAD,OAAA;AAAwD,IAAAE,SAAA;AAMjD,IAAMC,oBAAoB,GAAG,SAAvBA,oBAAoBA,CAAAC,IAAA,EAUU;EAAA,IAPzCC,aAAa,GAAAD,IAAA,CAAbC,aAAa;IACbC,UAAU,GAAAF,IAAA,CAAVE,UAAU;IACVC,YAAY,GAAAH,IAAA,CAAZG,YAAY;EAMZ,IACEC,SAAS,GAUPF,UAAU,CAVZE,SAAS;IACTC,SAAS,GASPH,UAAU,CATZG,SAAS;IACTC,SAAS,GAQPJ,UAAU,CARZI,SAAS;IACTC,oBAAoB,GAOlBL,UAAU,CAPZK,oBAAoB;IACpBC,IAAI,GAMFN,UAAU,CANZM,IAAI;IACJC,OAAO,GAKLP,UAAU,CALZO,OAAO;IACPC,cAAc,GAIZR,UAAU,CAJZQ,cAAc;IACdC,SAAS,GAGPT,UAAU,CAHZS,SAAS;IACTC,IAAI,GAEFV,UAAU,CAFZU,IAAI;IACDC,IAAI,OAAAC,yBAAA,aACLZ,UAAU,EAAAJ,SAAA;EACd,IAAMiB,eAAe,GACnB,CAAAZ,YAAY,oBAAZA,YAAY,CAAEa,GAAG,CAAC,UAACC,QAAQ;IAAA,OAAK,IAAAC,4CAAqB,EAAqBD,QAAQ,CAAC;EAAA,EAAC,KAAI,EAAE;EAE5F,IAAME,YAAY,GAAGJ,eAAe,CAACK,MAAM,CAAC,UAACH,QAAQ;IAAA,IAAAI,cAAA;IAAA,OAAK,EAAAA,cAAA,GAAAJ,QAAQ,CAACL,IAAI,qBAAbS,cAAA,CAAeC,EAAE,MAAKrB,aAAa;EAAA,EAAC;EAE9F,OAAAsB,MAAA,CAAAC,MAAA,KACKX,IAAI;IACPY,WAAW,EAAEvB,UAAU,CAACuB,WAAW,GAAGC,IAAI,CAACC,KAAK,CAACzB,UAAU,CAACuB,WAAW,CAAC,GAAG,EAAE;IAC7EG,UAAU,EAAExB,SAAS;IACrByB,UAAU,EAAExB,SAAS;IACrByB,gBAAgB,EAAEf,eAAe;IACjCgB,uBAAuB,EAAExB,oBAAoB;IAC7CyB,aAAa,EAAEb,YAAY;IAC3BX,IAAI,EAAEkB,IAAI,CAACC,KAAK,CAACnB,IAAI,CAAC;IACtBC,OAAO,EAAPA,OAAO;IACPwB,eAAe,EAAEvB,cAAc,GAAGgB,IAAI,CAACC,KAAK,CAACjB,cAAc,CAAC,GAAG,CAAC,CAAC;IACjEwB,UAAU,EAAEvB,SAAS;IACrBC,IAAI,EAAE,IAAAuB,oCAAiB,EAACvB,IAAI;EAAC,GACzBN,SAAS,GAAGoB,IAAI,CAACC,KAAK,CAACrB,SAAS,CAAC,GAAG,CAAC,CAAC;AAE9C,CAAC;AAAC8B,OAAA,CAAArC,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["tables","channelQueries","columns","cids","id","primaryKey","channels","autoTranslationEnabled","autoTranslationLanguage","cid","config","cooldown","createdAt","createdById","deletedAt","disabled","extraData","frozen","hidden","invites","lastMessageAt","memberCount","muted","ownCapabilities","team","truncatedAt","truncatedBy","truncatedById","type","updatedAt","members","banned","channelRole","inviteAcceptedAt","invited","inviteRejectedAt","isModerator","role","shadowBanned","userId","foreignKeys","column","onDeleteAction","referenceTable","referenceTableColumn","indexes","name","unique","messages","attachments","messageTextUpdatedAt","reactionGroups","text","pendingTasks","channelId","channelType","messageId","payload","reactions","score","reads","lastRead","unreadMessages","users","lastActive","online","userSyncStatus","appSettings","lastSyncedAt","exports"],"sourceRoot":"../../../src","sources":["store/schema.ts"],"mappings":";;;;AA2BO,IAAMA,MAAc,GAAG;EAC5BC,cAAc,EAAE;IACdC,OAAO,EAAE;MACPC,IAAI,EAAE,MAAM;MACZC,EAAE,EAAE;IACN,CAAC;IACDC,UAAU,EAAE,CAAC,IAAI;EACnB,CAAC;EACDC,QAAQ,EAAE;IACRJ,OAAO,EAAE;MACPK,sBAAsB,EAAE,SAAS;MACjCC,uBAAuB,EAAE,MAAM;MAC/BC,GAAG,EAAE,MAAM;MACXC,MAAM,EAAE,MAAM;MACdC,QAAQ,EAAE,SAAS;MACnBC,SAAS,EAAE,MAAM;MACjBC,WAAW,EAAE,MAAM;MACnBC,SAAS,EAAE,MAAM;MACjBC,QAAQ,EAAE,uBAAuB;MACjCC,SAAS,EAAE,MAAM;MACjBC,MAAM,EAAE,SAAS;MACjBC,MAAM,EAAE,SAAS;MACjBd,EAAE,EAAE,MAAM;MACVe,OAAO,EAAE,MAAM;MACfC,aAAa,EAAE,MAAM;MACrBC,WAAW,EAAE,SAAS;MACtBC,KAAK,EAAE,uBAAuB;MAC9BC,eAAe,EAAE,MAAM;MACvBC,IAAI,EAAE,MAAM;MACZC,WAAW,EAAE,MAAM;MACnBC,WAAW,EAAE,MAAM;MACnBC,aAAa,EAAE,MAAM;MACrBC,IAAI,EAAE,MAAM;MACZC,SAAS,EAAE;IACb,CAAC;IACDxB,UAAU,EAAE,CAAC,KAAK;EACpB,CAAC;EACDyB,OAAO,EAAE;IACP5B,OAAO,EAAE;MACP6B,MAAM,EAAE,uBAAuB;MAC/BC,WAAW,EAAE,MAAM;MACnBvB,GAAG,EAAE,eAAe;MACpBG,SAAS,EAAE,MAAM;MACjBqB,gBAAgB,EAAE,MAAM;MACxBC,OAAO,EAAE,SAAS;MAClBC,gBAAgB,EAAE,MAAM;MACxBC,WAAW,EAAE,SAAS;MACtBC,IAAI,EAAE,MAAM;MACZC,YAAY,EAAE,uBAAuB;MACrCT,SAAS,EAAE,MAAM;MACjBU,MAAM,EAAE;IACV,CAAC;IACDC,WAAW,EAAE,CACX;MACEC,MAAM,EAAE,KAAK;MACbC,cAAc,EAAE,SAAS;MACzBC,cAAc,EAAE,UAAU;MAC1BC,oBAAoB,EAAE;IACxB,CAAC,CACF;IACDC,OAAO,EAAE,CACP;MACE3C,OAAO,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC;MAC1B4C,IAAI,EAAE,eAAe;MACrBC,MAAM,EAAE;IACV,CAAC,CACF;IACD1C,UAAU,EAAE,CAAC,KAAK,EAAE,QAAQ;EAC9B,CAAC;EACD2C,QAAQ,EAAE;IACR9C,OAAO,EAAE;MACP+C,WAAW,EAAE,MAAM;MACnBxC,GAAG,EAAE,eAAe;MACpBG,SAAS,EAAE,MAAM;MACjBE,SAAS,EAAE,MAAM;MACjBE,SAAS,EAAE,MAAM;MACjBZ,EAAE,EAAE,MAAM;MACV8C,oBAAoB,EAAE,MAAM;MAC5BC,cAAc,EAAE,MAAM;MACtBC,IAAI,EAAE,iBAAiB;
|
|
1
|
+
{"version":3,"names":["tables","channelQueries","columns","cids","id","primaryKey","channels","autoTranslationEnabled","autoTranslationLanguage","cid","config","cooldown","createdAt","createdById","deletedAt","disabled","extraData","frozen","hidden","invites","lastMessageAt","memberCount","muted","ownCapabilities","team","truncatedAt","truncatedBy","truncatedById","type","updatedAt","members","banned","channelRole","inviteAcceptedAt","invited","inviteRejectedAt","isModerator","role","shadowBanned","userId","foreignKeys","column","onDeleteAction","referenceTable","referenceTableColumn","indexes","name","unique","messages","attachments","messageTextUpdatedAt","poll","poll_id","reactionGroups","text","pendingTasks","channelId","channelType","messageId","payload","reactions","score","reads","lastRead","unreadMessages","users","lastActive","online","userSyncStatus","appSettings","lastSyncedAt","exports"],"sourceRoot":"../../../src","sources":["store/schema.ts"],"mappings":";;;;AA2BO,IAAMA,MAAc,GAAG;EAC5BC,cAAc,EAAE;IACdC,OAAO,EAAE;MACPC,IAAI,EAAE,MAAM;MACZC,EAAE,EAAE;IACN,CAAC;IACDC,UAAU,EAAE,CAAC,IAAI;EACnB,CAAC;EACDC,QAAQ,EAAE;IACRJ,OAAO,EAAE;MACPK,sBAAsB,EAAE,SAAS;MACjCC,uBAAuB,EAAE,MAAM;MAC/BC,GAAG,EAAE,MAAM;MACXC,MAAM,EAAE,MAAM;MACdC,QAAQ,EAAE,SAAS;MACnBC,SAAS,EAAE,MAAM;MACjBC,WAAW,EAAE,MAAM;MACnBC,SAAS,EAAE,MAAM;MACjBC,QAAQ,EAAE,uBAAuB;MACjCC,SAAS,EAAE,MAAM;MACjBC,MAAM,EAAE,SAAS;MACjBC,MAAM,EAAE,SAAS;MACjBd,EAAE,EAAE,MAAM;MACVe,OAAO,EAAE,MAAM;MACfC,aAAa,EAAE,MAAM;MACrBC,WAAW,EAAE,SAAS;MACtBC,KAAK,EAAE,uBAAuB;MAC9BC,eAAe,EAAE,MAAM;MACvBC,IAAI,EAAE,MAAM;MACZC,WAAW,EAAE,MAAM;MACnBC,WAAW,EAAE,MAAM;MACnBC,aAAa,EAAE,MAAM;MACrBC,IAAI,EAAE,MAAM;MACZC,SAAS,EAAE;IACb,CAAC;IACDxB,UAAU,EAAE,CAAC,KAAK;EACpB,CAAC;EACDyB,OAAO,EAAE;IACP5B,OAAO,EAAE;MACP6B,MAAM,EAAE,uBAAuB;MAC/BC,WAAW,EAAE,MAAM;MACnBvB,GAAG,EAAE,eAAe;MACpBG,SAAS,EAAE,MAAM;MACjBqB,gBAAgB,EAAE,MAAM;MACxBC,OAAO,EAAE,SAAS;MAClBC,gBAAgB,EAAE,MAAM;MACxBC,WAAW,EAAE,SAAS;MACtBC,IAAI,EAAE,MAAM;MACZC,YAAY,EAAE,uB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I,EAAE,MAAM;MACZR,SAAS,EAAE;IACb,CAAC;IACDgB,OAAO,EAAE,CACP;MACE3C,OAAO,EAAE,CAAC,IAAI,CAAC;MACf4C,IAAI,EAAE,gBAAgB;MACtBC,MAAM,EAAE;IACV,CAAC,CACF;IACD1C,UAAU,EAAE,CAAC,IAAI;EACnB,CAAC;EACD+D,cAAc,EAAE;IACdlE,OAAO,EAAE;MACPmE,WAAW,EAAE,MAAM;MACnBC,YAAY,EAAE,MAAM;MACpB/B,MAAM,EAAE;IACV,CAAC;IACDlC,UAAU,EAAE,CAAC,QAAQ;EACvB;AACF,CAAC;AAACkE,OAAA,CAAAvE,MAAA,GAAAA,MAAA","ignoreList":[]}
|
package/lib/module/version.json
CHANGED
package/lib/typescript/components/AttachmentPicker/components/AttachmentPickerSelectionBar.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentPickerSelectionBar.d.ts","sourceRoot":"","sources":["../../../../../src/components/AttachmentPicker/components/AttachmentPickerSelectionBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AttachmentPickerSelectionBar.d.ts","sourceRoot":"","sources":["../../../../../src/components/AttachmentPicker/components/AttachmentPickerSelectionBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAuB1B,eAAO,MAAM,4BAA4B,yBA2GxC,CAAC"}
|
|
@@ -15,7 +15,7 @@ import { DefaultStreamChatGenerics } from '../../types/types';
|
|
|
15
15
|
import { ReactionData } from '../../utils/utils';
|
|
16
16
|
import { LoadingErrorProps } from '../Indicators/LoadingErrorIndicator';
|
|
17
17
|
export declare const reactionData: ReactionData[];
|
|
18
|
-
export type ChannelPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<ChannelContextValue<StreamChatGenerics>, 'channel'> & Partial<Pick<ChannelContextValue<StreamChatGenerics>, 'EmptyStateIndicator' | 'enableMessageGroupingByUser' | 'enforceUniqueReaction' | 'giphyEnabled' | 'hideStickyDateHeader' | 'hideDateSeparators' | 'LoadingIndicator' | 'maxTimeBetweenGroupedMessages' | 'NetworkDownIndicator' | 'StickyHeader'>> & Pick<ChatContextValue<StreamChatGenerics>, 'client' | 'enableOfflineSupport'> & Partial<Omit<InputMessageInputContextValue<StreamChatGenerics>, 'quotedMessage' | 'editing' | 'clearEditingState' | 'clearQuotedMessageState' | 'sendMessage'>> & Partial<Pick<SuggestionsContextValue<StreamChatGenerics>, 'AutoCompleteSuggestionHeader' | 'AutoCompleteSuggestionItem' | 'AutoCompleteSuggestionList'>> & Pick<TranslationContextValue, 't'> & Partial<Pick<PaginatedMessageListContextValue<StreamChatGenerics>, 'messages' | 'loadingMore' | 'loadingMoreRecent'>> & UseChannelStateValue<StreamChatGenerics> & Partial<Pick<MessagesContextValue<StreamChatGenerics>, 'additionalTouchableProps' | 'Attachment' | 'AttachmentActions' | 'AudioAttachment' | 'Card' | 'CardCover' | 'CardFooter' | 'CardHeader' | 'DateHeader' | 'deletedMessagesVisibilityType' | 'disableTypingIndicator' | 'dismissKeyboardOnMessageTouch' | 'FileAttachment' | 'FileAttachmentIcon' | 'FileAttachmentGroup' | 'FlatList' | 'forceAlignMessages' | 'Gallery' | 'getMessagesGroupStyles' | 'Giphy' | 'giphyVersion' | 'handleBan' | 'handleBlock' | 'handleCopy' | 'handleDelete' | 'handleEdit' | 'handleFlag' | 'handleMute' | 'handlePinMessage' | 'handleReaction' | 'handleQuotedReply' | 'handleRetry' | 'handleThreadReply' | 'InlineDateSeparator' | 'InlineUnreadIndicator' | 'isAttachmentEqual' | 'legacyImageViewerSwipeBehaviour' | 'ImageLoadingFailedIndicator' | 'ImageLoadingIndicator' | 'markdownRules' | 'Message' | 'messageActions' | 'MessageAvatar' | 'MessageBounce' | 'MessageContent' | 'messageContentOrder' | 'MessageDeleted' | 'MessageEditedTimestamp' | 'MessageError' | 'MessageFooter' | 'MessageHeader' | 'MessageList' | 'MessagePinnedHeader' | 'MessageReplies' | 'MessageRepliesAvatars' | 'MessageSimple' | 'MessageStatus' | 'MessageSystem' | 'MessageText' | 'MessageTimestamp' | 'myMessageTheme' | 'onLongPressMessage' | 'onPressInMessage' | 'onPressMessage' | 'OverlayReactionList' | 'ReactionList' | 'Reply' | 'shouldShowUnreadUnderlay' | 'ScrollToBottomButton' | 'selectReaction' | 'supportedReactions' | 'TypingIndicator' | 'TypingIndicatorContainer' | 'UrlPreview' | 'VideoThumbnail'>> & Partial<Pick<ThreadContextValue<StreamChatGenerics>, 'allowThreadMessagesInChannel'>> & {
|
|
18
|
+
export type ChannelPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<ChannelContextValue<StreamChatGenerics>, 'channel'> & Partial<Pick<ChannelContextValue<StreamChatGenerics>, 'EmptyStateIndicator' | 'enableMessageGroupingByUser' | 'enforceUniqueReaction' | 'giphyEnabled' | 'hideStickyDateHeader' | 'hideDateSeparators' | 'LoadingIndicator' | 'maxTimeBetweenGroupedMessages' | 'NetworkDownIndicator' | 'StickyHeader'>> & Pick<ChatContextValue<StreamChatGenerics>, 'client' | 'enableOfflineSupport'> & Partial<Omit<InputMessageInputContextValue<StreamChatGenerics>, 'quotedMessage' | 'editing' | 'clearEditingState' | 'clearQuotedMessageState' | 'sendMessage'>> & Partial<Pick<SuggestionsContextValue<StreamChatGenerics>, 'AutoCompleteSuggestionHeader' | 'AutoCompleteSuggestionItem' | 'AutoCompleteSuggestionList'>> & Pick<TranslationContextValue, 't'> & Partial<Pick<PaginatedMessageListContextValue<StreamChatGenerics>, 'messages' | 'loadingMore' | 'loadingMoreRecent'>> & UseChannelStateValue<StreamChatGenerics> & Partial<Pick<MessagesContextValue<StreamChatGenerics>, 'additionalTouchableProps' | 'Attachment' | 'AttachmentActions' | 'AudioAttachment' | 'Card' | 'CardCover' | 'CardFooter' | 'CardHeader' | 'DateHeader' | 'deletedMessagesVisibilityType' | 'disableTypingIndicator' | 'dismissKeyboardOnMessageTouch' | 'FileAttachment' | 'FileAttachmentIcon' | 'FileAttachmentGroup' | 'FlatList' | 'forceAlignMessages' | 'Gallery' | 'getMessagesGroupStyles' | 'Giphy' | 'giphyVersion' | 'handleBan' | 'handleBlock' | 'handleCopy' | 'handleDelete' | 'handleEdit' | 'handleFlag' | 'handleMute' | 'handlePinMessage' | 'handleReaction' | 'handleQuotedReply' | 'handleRetry' | 'handleThreadReply' | 'InlineDateSeparator' | 'InlineUnreadIndicator' | 'isAttachmentEqual' | 'legacyImageViewerSwipeBehaviour' | 'ImageLoadingFailedIndicator' | 'ImageLoadingIndicator' | 'markdownRules' | 'Message' | 'messageActions' | 'MessageAvatar' | 'MessageBounce' | 'MessageContent' | 'messageContentOrder' | 'MessageDeleted' | 'MessageEditedTimestamp' | 'MessageError' | 'MessageFooter' | 'MessageHeader' | 'MessageList' | 'MessagePinnedHeader' | 'MessageReplies' | 'MessageRepliesAvatars' | 'MessageSimple' | 'MessageStatus' | 'MessageSystem' | 'MessageText' | 'MessageTimestamp' | 'myMessageTheme' | 'onLongPressMessage' | 'onPressInMessage' | 'onPressMessage' | 'OverlayReactionList' | 'ReactionList' | 'Reply' | 'shouldShowUnreadUnderlay' | 'ScrollToBottomButton' | 'selectReaction' | 'supportedReactions' | 'TypingIndicator' | 'TypingIndicatorContainer' | 'UrlPreview' | 'VideoThumbnail' | 'PollContent' | 'hasCreatePoll'>> & Partial<Pick<ThreadContextValue<StreamChatGenerics>, 'allowThreadMessagesInChannel'>> & {
|
|
19
19
|
shouldSyncChannel: boolean;
|
|
20
20
|
thread: ThreadType<StreamChatGenerics>;
|
|
21
21
|
/**
|
|
@@ -94,7 +94,7 @@ export type ChannelPropsWithContext<StreamChatGenerics extends DefaultStreamChat
|
|
|
94
94
|
* Tells if channel is rendering a thread list
|
|
95
95
|
*/
|
|
96
96
|
threadList?: boolean;
|
|
97
|
-
}
|
|
97
|
+
} & Partial<Pick<InputMessageInputContextValue, 'openPollCreationDialog' | 'CreatePollContent'>>;
|
|
98
98
|
export type ChannelProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<Omit<ChannelPropsWithContext<StreamChatGenerics>, 'channel'>> & Pick<ChannelPropsWithContext<StreamChatGenerics>, 'channel'>;
|
|
99
99
|
/**
|
|
100
100
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Channel.d.ts","sourceRoot":"","sources":["../../../../src/components/Channel/Channel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAqD,MAAM,OAAO,CAAC;AACpG,OAAO,EAAE,yBAAyB,EAA0B,MAAM,cAAc,CAAC;AAOjF,OAAO,EAGL,OAAO,IAAI,WAAW,EAKtB,sBAAsB,EACtB,UAAU,EAEV,OAAO,IAAI,aAAa,EAEzB,MAAM,aAAa,CAAC;AAiBrB,OAAO,EAAE,mBAAmB,EAAmB,MAAM,8CAA8C,CAAC;AACpG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qDAAqD,CAAC;AAEhG,OAAO,EAAE,gBAAgB,EAAkB,MAAM,wCAAwC,CAAC;AAC1F,OAAO,EACL,6BAA6B,EAE9B,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,2BAA2B,EAE5B,MAAM,8DAA8D,CAAC;AACtE,OAAO,EACL,gCAAgC,EAEjC,MAAM,wEAAwE,CAAC;AAChF,OAAO,EACL,uBAAuB,EAExB,MAAM,sDAAsD,CAAC;AAE9D,OAAO,EACL,kBAAkB,EAElB,UAAU,EACX,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,uBAAuB,EAExB,MAAM,sDAAsD,CAAC;AAa9D,OAAO,EAAE,yBAAyB,EAAa,MAAM,mBAAmB,CAAC;AAOzE,OAAO,EAOL,YAAY,EACb,MAAM,mBAAmB,CAAC;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OG;AACH,eAAO,MAAM,OAAO,2KAqEnB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { InputMessageInputContextValue } from '../../../contexts/messageInputContext/MessageInputContext';
|
|
2
2
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
3
|
-
export declare const useCreateInputMessageInputContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ additionalTextInputProps, asyncMessagesLockDistance, asyncMessagesMinimumPressDuration, asyncMessagesMultiSendEnabled, asyncMessagesSlideToCancelDistance, AttachButton, AudioAttachmentUploadPreview, AudioRecorder, audioRecordingEnabled, AudioRecordingInProgress, AudioRecordingLockIndicator, AudioRecordingPreview, AudioRecordingWaveform, autoCompleteSuggestionsLimit, autoCompleteTriggerSettings, channelId, clearEditingState, clearQuotedMessageState, CommandsButton, compressImageQuality, CooldownTimer, doDocUploadRequest, doImageUploadRequest, editing, editMessage, emojiSearchIndex, FileUploadPreview, handleAttachButtonPress, hasCameraPicker, hasCommands, hasFilePicker, hasImagePicker, ImageUploadPreview, initialValue, Input, InputButtons, InputEditingStateHeader, InputGiphySearch, InputReplyStateHeader, maxMessageLength, maxNumberOfFiles, mentionAllAppUsersEnabled, mentionAllAppUsersQuery, MoreOptionsButton, numberOfLines, onChangeText, quotedMessage, SendButton, sendImageAsync, sendMessage, SendMessageDisallowedIndicator, setInputRef, setQuotedMessageState, ShowThreadMessageInChannelButton, StartAudioRecordingButton, UploadProgressIndicator, }: InputMessageInputContextValue<StreamChatGenerics> & {
|
|
3
|
+
export declare const useCreateInputMessageInputContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ additionalTextInputProps, asyncMessagesLockDistance, asyncMessagesMinimumPressDuration, asyncMessagesMultiSendEnabled, asyncMessagesSlideToCancelDistance, AttachButton, AudioAttachmentUploadPreview, AudioRecorder, audioRecordingEnabled, AudioRecordingInProgress, AudioRecordingLockIndicator, AudioRecordingPreview, AudioRecordingWaveform, autoCompleteSuggestionsLimit, autoCompleteTriggerSettings, channelId, clearEditingState, clearQuotedMessageState, CommandsButton, compressImageQuality, CooldownTimer, CreatePollContent, doDocUploadRequest, doImageUploadRequest, editing, editMessage, emojiSearchIndex, FileUploadPreview, handleAttachButtonPress, hasCameraPicker, hasCommands, hasFilePicker, hasImagePicker, ImageUploadPreview, initialValue, Input, InputButtons, InputEditingStateHeader, InputGiphySearch, InputReplyStateHeader, maxMessageLength, maxNumberOfFiles, mentionAllAppUsersEnabled, mentionAllAppUsersQuery, MoreOptionsButton, numberOfLines, onChangeText, openPollCreationDialog, quotedMessage, SendButton, sendImageAsync, sendMessage, SendMessageDisallowedIndicator, setInputRef, setQuotedMessageState, showPollCreationDialog, ShowThreadMessageInChannelButton, StartAudioRecordingButton, UploadProgressIndicator, }: InputMessageInputContextValue<StreamChatGenerics> & {
|
|
4
4
|
/**
|
|
5
5
|
* To ensure we allow re-render, when channel is changed
|
|
6
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateInputMessageInputContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useCreateInputMessageInputContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2DAA2D,CAAC;AAC/G,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEtE,eAAO,MAAM,iCAAiC;
|
|
1
|
+
{"version":3,"file":"useCreateInputMessageInputContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useCreateInputMessageInputContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2DAA2D,CAAC;AAC/G,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEtE,eAAO,MAAM,iCAAiC;IA+D5C;;OAEG;;uDAqFJ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MessagesContextValue } from '../../../contexts/messagesContext/MessagesContext';
|
|
2
2
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
3
|
-
export declare const useCreateMessagesContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ additionalTouchableProps, Attachment, AttachmentActions, AudioAttachment, Card, CardCover, CardFooter, CardHeader, channelId, DateHeader, deletedMessagesVisibilityType, deleteMessage, deleteReaction, disableTypingIndicator, dismissKeyboardOnMessageTouch, enableMessageGroupingByUser, FileAttachment, FileAttachmentGroup, FileAttachmentIcon, FlatList, forceAlignMessages, Gallery, getMessagesGroupStyles, Giphy, giphyVersion, handleBan, handleBlock, handleCopy, handleDelete, handleEdit, handleFlag, handleMute, handlePinMessage, handleQuotedReply, handleReaction, handleRetry, handleThreadReply, ImageLoadingFailedIndicator, ImageLoadingIndicator, initialScrollToFirstUnreadMessage, InlineDateSeparator, InlineUnreadIndicator, isAttachmentEqual, legacyImageViewerSwipeBehaviour, markdownRules, Message, messageActions, MessageAvatar, MessageBounce, MessageContent, messageContentOrder, MessageDeleted, MessageEditedTimestamp, MessageError, MessageFooter, MessageHeader, MessageList, MessagePinnedHeader, MessageReplies, MessageRepliesAvatars, MessageSimple, MessageStatus, MessageSystem, MessageText, MessageTimestamp, myMessageTheme, onLongPressMessage, onPressInMessage, onPressMessage, OverlayReactionList, ReactionList, removeMessage, Reply, retrySendMessage, ScrollToBottomButton, selectReaction, sendReaction, setEditingState, setQuotedMessageState, shouldShowUnreadUnderlay, supportedReactions, targetedMessage, TypingIndicator, TypingIndicatorContainer, updateMessage, UrlPreview, VideoThumbnail, }: MessagesContextValue<StreamChatGenerics> & {
|
|
3
|
+
export declare const useCreateMessagesContext: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ additionalTouchableProps, Attachment, AttachmentActions, AudioAttachment, Card, CardCover, CardFooter, CardHeader, channelId, DateHeader, deletedMessagesVisibilityType, deleteMessage, deleteReaction, disableTypingIndicator, dismissKeyboardOnMessageTouch, enableMessageGroupingByUser, FileAttachment, FileAttachmentGroup, FileAttachmentIcon, FlatList, forceAlignMessages, Gallery, getMessagesGroupStyles, Giphy, giphyVersion, handleBan, handleBlock, handleCopy, handleDelete, handleEdit, handleFlag, handleMute, handlePinMessage, handleQuotedReply, handleReaction, handleRetry, handleThreadReply, hasCreatePoll, ImageLoadingFailedIndicator, ImageLoadingIndicator, initialScrollToFirstUnreadMessage, InlineDateSeparator, InlineUnreadIndicator, isAttachmentEqual, legacyImageViewerSwipeBehaviour, markdownRules, Message, messageActions, MessageAvatar, MessageBounce, MessageContent, messageContentOrder, MessageDeleted, MessageEditedTimestamp, MessageError, MessageFooter, MessageHeader, MessageList, MessagePinnedHeader, MessageReplies, MessageRepliesAvatars, MessageSimple, MessageStatus, MessageSystem, MessageText, MessageTimestamp, myMessageTheme, onLongPressMessage, onPressInMessage, onPressMessage, OverlayReactionList, PollContent, ReactionList, removeMessage, Reply, retrySendMessage, ScrollToBottomButton, selectReaction, sendReaction, setEditingState, setQuotedMessageState, shouldShowUnreadUnderlay, supportedReactions, targetedMessage, TypingIndicator, TypingIndicatorContainer, updateMessage, UrlPreview, VideoThumbnail, }: MessagesContextValue<StreamChatGenerics> & {
|
|
4
4
|
/**
|
|
5
5
|
* To ensure we allow re-render, when channel is changed
|
|
6
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateMessagesContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useCreateMessagesContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAC9F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEtE,eAAO,MAAM,wBAAwB;
|
|
1
|
+
{"version":3,"file":"useCreateMessagesContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useCreateMessagesContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAC9F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEtE,eAAO,MAAM,wBAAwB;IA6FnC;;OAEG;;8CAoHJ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Channel, ChannelState, MessageResponse } from 'stream-chat';
|
|
1
|
+
import type { Channel, ChannelState, MessageResponse, PollVote, UserResponse } from 'stream-chat';
|
|
2
2
|
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
3
3
|
type LatestMessage<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = ReturnType<ChannelState<StreamChatGenerics>['formatMessage']> | MessageResponse<StreamChatGenerics>;
|
|
4
4
|
export type LatestMessagePreview<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
@@ -10,6 +10,10 @@ export type LatestMessagePreview<StreamChatGenerics extends DefaultStreamChatGen
|
|
|
10
10
|
status: number;
|
|
11
11
|
created_at?: string | Date;
|
|
12
12
|
};
|
|
13
|
+
export type LatestMessagePreviewSelectorReturnType = {
|
|
14
|
+
created_by?: UserResponse | null;
|
|
15
|
+
latest_votes_by_option?: Record<string, PollVote[]>;
|
|
16
|
+
};
|
|
13
17
|
export declare enum MessageReadStatus {
|
|
14
18
|
NOT_SENT_BY_CURRENT_USER = 0,
|
|
15
19
|
UNREAD = 1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLatestMessagePreview.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChannelPreview/hooks/useLatestMessagePreview.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"useLatestMessagePreview.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChannelPreview/hooks/useLatestMessagePreview.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,OAAO,EACP,YAAY,EACZ,eAAe,E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C9E,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,EAAE,QAAQ,CAAC,GACtD,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,EAAE,gBAAgB,GAAG,mBAAmB,CAAC,CAAC,GAAG;IAC5F;;;;;OAKG;IACH,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkDG;IACH,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;CAC5B,CAAC;AAgJJ;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,IAAI,wKAQhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleEventToSyncDB.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chat/hooks/handleEventToSyncDB.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"handleEventToSyncDB.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chat/hooks/handleEventToSyncDB.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAerD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEjE,eAAO,MAAM,mBAAmB,4FAGvB,KAAK,kDAEJ,OAAO,sBA8NhB,CAAC"}
|
|
@@ -70,7 +70,7 @@ export type MessageActionHandlers<StreamChatGenerics extends DefaultStreamChatGe
|
|
|
70
70
|
unpinMessage: () => Promise<void>;
|
|
71
71
|
threadReply?: (message: MessageType<StreamChatGenerics>) => Promise<void>;
|
|
72
72
|
};
|
|
73
|
-
export type MessagePropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<ChannelContextValue<StreamChatGenerics>, 'channel' | 'enforceUniqueReaction' | 'members'> & Pick<KeyboardContextValue, 'dismissKeyboard'> & Partial<Omit<MessageContextValue<StreamChatGenerics>, 'groupStyles' | 'message'>> & Pick<MessageContextValue<StreamChatGenerics>, 'groupStyles' | 'message'> & Pick<MessagesContextValue<StreamChatGenerics>, 'sendReaction' | 'deleteMessage' | 'dismissKeyboardOnMessageTouch' | 'forceAlignMessages' | 'handleBan' | 'handleBlock' | 'handleCopy' | 'handleDelete' | 'handleEdit' | 'handleFlag' | 'handleMute' | 'handlePinMessage' | 'handleQuotedReply' | 'handleReaction' | 'handleRetry' | 'handleThreadReply' | 'isAttachmentEqual' | 'messageActions' | 'messageContentOrder' | 'MessageBounce' | 'MessageSimple' | 'onLongPressMessage' | 'onPressInMessage' | 'onPressMessage' | 'OverlayReactionList' | 'removeMessage' | 'deleteReaction' | 'retrySendMessage' | 'selectReaction' | 'setEditingState' | 'setQuotedMessageState' | 'supportedReactions' | 'updateMessage'> & Pick<MessageOverlayContextValue<StreamChatGenerics>, 'setData'> & Pick<OverlayContextValue, 'setOverlay'> & Pick<ThreadContextValue<StreamChatGenerics>, 'openThread'> & Pick<TranslationContextValue, 't'> & {
|
|
73
|
+
export type MessagePropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<ChannelContextValue<StreamChatGenerics>, 'channel' | 'enforceUniqueReaction' | 'members'> & Pick<KeyboardContextValue, 'dismissKeyboard'> & Partial<Omit<MessageContextValue<StreamChatGenerics>, 'groupStyles' | 'message'>> & Pick<MessageContextValue<StreamChatGenerics>, 'groupStyles' | 'message'> & Pick<MessagesContextValue<StreamChatGenerics>, 'sendReaction' | 'deleteMessage' | 'dismissKeyboardOnMessageTouch' | 'forceAlignMessages' | 'handleBan' | 'handleBlock' | 'handleCopy' | 'handleDelete' | 'handleEdit' | 'handleFlag' | 'handleMute' | 'handlePinMessage' | 'handleQuotedReply' | 'handleReaction' | 'handleRetry' | 'handleThreadReply' | 'isAttachmentEqual' | 'messageActions' | 'messageContentOrder' | 'MessageBounce' | 'MessageSimple' | 'onLongPressMessage' | 'onPressInMessage' | 'onPressMessage' | 'OverlayReactionList' | 'removeMessage' | 'deleteReaction' | 'retrySendMessage' | 'selectReaction' | 'setEditingState' | 'setQuotedMessageState' | 'supportedReactions' | 'updateMessage' | 'PollContent'> & Pick<MessageOverlayContextValue<StreamChatGenerics>, 'setData'> & Pick<OverlayContextValue, 'setOverlay'> & Pick<ThreadContextValue<StreamChatGenerics>, 'openThread'> & Pick<TranslationContextValue, 't'> & {
|
|
74
74
|
chatContext: ChatContextValue<StreamChatGenerics>;
|
|
75
75
|
messagesContext: MessagesContextValue<StreamChatGenerics>;
|
|
76
76
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../../src/components/Message/Message.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../../src/components/Message/Message.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAY,SAAS,EAAQ,SAAS,EAAE,MAAM,cAAc,CAAC;AAE3F,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAQ5D,OAAO,EACL,mBAAmB,EAEpB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAkB,MAAM,wCAAwC,CAAC;AAC1F,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAmB,MAAM,8CAA8C,CAAC;AACpG,O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OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;OAGG;IACH;;;;;;;;;;QAUI;IACJ,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,8BAA8B,CAAC,kBAAkB,CAAC,CAAC,KAAK,IAAI,CAAC;IAE7F;;;;;;;;;;SAUK;IACL,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,8BAA8B,CAAC,kBAAkB,CAAC,CAAC,KAAK,IAAI,CAAC;IACzF,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,8BAA8B,CAAC,kBAAkB,CAAC,CAAC,KAAK,IAAI,CAAC;IAC3F;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAC;IACpE,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;AAqsBJ,MAAM,MAAM,YAAY,CACtB,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,OAAO,CAAC,IAAI,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC,CAAC,GACvF,IAAI,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC,CAAC;AAE/E;;;;;GAKG;AACH,eAAO,MAAM,OAAO,kJAgCnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageContent.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/MessageSimple/MessageContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageContent.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/MessageSimple/MessageContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,OAAO,EACL,mBAAmB,EAEpB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EACL,oBAAoB,EAErB,MAAM,mDAAmD,CAAC;AAE3D,OAAO,EACL,uBAAuB,EAExB,MAAM,yDAAyD,CAAC;AAGjE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAmCtE,MAAM,MAAM,8BAA8B,CACxC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,IAAI,CACN,mBAAmB,CAAC,kBAAkB,CAAC,EACrC,WAAW,GACX,qBAAqB,GACrB,aAAa,GACb,aAAa,GACb,cAAc,GACd,aAAa,GACb,kBAAkB,GAClB,SAAS,GACT,SAAS,GACT,qBAAqB,GACrB,aAAa,GACb,YAAY,GACZ,SAAS,GACT,WAAW,GACX,kBAAkB,GAClB,cAAc,GACd,mBAAmB,GACnB,YAAY,CACf,GACC,IAAI,CACF,oBAAoB,CAAC,kBAAkB,CAAC,EACtC,0BAA0B,GAC1B,YAAY,GACZ,qBAAqB,GACrB,SAAS,GACT,mBAAmB,GACnB,eAAe,GACf,eAAe,GACf,gBAAgB,GAChB,cAAc,GACd,qBAAqB,GACrB,gBAAgB,GAChB,eAAe,GACf,gBAAgB,GAChB,kBAAkB,GAClB,OAAO,CACV,GACD,IAAI,CAAC,uBAAuB,EAAE,GAAG,CAAC,GAAG;IACnC,sBAAsB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;CACtE,CAAC;AA6bJ,MAAM,MAAM,mBAAmB,CAC7B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,OAAO,CAAC,IAAI,CAAC,8BAA8B,CAAC,kBAAkB,CAAC,EAAE,wBAAwB,CAAC,CAAC,GAC7F,IAAI,CAAC,8BAA8B,CAAC,kBAAkB,CAAC,EAAE,wBAAwB,CAAC,CAAC;AAErF;;GAEG;AACH,eAAO,MAAM,cAAc;;;CAqF1B,CAAC"}
|
|
@@ -8,7 +8,7 @@ import { SuggestionsContextValue } from '../../contexts/suggestionsContext/Sugge
|
|
|
8
8
|
import { ThreadContextValue } from '../../contexts/threadContext/ThreadContext';
|
|
9
9
|
import { TranslationContextValue } from '../../contexts/translationContext/TranslationContext';
|
|
10
10
|
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
11
|
-
type MessageInputPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<AttachmentPickerContextValue, 'AttachmentPickerSelectionBar'> & Pick<ChatContextValue<StreamChatGenerics>, 'isOnline'> & Pick<ChannelContextValue<StreamChatGenerics>, 'members' | 'threadList' | 'watchers'> & Pick<MessageInputContextValue<StreamChatGenerics>, 'additionalTextInputProps' | 'asyncIds' | 'audioRecordingEnabled' | 'asyncMessagesLockDistance' | 'asyncMessagesMinimumPressDuration' | 'asyncMessagesSlideToCancelDistance' | 'asyncMessagesMultiSendEnabled' | 'asyncUploads' | 'AudioRecorder' | 'AudioRecordingInProgress' | 'AudioRecordingLockIndicator' | 'AudioRecordingPreview' | 'cooldownEndsAt' | 'CooldownTimer' | 'clearEditingState' | 'clearQuotedMessageState' | 'closeAttachmentPicker' | 'editing' | 'FileUploadPreview' | 'fileUploads' | 'giphyActive' | 'ImageUploadPreview' | 'imageUploads' | 'Input' | 'inputBoxRef' | 'InputButtons' | 'InputEditingStateHeader' | 'InputGiphySearch' | 'InputReplyStateHeader' | 'isValidMessage' | 'maxNumberOfFiles' | 'mentionedUsers' | 'numberOfUploads' | 'quotedMessage' | 'resetInput' | 'SendButton' | 'sending' | 'sendMessageAsync' | 'setShowMoreOptions' | 'setGiphyActive' | 'showMoreOptions' | 'ShowThreadMessageInChannelButton' | 'StartAudioRecordingButton' | 'removeFile' | 'removeImage' | 'text' | 'uploadNewFile' | 'uploadNewImage'> & Pick<MessagesContextValue<StreamChatGenerics>, 'Reply'> & Pick<SuggestionsContextValue<StreamChatGenerics>, 'AutoCompleteSuggestionHeader' | 'AutoCompleteSuggestionItem' | 'AutoCompleteSuggestionList' | 'suggestions' | 'triggerType'> & Pick<ThreadContextValue<StreamChatGenerics>, 'thread'> & Pick<TranslationContextValue, 't'>;
|
|
11
|
+
type MessageInputPropsWithContext<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<AttachmentPickerContextValue, 'AttachmentPickerSelectionBar'> & Pick<ChatContextValue<StreamChatGenerics>, 'isOnline'> & Pick<ChannelContextValue<StreamChatGenerics>, 'members' | 'threadList' | 'watchers'> & Pick<MessageInputContextValue<StreamChatGenerics>, 'additionalTextInputProps' | 'asyncIds' | 'audioRecordingEnabled' | 'asyncMessagesLockDistance' | 'asyncMessagesMinimumPressDuration' | 'asyncMessagesSlideToCancelDistance' | 'asyncMessagesMultiSendEnabled' | 'asyncUploads' | 'AudioRecorder' | 'AudioRecordingInProgress' | 'AudioRecordingLockIndicator' | 'AudioRecordingPreview' | 'cooldownEndsAt' | 'CooldownTimer' | 'clearEditingState' | 'clearQuotedMessageState' | 'closeAttachmentPicker' | 'editing' | 'FileUploadPreview' | 'fileUploads' | 'giphyActive' | 'ImageUploadPreview' | 'imageUploads' | 'Input' | 'inputBoxRef' | 'InputButtons' | 'InputEditingStateHeader' | 'InputGiphySearch' | 'InputReplyStateHeader' | 'isValidMessage' | 'maxNumberOfFiles' | 'mentionedUsers' | 'numberOfUploads' | 'quotedMessage' | 'resetInput' | 'SendButton' | 'sending' | 'sendMessageAsync' | 'setShowMoreOptions' | 'setGiphyActive' | 'showMoreOptions' | 'ShowThreadMessageInChannelButton' | 'StartAudioRecordingButton' | 'removeFile' | 'removeImage' | 'text' | 'uploadNewFile' | 'uploadNewImage' | 'openPollCreationDialog' | 'closePollCreationDialog' | 'showPollCreationDialog' | 'sendMessage' | 'CreatePollContent'> & Pick<MessagesContextValue<StreamChatGenerics>, 'Reply'> & Pick<SuggestionsContextValue<StreamChatGenerics>, 'AutoCompleteSuggestionHeader' | 'AutoCompleteSuggestionItem' | 'AutoCompleteSuggestionList' | 'suggestions' | 'triggerType'> & Pick<ThreadContextValue<StreamChatGenerics>, 'thread'> & Pick<TranslationContextValue, 't'>;
|
|
12
12
|
export type MessageInputProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Partial<MessageInputPropsWithContext<StreamChatGenerics>>;
|
|
13
13
|
/**
|
|
14
14
|
* UI Component for message input
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageInput.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageInput/MessageInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageInput.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageInput/MessageInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AA8B5D,OAAO,EAAE,gBAAgB,EAA6C,MAAM,gBAAgB,CAAC;AAC7F,OAAO,EACL,4BAA4B,EAE7B,MAAM,gEAAgE,CAAC;AACxE,OAAO,EACL,mBAAmB,EAEpB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,wBAAwB,EAEzB,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,uBAAuB,EAExB,MAAM,sDAAsD,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAoB,MAAM,4CAA4C,CAAC;AAClG,OAAO,EACL,uBAAuB,EAExB,MAAM,sDAAsD,CAAC;AAG9D,OAAO,KAAK,EAAS,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AA0C1E,KAAK,4BAA4B,CAC/B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,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E,GAAG,CAAC,CAAC;AA+3BrC,MAAM,MAAM,iBAAiB,CAC3B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,OAAO,CAAC,4BAA4B,CAAC,kBAAkB,CAAC,CAAC,CAAC;AAE9D;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY;;;CAsKxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeAttachmentPicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageInput/components/NativeAttachmentPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAAoB,eAAe,EAAyB,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"NativeAttachmentPicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageInput/components/NativeAttachmentPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAAoB,eAAe,EAAyB,MAAM,cAAc,CAAC;AAexF,KAAK,2BAA2B,GAAG;IACjC,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,2BAA2B,CAAC,EAAE,eAAe,CAAC;CAC/C,CAAC;AAKF,eAAO,MAAM,sBAAsB,uDAGhC,2BAA2B,sBAgK7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageOverlay.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageOverlay/MessageOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAS5D,OAAO,QAYN,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageOverlay.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageOverlay/MessageOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAS5D,OAAO,QAYN,MAAM,yBAAyB,CAAC;AASjC,OAAO,EACL,0BAA0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
|
+
import { CreatePollContentContextValue, InputMessageInputContextValue } from '../../contexts';
|
|
3
|
+
export declare const isMaxNumberOfVotesValid: (maxNumberOfVotes: string) => boolean;
|
|
4
|
+
export declare const CreatePollContent: () => React.JSX.Element;
|
|
5
|
+
export declare const CreatePoll: ({ closePollCreationDialog, CreatePollContent: CreatePollContentOverride, createPollOptionHeight, sendMessage, }: Pick<CreatePollContentContextValue, 'createPollOptionHeight' | 'closePollCreationDialog' | 'sendMessage'> & Pick<InputMessageInputContextValue, 'CreatePollContent'>) => React.JSX.Element;
|
|
6
|
+
//# sourceMappingURL=CreatePollContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreatePollContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Poll/CreatePollContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAUhE,OAAO,EACL,6BAA6B,EAE7B,6BAA6B,EAK9B,MAAM,gBAAgB,CAAC;AAGxB,eAAO,MAAM,uBAAuB,qBAAsB,MAAM,YAM/D,CAAC;AAEF,eAAO,MAAM,iBAAiB,yBAyM7B,CAAC;AAEF,eAAO,MAAM,UAAU,oHAKpB,KACD,6BAA6B,EAC7B,wBAAwB,GAAG,yBAAyB,GAAG,aAAa,CACrE,GACC,KAAK,6BAA6B,EAAE,mBAAmB,CAAC,sBAmBzD,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MessagesContextValue, PollContextValue } from '../../contexts';
|
|
3
|
+
import type { DefaultStreamChatGenerics } from '../../types/types';
|
|
4
|
+
export type PollProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = Pick<PollContextValue<StreamChatGenerics>, 'poll' | 'message'> & Pick<MessagesContextValue<StreamChatGenerics>, 'PollContent'>;
|
|
5
|
+
export type PollContentProps = {
|
|
6
|
+
PollButtons?: React.ComponentType;
|
|
7
|
+
PollHeader?: React.ComponentType;
|
|
8
|
+
};
|
|
9
|
+
export declare const PollButtons: () => React.JSX.Element;
|
|
10
|
+
export declare const PollHeader: () => React.JSX.Element;
|
|
11
|
+
export declare const PollContent: ({ PollButtons: PollButtonsOverride, PollHeader: PollHeaderOverride, }: PollContentProps) => React.JSX.Element;
|
|
12
|
+
export declare const Poll: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ message, poll, PollContent: PollContentOverride, }: PollProps<StreamChatGenerics>) => React.JSX.Element;
|
|
13
|
+
//# sourceMappingURL=Poll.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Poll.d.ts","sourceRoot":"","sources":["../../../../src/components/Poll/Poll.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAiBvC,OAAO,EACL,oBAAoB,EAEpB,gBAAgB,EAGjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,MAAM,MAAM,SAAS,CACnB,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC,GAChE,IAAI,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,EAAE,aAAa,CAAC,CAAC;AAEhE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,WAAW,yBASvB,CAAC;AAEF,eAAO,MAAM,UAAU,yBA2BtB,CAAC;AAEF,eAAO,MAAM,WAAW,0EAGrB,gBAAgB,sBAsBlB,CAAC;AAEF,eAAO,MAAM,IAAI,8LAehB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Poll, PollOption } from 'stream-chat';
|
|
3
|
+
import type { DefaultStreamChatGenerics } from '../../../types/types';
|
|
4
|
+
import { MessageType } from '../../MessageList/hooks/useMessageList';
|
|
5
|
+
export type PollButtonProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
6
|
+
onPress?: ({ message, poll, }: {
|
|
7
|
+
message: MessageType<StreamChatGenerics>;
|
|
8
|
+
poll: Poll<StreamChatGenerics>;
|
|
9
|
+
}) => void;
|
|
10
|
+
};
|
|
11
|
+
export type ShowAllVotesButtonProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
12
|
+
option: PollOption<StreamChatGenerics>;
|
|
13
|
+
onPress?: ({ message, option, poll, }: {
|
|
14
|
+
message: MessageType<StreamChatGenerics>;
|
|
15
|
+
option: PollOption<StreamChatGenerics>;
|
|
16
|
+
poll: Poll<StreamChatGenerics>;
|
|
17
|
+
}) => void;
|
|
18
|
+
};
|
|
19
|
+
export type PollVoteButtonProps = {
|
|
20
|
+
option: PollOption;
|
|
21
|
+
} & Pick<PollButtonProps, 'onPress'>;
|
|
22
|
+
export declare const GenericPollButton: ({ onPress, title }: {
|
|
23
|
+
onPress?: (() => void) | undefined;
|
|
24
|
+
title?: string | undefined;
|
|
25
|
+
}) => React.JSX.Element;
|
|
26
|
+
export declare const ViewResultsButton: (props: PollButtonProps) => React.JSX.Element;
|
|
27
|
+
export declare const EndVoteButton: () => React.JSX.Element | null;
|
|
28
|
+
export declare const AddCommentButton: (props: PollButtonProps) => React.JSX.Element;
|
|
29
|
+
export declare const ShowAllCommentsButton: (props: PollButtonProps) => React.JSX.Element;
|
|
30
|
+
export declare const AnswerListAddCommentButton: (props: PollButtonProps) => React.JSX.Element;
|
|
31
|
+
export declare const SuggestOptionButton: (props: PollButtonProps) => React.JSX.Element;
|
|
32
|
+
export declare const ShowAllOptionsButton: (props: PollButtonProps) => React.JSX.Element;
|
|
33
|
+
export declare const VoteButton: ({ onPress, option }: PollVoteButtonProps) => React.JSX.Element | null;
|
|
34
|
+
export declare const ShowAllVotesButton: (props: ShowAllVotesButtonProps) => React.JSX.Element;
|
|
35
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../src/components/Poll/components/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAGrD,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAiB/C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AAGrE,MAAM,MAAM,eAAe,CACzB,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,OAAO,CAAC,EAAE,CAAC,EACT,OAAO,EACP,IAAI,GACL,EAAE;QACD,OAAO,EAAE,WAAW,CAAC,kBAAkB,CAAC,CAAC;QACzC,IAAI,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC;KAChC,KAAK,IAAI,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,uBAAuB,CACjC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,MAAM,EAAE,UAAU,CAAC,kBAAkB,CAAC,CAAC;IACvC,OAAO,CAAC,EAAE,CAAC,EACT,OAAO,EACP,MAAM,EACN,IAAI,GACL,EAAE;QACD,OAAO,EAAE,WAAW,CAAC,kBAAkB,CAAC,CAAC;QACzC,MAAM,EAAE,UAAU,CAAC,kBAAkB,CAAC,CAAC;QACvC,IAAI,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC;KAChC,KAAK,IAAI,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,EAAE,UAAU,CAAC;CACpB,GAAG,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC;AAErC,eAAO,MAAM,iBAAiB;qBAA0C,IAAI;;uBAe3E,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAAW,eAAe,sBAyCvD,CAAC;AAEF,eAAO,MAAM,aAAa,gCAQzB,CAAC;AAEF,eAAO,MAAM,gBAAgB,UAAW,eAAe,sBAgCtD,CAAC;AAEF,eAAO,MAAM,qBAAqB,UAAW,eAAe,sBA+C3D,CAAC;AAEF,eAAO,MAAM,0BAA0B,UAAW,eAAe,sBAmDhE,CAAC;AAEF,eAAO,MAAM,mBAAmB,UAAW,eAAe,sBA+BzD,CAAC;AAEF,eAAO,MAAM,oBAAoB,UAAW,eAAe,sBA+C1D,CAAC;AAEF,eAAO,MAAM,UAAU,wBAAyB,mBAAmB,6BAoDlE,CAAC;AAEF,eAAO,MAAM,kBAAkB,UAAW,uBAAuB,sBA4ChE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreatePollIcon.d.ts","sourceRoot":"","sources":["../../../../../src/components/Poll/components/CreatePollIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,eAAO,MAAM,cAAc,yBAQ1B,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { SharedValue } from 'react-native-reanimated';
|
|
3
|
+
import { PollOptionData } from 'stream-chat';
|
|
4
|
+
export type CurrentOptionPositionsCache = {
|
|
5
|
+
inverseIndexCache: {
|
|
6
|
+
[key: number]: number;
|
|
7
|
+
};
|
|
8
|
+
positionCache: {
|
|
9
|
+
[key: number]: {
|
|
10
|
+
updatedIndex: number;
|
|
11
|
+
updatedTop: number;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare const CreatePollOption: ({ boundaries, currentOptionPositions, draggedItemId, handleChangeText, hasDuplicate, index, isDragging, option, }: {
|
|
16
|
+
boundaries: {
|
|
17
|
+
maxBound: number;
|
|
18
|
+
minBound: number;
|
|
19
|
+
};
|
|
20
|
+
currentOptionPositions: SharedValue<CurrentOptionPositionsCache>;
|
|
21
|
+
draggedItemId: SharedValue<number | null>;
|
|
22
|
+
handleChangeText: (newText: string, index: number) => void;
|
|
23
|
+
hasDuplicate: boolean;
|
|
24
|
+
index: number;
|
|
25
|
+
isDragging: SharedValue<1 | 0>;
|
|
26
|
+
option: PollOptionData;
|
|
27
|
+
}) => React.JSX.Element;
|
|
28
|
+
export declare const CreatePollOptions: (props: {
|
|
29
|
+
currentOptionPositions: SharedValue<CurrentOptionPositionsCache>;
|
|
30
|
+
duplicates: string[];
|
|
31
|
+
pollOptions: PollOptionData[];
|
|
32
|
+
setPollOptions: Dispatch<SetStateAction<PollOptionData[]>>;
|
|
33
|
+
}) => React.JSX.Element;
|
|
34
|
+
//# sourceMappingURL=CreatePollOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreatePollOptions.d.ts","sourceRoot":"","sources":["../../../../../src/components/Poll/components/CreatePollOptions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAwB,MAAM,OAAO,CAAC;AAG9E,OAAiB,EAEf,WAAW,EAOZ,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAK7C,MAAM,MAAM,2BAA2B,GAAG;IACxC,iBAAiB,EAAE;QACjB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB,CAAC;IACF,aAAa,EAAE;QACb,CAAC,GAAG,EAAE,MAAM,GAAG;YACb,YAAY,EAAE,MAAM,CAAC;YACrB,UAAU,EAAE,MAAM,CAAC;SACpB,CAAC;KACH,CAAC;CACH,CAAC;AAIF,eAAO,MAAM,gBAAgB;gBAUf;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE;4BAC1B,YAAY,2BAA2B,CAAC;mBACjD,YAAY,MAAM,GAAG,IAAI,CAAC;gCACb,MAAM,SAAS,MAAM,KAAK,IAAI;kBAC5C,OAAO;WACd,MAAM;gBACD,YAAY,CAAC,GAAG,CAAC,CAAC;YACtB,cAAc;uBAyLvB,CAAC;AAIF,eAAO,MAAM,iBAAiB,UAAW;IACvC,sBAAsB,EAAE,YAAY,2BAA2B,CAAC,CAAC;IACjE,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9B,cAAc,EAAE,SAAS,eAAe,cAAc,EAAE,CAAC,CAAC,CAAC;CAC5D,sBA8EA,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type FlatListProps } from 'react-native';
|
|
3
|
+
import { PollAnswer } from 'stream-chat';
|
|
4
|
+
import { PollContextValue } from '../../../contexts';
|
|
5
|
+
import { DefaultStreamChatGenerics } from '../../../types/types';
|
|
6
|
+
export type PollAnswersListProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = PollContextValue & {
|
|
7
|
+
additionalFlatListProps?: Partial<FlatListProps<PollAnswer<StreamChatGenerics>>>;
|
|
8
|
+
PollAnswersListContent?: React.ComponentType;
|
|
9
|
+
};
|
|
10
|
+
export declare const PollAnswerListItem: ({ answer }: {
|
|
11
|
+
answer: PollAnswer;
|
|
12
|
+
}) => React.JSX.Element;
|
|
13
|
+
export declare const PollAnswersListContent: ({ additionalFlatListProps, }: Pick<PollAnswersListProps, 'additionalFlatListProps'>) => React.JSX.Element;
|
|
14
|
+
export declare const PollAnswersList: ({ additionalFlatListProps, message, poll, PollAnswersListContent: PollAnswersListOverride, }: PollAnswersListProps) => React.JSX.Element;
|
|
15
|
+
//# sourceMappingURL=PollAnswersList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PollAnswersList.d.ts","sourceRoot":"","sources":["../../../../../src/components/Poll/components/PollAnswersList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAY,KAAK,aAAa,EAA0B,MAAM,cAAc,CAAC;AAEpF,OAAO,EAAE,UAAU,EAAoB,MAAM,aAAa,CAAC;AAI3D,OAAO,EAEL,gBAAgB,EAGjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAMjE,MAAM,MAAM,oBAAoB,CAC9B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,gBAAgB,GAAG;IACrB,uBAAuB,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC;IACjF,sBAAsB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC9C,CAAC;AAEF,eAAO,MAAM,kBAAkB;YAA0B,UAAU;uBA+ClE,CAAC;AAMF,eAAO,MAAM,sBAAsB,iCAEhC,KAAK,oBAAoB,EAAE,yBAAyB,CAAC,sBAuBvD,CAAC;AAEF,eAAO,MAAM,eAAe,iGAKzB,oBAAoB,sBAQtB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type PollInputDialogProps = {
|
|
3
|
+
closeDialog: () => void;
|
|
4
|
+
onSubmit: (text: string) => void;
|
|
5
|
+
title: string;
|
|
6
|
+
visible: boolean;
|
|
7
|
+
initialValue?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const PollInputDialog: ({ closeDialog, initialValue, onSubmit, title, visible, }: PollInputDialogProps) => React.JSX.Element;
|
|
10
|
+
//# sourceMappingURL=PollInputDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PollInputDialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/Poll/components/PollInputDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAcxC,MAAM,MAAM,oBAAoB,GAAG;IACjC,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,eAAe,6DAMzB,oBAAoB,sBAyDtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PollModalHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/Poll/components/PollModalHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,eAAe,uBAAwB,oBAAoB,sBAoBvE,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ScrollViewProps } from 'react-native';
|
|
3
|
+
import { PollOption as PollOptionClass } from 'stream-chat';
|
|
4
|
+
import { PollContextValue } from '../../../contexts';
|
|
5
|
+
export type PollOptionProps = {
|
|
6
|
+
option: PollOptionClass;
|
|
7
|
+
showProgressBar?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export type PollAllOptionsContentProps = PollContextValue & {
|
|
10
|
+
additionalScrollViewProps?: Partial<ScrollViewProps>;
|
|
11
|
+
PollAllOptionsContent?: React.ComponentType;
|
|
12
|
+
};
|
|
13
|
+
export declare const PollAllOptionsContent: ({ additionalScrollViewProps, }: Pick<PollAllOptionsContentProps, 'additionalScrollViewProps'>) => React.JSX.Element;
|
|
14
|
+
export declare const PollAllOptions: ({ additionalScrollViewProps, message, poll, PollAllOptionsContent: PollAllOptionsContentOverride, }: PollAllOptionsContentProps) => React.JSX.Element;
|
|
15
|
+
export declare const PollOption: ({ option, showProgressBar }: PollOptionProps) => React.JSX.Element;
|
|
16
|
+
//# sourceMappingURL=PollOption.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PollOption.d.ts","sourceRoot":"","sources":["../../../../../src/components/Poll/components/PollOption.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,eAAe,EAA0B,MAAM,cAAc,CAAC;AAIvE,OAAO,EAAE,UAAU,IAAI,eAAe,EAAY,MAAM,aAAa,CAAC;AAItE,OAAO,EAAuB,gBAAgB,EAAY,MAAM,mBAAmB,CAAC;AAKpF,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,eAAe,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,GAAG;IAC1D,yBAAyB,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IACrD,qBAAqB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7C,CAAC;AAEF,eAAO,MAAM,qBAAqB,mCAE/B,KAAK,0BAA0B,EAAE,2BAA2B,CAAC,sBA8B/D,CAAC;AAEF,eAAO,MAAM,cAAc,wGAKxB,0BAA0B,sBAQ5B,CAAC;AAEF,eAAO,MAAM,UAAU,gCAAwC,eAAe,sBAwE7E,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type FlatListProps } from 'react-native';
|
|
3
|
+
import { PollOption, PollVote as PollVoteClass } from 'stream-chat';
|
|
4
|
+
import { PollContextValue } from '../../../../contexts';
|
|
5
|
+
import type { DefaultStreamChatGenerics } from '../../../../types/types';
|
|
6
|
+
export type PollOptionFullResultsProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = PollContextValue & {
|
|
7
|
+
option: PollOption<StreamChatGenerics>;
|
|
8
|
+
additionalFlatListProps?: Partial<FlatListProps<PollVoteClass<StreamChatGenerics>>>;
|
|
9
|
+
PollOptionFullResultsContent?: React.ComponentType<{
|
|
10
|
+
option: PollOption<StreamChatGenerics>;
|
|
11
|
+
}>;
|
|
12
|
+
};
|
|
13
|
+
export declare const PollOptionFullResultsItem: ({ item }: {
|
|
14
|
+
item: PollVoteClass;
|
|
15
|
+
}) => React.JSX.Element;
|
|
16
|
+
export declare const PollOptionFullResultsContent: ({ additionalFlatListProps, option, }: Pick<PollOptionFullResultsProps, 'option' | 'additionalFlatListProps'>) => React.JSX.Element;
|
|
17
|
+
export declare const PollOptionFullResults: ({ additionalFlatListProps, message, option, poll, PollOptionFullResultsContent: PollOptionFullResultsContentOverride, }: PollOptionFullResultsProps) => React.JSX.Element;
|
|
18
|
+
//# sourceMappingURL=PollOptionFullResults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PollOptionFullResults.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Poll/components/PollResults/PollOptionFullResults.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAY,KAAK,aAAa,EAA0B,MAAM,cAAc,CAAC;AAEpF,OAAO,EAAE,UAAU,EAAE,QAAQ,IAAI,aAAa,EAAE,MAAM,aAAa,CAAC;AAIpE,OAAO,EAEL,gBAAgB,EAGjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAIzE,MAAM,MAAM,0BAA0B,CACpC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,gBAAgB,GAAG;IACrB,MAAM,EAAE,UAAU,CAAC,kBAAkB,CAAC,CAAC;IACvC,uBAAuB,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC;IACpF,4BAA4B,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,MAAM,EAAE,UAAU,CAAC,kBAAkB,CAAC,CAAA;KAAE,CAAC,CAAC;CAChG,CAAC;AAEF,eAAO,MAAM,yBAAyB;UAAsB,aAAa;uBAExE,CAAC;AAEF,eAAO,MAAM,4BAA4B,yCAGtC,KAAK,0BAA0B,EAAE,QAAQ,GAAG,yBAAyB,CAAC,sBA0CxE,CAAC;AAEF,eAAO,MAAM,qBAAqB,4HAM/B,0BAA0B,sBAW5B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PollOption, PollVote as PollVoteClass } from 'stream-chat';
|
|
3
|
+
import type { DefaultStreamChatGenerics } from '../../../../types/types';
|
|
4
|
+
export type PollResultItemProps<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
5
|
+
option: PollOption<StreamChatGenerics>;
|
|
6
|
+
};
|
|
7
|
+
export declare const PollVote: (vote: PollVoteClass) => React.JSX.Element;
|
|
8
|
+
export declare const PollResultsItem: ({ option }: PollResultItemProps) => React.JSX.Element;
|
|
9
|
+
//# sourceMappingURL=PollResultItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PollResultItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Poll/components/PollResults/PollResultItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAE,UAAU,EAAE,QAAQ,IAAI,aAAa,EAAoB,MAAM,aAAa,CAAC;AAGtF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAMzE,MAAM,MAAM,mBAAmB,CAC7B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,MAAM,EAAE,UAAU,CAAC,kBAAkB,CAAC,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,QAAQ,SAAU,aAAa,sBA2C3C,CAAC;AAEF,eAAO,MAAM,eAAe,eAAgB,mBAAmB,sBA+B9D,CAAC"}
|