@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,30 @@
|
|
|
1
|
+
export { Avatar } from './Avatar';
|
|
2
|
+
export type { AvatarProps } from './Avatar';
|
|
3
|
+
export { ProfileLink } from './ProfileLink';
|
|
4
|
+
export type { ProfileLinkProps } from './ProfileLink';
|
|
5
|
+
export { ProfileCard } from './ProfileCard';
|
|
6
|
+
export type { ProfileCardProps } from './ProfileCard';
|
|
7
|
+
export { ProfileHeader } from './ProfileHeader';
|
|
8
|
+
export type { ProfileHeaderProps } from './ProfileHeader';
|
|
9
|
+
export { ProfileStats } from './ProfileStats';
|
|
10
|
+
export type { ProfileStatsProps } from './ProfileStats';
|
|
11
|
+
export { ProfilePageAction } from './ProfilePageAction';
|
|
12
|
+
export type { ProfilePageActionProps } from './ProfilePageAction';
|
|
13
|
+
export { ProfilePostsAndReplies } from './ProfilePostsAndReplies';
|
|
14
|
+
export type { ProfilePostsAndRepliesProps } from './ProfilePostsAndReplies';
|
|
15
|
+
export { FollowUnfollowButton } from './FollowUnfollowButton';
|
|
16
|
+
export type { FollowUnfollowButtonProps } from './FollowUnfollowButton';
|
|
17
|
+
export { ProfileWithActionCard } from './ProfileWithActionCard';
|
|
18
|
+
export type { ProfileWithActionCardProps } from './ProfileWithActionCard';
|
|
19
|
+
export { ProfileFromId } from './ProfileFromId';
|
|
20
|
+
export type { ProfileFromIdProps } from './ProfileFromId';
|
|
21
|
+
export { ReportProfileOrPostModal } from './ReportProfileOrPostModal';
|
|
22
|
+
export type { ReportProfileOrPostModalProps } from './ReportProfileOrPostModal';
|
|
23
|
+
export { AvatarWithName } from './AvatarWithName';
|
|
24
|
+
export type { AvatarWithNameProps } from './AvatarWithName';
|
|
25
|
+
export { ProfileBadge } from './ProfileBadge';
|
|
26
|
+
export type { ProfileBadgeProps } from './ProfileBadge';
|
|
27
|
+
export { ProfileSelector } from './ProfileSelector';
|
|
28
|
+
export type { ProfileSelectorMode, ProfileSelectorProps, } from './ProfileSelector';
|
|
29
|
+
export { ProfilesInput } from './ProfilesInput';
|
|
30
|
+
export type { ProfilesInputProps } from './ProfilesInput';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { Avatar } from './Avatar.js';
|
|
2
|
+
export { ProfileLink } from './ProfileLink.js';
|
|
3
|
+
export { ProfileCard } from './ProfileCard.js';
|
|
4
|
+
export { ProfileHeader } from './ProfileHeader.js';
|
|
5
|
+
export { ProfileStats } from './ProfileStats.js';
|
|
6
|
+
export { ProfilePageAction } from './ProfilePageAction.js';
|
|
7
|
+
export { ProfilePostsAndReplies } from './ProfilePostsAndReplies.js';
|
|
8
|
+
export { FollowUnfollowButton } from './FollowUnfollowButton.js';
|
|
9
|
+
export { ProfileWithActionCard } from './ProfileWithActionCard.js';
|
|
10
|
+
export { ProfileFromId } from './ProfileFromId.js';
|
|
11
|
+
export { ReportProfileOrPostModal } from './ReportProfileOrPostModal.js';
|
|
12
|
+
export { AvatarWithName } from './AvatarWithName.js';
|
|
13
|
+
export { ProfileBadge } from './ProfileBadge.js';
|
|
14
|
+
export { ProfileSelector } from './ProfileSelector.js';
|
|
15
|
+
export { ProfilesInput } from './ProfilesInput.js';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Ban } from 'lucide-react';
|
|
3
|
+
export function ErrorComponent({ componentKey, showError = true, }) {
|
|
4
|
+
if (!showError)
|
|
5
|
+
return null;
|
|
6
|
+
return (_jsxs("div", { className: "border-error bg-error/10 text-error flex w-full items-start gap-3 rounded border p-4", children: [_jsx("div", { children: _jsx(Ban, {}) }), _jsxs("div", { children: [_jsx("h3", { className: "text-lg font-bold", children: "Component not found" }), _jsxs("p", { className: "w-full text-wrap", children: ["Component \"", componentKey, "\" not found in registry"] })] })] }));
|
|
7
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React, { useEffect } from 'react';
|
|
2
|
+
import { PLUGIN_ASSETS_PREFIX } from '@openpeepshq/common';
|
|
3
|
+
import { useOpenpeeps } from '../../contexts/openpeeps/index.js';
|
|
4
|
+
export const buildPluginAssetUrl = (namespace, name, asset) => `${PLUGIN_ASSETS_PREFIX}/${namespace}/${name}/${asset}`;
|
|
5
|
+
export const PluginLoader = () => {
|
|
6
|
+
const { client } = useOpenpeeps();
|
|
7
|
+
useEffect(() => {
|
|
8
|
+
let cancelled = false;
|
|
9
|
+
const ownedScripts = [];
|
|
10
|
+
client.plugins
|
|
11
|
+
.manifest()
|
|
12
|
+
.then((result) => {
|
|
13
|
+
if ('error' in result || cancelled) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
for (const plugin of result.data) {
|
|
17
|
+
for (const component of plugin.components) {
|
|
18
|
+
const assetUrl = buildPluginAssetUrl(plugin.namespace, plugin.name, component.asset);
|
|
19
|
+
const existing = document.querySelector(`script[src="${assetUrl}"]`);
|
|
20
|
+
if (existing) {
|
|
21
|
+
continue;
|
|
22
|
+
}
|
|
23
|
+
const script = document.createElement('script');
|
|
24
|
+
script.src = assetUrl;
|
|
25
|
+
script.async = true;
|
|
26
|
+
script.onerror = () => {
|
|
27
|
+
const idx = ownedScripts.indexOf(script);
|
|
28
|
+
if (idx !== -1)
|
|
29
|
+
ownedScripts.splice(idx, 1);
|
|
30
|
+
script.remove();
|
|
31
|
+
console.error(`[openpeeps] Plugin script load failed: ${assetUrl}`);
|
|
32
|
+
};
|
|
33
|
+
document.body.appendChild(script);
|
|
34
|
+
ownedScripts.push(script);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
})
|
|
38
|
+
.catch((err) => {
|
|
39
|
+
// Plugin manifest is optional; do not block the app, but log so
|
|
40
|
+
// plugin visibility issues are diagnosable in the browser console.
|
|
41
|
+
console.error('[openpeeps] Plugin manifest load failed:', err);
|
|
42
|
+
});
|
|
43
|
+
return () => {
|
|
44
|
+
cancelled = true;
|
|
45
|
+
for (const script of ownedScripts) {
|
|
46
|
+
script.remove();
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
}, [client]);
|
|
50
|
+
return null;
|
|
51
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type ComponentType, type ReactNode } from 'react';
|
|
2
|
+
type PluginComponentEntry = {
|
|
3
|
+
key: string;
|
|
4
|
+
component: ComponentType<Record<string, unknown>>;
|
|
5
|
+
};
|
|
6
|
+
type RegistryApi = {
|
|
7
|
+
registerComponent: (slot: string, key: string, component: ComponentType<Record<string, unknown>>) => void;
|
|
8
|
+
};
|
|
9
|
+
type PluginRegistryContextValue = {
|
|
10
|
+
registerComponent: RegistryApi['registerComponent'];
|
|
11
|
+
getComponentsForSlot: (slot: string) => PluginComponentEntry[];
|
|
12
|
+
};
|
|
13
|
+
declare const PLUGIN_REGISTRY_GLOBAL_KEY = "__OPENPEEPS_PLUGINS__";
|
|
14
|
+
declare global {
|
|
15
|
+
interface Window {
|
|
16
|
+
[PLUGIN_REGISTRY_GLOBAL_KEY]?: RegistryApi;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export declare const PluginRegistryProvider: ({ children, }: {
|
|
20
|
+
children: ReactNode;
|
|
21
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare const usePluginRegistry: () => PluginRegistryContextValue;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import React, { createContext, useContext, useState, useCallback, useEffect, } from 'react';
|
|
3
|
+
const PLUGIN_REGISTRY_GLOBAL_KEY = '__OPENPEEPS_PLUGINS__';
|
|
4
|
+
const pendingQueue = [];
|
|
5
|
+
const registryController = { current: null };
|
|
6
|
+
const EMPTY_COMPONENTS = [];
|
|
7
|
+
if (typeof window !== 'undefined') {
|
|
8
|
+
if (!window[PLUGIN_REGISTRY_GLOBAL_KEY]) {
|
|
9
|
+
window[PLUGIN_REGISTRY_GLOBAL_KEY] = {
|
|
10
|
+
registerComponent: (slot, key, component) => {
|
|
11
|
+
if (registryController.current) {
|
|
12
|
+
registryController.current(slot, key, component);
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
pendingQueue.push({ slot, key, component });
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
window.React = React;
|
|
21
|
+
}
|
|
22
|
+
const PluginRegistryContext = createContext(null);
|
|
23
|
+
export const PluginRegistryProvider = ({ children, }) => {
|
|
24
|
+
const [components, setComponents] = useState({});
|
|
25
|
+
const registerComponent = useCallback((slot, key, component) => {
|
|
26
|
+
setComponents((prev) => {
|
|
27
|
+
const list = prev[slot] ?? [];
|
|
28
|
+
const filtered = list.filter((entry) => entry.key !== key);
|
|
29
|
+
return {
|
|
30
|
+
...prev,
|
|
31
|
+
[slot]: [...filtered, { key, component }],
|
|
32
|
+
};
|
|
33
|
+
});
|
|
34
|
+
}, []);
|
|
35
|
+
const getComponentsForSlot = useCallback((slot) => components[slot] ?? EMPTY_COMPONENTS, [components]);
|
|
36
|
+
useEffect(() => {
|
|
37
|
+
if (typeof window === 'undefined') {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
registryController.current = registerComponent;
|
|
41
|
+
while (pendingQueue.length > 0) {
|
|
42
|
+
const item = pendingQueue.shift();
|
|
43
|
+
registerComponent(item.slot, item.key, item.component);
|
|
44
|
+
}
|
|
45
|
+
return () => {
|
|
46
|
+
registryController.current = null;
|
|
47
|
+
};
|
|
48
|
+
}, [registerComponent]);
|
|
49
|
+
return (_jsx(PluginRegistryContext.Provider, { value: { registerComponent, getComponentsForSlot }, children: children }));
|
|
50
|
+
};
|
|
51
|
+
export const usePluginRegistry = () => {
|
|
52
|
+
const context = useContext(PluginRegistryContext);
|
|
53
|
+
if (!context) {
|
|
54
|
+
throw new Error('usePluginRegistry must be used within a PluginRegistryProvider');
|
|
55
|
+
}
|
|
56
|
+
return context;
|
|
57
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Component } from 'react';
|
|
3
|
+
import { usePluginRegistry } from './PluginRegistryProvider.js';
|
|
4
|
+
import { useT } from '../../i18n/index.js';
|
|
5
|
+
// AGENTS.md forbids classes, but React Error Boundaries require a class
|
|
6
|
+
// component with getDerivedStateFromError / componentDidCatch. This is a
|
|
7
|
+
// deliberate, documented exception. See AGENTS.md "No TypeScript classes."
|
|
8
|
+
class ErrorBoundary extends Component {
|
|
9
|
+
state = { hasError: false };
|
|
10
|
+
static getDerivedStateFromError() {
|
|
11
|
+
return { hasError: true };
|
|
12
|
+
}
|
|
13
|
+
componentDidCatch(error, errorInfo) {
|
|
14
|
+
console.error('Plugin component render error:', error, errorInfo);
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
if (this.state.hasError) {
|
|
18
|
+
return (_jsx("div", { className: "border-error bg-error/10 text-error rounded border p-2 text-xs", children: this.props.fallbackText ?? 'Render error' }));
|
|
19
|
+
}
|
|
20
|
+
return this.props.children;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export const PluginSlot = ({ name, props = {}, className, }) => {
|
|
24
|
+
const { getComponentsForSlot } = usePluginRegistry();
|
|
25
|
+
const t = useT();
|
|
26
|
+
const entries = getComponentsForSlot(name);
|
|
27
|
+
if (entries.length === 0) {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
return (_jsx("div", { className: className, "data-plugin-slot": name, children: entries.map(({ key, component: Component }) => (_jsx("div", { "data-plugin-component": key, children: _jsx(ErrorBoundary, { fallbackText: t('plugins.errorBoundary'), children: _jsx(Component, { ...props }) }) }, key))) }));
|
|
31
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
import { ErrorComponent } from './ErrorComponent';
|
|
3
|
+
import { PluginRegistryProvider, usePluginRegistry } from './PluginRegistryProvider';
|
|
4
|
+
import { PluginSlot } from './PluginSlot';
|
|
5
|
+
import { PluginLoader } from './PluginLoader';
|
|
6
|
+
export declare const registerComponent: <P extends Record<string, unknown>>(key: string, component: ComponentType<P>) => void;
|
|
7
|
+
export declare const getComponent: <P extends Record<string, unknown>>(key: string, showError?: boolean) => ComponentType<P>;
|
|
8
|
+
export { ErrorComponent, PluginLoader, PluginRegistryProvider, PluginSlot, usePluginRegistry, };
|
|
9
|
+
export type { ErrorComponentProps } from './ErrorComponent';
|
|
10
|
+
export type { PluginSlotProps } from './PluginSlot';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ErrorComponent } from './ErrorComponent.js';
|
|
3
|
+
import { PluginRegistryProvider, usePluginRegistry, } from './PluginRegistryProvider.js';
|
|
4
|
+
import { PluginSlot } from './PluginSlot.js';
|
|
5
|
+
import { PluginLoader } from './PluginLoader.js';
|
|
6
|
+
const registry = new Map();
|
|
7
|
+
export const registerComponent = (key, component) => {
|
|
8
|
+
registry.set(key, component);
|
|
9
|
+
};
|
|
10
|
+
const wrapMissing = (key, showError) => () => (_jsx(ErrorComponent, { componentKey: key, registry: registry, showError: showError }));
|
|
11
|
+
export const getComponent = (key, showError = true) => {
|
|
12
|
+
const found = registry.get(key);
|
|
13
|
+
return (found ??
|
|
14
|
+
wrapMissing(key, showError));
|
|
15
|
+
};
|
|
16
|
+
export { ErrorComponent, PluginLoader, PluginRegistryProvider, PluginSlot, usePluginRegistry, };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { OpenpeepsClient } from '@openpeepshq/client';
|
|
3
|
+
export interface ServerDataProviderProps {
|
|
4
|
+
client: OpenpeepsClient;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
fallback?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare function ServerDataProvider({ client, children, fallback, }: ServerDataProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useQuery } from '@tanstack/react-query';
|
|
3
|
+
import { ServerDataContext } from './context.js';
|
|
4
|
+
const handleResult = (r) => {
|
|
5
|
+
if ('data' in r)
|
|
6
|
+
return r.data;
|
|
7
|
+
throw r.error;
|
|
8
|
+
};
|
|
9
|
+
export function ServerDataProvider({ client, children, fallback = null, }) {
|
|
10
|
+
const capabilitiesQuery = useQuery({
|
|
11
|
+
queryKey: client.server.config.capabilities.queryKey({}),
|
|
12
|
+
queryFn: () => client.server.config.capabilities().then(handleResult),
|
|
13
|
+
retry: false,
|
|
14
|
+
});
|
|
15
|
+
const serverInfoQuery = useQuery({
|
|
16
|
+
queryKey: client.server.info.queryKey({}),
|
|
17
|
+
queryFn: () => client.server.info().then(handleResult),
|
|
18
|
+
retry: false,
|
|
19
|
+
});
|
|
20
|
+
if (capabilitiesQuery.isLoading ||
|
|
21
|
+
serverInfoQuery.isLoading ||
|
|
22
|
+
!capabilitiesQuery.data ||
|
|
23
|
+
!serverInfoQuery.data) {
|
|
24
|
+
return _jsx(_Fragment, { children: fallback });
|
|
25
|
+
}
|
|
26
|
+
return (_jsx(ServerDataContext.Provider, { value: {
|
|
27
|
+
capabilities: capabilitiesQuery.data,
|
|
28
|
+
serverInfo: serverInfoQuery.data,
|
|
29
|
+
}, children: children }));
|
|
30
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import type { ServerDataContextValue } from './types';
|
|
2
|
+
export declare const ServerDataContext: import("react").Context<ServerDataContextValue | null>;
|
|
3
|
+
export declare const useServerData: () => ServerDataContextValue;
|
|
4
|
+
export declare const useServerInfo: () => {
|
|
5
|
+
version: string;
|
|
6
|
+
environment: string;
|
|
7
|
+
publicContent: boolean;
|
|
8
|
+
communityConfig: {
|
|
9
|
+
theme: {
|
|
10
|
+
base: string;
|
|
11
|
+
primaryHex: string;
|
|
12
|
+
light: {
|
|
13
|
+
primaryHex: string;
|
|
14
|
+
logoSmall?: string | undefined;
|
|
15
|
+
defaultProfileAvatar?: string | undefined;
|
|
16
|
+
defaultGroupAvatar?: string | undefined;
|
|
17
|
+
backgroundAuth?: string | undefined;
|
|
18
|
+
background?: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
dark: {
|
|
21
|
+
primaryHex: string;
|
|
22
|
+
logoSmall?: string | undefined;
|
|
23
|
+
defaultProfileAvatar?: string | undefined;
|
|
24
|
+
defaultGroupAvatar?: string | undefined;
|
|
25
|
+
backgroundAuth?: string | undefined;
|
|
26
|
+
background?: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
icon?: string | undefined;
|
|
29
|
+
mobileIcon?: string | undefined;
|
|
30
|
+
logoFull?: string | undefined;
|
|
31
|
+
logoSmall?: string | undefined;
|
|
32
|
+
defaultProfileAvatar?: string | undefined;
|
|
33
|
+
defaultGroupAvatar?: string | undefined;
|
|
34
|
+
backgroundAuth?: string | undefined;
|
|
35
|
+
background?: string | undefined;
|
|
36
|
+
};
|
|
37
|
+
info: {
|
|
38
|
+
name: string;
|
|
39
|
+
tagLine: string;
|
|
40
|
+
contactEmail?: string | undefined;
|
|
41
|
+
privacyPolicy?: string | undefined;
|
|
42
|
+
termsAndConditions?: string | undefined;
|
|
43
|
+
};
|
|
44
|
+
content: {
|
|
45
|
+
aboutPage?: string | undefined;
|
|
46
|
+
welcomePage?: string | undefined;
|
|
47
|
+
codeOfConduct?: string | undefined;
|
|
48
|
+
welcomeEmail?: string | undefined;
|
|
49
|
+
pinnedPost?: string | undefined;
|
|
50
|
+
};
|
|
51
|
+
settings: {
|
|
52
|
+
openRegistrations: boolean;
|
|
53
|
+
defaultLanguage?: string | undefined;
|
|
54
|
+
};
|
|
55
|
+
roles: {
|
|
56
|
+
onRegistration: {
|
|
57
|
+
add: string[];
|
|
58
|
+
remove: string[];
|
|
59
|
+
};
|
|
60
|
+
onEmailValidation: {
|
|
61
|
+
add: string[];
|
|
62
|
+
remove: string[];
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
profiles?: {
|
|
66
|
+
additionalFields?: {
|
|
67
|
+
key: string;
|
|
68
|
+
label: string;
|
|
69
|
+
icon?: string | undefined;
|
|
70
|
+
linkPattern?: string | undefined;
|
|
71
|
+
}[] | undefined;
|
|
72
|
+
} | undefined;
|
|
73
|
+
};
|
|
74
|
+
jams: {
|
|
75
|
+
livekit: {
|
|
76
|
+
url: string;
|
|
77
|
+
enabled: boolean;
|
|
78
|
+
recordingEnabled: boolean;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
vapid: {
|
|
82
|
+
publicKey?: string | undefined;
|
|
83
|
+
};
|
|
84
|
+
sentryConfig: {
|
|
85
|
+
enabled: boolean;
|
|
86
|
+
dsn?: string | undefined;
|
|
87
|
+
replayEnabled?: boolean | undefined;
|
|
88
|
+
};
|
|
89
|
+
payments: {
|
|
90
|
+
stripe: {
|
|
91
|
+
paidMembership: {
|
|
92
|
+
enabled: boolean;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
maxProfiles?: number | undefined;
|
|
97
|
+
sso?: {
|
|
98
|
+
oidc: {
|
|
99
|
+
id: string;
|
|
100
|
+
name: string;
|
|
101
|
+
}[];
|
|
102
|
+
} | undefined;
|
|
103
|
+
};
|
|
104
|
+
export declare const useCapabilities: () => {
|
|
105
|
+
post: Record<string, {
|
|
106
|
+
add: string[];
|
|
107
|
+
remove: string[];
|
|
108
|
+
}>;
|
|
109
|
+
profile: Record<string, {
|
|
110
|
+
add: string[];
|
|
111
|
+
remove: string[];
|
|
112
|
+
}>;
|
|
113
|
+
report: Record<string, {
|
|
114
|
+
add: string[];
|
|
115
|
+
remove: string[];
|
|
116
|
+
}>;
|
|
117
|
+
accessToken: Record<string, {
|
|
118
|
+
add: string[];
|
|
119
|
+
remove: string[];
|
|
120
|
+
}>;
|
|
121
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createContext, useContext } from 'react';
|
|
2
|
+
export const ServerDataContext = createContext(null);
|
|
3
|
+
export const useServerData = () => {
|
|
4
|
+
const ctx = useContext(ServerDataContext);
|
|
5
|
+
if (!ctx)
|
|
6
|
+
throw new Error('useServerData must be used inside <ServerDataProvider>');
|
|
7
|
+
return ctx;
|
|
8
|
+
};
|
|
9
|
+
export const useServerInfo = () => useServerData().serverInfo;
|
|
10
|
+
export const useCapabilities = () => useServerData().capabilities;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { ServerDataProvider } from './ServerDataProvider';
|
|
2
|
+
export type { ServerDataProviderProps } from './ServerDataProvider';
|
|
3
|
+
export { ServerDataContext, useServerData, useServerInfo, useCapabilities, } from './context';
|
|
4
|
+
export type { ServerDataContextValue } from './types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { CredentialsContextValue } from './types';
|
|
3
|
+
import type { CredentialsStore } from '../../auth/credentials/types';
|
|
4
|
+
export declare const useCredentialsStore: () => CredentialsContextValue;
|
|
5
|
+
export declare const CredentialsStoreProvider: React.FC<{
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
credentialsStore: CredentialsStore;
|
|
8
|
+
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import React, { createContext, useContext } from 'react';
|
|
3
|
+
const CredentialsContext = createContext(null);
|
|
4
|
+
export const useCredentialsStore = () => {
|
|
5
|
+
const context = useContext(CredentialsContext);
|
|
6
|
+
if (!context) {
|
|
7
|
+
throw new Error('useCredentialsStore must be used within a CredentialsStoreProvider');
|
|
8
|
+
}
|
|
9
|
+
return context;
|
|
10
|
+
};
|
|
11
|
+
export const CredentialsStoreProvider = ({ children, credentialsStore }) => {
|
|
12
|
+
return (_jsx(CredentialsContext.Provider, { value: { credentialsStore }, children: children }));
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import type { openpeepsClient, OpenpeepsNoPayloadEndpoint, OpenpeepsPayloadEndpoint } from '@openpeepshq/client';
|
|
2
|
+
import type { ChronologicalInfiniteQueryParams, ProfileWithMeta, PublicAccount, SuccessFailureResponse, TokenResponse } from '@openpeepshq/common/types';
|
|
3
|
+
import type { BodyType, EventSourceOptions, ParametersType, TypedNoPayloadEventSource, TypedPayloadProgressObserverEndpoint, UploadProgressEvent } from '@openpeepshq/fetch-client';
|
|
4
|
+
import { type InfiniteData } from '@tanstack/react-query';
|
|
5
|
+
export declare const retrieveProfile: (client: ReturnType<typeof openpeepsClient>) => () => Promise<ProfileWithMeta | undefined>;
|
|
6
|
+
export declare const retrieveAccount: (client: ReturnType<typeof openpeepsClient>) => () => Promise<{
|
|
7
|
+
id: string;
|
|
8
|
+
email: string;
|
|
9
|
+
emailValidated: boolean;
|
|
10
|
+
} | undefined>;
|
|
11
|
+
export declare const updateCredentialsWrapper: <Input>(fn: (i: Input) => Promise<{
|
|
12
|
+
data: TokenResponse;
|
|
13
|
+
} | {
|
|
14
|
+
error: SuccessFailureResponse;
|
|
15
|
+
}>, retrieveProfile: () => Promise<ProfileWithMeta | undefined>, setCurrentProfile: (profile: ProfileWithMeta | undefined) => void, retrieveAccount: () => Promise<PublicAccount | undefined>, setCurrentAccount: (account: PublicAccount | undefined) => void) => () => (i: Input) => Promise<{
|
|
16
|
+
success: true;
|
|
17
|
+
token: string;
|
|
18
|
+
checkoutUrl?: string | undefined;
|
|
19
|
+
}>;
|
|
20
|
+
export declare const apiHook: <Output, PathParams extends Record<string, string> | undefined = undefined, QueryParams extends Record<string, string> | undefined = undefined>(endpoint: OpenpeepsNoPayloadEndpoint<Output, PathParams, QueryParams>, options?: {
|
|
21
|
+
pathParams?: PathParams;
|
|
22
|
+
queryParams?: QueryParams;
|
|
23
|
+
refetchInterval?: number;
|
|
24
|
+
/** When false, the query does not run (TanStack Query `enabled`). */
|
|
25
|
+
enabled?: boolean;
|
|
26
|
+
onSuccess?: (output: Output) => void | Promise<void>;
|
|
27
|
+
onError?: (error: SuccessFailureResponse) => void | Promise<void>;
|
|
28
|
+
preQueryCheck?: (options: {
|
|
29
|
+
endpoint: OpenpeepsNoPayloadEndpoint<Output, PathParams, QueryParams>;
|
|
30
|
+
pathParams?: PathParams;
|
|
31
|
+
queryParams?: QueryParams;
|
|
32
|
+
}) => void | Promise<void>;
|
|
33
|
+
}) => import("@tanstack/react-query").UseQueryResult<import("@tanstack/react-query").NoInfer<Output>, {
|
|
34
|
+
success: boolean;
|
|
35
|
+
message?: string | undefined;
|
|
36
|
+
key?: string | undefined;
|
|
37
|
+
}>;
|
|
38
|
+
export declare const infiniteChronologicalQueryApiHook: <Output, PathParams extends ParametersType = undefined, QueryParams extends ParametersType = undefined>(endpoint: OpenpeepsNoPayloadEndpoint<Output, PathParams, QueryParams>, options?: {
|
|
39
|
+
pathParams?: PathParams;
|
|
40
|
+
queryParams?: QueryParams & ChronologicalInfiniteQueryParams;
|
|
41
|
+
refetchInterval?: number;
|
|
42
|
+
enabled?: boolean;
|
|
43
|
+
onSuccess?: (output: Output) => void | Promise<void>;
|
|
44
|
+
onError?: (error: SuccessFailureResponse) => void | Promise<void>;
|
|
45
|
+
preQueryCheck?: (options: {
|
|
46
|
+
endpoint: OpenpeepsNoPayloadEndpoint<Output, PathParams, QueryParams>;
|
|
47
|
+
pathParams?: PathParams;
|
|
48
|
+
queryParams?: QueryParams & ChronologicalInfiniteQueryParams;
|
|
49
|
+
}) => void | Promise<void>;
|
|
50
|
+
initialPageParam?: unknown;
|
|
51
|
+
}) => import("@tanstack/react-query").UseInfiniteQueryResult<InfiniteData<Output, unknown>, {
|
|
52
|
+
success: boolean;
|
|
53
|
+
message?: string | undefined;
|
|
54
|
+
key?: string | undefined;
|
|
55
|
+
}>;
|
|
56
|
+
export declare const infiniteOffsetQueryApiHook: <Output, PathParams extends ParametersType = undefined, QueryParams extends ParametersType & {
|
|
57
|
+
offset?: number;
|
|
58
|
+
limit: number;
|
|
59
|
+
} = {
|
|
60
|
+
offset?: number;
|
|
61
|
+
limit: number;
|
|
62
|
+
}>(endpoint: OpenpeepsNoPayloadEndpoint<Output, PathParams, QueryParams>, options?: {
|
|
63
|
+
pageSize: number;
|
|
64
|
+
pathParams?: PathParams;
|
|
65
|
+
queryParams?: QueryParams;
|
|
66
|
+
refetchInterval?: number;
|
|
67
|
+
onSuccess?: (output: Output) => void | Promise<void>;
|
|
68
|
+
onError?: (error: SuccessFailureResponse) => void | Promise<void>;
|
|
69
|
+
preQueryCheck?: (options: {
|
|
70
|
+
endpoint: OpenpeepsNoPayloadEndpoint<Output, PathParams, QueryParams>;
|
|
71
|
+
pathParams?: PathParams;
|
|
72
|
+
queryParams?: QueryParams;
|
|
73
|
+
}) => void | Promise<void>;
|
|
74
|
+
initialPageParam?: unknown;
|
|
75
|
+
}) => import("@tanstack/react-query").UseInfiniteQueryResult<InfiniteData<Output, unknown>, {
|
|
76
|
+
success: boolean;
|
|
77
|
+
message?: string | undefined;
|
|
78
|
+
key?: string | undefined;
|
|
79
|
+
}>;
|
|
80
|
+
export declare const payloadMutation: <Input extends BodyType, Output, PathParams extends Record<string, string> | undefined = undefined, QueryParams extends Record<string, string> | undefined = undefined>(endpoint: OpenpeepsPayloadEndpoint<Output, Input, PathParams, QueryParams>, queryKeys?: string[][]) => (defaultPathParams?: PathParams extends undefined ? never : PathParams) => (input: Input, pathParams?: PathParams extends undefined ? never : PathParams, queryParams?: QueryParams extends undefined ? never : QueryParams, headers?: Record<string, string>) => Promise<Output>;
|
|
81
|
+
/**
|
|
82
|
+
* Like {@link payloadMutation} but for endpoints that route through
|
|
83
|
+
* `XMLHttpRequest` and accept an `onUploadProgress` callback (typically
|
|
84
|
+
* media uploads).
|
|
85
|
+
*/
|
|
86
|
+
export declare const payloadProgressMutation: <Input extends BodyType, Output, PathParams extends Record<string, string> | undefined = undefined, QueryParams extends Record<string, string> | undefined = undefined>(endpoint: TypedPayloadProgressObserverEndpoint<Output, Input, SuccessFailureResponse, PathParams, QueryParams>, queryKeys?: string[][]) => (defaultPathParams?: PathParams extends undefined ? never : PathParams) => (input: Input, pathParams?: PathParams extends undefined ? never : PathParams, queryParams?: QueryParams extends undefined ? never : QueryParams, headers?: Record<string, string>, onUploadProgress?: (event: UploadProgressEvent) => void) => Promise<Output>;
|
|
87
|
+
export declare const noPayloadMutation: <Output, PathParams extends Record<string, string> | undefined = undefined, QueryParams extends Record<string, string> | undefined = undefined>(endpoint: OpenpeepsNoPayloadEndpoint<Output, PathParams, QueryParams>, queryKeys?: string[][]) => (defaultPathParams?: PathParams extends undefined ? never : PathParams) => (pathParams?: PathParams extends undefined ? never : PathParams, queryParams?: QueryParams extends undefined ? never : QueryParams, headers?: Record<string, string>) => Promise<Output>;
|
|
88
|
+
export declare const payloadPostsReadMutation: <Input extends BodyType, Output, PathParams extends Record<string, string> | undefined = undefined, QueryParams extends Record<string, string> | undefined = undefined>(endpoint: OpenpeepsPayloadEndpoint<Output, Input, PathParams, QueryParams>) => (defaultPathParams?: PathParams extends undefined ? never : PathParams) => (input: Input, pathParams?: PathParams extends undefined ? never : PathParams, queryParams?: QueryParams extends undefined ? never : QueryParams, headers?: Record<string, string>) => Promise<Output>;
|
|
89
|
+
export declare const noPayloadPostsReadMutation: <Output, PathParams extends Record<string, string> | undefined = undefined, QueryParams extends Record<string, string> | undefined = undefined>(endpoint: OpenpeepsNoPayloadEndpoint<Output, PathParams, QueryParams>) => (defaultPathParams?: PathParams extends undefined ? never : PathParams) => (pathParams?: PathParams extends undefined ? never : PathParams, queryParams?: QueryParams extends undefined ? never : QueryParams, headers?: Record<string, string>) => Promise<Output>;
|
|
90
|
+
export declare const noPayloadStream: <EventType, PathParams extends Record<string, string> | undefined = undefined, QueryParams extends Record<string, string> | undefined = undefined>(typedEventSource: TypedNoPayloadEventSource<EventType, PathParams, QueryParams>) => {
|
|
91
|
+
last: (options: Omit<EventSourceOptions<EventType, PathParams, QueryParams>, "handler">) => EventType | undefined;
|
|
92
|
+
all: (options: Omit<EventSourceOptions<EventType, PathParams, QueryParams>, "handler">) => EventType[];
|
|
93
|
+
};
|