@marcwelti/mw-core 0.7.0 → 0.8.0

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.
@@ -0,0 +1,71 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { Language } from '../../lib/translations/account-settings.mjs';
3
+
4
+ interface SecurityTabProps {
5
+ language?: Language;
6
+ onUpdateEmail?: (newEmail: string, password: string) => Promise<void>;
7
+ onUpdatePassword?: (currentPassword: string, newPassword: string) => Promise<void>;
8
+ onRefreshUser?: () => Promise<void>;
9
+ }
10
+ declare function SecurityTab({ language, onUpdateEmail, onUpdatePassword, onRefreshUser, }: SecurityTabProps): react_jsx_runtime.JSX.Element;
11
+
12
+ interface PersonalDataTabProps {
13
+ language?: Language;
14
+ showCertificateData?: boolean;
15
+ showAmicusId?: boolean;
16
+ }
17
+ declare function PersonalDataTab({ language, showCertificateData, showAmicusId, }: PersonalDataTabProps): react_jsx_runtime.JSX.Element;
18
+
19
+ interface VerificationsTabProps {
20
+ language?: Language;
21
+ showPhone?: boolean;
22
+ showKYC?: boolean;
23
+ academyApiUrl?: string;
24
+ }
25
+ declare function VerificationsTab({ language, showPhone, showKYC, academyApiUrl, }: VerificationsTabProps): react_jsx_runtime.JSX.Element;
26
+
27
+ interface DangerZoneTabProps {
28
+ language?: Language;
29
+ onDeleteAccount?: (password?: string) => Promise<boolean | void>;
30
+ }
31
+ declare function DangerZoneTab({ language, onDeleteAccount, }: DangerZoneTabProps): react_jsx_runtime.JSX.Element;
32
+
33
+ interface AmicusIdInputProps {
34
+ onComplete?: () => void;
35
+ onCancel?: () => void;
36
+ language?: Language;
37
+ }
38
+ declare function AmicusIdInput({ onComplete, onCancel, language }: AmicusIdInputProps): react_jsx_runtime.JSX.Element;
39
+
40
+ interface CertificatePersonalDataProps {
41
+ onComplete?: () => void;
42
+ onCancel?: () => void;
43
+ language?: Language;
44
+ }
45
+ declare function CertificatePersonalData({ onComplete, onCancel, language }: CertificatePersonalDataProps): react_jsx_runtime.JSX.Element;
46
+
47
+ interface EmailVerificationProps {
48
+ onComplete?: () => void;
49
+ onCancel?: () => void;
50
+ language?: Language;
51
+ }
52
+ declare function EmailVerification({ onComplete, onCancel, language }: EmailVerificationProps): react_jsx_runtime.JSX.Element;
53
+
54
+ interface PhoneVerificationProps {
55
+ onComplete?: () => void;
56
+ onCancel?: () => void;
57
+ forcePhoneInput?: boolean;
58
+ academyApiUrl?: string;
59
+ language?: Language;
60
+ }
61
+ declare function PhoneVerification({ onComplete, onCancel, forcePhoneInput, academyApiUrl, language }: PhoneVerificationProps): react_jsx_runtime.JSX.Element;
62
+
63
+ interface KYCVerificationProps {
64
+ onComplete?: () => void;
65
+ onCancel?: () => void;
66
+ academyApiUrl?: string;
67
+ language?: Language;
68
+ }
69
+ declare function KYCVerification({ onComplete, onCancel, academyApiUrl, language }: KYCVerificationProps): react_jsx_runtime.JSX.Element | null;
70
+
71
+ export { AmicusIdInput, CertificatePersonalData, DangerZoneTab, EmailVerification, KYCVerification, PersonalDataTab, PhoneVerification, SecurityTab, VerificationsTab };
@@ -0,0 +1,71 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { Language } from '../../lib/translations/account-settings.js';
3
+
4
+ interface SecurityTabProps {
5
+ language?: Language;
6
+ onUpdateEmail?: (newEmail: string, password: string) => Promise<void>;
7
+ onUpdatePassword?: (currentPassword: string, newPassword: string) => Promise<void>;
8
+ onRefreshUser?: () => Promise<void>;
9
+ }
10
+ declare function SecurityTab({ language, onUpdateEmail, onUpdatePassword, onRefreshUser, }: SecurityTabProps): react_jsx_runtime.JSX.Element;
11
+
12
+ interface PersonalDataTabProps {
13
+ language?: Language;
14
+ showCertificateData?: boolean;
15
+ showAmicusId?: boolean;
16
+ }
17
+ declare function PersonalDataTab({ language, showCertificateData, showAmicusId, }: PersonalDataTabProps): react_jsx_runtime.JSX.Element;
18
+
19
+ interface VerificationsTabProps {
20
+ language?: Language;
21
+ showPhone?: boolean;
22
+ showKYC?: boolean;
23
+ academyApiUrl?: string;
24
+ }
25
+ declare function VerificationsTab({ language, showPhone, showKYC, academyApiUrl, }: VerificationsTabProps): react_jsx_runtime.JSX.Element;
26
+
27
+ interface DangerZoneTabProps {
28
+ language?: Language;
29
+ onDeleteAccount?: (password?: string) => Promise<boolean | void>;
30
+ }
31
+ declare function DangerZoneTab({ language, onDeleteAccount, }: DangerZoneTabProps): react_jsx_runtime.JSX.Element;
32
+
33
+ interface AmicusIdInputProps {
34
+ onComplete?: () => void;
35
+ onCancel?: () => void;
36
+ language?: Language;
37
+ }
38
+ declare function AmicusIdInput({ onComplete, onCancel, language }: AmicusIdInputProps): react_jsx_runtime.JSX.Element;
39
+
40
+ interface CertificatePersonalDataProps {
41
+ onComplete?: () => void;
42
+ onCancel?: () => void;
43
+ language?: Language;
44
+ }
45
+ declare function CertificatePersonalData({ onComplete, onCancel, language }: CertificatePersonalDataProps): react_jsx_runtime.JSX.Element;
46
+
47
+ interface EmailVerificationProps {
48
+ onComplete?: () => void;
49
+ onCancel?: () => void;
50
+ language?: Language;
51
+ }
52
+ declare function EmailVerification({ onComplete, onCancel, language }: EmailVerificationProps): react_jsx_runtime.JSX.Element;
53
+
54
+ interface PhoneVerificationProps {
55
+ onComplete?: () => void;
56
+ onCancel?: () => void;
57
+ forcePhoneInput?: boolean;
58
+ academyApiUrl?: string;
59
+ language?: Language;
60
+ }
61
+ declare function PhoneVerification({ onComplete, onCancel, forcePhoneInput, academyApiUrl, language }: PhoneVerificationProps): react_jsx_runtime.JSX.Element;
62
+
63
+ interface KYCVerificationProps {
64
+ onComplete?: () => void;
65
+ onCancel?: () => void;
66
+ academyApiUrl?: string;
67
+ language?: Language;
68
+ }
69
+ declare function KYCVerification({ onComplete, onCancel, academyApiUrl, language }: KYCVerificationProps): react_jsx_runtime.JSX.Element | null;
70
+
71
+ export { AmicusIdInput, CertificatePersonalData, DangerZoneTab, EmailVerification, KYCVerification, PersonalDataTab, PhoneVerification, SecurityTab, VerificationsTab };