@yourgoods/ui-smart 0.1.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.
Files changed (36) hide show
  1. package/dist/ProfileEmailDialog-_CmzDM2p.js +777 -0
  2. package/dist/ProfilePasswordDialog-DTLqgHqm.js +268 -0
  3. package/dist/ProfilePhoneDialog-D4EwUMe2.js +737 -0
  4. package/dist/components/PEditUserContact/PEditUserContact.vue.d.ts +44 -0
  5. package/dist/components/PEditUserContact/ProfileDialogs/DialogManager.vue.d.ts +24 -0
  6. package/dist/components/PEditUserContact/ProfileDialogs/DialogSegments/AddNewEmailContent.vue.d.ts +60 -0
  7. package/dist/components/PEditUserContact/ProfileDialogs/DialogSegments/AddNewPasswordContent.vue.d.ts +25 -0
  8. package/dist/components/PEditUserContact/ProfileDialogs/DialogSegments/AddNewPhoneContent.vue.d.ts +63 -0
  9. package/dist/components/PEditUserContact/ProfileDialogs/DialogSegments/NewEmailContent.vue.d.ts +64 -0
  10. package/dist/components/PEditUserContact/ProfileDialogs/DialogSegments/NewPhoneContent.vue.d.ts +64 -0
  11. package/dist/components/PEditUserContact/ProfileDialogs/DialogSegments/OldEmailContent.vue.d.ts +55 -0
  12. package/dist/components/PEditUserContact/ProfileDialogs/DialogSegments/OldPhoneContent.vue.d.ts +55 -0
  13. package/dist/components/PEditUserContact/ProfileDialogs/DialogSegments/ThrottlerTimer.vue.d.ts +45 -0
  14. package/dist/components/PEditUserContact/ProfileDialogs/ProfileEmailDialog.vue.d.ts +55 -0
  15. package/dist/components/PEditUserContact/ProfileDialogs/ProfilePasswordDialog.vue.d.ts +36 -0
  16. package/dist/components/PEditUserContact/ProfileDialogs/ProfilePhoneDialog.vue.d.ts +89 -0
  17. package/dist/components/PEditUserContact/ProfileOverlayLoading.vue.d.ts +2 -0
  18. package/dist/components/PEditUserContact/index.vue.d.ts +36 -0
  19. package/dist/components/PEditUserContact/types.d.ts +29 -0
  20. package/dist/components/index.d.ts +1 -0
  21. package/dist/composables/profile/useDialogManager.d.ts +21 -0
  22. package/dist/composables/profile/useModeFlow.d.ts +7 -0
  23. package/dist/composables/profile/usePasswordRateLimitToast.d.ts +9 -0
  24. package/dist/composables/profile/useRateLimitToast.d.ts +9 -0
  25. package/dist/composables/profile/useThrottler.d.ts +13 -0
  26. package/dist/index-DtHlzO1x.js +570 -0
  27. package/dist/index.d.ts +1 -0
  28. package/dist/index.js +5 -0
  29. package/dist/locales/index.d.ts +130 -0
  30. package/dist/modules/api/profile/check-availability.d.ts +1 -0
  31. package/dist/modules/api/profile/me.d.ts +19 -0
  32. package/dist/modules/index.d.ts +8 -0
  33. package/dist/types/vue-shims.d.ts +5 -0
  34. package/dist/useRateLimitToast-DsEVCh0F.js +140 -0
  35. package/dist/vue-shims.d.ts +5 -0
  36. package/package.json +49 -0
@@ -0,0 +1,44 @@
1
+ import { LangFormatType, ProviderType } from './types';
2
+ import { ModeType } from '../../composables/profile/useDialogManager';
3
+ declare const _default: import('vue').DefineComponent<{
4
+ language: LangFormatType;
5
+ throttlerPrefix: string;
6
+ provider: ProviderType;
7
+ requestUrl: string;
8
+ accessToken: string;
9
+ refreshToken: string;
10
+ fields: Array<{
11
+ key: "firstName" | "lastName" | "email" | "phone" | "avatar";
12
+ label?: string;
13
+ readonly?: boolean;
14
+ type?: string;
15
+ }>;
16
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
17
+ "on-update-jwt": (flow?: "email" | "phone" | "password" | undefined, mode?: ModeType | undefined, newValue?: string | undefined) => any;
18
+ "on-password-error": (field: "email" | "phone" | "password", message: string) => any;
19
+ "open-email-dialog": (value: string, mode: ModeType) => any;
20
+ "open-phone-dialog": (value: string, mode: ModeType) => any;
21
+ "open-password-dialog": () => any;
22
+ "update-tokens": (accessToken: string, refreshToken: string) => any;
23
+ }, string, import('vue').PublicProps, Readonly<{
24
+ language: LangFormatType;
25
+ throttlerPrefix: string;
26
+ provider: ProviderType;
27
+ requestUrl: string;
28
+ accessToken: string;
29
+ refreshToken: string;
30
+ fields: Array<{
31
+ key: "firstName" | "lastName" | "email" | "phone" | "avatar";
32
+ label?: string;
33
+ readonly?: boolean;
34
+ type?: string;
35
+ }>;
36
+ }> & Readonly<{
37
+ "onOn-update-jwt"?: ((flow?: "email" | "phone" | "password" | undefined, mode?: ModeType | undefined, newValue?: string | undefined) => any) | undefined;
38
+ "onOn-password-error"?: ((field: "email" | "phone" | "password", message: string) => any) | undefined;
39
+ "onOpen-email-dialog"?: ((value: string, mode: ModeType) => any) | undefined;
40
+ "onOpen-phone-dialog"?: ((value: string, mode: ModeType) => any) | undefined;
41
+ "onOpen-password-dialog"?: (() => any) | undefined;
42
+ "onUpdate-tokens"?: ((accessToken: string, refreshToken: string) => any) | undefined;
43
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
44
+ export default _default;
@@ -0,0 +1,24 @@
1
+ import { ModeType } from '../../../composables/profile/useDialogManager';
2
+ import { EmitToastType, LangFormatType, ProviderType } from '../types';
3
+ declare const _default: import('vue').DefineComponent<{
4
+ language: LangFormatType;
5
+ provider: ProviderType;
6
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
+ "on-toast": (value: EmitToastType) => any;
8
+ "clean-input-errors": () => any;
9
+ "on-update-jwt": (flow?: "email" | "phone" | "password" | undefined, mode?: ModeType | undefined, newValue?: string | undefined) => any;
10
+ "update-email-field": (value: string) => any;
11
+ "on-password-error": (field: "email" | "phone" | "password", message: string) => any;
12
+ "update-phone-field": (value: string) => any;
13
+ }, string, import('vue').PublicProps, Readonly<{
14
+ language: LangFormatType;
15
+ provider: ProviderType;
16
+ }> & Readonly<{
17
+ "onOn-toast"?: ((value: EmitToastType) => any) | undefined;
18
+ "onClean-input-errors"?: (() => any) | undefined;
19
+ "onOn-update-jwt"?: ((flow?: "email" | "phone" | "password" | undefined, mode?: ModeType | undefined, newValue?: string | undefined) => any) | undefined;
20
+ "onUpdate-email-field"?: ((value: string) => any) | undefined;
21
+ "onOn-password-error"?: ((field: "email" | "phone" | "password", message: string) => any) | undefined;
22
+ "onUpdate-phone-field"?: ((value: string) => any) | undefined;
23
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
24
+ export default _default;
@@ -0,0 +1,60 @@
1
+ interface Props {
2
+ email: string;
3
+ oldEmail: string;
4
+ hintText?: string;
5
+ emailError?: string;
6
+ codeError?: string;
7
+ rateLimitText?: string;
8
+ showEmail?: boolean;
9
+ isFinalLimit: boolean;
10
+ isNotMatchCode: boolean;
11
+ loading: boolean;
12
+ }
13
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
14
+ edit: (field: "email") => any;
15
+ "update:email": (value: string) => any;
16
+ "update:code": (value: string) => any;
17
+ "on-match-code": (value: {
18
+ email: string;
19
+ code: string;
20
+ }) => any;
21
+ "on-match-code-error": (value: {
22
+ code: string;
23
+ message: string;
24
+ }) => any;
25
+ "on-send-code": (value: {
26
+ email: string;
27
+ prevEmail?: string;
28
+ offLoading: boolean;
29
+ }) => any;
30
+ "on-send-code-again": (value: {
31
+ email: string;
32
+ }) => any;
33
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
34
+ onEdit?: ((field: "email") => any) | undefined;
35
+ "onUpdate:email"?: ((value: string) => any) | undefined;
36
+ "onUpdate:code"?: ((value: string) => any) | undefined;
37
+ "onOn-match-code"?: ((value: {
38
+ email: string;
39
+ code: string;
40
+ }) => any) | undefined;
41
+ "onOn-match-code-error"?: ((value: {
42
+ code: string;
43
+ message: string;
44
+ }) => any) | undefined;
45
+ "onOn-send-code"?: ((value: {
46
+ email: string;
47
+ prevEmail?: string;
48
+ offLoading: boolean;
49
+ }) => any) | undefined;
50
+ "onOn-send-code-again"?: ((value: {
51
+ email: string;
52
+ }) => any) | undefined;
53
+ }>, {
54
+ hintText: string;
55
+ emailError: string;
56
+ codeError: string;
57
+ rateLimitText: string;
58
+ showEmail: boolean;
59
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
60
+ export default _default;
@@ -0,0 +1,25 @@
1
+ interface Props {
2
+ modelValue: boolean;
3
+ title?: string;
4
+ hintText?: string;
5
+ emailSessionId: string | null;
6
+ }
7
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
8
+ close: () => any;
9
+ submit: (payload: {
10
+ password: string;
11
+ }) => any;
12
+ "update:modelValue": (value: boolean) => any;
13
+ "update-user": (newPassword: string) => any;
14
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
15
+ onClose?: (() => any) | undefined;
16
+ onSubmit?: ((payload: {
17
+ password: string;
18
+ }) => any) | undefined;
19
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
20
+ "onUpdate-user"?: ((newPassword: string) => any) | undefined;
21
+ }>, {
22
+ title: string;
23
+ hintText: string;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
25
+ export default _default;
@@ -0,0 +1,63 @@
1
+ interface Props {
2
+ phone: string;
3
+ oldPhone: string;
4
+ hintText?: string;
5
+ phoneError?: string;
6
+ codeError?: string;
7
+ rateLimitText?: string;
8
+ sendCodeBySmsText?: string;
9
+ showPhone?: boolean;
10
+ isFinalLimit: boolean;
11
+ isNotMatchCode: boolean;
12
+ loading: boolean;
13
+ isTg: boolean;
14
+ }
15
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
16
+ edit: (field: "phone") => any;
17
+ "update:code": (value: string) => any;
18
+ "on-match-code": (value: {
19
+ phone: string;
20
+ code: string;
21
+ }) => any;
22
+ "on-match-code-error": (value: {
23
+ code: string;
24
+ message: string;
25
+ }) => any;
26
+ "on-send-code": (value: {
27
+ phone: string;
28
+ prevPhone?: string;
29
+ offLoading: boolean;
30
+ }) => any;
31
+ "on-send-code-again": (value: {
32
+ phone: string;
33
+ }) => any;
34
+ "update:phone": (value: string) => any;
35
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
36
+ onEdit?: ((field: "phone") => any) | undefined;
37
+ "onUpdate:code"?: ((value: string) => any) | undefined;
38
+ "onOn-match-code"?: ((value: {
39
+ phone: string;
40
+ code: string;
41
+ }) => any) | undefined;
42
+ "onOn-match-code-error"?: ((value: {
43
+ code: string;
44
+ message: string;
45
+ }) => any) | undefined;
46
+ "onOn-send-code"?: ((value: {
47
+ phone: string;
48
+ prevPhone?: string;
49
+ offLoading: boolean;
50
+ }) => any) | undefined;
51
+ "onOn-send-code-again"?: ((value: {
52
+ phone: string;
53
+ }) => any) | undefined;
54
+ "onUpdate:phone"?: ((value: string) => any) | undefined;
55
+ }>, {
56
+ hintText: string;
57
+ codeError: string;
58
+ rateLimitText: string;
59
+ phoneError: string;
60
+ showPhone: boolean;
61
+ sendCodeBySmsText: string;
62
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
63
+ export default _default;
@@ -0,0 +1,64 @@
1
+ interface Props {
2
+ email: string;
3
+ oldEmail: string;
4
+ hintText?: string;
5
+ emailError?: string;
6
+ codeError?: string;
7
+ rateLimitText?: string;
8
+ showEmail?: boolean;
9
+ isFinalLimit: boolean;
10
+ isNotMatchCode: boolean;
11
+ loading: boolean;
12
+ }
13
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
14
+ edit: (field: "email") => any;
15
+ "update:email": (value: string) => any;
16
+ "update:code": (value: string) => any;
17
+ "on-match-code": (value: {
18
+ email: string;
19
+ code: string;
20
+ }) => any;
21
+ "on-match-code-error": (value: {
22
+ code: string;
23
+ message: string;
24
+ }) => any;
25
+ "on-send-code": (value: {
26
+ email: string;
27
+ prevEmail?: string;
28
+ offLoading: boolean;
29
+ }) => any;
30
+ "on-send-code-again": (value: {
31
+ email: string;
32
+ }) => any;
33
+ "on-clear-code-error": () => any;
34
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
35
+ onEdit?: ((field: "email") => any) | undefined;
36
+ "onUpdate:email"?: ((value: string) => any) | undefined;
37
+ "onUpdate:code"?: ((value: string) => any) | undefined;
38
+ "onOn-match-code"?: ((value: {
39
+ email: string;
40
+ code: string;
41
+ }) => any) | undefined;
42
+ "onOn-match-code-error"?: ((value: {
43
+ code: string;
44
+ message: string;
45
+ }) => any) | undefined;
46
+ "onOn-send-code"?: ((value: {
47
+ email: string;
48
+ prevEmail?: string;
49
+ offLoading: boolean;
50
+ }) => any) | undefined;
51
+ "onOn-send-code-again"?: ((value: {
52
+ email: string;
53
+ }) => any) | undefined;
54
+ "onOn-clear-code-error"?: (() => any) | undefined;
55
+ }>, {
56
+ hintText: string;
57
+ emailError: string;
58
+ codeError: string;
59
+ rateLimitText: string;
60
+ showEmail: boolean;
61
+ isFinalLimit: boolean;
62
+ isNotMatchCode: boolean;
63
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
64
+ export default _default;
@@ -0,0 +1,64 @@
1
+ interface Props {
2
+ phone: string;
3
+ oldPhone: string;
4
+ hintText?: string;
5
+ phoneError?: string;
6
+ codeError?: string;
7
+ rateLimitText?: string;
8
+ sendCodeBySmsText?: string;
9
+ showPhone?: boolean;
10
+ isFinalLimit: boolean;
11
+ isNotMatchCode: boolean;
12
+ loading: boolean;
13
+ isTg: boolean;
14
+ }
15
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
16
+ edit: (field: "phone") => any;
17
+ "update:code": (value: string) => any;
18
+ "on-match-code": (value: {
19
+ phone: string;
20
+ code: string;
21
+ }) => any;
22
+ "on-match-code-error": (value: {
23
+ code: string;
24
+ message: string;
25
+ }) => any;
26
+ "on-send-code": (value: {
27
+ phone: string;
28
+ prevPhone?: string;
29
+ offLoading: boolean;
30
+ }) => any;
31
+ "on-send-code-again": (value: {
32
+ phone: string;
33
+ }) => any;
34
+ "update:phone": (value: string) => any;
35
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
36
+ onEdit?: ((field: "phone") => any) | undefined;
37
+ "onUpdate:code"?: ((value: string) => any) | undefined;
38
+ "onOn-match-code"?: ((value: {
39
+ phone: string;
40
+ code: string;
41
+ }) => any) | undefined;
42
+ "onOn-match-code-error"?: ((value: {
43
+ code: string;
44
+ message: string;
45
+ }) => any) | undefined;
46
+ "onOn-send-code"?: ((value: {
47
+ phone: string;
48
+ prevPhone?: string;
49
+ offLoading: boolean;
50
+ }) => any) | undefined;
51
+ "onOn-send-code-again"?: ((value: {
52
+ phone: string;
53
+ }) => any) | undefined;
54
+ "onUpdate:phone"?: ((value: string) => any) | undefined;
55
+ }>, {
56
+ hintText: string;
57
+ codeError: string;
58
+ rateLimitText: string;
59
+ isNotMatchCode: boolean;
60
+ phoneError: string;
61
+ showPhone: boolean;
62
+ sendCodeBySmsText: string;
63
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
64
+ export default _default;
@@ -0,0 +1,55 @@
1
+ interface Props {
2
+ email: string;
3
+ code: string;
4
+ hintText?: string;
5
+ emailError?: string;
6
+ codeError?: string;
7
+ rateLimitText?: string;
8
+ showEmail?: boolean;
9
+ showCode?: boolean;
10
+ isFinalLimit: boolean;
11
+ isNotMatchCode: boolean;
12
+ loading: boolean;
13
+ }
14
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
15
+ edit: (field: "email") => any;
16
+ "update:email": (value: string) => any;
17
+ "update:code": (value: string) => any;
18
+ "on-match-code": (value: {
19
+ email: string;
20
+ code: string;
21
+ }) => any;
22
+ "on-match-code-error": (value: {
23
+ code: string;
24
+ message: string;
25
+ }) => any;
26
+ "on-send-code-again": (value: {
27
+ email: string;
28
+ }) => any;
29
+ "on-clear-code-error": () => any;
30
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
31
+ onEdit?: ((field: "email") => any) | undefined;
32
+ "onUpdate:email"?: ((value: string) => any) | undefined;
33
+ "onUpdate:code"?: ((value: string) => any) | undefined;
34
+ "onOn-match-code"?: ((value: {
35
+ email: string;
36
+ code: string;
37
+ }) => any) | undefined;
38
+ "onOn-match-code-error"?: ((value: {
39
+ code: string;
40
+ message: string;
41
+ }) => any) | undefined;
42
+ "onOn-send-code-again"?: ((value: {
43
+ email: string;
44
+ }) => any) | undefined;
45
+ "onOn-clear-code-error"?: (() => any) | undefined;
46
+ }>, {
47
+ hintText: string;
48
+ emailError: string;
49
+ codeError: string;
50
+ rateLimitText: string;
51
+ showEmail: boolean;
52
+ isNotMatchCode: boolean;
53
+ showCode: boolean;
54
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
55
+ export default _default;
@@ -0,0 +1,55 @@
1
+ interface Props {
2
+ phone: string;
3
+ code: string;
4
+ hintText?: string;
5
+ phoneError?: string;
6
+ codeError?: string;
7
+ rateLimitText?: string;
8
+ showPhone?: boolean;
9
+ showCode?: boolean;
10
+ sendCodeBySmsText?: string;
11
+ isFinalLimit: boolean;
12
+ isNotMatchCode: boolean;
13
+ loading: boolean;
14
+ isTg: boolean;
15
+ }
16
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
17
+ edit: (field: "phone") => any;
18
+ "update:code": (value: string) => any;
19
+ "on-match-code": (value: {
20
+ phone: string;
21
+ code: string;
22
+ }) => any;
23
+ "on-match-code-error": (value: {
24
+ code: string;
25
+ message: string;
26
+ }) => any;
27
+ "on-send-code-again": (value: {
28
+ phone: string;
29
+ }) => any;
30
+ "update:phone": (value: string) => any;
31
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
32
+ onEdit?: ((field: "phone") => any) | undefined;
33
+ "onUpdate:code"?: ((value: string) => any) | undefined;
34
+ "onOn-match-code"?: ((value: {
35
+ phone: string;
36
+ code: string;
37
+ }) => any) | undefined;
38
+ "onOn-match-code-error"?: ((value: {
39
+ code: string;
40
+ message: string;
41
+ }) => any) | undefined;
42
+ "onOn-send-code-again"?: ((value: {
43
+ phone: string;
44
+ }) => any) | undefined;
45
+ "onUpdate:phone"?: ((value: string) => any) | undefined;
46
+ }>, {
47
+ hintText: string;
48
+ codeError: string;
49
+ rateLimitText: string;
50
+ showCode: boolean;
51
+ phoneError: string;
52
+ showPhone: boolean;
53
+ sendCodeBySmsText: string;
54
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
55
+ export default _default;
@@ -0,0 +1,45 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ loading: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ rateLimitText: {
7
+ type: StringConstructor;
8
+ required: true;
9
+ };
10
+ isFinalLimit: {
11
+ type: BooleanConstructor;
12
+ required: true;
13
+ };
14
+ onSendAgain: {
15
+ type: FunctionConstructor;
16
+ required: true;
17
+ };
18
+ }>, {
19
+ isRepeat: import('vue').ComputedRef<boolean>;
20
+ defaultClass: string;
21
+ activeClass: string;
22
+ finalWrapperClass: string;
23
+ finalTextClass: string;
24
+ finalLinkClass: string;
25
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
26
+ loading: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ rateLimitText: {
31
+ type: StringConstructor;
32
+ required: true;
33
+ };
34
+ isFinalLimit: {
35
+ type: BooleanConstructor;
36
+ required: true;
37
+ };
38
+ onSendAgain: {
39
+ type: FunctionConstructor;
40
+ required: true;
41
+ };
42
+ }>> & Readonly<{}>, {
43
+ loading: boolean;
44
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
45
+ export default _default;
@@ -0,0 +1,55 @@
1
+ import { ModeType } from '../../../composables/profile/useDialogManager';
2
+ import { EmitToastType, ProviderType } from '../types';
3
+ interface Props {
4
+ modelValue: boolean;
5
+ title?: string;
6
+ hintText?: string;
7
+ initialEmail?: string;
8
+ throttler?: {
9
+ ttl: number;
10
+ limit: number;
11
+ attempts: number;
12
+ };
13
+ provider: ProviderType;
14
+ mode?: ModeType;
15
+ }
16
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
17
+ edit: (field: "email") => any;
18
+ close: () => any;
19
+ "update:modelValue": (value: boolean) => any;
20
+ "on-toast": (data: EmitToastType) => any;
21
+ "submit-email": (payload: {
22
+ email: string;
23
+ code: string;
24
+ }) => any;
25
+ notify: (payload: {
26
+ type: "success" | "error";
27
+ message: string;
28
+ }) => any;
29
+ "clean-input-errors": () => any;
30
+ "on-update-jwt": (flow?: "email" | "phone" | "password" | undefined, mode?: string | undefined, newValue?: string | undefined) => any;
31
+ "update-email-field": (value: string) => any;
32
+ "on-password-error": (field: "email" | "phone" | "password", message: string) => any;
33
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
34
+ onEdit?: ((field: "email") => any) | undefined;
35
+ onClose?: (() => any) | undefined;
36
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
37
+ "onOn-toast"?: ((data: EmitToastType) => any) | undefined;
38
+ "onSubmit-email"?: ((payload: {
39
+ email: string;
40
+ code: string;
41
+ }) => any) | undefined;
42
+ onNotify?: ((payload: {
43
+ type: "success" | "error";
44
+ message: string;
45
+ }) => any) | undefined;
46
+ "onClean-input-errors"?: (() => any) | undefined;
47
+ "onOn-update-jwt"?: ((flow?: "email" | "phone" | "password" | undefined, mode?: string | undefined, newValue?: string | undefined) => any) | undefined;
48
+ "onUpdate-email-field"?: ((value: string) => any) | undefined;
49
+ "onOn-password-error"?: ((field: "email" | "phone" | "password", message: string) => any) | undefined;
50
+ }>, {
51
+ title: string;
52
+ hintText: string;
53
+ initialEmail: string;
54
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
55
+ export default _default;
@@ -0,0 +1,36 @@
1
+ import { ModeType } from '../../../composables/profile/useDialogManager';
2
+ import { EmitToastType } from '../types';
3
+ interface Props {
4
+ modelValue: boolean;
5
+ title?: string;
6
+ hintText?: string;
7
+ oldPassword?: string;
8
+ }
9
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
10
+ edit: (field: "password") => any;
11
+ close: () => any;
12
+ submit: (payload: {
13
+ password: string;
14
+ }) => any;
15
+ "update:modelValue": (value: boolean) => any;
16
+ "on-toast": (data: EmitToastType) => any;
17
+ "on-update-jwt": (flow?: "email" | "phone" | "password" | undefined, mode?: ModeType | undefined, newValue?: string | undefined) => any;
18
+ "on-password-error": (field: "email" | "phone" | "password", message: string) => any;
19
+ "on-password-success": (field: "email" | "phone" | "password", message: string) => any;
20
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
21
+ onEdit?: ((field: "password") => any) | undefined;
22
+ onClose?: (() => any) | undefined;
23
+ onSubmit?: ((payload: {
24
+ password: string;
25
+ }) => any) | undefined;
26
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
27
+ "onOn-toast"?: ((data: EmitToastType) => any) | undefined;
28
+ "onOn-update-jwt"?: ((flow?: "email" | "phone" | "password" | undefined, mode?: ModeType | undefined, newValue?: string | undefined) => any) | undefined;
29
+ "onOn-password-error"?: ((field: "email" | "phone" | "password", message: string) => any) | undefined;
30
+ "onOn-password-success"?: ((field: "email" | "phone" | "password", message: string) => any) | undefined;
31
+ }>, {
32
+ title: string;
33
+ hintText: string;
34
+ oldPassword: string;
35
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
36
+ export default _default;