@openpeepshq/rn-components 0.7.1 → 0.8.0

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.
Files changed (70) hide show
  1. package/README.md +1 -1
  2. package/package.json +12 -7
  3. package/src/components/custom/navigation/side-menu.tsx +59 -11
  4. package/src/components/icons/iconWithClassName.tsx +21 -0
  5. package/src/components/jams/JamActionsFooter.tsx +8 -2
  6. package/src/components/jams/JamCapacityGate.tsx +1 -1
  7. package/src/components/jams/JamCard.tsx +8 -4
  8. package/src/components/jams/JamConference.tsx +6 -1
  9. package/src/components/jams/JamParticipantConference.tsx +2 -0
  10. package/src/components/jams/JamRoom.tsx +2 -3
  11. package/src/components/jams/LiveJamsSection.tsx +12 -1
  12. package/src/components/jams/LivekitUnavailableNotice.tsx +25 -0
  13. package/src/components/jams/index.ts +1 -0
  14. package/src/components/markdown/MarkdownOverlay.tsx +75 -0
  15. package/src/components/markdown/OpenpeepsMarkdown.tsx +3 -1
  16. package/src/components/markdown/extensions/link.tsx +34 -0
  17. package/src/components/markdown/index.ts +2 -0
  18. package/src/components/navigation/tab-navigator.tsx +39 -17
  19. package/src/components/notifications/NotificationItem.tsx +27 -2
  20. package/src/components/notifications/types/JamStarted.tsx +13 -3
  21. package/src/components/notifications/types/Reply.tsx +1 -5
  22. package/src/components/notifications/types/WaitlistOffer.tsx +61 -0
  23. package/src/components/notifications/types/index.ts +1 -0
  24. package/src/components/post/CompactReplyParent.tsx +16 -15
  25. package/src/components/post/TruncatedMarkdown.tsx +60 -0
  26. package/src/components/post/helpers.ts +2 -2
  27. package/src/components/post/index.ts +2 -0
  28. package/src/components/post/pieces/EventRsvpButton.tsx +99 -5
  29. package/src/components/post/pieces/EventRsvpList.tsx +46 -0
  30. package/src/components/post/pieces/EventRsvpScopeDialog.tsx +30 -19
  31. package/src/components/post/pieces/EventWaitlistJoinDialog.tsx +62 -0
  32. package/src/components/post/pieces/PollContent.tsx +7 -7
  33. package/src/components/post/pieces/PostActions.tsx +89 -23
  34. package/src/components/post/pieces/ShareMenu.tsx +2 -2
  35. package/src/components/post/post-form/DescriptionEditModal.tsx +1 -0
  36. package/src/components/post/post-form/EventForm.tsx +50 -10
  37. package/src/components/post/post-form/ResourceForm.tsx +115 -5
  38. package/src/components/post/types/Article.tsx +6 -2
  39. package/src/components/post/types/Poll.tsx +4 -1
  40. package/src/components/post/types/event/CardEvent.tsx +101 -76
  41. package/src/components/post/types/event/FullEvent.tsx +60 -23
  42. package/src/components/post/types/event/ProfileEventRelationship.tsx +2 -0
  43. package/src/components/post/types/resource/FullResource.tsx +9 -1
  44. package/src/components/preview-link/LocalPreviewLink.tsx +4 -1
  45. package/src/components/preview-link/helpers.ts +5 -1
  46. package/src/components/preview-link/index.ts +1 -0
  47. package/src/components/preview-link/local/WelcomePreview.tsx +59 -0
  48. package/src/components/profile/Avatar.tsx +0 -1
  49. package/src/components/profile/EditProfileForm.tsx +23 -2
  50. package/src/components/profile/ProfileSheet.tsx +1 -1
  51. package/src/components/resources/ResourceCard.tsx +75 -22
  52. package/src/components/resources/ResourceLibrary.tsx +18 -2
  53. package/src/components/ui/badge.tsx +2 -3
  54. package/src/components/ui/bottom-sheet.tsx +0 -6
  55. package/src/components/ui/popup-menu-button.tsx +2 -2
  56. package/src/components/ui/popup-menu-separator.tsx +1 -1
  57. package/src/components/ui/popup-menu.tsx +2 -2
  58. package/src/lib/utils.ts +10 -3
  59. package/src/pages/auth/Register.tsx +34 -4
  60. package/src/pages/conversations/Show.tsx +38 -7
  61. package/src/pages/feeds/Bookmarks.tsx +1 -1
  62. package/src/pages/jams/Index.tsx +6 -4
  63. package/src/pages/posts/New.tsx +1 -1
  64. package/src/pages/resources/Edit.tsx +2 -1
  65. package/src/pages/resources/New.tsx +6 -1
  66. package/src/pages/settings/Account.tsx +46 -2
  67. package/src/pages/settings/Index.tsx +3 -4
  68. package/src/pages/settings/NotificationPreferences.tsx +3 -3
  69. package/src/pages/settings/Theme.tsx +1 -1
  70. package/src/components/icons/iconWithClassName.ts +0 -12
@@ -15,10 +15,9 @@ import { ConfigMenuButton } from '../../components/configuration/index';
15
15
  import { useSetPageHeader } from '../../components/layout';
16
16
  import { ThemedView } from '../../components/ui/themed-view';
17
17
 
18
- export const Settings = ({}: NativeStackScreenProps<
19
- TabStackParamList,
20
- 'Settings'
21
- >) => {
18
+ export const Settings = (
19
+ _: NativeStackScreenProps<TabStackParamList, 'Settings'>
20
+ ) => {
22
21
  const profile = useCurrentProfile();
23
22
  const { t } = useTranslation();
24
23
  const navigation =
@@ -28,9 +28,9 @@ const notificationTypeDefaults: Record<
28
28
 
29
29
  type NotificationsSettingsProps = MainScreenProps<'NotificationsSettings'>;
30
30
 
31
- export const NotificationPreferences: React.FC<
32
- NotificationsSettingsProps
33
- > = ({}) => {
31
+ export const NotificationPreferences: React.FC<NotificationsSettingsProps> = (
32
+ _props
33
+ ) => {
34
34
  const { t } = useTranslation();
35
35
  const { types } = useNotificationPreferences();
36
36
 
@@ -16,7 +16,7 @@ import { toAbsoluteMediaUrl } from '../../lib/media-url';
16
16
 
17
17
  type ThemeSettingsProps = MainScreenProps<'ThemeSettings'>;
18
18
 
19
- export const ThemeSettings: React.FC<ThemeSettingsProps> = ({}) => {
19
+ export const ThemeSettings: React.FC<ThemeSettingsProps> = () => {
20
20
  const { theme, setTheme, submitting, save } = useThemePreference();
21
21
  const serverInfo = useServerInfo();
22
22
  const { refresh } = useOpenPeepsTheme();
@@ -1,12 +0,0 @@
1
- import type { LucideIcon } from 'lucide-react-native';
2
- import { cssInterop } from 'nativewind';
3
- export const iconWithClassName = (icon: LucideIcon) =>
4
- cssInterop(icon, {
5
- className: {
6
- target: 'style',
7
- nativeStyleToProp: {
8
- color: true,
9
- opacity: true,
10
- },
11
- },
12
- });