@srimandir/daily-live-puja 1.4.0 → 1.4.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.
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const DevoteesSaySection: React.FC;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const HighlightsStripSection: React.FC;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const LoggedOutSections: React.FC;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const WhatYouGetSection: React.FC;
@@ -0,0 +1 @@
1
+ export { LoggedOutSections } from './LoggedOutSections';
@@ -16,6 +16,14 @@ export interface StoreCard {
16
16
  href: string;
17
17
  }
18
18
  export interface StoreSectionA4BApiLike {
19
+ apiInstance?: {
20
+ get?: <T = unknown>(url: string, config?: {
21
+ params?: Record<string, unknown>;
22
+ headers?: Record<string, string>;
23
+ }) => Promise<{
24
+ data: T;
25
+ }>;
26
+ };
19
27
  pujaWeb?: {
20
28
  getFeedPageV2?: (params: {
21
29
  page: string;
@@ -1,9 +1,14 @@
1
1
  import { default as React } from 'react';
2
+ import { SubscriptionApiBaseInstanceLike } from '../../hooks/useSubscriptionSectionData';
2
3
  export interface SubscriptionSectionProps {
3
- /** Weekly price to display (default ₹21) */
4
- price?: number;
5
- /** Crossed-out original price (default ₹51) */
6
- originalPrice?: number;
4
+ /** Backend store id for onboarding API */
5
+ storeId?: string;
6
+ /** Backend inventory id for onboarding API */
7
+ inventoryId?: string;
8
+ /** Onboarding type query param (default sm_dlp_premium) */
9
+ onboardingType?: string;
10
+ /** Host API base instance (axios-like) */
11
+ apiBaseInstance?: SubscriptionApiBaseInstanceLike;
7
12
  /** Called when the CTA button is tapped */
8
13
  onSubscribe?: () => void;
9
14
  }
@@ -19,6 +19,8 @@ interface VideoPageProps {
19
19
  attendedDays?: number[];
20
20
  /** Current day in the 7-day journey (1-indexed). */
21
21
  currentDay?: number;
22
+ /** Controls logged-in vs logged-out sections below video. */
23
+ isLoggedIn?: boolean;
22
24
  /** Called when a store card is tapped. */
23
25
  onStoreCardClick?: (card: StoreCard) => void;
24
26
  /** Host app API client (same instance pattern as web app pages). */
@@ -35,6 +37,12 @@ interface VideoPageProps {
35
37
  showSubscription?: boolean;
36
38
  /** Called when subscription CTA is tapped */
37
39
  onSubscribe?: () => void;
40
+ /** Store id used for subscription onboarding API */
41
+ subscriptionStoreId?: string;
42
+ /** Inventory id used for subscription onboarding API */
43
+ subscriptionInventoryId?: string;
44
+ /** Onboarding type used for subscription onboarding API */
45
+ subscriptionOnboardingType?: string;
38
46
  }
39
47
  export declare const VideoPage: React.FC<VideoPageProps>;
40
48
  export {};
@@ -3,3 +3,5 @@ export type { ExpectationItem } from './expectations';
3
3
  export { ISD_COUNTRY_OPTIONS } from './countrycode';
4
4
  export { SHARE_TITLE, SHARE_SUBTITLE, SHARE_CTA_LABEL, STREAK_SECTION_TITLE, STREAK_ATTENDED_ICON_URL, STREAK_FOOTER, STORE_SECTION_TITLE, STORE_SECTION_ARIA_LABEL, SUBSCRIPTION_BADGE, SUBSCRIPTION_TITLE, SUBSCRIPTION_SUBTITLE, SUBSCRIPTION_FEATURE_1, SUBSCRIPTION_FEATURE_2, SUBSCRIPTION_OM_IMAGE_URL, SUBSCRIPTION_PRICE_PERIOD, SUBSCRIPTION_CTA_LABEL, SUBSCRIPTION_FOOTER_NOTE, } from './dlp.constants';
5
5
  export { BLOG_ADMIN_HOSTS, DEMO_STORE_CARDS, DLP_QUERY_STRING, FALLBACK_OFFERINGS, FALLBACK_PUJA_CARD, STREAM_STATUS_INITIAL_RECHECK_DELAY_MS, STREAM_STATUS_NON_LIVE_CONFIRMATION_DELAY_MS, STREAM_STATUS_POLL_INTERVAL_MS, YT_STATUS_PROBE_PLAYER_VARS, } from './videoPage.constants';
6
+ export { LOGGED_OUT_HIGHLIGHTS, LOGGED_OUT_BENEFITS, LOGGED_OUT_TESTIMONIALS, } from './loggedOutSections.constants';
7
+ export type { LoggedOutHighlightItem, LoggedOutBenefitItem, LoggedOutTestimonialItem, } from './loggedOutSections.constants';
@@ -0,0 +1,22 @@
1
+ export interface LoggedOutHighlightItem {
2
+ id: string;
3
+ label: string;
4
+ }
5
+ export interface LoggedOutBenefitItem {
6
+ id: string;
7
+ iconUrl: string;
8
+ title: string;
9
+ description: string;
10
+ }
11
+ export interface LoggedOutTestimonialItem {
12
+ id: string;
13
+ name: string;
14
+ location: string;
15
+ initial: string;
16
+ rating: number;
17
+ quote: string;
18
+ ctaLabel: string;
19
+ }
20
+ export declare const LOGGED_OUT_HIGHLIGHTS: LoggedOutHighlightItem[];
21
+ export declare const LOGGED_OUT_BENEFITS: LoggedOutBenefitItem[];
22
+ export declare const LOGGED_OUT_TESTIMONIALS: LoggedOutTestimonialItem[];