@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.
- package/README.md +1 -1
- package/package.json +12 -7
- package/src/components/custom/navigation/side-menu.tsx +59 -11
- package/src/components/icons/iconWithClassName.tsx +21 -0
- package/src/components/jams/JamActionsFooter.tsx +8 -2
- package/src/components/jams/JamCapacityGate.tsx +1 -1
- package/src/components/jams/JamCard.tsx +8 -4
- package/src/components/jams/JamConference.tsx +6 -1
- package/src/components/jams/JamParticipantConference.tsx +2 -0
- package/src/components/jams/JamRoom.tsx +2 -3
- package/src/components/jams/LiveJamsSection.tsx +12 -1
- package/src/components/jams/LivekitUnavailableNotice.tsx +25 -0
- package/src/components/jams/index.ts +1 -0
- package/src/components/markdown/MarkdownOverlay.tsx +75 -0
- package/src/components/markdown/OpenpeepsMarkdown.tsx +3 -1
- package/src/components/markdown/extensions/link.tsx +34 -0
- package/src/components/markdown/index.ts +2 -0
- package/src/components/navigation/tab-navigator.tsx +39 -17
- package/src/components/notifications/NotificationItem.tsx +27 -2
- package/src/components/notifications/types/JamStarted.tsx +13 -3
- package/src/components/notifications/types/Reply.tsx +1 -5
- package/src/components/notifications/types/WaitlistOffer.tsx +61 -0
- package/src/components/notifications/types/index.ts +1 -0
- package/src/components/post/CompactReplyParent.tsx +16 -15
- package/src/components/post/TruncatedMarkdown.tsx +60 -0
- package/src/components/post/helpers.ts +2 -2
- package/src/components/post/index.ts +2 -0
- package/src/components/post/pieces/EventRsvpButton.tsx +99 -5
- package/src/components/post/pieces/EventRsvpList.tsx +46 -0
- package/src/components/post/pieces/EventRsvpScopeDialog.tsx +30 -19
- package/src/components/post/pieces/EventWaitlistJoinDialog.tsx +62 -0
- package/src/components/post/pieces/PollContent.tsx +7 -7
- package/src/components/post/pieces/PostActions.tsx +89 -23
- package/src/components/post/pieces/ShareMenu.tsx +2 -2
- package/src/components/post/post-form/DescriptionEditModal.tsx +1 -0
- package/src/components/post/post-form/EventForm.tsx +50 -10
- package/src/components/post/post-form/ResourceForm.tsx +115 -5
- package/src/components/post/types/Article.tsx +6 -2
- package/src/components/post/types/Poll.tsx +4 -1
- package/src/components/post/types/event/CardEvent.tsx +101 -76
- package/src/components/post/types/event/FullEvent.tsx +60 -23
- package/src/components/post/types/event/ProfileEventRelationship.tsx +2 -0
- package/src/components/post/types/resource/FullResource.tsx +9 -1
- package/src/components/preview-link/LocalPreviewLink.tsx +4 -1
- package/src/components/preview-link/helpers.ts +5 -1
- package/src/components/preview-link/index.ts +1 -0
- package/src/components/preview-link/local/WelcomePreview.tsx +59 -0
- package/src/components/profile/Avatar.tsx +0 -1
- package/src/components/profile/EditProfileForm.tsx +23 -2
- package/src/components/profile/ProfileSheet.tsx +1 -1
- package/src/components/resources/ResourceCard.tsx +75 -22
- package/src/components/resources/ResourceLibrary.tsx +18 -2
- package/src/components/ui/badge.tsx +2 -3
- package/src/components/ui/bottom-sheet.tsx +0 -6
- package/src/components/ui/popup-menu-button.tsx +2 -2
- package/src/components/ui/popup-menu-separator.tsx +1 -1
- package/src/components/ui/popup-menu.tsx +2 -2
- package/src/lib/utils.ts +10 -3
- package/src/pages/auth/Register.tsx +34 -4
- package/src/pages/conversations/Show.tsx +38 -7
- package/src/pages/feeds/Bookmarks.tsx +1 -1
- package/src/pages/jams/Index.tsx +6 -4
- package/src/pages/posts/New.tsx +1 -1
- package/src/pages/resources/Edit.tsx +2 -1
- package/src/pages/resources/New.tsx +6 -1
- package/src/pages/settings/Account.tsx +46 -2
- package/src/pages/settings/Index.tsx +3 -4
- package/src/pages/settings/NotificationPreferences.tsx +3 -3
- package/src/pages/settings/Theme.tsx +1 -1
- 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 = (
|
|
19
|
-
TabStackParamList,
|
|
20
|
-
|
|
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
|
-
|
|
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
|
-
});
|