@openpeepshq/react 0.2.3
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/LICENSE.md +21 -0
- package/README.md +1 -0
- package/dist/auth/credentials/index.d.ts +11 -0
- package/dist/auth/credentials/index.js +57 -0
- package/dist/auth/credentials/types.d.ts +6 -0
- package/dist/auth/credentials/types.js +1 -0
- package/dist/components/accounts/SignUpLoginModal.d.ts +9 -0
- package/dist/components/accounts/SignUpLoginModal.js +19 -0
- package/dist/components/accounts/SignUpLoginModalContext.d.ts +10 -0
- package/dist/components/accounts/SignUpLoginModalContext.js +16 -0
- package/dist/components/accounts/index.d.ts +3 -0
- package/dist/components/accounts/index.js +2 -0
- package/dist/components/configuration/ConfigurationCategory.d.ts +12 -0
- package/dist/components/configuration/ConfigurationCategory.js +61 -0
- package/dist/components/configuration/ConfigurationList.d.ts +10 -0
- package/dist/components/configuration/ConfigurationList.js +30 -0
- package/dist/components/configuration/ConfigurationTree.d.ts +8 -0
- package/dist/components/configuration/ConfigurationTree.js +20 -0
- package/dist/components/configuration/ConfigurationValueEditor.d.ts +11 -0
- package/dist/components/configuration/ConfigurationValueEditor.js +45 -0
- package/dist/components/configuration/index.d.ts +4 -0
- package/dist/components/configuration/index.js +4 -0
- package/dist/components/conversations/ConversationMessageBubble.d.ts +4 -0
- package/dist/components/conversations/ConversationMessageBubble.js +10 -0
- package/dist/components/conversations/CreateNewConversation.d.ts +8 -0
- package/dist/components/conversations/CreateNewConversation.js +62 -0
- package/dist/components/conversations/CreateNewConversationContext.d.ts +15 -0
- package/dist/components/conversations/CreateNewConversationContext.js +18 -0
- package/dist/components/conversations/DirectMessagesHeaderActions.d.ts +1 -0
- package/dist/components/conversations/DirectMessagesHeaderActions.js +10 -0
- package/dist/components/conversations/MessageInThread.d.ts +13 -0
- package/dist/components/conversations/MessageInThread.js +41 -0
- package/dist/components/conversations/index.d.ts +8 -0
- package/dist/components/conversations/index.js +5 -0
- package/dist/components/form/HeaderAvatarInput.d.ts +13 -0
- package/dist/components/form/HeaderAvatarInput.js +16 -0
- package/dist/components/form/ImageEditModal.d.ts +23 -0
- package/dist/components/form/ImageEditModal.js +75 -0
- package/dist/components/form/ImageInput.d.ts +32 -0
- package/dist/components/form/ImageInput.js +65 -0
- package/dist/components/form/LocationInput.d.ts +20 -0
- package/dist/components/form/LocationInput.js +59 -0
- package/dist/components/form/index.d.ts +8 -0
- package/dist/components/form/index.js +4 -0
- package/dist/components/groups/AddGroupMemberModal.d.ts +6 -0
- package/dist/components/groups/AddGroupMemberModal.js +40 -0
- package/dist/components/groups/AddGroupMembersButton.d.ts +5 -0
- package/dist/components/groups/AddGroupMembersButton.js +17 -0
- package/dist/components/groups/ChangeGroupRolesModal.d.ts +7 -0
- package/dist/components/groups/ChangeGroupRolesModal.js +45 -0
- package/dist/components/groups/ConfirmGroupExitModal.d.ts +6 -0
- package/dist/components/groups/ConfirmGroupExitModal.js +35 -0
- package/dist/components/groups/ConfirmMemberRemovalModal.d.ts +7 -0
- package/dist/components/groups/ConfirmMemberRemovalModal.js +33 -0
- package/dist/components/groups/DeleteGroupModal.d.ts +6 -0
- package/dist/components/groups/DeleteGroupModal.js +34 -0
- package/dist/components/groups/GroupAvatar.d.ts +14 -0
- package/dist/components/groups/GroupAvatar.js +32 -0
- package/dist/components/groups/GroupCard.d.ts +19 -0
- package/dist/components/groups/GroupCard.js +12 -0
- package/dist/components/groups/GroupFeed.d.ts +9 -0
- package/dist/components/groups/GroupFeed.js +14 -0
- package/dist/components/groups/GroupForm.d.ts +7 -0
- package/dist/components/groups/GroupForm.js +73 -0
- package/dist/components/groups/GroupHeader.d.ts +5 -0
- package/dist/components/groups/GroupHeader.js +14 -0
- package/dist/components/groups/GroupMembersList.d.ts +5 -0
- package/dist/components/groups/GroupMembersList.js +38 -0
- package/dist/components/groups/GroupOptionsMenu.d.ts +5 -0
- package/dist/components/groups/GroupOptionsMenu.js +61 -0
- package/dist/components/groups/GroupShareMenu.d.ts +5 -0
- package/dist/components/groups/GroupShareMenu.js +29 -0
- package/dist/components/groups/JoinGroupButton.d.ts +6 -0
- package/dist/components/groups/JoinGroupButton.js +28 -0
- package/dist/components/groups/index.d.ts +30 -0
- package/dist/components/groups/index.js +15 -0
- package/dist/components/index.d.ts +15 -0
- package/dist/components/index.js +15 -0
- package/dist/components/jams/CreateNewJam.d.ts +4 -0
- package/dist/components/jams/CreateNewJam.js +138 -0
- package/dist/components/jams/CreateNewJamContext.d.ts +9 -0
- package/dist/components/jams/CreateNewJamContext.js +16 -0
- package/dist/components/jams/JamAnimatedEmoji.d.ts +4 -0
- package/dist/components/jams/JamAnimatedEmoji.js +12 -0
- package/dist/components/jams/JamCallParticipant.d.ts +15 -0
- package/dist/components/jams/JamCallParticipant.js +101 -0
- package/dist/components/jams/JamCapacityGate.d.ts +7 -0
- package/dist/components/jams/JamCapacityGate.js +30 -0
- package/dist/components/jams/JamChatDrawer.d.ts +6 -0
- package/dist/components/jams/JamChatDrawer.js +88 -0
- package/dist/components/jams/JamChatMessage.d.ts +5 -0
- package/dist/components/jams/JamChatMessage.js +35 -0
- package/dist/components/jams/JamConference.d.ts +8 -0
- package/dist/components/jams/JamConference.js +38 -0
- package/dist/components/jams/JamContext.d.ts +20 -0
- package/dist/components/jams/JamContext.js +24 -0
- package/dist/components/jams/JamDetailsDrawer.d.ts +9 -0
- package/dist/components/jams/JamDetailsDrawer.js +39 -0
- package/dist/components/jams/JamDeviceSelectors.d.ts +12 -0
- package/dist/components/jams/JamDeviceSelectors.js +71 -0
- package/dist/components/jams/JamEventsContext.d.ts +14 -0
- package/dist/components/jams/JamEventsContext.js +143 -0
- package/dist/components/jams/JamFooter.d.ts +18 -0
- package/dist/components/jams/JamFooter.js +171 -0
- package/dist/components/jams/JamGuestForm.d.ts +1 -0
- package/dist/components/jams/JamGuestForm.js +55 -0
- package/dist/components/jams/JamLobby.d.ts +17 -0
- package/dist/components/jams/JamLobby.js +159 -0
- package/dist/components/jams/JamObserverShell.d.ts +6 -0
- package/dist/components/jams/JamObserverShell.js +11 -0
- package/dist/components/jams/JamParticipantConference.d.ts +7 -0
- package/dist/components/jams/JamParticipantConference.js +80 -0
- package/dist/components/jams/JamPeopleDrawer.d.ts +10 -0
- package/dist/components/jams/JamPeopleDrawer.js +76 -0
- package/dist/components/jams/JamReactionMenu.d.ts +12 -0
- package/dist/components/jams/JamReactionMenu.js +79 -0
- package/dist/components/jams/JamRequestJoin.d.ts +9 -0
- package/dist/components/jams/JamRequestJoin.js +34 -0
- package/dist/components/jams/JamRoom.d.ts +21 -0
- package/dist/components/jams/JamRoom.js +166 -0
- package/dist/components/jams/JamRoomIndicators.d.ts +10 -0
- package/dist/components/jams/JamRoomIndicators.js +39 -0
- package/dist/components/jams/JamVideoCall.d.ts +15 -0
- package/dist/components/jams/JamVideoCall.js +18 -0
- package/dist/components/jams/JamVideoLayout.d.ts +13 -0
- package/dist/components/jams/JamVideoLayout.js +68 -0
- package/dist/components/jams/LeaveCloseButton.d.ts +6 -0
- package/dist/components/jams/LeaveCloseButton.js +58 -0
- package/dist/components/jams/LiveJamsSection.d.ts +1 -0
- package/dist/components/jams/LiveJamsSection.js +16 -0
- package/dist/components/jams/animateEmoji.d.ts +1 -0
- package/dist/components/jams/animateEmoji.js +48 -0
- package/dist/components/jams/blurProcessor.d.ts +8 -0
- package/dist/components/jams/blurProcessor.js +28 -0
- package/dist/components/jams/constants.d.ts +10 -0
- package/dist/components/jams/constants.js +44 -0
- package/dist/components/jams/index.d.ts +24 -0
- package/dist/components/jams/index.js +19 -0
- package/dist/components/jams/jamEventActions.d.ts +26 -0
- package/dist/components/jams/jamEventActions.js +76 -0
- package/dist/components/jams/jamLocalSettings.d.ts +17 -0
- package/dist/components/jams/jamLocalSettings.js +53 -0
- package/dist/components/jams/jamReactionPreferences.d.ts +15 -0
- package/dist/components/jams/jamReactionPreferences.js +53 -0
- package/dist/components/jams/jamRecordingState.d.ts +10 -0
- package/dist/components/jams/jamRecordingState.js +25 -0
- package/dist/components/jams/reactionEmojis.d.ts +30 -0
- package/dist/components/jams/reactionEmojis.js +73 -0
- package/dist/components/jams/useJamHands.d.ts +7 -0
- package/dist/components/jams/useJamHands.js +39 -0
- package/dist/components/jams/useJamLiveKitTheme.d.ts +3 -0
- package/dist/components/jams/useJamLiveKitTheme.js +10 -0
- package/dist/components/layout/AccessDenied.d.ts +14 -0
- package/dist/components/layout/AccessDenied.js +28 -0
- package/dist/components/layout/AccessDeniedLoader.d.ts +16 -0
- package/dist/components/layout/AccessDeniedLoader.js +12 -0
- package/dist/components/layout/Auth.d.ts +22 -0
- package/dist/components/layout/Auth.js +82 -0
- package/dist/components/layout/IdentityContext.d.ts +17 -0
- package/dist/components/layout/IdentityContext.js +38 -0
- package/dist/components/layout/Infos.d.ts +5 -0
- package/dist/components/layout/Infos.js +42 -0
- package/dist/components/layout/OpenpeepsContextProvider.d.ts +10 -0
- package/dist/components/layout/OpenpeepsContextProvider.js +63 -0
- package/dist/components/layout/OpenpeepsThemeProvider.d.ts +11 -0
- package/dist/components/layout/OpenpeepsThemeProvider.js +47 -0
- package/dist/components/layout/ProfileGuard.d.ts +14 -0
- package/dist/components/layout/ProfileGuard.js +38 -0
- package/dist/components/layout/ProfileProvider.d.ts +10 -0
- package/dist/components/layout/ProfileProvider.js +60 -0
- package/dist/components/layout/Root.d.ts +16 -0
- package/dist/components/layout/Root.js +36 -0
- package/dist/components/layout/ToastProvider.d.ts +22 -0
- package/dist/components/layout/ToastProvider.js +37 -0
- package/dist/components/layout/index.d.ts +21 -0
- package/dist/components/layout/index.js +11 -0
- package/dist/components/markdown/CompiledMarkdown.d.ts +5 -0
- package/dist/components/markdown/CompiledMarkdown.js +3 -0
- package/dist/components/markdown/OpenpeepsMarkdown.d.ts +16 -0
- package/dist/components/markdown/OpenpeepsMarkdown.js +66 -0
- package/dist/components/markdown/classes.d.ts +2 -0
- package/dist/components/markdown/classes.js +2 -0
- package/dist/components/markdown/compileMarkdown.d.ts +5 -0
- package/dist/components/markdown/compileMarkdown.js +36 -0
- package/dist/components/markdown/index.d.ts +11 -0
- package/dist/components/markdown/index.js +7 -0
- package/dist/components/markdown/linkTargets.d.ts +3 -0
- package/dist/components/markdown/linkTargets.js +27 -0
- package/dist/components/markdown/staticRender.d.ts +16 -0
- package/dist/components/markdown/staticRender.js +17 -0
- package/dist/components/navigation/ContentHeader.d.ts +1 -0
- package/dist/components/navigation/ContentHeader.js +18 -0
- package/dist/components/navigation/FooterMobile.d.ts +5 -0
- package/dist/components/navigation/FooterMobile.js +8 -0
- package/dist/components/navigation/HeaderMobile.d.ts +11 -0
- package/dist/components/navigation/HeaderMobile.js +26 -0
- package/dist/components/navigation/MobileMenuItem.d.ts +7 -0
- package/dist/components/navigation/MobileMenuItem.js +13 -0
- package/dist/components/navigation/PageHeaderAction.d.ts +5 -0
- package/dist/components/navigation/PageHeaderAction.js +7 -0
- package/dist/components/navigation/PlusButton.d.ts +1 -0
- package/dist/components/navigation/PlusButton.js +11 -0
- package/dist/components/navigation/SideBar.d.ts +16 -0
- package/dist/components/navigation/SideBar.js +24 -0
- package/dist/components/navigation/SidebarNavContext.d.ts +3 -0
- package/dist/components/navigation/SidebarNavContext.js +4 -0
- package/dist/components/navigation/breadcrumbs/Breadcrumbs.d.ts +1 -0
- package/dist/components/navigation/breadcrumbs/Breadcrumbs.js +10 -0
- package/dist/components/navigation/breadcrumbs/Crumb.d.ts +5 -0
- package/dist/components/navigation/breadcrumbs/Crumb.js +4 -0
- package/dist/components/navigation/index.d.ts +17 -0
- package/dist/components/navigation/index.js +11 -0
- package/dist/components/navigation/sideBarNavLinkClass.d.ts +4 -0
- package/dist/components/navigation/sideBarNavLinkClass.js +3 -0
- package/dist/components/notifications/NotificationErrorBoundary.d.ts +16 -0
- package/dist/components/notifications/NotificationErrorBoundary.js +21 -0
- package/dist/components/notifications/NotificationHeaderActions.d.ts +6 -0
- package/dist/components/notifications/NotificationHeaderActions.js +35 -0
- package/dist/components/notifications/NotificationItem.d.ts +5 -0
- package/dist/components/notifications/NotificationItem.js +6 -0
- package/dist/components/notifications/NotificationWrapper.d.ts +10 -0
- package/dist/components/notifications/NotificationWrapper.js +6 -0
- package/dist/components/notifications/NotificationsList.d.ts +12 -0
- package/dist/components/notifications/NotificationsList.js +88 -0
- package/dist/components/notifications/TypedNotification.d.ts +4 -0
- package/dist/components/notifications/TypedNotification.js +201 -0
- package/dist/components/notifications/index.d.ts +7 -0
- package/dist/components/notifications/index.js +5 -0
- package/dist/components/post/Feed.d.ts +20 -0
- package/dist/components/post/Feed.js +63 -0
- package/dist/components/post/FeedPost.d.ts +17 -0
- package/dist/components/post/FeedPost.js +31 -0
- package/dist/components/post/FeedPostContent.d.ts +5 -0
- package/dist/components/post/FeedPostContent.js +22 -0
- package/dist/components/post/FullPostLayout.d.ts +7 -0
- package/dist/components/post/FullPostLayout.js +23 -0
- package/dist/components/post/Markdown.d.ts +2 -0
- package/dist/components/post/Markdown.js +1 -0
- package/dist/components/post/NewEventButton.d.ts +14 -0
- package/dist/components/post/NewEventButton.js +39 -0
- package/dist/components/post/NewNoteButton.d.ts +14 -0
- package/dist/components/post/NewNoteButton.js +38 -0
- package/dist/components/post/PinnedPost.d.ts +5 -0
- package/dist/components/post/PinnedPost.js +15 -0
- package/dist/components/post/PostDetail.d.ts +4 -0
- package/dist/components/post/PostDetail.js +31 -0
- package/dist/components/post/ReplyBox.d.ts +5 -0
- package/dist/components/post/ReplyBox.js +30 -0
- package/dist/components/post/VideoPlayOverlay.d.ts +5 -0
- package/dist/components/post/VideoPlayOverlay.js +8 -0
- package/dist/components/post/attachmentPreview.d.ts +5 -0
- package/dist/components/post/attachmentPreview.js +14 -0
- package/dist/components/post/feed/events/EventsFeed.d.ts +7 -0
- package/dist/components/post/feed/events/EventsFeed.js +44 -0
- package/dist/components/post/feed/threaded/ThreadPost.d.ts +9 -0
- package/dist/components/post/feed/threaded/ThreadPost.js +19 -0
- package/dist/components/post/feed/threaded/ThreadedFeed.d.ts +10 -0
- package/dist/components/post/feed/threaded/ThreadedFeed.js +8 -0
- package/dist/components/post/helpers.d.ts +6 -0
- package/dist/components/post/helpers.js +24 -0
- package/dist/components/post/index.d.ts +78 -0
- package/dist/components/post/index.js +57 -0
- package/dist/components/post/pieces/Attachments.d.ts +5 -0
- package/dist/components/post/pieces/Attachments.js +44 -0
- package/dist/components/post/pieces/EventLocation.d.ts +7 -0
- package/dist/components/post/pieces/EventLocation.js +28 -0
- package/dist/components/post/pieces/EventMenu.d.ts +6 -0
- package/dist/components/post/pieces/EventMenu.js +35 -0
- package/dist/components/post/pieces/EventRsvpButton.d.ts +5 -0
- package/dist/components/post/pieces/EventRsvpButton.js +60 -0
- package/dist/components/post/pieces/FeedPostStats.d.ts +5 -0
- package/dist/components/post/pieces/FeedPostStats.js +27 -0
- package/dist/components/post/pieces/GalleryModal.d.ts +7 -0
- package/dist/components/post/pieces/GalleryModal.js +16 -0
- package/dist/components/post/pieces/ParticipantsCard.d.ts +8 -0
- package/dist/components/post/pieces/ParticipantsCard.js +13 -0
- package/dist/components/post/pieces/PollContent.d.ts +5 -0
- package/dist/components/post/pieces/PollContent.js +109 -0
- package/dist/components/post/pieces/PostActions.d.ts +6 -0
- package/dist/components/post/pieces/PostActions.js +63 -0
- package/dist/components/post/pieces/PostInfoHeader.d.ts +7 -0
- package/dist/components/post/pieces/PostInfoHeader.js +8 -0
- package/dist/components/post/pieces/PostMenu.d.ts +6 -0
- package/dist/components/post/pieces/PostMenu.js +77 -0
- package/dist/components/post/pieces/PostReactionHeader.d.ts +12 -0
- package/dist/components/post/pieces/PostReactionHeader.js +31 -0
- package/dist/components/post/pieces/ShareMenu.d.ts +6 -0
- package/dist/components/post/pieces/ShareMenu.js +46 -0
- package/dist/components/post/pieces/UnreadPostIndicator.d.ts +9 -0
- package/dist/components/post/pieces/UnreadPostIndicator.js +6 -0
- package/dist/components/post/pieces/VideoPlayer.d.ts +16 -0
- package/dist/components/post/pieces/VideoPlayer.js +127 -0
- package/dist/components/post/pieces/modals/DeletePostModal.d.ts +8 -0
- package/dist/components/post/pieces/modals/DeletePostModal.js +20 -0
- package/dist/components/post/pieces/modals/ReactionsModal.d.ts +7 -0
- package/dist/components/post/pieces/modals/ReactionsModal.js +11 -0
- package/dist/components/post/pieces/modals/RepostModal.d.ts +7 -0
- package/dist/components/post/pieces/modals/RepostModal.js +13 -0
- package/dist/components/post/post-form/ArticleForm.d.ts +7 -0
- package/dist/components/post/post-form/ArticleForm.js +45 -0
- package/dist/components/post/post-form/AttachmentCard.d.ts +29 -0
- package/dist/components/post/post-form/AttachmentCard.js +120 -0
- package/dist/components/post/post-form/ComposeAttachments.d.ts +25 -0
- package/dist/components/post/post-form/ComposeAttachments.js +137 -0
- package/dist/components/post/post-form/ComposePreviewLinks.d.ts +4 -0
- package/dist/components/post/post-form/ComposePreviewLinks.js +9 -0
- package/dist/components/post/post-form/DescriptionEditModal.d.ts +13 -0
- package/dist/components/post/post-form/DescriptionEditModal.js +22 -0
- package/dist/components/post/post-form/EditPostModal.d.ts +6 -0
- package/dist/components/post/post-form/EditPostModal.js +81 -0
- package/dist/components/post/post-form/EditPostModalContext.d.ts +10 -0
- package/dist/components/post/post-form/EditPostModalContext.js +18 -0
- package/dist/components/post/post-form/EventForm.d.ts +7 -0
- package/dist/components/post/post-form/EventForm.js +104 -0
- package/dist/components/post/post-form/EventTypeSwitcher.d.ts +8 -0
- package/dist/components/post/post-form/EventTypeSwitcher.js +165 -0
- package/dist/components/post/post-form/NewPostModal.d.ts +13 -0
- package/dist/components/post/post-form/NewPostModal.js +272 -0
- package/dist/components/post/post-form/NewPostModalContext.d.ts +15 -0
- package/dist/components/post/post-form/NewPostModalContext.js +20 -0
- package/dist/components/post/post-form/OpenpeepsMarkdownInput.d.ts +19 -0
- package/dist/components/post/post-form/OpenpeepsMarkdownInput.js +65 -0
- package/dist/components/post/post-form/PollComposerFields.d.ts +12 -0
- package/dist/components/post/post-form/PollComposerFields.js +19 -0
- package/dist/components/post/post-form/PostAudienceSelector.d.ts +12 -0
- package/dist/components/post/post-form/PostAudienceSelector.js +83 -0
- package/dist/components/post/post-form/PostTypeSwitcher.d.ts +16 -0
- package/dist/components/post/post-form/PostTypeSwitcher.js +22 -0
- package/dist/components/post/post-form/ReplyModal.d.ts +6 -0
- package/dist/components/post/post-form/ReplyModal.js +202 -0
- package/dist/components/post/post-form/ReplyModalContext.d.ts +10 -0
- package/dist/components/post/post-form/ReplyModalContext.js +18 -0
- package/dist/components/post/post-form/VisibilitySelector.d.ts +8 -0
- package/dist/components/post/post-form/VisibilitySelector.js +35 -0
- package/dist/components/post/post-form/audienceChoices.d.ts +14 -0
- package/dist/components/post/post-form/audienceChoices.js +66 -0
- package/dist/components/post/types/Article.d.ts +5 -0
- package/dist/components/post/types/Article.js +14 -0
- package/dist/components/post/types/Event.d.ts +5 -0
- package/dist/components/post/types/Event.js +19 -0
- package/dist/components/post/types/Note.d.ts +5 -0
- package/dist/components/post/types/Note.js +10 -0
- package/dist/components/post/types/Poll.d.ts +7 -0
- package/dist/components/post/types/Poll.js +11 -0
- package/dist/components/post/types/article/FullArticle.d.ts +5 -0
- package/dist/components/post/types/article/FullArticle.js +8 -0
- package/dist/components/post/types/event/CardEvent.d.ts +5 -0
- package/dist/components/post/types/event/CardEvent.js +45 -0
- package/dist/components/post/types/event/FullEvent.d.ts +5 -0
- package/dist/components/post/types/event/FullEvent.js +161 -0
- package/dist/components/post/types/event/ProfileEventRelationship.d.ts +5 -0
- package/dist/components/post/types/event/ProfileEventRelationship.js +31 -0
- package/dist/components/post/types/note/FullNote.d.ts +5 -0
- package/dist/components/post/types/note/FullNote.js +5 -0
- package/dist/components/post/types/poll/FullPoll.d.ts +5 -0
- package/dist/components/post/types/poll/FullPoll.js +7 -0
- package/dist/components/post/visibility.d.ts +7 -0
- package/dist/components/post/visibility.js +10 -0
- package/dist/components/preview-link/LocalPreviewLink.d.ts +4 -0
- package/dist/components/preview-link/LocalPreviewLink.js +12 -0
- package/dist/components/preview-link/PreviewLink.d.ts +4 -0
- package/dist/components/preview-link/PreviewLink.js +11 -0
- package/dist/components/preview-link/RemotePreviewLink.d.ts +4 -0
- package/dist/components/preview-link/RemotePreviewLink.js +21 -0
- package/dist/components/preview-link/helpers.d.ts +7 -0
- package/dist/components/preview-link/helpers.js +31 -0
- package/dist/components/preview-link/index.d.ts +3 -0
- package/dist/components/preview-link/index.js +2 -0
- package/dist/components/preview-link/local/GroupPreview.d.ts +4 -0
- package/dist/components/preview-link/local/GroupPreview.js +15 -0
- package/dist/components/preview-link/local/JamPreview.d.ts +9 -0
- package/dist/components/preview-link/local/JamPreview.js +20 -0
- package/dist/components/preview-link/local/PostPreview.d.ts +4 -0
- package/dist/components/preview-link/local/PostPreview.js +15 -0
- package/dist/components/profile/Avatar.d.ts +17 -0
- package/dist/components/profile/Avatar.js +36 -0
- package/dist/components/profile/AvatarWithName.d.ts +5 -0
- package/dist/components/profile/AvatarWithName.js +5 -0
- package/dist/components/profile/FollowUnfollowButton.d.ts +8 -0
- package/dist/components/profile/FollowUnfollowButton.js +27 -0
- package/dist/components/profile/ProfileBadge.d.ts +7 -0
- package/dist/components/profile/ProfileBadge.js +12 -0
- package/dist/components/profile/ProfileCard.d.ts +24 -0
- package/dist/components/profile/ProfileCard.js +12 -0
- package/dist/components/profile/ProfileFromId.d.ts +6 -0
- package/dist/components/profile/ProfileFromId.js +15 -0
- package/dist/components/profile/ProfileHeader.d.ts +10 -0
- package/dist/components/profile/ProfileHeader.js +16 -0
- package/dist/components/profile/ProfileLink.d.ts +9 -0
- package/dist/components/profile/ProfileLink.js +9 -0
- package/dist/components/profile/ProfilePageAction.d.ts +6 -0
- package/dist/components/profile/ProfilePageAction.js +35 -0
- package/dist/components/profile/ProfilePostsAndReplies.d.ts +9 -0
- package/dist/components/profile/ProfilePostsAndReplies.js +24 -0
- package/dist/components/profile/ProfileSelector.d.ts +14 -0
- package/dist/components/profile/ProfileSelector.js +72 -0
- package/dist/components/profile/ProfileStats.d.ts +5 -0
- package/dist/components/profile/ProfileStats.js +6 -0
- package/dist/components/profile/ProfileWithActionCard.d.ts +5 -0
- package/dist/components/profile/ProfileWithActionCard.js +6 -0
- package/dist/components/profile/ProfilesInput.d.ts +15 -0
- package/dist/components/profile/ProfilesInput.js +31 -0
- package/dist/components/profile/ReportProfileOrPostModal.d.ts +9 -0
- package/dist/components/profile/ReportProfileOrPostModal.js +75 -0
- package/dist/components/profile/index.d.ts +30 -0
- package/dist/components/profile/index.js +15 -0
- package/dist/components/registry/ErrorComponent.d.ts +6 -0
- package/dist/components/registry/ErrorComponent.js +7 -0
- package/dist/components/registry/PluginLoader.d.ts +3 -0
- package/dist/components/registry/PluginLoader.js +51 -0
- package/dist/components/registry/PluginRegistryProvider.d.ts +23 -0
- package/dist/components/registry/PluginRegistryProvider.js +57 -0
- package/dist/components/registry/PluginSlot.d.ts +7 -0
- package/dist/components/registry/PluginSlot.js +31 -0
- package/dist/components/registry/index.d.ts +10 -0
- package/dist/components/registry/index.js +16 -0
- package/dist/components/server-data/ServerDataProvider.d.ts +8 -0
- package/dist/components/server-data/ServerDataProvider.js +30 -0
- package/dist/components/server-data/context.d.ts +121 -0
- package/dist/components/server-data/context.js +10 -0
- package/dist/components/server-data/index.d.ts +4 -0
- package/dist/components/server-data/index.js +2 -0
- package/dist/components/server-data/types.d.ts +5 -0
- package/dist/components/server-data/types.js +1 -0
- package/dist/contexts/credentialsStore/index.d.ts +8 -0
- package/dist/contexts/credentialsStore/index.js +13 -0
- package/dist/contexts/credentialsStore/types.d.ts +4 -0
- package/dist/contexts/credentialsStore/types.js +1 -0
- package/dist/contexts/index.d.ts +3 -0
- package/dist/contexts/index.js +3 -0
- package/dist/contexts/openpeeps/helpers.d.ts +93 -0
- package/dist/contexts/openpeeps/helpers.js +311 -0
- package/dist/contexts/openpeeps/hooks/accounts.d.ts +302 -0
- package/dist/contexts/openpeeps/hooks/accounts.js +17 -0
- package/dist/contexts/openpeeps/hooks/admin.d.ts +17177 -0
- package/dist/contexts/openpeeps/hooks/admin.js +115 -0
- package/dist/contexts/openpeeps/hooks/auth.d.ts +55 -0
- package/dist/contexts/openpeeps/hooks/auth.js +22 -0
- package/dist/contexts/openpeeps/hooks/conversations.d.ts +9815 -0
- package/dist/contexts/openpeeps/hooks/conversations.js +6 -0
- package/dist/contexts/openpeeps/hooks/groups.d.ts +319 -0
- package/dist/contexts/openpeeps/hooks/groups.js +31 -0
- package/dist/contexts/openpeeps/hooks/index.d.ts +18 -0
- package/dist/contexts/openpeeps/hooks/index.js +26 -0
- package/dist/contexts/openpeeps/hooks/jams.d.ts +3318 -0
- package/dist/contexts/openpeeps/hooks/jams.js +32 -0
- package/dist/contexts/openpeeps/hooks/other.d.ts +239 -0
- package/dist/contexts/openpeeps/hooks/other.js +89 -0
- package/dist/contexts/openpeeps/hooks/payments.d.ts +36 -0
- package/dist/contexts/openpeeps/hooks/payments.js +10 -0
- package/dist/contexts/openpeeps/hooks/posts.d.ts +26001 -0
- package/dist/contexts/openpeeps/hooks/posts.js +139 -0
- package/dist/contexts/openpeeps/hooks/profiles.d.ts +6896 -0
- package/dist/contexts/openpeeps/hooks/profiles.js +43 -0
- package/dist/contexts/openpeeps/hooks/search.d.ts +9620 -0
- package/dist/contexts/openpeeps/hooks/search.js +24 -0
- package/dist/contexts/openpeeps/hooks/streaming.d.ts +26 -0
- package/dist/contexts/openpeeps/hooks/streaming.js +10 -0
- package/dist/contexts/openpeeps/hooks/useHasAuthToken.d.ts +2 -0
- package/dist/contexts/openpeeps/hooks/useHasAuthToken.js +35 -0
- package/dist/contexts/openpeeps/index.d.ts +21 -0
- package/dist/contexts/openpeeps/index.js +180 -0
- package/dist/contexts/openpeeps/types.d.ts +11 -0
- package/dist/contexts/openpeeps/types.js +1 -0
- package/dist/contexts/router/index.d.ts +28 -0
- package/dist/contexts/router/index.js +69 -0
- package/dist/email/index.d.ts +13 -0
- package/dist/email/index.js +10 -0
- package/dist/i18n/I18nProvider.d.ts +19 -0
- package/dist/i18n/I18nProvider.js +33 -0
- package/dist/i18n/context.d.ts +8 -0
- package/dist/i18n/context.js +10 -0
- package/dist/i18n/index.d.ts +5 -0
- package/dist/i18n/index.js +23 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +14 -0
- package/dist/lib/apiErrorMessage.d.ts +3 -0
- package/dist/lib/apiErrorMessage.js +14 -0
- package/dist/lib/canvasUtils.d.ts +12 -0
- package/dist/lib/canvasUtils.js +104 -0
- package/dist/lib/configuration/helpers.d.ts +7 -0
- package/dist/lib/configuration/helpers.js +83 -0
- package/dist/lib/configuration/resolveSchema.d.ts +3 -0
- package/dist/lib/configuration/resolveSchema.js +8 -0
- package/dist/lib/groupCapabilityHelpers.d.ts +24 -0
- package/dist/lib/groupCapabilityHelpers.js +119 -0
- package/dist/lib/notificationBadge.d.ts +5 -0
- package/dist/lib/notificationBadge.js +25 -0
- package/dist/lib/postUnread.d.ts +2 -0
- package/dist/lib/postUnread.js +1 -0
- package/dist/lib/postViewCounter.d.ts +17 -0
- package/dist/lib/postViewCounter.js +162 -0
- package/dist/lib/threadHelpers.d.ts +5 -0
- package/dist/lib/threadHelpers.js +23 -0
- package/dist/lib/unseenCountsOptimistic.d.ts +15 -0
- package/dist/lib/unseenCountsOptimistic.js +43 -0
- package/dist/log/index.d.ts +11 -0
- package/dist/log/index.js +14 -0
- package/dist/push/index.d.ts +16 -0
- package/dist/push/index.js +145 -0
- package/dist/push/usePushSubscription.d.ts +18 -0
- package/dist/push/usePushSubscription.js +102 -0
- package/dist/push/vapid.d.ts +6 -0
- package/dist/push/vapid.js +12 -0
- package/dist/pwa/InstallPrompt.d.ts +13 -0
- package/dist/pwa/InstallPrompt.js +17 -0
- package/dist/pwa/NotificationPermissionPrompt.d.ts +22 -0
- package/dist/pwa/NotificationPermissionPrompt.js +56 -0
- package/dist/pwa/PwaProvider.d.ts +16 -0
- package/dist/pwa/PwaProvider.js +56 -0
- package/dist/pwa/UpdatePrompt.d.ts +14 -0
- package/dist/pwa/UpdatePrompt.js +14 -0
- package/dist/pwa/index.d.ts +18 -0
- package/dist/pwa/index.js +16 -0
- package/dist/pwa/navigationUrl.d.ts +16 -0
- package/dist/pwa/navigationUrl.js +51 -0
- package/dist/pwa/pushInvalidate.d.ts +7 -0
- package/dist/pwa/pushInvalidate.js +29 -0
- package/dist/pwa/registration.d.ts +28 -0
- package/dist/pwa/registration.js +71 -0
- package/dist/pwa/sw-types.d.ts +14 -0
- package/dist/pwa/sw-types.js +1 -0
- package/dist/pwa/sw.d.ts +2 -0
- package/dist/pwa/sw.js +171 -0
- package/dist/pwa/useInstallPrompt.d.ts +10 -0
- package/dist/pwa/useInstallPrompt.js +45 -0
- package/dist/pwa/useNotificationBadgeSync.d.ts +2 -0
- package/dist/pwa/useNotificationBadgeSync.js +23 -0
- package/dist/pwa/useServiceWorker.d.ts +19 -0
- package/dist/pwa/useServiceWorker.js +49 -0
- package/dist/pwa/vite.d.ts +50 -0
- package/dist/pwa/vite.js +53 -0
- package/dist/react-native.d.ts +11 -0
- package/dist/react-native.js +11 -0
- package/dist/setupTests.d.ts +1 -0
- package/dist/setupTests.js +5 -0
- package/dist/stores/breadcrumbs.d.ts +5 -0
- package/dist/stores/breadcrumbs.js +5 -0
- package/dist/stores/createStore.d.ts +19 -0
- package/dist/stores/createStore.js +63 -0
- package/dist/stores/index.d.ts +7 -0
- package/dist/stores/index.js +9 -0
- package/dist/stores/newPosts.d.ts +591 -0
- package/dist/stores/newPosts.js +191 -0
- package/dist/stores/pageHeader.d.ts +15 -0
- package/dist/stores/pageHeader.js +22 -0
- package/dist/stores/plusButton.d.ts +5 -0
- package/dist/stores/plusButton.js +13 -0
- package/dist/stores/types.d.ts +35 -0
- package/dist/stores/types.js +1 -0
- package/dist/streaming.d.ts +6 -0
- package/dist/streaming.js +6 -0
- package/dist/types/index.d.ts +0 -0
- package/dist/types/index.js +1 -0
- package/package.json +72 -0
- package/src/pwa/navigationUrl.ts +61 -0
- package/src/pwa/sw-types.ts +9 -0
- package/src/pwa/sw.ts +228 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { getTheme } from '@openpeepshq/common';
|
|
3
|
+
import { useServerInfo } from '../server-data/index.js';
|
|
4
|
+
import { useCurrentProfileSettings } from '../layout/IdentityContext.js';
|
|
5
|
+
const initials = (group) => {
|
|
6
|
+
const name = group?.displayName || group?.handle || '?';
|
|
7
|
+
const parts = name.split(' ');
|
|
8
|
+
return [parts.at(0), parts.at(-1)]
|
|
9
|
+
.filter(Boolean)
|
|
10
|
+
.map((part) => part?.substring(0, 1).toUpperCase())
|
|
11
|
+
.join('');
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Translation of `@openpeepshq/svelte/components/core/groups/GroupAvatar.svelte`.
|
|
15
|
+
* Renders a circular group avatar with the group picture, falling back to the
|
|
16
|
+
* community's `defaultGroupAvatar` and finally to letter initials.
|
|
17
|
+
*/
|
|
18
|
+
export function GroupAvatar({ group, size = 3.5, borderless = false, containerClassName, }) {
|
|
19
|
+
const serverInfo = useServerInfo();
|
|
20
|
+
const profileSettings = useCurrentProfileSettings();
|
|
21
|
+
const defaultAvatar = getTheme(serverInfo.communityConfig, profileSettings)
|
|
22
|
+
.defaultGroupAvatar;
|
|
23
|
+
const src = group?.avatar || defaultAvatar;
|
|
24
|
+
const borderClass = borderless
|
|
25
|
+
? ''
|
|
26
|
+
: 'border-4 border-surface-300 hover:border-neutral-500';
|
|
27
|
+
return (_jsx("div", { className: containerClassName, style: {
|
|
28
|
+
width: `${size}rem`,
|
|
29
|
+
height: `${size}rem`,
|
|
30
|
+
minWidth: `${size}rem`,
|
|
31
|
+
}, children: _jsx("div", { className: `relative inline-flex h-full w-full items-center justify-center overflow-hidden rounded-full bg-surface-200 ${borderClass}`, children: src ? (_jsx("img", { src: src, alt: group?.displayName || group?.handle || 'group avatar', className: "h-full w-full object-cover" })) : (_jsx("span", { className: "text-sm font-medium text-foreground/80", children: initials(group) })) }) }));
|
|
32
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { GroupWithMeta } from '@openpeepshq/common/types';
|
|
2
|
+
export interface GroupCardProps {
|
|
3
|
+
group: GroupWithMeta;
|
|
4
|
+
avatarSize?: number;
|
|
5
|
+
noPadding?: boolean;
|
|
6
|
+
showAction?: boolean;
|
|
7
|
+
unreadCount?: number;
|
|
8
|
+
/**
|
|
9
|
+
* When provided, the card acts as a selection control: clicking it calls
|
|
10
|
+
* `onSelect` instead of navigating to the group page. Used in selection
|
|
11
|
+
* contexts such as choosing post audience.
|
|
12
|
+
*/
|
|
13
|
+
onSelect?: (group: GroupWithMeta) => void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Translation of `core/groups/GroupCard.svelte`. Renders the group avatar
|
|
17
|
+
* + name + member count, with the join/leave action button.
|
|
18
|
+
*/
|
|
19
|
+
export declare function GroupCard({ group, avatarSize, noPadding, showAction, unreadCount, onSelect, }: GroupCardProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { groupName } from '@openpeepshq/common/lib';
|
|
3
|
+
import { GroupAvatar } from './GroupAvatar.js';
|
|
4
|
+
import { JoinGroupButton } from './JoinGroupButton.js';
|
|
5
|
+
/**
|
|
6
|
+
* Translation of `core/groups/GroupCard.svelte`. Renders the group avatar
|
|
7
|
+
* + name + member count, with the join/leave action button.
|
|
8
|
+
*/
|
|
9
|
+
export function GroupCard({ group, avatarSize = 3.5, noPadding = false, showAction = true, unreadCount = 0, onSelect, }) {
|
|
10
|
+
const details = (_jsxs(_Fragment, { children: [_jsx(GroupAvatar, { group: group, size: avatarSize, borderless: true, containerClassName: "flex-shrink-0" }), _jsxs("span", { className: "flex min-w-0 flex-1 flex-col items-start overflow-hidden text-left", children: [_jsxs("span", { className: "flex w-full min-w-0 items-center gap-2", children: [_jsx("span", { className: `truncate font-semibold md:w-full ${avatarSize < 2 ? 'text-sm' : 'text-lg'}`, children: groupName(group) }), unreadCount > 0 ? (_jsx("span", { className: "bg-destructive text-destructive-foreground flex size-5 min-w-5 shrink-0 items-center justify-center rounded-full px-1 text-xs font-semibold", "aria-label": `${unreadCount} unread posts`, children: unreadCount > 99 ? '99+' : unreadCount })) : null] }), _jsxs("span", { className: `truncate ${avatarSize < 2 ? 'text-xs' : 'text-sm'}`, children: [group.membersCount, " member", group.membersCount === 1 ? '' : 's'] })] })] }));
|
|
11
|
+
return (_jsxs("div", { className: `flex w-full justify-between ${noPadding ? '' : 'p-4'}`, children: [onSelect ? (_jsx("button", { type: "button", onClick: () => onSelect(group), className: "hover:bg-surface-100 flex min-w-0 flex-1 items-center gap-x-2 text-left", children: details })) : (_jsx("a", { href: `/groups/@${group.handle}`, className: "hover:bg-surface-100 flex min-w-0 flex-1 items-center gap-x-2", children: details })), showAction && (_jsx("div", { className: "ml-2 flex flex-shrink-0 items-center", children: _jsx(JoinGroupButton, { group: group }) }))] }));
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { GroupWithMeta } from '@openpeepshq/common/types';
|
|
2
|
+
export interface GroupFeedProps {
|
|
3
|
+
group: GroupWithMeta;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Posts list scoped to a single group. Translation of
|
|
7
|
+
* `core/groups/GroupFeed.svelte`.
|
|
8
|
+
*/
|
|
9
|
+
export declare function GroupFeed({ group }: GroupFeedProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useOpenpeeps } from '../../contexts/openpeeps/index.js';
|
|
3
|
+
import { useNewNotePlusButton } from '../post/NewNoteButton.js';
|
|
4
|
+
import { Feed } from '../post/Feed.js';
|
|
5
|
+
/**
|
|
6
|
+
* Posts list scoped to a single group. Translation of
|
|
7
|
+
* `core/groups/GroupFeed.svelte`.
|
|
8
|
+
*/
|
|
9
|
+
export function GroupFeed({ group }) {
|
|
10
|
+
const { openpeepsApi } = useOpenpeeps();
|
|
11
|
+
useNewNotePlusButton({ visibility: 'group', group });
|
|
12
|
+
const query = openpeepsApi.usePostsByGroup(group.id);
|
|
13
|
+
return _jsx(Feed, { query: query, inGroup: true, pinnedPostId: group.pinnedPostId });
|
|
14
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { GroupData } from '@openpeepshq/common/types';
|
|
2
|
+
export interface GroupFormProps {
|
|
3
|
+
groupData: GroupData;
|
|
4
|
+
onChange: (data: GroupData) => void;
|
|
5
|
+
isEdit?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function GroupForm({ groupData, onChange, isEdit }: GroupFormProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Input, Label, RadioSelect, Textarea } from '@openpeepshq/react-ui';
|
|
3
|
+
import { useT } from '../../i18n/index.js';
|
|
4
|
+
import { useServerInfo } from '../server-data/context.js';
|
|
5
|
+
import { HeaderAvatarInput } from '../form/HeaderAvatarInput.js';
|
|
6
|
+
import { getGroupPostsVisibilityValue, getGroupVisibilityValue, getGroupWhoCanJoinValue, getGroupWhoCanPostEventsValue, getGroupWhoCanPostValue, postsVisibilityOptionsForGroup, setGroupPostsVisibility, setGroupVisibility, setGroupWhoCanJoin, setGroupWhoCanPost, setGroupWhoCanPostEvents, } from '../../lib/groupCapabilityHelpers.js';
|
|
7
|
+
export function GroupForm({ groupData, onChange, isEdit = false }) {
|
|
8
|
+
const t = useT();
|
|
9
|
+
const { publicContent } = useServerInfo();
|
|
10
|
+
const patch = (partial) => onChange({ ...groupData, ...partial });
|
|
11
|
+
const patchCapabilities = (updater) => {
|
|
12
|
+
const draft = structuredClone(groupData);
|
|
13
|
+
updater(draft);
|
|
14
|
+
onChange(draft);
|
|
15
|
+
};
|
|
16
|
+
const visibilityValue = getGroupVisibilityValue(groupData.capabilities);
|
|
17
|
+
const postsVisibilityValue = getGroupPostsVisibilityValue(groupData.capabilities);
|
|
18
|
+
const whoCanJoinValue = getGroupWhoCanJoinValue(groupData.capabilities);
|
|
19
|
+
const whoCanPostValue = getGroupWhoCanPostValue(groupData.capabilities);
|
|
20
|
+
const whoCanPostEventsValue = getGroupWhoCanPostEventsValue(groupData.capabilities);
|
|
21
|
+
const visibilityOptions = ['public', 'local', 'private']
|
|
22
|
+
.filter((v) => (publicContent ? true : v !== 'public'))
|
|
23
|
+
.map((value) => ({
|
|
24
|
+
value,
|
|
25
|
+
title: t(`groups.visibility.${value}.title`, { defaultValue: value }),
|
|
26
|
+
description: t(`groups.visibility.${value}.description`, {
|
|
27
|
+
defaultValue: '',
|
|
28
|
+
}),
|
|
29
|
+
}));
|
|
30
|
+
const postsVisibilityOptions = postsVisibilityOptionsForGroup(visibilityValue)
|
|
31
|
+
.filter((v) => (publicContent ? true : v !== 'public'))
|
|
32
|
+
.map((value) => ({
|
|
33
|
+
value,
|
|
34
|
+
title: t(`groups.postsVisibility.${value}.title`, { defaultValue: value }),
|
|
35
|
+
description: t(`groups.postsVisibility.${value}.description`, {
|
|
36
|
+
defaultValue: '',
|
|
37
|
+
}),
|
|
38
|
+
}));
|
|
39
|
+
const whoCanJoinOptions = ['open', 'closed'].map((value) => ({
|
|
40
|
+
value,
|
|
41
|
+
title: t(`groups.whoCanJoin.${value}.title`, { defaultValue: value }),
|
|
42
|
+
description: t(`groups.whoCanJoin.${value}.description`, {
|
|
43
|
+
defaultValue: '',
|
|
44
|
+
}),
|
|
45
|
+
}));
|
|
46
|
+
const whoCanPostOptions = ['members', 'admin'].map((value) => ({
|
|
47
|
+
value,
|
|
48
|
+
title: t(`groups.whoCanPost.${value}.title`, { defaultValue: value }),
|
|
49
|
+
description: t(`groups.whoCanPost.${value}.description`, {
|
|
50
|
+
defaultValue: '',
|
|
51
|
+
}),
|
|
52
|
+
}));
|
|
53
|
+
const whoCanPostEventsOptions = ['members', 'admin'].map((value) => ({
|
|
54
|
+
value,
|
|
55
|
+
title: t(`groups.whoCanPostEvents.${value}.title`, { defaultValue: value }),
|
|
56
|
+
description: t(`groups.whoCanPostEvents.${value}.description`, {
|
|
57
|
+
defaultValue: '',
|
|
58
|
+
}),
|
|
59
|
+
}));
|
|
60
|
+
return (_jsxs("div", { className: "space-y-4", children: [_jsx(HeaderAvatarInput, { header: groupData.header ?? undefined, avatar: groupData.avatar ?? undefined, onHeaderChange: (header) => patch({ header }), onAvatarChange: (avatar) => patch({ avatar }) }), _jsxs("div", { className: "space-y-2 px-1", children: [_jsx(Label, { htmlFor: "displayName", children: t('groups.form.groupName', { defaultValue: 'Group name' }) }), _jsx(Input, { id: "displayName", value: groupData.displayName ?? '', onChange: (e) => patch({ displayName: e.target.value }), "data-testid": "groups-name-input" })] }), !isEdit ? (_jsxs("div", { className: "space-y-2 px-1", children: [_jsx(Label, { htmlFor: "handle", children: t('groups.handle.title', { defaultValue: 'Handle' }) }), _jsx(Input, { id: "handle", value: groupData.handle ?? '', placeholder: t('groups.handle.placeholder', {
|
|
61
|
+
defaultValue: 'my_group',
|
|
62
|
+
}), onChange: (e) => patch({ handle: e.target.value }), "data-testid": "groups-handle-input" })] })) : null, _jsxs("div", { className: "space-y-2 px-1", children: [_jsx(Label, { htmlFor: "description", children: t('groups.description.title', { defaultValue: 'Description' }) }), _jsx(Textarea, { id: "description", rows: 4, value: groupData.description ?? '', placeholder: t('groups.description.placeholder', { defaultValue: '' }), onChange: (e) => patch({ description: e.target.value }), "data-testid": "groups-description-input" })] }), _jsxs("div", { className: "space-y-2 px-1", children: [_jsx(Label, { htmlFor: "rules", children: t('groups.rules.title', { defaultValue: 'Rules' }) }), _jsx(Textarea, { id: "rules", rows: 4, value: groupData.rules ?? '', placeholder: t('groups.rules.placeholder', { defaultValue: '' }), onChange: (e) => patch({ rules: e.target.value }), "data-testid": "groups-rules-input" })] }), _jsx(RadioSelect, { title: t('groups.visibility.title', { defaultValue: 'Visibility' }), description: t('groups.visibility.description', { defaultValue: '' }), value: visibilityValue, options: visibilityOptions, onChange: (value) => patchCapabilities((draft) => setGroupVisibility(draft, value)) }), visibilityValue !== 'private' ? (_jsx(RadioSelect, { title: t('groups.postsVisibility.title', {
|
|
63
|
+
defaultValue: 'Posts visibility',
|
|
64
|
+
}), description: t('groups.postsVisibility.description', {
|
|
65
|
+
defaultValue: '',
|
|
66
|
+
}), value: postsVisibilityValue, options: postsVisibilityOptions, onChange: (value) => patchCapabilities((draft) => setGroupPostsVisibility(draft, value)) })) : null, _jsx(RadioSelect, { title: t('groups.whoCanJoin.title', { defaultValue: 'Who can join' }), description: t('groups.whoCanJoin.description', { defaultValue: '' }), value: whoCanJoinValue, options: whoCanJoinOptions, onChange: (value) => patchCapabilities((draft) => setGroupWhoCanJoin(draft, value)) }), _jsx(RadioSelect, { title: t('groups.whoCanPost.title', { defaultValue: 'Who can post' }), description: t('groups.whoCanPost.description', { defaultValue: '' }), value: whoCanPostValue, options: whoCanPostOptions, onChange: (value) => patchCapabilities((draft) => setGroupWhoCanPost(draft, value)) }), whoCanPostValue === 'members' ? (_jsx(RadioSelect, { title: t('groups.whoCanPostEvents.title', {
|
|
67
|
+
defaultValue: 'Who can post events',
|
|
68
|
+
}), description: t('groups.whoCanPostEvents.description', {
|
|
69
|
+
defaultValue: '',
|
|
70
|
+
}), value: whoCanPostEventsValue, options: whoCanPostEventsOptions, optionTestId: (value) => value === 'admin'
|
|
71
|
+
? 'groups-who-can-post-events-admin'
|
|
72
|
+
: 'groups-who-can-post-events-members', onChange: (value) => patchCapabilities((draft) => setGroupWhoCanPostEvents(draft, value)) })) : null] }));
|
|
73
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { groupName } from '@openpeepshq/common/lib';
|
|
3
|
+
import { useT } from '../../i18n/index.js';
|
|
4
|
+
import { useCurrentProfile } from '../layout/IdentityContext.js';
|
|
5
|
+
import { JoinGroupButton } from './JoinGroupButton.js';
|
|
6
|
+
import { GroupOptionsMenu } from './GroupOptionsMenu.js';
|
|
7
|
+
import { GroupShareMenu } from './GroupShareMenu.js';
|
|
8
|
+
import { GroupAvatar } from './GroupAvatar.js';
|
|
9
|
+
export function GroupHeader({ group }) {
|
|
10
|
+
const t = useT();
|
|
11
|
+
const me = useCurrentProfile();
|
|
12
|
+
const isMember = me?.memberships?.some((m) => m.group.id === group.id);
|
|
13
|
+
return (_jsxs("div", { className: "relative", children: [_jsxs("div", { className: "relative aspect-[3/1] w-full", children: [_jsx("div", { className: "bg-surface-200 absolute inset-0 overflow-hidden", children: group.header && (_jsx("img", { src: group.header, alt: "banner", className: "h-full w-full object-cover" })) }), _jsx(GroupAvatar, { group: group, size: 6, borderless: true, containerClassName: "absolute -bottom-12 left-4" })] }), _jsx("div", { className: "flex justify-end space-x-2 p-2", children: !isMember ? (_jsx(JoinGroupButton, { group: group })) : (_jsxs(_Fragment, { children: [_jsx(GroupShareMenu, { group: group }), _jsx(GroupOptionsMenu, { group: group })] })) }), _jsxs("div", { className: "mb-8 p-2 pt-6", children: [_jsx("h1", { className: "text-xl font-semibold", "data-testid": "groups-header-title", children: groupName(group) }), _jsxs("p", { className: "text-surface-500 text-sm", children: ["@", group.handle] }), _jsxs("a", { href: `/groups/@${group.handle}/members`, title: t('groups.viewMembers', { defaultValue: 'View members' }), className: "text-muted-foreground text-sm hover:underline", children: [group.membersCount, " member", group.membersCount === 1 ? '' : 's'] })] })] }));
|
|
14
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo, useState } from 'react';
|
|
3
|
+
import { MessageSquareText, MoreHorizontal, UserCog, UserMinus, } from 'lucide-react';
|
|
4
|
+
import { canChangeMemberRole, canRemoveMember, sortGroupMembers, truncateText, } from '@openpeepshq/common/lib';
|
|
5
|
+
import { PopupMenu, PopupMenuButton, } from '@openpeepshq/react-ui';
|
|
6
|
+
import { useOpenpeeps } from '../../contexts/openpeeps/index.js';
|
|
7
|
+
import { useT } from '../../i18n/index.js';
|
|
8
|
+
import { AccessDeniedLoader } from '../layout/AccessDeniedLoader.js';
|
|
9
|
+
import { useCurrentProfile } from '../layout/IdentityContext.js';
|
|
10
|
+
import { Avatar } from '../profile/index.js';
|
|
11
|
+
import { useCreateNewConversation } from '../conversations/CreateNewConversationContext.js';
|
|
12
|
+
import { ChangeGroupRolesModal } from './ChangeGroupRolesModal.js';
|
|
13
|
+
import { ConfirmMemberRemovalModal } from './ConfirmMemberRemovalModal.js';
|
|
14
|
+
export function GroupMembersList({ group }) {
|
|
15
|
+
const t = useT();
|
|
16
|
+
const me = useCurrentProfile();
|
|
17
|
+
const { openpeepsApi } = useOpenpeeps();
|
|
18
|
+
const { openCreateConversation } = useCreateNewConversation();
|
|
19
|
+
const membersQuery = openpeepsApi.useGroupMembers(group.id);
|
|
20
|
+
const [activeModal, setActiveModal] = useState(null);
|
|
21
|
+
const members = useMemo(() => sortGroupMembers(membersQuery.data ?? []), [membersQuery.data]);
|
|
22
|
+
return (_jsxs(AccessDeniedLoader, { queries: [membersQuery], children: [_jsx("div", { className: "flex flex-col", children: members.map((member) => (_jsxs("div", { className: "flex items-center justify-between gap-3 border-b p-4", children: [_jsxs("a", { href: `/@${member.profile.handle}`, className: "hover:bg-surface-100 flex min-w-0 flex-1 items-center gap-3 rounded-md", children: [_jsx(Avatar, { profile: member.profile, size: 3 }), _jsxs("div", { className: "flex min-w-0 flex-col", children: [_jsx("span", { className: "text-sm font-semibold", children: member.profile.displayName ||
|
|
23
|
+
`@${member.profile.handle}` }), _jsxs("span", { className: "text-xs text-muted-foreground", children: ["@", member.profile.handle] }), member.roles?.length ? (_jsx("div", { className: "mt-1 flex flex-wrap gap-1", children: member.roles.map((role) => (_jsx("span", { className: "bg-primary/10 text-primary rounded px-1.5 py-0.5 text-xs uppercase", children: t(`groups.roles.${role}`, { defaultValue: role }) }, role))) })) : null] })] }), me?.id !== member.profile.id ? (_jsxs(PopupMenu, { icon: MoreHorizontal, compact: true, children: [_jsx(PopupMenuButton, { icon: MessageSquareText, title: `Message @${member.profile.handle}`, text: t('conversations.newMessage', {
|
|
24
|
+
defaultValue: `Message @${truncateText(member.profile.handle, 10)}`,
|
|
25
|
+
handle: truncateText(member.profile.handle, 10),
|
|
26
|
+
}), action: () => openCreateConversation({
|
|
27
|
+
profiles: [member.profile],
|
|
28
|
+
skipProfileSelection: true,
|
|
29
|
+
}) }), me && canChangeMemberRole(me, group) ? (_jsx(PopupMenuButton, { icon: UserCog, title: t('groups.changeRoles.title', {
|
|
30
|
+
defaultValue: 'Change roles',
|
|
31
|
+
}), text: t('groups.changeRoles.title', {
|
|
32
|
+
defaultValue: 'Change roles',
|
|
33
|
+
}), action: () => setActiveModal({ type: 'roles', member }) })) : null, me && canRemoveMember(me, group) ? (_jsx(PopupMenuButton, { icon: UserMinus, title: t('groups.actions.removeFromGroup', {
|
|
34
|
+
defaultValue: 'Remove from group',
|
|
35
|
+
}), text: t('groups.actions.removeFromGroup', {
|
|
36
|
+
defaultValue: 'Remove from group',
|
|
37
|
+
}), action: () => setActiveModal({ type: 'remove', member }), danger: true })) : null] })) : null] }, member.profile.id))) }), activeModal?.type === 'roles' ? (_jsx(ChangeGroupRolesModal, { group: group, member: activeModal.member, onClose: () => setActiveModal(null) })) : null, activeModal?.type === 'remove' ? (_jsx(ConfirmMemberRemovalModal, { group: group, profile: activeModal.member.profile, onClose: () => setActiveModal(null) })) : null] }));
|
|
38
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo, useState } from 'react';
|
|
3
|
+
import { CheckCheck, Ellipsis, LogOut, Pencil, Trash, UserPlus } from 'lucide-react';
|
|
4
|
+
import { checkGroupCapabilities } from '@openpeepshq/common/lib';
|
|
5
|
+
import { PopupMenu, PopupMenuButton } from '@openpeepshq/react-ui';
|
|
6
|
+
import { useNavigate } from '../../contexts/router/index.js';
|
|
7
|
+
import { useOpenpeeps } from '../../contexts/openpeeps/index.js';
|
|
8
|
+
import { adjustUnseenCounts, invalidateUnseenCounts, } from '../../lib/unseenCountsOptimistic.js';
|
|
9
|
+
import { useT } from '../../i18n/index.js';
|
|
10
|
+
import { useAuthData, useCurrentProfile } from '../layout/IdentityContext.js';
|
|
11
|
+
import { AddGroupMemberModal } from './AddGroupMemberModal.js';
|
|
12
|
+
import { ConfirmGroupExitModal } from './ConfirmGroupExitModal.js';
|
|
13
|
+
import { DeleteGroupModal } from './DeleteGroupModal.js';
|
|
14
|
+
export function GroupOptionsMenu({ group }) {
|
|
15
|
+
const t = useT();
|
|
16
|
+
const navigate = useNavigate();
|
|
17
|
+
const authData = useAuthData();
|
|
18
|
+
const me = useCurrentProfile();
|
|
19
|
+
const { openpeepsApi, queryClient, client } = useOpenpeeps();
|
|
20
|
+
const membersQuery = openpeepsApi.useGroupMembers(group.id);
|
|
21
|
+
const markGroupPostsSeen = openpeepsApi.markGroupPostsSeenAction();
|
|
22
|
+
const [activeModal, setActiveModal] = useState(null);
|
|
23
|
+
const isMember = me?.memberships?.some((m) => m.group.id === group.id);
|
|
24
|
+
const canEdit = checkGroupCapabilities(authData, ['core-groups-update'], group)
|
|
25
|
+
.success;
|
|
26
|
+
const canAddMembers = checkGroupCapabilities(authData, ['core-groups-addMember'], group).success;
|
|
27
|
+
const canDelete = checkGroupCapabilities(authData, ['core-groups-delete'], group)
|
|
28
|
+
.success;
|
|
29
|
+
const isLastAdmin = useMemo(() => {
|
|
30
|
+
const membership = me?.memberships?.find((m) => m.group.id === group.id);
|
|
31
|
+
const isAdmin = membership?.roles?.includes('admin');
|
|
32
|
+
const adminCount = (membersQuery.data ?? []).filter((m) => m.roles?.includes('admin')).length;
|
|
33
|
+
return !!isAdmin && adminCount <= 1;
|
|
34
|
+
}, [me?.memberships, group.id, membersQuery.data]);
|
|
35
|
+
const handleLeave = () => {
|
|
36
|
+
if (isLastAdmin) {
|
|
37
|
+
window.alert(t('groups.leave.lastAdminError', {
|
|
38
|
+
defaultValue: 'You are the last admin. Assign another admin before leaving.',
|
|
39
|
+
}));
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
setActiveModal('leave');
|
|
43
|
+
};
|
|
44
|
+
const handleMarkAllRead = async () => {
|
|
45
|
+
adjustUnseenCounts(queryClient, client, { clearGroup: group.id });
|
|
46
|
+
try {
|
|
47
|
+
await markGroupPostsSeen({ groupId: group.id });
|
|
48
|
+
}
|
|
49
|
+
catch {
|
|
50
|
+
await invalidateUnseenCounts(queryClient, client);
|
|
51
|
+
window.alert(t('groups.markAllRead.error', {
|
|
52
|
+
defaultValue: 'Failed to mark group posts as read',
|
|
53
|
+
}));
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
return (_jsxs(_Fragment, { children: [_jsxs(PopupMenu, { icon: Ellipsis, title: t('groups.actions.more', { defaultValue: 'Group options' }), children: [isMember ? (_jsx(PopupMenuButton, { title: t('groups.actions.markAllRead', {
|
|
57
|
+
defaultValue: 'Mark all posts as read',
|
|
58
|
+
}), text: t('groups.actions.markAllRead', {
|
|
59
|
+
defaultValue: 'Mark all posts as read',
|
|
60
|
+
}), icon: CheckCheck, action: () => void handleMarkAllRead() })) : null, canEdit ? (_jsx(PopupMenuButton, { title: t('groups.actions.editGroup', { defaultValue: 'Edit group' }), text: t('groups.actions.editGroup', { defaultValue: 'Edit group' }), icon: Pencil, action: () => navigate(`/groups/@${group.handle}/edit`) })) : null, canAddMembers ? (_jsx(PopupMenuButton, { title: t('groups.actions.addMembers', { defaultValue: 'Add members' }), text: t('groups.actions.addMembers', { defaultValue: 'Add members' }), icon: UserPlus, action: () => setActiveModal('addMember') })) : null, _jsx(PopupMenuButton, { title: t('groups.actions.leaveGroup', { defaultValue: 'Leave group' }), text: t('groups.actions.leaveGroup', { defaultValue: 'Leave group' }), icon: LogOut, action: handleLeave }), canDelete ? (_jsx(PopupMenuButton, { title: t('groups.delete.title', { defaultValue: 'Delete group' }), text: t('groups.delete.title', { defaultValue: 'Delete group' }), icon: Trash, action: () => setActiveModal('delete'), danger: true })) : null] }), activeModal === 'addMember' ? (_jsx(AddGroupMemberModal, { group: group, onClose: () => setActiveModal(null) })) : null, activeModal === 'leave' ? (_jsx(ConfirmGroupExitModal, { group: group, onClose: () => setActiveModal(null) })) : null, activeModal === 'delete' ? (_jsx(DeleteGroupModal, { group: group, onClose: () => setActiveModal(null) })) : null] }));
|
|
61
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Link, Pencil, Share } from 'lucide-react';
|
|
3
|
+
import { PopupMenu, PopupMenuButton, PopupSection, } from '@openpeepshq/react-ui';
|
|
4
|
+
import { useT } from '../../i18n/index.js';
|
|
5
|
+
import { useToast } from '../layout/ToastProvider.js';
|
|
6
|
+
import { useNewPostModal } from '../post/post-form/NewPostModalContext.js';
|
|
7
|
+
import { useCreateNewConversation } from '../conversations/CreateNewConversationContext.js';
|
|
8
|
+
export function GroupShareMenu({ group }) {
|
|
9
|
+
const t = useT();
|
|
10
|
+
const { success } = useToast();
|
|
11
|
+
const { openNewPost } = useNewPostModal();
|
|
12
|
+
const { openCreateConversation } = useCreateNewConversation();
|
|
13
|
+
const groupUrl = typeof window !== 'undefined'
|
|
14
|
+
? `${window.location.origin}/groups/@${group.handle}`
|
|
15
|
+
: `/groups/@${group.handle}`;
|
|
16
|
+
const inviteBlurb = t('groups.share.inviteBlurb', { url: groupUrl });
|
|
17
|
+
return (_jsxs(PopupMenu, { icon: Share, title: t('groups.actions.shareOnCommunity', {
|
|
18
|
+
defaultValue: 'Share on community',
|
|
19
|
+
}), children: [_jsx(PopupSection, { title: t('groups.actions.shareOnCommunity', {
|
|
20
|
+
defaultValue: 'Share on community',
|
|
21
|
+
}) }), _jsx(PopupMenuButton, { title: t('groups.actions.shareToFeed', { defaultValue: 'Share to feed' }), text: t('groups.share.postToFeed', { defaultValue: 'Post to feed' }), icon: Pencil, action: () => openNewPost({ visibility: 'public', initialContent: inviteBlurb }) }), _jsx(PopupMenuButton, { title: t('groups.actions.shareInMessage', {
|
|
22
|
+
defaultValue: 'Share in a message',
|
|
23
|
+
}), text: t('groups.share.sendInMessage', {
|
|
24
|
+
defaultValue: 'Send in a message',
|
|
25
|
+
}), icon: Pencil, action: () => openCreateConversation({ message: inviteBlurb }) }), _jsx(PopupSection, { title: t('groups.actions.otherOptions', { defaultValue: 'Other options' }) }), _jsx(PopupMenuButton, { title: t('groups.share.copyLink', { defaultValue: 'Copy link' }), text: t('groups.share.copyLink', { defaultValue: 'Copy link' }), icon: Link, action: () => {
|
|
26
|
+
void navigator.clipboard.writeText(groupUrl);
|
|
27
|
+
success(t('groups.share.linkCopied', { defaultValue: 'Group link copied' }));
|
|
28
|
+
} })] }));
|
|
29
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { GroupWithMeta } from '@openpeepshq/common/types';
|
|
2
|
+
export interface JoinGroupButtonProps {
|
|
3
|
+
group: GroupWithMeta;
|
|
4
|
+
onJoined?: () => void;
|
|
5
|
+
}
|
|
6
|
+
export declare function JoinGroupButton({ group, onJoined }: JoinGroupButtonProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { checkGroupCapabilities } from '@openpeepshq/common/lib';
|
|
4
|
+
import { Button } from '@openpeepshq/react-ui';
|
|
5
|
+
import { useOpenpeeps } from '../../contexts/openpeeps/index.js';
|
|
6
|
+
import { useT } from '../../i18n/index.js';
|
|
7
|
+
import { useAuthData, useCurrentProfile } from '../layout/IdentityContext.js';
|
|
8
|
+
export function JoinGroupButton({ group, onJoined }) {
|
|
9
|
+
const t = useT();
|
|
10
|
+
const authData = useAuthData();
|
|
11
|
+
const me = useCurrentProfile();
|
|
12
|
+
const { openpeepsApi } = useOpenpeeps();
|
|
13
|
+
const joinGroup = openpeepsApi.joinGroupAction({ id: group.id });
|
|
14
|
+
// Optimistically reflect the join so the button hides immediately, instead of
|
|
15
|
+
// waiting for the `['profiles','current']` refetch to repopulate memberships
|
|
16
|
+
// (mirrors the Svelte JoinGroupButton's local `joined` flag).
|
|
17
|
+
const [joined, setJoined] = useState(false);
|
|
18
|
+
const isMember = joined || me?.memberships?.some((m) => m.group.id === group.id);
|
|
19
|
+
const canJoin = !isMember &&
|
|
20
|
+
checkGroupCapabilities(authData, ['core-groups-join'], group).success;
|
|
21
|
+
if (!canJoin)
|
|
22
|
+
return null;
|
|
23
|
+
return (_jsx(Button, { variant: "variant-ringed-primary", title: t('groups.join.submit', { defaultValue: 'Join group' }), action: async () => {
|
|
24
|
+
await joinGroup(undefined);
|
|
25
|
+
setJoined(true);
|
|
26
|
+
onJoined?.();
|
|
27
|
+
}, children: t('groups.join.submit', { defaultValue: 'Join group' }) }));
|
|
28
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export { GroupAvatar } from './GroupAvatar';
|
|
2
|
+
export type { GroupAvatarProps } from './GroupAvatar';
|
|
3
|
+
export { GroupCard } from './GroupCard';
|
|
4
|
+
export type { GroupCardProps } from './GroupCard';
|
|
5
|
+
export { GroupHeader } from './GroupHeader';
|
|
6
|
+
export type { GroupHeaderProps } from './GroupHeader';
|
|
7
|
+
export { JoinGroupButton } from './JoinGroupButton';
|
|
8
|
+
export type { JoinGroupButtonProps } from './JoinGroupButton';
|
|
9
|
+
export { GroupFeed } from './GroupFeed';
|
|
10
|
+
export type { GroupFeedProps } from './GroupFeed';
|
|
11
|
+
export { GroupForm } from './GroupForm';
|
|
12
|
+
export type { GroupFormProps } from './GroupForm';
|
|
13
|
+
export { GroupOptionsMenu } from './GroupOptionsMenu';
|
|
14
|
+
export type { GroupOptionsMenuProps } from './GroupOptionsMenu';
|
|
15
|
+
export { GroupShareMenu } from './GroupShareMenu';
|
|
16
|
+
export type { GroupShareMenuProps } from './GroupShareMenu';
|
|
17
|
+
export { AddGroupMemberModal } from './AddGroupMemberModal';
|
|
18
|
+
export type { AddGroupMemberModalProps } from './AddGroupMemberModal';
|
|
19
|
+
export { AddGroupMembersButton } from './AddGroupMembersButton';
|
|
20
|
+
export type { AddGroupMembersButtonProps } from './AddGroupMembersButton';
|
|
21
|
+
export { ConfirmGroupExitModal } from './ConfirmGroupExitModal';
|
|
22
|
+
export type { ConfirmGroupExitModalProps } from './ConfirmGroupExitModal';
|
|
23
|
+
export { DeleteGroupModal } from './DeleteGroupModal';
|
|
24
|
+
export type { DeleteGroupModalProps } from './DeleteGroupModal';
|
|
25
|
+
export { ChangeGroupRolesModal } from './ChangeGroupRolesModal';
|
|
26
|
+
export type { ChangeGroupRolesModalProps } from './ChangeGroupRolesModal';
|
|
27
|
+
export { ConfirmMemberRemovalModal } from './ConfirmMemberRemovalModal';
|
|
28
|
+
export type { ConfirmMemberRemovalModalProps } from './ConfirmMemberRemovalModal';
|
|
29
|
+
export { GroupMembersList } from './GroupMembersList';
|
|
30
|
+
export type { GroupMembersListProps } from './GroupMembersList';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { GroupAvatar } from './GroupAvatar.js';
|
|
2
|
+
export { GroupCard } from './GroupCard.js';
|
|
3
|
+
export { GroupHeader } from './GroupHeader.js';
|
|
4
|
+
export { JoinGroupButton } from './JoinGroupButton.js';
|
|
5
|
+
export { GroupFeed } from './GroupFeed.js';
|
|
6
|
+
export { GroupForm } from './GroupForm.js';
|
|
7
|
+
export { GroupOptionsMenu } from './GroupOptionsMenu.js';
|
|
8
|
+
export { GroupShareMenu } from './GroupShareMenu.js';
|
|
9
|
+
export { AddGroupMemberModal } from './AddGroupMemberModal.js';
|
|
10
|
+
export { AddGroupMembersButton } from './AddGroupMembersButton.js';
|
|
11
|
+
export { ConfirmGroupExitModal } from './ConfirmGroupExitModal.js';
|
|
12
|
+
export { DeleteGroupModal } from './DeleteGroupModal.js';
|
|
13
|
+
export { ChangeGroupRolesModal } from './ChangeGroupRolesModal.js';
|
|
14
|
+
export { ConfirmMemberRemovalModal } from './ConfirmMemberRemovalModal.js';
|
|
15
|
+
export { GroupMembersList } from './GroupMembersList.js';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './layout';
|
|
2
|
+
export * from './navigation';
|
|
3
|
+
export * from './accounts';
|
|
4
|
+
export * from './server-data';
|
|
5
|
+
export * from './registry';
|
|
6
|
+
export * from './form';
|
|
7
|
+
export * from './profile';
|
|
8
|
+
export * from './post';
|
|
9
|
+
export * from './markdown';
|
|
10
|
+
export * from './notifications';
|
|
11
|
+
export * from './groups';
|
|
12
|
+
export * from './jams';
|
|
13
|
+
export * from './preview-link';
|
|
14
|
+
export * from './conversations';
|
|
15
|
+
export * from './configuration';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './layout/index.js';
|
|
2
|
+
export * from './navigation/index.js';
|
|
3
|
+
export * from './accounts/index.js';
|
|
4
|
+
export * from './server-data/index.js';
|
|
5
|
+
export * from './registry/index.js';
|
|
6
|
+
export * from './form/index.js';
|
|
7
|
+
export * from './profile/index.js';
|
|
8
|
+
export * from './post/index.js';
|
|
9
|
+
export * from './markdown/index.js';
|
|
10
|
+
export * from './notifications/index.js';
|
|
11
|
+
export * from './groups/index.js';
|
|
12
|
+
export * from './jams/index.js';
|
|
13
|
+
export * from './preview-link/index.js';
|
|
14
|
+
export * from './conversations/index.js';
|
|
15
|
+
export * from './configuration/index.js';
|