gsintegrations 0.0.483 → 0.0.484
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.cjs.js +7284 -1613
- package/dist/bundle.cjs.js.map +2 -2
- package/dist/bundle.esm.js +7161 -1614
- package/dist/bundle.esm.js.map +2 -2
- package/dist/index.d.ts +2857 -144
- package/dist/types/components/FormChatAssistant/FormChatAssistant.types.d.ts +5 -1
- package/dist/types/components/FormChatAssistant/FormChatPanelLayout.d.ts +17 -0
- package/dist/types/components/FormChatAssistant/formChatAssistant.theme.d.ts +34 -0
- package/dist/types/components/PageHeader/PageHeader.d.ts +4 -0
- package/dist/types/components/atoms/FacebookAuthButton/FacebookAuthButton.d.ts +4 -0
- package/dist/types/components/atoms/FacebookAuthButton/FacebookAuthButton.types.d.ts +18 -0
- package/dist/types/components/atoms/FacebookAuthButton/index.d.ts +2 -0
- package/dist/types/components/atoms/index.d.ts +2 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/molecules/GenericDrawer/GenericDrawer.types.d.ts +15 -0
- package/dist/types/components/molecules/QuickActions/iconMap.d.ts +6 -0
- package/dist/types/components/organisms/SignInForm/SignInForm.types.d.ts +17 -0
- package/dist/types/components/organisms/SignUpForm/SignUpForm.types.d.ts +17 -0
- package/dist/types/components/social/AlsoExperiencedButton.d.ts +10 -0
- package/dist/types/components/social/BlockDialog.d.ts +10 -0
- package/dist/types/components/social/ConnectionButton.d.ts +11 -0
- package/dist/types/components/social/ExperienceCard.d.ts +18 -0
- package/dist/types/components/social/ExperienceCategoryBadge.d.ts +8 -0
- package/dist/types/components/social/ExperienceCommentRow.d.ts +12 -0
- package/dist/types/components/social/ExperienceCommentsSheet.d.ts +27 -0
- package/dist/types/components/social/ExperienceComposer.d.ts +21 -0
- package/dist/types/components/social/ExperienceDetailView.d.ts +17 -0
- package/dist/types/components/social/ExperienceEngageMenu.d.ts +14 -0
- package/dist/types/components/social/ExperiencePostTypeBadge.d.ts +8 -0
- package/dist/types/components/social/ExperienceReactionBar.d.ts +11 -0
- package/dist/types/components/social/JourneyProfile.d.ts +34 -0
- package/dist/types/components/social/PeerMessageList.d.ts +10 -0
- package/dist/types/components/social/PostGiraPrompt.d.ts +8 -0
- package/dist/types/components/social/PrivacySelector.d.ts +11 -0
- package/dist/types/components/social/QuestionAnswerCard.d.ts +8 -0
- package/dist/types/components/social/QuestionAnswersSheet.d.ts +23 -0
- package/dist/types/components/social/QuestionCard.d.ts +16 -0
- package/dist/types/components/social/QuestionComposer.d.ts +17 -0
- package/dist/types/components/social/QuestionSourceBadge.d.ts +7 -0
- package/dist/types/components/social/ReportDialog.d.ts +13 -0
- package/dist/types/components/social/ShareSheet.d.ts +13 -0
- package/dist/types/components/social/SimilarExperienceCard.d.ts +8 -0
- package/dist/types/components/social/SimilarPeopleCard.d.ts +10 -0
- package/dist/types/components/social/SocialAccountDrawer.d.ts +31 -0
- package/dist/types/components/social/SocialConversationRow.d.ts +8 -0
- package/dist/types/components/social/SocialCreateActionsSheet.d.ts +13 -0
- package/dist/types/components/social/SocialEmptyState.d.ts +10 -0
- package/dist/types/components/social/SocialErrorState.d.ts +8 -0
- package/dist/types/components/social/SocialHomeBottomNav.d.ts +22 -0
- package/dist/types/components/social/SocialHomeHeader.d.ts +13 -0
- package/dist/types/components/social/SocialMessageBubble.d.ts +19 -0
- package/dist/types/components/social/SocialMessageComposer.d.ts +17 -0
- package/dist/types/components/social/SocialReadOnlyNotice.d.ts +6 -0
- package/dist/types/components/social/SocialSkeleton.d.ts +7 -0
- package/dist/types/components/social/SocialUnreadIndicator.d.ts +8 -0
- package/dist/types/components/social/SocialVerificationEarnedCelebration.d.ts +18 -0
- package/dist/types/components/social/SocialVerificationProgressSheet.d.ts +35 -0
- package/dist/types/components/social/TraditionBadge.d.ts +7 -0
- package/dist/types/components/social/WhatsAppShareButton.d.ts +8 -0
- package/dist/types/components/social/bannerPresets.d.ts +29 -0
- package/dist/types/components/social/formatAffinityPercent.d.ts +5 -0
- package/dist/types/components/social/index.d.ts +61 -0
- package/dist/types/components/social/labels.d.ts +20 -0
- package/dist/types/components/social/profileFields.d.ts +27 -0
- package/dist/types/components/social/socialSurfaces.d.ts +103 -0
- package/dist/types/components/social/types.d.ts +1003 -0
- package/dist/types/hooks/useHideOnScroll.d.ts +13 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/pages/AddMediumByQRCodePage/AddMediumByQRCodePage.types.d.ts +6 -6
- package/dist/types/pages/EventsPage/EventsPage.types.d.ts +36 -36
- package/dist/types/pages/FinancialRegisterPage/FinancialRegister.types.d.ts +28 -28
- package/dist/types/pages/GamificationHelpPage/GamificationHelpPage.types.d.ts +2 -2
- package/dist/types/pages/HomePage/HomePage.constants.d.ts +4 -3
- package/dist/types/pages/HomePage/HomePage.types.d.ts +29 -13
- package/dist/types/pages/HomePage/components/HomeBottomNav.d.ts +12 -0
- package/dist/types/pages/HomePage/components/HomeMenu.d.ts +7 -7
- package/dist/types/pages/HomePage/components/HomeMenu.types.d.ts +20 -20
- package/dist/types/pages/HomePage/components/TopBar.d.ts +1 -1
- package/dist/types/pages/HomePage/components/TopBar.types.d.ts +2 -2
- package/dist/types/pages/HomePage/components/index.d.ts +1 -1
- package/dist/types/pages/HomePage/components/useHomeMenu.d.ts +2 -2
- package/dist/types/pages/HomePage/useHomePage.d.ts +2 -2
- package/dist/types/pages/HomePage/widgets/homeWidgets.catalog.d.ts +6 -6
- package/dist/types/pages/InviteLandingPage/InviteLandingPage.types.d.ts +4 -0
- package/dist/types/pages/InviteLandingPage/useInviteLandingPage.d.ts +1 -0
- package/dist/types/pages/NotFoundPage/NotFoundPage.types.d.ts +2 -2
- package/dist/types/pages/NotificationsPage/NotificationsPage.types.d.ts +38 -38
- package/dist/types/pages/NotificationsPage/useNotificationsPage.d.ts +3 -3
- package/dist/types/pages/PasswordCreationPage/PasswordCreationPage.types.d.ts +8 -8
- package/dist/types/pages/RitualBathDetailPage/RitualBathDetailPage.d.ts +1 -1
- package/dist/types/pages/RitualBathDetailPage/RitualBathDetailPage.types.d.ts +6 -6
- package/dist/types/pages/RitualBathDetailPage/useRitualBathDetailPage.d.ts +1 -1
- package/dist/types/pages/RitualBathListPage/RitualBathListPage.types.d.ts +16 -16
- package/dist/types/pages/RitualBathListPage/useRitualBathListPage.d.ts +2 -2
- package/dist/types/pages/RitualBathOnboardingPage/RitualBathOnboarding.types.d.ts +4 -4
- package/dist/types/pages/RitualBathOnboardingPage/useRitualBathOnboarding.d.ts +1 -1
- package/dist/types/pages/RitualBathSchedulePage/RitualBathSchedulePage.types.d.ts +6 -6
- package/dist/types/pages/RoleFormPage/RoleFormPage.types.d.ts +2 -2
- package/dist/types/pages/SigninPage/SigninPage.types.d.ts +14 -0
- package/dist/types/pages/SignupPage/SignupPage.types.d.ts +14 -0
- package/dist/types/pages/Social/CreateExperiencePage/CreateExperiencePage.d.ts +12 -0
- package/dist/types/pages/Social/CreateExperiencePage/CreateExperiencePage.types.d.ts +62 -0
- package/dist/types/pages/Social/CreateExperiencePage/CreateExperienceSummaryCard.d.ts +13 -0
- package/dist/types/pages/Social/CreateQuestionPage/CreateQuestionPage.d.ts +12 -0
- package/dist/types/pages/Social/CreateQuestionPage/CreateQuestionPage.types.d.ts +55 -0
- package/dist/types/pages/Social/CreateQuestionPage/CreateQuestionSummaryCard.d.ts +12 -0
- package/dist/types/pages/Social/EditJourneyPage/EditJourneyPage.d.ts +53 -0
- package/dist/types/pages/Social/ExperienceDetailPage/ExperienceDetailPage.d.ts +50 -0
- package/dist/types/pages/Social/JourneyProfilePage/JourneyProfilePage.d.ts +59 -0
- package/dist/types/pages/Social/PublicSocialPreviewPage/PublicSocialPreviewPage.d.ts +5 -0
- package/dist/types/pages/Social/PublicSocialPreviewPage/PublicSocialPreviewPage.types.d.ts +334 -0
- package/dist/types/pages/Social/PublicSocialPreviewPage/index.d.ts +3 -0
- package/dist/types/pages/Social/QuestionDetailPage/QuestionDetailPage.d.ts +15 -0
- package/dist/types/pages/Social/QuestionsPage/QuestionsPage.d.ts +13 -0
- package/dist/types/pages/Social/SimilarPage/SimilarPage.d.ts +15 -0
- package/dist/types/pages/Social/SocialConnectionsPage/SocialConnectionsPage.d.ts +41 -0
- package/dist/types/pages/Social/SocialConversationPage/SocialConversationPage.d.ts +19 -0
- package/dist/types/pages/Social/SocialDiscoverPage/SocialDiscoverPage.d.ts +34 -0
- package/dist/types/pages/Social/SocialHomePage/SocialHomePage.d.ts +116 -0
- package/dist/types/pages/Social/SocialHomePage/index.d.ts +2 -0
- package/dist/types/pages/Social/SocialInboxPage/SocialInboxPage.d.ts +14 -0
- package/dist/types/pages/Social/SocialNotificationsPage/SocialNotificationsPage.d.ts +21 -0
- package/dist/types/pages/Social/SocialOnboardingIntro/SocialOnboardingIntro.d.ts +5 -0
- package/dist/types/pages/Social/SocialOnboardingIntro/SocialOnboardingIntro.types.d.ts +14 -0
- package/dist/types/pages/Social/SocialOnboardingIntro/index.d.ts +2 -0
- package/dist/types/pages/Social/SocialOnboardingPage/SocialOnboardingPage.d.ts +13 -0
- package/dist/types/pages/Social/SocialOnboardingPage/SocialOnboardingPage.types.d.ts +59 -0
- package/dist/types/pages/Social/SocialOnboardingPage/SocialOnboardingSummaryCard.d.ts +12 -0
- package/dist/types/pages/Social/SocialPageShell.d.ts +29 -0
- package/dist/types/pages/Social/SocialPrivacySettingsPage/SocialPrivacySettingsPage.d.ts +18 -0
- package/dist/types/pages/Social/SocialSavedPage/SocialSavedPage.d.ts +59 -0
- package/dist/types/pages/Social/index.d.ts +42 -0
- package/dist/types/pages/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type Experience, type ExperienceComment, type ExperienceCommentSubmitMeta, type ExperienceReactionType, type Question, type QuestionAnswer, type SimilarPerson, type SocialFeedItem, type SocialHomeCurrentUser } from "../../../components/social";
|
|
3
|
+
export type SocialHomeTab = "para-voce" | "seguindo";
|
|
4
|
+
export type SocialHomePageProps = {
|
|
5
|
+
/** Mixed for-you feed (experiences + questions). Preferred over `experiences`. */
|
|
6
|
+
feedItems?: SocialFeedItem[];
|
|
7
|
+
/** Mixed following feed. Preferred over `followingExperiences`. */
|
|
8
|
+
followingFeedItems?: SocialFeedItem[];
|
|
9
|
+
/** @deprecated Prefer feedItems. Flat experiences are wrapped as feed items. */
|
|
10
|
+
experiences?: Experience[];
|
|
11
|
+
/** @deprecated Prefer followingFeedItems. */
|
|
12
|
+
followingExperiences?: Experience[];
|
|
13
|
+
currentUser?: SocialHomeCurrentUser;
|
|
14
|
+
/** When set, missing author on the viewer's own posts shows "Você". */
|
|
15
|
+
viewerUserId?: string;
|
|
16
|
+
isLoading?: boolean;
|
|
17
|
+
error?: string;
|
|
18
|
+
hasNextPage?: boolean;
|
|
19
|
+
isFetchingNextPage?: boolean;
|
|
20
|
+
followingIsLoading?: boolean;
|
|
21
|
+
followingError?: string;
|
|
22
|
+
followingHasNextPage?: boolean;
|
|
23
|
+
followingIsFetchingNextPage?: boolean;
|
|
24
|
+
postGiraEventTitle?: string;
|
|
25
|
+
alsoExperiencedLoadingId?: string | null;
|
|
26
|
+
bottomNavActive?: "home" | "messages" | "notifications" | "search";
|
|
27
|
+
/** Unread direct messages (messaging inbox). */
|
|
28
|
+
messagesUnreadCount?: number;
|
|
29
|
+
/** Unread Social notifications (excludes DMs). */
|
|
30
|
+
notificationsUnreadCount?: number;
|
|
31
|
+
/** Inbound PENDING follow requests; shown on drawer Pedidos row. */
|
|
32
|
+
pendingFollowersCount?: number;
|
|
33
|
+
onLoadMore?: () => void | Promise<void>;
|
|
34
|
+
onLoadMoreFollowing?: () => void | Promise<void>;
|
|
35
|
+
onRetry?: () => void;
|
|
36
|
+
onRetryFollowing?: () => void;
|
|
37
|
+
/** @deprecated Prefer onExitToApp from the account drawer. */
|
|
38
|
+
onBack?: () => void;
|
|
39
|
+
onCreateExperience?: () => void;
|
|
40
|
+
/** Opens nova pergunta create flow from the home create sheet. */
|
|
41
|
+
onCreateQuestion?: () => void;
|
|
42
|
+
/** Opens messaging compose / inbox from the home create sheet. */
|
|
43
|
+
onComposeMessage?: () => void;
|
|
44
|
+
/** Fired when the create FAB opens the actions sheet. */
|
|
45
|
+
onCreateFabOpen?: () => void;
|
|
46
|
+
/** Fired when a create sheet option is chosen. */
|
|
47
|
+
onCreateOptionSelected?: (kind: "experience" | "question" | "message") => void;
|
|
48
|
+
onOpenExperience?: (id: string) => void;
|
|
49
|
+
onAlsoExperienced?: (id: string) => void;
|
|
50
|
+
onReactionToggle?: (id: string, type: ExperienceReactionType) => void;
|
|
51
|
+
onShareExperience?: (id: string) => void;
|
|
52
|
+
onReportExperience?: (id: string) => void;
|
|
53
|
+
onCommentExperience?: (id: string) => void;
|
|
54
|
+
onBookmarkExperience?: (id: string) => void;
|
|
55
|
+
onOpenQuestionAnswers?: (id: string) => void;
|
|
56
|
+
onBookmarkQuestion?: (id: string) => void;
|
|
57
|
+
onShareQuestion?: (id: string) => void;
|
|
58
|
+
onReactionToggleQuestion?: (id: string, type: ExperienceReactionType) => void;
|
|
59
|
+
onOpenPerson?: (userId: string, username?: string) => void;
|
|
60
|
+
/** Comments sheet data for the open experience (presentational). */
|
|
61
|
+
comments?: ExperienceComment[];
|
|
62
|
+
commentsCount?: number;
|
|
63
|
+
commentsLoading?: boolean;
|
|
64
|
+
commentsFetchingMore?: boolean;
|
|
65
|
+
commentsHasMore?: boolean;
|
|
66
|
+
commentsSubmitting?: boolean;
|
|
67
|
+
commentsError?: string | null;
|
|
68
|
+
commentsComposerDisabled?: boolean;
|
|
69
|
+
onLoadMoreComments?: () => void;
|
|
70
|
+
onLoadMoreReplies?: (rootCommentId: string) => void | Promise<void>;
|
|
71
|
+
onSubmitComment?: (body: string, meta?: ExperienceCommentSubmitMeta) => void | Promise<void>;
|
|
72
|
+
onToggleCommentLike?: (comment: ExperienceComment) => void;
|
|
73
|
+
onCloseComments?: () => void;
|
|
74
|
+
onRetryComments?: () => void;
|
|
75
|
+
answers?: QuestionAnswer[];
|
|
76
|
+
answersCount?: number;
|
|
77
|
+
answersLoading?: boolean;
|
|
78
|
+
answersSubmitting?: boolean;
|
|
79
|
+
answersError?: string | null;
|
|
80
|
+
onSubmitAnswer?: (content: string) => void | Promise<void>;
|
|
81
|
+
onCloseAnswers?: () => void;
|
|
82
|
+
onRetryAnswers?: () => void;
|
|
83
|
+
onPostGiraShare?: () => void;
|
|
84
|
+
onPostGiraDismiss?: () => void;
|
|
85
|
+
onOpenFollow?: () => void;
|
|
86
|
+
onOpenProfile?: () => void;
|
|
87
|
+
onOpenSaved?: () => void;
|
|
88
|
+
onOpenFollowing?: () => void;
|
|
89
|
+
onOpenFollowers?: () => void;
|
|
90
|
+
onOpenRequests?: () => void;
|
|
91
|
+
onOpenVerificationProgress?: () => void;
|
|
92
|
+
verificationSummary?: {
|
|
93
|
+
verified: boolean;
|
|
94
|
+
activeDays7: number;
|
|
95
|
+
daysRequired: number;
|
|
96
|
+
daysRemaining?: number | null;
|
|
97
|
+
} | null;
|
|
98
|
+
onExitToApp?: () => void;
|
|
99
|
+
onNavigateHome?: () => void;
|
|
100
|
+
onOpenMessages?: () => void;
|
|
101
|
+
onOpenNotifications?: () => void;
|
|
102
|
+
onOpenSearch?: () => void;
|
|
103
|
+
/** Alias for search / Explorar until dedicated search exists. */
|
|
104
|
+
onDiscover?: () => void;
|
|
105
|
+
onParaVoceMenu?: (action: string) => void;
|
|
106
|
+
/** @deprecated Kept for app compile compat. */
|
|
107
|
+
questions?: Question[];
|
|
108
|
+
/** @deprecated Kept for app compile compat. */
|
|
109
|
+
similarPeople?: SimilarPerson[];
|
|
110
|
+
/** @deprecated Prefer onOpenQuestionAnswers. */
|
|
111
|
+
onOpenQuestion?: (id: string) => void;
|
|
112
|
+
/** @deprecated */
|
|
113
|
+
onConnectPerson?: (userId: string) => void;
|
|
114
|
+
};
|
|
115
|
+
declare const SocialHomePage: React.FC<SocialHomePageProps>;
|
|
116
|
+
export default SocialHomePage;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type SocialConversation } from "../../../components/social";
|
|
3
|
+
export type SocialInboxPageProps = {
|
|
4
|
+
conversations?: SocialConversation[];
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
error?: string;
|
|
7
|
+
errorTitle?: string;
|
|
8
|
+
onBack?: () => void;
|
|
9
|
+
onRetry?: () => void;
|
|
10
|
+
onOpenConversation?: (conversationId: string) => void;
|
|
11
|
+
onCompose?: () => void;
|
|
12
|
+
};
|
|
13
|
+
declare const SocialInboxPage: React.FC<SocialInboxPageProps>;
|
|
14
|
+
export default SocialInboxPage;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type SocialNotificationItem = {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
message: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
createdAt?: string | Date;
|
|
8
|
+
read?: boolean;
|
|
9
|
+
avatarUrl?: string | null;
|
|
10
|
+
actionRoute?: string;
|
|
11
|
+
};
|
|
12
|
+
export type SocialNotificationsPageProps = {
|
|
13
|
+
notifications?: SocialNotificationItem[];
|
|
14
|
+
isLoading?: boolean;
|
|
15
|
+
error?: string;
|
|
16
|
+
onBack?: () => void;
|
|
17
|
+
onRetry?: () => void;
|
|
18
|
+
onOpen?: (item: SocialNotificationItem) => void;
|
|
19
|
+
};
|
|
20
|
+
declare const SocialNotificationsPage: React.FC<SocialNotificationsPageProps>;
|
|
21
|
+
export default SocialNotificationsPage;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type SocialOnboardingIntroProps } from "./SocialOnboardingIntro.types";
|
|
3
|
+
export { SOCIAL_ONBOARDING_INTRO_STEPS, type SocialOnboardingIntroProps, type SocialOnboardingIntroStep, } from "./SocialOnboardingIntro.types";
|
|
4
|
+
declare const SocialOnboardingIntro: React.FC<SocialOnboardingIntroProps>;
|
|
5
|
+
export default SocialOnboardingIntro;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type SocialOnboardingIntroStep = {
|
|
2
|
+
id: string;
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
imageSrc: string;
|
|
6
|
+
imageAlt: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const SOCIAL_ONBOARDING_INTRO_STEPS: SocialOnboardingIntroStep[];
|
|
9
|
+
export type SocialOnboardingIntroProps = {
|
|
10
|
+
steps?: SocialOnboardingIntroStep[];
|
|
11
|
+
initialStepIndex?: number;
|
|
12
|
+
onComplete: () => void;
|
|
13
|
+
onBack?: () => void;
|
|
14
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { SocialOnboardingPageProps } from "./SocialOnboardingPage.types";
|
|
3
|
+
export { SocialOnboardingValuesSchema, type SocialOnboardingInitialValues, type SocialOnboardingPageProps, type SocialOnboardingStep, type SocialOnboardingSummary, type SocialOnboardingValues, } from "./SocialOnboardingPage.types";
|
|
4
|
+
export declare const SOCIAL_ONBOARDING_STEP_LABELS: {
|
|
5
|
+
readonly "social-identity": "Sua identidade";
|
|
6
|
+
readonly "social-profile": "Sobre sua jornada";
|
|
7
|
+
readonly "social-privacy": "Privacidade";
|
|
8
|
+
readonly review: "Revisão";
|
|
9
|
+
readonly complete: "Concluído";
|
|
10
|
+
};
|
|
11
|
+
export declare const SOCIAL_ONBOARDING_STEP_ORDER: readonly ["social-identity", "social-profile", "social-privacy", "review"];
|
|
12
|
+
declare const SocialOnboardingPage: React.FC<SocialOnboardingPageProps>;
|
|
13
|
+
export default SocialOnboardingPage;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { FormChatApiError, FormChatEditableFieldOption, FormChatEditInteraction, FormChatFieldInput, FormChatListOption, FormChatMessage, FormChatSelectionPayload, FormChatSendOptions } from "../../../components/FormChatAssistant";
|
|
3
|
+
import { type SocialVisibility } from "../../../components/social";
|
|
4
|
+
export declare const SocialOnboardingValuesSchema: z.ZodObject<{
|
|
5
|
+
username: z.ZodString;
|
|
6
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
7
|
+
traditionLabel: z.ZodOptional<z.ZodString>;
|
|
8
|
+
bio: z.ZodOptional<z.ZodString>;
|
|
9
|
+
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
} & {
|
|
11
|
+
profileVisibility: z.ZodEnum<["PRIVATE", "TERREIRO", "COMMUNITY"]>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
username: string;
|
|
14
|
+
profileVisibility: "TERREIRO" | "PRIVATE" | "COMMUNITY";
|
|
15
|
+
displayName?: string | undefined;
|
|
16
|
+
avatarUrl?: string | null | undefined;
|
|
17
|
+
traditionLabel?: string | undefined;
|
|
18
|
+
bio?: string | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
username: string;
|
|
21
|
+
profileVisibility: "TERREIRO" | "PRIVATE" | "COMMUNITY";
|
|
22
|
+
displayName?: string | undefined;
|
|
23
|
+
avatarUrl?: string | null | undefined;
|
|
24
|
+
traditionLabel?: string | undefined;
|
|
25
|
+
bio?: string | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
export type SocialOnboardingValues = z.infer<typeof SocialOnboardingValuesSchema>;
|
|
28
|
+
export type SocialOnboardingInitialValues = Partial<SocialOnboardingValues>;
|
|
29
|
+
export type SocialOnboardingSummary = SocialOnboardingInitialValues;
|
|
30
|
+
export type SocialOnboardingStep = "social-identity" | "social-profile" | "social-privacy" | "review" | "complete";
|
|
31
|
+
export type SocialOnboardingPageProps = {
|
|
32
|
+
messages: FormChatMessage[];
|
|
33
|
+
currentStep?: SocialOnboardingStep;
|
|
34
|
+
fieldInput?: FormChatFieldInput;
|
|
35
|
+
fieldOptions?: FormChatListOption[];
|
|
36
|
+
selectedOption?: FormChatListOption;
|
|
37
|
+
quickReplies?: string[];
|
|
38
|
+
summary?: SocialOnboardingSummary;
|
|
39
|
+
activeField?: string;
|
|
40
|
+
privacySelection?: SocialVisibility | null;
|
|
41
|
+
privacyOptions?: SocialVisibility[];
|
|
42
|
+
isLoading?: boolean;
|
|
43
|
+
error?: FormChatApiError | null;
|
|
44
|
+
editInteraction?: FormChatEditInteraction;
|
|
45
|
+
editingFieldLabel?: string;
|
|
46
|
+
editableFieldOptions?: FormChatEditableFieldOption[];
|
|
47
|
+
userAvatarUrl?: string;
|
|
48
|
+
confirmLabel?: string;
|
|
49
|
+
onSendMessage: (message: string, options?: FormChatSendOptions) => void;
|
|
50
|
+
onSelectOption?: (selection: FormChatSelectionPayload) => void;
|
|
51
|
+
onPrivacyChange: (value: SocialVisibility) => void;
|
|
52
|
+
onConfirm?: () => void;
|
|
53
|
+
onEdit?: () => void;
|
|
54
|
+
onEditField?: (fieldKey: string) => void;
|
|
55
|
+
onCancelEdit?: () => void;
|
|
56
|
+
onRetry?: () => void;
|
|
57
|
+
onReset?: () => void;
|
|
58
|
+
onBack?: () => void;
|
|
59
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { SocialOnboardingSummary } from "./SocialOnboardingPage.types";
|
|
3
|
+
type SocialOnboardingSummaryCardProps = {
|
|
4
|
+
summary: SocialOnboardingSummary;
|
|
5
|
+
confirmLabel?: string;
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
onConfirm?: () => void;
|
|
8
|
+
onEdit?: () => void;
|
|
9
|
+
onEditField?: (fieldKey: string) => void;
|
|
10
|
+
};
|
|
11
|
+
declare const SocialOnboardingSummaryCard: React.FC<SocialOnboardingSummaryCardProps>;
|
|
12
|
+
export default SocialOnboardingSummaryCard;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type PageHeaderTab } from "../../components/PageHeader/PageHeader";
|
|
3
|
+
export type SocialPageShellProps = {
|
|
4
|
+
title: string;
|
|
5
|
+
onBack?: () => void;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
action?: React.ReactNode;
|
|
8
|
+
/** Leading control in the sticky PageHeader (e.g. peer avatar). */
|
|
9
|
+
headerStart?: React.ReactNode;
|
|
10
|
+
/** Trailing control in the sticky PageHeader toolbar. */
|
|
11
|
+
headerAction?: React.ReactNode;
|
|
12
|
+
tabs?: PageHeaderTab[];
|
|
13
|
+
selectedTab?: string;
|
|
14
|
+
onTabChange?: (value: string) => void;
|
|
15
|
+
/**
|
|
16
|
+
* Content column width — same tokens as manager pages (`HomePage`, lists).
|
|
17
|
+
* Default `md` matches PageHeader toolbar and `Container maxWidth="md"`.
|
|
18
|
+
*/
|
|
19
|
+
maxWidth?: "sm" | "md" | false;
|
|
20
|
+
/** @deprecated Social light surfaces are white; kept for API compatibility. */
|
|
21
|
+
atmosphere?: boolean;
|
|
22
|
+
stickyFooter?: boolean;
|
|
23
|
+
/** Flush content to edges (timeline rows supply their own px). Default true. */
|
|
24
|
+
flush?: boolean;
|
|
25
|
+
/** Skip PageHeader (custom chrome, e.g. Social home). */
|
|
26
|
+
hideHeader?: boolean;
|
|
27
|
+
};
|
|
28
|
+
declare const SocialPageShell: React.FC<SocialPageShellProps>;
|
|
29
|
+
export default SocialPageShell;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type SocialProfile, type SocialVisibility } from "../../../components/social";
|
|
3
|
+
export type SocialPrivacySettingsValues = {
|
|
4
|
+
profileVisibility: SocialVisibility;
|
|
5
|
+
traditionVisible: boolean;
|
|
6
|
+
locationVisible: boolean;
|
|
7
|
+
experiencesVisible: boolean;
|
|
8
|
+
connectionsVisible: boolean;
|
|
9
|
+
activityVisible: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type SocialPrivacySettingsPageProps = {
|
|
12
|
+
profile: SocialProfile;
|
|
13
|
+
submitting?: boolean;
|
|
14
|
+
onSubmit: (values: SocialPrivacySettingsValues) => void;
|
|
15
|
+
onBack?: () => void;
|
|
16
|
+
};
|
|
17
|
+
declare const SocialPrivacySettingsPage: React.FC<SocialPrivacySettingsPageProps>;
|
|
18
|
+
export default SocialPrivacySettingsPage;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type Experience, type ExperienceComment, type ExperienceCommentSubmitMeta, type ExperienceReactionType, type Question, type QuestionAnswer } from "../../../components/social";
|
|
3
|
+
export type SocialSavedTab = "all" | "experiences" | "questions";
|
|
4
|
+
export type SocialSavedPageProps = {
|
|
5
|
+
experiences?: Experience[];
|
|
6
|
+
questions?: Question[];
|
|
7
|
+
viewerUserId?: string;
|
|
8
|
+
isLoading?: boolean;
|
|
9
|
+
questionsLoading?: boolean;
|
|
10
|
+
error?: string;
|
|
11
|
+
questionsError?: string;
|
|
12
|
+
hasNextPage?: boolean;
|
|
13
|
+
questionsHasNextPage?: boolean;
|
|
14
|
+
isFetchingNextPage?: boolean;
|
|
15
|
+
questionsFetchingNextPage?: boolean;
|
|
16
|
+
alsoExperiencedLoadingId?: string | null;
|
|
17
|
+
activeTab?: SocialSavedTab;
|
|
18
|
+
onTabChange?: (tab: SocialSavedTab) => void;
|
|
19
|
+
onBack?: () => void;
|
|
20
|
+
onRetry?: () => void;
|
|
21
|
+
onRetryQuestions?: () => void;
|
|
22
|
+
onLoadMore?: () => void | Promise<void>;
|
|
23
|
+
onLoadMoreQuestions?: () => void | Promise<void>;
|
|
24
|
+
onOpenExperience?: (id: string) => void;
|
|
25
|
+
onOpenQuestion?: (id: string) => void;
|
|
26
|
+
onOpenQuestionAnswers?: (id: string) => void;
|
|
27
|
+
onAlsoExperienced?: (id: string) => void;
|
|
28
|
+
onReactionToggle?: (id: string, type: ExperienceReactionType) => void;
|
|
29
|
+
onShareExperience?: (id: string) => void;
|
|
30
|
+
onCommentExperience?: (id: string) => void;
|
|
31
|
+
onBookmarkExperience?: (id: string) => void;
|
|
32
|
+
onBookmarkQuestion?: (id: string) => void;
|
|
33
|
+
onShareQuestion?: (id: string) => void;
|
|
34
|
+
onReactionToggleQuestion?: (id: string, type: ExperienceReactionType) => void;
|
|
35
|
+
onOpenPerson?: (userId: string, username?: string) => void;
|
|
36
|
+
comments?: ExperienceComment[];
|
|
37
|
+
commentsCount?: number;
|
|
38
|
+
commentsLoading?: boolean;
|
|
39
|
+
commentsFetchingMore?: boolean;
|
|
40
|
+
commentsHasMore?: boolean;
|
|
41
|
+
commentsSubmitting?: boolean;
|
|
42
|
+
commentsError?: string | null;
|
|
43
|
+
onLoadMoreComments?: () => void;
|
|
44
|
+
onLoadMoreReplies?: (rootCommentId: string) => void | Promise<void>;
|
|
45
|
+
onSubmitComment?: (body: string, meta?: ExperienceCommentSubmitMeta) => void | Promise<void>;
|
|
46
|
+
onToggleCommentLike?: (comment: ExperienceComment) => void;
|
|
47
|
+
onCloseComments?: () => void;
|
|
48
|
+
onRetryComments?: () => void;
|
|
49
|
+
answers?: QuestionAnswer[];
|
|
50
|
+
answersCount?: number;
|
|
51
|
+
answersLoading?: boolean;
|
|
52
|
+
answersSubmitting?: boolean;
|
|
53
|
+
answersError?: string | null;
|
|
54
|
+
onSubmitAnswer?: (content: string) => void | Promise<void>;
|
|
55
|
+
onCloseAnswers?: () => void;
|
|
56
|
+
onRetryAnswers?: () => void;
|
|
57
|
+
};
|
|
58
|
+
declare const SocialSavedPage: React.FC<SocialSavedPageProps>;
|
|
59
|
+
export default SocialSavedPage;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export { default as SocialHomePage } from "./SocialHomePage/SocialHomePage";
|
|
2
|
+
export type { SocialHomePageProps, SocialHomeTab, } from "./SocialHomePage/SocialHomePage";
|
|
3
|
+
export { default as SocialOnboardingPage } from "./SocialOnboardingPage/SocialOnboardingPage";
|
|
4
|
+
export type { SocialOnboardingInitialValues, SocialOnboardingPageProps, SocialOnboardingStep, SocialOnboardingSummary, SocialOnboardingValues, } from "./SocialOnboardingPage/SocialOnboardingPage";
|
|
5
|
+
export { SOCIAL_ONBOARDING_STEP_LABELS, SOCIAL_ONBOARDING_STEP_ORDER, SocialOnboardingValuesSchema, } from "./SocialOnboardingPage/SocialOnboardingPage";
|
|
6
|
+
export { default as SocialOnboardingIntro } from "./SocialOnboardingIntro/SocialOnboardingIntro";
|
|
7
|
+
export { SOCIAL_ONBOARDING_INTRO_STEPS, type SocialOnboardingIntroProps, type SocialOnboardingIntroStep, } from "./SocialOnboardingIntro/SocialOnboardingIntro";
|
|
8
|
+
export { default as CreateExperiencePage } from "./CreateExperiencePage/CreateExperiencePage";
|
|
9
|
+
export type { CreateExperiencePageProps, CreateExperienceStep, CreateExperienceSummary, CreateExperienceValues, } from "./CreateExperiencePage/CreateExperiencePage";
|
|
10
|
+
export { CREATE_EXPERIENCE_STEP_LABELS, CREATE_EXPERIENCE_STEP_ORDER, CreateExperienceValuesSchema, } from "./CreateExperiencePage/CreateExperiencePage";
|
|
11
|
+
export { default as ExperienceDetailPage } from "./ExperienceDetailPage/ExperienceDetailPage";
|
|
12
|
+
export type { ExperienceDetailPageProps } from "./ExperienceDetailPage/ExperienceDetailPage";
|
|
13
|
+
export { default as QuestionsPage } from "./QuestionsPage/QuestionsPage";
|
|
14
|
+
export type { QuestionsPageProps } from "./QuestionsPage/QuestionsPage";
|
|
15
|
+
export { default as CreateQuestionPage } from "./CreateQuestionPage/CreateQuestionPage";
|
|
16
|
+
export type { CreateQuestionPageProps, CreateQuestionStep, CreateQuestionSummary, CreateQuestionValues, } from "./CreateQuestionPage/CreateQuestionPage";
|
|
17
|
+
export { CREATE_QUESTION_STEP_LABELS, CREATE_QUESTION_STEP_ORDER, CreateQuestionValuesSchema, } from "./CreateQuestionPage/CreateQuestionPage";
|
|
18
|
+
export { default as QuestionDetailPage } from "./QuestionDetailPage/QuestionDetailPage";
|
|
19
|
+
export type { QuestionDetailPageProps } from "./QuestionDetailPage/QuestionDetailPage";
|
|
20
|
+
export { default as SimilarPage } from "./SimilarPage/SimilarPage";
|
|
21
|
+
export type { SimilarPageProps } from "./SimilarPage/SimilarPage";
|
|
22
|
+
export { default as JourneyProfilePage } from "./JourneyProfilePage/JourneyProfilePage";
|
|
23
|
+
export type { JourneyProfilePageProps } from "./JourneyProfilePage/JourneyProfilePage";
|
|
24
|
+
export { default as EditJourneyPage } from "./EditJourneyPage/EditJourneyPage";
|
|
25
|
+
export type { EditJourneyPageProps, EditJourneyValues, UnsplashBannerPhoto, } from "./EditJourneyPage/EditJourneyPage";
|
|
26
|
+
export { default as SocialDiscoverPage } from "./SocialDiscoverPage/SocialDiscoverPage";
|
|
27
|
+
export type { SocialDiscoverPageProps, SocialDiscoverTab, } from "./SocialDiscoverPage/SocialDiscoverPage";
|
|
28
|
+
export { default as SocialSavedPage } from "./SocialSavedPage/SocialSavedPage";
|
|
29
|
+
export type { SocialSavedPageProps, SocialSavedTab, } from "./SocialSavedPage/SocialSavedPage";
|
|
30
|
+
export { default as SocialConnectionsPage } from "./SocialConnectionsPage/SocialConnectionsPage";
|
|
31
|
+
export type { SocialConnectionsPageProps, SocialConnectionsTab, SocialConnectionListPerson, } from "./SocialConnectionsPage/SocialConnectionsPage";
|
|
32
|
+
export { default as SocialNotificationsPage } from "./SocialNotificationsPage/SocialNotificationsPage";
|
|
33
|
+
export type { SocialNotificationsPageProps, SocialNotificationItem, } from "./SocialNotificationsPage/SocialNotificationsPage";
|
|
34
|
+
export { default as SocialPrivacySettingsPage } from "./SocialPrivacySettingsPage/SocialPrivacySettingsPage";
|
|
35
|
+
export type { SocialPrivacySettingsPageProps, SocialPrivacySettingsValues, } from "./SocialPrivacySettingsPage/SocialPrivacySettingsPage";
|
|
36
|
+
export { default as PublicSocialPreviewPage } from "./PublicSocialPreviewPage/PublicSocialPreviewPage";
|
|
37
|
+
export type { PublicSocialPreviewPageProps, PublicSocialPreviewData, } from "./PublicSocialPreviewPage/PublicSocialPreviewPage.types";
|
|
38
|
+
export { PublicSocialPreviewDataSchema, PublicExperiencePreviewSchema, PublicQuestionPreviewSchema, PublicProfilePreviewSchema, } from "./PublicSocialPreviewPage/PublicSocialPreviewPage.types";
|
|
39
|
+
export { default as SocialInboxPage } from "./SocialInboxPage/SocialInboxPage";
|
|
40
|
+
export type { SocialInboxPageProps } from "./SocialInboxPage/SocialInboxPage";
|
|
41
|
+
export { default as SocialConversationPage } from "./SocialConversationPage/SocialConversationPage";
|
|
42
|
+
export type { SocialConversationPageProps } from "./SocialConversationPage/SocialConversationPage";
|
|
@@ -127,4 +127,5 @@ export { default as useMyPermissionsPage } from "./MyPermissionsPage/useMyPermis
|
|
|
127
127
|
export type { MyPermissionsPageProps, MyPermissionsDetailed, DetailedPermission, RoleInfo, PermissionStats, } from "./MyPermissionsPage/MyPermissionsPage.types";
|
|
128
128
|
export { MyPermissionsPagePropsSchema, MyPermissionsDetailedSchema, DetailedPermissionSchema, RoleInfoSchema, PermissionStatsSchema, } from "./MyPermissionsPage/MyPermissionsPage.types";
|
|
129
129
|
export * from "./InviteLandingPage";
|
|
130
|
+
export * from "./Social";
|
|
130
131
|
export * from "./QrLandingPage";
|
package/package.json
CHANGED