@srimandir/daily-live-puja 1.49.0 → 1.49.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/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 -8
- package/dist/daily-live-puja.js +2744 -2548
- package/dist/daily-live-puja.js.map +1 -1
- package/dist/hooks/index.d.ts +0 -1
- 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/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. */
|
|
@@ -113,7 +110,6 @@ interface VideoPageProps {
|
|
|
113
110
|
subscription_status?: string;
|
|
114
111
|
subscription_amount?: number;
|
|
115
112
|
subscription_count?: number;
|
|
116
|
-
video_orientation?: "portrait" | "landscape";
|
|
117
113
|
store_id?: string;
|
|
118
114
|
screen_name?: string;
|
|
119
115
|
source?: string;
|
|
@@ -124,12 +120,9 @@ interface VideoPageProps {
|
|
|
124
120
|
total_days_attended?: number;
|
|
125
121
|
service_name?: string;
|
|
126
122
|
successful_subscription_order?: number;
|
|
127
|
-
"Trial End Date"?: string;
|
|
128
123
|
count_of_offering_sku?: number;
|
|
129
124
|
dlp_status?: "Live" | "Playback";
|
|
130
125
|
}) => void;
|
|
131
|
-
/** Emits exit analytics action for host tracking. */
|
|
132
|
-
onExitAnalytics?: (action: DlpExitAnalyticsAction) => void;
|
|
133
126
|
}
|
|
134
127
|
export declare const VideoPage: React.FC<VideoPageProps>;
|
|
135
128
|
export {};
|