stream-chat-react-native-core 9.4.0-beta.11 → 9.4.0-beta.13
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/ChannelDetails/ChannelDetails.js +8 -3
- package/lib/commonjs/components/ChannelDetails/ChannelDetails.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsActionItem.js +2 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsActionItem.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsEditButton.js +57 -0
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsEditButton.js.map +1 -0
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsNavHeader.js +3 -32
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsNavHeader.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsNavigationSection.js +64 -25
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsNavigationSection.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsProfile.js +3 -2
- package/lib/commonjs/components/ChannelDetails/components/ChannelDetailsProfile.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditImageSheet.js +2 -2
- package/lib/commonjs/components/ChannelDetails/components/ChannelEditImageSheet.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/index.js +22 -0
- package/lib/commonjs/components/ChannelDetails/components/index.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelMemberItem.js +2 -1
- package/lib/commonjs/components/ChannelDetails/components/members/ChannelMemberItem.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/modal/Modal.js +22 -23
- package/lib/commonjs/components/ChannelDetails/components/modal/Modal.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/modal/ModalHeader.js +6 -4
- package/lib/commonjs/components/ChannelDetails/components/modal/ModalHeader.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/FileAttachmentItem.js +65 -0
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/FileAttachmentItem.js.map +1 -0
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/FileAttachmentList.js +174 -0
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/FileAttachmentList.js.map +1 -0
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/FileAttachmentListLoadingSkeleton.js +21 -0
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/FileAttachmentListLoadingSkeleton.js.map +1 -0
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/FileAttachmentListSectionHeader.js +45 -0
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/FileAttachmentListSectionHeader.js.map +1 -0
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaItem.js +120 -0
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaItem.js.map +1 -0
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaList.js +206 -0
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaList.js.map +1 -0
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaListLoadingSkeleton.js +63 -0
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/MediaListLoadingSkeleton.js.map +1 -0
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/PinnedMessageItem.js +84 -0
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/PinnedMessageItem.js.map +1 -0
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/PinnedMessageList.js +177 -0
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/PinnedMessageList.js.map +1 -0
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/PinnedMessageListLoadingSkeleton.js +21 -0
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/PinnedMessageListLoadingSkeleton.js.map +1 -0
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/index.js +114 -0
- package/lib/commonjs/components/ChannelDetails/components/navigation-section/index.js.map +1 -0
- package/lib/commonjs/components/ChannelDetails/hooks/index.js +33 -0
- package/lib/commonjs/components/ChannelDetails/hooks/index.js.map +1 -1
- package/lib/commonjs/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.js +55 -0
- package/lib/commonjs/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.js.map +1 -0
- package/lib/commonjs/components/ChannelDetails/hooks/useFileAttachmentListSections.js +52 -0
- package/lib/commonjs/components/ChannelDetails/hooks/useFileAttachmentListSections.js.map +1 -0
- package/lib/commonjs/components/ChannelDetails/hooks/useMediaList.js +30 -0
- package/lib/commonjs/components/ChannelDetails/hooks/useMediaList.js.map +1 -0
- package/lib/commonjs/components/ImageGallery/ImageGallery.js +21 -76
- package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryImage.js +6 -10
- package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryImage.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryVideo.js +16 -14
- package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryVideo.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryA11yProbe.js +67 -0
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryA11yProbe.js.map +1 -0
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js +23 -15
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/hooks/useAnimatedGalleryStyle.js +4 -3
- package/lib/commonjs/components/ImageGallery/hooks/useAnimatedGalleryStyle.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/hooks/useCurrentImageHeight.js +53 -0
- package/lib/commonjs/components/ImageGallery/hooks/useCurrentImageHeight.js.map +1 -0
- package/lib/commonjs/components/ImageGallery/hooks/useImageGalleryGestures.js +25 -31
- package/lib/commonjs/components/ImageGallery/hooks/useImageGalleryGestures.js.map +1 -1
- package/lib/commonjs/components/UIComponents/EmptyList.js +78 -0
- package/lib/commonjs/components/UIComponents/EmptyList.js.map +1 -0
- package/lib/commonjs/components/UIComponents/index.js +11 -0
- package/lib/commonjs/components/UIComponents/index.js.map +1 -1
- package/lib/commonjs/components/ui/Avatar/AvatarGroup.js +3 -3
- package/lib/commonjs/components/ui/Avatar/constants.js +2 -2
- package/lib/commonjs/contexts/channelFileAttachmentListContext/ChannelFileAttachmentListContext.js +64 -0
- package/lib/commonjs/contexts/channelFileAttachmentListContext/ChannelFileAttachmentListContext.js.map +1 -0
- package/lib/commonjs/contexts/channelMediaListContext/ChannelMediaListContext.js +63 -0
- package/lib/commonjs/contexts/channelMediaListContext/ChannelMediaListContext.js.map +1 -0
- package/lib/commonjs/contexts/channelPinnedMessageListContext/ChannelPinnedMessageListContext.js +73 -0
- package/lib/commonjs/contexts/channelPinnedMessageListContext/ChannelPinnedMessageListContext.js.map +1 -0
- package/lib/commonjs/contexts/componentsContext/defaultComponents.js +8 -0
- package/lib/commonjs/contexts/componentsContext/defaultComponents.js.map +1 -1
- package/lib/commonjs/contexts/index.js +33 -0
- package/lib/commonjs/contexts/index.js.map +1 -1
- package/lib/commonjs/contexts/themeContext/utils/theme.js +57 -2
- package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/commonjs/i18n/ar.json +11 -0
- package/lib/commonjs/i18n/en.json +11 -0
- package/lib/commonjs/i18n/es.json +11 -0
- package/lib/commonjs/i18n/fr.json +11 -0
- package/lib/commonjs/i18n/he.json +11 -0
- package/lib/commonjs/i18n/hi.json +11 -0
- package/lib/commonjs/i18n/it.json +11 -0
- package/lib/commonjs/i18n/ja.json +11 -0
- package/lib/commonjs/i18n/ko.json +11 -0
- package/lib/commonjs/i18n/nl.json +11 -0
- package/lib/commonjs/i18n/pt-br.json +11 -0
- package/lib/commonjs/i18n/ru.json +11 -0
- package/lib/commonjs/i18n/tr.json +11 -0
- package/lib/commonjs/icons/folder.js +37 -0
- package/lib/commonjs/icons/folder.js.map +1 -0
- package/lib/commonjs/icons/index.js +12 -0
- package/lib/commonjs/icons/index.js.map +1 -1
- package/lib/commonjs/state-store/image-gallery-state-store.js +12 -3
- package/lib/commonjs/state-store/image-gallery-state-store.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/ChannelDetails/ChannelDetails.js +8 -3
- package/lib/module/components/ChannelDetails/ChannelDetails.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelDetailsActionItem.js +2 -1
- package/lib/module/components/ChannelDetails/components/ChannelDetailsActionItem.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelDetailsEditButton.js +57 -0
- package/lib/module/components/ChannelDetails/components/ChannelDetailsEditButton.js.map +1 -0
- package/lib/module/components/ChannelDetails/components/ChannelDetailsNavHeader.js +3 -32
- package/lib/module/components/ChannelDetails/components/ChannelDetailsNavHeader.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelDetailsNavigationSection.js +64 -25
- package/lib/module/components/ChannelDetails/components/ChannelDetailsNavigationSection.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelDetailsProfile.js +3 -2
- package/lib/module/components/ChannelDetails/components/ChannelDetailsProfile.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/ChannelEditImageSheet.js +2 -2
- package/lib/module/components/ChannelDetails/components/ChannelEditImageSheet.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/index.js +22 -0
- package/lib/module/components/ChannelDetails/components/index.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/members/ChannelMemberItem.js +2 -1
- package/lib/module/components/ChannelDetails/components/members/ChannelMemberItem.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/modal/Modal.js +22 -23
- package/lib/module/components/ChannelDetails/components/modal/Modal.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/modal/ModalHeader.js +6 -4
- package/lib/module/components/ChannelDetails/components/modal/ModalHeader.js.map +1 -1
- package/lib/module/components/ChannelDetails/components/navigation-section/FileAttachmentItem.js +65 -0
- package/lib/module/components/ChannelDetails/components/navigation-section/FileAttachmentItem.js.map +1 -0
- package/lib/module/components/ChannelDetails/components/navigation-section/FileAttachmentList.js +174 -0
- package/lib/module/components/ChannelDetails/components/navigation-section/FileAttachmentList.js.map +1 -0
- package/lib/module/components/ChannelDetails/components/navigation-section/FileAttachmentListLoadingSkeleton.js +21 -0
- package/lib/module/components/ChannelDetails/components/navigation-section/FileAttachmentListLoadingSkeleton.js.map +1 -0
- package/lib/module/components/ChannelDetails/components/navigation-section/FileAttachmentListSectionHeader.js +45 -0
- package/lib/module/components/ChannelDetails/components/navigation-section/FileAttachmentListSectionHeader.js.map +1 -0
- package/lib/module/components/ChannelDetails/components/navigation-section/MediaItem.js +120 -0
- package/lib/module/components/ChannelDetails/components/navigation-section/MediaItem.js.map +1 -0
- package/lib/module/components/ChannelDetails/components/navigation-section/MediaList.js +206 -0
- package/lib/module/components/ChannelDetails/components/navigation-section/MediaList.js.map +1 -0
- package/lib/module/components/ChannelDetails/components/navigation-section/MediaListLoadingSkeleton.js +63 -0
- package/lib/module/components/ChannelDetails/components/navigation-section/MediaListLoadingSkeleton.js.map +1 -0
- package/lib/module/components/ChannelDetails/components/navigation-section/PinnedMessageItem.js +84 -0
- package/lib/module/components/ChannelDetails/components/navigation-section/PinnedMessageItem.js.map +1 -0
- package/lib/module/components/ChannelDetails/components/navigation-section/PinnedMessageList.js +177 -0
- package/lib/module/components/ChannelDetails/components/navigation-section/PinnedMessageList.js.map +1 -0
- package/lib/module/components/ChannelDetails/components/navigation-section/PinnedMessageListLoadingSkeleton.js +21 -0
- package/lib/module/components/ChannelDetails/components/navigation-section/PinnedMessageListLoadingSkeleton.js.map +1 -0
- package/lib/module/components/ChannelDetails/components/navigation-section/index.js +114 -0
- package/lib/module/components/ChannelDetails/components/navigation-section/index.js.map +1 -0
- package/lib/module/components/ChannelDetails/hooks/index.js +33 -0
- package/lib/module/components/ChannelDetails/hooks/index.js.map +1 -1
- package/lib/module/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.js +55 -0
- package/lib/module/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.js.map +1 -0
- package/lib/module/components/ChannelDetails/hooks/useFileAttachmentListSections.js +52 -0
- package/lib/module/components/ChannelDetails/hooks/useFileAttachmentListSections.js.map +1 -0
- package/lib/module/components/ChannelDetails/hooks/useMediaList.js +30 -0
- package/lib/module/components/ChannelDetails/hooks/useMediaList.js.map +1 -0
- package/lib/module/components/ImageGallery/ImageGallery.js +21 -76
- package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/module/components/ImageGallery/components/AnimatedGalleryImage.js +6 -10
- package/lib/module/components/ImageGallery/components/AnimatedGalleryImage.js.map +1 -1
- package/lib/module/components/ImageGallery/components/AnimatedGalleryVideo.js +16 -14
- package/lib/module/components/ImageGallery/components/AnimatedGalleryVideo.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryA11yProbe.js +67 -0
- package/lib/module/components/ImageGallery/components/ImageGalleryA11yProbe.js.map +1 -0
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js +23 -15
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/module/components/ImageGallery/hooks/useAnimatedGalleryStyle.js +4 -3
- package/lib/module/components/ImageGallery/hooks/useAnimatedGalleryStyle.js.map +1 -1
- package/lib/module/components/ImageGallery/hooks/useCurrentImageHeight.js +53 -0
- package/lib/module/components/ImageGallery/hooks/useCurrentImageHeight.js.map +1 -0
- package/lib/module/components/ImageGallery/hooks/useImageGalleryGestures.js +25 -31
- package/lib/module/components/ImageGallery/hooks/useImageGalleryGestures.js.map +1 -1
- package/lib/module/components/UIComponents/EmptyList.js +78 -0
- package/lib/module/components/UIComponents/EmptyList.js.map +1 -0
- package/lib/module/components/UIComponents/index.js +11 -0
- package/lib/module/components/UIComponents/index.js.map +1 -1
- package/lib/module/components/ui/Avatar/AvatarGroup.js +3 -3
- package/lib/module/components/ui/Avatar/constants.js +2 -2
- package/lib/module/contexts/channelFileAttachmentListContext/ChannelFileAttachmentListContext.js +64 -0
- package/lib/module/contexts/channelFileAttachmentListContext/ChannelFileAttachmentListContext.js.map +1 -0
- package/lib/module/contexts/channelMediaListContext/ChannelMediaListContext.js +63 -0
- package/lib/module/contexts/channelMediaListContext/ChannelMediaListContext.js.map +1 -0
- package/lib/module/contexts/channelPinnedMessageListContext/ChannelPinnedMessageListContext.js +73 -0
- package/lib/module/contexts/channelPinnedMessageListContext/ChannelPinnedMessageListContext.js.map +1 -0
- package/lib/module/contexts/componentsContext/defaultComponents.js +8 -0
- package/lib/module/contexts/componentsContext/defaultComponents.js.map +1 -1
- package/lib/module/contexts/index.js +33 -0
- package/lib/module/contexts/index.js.map +1 -1
- package/lib/module/contexts/themeContext/utils/theme.js +57 -2
- package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/module/i18n/ar.json +11 -0
- package/lib/module/i18n/en.json +11 -0
- package/lib/module/i18n/es.json +11 -0
- package/lib/module/i18n/fr.json +11 -0
- package/lib/module/i18n/he.json +11 -0
- package/lib/module/i18n/hi.json +11 -0
- package/lib/module/i18n/it.json +11 -0
- package/lib/module/i18n/ja.json +11 -0
- package/lib/module/i18n/ko.json +11 -0
- package/lib/module/i18n/nl.json +11 -0
- package/lib/module/i18n/pt-br.json +11 -0
- package/lib/module/i18n/ru.json +11 -0
- package/lib/module/i18n/tr.json +11 -0
- package/lib/module/icons/folder.js +37 -0
- package/lib/module/icons/folder.js.map +1 -0
- package/lib/module/icons/index.js +12 -0
- package/lib/module/icons/index.js.map +1 -1
- package/lib/module/state-store/image-gallery-state-store.js +12 -3
- package/lib/module/state-store/image-gallery-state-store.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/ChannelDetails/ChannelDetails.d.ts +11 -1
- package/lib/typescript/components/ChannelDetails/ChannelDetails.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/ChannelDetailsActionItem.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/ChannelDetailsEditButton.d.ts +6 -0
- package/lib/typescript/components/ChannelDetails/components/ChannelDetailsEditButton.d.ts.map +1 -0
- package/lib/typescript/components/ChannelDetails/components/ChannelDetailsNavHeader.d.ts +3 -1
- package/lib/typescript/components/ChannelDetails/components/ChannelDetailsNavHeader.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/ChannelDetailsNavigationSection.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/index.d.ts +3 -0
- package/lib/typescript/components/ChannelDetails/components/index.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/members/ChannelMemberItem.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/modal/Modal.d.ts +2 -1
- package/lib/typescript/components/ChannelDetails/components/modal/Modal.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/modal/ModalHeader.d.ts +3 -1
- package/lib/typescript/components/ChannelDetails/components/modal/ModalHeader.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/components/navigation-section/FileAttachmentItem.d.ts +31 -0
- package/lib/typescript/components/ChannelDetails/components/navigation-section/FileAttachmentItem.d.ts.map +1 -0
- package/lib/typescript/components/ChannelDetails/components/navigation-section/FileAttachmentList.d.ts +17 -0
- package/lib/typescript/components/ChannelDetails/components/navigation-section/FileAttachmentList.d.ts.map +1 -0
- package/lib/typescript/components/ChannelDetails/components/navigation-section/FileAttachmentListLoadingSkeleton.d.ts +9 -0
- package/lib/typescript/components/ChannelDetails/components/navigation-section/FileAttachmentListLoadingSkeleton.d.ts.map +1 -0
- package/lib/typescript/components/ChannelDetails/components/navigation-section/FileAttachmentListSectionHeader.d.ts +13 -0
- package/lib/typescript/components/ChannelDetails/components/navigation-section/FileAttachmentListSectionHeader.d.ts.map +1 -0
- package/lib/typescript/components/ChannelDetails/components/navigation-section/MediaItem.d.ts +35 -0
- package/lib/typescript/components/ChannelDetails/components/navigation-section/MediaItem.d.ts.map +1 -0
- package/lib/typescript/components/ChannelDetails/components/navigation-section/MediaList.d.ts +17 -0
- package/lib/typescript/components/ChannelDetails/components/navigation-section/MediaList.d.ts.map +1 -0
- package/lib/typescript/components/ChannelDetails/components/navigation-section/MediaListLoadingSkeleton.d.ts +11 -0
- package/lib/typescript/components/ChannelDetails/components/navigation-section/MediaListLoadingSkeleton.d.ts.map +1 -0
- package/lib/typescript/components/ChannelDetails/components/navigation-section/PinnedMessageItem.d.ts +19 -0
- package/lib/typescript/components/ChannelDetails/components/navigation-section/PinnedMessageItem.d.ts.map +1 -0
- package/lib/typescript/components/ChannelDetails/components/navigation-section/PinnedMessageList.d.ts +19 -0
- package/lib/typescript/components/ChannelDetails/components/navigation-section/PinnedMessageList.d.ts.map +1 -0
- package/lib/typescript/components/ChannelDetails/components/navigation-section/PinnedMessageListLoadingSkeleton.d.ts +9 -0
- package/lib/typescript/components/ChannelDetails/components/navigation-section/PinnedMessageListLoadingSkeleton.d.ts.map +1 -0
- package/lib/typescript/components/ChannelDetails/components/navigation-section/index.d.ts +11 -0
- package/lib/typescript/components/ChannelDetails/components/navigation-section/index.d.ts.map +1 -0
- package/lib/typescript/components/ChannelDetails/hooks/index.d.ts +3 -0
- package/lib/typescript/components/ChannelDetails/hooks/index.d.ts.map +1 -1
- package/lib/typescript/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.d.ts +56 -0
- package/lib/typescript/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.d.ts.map +1 -0
- package/lib/typescript/components/ChannelDetails/hooks/useFileAttachmentListSections.d.ts +28 -0
- package/lib/typescript/components/ChannelDetails/hooks/useFileAttachmentListSections.d.ts.map +1 -0
- package/lib/typescript/components/ChannelDetails/hooks/useMediaList.d.ts +20 -0
- package/lib/typescript/components/ChannelDetails/hooks/useMediaList.d.ts.map +1 -0
- package/lib/typescript/components/ImageGallery/ImageGallery.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/AnimatedGalleryImage.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/AnimatedGalleryVideo.d.ts +1 -4
- package/lib/typescript/components/ImageGallery/components/AnimatedGalleryVideo.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryA11yProbe.d.ts +20 -0
- package/lib/typescript/components/ImageGallery/components/ImageGalleryA11yProbe.d.ts.map +1 -0
- package/lib/typescript/components/ImageGallery/components/ImageGalleryHeader.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/hooks/useAnimatedGalleryStyle.d.ts +2 -3
- package/lib/typescript/components/ImageGallery/hooks/useAnimatedGalleryStyle.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/hooks/useCurrentImageHeight.d.ts +24 -0
- package/lib/typescript/components/ImageGallery/hooks/useCurrentImageHeight.d.ts.map +1 -0
- package/lib/typescript/components/ImageGallery/hooks/useImageGalleryGestures.d.ts +1 -1
- package/lib/typescript/components/ImageGallery/hooks/useImageGalleryGestures.d.ts.map +1 -1
- package/lib/typescript/components/UIComponents/EmptyList.d.ts +24 -0
- package/lib/typescript/components/UIComponents/EmptyList.d.ts.map +1 -0
- package/lib/typescript/components/UIComponents/index.d.ts +1 -0
- package/lib/typescript/components/UIComponents/index.d.ts.map +1 -1
- package/lib/typescript/contexts/channelFileAttachmentListContext/ChannelFileAttachmentListContext.d.ts +21 -0
- package/lib/typescript/contexts/channelFileAttachmentListContext/ChannelFileAttachmentListContext.d.ts.map +1 -0
- package/lib/typescript/contexts/channelMediaListContext/ChannelMediaListContext.d.ts +21 -0
- package/lib/typescript/contexts/channelMediaListContext/ChannelMediaListContext.d.ts.map +1 -0
- package/lib/typescript/contexts/channelPinnedMessageListContext/ChannelPinnedMessageListContext.d.ts +21 -0
- package/lib/typescript/contexts/channelPinnedMessageListContext/ChannelPinnedMessageListContext.d.ts.map +1 -0
- package/lib/typescript/contexts/componentsContext/defaultComponents.d.ts +18 -2
- package/lib/typescript/contexts/componentsContext/defaultComponents.d.ts.map +1 -1
- package/lib/typescript/contexts/index.d.ts +3 -0
- package/lib/typescript/contexts/index.d.ts.map +1 -1
- package/lib/typescript/contexts/themeContext/ThemeContext.d.ts +56 -1
- package/lib/typescript/contexts/themeContext/ThemeContext.d.ts.map +1 -1
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts +56 -1
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts.map +1 -1
- package/lib/typescript/i18n/ar.json +11 -0
- package/lib/typescript/i18n/en.json +11 -0
- package/lib/typescript/i18n/es.json +11 -0
- package/lib/typescript/i18n/fr.json +11 -0
- package/lib/typescript/i18n/he.json +11 -0
- package/lib/typescript/i18n/hi.json +11 -0
- package/lib/typescript/i18n/it.json +11 -0
- package/lib/typescript/i18n/ja.json +11 -0
- package/lib/typescript/i18n/ko.json +11 -0
- package/lib/typescript/i18n/nl.json +11 -0
- package/lib/typescript/i18n/pt-br.json +11 -0
- package/lib/typescript/i18n/ru.json +11 -0
- package/lib/typescript/i18n/tr.json +11 -0
- package/lib/typescript/icons/folder.d.ts +4 -0
- package/lib/typescript/icons/folder.d.ts.map +1 -0
- package/lib/typescript/icons/index.d.ts +1 -0
- package/lib/typescript/icons/index.d.ts.map +1 -1
- package/lib/typescript/state-store/image-gallery-state-store.d.ts +8 -0
- package/lib/typescript/state-store/image-gallery-state-store.d.ts.map +1 -1
- package/lib/typescript/utils/i18n/Streami18n.d.ts +11 -0
- package/lib/typescript/utils/i18n/Streami18n.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/ChannelDetails/ChannelDetails.tsx +17 -2
- package/src/components/ChannelDetails/__tests__/ChannelDetails.test.tsx +29 -0
- package/src/components/ChannelDetails/__tests__/ChannelDetailsEditButton.test.tsx +127 -0
- package/src/components/ChannelDetails/__tests__/ChannelDetailsNavHeader.test.tsx +21 -56
- package/src/components/ChannelDetails/__tests__/ChannelDetailsNavigationSection.test.tsx +225 -6
- package/src/components/ChannelDetails/__tests__/useFileAttachmentListSections.test.tsx +159 -0
- package/src/components/ChannelDetails/__tests__/useMediaList.test.tsx +53 -0
- package/src/components/ChannelDetails/components/ChannelDetailsActionItem.tsx +6 -1
- package/src/components/ChannelDetails/components/ChannelDetailsEditButton.tsx +50 -0
- package/src/components/ChannelDetails/components/ChannelDetailsNavHeader.tsx +6 -33
- package/src/components/ChannelDetails/components/ChannelDetailsNavigationSection.tsx +80 -32
- package/src/components/ChannelDetails/components/ChannelDetailsProfile.tsx +2 -1
- package/src/components/ChannelDetails/components/ChannelEditImageSheet.tsx +2 -2
- package/src/components/ChannelDetails/components/__tests__/navigation-section/FileAttachmentItem.test.tsx +80 -0
- package/src/components/ChannelDetails/components/__tests__/navigation-section/FileAttachmentList.test.tsx +334 -0
- package/src/components/ChannelDetails/components/__tests__/navigation-section/FileAttachmentListSectionHeader.test.tsx +19 -0
- package/src/components/ChannelDetails/components/__tests__/navigation-section/MediaItem.test.tsx +97 -0
- package/src/components/ChannelDetails/components/__tests__/navigation-section/MediaList.test.tsx +351 -0
- package/src/components/ChannelDetails/components/__tests__/navigation-section/PinnedMessageItem.test.tsx +112 -0
- package/src/components/ChannelDetails/components/__tests__/navigation-section/PinnedMessageList.test.tsx +324 -0
- package/src/components/ChannelDetails/components/index.ts +3 -0
- package/src/components/ChannelDetails/components/members/ChannelMemberItem.tsx +6 -1
- package/src/components/ChannelDetails/components/modal/Modal.tsx +37 -24
- package/src/components/ChannelDetails/components/modal/ModalHeader.tsx +11 -4
- package/src/components/ChannelDetails/components/navigation-section/FileAttachmentItem.tsx +92 -0
- package/src/components/ChannelDetails/components/navigation-section/FileAttachmentList.tsx +204 -0
- package/src/components/ChannelDetails/components/navigation-section/FileAttachmentListLoadingSkeleton.tsx +23 -0
- package/src/components/ChannelDetails/components/navigation-section/FileAttachmentListSectionHeader.tsx +56 -0
- package/src/components/ChannelDetails/components/navigation-section/MediaItem.tsx +160 -0
- package/src/components/ChannelDetails/components/navigation-section/MediaList.tsx +244 -0
- package/src/components/ChannelDetails/components/navigation-section/MediaListLoadingSkeleton.tsx +66 -0
- package/src/components/ChannelDetails/components/navigation-section/PinnedMessageItem.tsx +94 -0
- package/src/components/ChannelDetails/components/navigation-section/PinnedMessageList.tsx +198 -0
- package/src/components/ChannelDetails/components/navigation-section/PinnedMessageListLoadingSkeleton.tsx +23 -0
- package/src/components/ChannelDetails/components/navigation-section/index.ts +10 -0
- package/src/components/ChannelDetails/hooks/index.ts +3 -0
- package/src/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.ts +108 -0
- package/src/components/ChannelDetails/hooks/useFileAttachmentListSections.ts +79 -0
- package/src/components/ChannelDetails/hooks/useMediaList.ts +51 -0
- package/src/components/ImageGallery/ImageGallery.tsx +41 -120
- package/src/components/ImageGallery/__tests__/ImageGallery.test.tsx +4 -1
- package/src/components/ImageGallery/__tests__/ImageGalleryAdjustable.test.tsx +5 -4
- package/src/components/ImageGallery/components/AnimatedGalleryImage.tsx +9 -11
- package/src/components/ImageGallery/components/AnimatedGalleryVideo.tsx +28 -15
- package/src/components/ImageGallery/components/ImageGalleryA11yProbe.tsx +82 -0
- package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +21 -18
- package/src/components/ImageGallery/hooks/useAnimatedGalleryStyle.tsx +5 -5
- package/src/components/ImageGallery/hooks/useCurrentImageHeight.ts +86 -0
- package/src/components/ImageGallery/hooks/useImageGalleryGestures.tsx +42 -51
- package/src/components/UIComponents/EmptyList.tsx +80 -0
- package/src/components/UIComponents/__tests__/EmptyList.test.tsx +90 -0
- package/src/components/UIComponents/index.ts +1 -0
- package/src/components/ui/Avatar/AvatarGroup.tsx +3 -3
- package/src/components/ui/Avatar/constants.ts +2 -2
- package/src/contexts/channelFileAttachmentListContext/ChannelFileAttachmentListContext.tsx +67 -0
- package/src/contexts/channelMediaListContext/ChannelMediaListContext.tsx +68 -0
- package/src/contexts/channelPinnedMessageListContext/ChannelPinnedMessageListContext.tsx +72 -0
- package/src/contexts/componentsContext/defaultComponents.ts +16 -1
- package/src/contexts/index.ts +3 -0
- package/src/contexts/themeContext/utils/theme.ts +112 -2
- package/src/i18n/ar.json +11 -0
- package/src/i18n/en.json +11 -0
- package/src/i18n/es.json +11 -0
- package/src/i18n/fr.json +11 -0
- package/src/i18n/he.json +11 -0
- package/src/i18n/hi.json +11 -0
- package/src/i18n/it.json +11 -0
- package/src/i18n/ja.json +11 -0
- package/src/i18n/ko.json +11 -0
- package/src/i18n/nl.json +11 -0
- package/src/i18n/pt-br.json +11 -0
- package/src/i18n/ru.json +11 -0
- package/src/i18n/tr.json +11 -0
- package/src/icons/folder.tsx +28 -0
- package/src/icons/index.ts +1 -0
- package/src/state-store/__tests__/image-gallery-state-store.test.ts +81 -0
- package/src/state-store/image-gallery-state-store.ts +27 -1
- package/src/version.json +1 -1
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
exports.ImageGalleryStateStore = void 0;
|
|
6
6
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
7
7
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
8
|
+
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
9
|
var _streamChat = require("stream-chat");
|
|
9
10
|
var _videoPlayerPool = require("./video-player-pool");
|
|
10
11
|
var _getGiphyMimeType = require("../components/Attachment/utils/getGiphyMimeType");
|
|
@@ -78,9 +79,7 @@ var ImageGalleryStateStore = exports.ImageGalleryStateStore = function () {
|
|
|
78
79
|
return;
|
|
79
80
|
}
|
|
80
81
|
var index = this.assets.findIndex(asset => stripQueryFromUrl(asset.uri) === stripQueryFromUrl(selectedAttachmentUrl ?? ''));
|
|
81
|
-
this.
|
|
82
|
-
currentIndex: index === -1 ? 0 : index
|
|
83
|
-
});
|
|
82
|
+
this.currentIndex = index === -1 ? 0 : index;
|
|
84
83
|
});
|
|
85
84
|
return unsubscribe;
|
|
86
85
|
};
|
|
@@ -96,6 +95,7 @@ var ImageGalleryStateStore = exports.ImageGalleryStateStore = function () {
|
|
|
96
95
|
this.clear = () => {
|
|
97
96
|
this.videoPlayerPool.clear();
|
|
98
97
|
this.state.partialNext(INITIAL_STATE);
|
|
98
|
+
this.currentIndexShared.value = INITIAL_STATE.currentIndex;
|
|
99
99
|
};
|
|
100
100
|
this.options = {
|
|
101
101
|
...INITIAL_IMAGE_GALLERY_OPTIONS,
|
|
@@ -103,6 +103,7 @@ var ImageGalleryStateStore = exports.ImageGalleryStateStore = function () {
|
|
|
103
103
|
};
|
|
104
104
|
this.state = new _streamChat.StateStore(INITIAL_STATE);
|
|
105
105
|
this.videoPlayerPool = new _videoPlayerPool.VideoPlayerPool();
|
|
106
|
+
this.currentIndexShared = (0, _reactNativeReanimated.makeMutable)(INITIAL_STATE.currentIndex);
|
|
106
107
|
}
|
|
107
108
|
return (0, _createClass2.default)(ImageGalleryStateStore, [{
|
|
108
109
|
key: "messages",
|
|
@@ -191,9 +192,17 @@ var ImageGalleryStateStore = exports.ImageGalleryStateStore = function () {
|
|
|
191
192
|
}, {
|
|
192
193
|
key: "currentIndex",
|
|
193
194
|
set: function (currentIndex) {
|
|
195
|
+
var previousIndex = this.state.getLatestValue().currentIndex;
|
|
194
196
|
this.state.partialNext({
|
|
195
197
|
currentIndex
|
|
196
198
|
});
|
|
199
|
+
this.currentIndexShared.value = currentIndex;
|
|
200
|
+
if (previousIndex !== currentIndex) {
|
|
201
|
+
var activePlayer = this.videoPlayerPool.getActivePlayer();
|
|
202
|
+
if (activePlayer) {
|
|
203
|
+
activePlayer.pause();
|
|
204
|
+
}
|
|
205
|
+
}
|
|
197
206
|
}
|
|
198
207
|
}]);
|
|
199
208
|
}();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_streamChat","_videoPlayerPool","_getGiphyMimeType","_native","_types","_getUrlOfImageAttachment","isViewableImageAttachment","attachment","type","FileTypes","Image","title_link","og_scrape_url","isViewableVideoAttachment","Video","isVideoPlayerAvailable","isViewableGiphyAttachment","Giphy","stripQueryFromUrl","url","split","INITIAL_STATE","assets","currentIndex","messages","requesterNode","selectedAttachmentUrl","undefined","INITIAL_IMAGE_GALLERY_OPTIONS","autoPlayVideo","giphyVersion","ImageGalleryStateStore","exports","options","_classCallCheck2","default","appendMessages","state","partialNext","removeMessages","filter","message","includes","openImageGallery","subscribeToMessages","unsubscribe","subscribeWithSelector","currentValue","subscribeToSelectedAttachmentUrl","index","findIndex","asset","uri","registerSubscriptions","subscriptions","push","forEach","subscription","videoPlayerPool","clear","currentIndexShared","value","StateStore","VideoPlayerPool","makeMutable","_createClass2","key","get","getLatestValue","set","attachmentsWithMessage","map","attachments","some","getAssetId","messageId","assetUrl","_this$options$giphyVe","flatMap","getUrlOfImageAttachment","assetId","id","giphyURL","giphy","thumb_url","image_url","giphyMimeType","getGiphyMimeType","channelId","cid","created_at","mime_type","original_height","original_width","user","user_id","previousIndex","activePlayer","getActivePlayer","pause"],"sourceRoot":"../../../src","sources":["state-store/image-gallery-state-store.ts"],"mappings":";;;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OAAA;AAEA,IAAAE,gBAAA,GAAAF,OAAA;AAEA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,wBAAA,GAAAN,OAAA;AAiBA,IAAMO,yBAAyB,GAAIC,UAAsB,IAAK;EAC5D,OAAOA,UAAU,CAACC,IAAI,KAAKC,gBAAS,CAACC,KAAK,IAAI,CAACH,UAAU,CAACI,UAAU,IAAI,CAACJ,UAAU,CAACK,aAAa;AACnG,CAAC;AAED,IAAMC,yBAAyB,GAAIN,UAAsB,IAAK;EAC5D,OAAOA,UAAU,CAACC,IAAI,KAAKC,gBAAS,CAACK,KAAK,IAAI,IAAAC,8BAAsB,EAAC,CAAC;AACxE,CAAC;AAED,IAAMC,yBAAyB,GAAIT,UAAsB,IAAK;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,IAAI,CAACqC,kBAAkB,CAACC,KAAK,GAAGtC,YAAY;MAO5C,IAAIyE,aAAa,KAAKzE,YAAY,EAAE;QAClC,IAAM0E,YAAY,GAAG,IAAI,CAACvC,eAAe,CAACwC,eAAe,CAAC,CAAC;QAC3D,IAAID,YAAY,EAAE;UAChBA,YAAY,CAACE,KAAK,CAAC,CAAC;QACtB;MACF;IACF;EAAC;AAAA","ignoreList":[]}
|
package/lib/module/version.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Channel, ChannelMemberResponse } from 'stream-chat';
|
|
3
|
+
import type { GetChannelDetailsNavigationItems } from './hooks/useChannelDetailsNavigationItems';
|
|
3
4
|
import type { TranslationContextValue } from '../../contexts/translationContext/TranslationContext';
|
|
4
5
|
import type { GetChannelActionItems } from '../../hooks/actions/useChannelActionItems';
|
|
5
6
|
import type { GetChannelMemberActionItems } from '../../hooks/actions/useChannelMemberActionItems';
|
|
@@ -43,6 +44,15 @@ export type ChannelDetailsProps = {
|
|
|
43
44
|
* or add items — for example, to inject a "Send Direct Message" action in your app.
|
|
44
45
|
*/
|
|
45
46
|
getChannelMemberActionItems?: GetChannelMemberActionItems;
|
|
47
|
+
/**
|
|
48
|
+
* Customize the navigation rows rendered in the channel details navigation section.
|
|
49
|
+
*
|
|
50
|
+
* Receives the built-in `defaultItems` (and a `context`) and returns the rows to render.
|
|
51
|
+
* Map over `defaultItems` to override a row's `onPress` (e.g. to push your own screen) or
|
|
52
|
+
* to add/remove rows. Any row whose `onPress` you leave untouched keeps its built-in
|
|
53
|
+
* behavior (opening the built-in modal), including sections added in future SDK versions.
|
|
54
|
+
*/
|
|
55
|
+
getNavigationItems?: GetChannelDetailsNavigationItems;
|
|
46
56
|
/**
|
|
47
57
|
* Override the role label shown next to each member in the channel details screen.
|
|
48
58
|
*
|
|
@@ -89,5 +99,5 @@ export declare const ChannelDetailsContent: () => React.JSX.Element;
|
|
|
89
99
|
/**
|
|
90
100
|
* @experimental This component is experimental and is subject to change.
|
|
91
101
|
*/
|
|
92
|
-
export declare const ChannelDetails: ({ channel, compressImageQuality, doFileUploadRequest, getChannelActionItems, getChannelMemberActionItems, getMemberRoleLabel, onAddMembersPress, onBack, onChannelDismiss, onEditChannelPress, onMemberPress, onViewAllMembersPress, }: ChannelDetailsProps) => React.JSX.Element;
|
|
102
|
+
export declare const ChannelDetails: ({ channel, compressImageQuality, doFileUploadRequest, getChannelActionItems, getChannelMemberActionItems, getMemberRoleLabel, getNavigationItems, onAddMembersPress, onBack, onChannelDismiss, onEditChannelPress, onMemberPress, onViewAllMembersPress, }: ChannelDetailsProps) => React.JSX.Element;
|
|
93
103
|
//# sourceMappingURL=ChannelDetails.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelDetails.d.ts","sourceRoot":"","sources":["../../../../src/components/ChannelDetails/ChannelDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"ChannelDetails.d.ts","sourceRoot":"","sources":["../../../../src/components/ChannelDetails/ChannelDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAElE,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAC;AASjG,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sDAAsD,CAAC;AACpG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,iDAAiD,CAAC;AAGnG,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAI5D;;;;GAIG;AACH,MAAM,MAAM,kB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ts","sourceRoot":"","sources":["../../../../../src/components/ChannelDetails/components/ChannelDetailsActionItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAIvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAG3D,MAAM,MAAM,6BAA6B,GAAG;IAC1C,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,GAAI,0DAOtC,6BAA6B,
|
|
1
|
+
{"version":3,"file":"ChannelDetailsActionItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChannelDetails/components/ChannelDetailsActionItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAIvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAG3D,MAAM,MAAM,6BAA6B,GAAG;IAC1C,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,GAAI,0DAOtC,6BAA6B,sBAiE/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChannelDetailsEditButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChannelDetails/components/ChannelDetailsEditButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAUrD;;GAEG;AACH,eAAO,MAAM,wBAAwB,gCAoCpC,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export type ChannelDetailsNavHeaderProps = {
|
|
3
|
+
/** Content rendered on the trailing side of the header (e.g. the edit button). */
|
|
4
|
+
action?: React.ReactNode;
|
|
3
5
|
/** Override the auto-resolved screen title (1:1 → "Contact Info", group → "Group Info"). */
|
|
4
6
|
title?: string;
|
|
5
7
|
};
|
|
6
8
|
/**
|
|
7
9
|
* @experimental This component is experimental and is subject to change.
|
|
8
10
|
*/
|
|
9
|
-
export declare const ChannelDetailsNavHeader: ({ title }: ChannelDetailsNavHeaderProps) => React.JSX.Element;
|
|
11
|
+
export declare const ChannelDetailsNavHeader: ({ action, title }: ChannelDetailsNavHeaderProps) => React.JSX.Element;
|
|
10
12
|
//# sourceMappingURL=ChannelDetailsNavHeader.d.ts.map
|
package/lib/typescript/components/ChannelDetails/components/ChannelDetailsNavHeader.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelDetailsNavHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChannelDetails/components/ChannelDetailsNavHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ChannelDetailsNavHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChannelDetails/components/ChannelDetailsNavHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAavC,MAAM,MAAM,4BAA4B,GAAG;IACzC,kFAAkF;IAClF,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,4FAA4F;IAC5F,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,GAAI,mBAAmB,4BAA4B,sBAmDtF,CAAC"}
|
package/lib/typescript/components/ChannelDetails/components/ChannelDetailsNavigationSection.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelDetailsNavigationSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChannelDetails/components/ChannelDetailsNavigationSection.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ChannelDetailsNavigationSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChannelDetails/components/ChannelDetailsNavigationSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAmB9D;;GAEG;AACH,eAAO,MAAM,+BAA+B,yBAyF3C,CAAC"}
|
|
@@ -3,10 +3,13 @@ export * from './ChannelDetailsActionItem';
|
|
|
3
3
|
export * from './ChannelDetailsMemberSection';
|
|
4
4
|
export * from './ChannelDetailsNavigationSection';
|
|
5
5
|
export * from './ChannelDetailsProfile';
|
|
6
|
+
export * from './ChannelDetailsEditButton';
|
|
6
7
|
export * from './ChannelDetailsNavHeader';
|
|
7
8
|
export * from './ChannelEditDetails';
|
|
8
9
|
export * from './ChannelEditDetailsModal';
|
|
9
10
|
export * from './ChannelEditImageSheet';
|
|
10
11
|
export * from './ChannelEditName';
|
|
12
|
+
export * from './ChannelDetailsEditButton';
|
|
11
13
|
export * from './members';
|
|
14
|
+
export * from './navigation-section';
|
|
12
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChannelDetails/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC;AAClD,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChannelDetails/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC;AAClD,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC"}
|
package/lib/typescript/components/ChannelDetails/components/members/ChannelMemberItem.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelMemberItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ChannelDetails/components/members/ChannelMemberItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAazD,MAAM,MAAM,qBAAqB,GAAG,IAAI,GAAG,IAAI,CAAC;AAEhD,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,qBAAqB,CAAC;IAC9B,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAClD;;;;;OAKG;IACH,IAAI,CAAC,EAAE,qBAAqB,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,oCAK/B,sBAAsB,
|
|
1
|
+
{"version":3,"file":"ChannelMemberItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ChannelDetails/components/members/ChannelMemberItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAazD,MAAM,MAAM,qBAAqB,GAAG,IAAI,GAAG,IAAI,CAAC;AAEhD,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,qBAAqB,CAAC;IAC9B,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAClD;;;;;OAKG;IACH,IAAI,CAAC,EAAE,qBAAqB,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,oCAK/B,sBAAsB,6BAsHxB,CAAC"}
|
|
@@ -3,10 +3,11 @@ type ChannelDetailsModalProps = {
|
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
onClose: () => void;
|
|
5
5
|
visible: boolean;
|
|
6
|
+
presentationStyle?: 'pageSheet' | 'formSheet' | 'fullScreen';
|
|
6
7
|
};
|
|
7
8
|
/**
|
|
8
9
|
* @experimental This component is experimental and is subject to change.
|
|
9
10
|
*/
|
|
10
|
-
export declare const ChannelDetailsModal: ({ children, onClose, visible }: ChannelDetailsModalProps) => React.JSX.Element;
|
|
11
|
+
export declare const ChannelDetailsModal: ({ children, onClose, visible, presentationStyle, }: ChannelDetailsModalProps) => React.JSX.Element;
|
|
11
12
|
export {};
|
|
12
13
|
//# sourceMappingURL=Modal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ChannelDetails/components/modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ChannelDetails/components/modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAQvC,KAAK,wBAAwB,GAAG;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,iBAAiB,CAAC,EAAE,WAAW,GAAG,WAAW,GAAG,YAAY,CAAC;CAC9D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAI,oDAKjC,wBAAwB,sBA6B1B,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { ButtonProps } from '../../../ui/Button/Button';
|
|
2
3
|
type ModalHeaderProps = {
|
|
4
|
+
additionalCloseButtonProps?: Partial<ButtonProps>;
|
|
3
5
|
onClose: () => void;
|
|
4
6
|
title: string;
|
|
5
7
|
rightAction?: React.ReactNode;
|
|
@@ -7,6 +9,6 @@ type ModalHeaderProps = {
|
|
|
7
9
|
/**
|
|
8
10
|
* @experimental This component is experimental and is subject to change.
|
|
9
11
|
*/
|
|
10
|
-
export declare const ModalHeader: ({ onClose, rightAction, title }: ModalHeaderProps) => React.JSX.Element;
|
|
12
|
+
export declare const ModalHeader: ({ onClose, rightAction, title, additionalCloseButtonProps, }: ModalHeaderProps) => React.JSX.Element;
|
|
11
13
|
export {};
|
|
12
14
|
//# sourceMappingURL=ModalHeader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalHeader.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ChannelDetails/components/modal/ModalHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ModalHeader.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ChannelDetails/components/modal/ModalHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAMvC,OAAO,EAAU,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAEhE,KAAK,gBAAgB,GAAG;IACtB,0BAA0B,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAClD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,8DAKzB,gBAAgB,sBAqClB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type Attachment, type MessageResponse } from 'stream-chat';
|
|
3
|
+
/**
|
|
4
|
+
* The shape passed to `FileAttachmentItem`'s `onPress` callback, identifying the rendered
|
|
5
|
+
* attachment and the message it belongs to.
|
|
6
|
+
*
|
|
7
|
+
* @experimental This type is experimental and is subject to change.
|
|
8
|
+
*/
|
|
9
|
+
export type FileAttachmentItemPressParams = {
|
|
10
|
+
attachment: Attachment;
|
|
11
|
+
message: MessageResponse;
|
|
12
|
+
};
|
|
13
|
+
export type FileAttachmentItemProps = {
|
|
14
|
+
/** The file/audio attachment to render. */
|
|
15
|
+
attachment: Attachment;
|
|
16
|
+
/** The message the attachment belongs to. */
|
|
17
|
+
message: MessageResponse;
|
|
18
|
+
/**
|
|
19
|
+
* Fired with the pressed attachment and its message. When provided, this overrides the default
|
|
20
|
+
* behavior of opening the attachment's `asset_url`.
|
|
21
|
+
*/
|
|
22
|
+
onPress?: (params: FileAttachmentItemPressParams) => void;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @experimental This component is experimental and is subject to change.
|
|
26
|
+
*/
|
|
27
|
+
export declare const FileAttachmentItem: {
|
|
28
|
+
(props: FileAttachmentItemProps): React.JSX.Element;
|
|
29
|
+
displayName: string;
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=FileAttachmentItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileAttachmentItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ChannelDetails/components/navigation-section/FileAttachmentItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAOpE;;;;;GAKG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,EAAE,eAAe,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,2CAA2C;IAC3C,UAAU,EAAE,UAAU,CAAC;IACvB,6CAA6C;IAC7C,OAAO,EAAE,eAAe,CAAC;IACzB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,6BAA6B,KAAK,IAAI,CAAC;CAC3D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB;YAAW,uBAAuB;;CAyBhE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type SectionListProps } from 'react-native';
|
|
3
|
+
import { type FileAttachmentSection, type FileAttachmentTile } from '../../hooks/useFileAttachmentListSections';
|
|
4
|
+
export type FileAttachmentListProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Besides the existing default behavior of the file attachment list, you can attach
|
|
7
|
+
* additional props to the underlying React Native SectionList.
|
|
8
|
+
*
|
|
9
|
+
* See https://reactnative.dev/docs/sectionlist#props for the full list.
|
|
10
|
+
*/
|
|
11
|
+
additionalSectionListProps?: Partial<SectionListProps<FileAttachmentTile, FileAttachmentSection>>;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @experimental This component is experimental and is subject to change.
|
|
15
|
+
*/
|
|
16
|
+
export declare const FileAttachmentList: (props: FileAttachmentListProps) => React.JSX.Element | null;
|
|
17
|
+
//# sourceMappingURL=FileAttachmentList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileAttachmentList.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ChannelDetails/components/navigation-section/FileAttachmentList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AACjF,OAAO,EAGL,KAAK,gBAAgB,EAGtB,MAAM,cAAc,CAAC;AAuBtB,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EAExB,MAAM,2CAA2C,CAAC;AAEnD,MAAM,MAAM,uBAAuB,GAAG;IACpC;;;;;OAKG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,CAAC,CAAC;CACnG,CAAC;AA0HF;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,OAAO,uBAAuB,6BAehE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @experimental This component is experimental and is subject to change.
|
|
4
|
+
*/
|
|
5
|
+
export declare const FileAttachmentListLoadingSkeleton: {
|
|
6
|
+
(): React.JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=FileAttachmentListLoadingSkeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileAttachmentListLoadingSkeleton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ChannelDetails/components/navigation-section/FileAttachmentListLoadingSkeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B;;GAEG;AACH,eAAO,MAAM,iCAAiC;;;CAW7C,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type FileAttachmentListSectionHeaderProps = {
|
|
3
|
+
/** The already-formatted section title (e.g. "March 2026"). */
|
|
4
|
+
title: string;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* @experimental This component is experimental and is subject to change.
|
|
8
|
+
*/
|
|
9
|
+
export declare const FileAttachmentListSectionHeader: {
|
|
10
|
+
({ title, }: FileAttachmentListSectionHeaderProps): React.JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=FileAttachmentListSectionHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileAttachmentListSectionHeader.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ChannelDetails/components/navigation-section/FileAttachmentListSectionHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAMvC,MAAM,MAAM,oCAAoC,GAAG;IACjD,+DAA+D;IAC/D,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,+BAA+B;iBAEzC,oCAAoC;;CAatC,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Attachment, MessageResponse } from 'stream-chat';
|
|
3
|
+
/**
|
|
4
|
+
* The shape passed to `MediaItem`'s `onPress` callback, identifying the rendered attachment, the
|
|
5
|
+
* message it belongs to, and the tile's native node handle (used as the open-animation origin when
|
|
6
|
+
* launching the fullscreen image gallery).
|
|
7
|
+
*
|
|
8
|
+
* @experimental This type is experimental and is subject to change.
|
|
9
|
+
*/
|
|
10
|
+
export type MediaItemPressParams = {
|
|
11
|
+
attachment: Attachment;
|
|
12
|
+
message: MessageResponse;
|
|
13
|
+
requesterNode: number | null;
|
|
14
|
+
};
|
|
15
|
+
export type MediaItemProps = {
|
|
16
|
+
/** The image/video attachment rendered by this tile. */
|
|
17
|
+
attachment: Attachment;
|
|
18
|
+
/** The message the attachment belongs to. */
|
|
19
|
+
message: MessageResponse;
|
|
20
|
+
/** Side length of the square tile, in points. */
|
|
21
|
+
size: number;
|
|
22
|
+
/**
|
|
23
|
+
* Fired with the tile's attachment and message when the tile is pressed. The media list passes
|
|
24
|
+
* its gallery-opening handler here via `renderItem`.
|
|
25
|
+
*/
|
|
26
|
+
onPress?: (params: MediaItemPressParams) => void;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @experimental This component is experimental and is subject to change.
|
|
30
|
+
*/
|
|
31
|
+
export declare const MediaItem: {
|
|
32
|
+
(props: MediaItemProps): React.JSX.Element;
|
|
33
|
+
displayName: string;
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=MediaItem.d.ts.map
|
package/lib/typescript/components/ChannelDetails/components/navigation-section/MediaItem.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MediaItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ChannelDetails/components/navigation-section/MediaItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAG/C,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAa/D;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,EAAE,eAAe,CAAC;IACzB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,wDAAwD;IACxD,UAAU,EAAE,UAAU,CAAC;IACvB,6CAA6C;IAC7C,OAAO,EAAE,eAAe,CAAC;IACzB,iDAAiD;IACjD,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAC;CAClD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS;YAAW,cAAc;;CAsE9C,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type FlatListProps } from 'react-native';
|
|
3
|
+
import { type MediaTile } from '../../hooks/useMediaList';
|
|
4
|
+
export type MediaListProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Besides the existing default behavior of the media list, you can attach additional props to
|
|
7
|
+
* the underlying React Native FlatList.
|
|
8
|
+
*
|
|
9
|
+
* See https://reactnative.dev/docs/flatlist#props for the full list.
|
|
10
|
+
*/
|
|
11
|
+
additionalFlatListProps?: Partial<FlatListProps<MediaTile>>;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @experimental This component is experimental and is subject to change.
|
|
15
|
+
*/
|
|
16
|
+
export declare const MediaList: (props: MediaListProps) => React.JSX.Element | null;
|
|
17
|
+
//# sourceMappingURL=MediaList.d.ts.map
|
package/lib/typescript/components/ChannelDetails/components/navigation-section/MediaList.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MediaList.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ChannelDetails/components/navigation-section/MediaList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AACjF,OAAO,EAGL,KAAK,aAAa,EAInB,MAAM,cAAc,CAAC;AA6BtB,OAAO,EAAE,KAAK,SAAS,EAAgB,MAAM,0BAA0B,CAAC;AAKxE,MAAM,MAAM,cAAc,GAAG;IAC3B;;;;;OAKG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,CAAC;CAC7D,CAAC;AAyJF;;GAEG;AACH,eAAO,MAAM,SAAS,GAAI,OAAO,cAAc,6BAe9C,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Grid of shimmering placeholder tiles shown while the media list is loading.
|
|
4
|
+
*
|
|
5
|
+
* @experimental This component is experimental and is subject to change.
|
|
6
|
+
*/
|
|
7
|
+
export declare const MediaListLoadingSkeleton: {
|
|
8
|
+
(): React.JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=MediaListLoadingSkeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MediaListLoadingSkeleton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ChannelDetails/components/navigation-section/MediaListLoadingSkeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAYvC;;;;GAIG;AACH,eAAO,MAAM,wBAAwB;;;CA2BpC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Channel, MessageResponse } from 'stream-chat';
|
|
3
|
+
import { ChannelPreviewStatusProps } from '../../../ChannelPreview/ChannelPreviewStatus';
|
|
4
|
+
export type PinnedMessageItemProps = {
|
|
5
|
+
/** The channel the pinned message belongs to. */
|
|
6
|
+
channel: Channel;
|
|
7
|
+
/** The pinned message to render. */
|
|
8
|
+
message: MessageResponse;
|
|
9
|
+
} & {
|
|
10
|
+
formatMessageDate?: ChannelPreviewStatusProps['formatLatestMessageDate'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* @experimental This component is experimental and is subject to change.
|
|
14
|
+
*/
|
|
15
|
+
export declare const PinnedMessageItem: {
|
|
16
|
+
(props: PinnedMessageItemProps): React.JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=PinnedMessageItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PinnedMessageItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ChannelDetails/components/navigation-section/PinnedMessageItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAK5D,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAGzF,MAAM,MAAM,sBAAsB,GAAG;IACnC,iDAAiD;IACjD,OAAO,EAAE,OAAO,CAAC;IACjB,oCAAoC;IACpC,OAAO,EAAE,eAAe,CAAC;CAC1B,GAAG;IAAE,iBAAiB,CAAC,EAAE,yBAAyB,CAAC,yBAAyB,CAAC,CAAA;CAAE,CAAC;AAEjF;;GAEG;AACH,eAAO,MAAM,iBAAiB;YAAW,sBAAsB;;CAsC9D,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type FlatListProps } from 'react-native';
|
|
3
|
+
import type { MessageResponse } from 'stream-chat';
|
|
4
|
+
import { SearchInputProps } from '../../../UIComponents/SearchInput';
|
|
5
|
+
export type PinnedMessageListProps = {
|
|
6
|
+
/**
|
|
7
|
+
* Besides the existing default behavior of the pinned message list, you can attach
|
|
8
|
+
* additional props to the underlying React Native FlatList.
|
|
9
|
+
*
|
|
10
|
+
* See https://reactnative.dev/docs/flatlist#props for the full list.
|
|
11
|
+
*/
|
|
12
|
+
additionalFlatListProps?: Partial<FlatListProps<MessageResponse>>;
|
|
13
|
+
searchInputProps?: SearchInputProps;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* @experimental This component is experimental and is subject to change.
|
|
17
|
+
*/
|
|
18
|
+
export declare const PinnedMessageList: (props: PinnedMessageListProps) => React.JSX.Element | null;
|
|
19
|
+
//# sourceMappingURL=PinnedMessageList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PinnedMessageList.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ChannelDetails/components/navigation-section/PinnedMessageList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AACjF,OAAO,EAA+B,KAAK,aAAa,EAAoB,MAAM,cAAc,CAAC;AAEjG,OAAO,KAAK,EAAE,eAAe,EAAqB,MAAM,aAAa,CAAC;AAqBtE,OAAO,EAAe,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAElF,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;;;OAKG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC,CAAC;IAClE,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC,CAAC;AA6HF;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,OAAO,sBAAsB,6BAe9D,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @experimental This component is experimental and is subject to change.
|
|
4
|
+
*/
|
|
5
|
+
export declare const PinnedMessageListLoadingSkeleton: {
|
|
6
|
+
(): React.JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=PinnedMessageListLoadingSkeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PinnedMessageListLoadingSkeleton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ChannelDetails/components/navigation-section/PinnedMessageListLoadingSkeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B;;GAEG;AACH,eAAO,MAAM,gCAAgC;;;CAW5C,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './FileAttachmentItem';
|
|
2
|
+
export * from './FileAttachmentList';
|
|
3
|
+
export * from './FileAttachmentListLoadingSkeleton';
|
|
4
|
+
export * from './FileAttachmentListSectionHeader';
|
|
5
|
+
export * from './MediaItem';
|
|
6
|
+
export * from './MediaList';
|
|
7
|
+
export * from './MediaListLoadingSkeleton';
|
|
8
|
+
export * from './PinnedMessageItem';
|
|
9
|
+
export * from './PinnedMessageList';
|
|
10
|
+
export * from './PinnedMessageListLoadingSkeleton';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ChannelDetails/components/navigation-section/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oCAAoC,CAAC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export * from './useChannelDetailsActionItems';
|
|
2
|
+
export * from './useChannelDetailsNavigationItems';
|
|
2
3
|
export * from './useChannelDetailsMemberStatusText';
|
|
3
4
|
export * from './useChannelDetailsMembersPreview';
|
|
4
5
|
export * from './useEditChannelImage';
|
|
6
|
+
export * from './useFileAttachmentListSections';
|
|
7
|
+
export * from './useMediaList';
|
|
5
8
|
export * from './useUserActivityStatus';
|
|
6
9
|
export * from './members';
|
|
7
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChannelDetails/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChannelDetails/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc,uBAAuB,CAAC;AACtC,cAAc,iCAAiC,CAAC;AAChD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { TranslationContextValue } from '../../../contexts/translationContext/TranslationContext';
|
|
3
|
+
import type { IconProps } from '../../../icons/utils/base';
|
|
4
|
+
/**
|
|
5
|
+
* Identifies a navigation row. The literals are the built-in sections rendered by default;
|
|
6
|
+
* consumers can also add their own rows with arbitrary section identifiers via `getNavigationItems`,
|
|
7
|
+
* so any string is allowed.
|
|
8
|
+
*
|
|
9
|
+
* @experimental This type is experimental and is subject to change.
|
|
10
|
+
*/
|
|
11
|
+
export type ChannelDetailsNavigationSectionType = 'pinned-messages' | 'photos-and-videos' | 'files' | string;
|
|
12
|
+
/**
|
|
13
|
+
* A single row in the channel details navigation section.
|
|
14
|
+
*
|
|
15
|
+
* @experimental This type is experimental and is subject to change.
|
|
16
|
+
*/
|
|
17
|
+
export type ChannelDetailsNavigationItem = {
|
|
18
|
+
/** Icon rendered at the start of the row and reused in the built-in modal header. */
|
|
19
|
+
Icon: React.ComponentType<IconProps>;
|
|
20
|
+
/** Already-translated label rendered for the row and its built-in modal header. */
|
|
21
|
+
label: string;
|
|
22
|
+
/** Identifies which built-in section this row represents. */
|
|
23
|
+
section: ChannelDetailsNavigationSectionType;
|
|
24
|
+
/**
|
|
25
|
+
* Fired when the user taps the row. Leave unset to keep the built-in behavior (opening the
|
|
26
|
+
* built-in modal for the section); set it to route the row somewhere else (e.g. your own screen).
|
|
27
|
+
*/
|
|
28
|
+
onPress?: () => void;
|
|
29
|
+
};
|
|
30
|
+
export type ChannelDetailsNavigationItemsContext = {
|
|
31
|
+
t: TranslationContextValue['t'];
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Customizes the navigation rows rendered by `ChannelDetailsNavigationSection`. Receives the
|
|
35
|
+
* built-in `defaultItems` (and a `context`) and returns the items to render. Map over
|
|
36
|
+
* `defaultItems` to set a row's `onPress` (e.g. to push your own screen), or add/remove rows. Any
|
|
37
|
+
* row whose `onPress` you leave unset keeps its built-in behavior (opening the built-in modal) —
|
|
38
|
+
* including sections added in future SDK versions.
|
|
39
|
+
*
|
|
40
|
+
* @experimental This type is experimental and is subject to change.
|
|
41
|
+
*/
|
|
42
|
+
export type GetChannelDetailsNavigationItems = (params: {
|
|
43
|
+
context: ChannelDetailsNavigationItemsContext;
|
|
44
|
+
defaultItems: ChannelDetailsNavigationItem[];
|
|
45
|
+
}) => ChannelDetailsNavigationItem[];
|
|
46
|
+
export declare const getChannelDetailsNavigationItems: GetChannelDetailsNavigationItems;
|
|
47
|
+
/**
|
|
48
|
+
* Builds the navigation rows rendered by `ChannelDetailsNavigationSection`. Returns the items as a
|
|
49
|
+
* plain array — the section component owns the built-in modal and supplies the default open-modal
|
|
50
|
+
* behavior for any row without a custom `onPress`. Customize the rows by passing `getNavigationItems`
|
|
51
|
+
* to `ChannelDetails` (see {@link GetChannelDetailsNavigationItems}).
|
|
52
|
+
*
|
|
53
|
+
* @experimental This hook is experimental and is subject to change.
|
|
54
|
+
*/
|
|
55
|
+
export declare const useChannelDetailsNavigationItems: () => ChannelDetailsNavigationItem[];
|
|
56
|
+
//# sourceMappingURL=useChannelDetailsNavigationItems.d.ts.map
|
package/lib/typescript/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useChannelDetailsNavigationItems.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChannelDetails/hooks/useChannelDetailsNavigationItems.ts"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yDAAyD,CAAC;AAMvG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAE3D;;;;;;GAMG;AACH,MAAM,MAAM,mCAAmC,GAC3C,iBAAiB,GACjB,mBAAmB,GACnB,OAAO,GACP,MAAM,CAAC;AAEX;;;;GAIG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC,qFAAqF;IACrF,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACrC,mFAAmF;IACnF,KAAK,EAAE,MAAM,CAAC;IACd,6DAA6D;IAC7D,OAAO,EAAE,mCAAmC,CAAC;IAC7C;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAiBF,MAAM,MAAM,oCAAoC,GAAG;IACjD,CAAC,EAAE,uBAAuB,CAAC,GAAG,CAAC,CAAC;CACjC,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,MAAM,gCAAgC,GAAG,CAAC,MAAM,EAAE;IACtD,OAAO,EAAE,oCAAoC,CAAC;IAC9C,YAAY,EAAE,4BAA4B,EAAE,CAAC;CAC9C,KAAK,4BAA4B,EAAE,CAAC;AAErC,eAAO,MAAM,gCAAgC,EAAE,gCAE7B,CAAC;AAEnB;;;;;;;GAOG;AACH,eAAO,MAAM,gCAAgC,QAAO,4BAA4B,EAmB/E,CAAC"}
|