@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
package/dist/message.js CHANGED
@@ -1,30 +1,30 @@
1
- import { r as L, D as q } from "./MessageHandle-mEkCsv9e.js";
2
- import { _ as Ce, C as De, a as Be, b as Ae, E as Ie, c as Te, M as Le, N as Pe, d as $e, e as qe, f as Se, h as Ee, l as He, g as Ve } from "./MessageHandle-mEkCsv9e.js";
1
+ import { r as L, D as q } from "./MessageHandle-BUufez4S.js";
2
+ import { _ as Ne, C as De, a as Be, b as Ae, E as Ie, c as Te, M as Le, N as Pe, d as $e, e as qe, f as Se, h as Ee, l as He, g as Ve } from "./MessageHandle-BUufez4S.js";
3
3
  /* empty css */
4
- import { M as Ke } from "./MessageList-Ce-_LNTk.js";
5
- import { h as C, defineComponent as m, computed as d, openBlock as r, createBlock as g, unref as v, withCtx as S, resolveDynamicComponent as E, createElementBlock as l, toDisplayString as y, Fragment as h, renderList as D, createCommentVNode as b, ref as M, normalizeClass as H, createElementVNode as k } from "vue";
4
+ import { M as Ke } from "./MessageList-rttvPmxV.js";
5
+ import { h as N, defineComponent as m, computed as d, openBlock as r, createBlock as g, unref as v, withCtx as S, resolveDynamicComponent as E, createElementBlock as l, toDisplayString as y, Fragment as h, renderList as D, createCommentVNode as b, ref as M, normalizeClass as H, createElementVNode as k } from "vue";
6
6
  import { Tag as V, Descriptions as F } from "@arco-design/web-vue";
7
7
  /* empty css */
8
8
  import { _ as x } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  import { useRouter as K } from "vue-router";
10
10
  import { I as je } from "./userMenuModal-D-nDaYqM.js";
11
11
  import { Icon as $ } from "@iconify/vue";
12
- import { o as O } from "./apiClients-BcXOLuYu.js";
13
- import { u as ze } from "./useMessageNotifications-CAphguOm.js";
14
- function N(e) {
12
+ import { g as O } from "./apiClients-Ctcq8NZs.js";
13
+ import { u as ze } from "./useMessageNotifications-D9uikt21.js";
14
+ function C(e) {
15
15
  return !!e && typeof e == "object" && !Array.isArray(e);
16
16
  }
17
17
  function j(e) {
18
- return N(e) ? e.color === void 0 || typeof e.color == "string" : !1;
18
+ return C(e) ? e.color === void 0 || typeof e.color == "string" : !1;
19
19
  }
20
20
  function w(e) {
21
- return N(e) ? typeof e.href == "string" && (e.target === void 0 || typeof e.target == "string") : !1;
21
+ return C(e) ? typeof e.href == "string" && (e.target === void 0 || typeof e.target == "string") : !1;
22
22
  }
23
23
  function z(e) {
24
- return !N(e) || typeof e.type != "string" || typeof e.text != "string" ? !1 : e.type === "text" ? !0 : e.type === "tag" ? e.tagProps === void 0 || j(e.tagProps) : e.type === "link" ? w(e.linkProps) : !1;
24
+ return !C(e) || typeof e.type != "string" || typeof e.text != "string" ? !1 : e.type === "text" ? !0 : e.type === "tag" ? e.tagProps === void 0 || j(e.tagProps) : e.type === "link" ? w(e.linkProps) : !1;
25
25
  }
26
26
  function J(e) {
27
- return N(e) ? typeof e.key == "string" && typeof e.label == "string" && z(e.value) : !1;
27
+ return C(e) ? typeof e.key == "string" && typeof e.label == "string" && z(e.value) : !1;
28
28
  }
29
29
  function R(e) {
30
30
  const t = Array.isArray(e.items) ? e.items.filter(J) : [];
@@ -36,18 +36,18 @@ function R(e) {
36
36
  function W(e) {
37
37
  var t;
38
38
  if (e.type === "tag")
39
- return C(V, {
39
+ return N(V, {
40
40
  color: ((t = e.tagProps) == null ? void 0 : t.color) ?? "gray"
41
41
  }, () => e.text);
42
42
  if (e.type === "link") {
43
- const s = e.linkProps.target ?? "_blank";
44
- return C("a", {
43
+ const n = e.linkProps.target ?? "_blank";
44
+ return N("a", {
45
45
  href: e.linkProps.href,
46
- target: s,
47
- rel: s === "_blank" ? "noopener noreferrer" : void 0
46
+ target: n,
47
+ rel: n === "_blank" ? "noopener noreferrer" : void 0
48
48
  }, e.text);
49
49
  }
50
- return C("span", e.text);
50
+ return N("span", e.text);
51
51
  }
52
52
  const G = {
53
53
  key: 1,
@@ -61,14 +61,14 @@ const G = {
61
61
  type: {}
62
62
  },
63
63
  setup(e) {
64
- const t = e, s = d(() => R(t.data)), o = d(() => s.value.title), i = d(() => s.value.items), a = d(() => {
64
+ const t = e, n = d(() => R(t.data)), o = d(() => n.value.title), i = d(() => n.value.items), a = d(() => {
65
65
  try {
66
66
  return JSON.stringify(t.data, null, 2);
67
67
  } catch {
68
68
  return String(t.data);
69
69
  }
70
70
  });
71
- return (c, n) => i.value.length > 0 ? (r(), g(v(F), {
71
+ return (c, s) => i.value.length > 0 ? (r(), g(v(F), {
72
72
  key: 0,
73
73
  class: "descriptions-message-body",
74
74
  title: o.value,
@@ -94,11 +94,11 @@ function X(e) {
94
94
  label: a || "点击查看详情"
95
95
  };
96
96
  }
97
- const s = typeof e.linkHref == "string" ? e.linkHref.trim() : "";
98
- if (s) {
97
+ const n = typeof e.linkHref == "string" ? e.linkHref.trim() : "";
98
+ if (n) {
99
99
  const o = typeof e.linkLabel == "string" ? e.linkLabel.trim() : "点击查看详情";
100
100
  return {
101
- href: s,
101
+ href: n,
102
102
  label: o || "点击查看详情"
103
103
  };
104
104
  }
@@ -121,16 +121,16 @@ const ee = {
121
121
  type: {}
122
122
  },
123
123
  setup(e) {
124
- const t = e, s = K(), o = d(() => {
125
- var n;
126
- return typeof t.data.text == "string" ? t.data.text : ((n = t.description) == null ? void 0 : n.trim()) || "";
124
+ const t = e, n = K(), o = d(() => {
125
+ var s;
126
+ return typeof t.data.text == "string" ? t.data.text : ((s = t.description) == null ? void 0 : s.trim()) || "";
127
127
  }), i = d(() => Y(o.value)), a = d(() => X(t.data));
128
- function c(n) {
128
+ function c(s) {
129
129
  var u;
130
130
  const p = (u = a.value) == null ? void 0 : u.href;
131
- !p || Z(p) || (n.preventDefault(), s.push(p));
131
+ !p || Z(p) || (s.preventDefault(), n.push(p));
132
132
  }
133
- return (n, p) => (r(), l("div", ee, [(r(!0), l(h, null, D(i.value, (u, _) => (r(), l("p", {
133
+ return (s, p) => (r(), l("div", ee, [(r(!0), l(h, null, D(i.value, (u, _) => (r(), l("p", {
134
134
  key: _,
135
135
  class: "text-message-body__paragraph"
136
136
  }, y(u), 1))), 128)), a.value ? (r(), l("a", {
@@ -169,18 +169,18 @@ const oe = /* @__PURE__ */ m({
169
169
  }
170
170
  },
171
171
  setup(e) {
172
- const t = e, s = M(!1);
172
+ const t = e, n = M(!1);
173
173
  function o() {
174
- s.value = !0;
174
+ n.value = !0;
175
175
  }
176
176
  function i() {
177
- s.value = !1;
177
+ n.value = !1;
178
178
  }
179
179
  return (a, c) => t.hidden ? b("", !0) : (r(), l("div", {
180
180
  key: 0,
181
181
  class: H(["List", {
182
182
  Active: t.active,
183
- Hover: s.value && !t.active
183
+ Hover: n.value && !t.active
184
184
  }]),
185
185
  onMouseover: o,
186
186
  onMouseout: i
@@ -214,21 +214,21 @@ const oe = /* @__PURE__ */ m({
214
214
  setup(e, {
215
215
  emit: t
216
216
  }) {
217
- const s = e, o = t;
217
+ const n = e, o = t;
218
218
  function i(a, c) {
219
219
  o("change", a, c);
220
220
  }
221
- return (a, c) => (r(), l("div", ie, [(r(!0), l(h, null, D(s.menus, (n, p) => {
221
+ return (a, c) => (r(), l("div", ie, [(r(!0), l(h, null, D(n.menus, (s, p) => {
222
222
  var u, _, B;
223
223
  return r(), l("div", {
224
224
  key: p
225
- }, [n.children && n.children.length !== 0 ? (r(), l(h, {
225
+ }, [s.children && s.children.length !== 0 ? (r(), l(h, {
226
226
  key: 0
227
- }, [k("span", ae, [(u = n == null ? void 0 : n.meta) != null && u.icon ? (r(), g(v($), {
227
+ }, [k("span", ae, [(u = s == null ? void 0 : s.meta) != null && u.icon ? (r(), g(v($), {
228
228
  key: 0,
229
229
  class: "icon",
230
- icon: n.meta.icon
231
- }, null, 8, ["icon"])) : b("", !0), k("span", ce, y(n.name), 1)]), k("span", le, [(r(!0), l(h, null, D(n.children, (f, A) => {
230
+ icon: s.meta.icon
231
+ }, null, 8, ["icon"])) : b("", !0), k("span", ce, y(s.name), 1)]), k("span", le, [(r(!0), l(h, null, D(s.children, (f, A) => {
232
232
  var I, T;
233
233
  return r(), g(P, {
234
234
  key: A,
@@ -236,17 +236,17 @@ const oe = /* @__PURE__ */ m({
236
236
  path: f.path,
237
237
  icon: (T = f.meta) == null ? void 0 : T.icon,
238
238
  name: f.name,
239
- active: s.selectedKeys.includes(f.path),
239
+ active: n.selectedKeys.includes(f.path),
240
240
  onClick: (ue) => i(f, A)
241
241
  }, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]);
242
242
  }), 128))])], 64)) : (r(), g(P, {
243
243
  key: 1,
244
- hidden: ((_ = n.meta) == null ? void 0 : _.hidden) || !1,
245
- path: n.path,
246
- icon: (B = n.meta) == null ? void 0 : B.icon,
247
- name: n.name,
248
- active: s.selectedKeys.includes(n.path),
249
- onClick: (f) => i(n, p)
244
+ hidden: ((_ = s.meta) == null ? void 0 : _.hidden) || !1,
245
+ path: s.path,
246
+ icon: (B = s.meta) == null ? void 0 : B.icon,
247
+ name: s.name,
248
+ active: n.selectedKeys.includes(s.path),
249
+ onClick: (f) => i(s, p)
250
250
  }, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]))]);
251
251
  }), 128))]));
252
252
  }
@@ -259,18 +259,19 @@ const oe = /* @__PURE__ */ m({
259
259
  }
260
260
  },
261
261
  setup(e) {
262
- const t = M(!1), s = M(null), o = M(""), i = e;
262
+ const t = M(!1), n = M(null), o = M(""), i = e;
263
263
  async function a() {
264
264
  t.value = !0;
265
265
  const {
266
- data: c
267
- } = await O.messageCenter.noticeNotifications.findOne.post({
266
+ data: c,
267
+ error: s
268
+ } = await O().ones.messageCenter.noticeNotifications.findOne.post({
268
269
  id: i.id
269
270
  });
270
- t.value = !1, c && (s.value = c.content, o.value = c.title);
271
+ t.value = !1, !s && c && (n.value = c.content, o.value = c.title);
271
272
  }
272
- return a(), (c, n) => (r(), g(q, {
273
- content: s.value,
273
+ return a(), (c, s) => (r(), g(q, {
274
+ content: n.value,
274
275
  title: o.value,
275
276
  loading: t.value
276
277
  }, null, 8, ["content", "title", "loading"]));
@@ -279,7 +280,7 @@ const oe = /* @__PURE__ */ m({
279
280
  re();
280
281
  export {
281
282
  je as InfiniteLoading,
282
- Ce as MessageAppMessage,
283
+ Ne as MessageAppMessage,
283
284
  De as MessageChangelogNotifications,
284
285
  Be as MessageChangelogNotificationsDetails,
285
286
  Ae as MessageCustomTabs,
package/dist/pay.js CHANGED
@@ -1,7 +1,7 @@
1
- import { P as e, u as t, a as n, b as u, v as r } from "./PaySubscriptions-CXkEjqr2.js";
2
- import { P as o, a as P, b as p, c as m, p as c, r as l } from "./PricingPlans-CV97ck9p.js";
3
- import { u as y, a as S } from "./useSubscriptionCheckout-d_M_rKRa.js";
4
- import { c as b, u as f, a as v, b as x } from "./useBillingStatusOptions-CfHQOFNw.js";
1
+ import { P as e, u as t, a as n, b as u, v as r } from "./PaySubscriptions-p75aBnHm.js";
2
+ import { P as o, a as P, b as p, c as m, p as c, r as l } from "./PricingPlans-CQ0qk9Hb.js";
3
+ import { u as y, a as S } from "./useSubscriptionCheckout-BDDCRxSs.js";
4
+ import { c as b, u as f, a as v, b as x } from "./useBillingStatusOptions-Br-iL77Z.js";
5
5
  export {
6
6
  o as PAYMENT_RETURN_PATH,
7
7
  e as PaySubscriptions,
@@ -1,4 +1,4 @@
1
- import { C as a, F as r, I as e } from "./Contact-BWuVR9ho.js";
1
+ import { C as a, F as r, I as e } from "./Contact-CcWf3UEZ.js";
2
2
  export {
3
3
  a as Contact,
4
4
  r as Footer,
package/dist/referrer.js CHANGED
@@ -1,4 +1,4 @@
1
- import { R as f } from "./ReferrerReferees-DgygiIiE.js";
1
+ import { R as f } from "./ReferrerReferees-BU9IEQgz.js";
2
2
  export {
3
3
  f as ReferrerReferees
4
4
  };