@huyooo/ui 0.9.5 → 0.9.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 (37) hide show
  1. package/dist/{AuthkitAuthModal-DTp9ezGF.js → AuthkitAuthModal-C7uInLdY.js} +6 -6
  2. package/dist/{AuthkitSignInPhone-BtF8EKsU.js → AuthkitSignInPhone-8uhC9TZk.js} +3 -3
  3. package/dist/{Clipboard-0N-MKzqm.js → Clipboard-cVQOko5l.js} +1 -1
  4. package/dist/{Contact-D6GPPI8o.js → Contact-DUmCnXqQ.js} +2 -2
  5. package/dist/{FeedbackItem-Btw2or6g.js → FeedbackItem-fkgvLHJD.js} +3 -3
  6. package/dist/{FeedbackModal-CVQQ2O8N.js → FeedbackModal-CIZ40lMX.js} +4 -4
  7. package/dist/{Menu-DBM4qGP_.js → Menu-DXrn5cEL.js} +28 -25
  8. package/dist/{MessageHandle-DpBexctb.js → MessageHandle-DTzrBuMx.js} +3 -3
  9. package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-DsBT6Bms.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-CmCk86SN.js} +2 -2
  10. package/dist/{PaySubscriptions-BnV62kZT.js → PaySubscriptions-DyhcLb_v.js} +2 -2
  11. package/dist/{ReferrerReferees-B2rVAc7y.js → ReferrerReferees-DxsvdWMg.js} +4 -4
  12. package/dist/{Upload.vue_vue_type_script_setup_true_lang-CzOKd9iz.js → Upload.vue_vue_type_script_setup_true_lang-BWn8nk3F.js} +1 -1
  13. package/dist/{UserAccountMenu-CAG_zxWb.js → UserAccountMenu-BV_lg4Mh.js} +7 -7
  14. package/dist/{WidthContainer-_vCYXka6.js → WidthContainer-DijLkJHM.js} +8 -8
  15. package/dist/{apiClients-B0ARoiN3.js → apiClients-DACL0EIt.js} +91 -94
  16. package/dist/authkit.js +6 -6
  17. package/dist/common.js +2 -2
  18. package/dist/composables.js +9 -9
  19. package/dist/feedback.js +3 -3
  20. package/dist/index.js +194 -191
  21. package/dist/main.d.ts +1 -1
  22. package/dist/message.js +3 -3
  23. package/dist/pay.js +1 -1
  24. package/dist/privateCom.js +1 -1
  25. package/dist/referrer.js +1 -1
  26. package/dist/style.css +1 -1
  27. package/dist/upload.js +2 -2
  28. package/dist/{useAuthkitAppsAuthPageInfo-DZ53lPr0.js → useAuthkitAppsAuthPageInfo-xaOevaqO.js} +1 -1
  29. package/dist/{useAuthkitCreateAndUpdate-C7NaHnDj.js → useAuthkitCreateAndUpdate-CrSEPNA3.js} +1 -1
  30. package/dist/{useAuthkitUsersProfile-DkDg2EYG.js → useAuthkitUsersProfile-TtiVCE3D.js} +1 -1
  31. package/dist/{useDownloads-CvcHx4gM.js → useDownloads-DskduMrh.js} +1 -1
  32. package/dist/{useMessageNotifications-BhTNNEib.js → useMessageNotifications-CMGnvtH8.js} +1 -1
  33. package/dist/{useSEO-DxAohN0h.js → useSEO-BjcQPhFP.js} +2 -2
  34. package/dist/{useTableHandle-DkqiT-qL.js → useTableHandle-LnJV7C1S.js} +1 -1
  35. package/dist/{useUploadCos-D51-yXoX.js → useUploadCos-CPplFhAR.js} +1 -1
  36. package/dist/user.js +1 -1
  37. package/package.json +3 -3
@@ -4,15 +4,15 @@
4
4
  import { defineComponent as V, computed as N, createElementBlock as U, openBlock as g, normalizeStyle as ie, normalizeClass as _e, createElementVNode as z, ref as w, createBlock as k, unref as e, withCtx as a, createVNode as i, createTextVNode as _, onMounted as K, onUnmounted as oe, withDirectives as be, toDisplayString as B, vShow as ke, Fragment as M, createCommentVNode as S, renderList as ze, isRef as re, useSlots as Se, renderSlot as ue } from "vue";
5
5
  import { Form as H, FormItem as I, Avatar as de, Input as x, Textarea as Ie, Button as A, Message as F, Alert as D, Space as Y, InputPassword as Ve, Result as Ae, Modal as me, Divider as Pe, Link as G } from "@arco-design/web-vue";
6
6
  /* empty css */
7
- import { c as R, g as j, h as ce, u as Ue } from "./apiClients-B0ARoiN3.js";
7
+ import { c as R, g as j, h as ce, u as Ue } from "./apiClients-DACL0EIt.js";
8
8
  /* empty css */
9
- import { u as $e } from "./useUploadCos-D51-yXoX.js";
9
+ import { u as $e } from "./useUploadCos-CPplFhAR.js";
10
10
  import { _ as Ce, g as xe, i as qe } from "./plugin-vue_export-helper-LjDO2Zua.js";
11
11
  import { _ as $ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
- import { a as Z, u as J } from "./useAuthkitUsersProfile-DkDg2EYG.js";
13
- import { M as Te } from "./Menu-DBM4qGP_.js";
14
- import { u as Re } from "./useAuthkitCreateAndUpdate-C7NaHnDj.js";
15
- import { u as se } from "./useAuthkitAppsAuthPageInfo-DZ53lPr0.js";
12
+ import { a as Z, u as J } from "./useAuthkitUsersProfile-TtiVCE3D.js";
13
+ import { M as Te } from "./Menu-DXrn5cEL.js";
14
+ import { u as Re } from "./useAuthkitCreateAndUpdate-CrSEPNA3.js";
15
+ import { u as se } from "./useAuthkitAppsAuthPageInfo-xaOevaqO.js";
16
16
  import { Icon as Le } from "@iconify/vue";
17
17
  const Be = V({
18
18
  name: "IconCamera",
@@ -8,9 +8,9 @@ import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
8
  /* empty css */
9
9
  /* empty css */
10
10
  import { List as J, ListItem as T, ListItemMeta as L, Avatar as F, Button as P, Form as U, FormItem as b, Input as S, Link as M } from "@arco-design/web-vue";
11
- import { c as R } from "./apiClients-B0ARoiN3.js";
12
- import { u as Q, a as W } from "./useAuthkitUsersProfile-DkDg2EYG.js";
13
- import { S as B, g as X, h as Y } from "./AuthkitAuthModal-DTp9ezGF.js";
11
+ import { c as R } from "./apiClients-DACL0EIt.js";
12
+ import { u as Q, a as W } from "./useAuthkitUsersProfile-TtiVCE3D.js";
13
+ import { S as B, g as X, h as Y } from "./AuthkitAuthModal-C7uInLdY.js";
14
14
  const Z = {
15
15
  class: "header"
16
16
  }, ee = ["href"], te = {
@@ -1,5 +1,5 @@
1
1
  /* empty css */
2
- import "./apiClients-B0ARoiN3.js";
2
+ import "./apiClients-DACL0EIt.js";
3
3
  import { defineComponent as V, ref as X, createBlock as J, openBlock as K, unref as Q } from "vue";
4
4
  import { Message as W } from "@arco-design/web-vue";
5
5
  import { Icon as Z } from "@iconify/vue";
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as P, ref as q, createElementBlock as t, openBlock as Q, createVNode as A, withCtx as B, Fragment as H, renderList as e, createBlock as W, createTextVNode as p, toDisplayString as i, unref as V, createElementVNode as F } from "vue";
2
2
  import { f as n, e as y, h as G, g as R, L as Z, c as h, l as Y, m as b, n as J, k as S, a as O, b as d } from "./LandingPageSectionHeader-BU7Qtxaj.js";
3
3
  import { _ as U } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import { u as M } from "./useAuthkitAppsAuthPageInfo-DZ53lPr0.js";
5
- import { g as L } from "./apiClients-B0ARoiN3.js";
4
+ import { u as M } from "./useAuthkitAppsAuthPageInfo-xaOevaqO.js";
5
+ import { g as L } from "./apiClients-DACL0EIt.js";
6
6
  import { c as x } from "./index-Bb-d5pBq.js";
7
7
  const j = {
8
8
  class: "Footer"
@@ -8,9 +8,9 @@ import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
8
  /* empty css */
9
9
  /* empty css */
10
10
  /* empty css */
11
- import { u as Z } from "./useUploadCos-D51-yXoX.js";
12
- import { g as A } from "./apiClients-B0ARoiN3.js";
13
- import "./FeedbackModal-CVQQ2O8N.js";
11
+ import { u as Z } from "./useUploadCos-CPplFhAR.js";
12
+ import { g as A } from "./apiClients-DACL0EIt.js";
13
+ import "./FeedbackModal-CIZ40lMX.js";
14
14
  import { Icon as Y } from "@iconify/vue";
15
15
  const H = f({
16
16
  name: "IconDown",
@@ -3,22 +3,22 @@
3
3
  /* empty css */
4
4
  import { defineComponent as U, createElementBlock as _, openBlock as o, normalizeStyle as W, normalizeClass as ce, createElementVNode as F, computed as A, createBlock as g, unref as a, withCtx as r, createVNode as u, createCommentVNode as B, Fragment as z, createTextVNode as x, toDisplayString as L, ref as y, onUnmounted as Ie, h as ae, renderList as Q, nextTick as P } from "vue";
5
5
  import { Space as pe, Image as fe, Avatar as me, Descriptions as Re, DescriptionsItem as H, Tag as j, Spin as $e, Button as X, Form as Fe, FormItem as T, Input as Be, Select as le, Option as ne, Textarea as Le, Message as Ue, Breadcrumb as Ve, BreadcrumbItem as se, Modal as ze } from "@arco-design/web-vue";
6
- import { M as qe } from "./Menu-DBM4qGP_.js";
6
+ import { M as qe } from "./Menu-DXrn5cEL.js";
7
7
  /* empty css */
8
8
  /* empty css */
9
9
  /* empty css */
10
10
  /* empty css */
11
- import { o as E, g as De } from "./apiClients-B0ARoiN3.js";
11
+ import { o as E, g as De } from "./apiClients-DACL0EIt.js";
12
12
  /* empty css */
13
13
  /* empty css */
14
14
  /* empty css */
15
- import { u as Ee } from "./useUploadCos-D51-yXoX.js";
15
+ import { u as Ee } from "./useUploadCos-CPplFhAR.js";
16
16
  import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
17
  /* empty css */
18
18
  import { f as O } from "./index-Bb-d5pBq.js";
19
19
  import { C as Ne } from "./CustomTable-BCOwLyRJ.js";
20
20
  import { Bubble as ve, Prompts as Pe, Sender as je } from "ant-design-x-vue";
21
- import { C as ye } from "./Clipboard-0N-MKzqm.js";
21
+ import { C as ye } from "./Clipboard-cVQOko5l.js";
22
22
  import { Icon as Oe } from "@iconify/vue";
23
23
  import { _ as ge, g as be, i as ke } from "./plugin-vue_export-helper-LjDO2Zua.js";
24
24
  const Ae = U({
@@ -1,9 +1,9 @@
1
- import { defineComponent as $, createElementBlock as d, createCommentVNode as m, openBlock as u, normalizeClass as k, createBlock as h, createElementVNode as i, unref as y, toDisplayString as A, ref as D, watch as B, Fragment as g, renderList as M, createVNode as E, Transition as W, withCtx as z, withDirectives as F, vShow as G } from "vue";
1
+ import { defineComponent as $, createElementBlock as i, createCommentVNode as m, openBlock as u, normalizeClass as k, createBlock as h, createElementVNode as d, unref as y, toDisplayString as A, ref as D, watch as B, Fragment as g, renderList as M, createVNode as E, Transition as z, withCtx as F, withDirectives as G, vShow as L } from "vue";
2
2
  import { Icon as C } from "@iconify/vue";
3
3
  import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- const L = {
4
+ const O = {
5
5
  class: "menu-item__name"
6
- }, O = /* @__PURE__ */ $({
6
+ }, T = /* @__PURE__ */ $({
7
7
  __name: "MenuItem",
8
8
  props: {
9
9
  hidden: {
@@ -27,7 +27,7 @@ const L = {
27
27
  emit: v
28
28
  }) {
29
29
  const t = f, p = v;
30
- return (s, l) => t.hidden ? m("", !0) : (u(), d("div", {
30
+ return (s, l) => t.hidden ? m("", !0) : (u(), i("div", {
31
31
  key: 0,
32
32
  class: k(["menu-item", {
33
33
  "menu-item--active": t.active
@@ -38,17 +38,17 @@ const L = {
38
38
  class: "menu-item__icon",
39
39
  icon: t.icon,
40
40
  width: 16
41
- }, null, 8, ["icon"])) : m("", !0), i("span", L, A(t.name), 1)], 2));
41
+ }, null, 8, ["icon"])) : m("", !0), d("span", O, A(t.name), 1)], 2));
42
42
  }
43
- }), I = /* @__PURE__ */ N(O, [["__scopeId", "data-v-6d3265a2"]]), T = {
43
+ }), I = /* @__PURE__ */ N(T, [["__scopeId", "data-v-6d3265a2"]]), j = {
44
44
  class: "menu"
45
- }, j = ["onClick"], q = {
45
+ }, q = ["onClick"], H = {
46
46
  class: "menu-group__header-content"
47
- }, H = {
48
- class: "menu-group__title"
49
47
  }, J = {
48
+ class: "menu-group__title"
49
+ }, Q = {
50
50
  class: "menu-group__children"
51
- }, P = /* @__PURE__ */ $({
51
+ }, R = /* @__PURE__ */ $({
52
52
  __name: "Menu",
53
53
  props: {
54
54
  menus: {
@@ -94,9 +94,12 @@ const L = {
94
94
  function x(n) {
95
95
  p("change", n), p("update:selectedKeys", [n.path]);
96
96
  }
97
- function b(n) {
97
+ function W(n) {
98
98
  return l(n, t.selectedKeys);
99
99
  }
100
+ function b(n) {
101
+ return t.selectedKeys.includes(n) ? !0 : t.selectedKeys.some((a) => a.startsWith(n + "/"));
102
+ }
100
103
  return B(() => t.menus, w, {
101
104
  immediate: !0,
102
105
  deep: !0
@@ -110,33 +113,33 @@ const L = {
110
113
  }
111
114
  }, {
112
115
  deep: !0
113
- }), (n, a) => (u(), d("div", T, [(u(!0), d(g, null, M(t.menus, (e, c) => {
116
+ }), (n, a) => (u(), i("div", j, [(u(!0), i(g, null, M(t.menus, (e, c) => {
114
117
  var r, _, K;
115
- return u(), d("div", {
118
+ return u(), i("div", {
116
119
  key: e.path || c,
117
120
  class: "menu-group"
118
- }, [e.children && e.children.length > 0 ? (u(), d(g, {
121
+ }, [e.children && e.children.length > 0 ? (u(), i(g, {
119
122
  key: 0
120
- }, [i("div", {
123
+ }, [d("div", {
121
124
  class: k(["menu-group__header", {
122
- "menu-group__header--active": b(e)
125
+ "menu-group__header--active": W(e)
123
126
  }]),
124
127
  onClick: (o) => V(e.path || c.toString())
125
- }, [i("div", q, [(r = e == null ? void 0 : e.meta) != null && r.icon || e != null && e.icon ? (u(), h(y(C), {
128
+ }, [d("div", H, [(r = e == null ? void 0 : e.meta) != null && r.icon || e != null && e.icon ? (u(), h(y(C), {
126
129
  key: 0,
127
130
  class: "menu-group__icon",
128
131
  icon: ((_ = e == null ? void 0 : e.meta) == null ? void 0 : _.icon) || (e == null ? void 0 : e.icon),
129
132
  width: 16
130
- }, null, 8, ["icon"])) : m("", !0), i("span", H, A(e.name), 1)]), E(y(C), {
133
+ }, null, 8, ["icon"])) : m("", !0), d("span", J, A(e.name), 1)]), E(y(C), {
131
134
  class: k(["menu-group__arrow", {
132
135
  "menu-group__arrow--expanded": s.value.includes(e.path || c.toString())
133
136
  }]),
134
137
  icon: "mingcute:down-line",
135
138
  width: 14
136
- }, null, 8, ["class"])], 10, j), E(W, {
139
+ }, null, 8, ["class"])], 10, q), E(z, {
137
140
  name: "collapse"
138
141
  }, {
139
- default: z(() => [F(i("div", J, [(u(!0), d(g, null, M(e.children, (o) => {
142
+ default: F(() => [G(d("div", Q, [(u(!0), i(g, null, M(e.children, (o) => {
140
143
  var S;
141
144
  return u(), h(I, {
142
145
  key: o.path,
@@ -144,10 +147,10 @@ const L = {
144
147
  path: o.path,
145
148
  icon: ((S = o == null ? void 0 : o.meta) == null ? void 0 : S.icon) || (o == null ? void 0 : o.icon),
146
149
  name: o.name,
147
- active: t.selectedKeys.includes(o.path),
148
- onClick: (Q) => x(o)
150
+ active: b(o.path),
151
+ onClick: (U) => x(o)
149
152
  }, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]);
150
- }), 128))], 512), [[G, s.value.includes(e.path || c.toString())]])]),
153
+ }), 128))], 512), [[L, s.value.includes(e.path || c.toString())]])]),
151
154
  _: 2
152
155
  }, 1024)], 64)) : (u(), h(I, {
153
156
  key: 1,
@@ -160,8 +163,8 @@ const L = {
160
163
  }, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]))]);
161
164
  }), 128))]));
162
165
  }
163
- }), Y = /* @__PURE__ */ N(P, [["__scopeId", "data-v-5219228d"]]);
166
+ }), P = /* @__PURE__ */ N(R, [["__scopeId", "data-v-75467a0c"]]);
164
167
  export {
165
- Y as M,
168
+ P as M,
166
169
  I as a
167
170
  };
@@ -5,13 +5,13 @@ import { ref as p, defineComponent as T, createBlock as _, openBlock as a, unref
5
5
  /* empty css */
6
6
  /* empty css */
7
7
  import { Spin as X, Empty as Y, Tag as B, Button as ie, Breadcrumb as H, BreadcrumbItem as V, Modal as oe } from "@arco-design/web-vue";
8
- import { o as L } from "./apiClients-B0ARoiN3.js";
8
+ import { o as L } from "./apiClients-DACL0EIt.js";
9
9
  import { TiptapEditor as le, TiptapTitle as re } from "@huyooo/vue-tiptap";
10
10
  import { _ as x } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  import { useIntersectionObserver as ue } from "@vueuse/core";
12
12
  import { Icon as de } from "@iconify/vue";
13
- import { u as ce } from "./useAuthkitCreateAndUpdate-C7NaHnDj.js";
14
- import { M as fe } from "./Menu-DBM4qGP_.js";
13
+ import { u as ce } from "./useAuthkitCreateAndUpdate-CrSEPNA3.js";
14
+ import { M as fe } from "./Menu-DXrn5cEL.js";
15
15
  function Z(s, l = {}) {
16
16
  const {
17
17
  pageSize: t = 10,
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as v, ref as p, createElementBlock as l, createCommentVNode as m, openBlock as t, normalizeClass as K, createBlock as d, createElementVNode as _, unref as S, toDisplayString as A, Fragment as h, renderList as N } from "vue";
2
2
  import { Icon as D } from "@iconify/vue";
3
3
  import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import { o as $ } from "./apiClients-B0ARoiN3.js";
5
- import { D as x } from "./MessageHandle-DpBexctb.js";
4
+ import { o as $ } from "./apiClients-DACL0EIt.js";
5
+ import { D as x } from "./MessageHandle-DTzrBuMx.js";
6
6
  const E = /* @__PURE__ */ v({
7
7
  __name: "MessageMenuItem",
8
8
  props: {
@@ -7,8 +7,8 @@
7
7
  /* empty css */
8
8
  import { defineComponent as et, ref as c, createBlock as C, openBlock as u, unref as o, isRef as at, withCtx as s, createElementVNode as n, createElementBlock as d, createVNode as r, toDisplayString as l, createTextVNode as p, createCommentVNode as L, Fragment as nt, renderList as it } from "vue";
9
9
  import { Modal as st, Tag as P, Button as I, Popconfirm as ot, Empty as q, Tabs as lt, TabPane as w, Spin as ut, Progress as rt } from "@arco-design/web-vue";
10
- import { d as g } from "./apiClients-B0ARoiN3.js";
11
- import { u as dt } from "./useAuthkitCreateAndUpdate-C7NaHnDj.js";
10
+ import { d as g } from "./apiClients-DACL0EIt.js";
11
+ import { u as dt } from "./useAuthkitCreateAndUpdate-CrSEPNA3.js";
12
12
  import { C as B } from "./CustomTable-BCOwLyRJ.js";
13
13
  import { _ as ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
14
  const pt = {
@@ -3,11 +3,11 @@
3
3
  /* empty css */
4
4
  import { defineComponent as z, ref as m, createBlock as p, openBlock as v, unref as t, withCtx as g, createElementVNode as n, createVNode as R, createCommentVNode as w, toDisplayString as _, createTextVNode as A } from "vue";
5
5
  import { Modal as V } from "@arco-design/web-vue";
6
- import { c as y } from "./apiClients-B0ARoiN3.js";
7
- import { u as T } from "./useTableHandle-DkqiT-qL.js";
6
+ import { c as y } from "./apiClients-DACL0EIt.js";
7
+ import { u as T } from "./useTableHandle-LnJV7C1S.js";
8
8
  import { C as B } from "./CustomTable-BCOwLyRJ.js";
9
- import { C as D } from "./Clipboard-0N-MKzqm.js";
10
- import { a as U } from "./useAuthkitUsersProfile-DkDg2EYG.js";
9
+ import { C as D } from "./Clipboard-cVQOko5l.js";
10
+ import { a as U } from "./useAuthkitUsersProfile-TtiVCE3D.js";
11
11
  import { _ as E } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
12
  const H = {
13
13
  class: "invite-code-section"
@@ -6,7 +6,7 @@
6
6
  /* empty css */
7
7
  import { defineComponent as g, createBlock as F, openBlock as h, unref as q, mergeProps as y, createSlots as I, withCtx as p, renderSlot as u } from "vue";
8
8
  import { Upload as S } from "@arco-design/web-vue";
9
- import { u as _ } from "./useUploadCos-D51-yXoX.js";
9
+ import { u as _ } from "./useUploadCos-CPplFhAR.js";
10
10
  const N = /* @__PURE__ */ g({
11
11
  __name: "Upload",
12
12
  props: {
@@ -1,15 +1,15 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
3
  /* empty css */
4
- import { c as De, A as Ve } from "./AuthkitAuthModal-DTp9ezGF.js";
4
+ import { c as De, A as Ve } from "./AuthkitAuthModal-C7uInLdY.js";
5
5
  import { defineComponent as C, createElementBlock as g, openBlock as s, normalizeStyle as ie, normalizeClass as se, createElementVNode as p, computed as P, createBlock as d, createCommentVNode as m, createVNode as c, unref as o, withCtx as l, createTextVNode as y, toDisplayString as S, mergeModels as D, useModel as re, renderSlot as ae, ref as f, Fragment as Re } from "vue";
6
6
  import { Tag as ze, Button as le, Avatar as ue, Dropdown as Ne, Divider as ce, Doption as h } from "@arco-design/web-vue";
7
- import { S as Le } from "./PaySubscriptions-BnV62kZT.js";
8
- import { R as je } from "./ReferrerReferees-B2rVAc7y.js";
9
- import { a as N, u as He } from "./useAuthkitUsersProfile-DkDg2EYG.js";
10
- import { u as Fe, g as oe } from "./apiClients-B0ARoiN3.js";
11
- import { d as qe } from "./FeedbackModal-CVQQ2O8N.js";
12
- import { M as Ee } from "./MessageHandle-DpBexctb.js";
7
+ import { S as Le } from "./PaySubscriptions-DyhcLb_v.js";
8
+ import { R as je } from "./ReferrerReferees-DxsvdWMg.js";
9
+ import { a as N, u as He } from "./useAuthkitUsersProfile-TtiVCE3D.js";
10
+ import { u as Fe, g as oe } from "./apiClients-DACL0EIt.js";
11
+ import { d as qe } from "./FeedbackModal-CIZ40lMX.js";
12
+ import { M as Ee } from "./MessageHandle-DTzrBuMx.js";
13
13
  /* empty css */
14
14
  /* empty css */
15
15
  import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -2,20 +2,20 @@
2
2
  /* empty css */
3
3
  import { defineComponent as w, ref as x, watch as O, createElementBlock as n, openBlock as e, createElementVNode as o, createVNode as f, unref as u, withCtx as ee, renderSlot as K, createCommentVNode as k, toDisplayString as S, onMounted as te, onUnmounted as ne, Fragment as T, renderList as L, normalizeClass as I, createTextVNode as oe, normalizeStyle as A, createBlock as se, computed as U } from "vue";
4
4
  import { Spin as V } from "@arco-design/web-vue";
5
- import "./useAuthkitUsersProfile-DkDg2EYG.js";
6
- import { a as ae } from "./apiClients-B0ARoiN3.js";
7
- import { u as W } from "./useAuthkitAppsAuthPageInfo-DZ53lPr0.js";
8
- import { a as D, b as R, w as H, f as G, c as N, e as F, d as ie } from "./useSEO-DxAohN0h.js";
9
- import "./useUploadCos-D51-yXoX.js";
5
+ import "./useAuthkitUsersProfile-TtiVCE3D.js";
6
+ import { a as ae } from "./apiClients-DACL0EIt.js";
7
+ import { u as W } from "./useAuthkitAppsAuthPageInfo-xaOevaqO.js";
8
+ import { a as D, b as R, w as H, f as G, c as N, e as F, d as ie } from "./useSEO-BjcQPhFP.js";
9
+ import "./useUploadCos-CPplFhAR.js";
10
10
  import { useRouter as j, useRoute as J } from "vue-router";
11
11
  /* empty css */
12
12
  /* empty css */
13
- import { d as re, c as Q } from "./UserAccountMenu-CAG_zxWb.js";
13
+ import { d as re, c as Q } from "./UserAccountMenu-BV_lg4Mh.js";
14
14
  /* empty css */
15
15
  /* empty css */
16
16
  /* empty css */
17
- import "./AuthkitAuthModal-DTp9ezGF.js";
18
- import { M as ce } from "./Menu-DBM4qGP_.js";
17
+ import "./AuthkitAuthModal-C7uInLdY.js";
18
+ import { M as ce } from "./Menu-DXrn5cEL.js";
19
19
  import "./CollapseItem-Cw1vcdLu.js";
20
20
  /* empty css */
21
21
  import "./CustomTable-BCOwLyRJ.js";
@@ -1,25 +1,7 @@
1
- import { eden as i, defineMiddleware as h, createClient as n } from "@vafast/api-client";
1
+ import { eden as l, defineMiddleware as f, createClient as U } from "@vafast/api-client";
2
2
  /* empty css */
3
- import { Message as P } from "@arco-design/web-vue";
4
- import { ref as m } from "vue";
5
- function R(e) {
6
- return i(e);
7
- }
8
- function g(e) {
9
- return i(e);
10
- }
11
- function T(e) {
12
- return i(e);
13
- }
14
- function x(e) {
15
- return i(e);
16
- }
17
- function w(e) {
18
- return i(e);
19
- }
20
- function y(e) {
21
- return i(e);
22
- }
3
+ import { Message as k } from "@arco-design/web-vue";
4
+ import { ref as x } from "vue";
23
5
  let o = {
24
6
  appId: "",
25
7
  onesPrefixUrl: "/onesRestfulApi",
@@ -34,18 +16,36 @@ let o = {
34
16
  bucket: "ones-1358549778",
35
17
  region: "ap-beijing",
36
18
  web3formsAccessKey: "72604aac-d55e-4df0-9bcf-31b2206b3753"
37
- }, E = {};
38
- function Y(e) {
39
- Object.assign(E, e);
19
+ }, m = {};
20
+ function F(e) {
21
+ Object.assign(m, e);
40
22
  }
41
- function Z(e) {
23
+ function L(e) {
42
24
  o.appId = e.appId, o.authPrefixUrl = e.authPrefixUrl || "/authRestfulApi", e.onesPrefixUrl !== void 0 && (o.onesPrefixUrl = e.onesPrefixUrl), e.billingPrefixUrl !== void 0 && (o.billingPrefixUrl = e.billingPrefixUrl), e.logPrefixUrl !== void 0 && (o.logPrefixUrl = e.logPrefixUrl), e.aiPrefixUrl !== void 0 && (o.aiPrefixUrl = e.aiPrefixUrl), e.webhookPrefixUrl !== void 0 && (o.webhookPrefixUrl = e.webhookPrefixUrl), e.oauthCallbackUrl !== void 0 ? o.oauthCallbackUrl = e.oauthCallbackUrl : typeof window < "u" && (o.oauthCallbackUrl = `${window.location.origin}/auth/callback`), e.avatarBucketId !== void 0 && (o.avatarBucketId = e.avatarBucketId), e.feedbackBucketId !== void 0 && (o.feedbackBucketId = e.feedbackBucketId), e.bucket !== void 0 && (o.bucket = e.bucket), e.region !== void 0 && (o.region = e.region), e.web3formsAccessKey !== void 0 && (o.web3formsAccessKey = e.web3formsAccessKey);
43
25
  }
44
- function ee(e, t = 3) {
26
+ function g(e) {
27
+ return l(e);
28
+ }
29
+ function w(e) {
30
+ return l(e);
31
+ }
32
+ function I(e) {
33
+ return l(e);
34
+ }
35
+ function T(e) {
36
+ return l(e);
37
+ }
38
+ function y(e) {
39
+ return l(e);
40
+ }
41
+ function A(e) {
42
+ return l(e);
43
+ }
44
+ function X(e, t = 3) {
45
45
  const r = e.indexOf("@");
46
46
  if (r > 1) {
47
- const a = e.slice(0, t), s = e.slice(r);
48
- return a + "***" + s;
47
+ const a = e.slice(0, t), i = e.slice(r);
48
+ return a + "***" + i;
49
49
  }
50
50
  return e;
51
51
  }
@@ -56,40 +56,40 @@ function v() {
56
56
  console.warn("Failed to clear localStorage:", e);
57
57
  }
58
58
  }
59
- function S() {
59
+ function E() {
60
60
  try {
61
61
  return localStorage.getItem("refreshToken");
62
62
  } catch (e) {
63
63
  return console.warn("Failed to get refreshToken from localStorage:", e), null;
64
64
  }
65
65
  }
66
- function O(e) {
66
+ function R(e) {
67
67
  try {
68
68
  localStorage.setItem("jwtToken", e);
69
69
  } catch (t) {
70
70
  console.warn("Failed to update jwtToken in localStorage:", t);
71
71
  }
72
72
  }
73
- const j = m(!1);
74
- function B() {
73
+ const S = x(!1);
74
+ function j() {
75
75
  return {
76
- show: j
76
+ show: S
77
77
  };
78
78
  }
79
- const U = 40101, _ = {
79
+ const p = 40101, B = {
80
80
  LOGIN_EXPIRED: "登录已过期,请重新登录"
81
81
  };
82
- let p = !1, k = [];
83
- function b(e, t = null) {
84
- k.forEach(({
82
+ let u = !1, d = [];
83
+ function h(e, t = null) {
84
+ d.forEach(({
85
85
  resolve: r,
86
86
  reject: a
87
87
  }) => {
88
88
  e ? a(e) : t && r(t);
89
- }), k = [];
89
+ }), d = [];
90
90
  }
91
- async function L() {
92
- const e = S();
91
+ async function O() {
92
+ const e = E();
93
93
  if (!e)
94
94
  throw new Error("No refresh token available");
95
95
  try {
@@ -104,88 +104,85 @@ async function L() {
104
104
  })
105
105
  })).json();
106
106
  if (r.jwtToken)
107
- return O(r.jwtToken), r.refreshToken && localStorage.setItem("refreshToken", r.refreshToken), r.jwtToken;
107
+ return R(r.jwtToken), r.refreshToken && localStorage.setItem("refreshToken", r.refreshToken), r.jwtToken;
108
108
  throw new Error(r.message || "Token refresh failed");
109
109
  } catch (t) {
110
110
  throw console.error("Token refresh failed:", t), t;
111
111
  }
112
112
  }
113
- const l = h(async (e, t) => (e.headers.set("app-id", o.appId), t()), {
113
+ const M = f(async (e, t) => (e.headers.set("app-id", o.appId), t()), {
114
114
  name: "app-id"
115
- }), c = h(async (e, t) => {
115
+ }), $ = f(async (e, t) => {
116
116
  const r = localStorage.getItem("jwtToken");
117
117
  return r && e.headers.set("authorization", `Bearer ${r}`), t();
118
118
  }, {
119
119
  name: "token"
120
- }), u = h(async (e, t) => {
120
+ }), _ = f(async (e, t) => {
121
121
  var a;
122
122
  const r = await t();
123
- if (((a = r.error) == null ? void 0 : a.code) === U) {
124
- if (p)
125
- return new Promise((s, d) => {
126
- k.push({
127
- resolve: async (A) => {
128
- e.headers.set("authorization", `Bearer ${A}`);
129
- const I = await t();
130
- s(I);
123
+ if (((a = r.error) == null ? void 0 : a.code) === p) {
124
+ if (u)
125
+ return new Promise((i, c) => {
126
+ d.push({
127
+ resolve: async (b) => {
128
+ e.headers.set("authorization", `Bearer ${b}`);
129
+ const P = await t();
130
+ i(P);
131
131
  },
132
132
  reject: () => {
133
- d(r);
133
+ c(r);
134
134
  }
135
135
  });
136
136
  });
137
- p = !0;
137
+ u = !0;
138
138
  try {
139
- const s = await L();
140
- return b(null, s), e.headers.set("authorization", `Bearer ${s}`), await t();
141
- } catch (s) {
142
- b(s, null), v();
139
+ const i = await O();
140
+ return h(null, i), e.headers.set("authorization", `Bearer ${i}`), await t();
141
+ } catch (i) {
142
+ h(i, null), v();
143
143
  const {
144
- show: d
145
- } = B();
146
- return d.value = !0, P.error(_.LOGIN_EXPIRED), r;
144
+ show: c
145
+ } = j();
146
+ return c.value = !0, k.error(B.LOGIN_EXPIRED), r;
147
147
  } finally {
148
- p = !1;
148
+ u = !1;
149
149
  }
150
150
  }
151
151
  return r;
152
152
  }, {
153
153
  name: "token-refresh"
154
- }), f = h(async (e, t) => {
154
+ }), D = f(async (e, t) => {
155
155
  const r = await t();
156
- return r.error && r.error.code !== U && P.error(r.error.message || "请求失败"), r;
156
+ return r.error && r.error.code !== p && k.error(r.error.message || "请求失败"), r;
157
157
  }, {
158
158
  name: "error-message"
159
- }), $ = {
160
- baseURL: "/authRestfulApi",
161
- timeout: 3e4
162
- }, M = {
163
- baseURL: "/billingRestfulApi",
164
- timeout: 3e4
165
- }, G = {
166
- baseURL: "/onesRestfulApi",
167
- timeout: 3e4
168
- }, N = {
169
- baseURL: "/logRestfulApi",
170
- timeout: 3e4
171
- }, K = {
172
- baseURL: "/aiRestfulApi",
173
- timeout: 3e4
174
- }, D = {
175
- baseURL: "/webhookRestfulApi",
176
- timeout: 3e4
177
- }, F = n($).use(l).use(c).use(u).use(f), z = n(M).use(l).use(c).use(u).use(f), X = n(G).use(l).use(c).use(u).use(f), q = n(N).use(l).use(c).use(u).use(f), H = n(K).use(l).use(c).use(u).use(f), J = n(D).use(l).use(c).use(u).use(f), re = g(F), te = T(z), oe = w(X);
178
- x(q);
179
- R(H);
180
- y(J);
159
+ });
160
+ function n(e) {
161
+ return U({
162
+ baseURL: e,
163
+ timeout: 3e4
164
+ }).use(M).use($).use(_).use(D);
165
+ }
166
+ function s(e) {
167
+ let t = null;
168
+ return new Proxy({}, {
169
+ get(r, a) {
170
+ return t || (t = e()), t[a];
171
+ }
172
+ });
173
+ }
174
+ const q = s(() => w(n(o.authPrefixUrl))), J = s(() => I(n(o.billingPrefixUrl))), V = s(() => y(n(o.onesPrefixUrl))), W = s(() => T(n(o.logPrefixUrl))), H = s(() => g(n(o.aiPrefixUrl))), Q = s(() => A(n(o.webhookPrefixUrl)));
181
175
  export {
182
- E as a,
183
- Y as b,
184
- re as c,
185
- te as d,
176
+ m as a,
177
+ F as b,
178
+ q as c,
179
+ J as d,
180
+ H as e,
186
181
  o as g,
187
- ee as h,
188
- oe as o,
189
- Z as s,
190
- B as u
182
+ X as h,
183
+ W as l,
184
+ V as o,
185
+ L as s,
186
+ j as u,
187
+ Q as w
191
188
  };
package/dist/authkit.js CHANGED
@@ -1,9 +1,9 @@
1
- import { A as i, a as u, c as s, b as h, n as A, E as e, k, l as o, _ as r, O as n, _ as d, O as p, f as m, o as P, P as f, j as l, R as S, S as g, i as O, m as c, d as w, e as U, g as I, h as b, p as x, u as C } from "./AuthkitAuthModal-DTp9ezGF.js";
2
- import { A as y, a as B, c as R, d as V, b as v, b as L, f as M, e as _ } from "./AuthkitSignInPhone-BtF8EKsU.js";
3
- import { u as z } from "./useAuthkitAppsAuthPageInfo-DZ53lPr0.js";
4
- import { u as T, a as q } from "./useAuthkitUsersProfile-DkDg2EYG.js";
5
- import { u as F } from "./apiClients-B0ARoiN3.js";
6
- import { u as J } from "./useAuthkitCreateAndUpdate-C7NaHnDj.js";
1
+ import { A as i, a as u, c as s, b as h, n as A, E as e, k, l as o, _ as r, O as n, _ as d, O as p, f as m, o as P, P as f, j as l, R as S, S as g, i as O, m as c, d as w, e as U, g as I, h as b, p as x, u as C } from "./AuthkitAuthModal-C7uInLdY.js";
2
+ import { A as y, a as B, c as R, d as V, b as v, b as L, f as M, e as _ } from "./AuthkitSignInPhone-8uhC9TZk.js";
3
+ import { u as z } from "./useAuthkitAppsAuthPageInfo-xaOevaqO.js";
4
+ import { u as T, a as q } from "./useAuthkitUsersProfile-TtiVCE3D.js";
5
+ import { u as F } from "./apiClients-DACL0EIt.js";
6
+ import { u as J } from "./useAuthkitCreateAndUpdate-CrSEPNA3.js";
7
7
  export {
8
8
  i as AuthkitAppSetting,
9
9
  u as AuthkitAuth,