@srimandir/daily-live-puja 1.58.0 → 1.58.3
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/components/Header/Header.d.ts +0 -1
- package/dist/components/LandingPage/LandingPage.d.ts +30 -0
- package/dist/components/LandingPage/index.d.ts +2 -25
- package/dist/components/SubscriptionSection/SubscriptionSection.d.ts +1 -7
- package/dist/components/VideoPage/VideoPage.d.ts +1 -10
- package/dist/daily-live-puja.js +2659 -2493
- package/dist/daily-live-puja.js.map +1 -1
- package/dist/hooks/index.d.ts +0 -2
- package/dist/style.css +1 -1
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/streakHelpers.d.ts +0 -3
- package/package.json +2 -2
- package/dist/components/LandingPage/Subtitle.d.ts +0 -6
- package/dist/components/LandingPage/Title.d.ts +0 -5
- package/dist/components/LoggedOutSections/StatSection.d.ts +0 -4
- package/dist/hooks/useDlpExitAnalytics.d.ts +0 -20
- package/dist/hooks/useLiveYoutubeRedirect.d.ts +0 -9
- package/dist/hooks/useStreamStatusGuard.d.ts +0 -12
- package/dist/utils/exitAnalytics.d.ts +0 -37
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface HanumanChalisaAnalytics {
|
|
3
|
+
trackLandingPageViewed?(): void;
|
|
4
|
+
trackNameClicked?(): void;
|
|
5
|
+
trackNameFilled?(): void;
|
|
6
|
+
trackPhoneClicked?(): void;
|
|
7
|
+
trackPhoneFilled?(): void;
|
|
8
|
+
trackSubmitClicked?(): void;
|
|
9
|
+
trackSuccessPageViewed?(params: {
|
|
10
|
+
email?: string;
|
|
11
|
+
phone?: string;
|
|
12
|
+
}): void;
|
|
13
|
+
trackwhatsappBtnClicked?(): void;
|
|
14
|
+
}
|
|
15
|
+
export interface LandingPageProps {
|
|
16
|
+
/** Target date and time for the countdown timer */
|
|
17
|
+
targetDate: Date | string;
|
|
18
|
+
/** Callback when user submits the form */
|
|
19
|
+
onSubmit?: (data: {
|
|
20
|
+
name: string;
|
|
21
|
+
fullPhoneNumber: string;
|
|
22
|
+
}) => void;
|
|
23
|
+
/** If true, uses +1 country code; if false, uses +91 */
|
|
24
|
+
isGlobal?: boolean;
|
|
25
|
+
/** Analytics callbacks for tracking events */
|
|
26
|
+
analytics?: HanumanChalisaAnalytics;
|
|
27
|
+
/** Toast function to show notifications (type: 'success' | 'error' | 'warning', message: string) */
|
|
28
|
+
showToast?: (type: 'success' | 'error' | 'warning' | 'info', message: string) => void;
|
|
29
|
+
}
|
|
30
|
+
export declare const LandingPage: React.FC<LandingPageProps>;
|
|
@@ -1,25 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
interface LandingPageProps {
|
|
4
|
-
containerRef: React.RefObject<HTMLDivElement>;
|
|
5
|
-
stableStreamStatus: Exclude<LiveStreamStatus, "LOADING"> | null;
|
|
6
|
-
daysRemaining: number;
|
|
7
|
-
isSubscribed: boolean;
|
|
8
|
-
onJoinClick?: () => void;
|
|
9
|
-
onHeaderJoinClick?: () => void;
|
|
10
|
-
statusProbeId: string;
|
|
11
|
-
loggedOutVideoSrc: string;
|
|
12
|
-
videoDlpStatus: "Live" | "Playback";
|
|
13
|
-
onVideoAction?: (params: {
|
|
14
|
-
sectionName: "Live Video/Playback" | "Sampler Video" | "Video Player";
|
|
15
|
-
action: "Autoplay" | "Play" | "Pause";
|
|
16
|
-
dlpStatus?: "Live" | "Playback";
|
|
17
|
-
}) => void;
|
|
18
|
-
onSectionImpression?: (sectionName: string) => void;
|
|
19
|
-
onCarouselSwipe?: (params: {
|
|
20
|
-
sectionName: string;
|
|
21
|
-
elementPosition?: number;
|
|
22
|
-
}) => void;
|
|
23
|
-
}
|
|
24
|
-
export declare function LandingPage({ containerRef, stableStreamStatus, daysRemaining, isSubscribed, onJoinClick, onHeaderJoinClick, onSectionImpression, onCarouselSwipe, }: LandingPageProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
export {};
|
|
1
|
+
export { LandingPage } from './LandingPage';
|
|
2
|
+
export type { LandingPageProps } from './LandingPage';
|
|
@@ -5,10 +5,6 @@ export interface SubscriptionCtaContext {
|
|
|
5
5
|
trialSubscriptionData: TrialSubscriptionData | null;
|
|
6
6
|
onboardingData: OnboardingData | null;
|
|
7
7
|
}
|
|
8
|
-
export type SubscriptionBannerType = "default" | "blocker";
|
|
9
|
-
export interface SubscriptionClickMeta {
|
|
10
|
-
bannerType: SubscriptionBannerType;
|
|
11
|
-
}
|
|
12
8
|
export interface SubscriptionSectionProps {
|
|
13
9
|
/** Backend store id for onboarding API */
|
|
14
10
|
storeId?: string;
|
|
@@ -19,9 +15,7 @@ export interface SubscriptionSectionProps {
|
|
|
19
15
|
/** Host API base instance (axios-like) */
|
|
20
16
|
apiBaseInstance?: SubscriptionApiBaseInstanceLike;
|
|
21
17
|
/** Called when the CTA button is tapped */
|
|
22
|
-
onSubscribe?: (context: SubscriptionCtaContext
|
|
23
|
-
/** Distinguishes default subscription banner vs blocker banner */
|
|
24
|
-
bannerType?: SubscriptionBannerType;
|
|
18
|
+
onSubscribe?: (context: SubscriptionCtaContext) => void;
|
|
25
19
|
/** Optional extra bottom padding in px to slightly increase banner height */
|
|
26
20
|
extraBottomPaddingPx?: number;
|
|
27
21
|
}
|
|
@@ -2,7 +2,6 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { BannerOfferingItem } from './offerings';
|
|
3
3
|
import { StoreCard, StoreSectionA4BApiLike } from '../StoreSection';
|
|
4
4
|
import { SubscriptionCtaContext } from '../SubscriptionSection';
|
|
5
|
-
import { DlpExitAnalyticsAction } from '../../utils/exitAnalytics';
|
|
6
5
|
import { ContentEnvironment, DlpOfferingCard } from '../../types/videoPage.types';
|
|
7
6
|
declare global {
|
|
8
7
|
interface Window {
|
|
@@ -63,9 +62,7 @@ interface VideoPageProps {
|
|
|
63
62
|
/** Show Subscription tab (D6+ and not yet subscribed). */
|
|
64
63
|
showSubscription?: boolean;
|
|
65
64
|
/** Called when subscription CTA is tapped */
|
|
66
|
-
onSubscribe?: (context: SubscriptionCtaContext
|
|
67
|
-
bannerType: "default" | "blocker";
|
|
68
|
-
}) => void;
|
|
65
|
+
onSubscribe?: (context: SubscriptionCtaContext) => void;
|
|
69
66
|
/** Called when logged-out sticky join CTA is tapped. */
|
|
70
67
|
onJoinClick?: () => void;
|
|
71
68
|
/** Called when logged-out header Join Free CTA is tapped. */
|
|
@@ -92,8 +89,6 @@ interface VideoPageProps {
|
|
|
92
89
|
action: "Autoplay" | "Play" | "Pause";
|
|
93
90
|
dlpStatus?: "Live" | "Playback";
|
|
94
91
|
}) => void;
|
|
95
|
-
/** Redirect user to YouTube watch page after login when stream is live. */
|
|
96
|
-
redirectToYoutubeOnLiveAfterLogin?: boolean;
|
|
97
92
|
/** Called when user interacts with the embedded chat input area. */
|
|
98
93
|
onChatInputInteraction?: (params: {
|
|
99
94
|
inputValue?: string;
|
|
@@ -115,7 +110,6 @@ interface VideoPageProps {
|
|
|
115
110
|
subscription_status?: string;
|
|
116
111
|
subscription_amount?: number;
|
|
117
112
|
subscription_count?: number;
|
|
118
|
-
video_orientation?: "portrait" | "landscape";
|
|
119
113
|
store_id?: string;
|
|
120
114
|
screen_name?: string;
|
|
121
115
|
source?: string;
|
|
@@ -126,12 +120,9 @@ interface VideoPageProps {
|
|
|
126
120
|
total_days_attended?: number;
|
|
127
121
|
service_name?: string;
|
|
128
122
|
successful_subscription_order?: number;
|
|
129
|
-
"Trial End Date"?: string;
|
|
130
123
|
count_of_offering_sku?: number;
|
|
131
124
|
dlp_status?: "Live" | "Playback";
|
|
132
125
|
}) => void;
|
|
133
|
-
/** Emits exit analytics action for host tracking. */
|
|
134
|
-
onExitAnalytics?: (action: DlpExitAnalyticsAction) => void;
|
|
135
126
|
}
|
|
136
127
|
export declare const VideoPage: React.FC<VideoPageProps>;
|
|
137
128
|
export {};
|