funuicss 3.6.18 → 3.6.20
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/css/fun.css +510 -317
- package/package.json +1 -2
- package/ui/button/Button.js +56 -39
- package/ui/carousel/Carousel.d.ts +2 -0
- package/ui/carousel/Carousel.js +11 -11
- package/ui/input/Input.js +283 -157
- package/ui/theme/theme.d.ts +16 -6
- package/ui/theme/theme.js +96 -82
- package/utils/componentUtils.d.ts +9 -6
- package/utils/componentUtils.js +42 -170
- package/js/firebase/Auth.d.ts +0 -191
- package/js/firebase/Auth.js +0 -746
- package/js/firebase/FireStore.d.ts +0 -54
- package/js/firebase/FireStore.js +0 -285
- package/utils/FireStore.d.ts +0 -10
- package/utils/FireStore.js +0 -273
- package/utils/Firebase.d.ts +0 -2
- package/utils/Firebase.js +0 -16
package/js/firebase/Auth.d.ts
DELETED
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
import { Auth, User, UserCredential } from 'firebase/auth';
|
|
2
|
-
interface AuthResponse {
|
|
3
|
-
user: User;
|
|
4
|
-
credential: UserCredential;
|
|
5
|
-
isNewUser?: boolean;
|
|
6
|
-
}
|
|
7
|
-
interface AuthStateCallback {
|
|
8
|
-
(user: User | null): void;
|
|
9
|
-
}
|
|
10
|
-
type ProviderType = 'google' | 'facebook' | 'github' | 'twitter' | 'microsoft' | 'apple';
|
|
11
|
-
/**
|
|
12
|
-
* Firebase Authentication Operations
|
|
13
|
-
* Users must pass their Auth instance to each method
|
|
14
|
-
*/
|
|
15
|
-
export declare const FunFireAuth: {
|
|
16
|
-
/**
|
|
17
|
-
* 📧 Sign in with email and password
|
|
18
|
-
* @param auth - Firebase Auth instance
|
|
19
|
-
* @param email - User email
|
|
20
|
-
* @param password - User password
|
|
21
|
-
*/
|
|
22
|
-
signInWithEmail: (auth: Auth, email: string, password: string) => Promise<AuthResponse>;
|
|
23
|
-
/**
|
|
24
|
-
* ✍️ Create account with email and password
|
|
25
|
-
* @param auth - Firebase Auth instance
|
|
26
|
-
* @param email - User email
|
|
27
|
-
* @param password - User password
|
|
28
|
-
* @param displayName - Optional display name
|
|
29
|
-
* @param photoURL - Optional photo URL
|
|
30
|
-
*/
|
|
31
|
-
createAccount: (auth: Auth, email: string, password: string, displayName?: string, photoURL?: string) => Promise<AuthResponse>;
|
|
32
|
-
/**
|
|
33
|
-
* 🔐 Sign in with Google (Popup)
|
|
34
|
-
* @param auth - Firebase Auth instance
|
|
35
|
-
*/
|
|
36
|
-
signInWithGoogle: (auth: Auth) => Promise<AuthResponse>;
|
|
37
|
-
/**
|
|
38
|
-
* 🔐 Sign in with Facebook (Popup)
|
|
39
|
-
* @param auth - Firebase Auth instance
|
|
40
|
-
*/
|
|
41
|
-
signInWithFacebook: (auth: Auth) => Promise<AuthResponse>;
|
|
42
|
-
/**
|
|
43
|
-
* 🔐 Sign in with GitHub (Popup)
|
|
44
|
-
* @param auth - Firebase Auth instance
|
|
45
|
-
*/
|
|
46
|
-
signInWithGithub: (auth: Auth) => Promise<AuthResponse>;
|
|
47
|
-
/**
|
|
48
|
-
* 🔐 Sign in with Twitter (Popup)
|
|
49
|
-
* @param auth - Firebase Auth instance
|
|
50
|
-
*/
|
|
51
|
-
signInWithTwitter: (auth: Auth) => Promise<AuthResponse>;
|
|
52
|
-
/**
|
|
53
|
-
* 🔐 Sign in with Microsoft (Popup)
|
|
54
|
-
* @param auth - Firebase Auth instance
|
|
55
|
-
*/
|
|
56
|
-
signInWithMicrosoft: (auth: Auth) => Promise<AuthResponse>;
|
|
57
|
-
/**
|
|
58
|
-
* 🔐 Sign in with Apple (Popup)
|
|
59
|
-
* @param auth - Firebase Auth instance
|
|
60
|
-
*/
|
|
61
|
-
signInWithApple: (auth: Auth) => Promise<AuthResponse>;
|
|
62
|
-
/**
|
|
63
|
-
* 🔐 Generic provider sign in with redirect (better for mobile)
|
|
64
|
-
* @param auth - Firebase Auth instance
|
|
65
|
-
* @param providerType - Provider type
|
|
66
|
-
*/
|
|
67
|
-
signInWithRedirect: (auth: Auth, providerType: ProviderType) => Promise<void>;
|
|
68
|
-
/**
|
|
69
|
-
* 🚪 Sign out
|
|
70
|
-
* @param auth - Firebase Auth instance
|
|
71
|
-
*/
|
|
72
|
-
signOut: (auth: Auth) => Promise<void>;
|
|
73
|
-
/**
|
|
74
|
-
* 🔄 Send password reset email
|
|
75
|
-
* @param auth - Firebase Auth instance
|
|
76
|
-
* @param email - User email
|
|
77
|
-
* @param actionCodeSettings - Optional action code settings for custom redirect
|
|
78
|
-
*/
|
|
79
|
-
resetPassword: (auth: Auth, email: string, actionCodeSettings?: {
|
|
80
|
-
url: string;
|
|
81
|
-
handleCodeInApp?: boolean;
|
|
82
|
-
}) => Promise<void>;
|
|
83
|
-
/**
|
|
84
|
-
* ✉️ Send email verification
|
|
85
|
-
* @param auth - Firebase Auth instance
|
|
86
|
-
* @param actionCodeSettings - Optional action code settings for custom redirect
|
|
87
|
-
*/
|
|
88
|
-
sendVerificationEmail: (auth: Auth, actionCodeSettings?: {
|
|
89
|
-
url: string;
|
|
90
|
-
handleCodeInApp?: boolean;
|
|
91
|
-
}) => Promise<void>;
|
|
92
|
-
/**
|
|
93
|
-
* 🔑 Update user password
|
|
94
|
-
* @param auth - Firebase Auth instance
|
|
95
|
-
* @param newPassword - New password
|
|
96
|
-
*/
|
|
97
|
-
updatePassword: (auth: Auth, newPassword: string) => Promise<void>;
|
|
98
|
-
/**
|
|
99
|
-
* 📧 Update user email
|
|
100
|
-
* @param auth - Firebase Auth instance
|
|
101
|
-
* @param newEmail - New email
|
|
102
|
-
*/
|
|
103
|
-
updateEmail: (auth: Auth, newEmail: string) => Promise<void>;
|
|
104
|
-
/**
|
|
105
|
-
* 👤 Update user profile
|
|
106
|
-
* @param auth - Firebase Auth instance
|
|
107
|
-
* @param displayName - Display name
|
|
108
|
-
* @param photoURL - Photo URL
|
|
109
|
-
*/
|
|
110
|
-
updateProfile: (auth: Auth, displayName?: string, photoURL?: string) => Promise<void>;
|
|
111
|
-
/**
|
|
112
|
-
* 🔐 Reauthenticate user (required before sensitive operations)
|
|
113
|
-
* @param auth - Firebase Auth instance
|
|
114
|
-
* @param password - Current password
|
|
115
|
-
*/
|
|
116
|
-
reauthenticate: (auth: Auth, password: string) => Promise<UserCredential>;
|
|
117
|
-
/**
|
|
118
|
-
* ❌ Delete user account
|
|
119
|
-
* @param auth - Firebase Auth instance
|
|
120
|
-
*/
|
|
121
|
-
deleteAccount: (auth: Auth) => Promise<void>;
|
|
122
|
-
/**
|
|
123
|
-
* 👁️ Listen to auth state changes
|
|
124
|
-
* @param auth - Firebase Auth instance
|
|
125
|
-
* @param callback - Callback function that receives user or null
|
|
126
|
-
* @returns Unsubscribe function
|
|
127
|
-
*/
|
|
128
|
-
onAuthStateChanged: (auth: Auth, callback: AuthStateCallback) => (() => void);
|
|
129
|
-
/**
|
|
130
|
-
* 🔍 Get current user
|
|
131
|
-
* @param auth - Firebase Auth instance
|
|
132
|
-
* @returns Current user or null
|
|
133
|
-
*/
|
|
134
|
-
getCurrentUser: (auth: Auth) => User | null;
|
|
135
|
-
/**
|
|
136
|
-
* 🔍 Check if email exists
|
|
137
|
-
* @param auth - Firebase Auth instance
|
|
138
|
-
* @param email - Email to check
|
|
139
|
-
* @returns Array of sign-in methods for the email
|
|
140
|
-
*/
|
|
141
|
-
checkEmailExists: (auth: Auth, email: string) => Promise<string[]>;
|
|
142
|
-
/**
|
|
143
|
-
* ✅ Apply action code (email verification, password reset)
|
|
144
|
-
* @param auth - Firebase Auth instance
|
|
145
|
-
* @param code - Action code from email link
|
|
146
|
-
*/
|
|
147
|
-
applyActionCode: (auth: Auth, code: string) => Promise<void>;
|
|
148
|
-
/**
|
|
149
|
-
* 🔍 Verify password reset code
|
|
150
|
-
* @param auth - Firebase Auth instance
|
|
151
|
-
* @param code - Password reset code
|
|
152
|
-
* @returns Email associated with the code
|
|
153
|
-
*/
|
|
154
|
-
verifyPasswordResetCode: (auth: Auth, code: string) => Promise<string>;
|
|
155
|
-
/**
|
|
156
|
-
* ✅ Confirm password reset
|
|
157
|
-
* @param auth - Firebase Auth instance
|
|
158
|
-
* @param code - Password reset code
|
|
159
|
-
* @param newPassword - New password
|
|
160
|
-
*/
|
|
161
|
-
confirmPasswordReset: (auth: Auth, code: string, newPassword: string) => Promise<void>;
|
|
162
|
-
/**
|
|
163
|
-
* 🔗 Link account with Google
|
|
164
|
-
* @param auth - Firebase Auth instance
|
|
165
|
-
*/
|
|
166
|
-
linkWithGoogle: (auth: Auth) => Promise<UserCredential>;
|
|
167
|
-
/**
|
|
168
|
-
* 🔓 Unlink provider from account
|
|
169
|
-
* @param auth - Firebase Auth instance
|
|
170
|
-
* @param providerId - Provider ID to unlink (e.g., 'google.com', 'password')
|
|
171
|
-
*/
|
|
172
|
-
unlinkProvider: (auth: Auth, providerId: string) => Promise<User>;
|
|
173
|
-
/**
|
|
174
|
-
* 📱 Get ID token (for backend verification)
|
|
175
|
-
* @param auth - Firebase Auth instance
|
|
176
|
-
* @param forceRefresh - Force token refresh
|
|
177
|
-
*/
|
|
178
|
-
getIdToken: (auth: Auth, forceRefresh?: boolean) => Promise<string>;
|
|
179
|
-
};
|
|
180
|
-
export declare const AuthErrorCodes: {
|
|
181
|
-
EMAIL_EXISTS: string;
|
|
182
|
-
INVALID_EMAIL: string;
|
|
183
|
-
WEAK_PASSWORD: string;
|
|
184
|
-
USER_NOT_FOUND: string;
|
|
185
|
-
WRONG_PASSWORD: string;
|
|
186
|
-
TOO_MANY_REQUESTS: string;
|
|
187
|
-
NETWORK_ERROR: string;
|
|
188
|
-
POPUP_CLOSED: string;
|
|
189
|
-
REQUIRES_RECENT_LOGIN: string;
|
|
190
|
-
};
|
|
191
|
-
export type { AuthResponse, AuthStateCallback, ProviderType };
|