@huyooo/ui 0.4.63 → 0.4.67

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 (33) hide show
  1. package/dist/{AuthkitAppSetting-D7k_8buM.js → AuthkitAppSetting-CX3_9Jcg.js} +71 -70
  2. package/dist/{AuthkitAuthorize-pB8aT1kV.js → AuthkitAuthorize-B3WS5eGX.js} +2 -2
  3. package/dist/{FeedbackItem-Dxzmtu66.js → FeedbackItem-C5WqFEqH.js} +62 -60
  4. package/dist/{FeedbackModal-D7tjJLBj.js → FeedbackModal-BDPw2tu7.js} +22 -21
  5. package/dist/{MessageHandle-Dt6rb0rg.js → MessageHandle-BelPivb3.js} +2 -2
  6. package/dist/{PaySubscriptions-B42IdT-5.js → PaySubscriptions-BRWvLeed.js} +1 -1
  7. package/dist/{ReferrerReferees-CvuUodDZ.js → ReferrerReferees-BVj9o5kG.js} +2 -2
  8. package/dist/Upload.vue_vue_type_script_setup_true_lang-CDyUt05d.js +88 -0
  9. package/dist/{UserAccountMenu-3neBzl5f.js → UserAccountMenu-BD8F9vEK.js} +1 -1
  10. package/dist/{UserPanel-BJzhmyWP.js → UserPanel-CaaTu1mu.js} +7 -7
  11. package/dist/authkit.js +4 -4
  12. package/dist/common/globalConfig.d.ts +20 -6
  13. package/dist/common.js +7 -7
  14. package/dist/components/Upload/Upload.vue.d.ts +30 -0
  15. package/dist/composables/Upload/useUploadCos.d.ts +4 -1
  16. package/dist/composables.js +5 -5
  17. package/dist/feedback.js +2 -2
  18. package/dist/globalConfig-DZIhLe1R.js +16 -0
  19. package/dist/index.js +15 -15
  20. package/dist/message.js +2 -2
  21. package/dist/pay.js +1 -1
  22. package/dist/referrer.js +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/types/api.d.ts +0 -14
  25. package/dist/upload.js +2 -2
  26. package/dist/{useAuthkitAuthModal-C153ZpNb.js → useAuthkitAuthModal-hxivJw_U.js} +1 -1
  27. package/dist/{useAuthkitUsersProfile-CT2MN1S5.js → useAuthkitUsersProfile-DNOB_Kuk.js} +1 -1
  28. package/dist/{useMessageNotifications-DkKSVkdt.js → useMessageNotifications-DOH1MS61.js} +1 -1
  29. package/dist/{useUploadCos-C3ts0Gpa.js → useUploadCos-B5P_PDcy.js} +1289 -1283
  30. package/dist/user.js +2 -2
  31. package/package.json +1 -1
  32. package/dist/Upload.vue_vue_type_script_setup_true_lang-Bw3IlEUj.js +0 -70
  33. package/dist/globalConfig-dtNQA0ZH.js +0 -15
@@ -1,16 +1,17 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
- import { defineComponent as f, createElementBlock as d, openBlock as c, normalizeStyle as w, normalizeClass as _, createElementVNode as l, computed as m, withDirectives as j, createVNode as b, unref as y, vShow as N, ref as B, createBlock as V, withCtx as q, toDisplayString as h, renderSlot as M, Fragment as R, renderList as U, onMounted as D, onBeforeUnmount as E, createCommentVNode as W } from "vue";
3
+ import { defineComponent as f, createElementBlock as d, openBlock as c, normalizeStyle as w, normalizeClass as _, createElementVNode as l, computed as m, withDirectives as j, createVNode as b, unref as y, vShow as N, ref as q, createBlock as V, withCtx as B, toDisplayString as h, renderSlot as M, Fragment as R, renderList as U, onMounted as D, onBeforeUnmount as E, createCommentVNode as W } from "vue";
4
4
  import { Popover as O, Upload as T } from "@arco-design/web-vue";
5
5
  import { _ as I, g as F, i as L } from "./plugin-vue_export-helper-LjDO2Zua.js";
6
6
  import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
7
  /* empty css */
8
8
  /* empty css */
9
9
  /* empty css */
10
- import { u as Z } from "./useUploadCos-C3ts0Gpa.js";
11
- import "./FeedbackModal-D7tjJLBj.js";
12
- import { Icon as A } from "@iconify/vue";
13
- const Y = f({
10
+ import { u as Z } from "./useUploadCos-B5P_PDcy.js";
11
+ import { g as A } from "./globalConfig-DZIhLe1R.js";
12
+ import "./FeedbackModal-BDPw2tu7.js";
13
+ import { Icon as Y } from "@iconify/vue";
14
+ const H = f({
14
15
  name: "IconDown",
15
16
  props: {
16
17
  size: {
@@ -53,8 +54,8 @@ const Y = f({
53
54
  }
54
55
  };
55
56
  }
56
- }), H = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
57
- function K(e, t, n, o, s, a) {
57
+ }), K = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
58
+ function X(e, t, n, o, s, a) {
58
59
  return c(), d("svg", {
59
60
  viewBox: "0 0 48 48",
60
61
  fill: "none",
@@ -68,16 +69,16 @@ function K(e, t, n, o, s, a) {
68
69
  onClick: t[0] || (t[0] = (...i) => e.onClick && e.onClick(...i))
69
70
  }, t[1] || (t[1] = [l("path", {
70
71
  d: "M39.6 17.443 24.043 33 8.487 17.443"
71
- }, null, -1)]), 14, H);
72
+ }, null, -1)]), 14, K);
72
73
  }
73
- var S = /* @__PURE__ */ I(Y, [["render", K]]);
74
- const X = Object.assign(S, {
74
+ var S = /* @__PURE__ */ I(H, [["render", X]]);
75
+ const G = Object.assign(S, {
75
76
  install: (e, t) => {
76
77
  var n;
77
78
  const o = (n = t == null ? void 0 : t.iconPrefix) != null ? n : "";
78
79
  e.component(o + S.name, S);
79
80
  }
80
- }), G = f({
81
+ }), J = f({
81
82
  name: "IconClose",
82
83
  props: {
83
84
  size: {
@@ -120,8 +121,8 @@ const X = Object.assign(S, {
120
121
  }
121
122
  };
122
123
  }
123
- }), J = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
124
- function Q(e, t, n, o, s, a) {
124
+ }), Q = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
125
+ function ee(e, t, n, o, s, a) {
125
126
  return c(), d("svg", {
126
127
  viewBox: "0 0 48 48",
127
128
  fill: "none",
@@ -135,16 +136,16 @@ function Q(e, t, n, o, s, a) {
135
136
  onClick: t[0] || (t[0] = (...i) => e.onClick && e.onClick(...i))
136
137
  }, t[1] || (t[1] = [l("path", {
137
138
  d: "M9.857 9.858 24 24m0 0 14.142 14.142M24 24 38.142 9.858M24 24 9.857 38.142"
138
- }, null, -1)]), 14, J);
139
+ }, null, -1)]), 14, Q);
139
140
  }
140
- var z = /* @__PURE__ */ I(G, [["render", Q]]);
141
- const ee = Object.assign(z, {
141
+ var z = /* @__PURE__ */ I(J, [["render", ee]]);
142
+ const te = Object.assign(z, {
142
143
  install: (e, t) => {
143
144
  var n;
144
145
  const o = (n = t == null ? void 0 : t.iconPrefix) != null ? n : "";
145
146
  e.component(o + z.name, z);
146
147
  }
147
- }), te = f({
148
+ }), ne = f({
148
149
  name: "IconRobot",
149
150
  props: {
150
151
  size: {
@@ -187,8 +188,8 @@ const ee = Object.assign(z, {
187
188
  }
188
189
  };
189
190
  }
190
- }), ne = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
191
- function oe(e, t, n, o, s, a) {
191
+ }), oe = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
192
+ function ie(e, t, n, o, s, a) {
192
193
  return c(), d("svg", {
193
194
  viewBox: "0 0 48 48",
194
195
  fill: "none",
@@ -206,16 +207,16 @@ function oe(e, t, n, o, s, a) {
206
207
  stroke: "none"
207
208
  }, null, -1), l("path", {
208
209
  d: "M24 7v6m0-6h5m-5 0h-5M3 21v11m36 8H9V13h30v29m6-21v11m-27-6h1v1h-1v-1Zm11 0h1v1h-1v-1Z"
209
- }, null, -1)]), 14, ne);
210
+ }, null, -1)]), 14, oe);
210
211
  }
211
- var x = /* @__PURE__ */ I(te, [["render", oe]]);
212
- const ie = Object.assign(x, {
212
+ var x = /* @__PURE__ */ I(ne, [["render", ie]]);
213
+ const se = Object.assign(x, {
213
214
  install: (e, t) => {
214
215
  var n;
215
216
  const o = (n = t == null ? void 0 : t.iconPrefix) != null ? n : "";
216
217
  e.component(o + x.name, x);
217
218
  }
218
- }), se = /* @__PURE__ */ f({
219
+ }), re = /* @__PURE__ */ f({
219
220
  __name: "FeedbackFloatButton",
220
221
  props: {
221
222
  active: {
@@ -247,29 +248,29 @@ const ie = Object.assign(x, {
247
248
  active: e.active
248
249
  }]),
249
250
  style: w(n.value)
250
- }, [j(b(y(ie), {
251
+ }, [j(b(y(se), {
251
252
  name: "Feedback/Help",
252
253
  filled: "",
253
254
  size: 18
254
- }, null, 512), [[N, !e.active]]), j(b(y(X), {
255
+ }, null, 512), [[N, !e.active]]), j(b(y(G), {
255
256
  name: "Feedback/Close",
256
257
  filled: "",
257
258
  size: 18
258
259
  }, null, 512), [[N, e.active]])], 6));
259
260
  }
260
- }), re = /* @__PURE__ */ g(se, [["__scopeId", "data-v-2f26b4bc"]]), le = {
261
+ }), le = /* @__PURE__ */ g(re, [["__scopeId", "data-v-2f26b4bc"]]), ae = {
261
262
  class: "card"
262
- }, ae = {
263
- class: "content"
264
263
  }, ce = {
265
- class: "header"
264
+ class: "content"
266
265
  }, ue = {
267
- class: "title"
266
+ class: "header"
268
267
  }, de = {
269
- class: "description"
268
+ class: "title"
270
269
  }, pe = {
270
+ class: "description"
271
+ }, me = {
271
272
  class: "body"
272
- }, me = /* @__PURE__ */ f({
273
+ }, fe = /* @__PURE__ */ f({
273
274
  __name: "FeedbackContainer",
274
275
  props: {
275
276
  title: {
@@ -288,7 +289,7 @@ const ie = Object.assign(x, {
288
289
  setup(e, {
289
290
  expose: t
290
291
  }) {
291
- const n = e, o = B(!1), s = m(() => ({
292
+ const n = e, o = q(!1), s = m(() => ({
292
293
  padding: 0,
293
294
  marginTop: 0,
294
295
  "border-radius": "14px",
@@ -318,24 +319,24 @@ const ie = Object.assign(x, {
318
319
  position: "tr",
319
320
  onPopupVisibleChange: i
320
321
  }, {
321
- content: q(() => [l("div", le, [l("div", ae, [l("div", ce, [l("div", {
322
+ content: B(() => [l("div", ae, [l("div", ce, [l("div", ue, [l("div", {
322
323
  class: "headerCancel",
323
324
  onClick: p
324
- }, [b(y(ee))]), l("div", ue, h(n.title), 1), l("div", de, h(n.description), 1)]), l("div", pe, [M(k.$slots, "default", {}, void 0, !0)])])])]),
325
- default: q(() => [b(re, {
325
+ }, [b(y(te))]), l("div", de, h(n.title), 1), l("div", pe, h(n.description), 1)]), l("div", me, [M(k.$slots, "default", {}, void 0, !0)])])])]),
326
+ default: B(() => [b(le, {
326
327
  active: o.value,
327
328
  onClick: a
328
329
  }, null, 8, ["active"])]),
329
330
  _: 3
330
331
  }, 8, ["popup-visible", "content-style"]));
331
332
  }
332
- }), Ue = /* @__PURE__ */ g(me, [["__scopeId", "data-v-c2ab0561"]]), fe = {
333
+ }), Ee = /* @__PURE__ */ g(fe, [["__scopeId", "data-v-c2ab0561"]]), ke = {
333
334
  style: {
334
335
  "margin-bottom": "10px",
335
336
  display: "flex",
336
337
  gap: "10px"
337
338
  }
338
- }, ke = ["onClick"], ve = /* @__PURE__ */ f({
339
+ }, ve = ["onClick"], be = /* @__PURE__ */ f({
339
340
  __name: "FeedbackCustomTabs",
340
341
  props: {
341
342
  modelValue: {
@@ -361,17 +362,17 @@ const ie = Object.assign(x, {
361
362
  function s(a) {
362
363
  a !== n.modelValue && (o("update:modelValue", a), o("change", a));
363
364
  }
364
- return (a, i) => (c(), d("div", fe, [(c(!0), d(R, null, U(e.tabs, (p) => (c(), d("span", {
365
+ return (a, i) => (c(), d("div", ke, [(c(!0), d(R, null, U(e.tabs, (p) => (c(), d("span", {
365
366
  key: p.key,
366
367
  class: _(["custom-tab", [{
367
368
  active: e.modelValue === p.key
368
369
  }]]),
369
370
  onClick: (k) => s(p.key)
370
- }, h(p.label), 11, ke))), 128))]));
371
+ }, h(p.label), 11, ve))), 128))]));
371
372
  }
372
- }), De = /* @__PURE__ */ g(ve, [["__scopeId", "data-v-4da22ce9"]]), be = {
373
+ }), We = /* @__PURE__ */ g(be, [["__scopeId", "data-v-4da22ce9"]]), ye = {
373
374
  class: "screenshots-upload"
374
- }, ye = /* @__PURE__ */ f({
375
+ }, he = /* @__PURE__ */ f({
375
376
  __name: "FeedbackScreenshots",
376
377
  props: {
377
378
  urls: {
@@ -383,7 +384,7 @@ const ie = Object.assign(x, {
383
384
  setup(e, {
384
385
  emit: t
385
386
  }) {
386
- const n = e, o = t, s = B(null), a = m(() => n.urls.map((r) => ({
387
+ const n = e, o = t, s = q(null), a = m(() => n.urls.map((r) => ({
387
388
  uid: r,
388
389
  name: r.split("/").pop() || r,
389
390
  url: r,
@@ -398,8 +399,9 @@ const ie = Object.assign(x, {
398
399
  uploadFile: $
399
400
  } = Z();
400
401
  $({
402
+ bucketId: A.feedbackBucketId,
401
403
  file: r,
402
- onFileFinish(C, ze, P) {
404
+ onFileFinish(C, xe, P) {
403
405
  u(P.Key);
404
406
  },
405
407
  onError(C) {
@@ -434,7 +436,7 @@ const ie = Object.assign(x, {
434
436
  window.addEventListener("paste", k);
435
437
  }), E(() => {
436
438
  window.removeEventListener("paste", k);
437
- }), (r, u) => (c(), d("div", be, [b(y(T), {
439
+ }), (r, u) => (c(), d("div", ye, [b(y(T), {
438
440
  ref_key: "uploadRef",
439
441
  ref: s,
440
442
  "list-type": "picture",
@@ -446,20 +448,20 @@ const ie = Object.assign(x, {
446
448
  "custom-request": p
447
449
  }, null, 8, ["file-list"])]));
448
450
  }
449
- }), Ee = /* @__PURE__ */ g(ye, [["__scopeId", "data-v-0bcb8b45"]]), he = {
451
+ }), Oe = /* @__PURE__ */ g(he, [["__scopeId", "data-v-8e764d8f"]]), _e = {
450
452
  class: "operate-wrapper"
451
- }, _e = {
452
- class: "operate-item"
453
453
  }, ge = {
454
- class: "icon"
454
+ class: "operate-item"
455
455
  }, $e = {
456
- class: "title"
456
+ class: "icon"
457
457
  }, Ce = {
458
- class: "feedback-info"
458
+ class: "title"
459
459
  }, we = {
460
+ class: "feedback-info"
461
+ }, Se = {
460
462
  key: 0,
461
463
  class: "feedback-count"
462
- }, Se = /* @__PURE__ */ f({
464
+ }, ze = /* @__PURE__ */ f({
463
465
  __name: "FeedbackItem",
464
466
  props: {
465
467
  title: {
@@ -478,15 +480,15 @@ const ie = Object.assign(x, {
478
480
  },
479
481
  setup(e) {
480
482
  const t = e;
481
- return (n, o) => (c(), d("div", he, [l("div", _e, [l("div", ge, [b(y(A), {
483
+ return (n, o) => (c(), d("div", _e, [l("div", ge, [l("div", $e, [b(y(Y), {
482
484
  icon: t.icon
483
- }, null, 8, ["icon"])]), l("p", $e, h(t.title), 1)]), l("div", Ce, [e.extra ? (c(), d("span", we, h(e.extra), 1)) : W("", !0)])]));
485
+ }, null, 8, ["icon"])]), l("p", Ce, h(t.title), 1)]), l("div", we, [e.extra ? (c(), d("span", Se, h(e.extra), 1)) : W("", !0)])]));
484
486
  }
485
- }), We = /* @__PURE__ */ g(Se, [["__scopeId", "data-v-54fd5fd0"]]);
487
+ }), Te = /* @__PURE__ */ g(ze, [["__scopeId", "data-v-54fd5fd0"]]);
486
488
  export {
487
- Ue as F,
488
- De as a,
489
- We as b,
490
- re as c,
491
- Ee as d
489
+ Ee as F,
490
+ We as a,
491
+ Te as b,
492
+ le as c,
493
+ Oe as d
492
494
  };
@@ -9,11 +9,11 @@ import { M as De } from "./Menu-Cxo8Rpu3.js";
9
9
  /* empty css */
10
10
  /* empty css */
11
11
  /* empty css */
12
- import { api as D } from "@huyooo/api";
13
- import { g as N } from "./globalConfig-dtNQA0ZH.js";
12
+ import { api as N } from "@huyooo/api";
13
+ import { g as q } from "./globalConfig-DZIhLe1R.js";
14
14
  /* empty css */
15
15
  /* empty css */
16
- import { r as Ne, a as Ae, u as Oe } from "./useUploadCos-C3ts0Gpa.js";
16
+ import { r as Ne, a as Ae, u as Oe } from "./useUploadCos-B5P_PDcy.js";
17
17
  import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
18
  /* empty css */
19
19
  import { f as j, C as Ve } from "./CustomTable-JflAYS8i.js";
@@ -358,43 +358,43 @@ function tt(e, o = {}) {
358
358
  };
359
359
  }
360
360
  function lt(e) {
361
- return D({
362
- url: `${N.prefixUrl}/restfulApi/feedbackCenter/create`,
361
+ return N({
362
+ url: `${q.prefixUrl}/restfulApi/feedbackCenter/create`,
363
363
  method: "post",
364
364
  data: e
365
365
  });
366
366
  }
367
367
  function at(e) {
368
- return D({
369
- url: `${N.prefixUrl}/restfulApi/feedbackCenter/findOne`,
368
+ return N({
369
+ url: `${q.prefixUrl}/restfulApi/feedbackCenter/findOne`,
370
370
  method: "post",
371
371
  data: e
372
372
  });
373
373
  }
374
374
  function st(e) {
375
- return D({
376
- url: `${N.prefixUrl}/restfulApi/feedbackCenter/own`,
375
+ return N({
376
+ url: `${q.prefixUrl}/restfulApi/feedbackCenter/own`,
377
377
  method: "post",
378
378
  data: e
379
379
  });
380
380
  }
381
381
  function re(e) {
382
- return D({
383
- url: `${N.prefixUrl}/restfulApi/feedbackCenter/update/messages`,
382
+ return N({
383
+ url: `${q.prefixUrl}/restfulApi/feedbackCenter/update/messages`,
384
384
  method: "post",
385
385
  data: e
386
386
  });
387
387
  }
388
388
  function nt(e) {
389
- return D({
390
- url: `${N.prefixUrl}/restfulApi/messages/list/incremental`,
389
+ return N({
390
+ url: `${q.prefixUrl}/restfulApi/messages/list/incremental`,
391
391
  method: "post",
392
392
  data: e
393
393
  });
394
394
  }
395
395
  function rt(e) {
396
- return D({
397
- url: `${N.prefixUrl}/restfulApi/messages/list`,
396
+ return N({
397
+ url: `${q.prefixUrl}/restfulApi/messages/list`,
398
398
  method: "post",
399
399
  data: e
400
400
  });
@@ -491,12 +491,13 @@ const J = [{
491
491
  } = Oe(), x = document.createElement("input");
492
492
  x.type = "file", x.accept = "image/*", x.style.display = "none", document.body.append(x), x.addEventListener("change", async (p) => {
493
493
  var Q;
494
- const q = (Q = p.target.files) == null ? void 0 : Q[0];
495
- if (q) {
494
+ const D = (Q = p.target.files) == null ? void 0 : Q[0];
495
+ if (D) {
496
496
  a.value = !0;
497
497
  try {
498
498
  d({
499
- file: q,
499
+ bucketId: q.feedbackBucketId,
500
+ file: D,
500
501
  onFileFinish(W, St, _e) {
501
502
  const he = {
502
503
  messageId: ae(),
@@ -540,9 +541,9 @@ const J = [{
540
541
  message: p
541
542
  };
542
543
  re(P).then(({
543
- data: q
544
+ data: D
544
545
  }) => {
545
- a.value = !1, C.value.push(q.message), typeof q.message.seq == "number" && (U.value = q.message.seq), A(() => {
546
+ a.value = !1, C.value.push(D.message), typeof D.message.seq == "number" && (U.value = D.message.seq), A(() => {
546
547
  h();
547
548
  }), t.value = "", i.senderRole === "support" && F.value.status === "newFeedback" && b();
548
549
  }).catch(() => {
@@ -702,7 +703,7 @@ const J = [{
702
703
  _: 1
703
704
  }, 8, ["value", "loading", "read-only"])])]));
704
705
  }
705
- }), ft = /* @__PURE__ */ V(dt, [["__scopeId", "data-v-d4972e0b"]]), pt = {
706
+ }), ft = /* @__PURE__ */ V(dt, [["__scopeId", "data-v-a76c0f21"]]), pt = {
706
707
  class: "FeedBackFrom"
707
708
  }, mt = /* @__PURE__ */ R({
708
709
  __name: "FeedbackForm",
@@ -5,12 +5,12 @@ import { defineComponent as b, ref as r, createBlock as p, openBlock as l, unref
5
5
  /* empty css */
6
6
  import { Spin as V, Empty as K, Button as G, Divider as J, Breadcrumb as O, BreadcrumbItem as x, Modal as P } from "@arco-design/web-vue";
7
7
  import { api as S } from "@huyooo/api";
8
- import { g as D } from "./globalConfig-dtNQA0ZH.js";
8
+ import { g as D } from "./globalConfig-DZIhLe1R.js";
9
9
  import { TiptapEditor as Q, TiptapTitle as W } from "@huyooo/vue-tiptap";
10
10
  import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  /* empty css */
12
12
  import { useIntersectionObserver as X } from "@vueuse/core";
13
- import { u as Y } from "./useMessageNotifications-DkKSVkdt.js";
13
+ import { u as Y } from "./useMessageNotifications-DOH1MS61.js";
14
14
  import { Icon as Z } from "@iconify/vue";
15
15
  import { u as ee } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
16
16
  import { M as te } from "./Menu-Cxo8Rpu3.js";
@@ -6,7 +6,7 @@
6
6
  import { defineComponent as D, ref as U, createBlock as B, openBlock as L, unref as a, isRef as M, withCtx as o, createElementVNode as d, createVNode as r, createTextVNode as u, toDisplayString as n } from "vue";
7
7
  import { Modal as V, Popconfirm as $, Button as E, Tag as g } from "@arco-design/web-vue";
8
8
  import { api as _ } from "@huyooo/api";
9
- import { g as x } from "./globalConfig-dtNQA0ZH.js";
9
+ import { g as x } from "./globalConfig-DZIhLe1R.js";
10
10
  import { u as H } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
11
11
  import { u as j } from "./useTableHandle-DKUIdSSh.js";
12
12
  import { C as q, f as y } from "./CustomTable-JflAYS8i.js";
@@ -4,11 +4,11 @@
4
4
  import { defineComponent as z, ref as d, createBlock as v, openBlock as g, unref as a, withCtx as _, createElementVNode as n, createVNode as A, createCommentVNode as V, toDisplayString as C, createTextVNode as w } from "vue";
5
5
  import { Modal as T } from "@arco-design/web-vue";
6
6
  import { api as U } from "@huyooo/api";
7
- import { g as y } from "./globalConfig-dtNQA0ZH.js";
7
+ import { g as y } from "./globalConfig-DZIhLe1R.js";
8
8
  import { u as B } from "./useTableHandle-DKUIdSSh.js";
9
9
  import { C as D } from "./CustomTable-JflAYS8i.js";
10
10
  import { C as E } from "./Clipboard-Bful1lNJ.js";
11
- import { a as H } from "./useAuthkitUsersProfile-CT2MN1S5.js";
11
+ import { a as H } from "./useAuthkitUsersProfile-DNOB_Kuk.js";
12
12
  import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
13
  function $(f) {
14
14
  return U({
@@ -0,0 +1,88 @@
1
+ /* empty css */
2
+ /* empty css */
3
+ /* empty css */
4
+ /* empty css */
5
+ /* empty css */
6
+ import { defineComponent as q, createBlock as y, openBlock as F, unref as S, mergeProps as h, createSlots as C, withCtx as u, renderSlot as p } from "vue";
7
+ import { Upload as I } from "@arco-design/web-vue";
8
+ import { u as _ } from "./useUploadCos-B5P_PDcy.js";
9
+ import { g as l } from "./globalConfig-DZIhLe1R.js";
10
+ const O = /* @__PURE__ */ q({
11
+ __name: "Upload",
12
+ props: {
13
+ options: {
14
+ type: Object,
15
+ required: !1,
16
+ default: () => null
17
+ },
18
+ bucketId: {
19
+ type: String,
20
+ required: !0
21
+ },
22
+ bucket: {
23
+ type: String,
24
+ required: !1,
25
+ default: () => l.bucket
26
+ },
27
+ region: {
28
+ type: String,
29
+ required: !1,
30
+ default: () => l.region
31
+ }
32
+ },
33
+ emits: ["progress", "fileFinish", "fail"],
34
+ setup(m, {
35
+ emit: a
36
+ }) {
37
+ const i = a, o = m, {
38
+ uploadFile: c
39
+ } = _();
40
+ function d(e) {
41
+ const {
42
+ onProgress: s,
43
+ onError: f,
44
+ onSuccess: g,
45
+ fileItem: n
46
+ } = e;
47
+ if (n.file) {
48
+ const b = n.file;
49
+ c({
50
+ file: b,
51
+ bucketId: o.bucketId,
52
+ bucket: o.bucket,
53
+ region: o.region,
54
+ onProgress(t) {
55
+ i("progress", t);
56
+ const r = (t.percent * 100).toFixed(2);
57
+ s(Number(r));
58
+ },
59
+ onFileFinish(t, r, k) {
60
+ i("fileFinish", t, r, k), g(r);
61
+ },
62
+ onError: f
63
+ });
64
+ }
65
+ return {
66
+ abort() {
67
+ return "";
68
+ }
69
+ };
70
+ }
71
+ return (e, s) => (F(), y(S(I), h({
72
+ "custom-request": d
73
+ }, o.options), C({
74
+ _: 2
75
+ }, [e.$slots["upload-button"] ? {
76
+ name: "upload-button",
77
+ fn: u(() => [p(e.$slots, "upload-button")]),
78
+ key: "0"
79
+ } : void 0, e.$slots["upload-item"] ? {
80
+ name: "upload-item",
81
+ fn: u(() => [p(e.$slots, "upload-item")]),
82
+ key: "1"
83
+ } : void 0]), 1040));
84
+ }
85
+ });
86
+ export {
87
+ O as _
88
+ };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as _, createElementBlock as d, openBlock as m, createElementVNode as e, renderSlot as u, toDisplayString as r, unref as o, createVNode as p } from "vue";
2
2
  import { Icon as f } from "@iconify/vue";
3
- import { a as v } from "./useAuthkitUsersProfile-CT2MN1S5.js";
3
+ import { a as v } from "./useAuthkitUsersProfile-DNOB_Kuk.js";
4
4
  import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const k = {
6
6
  class: "UserAccountMenu"
@@ -4,13 +4,13 @@
4
4
  /* empty css */
5
5
  import { defineComponent as S, createElementBlock as y, openBlock as l, normalizeStyle as F, normalizeClass as q, createElementVNode as f, computed as U, createBlock as g, createCommentVNode as D, createVNode as i, unref as o, withCtx as s, createTextVNode as m, toDisplayString as C, mergeModels as V, useModel as E, renderSlot as _e, ref as d, Fragment as Se } from "vue";
6
6
  import { Tag as be, Button as K, Avatar as T, Dropdown as Ce, Divider as W, Doption as _ } from "@arco-design/web-vue";
7
- import { S as Ie } from "./PaySubscriptions-B42IdT-5.js";
8
- import { R as $e } from "./ReferrerReferees-CvuUodDZ.js";
9
- import { a as X, u as we } from "./useAuthkitUsersProfile-CT2MN1S5.js";
10
- import { u as he } from "./useAuthkitAuthModal-C153ZpNb.js";
11
- import { a as xe, b as Be } from "./AuthkitAppSetting-D7k_8buM.js";
12
- import { d as Me } from "./FeedbackModal-D7tjJLBj.js";
13
- import { M as Ue } from "./MessageHandle-Dt6rb0rg.js";
7
+ import { S as Ie } from "./PaySubscriptions-BRWvLeed.js";
8
+ import { R as $e } from "./ReferrerReferees-BVj9o5kG.js";
9
+ import { a as X, u as we } from "./useAuthkitUsersProfile-DNOB_Kuk.js";
10
+ import { u as he } from "./useAuthkitAuthModal-hxivJw_U.js";
11
+ import { a as xe, b as Be } from "./AuthkitAppSetting-CX3_9Jcg.js";
12
+ import { d as Me } from "./FeedbackModal-BDPw2tu7.js";
13
+ import { M as Ue } from "./MessageHandle-BelPivb3.js";
14
14
  /* empty css */
15
15
  /* empty css */
16
16
  import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
package/dist/authkit.js CHANGED
@@ -1,7 +1,7 @@
1
- import { b as a, A as s, a as u, c as A, n as h, E as e, k as r, l as k, _ as o, O as n, f as d, o as p, P as f, j as m, R as P, S, i as g, m as l, d as U, e as w, g as c, h as x } from "./AuthkitAppSetting-D7k_8buM.js";
2
- import { A as y, a as E } from "./AuthkitAuthorize-pB8aT1kV.js";
3
- import { U as C, u as R } from "./useAuthkitAuthModal-C153ZpNb.js";
4
- import { u as b, a as v } from "./useAuthkitUsersProfile-CT2MN1S5.js";
1
+ import { b as a, A as s, a as u, c as A, n as h, E as e, k as r, l as k, _ as o, O as n, f as d, o as p, P as f, j as m, R as P, S, i as g, m as l, d as U, e as w, g as c, h as x } from "./AuthkitAppSetting-CX3_9Jcg.js";
2
+ import { A as y, a as E } from "./AuthkitAuthorize-B3WS5eGX.js";
3
+ import { U as C, u as R } from "./useAuthkitAuthModal-hxivJw_U.js";
4
+ import { u as b, a as v } from "./useAuthkitUsersProfile-DNOB_Kuk.js";
5
5
  import { u as M } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
6
6
  export {
7
7
  a as AuthkitAppSetting,
@@ -1,15 +1,29 @@
1
1
  export interface HuyoooUIConfig {
2
2
  /** 应用ID - 必填 */
3
3
  appId: string;
4
- /** 存储桶ID - 必填 */
5
- bucketId: string;
6
4
  /** API前缀 - 默认 '/api' */
7
5
  prefixUrl: string;
8
- /** 存储桶名称 - 必填 */
6
+ /** 认证 API前缀 */
7
+ authPrefixUrl: string;
8
+ avatarBucketId: string;
9
+ feedbackBucketId: string;
10
+ /** 默认存储桶名称 */
9
11
  bucket: string;
10
- /** 地域 - 默认 'ap-beijing' */
12
+ /** 默认地域 */
11
13
  region: string;
12
- authPrefixUrl: string;
13
14
  }
14
15
  export declare let globalConfig: HuyoooUIConfig;
15
- export declare function setGlobalConfig(newConfig: HuyoooUIConfig): void;
16
+ export declare function setGlobalConfig(newConfig: {
17
+ /** 应用ID - 必填 */
18
+ appId: string;
19
+ /** API前缀 - 默认 '/api' */
20
+ prefixUrl: string;
21
+ /** 认证 API前缀 */
22
+ authPrefixUrl: string;
23
+ avatarBucketId?: string;
24
+ feedbackBucketId?: string;
25
+ /** 默认存储桶名称 */
26
+ bucket?: string;
27
+ /** 默认地域 */
28
+ region?: string;
29
+ }): void;
package/dist/common.js CHANGED
@@ -1,16 +1,16 @@
1
1
  import { C as s, a as e } from "./CollapseItem-Cw1vcdLu.js";
2
2
  import { C as t, G as n, S as p, W as m } from "./WidthContainer-D795bWdT.js";
3
3
  import { C as i, E as l } from "./CustomTable-JflAYS8i.js";
4
- import { I as x } from "./MessageHandle-Dt6rb0rg.js";
4
+ import { I as x } from "./MessageHandle-BelPivb3.js";
5
5
  import { M as d, a as b } from "./Menu-Cxo8Rpu3.js";
6
- import { S as U, b as g, c as I, a as S, U as v } from "./UserPanel-BJzhmyWP.js";
7
- import { S as B } from "./PaySubscriptions-B42IdT-5.js";
8
- import { R as M } from "./ReferrerReferees-CvuUodDZ.js";
9
- import { _ as H } from "./Upload.vue_vue_type_script_setup_true_lang-Bw3IlEUj.js";
10
- import { g as T, s as W } from "./globalConfig-dtNQA0ZH.js";
6
+ import { S as U, b as g, c as I, a as S, U as v } from "./UserPanel-CaaTu1mu.js";
7
+ import { S as B } from "./PaySubscriptions-BRWvLeed.js";
8
+ import { R as M } from "./ReferrerReferees-BVj9o5kG.js";
9
+ import { _ as H } from "./Upload.vue_vue_type_script_setup_true_lang-CDyUt05d.js";
10
+ import { g as T, s as W } from "./globalConfig-DZIhLe1R.js";
11
11
  import { a as k, u as D } from "./useActiveDoc-BWHkOJhJ.js";
12
12
  import { u as P } from "./useTableHandle-DKUIdSSh.js";
13
- import { u as j } from "./useUploadCos-C3ts0Gpa.js";
13
+ import { u as j } from "./useUploadCos-B5P_PDcy.js";
14
14
  export {
15
15
  s as Collapse,
16
16
  e as CollapseItem,