@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.
Files changed (47) hide show
  1. package/dist/{AuthkitAppSetting-CSHkDxQT.js → AuthkitAppSetting-DrX6fwKt.js} +11 -10
  2. package/dist/{useEnsureAuthenticated-Cc64hF1O.js → AuthkitGithubBinding-r2oVuCSV.js} +631 -680
  3. package/dist/{Clipboard-CRZDADLE.js → Clipboard-ChMNfcO5.js} +1 -1
  4. package/dist/{Contact-Y0Yczmc9.js → Contact-Yqmjh47e.js} +2 -2
  5. package/dist/{FeedbackItem-D7MpOmoM.js → FeedbackItem-DHp_C0pN.js} +3 -3
  6. package/dist/{FeedbackModal-CvNF1D-5.js → FeedbackModal-Dzl0Alp7.js} +3 -3
  7. package/dist/{MessageHandle-B12koVQL.js → MessageHandle-BcRjYeVi.js} +2 -2
  8. package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-DxDn6Ok8.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BOtgTje-.js} +2 -2
  9. package/dist/{PaySubscriptions-B8jAtG5n.js → PaySubscriptions-BsU0XmXf.js} +2 -2
  10. package/dist/PricingPlans-Cf20-GqK.js +251 -0
  11. package/dist/{ReferrerReferees-D_Iiw9wZ.js → ReferrerReferees-B-ISyXHw.js} +4 -4
  12. 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
  13. 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
  14. package/dist/{WidthContainer-B6d4xrGT.js → WidthContainer-CYYbzXj0.js} +20 -19
  15. package/dist/{apiClients-DVz12LeW.js → apiClients-KFp-rs-C.js} +19 -19
  16. package/dist/authkit.js +31 -29
  17. package/dist/common/globalConfig.d.ts +2 -0
  18. package/dist/common.js +1 -1
  19. package/dist/composables/Billing/useBillingPlans.d.ts +29 -1
  20. package/dist/composables.js +41 -40
  21. package/dist/feedback.js +3 -3
  22. package/dist/main.d.ts +1 -0
  23. package/dist/main.js +674 -642
  24. package/dist/message.js +3 -3
  25. package/dist/pay.js +3 -3
  26. package/dist/privateCom.js +1 -1
  27. package/dist/referrer.js +1 -1
  28. package/dist/style.css +1 -1
  29. package/dist/upload.js +2 -2
  30. package/dist/{useAuthkitAppsAuthPageInfo-Du5d6VK-.js → useAuthkitAppsAuthPageInfo-B9_VzVkQ.js} +1 -1
  31. package/dist/useAuthkitAuth-Doj5VYjK.js +170 -0
  32. package/dist/{useAuthkitCreateAndUpdate-Bc9D5C6R.js → useAuthkitCreateAndUpdate-DomftQMK.js} +1 -1
  33. package/dist/useAuthkitUsersProfile-FJnHJad-.js +36 -0
  34. package/dist/{useDownloads-BFx1a-f9.js → useDownloads-CzC3gLUV.js} +1 -1
  35. package/dist/useEnsureAuthenticated-D78tsddF.js +56 -0
  36. package/dist/{useLegalLinks-Deksq9h-.js → useLegalLinks-OGVbqXVy.js} +2 -2
  37. package/dist/{useMessageNotifications-DY5xKtif.js → useMessageNotifications-DeHFJFcX.js} +1 -1
  38. package/dist/{useSEO-CvfzTZA9.js → useSEO-BZhVKEZr.js} +2 -2
  39. package/dist/useSubscriptionCheckout-BubIsxjO.js +386 -0
  40. package/dist/{useTableHandle-D71P3Ez_.js → useTableHandle-jw0P7-2a.js} +1 -1
  41. package/dist/{useUploadCos-N5pim6q1.js → useUploadCos-keDKcs0j.js} +1 -1
  42. package/dist/user.js +1 -1
  43. package/dist/utils/legacyApi.d.ts +18 -0
  44. package/package.json +1 -1
  45. package/dist/PricingPlans-CO26OcbJ.js +0 -210
  46. package/dist/useAuthkitUsersProfile-CQGyvL7g.js +0 -201
  47. package/dist/useSubscriptionCheckout-BgQJN61l.js +0 -345
package/dist/authkit.js CHANGED
@@ -1,40 +1,42 @@
1
- import { A as i, B as s, E as u, a as h, b as e, O as A, P as k, c as n, _ as r, d as o, S as d, e as P, u as p } from "./AuthkitAppSetting-CSHkDxQT.js";
2
- import { A as f, a as g, b as S, c as m, d as O, e as c, f as L, _ as U, g as w, O as E, h as b, P as x, 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, u as j } from "./useEnsureAuthenticated-Cc64hF1O.js";
3
- import { u as z } from "./useAuthkitAppsAuthPageInfo-Du5d6VK-.js";
4
- import { u as T, a as Y } from "./useAuthkitUsersProfile-CQGyvL7g.js";
5
- import { u as H } from "./apiClients-DVz12LeW.js";
6
- import { L as N, a as Q, b as W, u as X } from "./useLegalLinks-Deksq9h-.js";
7
- import { u as $ } from "./useAuthkitCreateAndUpdate-Bc9D5C6R.js";
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
- i as AuthkitAppSetting,
10
- f as AuthkitAuth,
11
- g as AuthkitAuthContainer,
12
- S as AuthkitAuthModal,
13
- m as AuthkitAuthTitle,
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
- h as AuthkitEmailUpdate,
19
- e as AuthkitEmailVerify,
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
- E as AuthkitOauthItem,
25
- b as AuthkitOauthList,
26
- x as AuthkitPasswordAuth,
27
- k as AuthkitPasswordUpdate,
26
+ x as AuthkitOauthItem,
27
+ E as AuthkitOauthList,
28
+ b as AuthkitPasswordAuth,
29
+ r as AuthkitPasswordUpdate,
28
30
  B as AuthkitPasswordUpdateAndVerify,
29
- n as AuthkitPersonalInformation,
30
- r as AuthkitPhoneBinding,
31
+ o as AuthkitPersonalInformation,
32
+ k as AuthkitPhoneBinding,
31
33
  C as AuthkitPhonePasswordUpdateAndVerify,
32
- o as AuthkitPhoneVerify,
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
- P as AuthkitSetPassword,
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
- z as useAuthkitAppsAuthPageInfo,
48
- T as useAuthkitAuth,
49
- H as useAuthkitAuthModal,
50
- $ as useAuthkitCreateAndUpdate,
51
- Y as useAuthkitUsersProfile,
52
- j as useEnsureAuthenticated,
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
- p as useOauth
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-B6d4xrGT.js";
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[];
@@ -1,43 +1,44 @@
1
- import { u as a, a as o } from "./useAuthkitUsersProfile-CQGyvL7g.js";
2
- import { g as t, a as r, b as i, s as n, c as f, d as l, u as p } from "./apiClients-DVz12LeW.js";
3
- import { u as h } from "./useLegalLinks-Deksq9h-.js";
4
- import { u as A } from "./useAuthkitAppsAuthPageInfo-Du5d6VK-.js";
5
- import { u as x } from "./useAuthkitCreateAndUpdate-Bc9D5C6R.js";
6
- import { u as C } from "./useMessageNotifications-DY5xKtif.js";
7
- import { u as k, a as P } from "./useDownloads-BFx1a-f9.js";
8
- import { u as O } from "./useTableHandle-D71P3Ez_.js";
9
- import { f as U, a as w, g as E, u as T, b as R, c as v, d as D, e as G, w as L } from "./useSEO-CvfzTZA9.js";
10
- import { u as B } from "./useUploadCos-N5pim6q1.js";
11
- import { u as I } from "./useUserMenu-ClPBlvaM.js";
12
- import { u as V, a as j } from "./useSubscriptionCheckout-BgQJN61l.js";
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
- U as findActiveMenuPath,
15
- w as findMenuPath,
16
- E as getPathOnly,
17
- t as globalConfig,
18
- r as globalSEOConfig,
19
- i as globalThemeRef,
20
- n as setGlobalConfig,
21
- f as setGlobalSEOConfig,
22
- l as setTheme,
23
- T as useActiveDoc,
24
- R as useAuthMenu,
25
- A as useAuthkitAppsAuthPageInfo,
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
- p as useAuthkitAuthModal,
28
- x as useAuthkitCreateAndUpdate,
29
- o as useAuthkitUsersProfile,
30
- V as useBillingPlans,
31
- k as useCommonCreateAndUpdate,
32
- P as useDownloads,
33
- h as useLegalLinks,
34
- C as useMessageNotifications,
35
- v as useRoutePermission,
36
- D as useRouteSEO,
37
- G as useSEO,
38
- j as useSubscriptionCheckout,
39
- O as useTableHandle,
40
- B as useUploadCos,
41
- I as useUserMenu,
42
- L as withViewTransition
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-CvNF1D-5.js";
2
- import { C as r } from "./Clipboard-CRZDADLE.js";
3
- import { F as m, a as n, b as f, c as i, d as p } from "./FeedbackItem-D7MpOmoM.js";
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';