@neuctra/authix 1.0.3 → 1.0.4
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/authix.css +1 -1
- package/dist/neuctra-authix.es.js +4433 -3743
- package/dist/neuctra-authix.umd.js +212 -332
- package/dist/src/react/UserButton.d.ts +1 -0
- package/dist/src/react/UserProfile.d.ts +1 -0
- package/dist/src/react/components/AvatarModal.d.ts +23 -0
- package/dist/src/react/components/ChangePasswordModal.d.ts +28 -0
- package/dist/src/react/components/DeleteAccountModal.d.ts +28 -0
- package/dist/src/react/components/EmailVerificationModal.d.ts +34 -0
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface ThemeColors {
|
|
3
|
+
background: string;
|
|
4
|
+
surface: string;
|
|
5
|
+
surfaceLight: string;
|
|
6
|
+
surfaceLighter: string;
|
|
7
|
+
textPrimary: string;
|
|
8
|
+
textSecondary: string;
|
|
9
|
+
textTertiary: string;
|
|
10
|
+
accent: string;
|
|
11
|
+
accentHover: string;
|
|
12
|
+
success: string;
|
|
13
|
+
error: string;
|
|
14
|
+
border: string;
|
|
15
|
+
}
|
|
16
|
+
interface AvatarModalProps {
|
|
17
|
+
isOpen: boolean;
|
|
18
|
+
onClose: () => void;
|
|
19
|
+
onUpdate: (url: string) => Promise<boolean>;
|
|
20
|
+
colors: ThemeColors;
|
|
21
|
+
}
|
|
22
|
+
declare const AvatarModal: React.FC<AvatarModalProps>;
|
|
23
|
+
export default AvatarModal;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface ThemeColors {
|
|
3
|
+
background: string;
|
|
4
|
+
surface: string;
|
|
5
|
+
surfaceLight: string;
|
|
6
|
+
surfaceLighter: string;
|
|
7
|
+
textPrimary: string;
|
|
8
|
+
textSecondary: string;
|
|
9
|
+
textTertiary: string;
|
|
10
|
+
accent: string;
|
|
11
|
+
accentHover: string;
|
|
12
|
+
success: string;
|
|
13
|
+
error: string;
|
|
14
|
+
border: string;
|
|
15
|
+
}
|
|
16
|
+
interface ChangePasswordModalProps {
|
|
17
|
+
baseUrl: string;
|
|
18
|
+
apiKey: string;
|
|
19
|
+
appId: string;
|
|
20
|
+
isOpen: boolean;
|
|
21
|
+
onClose: () => void;
|
|
22
|
+
onSuccess: (msg: string) => void;
|
|
23
|
+
onError: (msg: string) => void;
|
|
24
|
+
userId: string;
|
|
25
|
+
colors: ThemeColors;
|
|
26
|
+
}
|
|
27
|
+
declare const ChangePasswordModal: React.FC<ChangePasswordModalProps>;
|
|
28
|
+
export default ChangePasswordModal;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
interface ThemeColors {
|
|
2
|
+
background: string;
|
|
3
|
+
surface: string;
|
|
4
|
+
surfaceLight: string;
|
|
5
|
+
surfaceLighter: string;
|
|
6
|
+
textPrimary: string;
|
|
7
|
+
textSecondary: string;
|
|
8
|
+
textTertiary: string;
|
|
9
|
+
accent: string;
|
|
10
|
+
accentHover: string;
|
|
11
|
+
success: string;
|
|
12
|
+
error: string;
|
|
13
|
+
border: string;
|
|
14
|
+
}
|
|
15
|
+
interface DeleteAccountModalProps {
|
|
16
|
+
baseUrl: string;
|
|
17
|
+
apiKey: string;
|
|
18
|
+
appId: string;
|
|
19
|
+
isOpen: boolean;
|
|
20
|
+
onClose: () => void;
|
|
21
|
+
onSuccess: (msg: string) => void;
|
|
22
|
+
onError: (msg: string) => void;
|
|
23
|
+
userId: string;
|
|
24
|
+
token: string;
|
|
25
|
+
colors: ThemeColors;
|
|
26
|
+
}
|
|
27
|
+
declare const DeleteAccountModal: React.FC<DeleteAccountModalProps>;
|
|
28
|
+
export default DeleteAccountModal;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UserInfo } from '../../api/login.js';
|
|
3
|
+
interface EmailVerificationModalProps {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
onVerify: (e: React.FormEvent) => Promise<void>;
|
|
7
|
+
onSendOTP: () => Promise<void>;
|
|
8
|
+
verifyFormData: {
|
|
9
|
+
email: string;
|
|
10
|
+
otp: string;
|
|
11
|
+
appId: string;
|
|
12
|
+
};
|
|
13
|
+
setVerifyFormData: React.Dispatch<React.SetStateAction<{
|
|
14
|
+
email: string;
|
|
15
|
+
otp: string;
|
|
16
|
+
appId: string;
|
|
17
|
+
}>>;
|
|
18
|
+
otpSent: boolean;
|
|
19
|
+
verifying: boolean;
|
|
20
|
+
user?: UserInfo | null;
|
|
21
|
+
colors: {
|
|
22
|
+
surface: string;
|
|
23
|
+
border: string;
|
|
24
|
+
textPrimary: string;
|
|
25
|
+
textSecondary: string;
|
|
26
|
+
textTertiary: string;
|
|
27
|
+
surfaceLight: string;
|
|
28
|
+
accent: string;
|
|
29
|
+
accentHover: string;
|
|
30
|
+
};
|
|
31
|
+
darkMode: boolean;
|
|
32
|
+
}
|
|
33
|
+
export declare const EmailVerificationModal: React.FC<EmailVerificationModalProps>;
|
|
34
|
+
export {};
|