@huyooo/ui 1.0.7 → 2.0.0

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 (74) hide show
  1. package/dist/AuthkitAppSetting-rtYZcSAR.js +2677 -0
  2. package/dist/{Contact-BWuVR9ho.js → Contact-CcWf3UEZ.js} +9 -9
  3. package/dist/{CustomTable-BzGfaAVH.js → CustomTable-HDwqEcmB.js} +1 -1
  4. package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-DpOmbAg-.js +1491 -0
  5. package/dist/{LegalDocViewer-DM8FYBpf.js → LegalDocViewer-C0tsIbz9.js} +747 -748
  6. package/dist/MessageHandle-BUufez4S.js +1233 -0
  7. package/dist/{MessageList-Ce-_LNTk.js → MessageList-rttvPmxV.js} +4 -4
  8. package/dist/PaySubscriptions-p75aBnHm.js +1331 -0
  9. package/dist/{PricingPlans-CV97ck9p.js → PricingPlans-CQ0qk9Hb.js} +99 -105
  10. package/dist/{ReferrerReferees-DgygiIiE.js → ReferrerReferees-BU9IEQgz.js} +47 -46
  11. package/dist/Upload.vue_vue_type_script_setup_true_lang-bh0NFq9E.js +78 -0
  12. package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-0Td42Nb3.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-DG4AuHiO.js} +64 -65
  13. package/dist/WidthContainer-DSE4QbW0.js +717 -0
  14. package/dist/api/billingSubscriptionApi.d.ts +4 -1
  15. package/dist/apiClients-Ctcq8NZs.js +245 -0
  16. package/dist/authkit.js +10 -10
  17. package/dist/common/globalConfig.d.ts +36 -18
  18. package/dist/common.js +2 -2
  19. package/dist/components/Authkit/Auth/AuthkitOauthCallback.vue.d.ts +2 -2
  20. package/dist/components/Authkit/AuthkitProvider.vue.d.ts +0 -5
  21. package/dist/components/Upload/Upload.vue.d.ts +6 -6
  22. package/dist/composables/Authkit/useAuthkitAuth.d.ts +3 -0
  23. package/dist/composables/Billing/usePaymentReturn.d.ts +1 -0
  24. package/dist/composables/uploadFeedbackAttachment.d.ts +2 -1
  25. package/dist/composables/useMessageList.d.ts +2 -1
  26. package/dist/composables.d.ts +2 -2
  27. package/dist/composables.js +46 -46
  28. package/dist/feedback.js +2 -2
  29. package/dist/{fetchAuthPageAboutUs-dzTSwRsB.js → fetchAuthPageAboutUs-DiCqMUX3.js} +4 -4
  30. package/dist/{index-BkLvw1PU.js → index-Cn6LcfZO.js} +1 -1
  31. package/dist/legalDocs/resolveAppId.d.ts +1 -1
  32. package/dist/main.d.ts +4 -3
  33. package/dist/main.js +464 -469
  34. package/dist/message.js +53 -52
  35. package/dist/pay.js +4 -4
  36. package/dist/privateCom.js +1 -1
  37. package/dist/referrer.js +1 -1
  38. package/dist/{useUploadCos-C8BqFPkx.js → runtime-BzCSCUNv.js} +2712 -2609
  39. package/dist/runtime.d.ts +18 -0
  40. package/dist/style.css +1 -1
  41. package/dist/types/api/auth.generated.d.ts +0 -10
  42. package/dist/upload/browserCosTransport.d.ts +25 -0
  43. package/dist/upload/browserUploadService.d.ts +20 -0
  44. package/dist/upload.d.ts +2 -1
  45. package/dist/upload.js +5 -4
  46. package/dist/{useAuthkitAppsAuthPageInfo-CNudJd04.js → useAuthkitAppsAuthPageInfo-DZ1p-P3Q.js} +18 -21
  47. package/dist/useAuthkitAuth-BPTZUSkM.js +272 -0
  48. package/dist/{useAuthkitCreateAndUpdate-BsINsI-E.js → useAuthkitCreateAndUpdate-Bbv7vZZn.js} +1 -1
  49. package/dist/useAuthkitUsersProfile-CW_exa7E.js +39 -0
  50. package/dist/useBillingStatusOptions-Br-iL77Z.js +61 -0
  51. package/dist/{useEnsureAuthenticated-DNkCCy_Y.js → useEnsureAuthenticated-CncOvj2H.js} +2 -2
  52. package/dist/{useLegalDocs-DQP_Yq6B.js → useLegalDocs-D44qU_q0.js} +25 -25
  53. package/dist/useMessageNotifications-D9uikt21.js +80 -0
  54. package/dist/{useRoutePermission-CEiya9AM.js → useRoutePermission-BrQX7NTq.js} +2 -2
  55. package/dist/{useSEO-CDWxbk8B.js → useSEO-_TNouXE_.js} +89 -86
  56. package/dist/useSubscriptionCheckout-BDDCRxSs.js +353 -0
  57. package/dist/user.js +1 -1
  58. package/dist/utils/apiClients.d.ts +20 -12
  59. package/dist/utils/apiMiddlewares.d.ts +9 -23
  60. package/package.json +1 -1
  61. package/dist/AuthkitAppSetting-BN8-xgNq.js +0 -2674
  62. package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-DrL_XBqf.js +0 -1481
  63. package/dist/MessageHandle-mEkCsv9e.js +0 -1173
  64. package/dist/PaySubscriptions-CXkEjqr2.js +0 -1326
  65. package/dist/Upload.vue_vue_type_script_setup_true_lang-VGh2V4o0.js +0 -76
  66. package/dist/WidthContainer-CFMQRsCy.js +0 -721
  67. package/dist/apiClients-BcXOLuYu.js +0 -272
  68. package/dist/composables/Upload/useUploadCos.d.ts +0 -12
  69. package/dist/useAuthkitAuth-3m0yW6uP.js +0 -267
  70. package/dist/useAuthkitUsersProfile-DJlMsftY.js +0 -40
  71. package/dist/useBillingStatusOptions-CfHQOFNw.js +0 -71
  72. package/dist/useMessageNotifications-CAphguOm.js +0 -75
  73. package/dist/useSubscriptionCheckout-d_M_rKRa.js +0 -368
  74. package/dist/utils/billingFetch.d.ts +0 -1
@@ -0,0 +1,353 @@
1
+ import { ref as g, computed as q } from "vue";
2
+ import { d as z } from "./useBillingStatusOptions-Br-iL77Z.js";
3
+ import { g as $ } from "./apiClients-Ctcq8NZs.js";
4
+ /* empty css */
5
+ import { Message as h } from "@arco-design/web-vue";
6
+ import { u as H } from "./useEnsureAuthenticated-CncOvj2H.js";
7
+ function D(e) {
8
+ var i;
9
+ const r = (i = e == null ? void 0 : e.metadata) == null ? void 0 : i.originalPrice;
10
+ return typeof r == "number" ? r : void 0;
11
+ }
12
+ function F(e) {
13
+ const r = D(e);
14
+ return !e || r === void 0 || r <= e.unitAmount ? 0 : r - e.unitAmount;
15
+ }
16
+ function J(e) {
17
+ const r = F(e);
18
+ return r > 0 ? `优惠 ¥${p(r)}` : "";
19
+ }
20
+ function p(e) {
21
+ return e === void 0 ? 0 : Math.floor(e / 100);
22
+ }
23
+ function N(e, r = 1) {
24
+ const i = r > 1 ? `每 ${r} ` : "按";
25
+ switch (e) {
26
+ case "month":
27
+ return `${i}月订阅`;
28
+ case "year":
29
+ return `${i}年订阅`;
30
+ case "day":
31
+ return `${i}天订阅`;
32
+ case "week":
33
+ return `${i}周订阅`;
34
+ default:
35
+ return "";
36
+ }
37
+ }
38
+ function W(e) {
39
+ const r = e != null && e.intervalCount && e.intervalCount > 1 ? `${e.intervalCount} ` : "";
40
+ switch (e == null ? void 0 : e.interval) {
41
+ case "month":
42
+ return `/ ${r}月`;
43
+ case "year":
44
+ return `/ ${r}年`;
45
+ case "day":
46
+ return `/ ${r}天`;
47
+ case "week":
48
+ return `/ ${r}周`;
49
+ default:
50
+ return "";
51
+ }
52
+ }
53
+ function X(e) {
54
+ const r = (e == null ? void 0 : e.intervalCount) ?? 1;
55
+ switch (e == null ? void 0 : e.interval) {
56
+ case "month":
57
+ return `${r} 个月`;
58
+ case "year":
59
+ return `${r} 年`;
60
+ case "day":
61
+ return `${r} 天`;
62
+ case "week":
63
+ return `${r} 周`;
64
+ default:
65
+ return "";
66
+ }
67
+ }
68
+ function I(e) {
69
+ switch (e) {
70
+ case "day":
71
+ return "每天";
72
+ case "week":
73
+ return "每周";
74
+ case "month":
75
+ return "每月";
76
+ case "year":
77
+ return "每年";
78
+ case "lifetime":
79
+ return "不重置";
80
+ default:
81
+ return "";
82
+ }
83
+ }
84
+ function S(e) {
85
+ if (e.type === "quota" && e.value !== void 0) {
86
+ const r = I(e.quotaPeriod), i = r ? ` / ${r}` : "";
87
+ return `${e.name}: ${e.value === -1 ? "无限" : e.value}${i}`;
88
+ }
89
+ if (e.type === "unlimited") {
90
+ const r = I(e.quotaPeriod);
91
+ return r ? `${e.name}: 不限 / ${r}` : `${e.name}不限`;
92
+ }
93
+ return e.type === "boolean" && e.value === !1 ? `${e.name}(不支持)` : e.name;
94
+ }
95
+ function w(e) {
96
+ return e.type !== "recurring" || !e.interval ? null : {
97
+ key: `${e.interval}:${e.intervalCount ?? 1}`,
98
+ interval: e.interval,
99
+ intervalCount: e.intervalCount ?? 1
100
+ };
101
+ }
102
+ function Y(e, r) {
103
+ const i = {
104
+ day: 1,
105
+ week: 2,
106
+ month: 3,
107
+ year: 4
108
+ };
109
+ return i[e.interval] - i[r.interval] || e.intervalCount - r.intervalCount;
110
+ }
111
+ function Z(e, r) {
112
+ let i = 0;
113
+ for (const f of e)
114
+ for (const d of f.prices) {
115
+ const s = w(d);
116
+ (s == null ? void 0 : s.key) === r && (i = Math.max(i, F(d)));
117
+ }
118
+ return i > 0 ? `最高优惠 ¥${p(i)}` : void 0;
119
+ }
120
+ function ee(e) {
121
+ return e.includes(":") ? e : `${e}:1`;
122
+ }
123
+ function B() {
124
+ return !!localStorage.getItem("jwtToken");
125
+ }
126
+ function ae(e = "month") {
127
+ const r = g([]), i = g(null), f = g(null), d = g(!1), s = g(!1), l = g(ee(e)), m = q(() => {
128
+ const t = /* @__PURE__ */ new Map();
129
+ for (const n of r.value)
130
+ for (const u of n.prices) {
131
+ const c = w(u);
132
+ c && t.set(c.key, c);
133
+ }
134
+ return [...t.values()].sort(Y).map((n) => ({
135
+ value: n.key,
136
+ label: N(n.interval, n.intervalCount),
137
+ badge: Z(r.value, n.key)
138
+ }));
139
+ }), y = q(() => {
140
+ const t = [];
141
+ for (const n of r.value) {
142
+ const u = n.prices.find((o) => {
143
+ const b = w(o);
144
+ return (b == null ? void 0 : b.key) === l.value;
145
+ }), c = n.prices.find((o) => o.type === "free"), a = u ?? (c && n.prices.every((o) => o.type === "free") ? c : void 0);
146
+ a && t.push({
147
+ ...n,
148
+ features: a.features ?? [],
149
+ selectedPrice: a
150
+ });
151
+ }
152
+ return t;
153
+ });
154
+ function x(t) {
155
+ l.value = t;
156
+ }
157
+ function P(t) {
158
+ const n = i.value, u = f.value;
159
+ return n != null && n.priceId && t.selectedPrice ? n.priceId === t.selectedPrice.id : n ? n.productId === t.id : u != null && u.priceId && t.selectedPrice ? u.priceId === t.selectedPrice.id : u ? u.productId === t.id : !1;
160
+ }
161
+ function A(t) {
162
+ var n;
163
+ return ((n = i.value) == null ? void 0 : n.productId) === t.id;
164
+ }
165
+ function v(t) {
166
+ var n;
167
+ return ((n = t.selectedPrice) == null ? void 0 : n.type) === "free";
168
+ }
169
+ function U() {
170
+ return !!i.value;
171
+ }
172
+ function M(t) {
173
+ return !!(!t.selectedPrice || P(t) || v(t) && U());
174
+ }
175
+ function C(t) {
176
+ var n;
177
+ return ((n = t.metadata) == null ? void 0 : n.recommended) === !0;
178
+ }
179
+ function G(t) {
180
+ var n;
181
+ return p((n = t.selectedPrice) == null ? void 0 : n.unitAmount);
182
+ }
183
+ function O(t) {
184
+ const n = D(t.selectedPrice);
185
+ return n === void 0 ? void 0 : p(n);
186
+ }
187
+ function T(t) {
188
+ return v(t) ? "" : W(t.selectedPrice);
189
+ }
190
+ function j(t) {
191
+ if (v(t)) {
192
+ const n = X(t.selectedPrice);
193
+ return n ? `${n}免费体验` : "免费体验";
194
+ }
195
+ return J(t.selectedPrice);
196
+ }
197
+ function R(t) {
198
+ const n = [];
199
+ return P(t) ? n.push({
200
+ label: "当前方案",
201
+ type: "current"
202
+ }) : v(t) ? n.push({
203
+ label: "免费体验",
204
+ type: "trial"
205
+ }) : C(t) && n.push({
206
+ label: "最受欢迎",
207
+ type: "recommended"
208
+ }), n;
209
+ }
210
+ function E(t) {
211
+ const n = i.value;
212
+ return P(t) ? "当前方案" : v(t) ? n ? "已订阅付费方案" : B() ? "免费开通" : "免费注册" : n ? A(t) ? "切换周期" : typeof n.unitAmount == "number" && t.selectedPrice.unitAmount > n.unitAmount ? "升级方案" : "切换方案" : "立即订阅";
213
+ }
214
+ function K(t, n) {
215
+ const u = t.features.find((c) => c.type === "quota" && c.value !== void 0);
216
+ if (u) {
217
+ const c = I(u.quotaPeriod), a = u.value === -1 ? "不限量" : u.value;
218
+ return `${u.name} ${c ? `${a} / ${c}` : a},覆盖核心使用场景。`;
219
+ }
220
+ return v(t) ? "注册后自动开通免费权益,适合先体验核心能力。" : n === 1 ? "为正式团队准备的高配能力组合。" : "包含入门所需的核心能力。";
221
+ }
222
+ function Q(t) {
223
+ return t.filter((n) => n.highlight !== !1).map((n) => ({
224
+ title: S(n),
225
+ description: n.description || ""
226
+ }));
227
+ }
228
+ function V(t) {
229
+ const n = t.filter((o) => o.highlight !== !1), u = n.filter((o) => o.type === "quota" || o.type === "unlimited").map((o) => ({
230
+ title: S(o),
231
+ description: o.description || ""
232
+ })), c = n.filter((o) => o.type === "boolean" && o.value !== !1).map((o) => ({
233
+ title: o.name,
234
+ description: o.description || ""
235
+ })), a = [];
236
+ return c.length && a.push({
237
+ title: "功能特性",
238
+ items: c
239
+ }), u.length && a.push({
240
+ title: "用量配额",
241
+ items: u
242
+ }), a;
243
+ }
244
+ async function k() {
245
+ d.value = !0;
246
+ const {
247
+ data: t,
248
+ error: n
249
+ } = await z.productOptions();
250
+ if (d.value = !1, n)
251
+ return;
252
+ r.value = Array.isArray(t) ? t : [], !m.value.some((c) => c.value === l.value) && m.value[0] && (l.value = m.value[0].value);
253
+ }
254
+ async function L() {
255
+ if (!B()) {
256
+ i.value = null, f.value = null;
257
+ return;
258
+ }
259
+ s.value = !0;
260
+ const {
261
+ data: t,
262
+ error: n
263
+ } = await $().billing.subscriptions.summary.post();
264
+ s.value = !1, !n && (i.value = (t == null ? void 0 : t.current) ?? null, f.value = (t == null ? void 0 : t.trial) ?? null);
265
+ }
266
+ async function _() {
267
+ await Promise.all([k(), L()]);
268
+ }
269
+ return {
270
+ products: r,
271
+ plans: y,
272
+ currentSubscription: i,
273
+ currentTrial: f,
274
+ listLoading: d,
275
+ currentLoading: s,
276
+ billingInterval: l,
277
+ billingIntervalTabs: m,
278
+ setBillingInterval: x,
279
+ isCurrentPlan: P,
280
+ isSameProduct: A,
281
+ isRecommendedPlan: C,
282
+ isFreePlan: v,
283
+ isPlanActionDisabled: M,
284
+ getDisplayPrice: G,
285
+ getDisplayOriginalPrice: O,
286
+ getDisplayCycle: T,
287
+ getPromotionLabel: j,
288
+ getBadgeLabels: R,
289
+ getButtonLabel: E,
290
+ getPlanSummary: K,
291
+ getFeatureItems: Q,
292
+ getFeatureGroups: V,
293
+ loadProducts: k,
294
+ loadCurrentSubscription: L,
295
+ refresh: _
296
+ };
297
+ }
298
+ function te(e) {
299
+ window.open(e, "_blank", "noopener,noreferrer");
300
+ }
301
+ function ne(e) {
302
+ return e && typeof e == "object" && "message" in e && typeof e.message == "string" ? e.message : "";
303
+ }
304
+ function re(e) {
305
+ return e && typeof e == "object" && "alipayUrl" in e && typeof e.alipayUrl == "string" ? e.alipayUrl : "";
306
+ }
307
+ function fe(e) {
308
+ const r = g(null), {
309
+ ensureAuthenticated: i
310
+ } = H();
311
+ async function f(s) {
312
+ if (!s.selectedPrice) {
313
+ h.warning("当前方案暂无可购买价格");
314
+ return;
315
+ }
316
+ if (!i(() => f(s))) return;
317
+ const l = e.currentSubscription.value;
318
+ if ((l == null ? void 0 : l.priceId) === s.selectedPrice.id) {
319
+ h.info("当前已经是该方案");
320
+ return;
321
+ }
322
+ if (s.selectedPrice.type === "free")
323
+ return;
324
+ r.value = s.id;
325
+ const m = l ? await $().billing.subscriptions.change.post({
326
+ subscriptionId: l.id,
327
+ newPriceId: s.selectedPrice.id,
328
+ proration: !0
329
+ }) : await $().billing.subscriptions.create.post({
330
+ priceId: s.selectedPrice.id
331
+ });
332
+ if (r.value = null, m.error)
333
+ return;
334
+ const y = re(m.data);
335
+ if (y) {
336
+ te(y);
337
+ return;
338
+ }
339
+ h.success(ne(m.data) || "订阅已更新"), await e.refreshCurrentSubscription();
340
+ }
341
+ function d(s) {
342
+ return r.value === s.id;
343
+ }
344
+ return {
345
+ checkoutPlanId: r,
346
+ checkout: f,
347
+ isCheckingOut: d
348
+ };
349
+ }
350
+ export {
351
+ fe as a,
352
+ ae as u
353
+ };
package/dist/user.js CHANGED
@@ -1,4 +1,4 @@
1
- import { U as a, a as n, b as r, c as t, d as U, _ as u, e as i, f as M, g as o, h as m, i as I, j as c, k as d, l as b, m as f } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-0Td42Nb3.js";
1
+ import { U as a, a as n, b as r, c as t, d as U, _ as u, e as i, f as M, g as o, h as m, i as I, j as c, k as d, l as b, m as f } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-DG4AuHiO.js";
2
2
  export {
3
3
  a as UserAccountMenu,
4
4
  n as UserAvatar,
@@ -1,12 +1,20 @@
1
- /** Auth API - 认证、用户、验证等 */
2
- export declare const auth: import('@vafast/api-client').EdenClient<import('../types/api/auth.generated').Api>;
3
- /** Billing API - 产品、订阅、订单、发票等 */
4
- export declare const billing: import('@vafast/api-client').EdenClient<import('../types/api/billing.generated').Api>;
5
- /** Ones API - 反馈、消息、存储桶等 */
6
- export declare const ones: import('@vafast/api-client').EdenClient<import('../types/api/ones.generated').Api>;
7
- /** Log API - 日志查询、告警规则等 */
8
- export declare const log: import('@vafast/api-client').EdenClient<import('../types/api/log.generated').Api>;
9
- /** AI API - 模型、提示词、语音、图像生成等 */
10
- export declare const ai: import('@vafast/api-client').EdenClient<import('../types/api/ai.generated').Api>;
11
- /** Webhook API - Webhook 管理、日志等 */
12
- export declare const webhook: import('@vafast/api-client').EdenClient<import('../types/api/webhook.generated').Api>;
1
+ import { HuyoooUIConfig } from '../common/globalConfig';
2
+ import { createApiClient as createAiClient } from '../types/api/ai.generated';
3
+ import { createApiClient as createAuthClient } from '../types/api/auth.generated';
4
+ import { createApiClient as createBillingClient } from '../types/api/billing.generated';
5
+ import { createApiClient as createLogClient } from '../types/api/log.generated';
6
+ import { createApiClient as createOnesClient } from '../types/api/ones.generated';
7
+ import { createApiClient as createWebhookClient } from '../types/api/webhook.generated';
8
+ export interface ApiClients {
9
+ auth: ReturnType<typeof createAuthClient>;
10
+ billing: ReturnType<typeof createBillingClient>;
11
+ ones: ReturnType<typeof createOnesClient>;
12
+ log: ReturnType<typeof createLogClient>;
13
+ ai: ReturnType<typeof createAiClient>;
14
+ webhook: ReturnType<typeof createWebhookClient>;
15
+ }
16
+ /** 使用完整只读配置同步创建全部 API Client。 */
17
+ export declare function createApiClients(config: Readonly<HuyoooUIConfig>): ApiClients;
18
+ /** 由 createHuyoooUI 设置当前应用客户端。 */
19
+ export declare function initializeApiClients(config: Readonly<HuyoooUIConfig>): ApiClients;
20
+ export declare function getApiClients(): ApiClients;
@@ -1,25 +1,11 @@
1
1
  import { Client } from '@vafast/api-client';
2
- /**
3
- * App ID 中间件:添加 app-id header
4
- */
5
- export declare const appIdMiddleware: import('@vafast/api-client').NamedMiddleware;
6
- /**
7
- * Token 中间件:添加 JWT token
8
- */
9
- export declare const tokenMiddleware: import('@vafast/api-client').NamedMiddleware;
10
- /**
11
- * Token 刷新中间件:处理 token 过期自动刷新
12
- */
13
- export declare const tokenRefreshMiddleware: import('@vafast/api-client').NamedMiddleware;
14
- /**
15
- * 错误提示中间件:统一由全局 Message 展示服务端错误
16
- *
17
- * - 401 + 40101:token 过期,交由 tokenRefreshMiddleware 刷新,不弹 Message。
18
- * - 401(code=401):会话无效,清理认证 + 打开登录框,不弹 Message。
19
- * - 其他 error:弹 Message 提示。
20
- *
21
- * 调用方收到 response.error 时勿再 Message.error,直接 return 即可。
22
- */
23
- export declare const errorMessageMiddleware: import('@vafast/api-client').NamedMiddleware;
2
+ import { HuyoooUIConfig } from '../common/globalConfig';
3
+ /** 为一个 Runtime 创建彼此隔离的请求中间件。 */
4
+ export declare function createApiMiddlewares(config: Readonly<HuyoooUIConfig>): {
5
+ appIdMiddleware: import('@vafast/api-client').NamedMiddleware;
6
+ tokenMiddleware: import('@vafast/api-client').NamedMiddleware;
7
+ tokenRefreshMiddleware: import('@vafast/api-client').NamedMiddleware;
8
+ errorMessageMiddleware: import('@vafast/api-client').NamedMiddleware;
9
+ };
24
10
  /** 为 API Client 挂载 token 刷新与 401 登录框兜底 */
25
- export declare function withAuthHandling(client: Client): Client;
11
+ export declare function withAuthHandling(client: Client, config: Readonly<HuyoooUIConfig>): Client;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huyooo/ui",
3
- "version": "1.0.7",
3
+ "version": "2.0.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [