@huyooo/ui 0.11.2 → 0.11.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AuthkitAppSetting-CjQiWZab.js +1914 -0
- package/dist/{Clipboard---tG2Zxz.js → Clipboard-ChMNfcO5.js} +1 -1
- package/dist/{Contact-BEUbBGiB.js → Contact-Yqmjh47e.js} +8 -7
- package/dist/{CustomTable-CVZ4mFzi.js → CustomTable-BUkwlbzN.js} +3 -2
- package/dist/{FeedbackItem-CN041vTm.js → FeedbackItem-DHp_C0pN.js} +3 -3
- package/dist/FeedbackModal-Dzl0Alp7.js +1050 -0
- package/dist/LandingPageFAQ-CZJXvor9.js +80 -0
- package/dist/LandingPageLinkGroup-DDNRivMt.js +521 -0
- package/dist/LandingPageSectionHeader-D_74W4My.js +69 -0
- package/dist/{LandingPageSectionTabs-B6ZVxR47.js → LandingPageSectionTabs-Ce3_Rc2L.js} +354 -426
- package/dist/MessageHandle-BcRjYeVi.js +924 -0
- package/dist/MessageList-Bo6YCfRO.js +233 -0
- package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-F6neJUg3.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BOtgTje-.js} +2 -2
- package/dist/PaySubscriptions-BsU0XmXf.js +515 -0
- package/dist/PricingPlans-BfVy4xU0.js +210 -0
- package/dist/ReferrerReferees-CHSoGrE1.js +106 -0
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-D_-oMTOo.js → Upload.vue_vue_type_script_setup_true_lang-CDWyo3RL.js} +1 -1
- package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-B4tD8pIE.js +508 -0
- package/dist/WidthContainer-BzS-A143.js +693 -0
- package/dist/{apiClients-9b4zNZ2S.js → apiClients-KFp-rs-C.js} +79 -73
- package/dist/authkit.d.ts +7 -0
- package/dist/authkit.js +52 -45
- package/dist/common/globalConfig.d.ts +4 -2
- package/dist/common/userMenuModal.d.ts +1 -0
- package/dist/common.js +2 -2
- package/dist/components/Authkit/AppSetting/AuthkitOAuthBinding.vue.d.ts +31 -0
- package/dist/components/Authkit/AppSetting/AuthkitPhoneBinding.vue.d.ts +14 -0
- package/dist/components/Authkit/AppSetting/AuthkitPhoneVerify.vue.d.ts +66 -0
- package/dist/components/Authkit/Auth/AuthkitBindPhone.vue.d.ts +27 -0
- package/dist/components/Authkit/Auth/AuthkitEmailUpdate.vue.d.ts +11 -1
- package/dist/components/Authkit/Auth/AuthkitOauthCallback.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitOauthItem.vue.d.ts +1 -1
- package/dist/components/Authkit/Auth/AuthkitPasswordAuth.vue.d.ts +11 -1
- package/dist/components/Authkit/Auth/AuthkitPhonePasswordUpdateAndVerify.vue.d.ts +68 -0
- package/dist/components/Authkit/Auth/AuthkitSignInEmailCode.vue.d.ts +68 -0
- package/dist/components/Authkit/Auth/AuthkitSwitchSignUpOrResetPassword.vue.d.ts +15 -3
- package/dist/components/Authkit/AuthkitOAuthCallbackProvider.vue.d.ts +11 -0
- package/dist/components/Authkit/AuthkitProvider.vue.d.ts +45 -0
- package/dist/components/Feedback/FeedbackBubbleEnd.vue.d.ts +9 -0
- package/dist/components/Feedback/FeedbackBubbleStart.vue.d.ts +11 -6
- package/dist/components/LandingPage/LandingPageSections.vue.d.ts +1 -1
- package/dist/components/Pay/PaySubscriptions.vue.d.ts +2 -1
- package/dist/components/Pay/PricingFAQ.vue.d.ts +17 -0
- package/dist/components/Pay/PricingPlans.vue.d.ts +12 -0
- package/dist/components/UserMenu/UserMenuModals.vue.d.ts +2 -2
- package/dist/components/UserMenu/parts/UserSubscriptionBaseInformation.vue.d.ts +8 -0
- package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +26 -0
- package/dist/composables/Authkit/useAuthkitAuth.d.ts +21 -9
- package/dist/composables/Authkit/useEnsureAuthenticated.d.ts +26 -0
- package/dist/composables/Authkit/useOauth.d.ts +4 -1
- package/dist/composables/Billing/useBillingPlans.d.ts +201 -0
- package/dist/composables/Billing/useBillingSubscriptionSummary.d.ts +280 -0
- package/dist/composables/Billing/useSubscriptionCheckout.d.ts +12 -0
- package/dist/composables/UserMenu/useUserMenu.d.ts +5 -1
- package/dist/composables.d.ts +2 -0
- package/dist/composables.js +25 -22
- package/dist/feedback.js +3 -3
- package/dist/index-D3Kp6R4z.js +4 -0
- package/dist/landingPage.js +42 -40
- package/dist/main.d.ts +1 -0
- package/dist/main.js +677 -631
- package/dist/message.js +19 -18
- package/dist/pay.d.ts +5 -0
- package/dist/pay.js +9 -2
- package/dist/privateCom.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/api/auth.generated.d.ts +103 -39
- package/dist/types/api/billing.generated.d.ts +61 -28
- package/dist/types/api.d.ts +1 -1
- package/dist/types/app.d.ts +14 -0
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAppsAuthPageInfo-494yLvsu.js → useAuthkitAppsAuthPageInfo-B9_VzVkQ.js} +20 -7
- package/dist/{useAuthkitCreateAndUpdate-DyRtFxZS.js → useAuthkitCreateAndUpdate-DomftQMK.js} +1 -1
- package/dist/useAuthkitUsersProfile-D4h6OOdR.js +201 -0
- package/dist/{useDownloads-DaeIY0E9.js → useDownloads-CzC3gLUV.js} +1 -1
- package/dist/useEnsureAuthenticated-C_Ss0e9n.js +2247 -0
- package/dist/{useLegalLinks-CPbWqlu6.js → useLegalLinks-OGVbqXVy.js} +2 -2
- package/dist/{useMessageNotifications-Dg5q-C_o.js → useMessageNotifications-DeHFJFcX.js} +1 -1
- package/dist/{useSEO-CXX9dcBx.js → useSEO--jTDDkXk.js} +2 -2
- package/dist/useSubscriptionCheckout-CQ6wHuLI.js +345 -0
- package/dist/{useTableHandle-Cjq4gcC0.js → useTableHandle-jw0P7-2a.js} +1 -1
- package/dist/{useUploadCos-DiJmmbRf.js → useUploadCos-keDKcs0j.js} +501 -515
- package/dist/useUserMenu-ClPBlvaM.js +44 -0
- package/dist/user.js +12 -13
- package/dist/utils/apiMiddlewares.d.ts +6 -0
- package/dist/utils/legacyApi.d.ts +18 -0
- package/package.json +1 -1
- package/dist/AuthkitAppSetting-BCrLMpLg.js +0 -1322
- package/dist/AuthkitSignInPhone-DmCQ2fWs.js +0 -1721
- package/dist/FeedbackModal-aI28o-w5.js +0 -1053
- package/dist/LandingPageSectionHeader-Cs1x8i3q.js +0 -584
- package/dist/MessageHandle-BV1nKlxs.js +0 -1147
- package/dist/PaySubscriptions-B3gI1Eme.js +0 -408
- package/dist/ReferrerReferees-DJzPo7X5.js +0 -106
- package/dist/UserAccountMenu-CJ9KKVYa.js +0 -371
- package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-ClAXNSgl.js +0 -81
- package/dist/WidthContainer-BG10rumn.js +0 -669
- package/dist/useAuthkitUsersProfile-lGlQP54m.js +0 -186
- package/dist/useUserMenu-B3HKZKJ4.js +0 -43
|
@@ -13,12 +13,12 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
13
13
|
appId: string;
|
|
14
14
|
needBindIdentity?: boolean;
|
|
15
15
|
}) => any;
|
|
16
|
-
error: (message: string) => any;
|
|
17
16
|
needBindIdentity: (data: {
|
|
18
17
|
token: string;
|
|
19
18
|
userId: string;
|
|
20
19
|
appId: string;
|
|
21
20
|
}) => any;
|
|
21
|
+
error: (message: string) => any;
|
|
22
22
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
23
|
onSuccess?: ((data: {
|
|
24
24
|
token: string;
|
|
@@ -26,11 +26,11 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
26
26
|
appId: string;
|
|
27
27
|
needBindIdentity?: boolean;
|
|
28
28
|
}) => any) | undefined;
|
|
29
|
-
onError?: ((message: string) => any) | undefined;
|
|
30
29
|
onNeedBindIdentity?: ((data: {
|
|
31
30
|
token: string;
|
|
32
31
|
userId: string;
|
|
33
32
|
appId: string;
|
|
34
33
|
}) => any) | undefined;
|
|
34
|
+
onError?: ((message: string) => any) | undefined;
|
|
35
35
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
36
36
|
export default _default;
|
|
@@ -33,5 +33,5 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
33
33
|
}>> & Readonly<{}>, {
|
|
34
34
|
label: string;
|
|
35
35
|
icon: string;
|
|
36
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
36
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLButtonElement>;
|
|
37
37
|
export default _default;
|
|
@@ -10,6 +10,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
10
10
|
required: true;
|
|
11
11
|
default: () => boolean;
|
|
12
12
|
};
|
|
13
|
+
allowPhone: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
13
17
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
18
|
submit: (...args: any[]) => void;
|
|
15
19
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -22,9 +26,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
22
26
|
required: true;
|
|
23
27
|
default: () => boolean;
|
|
24
28
|
};
|
|
29
|
+
allowPhone: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
25
33
|
}>> & Readonly<{
|
|
26
34
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
27
|
-
}>, {
|
|
35
|
+
}>, {
|
|
36
|
+
allowPhone: boolean;
|
|
37
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
28
38
|
formRef: any;
|
|
29
39
|
}, HTMLDivElement>;
|
|
30
40
|
export default _default;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { FormSizeType } from '../../../types/auth';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
size: {
|
|
5
|
+
type: PropType<FormSizeType>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
loading: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
required: true;
|
|
11
|
+
default: () => boolean;
|
|
12
|
+
};
|
|
13
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
submit: (...args: any[]) => void;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
16
|
+
size: {
|
|
17
|
+
type: PropType<FormSizeType>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
loading: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
required: true;
|
|
23
|
+
default: () => boolean;
|
|
24
|
+
};
|
|
25
|
+
}>> & Readonly<{
|
|
26
|
+
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
28
|
+
formRef: any;
|
|
29
|
+
SendVerifyCodeRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
30
|
+
size: {
|
|
31
|
+
type: PropType<FormSizeType>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
loading: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
required: true;
|
|
37
|
+
default: () => boolean;
|
|
38
|
+
};
|
|
39
|
+
}>> & Readonly<{
|
|
40
|
+
onSend?: ((...args: any[]) => any) | undefined;
|
|
41
|
+
}>, {
|
|
42
|
+
startCountFn: () => void;
|
|
43
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
44
|
+
send: (...args: any[]) => void;
|
|
45
|
+
}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
46
|
+
P: {};
|
|
47
|
+
B: {};
|
|
48
|
+
D: {};
|
|
49
|
+
C: {};
|
|
50
|
+
M: {};
|
|
51
|
+
Defaults: {};
|
|
52
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
53
|
+
size: {
|
|
54
|
+
type: PropType<FormSizeType>;
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
57
|
+
loading: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
required: true;
|
|
60
|
+
default: () => boolean;
|
|
61
|
+
};
|
|
62
|
+
}>> & Readonly<{
|
|
63
|
+
onSend?: ((...args: any[]) => any) | undefined;
|
|
64
|
+
}>, {
|
|
65
|
+
startCountFn: () => void;
|
|
66
|
+
}, {}, {}, {}, {}> | null;
|
|
67
|
+
}, HTMLDivElement>;
|
|
68
|
+
export default _default;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { FormSizeType } from '../../../types/auth';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
size: {
|
|
5
|
+
type: PropType<FormSizeType>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
loading: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
required: true;
|
|
11
|
+
default: () => boolean;
|
|
12
|
+
};
|
|
13
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
submit: (...args: any[]) => void;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
16
|
+
size: {
|
|
17
|
+
type: PropType<FormSizeType>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
loading: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
required: true;
|
|
23
|
+
default: () => boolean;
|
|
24
|
+
};
|
|
25
|
+
}>> & Readonly<{
|
|
26
|
+
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
28
|
+
formRef: any;
|
|
29
|
+
SendVerifyCodeRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
30
|
+
size: {
|
|
31
|
+
type: PropType<FormSizeType>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
loading: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
required: true;
|
|
37
|
+
default: () => boolean;
|
|
38
|
+
};
|
|
39
|
+
}>> & Readonly<{
|
|
40
|
+
onSend?: ((...args: any[]) => any) | undefined;
|
|
41
|
+
}>, {
|
|
42
|
+
startCountFn: () => void;
|
|
43
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
44
|
+
send: (...args: any[]) => void;
|
|
45
|
+
}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
46
|
+
P: {};
|
|
47
|
+
B: {};
|
|
48
|
+
D: {};
|
|
49
|
+
C: {};
|
|
50
|
+
M: {};
|
|
51
|
+
Defaults: {};
|
|
52
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
53
|
+
size: {
|
|
54
|
+
type: PropType<FormSizeType>;
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
57
|
+
loading: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
required: true;
|
|
60
|
+
default: () => boolean;
|
|
61
|
+
};
|
|
62
|
+
}>> & Readonly<{
|
|
63
|
+
onSend?: ((...args: any[]) => any) | undefined;
|
|
64
|
+
}>, {
|
|
65
|
+
startCountFn: () => void;
|
|
66
|
+
}, {}, {}, {}, {}> | null;
|
|
67
|
+
}, HTMLDivElement>;
|
|
68
|
+
export default _default;
|
|
@@ -1,8 +1,20 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
showSignUp: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
7
|
switchSignUp: (...args: any[]) => void;
|
|
3
8
|
switchResetPassword: (...args: any[]) => void;
|
|
4
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
10
|
+
showSignUp: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
}>> & Readonly<{
|
|
5
15
|
onSwitchSignUp?: ((...args: any[]) => any) | undefined;
|
|
6
16
|
onSwitchResetPassword?: ((...args: any[]) => any) | undefined;
|
|
7
|
-
}>, {
|
|
17
|
+
}>, {
|
|
18
|
+
showSignUp: boolean;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
8
20
|
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
bindIdentityRedirect?: string;
|
|
3
|
+
closePopupOnBindSuccess?: boolean;
|
|
4
|
+
restoreRedirectAfterSignIn?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
bindIdentityRedirect: string;
|
|
8
|
+
closePopupOnBindSuccess: boolean;
|
|
9
|
+
restoreRedirectAfterSignIn: boolean;
|
|
10
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { SetGlobalConfigOptions } from '../../common/globalConfig';
|
|
2
|
+
import { FormSizeType } from '../../types/auth';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
config?: SetGlobalConfigOptions;
|
|
5
|
+
handleOAuthCallback?: boolean;
|
|
6
|
+
restoreSession?: boolean;
|
|
7
|
+
fetchAppInfo?: boolean;
|
|
8
|
+
showAuthModal?: boolean;
|
|
9
|
+
authModalSize?: FormSizeType;
|
|
10
|
+
bindIdentityRedirect?: string;
|
|
11
|
+
closePopupOnBindSuccess?: boolean;
|
|
12
|
+
restoreRedirectAfterSignIn?: boolean;
|
|
13
|
+
};
|
|
14
|
+
declare function __VLS_template(): {
|
|
15
|
+
attrs: Partial<{}>;
|
|
16
|
+
slots: {
|
|
17
|
+
default?(_: {}): any;
|
|
18
|
+
};
|
|
19
|
+
refs: {};
|
|
20
|
+
rootEl: any;
|
|
21
|
+
};
|
|
22
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
23
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
|
+
toUserServiceAgreement: () => any;
|
|
25
|
+
toPrivacyPolicy: () => any;
|
|
26
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
27
|
+
onToUserServiceAgreement?: (() => any) | undefined;
|
|
28
|
+
onToPrivacyPolicy?: (() => any) | undefined;
|
|
29
|
+
}>, {
|
|
30
|
+
bindIdentityRedirect: string;
|
|
31
|
+
closePopupOnBindSuccess: boolean;
|
|
32
|
+
restoreRedirectAfterSignIn: boolean;
|
|
33
|
+
handleOAuthCallback: boolean;
|
|
34
|
+
restoreSession: boolean;
|
|
35
|
+
fetchAppInfo: boolean;
|
|
36
|
+
showAuthModal: boolean;
|
|
37
|
+
authModalSize: FormSizeType;
|
|
38
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
39
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
40
|
+
export default _default;
|
|
41
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
42
|
+
new (): {
|
|
43
|
+
$slots: S;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -13,6 +13,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
13
13
|
type: StringConstructor;
|
|
14
14
|
default: string;
|
|
15
15
|
};
|
|
16
|
+
avatarText: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
16
20
|
bubbleStyle: {
|
|
17
21
|
type: ObjectConstructor;
|
|
18
22
|
default: () => {
|
|
@@ -44,6 +48,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
44
48
|
type: StringConstructor;
|
|
45
49
|
default: string;
|
|
46
50
|
};
|
|
51
|
+
avatarText: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
47
55
|
bubbleStyle: {
|
|
48
56
|
type: ObjectConstructor;
|
|
49
57
|
default: () => {
|
|
@@ -64,6 +72,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
64
72
|
value: string;
|
|
65
73
|
type: string;
|
|
66
74
|
avatarUrl: string;
|
|
75
|
+
avatarText: string;
|
|
67
76
|
bubbleStyle: Record<string, any>;
|
|
68
77
|
showRefresh: boolean;
|
|
69
78
|
showClipboard: boolean;
|
|
@@ -13,6 +13,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
13
13
|
type: StringConstructor;
|
|
14
14
|
default: string;
|
|
15
15
|
};
|
|
16
|
+
avatarText: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
16
20
|
bubbleStyle: {
|
|
17
21
|
type: ObjectConstructor;
|
|
18
22
|
default: () => {
|
|
@@ -23,9 +27,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
23
27
|
type: BooleanConstructor;
|
|
24
28
|
default: boolean;
|
|
25
29
|
};
|
|
26
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
27
|
-
"footer-click": (...args: any[]) => void;
|
|
28
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
30
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
29
31
|
value: {
|
|
30
32
|
type: StringConstructor;
|
|
31
33
|
required: false;
|
|
@@ -40,6 +42,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
40
42
|
type: StringConstructor;
|
|
41
43
|
default: string;
|
|
42
44
|
};
|
|
45
|
+
avatarText: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
43
49
|
bubbleStyle: {
|
|
44
50
|
type: ObjectConstructor;
|
|
45
51
|
default: () => {
|
|
@@ -50,12 +56,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
50
56
|
type: BooleanConstructor;
|
|
51
57
|
default: boolean;
|
|
52
58
|
};
|
|
53
|
-
}>> & Readonly<{
|
|
54
|
-
"onFooter-click"?: ((...args: any[]) => any) | undefined;
|
|
55
|
-
}>, {
|
|
59
|
+
}>> & Readonly<{}>, {
|
|
56
60
|
value: string;
|
|
57
61
|
type: string;
|
|
58
62
|
avatarUrl: string;
|
|
63
|
+
avatarText: string;
|
|
59
64
|
bubbleStyle: Record<string, any>;
|
|
60
65
|
showClipboard: boolean;
|
|
61
66
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -15,8 +15,8 @@ interface Props {
|
|
|
15
15
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
16
16
|
reverse: boolean;
|
|
17
17
|
title: string;
|
|
18
|
-
imageAlt: string;
|
|
19
18
|
features: Feature[];
|
|
19
|
+
imageAlt: string;
|
|
20
20
|
subTitle: string;
|
|
21
21
|
imageUrl: string;
|
|
22
22
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { OpenSubscriptionsOptions } from '../../composables/UserMenu/useUserMenu';
|
|
2
|
+
declare function setData(data: OpenSubscriptionsOptions | null, state: boolean): void;
|
|
2
3
|
declare const _default: import('vue').DefineComponent<{}, {
|
|
3
4
|
setData: typeof setData;
|
|
4
5
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface PricingFAQItem {
|
|
2
|
+
question: string;
|
|
3
|
+
answer: string;
|
|
4
|
+
}
|
|
5
|
+
type __VLS_Props = {
|
|
6
|
+
title?: string;
|
|
7
|
+
subtitle?: string;
|
|
8
|
+
activeKeys?: number[];
|
|
9
|
+
faqItems?: PricingFAQItem[];
|
|
10
|
+
};
|
|
11
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
|
+
title: string;
|
|
13
|
+
subtitle: string;
|
|
14
|
+
activeKeys: number[];
|
|
15
|
+
faqItems: PricingFAQItem[];
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BillingInterval, BillingIntervalKey } from '../../composables/Billing/useBillingPlans';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
appName?: string;
|
|
4
|
+
defaultInterval?: BillingInterval | BillingIntervalKey;
|
|
5
|
+
note?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
8
|
+
appName: string;
|
|
9
|
+
defaultInterval: BillingInterval | BillingIntervalKey;
|
|
10
|
+
note: string;
|
|
11
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
12
|
+
export default _default;
|
|
@@ -24,7 +24,7 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
24
24
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
25
25
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
|
-
setData: (
|
|
27
|
+
setData: (data: import('../../composables/UserMenu/useUserMenu').OpenSubscriptionsOptions | null, state: boolean) => void;
|
|
28
28
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
29
29
|
confirm: (...args: any[]) => void;
|
|
30
30
|
cancel: (...args: any[]) => void;
|
|
@@ -39,7 +39,7 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
39
39
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
40
40
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
41
41
|
}>, {
|
|
42
|
-
setData: (
|
|
42
|
+
setData: (data: import('../../composables/UserMenu/useUserMenu').OpenSubscriptionsOptions | null, state: boolean) => void;
|
|
43
43
|
}, {}, {}, {}, {}> | null;
|
|
44
44
|
messageHandleRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
45
45
|
openNotification: () => void;
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
currentVersionName?: string;
|
|
3
3
|
expireDate?: string;
|
|
4
|
+
pointsBalance?: number;
|
|
5
|
+
pendingInvoiceTotal?: number;
|
|
6
|
+
loading?: boolean;
|
|
4
7
|
canUpgrade?: boolean;
|
|
8
|
+
actionLabel?: string;
|
|
5
9
|
};
|
|
6
10
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
11
|
upgradeHandle: () => any;
|
|
12
|
+
payHandle: () => any;
|
|
8
13
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
14
|
onUpgradeHandle?: (() => any) | undefined;
|
|
15
|
+
onPayHandle?: (() => any) | undefined;
|
|
10
16
|
}>, {
|
|
17
|
+
loading: boolean;
|
|
11
18
|
currentVersionName: string;
|
|
12
19
|
expireDate: string;
|
|
13
20
|
canUpgrade: boolean;
|
|
21
|
+
actionLabel: string;
|
|
14
22
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
15
23
|
export default _default;
|
|
@@ -28,6 +28,19 @@ export declare function useAuthkitAppsAuthPageInfo(): {
|
|
|
28
28
|
enabled: boolean;
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
+
authMethods: {
|
|
32
|
+
login: {
|
|
33
|
+
emailPassword: boolean;
|
|
34
|
+
phonePassword: boolean;
|
|
35
|
+
phoneCode: boolean;
|
|
36
|
+
emailCode: boolean;
|
|
37
|
+
passkey: boolean;
|
|
38
|
+
};
|
|
39
|
+
signUp: {
|
|
40
|
+
email: boolean;
|
|
41
|
+
phone: boolean;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
31
44
|
authorizationCallback: string;
|
|
32
45
|
aboutUs: {
|
|
33
46
|
personalInformationCollectionList: {
|
|
@@ -88,6 +101,19 @@ export declare function useAuthkitAppsAuthPageInfo(): {
|
|
|
88
101
|
enabled: boolean;
|
|
89
102
|
};
|
|
90
103
|
};
|
|
104
|
+
authMethods: {
|
|
105
|
+
login: {
|
|
106
|
+
emailPassword: boolean;
|
|
107
|
+
phonePassword: boolean;
|
|
108
|
+
phoneCode: boolean;
|
|
109
|
+
emailCode: boolean;
|
|
110
|
+
passkey: boolean;
|
|
111
|
+
};
|
|
112
|
+
signUp: {
|
|
113
|
+
email: boolean;
|
|
114
|
+
phone: boolean;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
91
117
|
authorizationCallback: string;
|
|
92
118
|
aboutUs: {
|
|
93
119
|
personalInformationCollectionList: {
|
|
@@ -20,6 +20,7 @@ type Cleanup = () => void;
|
|
|
20
20
|
declare function restoreSession(): boolean;
|
|
21
21
|
declare function getToken(): string | null;
|
|
22
22
|
declare function setToken(token: string): void;
|
|
23
|
+
declare function completeSignIn(data: SignInResult): void;
|
|
23
24
|
/** 清除 token 并广播 onSignOut(让所有订阅者集中清理依赖 token 的状态) */
|
|
24
25
|
declare function clearAuth(): void;
|
|
25
26
|
/** 注册登录成功监听,返回 cleanup */
|
|
@@ -32,21 +33,31 @@ declare function onResetPassword(listener: VoidListener): Cleanup;
|
|
|
32
33
|
declare function onSignOut(listener: VoidListener): Cleanup;
|
|
33
34
|
export declare function useAuthkitAuth(): {
|
|
34
35
|
signInSubmit: (state: {
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
identifier?: string;
|
|
37
|
+
email?: string;
|
|
38
|
+
password?: string;
|
|
39
|
+
code?: string;
|
|
40
|
+
emailVerifyId?: string;
|
|
41
|
+
method?: "password" | "code";
|
|
37
42
|
}) => Promise<void>;
|
|
38
43
|
signUpSubmit: (state: {
|
|
39
|
-
email
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
44
|
+
type?: "email" | "phone";
|
|
45
|
+
email?: string;
|
|
46
|
+
phone?: string;
|
|
47
|
+
code?: string;
|
|
48
|
+
userToken?: string;
|
|
49
|
+
password?: string;
|
|
50
|
+
emailVerifyId?: string;
|
|
43
51
|
referrerId?: string;
|
|
44
52
|
}) => Promise<void>;
|
|
45
53
|
resetPasswordSubmit: (state: {
|
|
46
|
-
email
|
|
47
|
-
|
|
54
|
+
method?: "email" | "phone";
|
|
55
|
+
email?: string;
|
|
56
|
+
phone?: string;
|
|
57
|
+
userToken?: string;
|
|
58
|
+
code?: string;
|
|
48
59
|
password: string;
|
|
49
|
-
emailVerifyId
|
|
60
|
+
emailVerifyId?: string;
|
|
50
61
|
}) => Promise<void>;
|
|
51
62
|
currentView: import('vue').Ref<"signIn" | "signUp" | "resetPassword", "signIn" | "signUp" | "resetPassword">;
|
|
52
63
|
authSignInLoading: import('vue').Ref<boolean, boolean>;
|
|
@@ -62,6 +73,7 @@ export declare function useAuthkitAuth(): {
|
|
|
62
73
|
jwtToken: Readonly<import('vue').Ref<string | null, string | null>>;
|
|
63
74
|
getToken: typeof getToken;
|
|
64
75
|
setToken: typeof setToken;
|
|
76
|
+
completeSignIn: typeof completeSignIn;
|
|
65
77
|
restoreSession: typeof restoreSession;
|
|
66
78
|
clearAuth: typeof clearAuth;
|
|
67
79
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* 业务动作前的登录守卫。
|
|
4
|
+
*
|
|
5
|
+
* 设计理念(双轨制):
|
|
6
|
+
* - 拦截器只做兜底:清理 token、必要时弹登录框。
|
|
7
|
+
* - 业务动作主动判断:未登录直接弹登录框、保存 pending intent,
|
|
8
|
+
* 登录成功后自动恢复用户原本要做的事,避免“先发请求再报错”的体验。
|
|
9
|
+
*/
|
|
10
|
+
type PendingIntent = () => void | Promise<void>;
|
|
11
|
+
export interface UseEnsureAuthenticatedReturn {
|
|
12
|
+
/** 响应式登录态,可用于按钮 disabled、徽标显示等 */
|
|
13
|
+
isAuthenticatedRef: ComputedRef<boolean>;
|
|
14
|
+
/** 同步判断登录态,用于条件分支(如是否调用需登录的接口) */
|
|
15
|
+
isAuthenticated: () => boolean;
|
|
16
|
+
/**
|
|
17
|
+
* 业务动作守卫:
|
|
18
|
+
* - 已登录:返回 true,调用方继续执行。
|
|
19
|
+
* - 未登录:打开登录框、记录 intent,返回 false;登录成功后自动重放 intent。
|
|
20
|
+
*/
|
|
21
|
+
ensureAuthenticated: (intent?: PendingIntent) => boolean;
|
|
22
|
+
/** 主动放弃 pending intent(如离开页面、用户取消) */
|
|
23
|
+
clearPendingIntent: () => void;
|
|
24
|
+
}
|
|
25
|
+
export declare function useEnsureAuthenticated(): UseEnsureAuthenticatedReturn;
|
|
26
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** 获取当前 OAuth 回调地址 */
|
|
2
2
|
declare function getOauthCallbackUrl(): string;
|
|
3
3
|
/** 发起 OAuth 登录(通用方法) */
|
|
4
|
-
declare function startOauth(provider: 'github' | 'google' | 'microsoft', options?: {
|
|
4
|
+
declare function startOauth(provider: 'github' | 'google' | 'microsoft' | 'wechat', options?: {
|
|
5
5
|
referrerId?: string;
|
|
6
6
|
}): Promise<void>;
|
|
7
7
|
/** GitHub OAuth 登录 */
|
|
@@ -10,10 +10,13 @@ declare function githubAuth(referrerId?: string): void;
|
|
|
10
10
|
declare function googleAuth(referrerId?: string): void;
|
|
11
11
|
/** Microsoft OAuth 登录 */
|
|
12
12
|
declare function microsoftAuth(referrerId?: string): void;
|
|
13
|
+
/** 微信开放平台扫码登录 */
|
|
14
|
+
declare function wechatAuth(referrerId?: string): void;
|
|
13
15
|
export declare function useOauth(): {
|
|
14
16
|
githubAuth: typeof githubAuth;
|
|
15
17
|
googleAuth: typeof googleAuth;
|
|
16
18
|
microsoftAuth: typeof microsoftAuth;
|
|
19
|
+
wechatAuth: typeof wechatAuth;
|
|
17
20
|
startOauth: typeof startOauth;
|
|
18
21
|
getOauthCallbackUrl: typeof getOauthCallbackUrl;
|
|
19
22
|
};
|