@yourgoods/ui-smart 0.53.12 → 0.53.14

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 (48) hide show
  1. package/dist/{ProfileEmailDialog-DnsxREN6.js → ProfileEmailDialog-DLudgSso.js} +2 -2
  2. package/dist/{ProfilePasswordDialog-Db-qoFp1.js → ProfilePasswordDialog-CBk7eiWU.js} +1 -1
  3. package/dist/{ProfilePhoneDialog-BEeFw5xB.js → ProfilePhoneDialog-DliOsBke.js} +2 -2
  4. package/dist/{index-BUZIaUqq.js → index-BqAKjNzC.js} +362 -367
  5. package/dist/index.d.ts +1 -1
  6. package/dist/index.js +2 -2
  7. package/dist/{useRateLimitToast-CnbvkrCW.js → useRateLimitToast-DhiphkbR.js} +1 -1
  8. package/package.json +1 -1
  9. package/dist/components/PEditUserContact/PEditUserContact.vue.d.ts +0 -48
  10. package/dist/components/PEditUserContact/ProfileDialogs/DialogManager.vue.d.ts +0 -26
  11. package/dist/components/PEditUserContact/ProfileDialogs/DialogSegments/AddNewEmailContent.vue.d.ts +0 -64
  12. package/dist/components/PEditUserContact/ProfileDialogs/DialogSegments/AddNewPasswordContent.vue.d.ts +0 -25
  13. package/dist/components/PEditUserContact/ProfileDialogs/DialogSegments/AddNewPhoneContent.vue.d.ts +0 -75
  14. package/dist/components/PEditUserContact/ProfileDialogs/DialogSegments/NewEmailContent.vue.d.ts +0 -66
  15. package/dist/components/PEditUserContact/ProfileDialogs/DialogSegments/NewPhoneContent.vue.d.ts +0 -74
  16. package/dist/components/PEditUserContact/ProfileDialogs/DialogSegments/OldEmailContent.vue.d.ts +0 -57
  17. package/dist/components/PEditUserContact/ProfileDialogs/DialogSegments/OldPhoneContent.vue.d.ts +0 -65
  18. package/dist/components/PEditUserContact/ProfileDialogs/DialogSegments/ThrottlerTimer.vue.d.ts +0 -33
  19. package/dist/components/PEditUserContact/ProfileDialogs/ProfileEmailDialog.vue.d.ts +0 -55
  20. package/dist/components/PEditUserContact/ProfileDialogs/ProfilePasswordDialog.vue.d.ts +0 -36
  21. package/dist/components/PEditUserContact/ProfileDialogs/ProfilePhoneDialog.vue.d.ts +0 -92
  22. package/dist/components/PEditUserContact/ProfileOverlayLoading.vue.d.ts +0 -2
  23. package/dist/components/PEditUserContact/index.vue.d.ts +0 -40
  24. package/dist/components/PEditUserContact/types.d.ts +0 -35
  25. package/dist/components/PEmailOrPhoneInput/index.vue.d.ts +0 -37
  26. package/dist/components/PEmailOrPhoneInput/types.d.ts +0 -16
  27. package/dist/components/PEmailOrPhoneInput/utils/detect-field.d.ts +0 -2
  28. package/dist/components/PEmailOrPhoneInput/utils/email.d.ts +0 -2
  29. package/dist/components/PEmailOrPhoneInput/utils/phone.d.ts +0 -5
  30. package/dist/components/index.d.ts +0 -2
  31. package/dist/composables/profile/useDialogManager.d.ts +0 -21
  32. package/dist/composables/profile/useModeFlow.d.ts +0 -7
  33. package/dist/composables/profile/usePasswordRateLimitToast.d.ts +0 -9
  34. package/dist/composables/profile/useRateLimitToast.d.ts +0 -9
  35. package/dist/composables/profile/useThrottler.d.ts +0 -13
  36. package/dist/icons/index.d.ts +0 -1
  37. package/dist/locales/index.d.ts +0 -134
  38. package/dist/modules/api/profile/check-availability.d.ts +0 -1
  39. package/dist/modules/api/profile/me.d.ts +0 -19
  40. package/dist/modules/index.d.ts +0 -7
  41. package/dist/types/vue-shims.d.ts +0 -5
  42. package/dist/types.d.ts +0 -10
  43. package/dist/utils/checkEmailFormatError.d.ts +0 -1
  44. package/dist/utils/checkPhoneFormatError.d.ts +0 -1
  45. package/dist/utils/formatPhone.d.ts +0 -5
  46. package/dist/utils/phoneValidationKeywords.d.ts +0 -1
  47. package/dist/utils/url.d.ts +0 -2
  48. package/dist/vue-shims.d.ts +0 -5
package/dist/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './components';
1
+ export {}
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".avatar-input[data-v-a56fcdbb] .p-input-file .overlay{visibility:hidden}.avatar-input[data-v-a56fcdbb] .p-input-file:hover .overlay{visibility:visible}.smart-input[data-v-17e444bc]{position:relative;width:100%}.smart-input__icon[data-v-17e444bc]{position:absolute;top:16px;right:16px;pointer-events:none;opacity:.5}.icon-locked{pointer-events:auto;position:absolute;right:1rem;top:1rem;color:#b6c7d6}.input-wrapper{position:relative;width:100%}.dialogTitle{z-index:10;width:100%;font-size:16px;font-weight:600;line-height:24px;text-align:center;color:#2b3238}.dialogDefaultContainer{display:flex;align-items:flex-start;flex-direction:column;width:100%;gap:32px;margin-top:16px;padding:10px 16px}.dialogDefaultContainerTextHint{font-weight:400;font-size:14px;line-height:20px;text-align:center;color:#1b1b1b}.dialogDefaultContainerRateLimitText{font-weight:600;font-size:14px;line-height:20px;color:#d0dbe4}.dialogDefaultContainerInsideContent{width:100%;display:flex;flex-direction:column;gap:24px}.dialogDefaultContainerRateLimitTextActive{color:#1c7ef1;cursor:pointer}.dialogDefaultContainerSendCodeBySmsText{color:#1c7ef1;cursor:pointer;font-size:14px;font-weight:600;display:flex;align-items:center;text-align:center}.chip{display:flex;align-items:center;justify-content:center;flex-direction:row;gap:4px;height:24px;font-size:12px;font-weight:600;color:#1b1b1b;padding:4px;line-height:16px;background-color:#b6d7ff4d;border-radius:4px;text-align:center;margin-left:5px}.cross{cursor:pointer;text-align:end}.finalLimitWrapper{display:flex;flex-direction:column;align-items:center;padding:12px 0;gap:12px;width:100%;min-height:94px;background:#e4606026;border-radius:8px}.finalLimitText{text-align:center;max-width:100%;word-wrap:break-word;font-family:Inter,sans-serif;font-size:14px;line-height:20px;color:#5d7285}.finalLimitLink{font-family:Inter,sans-serif;font-weight:600;font-size:14px;line-height:20px;color:#1c7ef1;text-align:center;cursor:pointer;text-decoration:none}.finalLimitLink:hover{text-decoration:underline}.toastWrapper{position:fixed;bottom:1rem;right:1rem;z-index:9999}.toast{width:100%}.base-container{margin-top:1.5rem;display:flex;flex-direction:column;gap:1.25rem;width:490px;height:428px}.icon-disabled{pointer-events:none;position:absolute;right:1rem;top:1rem;color:#b6c7d6}.centered-overlay{position:absolute;left:50%;top:50%;z-index:1000;height:100%;width:100%;transform:translate(-50%,-50%)}.buttons-container{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-start}.buttons-container PButton{flex:1 1 100%}._loaderOverlay_cpu73_1[data-v-9e697525]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;background:#ffffffb3;border-radius:16px;z-index:99}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- import { a as o, i as r } from "./index-BUZIaUqq.js";
1
+ (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".avatar-input[data-v-a56fcdbb] .p-input-file .overlay{visibility:hidden}.avatar-input[data-v-a56fcdbb] .p-input-file:hover .overlay{visibility:visible}.smart-input[data-v-0f49a2a4]{position:relative;width:100%}.smart-input__icon[data-v-0f49a2a4]{position:absolute;top:16px;right:16px;pointer-events:none;opacity:.5}.icon-locked{pointer-events:auto;position:absolute;right:1rem;top:1rem;color:#b6c7d6}.input-wrapper{position:relative;width:100%}.dialogTitle{z-index:10;width:100%;font-size:16px;font-weight:600;line-height:24px;text-align:center;color:#2b3238}.dialogDefaultContainer{display:flex;align-items:flex-start;flex-direction:column;width:100%;gap:32px;margin-top:16px;padding:10px 16px}.dialogDefaultContainerTextHint{font-weight:400;font-size:14px;line-height:20px;text-align:center;color:#1b1b1b}.dialogDefaultContainerRateLimitText{font-weight:600;font-size:14px;line-height:20px;color:#d0dbe4}.dialogDefaultContainerInsideContent{width:100%;display:flex;flex-direction:column;gap:24px}.dialogDefaultContainerRateLimitTextActive{color:#1c7ef1;cursor:pointer}.dialogDefaultContainerSendCodeBySmsText{color:#1c7ef1;cursor:pointer;font-size:14px;font-weight:600;display:flex;align-items:center;text-align:center}.chip{display:flex;align-items:center;justify-content:center;flex-direction:row;gap:4px;height:24px;font-size:12px;font-weight:600;color:#1b1b1b;padding:4px;line-height:16px;background-color:#b6d7ff4d;border-radius:4px;text-align:center;margin-left:5px}.cross{cursor:pointer;text-align:end}.finalLimitWrapper{display:flex;flex-direction:column;align-items:center;padding:12px 0;gap:12px;width:100%;min-height:94px;background:#e4606026;border-radius:8px}.finalLimitText{text-align:center;max-width:100%;word-wrap:break-word;font-family:Inter,sans-serif;font-size:14px;line-height:20px;color:#5d7285}.finalLimitLink{font-family:Inter,sans-serif;font-weight:600;font-size:14px;line-height:20px;color:#1c7ef1;text-align:center;cursor:pointer;text-decoration:none}.finalLimitLink:hover{text-decoration:underline}.toastWrapper{position:fixed;bottom:1rem;right:1rem;z-index:9999}.toast{width:100%}.base-container{margin-top:1.5rem;display:flex;flex-direction:column;gap:1.25rem;width:490px;height:428px}.icon-disabled{pointer-events:none;position:absolute;right:1rem;top:1rem;color:#b6c7d6}.centered-overlay{position:absolute;left:50%;top:50%;z-index:1000;height:100%;width:100%;transform:translate(-50%,-50%)}.buttons-container{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-start}.buttons-container PButton{flex:1 1 100%}._loaderOverlay_cpu73_1[data-v-9e697525]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;background:#ffffffb3;border-radius:16px;z-index:99}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
+ import { a as o, i as r } from "./index-BqAKjNzC.js";
3
3
  export {
4
4
  o as PEditUserContact,
5
5
  r as PEmailOrPhoneInput
@@ -1,6 +1,6 @@
1
1
  import { ref as n, defineComponent as L, createElementBlock as p, openBlock as v, normalizeClass as c, createVNode as w, unref as _, computed as T, renderSlot as d, createCommentVNode as h, createElementVNode as i, toDisplayString as y, createTextVNode as f } from "vue";
2
2
  import { PLoader as $ } from "@profeat/ui-kit";
3
- import { _ as b, g as C, p as R } from "./index-BUZIaUqq.js";
3
+ import { _ as b, g as C, p as R } from "./index-BqAKjNzC.js";
4
4
  function g(s) {
5
5
  const e = Math.floor(s / 60), a = s % 60;
6
6
  return `${String(e).padStart(2, "0")}:${String(a).padStart(2, "0")}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yourgoods/ui-smart",
3
- "version": "0.53.12",
3
+ "version": "0.53.14",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -1,48 +0,0 @@
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;
@@ -1,26 +0,0 @@
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;
@@ -1,64 +0,0 @@
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;
@@ -1,25 +0,0 @@
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;
@@ -1,75 +0,0 @@
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;
@@ -1,66 +0,0 @@
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;
@@ -1,74 +0,0 @@
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;
@@ -1,57 +0,0 @@
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;
@@ -1,65 +0,0 @@
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;
@@ -1,33 +0,0 @@
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
- };
@@ -1,55 +0,0 @@
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;