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
|
@@ -162,6 +162,7 @@
|
|
|
162
162
|
"duration/Remind Me": "{{ milliseconds | durationFormatter(withSuffix: true) }}",
|
|
163
163
|
"replied to": "に返信しました",
|
|
164
164
|
"timestamp/ChannelPreviewStatus": "{{ timestamp | timestampFormatter(calendar: true; calendarFormats: {\"lastDay\":\"[昨日]\",\"lastWeek\":\"dddd\",\"nextDay\":\"[明日]\",\"nextWeek\":\"dddd [の] LT\",\"sameDay\":\"LT\",\"sameElse\":\"L\"}) }}",
|
|
165
|
+
"timestamp/FileAttachmentListSection": "{{ timestamp | timestampFormatter(format: MMMM YYYY) }}",
|
|
165
166
|
"timestamp/ImageGalleryHeader": "{{ timestamp | timestampFormatter(calendar: true) }}",
|
|
166
167
|
"timestamp/InlineDateSeparator": "{{ timestamp | timestampFormatter(calendar: true) }}",
|
|
167
168
|
"timestamp/MessageEditedTimestamp": "{{ timestamp | timestampFormatter(calendar: true) }}",
|
|
@@ -388,6 +389,7 @@
|
|
|
388
389
|
"Failed to block user": "ユーザーのブロックに失敗しました",
|
|
389
390
|
"Failed to delete channel": "チャンネルの削除に失敗しました",
|
|
390
391
|
"Failed to leave channel": "チャンネルの退出に失敗しました",
|
|
392
|
+
"Failed to load pinned messages": "ピン留めされたメッセージの読み込みに失敗しました",
|
|
391
393
|
"Failed to load users": "ユーザーの読み込みに失敗しました",
|
|
392
394
|
"Failed to play the recording": "録音の再生に失敗しました",
|
|
393
395
|
"Failed to update channel archive status": "チャンネルのアーカイブ状態の更新に失敗しました",
|
|
@@ -437,6 +439,15 @@
|
|
|
437
439
|
"a11y/Gallery Image": "ギャラリー画像",
|
|
438
440
|
"a11y/Gallery Video": "ギャラリービデオ",
|
|
439
441
|
"a11y/{{position}} of {{count}}": "{{count}} 中 {{position}}",
|
|
442
|
+
"No pinned messages": "ピン留めされたメッセージはありません",
|
|
443
|
+
"a11y/Search pinned messages": "ピン留めされたメッセージを検索",
|
|
444
|
+
"Long-press a message to pin it to the chat": "メッセージを長押ししてチャットにピン留めします",
|
|
445
|
+
"No photos or videos": "写真や動画はありません",
|
|
446
|
+
"Share a photo or video to see it here": "写真や動画を共有すると、ここに表示されます",
|
|
447
|
+
"Failed to load media": "メディアの読み込みに失敗しました",
|
|
448
|
+
"No files": "ファイルがありません",
|
|
449
|
+
"Share a file to see it here": "ファイルを共有すると、ここに表示されます",
|
|
450
|
+
"Failed to load files": "ファイルの読み込みに失敗しました",
|
|
440
451
|
"Notify all {{ role }} members": "Notify all {{ role }} members",
|
|
441
452
|
"a11y/Command suggestions available": "Command suggestions available",
|
|
442
453
|
"a11y/Emoji suggestions available": "Emoji suggestions available",
|
|
@@ -162,6 +162,7 @@
|
|
|
162
162
|
"duration/Remind Me": "{{ milliseconds | durationFormatter(withSuffix: true) }}",
|
|
163
163
|
"replied to": "에 답장했습니다",
|
|
164
164
|
"timestamp/ChannelPreviewStatus": "{{ timestamp | timestampFormatter(calendar: true; calendarFormats: {\"lastDay\":\"[어제]\",\"lastWeek\":\"dddd\",\"nextDay\":\"[내일]\",\"nextWeek\":\"dddd [LT에]\",\"sameDay\":\"LT\",\"sameElse\":\"L\"}) }}",
|
|
165
|
+
"timestamp/FileAttachmentListSection": "{{ timestamp | timestampFormatter(format: MMMM YYYY) }}",
|
|
165
166
|
"timestamp/ImageGalleryHeader": "{{ timestamp | timestampFormatter(calendar: true) }}",
|
|
166
167
|
"timestamp/InlineDateSeparator": "{{ timestamp | timestampFormatter(calendar: true) }}",
|
|
167
168
|
"timestamp/MessageEditedTimestamp": "{{ timestamp | timestampFormatter(calendar: true) }}",
|
|
@@ -388,6 +389,7 @@
|
|
|
388
389
|
"Failed to block user": "사용자 차단에 실패했습니다",
|
|
389
390
|
"Failed to delete channel": "채널 삭제에 실패했습니다",
|
|
390
391
|
"Failed to leave channel": "채널 나가기에 실패했습니다",
|
|
392
|
+
"Failed to load pinned messages": "고정된 메시지를 불러오지 못했습니다",
|
|
391
393
|
"Failed to load users": "사용자 불러오기에 실패했습니다",
|
|
392
394
|
"Failed to play the recording": "녹음 재생에 실패했습니다",
|
|
393
395
|
"Failed to update channel archive status": "채널 보관 상태 업데이트에 실패했습니다",
|
|
@@ -437,6 +439,15 @@
|
|
|
437
439
|
"a11y/Gallery Image": "갤러리 이미지",
|
|
438
440
|
"a11y/Gallery Video": "갤러리 동영상",
|
|
439
441
|
"a11y/{{position}} of {{count}}": "{{count}}개 중 {{position}}번째",
|
|
442
|
+
"No pinned messages": "고정된 메시지가 없습니다",
|
|
443
|
+
"a11y/Search pinned messages": "고정된 메시지 검색",
|
|
444
|
+
"Long-press a message to pin it to the chat": "메시지를 길게 눌러 채팅에 고정하세요",
|
|
445
|
+
"No photos or videos": "사진 또는 동영상 없음",
|
|
446
|
+
"Share a photo or video to see it here": "사진이나 동영상을 공유하면 여기에 표시됩니다",
|
|
447
|
+
"Failed to load media": "미디어를 불러오지 못했습니다",
|
|
448
|
+
"No files": "파일 없음",
|
|
449
|
+
"Share a file to see it here": "파일을 공유하면 여기에 표시됩니다",
|
|
450
|
+
"Failed to load files": "파일을 불러오지 못했습니다",
|
|
440
451
|
"Notify all {{ role }} members": "Notify all {{ role }} members",
|
|
441
452
|
"a11y/Command suggestions available": "Command suggestions available",
|
|
442
453
|
"a11y/Emoji suggestions available": "Emoji suggestions available",
|
|
@@ -162,6 +162,7 @@
|
|
|
162
162
|
"duration/Remind Me": "{{ milliseconds | durationFormatter(withSuffix: true) }}",
|
|
163
163
|
"replied to": "reageerde op",
|
|
164
164
|
"timestamp/ChannelPreviewStatus": "{{ timestamp | timestampFormatter(calendar: true; calendarFormats: {\"lastDay\":\"[Gisteren]\",\"lastWeek\":\"dddd\",\"nextDay\":\"[Morgen]\",\"nextWeek\":\"dddd [om] LT\",\"sameDay\":\"LT\",\"sameElse\":\"L\"}) }}",
|
|
165
|
+
"timestamp/FileAttachmentListSection": "{{ timestamp | timestampFormatter(format: MMMM YYYY) }}",
|
|
165
166
|
"timestamp/ImageGalleryHeader": "{{ timestamp | timestampFormatter(calendar: true) }}",
|
|
166
167
|
"timestamp/InlineDateSeparator": "{{ timestamp | timestampFormatter(calendar: true) }}",
|
|
167
168
|
"timestamp/MessageEditedTimestamp": "{{ timestamp | timestampFormatter(calendar: true) }}",
|
|
@@ -388,6 +389,7 @@
|
|
|
388
389
|
"Failed to block user": "Gebruiker blokkeren mislukt",
|
|
389
390
|
"Failed to delete channel": "Kanaal verwijderen mislukt",
|
|
390
391
|
"Failed to leave channel": "Kanaal verlaten mislukt",
|
|
392
|
+
"Failed to load pinned messages": "Vastgemaakte berichten laden mislukt",
|
|
391
393
|
"Failed to load users": "Gebruikers laden mislukt",
|
|
392
394
|
"Failed to play the recording": "Opname afspelen mislukt",
|
|
393
395
|
"Failed to update channel archive status": "Bijwerken van kanaalarchiefstatus mislukt",
|
|
@@ -437,6 +439,15 @@
|
|
|
437
439
|
"a11y/Gallery Image": "Galerij-afbeelding",
|
|
438
440
|
"a11y/Gallery Video": "Galerij-video",
|
|
439
441
|
"a11y/{{position}} of {{count}}": "{{position}} van {{count}}",
|
|
442
|
+
"No pinned messages": "Geen vastgemaakte berichten",
|
|
443
|
+
"a11y/Search pinned messages": "Zoek vastgemaakte berichten",
|
|
444
|
+
"Long-press a message to pin it to the chat": "Houd een bericht lang ingedrukt om het vast te pinnen in de chat",
|
|
445
|
+
"No photos or videos": "Geen foto's of video's",
|
|
446
|
+
"Share a photo or video to see it here": "Deel een foto of video om deze hier te zien",
|
|
447
|
+
"Failed to load media": "Media laden mislukt",
|
|
448
|
+
"No files": "Geen bestanden",
|
|
449
|
+
"Share a file to see it here": "Deel een bestand om het hier te zien",
|
|
450
|
+
"Failed to load files": "Bestanden laden mislukt",
|
|
440
451
|
"Notify all {{ role }} members": "Notify all {{ role }} members",
|
|
441
452
|
"a11y/Command suggestions available": "Command suggestions available",
|
|
442
453
|
"a11y/Emoji suggestions available": "Emoji suggestions available",
|
|
@@ -162,6 +162,7 @@
|
|
|
162
162
|
"duration/Remind Me": "{{ milliseconds | durationFormatter(withSuffix: true) }}",
|
|
163
163
|
"replied to": "respondeu a",
|
|
164
164
|
"timestamp/ChannelPreviewStatus": "{{ timestamp | timestampFormatter(calendar: true; calendarFormats: {\"lastDay\":\"[Ontem]\",\"lastWeek\":\"dddd\",\"nextDay\":\"[Amanhã]\",\"nextWeek\":\"dddd [às] LT\",\"sameDay\":\"LT\",\"sameElse\":\"L\"}) }}",
|
|
165
|
+
"timestamp/FileAttachmentListSection": "{{ timestamp | timestampFormatter(format: MMMM YYYY) }}",
|
|
165
166
|
"timestamp/ImageGalleryHeader": "{{ timestamp | timestampFormatter(calendar: true) }}",
|
|
166
167
|
"timestamp/InlineDateSeparator": "{{ timestamp | timestampFormatter(calendar: true) }}",
|
|
167
168
|
"timestamp/MessageEditedTimestamp": "{{ timestamp | timestampFormatter(calendar: true) }}",
|
|
@@ -388,6 +389,7 @@
|
|
|
388
389
|
"Failed to block user": "Falha ao bloquear usuário",
|
|
389
390
|
"Failed to delete channel": "Falha ao excluir o canal",
|
|
390
391
|
"Failed to leave channel": "Falha ao sair do canal",
|
|
392
|
+
"Failed to load pinned messages": "Falha ao carregar mensagens fixadas",
|
|
391
393
|
"Failed to load users": "Falha ao carregar usuários",
|
|
392
394
|
"Failed to play the recording": "Falha ao reproduzir a gravação",
|
|
393
395
|
"Failed to update channel archive status": "Falha ao atualizar o status de arquivamento do canal",
|
|
@@ -437,6 +439,15 @@
|
|
|
437
439
|
"a11y/Gallery Image": "Imagem da galeria",
|
|
438
440
|
"a11y/Gallery Video": "Vídeo da galeria",
|
|
439
441
|
"a11y/{{position}} of {{count}}": "{{position}} de {{count}}",
|
|
442
|
+
"No pinned messages": "Nenhuma mensagem fixada",
|
|
443
|
+
"a11y/Search pinned messages": "Pesquisar mensagens fixadas",
|
|
444
|
+
"Long-press a message to pin it to the chat": "Mantenha pressionada uma mensagem para fixá-la no chat",
|
|
445
|
+
"No photos or videos": "Nenhuma foto ou vídeo",
|
|
446
|
+
"Share a photo or video to see it here": "Compartilhe uma foto ou vídeo para vê-lo aqui",
|
|
447
|
+
"Failed to load media": "Falha ao carregar mídia",
|
|
448
|
+
"No files": "Nenhum arquivo",
|
|
449
|
+
"Share a file to see it here": "Compartilhe um arquivo para vê-lo aqui",
|
|
450
|
+
"Failed to load files": "Falha ao carregar os arquivos",
|
|
440
451
|
"Notify all {{ role }} members": "Notify all {{ role }} members",
|
|
441
452
|
"a11y/Command suggestions available": "Command suggestions available",
|
|
442
453
|
"a11y/Emoji suggestions available": "Emoji suggestions available",
|
|
@@ -162,6 +162,7 @@
|
|
|
162
162
|
"duration/Remind Me": "{{ milliseconds | durationFormatter(withSuffix: true) }}",
|
|
163
163
|
"replied to": "ответил на",
|
|
164
164
|
"timestamp/ChannelPreviewStatus": "{{ timestamp | timestampFormatter(calendar: true; calendarFormats: {\"lastDay\":\"[Вчера]\",\"lastWeek\":\"dddd\",\"nextDay\":\"[Завтра]\",\"nextWeek\":\"dddd [в] LT\",\"sameDay\":\"LT\",\"sameElse\":\"L\"}) }}",
|
|
165
|
+
"timestamp/FileAttachmentListSection": "{{ timestamp | timestampFormatter(format: MMMM YYYY) }}",
|
|
165
166
|
"timestamp/ImageGalleryHeader": "{{ timestamp | timestampFormatter(calendar: true) }}",
|
|
166
167
|
"timestamp/InlineDateSeparator": "{{ timestamp | timestampFormatter(calendar: true) }}",
|
|
167
168
|
"timestamp/MessageEditedTimestamp": "{{ timestamp | timestampFormatter(calendar: true) }}",
|
|
@@ -388,6 +389,7 @@
|
|
|
388
389
|
"Failed to block user": "Не удалось заблокировать пользователя",
|
|
389
390
|
"Failed to delete channel": "Не удалось удалить канал",
|
|
390
391
|
"Failed to leave channel": "Не удалось покинуть канал",
|
|
392
|
+
"Failed to load pinned messages": "Не удалось загрузить закреплённые сообщения",
|
|
391
393
|
"Failed to load users": "Не удалось загрузить пользователей",
|
|
392
394
|
"Failed to play the recording": "Не удалось воспроизвести запись",
|
|
393
395
|
"Failed to update channel archive status": "Не удалось обновить статус архивации канала",
|
|
@@ -437,6 +439,15 @@
|
|
|
437
439
|
"a11y/Gallery Image": "Изображение из галереи",
|
|
438
440
|
"a11y/Gallery Video": "Видео из галереи",
|
|
439
441
|
"a11y/{{position}} of {{count}}": "{{position}} из {{count}}",
|
|
442
|
+
"No pinned messages": "Нет закреплённых сообщений",
|
|
443
|
+
"a11y/Search pinned messages": "Поиск закреплённых сообщений",
|
|
444
|
+
"Long-press a message to pin it to the chat": "Нажмите и удерживайте сообщение, чтобы закрепить его в чате",
|
|
445
|
+
"No photos or videos": "Нет фото и видео",
|
|
446
|
+
"Share a photo or video to see it here": "Поделитесь фото или видео, чтобы увидеть их здесь",
|
|
447
|
+
"Failed to load media": "Не удалось загрузить медиафайлы",
|
|
448
|
+
"No files": "Нет файлов",
|
|
449
|
+
"Share a file to see it here": "Поделитесь файлом, чтобы увидеть его здесь",
|
|
450
|
+
"Failed to load files": "Не удалось загрузить файлы",
|
|
440
451
|
"Notify all {{ role }} members": "Notify all {{ role }} members",
|
|
441
452
|
"a11y/Command suggestions available": "Command suggestions available",
|
|
442
453
|
"a11y/Emoji suggestions available": "Emoji suggestions available",
|
|
@@ -162,6 +162,7 @@
|
|
|
162
162
|
"duration/Remind Me": "{{ milliseconds | durationFormatter(withSuffix: true) }}",
|
|
163
163
|
"replied to": "yanıtladı",
|
|
164
164
|
"timestamp/ChannelPreviewStatus": "{{ timestamp | timestampFormatter(calendar: true; calendarFormats: {\"lastDay\":\"[Dün]\",\"lastWeek\":\"dddd\",\"nextDay\":\"[Yarın]\",\"nextWeek\":\"dddd [saat] LT\",\"sameDay\":\"LT\",\"sameElse\":\"L\"}) }}",
|
|
165
|
+
"timestamp/FileAttachmentListSection": "{{ timestamp | timestampFormatter(format: MMMM YYYY) }}",
|
|
165
166
|
"timestamp/ImageGalleryHeader": "{{ timestamp | timestampFormatter(calendar: true) }}",
|
|
166
167
|
"timestamp/InlineDateSeparator": "{{ timestamp | timestampFormatter(calendar: true) }}",
|
|
167
168
|
"timestamp/MessageEditedTimestamp": "{{ timestamp | timestampFormatter(calendar: true) }}",
|
|
@@ -388,6 +389,7 @@
|
|
|
388
389
|
"Failed to block user": "Kullanıcı engellenemedi",
|
|
389
390
|
"Failed to delete channel": "Kanal silinemedi",
|
|
390
391
|
"Failed to leave channel": "Kanaldan çıkılamadı",
|
|
392
|
+
"Failed to load pinned messages": "Sabitlenmiş mesajlar yüklenemedi",
|
|
391
393
|
"Failed to load users": "Kullanıcılar yüklenemedi",
|
|
392
394
|
"Failed to play the recording": "Kayıt oynatılamadı",
|
|
393
395
|
"Failed to update channel archive status": "Kanal arşiv durumu güncellenemedi",
|
|
@@ -437,6 +439,15 @@
|
|
|
437
439
|
"a11y/Gallery Image": "Galeri görüntüsü",
|
|
438
440
|
"a11y/Gallery Video": "Galeri videosu",
|
|
439
441
|
"a11y/{{position}} of {{count}}": "{{count}} öğeden {{position}}",
|
|
442
|
+
"No pinned messages": "Sabitlenmiş mesaj yok",
|
|
443
|
+
"a11y/Search pinned messages": "Sabitlenmiş mesajları ara",
|
|
444
|
+
"Long-press a message to pin it to the chat": "Bir mesajı sohbete sabitlemek için uzun basın",
|
|
445
|
+
"No photos or videos": "Fotoğraf veya video yok",
|
|
446
|
+
"Share a photo or video to see it here": "Burada görmek için bir fotoğraf veya video paylaşın",
|
|
447
|
+
"Failed to load media": "Medya yüklenemedi",
|
|
448
|
+
"No files": "Dosya yok",
|
|
449
|
+
"Share a file to see it here": "Burada görmek için bir dosya paylaşın",
|
|
450
|
+
"Failed to load files": "Dosyalar yüklenemedi",
|
|
440
451
|
"Notify all {{ role }} members": "Notify all {{ role }} members",
|
|
441
452
|
"a11y/Command suggestions available": "Command suggestions available",
|
|
442
453
|
"a11y/Emoji suggestions available": "Emoji suggestions available",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"folder.d.ts","sourceRoot":"","sources":["../../../src/icons/folder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,eAAO,MAAM,MAAM,GAAI,0DAA0D,SAAS,sBAqBzF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/icons/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAE7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,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,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AACxC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC"}
|
|
@@ -208,6 +208,7 @@ export declare class Streami18n {
|
|
|
208
208
|
"Loading threads...": string;
|
|
209
209
|
"Loading...": string;
|
|
210
210
|
Location: string;
|
|
211
|
+
"Long-press a message to pin it to the chat": string;
|
|
211
212
|
"Mark as Unread": string;
|
|
212
213
|
"Maximum number of files reached": string;
|
|
213
214
|
"Message Reactions": string;
|
|
@@ -232,7 +233,10 @@ export declare class Streami18n {
|
|
|
232
233
|
"Failed to remove members": string;
|
|
233
234
|
Muted: string;
|
|
234
235
|
"No chats here yet\u2026": string;
|
|
236
|
+
"No files": string;
|
|
235
237
|
"No items exist": string;
|
|
238
|
+
"No photos or videos": string;
|
|
239
|
+
"No pinned messages": string;
|
|
236
240
|
"No threads here yet": string;
|
|
237
241
|
"No user found": string;
|
|
238
242
|
"Not supported": string;
|
|
@@ -246,6 +250,7 @@ export declare class Streami18n {
|
|
|
246
250
|
Options: string;
|
|
247
251
|
Photo: string;
|
|
248
252
|
"Photos and Videos": string;
|
|
253
|
+
"Share a photo or video to see it here": string;
|
|
249
254
|
"Pin to Conversation": string;
|
|
250
255
|
"Pinned by": string;
|
|
251
256
|
"Please allow Audio permissions in settings.": string;
|
|
@@ -306,6 +311,7 @@ export declare class Streami18n {
|
|
|
306
311
|
"duration/Remind Me": string;
|
|
307
312
|
"replied to": string;
|
|
308
313
|
"timestamp/ChannelPreviewStatus": string;
|
|
314
|
+
"timestamp/FileAttachmentListSection": string;
|
|
309
315
|
"timestamp/ImageGalleryHeader": string;
|
|
310
316
|
"timestamp/InlineDateSeparator": string;
|
|
311
317
|
"timestamp/MessageEditedTimestamp": string;
|
|
@@ -480,6 +486,7 @@ export declare class Streami18n {
|
|
|
480
486
|
"a11y/Select image": string;
|
|
481
487
|
"a11y/Select video": string;
|
|
482
488
|
"a11y/Send voice recording": string;
|
|
489
|
+
"a11y/Search pinned messages": string;
|
|
483
490
|
"a11y/Search users to add": string;
|
|
484
491
|
"a11y/Select {{name}}": string;
|
|
485
492
|
"a11y/{{name}} is already a member": string;
|
|
@@ -491,6 +498,7 @@ export declare class Streami18n {
|
|
|
491
498
|
"Contact Info": string;
|
|
492
499
|
Edit: string;
|
|
493
500
|
Files: string;
|
|
501
|
+
"Share a file to see it here": string;
|
|
494
502
|
"Group Info": string;
|
|
495
503
|
"timestamp/UserActivityStatus": string;
|
|
496
504
|
"Photos & Videos": string;
|
|
@@ -541,7 +549,10 @@ export declare class Streami18n {
|
|
|
541
549
|
"Failed to block user": string;
|
|
542
550
|
"Failed to delete channel": string;
|
|
543
551
|
"Failed to leave channel": string;
|
|
552
|
+
"Failed to load files": string;
|
|
553
|
+
"Failed to load media": string;
|
|
544
554
|
"Failed to load members": string;
|
|
555
|
+
"Failed to load pinned messages": string;
|
|
545
556
|
"Failed to load users": string;
|
|
546
557
|
"Failed to play the recording": string;
|
|
547
558
|
"Failed to update channel archive status": string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Streami18n.d.ts","sourceRoot":"","sources":["../../../../src/utils/i18n/Streami18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAa,EAAE,KAAK,IAAI,IAAI,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAElF,OAAO,KAAK,cAAc,MAAM,iBAAiB,CAAC;AAIlD,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAE/E,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAahD,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AAEzB;;;;GAIG;AACH,OAAO,iBAAiB,CAAC;AAmGzB,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,C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AAC;IA+BtC,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC;IASvD;;;OAGG;IACG,WAAW,CAAC,QAAQ,EAAE,MAAM;IAsBlC,2BAA2B,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,SAAS,KAAK,IAAI;;;IAW5D,8BAA8B,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,SAAS,KAAK,IAAI;;;IAW/D,iBAAiB,CAAC,SAAS,EAAE,SAAS;CAQvC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-react-native-core",
|
|
3
3
|
"description": "The official React Native and Expo components for Stream Chat, a service for building chat applications",
|
|
4
|
-
"version": "9.4.0-beta.
|
|
4
|
+
"version": "9.4.0-beta.12",
|
|
5
5
|
"author": {
|
|
6
6
|
"company": "Stream.io Inc",
|
|
7
7
|
"name": "Stream.io Inc"
|
|
@@ -3,6 +3,8 @@ import { ScrollView, StyleSheet, View } from 'react-native';
|
|
|
3
3
|
|
|
4
4
|
import type { Channel, ChannelMemberResponse } from 'stream-chat';
|
|
5
5
|
|
|
6
|
+
import type { GetChannelDetailsNavigationItems } from './hooks/useChannelDetailsNavigationItems';
|
|
7
|
+
|
|
6
8
|
import {
|
|
7
9
|
ChannelDetailsContextProvider,
|
|
8
10
|
type ChannelDetailsContextValue,
|
|
@@ -59,6 +61,15 @@ export type ChannelDetailsProps = {
|
|
|
59
61
|
* or add items — for example, to inject a "Send Direct Message" action in your app.
|
|
60
62
|
*/
|
|
61
63
|
getChannelMemberActionItems?: GetChannelMemberActionItems;
|
|
64
|
+
/**
|
|
65
|
+
* Customize the navigation rows rendered in the channel details navigation section.
|
|
66
|
+
*
|
|
67
|
+
* Receives the built-in `defaultItems` (and a `context`) and returns the rows to render.
|
|
68
|
+
* Map over `defaultItems` to override a row's `onPress` (e.g. to push your own screen) or
|
|
69
|
+
* to add/remove rows. Any row whose `onPress` you leave untouched keeps its built-in
|
|
70
|
+
* behavior (opening the built-in modal), including sections added in future SDK versions.
|
|
71
|
+
*/
|
|
72
|
+
getNavigationItems?: GetChannelDetailsNavigationItems;
|
|
62
73
|
/**
|
|
63
74
|
* Override the role label shown next to each member in the channel details screen.
|
|
64
75
|
*
|
|
@@ -112,6 +123,7 @@ export const ChannelDetailsContent = () => {
|
|
|
112
123
|
} = useTheme();
|
|
113
124
|
const {
|
|
114
125
|
ChannelDetailsActionsSection,
|
|
126
|
+
ChannelDetailsEditButton,
|
|
115
127
|
ChannelDetailsMemberSection,
|
|
116
128
|
ChannelDetailsNavigationSection,
|
|
117
129
|
ChannelDetailsProfile,
|
|
@@ -128,10 +140,10 @@ export const ChannelDetailsContent = () => {
|
|
|
128
140
|
containerOverride,
|
|
129
141
|
]}
|
|
130
142
|
>
|
|
131
|
-
<ChannelDetailsNavHeader />
|
|
143
|
+
<ChannelDetailsNavHeader action={<ChannelDetailsEditButton />} />
|
|
132
144
|
<ScrollView contentContainerStyle={[styles.scrollContent, scrollContentOverride]}>
|
|
133
145
|
<ChannelDetailsProfile />
|
|
134
|
-
|
|
146
|
+
<ChannelDetailsNavigationSection />
|
|
135
147
|
{isDirect ? null : <ChannelDetailsMemberSection />}
|
|
136
148
|
<ChannelDetailsActionsSection />
|
|
137
149
|
</ScrollView>
|
|
@@ -149,6 +161,7 @@ export const ChannelDetails = ({
|
|
|
149
161
|
getChannelActionItems,
|
|
150
162
|
getChannelMemberActionItems,
|
|
151
163
|
getMemberRoleLabel,
|
|
164
|
+
getNavigationItems,
|
|
152
165
|
onAddMembersPress,
|
|
153
166
|
onBack,
|
|
154
167
|
onChannelDismiss,
|
|
@@ -165,6 +178,7 @@ export const ChannelDetails = ({
|
|
|
165
178
|
getChannelActionItems,
|
|
166
179
|
getChannelMemberActionItems,
|
|
167
180
|
getMemberRoleLabel,
|
|
181
|
+
getNavigationItems,
|
|
168
182
|
onAddMembersPress,
|
|
169
183
|
onBack,
|
|
170
184
|
onChannelDismiss,
|
|
@@ -179,6 +193,7 @@ export const ChannelDetails = ({
|
|
|
179
193
|
getChannelActionItems,
|
|
180
194
|
getChannelMemberActionItems,
|
|
181
195
|
getMemberRoleLabel,
|
|
196
|
+
getNavigationItems,
|
|
182
197
|
onAddMembersPress,
|
|
183
198
|
onBack,
|
|
184
199
|
onChannelDismiss,
|
|
@@ -52,6 +52,15 @@ const channel = {
|
|
|
52
52
|
on: jest.fn(() => ({ unsubscribe: jest.fn() })),
|
|
53
53
|
} as unknown as Channel;
|
|
54
54
|
|
|
55
|
+
const buildChannel = (capabilities: string[] = []) =>
|
|
56
|
+
({
|
|
57
|
+
cid: 'messaging:test',
|
|
58
|
+
data: { own_capabilities: capabilities },
|
|
59
|
+
id: 'test',
|
|
60
|
+
on: jest.fn(() => ({ unsubscribe: jest.fn() })),
|
|
61
|
+
state: { members: {} },
|
|
62
|
+
}) as unknown as Channel;
|
|
63
|
+
|
|
55
64
|
const renderContent = () =>
|
|
56
65
|
render(
|
|
57
66
|
<Providers>
|
|
@@ -94,6 +103,26 @@ describe('ChannelDetailsContent', () => {
|
|
|
94
103
|
renderContent();
|
|
95
104
|
expect(screen.queryByTestId('probe-member')).toBeNull();
|
|
96
105
|
});
|
|
106
|
+
|
|
107
|
+
it('displays the edit button in the header for a group channel with the update-channel capability', () => {
|
|
108
|
+
useIsDirectChatSpy.mockReturnValue(false);
|
|
109
|
+
render(
|
|
110
|
+
<Providers>
|
|
111
|
+
<WithComponents
|
|
112
|
+
overrides={{
|
|
113
|
+
ChannelDetailsActionsSection: ActionsProbe,
|
|
114
|
+
ChannelDetailsMemberSection: MemberProbe,
|
|
115
|
+
ChannelDetailsNavigationSection: NavigationProbe,
|
|
116
|
+
ChannelDetailsProfile: ProfileProbe,
|
|
117
|
+
}}
|
|
118
|
+
>
|
|
119
|
+
<ChannelDetails channel={buildChannel(['update-channel'])} />
|
|
120
|
+
</WithComponents>
|
|
121
|
+
</Providers>,
|
|
122
|
+
);
|
|
123
|
+
|
|
124
|
+
expect(screen.getByTestId('channel-details-edit-button')).toBeTruthy();
|
|
125
|
+
});
|
|
97
126
|
});
|
|
98
127
|
});
|
|
99
128
|
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
import { Text, View } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { fireEvent, render, screen } from '@testing-library/react-native';
|
|
5
|
+
import { NotificationManager } from 'stream-chat';
|
|
6
|
+
import type { Channel } from 'stream-chat';
|
|
7
|
+
|
|
8
|
+
import { AccessibilityProvider } from '../../../contexts/accessibilityContext/AccessibilityContext';
|
|
9
|
+
import { ChannelDetailsContextProvider } from '../../../contexts/channelDetailsContext/channelDetailsContext';
|
|
10
|
+
import { ChatContext } from '../../../contexts/chatContext/ChatContext';
|
|
11
|
+
import { WithComponents } from '../../../contexts/componentsContext/ComponentsContext';
|
|
12
|
+
import { ThemeProvider } from '../../../contexts/themeContext/ThemeContext';
|
|
13
|
+
import { defaultTheme } from '../../../contexts/themeContext/utils/theme';
|
|
14
|
+
import { TranslationProvider } from '../../../contexts/translationContext/TranslationContext';
|
|
15
|
+
import { useChannelActions } from '../../../hooks/actions/useChannelActions';
|
|
16
|
+
import * as useIsDirectChatModule from '../../../hooks/useIsDirectChat';
|
|
17
|
+
import { ChannelDetailsEditButton } from '../components/ChannelDetailsEditButton';
|
|
18
|
+
|
|
19
|
+
jest.mock('../../../hooks/actions/useChannelActions');
|
|
20
|
+
const mockedUseChannelActions = jest.mocked(useChannelActions);
|
|
21
|
+
|
|
22
|
+
const EditDetailsProbe = () => (
|
|
23
|
+
<View testID='channel-edit-details-probe'>
|
|
24
|
+
<Text>edit-details</Text>
|
|
25
|
+
</View>
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
const buildChannel = (capabilities: string[] = []): Channel =>
|
|
29
|
+
({
|
|
30
|
+
cid: 'messaging:test',
|
|
31
|
+
data: { own_capabilities: capabilities },
|
|
32
|
+
on: () => ({ unsubscribe: () => undefined }),
|
|
33
|
+
state: { members: {} },
|
|
34
|
+
}) as unknown as Channel;
|
|
35
|
+
|
|
36
|
+
const Providers = ({ children }: PropsWithChildren) => (
|
|
37
|
+
<ThemeProvider theme={defaultTheme}>
|
|
38
|
+
<AccessibilityProvider value={{ enabled: true }}>
|
|
39
|
+
<TranslationProvider
|
|
40
|
+
value={{
|
|
41
|
+
t: ((key: string) => key) as never,
|
|
42
|
+
tDateTimeParser: ((input: unknown) => input) as never,
|
|
43
|
+
userLanguage: 'en',
|
|
44
|
+
}}
|
|
45
|
+
>
|
|
46
|
+
<ChatContext.Provider
|
|
47
|
+
value={{ client: { notifications: new NotificationManager(), userID: 'me' } } as never}
|
|
48
|
+
>
|
|
49
|
+
{children}
|
|
50
|
+
</ChatContext.Provider>
|
|
51
|
+
</TranslationProvider>
|
|
52
|
+
</AccessibilityProvider>
|
|
53
|
+
</ThemeProvider>
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
const renderEditButton = ({
|
|
57
|
+
channel,
|
|
58
|
+
onEditChannelPress,
|
|
59
|
+
}: {
|
|
60
|
+
channel: Channel;
|
|
61
|
+
onEditChannelPress?: () => void;
|
|
62
|
+
}) =>
|
|
63
|
+
render(
|
|
64
|
+
<Providers>
|
|
65
|
+
<WithComponents overrides={{ ChannelEditDetails: EditDetailsProbe }}>
|
|
66
|
+
<ChannelDetailsContextProvider value={{ channel, onEditChannelPress }}>
|
|
67
|
+
<ChannelDetailsEditButton />
|
|
68
|
+
</ChannelDetailsContextProvider>
|
|
69
|
+
</WithComponents>
|
|
70
|
+
</Providers>,
|
|
71
|
+
);
|
|
72
|
+
|
|
73
|
+
describe('ChannelDetailsEditButton', () => {
|
|
74
|
+
beforeEach(() => {
|
|
75
|
+
jest.spyOn(useIsDirectChatModule, 'useIsDirectChat').mockReturnValue(false);
|
|
76
|
+
mockedUseChannelActions.mockReturnValue({
|
|
77
|
+
updateImage: jest.fn(),
|
|
78
|
+
updateName: jest.fn(),
|
|
79
|
+
} as unknown as ReturnType<typeof useChannelActions>);
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
afterEach(() => {
|
|
83
|
+
jest.restoreAllMocks();
|
|
84
|
+
mockedUseChannelActions.mockReset();
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
it('does not render the Edit button when the user lacks the update-channel capability', () => {
|
|
88
|
+
renderEditButton({ channel: buildChannel([]) });
|
|
89
|
+
|
|
90
|
+
expect(screen.queryByTestId('channel-details-edit-button')).toBeNull();
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
it('renders the Edit button when the user has the update-channel capability', () => {
|
|
94
|
+
renderEditButton({ channel: buildChannel(['update-channel']) });
|
|
95
|
+
|
|
96
|
+
const button = screen.getByTestId('channel-details-edit-button');
|
|
97
|
+
expect(button).toBeTruthy();
|
|
98
|
+
expect(screen.getByText('Edit')).toBeTruthy();
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
it('does not render the Edit button in a direct (1:1) channel even with the update-channel capability', () => {
|
|
102
|
+
jest.spyOn(useIsDirectChatModule, 'useIsDirectChat').mockReturnValue(true);
|
|
103
|
+
|
|
104
|
+
renderEditButton({ channel: buildChannel(['update-channel']) });
|
|
105
|
+
|
|
106
|
+
expect(screen.queryByTestId('channel-details-edit-button')).toBeNull();
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
it('invokes onEditChannelPress when the Edit button is pressed', () => {
|
|
110
|
+
const onEditChannelPress = jest.fn();
|
|
111
|
+
renderEditButton({ channel: buildChannel(['update-channel']), onEditChannelPress });
|
|
112
|
+
|
|
113
|
+
fireEvent.press(screen.getByTestId('channel-details-edit-button'));
|
|
114
|
+
|
|
115
|
+
expect(onEditChannelPress).toHaveBeenCalledTimes(1);
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
it('opens the edit modal when the Edit button is pressed and onEditChannelPress is not provided', () => {
|
|
119
|
+
renderEditButton({ channel: buildChannel(['update-channel']) });
|
|
120
|
+
|
|
121
|
+
expect(screen.queryByTestId('channel-edit-details-probe')).toBeNull();
|
|
122
|
+
|
|
123
|
+
fireEvent.press(screen.getByTestId('channel-details-edit-button'));
|
|
124
|
+
|
|
125
|
+
expect(screen.getByTestId('channel-edit-details-probe')).toBeTruthy();
|
|
126
|
+
});
|
|
127
|
+
});
|