@huyooo/ui 0.13.4 → 0.13.8

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 (46) hide show
  1. package/dist/{AuthkitAppSetting-EL2ZvAVT.js → AuthkitAppSetting-u2kUUH6q.js} +7 -7
  2. package/dist/{AuthkitGithubBinding-Ba9sbNEh.js → AuthkitGithubBinding-B-YSWc50.js} +6 -6
  3. package/dist/{Clipboard-CdJtMvg6.js → Clipboard-C8ncjaAJ.js} +1 -1
  4. package/dist/{Contact-Z2VFVeKK.js → Contact-CIMfdt_b.js} +2 -2
  5. package/dist/{FeedbackItem-B_MDdk4s.js → FeedbackItem-C9FQThXG.js} +3 -3
  6. package/dist/{FeedbackModal-qrcBDDQM.js → FeedbackModal-R3NKRxr7.js} +3 -3
  7. package/dist/{MessageHandle-Y96z-IXv.js → MessageHandle-D2dcvWVr.js} +2 -2
  8. package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-CfmjFcay.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-CSAIRPOj.js} +2 -2
  9. package/dist/{PaySubscriptions-C75OtmYw.js → PaySubscriptions-BaUlQE-p.js} +4 -4
  10. package/dist/{PricingPlans-DCYIVuuT.js → PricingPlans-B0nt843Q.js} +4 -4
  11. package/dist/{ReferrerReferees-8eSsuPfa.js → ReferrerReferees-B50_V69q.js} +4 -4
  12. package/dist/{Upload.vue_vue_type_script_setup_true_lang-BAibfVEN.js → Upload.vue_vue_type_script_setup_true_lang-dLSky4Yx.js} +1 -1
  13. package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BEVmBNlU.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BHXLN2Tu.js} +33 -34
  14. package/dist/{WidthContainer-Dqf_-qGk.js → WidthContainer-BQIboxrg.js} +21 -20
  15. package/dist/api/billingSubscriptionApi.d.ts +3 -0
  16. package/dist/{apiClients-D56ALwwO.js → apiClients-CkI47p36.js} +11 -7
  17. package/dist/authkit.js +9 -9
  18. package/dist/common.js +1 -1
  19. package/dist/composables/useMessageList.d.ts +2 -2
  20. package/dist/composables.js +13 -13
  21. package/dist/feedback.js +3 -3
  22. package/dist/main.js +31 -31
  23. package/dist/message.js +3 -3
  24. package/dist/pay.js +4 -4
  25. package/dist/privateCom.js +1 -1
  26. package/dist/referrer.js +1 -1
  27. package/dist/style.css +1 -1
  28. package/dist/types/api/ai.generated.d.ts +3051 -269
  29. package/dist/types/api/billing.generated.d.ts +1206 -275
  30. package/dist/upload.js +2 -2
  31. package/dist/{useAuthkitAppsAuthPageInfo-RMs8sOwk.js → useAuthkitAppsAuthPageInfo-CjPdpZ64.js} +1 -1
  32. package/dist/{useAuthkitAuth-B8aO6aMa.js → useAuthkitAuth-C--qS6UE.js} +1 -1
  33. package/dist/{useAuthkitCreateAndUpdate-DkiLs143.js → useAuthkitCreateAndUpdate-CsYn-oYu.js} +1 -1
  34. package/dist/{useAuthkitUsersProfile-CWAr0CNv.js → useAuthkitUsersProfile-CIFqG3gd.js} +2 -2
  35. package/dist/useBillingStatusOptions-D5Ehwtbj.js +145 -0
  36. package/dist/{useDownloads-DqF1USJ7.js → useDownloads-CxoyuqyY.js} +1 -1
  37. package/dist/{useEnsureAuthenticated-D99GiwEk.js → useEnsureAuthenticated-C4tsSfv6.js} +2 -2
  38. package/dist/{useLegalLinks-DRTOYp3n.js → useLegalLinks-DHqsVvIK.js} +2 -2
  39. package/dist/{useMessageNotifications-CUpk6zCE.js → useMessageNotifications-BMUx5xfX.js} +1 -1
  40. package/dist/{useSEO-CUKPmGRx.js → useSEO-DypqLVfr.js} +2 -2
  41. package/dist/{useSubscriptionCheckout-CAgy1CFj.js → useSubscriptionCheckout-CHAF20s-.js} +102 -108
  42. package/dist/{useTableHandle-CCKjahT0.js → useTableHandle-9alnSWt0.js} +1 -1
  43. package/dist/{useUploadCos-Bxctd4E6.js → useUploadCos-DGPnLOC9.js} +1 -1
  44. package/dist/user.js +1 -1
  45. package/package.json +3 -3
  46. package/dist/useBillingStatusOptions-CottFcAr.js +0 -127
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-BEVmBNlU.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-BHXLN2Tu.js";
2
2
  export {
3
3
  a as UserAccountMenu,
4
4
  n as UserAvatar,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huyooo/ui",
3
- "version": "0.13.4",
3
+ "version": "0.13.8",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
@@ -96,7 +96,7 @@
96
96
  },
97
97
  "dependencies": {
98
98
  "@unhead/vue": "^2.0.19",
99
- "@vafast/api-client": ">=0.3.2",
99
+ "@vafast/api-client": "^0.3.6",
100
100
  "cos-js-sdk-v5": "^1.10.1",
101
101
  "json-bigint": "^1.0.0",
102
102
  "uuid": "^11.1.0",
@@ -106,7 +106,7 @@
106
106
  "@arco-plugins/vite-vue": "^1.4.5",
107
107
  "@types/json-bigint": "^1.0.4",
108
108
  "@types/node": "^22.5.1",
109
- "@vafast/cli": "^0.1.5",
109
+ "@vafast/cli": "^0.2.1",
110
110
  "@vitejs/plugin-vue": "^5.1.2",
111
111
  "bumpp": "^10.2.0",
112
112
  "eslint": "^9.32.0",
@@ -1,127 +0,0 @@
1
- import { ref as y } from "vue";
2
- import { e as u } from "./apiClients-D56ALwwO.js";
3
- const b = [{
4
- key: "pending",
5
- label: "待支付",
6
- color: "orange"
7
- }, {
8
- key: "paying",
9
- label: "支付中",
10
- color: "blue"
11
- }, {
12
- key: "paid",
13
- label: "已支付",
14
- color: "green"
15
- }, {
16
- key: "cancelled",
17
- label: "已取消",
18
- color: "gray"
19
- }, {
20
- key: "expired",
21
- label: "已过期",
22
- color: "red"
23
- }, {
24
- key: "refunded",
25
- label: "已退款",
26
- color: "purple"
27
- }], f = [{
28
- key: "pending",
29
- label: "待审核",
30
- color: "orange"
31
- }, {
32
- key: "approved",
33
- label: "已通过",
34
- color: "blue"
35
- }, {
36
- key: "rejected",
37
- label: "已拒绝",
38
- color: "gray"
39
- }, {
40
- key: "processing",
41
- label: "退款中",
42
- color: "blue"
43
- }, {
44
- key: "success",
45
- label: "已退款",
46
- color: "green"
47
- }, {
48
- key: "failed",
49
- label: "退款失败",
50
- color: "red"
51
- }], d = [{
52
- key: "draft",
53
- label: "草稿",
54
- color: "gray"
55
- }, {
56
- key: "open",
57
- label: "待支付",
58
- color: "orange"
59
- }, {
60
- key: "paid",
61
- label: "已支付",
62
- color: "green"
63
- }, {
64
- key: "void",
65
- label: "已作废",
66
- color: "gray"
67
- }, {
68
- key: "uncollectible",
69
- label: "无法收款",
70
- color: "red"
71
- }];
72
- function g(c, o, r, e) {
73
- var t;
74
- const i = ((t = o == null ? void 0 : o.toLowerCase) == null ? void 0 : t.call(o)) ?? o, n = c.find((a) => a.key === o || a.key === i);
75
- return n != null && n[r] ? n[r] : e;
76
- }
77
- function p(c, o) {
78
- const r = y(!1), e = y([]);
79
- async function i() {
80
- if (e.value.length > 0)
81
- return e.value;
82
- r.value = !0;
83
- try {
84
- const {
85
- data: l,
86
- error: s
87
- } = await c();
88
- return s || !(l != null && l.length) ? (s && console.error("获取状态选项失败:", s), e.value = o, e.value) : (e.value = l, e.value);
89
- } finally {
90
- r.value = !1;
91
- }
92
- }
93
- function n() {
94
- return e.value.length > 0 ? e.value : o;
95
- }
96
- function t(l) {
97
- return g(n(), l, "label", l);
98
- }
99
- function a(l) {
100
- return g(n(), l, "color", "gray");
101
- }
102
- return {
103
- statusOptionsLoading: r,
104
- statusOptionsList: e,
105
- statusOptionsApi: i,
106
- getStatusLabel: t,
107
- getStatusColor: a
108
- };
109
- }
110
- function S() {
111
- return p(async () => u.pointsRecharge.statusOptions.post({}), b);
112
- }
113
- function O() {
114
- return p(async () => u.refund.statusOptions.post({}), f);
115
- }
116
- function A() {
117
- return p(async () => u.invoices.statusOptions.post({}), d);
118
- }
119
- export {
120
- d as I,
121
- b as P,
122
- f as R,
123
- S as a,
124
- O as b,
125
- p as c,
126
- A as u
127
- };