@srimandir/daily-live-puja 1.58.13 → 1.58.15

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,6 +4,7 @@ export interface HeaderProps {
4
4
  daysRemaining?: number;
5
5
  isLoggedIn?: boolean;
6
6
  isSubscribed?: boolean;
7
+ isTransparent?: boolean;
7
8
  onJoinClick?: () => void;
8
9
  }
9
10
  export declare const Header: React.FC<HeaderProps>;
@@ -0,0 +1,6 @@
1
+ interface SubtitleProps {
2
+ text: string;
3
+ subtext: string;
4
+ }
5
+ export declare function Subtitle({ text, subtext }: SubtitleProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,5 @@
1
+ interface TitleProps {
2
+ text: string;
3
+ }
4
+ export declare function Title({ text }: TitleProps): import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -1,2 +1,25 @@
1
- export { LandingPage } from './LandingPage';
2
- export type { LandingPageProps } from './LandingPage';
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 {};
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ export declare const StatSection: React.FC<{
3
+ onImpression?: (sectionName: string) => void;
4
+ }>;
@@ -5,6 +5,10 @@ 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
+ }
8
12
  export interface SubscriptionSectionProps {
9
13
  /** Backend store id for onboarding API */
10
14
  storeId?: string;
@@ -15,7 +19,9 @@ export interface SubscriptionSectionProps {
15
19
  /** Host API base instance (axios-like) */
16
20
  apiBaseInstance?: SubscriptionApiBaseInstanceLike;
17
21
  /** Called when the CTA button is tapped */
18
- onSubscribe?: (context: SubscriptionCtaContext) => void;
22
+ onSubscribe?: (context: SubscriptionCtaContext, meta: SubscriptionClickMeta) => void;
23
+ /** Distinguishes default subscription banner vs blocker banner */
24
+ bannerType?: SubscriptionBannerType;
19
25
  /** Optional extra bottom padding in px to slightly increase banner height */
20
26
  extraBottomPaddingPx?: number;
21
27
  }
@@ -2,6 +2,7 @@ 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';
5
6
  import { ContentEnvironment, DlpOfferingCard } from '../../types/videoPage.types';
6
7
  declare global {
7
8
  interface Window {
@@ -62,7 +63,9 @@ interface VideoPageProps {
62
63
  /** Show Subscription tab (D6+ and not yet subscribed). */
63
64
  showSubscription?: boolean;
64
65
  /** Called when subscription CTA is tapped */
65
- onSubscribe?: (context: SubscriptionCtaContext) => void;
66
+ onSubscribe?: (context: SubscriptionCtaContext, meta: {
67
+ bannerType: "default" | "blocker";
68
+ }) => void;
66
69
  /** Called when logged-out sticky join CTA is tapped. */
67
70
  onJoinClick?: () => void;
68
71
  /** Called when logged-out header Join Free CTA is tapped. */
@@ -110,6 +113,7 @@ interface VideoPageProps {
110
113
  subscription_status?: string;
111
114
  subscription_amount?: number;
112
115
  subscription_count?: number;
116
+ video_orientation?: "portrait" | "landscape";
113
117
  store_id?: string;
114
118
  screen_name?: string;
115
119
  source?: string;
@@ -120,9 +124,12 @@ interface VideoPageProps {
120
124
  total_days_attended?: number;
121
125
  service_name?: string;
122
126
  successful_subscription_order?: number;
127
+ "Trial End Date"?: string;
123
128
  count_of_offering_sku?: number;
124
129
  dlp_status?: "Live" | "Playback";
125
130
  }) => void;
131
+ /** Emits exit analytics action for host tracking. */
132
+ onExitAnalytics?: (action: DlpExitAnalyticsAction) => void;
126
133
  }
127
134
  export declare const VideoPage: React.FC<VideoPageProps>;
128
135
  export {};