@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
|
@@ -7,7 +7,7 @@ import type { NativeStackNavigationProp } from '@react-navigation/native-stack';
|
|
|
7
7
|
import { MainStackParamList } from './types';
|
|
8
8
|
import { SideMenu } from '../custom/navigation/side-menu';
|
|
9
9
|
import { buildGoto } from './helpers';
|
|
10
|
-
import {
|
|
10
|
+
import { useRegisterPushMessageHandler } from '~/lib/push-notifications';
|
|
11
11
|
import type { GotoHandlerParams } from '~/types/goto';
|
|
12
12
|
|
|
13
13
|
interface SideMenuDrawerProps {
|
|
@@ -21,11 +21,7 @@ export const SideMenuDrawer = ({ children }: SideMenuDrawerProps) => {
|
|
|
21
21
|
const { currentProfile } = useOpenpeeps();
|
|
22
22
|
|
|
23
23
|
const goto = buildGoto(navigation);
|
|
24
|
-
|
|
25
|
-
React.useEffect(() => {
|
|
26
|
-
registerMessageHandler(navigation);
|
|
27
|
-
}, [navigation]);
|
|
28
|
-
|
|
24
|
+
useRegisterPushMessageHandler(navigation);
|
|
29
25
|
|
|
30
26
|
const handleNavigation = ({
|
|
31
27
|
target,
|
|
@@ -71,7 +67,8 @@ export const SideMenuDrawer = ({ children }: SideMenuDrawerProps) => {
|
|
|
71
67
|
onProfilePress={onProfilePress}
|
|
72
68
|
/>
|
|
73
69
|
);
|
|
74
|
-
}}
|
|
70
|
+
}}
|
|
71
|
+
>
|
|
75
72
|
{children}
|
|
76
73
|
</Drawer>
|
|
77
74
|
);
|
|
@@ -6,7 +6,7 @@ import { useNavigation } from '@react-navigation/native';
|
|
|
6
6
|
import { MainStackParamList } from './types';
|
|
7
7
|
import { NativeStackNavigationProp } from '@react-navigation/native-stack';
|
|
8
8
|
import { buildGoto } from './helpers';
|
|
9
|
-
import {
|
|
9
|
+
import { useRegisterPushMessageHandler } from '~/lib/push-notifications';
|
|
10
10
|
import type { GotoHandlerParams } from '~/types/goto';
|
|
11
11
|
import { getTheme } from '@openpeepshq/common';
|
|
12
12
|
import { toAbsoluteMediaUrl } from '~/lib/media-url';
|
|
@@ -18,11 +18,7 @@ export const MenuWrapper = ({ children }: { children: React.ReactNode }) => {
|
|
|
18
18
|
useNavigation<NativeStackNavigationProp<MainStackParamList>>();
|
|
19
19
|
|
|
20
20
|
const goto = buildGoto(navigation);
|
|
21
|
-
|
|
22
|
-
React.useEffect(() => {
|
|
23
|
-
registerMessageHandler(navigation);
|
|
24
|
-
}, [navigation]);
|
|
25
|
-
|
|
21
|
+
useRegisterPushMessageHandler(navigation);
|
|
26
22
|
|
|
27
23
|
const handleNavigation = ({
|
|
28
24
|
target,
|
|
@@ -52,9 +48,7 @@ export const MenuWrapper = ({ children }: { children: React.ReactNode }) => {
|
|
|
52
48
|
const resolvedTheme = serverInfo
|
|
53
49
|
? getTheme(serverInfo.communityConfig)
|
|
54
50
|
: undefined;
|
|
55
|
-
const backgroundUri =
|
|
56
|
-
resolvedTheme?.background ||
|
|
57
|
-
serverInfo?.communityConfig?.theme?.background;
|
|
51
|
+
const backgroundUri = resolvedTheme?.background;
|
|
58
52
|
const resolvedBackgroundUri = toAbsoluteMediaUrl(backgroundUri);
|
|
59
53
|
|
|
60
54
|
const content = (
|
|
@@ -75,7 +69,8 @@ export const MenuWrapper = ({ children }: { children: React.ReactNode }) => {
|
|
|
75
69
|
return (
|
|
76
70
|
<ImageBackground
|
|
77
71
|
source={{ uri: resolvedBackgroundUri }}
|
|
78
|
-
className="w-screen h-screen flex justify-center items-center"
|
|
72
|
+
className="w-screen h-screen flex justify-center items-center"
|
|
73
|
+
>
|
|
79
74
|
{content}
|
|
80
75
|
</ImageBackground>
|
|
81
76
|
);
|
|
@@ -29,6 +29,7 @@ import {
|
|
|
29
29
|
} from '../icons';
|
|
30
30
|
import { cn } from '../../lib/utils';
|
|
31
31
|
import { useWindowSize } from '../../hooks';
|
|
32
|
+
import { formatBadgeCount } from '@openpeepshq/common';
|
|
32
33
|
import { useOpenpeeps } from '@openpeepshq/react';
|
|
33
34
|
import { useOpenPeepsTheme } from '../../theme/OpenPeepsThemeProvider';
|
|
34
35
|
|
|
@@ -113,7 +114,10 @@ export const TabNavigator = () => {
|
|
|
113
114
|
name={TAB_ROUTES.GROUPS}
|
|
114
115
|
component={Groups}
|
|
115
116
|
options={{
|
|
116
|
-
tabBarBadge:
|
|
117
|
+
tabBarBadge:
|
|
118
|
+
unreadGroupPosts > 0
|
|
119
|
+
? formatBadgeCount(unreadGroupPosts)
|
|
120
|
+
: undefined,
|
|
117
121
|
}}
|
|
118
122
|
/>
|
|
119
123
|
<Tab.Screen
|
|
@@ -122,7 +126,7 @@ export const TabNavigator = () => {
|
|
|
122
126
|
options={{
|
|
123
127
|
tabBarBadge:
|
|
124
128
|
unreadConversationThreads > 0
|
|
125
|
-
? unreadConversationThreads
|
|
129
|
+
? formatBadgeCount(unreadConversationThreads)
|
|
126
130
|
: undefined,
|
|
127
131
|
}}
|
|
128
132
|
/>
|
|
@@ -19,6 +19,7 @@ export type MainStackParamList = {
|
|
|
19
19
|
Jam: undefined;
|
|
20
20
|
JamSession: {
|
|
21
21
|
jamId: string;
|
|
22
|
+
occurrence?: string;
|
|
22
23
|
};
|
|
23
24
|
JamHostControls: {
|
|
24
25
|
id: string;
|
|
@@ -60,12 +61,15 @@ export type MainStackParamList = {
|
|
|
60
61
|
NewEvent: undefined;
|
|
61
62
|
EditEvent: {
|
|
62
63
|
id: string;
|
|
64
|
+
occurrence?: string;
|
|
63
65
|
};
|
|
64
66
|
EventPage: {
|
|
65
67
|
id: string;
|
|
68
|
+
occurrence?: string;
|
|
66
69
|
};
|
|
67
70
|
Post: {
|
|
68
71
|
id: string;
|
|
72
|
+
occurrence?: string;
|
|
69
73
|
};
|
|
70
74
|
ReplyPost: {
|
|
71
75
|
id: string;
|
|
@@ -32,7 +32,7 @@ const buttonVariants = cva(
|
|
|
32
32
|
);
|
|
33
33
|
|
|
34
34
|
const buttonTextVariants = cva(
|
|
35
|
-
'web:whitespace-nowrap text-sm native:text-base font-medium text-foreground web:transition-colors',
|
|
35
|
+
'web:whitespace-nowrap text-center text-sm native:text-base font-medium text-foreground web:transition-colors',
|
|
36
36
|
{
|
|
37
37
|
variants: {
|
|
38
38
|
variant: {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { useEffect } from 'react';
|
|
1
2
|
import type { PushMessage, PushSubscriptionData } from '@openpeepshq/common';
|
|
2
3
|
import { getApp } from '@react-native-firebase/app';
|
|
3
4
|
import {
|
|
@@ -24,13 +25,13 @@ import {
|
|
|
24
25
|
import './push-notifications-background';
|
|
25
26
|
|
|
26
27
|
const messageToPushNotification = (
|
|
27
|
-
message: FirebaseMessagingTypes.RemoteMessage
|
|
28
|
+
message: FirebaseMessagingTypes.RemoteMessage
|
|
28
29
|
): PushMessage | false =>
|
|
29
30
|
!!message.data?.payload &&
|
|
30
31
|
(JSON.parse(message.data.payload as string) as PushMessage);
|
|
31
32
|
|
|
32
33
|
export const getDefaultActionFromRemoteMessage = (
|
|
33
|
-
remoteMessage: FirebaseMessagingTypes.RemoteMessage
|
|
34
|
+
remoteMessage: FirebaseMessagingTypes.RemoteMessage
|
|
34
35
|
): string | undefined => {
|
|
35
36
|
const pushNotification = messageToPushNotification(remoteMessage);
|
|
36
37
|
const action = pushNotification?.notification?.options?.actions?.[0]?.action;
|
|
@@ -38,7 +39,7 @@ export const getDefaultActionFromRemoteMessage = (
|
|
|
38
39
|
};
|
|
39
40
|
|
|
40
41
|
const updateBadgeFromRemoteMessage = async (
|
|
41
|
-
remoteMessage: FirebaseMessagingTypes.RemoteMessage
|
|
42
|
+
remoteMessage: FirebaseMessagingTypes.RemoteMessage
|
|
42
43
|
) => {
|
|
43
44
|
const pushNotification = messageToPushNotification(remoteMessage);
|
|
44
45
|
if (!pushNotification) {
|
|
@@ -47,7 +48,7 @@ const updateBadgeFromRemoteMessage = async (
|
|
|
47
48
|
|
|
48
49
|
const { notificationStats } = pushNotification;
|
|
49
50
|
const handledOnNotificationsScreen = await handlePushOnNotificationsScreen(
|
|
50
|
-
notificationStats.unseen
|
|
51
|
+
notificationStats.unseen
|
|
51
52
|
);
|
|
52
53
|
if (!handledOnNotificationsScreen) {
|
|
53
54
|
setAppBadgeCount(notificationStats.unseen);
|
|
@@ -55,7 +56,7 @@ const updateBadgeFromRemoteMessage = async (
|
|
|
55
56
|
};
|
|
56
57
|
|
|
57
58
|
const displayRemoteMessageNotification = async (
|
|
58
|
-
remoteMessage: FirebaseMessagingTypes.RemoteMessage
|
|
59
|
+
remoteMessage: FirebaseMessagingTypes.RemoteMessage
|
|
59
60
|
) => {
|
|
60
61
|
const pushNotification = messageToPushNotification(remoteMessage);
|
|
61
62
|
if (!pushNotification?.notification) {
|
|
@@ -80,7 +81,7 @@ const displayRemoteMessageNotification = async (
|
|
|
80
81
|
};
|
|
81
82
|
|
|
82
83
|
const handleRemoteMessage = async (
|
|
83
|
-
remoteMessage: FirebaseMessagingTypes.RemoteMessage
|
|
84
|
+
remoteMessage: FirebaseMessagingTypes.RemoteMessage
|
|
84
85
|
) => {
|
|
85
86
|
await updateBadgeFromRemoteMessage(remoteMessage);
|
|
86
87
|
await displayRemoteMessageNotification(remoteMessage);
|
|
@@ -88,14 +89,14 @@ const handleRemoteMessage = async (
|
|
|
88
89
|
|
|
89
90
|
const navigateFromPushAction = (
|
|
90
91
|
defaultAction: string,
|
|
91
|
-
goto: ReturnType<typeof buildGoto
|
|
92
|
+
goto: ReturnType<typeof buildGoto>
|
|
92
93
|
) => {
|
|
93
94
|
handleInternalURLNavigation(defaultAction, goto);
|
|
94
95
|
};
|
|
95
96
|
|
|
96
97
|
const handleNotificationOpen = (
|
|
97
98
|
remoteMessage: FirebaseMessagingTypes.RemoteMessage,
|
|
98
|
-
goto?: ReturnType<typeof buildGoto
|
|
99
|
+
goto?: ReturnType<typeof buildGoto>
|
|
99
100
|
) => {
|
|
100
101
|
const defaultAction = getDefaultActionFromRemoteMessage(remoteMessage);
|
|
101
102
|
if (!defaultAction) {
|
|
@@ -111,7 +112,7 @@ const handleNotificationOpen = (
|
|
|
111
112
|
};
|
|
112
113
|
|
|
113
114
|
export const registerMessageHandler = async (
|
|
114
|
-
navigation: NativeStackNavigationProp<MainStackParamList
|
|
115
|
+
navigation: NativeStackNavigationProp<MainStackParamList>
|
|
115
116
|
) => {
|
|
116
117
|
const goto = buildGoto(navigation);
|
|
117
118
|
|
|
@@ -151,24 +152,58 @@ export const registerMessageHandler = async (
|
|
|
151
152
|
}
|
|
152
153
|
}
|
|
153
154
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
155
|
+
const unsubscribeOnMessage = onMessage(
|
|
156
|
+
app.messaging(),
|
|
157
|
+
async (remoteMessage) => {
|
|
158
|
+
await handleRemoteMessage(remoteMessage);
|
|
159
|
+
}
|
|
160
|
+
);
|
|
161
|
+
const unsubscribeOpened = onNotificationOpenedApp(
|
|
162
|
+
app.messaging(),
|
|
163
|
+
async (remoteMessage) => {
|
|
164
|
+
await updateBadgeFromRemoteMessage(remoteMessage);
|
|
165
|
+
handleNotificationOpen(remoteMessage, goto);
|
|
166
|
+
}
|
|
167
|
+
);
|
|
168
|
+
setBackgroundMessageHandler(app.messaging(), async (remoteMessage) => {
|
|
162
169
|
await handleRemoteMessage(remoteMessage);
|
|
163
170
|
});
|
|
164
171
|
|
|
165
|
-
notifee.onForegroundEvent(async event => {
|
|
172
|
+
const unsubscribeForeground = notifee.onForegroundEvent(async (event) => {
|
|
166
173
|
await handleNotificationEvent(event);
|
|
167
174
|
});
|
|
175
|
+
|
|
176
|
+
return () => {
|
|
177
|
+
unsubscribeOnMessage();
|
|
178
|
+
unsubscribeOpened();
|
|
179
|
+
unsubscribeForeground();
|
|
180
|
+
};
|
|
168
181
|
};
|
|
169
182
|
|
|
170
|
-
export const
|
|
171
|
-
|
|
183
|
+
export const useRegisterPushMessageHandler = (
|
|
184
|
+
navigation: NativeStackNavigationProp<MainStackParamList>
|
|
185
|
+
) => {
|
|
186
|
+
useEffect(() => {
|
|
187
|
+
let cancelled = false;
|
|
188
|
+
let unsubscribe: (() => void) | undefined;
|
|
189
|
+
void registerMessageHandler(navigation).then((unsub) => {
|
|
190
|
+
if (cancelled) {
|
|
191
|
+
unsub();
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
unsubscribe = unsub;
|
|
195
|
+
});
|
|
196
|
+
return () => {
|
|
197
|
+
cancelled = true;
|
|
198
|
+
unsubscribe?.();
|
|
199
|
+
};
|
|
200
|
+
}, [navigation]);
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
let fcmRegistration: Promise<PushSubscriptionData | undefined> | undefined;
|
|
204
|
+
|
|
205
|
+
const registerFcmToken = async (
|
|
206
|
+
pushSubscriptions: PushSubscriptionData[]
|
|
172
207
|
): Promise<PushSubscriptionData | undefined> => {
|
|
173
208
|
const app = getApp();
|
|
174
209
|
|
|
@@ -182,8 +217,8 @@ export const initializePushNotifications = async (
|
|
|
182
217
|
const token = await getToken(app.messaging());
|
|
183
218
|
if (
|
|
184
219
|
pushSubscriptions.find(
|
|
185
|
-
subscription =>
|
|
186
|
-
subscription.type === 'fcm' && subscription.fcmToken === token
|
|
220
|
+
(subscription) =>
|
|
221
|
+
subscription.type === 'fcm' && subscription.fcmToken === token
|
|
187
222
|
)
|
|
188
223
|
) {
|
|
189
224
|
return;
|
|
@@ -198,3 +233,14 @@ export const initializePushNotifications = async (
|
|
|
198
233
|
console.info('Error initializing push notifications');
|
|
199
234
|
}
|
|
200
235
|
};
|
|
236
|
+
|
|
237
|
+
export const initializePushNotifications = async (
|
|
238
|
+
pushSubscriptions: PushSubscriptionData[]
|
|
239
|
+
): Promise<PushSubscriptionData | undefined> => {
|
|
240
|
+
if (!fcmRegistration) {
|
|
241
|
+
fcmRegistration = registerFcmToken(pushSubscriptions).finally(() => {
|
|
242
|
+
fcmRegistration = undefined;
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
return fcmRegistration;
|
|
246
|
+
};
|
|
@@ -5,7 +5,11 @@ import { zodResolver } from '@hookform/resolvers/zod';
|
|
|
5
5
|
import Toast from 'react-native-toast-message';
|
|
6
6
|
import { useForm } from 'react-hook-form';
|
|
7
7
|
import { PostCreationData, postCreationDataSchema } from '@openpeepshq/common';
|
|
8
|
-
import {
|
|
8
|
+
import type { Event } from '@openpeepshq/common';
|
|
9
|
+
import {
|
|
10
|
+
normalizeEventDataForSave,
|
|
11
|
+
upsertEventException,
|
|
12
|
+
} from '@openpeepshq/common/lib';
|
|
9
13
|
import { useOpenpeeps } from '@openpeepshq/react';
|
|
10
14
|
import { MainScreenProps } from '~/components/navigation/types';
|
|
11
15
|
import { ThemedSafeAreaView } from '~/components/ui/themed-safe-area-view';
|
|
@@ -14,7 +18,7 @@ import { EventForm } from '~/components/custom/post';
|
|
|
14
18
|
type EditEventProps = MainScreenProps<'EditEvent'>;
|
|
15
19
|
|
|
16
20
|
export const EditEvent = ({ route, navigation }: EditEventProps) => {
|
|
17
|
-
const { id } = route.params;
|
|
21
|
+
const { id, occurrence } = route.params;
|
|
18
22
|
const { openpeepsApi } = useOpenpeeps();
|
|
19
23
|
const { data: post, isLoading: isPostLoading } = openpeepsApi.usePost(id);
|
|
20
24
|
const [isLoading, setIsLoading] = React.useState(false);
|
|
@@ -25,10 +29,10 @@ export const EditEvent = ({ route, navigation }: EditEventProps) => {
|
|
|
25
29
|
resolver: zodResolver(postCreationDataSchema),
|
|
26
30
|
defaultValues: post
|
|
27
31
|
? {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
+
...post,
|
|
33
|
+
groupId: post.groupId ?? undefined,
|
|
34
|
+
inReplyToId: post.inReplyToId ?? undefined,
|
|
35
|
+
}
|
|
32
36
|
: undefined,
|
|
33
37
|
});
|
|
34
38
|
|
|
@@ -36,10 +40,18 @@ export const EditEvent = ({ route, navigation }: EditEventProps) => {
|
|
|
36
40
|
try {
|
|
37
41
|
setIsLoading(true);
|
|
38
42
|
const data = form.getValues('data');
|
|
43
|
+
const series = post?.data as Event | undefined;
|
|
44
|
+
const toSave =
|
|
45
|
+
data.type === 'event' && occurrence && series?.recurrence
|
|
46
|
+
? upsertEventException(series, {
|
|
47
|
+
recurrenceId: occurrence,
|
|
48
|
+
start: data.start,
|
|
49
|
+
end: data.end,
|
|
50
|
+
physicalLocation: data.physicalLocation,
|
|
51
|
+
})
|
|
52
|
+
: data;
|
|
39
53
|
const response = await updatePost(
|
|
40
|
-
|
|
41
|
-
? normalizeEventDataForSave(data)
|
|
42
|
-
: data,
|
|
54
|
+
toSave.type === 'event' ? normalizeEventDataForSave(toSave) : toSave
|
|
43
55
|
);
|
|
44
56
|
Toast.show({
|
|
45
57
|
type: 'success',
|
|
@@ -49,6 +61,7 @@ export const EditEvent = ({ route, navigation }: EditEventProps) => {
|
|
|
49
61
|
navigation.pop();
|
|
50
62
|
navigation.navigate('EventPage', {
|
|
51
63
|
id: response.id,
|
|
64
|
+
occurrence,
|
|
52
65
|
});
|
|
53
66
|
} catch (err) {
|
|
54
67
|
console.error('Submit error:', err);
|
|
@@ -14,6 +14,7 @@ import { ActivityIndicator, View } from 'react-native';
|
|
|
14
14
|
import { Avatar, AvatarImage } from '~/components/ui/avatar';
|
|
15
15
|
import { ThemedSafeAreaView } from '~/components/ui/themed-safe-area-view';
|
|
16
16
|
import { useTranslation } from 'react-i18next';
|
|
17
|
+
import { getGroupAvatar } from '@openpeepshq/common';
|
|
17
18
|
|
|
18
19
|
type GroupInfoProps = MainScreenProps<'GroupInfo'>;
|
|
19
20
|
|
|
@@ -29,15 +30,14 @@ export const GroupInfo = ({ route }: GroupInfoProps) => {
|
|
|
29
30
|
title={
|
|
30
31
|
<View className="flex-row gap-x-2 items-center">
|
|
31
32
|
<Avatar alt={groupData?.displayName as string} className=" size-14">
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
)}
|
|
33
|
+
<AvatarImage
|
|
34
|
+
source={{
|
|
35
|
+
uri:
|
|
36
|
+
groupData && server
|
|
37
|
+
? getGroupAvatar(groupData, server.communityConfig)
|
|
38
|
+
: groupData?.avatar,
|
|
39
|
+
}}
|
|
40
|
+
/>
|
|
41
41
|
</Avatar>
|
|
42
42
|
<ThemedText className="text-lg">
|
|
43
43
|
{truncateText(groupData?.displayName, 30)}
|