@srimandir/daily-live-puja 1.0.5
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/CountdownTimer/CountdownTimer.d.ts +7 -0
- package/dist/components/CountdownTimer/index.d.ts +1 -0
- package/dist/components/LandingPage/LandingPage.d.ts +30 -0
- package/dist/components/LandingPage/index.d.ts +2 -0
- package/dist/components/SuccessPage/SuccessPage.d.ts +31 -0
- package/dist/components/SuccessPage/index.d.ts +1 -0
- package/dist/components/VideoPage/VideoPage.d.ts +17 -0
- package/dist/components/VideoPage/index.d.ts +1 -0
- package/dist/components/VideoPage/offerings.d.ts +25 -0
- package/dist/components/VideoPage/payment.d.ts +35 -0
- package/dist/constants/countrycode.d.ts +16 -0
- package/dist/constants/expectations.d.ts +9 -0
- package/dist/constants/index.d.ts +3 -0
- package/dist/constants/whatsapp.constants.d.ts +1 -0
- package/dist/context/AppContext.d.ts +17 -0
- package/dist/context/index.d.ts +1 -0
- package/dist/daily-live-puja.js +1840 -0
- package/dist/daily-live-puja.js.map +1 -0
- package/dist/dev/main.d.ts +0 -0
- package/dist/i18n/I18nContext.d.ts +13 -0
- package/dist/i18n/index.d.ts +3 -0
- package/dist/i18n/translations.d.ts +4 -0
- package/dist/i18n/translations.en.d.ts +47 -0
- package/dist/i18n/translations.hi.d.ts +47 -0
- package/dist/index.d.ts +9 -0
- package/dist/style.css +1 -0
- package/dist/styles.d.ts +0 -0
- package/dist/styles.js +2 -0
- package/dist/styles.js.map +1 -0
- package/package.json +65 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CountdownTimer } from './CountdownTimer';
|
|
@@ -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>;
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
name?: string;
|
|
11
|
+
email?: string;
|
|
12
|
+
phone?: string;
|
|
13
|
+
}): void;
|
|
14
|
+
trackWhatsappBtnClicked?(): void;
|
|
15
|
+
}
|
|
16
|
+
interface SuccessPageProps {
|
|
17
|
+
userName?: string;
|
|
18
|
+
eventName?: string;
|
|
19
|
+
eventDate?: string;
|
|
20
|
+
eventTime?: string;
|
|
21
|
+
onWhatsAppClick?: () => void;
|
|
22
|
+
redirectSeconds?: number;
|
|
23
|
+
/** Analytics callbacks for tracking events */
|
|
24
|
+
analytics?: HanumanChalisaAnalytics;
|
|
25
|
+
/** Toast function to show notifications (type: 'success' | 'error' | 'warning', message: string) */
|
|
26
|
+
showToast?: (type: 'success' | 'error' | 'warning' | 'info', message: string) => void;
|
|
27
|
+
/** Disable automatic redirect (for debugging) */
|
|
28
|
+
disableRedirect?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export declare const SuccessPage: React.FC<SuccessPageProps>;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SuccessPage } from './SuccessPage';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BannerOfferingItem } from './offerings';
|
|
3
|
+
interface VideoPageProps {
|
|
4
|
+
videoId: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
chatHost?: string;
|
|
7
|
+
isGlobal?: boolean;
|
|
8
|
+
onOfferingClick?: (item?: BannerOfferingItem | any) => void | Promise<void>;
|
|
9
|
+
onPujaImpression?: (params: {
|
|
10
|
+
orientation: "vertical" | "horizontal";
|
|
11
|
+
}) => void;
|
|
12
|
+
onPujaClick?: (params: {
|
|
13
|
+
orientation: "vertical" | "horizontal";
|
|
14
|
+
}) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const VideoPage: React.FC<VideoPageProps>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { VideoPage } from './VideoPage';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const OFFERING_RAZORPAY_LINKS: {
|
|
2
|
+
readonly sindoor: "https://rzp.io/rzp/Pb7xgDj";
|
|
3
|
+
readonly peda: "https://rzp.io/rzp/LfL86khp";
|
|
4
|
+
readonly sindoorPeda: "https://rzp.io/rzp/NM9b4lx";
|
|
5
|
+
};
|
|
6
|
+
export interface BannerOfferingItem {
|
|
7
|
+
inventory_id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
price: number;
|
|
10
|
+
razorpay_link: string;
|
|
11
|
+
image_url: string;
|
|
12
|
+
original_price?: string;
|
|
13
|
+
discount?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface BannerItemGroup {
|
|
16
|
+
afterTime: string;
|
|
17
|
+
items: BannerOfferingItem[];
|
|
18
|
+
}
|
|
19
|
+
export declare const BANNER_ITEMS: BannerItemGroup[];
|
|
20
|
+
/**
|
|
21
|
+
* Puja banner image URL.
|
|
22
|
+
* TODO: Replace with actual puja banner image URL.
|
|
23
|
+
* The same image is used on the Hanuman Chalisa page and in offerings.
|
|
24
|
+
*/
|
|
25
|
+
export declare const PUJA_BANNER_IMAGE_URL = "";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface RazorpayOptions {
|
|
2
|
+
key: string;
|
|
3
|
+
amount: number;
|
|
4
|
+
currency: string;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
image?: string;
|
|
8
|
+
order_id?: string;
|
|
9
|
+
handler: (response: RazorpayResponse) => void;
|
|
10
|
+
prefill?: {
|
|
11
|
+
name?: string;
|
|
12
|
+
email?: string;
|
|
13
|
+
contact?: string;
|
|
14
|
+
};
|
|
15
|
+
theme?: {
|
|
16
|
+
color?: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export interface RazorpayResponse {
|
|
20
|
+
razorpay_payment_id: string;
|
|
21
|
+
razorpay_order_id?: string;
|
|
22
|
+
razorpay_signature?: string;
|
|
23
|
+
}
|
|
24
|
+
declare global {
|
|
25
|
+
interface Window {
|
|
26
|
+
Razorpay: any;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export declare const initiateRazorpayPayment: (options: RazorpayOptions) => void;
|
|
30
|
+
export declare const createOfferingPayment: (offering: {
|
|
31
|
+
id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
price: number;
|
|
34
|
+
image: string;
|
|
35
|
+
}, onSuccess: (response: RazorpayResponse) => void, onError?: (error: any) => void) => void;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const ISD_COUNTRY_OPTIONS: readonly [{
|
|
2
|
+
readonly code: "+1";
|
|
3
|
+
readonly country: "USA";
|
|
4
|
+
}, {
|
|
5
|
+
readonly code: "+44";
|
|
6
|
+
readonly country: "UK";
|
|
7
|
+
}, {
|
|
8
|
+
readonly code: "+61";
|
|
9
|
+
readonly country: "AUS";
|
|
10
|
+
}, {
|
|
11
|
+
readonly code: "+91";
|
|
12
|
+
readonly country: "IN";
|
|
13
|
+
}, {
|
|
14
|
+
readonly code: "+971";
|
|
15
|
+
readonly country: "UAE";
|
|
16
|
+
}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const WHATSAPP_URL: string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
interface UserData {
|
|
3
|
+
name: string;
|
|
4
|
+
fullPhoneNumber: string;
|
|
5
|
+
}
|
|
6
|
+
interface AppContextValue {
|
|
7
|
+
userData: UserData | null;
|
|
8
|
+
setUserData: (data: UserData) => void;
|
|
9
|
+
showSuccess: boolean;
|
|
10
|
+
setShowSuccess: (show: boolean) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const useAppContext: () => AppContextValue;
|
|
13
|
+
interface AppContextProviderProps {
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare const AppContextProvider: React.FC<AppContextProviderProps>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AppContextProvider, useAppContext } from './AppContext';
|