@srimandir/hanuman-chalisa 1.5.26 → 1.6.0
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/VideoPage/VideoPage.d.ts +9 -0
- package/dist/components/VideoPage/index.d.ts +1 -0
- package/dist/components/VideoPage/offerings.d.ts +14 -0
- package/dist/components/VideoPage/payment.d.ts +35 -0
- package/dist/hanuman-chalisa.js +869 -537
- package/dist/hanuman-chalisa.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BannerOfferingItem } from './offerings';
|
|
3
|
+
interface VideoPageProps {
|
|
4
|
+
videoId: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
onOfferingClick?: (item: BannerOfferingItem) => void | Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
export declare const VideoPage: React.FC<VideoPageProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { VideoPage } from './VideoPage';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const KUNDLI_GENERATOR_INVENTORY_ID: string;
|
|
2
|
+
export interface BannerOfferingItem {
|
|
3
|
+
inventory_id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
price: number;
|
|
6
|
+
image_url: string;
|
|
7
|
+
original_price?: number;
|
|
8
|
+
discount?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface BannerItemGroup {
|
|
11
|
+
afterTime: string;
|
|
12
|
+
items: BannerOfferingItem[];
|
|
13
|
+
}
|
|
14
|
+
export declare const BANNER_ITEMS: BannerItemGroup[];
|
|
@@ -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;
|