@srimandir/hanuman-chalisa 1.5.0 → 1.5.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/package.json +3 -3
- package/dist/components/CountdownTimer/CountdownTimer.d.ts +0 -7
- package/dist/components/CountdownTimer/index.d.ts +0 -1
- package/dist/components/LandingPage/LandingPage.d.ts +0 -30
- package/dist/components/LandingPage/index.d.ts +0 -2
- package/dist/components/SuccessPage/SuccessPage.d.ts +0 -31
- package/dist/components/SuccessPage/index.d.ts +0 -1
- package/dist/constants/expectations.d.ts +0 -9
- package/dist/constants/index.d.ts +0 -2
- package/dist/context/AppContext.d.ts +0 -17
- package/dist/context/index.d.ts +0 -1
- package/dist/dev/main.d.ts +0 -0
- package/dist/hanuman-chalisa.js +0 -1044
- package/dist/hanuman-chalisa.js.map +0 -1
- package/dist/i18n/I18nContext.d.ts +0 -13
- package/dist/i18n/index.d.ts +0 -3
- package/dist/i18n/translations.d.ts +0 -4
- package/dist/i18n/translations.en.d.ts +0 -46
- package/dist/i18n/translations.hi.d.ts +0 -46
- package/dist/index.d.ts +0 -6
- package/dist/style.css +0 -1
- package/dist/styles.d.ts +0 -0
- package/dist/styles.js +0 -2
- package/dist/styles.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@srimandir/hanuman-chalisa",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "React NPM package for Hanuman Chalisa",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"react-dom": "^18.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@srimandir/astrology-common": "
|
|
45
|
+
"@srimandir/astrology-common": "2.4.1",
|
|
46
46
|
"@types/react": "^18.2.79",
|
|
47
47
|
"@types/react-dom": "^18.2.25",
|
|
48
48
|
"@vitejs/plugin-react": "^4.3.4",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"react"
|
|
63
63
|
],
|
|
64
64
|
"license": "MIT",
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "2c4f6fef7776075a3bdee9ee0e3069e44ef6d695"
|
|
66
66
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { CountdownTimer } from './CountdownTimer';
|
|
@@ -1,30 +0,0 @@
|
|
|
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
|
-
trackHomePageBtnClicked?(): 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
|
-
whatsappNumber: 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>;
|
|
@@ -1,31 +0,0 @@
|
|
|
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
|
-
trackHomePageBtnClicked?(): 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 {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SuccessPage } from './SuccessPage';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { default as React, ReactNode } from 'react';
|
|
2
|
-
interface UserData {
|
|
3
|
-
name: string;
|
|
4
|
-
whatsappNumber: 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 {};
|
package/dist/context/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { AppContextProvider, useAppContext } from './AppContext';
|
package/dist/dev/main.d.ts
DELETED
|
File without changes
|