stream-chat-react-native-core 9.4.0-beta.11 → 9.4.0-beta.12
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/components/ImageGalleryHeader.js +23 -15
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.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/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/components/ImageGalleryHeader.js +23 -15
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.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/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/components/ImageGalleryHeader.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/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/components/ImageGalleryHeader.tsx +21 -18
- 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/version.json +1 -1
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"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type Attachment, type MessageResponse } from 'stream-chat';
|
|
2
|
+
/**
|
|
3
|
+
* A single file/audio attachment paired with the message it belongs to. The file attachment list
|
|
4
|
+
* renders one row per attachment, so a message with multiple file attachments yields multiple rows.
|
|
5
|
+
*
|
|
6
|
+
* @experimental This type is experimental and is subject to change.
|
|
7
|
+
*/
|
|
8
|
+
export type FileAttachmentTile = {
|
|
9
|
+
attachment: Attachment;
|
|
10
|
+
message: MessageResponse;
|
|
11
|
+
};
|
|
12
|
+
export type FileAttachmentSection = {
|
|
13
|
+
data: FileAttachmentTile[];
|
|
14
|
+
title: string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Gathers and filters the file/audio attachments from a list of messages, then groups them into
|
|
18
|
+
* newest-first month sections for the file attachment list. Each section's `data` is a flat list
|
|
19
|
+
* of `{ attachment, message }` tiles; messages without renderable file attachments are skipped.
|
|
20
|
+
*
|
|
21
|
+
* The month label is produced through the shared `getDateString` + translation-key
|
|
22
|
+
* pipeline used by message timestamps (see `useUserActivityStatus`), so the format
|
|
23
|
+
* follows the configured locale and can be customized via the
|
|
24
|
+
* `timestamp/FileAttachmentListSection` translation key.
|
|
25
|
+
* @experimental This hook is experimental and is subject to change.
|
|
26
|
+
*/
|
|
27
|
+
export declare const useFileAttachmentListSections: (messages?: MessageResponse[]) => FileAttachmentSection[];
|
|
28
|
+
//# sourceMappingURL=useFileAttachmentListSections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFileAttachmentListSections.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChannelDetails/hooks/useFileAttachmentListSections.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,UAAU,EAIf,KAAK,eAAe,EACrB,MAAM,aAAa,CAAC;AAKrB;;;;;GAKG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAAE,UAAU,EAAE,UAAU,CAAC;IAAC,OAAO,EAAE,eAAe,CAAA;CAAE,CAAC;AAEtF,MAAM,MAAM,qBAAqB,GAAG;IAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAclF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,6BAA6B,GACxC,WAAW,eAAe,EAAE,KAC3B,qBAAqB,EA8BvB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type Attachment, type MessageResponse } from 'stream-chat';
|
|
2
|
+
/**
|
|
3
|
+
* A single image/video attachment paired with the message it belongs to. The media grid renders
|
|
4
|
+
* one tile per attachment, so a message with multiple media attachments yields multiple tiles.
|
|
5
|
+
*
|
|
6
|
+
* @experimental This type is experimental and is subject to change.
|
|
7
|
+
*/
|
|
8
|
+
export type MediaTile = {
|
|
9
|
+
attachment: Attachment;
|
|
10
|
+
message: MessageResponse;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Gathers and filters the image/video attachments from a list of messages into a flat list of
|
|
14
|
+
* media tiles, ready to render in the media grid. Scraped/OG link-preview attachments and
|
|
15
|
+
* non-media attachments are excluded.
|
|
16
|
+
*
|
|
17
|
+
* @experimental This hook is experimental and is subject to change.
|
|
18
|
+
*/
|
|
19
|
+
export declare const useMediaList: (messages?: MessageResponse[]) => MediaTile[];
|
|
20
|
+
//# sourceMappingURL=useMediaList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMediaList.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChannelDetails/hooks/useMediaList.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,UAAU,EAAoB,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAItF;;;;;GAKG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,EAAE,eAAe,CAAC;CAC1B,CAAC;AA2BF;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,GAAI,WAAW,eAAe,EAAE,KAAG,SAAS,EACjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageGalleryHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/ImageGallery/components/ImageGalleryHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ImageGalleryHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/ImageGallery/components/ImageGalleryHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAOxE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAkBvD,eAAO,MAAM,kBAAkB;YAAW,uBAAuB;;CAqEhE,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconProps } from '../../icons/utils/base';
|
|
3
|
+
export type EmptyListProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Icon component to render. Its size and color are set by `EmptyList`.
|
|
6
|
+
*/
|
|
7
|
+
icon: React.ComponentType<IconProps>;
|
|
8
|
+
/**
|
|
9
|
+
* Title text shown below the icon.
|
|
10
|
+
*/
|
|
11
|
+
title: string;
|
|
12
|
+
/**
|
|
13
|
+
* Optional supporting text shown below the title.
|
|
14
|
+
*/
|
|
15
|
+
subtitle?: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* @experimental This component is experimental and is subject to change.
|
|
19
|
+
*/
|
|
20
|
+
export declare const EmptyList: {
|
|
21
|
+
({ icon: Icon, subtitle, title }: EmptyListProps): React.JSX.Element;
|
|
22
|
+
displayName: string;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=EmptyList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyList.d.ts","sourceRoot":"","sources":["../../../../src/components/UIComponents/EmptyList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGnD,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACrC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS;sCAAqC,cAAc;;CAqBxE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/UIComponents/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kCAAkC,CAAC;AACjD,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/UIComponents/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kCAAkC,CAAC;AACjD,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
import { Channel, MessageSearchSource } from 'stream-chat';
|
|
3
|
+
/**
|
|
4
|
+
* @experimental This API is experimental and is subject to change.
|
|
5
|
+
*/
|
|
6
|
+
export type ChannelFileAttachmentListContextValue = {
|
|
7
|
+
channel: Channel;
|
|
8
|
+
searchSource: MessageSearchSource;
|
|
9
|
+
};
|
|
10
|
+
export declare const ChannelFileAttachmentListContext: React.Context<ChannelFileAttachmentListContextValue>;
|
|
11
|
+
/**
|
|
12
|
+
* @experimental This API is experimental and is subject to change.
|
|
13
|
+
*/
|
|
14
|
+
export declare const ChannelFileAttachmentListProvider: ({ channel, children, }: PropsWithChildren<{
|
|
15
|
+
channel: Channel;
|
|
16
|
+
}>) => React.JSX.Element;
|
|
17
|
+
/**
|
|
18
|
+
* @experimental This API is experimental and is subject to change.
|
|
19
|
+
*/
|
|
20
|
+
export declare const useChannelFileAttachmentListContext: () => ChannelFileAttachmentListContextValue;
|
|
21
|
+
//# sourceMappingURL=ChannelFileAttachmentListContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChannelFileAttachmentListContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/channelFileAttachmentListContext/ChannelFileAttachmentListContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAwB,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAM3D;;GAEG;AACH,MAAM,MAAM,qCAAqC,GAAG;IAClD,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,mBAAmB,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,gCAAgC,sDAE5C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iCAAiC,GAAI,wBAG/C,iBAAiB,CAAC;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,sBAuBzC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mCAAmC,6CAY/C,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
import { Channel, MessageSearchSource } from 'stream-chat';
|
|
3
|
+
/**
|
|
4
|
+
* @experimental This API is experimental and is subject to change.
|
|
5
|
+
*/
|
|
6
|
+
export type ChannelMediaListContextValue = {
|
|
7
|
+
channel: Channel;
|
|
8
|
+
searchSource: MessageSearchSource;
|
|
9
|
+
};
|
|
10
|
+
export declare const ChannelMediaListContext: React.Context<ChannelMediaListContextValue>;
|
|
11
|
+
/**
|
|
12
|
+
* @experimental This API is experimental and is subject to change.
|
|
13
|
+
*/
|
|
14
|
+
export declare const ChannelMediaListProvider: ({ channel, children, }: PropsWithChildren<{
|
|
15
|
+
channel: Channel;
|
|
16
|
+
}>) => React.JSX.Element;
|
|
17
|
+
/**
|
|
18
|
+
* @experimental This API is experimental and is subject to change.
|
|
19
|
+
*/
|
|
20
|
+
export declare const useChannelMediaListContext: () => ChannelMediaListContextValue;
|
|
21
|
+
//# sourceMappingURL=ChannelMediaListContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChannelMediaListContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/channelMediaListContext/ChannelMediaListContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAwB,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAM3D;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,mBAAmB,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,uBAAuB,6CAEnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,GAAI,wBAGtC,iBAAiB,CAAC;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,sBAwBzC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B,oCAYtC,CAAC"}
|
package/lib/typescript/contexts/channelPinnedMessageListContext/ChannelPinnedMessageListContext.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
import { Channel, MessageSearchSource } from 'stream-chat';
|
|
3
|
+
/**
|
|
4
|
+
* @experimental This API is experimental and is subject to change.
|
|
5
|
+
*/
|
|
6
|
+
export type ChannelPinnedMessageListContextValue = {
|
|
7
|
+
channel: Channel;
|
|
8
|
+
searchSource: MessageSearchSource;
|
|
9
|
+
};
|
|
10
|
+
export declare const ChannelPinnedMessageListContext: React.Context<ChannelPinnedMessageListContextValue>;
|
|
11
|
+
/**
|
|
12
|
+
* @experimental This API is experimental and is subject to change.
|
|
13
|
+
*/
|
|
14
|
+
export declare const ChannelPinnedMessageListProvider: ({ channel, children, }: PropsWithChildren<{
|
|
15
|
+
channel: Channel;
|
|
16
|
+
}>) => React.JSX.Element;
|
|
17
|
+
/**
|
|
18
|
+
* @experimental This API is experimental and is subject to change.
|
|
19
|
+
*/
|
|
20
|
+
export declare const useChannelPinnedMessageListContext: () => ChannelPinnedMessageListContextValue;
|
|
21
|
+
//# sourceMappingURL=ChannelPinnedMessageListContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChannelPinnedMessageListContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/channelPinnedMessageListContext/ChannelPinnedMessageListContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAwB,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAM3D;;GAEG;AACH,MAAM,MAAM,oCAAoC,GAAG;IACjD,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,mBAAmB,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,+BAA+B,qDAE3C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gCAAgC,GAAI,wBAG9C,iBAAiB,CAAC;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,sBA4BzC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kCAAkC,4CAY9C,CAAC"}
|
|
@@ -267,15 +267,32 @@ declare const components: {
|
|
|
267
267
|
ChannelDetailsActionsSection: () => React.JSX.Element | null;
|
|
268
268
|
ChannelDetailsActionItem: ({ Icon, destructive, label, onPress, testID, trailing, }: import("../..").ChannelDetailsActionItemProps) => React.JSX.Element;
|
|
269
269
|
ChannelDetailsMemberSection: () => React.JSX.Element;
|
|
270
|
+
ChannelDetailsNavigationSection: () => React.JSX.Element;
|
|
270
271
|
ChannelDetailsProfile: () => React.JSX.Element;
|
|
271
272
|
ChannelDetailsContent: () => React.JSX.Element;
|
|
272
|
-
|
|
273
|
+
ChannelDetailsEditButton: () => React.JSX.Element | null;
|
|
274
|
+
ChannelDetailsNavHeader: ({ action, title }: import("../..").ChannelDetailsNavHeaderProps) => React.JSX.Element;
|
|
273
275
|
ChannelEditDetails: () => React.JSX.Element;
|
|
274
276
|
ChannelEditImageSheet: ({ onClose, visible }: import("../..").ChannelEditImageSheetProps) => React.JSX.Element;
|
|
275
277
|
ChannelEditName: () => React.JSX.Element;
|
|
276
278
|
ChannelMemberActionsSheet: ({ member, onClose, visible, }: import("../..").ChannelMemberActionsSheetProps) => React.JSX.Element;
|
|
277
279
|
ChannelMemberItem: ({ member, onPress, size, testID, }: import("../..").ChannelMemberItemProps) => React.JSX.Element | null;
|
|
278
280
|
ChannelMemberList: ({ additionalFlatListProps }?: import("../..").ChannelMemberListProps) => React.JSX.Element;
|
|
281
|
+
FileAttachmentItem: {
|
|
282
|
+
(props: import("../..").FileAttachmentItemProps): React.JSX.Element;
|
|
283
|
+
displayName: string;
|
|
284
|
+
};
|
|
285
|
+
FileAttachmentList: (props: import("../..").FileAttachmentListProps) => React.JSX.Element | null;
|
|
286
|
+
MediaItem: {
|
|
287
|
+
(props: import("../..").MediaItemProps): React.JSX.Element;
|
|
288
|
+
displayName: string;
|
|
289
|
+
};
|
|
290
|
+
MediaList: (props: import("../..").MediaListProps) => React.JSX.Element | null;
|
|
291
|
+
PinnedMessageItem: {
|
|
292
|
+
(props: import("../..").PinnedMessageItemProps): React.JSX.Element;
|
|
293
|
+
displayName: string;
|
|
294
|
+
};
|
|
295
|
+
PinnedMessageList: (props: import("../..").PinnedMessageListProps) => React.JSX.Element | null;
|
|
279
296
|
ThreadMessageComposer: {
|
|
280
297
|
(props: import("../..").MessageComposerProps): React.JSX.Element;
|
|
281
298
|
displayName: string;
|
|
@@ -316,7 +333,6 @@ declare const components: {
|
|
|
316
333
|
*/
|
|
317
334
|
export interface OptionalComponentOverrides {
|
|
318
335
|
AttachmentPickerIOSSelectMorePhotos?: React.ComponentType;
|
|
319
|
-
ChannelDetailsNavigationSection?: React.ComponentType;
|
|
320
336
|
ChatLoadingIndicator?: React.ComponentType | null;
|
|
321
337
|
CreatePollContent?: React.ComponentType;
|
|
322
338
|
Input?: React.ComponentType<{
|