@srimandir/daily-live-puja 1.4.6 → 1.4.8
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/api/index.d.ts +1 -0
- package/dist/api/streakApi.d.ts +7 -0
- package/dist/components/StreakSection/StreakSection.d.ts +2 -0
- package/dist/components/SubscriptionSection/SubscriptionSection.d.ts +2 -0
- package/dist/constants/dlp.constants.d.ts +1 -0
- package/dist/constants/index.d.ts +1 -1
- package/dist/daily-live-puja.js +1737 -1439
- package/dist/daily-live-puja.js.map +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useDailyAttendanceStreak.d.ts +20 -0
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/streak.types.d.ts +37 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/streakHelpers.d.ts +7 -0
- package/package.json +3 -3
package/dist/api/index.d.ts
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DailyAttendanceStreakApiResponse, StreakApiBaseInstanceLike } from '../types/streak.types';
|
|
2
|
+
export declare const createStreakApiClient: (apiBaseInstance?: StreakApiBaseInstanceLike) => {
|
|
3
|
+
getDailyAttendanceStreak: () => Promise<{
|
|
4
|
+
payload: DailyAttendanceStreakApiResponse;
|
|
5
|
+
isMock: boolean;
|
|
6
|
+
}>;
|
|
7
|
+
};
|
|
@@ -6,5 +6,7 @@ export interface StreakSectionProps {
|
|
|
6
6
|
totalDays?: number;
|
|
7
7
|
/** Current day number in the journey (1-indexed) */
|
|
8
8
|
currentDay: number;
|
|
9
|
+
/** If true, renders empty/locked state instead of streak trail. */
|
|
10
|
+
isInactive?: boolean;
|
|
9
11
|
}
|
|
10
12
|
export declare const StreakSection: React.FC<StreakSectionProps>;
|
|
@@ -11,5 +11,7 @@ export interface SubscriptionSectionProps {
|
|
|
11
11
|
apiBaseInstance?: SubscriptionApiBaseInstanceLike;
|
|
12
12
|
/** Called when the CTA button is tapped */
|
|
13
13
|
onSubscribe?: () => void;
|
|
14
|
+
/** Optional extra bottom padding in px to slightly increase banner height */
|
|
15
|
+
extraBottomPaddingPx?: number;
|
|
14
16
|
}
|
|
15
17
|
export declare const SubscriptionSection: React.FC<SubscriptionSectionProps>;
|
|
@@ -3,6 +3,7 @@ export declare const SHARE_SUBTITLE = "Invite family to join daily Puja. Bring c
|
|
|
3
3
|
export declare const SHARE_CTA_LABEL = "Share on WhatsApp";
|
|
4
4
|
export declare const STREAK_SECTION_TITLE = "Your 7-Day Journey";
|
|
5
5
|
export declare const STREAK_ATTENDED_ICON_URL = "https://srm-cdn.a4b.io/yoda/1776256998292.svg";
|
|
6
|
+
export declare const STREAK_MISSED_ICON_URL = "https://srm-cdn.a4b.io/yoda/1776411247834.svg";
|
|
6
7
|
export declare const STREAK_FOOTER: (attended: number, total: number) => string;
|
|
7
8
|
export declare const STORE_SECTION_TITLE = "Explore Sri Mandir";
|
|
8
9
|
export declare const STORE_SECTION_ARIA_LABEL = "Explore Sri Mandir";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { EXPECTATION_ITEMS } from './expectations';
|
|
2
2
|
export type { ExpectationItem } from './expectations';
|
|
3
3
|
export { ISD_COUNTRY_OPTIONS } from './countrycode';
|
|
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';
|
|
4
|
+
export { SHARE_TITLE, SHARE_SUBTITLE, SHARE_CTA_LABEL, STREAK_SECTION_TITLE, STREAK_ATTENDED_ICON_URL, STREAK_MISSED_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
6
|
export { LOGGED_OUT_HIGHLIGHTS, LOGGED_OUT_BENEFITS, LOGGED_OUT_TESTIMONIALS, } from './loggedOutSections.constants';
|
|
7
7
|
export type { LoggedOutHighlightItem, LoggedOutBenefitItem, LoggedOutTestimonialItem, } from './loggedOutSections.constants';
|