@huyooo/ui 0.5.9 → 0.5.12

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.
@@ -0,0 +1,563 @@
1
+ import { ref as T, computed as f, watch as U, toValue as D, isRef as K, hasInjectionContext as H, inject as R, watchEffect as k, getCurrentInstance as L, onBeforeUnmount as q, onDeactivated as z, onActivated as N } from "vue";
2
+ import { useRouter as j, useRoute as M } from "vue-router";
3
+ /* empty css */
4
+ /* empty css */
5
+ /* empty css */
6
+ import "@arco-design/web-vue";
7
+ /* empty css */
8
+ /* empty css */
9
+ import "./useUploadCos-D5k1YLb7.js";
10
+ import "@huyooo/api";
11
+ import "./AuthkitAuthModal.vue_vue_type_style_index_1_lang-BpOmabWi.js";
12
+ import { a as E } from "./useAuthkitUsersProfile-C0ZRUQ3T.js";
13
+ import "@iconify/vue";
14
+ /* empty css */
15
+ import { u as O } from "./useAuthkitAppsAuthPageInfo-Dfj4byB5.js";
16
+ /* empty css */
17
+ /* empty css */
18
+ /* empty css */
19
+ /* empty css */
20
+ const b = T({
21
+ key: "",
22
+ name: ""
23
+ });
24
+ function Me() {
25
+ function e(t, r) {
26
+ b.value.key = t, b.value.name = r;
27
+ }
28
+ return {
29
+ activeDoc: b,
30
+ setActiveDoc: e
31
+ };
32
+ }
33
+ function Ee(e, t = "default") {
34
+ const r = document;
35
+ if (r && typeof r.startViewTransition == "function") {
36
+ const n = document.body;
37
+ n.classList.add(`vt-${t}`), r.startViewTransition(() => {
38
+ try {
39
+ e();
40
+ } catch {
41
+ }
42
+ }).finished.finally(() => {
43
+ n.classList.remove(`vt-${t}`);
44
+ });
45
+ } else
46
+ e();
47
+ }
48
+ function Oe(e, t, r) {
49
+ const n = e.find((o) => {
50
+ var i;
51
+ return ((i = o.meta) == null ? void 0 : i.menuType) === t;
52
+ });
53
+ return (n == null ? void 0 : n.path) || r;
54
+ }
55
+ function Ie(e) {
56
+ const t = j(), {
57
+ appsData: r
58
+ } = O(), {
59
+ isLoggedIn: n,
60
+ userProfile: o
61
+ } = E(), i = f(() => {
62
+ var c;
63
+ return !n.value || !o.value ? [] : ((c = o.value.permissions) == null ? void 0 : c.map((l) => l.permissionKey)) || [];
64
+ });
65
+ function s(c) {
66
+ return (r.value.publicRoutes || []).some((p) => p.permissionKey === c);
67
+ }
68
+ function a(c) {
69
+ return n.value ? i.value.includes(c) : !1;
70
+ }
71
+ return {
72
+ menus: f(() => t.getRoutes().filter((l) => {
73
+ const p = l.meta;
74
+ return e ? p.menuType === e : !!p.menuType;
75
+ }).filter((l) => {
76
+ const p = l.path;
77
+ return s(p) ? !0 : a(p);
78
+ }).map((l) => {
79
+ const p = l.meta;
80
+ return {
81
+ name: p.title || l.path,
82
+ path: l.path,
83
+ key: l.path,
84
+ icon: p.menuIcon || p.icon || "Header/Help"
85
+ };
86
+ })),
87
+ isRoutePublic: s,
88
+ hasPermission: (c) => s(c) ? !0 : a(c),
89
+ isLoggedIn: n
90
+ };
91
+ }
92
+ function ve() {
93
+ const e = j(), t = M(), {
94
+ appsAuthPageInfoApi: r,
95
+ appsData: n
96
+ } = O(), {
97
+ isLoggedIn: o,
98
+ userProfile: i
99
+ } = E(), s = T(!1);
100
+ function a(l) {
101
+ return (n.value.publicRoutes || []).some((d) => d.permissionKey === l);
102
+ }
103
+ function u(l) {
104
+ var d;
105
+ return !o.value || !i.value ? !1 : (((d = i.value.permissions) == null ? void 0 : d.map((x) => x.permissionKey)) || []).includes(l);
106
+ }
107
+ function c(l) {
108
+ if (s.value = !0, a(l)) {
109
+ s.value = !1;
110
+ return;
111
+ }
112
+ if (!o.value) {
113
+ e.replace("/"), s.value = !1;
114
+ return;
115
+ }
116
+ u(l) || e.replace("/"), s.value = !1;
117
+ }
118
+ return r(() => {
119
+ c(t.path), U(() => t.path, (l) => {
120
+ c(l);
121
+ });
122
+ }), {
123
+ isChecking: s,
124
+ isRoutePublic: a,
125
+ hasPermission: u
126
+ };
127
+ }
128
+ const G = /* @__PURE__ */ new Set(["link", "style", "script", "noscript"]), W = /* @__PURE__ */ new Set(["title", "titleTemplate", "script", "style", "noscript"]), Ve = /* @__PURE__ */ new Set([
129
+ "title",
130
+ "base",
131
+ "htmlAttrs",
132
+ "bodyAttrs",
133
+ "meta",
134
+ "link",
135
+ "style",
136
+ "script",
137
+ "noscript"
138
+ ]), B = /* @__PURE__ */ new Set(["base", "title", "titleTemplate", "bodyAttrs", "htmlAttrs", "templateParams"]), F = /* @__PURE__ */ new Set(["key", "tagPosition", "tagPriority", "tagDuplicateStrategy", "innerHTML", "textContent", "processTemplateParams"]), Ce = /* @__PURE__ */ new Set(["templateParams", "htmlAttrs", "bodyAttrs"]), A = /* @__PURE__ */ new Set([
139
+ "theme-color",
140
+ "google-site-verification",
141
+ "og",
142
+ "article",
143
+ "book",
144
+ "profile",
145
+ "twitter",
146
+ "author"
147
+ ]), h = {
148
+ META: /* @__PURE__ */ new Set(["twitter"]),
149
+ OG: /* @__PURE__ */ new Set(["og", "book", "article", "profile", "fb"]),
150
+ MEDIA: /* @__PURE__ */ new Set(["ogImage", "ogVideo", "ogAudio", "twitterImage"]),
151
+ HTTP_EQUIV: /* @__PURE__ */ new Set(["contentType", "defaultStyle", "xUaCompatible"])
152
+ }, J = {
153
+ articleExpirationTime: "article:expiration_time",
154
+ articleModifiedTime: "article:modified_time",
155
+ articlePublishedTime: "article:published_time",
156
+ bookReleaseDate: "book:release_date",
157
+ fbAppId: "fb:app_id",
158
+ ogAudioSecureUrl: "og:audio:secure_url",
159
+ ogAudioUrl: "og:audio",
160
+ ogImageSecureUrl: "og:image:secure_url",
161
+ ogImageUrl: "og:image",
162
+ ogSiteName: "og:site_name",
163
+ ogVideoSecureUrl: "og:video:secure_url",
164
+ ogVideoUrl: "og:video",
165
+ profileFirstName: "profile:first_name",
166
+ profileLastName: "profile:last_name",
167
+ profileUsername: "profile:username",
168
+ msapplicationConfig: "msapplication-Config",
169
+ msapplicationTileColor: "msapplication-TileColor",
170
+ msapplicationTileImage: "msapplication-TileImage"
171
+ }, I = {
172
+ appleItunesApp: {
173
+ unpack: {
174
+ entrySeparator: ", ",
175
+ // @ts-expect-error untyped
176
+ resolve: ({ key: e, value: t }) => `${m(e)}=${t}`
177
+ }
178
+ },
179
+ refresh: {
180
+ metaKey: "http-equiv",
181
+ unpack: {
182
+ entrySeparator: ";",
183
+ // @ts-expect-error untyped
184
+ resolve: ({ key: e, value: t }) => e === "seconds" ? `${t}` : void 0
185
+ }
186
+ },
187
+ robots: {
188
+ unpack: {
189
+ entrySeparator: ", ",
190
+ // @ts-expect-error untyped
191
+ resolve: ({ key: e, value: t }) => typeof t == "boolean" ? m(e) : `${m(e)}:${t}`
192
+ }
193
+ },
194
+ contentSecurityPolicy: {
195
+ metaKey: "http-equiv",
196
+ unpack: {
197
+ entrySeparator: "; ",
198
+ // @ts-expect-error untyped
199
+ resolve: ({ key: e, value: t }) => `${m(e)} ${t}`
200
+ }
201
+ },
202
+ charset: {}
203
+ };
204
+ function m(e) {
205
+ const t = e.replace(/([A-Z])/g, "-$1").toLowerCase(), r = t.indexOf("-");
206
+ return r === -1 ? t : h.META.has(t.slice(0, r)) || h.OG.has(t.slice(0, r)) ? e.replace(/([A-Z])/g, ":$1").toLowerCase() : t;
207
+ }
208
+ function v(e) {
209
+ return Object.fromEntries(Object.entries(e).filter(([t, r]) => String(r) !== "false" && t));
210
+ }
211
+ function w(e) {
212
+ return Array.isArray(e) ? e.map(w) : !e || typeof e != "object" ? e : Object.fromEntries(Object.entries(e).map(([t, r]) => [m(t), w(r)]));
213
+ }
214
+ function V(e, t = {}) {
215
+ const { entrySeparator: r = "", keyValueSeparator: n = "", wrapValue: o, resolve: i } = t;
216
+ return Object.entries(e).map(([s, a]) => {
217
+ if (i) {
218
+ const c = i({ key: s, value: a });
219
+ if (c !== void 0)
220
+ return c;
221
+ }
222
+ const u = typeof a == "object" ? V(a, t) : typeof a == "number" ? a.toString() : typeof a == "string" && o ? `${o}${a.replace(new RegExp(o, "g"), `\\${o}`)}${o}` : a;
223
+ return `${s}${n}${u}`;
224
+ }).join(r);
225
+ }
226
+ function P(e, t) {
227
+ const r = v(t), n = m(e), o = C(n);
228
+ if (!A.has(n))
229
+ return [{ [o]: n, ...r }];
230
+ const i = Object.fromEntries(
231
+ Object.entries(r).map(([s, a]) => [`${e}${s === "url" ? "" : `${s[0].toUpperCase()}${s.slice(1)}`}`, a])
232
+ );
233
+ return y(i || {}).sort((s, a) => {
234
+ var u, c;
235
+ return (((u = s[o]) == null ? void 0 : u.length) || 0) - (((c = a[o]) == null ? void 0 : c.length) || 0);
236
+ });
237
+ }
238
+ function C(e) {
239
+ var n;
240
+ if (((n = I[e]) == null ? void 0 : n.metaKey) === "http-equiv" || h.HTTP_EQUIV.has(e))
241
+ return "http-equiv";
242
+ const t = m(e), r = t.indexOf(":");
243
+ return r === -1 ? "name" : h.OG.has(t.slice(0, r)) ? "property" : "name";
244
+ }
245
+ function Q(e) {
246
+ return J[e] || m(e);
247
+ }
248
+ function Z(e, t) {
249
+ var r;
250
+ return t === "refresh" ? `${e.seconds};url=${e.url}` : V(w(e), {
251
+ keyValueSeparator: "=",
252
+ entrySeparator: ", ",
253
+ resolve: ({ value: n, key: o }) => n === null ? "" : typeof n == "boolean" ? o : void 0,
254
+ // @ts-expect-error untyped
255
+ ...(r = I[t]) == null ? void 0 : r.unpack
256
+ });
257
+ }
258
+ function y(e) {
259
+ const t = [], r = {};
260
+ for (const [o, i] of Object.entries(e)) {
261
+ if (Array.isArray(i)) {
262
+ if (o === "themeColor") {
263
+ i.forEach((s) => {
264
+ typeof s == "object" && s !== null && t.push({ name: "theme-color", ...s });
265
+ });
266
+ continue;
267
+ }
268
+ for (const s of i)
269
+ if (typeof s == "object" && s !== null) {
270
+ const a = [], u = [];
271
+ for (const [c, l] of Object.entries(s)) {
272
+ const p = `${o}${c === "url" ? "" : `:${c}`}`, d = y({ [p]: l });
273
+ (c === "url" ? a : u).push(...d);
274
+ }
275
+ t.push(...a, ...u);
276
+ } else
277
+ t.push(...typeof s == "string" ? y({ [o]: s }) : P(o, s));
278
+ continue;
279
+ }
280
+ if (typeof i == "object" && i)
281
+ if (h.MEDIA.has(o)) {
282
+ const s = o.startsWith("twitter") ? "twitter" : "og", a = o.replace(/^(og|twitter)/, "").toLowerCase(), u = s === "twitter" ? "name" : "property";
283
+ i.url && t.push({
284
+ [u]: `${s}:${a}`,
285
+ content: i.url
286
+ }), i.secureUrl && t.push({
287
+ [u]: `${s}:${a}:secure_url`,
288
+ content: i.secureUrl
289
+ });
290
+ for (const [c, l] of Object.entries(i))
291
+ c !== "url" && c !== "secureUrl" && t.push({
292
+ [u]: `${s}:${a}:${c}`,
293
+ // @ts-expect-error untyped
294
+ content: l
295
+ });
296
+ } else A.has(m(o)) ? t.push(...P(o, i)) : r[o] = v(i);
297
+ else
298
+ r[o] = i;
299
+ }
300
+ const n = Object.entries(r).map(([o, i]) => {
301
+ if (o === "charset")
302
+ return { charset: i === null ? "_null" : i };
303
+ const s = C(o), a = Q(o), u = i === null ? "_null" : typeof i == "object" ? Z(i, o) : typeof i == "number" ? i.toString() : i;
304
+ return s === "http-equiv" ? { "http-equiv": a, content: u } : { [s]: a, content: u };
305
+ });
306
+ return [...t, ...n].map(
307
+ (o) => "content" in o && o.content === "_null" ? { ...o, content: null } : o
308
+ );
309
+ }
310
+ const X = {
311
+ key: "flatMeta",
312
+ hooks: {
313
+ "entries:normalize": (e) => {
314
+ const t = [];
315
+ e.tags = e.tags.map((r) => r.tag !== "_flatMeta" ? r : (t.push(y(r.props).map((n) => ({
316
+ ...r,
317
+ tag: "meta",
318
+ props: n
319
+ }))), !1)).filter(Boolean).concat(...t);
320
+ }
321
+ }
322
+ }, Y = ["name", "property", "http-equiv"], ee = /* @__PURE__ */ new Set([
323
+ "viewport",
324
+ "description",
325
+ "keywords",
326
+ "robots"
327
+ ]);
328
+ function _e(e) {
329
+ const t = e.split(":");
330
+ return t.length ? A.has(t[1]) : !1;
331
+ }
332
+ function xe(e) {
333
+ const { props: t, tag: r } = e;
334
+ if (B.has(r))
335
+ return r;
336
+ if (r === "link" && t.rel === "canonical")
337
+ return "canonical";
338
+ if (t.charset)
339
+ return "charset";
340
+ if (e.tag === "meta") {
341
+ for (const n of Y)
342
+ if (t[n] !== void 0) {
343
+ const o = t[n], i = o.includes(":"), s = ee.has(o), u = !(i || s) && e.key ? `:key:${e.key}` : "";
344
+ return `${r}:${o}${u}`;
345
+ }
346
+ }
347
+ if (e.key)
348
+ return `${r}:key:${e.key}`;
349
+ if (t.id)
350
+ return `${r}:id:${t.id}`;
351
+ if (W.has(r)) {
352
+ const n = e.textContent || e.innerHTML;
353
+ if (n)
354
+ return `${r}:content:${n}`;
355
+ }
356
+ }
357
+ function g(e, t, r) {
358
+ typeof e === "function" && (!r || r !== "titleTemplate" && !(r[0] === "o" && r[1] === "n")) && (e = e());
359
+ let o;
360
+ if (t && (o = t(r, e)), Array.isArray(o))
361
+ return o.map((i) => g(i, t));
362
+ if ((o == null ? void 0 : o.constructor) === Object) {
363
+ const i = {};
364
+ for (const s of Object.keys(o))
365
+ i[s] = g(o[s], t, s);
366
+ return i;
367
+ }
368
+ return o;
369
+ }
370
+ function te(e, t) {
371
+ const r = e === "style" ? /* @__PURE__ */ new Map() : /* @__PURE__ */ new Set();
372
+ function n(o) {
373
+ const i = o.trim();
374
+ if (i)
375
+ if (e === "style") {
376
+ const [s, ...a] = i.split(":").map((u) => u.trim());
377
+ s && a.length && r.set(s, a.join(":"));
378
+ } else
379
+ i.split(" ").filter(Boolean).forEach((s) => r.add(s));
380
+ }
381
+ return typeof t == "string" ? e === "style" ? t.split(";").forEach(n) : n(t) : Array.isArray(t) ? t.forEach((o) => n(o)) : t && typeof t == "object" && Object.entries(t).forEach(([o, i]) => {
382
+ i && i !== "false" && (e === "style" ? r.set(o.trim(), i) : n(o));
383
+ }), r;
384
+ }
385
+ function re(e, t) {
386
+ return e.props = e.props || {}, t ? e.tag === "templateParams" ? (e.props = t, e) : (Object.entries(t).forEach(([r, n]) => {
387
+ if (n === null) {
388
+ e.props[r] = null;
389
+ return;
390
+ }
391
+ if (r === "class" || r === "style") {
392
+ e.props[r] = te(r, n);
393
+ return;
394
+ }
395
+ if (F.has(r)) {
396
+ if (["textContent", "innerHTML"].includes(r) && typeof n == "object") {
397
+ let s = t.type;
398
+ if (t.type || (s = "application/json"), !(s != null && s.endsWith("json")) && s !== "speculationrules")
399
+ return;
400
+ t.type = s, e.props.type = s, e[r] = JSON.stringify(n);
401
+ } else
402
+ e[r] = n;
403
+ return;
404
+ }
405
+ const o = String(n), i = r.startsWith("data-");
406
+ o === "true" || o === "" ? e.props[r] = i ? o : !0 : !n && i && o === "false" ? e.props[r] = "false" : n !== void 0 && (e.props[r] = n);
407
+ }), e) : e;
408
+ }
409
+ function ne(e, t) {
410
+ const r = typeof t == "object" && typeof t != "function" ? t : { [e === "script" || e === "noscript" || e === "style" ? "innerHTML" : "textContent"]: t }, n = re({ tag: e, props: {} }, r);
411
+ return n.key && G.has(n.tag) && (n.props["data-hid"] = n._h = n.key), n.tag === "script" && typeof n.innerHTML == "object" && (n.innerHTML = JSON.stringify(n.innerHTML), n.props.type = n.props.type || "application/json"), Array.isArray(n.props.content) ? n.props.content.map((o) => ({ ...n, props: { ...n.props, content: o } })) : n;
412
+ }
413
+ function Ue(e, t) {
414
+ if (!e)
415
+ return [];
416
+ typeof e == "function" && (e = e());
417
+ const r = (o, i) => {
418
+ for (let s = 0; s < t.length; s++)
419
+ i = t[s](o, i);
420
+ return i;
421
+ };
422
+ e = r(void 0, e);
423
+ const n = [];
424
+ return e = g(e, r), Object.entries(e || {}).forEach(([o, i]) => {
425
+ if (i !== void 0)
426
+ for (const s of Array.isArray(i) ? i : [i])
427
+ n.push(ne(o, s));
428
+ }), n.flat();
429
+ }
430
+ const oe = (e, t) => K(t) ? D(t) : t, se = "usehead";
431
+ // @__NO_SIDE_EFFECTS__
432
+ function _() {
433
+ if (H()) {
434
+ const e = R(se);
435
+ if (!e)
436
+ throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");
437
+ return e;
438
+ }
439
+ throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");
440
+ }
441
+ function $(e, t = {}) {
442
+ const r = t.head || /* @__PURE__ */ _();
443
+ return r.ssr ? r.push(e || {}, t) : ie(r, e, t);
444
+ }
445
+ function ie(e, t, r = {}) {
446
+ const n = T(!1);
447
+ let o;
448
+ return k(() => {
449
+ const s = n.value ? {} : g(t, oe);
450
+ o ? o.patch(s) : o = e.push(s, r);
451
+ }), L() && (q(() => {
452
+ o.dispose();
453
+ }), z(() => {
454
+ n.value = !0;
455
+ }), N(() => {
456
+ n.value = !1;
457
+ })), o;
458
+ }
459
+ function S(e = {}, t = {}) {
460
+ (t.head || /* @__PURE__ */ _()).use(X);
461
+ const { title: n, titleTemplate: o, ...i } = e;
462
+ return $({
463
+ title: n,
464
+ titleTemplate: o,
465
+ _flatMeta: i
466
+ }, t);
467
+ }
468
+ function De() {
469
+ function e(r) {
470
+ S({
471
+ ogSiteName: r.siteName,
472
+ ogLocale: r.locale
473
+ });
474
+ }
475
+ function t(r) {
476
+ const {
477
+ title: n,
478
+ description: o,
479
+ keywords: i,
480
+ image: s,
481
+ url: a,
482
+ type: u = "website"
483
+ } = r, c = o && o.length > 155 ? `${o.substring(0, 152)}...` : o;
484
+ $({
485
+ title: n,
486
+ link: a ? [{
487
+ rel: "canonical",
488
+ href: a
489
+ }] : []
490
+ }), S({
491
+ description: c || o,
492
+ keywords: i,
493
+ ogTitle: n,
494
+ ogDescription: c || o,
495
+ ogType: u === "product" ? void 0 : u,
496
+ // product 类型不被支持,跳过
497
+ ogUrl: a,
498
+ ogImage: s,
499
+ twitterCard: "summary_large_image",
500
+ twitterTitle: n,
501
+ twitterDescription: c || o,
502
+ twitterImage: s
503
+ });
504
+ }
505
+ return {
506
+ setGlobalSEO: e,
507
+ setPageSEO: t
508
+ };
509
+ }
510
+ function Ke() {
511
+ const e = M(), t = () => e.meta;
512
+ $({
513
+ title: f(() => t().title || ""),
514
+ link: f(() => {
515
+ const r = t();
516
+ return r.url ? [{
517
+ rel: "canonical",
518
+ href: r.url
519
+ }] : [];
520
+ })
521
+ }), S({
522
+ description: f(() => {
523
+ const n = t().description;
524
+ if (n)
525
+ return n.length > 155 ? `${n.substring(0, 152)}...` : n;
526
+ }),
527
+ keywords: f(() => t().keywords),
528
+ ogTitle: f(() => t().title),
529
+ ogDescription: f(() => {
530
+ const n = t().description;
531
+ if (n)
532
+ return n.length > 155 ? `${n.substring(0, 152)}...` : n;
533
+ }),
534
+ ogType: f(() => {
535
+ const n = t().type || "website";
536
+ return n === "product" ? void 0 : n;
537
+ }),
538
+ ogUrl: f(() => t().url),
539
+ ogImage: f(() => t().image),
540
+ twitterCard: "summary_large_image",
541
+ twitterTitle: f(() => t().title),
542
+ twitterDescription: f(() => {
543
+ const n = t().description;
544
+ if (n)
545
+ return n.length > 155 ? `${n.substring(0, 152)}...` : n;
546
+ }),
547
+ twitterImage: f(() => t().image)
548
+ });
549
+ }
550
+ export {
551
+ Ce as U,
552
+ Ve as V,
553
+ Ie as a,
554
+ ve as b,
555
+ De as c,
556
+ Ke as d,
557
+ xe as e,
558
+ Oe as f,
559
+ _e as i,
560
+ Ue as n,
561
+ Me as u,
562
+ Ee as w
563
+ };
package/dist/user.js CHANGED
@@ -1,5 +1,5 @@
1
- import { U as r, a as e, b as o, c as n, S as t } from "./UserPanel-DHXkFUTF.js";
2
- import { U as c } from "./UserAccountMenu-50CxuyL3.js";
1
+ import { U as r, a as e, b as o, c as n, S as t } from "./UserPanel-DzSB8_xh.js";
2
+ import { U as c } from "./UserAccountMenu-CjajHECj.js";
3
3
  export {
4
4
  c as UserAccountMenu,
5
5
  r as UserAvatar,
@@ -6,3 +6,10 @@ export declare function findLabel(options: Array<{
6
6
  label: string;
7
7
  } | undefined;
8
8
  export declare function hideEmail(email: string, prefixLength?: number): string;
9
+ export declare function clearAuth(): void;
10
+ export declare function setAuth(tokens: {
11
+ jwtToken: string;
12
+ refreshToken: string;
13
+ }): void;
14
+ export declare function getRefreshToken(): string | null;
15
+ export declare function updateJwtToken(jwtToken: string): void;
@@ -0,0 +1,2 @@
1
+ import { api } from '@huyooo/api';
2
+ export default api;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huyooo/ui",
3
- "version": "0.5.9",
3
+ "version": "0.5.12",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [