@huyooo/ui 0.4.22 → 0.4.24

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 (34) hide show
  1. package/dist/{AuthkitAppSetting-MYrqMZAf.js → AuthkitAppSetting-BFCdC1j2.js} +114 -88
  2. package/dist/{AuthkitAuthorize-CCSa1q9E.js → AuthkitAuthorize-p0mbjzzG.js} +6 -5
  3. package/dist/Clipboard-Bful1lNJ.js +558 -0
  4. package/dist/{FeedbackItem-DKowiTJj.js → FeedbackItem-MY9mxyf6.js} +1 -1
  5. package/dist/FeedbackModal-CMmvJOi1.js +1164 -0
  6. package/dist/{Menu-MZJINp6f.js → Menu-Cxo8Rpu3.js} +11 -11
  7. package/dist/{MessageHandle-BLiqnTvy.js → MessageHandle-DN_JsQb2.js} +1 -1
  8. package/dist/{MessageMenu-x26lfAeK.js → MessageMenu-_RZJ9Mbi.js} +15 -15
  9. package/dist/ReferrerReferees-BZqtRuiP.js +186 -0
  10. package/dist/{UserPanel-BOg71izt.js → UserPanel-BL8qPaxq.js} +17 -16
  11. package/dist/authkit.js +12 -11
  12. package/dist/common/referrerOptions.d.ts +0 -4
  13. package/dist/common.js +4 -4
  14. package/dist/components/User/UserPanel.vue.d.ts +45 -45
  15. package/dist/composables/Authkit/useAuthkitAuth.d.ts +1 -0
  16. package/dist/composables/Authkit/useAuthkitUsersProfile.d.ts +0 -6
  17. package/dist/composables.js +20 -19
  18. package/dist/feedback.d.ts +1 -1
  19. package/dist/feedback.js +13 -12
  20. package/dist/index.js +130 -128
  21. package/dist/message.js +2 -2
  22. package/dist/referrer.js +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/styles.d.ts +1 -1
  25. package/dist/styles.js +1 -4
  26. package/dist/types/api.d.ts +1 -2
  27. package/dist/useAuthkitProps-CW3Jem_o.js +160 -0
  28. package/dist/useAuthkitUsersProfile-Diituvy1.js +227 -0
  29. package/dist/user.js +1 -1
  30. package/package.json +1 -1
  31. package/dist/FeedbackModal-BvIlQ5Qe.js +0 -1712
  32. package/dist/ReferrerReferees-E5Sq9dVw.js +0 -185
  33. package/dist/useAuthkitProps-BM6B7mZP.js +0 -384
  34. /package/dist/components/{Feedback/FeedbackClipboard.vue.d.ts → Clipboard.vue.d.ts} +0 -0
@@ -0,0 +1,558 @@
1
+ /* empty css */
2
+ /* empty css */
3
+ import { defineComponent as V, ref as X, createBlock as J, openBlock as K, unref as Q } from "vue";
4
+ import { Message as W } from "@arco-design/web-vue";
5
+ import { Icon as Z } from "@iconify/vue";
6
+ import { c as tt, g as et } from "./_commonjsHelpers-DaMA6jEr.js";
7
+ import { _ as nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
+ var N = { exports: {} };
9
+ /*!
10
+ * clipboard.js v2.0.11
11
+ * https://clipboardjs.com/
12
+ *
13
+ * Licensed MIT © Zeno Rocha
14
+ */
15
+ (function(C, S) {
16
+ (function(E, h) {
17
+ C.exports = h();
18
+ })(tt, function() {
19
+ return (
20
+ /******/
21
+ function() {
22
+ var x = {
23
+ /***/
24
+ 686: (
25
+ /***/
26
+ function(c, u, t) {
27
+ t.d(u, {
28
+ default: function() {
29
+ return (
30
+ /* binding */
31
+ G
32
+ );
33
+ }
34
+ });
35
+ var s = t(279), f = /* @__PURE__ */ t.n(s), l = t(370), m = /* @__PURE__ */ t.n(l), y = t(817), g = /* @__PURE__ */ t.n(y);
36
+ function d(i) {
37
+ try {
38
+ return document.execCommand(i);
39
+ } catch {
40
+ return !1;
41
+ }
42
+ }
43
+ var v = function(n) {
44
+ var e = g()(n);
45
+ return d("cut"), e;
46
+ }, p = v;
47
+ function _(i) {
48
+ var n = document.documentElement.getAttribute("dir") === "rtl", e = document.createElement("textarea");
49
+ e.style.fontSize = "12pt", e.style.border = "0", e.style.padding = "0", e.style.margin = "0", e.style.position = "absolute", e.style[n ? "right" : "left"] = "-9999px";
50
+ var r = window.pageYOffset || document.documentElement.scrollTop;
51
+ return e.style.top = "".concat(r, "px"), e.setAttribute("readonly", ""), e.value = i, e;
52
+ }
53
+ var R = function(n, e) {
54
+ var r = _(n);
55
+ e.container.appendChild(r);
56
+ var o = g()(r);
57
+ return d("copy"), r.remove(), o;
58
+ }, j = function(n) {
59
+ var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
60
+ container: document.body
61
+ }, r = "";
62
+ return typeof n == "string" ? r = R(n, e) : n instanceof HTMLInputElement && !["text", "search", "url", "tel", "password"].includes(n == null ? void 0 : n.type) ? r = R(n.value, e) : (r = g()(n), d("copy")), r;
63
+ }, k = j;
64
+ function T(i) {
65
+ "@babel/helpers - typeof";
66
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? T = function(e) {
67
+ return typeof e;
68
+ } : T = function(e) {
69
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
70
+ }, T(i);
71
+ }
72
+ var D = function() {
73
+ var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = n.action, r = e === void 0 ? "copy" : e, o = n.container, a = n.target, b = n.text;
74
+ if (r !== "copy" && r !== "cut")
75
+ throw new Error('Invalid "action" value, use either "copy" or "cut"');
76
+ if (a !== void 0)
77
+ if (a && T(a) === "object" && a.nodeType === 1) {
78
+ if (r === "copy" && a.hasAttribute("disabled"))
79
+ throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');
80
+ if (r === "cut" && (a.hasAttribute("readonly") || a.hasAttribute("disabled")))
81
+ throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);
82
+ } else
83
+ throw new Error('Invalid "target" value, use a valid Element');
84
+ if (b)
85
+ return k(b, {
86
+ container: o
87
+ });
88
+ if (a)
89
+ return r === "cut" ? p(a) : k(a, {
90
+ container: o
91
+ });
92
+ }, I = D;
93
+ function w(i) {
94
+ "@babel/helpers - typeof";
95
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? w = function(e) {
96
+ return typeof e;
97
+ } : w = function(e) {
98
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
99
+ }, w(i);
100
+ }
101
+ function F(i, n) {
102
+ if (!(i instanceof n))
103
+ throw new TypeError("Cannot call a class as a function");
104
+ }
105
+ function M(i, n) {
106
+ for (var e = 0; e < n.length; e++) {
107
+ var r = n[e];
108
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(i, r.key, r);
109
+ }
110
+ }
111
+ function H(i, n, e) {
112
+ return n && M(i.prototype, n), e && M(i, e), i;
113
+ }
114
+ function z(i, n) {
115
+ if (typeof n != "function" && n !== null)
116
+ throw new TypeError("Super expression must either be null or a function");
117
+ i.prototype = Object.create(n && n.prototype, {
118
+ constructor: {
119
+ value: i,
120
+ writable: !0,
121
+ configurable: !0
122
+ }
123
+ }), n && L(i, n);
124
+ }
125
+ function L(i, n) {
126
+ return L = Object.setPrototypeOf || function(r, o) {
127
+ return r.__proto__ = o, r;
128
+ }, L(i, n);
129
+ }
130
+ function U(i) {
131
+ var n = $();
132
+ return function() {
133
+ var r = A(i), o;
134
+ if (n) {
135
+ var a = A(this).constructor;
136
+ o = Reflect.construct(r, arguments, a);
137
+ } else
138
+ o = r.apply(this, arguments);
139
+ return Y(this, o);
140
+ };
141
+ }
142
+ function Y(i, n) {
143
+ return n && (w(n) === "object" || typeof n == "function") ? n : B(i);
144
+ }
145
+ function B(i) {
146
+ if (i === void 0)
147
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
148
+ return i;
149
+ }
150
+ function $() {
151
+ if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
152
+ if (typeof Proxy == "function") return !0;
153
+ try {
154
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function() {
155
+ })), !0;
156
+ } catch {
157
+ return !1;
158
+ }
159
+ }
160
+ function A(i) {
161
+ return A = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
162
+ return e.__proto__ || Object.getPrototypeOf(e);
163
+ }, A(i);
164
+ }
165
+ function P(i, n) {
166
+ var e = "data-clipboard-".concat(i);
167
+ if (n.hasAttribute(e))
168
+ return n.getAttribute(e);
169
+ }
170
+ var q = /* @__PURE__ */ function(i) {
171
+ z(e, i);
172
+ var n = U(e);
173
+ function e(r, o) {
174
+ var a;
175
+ return F(this, e), a = n.call(this), a.resolveOptions(o), a.listenClick(r), a;
176
+ }
177
+ return H(e, [{
178
+ key: "resolveOptions",
179
+ value: function() {
180
+ var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
181
+ this.action = typeof o.action == "function" ? o.action : this.defaultAction, this.target = typeof o.target == "function" ? o.target : this.defaultTarget, this.text = typeof o.text == "function" ? o.text : this.defaultText, this.container = w(o.container) === "object" ? o.container : document.body;
182
+ }
183
+ /**
184
+ * Adds a click event listener to the passed trigger.
185
+ * @param {String|HTMLElement|HTMLCollection|NodeList} trigger
186
+ */
187
+ }, {
188
+ key: "listenClick",
189
+ value: function(o) {
190
+ var a = this;
191
+ this.listener = m()(o, "click", function(b) {
192
+ return a.onClick(b);
193
+ });
194
+ }
195
+ /**
196
+ * Defines a new `ClipboardAction` on each click event.
197
+ * @param {Event} e
198
+ */
199
+ }, {
200
+ key: "onClick",
201
+ value: function(o) {
202
+ var a = o.delegateTarget || o.currentTarget, b = this.action(a) || "copy", O = I({
203
+ action: b,
204
+ container: this.container,
205
+ target: this.target(a),
206
+ text: this.text(a)
207
+ });
208
+ this.emit(O ? "success" : "error", {
209
+ action: b,
210
+ text: O,
211
+ trigger: a,
212
+ clearSelection: function() {
213
+ a && a.focus(), window.getSelection().removeAllRanges();
214
+ }
215
+ });
216
+ }
217
+ /**
218
+ * Default `action` lookup function.
219
+ * @param {Element} trigger
220
+ */
221
+ }, {
222
+ key: "defaultAction",
223
+ value: function(o) {
224
+ return P("action", o);
225
+ }
226
+ /**
227
+ * Default `target` lookup function.
228
+ * @param {Element} trigger
229
+ */
230
+ }, {
231
+ key: "defaultTarget",
232
+ value: function(o) {
233
+ var a = P("target", o);
234
+ if (a)
235
+ return document.querySelector(a);
236
+ }
237
+ /**
238
+ * Allow fire programmatically a copy action
239
+ * @param {String|HTMLElement} target
240
+ * @param {Object} options
241
+ * @returns Text copied.
242
+ */
243
+ }, {
244
+ key: "defaultText",
245
+ /**
246
+ * Default `text` lookup function.
247
+ * @param {Element} trigger
248
+ */
249
+ value: function(o) {
250
+ return P("text", o);
251
+ }
252
+ /**
253
+ * Destroy lifecycle.
254
+ */
255
+ }, {
256
+ key: "destroy",
257
+ value: function() {
258
+ this.listener.destroy();
259
+ }
260
+ }], [{
261
+ key: "copy",
262
+ value: function(o) {
263
+ var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
264
+ container: document.body
265
+ };
266
+ return k(o, a);
267
+ }
268
+ /**
269
+ * Allow fire programmatically a cut action
270
+ * @param {String|HTMLElement} target
271
+ * @returns Text cutted.
272
+ */
273
+ }, {
274
+ key: "cut",
275
+ value: function(o) {
276
+ return p(o);
277
+ }
278
+ /**
279
+ * Returns the support of the given action, or all actions if no action is
280
+ * given.
281
+ * @param {String} [action]
282
+ */
283
+ }, {
284
+ key: "isSupported",
285
+ value: function() {
286
+ var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["copy", "cut"], a = typeof o == "string" ? [o] : o, b = !!document.queryCommandSupported;
287
+ return a.forEach(function(O) {
288
+ b = b && !!document.queryCommandSupported(O);
289
+ }), b;
290
+ }
291
+ }]), e;
292
+ }(f()), G = q;
293
+ }
294
+ ),
295
+ /***/
296
+ 828: (
297
+ /***/
298
+ function(c) {
299
+ var u = 9;
300
+ if (typeof Element < "u" && !Element.prototype.matches) {
301
+ var t = Element.prototype;
302
+ t.matches = t.matchesSelector || t.mozMatchesSelector || t.msMatchesSelector || t.oMatchesSelector || t.webkitMatchesSelector;
303
+ }
304
+ function s(f, l) {
305
+ for (; f && f.nodeType !== u; ) {
306
+ if (typeof f.matches == "function" && f.matches(l))
307
+ return f;
308
+ f = f.parentNode;
309
+ }
310
+ }
311
+ c.exports = s;
312
+ }
313
+ ),
314
+ /***/
315
+ 438: (
316
+ /***/
317
+ function(c, u, t) {
318
+ var s = t(828);
319
+ function f(y, g, d, v, p) {
320
+ var _ = m.apply(this, arguments);
321
+ return y.addEventListener(d, _, p), {
322
+ destroy: function() {
323
+ y.removeEventListener(d, _, p);
324
+ }
325
+ };
326
+ }
327
+ function l(y, g, d, v, p) {
328
+ return typeof y.addEventListener == "function" ? f.apply(null, arguments) : typeof d == "function" ? f.bind(null, document).apply(null, arguments) : (typeof y == "string" && (y = document.querySelectorAll(y)), Array.prototype.map.call(y, function(_) {
329
+ return f(_, g, d, v, p);
330
+ }));
331
+ }
332
+ function m(y, g, d, v) {
333
+ return function(p) {
334
+ p.delegateTarget = s(p.target, g), p.delegateTarget && v.call(y, p);
335
+ };
336
+ }
337
+ c.exports = l;
338
+ }
339
+ ),
340
+ /***/
341
+ 879: (
342
+ /***/
343
+ function(c, u) {
344
+ u.node = function(t) {
345
+ return t !== void 0 && t instanceof HTMLElement && t.nodeType === 1;
346
+ }, u.nodeList = function(t) {
347
+ var s = Object.prototype.toString.call(t);
348
+ return t !== void 0 && (s === "[object NodeList]" || s === "[object HTMLCollection]") && "length" in t && (t.length === 0 || u.node(t[0]));
349
+ }, u.string = function(t) {
350
+ return typeof t == "string" || t instanceof String;
351
+ }, u.fn = function(t) {
352
+ var s = Object.prototype.toString.call(t);
353
+ return s === "[object Function]";
354
+ };
355
+ }
356
+ ),
357
+ /***/
358
+ 370: (
359
+ /***/
360
+ function(c, u, t) {
361
+ var s = t(879), f = t(438);
362
+ function l(d, v, p) {
363
+ if (!d && !v && !p)
364
+ throw new Error("Missing required arguments");
365
+ if (!s.string(v))
366
+ throw new TypeError("Second argument must be a String");
367
+ if (!s.fn(p))
368
+ throw new TypeError("Third argument must be a Function");
369
+ if (s.node(d))
370
+ return m(d, v, p);
371
+ if (s.nodeList(d))
372
+ return y(d, v, p);
373
+ if (s.string(d))
374
+ return g(d, v, p);
375
+ throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");
376
+ }
377
+ function m(d, v, p) {
378
+ return d.addEventListener(v, p), {
379
+ destroy: function() {
380
+ d.removeEventListener(v, p);
381
+ }
382
+ };
383
+ }
384
+ function y(d, v, p) {
385
+ return Array.prototype.forEach.call(d, function(_) {
386
+ _.addEventListener(v, p);
387
+ }), {
388
+ destroy: function() {
389
+ Array.prototype.forEach.call(d, function(_) {
390
+ _.removeEventListener(v, p);
391
+ });
392
+ }
393
+ };
394
+ }
395
+ function g(d, v, p) {
396
+ return f(document.body, d, v, p);
397
+ }
398
+ c.exports = l;
399
+ }
400
+ ),
401
+ /***/
402
+ 817: (
403
+ /***/
404
+ function(c) {
405
+ function u(t) {
406
+ var s;
407
+ if (t.nodeName === "SELECT")
408
+ t.focus(), s = t.value;
409
+ else if (t.nodeName === "INPUT" || t.nodeName === "TEXTAREA") {
410
+ var f = t.hasAttribute("readonly");
411
+ f || t.setAttribute("readonly", ""), t.select(), t.setSelectionRange(0, t.value.length), f || t.removeAttribute("readonly"), s = t.value;
412
+ } else {
413
+ t.hasAttribute("contenteditable") && t.focus();
414
+ var l = window.getSelection(), m = document.createRange();
415
+ m.selectNodeContents(t), l.removeAllRanges(), l.addRange(m), s = l.toString();
416
+ }
417
+ return s;
418
+ }
419
+ c.exports = u;
420
+ }
421
+ ),
422
+ /***/
423
+ 279: (
424
+ /***/
425
+ function(c) {
426
+ function u() {
427
+ }
428
+ u.prototype = {
429
+ on: function(t, s, f) {
430
+ var l = this.e || (this.e = {});
431
+ return (l[t] || (l[t] = [])).push({
432
+ fn: s,
433
+ ctx: f
434
+ }), this;
435
+ },
436
+ once: function(t, s, f) {
437
+ var l = this;
438
+ function m() {
439
+ l.off(t, m), s.apply(f, arguments);
440
+ }
441
+ return m._ = s, this.on(t, m, f);
442
+ },
443
+ emit: function(t) {
444
+ var s = [].slice.call(arguments, 1), f = ((this.e || (this.e = {}))[t] || []).slice(), l = 0, m = f.length;
445
+ for (l; l < m; l++)
446
+ f[l].fn.apply(f[l].ctx, s);
447
+ return this;
448
+ },
449
+ off: function(t, s) {
450
+ var f = this.e || (this.e = {}), l = f[t], m = [];
451
+ if (l && s)
452
+ for (var y = 0, g = l.length; y < g; y++)
453
+ l[y].fn !== s && l[y].fn._ !== s && m.push(l[y]);
454
+ return m.length ? f[t] = m : delete f[t], this;
455
+ }
456
+ }, c.exports = u, c.exports.TinyEmitter = u;
457
+ }
458
+ )
459
+ /******/
460
+ }, E = {};
461
+ function h(c) {
462
+ if (E[c])
463
+ return E[c].exports;
464
+ var u = E[c] = {
465
+ /******/
466
+ // no module.id needed
467
+ /******/
468
+ // no module.loaded needed
469
+ /******/
470
+ exports: {}
471
+ /******/
472
+ };
473
+ return x[c](u, u.exports, h), u.exports;
474
+ }
475
+ return function() {
476
+ h.n = function(c) {
477
+ var u = c && c.__esModule ? (
478
+ /******/
479
+ function() {
480
+ return c.default;
481
+ }
482
+ ) : (
483
+ /******/
484
+ function() {
485
+ return c;
486
+ }
487
+ );
488
+ return h.d(u, {
489
+ a: u
490
+ }), u;
491
+ };
492
+ }(), function() {
493
+ h.d = function(c, u) {
494
+ for (var t in u)
495
+ h.o(u, t) && !h.o(c, t) && Object.defineProperty(c, t, {
496
+ enumerable: !0,
497
+ get: u[t]
498
+ });
499
+ };
500
+ }(), function() {
501
+ h.o = function(c, u) {
502
+ return Object.prototype.hasOwnProperty.call(c, u);
503
+ };
504
+ }(), h(686);
505
+ }().default
506
+ );
507
+ });
508
+ })(N);
509
+ var rt = N.exports;
510
+ const ot = /* @__PURE__ */ et(rt), it = (C) => ({
511
+ toClipboard(S, x) {
512
+ return new Promise((E, h) => {
513
+ const c = document.createElement("button"), u = new ot(c, {
514
+ text: () => S,
515
+ action: () => "copy",
516
+ container: x !== void 0 ? x : document.body
517
+ });
518
+ u.on("success", (t) => {
519
+ u.destroy(), E(t);
520
+ }), u.on("error", (t) => {
521
+ u.destroy(), h(t);
522
+ }), document.body.appendChild(c), c.click(), document.body.removeChild(c);
523
+ });
524
+ }
525
+ }), ut = /* @__PURE__ */ V({
526
+ __name: "Clipboard",
527
+ props: {
528
+ value: {
529
+ type: String,
530
+ required: !0
531
+ },
532
+ message: {
533
+ type: String,
534
+ required: !1,
535
+ default: () => ""
536
+ }
537
+ },
538
+ setup(C) {
539
+ const S = C, x = X(!1), {
540
+ toClipboard: E
541
+ } = it();
542
+ async function h() {
543
+ try {
544
+ await E(S.value), W.success(S.message || "复制成功"), x.value = !0;
545
+ } catch (c) {
546
+ console.error(c);
547
+ }
548
+ }
549
+ return (c, u) => (K(), J(Q(Z), {
550
+ class: "icon",
551
+ icon: "mingcute:copy-2-line",
552
+ onClick: h
553
+ }));
554
+ }
555
+ }), vt = /* @__PURE__ */ nt(ut, [["__scopeId", "data-v-1955a5b5"]]);
556
+ export {
557
+ vt as C
558
+ };
@@ -8,7 +8,7 @@ import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
8
  /* empty css */
9
9
  /* empty css */
10
10
  import { u as Z } from "./useUploadCos-B8D9lYIk.js";
11
- import "./FeedbackModal-BvIlQ5Qe.js";
11
+ import "./FeedbackModal-CMmvJOi1.js";
12
12
  import { Icon as A } from "@iconify/vue";
13
13
  const Y = f({
14
14
  name: "IconDown",