@huyooo/ui 0.4.13 → 0.4.16
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.
- package/dist/{AuthkitAppSetting-iL2SVGkm.js → AuthkitAppSetting-MYrqMZAf.js} +391 -390
- package/dist/{AuthkitAuthorize-CLG8uEWI.js → AuthkitAuthorize-CCSa1q9E.js} +1 -1
- package/dist/{UserPanel-CsWfMpZO.js → UserPanel-CvWoQ9nn.js} +203 -179
- package/dist/authkit.js +3 -3
- package/dist/common.js +1 -1
- package/dist/components/Feedback/FeedbackBubbleEnd.vue.d.ts +1 -1
- package/dist/components/Feedback/FeedbackBubbleStart.vue.d.ts +1 -1
- package/dist/composables/Authkit/useAuthkitAuth.d.ts +9 -0
- package/dist/composables/Authkit/useAuthkitUsersProfile.d.ts +3 -0
- package/dist/composables.js +1 -1
- package/dist/index.js +4 -4
- package/dist/style.css +1 -1
- package/dist/useAuthkitProps-BM6B7mZP.js +384 -0
- package/dist/user.js +1 -1
- package/dist/utils/authGuard.d.ts +12 -0
- package/package.json +1 -1
- package/dist/useAuthkitProps-DB04dGw9.js +0 -326
|
@@ -62,8 +62,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
62
62
|
onRefresh?: ((...args: any[]) => any) | undefined;
|
|
63
63
|
}>, {
|
|
64
64
|
type: string;
|
|
65
|
-
avatarUrl: string;
|
|
66
65
|
value: string;
|
|
66
|
+
avatarUrl: string;
|
|
67
67
|
bubbleStyle: Record<string, any>;
|
|
68
68
|
showRefresh: boolean;
|
|
69
69
|
showClipboard: boolean;
|
|
@@ -54,8 +54,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
54
54
|
"onFooter-click"?: ((...args: any[]) => any) | undefined;
|
|
55
55
|
}>, {
|
|
56
56
|
type: string;
|
|
57
|
-
avatarUrl: string;
|
|
58
57
|
value: string;
|
|
58
|
+
avatarUrl: string;
|
|
59
59
|
bubbleStyle: Record<string, any>;
|
|
60
60
|
showClipboard: boolean;
|
|
61
61
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
declare function initializeAuth(): boolean;
|
|
2
|
+
declare function getToken(): string | null;
|
|
3
|
+
declare function setToken(token: string): void;
|
|
4
|
+
declare function clearAuth(): void;
|
|
1
5
|
declare function addSignInCallback(cb: (data: any) => void): void;
|
|
2
6
|
declare function addSignUpCallback(cb: () => void): void;
|
|
3
7
|
declare function addResetPasswordCallback(cb: () => void): void;
|
|
@@ -28,5 +32,10 @@ export declare function useAuthkitAuth(): {
|
|
|
28
32
|
addSignInCallback: typeof addSignInCallback;
|
|
29
33
|
addSignUpCallback: typeof addSignUpCallback;
|
|
30
34
|
addResetPasswordCallback: typeof addResetPasswordCallback;
|
|
35
|
+
jwtToken: Readonly<import('vue').Ref<string | null, string | null>>;
|
|
36
|
+
getToken: typeof getToken;
|
|
37
|
+
setToken: typeof setToken;
|
|
38
|
+
initializeAuth: typeof initializeAuth;
|
|
39
|
+
clearAuth: typeof clearAuth;
|
|
31
40
|
};
|
|
32
41
|
export {};
|
|
@@ -76,6 +76,7 @@ export interface UserProfileResponse {
|
|
|
76
76
|
data: UserProfileData;
|
|
77
77
|
}
|
|
78
78
|
declare function fetchUserProfile(): Promise<void>;
|
|
79
|
+
declare function clearUserProfile(): void;
|
|
79
80
|
export declare function useAuthkitUsersProfile(): {
|
|
80
81
|
userProfile: import('vue').Ref<{
|
|
81
82
|
id: string;
|
|
@@ -221,6 +222,8 @@ export declare function useAuthkitUsersProfile(): {
|
|
|
221
222
|
updatorId: string;
|
|
222
223
|
} | null>;
|
|
223
224
|
loading: import('vue').Ref<boolean, boolean>;
|
|
225
|
+
isLoggedIn: import('vue').ComputedRef<boolean>;
|
|
224
226
|
fetchUserProfile: typeof fetchUserProfile;
|
|
227
|
+
clearUserProfile: typeof clearUserProfile;
|
|
225
228
|
};
|
|
226
229
|
export {};
|
package/dist/composables.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as t, u, b as a, c as o, a as r } from "./useAuthkitProps-
|
|
1
|
+
import { U as t, u, b as a, c as o, a as r } from "./useAuthkitProps-BM6B7mZP.js";
|
|
2
2
|
import { u as A } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
|
|
3
3
|
import { u as f } from "./useMessageNotifications-lmP0vJDM.js";
|
|
4
4
|
import { u as d } from "./useUserPanelProps-C5W72fZJ.js";
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as e, a as t, b as i, A as n, a as o, c as g, n as r, E as d, k as u, l as P, _ as A, O as c, f as L, o as h, P as p, j as f, R as k, S as m, i as l, m as b, d as C, e as M, g as S, h as F } from "./AuthkitAppSetting-
|
|
2
|
-
import { U as I, u as U, b as T, c as B, a as N } from "./useAuthkitProps-
|
|
3
|
-
import { A as w, a as D } from "./AuthkitAuthorize-
|
|
1
|
+
import { A as e, a as t, b as i, A as n, a as o, c as g, n as r, E as d, k as u, l as P, _ as A, O as c, f as L, o as h, P as p, j as f, R as k, S as m, i as l, m as b, d as C, e as M, g as S, h as F } from "./AuthkitAppSetting-MYrqMZAf.js";
|
|
2
|
+
import { U as I, u as U, b as T, c as B, a as N } from "./useAuthkitProps-BM6B7mZP.js";
|
|
3
|
+
import { A as w, a as D } from "./AuthkitAuthorize-CCSa1q9E.js";
|
|
4
4
|
import { u as v } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
|
|
5
5
|
import { A as G, C as H, _ as O, a as _, D as V, E as j, b as z, M as W, c as q, N as J, f as K, d as Q, e as X } from "./MessageHandle-cZ2FXsJ5.js";
|
|
6
6
|
import { I as Z } from "./InfiniteLoading-BOurBPUR.js";
|
|
@@ -13,7 +13,7 @@ import { C as ds, a as us } from "./CollapseItem-Cw1vcdLu.js";
|
|
|
13
13
|
import { C as As, G as cs, S as Ls, W as hs } from "./WidthContainer-D795bWdT.js";
|
|
14
14
|
import { C as fs, E as ks } from "./CustomTable-DbiCOvmO.js";
|
|
15
15
|
import { M as ls, a as bs } from "./Menu-MZJINp6f.js";
|
|
16
|
-
import { S as Ms, b as Ss, c as Fs, a as xs, U as Is, S as Us } from "./UserPanel-
|
|
16
|
+
import { S as Ms, b as Ss, c as Fs, a as xs, U as Is, S as Us } from "./UserPanel-CvWoQ9nn.js";
|
|
17
17
|
import { S as Bs, S as Ns } from "./PaySubscriptions-MYoi8Ob_.js";
|
|
18
18
|
import { R as ws, R as Ds } from "./ReferrerReferees-CFwb0s28.js";
|
|
19
19
|
import { _ as vs } from "./Upload.vue_vue_type_script_setup_true_lang-uy8hhi_o.js";
|