@srimandir/daily-live-puja 1.3.0 → 1.4.1
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/StoreSection/StoreSection.d.ts +8 -0
- package/dist/components/SubscriptionSection/SubscriptionSection.d.ts +9 -4
- package/dist/components/VideoPage/VideoPage.d.ts +6 -0
- package/dist/daily-live-puja.js +1441 -1290
- package/dist/daily-live-puja.js.map +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useSubscriptionSectionData.d.ts +86 -0
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -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
|
-
/**
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
|
|
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
|
}
|
|
@@ -35,6 +35,12 @@ interface VideoPageProps {
|
|
|
35
35
|
showSubscription?: boolean;
|
|
36
36
|
/** Called when subscription CTA is tapped */
|
|
37
37
|
onSubscribe?: () => void;
|
|
38
|
+
/** Store id used for subscription onboarding API */
|
|
39
|
+
subscriptionStoreId?: string;
|
|
40
|
+
/** Inventory id used for subscription onboarding API */
|
|
41
|
+
subscriptionInventoryId?: string;
|
|
42
|
+
/** Onboarding type used for subscription onboarding API */
|
|
43
|
+
subscriptionOnboardingType?: string;
|
|
38
44
|
}
|
|
39
45
|
export declare const VideoPage: React.FC<VideoPageProps>;
|
|
40
46
|
export {};
|