@openpeepshq/rn-components 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/custom/common/participant-avatar.js +3 -6
- package/lib/commonjs/components/custom/common/participant-avatar.js.map +1 -1
- package/lib/commonjs/components/custom/common/profile-pieces.js +2 -1
- package/lib/commonjs/components/custom/common/profile-pieces.js.map +1 -1
- package/lib/commonjs/components/custom/conversations/conversation-preview-card.js +2 -1
- package/lib/commonjs/components/custom/conversations/conversation-preview-card.js.map +1 -1
- package/lib/commonjs/components/custom/groups/GroupAvatar.js +2 -1
- package/lib/commonjs/components/custom/groups/GroupAvatar.js.map +1 -1
- package/lib/commonjs/components/custom/groups/group-card.js +1 -1
- package/lib/commonjs/components/custom/groups/group-card.js.map +1 -1
- package/lib/commonjs/components/custom/groups/group-header.js +3 -1
- package/lib/commonjs/components/custom/groups/group-header.js.map +1 -1
- package/lib/commonjs/components/custom/groups/group-member-card.js +43 -44
- package/lib/commonjs/components/custom/groups/group-member-card.js.map +1 -1
- package/lib/commonjs/components/custom/groups/group-page-actions.js +9 -6
- package/lib/commonjs/components/custom/groups/group-page-actions.js.map +1 -1
- package/lib/commonjs/components/custom/headers/tab-screens-header.js +3 -2
- package/lib/commonjs/components/custom/headers/tab-screens-header.js.map +1 -1
- package/lib/commonjs/components/custom/jam/jam-actions-footer.js +9 -2
- package/lib/commonjs/components/custom/jam/jam-actions-footer.js.map +1 -1
- package/lib/commonjs/components/custom/jam/pieces/guest-data-form.js +8 -6
- package/lib/commonjs/components/custom/jam/pieces/guest-data-form.js.map +1 -1
- package/lib/commonjs/components/custom/jam/pieces/participant-view.js +3 -6
- package/lib/commonjs/components/custom/jam/pieces/participant-view.js.map +1 -1
- package/lib/commonjs/components/custom/markdown/OpenPeepsMarkdown.js +2 -1
- package/lib/commonjs/components/custom/markdown/OpenPeepsMarkdown.js.map +1 -1
- package/lib/commonjs/components/custom/markdown/extensions/mention.js +7 -4
- package/lib/commonjs/components/custom/markdown/extensions/mention.js.map +1 -1
- package/lib/commonjs/components/custom/modals/groups/group-selection-sheet.js +2 -1
- package/lib/commonjs/components/custom/modals/groups/group-selection-sheet.js.map +1 -1
- package/lib/commonjs/components/custom/modals/post/date-sheet.js +12 -5
- package/lib/commonjs/components/custom/modals/post/date-sheet.js.map +1 -1
- package/lib/commonjs/components/custom/navigation/side-menu.js +2 -1
- package/lib/commonjs/components/custom/navigation/side-menu.js.map +1 -1
- package/lib/commonjs/components/custom/notification/types/new-profile.js +1 -1
- package/lib/commonjs/components/custom/notification/types/new-profile.js.map +1 -1
- package/lib/commonjs/components/custom/post/pieces/PollContent.js +55 -47
- package/lib/commonjs/components/custom/post/pieces/PollContent.js.map +1 -1
- package/lib/commonjs/components/custom/post/post-form/EventForm.js +169 -23
- package/lib/commonjs/components/custom/post/post-form/EventForm.js.map +1 -1
- package/lib/commonjs/components/custom/post/post-form/PollForm.js +2 -0
- package/lib/commonjs/components/custom/post/post-form/PollForm.js.map +1 -1
- package/lib/commonjs/components/custom/post/types/event/CardEvent.js +19 -7
- package/lib/commonjs/components/custom/post/types/event/CardEvent.js.map +1 -1
- package/lib/commonjs/components/custom/post/types/event/FeedEvent.js +12 -2
- package/lib/commonjs/components/custom/post/types/event/FeedEvent.js.map +1 -1
- package/lib/commonjs/components/custom/post/types/event/FullEvent.js +99 -27
- package/lib/commonjs/components/custom/post/types/event/FullEvent.js.map +1 -1
- package/lib/commonjs/components/custom/profile/edit-profile-form.js +4 -2
- package/lib/commonjs/components/custom/profile/edit-profile-form.js.map +1 -1
- package/lib/commonjs/components/navigation/auth-wrapper.js +2 -2
- package/lib/commonjs/components/navigation/auth-wrapper.js.map +1 -1
- package/lib/commonjs/components/navigation/index.js +1 -1
- package/lib/commonjs/components/navigation/index.js.map +1 -1
- package/lib/commonjs/components/navigation/main-navigator.js +16 -5
- package/lib/commonjs/components/navigation/main-navigator.js.map +1 -1
- package/lib/commonjs/components/navigation/side-menu-drawer.js +1 -3
- package/lib/commonjs/components/navigation/side-menu-drawer.js.map +1 -1
- package/lib/commonjs/components/navigation/side-menu-wrapper.js +2 -4
- package/lib/commonjs/components/navigation/side-menu-wrapper.js.map +1 -1
- package/lib/commonjs/components/navigation/tab-navigator.js +3 -2
- package/lib/commonjs/components/navigation/tab-navigator.js.map +1 -1
- package/lib/commonjs/components/navigation/types/main.js.map +1 -1
- package/lib/commonjs/components/ui/button.js +1 -1
- package/lib/commonjs/components/ui/button.js.map +1 -1
- package/lib/commonjs/lib/push-notifications.js +38 -5
- package/lib/commonjs/lib/push-notifications.js.map +1 -1
- package/lib/commonjs/screens/(main)/event/edit/index.js +12 -3
- package/lib/commonjs/screens/(main)/event/edit/index.js.map +1 -1
- package/lib/commonjs/screens/(main)/event/new/index.js +1 -0
- package/lib/commonjs/screens/(main)/event/new/index.js.map +1 -1
- package/lib/commonjs/screens/(main)/groups/group/info/index.js +3 -6
- package/lib/commonjs/screens/(main)/groups/group/info/index.js.map +1 -1
- package/lib/commonjs/screens/(main)/groups/group/members/index.js +21 -63
- package/lib/commonjs/screens/(main)/groups/group/members/index.js.map +1 -1
- package/lib/commonjs/screens/(main)/jams/jam-session/in-jam-chat/index.js +23 -3
- package/lib/commonjs/screens/(main)/jams/jam-session/in-jam-chat/index.js.map +1 -1
- package/lib/commonjs/screens/(main)/jams/jam-session/index.js +28 -6
- package/lib/commonjs/screens/(main)/jams/jam-session/index.js.map +1 -1
- package/lib/commonjs/screens/(main)/jams/jam-session/jam-details/index.js +3 -6
- package/lib/commonjs/screens/(main)/jams/jam-session/jam-details/index.js.map +1 -1
- package/lib/commonjs/screens/(main)/post/index.js +10 -5
- package/lib/commonjs/screens/(main)/post/index.js.map +1 -1
- package/lib/module/components/custom/common/participant-avatar.js +3 -6
- package/lib/module/components/custom/common/participant-avatar.js.map +1 -1
- package/lib/module/components/custom/common/profile-pieces.js +2 -1
- package/lib/module/components/custom/common/profile-pieces.js.map +1 -1
- package/lib/module/components/custom/conversations/conversation-preview-card.js +2 -1
- package/lib/module/components/custom/conversations/conversation-preview-card.js.map +1 -1
- package/lib/module/components/custom/groups/GroupAvatar.js +2 -1
- package/lib/module/components/custom/groups/GroupAvatar.js.map +1 -1
- package/lib/module/components/custom/groups/group-card.js +2 -2
- package/lib/module/components/custom/groups/group-card.js.map +1 -1
- package/lib/module/components/custom/groups/group-header.js +3 -1
- package/lib/module/components/custom/groups/group-header.js.map +1 -1
- package/lib/module/components/custom/groups/group-member-card.js +45 -46
- package/lib/module/components/custom/groups/group-member-card.js.map +1 -1
- package/lib/module/components/custom/groups/group-page-actions.js +9 -6
- package/lib/module/components/custom/groups/group-page-actions.js.map +1 -1
- package/lib/module/components/custom/headers/tab-screens-header.js +3 -2
- package/lib/module/components/custom/headers/tab-screens-header.js.map +1 -1
- package/lib/module/components/custom/jam/jam-actions-footer.js +9 -2
- package/lib/module/components/custom/jam/jam-actions-footer.js.map +1 -1
- package/lib/module/components/custom/jam/pieces/guest-data-form.js +7 -5
- package/lib/module/components/custom/jam/pieces/guest-data-form.js.map +1 -1
- package/lib/module/components/custom/jam/pieces/participant-view.js +3 -6
- package/lib/module/components/custom/jam/pieces/participant-view.js.map +1 -1
- package/lib/module/components/custom/markdown/OpenPeepsMarkdown.js +2 -1
- package/lib/module/components/custom/markdown/OpenPeepsMarkdown.js.map +1 -1
- package/lib/module/components/custom/markdown/extensions/mention.js +7 -4
- package/lib/module/components/custom/markdown/extensions/mention.js.map +1 -1
- package/lib/module/components/custom/modals/groups/group-selection-sheet.js +2 -1
- package/lib/module/components/custom/modals/groups/group-selection-sheet.js.map +1 -1
- package/lib/module/components/custom/modals/post/date-sheet.js +12 -5
- package/lib/module/components/custom/modals/post/date-sheet.js.map +1 -1
- package/lib/module/components/custom/navigation/side-menu.js +2 -1
- package/lib/module/components/custom/navigation/side-menu.js.map +1 -1
- package/lib/module/components/custom/notification/types/new-profile.js +1 -1
- package/lib/module/components/custom/notification/types/new-profile.js.map +1 -1
- package/lib/module/components/custom/post/pieces/PollContent.js +55 -47
- package/lib/module/components/custom/post/pieces/PollContent.js.map +1 -1
- package/lib/module/components/custom/post/post-form/EventForm.js +170 -24
- package/lib/module/components/custom/post/post-form/EventForm.js.map +1 -1
- package/lib/module/components/custom/post/post-form/PollForm.js +2 -0
- package/lib/module/components/custom/post/post-form/PollForm.js.map +1 -1
- package/lib/module/components/custom/post/types/event/CardEvent.js +19 -7
- package/lib/module/components/custom/post/types/event/CardEvent.js.map +1 -1
- package/lib/module/components/custom/post/types/event/FeedEvent.js +12 -2
- package/lib/module/components/custom/post/types/event/FeedEvent.js.map +1 -1
- package/lib/module/components/custom/post/types/event/FullEvent.js +99 -27
- package/lib/module/components/custom/post/types/event/FullEvent.js.map +1 -1
- package/lib/module/components/custom/profile/edit-profile-form.js +4 -2
- package/lib/module/components/custom/profile/edit-profile-form.js.map +1 -1
- package/lib/module/components/navigation/auth-wrapper.js +2 -2
- package/lib/module/components/navigation/auth-wrapper.js.map +1 -1
- package/lib/module/components/navigation/index.js +1 -1
- package/lib/module/components/navigation/index.js.map +1 -1
- package/lib/module/components/navigation/main-navigator.js +16 -5
- package/lib/module/components/navigation/main-navigator.js.map +1 -1
- package/lib/module/components/navigation/side-menu-drawer.js +2 -4
- package/lib/module/components/navigation/side-menu-drawer.js.map +1 -1
- package/lib/module/components/navigation/side-menu-wrapper.js +3 -5
- package/lib/module/components/navigation/side-menu-wrapper.js.map +1 -1
- package/lib/module/components/navigation/tab-navigator.js +3 -2
- package/lib/module/components/navigation/tab-navigator.js.map +1 -1
- package/lib/module/components/navigation/types/main.js.map +1 -1
- package/lib/module/components/ui/button.js +1 -1
- package/lib/module/components/ui/button.js.map +1 -1
- package/lib/module/lib/push-notifications.js +36 -4
- package/lib/module/lib/push-notifications.js.map +1 -1
- package/lib/module/screens/(main)/event/edit/index.js +13 -4
- package/lib/module/screens/(main)/event/edit/index.js.map +1 -1
- package/lib/module/screens/(main)/event/new/index.js +1 -0
- package/lib/module/screens/(main)/event/new/index.js.map +1 -1
- package/lib/module/screens/(main)/groups/group/info/index.js +3 -6
- package/lib/module/screens/(main)/groups/group/info/index.js.map +1 -1
- package/lib/module/screens/(main)/groups/group/members/index.js +22 -64
- package/lib/module/screens/(main)/groups/group/members/index.js.map +1 -1
- package/lib/module/screens/(main)/jams/jam-session/in-jam-chat/index.js +24 -4
- package/lib/module/screens/(main)/jams/jam-session/in-jam-chat/index.js.map +1 -1
- package/lib/module/screens/(main)/jams/jam-session/index.js +29 -7
- package/lib/module/screens/(main)/jams/jam-session/index.js.map +1 -1
- package/lib/module/screens/(main)/jams/jam-session/jam-details/index.js +3 -6
- package/lib/module/screens/(main)/jams/jam-session/jam-details/index.js.map +1 -1
- package/lib/module/screens/(main)/post/index.js +10 -5
- package/lib/module/screens/(main)/post/index.js.map +1 -1
- package/lib/typescript/commonjs/components/custom/common/participant-avatar.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/custom/common/profile-pieces.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/custom/conversations/conversation-preview-card.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/custom/groups/GroupAvatar.d.ts +1 -1
- package/lib/typescript/commonjs/components/custom/groups/GroupAvatar.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/custom/groups/group-card.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/custom/groups/group-header.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/custom/groups/group-member-card.d.ts +5 -5
- package/lib/typescript/commonjs/components/custom/groups/group-member-card.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/custom/groups/group-page-actions.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/custom/headers/tab-screens-header.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/custom/jam/jam-actions-footer.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/custom/jam/pieces/guest-data-form.d.ts +1 -1
- package/lib/typescript/commonjs/components/custom/jam/pieces/guest-data-form.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/custom/jam/pieces/participant-view.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/custom/markdown/OpenPeepsMarkdown.d.ts +2 -2
- package/lib/typescript/commonjs/components/custom/markdown/OpenPeepsMarkdown.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/custom/markdown/extensions/mention.d.ts +3 -3
- package/lib/typescript/commonjs/components/custom/markdown/extensions/mention.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/custom/modals/groups/group-selection-sheet.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/custom/modals/post/date-sheet.d.ts +1 -0
- package/lib/typescript/commonjs/components/custom/modals/post/date-sheet.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/custom/navigation/side-menu.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/custom/post/pieces/PollContent.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/custom/post/post-form/EventForm.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/custom/post/post-form/PollForm.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/custom/post/types/event/CardEvent.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/custom/post/types/event/FeedEvent.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/custom/post/types/event/FullEvent.d.ts +2 -0
- package/lib/typescript/commonjs/components/custom/post/types/event/FullEvent.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/custom/profile/edit-profile-form.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/navigation/auth-wrapper.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/navigation/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/navigation/main-navigator.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/navigation/side-menu-drawer.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/navigation/side-menu-wrapper.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/navigation/tab-navigator.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/navigation/types/main.d.ts +4 -0
- package/lib/typescript/commonjs/components/navigation/types/main.d.ts.map +1 -1
- package/lib/typescript/commonjs/lib/push-notifications.d.ts +2 -1
- package/lib/typescript/commonjs/lib/push-notifications.d.ts.map +1 -1
- package/lib/typescript/commonjs/screens/(main)/event/edit/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/screens/(main)/event/new/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/screens/(main)/groups/group/info/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/screens/(main)/groups/group/members/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/screens/(main)/jams/jam-session/in-jam-chat/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/screens/(main)/jams/jam-session/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/screens/(main)/post/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/types.d.ts +4 -3
- package/lib/typescript/commonjs/types.d.ts.map +1 -1
- package/lib/typescript/module/components/custom/common/participant-avatar.d.ts.map +1 -1
- package/lib/typescript/module/components/custom/common/profile-pieces.d.ts.map +1 -1
- package/lib/typescript/module/components/custom/conversations/conversation-preview-card.d.ts.map +1 -1
- package/lib/typescript/module/components/custom/groups/GroupAvatar.d.ts +1 -1
- package/lib/typescript/module/components/custom/groups/GroupAvatar.d.ts.map +1 -1
- package/lib/typescript/module/components/custom/groups/group-card.d.ts.map +1 -1
- package/lib/typescript/module/components/custom/groups/group-header.d.ts.map +1 -1
- package/lib/typescript/module/components/custom/groups/group-member-card.d.ts +5 -5
- package/lib/typescript/module/components/custom/groups/group-member-card.d.ts.map +1 -1
- package/lib/typescript/module/components/custom/groups/group-page-actions.d.ts.map +1 -1
- package/lib/typescript/module/components/custom/headers/tab-screens-header.d.ts.map +1 -1
- package/lib/typescript/module/components/custom/jam/jam-actions-footer.d.ts.map +1 -1
- package/lib/typescript/module/components/custom/jam/pieces/guest-data-form.d.ts +1 -1
- package/lib/typescript/module/components/custom/jam/pieces/guest-data-form.d.ts.map +1 -1
- package/lib/typescript/module/components/custom/jam/pieces/participant-view.d.ts.map +1 -1
- package/lib/typescript/module/components/custom/markdown/OpenPeepsMarkdown.d.ts +2 -2
- package/lib/typescript/module/components/custom/markdown/OpenPeepsMarkdown.d.ts.map +1 -1
- package/lib/typescript/module/components/custom/markdown/extensions/mention.d.ts +3 -3
- package/lib/typescript/module/components/custom/markdown/extensions/mention.d.ts.map +1 -1
- package/lib/typescript/module/components/custom/modals/groups/group-selection-sheet.d.ts.map +1 -1
- package/lib/typescript/module/components/custom/modals/post/date-sheet.d.ts +1 -0
- package/lib/typescript/module/components/custom/modals/post/date-sheet.d.ts.map +1 -1
- package/lib/typescript/module/components/custom/navigation/side-menu.d.ts.map +1 -1
- package/lib/typescript/module/components/custom/post/pieces/PollContent.d.ts.map +1 -1
- package/lib/typescript/module/components/custom/post/post-form/EventForm.d.ts.map +1 -1
- package/lib/typescript/module/components/custom/post/post-form/PollForm.d.ts.map +1 -1
- package/lib/typescript/module/components/custom/post/types/event/CardEvent.d.ts.map +1 -1
- package/lib/typescript/module/components/custom/post/types/event/FeedEvent.d.ts.map +1 -1
- package/lib/typescript/module/components/custom/post/types/event/FullEvent.d.ts +2 -0
- package/lib/typescript/module/components/custom/post/types/event/FullEvent.d.ts.map +1 -1
- package/lib/typescript/module/components/custom/profile/edit-profile-form.d.ts.map +1 -1
- package/lib/typescript/module/components/navigation/auth-wrapper.d.ts.map +1 -1
- package/lib/typescript/module/components/navigation/index.d.ts.map +1 -1
- package/lib/typescript/module/components/navigation/main-navigator.d.ts.map +1 -1
- package/lib/typescript/module/components/navigation/side-menu-drawer.d.ts.map +1 -1
- package/lib/typescript/module/components/navigation/side-menu-wrapper.d.ts.map +1 -1
- package/lib/typescript/module/components/navigation/tab-navigator.d.ts.map +1 -1
- package/lib/typescript/module/components/navigation/types/main.d.ts +4 -0
- package/lib/typescript/module/components/navigation/types/main.d.ts.map +1 -1
- package/lib/typescript/module/lib/push-notifications.d.ts +2 -1
- package/lib/typescript/module/lib/push-notifications.d.ts.map +1 -1
- package/lib/typescript/module/screens/(main)/event/edit/index.d.ts.map +1 -1
- package/lib/typescript/module/screens/(main)/event/new/index.d.ts.map +1 -1
- package/lib/typescript/module/screens/(main)/groups/group/info/index.d.ts.map +1 -1
- package/lib/typescript/module/screens/(main)/groups/group/members/index.d.ts.map +1 -1
- package/lib/typescript/module/screens/(main)/jams/jam-session/in-jam-chat/index.d.ts.map +1 -1
- package/lib/typescript/module/screens/(main)/jams/jam-session/index.d.ts.map +1 -1
- package/lib/typescript/module/screens/(main)/post/index.d.ts.map +1 -1
- package/lib/typescript/module/types.d.ts +4 -3
- package/lib/typescript/module/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/components/custom/common/participant-avatar.tsx +8 -13
- package/src/components/custom/common/profile-pieces.tsx +4 -2
- package/src/components/custom/conversations/conversation-preview-card.tsx +2 -2
- package/src/components/custom/groups/GroupAvatar.tsx +4 -2
- package/src/components/custom/groups/group-card.tsx +2 -1
- package/src/components/custom/groups/group-header.tsx +5 -1
- package/src/components/custom/groups/group-member-card.tsx +67 -66
- package/src/components/custom/groups/group-page-actions.tsx +41 -25
- package/src/components/custom/headers/tab-screens-header.tsx +3 -2
- package/src/components/custom/jam/jam-actions-footer.tsx +14 -5
- package/src/components/custom/jam/pieces/guest-data-form.tsx +9 -6
- package/src/components/custom/jam/pieces/participant-view.tsx +8 -10
- package/src/components/custom/markdown/OpenPeepsMarkdown.tsx +8 -4
- package/src/components/custom/markdown/extensions/mention.tsx +40 -30
- package/src/components/custom/modals/groups/group-selection-sheet.tsx +4 -3
- package/src/components/custom/modals/post/date-sheet.tsx +27 -10
- package/src/components/custom/navigation/side-menu.tsx +2 -3
- package/src/components/custom/notification/types/new-profile.tsx +1 -1
- package/src/components/custom/post/pieces/PollContent.tsx +80 -71
- package/src/components/custom/post/post-form/EventForm.tsx +279 -39
- package/src/components/custom/post/post-form/PollForm.tsx +2 -1
- package/src/components/custom/post/types/event/CardEvent.tsx +31 -11
- package/src/components/custom/post/types/event/FeedEvent.tsx +14 -2
- package/src/components/custom/post/types/event/FullEvent.tsx +208 -86
- package/src/components/custom/profile/edit-profile-form.tsx +6 -2
- package/src/components/navigation/auth-wrapper.tsx +2 -7
- package/src/components/navigation/index.tsx +1 -3
- package/src/components/navigation/main-navigator.tsx +22 -9
- package/src/components/navigation/side-menu-drawer.tsx +4 -7
- package/src/components/navigation/side-menu-wrapper.tsx +5 -10
- package/src/components/navigation/tab-navigator.tsx +6 -2
- package/src/components/navigation/types/main.ts +4 -0
- package/src/components/ui/button.tsx +1 -1
- package/src/lib/push-notifications.ts +68 -22
- package/src/screens/(main)/event/edit/index.tsx +22 -9
- package/src/screens/(main)/event/new/index.tsx +1 -0
- package/src/screens/(main)/groups/group/info/index.tsx +9 -9
- package/src/screens/(main)/groups/group/members/index.tsx +69 -106
- package/src/screens/(main)/jams/jam-session/in-jam-chat/index.tsx +32 -4
- package/src/screens/(main)/jams/jam-session/index.tsx +34 -10
- package/src/screens/(main)/jams/jam-session/jam-details/index.tsx +11 -14
- package/src/screens/(main)/post/index.tsx +16 -5
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type MarkdownIt, type RenderFunction } from 'react-native-markdown-display';
|
|
2
|
-
import { type
|
|
2
|
+
import { type MentionProfileRef } from '@openpeepshq/common/lib';
|
|
3
3
|
/**
|
|
4
4
|
* Creates a MarkdownIt plugin to create tokens for mentions
|
|
5
5
|
*/
|
|
6
|
-
export declare const mentionPlugin: (mentions?:
|
|
6
|
+
export declare const mentionPlugin: (mentions?: MentionProfileRef[]) => (md: MarkdownIt) => void;
|
|
7
7
|
/**
|
|
8
8
|
* Renderer function for mention tokens
|
|
9
9
|
*/
|
|
10
|
-
export declare const mentionRenderer: (handleLinkPress: (url: string) => void, primaryColor: string, mentions?:
|
|
10
|
+
export declare const mentionRenderer: (handleLinkPress: (url: string) => void, primaryColor: string, mentions?: MentionProfileRef[]) => RenderFunction;
|
|
11
11
|
//# sourceMappingURL=mention.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mention.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/custom/markdown/extensions/mention.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,UAAU,EACf,KAAK,cAAc,EACpB,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"mention.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/custom/markdown/extensions/mention.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,UAAU,EACf,KAAK,cAAc,EACpB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAIjE;;GAEG;AACH,eAAO,MAAM,aAAa,GACvB,WAAU,iBAAiB,EAAO,MAClC,IAAI,UAAU,KAAG,IA8CjB,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,eAAe,GAExB,iBAAiB,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,EACtC,cAAc,MAAM,EACpB,WAAU,iBAAiB,EAAO,KACjC,cAoBF,CAAC"}
|
package/lib/typescript/module/components/custom/modals/groups/group-selection-sheet.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group-selection-sheet.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/custom/modals/groups/group-selection-sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAQ1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,OAAO,EAAE,KAAK,aAAa,
|
|
1
|
+
{"version":3,"file":"group-selection-sheet.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/custom/modals/groups/group-selection-sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAQ1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,OAAO,EAAE,KAAK,aAAa,EAAkB,MAAM,qBAAqB,CAAC;AAOzE,UAAU,wBAAwB;IAChC,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IACzC,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B;AAED,eAAO,MAAM,mBAAmB,mGAwD9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-sheet.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/custom/modals/post/date-sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"date-sheet.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/custom/modals/post/date-sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAexD,UAAU,cAAc;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAUD,eAAO,MAAM,SAAS,yFAyHrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"side-menu.d.ts","sourceRoot":"","sources":["../../../../../../src/components/custom/navigation/side-menu.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"side-menu.d.ts","sourceRoot":"","sources":["../../../../../../src/components/custom/navigation/side-menu.tsx"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AA0DtD,UAAU,aAAa;IACrB,gBAAgB,EAAE,CAAC,EACjB,MAAM,EACN,MAAM,GACP,EAAE;QACD,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,iBAAiB,CAAC;KAC5B,KAAK,IAAI,CAAC;IACX,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,eAAO,MAAM,QAAQ,GAAI,kFAMtB,aAAa,mDAsJf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PollContent.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/custom/post/pieces/PollContent.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAY,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"PollContent.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/custom/post/pieces/PollContent.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAY,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAUhE,UAAU,KAAK;IACb,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,eAAO,MAAM,WAAW,GAAI,UAAU,KAAK,4CAmM1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventForm.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/custom/post/post-form/EventForm.tsx"],"names":[],"mappings":"AAUA,OAAO,EAEL,gBAAgB,
|
|
1
|
+
{"version":3,"file":"EventForm.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/custom/post/post-form/EventForm.tsx"],"names":[],"mappings":"AAUA,OAAO,EAEL,gBAAgB,EAIjB,MAAM,qBAAqB,CAAC;AAO7B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAmBhD,eAAO,MAAM,SAAS,GAAI,mBAGvB;IACD,IAAI,EAAE,aAAa,CAAC,gBAAgB,CAAC,CAAC;IACtC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,4CAwrBA,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PollForm.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/custom/post/post-form/PollForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAKtC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIhD,OAAO,
|
|
1
|
+
{"version":3,"file":"PollForm.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/custom/post/post-form/PollForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAKtC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIhD,OAAO,EAA0B,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAI/E,UAAU,aAAa;IACrB,IAAI,EAAE,aAAa,CAAC,gBAAgB,CAAC,CAAC;IACtC,QAAQ,EAAE,gBAAgB,CAAC;CAC5B;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAwH5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardEvent.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/custom/post/types/event/CardEvent.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAS,UAAU,EAAc,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"CardEvent.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/custom/post/types/event/CardEvent.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAS,UAAU,EAAc,MAAM,qBAAqB,CAAC;AAcpE,UAAU,cAAc;IACtB,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,eAAO,MAAM,SAAS,GAAI,UAAU,cAAc,4CAuFjD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeedEvent.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/custom/post/types/event/FeedEvent.tsx"],"names":[],"mappings":"AACA,OAAO,EAAS,UAAU,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"FeedEvent.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/custom/post/types/event/FeedEvent.tsx"],"names":[],"mappings":"AACA,OAAO,EAAS,UAAU,EAAE,MAAM,qBAAqB,CAAC;AASxD,eAAO,MAAM,SAAS,GAAI,UAAU;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,4CAmDvD,CAAC"}
|
|
@@ -2,10 +2,12 @@ import React from 'react';
|
|
|
2
2
|
import { PublicPost } from '@openpeepshq/common';
|
|
3
3
|
interface FullEventProps {
|
|
4
4
|
post: PublicPost;
|
|
5
|
+
occurrence?: string;
|
|
5
6
|
}
|
|
6
7
|
export declare const FullEvent: React.FC<FullEventProps>;
|
|
7
8
|
export declare const FullEventActions: React.FC<{
|
|
8
9
|
post: PublicPost;
|
|
10
|
+
occurrence?: string;
|
|
9
11
|
}>;
|
|
10
12
|
export {};
|
|
11
13
|
//# sourceMappingURL=FullEvent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FullEvent.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/custom/post/types/event/FullEvent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAoC5D,OAAO,
|
|
1
|
+
{"version":3,"file":"FullEvent.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/custom/post/types/event/FullEvent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAoC5D,OAAO,EAEL,UAAU,EAMX,MAAM,qBAAqB,CAAC;AA8B7B,UAAU,cAAc;IACtB,IAAI,EAAE,UAAU,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAiZ9C,CAAC;AA+KF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC;IACtC,IAAI,EAAE,UAAU,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAiJA,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-profile-form.d.ts","sourceRoot":"","sources":["../../../../../../src/components/custom/profile/edit-profile-form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AA0BxE,KAAK,oBAAoB,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,
|
|
1
|
+
{"version":3,"file":"edit-profile-form.d.ts","sourceRoot":"","sources":["../../../../../../src/components/custom/profile/edit-profile-form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AA0BxE,KAAK,oBAAoB,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA6V1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-wrapper.d.ts","sourceRoot":"","sources":["../../../../../src/components/navigation/auth-wrapper.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"auth-wrapper.d.ts","sourceRoot":"","sources":["../../../../../src/components/navigation/auth-wrapper.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAmG1B,eAAO,MAAM,WAAW,GAAI,cAAc;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,4CActE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/navigation/index.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,UAAU,+
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/navigation/index.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,UAAU,+CAwHtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main-navigator.d.ts","sourceRoot":"","sources":["../../../../../src/components/navigation/main-navigator.tsx"],"names":[],"mappings":"AA4CA,eAAO,MAAM,aAAa,+
|
|
1
|
+
{"version":3,"file":"main-navigator.d.ts","sourceRoot":"","sources":["../../../../../src/components/navigation/main-navigator.tsx"],"names":[],"mappings":"AA4CA,eAAO,MAAM,aAAa,+CA8EzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"side-menu-drawer.d.ts","sourceRoot":"","sources":["../../../../../src/components/navigation/side-menu-drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,cAAc,GAAI,cAAc,mBAAmB,
|
|
1
|
+
{"version":3,"file":"side-menu-drawer.d.ts","sourceRoot":"","sources":["../../../../../src/components/navigation/side-menu-drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,cAAc,GAAI,cAAc,mBAAmB,4CA0D/D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"side-menu-wrapper.d.ts","sourceRoot":"","sources":["../../../../../src/components/navigation/side-menu-wrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,eAAO,MAAM,WAAW,GAAI,cAAc;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"side-menu-wrapper.d.ts","sourceRoot":"","sources":["../../../../../src/components/navigation/side-menu-wrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,eAAO,MAAM,WAAW,GAAI,cAAc;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,4CAsEtE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab-navigator.d.ts","sourceRoot":"","sources":["../../../../../src/components/navigation/tab-navigator.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tab-navigator.d.ts","sourceRoot":"","sources":["../../../../../src/components/navigation/tab-navigator.tsx"],"names":[],"mappings":"AAkEA,eAAO,MAAM,YAAY,+CAkKxB,CAAC"}
|
|
@@ -18,6 +18,7 @@ export type MainStackParamList = {
|
|
|
18
18
|
Jam: undefined;
|
|
19
19
|
JamSession: {
|
|
20
20
|
jamId: string;
|
|
21
|
+
occurrence?: string;
|
|
21
22
|
};
|
|
22
23
|
JamHostControls: {
|
|
23
24
|
id: string;
|
|
@@ -59,12 +60,15 @@ export type MainStackParamList = {
|
|
|
59
60
|
NewEvent: undefined;
|
|
60
61
|
EditEvent: {
|
|
61
62
|
id: string;
|
|
63
|
+
occurrence?: string;
|
|
62
64
|
};
|
|
63
65
|
EventPage: {
|
|
64
66
|
id: string;
|
|
67
|
+
occurrence?: string;
|
|
65
68
|
};
|
|
66
69
|
Post: {
|
|
67
70
|
id: string;
|
|
71
|
+
occurrence?: string;
|
|
68
72
|
};
|
|
69
73
|
ReplyPost: {
|
|
70
74
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../../../src/components/navigation/types/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAExE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,YAAY,EAAE,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;IACvD,OAAO,EAAE;QACP,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,WAAW,EAAE;QACX,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,gBAAgB,EAAE;QAChB,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;IACF,gBAAgB,EAAE;QAChB,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;IACF,GAAG,EAAE,SAAS,CAAC;IACf,UAAU,EAAE;QACV,KAAK,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../../../src/components/navigation/types/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAExE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,YAAY,EAAE,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;IACvD,OAAO,EAAE;QACP,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,WAAW,EAAE;QACX,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,gBAAgB,EAAE;QAChB,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;IACF,gBAAgB,EAAE;QAChB,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;IACF,GAAG,EAAE,SAAS,CAAC;IACf,UAAU,EAAE;QACV,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,eAAe,EAAE;QACf,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;IACF,SAAS,EAAE;QACT,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;IACF,UAAU,EAAE;QACV,EAAE,EAAE,MAAM,CAAC;QACX,SAAS,EAAE,QAAQ,GAAG,MAAM,CAAC;KAC9B,CAAC;IACF,YAAY,EAAE,SAAS,CAAC;IACxB,QAAQ,EAAE,SAAS,CAAC;IACpB,YAAY,EAAE,SAAS,CAAC;IACxB,YAAY,EAAE,SAAS,CAAC;IACxB,MAAM,EAAE,SAAS,CAAC;IAClB,YAAY,EAAE;QACZ,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;IACF,gBAAgB,EAAE;QAChB,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;IACF,2BAA2B,EAAE,SAAS,CAAC;IACvC,YAAY,EAAE,SAAS,CAAC;IACxB,WAAW,EAAE,SAAS,CAAC;IACvB,KAAK,EAAE;QACL,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,YAAY,EAAE;QACZ,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;IACF,SAAS,EAAE;QACT,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;IACF,gBAAgB,EAAE;QAChB,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;IACF,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,EAAE;QACT,EAAE,EAAE,MAAM,CAAC;QACX,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,SAAS,EAAE;QACT,EAAE,EAAE,MAAM,CAAC;QACX,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;QACX,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,SAAS,EAAE;QACT,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;IACF,QAAQ,EAAE;QACR,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;IACF,qBAAqB,EAAE,SAAS,CAAC;IACjC,eAAe,EAAE,SAAS,CAAC;IAC3B,aAAa,EAAE,SAAS,CAAC;IACzB,MAAM,EAAE,SAAS,CAAC;IAClB,WAAW,EAAE;QACX,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCd,CAAC;AAEX,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,MAAM,kBAAkB,IAC5D,sBAAsB,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -4,6 +4,7 @@ import { MainStackParamList } from '../components/navigation/types';
|
|
|
4
4
|
import { NativeStackNavigationProp } from '@react-navigation/native-stack';
|
|
5
5
|
import './push-notifications-background';
|
|
6
6
|
export declare const getDefaultActionFromRemoteMessage: (remoteMessage: FirebaseMessagingTypes.RemoteMessage) => string | undefined;
|
|
7
|
-
export declare const registerMessageHandler: (navigation: NativeStackNavigationProp<MainStackParamList>) => Promise<void>;
|
|
7
|
+
export declare const registerMessageHandler: (navigation: NativeStackNavigationProp<MainStackParamList>) => Promise<() => void>;
|
|
8
|
+
export declare const useRegisterPushMessageHandler: (navigation: NativeStackNavigationProp<MainStackParamList>) => void;
|
|
8
9
|
export declare const initializePushNotifications: (pushSubscriptions: PushSubscriptionData[]) => Promise<PushSubscriptionData | undefined>;
|
|
9
10
|
//# sourceMappingURL=push-notifications.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"push-notifications.d.ts","sourceRoot":"","sources":["../../../../src/lib/push-notifications.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"push-notifications.d.ts","sourceRoot":"","sources":["../../../../src/lib/push-notifications.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAe,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE7E,OAAO,EACL,sBAAsB,EAQvB,MAAM,kCAAkC,CAAC;AAI1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAO3E,OAAO,iCAAiC,CAAC;AAQzC,eAAO,MAAM,iCAAiC,GAC5C,eAAe,sBAAsB,CAAC,aAAa,KAClD,MAAM,GAAG,SAIX,CAAC;AA2EF,eAAO,MAAM,sBAAsB,GACjC,YAAY,yBAAyB,CAAC,kBAAkB,CAAC,wBAkE1D,CAAC;AAEF,eAAO,MAAM,6BAA6B,GACxC,YAAY,yBAAyB,CAAC,kBAAkB,CAAC,SAiB1D,CAAC;AAoCF,eAAO,MAAM,2BAA2B,GACtC,mBAAmB,oBAAoB,EAAE,KACxC,OAAO,CAAC,oBAAoB,GAAG,SAAS,CAO1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/screens/(main)/event/edit/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/screens/(main)/event/edit/index.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAIhE,KAAK,cAAc,GAAG,eAAe,CAAC,WAAW,CAAC,CAAC;AAEnD,eAAO,MAAM,SAAS,GAAI,uBAAuB,cAAc,4CAuE9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/screens/(main)/event/new/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAIhE,KAAK,aAAa,GAAG,eAAe,CAAC,UAAU,CAAC,CAAC;AAEjD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/screens/(main)/event/new/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAIhE,KAAK,aAAa,GAAG,eAAe,CAAC,UAAU,CAAC,CAAC;AAEjD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA4E5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/screens/(main)/groups/group/info/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/screens/(main)/groups/group/info/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAiBhE,KAAK,cAAc,GAAG,eAAe,CAAC,WAAW,CAAC,CAAC;AAEnD,eAAO,MAAM,SAAS,GAAI,WAAW,cAAc,4CA6DlD,CAAC;AAEF,UAAU,yBAAyB;IACjC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA8GpE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/screens/(main)/groups/group/members/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/screens/(main)/groups/group/members/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AA4BhE,KAAK,iBAAiB,GAAG,eAAe,CAAC,cAAc,CAAC,CAAC;AAEzD,eAAO,MAAM,YAAY,GAAI,uBAAuB,iBAAiB,4CA+OpE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/screens/(main)/jams/jam-session/in-jam-chat/index.tsx"],"names":[],"mappings":"AAsBA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAUnE,eAAO,MAAM,SAAS,GAAI,wBAGvB,sBAAsB,CAAC,kBAAkB,EAAE,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/screens/(main)/jams/jam-session/in-jam-chat/index.tsx"],"names":[],"mappings":"AAsBA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAUnE,eAAO,MAAM,SAAS,GAAI,wBAGvB,sBAAsB,CAAC,kBAAkB,EAAE,WAAW,CAAC,4CAwIzD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/screens/(main)/jams/jam-session/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/screens/(main)/jams/jam-session/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAUhE,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,YAAY,CAAC,CA2E9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/screens/(main)/post/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAIjD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAchE,KAAK,SAAS,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/screens/(main)/post/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAIjD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAchE,KAAK,SAAS,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;AAuBzC,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAkDpC,CAAC"}
|
|
@@ -37,8 +37,9 @@ export declare const metadataSchema: z.ZodObject<{
|
|
|
37
37
|
none: "none";
|
|
38
38
|
local: "local";
|
|
39
39
|
member: "member";
|
|
40
|
-
admin: "admin";
|
|
41
40
|
moderator: "moderator";
|
|
41
|
+
admin: "admin";
|
|
42
|
+
owner: "owner";
|
|
42
43
|
invited: "invited";
|
|
43
44
|
}>>>>;
|
|
44
45
|
group: z.ZodObject<{
|
|
@@ -78,7 +79,7 @@ export declare const metadataSchema: z.ZodObject<{
|
|
|
78
79
|
discoverable?: boolean | undefined;
|
|
79
80
|
deletedAt?: string | null | undefined;
|
|
80
81
|
};
|
|
81
|
-
roles?: ("none" | "local" | "member" | "admin" | "
|
|
82
|
+
roles?: ("none" | "local" | "member" | "moderator" | "admin" | "owner" | "invited")[] | null | undefined;
|
|
82
83
|
}[] | undefined, {
|
|
83
84
|
group: {
|
|
84
85
|
handle: string;
|
|
@@ -98,7 +99,7 @@ export declare const metadataSchema: z.ZodObject<{
|
|
|
98
99
|
discoverable?: boolean | undefined;
|
|
99
100
|
deletedAt?: string | null | undefined;
|
|
100
101
|
};
|
|
101
|
-
roles?: ("none" | "local" | "member" | "admin" | "
|
|
102
|
+
roles?: ("none" | "local" | "member" | "moderator" | "admin" | "owner" | "invited")[] | null | undefined;
|
|
102
103
|
}[] | undefined>>;
|
|
103
104
|
fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
104
105
|
name: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,sBAAsB,EACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAE7E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,MAAM,UAAU,GAAG;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,sBAAsB,EACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAE7E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,MAAM,UAAU,GAAG;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAkDoiD,CAAC;0BAA8C,CAAC;;;;;sBAA4J,CAAC;sBAA+C,CAAC;2BAAoD,CAAC;2BAA6C,CAAC;qBAAuC,CAAC;4BAA8C,CAAC;4BAA8C,CAAC;yBAA4C,CAAC;;iBAAqD,CAAC;;;;;uBAAsO,CAAC;0BAA8C,CAAC;;;;;sBAA4J,CAAC;sBAA+C,CAAC;2BAAoD,CAAC;2BAA6C,CAAC;qBAAuC,CAAC;4BAA8C,CAAC;4BAA8C,CAAC;yBAA4C,CAAC;;iBAAqD,CAAC;;;;;;;;;;;;;iBA9Cr7F,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE1D,eAAO,MAAM,gBAAgB;;;;;;;;iBAU3B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE9D,MAAM,MAAM,KAAK,GAAG;IAClB,MAAM,EAAE;QACN,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,YAAY,EAAE,MAAM,CAAC;QACrB,IAAI,EAAE,MAAM,CAAC;KACd,CAAA;CACF,CAAA;AAED,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI,sBAAsB,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,sBAAsB,CAAC,CAAC;AAEvG,MAAM,MAAM,uBAAuB,GAC/B,OAAO,GACP,OAAO,GACP,UAAU,GACV,WAAW,GACX,WAAW,GACX,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,eAAe,GACf,WAAW,GACX,eAAe,GACf,SAAS,GACT,eAAe,GACf,iBAAiB,GACjB,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openpeepshq/rn-components",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "React Native community screens and shared UI (extracted from the Black Ambition app) for the OpenPeeps stack.",
|
|
5
5
|
"source": "./src/index.ts",
|
|
6
6
|
"main": "./lib/commonjs/index.js",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"validator": "^13.15.23",
|
|
159
159
|
"zod": "^4.4.3",
|
|
160
160
|
"zustand": "^5.0.3",
|
|
161
|
-
"@openpeepshq/common": "^0.1.
|
|
161
|
+
"@openpeepshq/common": "^0.1.45",
|
|
162
162
|
"@openpeepshq/react": "^0.2.5"
|
|
163
163
|
},
|
|
164
164
|
"devDependencies": {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import {useOpenpeeps} from '@openpeepshq/react';
|
|
3
3
|
import {Avatar, AvatarImage} from '~/components/ui/avatar';
|
|
4
|
+
import {getProfileAvatar} from '@openpeepshq/common';
|
|
4
5
|
|
|
5
6
|
interface ParticipantAvatarProps {
|
|
6
7
|
profileId: string;
|
|
@@ -17,19 +18,13 @@ export const ParticipantAvatar = ({profileId}: ParticipantAvatarProps) => {
|
|
|
17
18
|
<Avatar
|
|
18
19
|
alt={profile?.displayName || profile?.handle}
|
|
19
20
|
className="w-8 h-8">
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<AvatarImage
|
|
28
|
-
source={{
|
|
29
|
-
uri: server?.communityConfig.theme.defaultProfileAvatar,
|
|
30
|
-
}}
|
|
31
|
-
/>
|
|
32
|
-
)}
|
|
21
|
+
<AvatarImage
|
|
22
|
+
source={{
|
|
23
|
+
uri: server
|
|
24
|
+
? getProfileAvatar(profile, server.communityConfig)
|
|
25
|
+
: profile.avatar,
|
|
26
|
+
}}
|
|
27
|
+
/>
|
|
33
28
|
</Avatar>
|
|
34
29
|
)}
|
|
35
30
|
</React.Fragment>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Profile } from '@openpeepshq/common';
|
|
2
|
+
import { Profile, getProfileAvatar } from '@openpeepshq/common';
|
|
3
3
|
import { truncateText } from '~/lib/utils';
|
|
4
4
|
import { useOpenpeeps } from '@openpeepshq/react';
|
|
5
5
|
import { Pressable, View } from 'react-native';
|
|
@@ -170,7 +170,9 @@ export const ProfileImages = ({ profile, avatarSize }: ProfileProps) => {
|
|
|
170
170
|
) : (
|
|
171
171
|
<AvatarImage
|
|
172
172
|
source={{
|
|
173
|
-
uri: server
|
|
173
|
+
uri: server
|
|
174
|
+
? getProfileAvatar(null, server.communityConfig)
|
|
175
|
+
: undefined,
|
|
174
176
|
}}
|
|
175
177
|
/>
|
|
176
178
|
)}
|
|
@@ -2,7 +2,7 @@ import { View, TouchableOpacity } from 'react-native';
|
|
|
2
2
|
import React, { useCallback, useRef } from 'react';
|
|
3
3
|
import { UpdatingDate } from '../date/updating-date';
|
|
4
4
|
import { OpenPeepsMarkdown } from '../markdown/OpenPeepsMarkdown';
|
|
5
|
-
import { PublicPost } from '@openpeepshq/common';
|
|
5
|
+
import { formatBadgeCount, PublicPost } from '@openpeepshq/common';
|
|
6
6
|
import { Text } from '~/components/ui/text';
|
|
7
7
|
import { Button } from '~/components/ui/button';
|
|
8
8
|
import { BottomSheetModal } from '@gorhom/bottom-sheet';
|
|
@@ -77,7 +77,7 @@ export const ConversationPreviewCard = ({
|
|
|
77
77
|
{unreadCount > 0 ? (
|
|
78
78
|
<View className="bg-destructive size-5 min-w-5 shrink-0 items-center justify-center rounded-full px-1 ml-2">
|
|
79
79
|
<Text className="text-xs font-semibold text-destructive-foreground">
|
|
80
|
-
{unreadCount
|
|
80
|
+
{formatBadgeCount(unreadCount)}
|
|
81
81
|
</Text>
|
|
82
82
|
</View>
|
|
83
83
|
) : null}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Group } from '@openpeepshq/common';
|
|
2
|
+
import { getGroupAvatar, type Group } from '@openpeepshq/common';
|
|
3
3
|
import { Avatar, AvatarImage } from '~/components/ui/avatar';
|
|
4
4
|
import { cn } from '~/lib/utils';
|
|
5
5
|
import { useOpenpeeps } from '@openpeepshq/react';
|
|
@@ -19,7 +19,9 @@ export const GroupAvatar = ({
|
|
|
19
19
|
const roundedClass = 'rounded-full';
|
|
20
20
|
|
|
21
21
|
const avatarSource = {
|
|
22
|
-
uri:
|
|
22
|
+
uri: server
|
|
23
|
+
? getGroupAvatar(group, server.communityConfig)
|
|
24
|
+
: group.avatar,
|
|
23
25
|
};
|
|
24
26
|
|
|
25
27
|
return (
|
|
@@ -2,6 +2,7 @@ import { Pressable, View } from 'react-native';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import {
|
|
4
4
|
checkGroupCapabilities,
|
|
5
|
+
formatBadgeCount,
|
|
5
6
|
GroupWithMeta,
|
|
6
7
|
PublicProfile,
|
|
7
8
|
} from '@openpeepshq/common';
|
|
@@ -89,7 +90,7 @@ export const GroupCard = ({
|
|
|
89
90
|
{unreadCount > 0 ? (
|
|
90
91
|
<View className="bg-destructive size-5 min-w-5 shrink-0 items-center justify-center rounded-full px-1">
|
|
91
92
|
<ThemedText className="text-xs font-semibold text-destructive-foreground">
|
|
92
|
-
{unreadCount
|
|
93
|
+
{formatBadgeCount(unreadCount)}
|
|
93
94
|
</ThemedText>
|
|
94
95
|
</View>
|
|
95
96
|
) : null}
|
|
@@ -2,6 +2,7 @@ import {useOpenpeeps} from '@openpeepshq/react';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import {Image, View} from 'react-native';
|
|
4
4
|
import {Avatar, AvatarImage} from '~/components/ui/avatar';
|
|
5
|
+
import {getTheme} from '@openpeepshq/common';
|
|
5
6
|
|
|
6
7
|
interface GroupHeaderProps {
|
|
7
8
|
headerUri?: string;
|
|
@@ -14,6 +15,9 @@ export const GroupHeader: React.FC<GroupHeaderProps> = ({
|
|
|
14
15
|
}) => {
|
|
15
16
|
const {openpeepsApi} = useOpenpeeps();
|
|
16
17
|
const {data: server} = openpeepsApi.useServerInfo();
|
|
18
|
+
const defaultGroupAvatar = server
|
|
19
|
+
? getTheme(server.communityConfig).defaultGroupAvatar
|
|
20
|
+
: undefined;
|
|
17
21
|
|
|
18
22
|
return (
|
|
19
23
|
<View className="w-full p-2 relative rounded-md aspect-[3/1] bg-surface">
|
|
@@ -37,7 +41,7 @@ export const GroupHeader: React.FC<GroupHeaderProps> = ({
|
|
|
37
41
|
) : (
|
|
38
42
|
<AvatarImage
|
|
39
43
|
source={{
|
|
40
|
-
uri:
|
|
44
|
+
uri: defaultGroupAvatar,
|
|
41
45
|
}}
|
|
42
46
|
/>
|
|
43
47
|
)}
|