@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@srimandir/hanuman-chalisa",
3
- "version": "1.5.0",
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": "1.4.0",
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": "01083db21b9ead87b6299fa3bb2edee9b47a1026"
65
+ "gitHead": "2c4f6fef7776075a3bdee9ee0e3069e44ef6d695"
66
66
  }
@@ -1,7 +0,0 @@
1
- import { default as React } from 'react';
2
- interface CountdownTimerProps {
3
- /** Target date and time for the countdown */
4
- targetDate: Date | string;
5
- }
6
- export declare const CountdownTimer: React.FC<CountdownTimerProps>;
7
- export {};
@@ -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,2 +0,0 @@
1
- export { LandingPage } from './LandingPage';
2
- export type { LandingPageProps } from './LandingPage';
@@ -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,9 +0,0 @@
1
- /**
2
- * What to Expect section items
3
- */
4
- export interface ExpectationItem {
5
- icon: string;
6
- titleKey: string;
7
- descKey: string;
8
- }
9
- export declare const EXPECTATION_ITEMS: ExpectationItem[];
@@ -1,2 +0,0 @@
1
- export { EXPECTATION_ITEMS } from './expectations';
2
- export type { ExpectationItem } from './expectations';
@@ -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 {};
@@ -1 +0,0 @@
1
- export { AppContextProvider, useAppContext } from './AppContext';
File without changes