@huyooo/ui 0.11.5 → 0.11.7
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-CSHkDxQT.js → AuthkitAppSetting-DrX6fwKt.js} +11 -10
- package/dist/{useEnsureAuthenticated-Cc64hF1O.js → AuthkitGithubBinding-r2oVuCSV.js} +631 -680
- package/dist/{Clipboard-CRZDADLE.js → Clipboard-ChMNfcO5.js} +1 -1
- package/dist/{Contact-Y0Yczmc9.js → Contact-Yqmjh47e.js} +2 -2
- package/dist/{FeedbackItem-D7MpOmoM.js → FeedbackItem-DHp_C0pN.js} +3 -3
- package/dist/{FeedbackModal-CvNF1D-5.js → FeedbackModal-Dzl0Alp7.js} +3 -3
- package/dist/{MessageHandle-B12koVQL.js → MessageHandle-BcRjYeVi.js} +2 -2
- package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-DxDn6Ok8.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BOtgTje-.js} +2 -2
- package/dist/{PaySubscriptions-B8jAtG5n.js → PaySubscriptions-BsU0XmXf.js} +2 -2
- package/dist/PricingPlans-Cf20-GqK.js +251 -0
- package/dist/{ReferrerReferees-D_Iiw9wZ.js → ReferrerReferees-B-ISyXHw.js} +4 -4
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-CbVSY_vt.js → Upload.vue_vue_type_script_setup_true_lang-CDWyo3RL.js} +1 -1
- package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-DpVadjMH.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-Czix4_tj.js} +8 -8
- package/dist/{WidthContainer-B6d4xrGT.js → WidthContainer-CYYbzXj0.js} +20 -19
- package/dist/{apiClients-DVz12LeW.js → apiClients-KFp-rs-C.js} +19 -19
- package/dist/authkit.js +31 -29
- package/dist/common/globalConfig.d.ts +2 -0
- package/dist/common.js +1 -1
- package/dist/composables/Billing/useBillingPlans.d.ts +29 -1
- package/dist/composables.js +41 -40
- package/dist/feedback.js +3 -3
- package/dist/main.d.ts +1 -0
- package/dist/main.js +674 -642
- package/dist/message.js +3 -3
- package/dist/pay.js +3 -3
- package/dist/privateCom.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAppsAuthPageInfo-Du5d6VK-.js → useAuthkitAppsAuthPageInfo-B9_VzVkQ.js} +1 -1
- package/dist/useAuthkitAuth-Doj5VYjK.js +170 -0
- package/dist/{useAuthkitCreateAndUpdate-Bc9D5C6R.js → useAuthkitCreateAndUpdate-DomftQMK.js} +1 -1
- package/dist/useAuthkitUsersProfile-FJnHJad-.js +36 -0
- package/dist/{useDownloads-BFx1a-f9.js → useDownloads-CzC3gLUV.js} +1 -1
- package/dist/useEnsureAuthenticated-D78tsddF.js +56 -0
- package/dist/{useLegalLinks-Deksq9h-.js → useLegalLinks-OGVbqXVy.js} +2 -2
- package/dist/{useMessageNotifications-DY5xKtif.js → useMessageNotifications-DeHFJFcX.js} +1 -1
- package/dist/{useSEO-CvfzTZA9.js → useSEO-BZhVKEZr.js} +2 -2
- package/dist/useSubscriptionCheckout-BubIsxjO.js +386 -0
- package/dist/{useTableHandle-D71P3Ez_.js → useTableHandle-jw0P7-2a.js} +1 -1
- package/dist/{useUploadCos-N5pim6q1.js → useUploadCos-keDKcs0j.js} +1 -1
- package/dist/user.js +1 -1
- package/dist/utils/legacyApi.d.ts +18 -0
- package/package.json +1 -1
- package/dist/PricingPlans-CO26OcbJ.js +0 -210
- package/dist/useAuthkitUsersProfile-CQGyvL7g.js +0 -201
- package/dist/useSubscriptionCheckout-BgQJN61l.js +0 -345
package/dist/authkit.js
CHANGED
|
@@ -1,40 +1,42 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import { A as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import {
|
|
7
|
-
import { u as
|
|
1
|
+
import { A as a, B as s, E as u, a as e, b as h, O as A, P as r, c as o, _ as k, d as n, S as d, e as p, u as P } from "./AuthkitAppSetting-DrX6fwKt.js";
|
|
2
|
+
import { A as l, a as m, b as g, c as S, d as O, e as c, f as L, _ as U, g as w, O as x, h as E, P as b, i as B, j as C, k as y, R as I, S as V, l as _, m as v, n as G, o as R, p as D, q as M } from "./AuthkitGithubBinding-r2oVuCSV.js";
|
|
3
|
+
import { u as q } from "./useAuthkitAppsAuthPageInfo-B9_VzVkQ.js";
|
|
4
|
+
import { u as K } from "./useAuthkitAuth-Doj5VYjK.js";
|
|
5
|
+
import { u as Y } from "./apiClients-KFp-rs-C.js";
|
|
6
|
+
import { u as H } from "./useEnsureAuthenticated-D78tsddF.js";
|
|
7
|
+
import { L as N, a as Q, b as W, u as X } from "./useLegalLinks-OGVbqXVy.js";
|
|
8
|
+
import { u as $ } from "./useAuthkitUsersProfile-FJnHJad-.js";
|
|
9
|
+
import { u as it } from "./useAuthkitCreateAndUpdate-DomftQMK.js";
|
|
8
10
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
a as AuthkitAppSetting,
|
|
12
|
+
l as AuthkitAuth,
|
|
13
|
+
m as AuthkitAuthContainer,
|
|
14
|
+
g as AuthkitAuthModal,
|
|
15
|
+
S as AuthkitAuthTitle,
|
|
14
16
|
O as AuthkitAuthorize,
|
|
15
17
|
c as AuthkitBindEmail,
|
|
16
18
|
s as AuthkitBindPhone,
|
|
17
19
|
u as AuthkitEmailBinding,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
e as AuthkitEmailUpdate,
|
|
21
|
+
h as AuthkitEmailVerify,
|
|
20
22
|
L as AuthkitGithubBinding,
|
|
21
23
|
A as AuthkitOAuthBinding,
|
|
22
24
|
U as AuthkitOAuthCallbackProvider,
|
|
23
25
|
w as AuthkitOauthCallback,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
x as AuthkitOauthItem,
|
|
27
|
+
E as AuthkitOauthList,
|
|
28
|
+
b as AuthkitPasswordAuth,
|
|
29
|
+
r as AuthkitPasswordUpdate,
|
|
28
30
|
B as AuthkitPasswordUpdateAndVerify,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
+
o as AuthkitPersonalInformation,
|
|
32
|
+
k as AuthkitPhoneBinding,
|
|
31
33
|
C as AuthkitPhonePasswordUpdateAndVerify,
|
|
32
|
-
|
|
34
|
+
n as AuthkitPhoneVerify,
|
|
33
35
|
y as AuthkitProvider,
|
|
34
36
|
I as AuthkitResetPassword,
|
|
35
37
|
d as AuthkitSendVerifyCode,
|
|
36
38
|
V as AuthkitServiceAgreementAndPrivacyProtection,
|
|
37
|
-
|
|
39
|
+
p as AuthkitSetPassword,
|
|
38
40
|
_ as AuthkitSignIn,
|
|
39
41
|
v as AuthkitSignInPhone,
|
|
40
42
|
G as AuthkitSignUp,
|
|
@@ -44,12 +46,12 @@ export {
|
|
|
44
46
|
N as LEGAL_DOCS,
|
|
45
47
|
Q as LEGAL_DOC_KEYS,
|
|
46
48
|
W as buildLegalLinkUrl,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
q as useAuthkitAppsAuthPageInfo,
|
|
50
|
+
K as useAuthkitAuth,
|
|
51
|
+
Y as useAuthkitAuthModal,
|
|
52
|
+
it as useAuthkitCreateAndUpdate,
|
|
53
|
+
$ as useAuthkitUsersProfile,
|
|
54
|
+
H as useEnsureAuthenticated,
|
|
53
55
|
X as useLegalLinks,
|
|
54
|
-
|
|
56
|
+
P as useOauth
|
|
55
57
|
};
|
|
@@ -48,6 +48,8 @@ export interface SetGlobalConfigOptions {
|
|
|
48
48
|
appId: string;
|
|
49
49
|
/** 应用主题:light / dark / system,全局生效(body.dark + Arco) */
|
|
50
50
|
theme?: GlobalTheme;
|
|
51
|
+
/** 旧版 ones-server API 前缀别名;新代码请使用 onesPrefixUrl */
|
|
52
|
+
prefixUrl?: string;
|
|
51
53
|
/** ones-server API前缀 - 默认 '/onesRestfulApi' */
|
|
52
54
|
onesPrefixUrl?: string;
|
|
53
55
|
/** auth-server API前缀 - 默认 '/authRestfulApi' */
|
package/dist/common.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, a as o, C as r, D as t, G as p, H as n, b as l, S as m, W as u } from "./WidthContainer-
|
|
1
|
+
import { A as s, a as o, C as r, D as t, G as p, H as n, b as l, S as m, W as u } from "./WidthContainer-CYYbzXj0.js";
|
|
2
2
|
import { C as d, a as f } from "./CollapseItem-DUzZA6tx.js";
|
|
3
3
|
import { C as x, E as b } from "./CustomTable-BUkwlbzN.js";
|
|
4
4
|
import { L } from "./Logo-D7fyXyB-.js";
|
|
@@ -52,6 +52,15 @@ export interface BillingSubscription {
|
|
|
52
52
|
endedAt?: string | null;
|
|
53
53
|
createAt?: string;
|
|
54
54
|
}
|
|
55
|
+
export interface BillingTrial {
|
|
56
|
+
id: string;
|
|
57
|
+
productId: string;
|
|
58
|
+
productName?: string;
|
|
59
|
+
priceId?: string;
|
|
60
|
+
status: string;
|
|
61
|
+
startAt?: string | null;
|
|
62
|
+
endAt?: string | null;
|
|
63
|
+
}
|
|
55
64
|
export interface BillingFeatureItem {
|
|
56
65
|
title: string;
|
|
57
66
|
description: string;
|
|
@@ -177,6 +186,23 @@ export declare function useBillingPlans(defaultInterval?: BillingInterval | Bill
|
|
|
177
186
|
endedAt?: string | null | undefined;
|
|
178
187
|
createAt?: string | undefined;
|
|
179
188
|
} | null>;
|
|
189
|
+
currentTrial: import('vue').Ref<{
|
|
190
|
+
id: string;
|
|
191
|
+
productId: string;
|
|
192
|
+
productName?: string | undefined;
|
|
193
|
+
priceId?: string | undefined;
|
|
194
|
+
status: string;
|
|
195
|
+
startAt?: string | null | undefined;
|
|
196
|
+
endAt?: string | null | undefined;
|
|
197
|
+
} | null, BillingTrial | {
|
|
198
|
+
id: string;
|
|
199
|
+
productId: string;
|
|
200
|
+
productName?: string | undefined;
|
|
201
|
+
priceId?: string | undefined;
|
|
202
|
+
status: string;
|
|
203
|
+
startAt?: string | null | undefined;
|
|
204
|
+
endAt?: string | null | undefined;
|
|
205
|
+
} | null>;
|
|
180
206
|
listLoading: import('vue').Ref<boolean, boolean>;
|
|
181
207
|
currentLoading: import('vue').Ref<boolean, boolean>;
|
|
182
208
|
billingInterval: import('vue').Ref<`day:${number}` | `month:${number}` | `year:${number}` | `week:${number}`, `day:${number}` | `month:${number}` | `year:${number}` | `week:${number}`>;
|
|
@@ -185,13 +211,15 @@ export declare function useBillingPlans(defaultInterval?: BillingInterval | Bill
|
|
|
185
211
|
isCurrentPlan: (plan: BillingPlan) => boolean;
|
|
186
212
|
isSameProduct: (plan: BillingPlan) => boolean;
|
|
187
213
|
isRecommendedPlan: (plan: BillingPlan) => boolean;
|
|
214
|
+
isFreePlan: (plan: BillingPlan) => boolean;
|
|
215
|
+
isPlanActionDisabled: (plan: BillingPlan) => boolean;
|
|
188
216
|
getDisplayPrice: (plan: BillingPlan) => number;
|
|
189
217
|
getDisplayOriginalPrice: (plan: BillingPlan) => number | undefined;
|
|
190
218
|
getDisplayCycle: (plan: BillingPlan) => string;
|
|
191
219
|
getPromotionLabel: (plan: BillingPlan) => string;
|
|
192
220
|
getBadgeLabel: (plan: BillingPlan) => "" | "当前方案" | "最受欢迎";
|
|
193
221
|
getBadgeLabels: (plan: BillingPlan) => BillingPlanBadge[];
|
|
194
|
-
getButtonLabel: (plan: BillingPlan) => "当前方案" | "立即订阅" | "切换周期" | "升级方案" | "切换方案";
|
|
222
|
+
getButtonLabel: (plan: BillingPlan) => "当前方案" | "已订阅付费方案" | "免费开通" | "免费注册" | "立即订阅" | "切换周期" | "升级方案" | "切换方案";
|
|
195
223
|
getPlanSummary: (plan: BillingPlan, index: number) => string;
|
|
196
224
|
getFeatureItems: (features: BillingProductFeature[]) => BillingFeatureItem[];
|
|
197
225
|
getFeatureGroups: (features: BillingProductFeature[]) => BillingFeatureGroup[];
|
package/dist/composables.js
CHANGED
|
@@ -1,43 +1,44 @@
|
|
|
1
|
-
import { u as a
|
|
2
|
-
import { g as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as x } from "./
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import {
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
1
|
+
import { u as a } from "./useAuthkitAuth-Doj5VYjK.js";
|
|
2
|
+
import { g as u, a as t, b as r, s as i, c as n, d as f, u as l } from "./apiClients-KFp-rs-C.js";
|
|
3
|
+
import { u as m } from "./useLegalLinks-OGVbqXVy.js";
|
|
4
|
+
import { u as g } from "./useAuthkitUsersProfile-FJnHJad-.js";
|
|
5
|
+
import { u as x } from "./useAuthkitAppsAuthPageInfo-B9_VzVkQ.js";
|
|
6
|
+
import { u as b } from "./useAuthkitCreateAndUpdate-DomftQMK.js";
|
|
7
|
+
import { u as c } from "./useMessageNotifications-DeHFJFcX.js";
|
|
8
|
+
import { u as P, a as M } from "./useDownloads-CzC3gLUV.js";
|
|
9
|
+
import { u as S } from "./useTableHandle-jw0P7-2a.js";
|
|
10
|
+
import { f as w, a as E, g as T, u as R, b as v, c as D, d as G, e as L, w as y } from "./useSEO-BZhVKEZr.js";
|
|
11
|
+
import { u as H } from "./useUploadCos-keDKcs0j.js";
|
|
12
|
+
import { u as N } from "./useUserMenu-ClPBlvaM.js";
|
|
13
|
+
import { u as j, a as q } from "./useSubscriptionCheckout-BubIsxjO.js";
|
|
13
14
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
15
|
+
w as findActiveMenuPath,
|
|
16
|
+
E as findMenuPath,
|
|
17
|
+
T as getPathOnly,
|
|
18
|
+
u as globalConfig,
|
|
19
|
+
t as globalSEOConfig,
|
|
20
|
+
r as globalThemeRef,
|
|
21
|
+
i as setGlobalConfig,
|
|
22
|
+
n as setGlobalSEOConfig,
|
|
23
|
+
f as setTheme,
|
|
24
|
+
R as useActiveDoc,
|
|
25
|
+
v as useAuthMenu,
|
|
26
|
+
x as useAuthkitAppsAuthPageInfo,
|
|
26
27
|
a as useAuthkitAuth,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
28
|
+
l as useAuthkitAuthModal,
|
|
29
|
+
b as useAuthkitCreateAndUpdate,
|
|
30
|
+
g as useAuthkitUsersProfile,
|
|
31
|
+
j as useBillingPlans,
|
|
32
|
+
P as useCommonCreateAndUpdate,
|
|
33
|
+
M as useDownloads,
|
|
34
|
+
m as useLegalLinks,
|
|
35
|
+
c as useMessageNotifications,
|
|
36
|
+
D as useRoutePermission,
|
|
37
|
+
G as useRouteSEO,
|
|
38
|
+
L as useSEO,
|
|
39
|
+
q as useSubscriptionCheckout,
|
|
40
|
+
S as useTableHandle,
|
|
41
|
+
H as useUploadCos,
|
|
42
|
+
N as useUserMenu,
|
|
43
|
+
y as withViewTransition
|
|
43
44
|
};
|
package/dist/feedback.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as b, a as s, F as d, b as F, c, d as o, R as t } from "./FeedbackModal-
|
|
2
|
-
import { C as r } from "./Clipboard-
|
|
3
|
-
import { F as m, a as n, b as f, c as i, d as p } from "./FeedbackItem-
|
|
1
|
+
import { B as b, a as s, F as d, b as F, c, d as o, R as t } from "./FeedbackModal-Dzl0Alp7.js";
|
|
2
|
+
import { C as r } from "./Clipboard-ChMNfcO5.js";
|
|
3
|
+
import { F as m, a as n, b as f, c as i, d as p } from "./FeedbackItem-DHp_C0pN.js";
|
|
4
4
|
export {
|
|
5
5
|
r as Clipboard,
|
|
6
6
|
b as FeedbackBubbleEnd,
|
package/dist/main.d.ts
CHANGED
|
@@ -13,3 +13,4 @@ export * from './download';
|
|
|
13
13
|
export * from './privateCom';
|
|
14
14
|
export { createHead, type CreateClientHeadOptions, type VueHeadPlugin, } from './head';
|
|
15
15
|
export { auth, billing, ones, log, ai, webhook } from './utils/apiClients';
|
|
16
|
+
export { api, type LegacyApiRequestConfig, type LegacyApiResponse } from './utils/legacyApi';
|