@huyooo/ui 1.0.3 → 1.0.4
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-BN8-xgNq.js +2674 -0
- package/dist/{Contact-M6iyuyNL.js → Contact-DBH8CyKp.js} +105 -113
- package/dist/CustomTable-BzGfaAVH.js +276 -0
- package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-B9BqGWm8.js +1480 -0
- package/dist/LandingPageDescription-BczWZHKy.js +12 -0
- package/dist/{LandingPageLinkGroup-DDNRivMt.js → LandingPageLinkGroup-r-t3H1X0.js} +87 -88
- package/dist/LandingPageSectionHeader-CVAqc7bx.js +137 -0
- package/dist/{LandingPageSectionTabs-Ce3_Rc2L.js → LandingPageSectionTabs-DhKpOj5F.js} +300 -309
- package/dist/LegalDocViewer-DlaLKGyX.js +2501 -0
- package/dist/Menu-uCexrsKP.js +199 -0
- package/dist/MessageHandle-mEkCsv9e.js +1173 -0
- package/dist/MessageList-Ce-_LNTk.js +244 -0
- package/dist/PaySubscriptions-CXkEjqr2.js +1326 -0
- package/dist/PricingPlans-DoWP5aX7.js +427 -0
- package/dist/ReferrerReferees-DgygiIiE.js +237 -0
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-B6NOZjK0.js → Upload.vue_vue_type_script_setup_true_lang-VGh2V4o0.js} +1 -1
- package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-zgjpFVln.js +592 -0
- package/dist/WidthContainer-PeWkCK0p.js +721 -0
- package/dist/{apiClients-DrGX2iJy.js → apiClients-BcXOLuYu.js} +131 -98
- package/dist/authkit.d.ts +6 -2
- package/dist/authkit.js +53 -44
- package/dist/common/authProviderIcons.d.ts +12 -0
- package/dist/common/globalConfig.d.ts +5 -0
- package/dist/common/tableColumnWidths.d.ts +11 -0
- package/dist/common.js +3 -3
- package/dist/components/AuthProviderIcon.vue.d.ts +12 -0
- package/dist/components/Authkit/AppSetting/AuthkitEmailVerify.vue.d.ts +2 -2
- package/dist/components/Authkit/AppSetting/AuthkitOAuthBinding.vue.d.ts +2 -1
- package/dist/components/Authkit/AppSetting/AuthkitPasskeyBinding.vue.d.ts +14 -0
- package/dist/components/Authkit/AppSetting/AuthkitPasswordUpdate.vue.d.ts +11 -1
- package/dist/components/Authkit/AppSetting/AuthkitPersonalInformation.vue.d.ts +1 -3
- package/dist/components/Authkit/AppSetting/AuthkitPhoneVerify.vue.d.ts +13 -3
- package/dist/components/Authkit/Auth/AuthkitBindEmail.vue.d.ts +29 -2
- package/dist/components/Authkit/Auth/AuthkitBindPhone.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitEmailUpdate.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitOauthItem.vue.d.ts +37 -9
- package/dist/components/Authkit/Auth/AuthkitOauthList.vue.d.ts +7 -11
- package/dist/components/Authkit/Auth/AuthkitPasswordUpdateAndVerify.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitPhonePasswordUpdateAndVerify.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitServiceAgreementAndPrivacyProtection.vue.d.ts +11 -7
- package/dist/components/Authkit/Auth/AuthkitSignInEmailCode.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitSignInPhone.vue.d.ts +3 -62
- package/dist/components/Authkit/Auth/AuthkitSignUpPhone.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitSwitchSignUpOrResetPassword.vue.d.ts +9 -0
- package/dist/components/Authkit/AuthkitAuth.vue.d.ts +2 -8
- package/dist/components/Authkit/AuthkitAuthModal.vue.d.ts +0 -4
- package/dist/components/Authkit/AuthkitProvider.vue.d.ts +5 -2
- package/dist/components/Authkit/AuthkitSendVerifyCode.vue.d.ts +2 -1
- package/dist/components/CustomTable.vue.d.ts +27 -1
- package/dist/components/Ellipsis.vue.d.ts +2 -6
- package/dist/components/Feedback/FeedbackList.vue.d.ts +4 -1
- package/dist/components/Gradientbackground.vue.d.ts +2 -2
- package/dist/components/HeaderMenus.vue.d.ts +4 -1
- package/dist/components/InfiniteLoading.vue.d.ts +1 -1
- package/dist/components/LandingPage/LandingPageContainer.vue.d.ts +2 -2
- package/dist/components/LandingPage/LandingPagePageContent.vue.d.ts +2 -2
- package/dist/components/LegalDoc/LegalDocViewer.vue.d.ts +7 -0
- package/dist/components/Menu.vue.d.ts +2 -1
- package/dist/components/MenuItem.vue.d.ts +3 -1
- package/dist/components/Message/MessageAppMessage.vue.d.ts +12 -2
- package/dist/components/Message/MessageDetails.vue.d.ts +9 -161
- package/dist/components/Message/MessageHandle.vue.d.ts +16 -4
- package/dist/components/Message/MessageList.vue.d.ts +4 -3
- package/dist/components/Message/MessageNotificationDetails.vue.d.ts +13 -0
- package/dist/components/Message/messageBody/DescriptionsMessageBody.vue.d.ts +3 -0
- package/dist/components/Message/messageBody/JsonMessageBodyFallback.vue.d.ts +3 -0
- package/dist/components/Message/messageBody/TextMessageBody.vue.d.ts +3 -0
- package/dist/components/Message/messageBody/descriptionRows.d.ts +14 -0
- package/dist/components/Message/messageBody/descriptionsMessageBody.d.ts +32 -0
- package/dist/components/Message/messageBody/descriptionsValueRender.d.ts +4 -0
- package/dist/components/Message/messageBody/messageBodyRegistry.d.ts +9 -0
- package/dist/components/Message/messageBody/registerBuiltinMessageBodies.d.ts +2 -0
- package/dist/components/Message/messageBody/types.d.ts +7 -0
- package/dist/components/Referrer/ReferrerRefereeCell.vue.d.ts +7 -0
- package/dist/components/Referrer/ReferrerReferees.vue.d.ts +1 -0
- package/dist/components/UserMenu/UserAccountMenu.vue.d.ts +1 -16
- package/dist/components/UserMenu/UserMenuItem.vue.d.ts +4 -0
- package/dist/components/UserMenu/UserMenuModals.vue.d.ts +18 -4
- package/dist/components/UserMenu/parts/UserAvatar.vue.d.ts +6 -0
- package/dist/components/UserMenu/parts/UserBasicInformation.vue.d.ts +7 -2
- package/dist/composables/Authkit/fetchAuthPageAboutUs.d.ts +3 -0
- package/dist/composables/Authkit/resolveRoutePermission.d.ts +2 -0
- package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +16 -0
- package/dist/composables/Authkit/useAuthkitAuth.d.ts +2 -0
- package/dist/composables/Authkit/useAuthkitPasskey.d.ts +10 -0
- package/dist/composables/Authkit/useLegalDocHostActions.d.ts +6 -0
- package/dist/composables/Authkit/useLegalDocs.d.ts +19 -0
- package/dist/composables/Authkit/useOauth.d.ts +17 -4
- package/dist/composables/Authkit/useRegistrationTerms.d.ts +24 -0
- package/dist/composables/Authkit/verifyCodeCooldown.d.ts +19 -0
- package/dist/composables/Billing/useBillingPlans.d.ts +0 -4
- package/dist/composables/Billing/useBillingStatusOptions.d.ts +2 -6
- package/dist/composables/Billing/useBillingSubscriptionSummary.d.ts +16 -0
- package/dist/composables/Billing/usePaidProductOptions.d.ts +5 -0
- package/dist/composables/Message/messageCenterBadgeCounts.d.ts +28 -0
- package/dist/composables/UserMenu/useUserMenuBadgeCounts.d.ts +9 -0
- package/dist/composables/useInfiniteList.d.ts +19 -0
- package/dist/composables/useMessageNotifications.d.ts +3 -6
- package/dist/composables.d.ts +4 -2
- package/dist/composables.js +50 -45
- package/dist/feedback.d.ts +1 -0
- package/dist/feedback.js +12 -11
- package/dist/fetchAuthPageAboutUs-dzTSwRsB.js +25 -0
- package/dist/{Clipboard-Bo7gdpR6.js → index-BkLvw1PU.js} +1 -1
- package/dist/landingPage.js +21 -21
- package/dist/legalDocs/buildBuiltinUrl.d.ts +3 -0
- package/dist/{utils/legalLinks.d.ts → legalDocs/constants.d.ts} +0 -10
- package/dist/legalDocs/index.d.ts +7 -0
- package/dist/legalDocs/isConfigured.d.ts +7 -0
- package/dist/legalDocs/open.d.ts +3 -0
- package/dist/legalDocs/resolveAppId.d.ts +8 -0
- package/dist/legalDocs/resolveTarget.d.ts +4 -0
- package/dist/legalDocs/types.d.ts +12 -0
- package/dist/main.js +320 -308
- package/dist/message.d.ts +3 -0
- package/dist/message.js +301 -21
- package/dist/pay.d.ts +1 -1
- package/dist/pay.js +14 -17
- 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 +1385 -328
- package/dist/types/api/billing.generated.d.ts +907 -76
- package/dist/types/api/ones.generated.d.ts +131 -2
- package/dist/types/api.d.ts +1 -0
- package/dist/types/app.d.ts +10 -0
- package/dist/types/user.d.ts +1 -0
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAppsAuthPageInfo-C2yKgl8t.js → useAuthkitAppsAuthPageInfo-CNudJd04.js} +18 -17
- package/dist/useAuthkitAuth-3m0yW6uP.js +267 -0
- package/dist/{useAuthkitCreateAndUpdate-oo9517Gj.js → useAuthkitCreateAndUpdate-BsINsI-E.js} +1 -1
- package/dist/{useAuthkitUsersProfile-BZDk21c8.js → useAuthkitUsersProfile-DJlMsftY.js} +3 -3
- package/dist/useBillingStatusOptions-CfHQOFNw.js +71 -0
- package/dist/{useEnsureAuthenticated-BuIbxqsO.js → useEnsureAuthenticated-DNkCCy_Y.js} +2 -2
- package/dist/useLegalDocs-DQP_Yq6B.js +106 -0
- package/dist/{useMessageNotifications-D85_-mDq.js → useMessageNotifications-CAphguOm.js} +21 -24
- package/dist/useRoutePermission-CEiya9AM.js +218 -0
- package/dist/useSEO-CDWxbk8B.js +221 -0
- package/dist/useSubscriptionCheckout-d_M_rKRa.js +368 -0
- package/dist/{useUploadCos-BRKRzSy3.js → useUploadCos-C8BqFPkx.js} +1 -1
- package/dist/user.js +1 -1
- package/dist/userMenuModal-D-nDaYqM.js +66 -0
- package/dist/utils/apiMiddlewares.d.ts +5 -5
- package/dist/utils/apiResponse.d.ts +11 -0
- package/dist/utils/authProviderIcon.d.ts +3 -0
- package/dist/utils/authkit.d.ts +20 -7
- package/dist/utils/formatPoints.d.ts +8 -0
- package/dist/utils/messageNotificationContent.d.ts +4 -0
- package/dist/utils/messageTextLink.d.ts +9 -0
- package/dist/utils/passkeySupport.d.ts +8 -0
- package/dist/utils/pointsFlowTypes.d.ts +10 -0
- package/dist/utils/pointsHistoryDisplay.d.ts +8 -0
- package/dist/utils/refundStatusDisplay.d.ts +1 -0
- package/dist/utils/subscriptionDisplay.d.ts +7 -0
- package/dist/utils/userDisplay.d.ts +41 -0
- package/package.json +11 -3
- package/dist/AuthkitAppSetting-C-0uuLSg.js +0 -1921
- package/dist/AuthkitGithubBinding-C5zEy9zN.js +0 -2207
- package/dist/CustomTable-nsxN4Ja4.js +0 -276
- package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-M1NQ-rx-.js +0 -1396
- package/dist/LandingPageFAQ-CZJXvor9.js +0 -80
- package/dist/LandingPageSectionHeader-D_74W4My.js +0 -69
- package/dist/Menu-Cy2ZPeaz.js +0 -170
- package/dist/MessageHandle-BG12aX0i.js +0 -924
- package/dist/MessageList-CrCF8mU6.js +0 -233
- package/dist/MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-gsjL6yAe.js +0 -142
- package/dist/PaySubscriptions-lWnEioX5.js +0 -1241
- package/dist/PricingPlans-DFcjOMWS.js +0 -404
- package/dist/ReferrerReferees-Cn7KaO8z.js +0 -106
- package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-P0X1Exyu.js +0 -520
- package/dist/WidthContainer-CF3qOLWW.js +0 -688
- package/dist/components/Feedback/FeedbackDetails.vue.d.ts +0 -178
- package/dist/composables/Authkit/useLegalLinks.d.ts +0 -34
- package/dist/index-D3Kp6R4z.js +0 -4
- package/dist/useAuthkitAuth-DmS-H7M2.js +0 -175
- package/dist/useBillingStatusOptions-B7xLU3fs.js +0 -145
- package/dist/useLegalLinks-Cwr45PBT.js +0 -60
- package/dist/useRoutePermission-CaWtjLRA.js +0 -212
- package/dist/useSEO-BSMQdBR9.js +0 -158
- package/dist/useSubscriptionCheckout-BRk5h9aC.js +0 -365
- package/dist/useTableHandle-BdujaiNX.js +0 -69
- /package/dist/components/{Feedback/FeedbackVideoPreview.vue.d.ts → VideoPreview.vue.d.ts} +0 -0
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import { nextTick } from 'vue';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
-
id: {
|
|
4
|
-
type: StringConstructor;
|
|
5
|
-
required: true;
|
|
6
|
-
default: () => string;
|
|
7
|
-
};
|
|
8
|
-
senderRole: {
|
|
9
|
-
type: StringConstructor;
|
|
10
|
-
required: true;
|
|
11
|
-
validator: (value: string) => boolean;
|
|
12
|
-
};
|
|
13
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
14
|
-
id: {
|
|
15
|
-
type: StringConstructor;
|
|
16
|
-
required: true;
|
|
17
|
-
default: () => string;
|
|
18
|
-
};
|
|
19
|
-
senderRole: {
|
|
20
|
-
type: StringConstructor;
|
|
21
|
-
required: true;
|
|
22
|
-
validator: (value: string) => boolean;
|
|
23
|
-
};
|
|
24
|
-
}>> & Readonly<{}>, {
|
|
25
|
-
id: string;
|
|
26
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
27
|
-
scrollableContentRef: HTMLDivElement;
|
|
28
|
-
senderRef: ({
|
|
29
|
-
$: import('vue').ComponentInternalInstance;
|
|
30
|
-
$data: {};
|
|
31
|
-
$props: Partial<{}> & Omit<{
|
|
32
|
-
readonly onKeyPress?: import('node_modules/ant-design-x-vue/typings/sender/interface').KeyboardEventHandler | undefined;
|
|
33
|
-
readonly onFocus?: import('ant-design-vue/es/_util/EventInterface').FocusEventHandler | undefined;
|
|
34
|
-
readonly onBlur?: import('ant-design-vue/es/_util/EventInterface').FocusEventHandler | undefined;
|
|
35
|
-
readonly prefixCls?: string | undefined;
|
|
36
|
-
readonly defaultValue?: string | undefined;
|
|
37
|
-
readonly value?: string | undefined;
|
|
38
|
-
readonly loading?: boolean | undefined;
|
|
39
|
-
readonly placeholder?: string | number | undefined;
|
|
40
|
-
readonly readOnly?: boolean | undefined;
|
|
41
|
-
readonly submitType?: import('node_modules/ant-design-x-vue/typings/sender/interface').SubmitType | undefined;
|
|
42
|
-
readonly disabled?: boolean | undefined;
|
|
43
|
-
readonly sendDisabled?: boolean | undefined;
|
|
44
|
-
readonly onSubmit?: ((message: string) => void) | undefined;
|
|
45
|
-
readonly onChange?: ((value: string, event?: import('node_modules/ant-design-x-vue/typings/sender/interface').ChangeEvent) => void) | undefined;
|
|
46
|
-
readonly onCancel?: VoidFunction | undefined;
|
|
47
|
-
readonly onKeyDown?: import('node_modules/ant-design-x-vue/typings/sender/interface').KeyboardEventHandler | undefined;
|
|
48
|
-
readonly onPaste?: import('node_modules/ant-design-x-vue/typings/sender/interface').ClipboardEventHandler | undefined;
|
|
49
|
-
readonly onPasteFile?: ((firstFile: File, files: FileList) => void) | undefined;
|
|
50
|
-
readonly components?: import('node_modules/ant-design-x-vue/typings/sender/interface').SenderComponents | undefined;
|
|
51
|
-
readonly styles?: {
|
|
52
|
-
prefix?: import('vue').CSSProperties;
|
|
53
|
-
input?: import('vue').CSSProperties;
|
|
54
|
-
actions?: import('vue').CSSProperties;
|
|
55
|
-
footer?: import('vue').CSSProperties;
|
|
56
|
-
} | undefined;
|
|
57
|
-
readonly rootClassName?: string | undefined;
|
|
58
|
-
readonly classNames?: {
|
|
59
|
-
prefix?: string;
|
|
60
|
-
input?: string;
|
|
61
|
-
actions?: string;
|
|
62
|
-
footer?: string;
|
|
63
|
-
} | undefined;
|
|
64
|
-
readonly style?: import('vue').CSSProperties | undefined;
|
|
65
|
-
readonly className?: string | undefined;
|
|
66
|
-
readonly actions?: (import('vue').VNode | import('node_modules/ant-design-x-vue/typings/sender/interface').ActionsRender | false) | undefined;
|
|
67
|
-
readonly allowSpeech?: import('node_modules/ant-design-x-vue/typings/type-utility').AvoidValidation<import('node_modules/ant-design-x-vue/typings/sender/useSpeech').AllowSpeech> | undefined;
|
|
68
|
-
readonly prefix?: (import('vue').VNode | (() => import('vue').VNode)) | undefined;
|
|
69
|
-
readonly footer?: (import('vue').VNode | import('node_modules/ant-design-x-vue/typings/sender/interface').FooterRender) | undefined;
|
|
70
|
-
readonly header?: (import('vue').VNode | (() => import('vue').VNode)) | undefined;
|
|
71
|
-
readonly autoSize?: import('node_modules/ant-design-x-vue/typings/type-utility').AvoidValidation<boolean | {
|
|
72
|
-
minRows?: number;
|
|
73
|
-
maxRows?: number;
|
|
74
|
-
}> | undefined;
|
|
75
|
-
readonly "onUpdate:value"?: ((value: string) => any) | undefined;
|
|
76
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>;
|
|
77
|
-
$attrs: {
|
|
78
|
-
[x: string]: unknown;
|
|
79
|
-
};
|
|
80
|
-
$refs: {
|
|
81
|
-
[x: string]: unknown;
|
|
82
|
-
};
|
|
83
|
-
$slots: Readonly<{
|
|
84
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
85
|
-
}>;
|
|
86
|
-
$root: import('vue').ComponentPublicInstance | null;
|
|
87
|
-
$parent: import('vue').ComponentPublicInstance | null;
|
|
88
|
-
$host: Element | null;
|
|
89
|
-
$emit: (event: "update:value", value: string) => void;
|
|
90
|
-
$el: any;
|
|
91
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('ant-design-x-vue').SenderProps> & Readonly<{
|
|
92
|
-
"onUpdate:value"?: (value: string) => any;
|
|
93
|
-
}>, {
|
|
94
|
-
nativeElement: HTMLDivElement;
|
|
95
|
-
focus: (opt: any) => any;
|
|
96
|
-
blur: () => any;
|
|
97
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
98
|
-
"update:value": (value: string) => any;
|
|
99
|
-
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
100
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
101
|
-
created?: (() => void) | (() => void)[];
|
|
102
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
103
|
-
mounted?: (() => void) | (() => void)[];
|
|
104
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
105
|
-
updated?: (() => void) | (() => void)[];
|
|
106
|
-
activated?: (() => void) | (() => void)[];
|
|
107
|
-
deactivated?: (() => void) | (() => void)[];
|
|
108
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
109
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
110
|
-
destroyed?: (() => void) | (() => void)[];
|
|
111
|
-
unmounted?: (() => void) | (() => void)[];
|
|
112
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
113
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
114
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
115
|
-
};
|
|
116
|
-
$forceUpdate: () => void;
|
|
117
|
-
$nextTick: typeof nextTick;
|
|
118
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
119
|
-
} & Readonly<{}> & Omit<Readonly<import('ant-design-x-vue').SenderProps> & Readonly<{
|
|
120
|
-
"onUpdate:value"?: (value: string) => any;
|
|
121
|
-
}>, "blur" | "focus" | "nativeElement"> & import('vue').ShallowUnwrapRef<{
|
|
122
|
-
nativeElement: HTMLDivElement;
|
|
123
|
-
focus: (opt: any) => any;
|
|
124
|
-
blur: () => any;
|
|
125
|
-
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
126
|
-
$slots: Readonly<{
|
|
127
|
-
header?(): import('vue').VNode;
|
|
128
|
-
prefix?(): import('vue').VNode;
|
|
129
|
-
actions?(props: {
|
|
130
|
-
ori: import('vue').VNode;
|
|
131
|
-
info: {
|
|
132
|
-
components: {
|
|
133
|
-
SendButton: typeof import('node_modules/ant-design-x-vue/typings/sender/components/SendButton.vue').default;
|
|
134
|
-
ClearButton: typeof import('node_modules/ant-design-x-vue/typings/sender/components/ClearButton.vue').default;
|
|
135
|
-
LoadingButton: typeof import('node_modules/ant-design-x-vue/typings/sender/components/LoadingButton.vue').default;
|
|
136
|
-
SpeechButton: typeof import('node_modules/ant-design-x-vue/typings/sender/components/SpeechButton/index.vue').default;
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
}): import('vue').VNode;
|
|
140
|
-
footer?(props: {
|
|
141
|
-
info: {
|
|
142
|
-
components: {
|
|
143
|
-
SendButton: typeof import('node_modules/ant-design-x-vue/typings/sender/components/SendButton.vue').default;
|
|
144
|
-
ClearButton: typeof import('node_modules/ant-design-x-vue/typings/sender/components/ClearButton.vue').default;
|
|
145
|
-
LoadingButton: typeof import('node_modules/ant-design-x-vue/typings/sender/components/LoadingButton.vue').default;
|
|
146
|
-
SpeechButton: typeof import('node_modules/ant-design-x-vue/typings/sender/components/SpeechButton/index.vue').default;
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
|
-
}): import('vue').VNode;
|
|
150
|
-
}> & {
|
|
151
|
-
header?(): import('vue').VNode;
|
|
152
|
-
prefix?(): import('vue').VNode;
|
|
153
|
-
actions?(props: {
|
|
154
|
-
ori: import('vue').VNode;
|
|
155
|
-
info: {
|
|
156
|
-
components: {
|
|
157
|
-
SendButton: typeof import('node_modules/ant-design-x-vue/typings/sender/components/SendButton.vue').default;
|
|
158
|
-
ClearButton: typeof import('node_modules/ant-design-x-vue/typings/sender/components/ClearButton.vue').default;
|
|
159
|
-
LoadingButton: typeof import('node_modules/ant-design-x-vue/typings/sender/components/LoadingButton.vue').default;
|
|
160
|
-
SpeechButton: typeof import('node_modules/ant-design-x-vue/typings/sender/components/SpeechButton/index.vue').default;
|
|
161
|
-
};
|
|
162
|
-
};
|
|
163
|
-
}): import('vue').VNode;
|
|
164
|
-
footer?(props: {
|
|
165
|
-
info: {
|
|
166
|
-
components: {
|
|
167
|
-
SendButton: typeof import('node_modules/ant-design-x-vue/typings/sender/components/SendButton.vue').default;
|
|
168
|
-
ClearButton: typeof import('node_modules/ant-design-x-vue/typings/sender/components/ClearButton.vue').default;
|
|
169
|
-
LoadingButton: typeof import('node_modules/ant-design-x-vue/typings/sender/components/LoadingButton.vue').default;
|
|
170
|
-
SpeechButton: typeof import('node_modules/ant-design-x-vue/typings/sender/components/SpeechButton/index.vue').default;
|
|
171
|
-
};
|
|
172
|
-
};
|
|
173
|
-
}): import('vue').VNode;
|
|
174
|
-
};
|
|
175
|
-
}) | null;
|
|
176
|
-
fileInputRef: HTMLInputElement;
|
|
177
|
-
}, HTMLDivElement>;
|
|
178
|
-
export default _default;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ComputedRef } from 'vue';
|
|
2
|
-
import { LegalDocKey } from '../../utils/legalLinks';
|
|
3
|
-
export interface LegalLink {
|
|
4
|
-
/** 后端字段 key(与 aboutUs 一致) */
|
|
5
|
-
key: LegalDocKey;
|
|
6
|
-
/** UI 展示文案 */
|
|
7
|
-
label: string;
|
|
8
|
-
/** 外链 URL(统一指向 ones 关于我们详情页) */
|
|
9
|
-
url: string;
|
|
10
|
-
/** 后端是否配置了内容(content 非空) */
|
|
11
|
-
configured: boolean;
|
|
12
|
-
/** 在新标签打开链接 */
|
|
13
|
-
open: () => void;
|
|
14
|
-
}
|
|
15
|
-
export interface UseLegalLinksReturn {
|
|
16
|
-
/** 所有法律文档(含未配置项) */
|
|
17
|
-
all: ComputedRef<LegalLink[]>;
|
|
18
|
-
/** 后端已配置的法律文档(用于直接渲染列表) */
|
|
19
|
-
items: ComputedRef<LegalLink[]>;
|
|
20
|
-
/** 取单个文档:返回完整 LegalLink 对象,用于读 URL / 自定义渲染 */
|
|
21
|
-
getLink: (key: LegalDocKey) => LegalLink | undefined;
|
|
22
|
-
/** 一行打开指定文档(最常用语法糖;未配置时静默 noop) */
|
|
23
|
-
openLegalLink: (key: LegalDocKey) => void;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* 数据驱动的法律链接:
|
|
27
|
-
* - 来源:appsAuthPageInfo 接口返回的 aboutUs 配置
|
|
28
|
-
* - URL:统一指向 ones.huyooo.com/AboutUsDetails?type=xxx&appId=yyy
|
|
29
|
-
* - 渲染:消费者按需用 items(已配置的)渲染列表,或 getLink(key) 取单项
|
|
30
|
-
*
|
|
31
|
-
* 桌面端(Electron)调用 window.open 会被主进程拦截路由到默认浏览器,与 Web 行为一致,
|
|
32
|
-
* 因此库内不需要任何 openExternal 抽象。
|
|
33
|
-
*/
|
|
34
|
-
export declare function useLegalLinks(): UseLegalLinksReturn;
|
package/dist/index-D3Kp6R4z.js
DELETED
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
import { ref as a, readonly as U } from "vue";
|
|
2
|
-
import { f as A, r as L, e as u } from "./apiClients-DrGX2iJy.js";
|
|
3
|
-
const i = a("signIn"), m = /* @__PURE__ */ new Set(), g = /* @__PURE__ */ new Set(), I = /* @__PURE__ */ new Set(), S = /* @__PURE__ */ new Set(), t = a(null), v = "jwtToken";
|
|
4
|
-
function y() {
|
|
5
|
-
try {
|
|
6
|
-
const e = localStorage.getItem(v);
|
|
7
|
-
if (e)
|
|
8
|
-
return t.value = e, !0;
|
|
9
|
-
} catch (e) {
|
|
10
|
-
console.warn("Failed to access localStorage:", e);
|
|
11
|
-
}
|
|
12
|
-
return !1;
|
|
13
|
-
}
|
|
14
|
-
function E() {
|
|
15
|
-
try {
|
|
16
|
-
const e = new URL(window.location.href), o = e.searchParams.get("token");
|
|
17
|
-
if (!o) return !1;
|
|
18
|
-
const s = e.searchParams.get("userId"), l = e.searchParams.get("appId"), f = e.searchParams.get("needBindIdentity") === "true";
|
|
19
|
-
c(o), ["token", "userId", "appId", "needBindIdentity"].forEach((w) => e.searchParams.delete(w));
|
|
20
|
-
const h = `${e.pathname}${e.search}${e.hash}`;
|
|
21
|
-
return window.history.replaceState({}, "", h), p({
|
|
22
|
-
jwtToken: o,
|
|
23
|
-
userId: s,
|
|
24
|
-
appId: l,
|
|
25
|
-
needBindIdentity: f
|
|
26
|
-
}), !0;
|
|
27
|
-
} catch (e) {
|
|
28
|
-
return console.warn("Failed to handle OAuth callback:", e), !1;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
function O() {
|
|
32
|
-
return E() ? !0 : y();
|
|
33
|
-
}
|
|
34
|
-
function V() {
|
|
35
|
-
return t.value || y() ? t.value : null;
|
|
36
|
-
}
|
|
37
|
-
function c(e) {
|
|
38
|
-
t.value = e;
|
|
39
|
-
try {
|
|
40
|
-
localStorage.setItem(v, e);
|
|
41
|
-
} catch (o) {
|
|
42
|
-
console.warn("Failed to save token to localStorage:", o);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
function j(e) {
|
|
46
|
-
c(e.jwtToken), p(e);
|
|
47
|
-
}
|
|
48
|
-
function R() {
|
|
49
|
-
t.value = null, B();
|
|
50
|
-
}
|
|
51
|
-
A(R);
|
|
52
|
-
function b() {
|
|
53
|
-
L();
|
|
54
|
-
}
|
|
55
|
-
function d(e, o) {
|
|
56
|
-
return e.add(o), () => {
|
|
57
|
-
e.delete(o);
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
function p(e) {
|
|
61
|
-
m.forEach((o) => {
|
|
62
|
-
o(e);
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
function C() {
|
|
66
|
-
g.forEach((e) => void e());
|
|
67
|
-
}
|
|
68
|
-
function F() {
|
|
69
|
-
I.forEach((e) => void e());
|
|
70
|
-
}
|
|
71
|
-
function B() {
|
|
72
|
-
S.forEach((e) => void e());
|
|
73
|
-
}
|
|
74
|
-
function $(e) {
|
|
75
|
-
return d(m, e);
|
|
76
|
-
}
|
|
77
|
-
function K(e) {
|
|
78
|
-
return d(g, e);
|
|
79
|
-
}
|
|
80
|
-
function _(e) {
|
|
81
|
-
return d(I, e);
|
|
82
|
-
}
|
|
83
|
-
function x(e) {
|
|
84
|
-
return d(S, e);
|
|
85
|
-
}
|
|
86
|
-
function N() {
|
|
87
|
-
const e = a(!1), o = a(!1), s = a(!1);
|
|
88
|
-
async function l(n) {
|
|
89
|
-
e.value = !0;
|
|
90
|
-
try {
|
|
91
|
-
const {
|
|
92
|
-
data: r,
|
|
93
|
-
error: P
|
|
94
|
-
} = await u.auth.signIn.unified.post({
|
|
95
|
-
identifier: n.identifier || n.email || "",
|
|
96
|
-
password: n.password,
|
|
97
|
-
code: n.code,
|
|
98
|
-
emailVerifyId: n.emailVerifyId,
|
|
99
|
-
method: n.method || "password"
|
|
100
|
-
});
|
|
101
|
-
if (P || !r)
|
|
102
|
-
return;
|
|
103
|
-
c(r.jwtToken), p(r);
|
|
104
|
-
} finally {
|
|
105
|
-
e.value = !1;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
async function f(n) {
|
|
109
|
-
o.value = !0;
|
|
110
|
-
const {
|
|
111
|
-
error: r
|
|
112
|
-
} = n.type === "phone" ? await u.auth.signUp.phone.post({
|
|
113
|
-
phone: n.phone || "",
|
|
114
|
-
code: n.code || "",
|
|
115
|
-
password: n.password,
|
|
116
|
-
inviteCode: n.inviteCode
|
|
117
|
-
}) : await u.auth.signUp.post({
|
|
118
|
-
email: n.email || "",
|
|
119
|
-
userToken: n.userToken || "",
|
|
120
|
-
emailVerifyId: n.emailVerifyId || "",
|
|
121
|
-
password: n.password || "",
|
|
122
|
-
inviteCode: n.inviteCode
|
|
123
|
-
});
|
|
124
|
-
o.value = !1, r || (i.value = "signIn", C());
|
|
125
|
-
}
|
|
126
|
-
async function h(n) {
|
|
127
|
-
s.value = !0;
|
|
128
|
-
const {
|
|
129
|
-
error: r
|
|
130
|
-
} = await u.auth.resetPassword.post({
|
|
131
|
-
method: n.method || "email",
|
|
132
|
-
email: n.email,
|
|
133
|
-
phone: n.phone,
|
|
134
|
-
userToken: n.userToken,
|
|
135
|
-
code: n.code,
|
|
136
|
-
emailVerifyId: n.emailVerifyId,
|
|
137
|
-
password: n.password
|
|
138
|
-
});
|
|
139
|
-
s.value = !1, r || (i.value = "signIn", F());
|
|
140
|
-
}
|
|
141
|
-
function w() {
|
|
142
|
-
i.value = "signUp";
|
|
143
|
-
}
|
|
144
|
-
function k() {
|
|
145
|
-
i.value = "resetPassword";
|
|
146
|
-
}
|
|
147
|
-
function T() {
|
|
148
|
-
i.value = "signIn";
|
|
149
|
-
}
|
|
150
|
-
return {
|
|
151
|
-
signInSubmit: l,
|
|
152
|
-
signUpSubmit: f,
|
|
153
|
-
resetPasswordSubmit: h,
|
|
154
|
-
currentView: i,
|
|
155
|
-
authSignInLoading: e,
|
|
156
|
-
authSignUpLoading: o,
|
|
157
|
-
resetPasswordLoading: s,
|
|
158
|
-
switchSignUp: w,
|
|
159
|
-
switchResetPassword: k,
|
|
160
|
-
switchSignIn: T,
|
|
161
|
-
onSignIn: $,
|
|
162
|
-
onSignUp: K,
|
|
163
|
-
onResetPassword: _,
|
|
164
|
-
onSignOut: x,
|
|
165
|
-
jwtToken: U(t),
|
|
166
|
-
getToken: V,
|
|
167
|
-
setToken: c,
|
|
168
|
-
completeSignIn: j,
|
|
169
|
-
restoreSession: O,
|
|
170
|
-
clearAuth: b
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
export {
|
|
174
|
-
N as u
|
|
175
|
-
};
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { createClient as y } from "@vafast/api-client";
|
|
2
|
-
import { g as b, i as f, t as k, j as v, k as S, h as u } from "./apiClients-DrGX2iJy.js";
|
|
3
|
-
import { ref as g } from "vue";
|
|
4
|
-
async function O(t, o) {
|
|
5
|
-
const {
|
|
6
|
-
data: r,
|
|
7
|
-
error: e
|
|
8
|
-
} = await A.request("POST", t, o);
|
|
9
|
-
if (e)
|
|
10
|
-
throw new Error(e.message ?? "请求失败");
|
|
11
|
-
if (r == null)
|
|
12
|
-
throw new Error("请求失败");
|
|
13
|
-
return r;
|
|
14
|
-
}
|
|
15
|
-
const A = y({
|
|
16
|
-
baseURL: b.billingPrefixUrl,
|
|
17
|
-
timeout: 3e4
|
|
18
|
-
}).use(f).use(k).use(v).use(S), m = {
|
|
19
|
-
productOptions: () => O("/products/options")
|
|
20
|
-
}, w = [{
|
|
21
|
-
key: "pending",
|
|
22
|
-
label: "待支付",
|
|
23
|
-
color: "orange"
|
|
24
|
-
}, {
|
|
25
|
-
key: "paying",
|
|
26
|
-
label: "支付中",
|
|
27
|
-
color: "blue"
|
|
28
|
-
}, {
|
|
29
|
-
key: "paid",
|
|
30
|
-
label: "已支付",
|
|
31
|
-
color: "green"
|
|
32
|
-
}, {
|
|
33
|
-
key: "cancelled",
|
|
34
|
-
label: "已取消",
|
|
35
|
-
color: "gray"
|
|
36
|
-
}, {
|
|
37
|
-
key: "expired",
|
|
38
|
-
label: "已过期",
|
|
39
|
-
color: "red"
|
|
40
|
-
}, {
|
|
41
|
-
key: "refunded",
|
|
42
|
-
label: "已退款",
|
|
43
|
-
color: "purple"
|
|
44
|
-
}], L = [{
|
|
45
|
-
key: "pending",
|
|
46
|
-
label: "待审核",
|
|
47
|
-
color: "orange"
|
|
48
|
-
}, {
|
|
49
|
-
key: "approved",
|
|
50
|
-
label: "已通过",
|
|
51
|
-
color: "blue"
|
|
52
|
-
}, {
|
|
53
|
-
key: "rejected",
|
|
54
|
-
label: "已拒绝",
|
|
55
|
-
color: "gray"
|
|
56
|
-
}, {
|
|
57
|
-
key: "processing",
|
|
58
|
-
label: "退款中",
|
|
59
|
-
color: "blue"
|
|
60
|
-
}, {
|
|
61
|
-
key: "success",
|
|
62
|
-
label: "已退款",
|
|
63
|
-
color: "green"
|
|
64
|
-
}, {
|
|
65
|
-
key: "failed",
|
|
66
|
-
label: "退款失败",
|
|
67
|
-
color: "red"
|
|
68
|
-
}], C = [{
|
|
69
|
-
key: "draft",
|
|
70
|
-
label: "草稿",
|
|
71
|
-
color: "gray"
|
|
72
|
-
}, {
|
|
73
|
-
key: "open",
|
|
74
|
-
label: "待支付",
|
|
75
|
-
color: "orange"
|
|
76
|
-
}, {
|
|
77
|
-
key: "paid",
|
|
78
|
-
label: "已支付",
|
|
79
|
-
color: "green"
|
|
80
|
-
}, {
|
|
81
|
-
key: "void",
|
|
82
|
-
label: "已作废",
|
|
83
|
-
color: "gray"
|
|
84
|
-
}, {
|
|
85
|
-
key: "uncollectible",
|
|
86
|
-
label: "无法收款",
|
|
87
|
-
color: "red"
|
|
88
|
-
}];
|
|
89
|
-
function d(t, o, r, e) {
|
|
90
|
-
var a;
|
|
91
|
-
const s = ((a = o == null ? void 0 : o.toLowerCase) == null ? void 0 : a.call(o)) ?? o, l = t.find((i) => i.key === o || i.key === s);
|
|
92
|
-
return l != null && l[r] ? l[r] : e;
|
|
93
|
-
}
|
|
94
|
-
function p(t, o) {
|
|
95
|
-
const r = g(!1), e = g([]);
|
|
96
|
-
async function s() {
|
|
97
|
-
if (e.value.length > 0)
|
|
98
|
-
return e.value;
|
|
99
|
-
r.value = !0;
|
|
100
|
-
try {
|
|
101
|
-
const {
|
|
102
|
-
data: n,
|
|
103
|
-
error: c
|
|
104
|
-
} = await t();
|
|
105
|
-
return c || !(n != null && n.length) ? (c && console.error("获取状态选项失败:", c), e.value = o, e.value) : (e.value = n, e.value);
|
|
106
|
-
} finally {
|
|
107
|
-
r.value = !1;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
function l() {
|
|
111
|
-
return e.value.length > 0 ? e.value : o;
|
|
112
|
-
}
|
|
113
|
-
function a(n) {
|
|
114
|
-
return d(l(), n, "label", n);
|
|
115
|
-
}
|
|
116
|
-
function i(n) {
|
|
117
|
-
return d(l(), n, "color", "gray");
|
|
118
|
-
}
|
|
119
|
-
return {
|
|
120
|
-
statusOptionsLoading: r,
|
|
121
|
-
statusOptionsList: e,
|
|
122
|
-
statusOptionsApi: s,
|
|
123
|
-
getStatusLabel: a,
|
|
124
|
-
getStatusColor: i
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
function _() {
|
|
128
|
-
return p(async () => u.pointsRecharge.statusOptions.post({}), w);
|
|
129
|
-
}
|
|
130
|
-
function E() {
|
|
131
|
-
return p(async () => u.refund.statusOptions.post({}), L);
|
|
132
|
-
}
|
|
133
|
-
function I() {
|
|
134
|
-
return p(async () => u.invoices.statusOptions.post({}), C);
|
|
135
|
-
}
|
|
136
|
-
export {
|
|
137
|
-
C as I,
|
|
138
|
-
w as P,
|
|
139
|
-
L as R,
|
|
140
|
-
_ as a,
|
|
141
|
-
E as b,
|
|
142
|
-
p as c,
|
|
143
|
-
m as d,
|
|
144
|
-
I as u
|
|
145
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { computed as c } from "vue";
|
|
2
|
-
import { g as L } from "./apiClients-DrGX2iJy.js";
|
|
3
|
-
import { u as m } from "./useAuthkitAppsAuthPageInfo-C2yKgl8t.js";
|
|
4
|
-
const l = {
|
|
5
|
-
userServiceAgreement: "用户服务协议",
|
|
6
|
-
privacyPolicy: "隐私协议",
|
|
7
|
-
personalInformationCollectionList: "个人信息收集清单",
|
|
8
|
-
thirdPartyInformationSharingList: "第三方信息共享清单",
|
|
9
|
-
licenseInformation: "证照信息"
|
|
10
|
-
}, g = Object.keys(l), d = "https://ones.huyooo.com/AboutUsDetails";
|
|
11
|
-
function A(t, e) {
|
|
12
|
-
const r = new URLSearchParams({
|
|
13
|
-
type: t,
|
|
14
|
-
appId: e
|
|
15
|
-
});
|
|
16
|
-
return `${d}?${r.toString()}`;
|
|
17
|
-
}
|
|
18
|
-
function b(t) {
|
|
19
|
-
typeof window > "u" || window.open(t, "_blank", "noopener,noreferrer");
|
|
20
|
-
}
|
|
21
|
-
function w() {
|
|
22
|
-
const {
|
|
23
|
-
appsData: t
|
|
24
|
-
} = m();
|
|
25
|
-
function e(n) {
|
|
26
|
-
var s, u;
|
|
27
|
-
const o = (u = (s = t.value) == null ? void 0 : s.aboutUs) == null ? void 0 : u[n];
|
|
28
|
-
return Array.isArray(o == null ? void 0 : o.content) && o.content.length > 0;
|
|
29
|
-
}
|
|
30
|
-
function r(n) {
|
|
31
|
-
const o = A(n, L.appId);
|
|
32
|
-
return {
|
|
33
|
-
key: n,
|
|
34
|
-
label: l[n],
|
|
35
|
-
url: o,
|
|
36
|
-
configured: e(n),
|
|
37
|
-
open: () => b(o)
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
const i = c(() => g.map(r)), f = c(() => i.value.filter((n) => n.configured));
|
|
41
|
-
function a(n) {
|
|
42
|
-
return i.value.find((o) => o.key === n);
|
|
43
|
-
}
|
|
44
|
-
function p(n) {
|
|
45
|
-
const o = a(n);
|
|
46
|
-
o && o.open();
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
all: i,
|
|
50
|
-
items: f,
|
|
51
|
-
getLink: a,
|
|
52
|
-
openLegalLink: p
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
export {
|
|
56
|
-
l as L,
|
|
57
|
-
g as a,
|
|
58
|
-
A as b,
|
|
59
|
-
w as u
|
|
60
|
-
};
|