@openpeepshq/react 0.2.3 → 0.2.5
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/dist/components/accounts/SignUpLoginModal.js +2 -2
- package/dist/components/configuration/ConfigMenuButton.d.ts +10 -0
- package/dist/components/configuration/ConfigMenuButton.js +12 -0
- package/dist/components/configuration/ConfigurationTree.js +1 -1
- package/dist/components/configuration/index.d.ts +2 -0
- package/dist/components/configuration/index.js +1 -0
- package/dist/components/conversations/ConversationMessageBubble.d.ts +2 -1
- package/dist/components/conversations/ConversationMessageBubble.js +4 -5
- package/dist/components/conversations/CreateNewConversation.js +10 -42
- package/dist/components/conversations/DirectMessagesHeaderActions.js +1 -1
- package/dist/components/conversations/MessageInThread.js +1 -2
- package/dist/components/form/ImageEditModal.js +2 -4
- package/dist/components/form/ImageInput.js +13 -8
- package/dist/components/form/LocationInput.js +1 -1
- package/dist/components/groups/AddGroupMembersButton.d.ts +1 -1
- package/dist/components/groups/AddGroupMembersButton.js +2 -2
- package/dist/components/groups/ChangeGroupRolesModal.js +1 -1
- package/dist/components/groups/ConfirmGroupExitModal.js +2 -2
- package/dist/components/groups/ConfirmMemberRemovalModal.js +1 -1
- package/dist/components/groups/DeleteGroupModal.js +1 -1
- package/dist/components/groups/GroupAvatar.js +4 -4
- package/dist/components/groups/GroupCard.js +3 -3
- package/dist/components/groups/GroupHeader.js +1 -1
- package/dist/components/groups/GroupMembersList.js +2 -3
- package/dist/components/groups/GroupOptionsMenu.js +12 -6
- package/dist/components/groups/JoinGroupButton.js +3 -20
- package/dist/components/jams/CreateNewJam.js +4 -4
- package/dist/components/jams/JamCallParticipant.js +17 -7
- package/dist/components/jams/JamCapacityGate.js +1 -1
- package/dist/components/jams/JamChatDrawer.js +2 -2
- package/dist/components/jams/JamConference.js +1 -1
- package/dist/components/jams/JamContext.d.ts +4 -0
- package/dist/components/jams/JamContext.js +17 -2
- package/dist/components/jams/JamDetailsDrawer.js +1 -1
- package/dist/components/jams/JamDeviceSelectors.d.ts +15 -0
- package/dist/components/jams/JamDeviceSelectors.js +4 -3
- package/dist/components/jams/JamFooter.js +15 -16
- package/dist/components/jams/JamGuestForm.js +2 -2
- package/dist/components/jams/JamLobby.js +9 -19
- package/dist/components/jams/JamObserverShell.js +1 -1
- package/dist/components/jams/JamParticipantConference.js +1 -1
- package/dist/components/jams/JamPeopleDrawer.js +17 -13
- package/dist/components/jams/JamReactionMenu.js +1 -1
- package/dist/components/jams/JamRequestJoin.js +1 -1
- package/dist/components/jams/JamRoom.js +84 -4
- package/dist/components/jams/JamToolbarButton.d.ts +21 -0
- package/dist/components/jams/JamToolbarButton.js +19 -0
- package/dist/components/jams/JamVideoCall.js +8 -3
- package/dist/components/jams/JamVideoLayout.js +16 -5
- package/dist/components/jams/LeaveCloseButton.js +9 -44
- package/dist/components/jams/LiveJamsSection.js +1 -1
- package/dist/components/jams/constants.js +4 -0
- package/dist/components/jams/useParticipantConnection.d.ts +7 -0
- package/dist/components/jams/useParticipantConnection.js +11 -0
- package/dist/components/layout/Auth.js +1 -1
- package/dist/components/layout/Infos.js +2 -2
- package/dist/components/layout/OpenpeepsContextProvider.js +4 -3
- package/dist/components/layout/OpenpeepsThemeProvider.d.ts +3 -4
- package/dist/components/layout/OpenpeepsThemeProvider.js +23 -9
- package/dist/components/layout/Root.js +1 -1
- package/dist/components/markdown/CompiledMarkdown.js +15 -1
- package/dist/components/markdown/classes.d.ts +2 -0
- package/dist/components/markdown/classes.js +2 -0
- package/dist/components/markdown/index.d.ts +1 -1
- package/dist/components/markdown/index.js +1 -1
- package/dist/components/navigation/ContentHeader.js +1 -1
- package/dist/components/navigation/FooterMobile.js +5 -1
- package/dist/components/navigation/HeaderMobile.js +1 -1
- package/dist/components/navigation/MobileMenuItem.js +1 -1
- package/dist/components/navigation/PageHeaderAction.js +1 -1
- package/dist/components/navigation/PlusButton.js +1 -1
- package/dist/components/navigation/SideBar.js +6 -1
- package/dist/components/navigation/breadcrumbs/Breadcrumbs.js +5 -1
- package/dist/components/navigation/sideBarNavLinkClass.js +1 -1
- package/dist/components/notifications/NotificationHeaderActions.js +2 -2
- package/dist/components/notifications/NotificationWrapper.js +1 -1
- package/dist/components/notifications/NotificationsList.js +3 -3
- package/dist/components/notifications/TypedNotification.js +3 -3
- package/dist/components/post/Feed.js +3 -3
- package/dist/components/post/FeedPost.d.ts +2 -1
- package/dist/components/post/FeedPost.js +11 -6
- package/dist/components/post/FeedPostContent.js +1 -1
- package/dist/components/post/FullPostLayout.js +11 -4
- package/dist/components/post/NewEventButton.js +1 -1
- package/dist/components/post/NewNoteButton.js +1 -1
- package/dist/components/post/PinnedPost.js +1 -1
- package/dist/components/post/ReplyBox.js +1 -1
- package/dist/components/post/feed/events/EventsFeed.js +3 -3
- package/dist/components/post/feed/threaded/ThreadPost.js +1 -1
- package/dist/components/post/feed/threaded/ThreadedFeed.d.ts +3 -1
- package/dist/components/post/feed/threaded/ThreadedFeed.js +3 -3
- package/dist/components/post/pieces/Attachments.js +3 -3
- package/dist/components/post/pieces/EventMenu.js +1 -1
- package/dist/components/post/pieces/EventRsvpButton.js +3 -3
- package/dist/components/post/pieces/FeedPostStats.js +2 -2
- package/dist/components/post/pieces/GalleryModal.js +36 -5
- package/dist/components/post/pieces/PollContent.js +33 -14
- package/dist/components/post/pieces/PostActions.js +6 -45
- package/dist/components/post/pieces/PostInfoHeader.js +1 -1
- package/dist/components/post/pieces/PostMenu.js +35 -9
- package/dist/components/post/pieces/PostReactionHeader.js +1 -1
- package/dist/components/post/pieces/ShareMenu.js +4 -2
- package/dist/components/post/pieces/UnreadPostIndicator.d.ts +5 -3
- package/dist/components/post/pieces/UnreadPostIndicator.js +4 -3
- package/dist/components/post/pieces/modals/DeletePostModal.js +1 -1
- package/dist/components/post/pieces/modals/RepostModal.d.ts +5 -3
- package/dist/components/post/pieces/modals/RepostModal.js +8 -7
- package/dist/components/post/post-form/AttachmentCard.js +2 -2
- package/dist/components/post/post-form/ComposeAttachments.js +1 -1
- package/dist/components/post/post-form/DescriptionEditModal.js +1 -1
- package/dist/components/post/post-form/EditPostModal.js +22 -12
- package/dist/components/post/post-form/EventForm.js +2 -2
- package/dist/components/post/post-form/EventTypeSwitcher.js +1 -1
- package/dist/components/post/post-form/NewPostModal.d.ts +1 -1
- package/dist/components/post/post-form/NewPostModal.js +10 -10
- package/dist/components/post/post-form/OpenpeepsMarkdownInput.js +2 -2
- package/dist/components/post/post-form/PollComposerFields.d.ts +2 -0
- package/dist/components/post/post-form/PollComposerFields.js +12 -8
- package/dist/components/post/post-form/PostAudienceSelector.js +3 -3
- package/dist/components/post/post-form/PostTypeSwitcher.js +1 -1
- package/dist/components/post/post-form/ReplyModal.js +9 -8
- package/dist/components/post/post-form/VisibilitySelector.js +1 -1
- package/dist/components/post/types/Article.js +2 -1
- package/dist/components/post/types/Event.js +1 -1
- package/dist/components/post/types/Note.js +2 -1
- package/dist/components/post/types/Poll.js +2 -1
- package/dist/components/post/types/event/CardEvent.js +2 -2
- package/dist/components/post/types/event/FullEvent.js +8 -8
- package/dist/components/post/types/event/ProfileEventRelationship.d.ts +1 -1
- package/dist/components/post/types/event/ProfileEventRelationship.js +38 -18
- package/dist/components/preview-link/LocalPreviewLink.js +1 -1
- package/dist/components/preview-link/RemotePreviewLink.js +5 -1
- package/dist/components/profile/Avatar.js +3 -2
- package/dist/components/profile/FollowUnfollowButton.js +2 -2
- package/dist/components/profile/ProfileBadge.js +1 -1
- package/dist/components/profile/ProfileCard.js +1 -1
- package/dist/components/profile/ProfileHeader.js +1 -1
- package/dist/components/profile/ProfilePageAction.js +3 -3
- package/dist/components/profile/ProfilePostsAndReplies.js +3 -1
- package/dist/components/profile/ProfileSelector.js +3 -3
- package/dist/components/profile/ProfilesInput.js +1 -1
- package/dist/components/profile/ReportProfileOrPostModal.js +6 -4
- package/dist/components/server-data/context.d.ts +8 -0
- package/dist/contexts/openpeeps/hooks/admin.d.ts +63 -16774
- package/dist/contexts/openpeeps/hooks/admin.js +34 -14
- package/dist/contexts/openpeeps/hooks/conversations.d.ts +330 -0
- package/dist/contexts/openpeeps/hooks/jams.d.ts +110 -0
- package/dist/contexts/openpeeps/hooks/jams.js +1 -1
- package/dist/contexts/openpeeps/hooks/other.d.ts +8 -0
- package/dist/contexts/openpeeps/hooks/posts.d.ts +933 -53
- package/dist/contexts/openpeeps/hooks/profiles.d.ts +220 -0
- package/dist/contexts/openpeeps/hooks/search.d.ts +330 -0
- package/dist/contexts/openpeeps/index.d.ts +1 -1
- package/dist/contexts/openpeeps/index.js +10 -2
- package/dist/contexts/router/index.d.ts +8 -3
- package/dist/contexts/router/index.js +7 -3
- package/dist/hooks/conversations/useCreateConversation.d.ts +124 -0
- package/dist/hooks/conversations/useCreateConversation.js +56 -0
- package/dist/hooks/groups/useJoinGroup.d.ts +8 -0
- package/dist/hooks/groups/useJoinGroup.js +23 -0
- package/dist/hooks/index.d.ts +6 -0
- package/dist/hooks/index.js +4 -0
- package/dist/hooks/jams/useLeaveCloseJam.d.ts +20 -0
- package/dist/hooks/jams/useLeaveCloseJam.js +59 -0
- package/dist/hooks/posts/useFeedPostActions.d.ts +18 -0
- package/dist/hooks/posts/useFeedPostActions.js +51 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/lib/Markdown.d.ts +14 -0
- package/dist/lib/Markdown.js +16 -0
- package/dist/lib/analyticsClicks.d.ts +12 -0
- package/dist/lib/analyticsClicks.js +64 -0
- package/dist/lib/auth.d.ts +8 -0
- package/dist/lib/auth.js +27 -0
- package/dist/lib/canvasUtils.d.ts +6 -0
- package/dist/lib/canvasUtils.js +62 -1
- package/dist/lib/groupCapabilityHelpers.d.ts +1 -1
- package/dist/lib/passwordStrength.d.ts +6 -0
- package/dist/lib/passwordStrength.js +26 -0
- package/dist/lib/postUnread.d.ts +7 -0
- package/dist/lib/postUnread.js +7 -0
- package/dist/lib/postViewCounter.d.ts +1 -1
- package/dist/lib/postViewCounter.js +3 -1
- package/dist/lib/routeHandles.d.ts +2 -0
- package/dist/lib/routeHandles.js +2 -0
- package/dist/lib/svgCover.d.ts +2 -0
- package/dist/lib/svgCover.js +18 -0
- package/dist/navigation/index.d.ts +11 -0
- package/dist/navigation/index.js +2 -0
- package/dist/navigation/menuItems.d.ts +8 -0
- package/dist/navigation/menuItems.js +83 -0
- package/dist/navigation/targets.d.ts +94 -0
- package/dist/navigation/targets.js +12 -0
- package/dist/pages/About.d.ts +1 -0
- package/dist/pages/About.js +19 -0
- package/dist/pages/CodeOfConduct.d.ts +1 -0
- package/dist/pages/CodeOfConduct.js +14 -0
- package/dist/pages/Explore.d.ts +1 -0
- package/dist/pages/Explore.js +132 -0
- package/dist/pages/Home.d.ts +6 -0
- package/dist/pages/Home.js +31 -0
- package/dist/pages/Members.d.ts +1 -0
- package/dist/pages/Members.js +35 -0
- package/dist/pages/NotFound.d.ts +1 -0
- package/dist/pages/NotFound.js +9 -0
- package/dist/pages/Notifications.d.ts +1 -0
- package/dist/pages/Notifications.js +8 -0
- package/dist/pages/PostDetail.d.ts +1 -0
- package/dist/pages/PostDetail.js +27 -0
- package/dist/pages/Profile.d.ts +1 -0
- package/dist/pages/Profile.js +20 -0
- package/dist/pages/Tags.d.ts +1 -0
- package/dist/pages/Tags.js +14 -0
- package/dist/pages/Welcome.d.ts +1 -0
- package/dist/pages/Welcome.js +89 -0
- package/dist/pages/admin/Analytics.d.ts +11 -0
- package/dist/pages/admin/Analytics.js +11 -0
- package/dist/pages/admin/ApiKeys.d.ts +1 -0
- package/dist/pages/admin/ApiKeys.js +141 -0
- package/dist/pages/admin/Backups.d.ts +1 -0
- package/dist/pages/admin/Backups.js +39 -0
- package/dist/pages/admin/ConfigEditor.d.ts +14 -0
- package/dist/pages/admin/ConfigEditor.js +91 -0
- package/dist/pages/admin/Configuration.d.ts +1 -0
- package/dist/pages/admin/Configuration.js +8 -0
- package/dist/pages/admin/ConfigurationCommunity.d.ts +1 -0
- package/dist/pages/admin/ConfigurationCommunity.js +7 -0
- package/dist/pages/admin/ConfigurationCommunityLanguage.d.ts +1 -0
- package/dist/pages/admin/ConfigurationCommunityLanguage.js +71 -0
- package/dist/pages/admin/ConfigurationEmail.d.ts +1 -0
- package/dist/pages/admin/ConfigurationEmail.js +97 -0
- package/dist/pages/admin/ConfigurationI18n.d.ts +1 -0
- package/dist/pages/admin/ConfigurationI18n.js +51 -0
- package/dist/pages/admin/Dashboard.d.ts +1 -0
- package/dist/pages/admin/Dashboard.js +40 -0
- package/dist/pages/admin/Db.d.ts +1 -0
- package/dist/pages/admin/Db.js +238 -0
- package/dist/pages/admin/Diagnostics.d.ts +1 -0
- package/dist/pages/admin/Diagnostics.js +8 -0
- package/dist/pages/admin/DiagnosticsEmail.d.ts +1 -0
- package/dist/pages/admin/DiagnosticsEmail.js +65 -0
- package/dist/pages/admin/DiagnosticsJob.d.ts +1 -0
- package/dist/pages/admin/DiagnosticsJob.js +51 -0
- package/dist/pages/admin/DiagnosticsLogs.d.ts +1 -0
- package/dist/pages/admin/DiagnosticsLogs.js +62 -0
- package/dist/pages/admin/DiagnosticsPerformance.d.ts +1 -0
- package/dist/pages/admin/DiagnosticsPerformance.js +34 -0
- package/dist/pages/admin/GroupMembers.d.ts +1 -0
- package/dist/pages/admin/GroupMembers.js +109 -0
- package/dist/pages/admin/Groups.d.ts +1 -0
- package/dist/pages/admin/Groups.js +61 -0
- package/dist/pages/admin/Invites.d.ts +1 -0
- package/dist/pages/admin/Invites.js +72 -0
- package/dist/pages/admin/Members.d.ts +1 -0
- package/dist/pages/admin/Members.js +49 -0
- package/dist/pages/admin/Moderation.d.ts +1 -0
- package/dist/pages/admin/Moderation.js +62 -0
- package/dist/pages/admin/Reports.d.ts +1 -0
- package/dist/pages/admin/Reports.js +178 -0
- package/dist/pages/admin/analytics/AnalyticsLayout.d.ts +14 -0
- package/dist/pages/admin/analytics/AnalyticsLayout.js +104 -0
- package/dist/pages/admin/analytics/AnalyticsRangeContext.d.ts +9 -0
- package/dist/pages/admin/analytics/AnalyticsRangeContext.js +9 -0
- package/dist/pages/admin/analytics/Content.d.ts +1 -0
- package/dist/pages/admin/analytics/Content.js +117 -0
- package/dist/pages/admin/analytics/Engagement.d.ts +1 -0
- package/dist/pages/admin/analytics/Engagement.js +220 -0
- package/dist/pages/admin/analytics/Groups.d.ts +1 -0
- package/dist/pages/admin/analytics/Groups.js +139 -0
- package/dist/pages/admin/analytics/Members.d.ts +1 -0
- package/dist/pages/admin/analytics/Members.js +96 -0
- package/dist/pages/admin/analytics/Overview.d.ts +1 -0
- package/dist/pages/admin/analytics/Overview.js +165 -0
- package/dist/pages/admin/analytics/ReportSettings.d.ts +1 -0
- package/dist/pages/admin/analytics/ReportSettings.js +62 -0
- package/dist/pages/admin/analytics/analyticsInfo.d.ts +3 -0
- package/dist/pages/admin/analytics/analyticsInfo.js +4 -0
- package/dist/pages/admin/analytics/downloadCsv.d.ts +2 -0
- package/dist/pages/admin/analytics/downloadCsv.js +20 -0
- package/dist/pages/admin/community/CommunityFavicons.d.ts +1 -0
- package/dist/pages/admin/community/CommunityFavicons.js +47 -0
- package/dist/pages/admin/community/CommunityInfo.d.ts +1 -0
- package/dist/pages/admin/community/CommunityInfo.js +35 -0
- package/dist/pages/admin/community/CommunityLinks.d.ts +1 -0
- package/dist/pages/admin/community/CommunityLinks.js +35 -0
- package/dist/pages/admin/community/CommunityMarkdownPage.d.ts +8 -0
- package/dist/pages/admin/community/CommunityMarkdownPage.js +35 -0
- package/dist/pages/admin/community/CommunityProfileFields.d.ts +1 -0
- package/dist/pages/admin/community/CommunityProfileFields.js +50 -0
- package/dist/pages/admin/community/CommunityRoles.d.ts +1 -0
- package/dist/pages/admin/community/CommunityRoles.js +109 -0
- package/dist/pages/admin/community/CommunityTheme.d.ts +1 -0
- package/dist/pages/admin/community/CommunityTheme.js +56 -0
- package/dist/pages/admin/community/useCommunityConfig.d.ts +168 -0
- package/dist/pages/admin/community/useCommunityConfig.js +28 -0
- package/dist/pages/admin/components/AdminCharts.d.ts +22 -0
- package/dist/pages/admin/components/AdminCharts.js +29 -0
- package/dist/pages/admin/components/AdminGroupCard.d.ts +6 -0
- package/dist/pages/admin/components/AdminGroupCard.js +42 -0
- package/dist/pages/admin/components/AdminInviteActions.d.ts +1 -0
- package/dist/pages/admin/components/AdminInviteActions.js +23 -0
- package/dist/pages/admin/components/InviteWithEmailModal.d.ts +3 -0
- package/dist/pages/admin/components/InviteWithEmailModal.js +82 -0
- package/dist/pages/admin/components/InviteWithLinkModal.d.ts +22 -0
- package/dist/pages/admin/components/InviteWithLinkModal.js +98 -0
- package/dist/pages/admin/components/ProfileRowActions.d.ts +5 -0
- package/dist/pages/admin/components/ProfileRowActions.js +131 -0
- package/dist/pages/admin/components/RestoreBackupModal.d.ts +4 -0
- package/dist/pages/admin/components/RestoreBackupModal.js +33 -0
- package/dist/pages/admin/components/RestoreTestBackupModal.d.ts +4 -0
- package/dist/pages/admin/components/RestoreTestBackupModal.js +36 -0
- package/dist/pages/articles/Edit.d.ts +1 -0
- package/dist/pages/articles/Edit.js +60 -0
- package/dist/pages/articles/Index.d.ts +1 -0
- package/dist/pages/articles/Index.js +18 -0
- package/dist/pages/articles/New.d.ts +1 -0
- package/dist/pages/articles/New.js +48 -0
- package/dist/pages/auth/Closed.d.ts +1 -0
- package/dist/pages/auth/Closed.js +14 -0
- package/dist/pages/auth/Login.d.ts +1 -0
- package/dist/pages/auth/Login.js +74 -0
- package/dist/pages/auth/OidcCallback.d.ts +5 -0
- package/dist/pages/auth/OidcCallback.js +31 -0
- package/dist/pages/auth/OidcPending.d.ts +5 -0
- package/dist/pages/auth/OidcPending.js +39 -0
- package/dist/pages/auth/Register.d.ts +4 -0
- package/dist/pages/auth/Register.js +124 -0
- package/dist/pages/auth/RegisterInvitation.d.ts +1 -0
- package/dist/pages/auth/RegisterInvitation.js +5 -0
- package/dist/pages/auth/RequestResetPassword.d.ts +1 -0
- package/dist/pages/auth/RequestResetPassword.js +50 -0
- package/dist/pages/auth/ResetPassword.d.ts +1 -0
- package/dist/pages/auth/ResetPassword.js +40 -0
- package/dist/pages/auth/SsoCallback.d.ts +1 -0
- package/dist/pages/auth/SsoCallback.js +34 -0
- package/dist/pages/auth/ValidateEmail.d.ts +6 -0
- package/dist/pages/auth/ValidateEmail.js +64 -0
- package/dist/pages/conversations/Index.d.ts +1 -0
- package/dist/pages/conversations/Index.js +58 -0
- package/dist/pages/conversations/Info.d.ts +1 -0
- package/dist/pages/conversations/Info.js +26 -0
- package/dist/pages/conversations/New.d.ts +1 -0
- package/dist/pages/conversations/New.js +8 -0
- package/dist/pages/conversations/Show.d.ts +1 -0
- package/dist/pages/conversations/Show.js +100 -0
- package/dist/pages/events/Edit.d.ts +1 -0
- package/dist/pages/events/Edit.js +69 -0
- package/dist/pages/events/Index.d.ts +1 -0
- package/dist/pages/events/Index.js +23 -0
- package/dist/pages/events/My.d.ts +1 -0
- package/dist/pages/events/My.js +24 -0
- package/dist/pages/events/New.d.ts +1 -0
- package/dist/pages/events/New.js +66 -0
- package/dist/pages/feeds/Bookmarks.d.ts +1 -0
- package/dist/pages/feeds/Bookmarks.js +10 -0
- package/dist/pages/feeds/Local.d.ts +1 -0
- package/dist/pages/feeds/Local.js +14 -0
- package/dist/pages/feeds/My.d.ts +1 -0
- package/dist/pages/feeds/My.js +12 -0
- package/dist/pages/groups/Edit.d.ts +1 -0
- package/dist/pages/groups/Edit.js +57 -0
- package/dist/pages/groups/Index.d.ts +1 -0
- package/dist/pages/groups/Index.js +50 -0
- package/dist/pages/groups/Info.d.ts +1 -0
- package/dist/pages/groups/Info.js +21 -0
- package/dist/pages/groups/Members.d.ts +1 -0
- package/dist/pages/groups/Members.js +28 -0
- package/dist/pages/groups/New.d.ts +1 -0
- package/dist/pages/groups/New.js +68 -0
- package/dist/pages/groups/Show.d.ts +1 -0
- package/dist/pages/groups/Show.js +64 -0
- package/dist/pages/index.d.ts +94 -0
- package/dist/pages/index.js +94 -0
- package/dist/pages/jams/Event.d.ts +8 -0
- package/dist/pages/jams/Event.js +57 -0
- package/dist/pages/jams/Index.d.ts +6 -0
- package/dist/pages/jams/Index.js +44 -0
- package/dist/pages/payment/Success.d.ts +1 -0
- package/dist/pages/payment/Success.js +30 -0
- package/dist/pages/plugins/Index.d.ts +1 -0
- package/dist/pages/plugins/Index.js +69 -0
- package/dist/pages/profile/Followers.d.ts +6 -0
- package/dist/pages/profile/Followers.js +28 -0
- package/dist/pages/settings/AccessTokens.d.ts +1 -0
- package/dist/pages/settings/AccessTokens.js +149 -0
- package/dist/pages/settings/Account.d.ts +1 -0
- package/dist/pages/settings/Account.js +81 -0
- package/dist/pages/settings/Billing.d.ts +1 -0
- package/dist/pages/settings/Billing.js +82 -0
- package/dist/pages/settings/Index.d.ts +1 -0
- package/dist/pages/settings/Index.js +13 -0
- package/dist/pages/settings/Language.d.ts +1 -0
- package/dist/pages/settings/Language.js +54 -0
- package/dist/pages/settings/NotificationPreferences.d.ts +1 -0
- package/dist/pages/settings/NotificationPreferences.js +180 -0
- package/dist/pages/settings/Notifications.d.ts +1 -0
- package/dist/pages/settings/Notifications.js +10 -0
- package/dist/pages/settings/PublicProfile.d.ts +1 -0
- package/dist/pages/settings/PublicProfile.js +135 -0
- package/dist/pages/settings/PushEnabledDevices.d.ts +1 -0
- package/dist/pages/settings/PushEnabledDevices.js +67 -0
- package/dist/pages/settings/Theme.d.ts +1 -0
- package/dist/pages/settings/Theme.js +37 -0
- package/dist/pages/test/Error.d.ts +1 -0
- package/dist/pages/test/Error.js +10 -0
- package/dist/pages/test/Markdown.d.ts +1 -0
- package/dist/pages/test/Markdown.js +32 -0
- package/dist/pwa/InstallPrompt.js +1 -1
- package/dist/pwa/NotificationPermissionPrompt.js +2 -2
- package/dist/pwa/UpdatePrompt.js +1 -1
- package/dist/react-native.d.ts +1 -0
- package/dist/react-native.js +1 -0
- package/dist/session/useSessionEvents.d.ts +3 -0
- package/dist/session/useSessionEvents.js +64 -0
- package/dist/stores/newPosts.d.ts +8 -8
- package/package.json +14 -9
- package/dist/components/jams/useJamLiveKitTheme.d.ts +0 -3
- package/dist/components/jams/useJamLiveKitTheme.js +0 -10
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useState } from 'react';
|
|
3
|
+
import { Laptop, Smartphone, Trash2 } from 'lucide-react';
|
|
4
|
+
import { pushSubscriptionDeviceName, pushSubscriptionEndpoint, pushSubscriptionIsMobile, } from '@openpeepshq/common/lib';
|
|
5
|
+
import { getPushSubscription, unsubscribePushNotifications, useT, useOpenpeeps, useSetPageHeader, } from '../../index.js';
|
|
6
|
+
import { Button, Toast } from '@openpeepshq/react-ui';
|
|
7
|
+
export function PushEnabledDevices() {
|
|
8
|
+
const t = useT();
|
|
9
|
+
const { openpeepsApi } = useOpenpeeps();
|
|
10
|
+
const subscriptionsQuery = openpeepsApi.usePushSubscriptions();
|
|
11
|
+
const deleteSubscription = openpeepsApi.deletePushSubscriptionAction();
|
|
12
|
+
useSetPageHeader(t('settings.notifications.pushEnabledDevices.title', {
|
|
13
|
+
defaultValue: 'Push-enabled devices',
|
|
14
|
+
}));
|
|
15
|
+
const [currentEndpoint, setCurrentEndpoint] = useState(null);
|
|
16
|
+
const [deletingId, setDeletingId] = useState(null);
|
|
17
|
+
const [confirmId, setConfirmId] = useState(null);
|
|
18
|
+
const [status, setStatus] = useState(null);
|
|
19
|
+
const subscriptions = subscriptionsQuery.data ?? [];
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
void getPushSubscription().then((sub) => {
|
|
22
|
+
if (sub?.endpoint)
|
|
23
|
+
setCurrentEndpoint(sub.endpoint);
|
|
24
|
+
});
|
|
25
|
+
}, []);
|
|
26
|
+
const isCurrentDevice = (endpoint) => !!endpoint && currentEndpoint === endpoint;
|
|
27
|
+
const remove = async (subscription) => {
|
|
28
|
+
setStatus(null);
|
|
29
|
+
setDeletingId(subscription.id);
|
|
30
|
+
try {
|
|
31
|
+
await deleteSubscription({ pushSubscriptionId: subscription.id });
|
|
32
|
+
if (isCurrentDevice(pushSubscriptionEndpoint(subscription) ?? undefined)) {
|
|
33
|
+
await unsubscribePushNotifications();
|
|
34
|
+
}
|
|
35
|
+
setConfirmId(null);
|
|
36
|
+
await subscriptionsQuery.refetch();
|
|
37
|
+
setStatus({
|
|
38
|
+
type: 'success',
|
|
39
|
+
message: t('settings.notifications.pushEnabledDevices.delete.success', {
|
|
40
|
+
defaultValue: 'Device removed.',
|
|
41
|
+
}),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
catch (err) {
|
|
45
|
+
setStatus({ type: 'error', message: err.message });
|
|
46
|
+
}
|
|
47
|
+
finally {
|
|
48
|
+
setDeletingId(null);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
return (_jsxs("div", { className: "p-4", children: [subscriptions.length === 0 ? (_jsx("div", { className: "flex w-full items-center justify-center p-4", children: _jsx("h2", { className: "text-lg", children: t('settings.notifications.pushEnabledDevices.noDevicesFound', {
|
|
52
|
+
defaultValue: 'No push-enabled devices found.',
|
|
53
|
+
}) }) })) : (_jsx("div", { className: "overflow-hidden rounded-md border", children: _jsx("ul", { className: "divide-y", children: subscriptions.map((subscription) => {
|
|
54
|
+
const endpoint = pushSubscriptionEndpoint(subscription) ?? '';
|
|
55
|
+
const current = isCurrentDevice(endpoint);
|
|
56
|
+
const confirming = confirmId === subscription.id;
|
|
57
|
+
return (_jsxs("li", { className: "hover:bg-surface flex items-center justify-between p-4 transition-colors", children: [_jsxs("div", { className: "flex items-center gap-4", children: [_jsx("div", { className: "text-muted-foreground", children: pushSubscriptionIsMobile(subscription) ? (_jsx(Smartphone, { size: 20 })) : (_jsx(Laptop, { size: 20 })) }), _jsxs("div", { children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("p", { className: "text-sm font-medium", children: pushSubscriptionDeviceName(subscription) }), current ? (_jsx("span", { className: "bg-primary text-primary-foreground rounded-full px-2 py-0.5 text-[10px] font-bold uppercase", children: t('common.thisDevice', {
|
|
58
|
+
defaultValue: 'This device',
|
|
59
|
+
}) })) : null] }), _jsx("p", { className: "text-muted-foreground text-xs", children: subscription.type })] })] }), confirming ? (_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Button, { variant: "destructive", disabled: deletingId === subscription.id, action: () => remove(subscription), children: t('settings.notifications.pushEnabledDevices.delete.confirm', {
|
|
60
|
+
defaultValue: 'Delete',
|
|
61
|
+
}) }), _jsx(Button, { variant: "ghost", action: () => setConfirmId(null), children: t('settings.notifications.pushEnabledDevices.delete.cancel', {
|
|
62
|
+
defaultValue: 'Cancel',
|
|
63
|
+
}) })] })) : (_jsx("button", { type: "button", className: "text-muted-foreground p-2 transition-colors hover:text-red-600", title: t('common.actions.delete', {
|
|
64
|
+
defaultValue: 'Delete',
|
|
65
|
+
}), onClick: () => setConfirmId(subscription.id), children: _jsx(Trash2, { size: 18 }) }))] }, subscription.id));
|
|
66
|
+
}) }) })), status ? (_jsx(Toast, { variant: status.type, onDismiss: () => setStatus(null), children: status.message })) : null] }));
|
|
67
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ThemeSettings(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useState } from 'react';
|
|
3
|
+
import { THEME_OPTIONS } from '@openpeepshq/common';
|
|
4
|
+
import { useT, useOpenpeeps, useSetPageHeader } from '../../index.js';
|
|
5
|
+
import { useCurrentProfile } from '../../components/index.js';
|
|
6
|
+
import { Button } from '@openpeepshq/react-ui';
|
|
7
|
+
export function ThemeSettings() {
|
|
8
|
+
const t = useT();
|
|
9
|
+
const { openpeepsApi } = useOpenpeeps();
|
|
10
|
+
const me = useCurrentProfile();
|
|
11
|
+
const settingsQuery = openpeepsApi.useCurrentProfileSettings();
|
|
12
|
+
const updateSettings = openpeepsApi.updateCurrentProfileSettingsAction();
|
|
13
|
+
const [theme, setTheme] = useState(undefined);
|
|
14
|
+
const [submitting, setSubmitting] = useState(false);
|
|
15
|
+
useSetPageHeader(t('settings.theme.title', { defaultValue: 'Theme' }));
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
if (settingsQuery.data?.theme)
|
|
18
|
+
setTheme(settingsQuery.data.theme);
|
|
19
|
+
}, [settingsQuery.data]);
|
|
20
|
+
if (!me)
|
|
21
|
+
return null;
|
|
22
|
+
const submit = async () => {
|
|
23
|
+
setSubmitting(true);
|
|
24
|
+
try {
|
|
25
|
+
await updateSettings({ id: me.id, theme });
|
|
26
|
+
window.location.reload();
|
|
27
|
+
}
|
|
28
|
+
finally {
|
|
29
|
+
setSubmitting(false);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
return (_jsxs("div", { className: "flex flex-col gap-4 p-3", children: [_jsxs("div", { className: "border p-4", children: [_jsx("h4", { className: "my-2 text-lg font-semibold", children: t('settings.theme.title', { defaultValue: 'Theme' }) }), _jsx("span", { className: "text-muted-foreground text-sm", children: t('settings.theme.themeDescription', {
|
|
33
|
+
defaultValue: 'Choose how the application looks for you.',
|
|
34
|
+
}) }), _jsx("div", { className: "mt-2 flex flex-wrap items-center gap-x-4 gap-y-2", children: THEME_OPTIONS.map((option) => (_jsxs("label", { className: "inline-flex items-center gap-2", children: [_jsx("input", { type: "radio", className: "h-4 w-4", name: "theme", value: option, checked: theme === option, onChange: () => setTheme(option) }), _jsx("span", { children: t(`settings.theme.${option}.mode`, { defaultValue: option }) })] }, option))) })] }), _jsx(Button, { title: "Save", variant: "default", action: submit, disabled: submitting, children: submitting
|
|
35
|
+
? t('common.saving', { defaultValue: 'Saving…' })
|
|
36
|
+
: t('common.save', { defaultValue: 'Save' }) })] }));
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function TestError(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useSetPageHeader } from '../../index.js';
|
|
3
|
+
import { Button } from '@openpeepshq/react-ui';
|
|
4
|
+
export function TestError() {
|
|
5
|
+
useSetPageHeader('Error sandbox');
|
|
6
|
+
const blowUp = () => {
|
|
7
|
+
throw new Error('test error from the test/error page');
|
|
8
|
+
};
|
|
9
|
+
return (_jsxs("div", { className: "space-y-4 p-4", children: [_jsx("p", { className: "text-muted-foreground text-sm", children: "Click the button to throw a synchronous error so the error boundary can catch it." }), _jsx(Button, { title: "Throw", variant: "destructive", action: blowUp, children: "Throw error" })] }));
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function TestMarkdown(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useSetPageHeader } from '../../index.js';
|
|
3
|
+
import { PostMarkdown } from '../../components/index.js';
|
|
4
|
+
const source = `
|
|
5
|
+
# Hello World
|
|
6
|
+
|
|
7
|
+
[Link](https://allpeep.com)
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
\`\`\`typescript
|
|
12
|
+
const a = 1;
|
|
13
|
+
\`\`\`
|
|
14
|
+
|
|
15
|
+
**Bold**
|
|
16
|
+
|
|
17
|
+
*Italic*
|
|
18
|
+
|
|
19
|
+
> Blockquote
|
|
20
|
+
|
|
21
|
+
| Column 1 | Column 2 | Column 3 |
|
|
22
|
+
| -------- | -------- | -------- |
|
|
23
|
+
| Cell 1 | Cell 2 | Cell 3 |
|
|
24
|
+
| Cell 4 | Cell 5 | Cell 6 |
|
|
25
|
+
|
|
26
|
+
* List item
|
|
27
|
+
* List item
|
|
28
|
+
`;
|
|
29
|
+
export function TestMarkdown() {
|
|
30
|
+
useSetPageHeader('Markdown sandbox');
|
|
31
|
+
return (_jsx("div", { className: "p-4", children: _jsx(PostMarkdown, { source: source }) }));
|
|
32
|
+
}
|
|
@@ -11,7 +11,7 @@ export function InstallPrompt({ className, message = 'Install this app for a fas
|
|
|
11
11
|
if (!canInstall || isStandalone)
|
|
12
12
|
return null;
|
|
13
13
|
return (_jsxs("div", { className: className ??
|
|
14
|
-
'border-border bg-
|
|
14
|
+
'border-border bg-surface flex w-full items-center justify-between gap-3 rounded border p-3 text-sm shadow-sm', children: [_jsx("div", { children: message }), _jsx(Button, { variant: "default", action: async () => {
|
|
15
15
|
await promptInstall();
|
|
16
16
|
}, children: installLabel })] }));
|
|
17
17
|
}
|
|
@@ -42,7 +42,7 @@ export function NotificationPermissionPrompt({ applicationServerKey, className,
|
|
|
42
42
|
return null;
|
|
43
43
|
}
|
|
44
44
|
return (_jsxs("div", { className: className ??
|
|
45
|
-
'border-border bg-
|
|
45
|
+
'border-border bg-surface flex w-full items-center justify-between gap-3 rounded border p-3 text-sm shadow-sm', children: [_jsx("div", { children: message }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Button, { variant: "secondary", action: () => {
|
|
46
46
|
try {
|
|
47
47
|
window.localStorage.setItem(storageKey, '1');
|
|
48
48
|
}
|
|
@@ -50,7 +50,7 @@ export function NotificationPermissionPrompt({ applicationServerKey, className,
|
|
|
50
50
|
/* ignore */
|
|
51
51
|
}
|
|
52
52
|
setDismissed(true);
|
|
53
|
-
}, children: dismissLabel }), _jsx(Button, { variant: "
|
|
53
|
+
}, children: dismissLabel }), _jsx(Button, { variant: "default", action: async () => {
|
|
54
54
|
await subscribe();
|
|
55
55
|
}, children: enableLabel })] })] }));
|
|
56
56
|
}
|
package/dist/pwa/UpdatePrompt.js
CHANGED
|
@@ -10,5 +10,5 @@ export function UpdatePrompt({ className, message = 'A new version is available.
|
|
|
10
10
|
if (!isUpdateAvailable)
|
|
11
11
|
return null;
|
|
12
12
|
return (_jsxs("div", { className: className ??
|
|
13
|
-
'border-warning
|
|
13
|
+
'border-warning bg-surface-warning flex w-full items-center justify-between gap-3 rounded border p-3 text-sm shadow-sm', children: [_jsx("div", { children: message }), _jsx(Button, { variant: "default", className: "bg-warning text-warning-foreground", action: applyUpdate, children: reloadLabel })] }));
|
|
14
14
|
}
|
package/dist/react-native.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './auth/credentials';
|
|
|
6
6
|
export * from './contexts';
|
|
7
7
|
export { vodMasterPlaylistUrl } from './streaming';
|
|
8
8
|
export * from './lib/postViewCounter';
|
|
9
|
+
export * from './lib/analyticsClicks';
|
|
9
10
|
export * from './lib/unseenCountsOptimistic';
|
|
10
11
|
export * from './lib/postUnread';
|
|
11
12
|
export * from './lib/notificationBadge';
|
package/dist/react-native.js
CHANGED
|
@@ -6,6 +6,7 @@ export * from './auth/credentials/index.js';
|
|
|
6
6
|
export * from './contexts/index.js';
|
|
7
7
|
export { vodMasterPlaylistUrl } from './streaming.js';
|
|
8
8
|
export * from './lib/postViewCounter.js';
|
|
9
|
+
export * from './lib/analyticsClicks.js';
|
|
9
10
|
export * from './lib/unseenCountsOptimistic.js';
|
|
10
11
|
export * from './lib/postUnread.js';
|
|
11
12
|
export * from './lib/notificationBadge.js';
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { useEffect, useRef } from 'react';
|
|
2
|
+
import { useQueryClient } from '@tanstack/react-query';
|
|
3
|
+
import { useCredentialsStore } from '../contexts/credentialsStore/index.js';
|
|
4
|
+
import { applyNotificationStatsToCache } from '../lib/notificationBadge.js';
|
|
5
|
+
import { dedupeQueryKeys, normalizePushInvalidateMessage, } from '../pwa/pushInvalidate.js';
|
|
6
|
+
const BASE_KEYS = [
|
|
7
|
+
['profiles', 'current', 'notifications', 'stats'],
|
|
8
|
+
['profiles', 'current', 'notifications'],
|
|
9
|
+
];
|
|
10
|
+
const applySessionEvent = (queryClient, event) => {
|
|
11
|
+
if (event.type !== 'invalidate')
|
|
12
|
+
return;
|
|
13
|
+
const { keys, notificationStats } = normalizePushInvalidateMessage({
|
|
14
|
+
keys: dedupeQueryKeys([
|
|
15
|
+
...BASE_KEYS,
|
|
16
|
+
...(event.notification?.invalidateQueries ?? []),
|
|
17
|
+
]),
|
|
18
|
+
notificationStats: event.notificationStats,
|
|
19
|
+
});
|
|
20
|
+
if (notificationStats) {
|
|
21
|
+
applyNotificationStatsToCache(queryClient, notificationStats);
|
|
22
|
+
}
|
|
23
|
+
if (keys.length === 0) {
|
|
24
|
+
void queryClient.invalidateQueries();
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
for (const key of keys) {
|
|
28
|
+
void queryClient.invalidateQueries({ queryKey: [...key] });
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
/** One authenticated session SSE while a profile is loaded. */
|
|
32
|
+
export const useSessionEvents = (client, enabled) => {
|
|
33
|
+
const queryClient = useQueryClient();
|
|
34
|
+
const { credentialsStore } = useCredentialsStore();
|
|
35
|
+
const connectionIdRef = useRef(typeof crypto !== 'undefined' && 'randomUUID' in crypto
|
|
36
|
+
? crypto.randomUUID()
|
|
37
|
+
: `conn-${Date.now()}`);
|
|
38
|
+
useEffect(() => {
|
|
39
|
+
if (!enabled)
|
|
40
|
+
return;
|
|
41
|
+
const connectionId = connectionIdRef.current;
|
|
42
|
+
let closed = false;
|
|
43
|
+
let source;
|
|
44
|
+
void (async () => {
|
|
45
|
+
const token = (await credentialsStore.get())?.token;
|
|
46
|
+
if (closed || !token)
|
|
47
|
+
return;
|
|
48
|
+
source = await client.profiles.current.sessionEvents.listen({
|
|
49
|
+
queryParameters: { platform: 'web', connectionId },
|
|
50
|
+
headers: { Authorization: `Bearer ${token}` },
|
|
51
|
+
handler: (event) => {
|
|
52
|
+
if (!closed)
|
|
53
|
+
applySessionEvent(queryClient, event);
|
|
54
|
+
},
|
|
55
|
+
});
|
|
56
|
+
if (!closed)
|
|
57
|
+
void source.stream();
|
|
58
|
+
})();
|
|
59
|
+
return () => {
|
|
60
|
+
closed = true;
|
|
61
|
+
void source?.close();
|
|
62
|
+
};
|
|
63
|
+
}, [client, credentialsStore, enabled, queryClient]);
|
|
64
|
+
};
|
|
@@ -34,7 +34,7 @@ export declare const getReplyStore: (inReplyToId: string) => import("./createSto
|
|
|
34
34
|
};
|
|
35
35
|
description?: string | undefined;
|
|
36
36
|
blurhash?: string | undefined;
|
|
37
|
-
status?: "
|
|
37
|
+
status?: "processing" | "ready" | "failed" | undefined;
|
|
38
38
|
error?: string | undefined;
|
|
39
39
|
}[] | undefined;
|
|
40
40
|
customEmojis?: {
|
|
@@ -71,7 +71,7 @@ export declare const getReplyStore: (inReplyToId: string) => import("./createSto
|
|
|
71
71
|
};
|
|
72
72
|
description?: string | undefined;
|
|
73
73
|
blurhash?: string | undefined;
|
|
74
|
-
status?: "
|
|
74
|
+
status?: "processing" | "ready" | "failed" | undefined;
|
|
75
75
|
error?: string | undefined;
|
|
76
76
|
}[] | undefined;
|
|
77
77
|
customEmojis?: {
|
|
@@ -109,7 +109,7 @@ export declare const getReplyStore: (inReplyToId: string) => import("./createSto
|
|
|
109
109
|
};
|
|
110
110
|
description?: string | undefined;
|
|
111
111
|
blurhash?: string | undefined;
|
|
112
|
-
status?: "
|
|
112
|
+
status?: "processing" | "ready" | "failed" | undefined;
|
|
113
113
|
error?: string | undefined;
|
|
114
114
|
}[] | undefined;
|
|
115
115
|
customEmojis?: {
|
|
@@ -170,7 +170,7 @@ export declare const getReplyStore: (inReplyToId: string) => import("./createSto
|
|
|
170
170
|
};
|
|
171
171
|
description?: string | undefined;
|
|
172
172
|
blurhash?: string | undefined;
|
|
173
|
-
status?: "
|
|
173
|
+
status?: "processing" | "ready" | "failed" | undefined;
|
|
174
174
|
error?: string | undefined;
|
|
175
175
|
}[] | undefined;
|
|
176
176
|
customEmojis?: {
|
|
@@ -324,7 +324,7 @@ export declare const useReplyStore: (inReplyToId: string) => import("./createSto
|
|
|
324
324
|
};
|
|
325
325
|
description?: string | undefined;
|
|
326
326
|
blurhash?: string | undefined;
|
|
327
|
-
status?: "
|
|
327
|
+
status?: "processing" | "ready" | "failed" | undefined;
|
|
328
328
|
error?: string | undefined;
|
|
329
329
|
}[] | undefined;
|
|
330
330
|
customEmojis?: {
|
|
@@ -361,7 +361,7 @@ export declare const useReplyStore: (inReplyToId: string) => import("./createSto
|
|
|
361
361
|
};
|
|
362
362
|
description?: string | undefined;
|
|
363
363
|
blurhash?: string | undefined;
|
|
364
|
-
status?: "
|
|
364
|
+
status?: "processing" | "ready" | "failed" | undefined;
|
|
365
365
|
error?: string | undefined;
|
|
366
366
|
}[] | undefined;
|
|
367
367
|
customEmojis?: {
|
|
@@ -399,7 +399,7 @@ export declare const useReplyStore: (inReplyToId: string) => import("./createSto
|
|
|
399
399
|
};
|
|
400
400
|
description?: string | undefined;
|
|
401
401
|
blurhash?: string | undefined;
|
|
402
|
-
status?: "
|
|
402
|
+
status?: "processing" | "ready" | "failed" | undefined;
|
|
403
403
|
error?: string | undefined;
|
|
404
404
|
}[] | undefined;
|
|
405
405
|
customEmojis?: {
|
|
@@ -460,7 +460,7 @@ export declare const useReplyStore: (inReplyToId: string) => import("./createSto
|
|
|
460
460
|
};
|
|
461
461
|
description?: string | undefined;
|
|
462
462
|
blurhash?: string | undefined;
|
|
463
|
-
status?: "
|
|
463
|
+
status?: "processing" | "ready" | "failed" | undefined;
|
|
464
464
|
error?: string | undefined;
|
|
465
465
|
}[] | undefined;
|
|
466
466
|
customEmojis?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openpeepshq/react",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"./pwa": "./dist/pwa/index.js",
|
|
14
14
|
"./pwa-vite": "./dist/pwa/vite.js",
|
|
15
|
+
"./pages": "./dist/pages/index.js",
|
|
15
16
|
"./service-worker": "./src/pwa/sw.ts",
|
|
16
17
|
"./*": "./dist/*/index.js"
|
|
17
18
|
},
|
|
@@ -24,30 +25,33 @@
|
|
|
24
25
|
"dependencies": {
|
|
25
26
|
"@livekit/components-react": "^2.9.21",
|
|
26
27
|
"@livekit/components-styles": "^1.1.6",
|
|
27
|
-
"@tanstack/react-query": "
|
|
28
|
+
"@tanstack/react-query": "5.90.16",
|
|
28
29
|
"@videojs/react": "^10.0.0-beta.24",
|
|
29
30
|
"emoji-picker-element": "^1.29.1",
|
|
30
31
|
"heic2any": "^0.0.4",
|
|
31
32
|
"i18next": "^24.2.3",
|
|
32
33
|
"i18next-http-backend": "^3.0.2",
|
|
33
34
|
"js-base64": "^3.7.7",
|
|
34
|
-
"livekit-client": "
|
|
35
|
+
"livekit-client": "2.19.2",
|
|
35
36
|
"lucide-react": "^0.469.0",
|
|
36
37
|
"marked": "^15.0.6",
|
|
37
38
|
"react": "^18.3.1 || ^19.0.0",
|
|
38
39
|
"react-dom": "^18.3.1 || ^19.0.0",
|
|
39
40
|
"react-easy-crop": "^5.5.7",
|
|
41
|
+
"react-hook-form": "^7.73.1",
|
|
42
|
+
"@hookform/resolvers": "^5.4.2",
|
|
40
43
|
"react-i18next": "^15.4.1",
|
|
41
44
|
"uuidv7": "^1.0.2",
|
|
42
45
|
"zod": "^4.4.3",
|
|
43
|
-
"@openpeepshq/client": "^0.1.
|
|
44
|
-
"@openpeepshq/
|
|
45
|
-
"@openpeepshq/
|
|
46
|
-
"@openpeepshq/
|
|
46
|
+
"@openpeepshq/client": "^0.1.37",
|
|
47
|
+
"@openpeepshq/react-ui": "^0.1.3",
|
|
48
|
+
"@openpeepshq/greenscreen": "^0.1.1",
|
|
49
|
+
"@openpeepshq/common": "^0.1.44"
|
|
47
50
|
},
|
|
48
51
|
"peerDependencies": {
|
|
49
52
|
"react": "^18.3.0 || ^19.0.0",
|
|
50
|
-
"react-dom": "^18.3.0 || ^19.0.0"
|
|
53
|
+
"react-dom": "^18.3.0 || ^19.0.0",
|
|
54
|
+
"react-router-dom": "^6.0.0 || ^7.0.0"
|
|
51
55
|
},
|
|
52
56
|
"devDependencies": {
|
|
53
57
|
"@types/node": "^22.13.1",
|
|
@@ -55,10 +59,11 @@
|
|
|
55
59
|
"@types/react-dom": "19.2.3",
|
|
56
60
|
"concurrently": "^9.1.2",
|
|
57
61
|
"eslint": "^9.19.0",
|
|
62
|
+
"react-router-dom": "^7.0.0",
|
|
58
63
|
"tsc-alias": "^1.8.10",
|
|
59
64
|
"typescript": "^5.7.3",
|
|
60
65
|
"vitest": "^2.1.8",
|
|
61
|
-
"@openpeepshq/fetch-client": "^0.1.
|
|
66
|
+
"@openpeepshq/fetch-client": "^0.1.7"
|
|
62
67
|
},
|
|
63
68
|
"scripts": {
|
|
64
69
|
"lint": "prettier --check . && ESLINT_USE_FLAT_CONFIG=false eslint .",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { getTheme } from '@openpeepshq/common/lib';
|
|
2
|
-
import { useCurrentProfileSettings } from '../layout/IdentityContext.js';
|
|
3
|
-
import { useServerInfo } from '../server-data/context.js';
|
|
4
|
-
/** LiveKit theme name matching the user's OpenPeeps light/dark preference. */
|
|
5
|
-
export const useJamLiveKitTheme = () => {
|
|
6
|
-
const serverInfo = useServerInfo();
|
|
7
|
-
const profileSettings = useCurrentProfileSettings();
|
|
8
|
-
const userTheme = getTheme(serverInfo.communityConfig, profileSettings);
|
|
9
|
-
return userTheme.dark ? 'default' : 'light';
|
|
10
|
-
};
|