@huyooo/ui 3.0.0 → 4.0.1

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 (64) hide show
  1. package/dist/{AuthkitAppSetting-DhLRYlL_.js → AuthkitAppSetting-Cg8j3nES.js} +41 -42
  2. package/dist/{Contact-CNLjyOCR.js → Contact-D9NRguTE.js} +4 -4
  3. package/dist/{CustomTable-B1KjkixL.js → CustomTable-C15Dgbks.js} +4 -4
  4. package/dist/{FeedbackItem-BP-SiJ2u.js → FeedbackItem-hnJ7YXdE.js} +1 -1
  5. package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-Ddy1jcdL.js +1526 -0
  6. package/dist/{LandingPageSectionTabs-BEAnU8B0.js → LandingPageSectionTabs-BJQeq3V5.js} +515 -402
  7. package/dist/{LegalDocViewer-DkVW9tCh.js → LegalDocViewer-BuzKCAfO.js} +44 -45
  8. package/dist/{Menu-uCexrsKP.js → Menu-C6NA8hCs.js} +1 -1
  9. package/dist/{MessageHandle-BKMBtqZM.js → MessageHandle-Cu23QspL.js} +13 -14
  10. package/dist/{MessageList-BK4u5DCH.js → MessageList-DdDKl9wk.js} +6 -7
  11. package/dist/{PaySubscriptions-tJSQUmhE.js → PaySubscriptions-ZSvRTG2i.js} +14 -15
  12. package/dist/{PricingPlans-BhcDv8uk.js → PricingPlans-DTGJ-_us.js} +13 -14
  13. package/dist/{ReferrerReferees-QTZnOCJB.js → ReferrerReferees-gkKtDau-.js} +25 -26
  14. package/dist/{Upload.vue_vue_type_script_setup_true_lang-CZjNlns_.js → Upload.vue_vue_type_script_setup_true_lang-C6B5_Hjo.js} +2 -2
  15. package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BQgy_CeZ.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BH6l-SKs.js} +34 -35
  16. package/dist/{WidthContainer-BEeYYOat.js → WidthContainer-DXwIiG2x.js} +32 -32
  17. package/dist/{apiClients-8_c5cDW5.js → apiClients-5u4_uxFE.js} +47 -48
  18. package/dist/authkit.js +10 -10
  19. package/dist/common/globalConfig.d.ts +4 -4
  20. package/dist/common.js +3 -3
  21. package/dist/components/LandingPage/LandingPageHero.vue.d.ts +22 -0
  22. package/dist/components/Pay/PricingPlans.vue.d.ts +1 -1
  23. package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +21 -0
  24. package/dist/composables/useAccessPosture.d.ts +31 -0
  25. package/dist/composables.d.ts +1 -0
  26. package/dist/composables.js +53 -49
  27. package/dist/feedback.js +3 -3
  28. package/dist/{fetchAuthPageAboutUs--dArFYk6.js → fetchAuthPageAboutUs-C-jQ44QK.js} +2 -2
  29. package/dist/{index-D9YtlhTa.js → index-5OR_BVTz.js} +4 -5
  30. package/dist/{index-D56hUMeD.js → index-BIxwv9Xs.js} +1 -1
  31. package/dist/landingPage.js +1 -1
  32. package/dist/legalDocs/constants.d.ts +1 -0
  33. package/dist/main.js +266 -262
  34. package/dist/message.js +36 -37
  35. package/dist/pay.js +5 -5
  36. package/dist/privateCom.js +1 -1
  37. package/dist/referrer.js +1 -1
  38. package/dist/{runtime-CDEl4QQl.js → runtime-B-tHI8-q.js} +191 -186
  39. package/dist/style.css +1 -1
  40. package/dist/types/api/auth.generated.d.ts +188 -37
  41. package/dist/types/api/ones.generated.d.ts +1512 -364
  42. package/dist/types/app.d.ts +9 -0
  43. package/dist/types/auth.d.ts +2 -1
  44. package/dist/upload.js +2 -2
  45. package/dist/useAccessPosture-DBNTLWQn.js +219 -0
  46. package/dist/{useAuthkitAppsAuthPageInfo-mv7hOnhi.js → useAuthkitAppsAuthPageInfo-CsivtUQH.js} +40 -33
  47. package/dist/{useAuthkitAuth-CO61XogP.js → useAuthkitAuth-CV60Hc3o.js} +56 -51
  48. package/dist/useAuthkitCreateAndUpdate-DJIn96EE.js +24 -0
  49. package/dist/{useAuthkitUsersProfile-CF7t2Y7T.js → useAuthkitUsersProfile-CQOLEAxC.js} +3 -3
  50. package/dist/{useBillingStatusOptions-C8fwW-AI.js → useBillingStatusOptions-BHVLZhEB.js} +1 -1
  51. package/dist/{useBillingSubscriptionSummary-C2E3p68U.js → useBillingSubscriptionSummary-DakAVL-3.js} +1 -1
  52. package/dist/{useEnsureAuthenticated-Q7EHguY4.js → useEnsureAuthenticated-BYGI2uYZ.js} +2 -2
  53. package/dist/{useLegalDocs-DUbab5R9.js → useLegalDocs-BrYWCDh3.js} +6 -5
  54. package/dist/{useMessageNotifications-BXimltcx.js → useMessageNotifications-Dcl8TXr-.js} +1 -1
  55. package/dist/{usePageSEO-D8CocvOJ.js → usePageSEO-BHYaXnDU.js} +12 -13
  56. package/dist/useRoutePermission-BkWHsFxN.js +212 -0
  57. package/dist/{useSubscriptionCheckout-Bic8vKgm.js → useSubscriptionCheckout-QSNro05_.js} +17 -18
  58. package/dist/user.js +1 -1
  59. package/dist/{userMenuModal-D-nDaYqM.js → userMenuModal-B4m4CHlW.js} +1 -1
  60. package/package.json +1 -1
  61. package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-BXqxUXuu.js +0 -1516
  62. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
  63. package/dist/useAuthkitCreateAndUpdate-CYIcEuub.js +0 -25
  64. package/dist/useRoutePermission-Bvn-J8bp.js +0 -249
@@ -1,22 +1,21 @@
1
+ import { u as ee } from "./apiClients-5u4_uxFE.js";
1
2
  /* empty css */
2
- /* empty css */
3
- import "./index-D9YtlhTa.js";
4
- import { defineComponent as m, computed as b, openBlock as r, createElementBlock as p, toDisplayString as M, createCommentVNode as U, createVNode as _, unref as n, createBlock as v, withCtx as g, createTextVNode as k, ref as x, createElementVNode as d, watch as A, onMounted as ee, Fragment as Y, normalizeClass as q, renderSlot as w } from "vue";
5
- import { Avatar as G, Button as N, Dropdown as te, Badge as ne } from "@arco-design/web-vue";
6
- import { u as R } from "./useAuthkitUsersProfile-CF7t2Y7T.js";
3
+ import "./index-5OR_BVTz.js";
4
+ import { defineComponent as m, computed as b, openBlock as r, createElementBlock as p, toDisplayString as M, createCommentVNode as U, createVNode as _, unref as n, createBlock as v, withCtx as g, createTextVNode as k, ref as x, createElementVNode as d, watch as A, onMounted as te, Fragment as Y, normalizeClass as q, renderSlot as w } from "vue";
5
+ import { Avatar as G, Button as N, Dropdown as ne, Badge as se } from "@arco-design/web-vue";
6
+ import { u as R } from "./useAuthkitUsersProfile-CQOLEAxC.js";
7
7
  import { u as y } from "./useUserMenu-ClPBlvaM.js";
8
8
  /* empty css */
9
- import { g as J, a as se, R as ae } from "./ReferrerReferees-QTZnOCJB.js";
9
+ import { g as J, a as ae, R as oe } from "./ReferrerReferees-gkKtDau-.js";
10
10
  import { _ as S } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  /* empty css */
12
- import { u as oe } from "./apiClients-8_c5cDW5.js";
13
- import { useBillingSubscriptionSummary as ie } from "./useBillingSubscriptionSummary-C2E3p68U.js";
14
- import { d as re } from "./useBillingStatusOptions-C8fwW-AI.js";
15
- import { f as ue, g as le, b as ce, s as de, P as pe } from "./PaySubscriptions-tJSQUmhE.js";
16
- import { A as me } from "./AuthkitAppSetting-DhLRYlL_.js";
17
- import { c as fe, u as K } from "./FeedbackModal.vue_vue_type_script_setup_true_lang-BXqxUXuu.js";
18
- import { M as _e } from "./MessageHandle-BKMBtqZM.js";
19
- import "./Menu-uCexrsKP.js";
12
+ import { useBillingSubscriptionSummary as ie } from "./useBillingSubscriptionSummary-DakAVL-3.js";
13
+ import { d as re } from "./useBillingStatusOptions-BHVLZhEB.js";
14
+ import { f as ue, g as le, b as ce, s as de, P as pe } from "./PaySubscriptions-ZSvRTG2i.js";
15
+ import { A as me } from "./AuthkitAppSetting-Cg8j3nES.js";
16
+ import { c as fe, u as K } from "./FeedbackModal.vue_vue_type_script_setup_true_lang-Ddy1jcdL.js";
17
+ import { M as _e } from "./MessageHandle-Cu23QspL.js";
18
+ import "./Menu-C6NA8hCs.js";
20
19
  import { Icon as ve } from "@iconify/vue";
21
20
  const ge = {
22
21
  class: "UserAvatar"
@@ -61,7 +60,7 @@ const ge = {
61
60
  setup(t) {
62
61
  const {
63
62
  open: e
64
- } = oe();
63
+ } = ee();
65
64
  return (o, s) => (r(), v(n(N), {
66
65
  type: "primary",
67
66
  class: "UserSignInButton",
@@ -132,7 +131,7 @@ const Ce = {
132
131
  nickname: e.nickname,
133
132
  email: e.email,
134
133
  phone: e.phone
135
- })), s = b(() => J(o.value)), i = b(() => se(o.value));
134
+ })), s = b(() => J(o.value)), i = b(() => ae(o.value));
136
135
  return (c, a) => (r(), p("div", Ce, [_(n(G), {
137
136
  "image-url": t.avatarUrl,
138
137
  size: t.avatarSize,
@@ -282,7 +281,7 @@ const Ce = {
282
281
  }
283
282
  return A(s, (h) => {
284
283
  h && O();
285
- }), ee(() => {
284
+ }), te(() => {
286
285
  s.value && O();
287
286
  }), (h, C) => {
288
287
  var V, z, T, L, E, j;
@@ -347,7 +346,7 @@ const Ce = {
347
346
  }])
348
347
  }, [n(o) === "pending" ? (r(), p("span", Ye)) : n(o) === "unauthenticated" ? (r(), v(Ie, {
349
348
  key: 1
350
- })) : (r(), v(n(te), {
349
+ })) : (r(), v(n(ne), {
351
350
  key: 2,
352
351
  "popup-visible": c.value,
353
352
  "onUpdate:popupVisible": u[0] || (u[0] = (f) => c.value = f),
@@ -379,7 +378,7 @@ const Ce = {
379
378
  _: 3
380
379
  }, 8, ["popup-visible", "position", "popup-style"]))], 2));
381
380
  }
382
- }), ht = /* @__PURE__ */ S(Je, [["__scopeId", "data-v-c03d428f"]]), Ke = ["disabled"], Qe = {
381
+ }), It = /* @__PURE__ */ S(Je, [["__scopeId", "data-v-c03d428f"]]), Ke = ["disabled"], Qe = {
383
382
  class: "UserMenuItem__label"
384
383
  }, We = {
385
384
  class: "UserMenuItem__label-text"
@@ -426,7 +425,7 @@ const Ce = {
426
425
  }]),
427
426
  disabled: t.disabled,
428
427
  onClick: a
429
- }, [d("span", Qe, [s.value ? (r(), v(n(ne), {
428
+ }, [d("span", Qe, [s.value ? (r(), v(n(se), {
430
429
  key: 0,
431
430
  count: t.badge,
432
431
  "max-count": 99,
@@ -443,7 +442,7 @@ const Ce = {
443
442
  height: 16
444
443
  }, null, 8, ["icon"])) : U("", !0)], !0)])) : U("", !0)], 10, Ke));
445
444
  }
446
- }), D = /* @__PURE__ */ S(et, [["__scopeId", "data-v-d5d01729"]]), St = /* @__PURE__ */ m({
445
+ }), D = /* @__PURE__ */ S(et, [["__scopeId", "data-v-d5d01729"]]), ht = /* @__PURE__ */ m({
447
446
  __name: "UserMenuModals",
448
447
  setup(t) {
449
448
  const {
@@ -481,7 +480,7 @@ const Ce = {
481
480
  }, null, 512), _(fe, {
482
481
  ref_key: "feedbackModalRef",
483
482
  ref: I
484
- }, null, 512), _(ae, {
483
+ }, null, 512), _(oe, {
485
484
  ref_key: "refereesRef",
486
485
  ref: $
487
486
  }, null, 512)], 64));
@@ -505,7 +504,7 @@ const Ce = {
505
504
  }, null, 8, ["user-id", "avatar-url", "nickname", "email", "phone"])]);
506
505
  };
507
506
  }
508
- }), Bt = /* @__PURE__ */ S(nt, [["__scopeId", "data-v-fe79b69c"]]), $t = /* @__PURE__ */ m({
507
+ }), St = /* @__PURE__ */ S(nt, [["__scopeId", "data-v-fe79b69c"]]), Bt = /* @__PURE__ */ m({
509
508
  __name: "UserMenuMessageItem",
510
509
  setup(t) {
511
510
  const {
@@ -522,7 +521,7 @@ const Ce = {
522
521
  _: 1
523
522
  }, 8, ["badge", "onClick"]));
524
523
  }
525
- }), Mt = /* @__PURE__ */ m({
524
+ }), $t = /* @__PURE__ */ m({
526
525
  __name: "UserMenuSettingItem",
527
526
  setup(t) {
528
527
  const {
@@ -536,7 +535,7 @@ const Ce = {
536
535
  _: 1
537
536
  }, 8, ["onClick"]));
538
537
  }
539
- }), Ct = /* @__PURE__ */ m({
538
+ }), Mt = /* @__PURE__ */ m({
540
539
  __name: "UserMenuSubscriptionItem",
541
540
  setup(t) {
542
541
  const {
@@ -550,7 +549,7 @@ const Ce = {
550
549
  _: 1
551
550
  }));
552
551
  }
553
- }), xt = /* @__PURE__ */ m({
552
+ }), Ct = /* @__PURE__ */ m({
554
553
  __name: "UserMenuFeedbackItem",
555
554
  setup(t) {
556
555
  const {
@@ -567,7 +566,7 @@ const Ce = {
567
566
  _: 1
568
567
  }, 8, ["badge", "onClick"]));
569
568
  }
570
- }), At = /* @__PURE__ */ m({
569
+ }), xt = /* @__PURE__ */ m({
571
570
  __name: "UserMenuInvitationsItem",
572
571
  setup(t) {
573
572
  const {
@@ -583,19 +582,19 @@ const Ce = {
583
582
  }
584
583
  });
585
584
  export {
586
- Bt as U,
587
- xt as _,
585
+ St as U,
586
+ Ct as _,
588
587
  ke as a,
589
588
  Q as b,
590
- ht as c,
589
+ It as c,
591
590
  $e as d,
592
591
  Xe as e,
593
- At as f,
592
+ xt as f,
594
593
  D as g,
595
- $t as h,
596
- St as i,
597
- Mt as j,
598
- Ct as k,
594
+ Bt as h,
595
+ ht as i,
596
+ $t as j,
597
+ Mt as k,
599
598
  Ie as l,
600
599
  Fe as m
601
600
  };
@@ -1,30 +1,30 @@
1
- import { defineComponent as x, ref as A, watch as N, openBlock as o, createElementBlock as a, createElementVNode as s, createVNode as r, unref as c, withCtx as P, createTextVNode as H, renderSlot as z, toDisplayString as T, createCommentVNode as I, onMounted as G, onBeforeUnmount as F, normalizeClass as C, Fragment as B, renderList as E, createBlock as J, Teleport as ve, nextTick as q, computed as L, normalizeStyle as O } from "vue";
2
- import { u as Q } from "./useAuthkitAuth-CO61XogP.js";
3
- import "./apiClients-8_c5cDW5.js";
4
- import { u as ge } from "./useAuthkitAppsAuthPageInfo-mv7hOnhi.js";
5
- import { s as ye, a as be } from "./runtime-CDEl4QQl.js";
1
+ import { defineComponent as x, ref as A, watch as N, openBlock as o, createElementBlock as a, createElementVNode as s, createVNode as r, unref as c, withCtx as P, createTextVNode as H, renderSlot as z, toDisplayString as T, createCommentVNode as I, onMounted as j, onBeforeUnmount as F, normalizeClass as C, Fragment as B, renderList as E, createBlock as J, Teleport as ve, nextTick as G, computed as L, normalizeStyle as O } from "vue";
2
+ import { u as Q } from "./useAuthkitAuth-CV60Hc3o.js";
3
+ import "./apiClients-5u4_uxFE.js";
4
+ import { u as ge } from "./useAuthkitAppsAuthPageInfo-CsivtUQH.js";
5
+ import { s as ye, a as be } from "./runtime-B-tHI8-q.js";
6
6
  import "@vafast/api-client";
7
- /* empty css */
8
7
  import "@arco-design/web-vue";
9
- import "./useAuthkitUsersProfile-CF7t2Y7T.js";
8
+ import "./useAuthkitUsersProfile-CQOLEAxC.js";
10
9
  import { useRouter as X, useRoute as Y } from "vue-router";
11
- import { d as Z, e as ee, f as te, w as ne, a as oe, j as se } from "./useRoutePermission-Bvn-J8bp.js";
10
+ import { c as Z, w as ee } from "./useAccessPosture-DBNTLWQn.js";
11
+ import { d as te, f as ne, a as oe, e as se } from "./useRoutePermission-BkWHsFxN.js";
12
12
  import "@unhead/vue";
13
13
  import "./useUserMenu-ClPBlvaM.js";
14
- import { c as ae, h as re, k as ie, _ as ue, f as le, j as ce, d as de, g as D, U as ke, i as me } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BQgy_CeZ.js";
15
- import "./useBillingSubscriptionSummary-C2E3p68U.js";
14
+ import { c as ae, h as re, k as ie, _ as ue, f as le, j as ce, d as de, g as D, U as ke, i as me } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BH6l-SKs.js";
15
+ import "./useBillingSubscriptionSummary-DakAVL-3.js";
16
16
  /* empty css */
17
17
  /* empty css */
18
- import { M as we } from "./Menu-uCexrsKP.js";
18
+ import { M as we } from "./Menu-C6NA8hCs.js";
19
19
  import "./CollapseItem-DUzZA6tx.js";
20
20
  /* empty css */
21
21
  /* empty css */
22
- import "./userMenuModal-D-nDaYqM.js";
23
- import "./index-D9YtlhTa.js";
22
+ import "./userMenuModal-B4m4CHlW.js";
23
+ import "./index-5OR_BVTz.js";
24
24
  /* empty css */
25
- import "./CustomTable-B1KjkixL.js";
25
+ import "./CustomTable-C15Dgbks.js";
26
26
  import "@vueuse/core";
27
- import "./index-D56hUMeD.js";
27
+ import "./index-BIxwv9Xs.js";
28
28
  import { Icon as R } from "@iconify/vue";
29
29
  import { L as pe } from "./Logo-B9DFBxDU.js";
30
30
  import { _ as S } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -56,14 +56,14 @@ const Me = {
56
56
  signOut: _
57
57
  } = Q(), {
58
58
  menus: v
59
- } = ee(e.menuType), k = X();
59
+ } = te(e.menuType), k = X();
60
60
  async function $() {
61
61
  await _(), i();
62
62
  }
63
63
  const b = Y(), M = A([""]);
64
64
  function t(d) {
65
65
  const l = d.path;
66
- ne(() => {
66
+ ee(() => {
67
67
  k.push({
68
68
  path: l,
69
69
  query: b.query
@@ -74,7 +74,7 @@ const Me = {
74
74
  });
75
75
  }
76
76
  return N(() => [b.path, v.value], () => {
77
- const d = te(v.value, b.path, {
77
+ const d = ne(v.value, b.path, {
78
78
  // Sidebar 中,子路由应该选中子菜单项
79
79
  returnParentOnChildMatch: !1,
80
80
  // 后备查找函数
@@ -180,11 +180,11 @@ const Me = {
180
180
  }, We = ["onClick"], Ve = {
181
181
  key: 0,
182
182
  class: "submenu-item-icon"
183
- }, je = {
184
- class: "submenu-item-content"
185
183
  }, qe = {
186
- class: "submenu-item-title"
184
+ class: "submenu-item-content"
187
185
  }, Ge = {
186
+ class: "submenu-item-title"
187
+ }, je = {
188
188
  key: 0,
189
189
  class: "submenu-item-description"
190
190
  }, Fe = ["onClick"], Je = ["aria-expanded", "aria-label"], Qe = {
@@ -222,13 +222,13 @@ const Me = {
222
222
  return Array.from(n.querySelectorAll('button:not([disabled]), a[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])'));
223
223
  }
224
224
  function M() {
225
- i.value || ($ = document.body.style.overflow, document.body.style.overflow = "hidden", i.value = !0, q(() => {
225
+ i.value || ($ = document.body.style.overflow, document.body.style.overflow = "hidden", i.value = !0, G(() => {
226
226
  var n;
227
227
  return (n = b(k.value ?? document.body)[0]) == null ? void 0 : n.focus();
228
228
  }));
229
229
  }
230
230
  function t() {
231
- i.value && (i.value = !1, document.body.style.overflow = $, q(() => {
231
+ i.value && (i.value = !1, document.body.style.overflow = $, G(() => {
232
232
  var n;
233
233
  return (n = v.value) == null ? void 0 : n.focus();
234
234
  }));
@@ -276,7 +276,7 @@ const Me = {
276
276
  const u = g[0], w = g[g.length - 1];
277
277
  n.shiftKey && document.activeElement === u ? (n.preventDefault(), w.focus()) : !n.shiftKey && document.activeElement === w && (n.preventDefault(), u.focus());
278
278
  }
279
- return G(() => document.addEventListener("keydown", V)), F(() => {
279
+ return j(() => document.addEventListener("keydown", V)), F(() => {
280
280
  document.removeEventListener("keydown", V), document.body.style.overflow = $;
281
281
  }), (n, g) => (o(), a("div", {
282
282
  class: C(["HeaderMenus", {
@@ -291,15 +291,15 @@ const Me = {
291
291
  }, [H(T(u.name) + " ", 1), r(c(R), {
292
292
  icon: "mingcute:down-line",
293
293
  class: "dropdown-arrow"
294
- })], 2), s("div", Ne, [s("div", ze, [(o(!0), a(B, null, E(u.children, (y, j) => (o(), a("div", {
295
- key: j,
294
+ })], 2), s("div", Ne, [s("div", ze, [(o(!0), a(B, null, E(u.children, (y, q) => (o(), a("div", {
295
+ key: q,
296
296
  class: C(["submenu-item", {
297
297
  active: W(y)
298
298
  }]),
299
299
  onClick: ($t) => m(y)
300
300
  }, [y.icon ? (o(), a("div", Ve, [r(c(R), {
301
301
  icon: y.icon
302
- }, null, 8, ["icon"])])) : I("", !0), s("div", je, [s("div", qe, T(y.name), 1), y.description ? (o(), a("div", Ge, T(y.description), 1)) : I("", !0)])], 10, We))), 128))])])])) : (o(), a("div", {
302
+ }, null, 8, ["icon"])])) : I("", !0), s("div", qe, [s("div", Ge, T(y.name), 1), y.description ? (o(), a("div", je, T(y.description), 1)) : I("", !0)])], 10, We))), 128))])])])) : (o(), a("div", {
303
303
  key: 1,
304
304
  class: C(["headerLink", {
305
305
  activate: K(u)
@@ -357,7 +357,7 @@ const Me = {
357
357
  class: C(["mobile-submenu-item", {
358
358
  active: W(y)
359
359
  }]),
360
- onClick: (j) => U(y)
360
+ onClick: (q) => U(y)
361
361
  }, T(y.name), 11, et))), 128))])) : I("", !0)])) : (o(), a("button", {
362
362
  key: 1,
363
363
  type: "button",
@@ -410,13 +410,13 @@ const Me = {
410
410
  signOut: _
411
411
  } = Q(), {
412
412
  menus: v
413
- } = ee(e.menuType), k = A(""), $ = X(), b = Y();
413
+ } = te(e.menuType), k = A(""), $ = X(), b = Y();
414
414
  async function M() {
415
415
  await _(), i();
416
416
  }
417
417
  function t(l) {
418
418
  const m = l.path;
419
- ne(() => {
419
+ ee(() => {
420
420
  $.push(m), k.value = m, window.scrollTo({
421
421
  top: 0,
422
422
  behavior: "smooth"
@@ -427,7 +427,7 @@ const Me = {
427
427
  ye(e.theme === "dark" ? "light" : "dark");
428
428
  }
429
429
  return N(() => [b.path, v.value], () => {
430
- k.value = te(v.value, b.path, {
430
+ k.value = ne(v.value, b.path, {
431
431
  // Header 中,子菜单匹配时返回父菜单路径
432
432
  returnParentOnChildMatch: !0,
433
433
  // 后备查找函数
@@ -536,7 +536,7 @@ const Me = {
536
536
  typeof window > "u" || (f.value = ((d = (t = window.matchMedia) == null ? void 0 : t.call(window, "(prefers-color-scheme: dark)")) == null ? void 0 : d.matches) ?? !1);
537
537
  }
538
538
  let _;
539
- G(() => {
539
+ j(() => {
540
540
  var d, l;
541
541
  i();
542
542
  const t = (d = window.matchMedia) == null ? void 0 : d.call(window, "(prefers-color-scheme: dark)");
@@ -1,12 +1,11 @@
1
1
  import { eden as f, defineMiddleware as w, createClient as j } from "@vafast/api-client";
2
- /* empty css */
3
2
  import { Message as $ } from "@arco-design/web-vue";
4
3
  import { ref as M, computed as A } from "vue";
5
4
  function k(e, r = 3) {
6
5
  const n = e.indexOf("@");
7
6
  if (n > 1) {
8
- const s = e.slice(0, r), i = e.slice(n);
9
- return s + "***" + i;
7
+ const a = e.slice(0, r), s = e.slice(n);
8
+ return a + "***" + s;
10
9
  }
11
10
  return e;
12
11
  }
@@ -23,22 +22,22 @@ const z = {
23
22
  function se(e) {
24
23
  return e ? z[e] ?? e : "-";
25
24
  }
26
- function ue(e) {
27
- var n, s, i, h, p, m, o, a, t;
25
+ function ae(e) {
26
+ var n, a, s, h, p, m, o, i, t;
28
27
  const r = [];
29
- if ((n = e.email) != null && n.trim() && r.push(k(e.email.trim())), (s = e.phone) != null && s.trim() && r.push(O(e.phone.trim())), e.wechat) {
30
- const u = (i = e.wechat.nickname) == null ? void 0 : i.trim();
28
+ if ((n = e.email) != null && n.trim() && r.push(k(e.email.trim())), (a = e.phone) != null && a.trim() && r.push(O(e.phone.trim())), e.wechat) {
29
+ const u = (s = e.wechat.nickname) == null ? void 0 : s.trim();
31
30
  r.push(u ? `微信(${u})` : "微信");
32
31
  }
33
- return (p = (h = e.github) == null ? void 0 : h.login) != null && p.trim() && r.push(`GitHub(${e.github.login.trim()})`), (o = (m = e.google) == null ? void 0 : m.email) != null && o.trim() && r.push(k(e.google.email.trim())), (t = (a = e.microsoft) == null ? void 0 : a.email) != null && t.trim() && r.push(k(e.microsoft.email.trim())), r.length > 0 ? r.join(" / ") : "-";
32
+ return (p = (h = e.github) == null ? void 0 : h.login) != null && p.trim() && r.push(`GitHub(${e.github.login.trim()})`), (o = (m = e.google) == null ? void 0 : m.email) != null && o.trim() && r.push(k(e.google.email.trim())), (t = (i = e.microsoft) == null ? void 0 : i.email) != null && t.trim() && r.push(k(e.microsoft.email.trim())), r.length > 0 ? r.join(" / ") : "-";
34
33
  }
35
34
  const g = /* @__PURE__ */ new Set();
36
- function le(e) {
35
+ function ue(e) {
37
36
  return g.add(e), () => {
38
37
  g.delete(e);
39
38
  };
40
39
  }
41
- function P() {
40
+ function v() {
42
41
  try {
43
42
  localStorage.removeItem("jwtToken"), localStorage.removeItem("refreshToken");
44
43
  } catch (e) {
@@ -46,7 +45,7 @@ function P() {
46
45
  }
47
46
  g.forEach((e) => e());
48
47
  }
49
- function ce(e) {
48
+ function le(e) {
50
49
  try {
51
50
  localStorage.setItem("jwtToken", e.jwtToken), localStorage.setItem("refreshToken", e.refreshToken);
52
51
  } catch (r) {
@@ -100,7 +99,7 @@ function q() {
100
99
  view: A(() => S.value)
101
100
  };
102
101
  }
103
- const T = 40101, E = 401, J = ["/apps/authPageInfo", "/users/profile"];
102
+ const T = 40101, E = 401, J = ["/apps/authPageInfo", "/users/profile", "/serviceAccess/config"];
104
103
  function G(e) {
105
104
  var r;
106
105
  return e.status === E || ((r = e.error) == null ? void 0 : r.code) === E;
@@ -116,25 +115,25 @@ function W() {
116
115
  e();
117
116
  }
118
117
  function I() {
119
- P(), W();
118
+ v(), W();
120
119
  }
121
120
  function X() {
122
- P();
121
+ v();
123
122
  }
124
- function b(e) {
123
+ function P(e) {
125
124
  return J.some((r) => e.includes(r));
126
125
  }
127
- function v(e) {
126
+ function b(e) {
128
127
  if (e.type === "network" || e.type === "timeout" || e.type === "abort")
129
128
  return !0;
130
129
  const r = e.message || "";
131
130
  return /failed to fetch|networkerror|load failed|network request failed|请求超时|请求已取消|network error/i.test(r);
132
131
  }
133
132
  function Z(e, r) {
134
- return !!(e.meta.get("silentError") === !0 || b(e.path) && v(r));
133
+ return !!(e.meta.get("silentError") === !0 || P(e.path) && b(r));
135
134
  }
136
135
  function Y(e) {
137
- return v(e) ? e.type === "timeout" || e.message.includes("超时") ? "请求超时,请稍后重试" : e.type === "abort" || e.message.includes("取消") ? "请求已取消" : "网络异常,请稍后重试" : e.message || "请求失败";
136
+ return b(e) ? e.type === "timeout" || e.message.includes("超时") ? "请求超时,请稍后重试" : e.type === "abort" || e.message.includes("取消") ? "请求已取消" : "网络异常,请稍后重试" : e.message || "请求失败";
138
137
  }
139
138
  function ee(e, r, n) {
140
139
  console.warn(n ? "[api:silent]" : "[api]", e.method, e.path, r.type || "unknown", r.code, r.message);
@@ -151,47 +150,47 @@ async function re(e) {
151
150
  "x-platform": e.platform
152
151
  };
153
152
  e.appVersion && (n["x-app-version"] = e.appVersion);
154
- const i = await (await fetch(`${e.authPrefixUrl}/auth/refresh`, {
153
+ const s = await (await fetch(`${e.authPrefixUrl}/auth/refresh`, {
155
154
  method: "POST",
156
155
  headers: n,
157
156
  body: JSON.stringify({
158
157
  refreshToken: r
159
158
  })
160
159
  })).json();
161
- if (i.jwtToken)
162
- return L(i.jwtToken), i.refreshToken && localStorage.setItem("refreshToken", i.refreshToken), i.jwtToken;
163
- throw new Error(i.message || "Token refresh failed");
160
+ if (s.jwtToken)
161
+ return L(s.jwtToken), s.refreshToken && localStorage.setItem("refreshToken", s.refreshToken), s.jwtToken;
162
+ throw new Error(s.message || "Token refresh failed");
164
163
  } catch (n) {
165
164
  throw console.error("Token refresh failed:", n), n;
166
165
  }
167
166
  }
168
167
  function R(e) {
169
168
  let r = !1, n = [];
170
- function s(o, a = null) {
169
+ function a(o, i = null) {
171
170
  n.forEach(({
172
171
  resolve: t,
173
172
  reject: u
174
173
  }) => {
175
- o ? u(o) : a && t(a);
174
+ o ? u(o) : i && t(i);
176
175
  }), n = [];
177
176
  }
178
- const i = w(async (o, a) => (o.headers.set("app-id", e.appId), o.headers.set("client-key", e.clientKey), o.headers.set("x-platform", e.platform), e.appVersion && o.headers.set("x-app-version", e.appVersion), a()), {
177
+ const s = w(async (o, i) => (o.headers.set("app-id", e.appId), o.headers.set("client-key", e.clientKey), o.headers.set("x-platform", e.platform), e.appVersion && o.headers.set("x-app-version", e.appVersion), i()), {
179
178
  name: "app-id"
180
- }), h = w(async (o, a) => {
179
+ }), h = w(async (o, i) => {
181
180
  const t = e.getAccessToken();
182
- return t && o.headers.set("authorization", `Bearer ${t}`), a();
181
+ return t && o.headers.set("authorization", `Bearer ${t}`), i();
183
182
  }, {
184
183
  name: "token"
185
- }), p = w(async (o, a) => {
184
+ }), p = w(async (o, i) => {
186
185
  var u;
187
- const t = await a();
186
+ const t = await i();
188
187
  if (((u = t.error) == null ? void 0 : u.code) !== T)
189
188
  return t;
190
189
  if (r)
191
190
  return new Promise((l, U) => {
192
191
  n.push({
193
192
  resolve: async (C) => {
194
- o.headers.set("authorization", `Bearer ${C}`), l(await a());
193
+ o.headers.set("authorization", `Bearer ${C}`), l(await i());
195
194
  },
196
195
  reject: () => U(t)
197
196
  });
@@ -199,18 +198,18 @@ function R(e) {
199
198
  r = !0;
200
199
  try {
201
200
  const l = await re(e);
202
- return s(null, l), o.headers.set("authorization", `Bearer ${l}`), await a();
201
+ return a(null, l), o.headers.set("authorization", `Bearer ${l}`), await i();
203
202
  } catch (l) {
204
- return s(l, null), I(), t;
203
+ return a(l, null), I(), t;
205
204
  } finally {
206
205
  r = !1;
207
206
  }
208
207
  }, {
209
208
  name: "token-refresh"
210
- }), m = w(async (o, a) => {
211
- const t = await a();
209
+ }), m = w(async (o, i) => {
210
+ const t = await i();
212
211
  if (Q(t))
213
- return b(o.path) ? (X(), t) : (I(), t);
212
+ return P(o.path) ? (X(), t) : (I(), t);
214
213
  if (t.error && t.error.code !== T) {
215
214
  const u = Z(o, t.error);
216
215
  ee(o, t.error, u), u || $.error(Y(t.error));
@@ -220,18 +219,18 @@ function R(e) {
220
219
  name: "error-message"
221
220
  });
222
221
  return {
223
- appIdMiddleware: i,
222
+ appIdMiddleware: s,
224
223
  tokenMiddleware: h,
225
224
  tokenRefreshMiddleware: p,
226
225
  errorMessageMiddleware: m
227
226
  };
228
227
  }
229
- function fe(e, r) {
228
+ function ce(e, r) {
230
229
  const {
231
230
  tokenRefreshMiddleware: n,
232
- errorMessageMiddleware: s
231
+ errorMessageMiddleware: a
233
232
  } = R(r);
234
- return e.use(n).use(s);
233
+ return e.use(n).use(a);
235
234
  }
236
235
  function c(e, r) {
237
236
  return j({
@@ -251,26 +250,26 @@ function te(e) {
251
250
  };
252
251
  }
253
252
  let d = null;
254
- function he(e) {
253
+ function fe(e) {
255
254
  if (d)
256
255
  throw new Error("Huyooo UI Runtime 已初始化,不能重复创建");
257
256
  return d = te(e), d;
258
257
  }
259
- function de() {
258
+ function he() {
260
259
  if (!d)
261
260
  throw new Error("请先在应用入口调用 app.use(createHuyoooUI(config))");
262
261
  return d;
263
262
  }
264
263
  export {
265
- ue as b,
264
+ ae as b,
266
265
  R as c,
267
266
  se as f,
268
- de as g,
267
+ he as g,
269
268
  k as h,
270
- he as i,
271
- le as o,
272
- P as r,
273
- ce as s,
269
+ fe as i,
270
+ ue as o,
271
+ v as r,
272
+ le as s,
274
273
  q as u,
275
- fe as w
274
+ ce as w
276
275
  };
package/dist/authkit.js CHANGED
@@ -1,13 +1,13 @@
1
- import { A as s, B as i, a as e, _ as u, b as h, O as A, P as o, c as r, d as n, e as k, f as d, S as g, g as l, h as p, u as P, i as f } from "./AuthkitAppSetting-DhLRYlL_.js";
2
- import { A as m, a as S, b as L, c as O, d as U, E as w, e as x, f as B, g as D, O as E, h as b, P as y, i as C, j as I, _ as v, R as V, S as _, k as R, l as T, m as G, n as M, o as j, p as z, L as F } from "./LegalDocViewer-DkVW9tCh.js";
3
- import { u as Y } from "./useAuthkitAppsAuthPageInfo-mv7hOnhi.js";
4
- import { u as H } from "./useAuthkitAuth-CO61XogP.js";
5
- import { u as N } from "./apiClients-8_c5cDW5.js";
6
- import { u as W } from "./useEnsureAuthenticated-Q7EHguY4.js";
7
- import { L as Z, a as $, b as tt, i as at, o as st, r as it, c as et, u as ut } from "./useLegalDocs-DUbab5R9.js";
8
- import { f as At } from "./fetchAuthPageAboutUs--dArFYk6.js";
9
- import { u as rt } from "./useAuthkitUsersProfile-CF7t2Y7T.js";
10
- import { u as kt } from "./useAuthkitCreateAndUpdate-CYIcEuub.js";
1
+ import { A as s, B as i, a as e, _ as u, b as h, O as A, P as o, c as r, d as n, e as k, f as d, S as g, g as l, h as p, u as P, i as f } from "./AuthkitAppSetting-Cg8j3nES.js";
2
+ import { A as m, a as S, b as L, c as O, d as U, E as w, e as x, f as B, g as D, O as E, h as b, P as y, i as C, j as I, _ as v, R as V, S as _, k as R, l as T, m as G, n as M, o as j, p as z, L as F } from "./LegalDocViewer-BuzKCAfO.js";
3
+ import { u as Y } from "./useAuthkitAppsAuthPageInfo-CsivtUQH.js";
4
+ import { u as H } from "./useAuthkitAuth-CV60Hc3o.js";
5
+ import { u as N } from "./apiClients-5u4_uxFE.js";
6
+ import { u as W } from "./useEnsureAuthenticated-BYGI2uYZ.js";
7
+ import { L as Z, a as $, b as tt, i as at, o as st, r as it, c as et, u as ut } from "./useLegalDocs-BrYWCDh3.js";
8
+ import { f as At } from "./fetchAuthPageAboutUs-C-jQ44QK.js";
9
+ import { u as rt } from "./useAuthkitUsersProfile-CQOLEAxC.js";
10
+ import { u as kt } from "./useAuthkitCreateAndUpdate-DJIn96EE.js";
11
11
  export {
12
12
  s as AuthkitAppSetting,
13
13
  m as AuthkitAuth,
@@ -7,9 +7,9 @@ export declare function setTheme(mode: GlobalTheme): void;
7
7
  export interface HuyoooUIConfig {
8
8
  /** 应用ID - 必填 */
9
9
  appId: string;
10
- /** 端标识:web / desktop / ios / android(用户端必填) */
10
+ /** 端标识:web / desktop / ios / android / mini_program(用户端必填) */
11
11
  clientKey: string;
12
- /** 运行平台:browser / darwin / win32 / linux / ios / android(用户端必填) */
12
+ /** 运行平台:browser / darwin / win32 / linux / ios / android / weixin / alipay / douyin / baidu / qq / kuaishou(用户端必填) */
13
13
  platform: string;
14
14
  /** 应用版本(可选) */
15
15
  appVersion?: string;
@@ -56,9 +56,9 @@ export interface HuyoooUIEndpoints {
56
56
  export interface CreateHuyoooUIOptions {
57
57
  /** 应用ID - 必填 */
58
58
  appId: string;
59
- /** 端标识:web / desktop / ios / android(用户端必填) */
59
+ /** 端标识:web / desktop / ios / android / mini_program(用户端必填) */
60
60
  clientKey: string;
61
- /** 运行平台:browser / darwin / win32 / linux / ios / android(用户端必填) */
61
+ /** 运行平台:browser / darwin / win32 / linux / ios / android / weixin / alipay / douyin / baidu / qq / kuaishou(用户端必填) */
62
62
  platform: string;
63
63
  /** 应用版本(可选) */
64
64
  appVersion?: string;
package/dist/common.js CHANGED
@@ -1,8 +1,8 @@
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-BEeYYOat.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-DXwIiG2x.js";
2
2
  import { C as d, a as f } from "./CollapseItem-DUzZA6tx.js";
3
- import { C as x, E as b } from "./CustomTable-B1KjkixL.js";
3
+ import { C as x, E as b } from "./CustomTable-C15Dgbks.js";
4
4
  import { L } from "./Logo-B9DFBxDU.js";
5
- import { M as g, a as A } from "./Menu-uCexrsKP.js";
5
+ import { M as g, a as A } from "./Menu-C6NA8hCs.js";
6
6
  export {
7
7
  s as AppLayout,
8
8
  o as AppSidebar,