@yourgoods/ui-smart 0.53.14 → 0.53.16

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 (46) hide show
  1. package/dist/{ProfileEmailDialog-DLudgSso.js → ProfileEmailDialog-CSkBhFZg.js} +2 -2
  2. package/dist/{ProfilePasswordDialog-CBk7eiWU.js → ProfilePasswordDialog-33HFcbos.js} +1 -1
  3. package/dist/{ProfilePhoneDialog-DliOsBke.js → ProfilePhoneDialog-C38K6-Gg.js} +2 -2
  4. package/dist/components/PEditUserContact/PEditUserContact.vue.d.ts +48 -0
  5. package/dist/components/PEditUserContact/ProfileDialogs/DialogManager.vue.d.ts +26 -0
  6. package/dist/components/PEditUserContact/ProfileDialogs/DialogSegments/AddNewEmailContent.vue.d.ts +64 -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 +75 -0
  9. package/dist/components/PEditUserContact/ProfileDialogs/DialogSegments/NewEmailContent.vue.d.ts +66 -0
  10. package/dist/components/PEditUserContact/ProfileDialogs/DialogSegments/NewPhoneContent.vue.d.ts +74 -0
  11. package/dist/components/PEditUserContact/ProfileDialogs/DialogSegments/OldEmailContent.vue.d.ts +57 -0
  12. package/dist/components/PEditUserContact/ProfileDialogs/DialogSegments/OldPhoneContent.vue.d.ts +65 -0
  13. package/dist/components/PEditUserContact/ProfileDialogs/DialogSegments/ThrottlerTimer.vue.d.ts +33 -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 +92 -0
  17. package/dist/components/PEditUserContact/ProfileOverlayLoading.vue.d.ts +2 -0
  18. package/dist/components/PEditUserContact/index.vue.d.ts +40 -0
  19. package/dist/components/PEditUserContact/types.d.ts +35 -0
  20. package/dist/components/PEmailOrPhoneInput/index.vue.d.ts +37 -0
  21. package/dist/components/PEmailOrPhoneInput/types.d.ts +16 -0
  22. package/dist/components/PEmailOrPhoneInput/utils/detect-field.d.ts +2 -0
  23. package/dist/components/PEmailOrPhoneInput/utils/email.d.ts +2 -0
  24. package/dist/components/PEmailOrPhoneInput/utils/phone.d.ts +6 -0
  25. package/dist/components/index.d.ts +0 -0
  26. package/dist/composables/profile/useDialogManager.d.ts +21 -0
  27. package/dist/composables/profile/useModeFlow.d.ts +7 -0
  28. package/dist/composables/profile/usePasswordRateLimitToast.d.ts +9 -0
  29. package/dist/composables/profile/useRateLimitToast.d.ts +9 -0
  30. package/dist/composables/profile/useThrottler.d.ts +13 -0
  31. package/dist/icons/index.d.ts +1 -0
  32. package/dist/{index-BqAKjNzC.js → index-DYfxtE--.js} +9 -6
  33. package/dist/index.d.ts +2 -1
  34. package/dist/index.js +2 -2
  35. package/dist/locales/index.d.ts +134 -0
  36. package/dist/modules/api/profile/check-availability.d.ts +1 -0
  37. package/dist/modules/api/profile/me.d.ts +19 -0
  38. package/dist/modules/index.d.ts +7 -0
  39. package/dist/types.d.ts +10 -0
  40. package/dist/{useRateLimitToast-DhiphkbR.js → useRateLimitToast-BAK-6nD5.js} +1 -1
  41. package/dist/utils/checkEmailFormatError.d.ts +1 -0
  42. package/dist/utils/checkPhoneFormatError.d.ts +1 -0
  43. package/dist/utils/formatPhone.d.ts +5 -0
  44. package/dist/utils/phoneValidationKeywords.d.ts +1 -0
  45. package/dist/utils/url.d.ts +2 -0
  46. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as oe, ref as T, reactive as Z, watch as Y, computed as b, toRefs as ce, createElementBlock as I, openBlock as y, createElementVNode as x, createCommentVNode as D, toDisplayString as _, createVNode as $, unref as u, isRef as ee, withCtx as G, createTextVNode as ie, Fragment as Ae, createBlock as H, resolveDynamicComponent as he, onMounted as Fe } from "vue";
2
- import { _ as ve, c as ke, u as Re, a as ze, P as Me, b as We } from "./useRateLimitToast-DhiphkbR.js";
3
- import { C as F, _ as He, B as qe, p as W, g as je } from "./index-BqAKjNzC.js";
2
+ import { _ as ve, c as ke, u as Re, a as ze, P as Me, b as We } from "./useRateLimitToast-BAK-6nD5.js";
3
+ import { C as F, _ as He, B as qe, p as W, g as je } from "./index-DYfxtE--.js";
4
4
  import { PInput as J, IconMailMd as pe, PButton as ne, IconEyeMd as Ve, IconEyeClosedMd as be, PDialog as Ge, PTopBar as Ye, IconCrossMd as Je } from "@profeat/ui-kit";
5
5
  const Ke = { class: "dialogDefaultContainerInsideContent" }, Qe = { class: "dialogDefaultContainerTextHint" }, Xe = {
6
6
  key: 0,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as ye, ref as a, reactive as _, computed as u, watch as Z, onMounted as Ce, createElementBlock as S, openBlock as g, Fragment as ge, createVNode as n, unref as o, withCtx as m, createCommentVNode as ee, createElementVNode as r, toDisplayString as V, createBlock as B, resolveDynamicComponent as $, createTextVNode as z } from "vue";
2
- import { C as I, p as D, g as Ve } from "./index-BqAKjNzC.js";
2
+ import { C as I, p as D, g as Ve } from "./index-DYfxtE--.js";
3
3
  import { PDialog as be, PInput as M, IconEyeMd as O, IconEyeClosedMd as U, PButton as F, PTopBar as Te, IconCrossMd as Ie, PTeleportContainer as xe } from "@profeat/ui-kit";
4
4
  function ke(b) {
5
5
  return { showPasswordRateLimitToast: (P) => {
@@ -1,7 +1,7 @@
1
1
  import { createElementBlock as S, openBlock as v, createElementVNode as H, defineComponent as he, reactive as ve, watch as _, ref as O, toRefs as Ce, computed as I, createCommentVNode as B, createVNode as b, toDisplayString as G, createBlock as J, createTextVNode as Z, unref as r, isRef as le, withCtx as X, onMounted as We, Fragment as je } from "vue";
2
- import { _ as we, c as Ne, a as He, u as Ge, P as Oe, b as Je } from "./useRateLimitToast-DhiphkbR.js";
2
+ import { _ as we, c as Ne, a as He, u as Ge, P as Oe, b as Je } from "./useRateLimitToast-BAK-6nD5.js";
3
3
  import { IconTelegramSm as Pe, PInput as se, IconPhoneMd as Re, IconMailMd as Ke, PButton as ze, PDialog as Qe, PTopBar as Xe, IconCrossMd as Ye, PTeleportContainer as Ze } from "@profeat/ui-kit";
4
- import { C as j, t as De, p as te, g as Ae } from "./index-BqAKjNzC.js";
4
+ import { C as j, t as De, p as te, g as Ae } from "./index-DYfxtE--.js";
5
5
  const _e = {
6
6
  xmlns: "http://www.w3.org/2000/svg",
7
7
  width: "12",
@@ -0,0 +1,48 @@
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
+ awsStorageUrl: string;
17
+ disableAddPhone: boolean;
18
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
19
+ "on-update-jwt": (flow?: "email" | "phone" | "password" | undefined, mode?: ModeType | undefined, newValue?: string | undefined) => any;
20
+ "on-password-error": (field: "email" | "phone" | "password", message: string) => any;
21
+ "open-email-dialog": (value: string, mode: ModeType) => any;
22
+ "open-phone-dialog": (value: string, mode: ModeType) => any;
23
+ "open-password-dialog": () => any;
24
+ "update-tokens": (accessToken: string, refreshToken: string) => any;
25
+ }, string, import('vue').PublicProps, Readonly<{
26
+ language: LangFormatType;
27
+ throttlerPrefix: string;
28
+ provider: ProviderType;
29
+ requestUrl: string;
30
+ accessToken: string;
31
+ refreshToken: string;
32
+ fields: Array<{
33
+ key: "firstName" | "lastName" | "email" | "phone" | "avatar";
34
+ label?: string;
35
+ readonly?: boolean;
36
+ type?: string;
37
+ }>;
38
+ awsStorageUrl: string;
39
+ disableAddPhone: boolean;
40
+ }> & Readonly<{
41
+ "onOn-update-jwt"?: ((flow?: "email" | "phone" | "password" | undefined, mode?: ModeType | undefined, newValue?: string | undefined) => any) | undefined;
42
+ "onOn-password-error"?: ((field: "email" | "phone" | "password", message: string) => any) | undefined;
43
+ "onOpen-email-dialog"?: ((value: string, mode: ModeType) => any) | undefined;
44
+ "onOpen-phone-dialog"?: ((value: string, mode: ModeType) => any) | undefined;
45
+ "onOpen-password-dialog"?: (() => any) | undefined;
46
+ "onUpdate-tokens"?: ((accessToken: string, refreshToken: string) => any) | undefined;
47
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
48
+ export default _default;
@@ -0,0 +1,26 @@
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
+ disableAddPhone: boolean;
7
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
8
+ "on-toast": (value: EmitToastType) => any;
9
+ "clean-input-errors": () => any;
10
+ "on-update-jwt": (flow?: "email" | "phone" | "password" | undefined, mode?: ModeType | undefined, newValue?: string | undefined) => any;
11
+ "update-email-field": (value: string) => any;
12
+ "on-password-error": (field: "email" | "phone" | "password", message: string) => any;
13
+ "update-phone-field": (value: string) => any;
14
+ }, string, import('vue').PublicProps, Readonly<{
15
+ language: LangFormatType;
16
+ provider: ProviderType;
17
+ disableAddPhone: boolean;
18
+ }> & Readonly<{
19
+ "onOn-toast"?: ((value: EmitToastType) => any) | undefined;
20
+ "onClean-input-errors"?: (() => any) | undefined;
21
+ "onOn-update-jwt"?: ((flow?: "email" | "phone" | "password" | undefined, mode?: ModeType | undefined, newValue?: string | undefined) => any) | undefined;
22
+ "onUpdate-email-field"?: ((value: string) => any) | undefined;
23
+ "onOn-password-error"?: ((field: "email" | "phone" | "password", message: string) => any) | undefined;
24
+ "onUpdate-phone-field"?: ((value: string) => any) | undefined;
25
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
+ export default _default;
@@ -0,0 +1,64 @@
1
+ import { Provider } from '../../../../types';
2
+ interface Props {
3
+ email: string;
4
+ oldEmail: string;
5
+ hintText?: string;
6
+ emailError?: string;
7
+ codeError?: string;
8
+ rateLimitText?: string;
9
+ showEmail?: boolean;
10
+ isFinalLimit: boolean;
11
+ isNotMatchCode: boolean;
12
+ loading: boolean;
13
+ product: Provider;
14
+ }
15
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
16
+ edit: (field: "email") => any;
17
+ "update:email": (value: string) => any;
18
+ "update:code": (value: string) => any;
19
+ "on-match-code": (value: {
20
+ email: string;
21
+ code: string;
22
+ }) => any;
23
+ "on-match-code-error": (value: {
24
+ code: string;
25
+ message: string;
26
+ }) => any;
27
+ "on-send-code": (value: {
28
+ email: string;
29
+ prevEmail?: string;
30
+ offLoading: boolean;
31
+ }) => any;
32
+ "on-send-code-again": (value: {
33
+ email: string;
34
+ }) => any;
35
+ "on-clear-code-error": () => any;
36
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
37
+ onEdit?: ((field: "email") => any) | undefined;
38
+ "onUpdate:email"?: ((value: string) => any) | undefined;
39
+ "onUpdate:code"?: ((value: string) => any) | undefined;
40
+ "onOn-match-code"?: ((value: {
41
+ email: string;
42
+ code: string;
43
+ }) => any) | undefined;
44
+ "onOn-match-code-error"?: ((value: {
45
+ code: string;
46
+ message: string;
47
+ }) => any) | undefined;
48
+ "onOn-send-code"?: ((value: {
49
+ email: string;
50
+ prevEmail?: string;
51
+ offLoading: boolean;
52
+ }) => any) | undefined;
53
+ "onOn-send-code-again"?: ((value: {
54
+ email: string;
55
+ }) => any) | undefined;
56
+ "onOn-clear-code-error"?: (() => any) | undefined;
57
+ }>, {
58
+ rateLimitText: string;
59
+ hintText: string;
60
+ emailError: string;
61
+ codeError: string;
62
+ showEmail: boolean;
63
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
64
+ 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,75 @@
1
+ import { Provider } from '../../../../types';
2
+ interface Props {
3
+ phone: string;
4
+ oldPhone: string;
5
+ hintText?: string;
6
+ phoneError?: string;
7
+ codeError?: string;
8
+ rateLimitText?: string;
9
+ sendCodeBySmsText?: string;
10
+ showPhone?: boolean;
11
+ isFinalLimit: boolean;
12
+ isNotMatchCode: boolean;
13
+ loading: boolean;
14
+ isTg: boolean;
15
+ product: Provider;
16
+ disableAddPhone: boolean;
17
+ }
18
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
19
+ edit: (field: "phone") => any;
20
+ "update:code": (value: string) => any;
21
+ "on-match-code": (value: {
22
+ phone: string;
23
+ code: string;
24
+ }) => any;
25
+ "on-match-code-error": (value: {
26
+ code: string;
27
+ message: string;
28
+ }) => any;
29
+ "on-send-code": (value: {
30
+ phone: string;
31
+ prevPhone?: string;
32
+ offLoading: boolean;
33
+ }) => any;
34
+ "on-send-code-again": (value: {
35
+ phone: string;
36
+ }) => any;
37
+ "on-clear-code-error": () => any;
38
+ "update:phone": (value: string) => any;
39
+ "on-send-only-sms": (value: {
40
+ phone: string;
41
+ }) => any;
42
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
43
+ onEdit?: ((field: "phone") => any) | undefined;
44
+ "onUpdate:code"?: ((value: string) => any) | undefined;
45
+ "onOn-match-code"?: ((value: {
46
+ phone: string;
47
+ code: string;
48
+ }) => any) | undefined;
49
+ "onOn-match-code-error"?: ((value: {
50
+ code: string;
51
+ message: string;
52
+ }) => any) | undefined;
53
+ "onOn-send-code"?: ((value: {
54
+ phone: string;
55
+ prevPhone?: string;
56
+ offLoading: boolean;
57
+ }) => any) | undefined;
58
+ "onOn-send-code-again"?: ((value: {
59
+ phone: string;
60
+ }) => any) | undefined;
61
+ "onOn-clear-code-error"?: (() => any) | undefined;
62
+ "onUpdate:phone"?: ((value: string) => any) | undefined;
63
+ "onOn-send-only-sms"?: ((value: {
64
+ phone: string;
65
+ }) => any) | undefined;
66
+ }>, {
67
+ rateLimitText: string;
68
+ hintText: string;
69
+ codeError: string;
70
+ phoneError: string;
71
+ showPhone: boolean;
72
+ sendCodeBySmsText: string;
73
+ disableAddPhone: boolean;
74
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
75
+ export default _default;
@@ -0,0 +1,66 @@
1
+ import { Provider } from '../../../../types';
2
+ interface Props {
3
+ email: string;
4
+ oldEmail: string;
5
+ hintText?: string;
6
+ emailError?: string;
7
+ codeError?: string;
8
+ rateLimitText?: string;
9
+ showEmail?: boolean;
10
+ isFinalLimit: boolean;
11
+ isNotMatchCode: boolean;
12
+ loading: boolean;
13
+ product: Provider;
14
+ }
15
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
16
+ edit: (field: "email") => any;
17
+ "update:email": (value: string) => any;
18
+ "update:code": (value: string) => any;
19
+ "on-match-code": (value: {
20
+ email: string;
21
+ code: string;
22
+ }) => any;
23
+ "on-match-code-error": (value: {
24
+ code: string;
25
+ message: string;
26
+ }) => any;
27
+ "on-send-code": (value: {
28
+ email: string;
29
+ prevEmail?: string;
30
+ offLoading: boolean;
31
+ }) => any;
32
+ "on-send-code-again": (value: {
33
+ email: string;
34
+ }) => any;
35
+ "on-clear-code-error": () => any;
36
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
37
+ onEdit?: ((field: "email") => any) | undefined;
38
+ "onUpdate:email"?: ((value: string) => any) | undefined;
39
+ "onUpdate:code"?: ((value: string) => any) | undefined;
40
+ "onOn-match-code"?: ((value: {
41
+ email: string;
42
+ code: string;
43
+ }) => any) | undefined;
44
+ "onOn-match-code-error"?: ((value: {
45
+ code: string;
46
+ message: string;
47
+ }) => any) | undefined;
48
+ "onOn-send-code"?: ((value: {
49
+ email: string;
50
+ prevEmail?: string;
51
+ offLoading: boolean;
52
+ }) => any) | undefined;
53
+ "onOn-send-code-again"?: ((value: {
54
+ email: string;
55
+ }) => any) | undefined;
56
+ "onOn-clear-code-error"?: (() => any) | undefined;
57
+ }>, {
58
+ rateLimitText: string;
59
+ isFinalLimit: boolean;
60
+ hintText: string;
61
+ emailError: string;
62
+ codeError: string;
63
+ showEmail: boolean;
64
+ isNotMatchCode: boolean;
65
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
66
+ export default _default;
@@ -0,0 +1,74 @@
1
+ import { Provider } from '../../../../types';
2
+ interface Props {
3
+ phone: string;
4
+ oldPhone: string;
5
+ hintText?: string;
6
+ phoneError?: string;
7
+ codeError?: string;
8
+ rateLimitText?: string;
9
+ sendCodeBySmsText?: string;
10
+ showPhone?: boolean;
11
+ isFinalLimit: boolean;
12
+ isNotMatchCode: boolean;
13
+ loading: boolean;
14
+ isTg: boolean;
15
+ product: Provider;
16
+ }
17
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
18
+ edit: (field: "phone") => any;
19
+ "update:code": (value: string) => any;
20
+ "on-match-code": (value: {
21
+ phone: string;
22
+ code: string;
23
+ }) => any;
24
+ "on-match-code-error": (value: {
25
+ code: string;
26
+ message: string;
27
+ }) => any;
28
+ "on-send-code": (value: {
29
+ phone: string;
30
+ prevPhone?: string;
31
+ offLoading: boolean;
32
+ }) => any;
33
+ "on-send-code-again": (value: {
34
+ phone: string;
35
+ }) => any;
36
+ "on-clear-code-error": () => any;
37
+ "update:phone": (value: string) => any;
38
+ "on-send-only-sms": (value: {
39
+ phone: string;
40
+ }) => any;
41
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
42
+ onEdit?: ((field: "phone") => any) | undefined;
43
+ "onUpdate:code"?: ((value: string) => any) | undefined;
44
+ "onOn-match-code"?: ((value: {
45
+ phone: string;
46
+ code: string;
47
+ }) => any) | undefined;
48
+ "onOn-match-code-error"?: ((value: {
49
+ code: string;
50
+ message: string;
51
+ }) => any) | undefined;
52
+ "onOn-send-code"?: ((value: {
53
+ phone: string;
54
+ prevPhone?: string;
55
+ offLoading: boolean;
56
+ }) => any) | undefined;
57
+ "onOn-send-code-again"?: ((value: {
58
+ phone: string;
59
+ }) => any) | undefined;
60
+ "onOn-clear-code-error"?: (() => any) | undefined;
61
+ "onUpdate:phone"?: ((value: string) => any) | undefined;
62
+ "onOn-send-only-sms"?: ((value: {
63
+ phone: string;
64
+ }) => any) | undefined;
65
+ }>, {
66
+ rateLimitText: string;
67
+ hintText: string;
68
+ codeError: string;
69
+ isNotMatchCode: boolean;
70
+ phoneError: string;
71
+ showPhone: boolean;
72
+ sendCodeBySmsText: string;
73
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
74
+ export default _default;
@@ -0,0 +1,57 @@
1
+ import { Provider } from '../../../../types';
2
+ interface Props {
3
+ email: string;
4
+ code: string;
5
+ hintText?: string;
6
+ emailError?: string;
7
+ codeError?: string;
8
+ rateLimitText?: string;
9
+ showEmail?: boolean;
10
+ showCode?: boolean;
11
+ isFinalLimit: boolean;
12
+ isNotMatchCode: boolean;
13
+ loading: boolean;
14
+ product: Provider;
15
+ }
16
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
17
+ edit: (field: "email") => any;
18
+ "update:email": (value: string) => any;
19
+ "update:code": (value: string) => any;
20
+ "on-match-code": (value: {
21
+ email: string;
22
+ code: string;
23
+ }) => any;
24
+ "on-match-code-error": (value: {
25
+ code: string;
26
+ message: string;
27
+ }) => any;
28
+ "on-send-code-again": (value: {
29
+ email: string;
30
+ }) => any;
31
+ "on-clear-code-error": () => any;
32
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
33
+ onEdit?: ((field: "email") => any) | undefined;
34
+ "onUpdate:email"?: ((value: string) => any) | undefined;
35
+ "onUpdate:code"?: ((value: string) => any) | undefined;
36
+ "onOn-match-code"?: ((value: {
37
+ email: string;
38
+ code: string;
39
+ }) => any) | undefined;
40
+ "onOn-match-code-error"?: ((value: {
41
+ code: string;
42
+ message: string;
43
+ }) => any) | undefined;
44
+ "onOn-send-code-again"?: ((value: {
45
+ email: string;
46
+ }) => any) | undefined;
47
+ "onOn-clear-code-error"?: (() => any) | undefined;
48
+ }>, {
49
+ rateLimitText: string;
50
+ hintText: string;
51
+ emailError: string;
52
+ codeError: string;
53
+ showEmail: boolean;
54
+ isNotMatchCode: boolean;
55
+ showCode: boolean;
56
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
57
+ export default _default;
@@ -0,0 +1,65 @@
1
+ import { Provider } from '../../../../types';
2
+ interface Props {
3
+ phone: string;
4
+ code: string;
5
+ hintText?: string;
6
+ phoneError?: string;
7
+ codeError?: string;
8
+ rateLimitText?: string;
9
+ showPhone?: boolean;
10
+ showCode?: boolean;
11
+ sendCodeBySmsText?: string;
12
+ isFinalLimit: boolean;
13
+ isNotMatchCode: boolean;
14
+ loading: boolean;
15
+ isTg: boolean;
16
+ product: Provider;
17
+ }
18
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
19
+ edit: (field: "phone") => any;
20
+ "update:code": (value: string) => any;
21
+ "on-match-code": (value: {
22
+ phone: string;
23
+ code: string;
24
+ }) => any;
25
+ "on-match-code-error": (value: {
26
+ code: string;
27
+ message: string;
28
+ }) => any;
29
+ "on-send-code-again": (value: {
30
+ phone: string;
31
+ }) => any;
32
+ "on-clear-code-error": () => any;
33
+ "update:phone": (value: string) => any;
34
+ "on-send-only-sms": (value: {
35
+ phone: string;
36
+ }) => any;
37
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
38
+ onEdit?: ((field: "phone") => any) | undefined;
39
+ "onUpdate:code"?: ((value: string) => any) | undefined;
40
+ "onOn-match-code"?: ((value: {
41
+ phone: string;
42
+ code: string;
43
+ }) => any) | undefined;
44
+ "onOn-match-code-error"?: ((value: {
45
+ code: string;
46
+ message: string;
47
+ }) => any) | undefined;
48
+ "onOn-send-code-again"?: ((value: {
49
+ phone: string;
50
+ }) => any) | undefined;
51
+ "onOn-clear-code-error"?: (() => any) | undefined;
52
+ "onUpdate:phone"?: ((value: string) => any) | undefined;
53
+ "onOn-send-only-sms"?: ((value: {
54
+ phone: string;
55
+ }) => any) | undefined;
56
+ }>, {
57
+ rateLimitText: string;
58
+ hintText: string;
59
+ codeError: string;
60
+ showCode: boolean;
61
+ phoneError: string;
62
+ showPhone: boolean;
63
+ sendCodeBySmsText: string;
64
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
65
+ export default _default;
@@ -0,0 +1,33 @@
1
+ import { Provider } from '../../../../types';
2
+ declare function __VLS_template(): {
3
+ slots: {
4
+ active?(_: {}): any;
5
+ extra?(_: {}): any;
6
+ final?(_: {}): any;
7
+ };
8
+ refs: {};
9
+ attrs: Partial<{}>;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue').DefineComponent<{
13
+ loading?: boolean;
14
+ rateLimitText: string;
15
+ isFinalLimit: boolean;
16
+ onSendAgain: Function;
17
+ product: Provider;
18
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
19
+ loading?: boolean;
20
+ rateLimitText: string;
21
+ isFinalLimit: boolean;
22
+ onSendAgain: Function;
23
+ product: Provider;
24
+ }> & Readonly<{}>, {
25
+ loading: boolean;
26
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
27
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
+ export default _default;
29
+ type __VLS_WithTemplateSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -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;