@srimandir/daily-live-puja 1.53.1 → 1.58.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.
@@ -4,7 +4,6 @@ export interface HeaderProps {
4
4
  daysRemaining?: number;
5
5
  isLoggedIn?: boolean;
6
6
  isSubscribed?: boolean;
7
- isTransparent?: boolean;
8
7
  onJoinClick?: () => void;
9
8
  }
10
9
  export declare const Header: React.FC<HeaderProps>;
@@ -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
- import { default as React } from 'react';
2
- import { LiveStreamStatus } from '../../types/videoPage.types';
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, meta: SubscriptionClickMeta) => void;
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, meta: {
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 {};