@srimandir/daily-live-puja 1.58.13 → 1.58.14
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 +1 -0
- package/dist/components/LandingPage/Subtitle.d.ts +6 -0
- package/dist/components/LandingPage/Title.d.ts +5 -0
- package/dist/components/LandingPage/index.d.ts +25 -2
- package/dist/components/LoggedOutSections/StatSection.d.ts +4 -0
- package/dist/components/SubscriptionSection/SubscriptionSection.d.ts +7 -1
- package/dist/components/VideoPage/VideoPage.d.ts +8 -1
- package/dist/daily-live-puja.js +2543 -2739
- package/dist/daily-live-puja.js.map +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useDlpExitAnalytics.d.ts +20 -0
- package/dist/hooks/useStreamStatusGuard.d.ts +12 -0
- package/dist/style.css +1 -1
- package/dist/utils/exitAnalytics.d.ts +37 -0
- package/dist/utils/index.d.ts +1 -2
- package/dist/utils/streakHelpers.d.ts +3 -0
- package/package.json +2 -2
- package/dist/components/LandingPage/LandingPage.d.ts +0 -30
|
@@ -1,2 +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 {};
|
|
@@ -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
|
|
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 {};
|