@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,63 @@
|
|
|
1
|
+
import { useSyncExternalStore } from 'react';
|
|
2
|
+
export function createStore(initial) {
|
|
3
|
+
let value = initial;
|
|
4
|
+
const listeners = new Set();
|
|
5
|
+
return {
|
|
6
|
+
get: () => value,
|
|
7
|
+
set: (next) => {
|
|
8
|
+
value =
|
|
9
|
+
typeof next === 'function' ? next(value) : next;
|
|
10
|
+
listeners.forEach((l) => l());
|
|
11
|
+
},
|
|
12
|
+
subscribe: (listener) => {
|
|
13
|
+
listeners.add(listener);
|
|
14
|
+
return () => listeners.delete(listener);
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export function useStore(store) {
|
|
19
|
+
return useSyncExternalStore(store.subscribe, store.get, store.get);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* `localStorage`-backed store. Mirrors svelte-persisted-state — value is read
|
|
23
|
+
* synchronously on construction and written on every set.
|
|
24
|
+
*/
|
|
25
|
+
export function persistedStore(key, initial) {
|
|
26
|
+
let initialValue = initial;
|
|
27
|
+
if (typeof localStorage !== 'undefined') {
|
|
28
|
+
try {
|
|
29
|
+
const stored = localStorage.getItem(key);
|
|
30
|
+
if (stored !== null)
|
|
31
|
+
initialValue = JSON.parse(stored);
|
|
32
|
+
}
|
|
33
|
+
catch {
|
|
34
|
+
// ignore deserialization failures
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
const store = createStore(initialValue);
|
|
38
|
+
const wrapped = {
|
|
39
|
+
...store,
|
|
40
|
+
set: (next) => {
|
|
41
|
+
store.set(next);
|
|
42
|
+
try {
|
|
43
|
+
if (typeof localStorage !== 'undefined') {
|
|
44
|
+
localStorage.setItem(key, JSON.stringify(store.get()));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
catch {
|
|
48
|
+
// ignore quota/serialization failures
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
reset: () => {
|
|
52
|
+
try {
|
|
53
|
+
if (typeof localStorage !== 'undefined')
|
|
54
|
+
localStorage.removeItem(key);
|
|
55
|
+
}
|
|
56
|
+
catch {
|
|
57
|
+
// ignore
|
|
58
|
+
}
|
|
59
|
+
store.set(initial);
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
return wrapped;
|
|
63
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { createStore, useStore, persistedStore, type ReactStore, } from './createStore';
|
|
2
|
+
export { breadcrumbsStore, setBreadcrumbs, useBreadcrumbs, } from './breadcrumbs';
|
|
3
|
+
export { pageHeaderStore, usePageHeader, useSetPageHeader } from './pageHeader';
|
|
4
|
+
export { plusButtonStore, usePlusButton, useSetPlusButtonActions, } from './plusButton';
|
|
5
|
+
export { initializeNewPostStores, getNewPostStores, useNewPostStores, resetStore, defaultNewArticle, defaultNewEvent, defaultNewNote, defaultNewQuestion, eventSanitizer, getReplyStore, resetReplyData, useReplyStore, } from './newPosts';
|
|
6
|
+
export type { Crumb, PageHeader, PlusButtonAction, PlusButtonActions, NewPostsState, } from './types';
|
|
7
|
+
export declare const initializePageStores: () => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { createStore, useStore, persistedStore, } from './createStore.js';
|
|
2
|
+
export { breadcrumbsStore, setBreadcrumbs, useBreadcrumbs, } from './breadcrumbs.js';
|
|
3
|
+
export { pageHeaderStore, usePageHeader, useSetPageHeader } from './pageHeader.js';
|
|
4
|
+
export { plusButtonStore, usePlusButton, useSetPlusButtonActions, } from './plusButton.js';
|
|
5
|
+
export { initializeNewPostStores, getNewPostStores, useNewPostStores, resetStore, defaultNewArticle, defaultNewEvent, defaultNewNote, defaultNewQuestion, eventSanitizer, getReplyStore, resetReplyData, useReplyStore, } from './newPosts.js';
|
|
6
|
+
export const initializePageStores = () => {
|
|
7
|
+
// page-scoped stores live module-level — calling this is a no-op kept for
|
|
8
|
+
// API compatibility with @openpeepshq/svelte.
|
|
9
|
+
};
|
|
@@ -0,0 +1,591 @@
|
|
|
1
|
+
import type { PostCreationData, PostType } from '@openpeepshq/common';
|
|
2
|
+
import type { NewPostsState } from './types';
|
|
3
|
+
export declare const defaultNewEvent: (publicContent?: boolean) => PostCreationData;
|
|
4
|
+
export declare const defaultNewNote: (publicContent?: boolean) => PostCreationData;
|
|
5
|
+
export declare const defaultNewQuestion: (publicContent?: boolean) => PostCreationData;
|
|
6
|
+
export declare const defaultNewArticle: (publicContent?: boolean) => PostCreationData;
|
|
7
|
+
export declare const eventSanitizer: (publicContent?: boolean) => (event: PostCreationData) => PostCreationData;
|
|
8
|
+
export declare const initializeNewPostStores: (publicContent?: boolean) => void;
|
|
9
|
+
export declare const getNewPostStores: () => NewPostsState;
|
|
10
|
+
export declare const useNewPostStores: () => NewPostsState;
|
|
11
|
+
/** Persisted draft store for a reply to a specific post. */
|
|
12
|
+
export declare const getReplyStore: (inReplyToId: string) => import("./createStore").ReactStore<{
|
|
13
|
+
visibility: "direct" | "local" | "group" | "report" | "public" | "unlisted" | "private";
|
|
14
|
+
type: "note" | "question" | "event" | "article";
|
|
15
|
+
data: {
|
|
16
|
+
type: "note";
|
|
17
|
+
content?: string | undefined;
|
|
18
|
+
sensitive?: boolean | undefined;
|
|
19
|
+
spoilerText?: string | undefined;
|
|
20
|
+
attachments?: {
|
|
21
|
+
type: string;
|
|
22
|
+
url: string;
|
|
23
|
+
previewUrl: string | null;
|
|
24
|
+
textUrl: null;
|
|
25
|
+
filename: string;
|
|
26
|
+
meta: {
|
|
27
|
+
usage?: string | undefined;
|
|
28
|
+
focus?: {
|
|
29
|
+
x: number;
|
|
30
|
+
y: number;
|
|
31
|
+
} | undefined;
|
|
32
|
+
mimetype?: string | undefined;
|
|
33
|
+
size?: number | undefined;
|
|
34
|
+
};
|
|
35
|
+
description?: string | undefined;
|
|
36
|
+
blurhash?: string | undefined;
|
|
37
|
+
status?: "failed" | "processing" | "ready" | undefined;
|
|
38
|
+
error?: string | undefined;
|
|
39
|
+
}[] | undefined;
|
|
40
|
+
customEmojis?: {
|
|
41
|
+
shortcode: string;
|
|
42
|
+
url: string;
|
|
43
|
+
staticUrl: string;
|
|
44
|
+
visibleInPicker: boolean;
|
|
45
|
+
category: string;
|
|
46
|
+
}[] | undefined;
|
|
47
|
+
language?: string | undefined;
|
|
48
|
+
} | {
|
|
49
|
+
type: "question";
|
|
50
|
+
options: {
|
|
51
|
+
content: string;
|
|
52
|
+
type: "note";
|
|
53
|
+
}[];
|
|
54
|
+
content?: string | undefined;
|
|
55
|
+
sensitive?: boolean | undefined;
|
|
56
|
+
spoilerText?: string | undefined;
|
|
57
|
+
attachments?: {
|
|
58
|
+
type: string;
|
|
59
|
+
url: string;
|
|
60
|
+
previewUrl: string | null;
|
|
61
|
+
textUrl: null;
|
|
62
|
+
filename: string;
|
|
63
|
+
meta: {
|
|
64
|
+
usage?: string | undefined;
|
|
65
|
+
focus?: {
|
|
66
|
+
x: number;
|
|
67
|
+
y: number;
|
|
68
|
+
} | undefined;
|
|
69
|
+
mimetype?: string | undefined;
|
|
70
|
+
size?: number | undefined;
|
|
71
|
+
};
|
|
72
|
+
description?: string | undefined;
|
|
73
|
+
blurhash?: string | undefined;
|
|
74
|
+
status?: "failed" | "processing" | "ready" | undefined;
|
|
75
|
+
error?: string | undefined;
|
|
76
|
+
}[] | undefined;
|
|
77
|
+
customEmojis?: {
|
|
78
|
+
shortcode: string;
|
|
79
|
+
url: string;
|
|
80
|
+
staticUrl: string;
|
|
81
|
+
visibleInPicker: boolean;
|
|
82
|
+
category: string;
|
|
83
|
+
}[] | undefined;
|
|
84
|
+
language?: string | undefined;
|
|
85
|
+
multiple?: boolean | undefined;
|
|
86
|
+
votersVisible?: boolean | undefined;
|
|
87
|
+
expiresAt?: string | undefined;
|
|
88
|
+
} | {
|
|
89
|
+
type: "event";
|
|
90
|
+
start: string;
|
|
91
|
+
wholeDay: boolean;
|
|
92
|
+
content?: string | undefined;
|
|
93
|
+
sensitive?: boolean | undefined;
|
|
94
|
+
spoilerText?: string | undefined;
|
|
95
|
+
attachments?: {
|
|
96
|
+
type: string;
|
|
97
|
+
url: string;
|
|
98
|
+
previewUrl: string | null;
|
|
99
|
+
textUrl: null;
|
|
100
|
+
filename: string;
|
|
101
|
+
meta: {
|
|
102
|
+
usage?: string | undefined;
|
|
103
|
+
focus?: {
|
|
104
|
+
x: number;
|
|
105
|
+
y: number;
|
|
106
|
+
} | undefined;
|
|
107
|
+
mimetype?: string | undefined;
|
|
108
|
+
size?: number | undefined;
|
|
109
|
+
};
|
|
110
|
+
description?: string | undefined;
|
|
111
|
+
blurhash?: string | undefined;
|
|
112
|
+
status?: "failed" | "processing" | "ready" | undefined;
|
|
113
|
+
error?: string | undefined;
|
|
114
|
+
}[] | undefined;
|
|
115
|
+
customEmojis?: {
|
|
116
|
+
shortcode: string;
|
|
117
|
+
url: string;
|
|
118
|
+
staticUrl: string;
|
|
119
|
+
visibleInPicker: boolean;
|
|
120
|
+
category: string;
|
|
121
|
+
}[] | undefined;
|
|
122
|
+
language?: string | undefined;
|
|
123
|
+
name?: string | undefined;
|
|
124
|
+
timeZone?: string | undefined;
|
|
125
|
+
image?: string | undefined;
|
|
126
|
+
end?: string | undefined;
|
|
127
|
+
maxAttendees?: number | undefined;
|
|
128
|
+
attendeeListPublic?: boolean | undefined;
|
|
129
|
+
moderators?: string[] | undefined;
|
|
130
|
+
jam?: {
|
|
131
|
+
moderators: string[];
|
|
132
|
+
videoEnabled: boolean;
|
|
133
|
+
type: "video-call";
|
|
134
|
+
speakers?: string[] | undefined;
|
|
135
|
+
presenters?: string[] | undefined;
|
|
136
|
+
audience?: string[] | undefined;
|
|
137
|
+
maxSpeakers?: number | undefined;
|
|
138
|
+
maxPresenters?: number | undefined;
|
|
139
|
+
maxAudience?: number | undefined;
|
|
140
|
+
waitingRoom?: boolean | undefined;
|
|
141
|
+
} | undefined;
|
|
142
|
+
physicalLocation?: {
|
|
143
|
+
text: string;
|
|
144
|
+
coordinates?: {
|
|
145
|
+
lat: number;
|
|
146
|
+
lng: number;
|
|
147
|
+
alt?: number | undefined;
|
|
148
|
+
} | undefined;
|
|
149
|
+
} | undefined;
|
|
150
|
+
url?: string | undefined;
|
|
151
|
+
} | {
|
|
152
|
+
type: "article";
|
|
153
|
+
content?: string | undefined;
|
|
154
|
+
sensitive?: boolean | undefined;
|
|
155
|
+
spoilerText?: string | undefined;
|
|
156
|
+
attachments?: {
|
|
157
|
+
type: string;
|
|
158
|
+
url: string;
|
|
159
|
+
previewUrl: string | null;
|
|
160
|
+
textUrl: null;
|
|
161
|
+
filename: string;
|
|
162
|
+
meta: {
|
|
163
|
+
usage?: string | undefined;
|
|
164
|
+
focus?: {
|
|
165
|
+
x: number;
|
|
166
|
+
y: number;
|
|
167
|
+
} | undefined;
|
|
168
|
+
mimetype?: string | undefined;
|
|
169
|
+
size?: number | undefined;
|
|
170
|
+
};
|
|
171
|
+
description?: string | undefined;
|
|
172
|
+
blurhash?: string | undefined;
|
|
173
|
+
status?: "failed" | "processing" | "ready" | undefined;
|
|
174
|
+
error?: string | undefined;
|
|
175
|
+
}[] | undefined;
|
|
176
|
+
customEmojis?: {
|
|
177
|
+
shortcode: string;
|
|
178
|
+
url: string;
|
|
179
|
+
staticUrl: string;
|
|
180
|
+
visibleInPicker: boolean;
|
|
181
|
+
category: string;
|
|
182
|
+
}[] | undefined;
|
|
183
|
+
language?: string | undefined;
|
|
184
|
+
image?: string | undefined;
|
|
185
|
+
title?: string | undefined;
|
|
186
|
+
};
|
|
187
|
+
inReplyToId?: string | null | undefined;
|
|
188
|
+
mentions?: {
|
|
189
|
+
profile: {
|
|
190
|
+
id: string;
|
|
191
|
+
type: "local" | "guest" | "federated";
|
|
192
|
+
createdAt: string;
|
|
193
|
+
updatedAt: string;
|
|
194
|
+
handle: string;
|
|
195
|
+
memberships: {
|
|
196
|
+
group: {
|
|
197
|
+
handle: string;
|
|
198
|
+
capabilities: Record<string, {
|
|
199
|
+
add?: string[] | undefined;
|
|
200
|
+
remove?: string[] | undefined;
|
|
201
|
+
} | undefined>;
|
|
202
|
+
id: string;
|
|
203
|
+
createdAt: string;
|
|
204
|
+
updatedAt: string;
|
|
205
|
+
avatar?: string | null | undefined;
|
|
206
|
+
header?: string | null | undefined;
|
|
207
|
+
displayName?: string | undefined;
|
|
208
|
+
description?: string | undefined;
|
|
209
|
+
rules?: string | undefined;
|
|
210
|
+
pinnedPostId?: string | undefined;
|
|
211
|
+
discoverable?: boolean | undefined;
|
|
212
|
+
deletedAt?: string | null | undefined;
|
|
213
|
+
};
|
|
214
|
+
roles?: ("none" | "local" | "member" | "admin" | "moderator" | "invited")[] | null | undefined;
|
|
215
|
+
}[] | undefined;
|
|
216
|
+
deletedAt?: string | null | undefined;
|
|
217
|
+
avatar?: string | null | undefined;
|
|
218
|
+
header?: string | null | undefined;
|
|
219
|
+
displayName?: string | undefined;
|
|
220
|
+
bio?: string | undefined;
|
|
221
|
+
location?: {
|
|
222
|
+
text: string;
|
|
223
|
+
coordinates?: {
|
|
224
|
+
lat: number;
|
|
225
|
+
lng: number;
|
|
226
|
+
alt?: number | undefined;
|
|
227
|
+
} | undefined;
|
|
228
|
+
} | undefined;
|
|
229
|
+
locked?: boolean | undefined;
|
|
230
|
+
bot?: boolean | undefined;
|
|
231
|
+
discoverable?: boolean | undefined;
|
|
232
|
+
fields?: {
|
|
233
|
+
name: string;
|
|
234
|
+
value: string;
|
|
235
|
+
}[] | undefined;
|
|
236
|
+
profileStats?: {
|
|
237
|
+
followersCount: number;
|
|
238
|
+
followingCount: number;
|
|
239
|
+
} | undefined;
|
|
240
|
+
};
|
|
241
|
+
text?: string | undefined;
|
|
242
|
+
}[] | null | undefined;
|
|
243
|
+
audience?: {
|
|
244
|
+
id: string;
|
|
245
|
+
type: "local" | "guest" | "federated";
|
|
246
|
+
createdAt: string;
|
|
247
|
+
updatedAt: string;
|
|
248
|
+
handle: string;
|
|
249
|
+
memberships: {
|
|
250
|
+
group: {
|
|
251
|
+
handle: string;
|
|
252
|
+
capabilities: Record<string, {
|
|
253
|
+
add?: string[] | undefined;
|
|
254
|
+
remove?: string[] | undefined;
|
|
255
|
+
} | undefined>;
|
|
256
|
+
id: string;
|
|
257
|
+
createdAt: string;
|
|
258
|
+
updatedAt: string;
|
|
259
|
+
avatar?: string | null | undefined;
|
|
260
|
+
header?: string | null | undefined;
|
|
261
|
+
displayName?: string | undefined;
|
|
262
|
+
description?: string | undefined;
|
|
263
|
+
rules?: string | undefined;
|
|
264
|
+
pinnedPostId?: string | undefined;
|
|
265
|
+
discoverable?: boolean | undefined;
|
|
266
|
+
deletedAt?: string | null | undefined;
|
|
267
|
+
};
|
|
268
|
+
roles?: ("none" | "local" | "member" | "admin" | "moderator" | "invited")[] | null | undefined;
|
|
269
|
+
}[] | undefined;
|
|
270
|
+
deletedAt?: string | null | undefined;
|
|
271
|
+
avatar?: string | null | undefined;
|
|
272
|
+
header?: string | null | undefined;
|
|
273
|
+
displayName?: string | undefined;
|
|
274
|
+
bio?: string | undefined;
|
|
275
|
+
location?: {
|
|
276
|
+
text: string;
|
|
277
|
+
coordinates?: {
|
|
278
|
+
lat: number;
|
|
279
|
+
lng: number;
|
|
280
|
+
alt?: number | undefined;
|
|
281
|
+
} | undefined;
|
|
282
|
+
} | undefined;
|
|
283
|
+
locked?: boolean | undefined;
|
|
284
|
+
bot?: boolean | undefined;
|
|
285
|
+
discoverable?: boolean | undefined;
|
|
286
|
+
fields?: {
|
|
287
|
+
name: string;
|
|
288
|
+
value: string;
|
|
289
|
+
}[] | undefined;
|
|
290
|
+
profileStats?: {
|
|
291
|
+
followersCount: number;
|
|
292
|
+
followingCount: number;
|
|
293
|
+
} | undefined;
|
|
294
|
+
}[] | null | undefined;
|
|
295
|
+
groupId?: string | null | undefined;
|
|
296
|
+
reportId?: string | null | undefined;
|
|
297
|
+
capabilitiesNeeded?: string[] | null | undefined;
|
|
298
|
+
}> & {
|
|
299
|
+
reset: () => void;
|
|
300
|
+
};
|
|
301
|
+
export declare const resetReplyData: (inReplyToId: string) => void;
|
|
302
|
+
export declare const useReplyStore: (inReplyToId: string) => import("./createStore").ReactStore<{
|
|
303
|
+
visibility: "direct" | "local" | "group" | "report" | "public" | "unlisted" | "private";
|
|
304
|
+
type: "note" | "question" | "event" | "article";
|
|
305
|
+
data: {
|
|
306
|
+
type: "note";
|
|
307
|
+
content?: string | undefined;
|
|
308
|
+
sensitive?: boolean | undefined;
|
|
309
|
+
spoilerText?: string | undefined;
|
|
310
|
+
attachments?: {
|
|
311
|
+
type: string;
|
|
312
|
+
url: string;
|
|
313
|
+
previewUrl: string | null;
|
|
314
|
+
textUrl: null;
|
|
315
|
+
filename: string;
|
|
316
|
+
meta: {
|
|
317
|
+
usage?: string | undefined;
|
|
318
|
+
focus?: {
|
|
319
|
+
x: number;
|
|
320
|
+
y: number;
|
|
321
|
+
} | undefined;
|
|
322
|
+
mimetype?: string | undefined;
|
|
323
|
+
size?: number | undefined;
|
|
324
|
+
};
|
|
325
|
+
description?: string | undefined;
|
|
326
|
+
blurhash?: string | undefined;
|
|
327
|
+
status?: "failed" | "processing" | "ready" | undefined;
|
|
328
|
+
error?: string | undefined;
|
|
329
|
+
}[] | undefined;
|
|
330
|
+
customEmojis?: {
|
|
331
|
+
shortcode: string;
|
|
332
|
+
url: string;
|
|
333
|
+
staticUrl: string;
|
|
334
|
+
visibleInPicker: boolean;
|
|
335
|
+
category: string;
|
|
336
|
+
}[] | undefined;
|
|
337
|
+
language?: string | undefined;
|
|
338
|
+
} | {
|
|
339
|
+
type: "question";
|
|
340
|
+
options: {
|
|
341
|
+
content: string;
|
|
342
|
+
type: "note";
|
|
343
|
+
}[];
|
|
344
|
+
content?: string | undefined;
|
|
345
|
+
sensitive?: boolean | undefined;
|
|
346
|
+
spoilerText?: string | undefined;
|
|
347
|
+
attachments?: {
|
|
348
|
+
type: string;
|
|
349
|
+
url: string;
|
|
350
|
+
previewUrl: string | null;
|
|
351
|
+
textUrl: null;
|
|
352
|
+
filename: string;
|
|
353
|
+
meta: {
|
|
354
|
+
usage?: string | undefined;
|
|
355
|
+
focus?: {
|
|
356
|
+
x: number;
|
|
357
|
+
y: number;
|
|
358
|
+
} | undefined;
|
|
359
|
+
mimetype?: string | undefined;
|
|
360
|
+
size?: number | undefined;
|
|
361
|
+
};
|
|
362
|
+
description?: string | undefined;
|
|
363
|
+
blurhash?: string | undefined;
|
|
364
|
+
status?: "failed" | "processing" | "ready" | undefined;
|
|
365
|
+
error?: string | undefined;
|
|
366
|
+
}[] | undefined;
|
|
367
|
+
customEmojis?: {
|
|
368
|
+
shortcode: string;
|
|
369
|
+
url: string;
|
|
370
|
+
staticUrl: string;
|
|
371
|
+
visibleInPicker: boolean;
|
|
372
|
+
category: string;
|
|
373
|
+
}[] | undefined;
|
|
374
|
+
language?: string | undefined;
|
|
375
|
+
multiple?: boolean | undefined;
|
|
376
|
+
votersVisible?: boolean | undefined;
|
|
377
|
+
expiresAt?: string | undefined;
|
|
378
|
+
} | {
|
|
379
|
+
type: "event";
|
|
380
|
+
start: string;
|
|
381
|
+
wholeDay: boolean;
|
|
382
|
+
content?: string | undefined;
|
|
383
|
+
sensitive?: boolean | undefined;
|
|
384
|
+
spoilerText?: string | undefined;
|
|
385
|
+
attachments?: {
|
|
386
|
+
type: string;
|
|
387
|
+
url: string;
|
|
388
|
+
previewUrl: string | null;
|
|
389
|
+
textUrl: null;
|
|
390
|
+
filename: string;
|
|
391
|
+
meta: {
|
|
392
|
+
usage?: string | undefined;
|
|
393
|
+
focus?: {
|
|
394
|
+
x: number;
|
|
395
|
+
y: number;
|
|
396
|
+
} | undefined;
|
|
397
|
+
mimetype?: string | undefined;
|
|
398
|
+
size?: number | undefined;
|
|
399
|
+
};
|
|
400
|
+
description?: string | undefined;
|
|
401
|
+
blurhash?: string | undefined;
|
|
402
|
+
status?: "failed" | "processing" | "ready" | undefined;
|
|
403
|
+
error?: string | undefined;
|
|
404
|
+
}[] | undefined;
|
|
405
|
+
customEmojis?: {
|
|
406
|
+
shortcode: string;
|
|
407
|
+
url: string;
|
|
408
|
+
staticUrl: string;
|
|
409
|
+
visibleInPicker: boolean;
|
|
410
|
+
category: string;
|
|
411
|
+
}[] | undefined;
|
|
412
|
+
language?: string | undefined;
|
|
413
|
+
name?: string | undefined;
|
|
414
|
+
timeZone?: string | undefined;
|
|
415
|
+
image?: string | undefined;
|
|
416
|
+
end?: string | undefined;
|
|
417
|
+
maxAttendees?: number | undefined;
|
|
418
|
+
attendeeListPublic?: boolean | undefined;
|
|
419
|
+
moderators?: string[] | undefined;
|
|
420
|
+
jam?: {
|
|
421
|
+
moderators: string[];
|
|
422
|
+
videoEnabled: boolean;
|
|
423
|
+
type: "video-call";
|
|
424
|
+
speakers?: string[] | undefined;
|
|
425
|
+
presenters?: string[] | undefined;
|
|
426
|
+
audience?: string[] | undefined;
|
|
427
|
+
maxSpeakers?: number | undefined;
|
|
428
|
+
maxPresenters?: number | undefined;
|
|
429
|
+
maxAudience?: number | undefined;
|
|
430
|
+
waitingRoom?: boolean | undefined;
|
|
431
|
+
} | undefined;
|
|
432
|
+
physicalLocation?: {
|
|
433
|
+
text: string;
|
|
434
|
+
coordinates?: {
|
|
435
|
+
lat: number;
|
|
436
|
+
lng: number;
|
|
437
|
+
alt?: number | undefined;
|
|
438
|
+
} | undefined;
|
|
439
|
+
} | undefined;
|
|
440
|
+
url?: string | undefined;
|
|
441
|
+
} | {
|
|
442
|
+
type: "article";
|
|
443
|
+
content?: string | undefined;
|
|
444
|
+
sensitive?: boolean | undefined;
|
|
445
|
+
spoilerText?: string | undefined;
|
|
446
|
+
attachments?: {
|
|
447
|
+
type: string;
|
|
448
|
+
url: string;
|
|
449
|
+
previewUrl: string | null;
|
|
450
|
+
textUrl: null;
|
|
451
|
+
filename: string;
|
|
452
|
+
meta: {
|
|
453
|
+
usage?: string | undefined;
|
|
454
|
+
focus?: {
|
|
455
|
+
x: number;
|
|
456
|
+
y: number;
|
|
457
|
+
} | undefined;
|
|
458
|
+
mimetype?: string | undefined;
|
|
459
|
+
size?: number | undefined;
|
|
460
|
+
};
|
|
461
|
+
description?: string | undefined;
|
|
462
|
+
blurhash?: string | undefined;
|
|
463
|
+
status?: "failed" | "processing" | "ready" | undefined;
|
|
464
|
+
error?: string | undefined;
|
|
465
|
+
}[] | undefined;
|
|
466
|
+
customEmojis?: {
|
|
467
|
+
shortcode: string;
|
|
468
|
+
url: string;
|
|
469
|
+
staticUrl: string;
|
|
470
|
+
visibleInPicker: boolean;
|
|
471
|
+
category: string;
|
|
472
|
+
}[] | undefined;
|
|
473
|
+
language?: string | undefined;
|
|
474
|
+
image?: string | undefined;
|
|
475
|
+
title?: string | undefined;
|
|
476
|
+
};
|
|
477
|
+
inReplyToId?: string | null | undefined;
|
|
478
|
+
mentions?: {
|
|
479
|
+
profile: {
|
|
480
|
+
id: string;
|
|
481
|
+
type: "local" | "guest" | "federated";
|
|
482
|
+
createdAt: string;
|
|
483
|
+
updatedAt: string;
|
|
484
|
+
handle: string;
|
|
485
|
+
memberships: {
|
|
486
|
+
group: {
|
|
487
|
+
handle: string;
|
|
488
|
+
capabilities: Record<string, {
|
|
489
|
+
add?: string[] | undefined;
|
|
490
|
+
remove?: string[] | undefined;
|
|
491
|
+
} | undefined>;
|
|
492
|
+
id: string;
|
|
493
|
+
createdAt: string;
|
|
494
|
+
updatedAt: string;
|
|
495
|
+
avatar?: string | null | undefined;
|
|
496
|
+
header?: string | null | undefined;
|
|
497
|
+
displayName?: string | undefined;
|
|
498
|
+
description?: string | undefined;
|
|
499
|
+
rules?: string | undefined;
|
|
500
|
+
pinnedPostId?: string | undefined;
|
|
501
|
+
discoverable?: boolean | undefined;
|
|
502
|
+
deletedAt?: string | null | undefined;
|
|
503
|
+
};
|
|
504
|
+
roles?: ("none" | "local" | "member" | "admin" | "moderator" | "invited")[] | null | undefined;
|
|
505
|
+
}[] | undefined;
|
|
506
|
+
deletedAt?: string | null | undefined;
|
|
507
|
+
avatar?: string | null | undefined;
|
|
508
|
+
header?: string | null | undefined;
|
|
509
|
+
displayName?: string | undefined;
|
|
510
|
+
bio?: string | undefined;
|
|
511
|
+
location?: {
|
|
512
|
+
text: string;
|
|
513
|
+
coordinates?: {
|
|
514
|
+
lat: number;
|
|
515
|
+
lng: number;
|
|
516
|
+
alt?: number | undefined;
|
|
517
|
+
} | undefined;
|
|
518
|
+
} | undefined;
|
|
519
|
+
locked?: boolean | undefined;
|
|
520
|
+
bot?: boolean | undefined;
|
|
521
|
+
discoverable?: boolean | undefined;
|
|
522
|
+
fields?: {
|
|
523
|
+
name: string;
|
|
524
|
+
value: string;
|
|
525
|
+
}[] | undefined;
|
|
526
|
+
profileStats?: {
|
|
527
|
+
followersCount: number;
|
|
528
|
+
followingCount: number;
|
|
529
|
+
} | undefined;
|
|
530
|
+
};
|
|
531
|
+
text?: string | undefined;
|
|
532
|
+
}[] | null | undefined;
|
|
533
|
+
audience?: {
|
|
534
|
+
id: string;
|
|
535
|
+
type: "local" | "guest" | "federated";
|
|
536
|
+
createdAt: string;
|
|
537
|
+
updatedAt: string;
|
|
538
|
+
handle: string;
|
|
539
|
+
memberships: {
|
|
540
|
+
group: {
|
|
541
|
+
handle: string;
|
|
542
|
+
capabilities: Record<string, {
|
|
543
|
+
add?: string[] | undefined;
|
|
544
|
+
remove?: string[] | undefined;
|
|
545
|
+
} | undefined>;
|
|
546
|
+
id: string;
|
|
547
|
+
createdAt: string;
|
|
548
|
+
updatedAt: string;
|
|
549
|
+
avatar?: string | null | undefined;
|
|
550
|
+
header?: string | null | undefined;
|
|
551
|
+
displayName?: string | undefined;
|
|
552
|
+
description?: string | undefined;
|
|
553
|
+
rules?: string | undefined;
|
|
554
|
+
pinnedPostId?: string | undefined;
|
|
555
|
+
discoverable?: boolean | undefined;
|
|
556
|
+
deletedAt?: string | null | undefined;
|
|
557
|
+
};
|
|
558
|
+
roles?: ("none" | "local" | "member" | "admin" | "moderator" | "invited")[] | null | undefined;
|
|
559
|
+
}[] | undefined;
|
|
560
|
+
deletedAt?: string | null | undefined;
|
|
561
|
+
avatar?: string | null | undefined;
|
|
562
|
+
header?: string | null | undefined;
|
|
563
|
+
displayName?: string | undefined;
|
|
564
|
+
bio?: string | undefined;
|
|
565
|
+
location?: {
|
|
566
|
+
text: string;
|
|
567
|
+
coordinates?: {
|
|
568
|
+
lat: number;
|
|
569
|
+
lng: number;
|
|
570
|
+
alt?: number | undefined;
|
|
571
|
+
} | undefined;
|
|
572
|
+
} | undefined;
|
|
573
|
+
locked?: boolean | undefined;
|
|
574
|
+
bot?: boolean | undefined;
|
|
575
|
+
discoverable?: boolean | undefined;
|
|
576
|
+
fields?: {
|
|
577
|
+
name: string;
|
|
578
|
+
value: string;
|
|
579
|
+
}[] | undefined;
|
|
580
|
+
profileStats?: {
|
|
581
|
+
followersCount: number;
|
|
582
|
+
followingCount: number;
|
|
583
|
+
} | undefined;
|
|
584
|
+
}[] | null | undefined;
|
|
585
|
+
groupId?: string | null | undefined;
|
|
586
|
+
reportId?: string | null | undefined;
|
|
587
|
+
capabilitiesNeeded?: string[] | null | undefined;
|
|
588
|
+
}> & {
|
|
589
|
+
reset: () => void;
|
|
590
|
+
};
|
|
591
|
+
export declare const resetStore: (type: PostType) => void;
|