@huyooo/ui 0.4.67 → 0.4.68
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/{AuthkitAuthorize-B3WS5eGX.js → AuthkitAuthorize-CA0jmnjq.js} +1 -1
- package/dist/authkit.d.ts +0 -1
- package/dist/authkit.js +1 -1
- package/dist/components/Authkit/Auth/AuthkitAuthorize.vue.d.ts +4 -4
- package/dist/components/User/UserAvatar.vue.d.ts +1 -1
- package/dist/components/User/UserBasicInformation.vue.d.ts +1 -1
- package/dist/composables/Authkit/useAuthkitUsersProfile.d.ts +70 -95
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/api.d.ts +1 -0
- package/dist/types/user.d.ts +114 -0
- package/dist/user.d.ts +1 -1
- package/package.json +1 -1
- package/dist/types/users.d.ts +0 -21
|
@@ -244,7 +244,7 @@ const U = {
|
|
|
244
244
|
}
|
|
245
245
|
}, "授权后将跳转至", -1)), a("div", E, v(l.value.authorizationCallback), 1)])])]));
|
|
246
246
|
}
|
|
247
|
-
}), te = /* @__PURE__ */ S(F, [["__scopeId", "data-v-
|
|
247
|
+
}), te = /* @__PURE__ */ S(F, [["__scopeId", "data-v-cc821ddc"]]);
|
|
248
248
|
export {
|
|
249
249
|
ee as A,
|
|
250
250
|
te as a
|
package/dist/authkit.d.ts
CHANGED
|
@@ -28,4 +28,3 @@ export { useAuthkitAuthModal } from './composables/Authkit/useAuthkitAuthModal';
|
|
|
28
28
|
export { useAuthkitUsersProfile } from './composables/Authkit/useAuthkitUsersProfile';
|
|
29
29
|
export { useAuthkitCreateAndUpdate } from './composables/Authkit/useAuthkitCreateAndUpdate';
|
|
30
30
|
export type * from './types/auth';
|
|
31
|
-
export type * from './types/users';
|
package/dist/authkit.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
2
|
+
import { A as y, a as E } from "./AuthkitAuthorize-CA0jmnjq.js";
|
|
3
3
|
import { U as C, u as R } from "./useAuthkitAuthModal-hxivJw_U.js";
|
|
4
4
|
import { u as b, a as v } from "./useAuthkitUsersProfile-DNOB_Kuk.js";
|
|
5
5
|
import { u as M } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { FormSizeType } from '../../../types/auth';
|
|
3
|
-
import {
|
|
3
|
+
import { UserResponseType } from '../../../types/user';
|
|
4
4
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
5
|
size: {
|
|
6
6
|
type: PropType<FormSizeType>;
|
|
@@ -42,7 +42,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
42
42
|
default: () => string;
|
|
43
43
|
};
|
|
44
44
|
userInfo: {
|
|
45
|
-
type: PropType<
|
|
45
|
+
type: PropType<UserResponseType>;
|
|
46
46
|
required: true;
|
|
47
47
|
default: () => string;
|
|
48
48
|
};
|
|
@@ -87,7 +87,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
87
87
|
default: () => string;
|
|
88
88
|
};
|
|
89
89
|
userInfo: {
|
|
90
|
-
type: PropType<
|
|
90
|
+
type: PropType<UserResponseType>;
|
|
91
91
|
required: true;
|
|
92
92
|
default: () => string;
|
|
93
93
|
};
|
|
@@ -99,6 +99,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
99
99
|
clientId: string;
|
|
100
100
|
responseType: string;
|
|
101
101
|
scope: string;
|
|
102
|
-
userInfo:
|
|
102
|
+
userInfo: UserResponseType;
|
|
103
103
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
104
104
|
export default _default;
|
|
@@ -17,7 +17,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
17
17
|
default: string;
|
|
18
18
|
};
|
|
19
19
|
}>> & Readonly<{}>, {
|
|
20
|
-
avatar: string;
|
|
21
20
|
nickname: string;
|
|
21
|
+
avatar: string;
|
|
22
22
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
23
23
|
export default _default;
|
|
@@ -35,7 +35,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
35
35
|
}>> & Readonly<{}>, {
|
|
36
36
|
email: string;
|
|
37
37
|
referrerId: string;
|
|
38
|
-
avatarUrl: string;
|
|
39
38
|
nickname: string;
|
|
39
|
+
avatarUrl: string;
|
|
40
40
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
41
41
|
export default _default;
|
|
@@ -1,91 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
appId: string;
|
|
4
|
-
roleId: string | null;
|
|
5
|
-
avatar: string;
|
|
6
|
-
avatarUrl: string;
|
|
7
|
-
nickname: string;
|
|
8
|
-
description: string;
|
|
9
|
-
email: string;
|
|
10
|
-
phone: string;
|
|
11
|
-
verified: {
|
|
12
|
-
email: {
|
|
13
|
-
isVerified: boolean;
|
|
14
|
-
verificationToken: string;
|
|
15
|
-
createAt: string | null;
|
|
16
|
-
};
|
|
17
|
-
phone: {
|
|
18
|
-
isVerified: boolean;
|
|
19
|
-
verificationToken: string;
|
|
20
|
-
createAt: string | null;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
github: {
|
|
24
|
-
login: string;
|
|
25
|
-
id: number;
|
|
26
|
-
node_id: string;
|
|
27
|
-
avatar_url: string;
|
|
28
|
-
gravatar_id: string;
|
|
29
|
-
url: string;
|
|
30
|
-
html_url: string;
|
|
31
|
-
followers_url: string;
|
|
32
|
-
following_url: string;
|
|
33
|
-
gists_url: string;
|
|
34
|
-
starred_url: string;
|
|
35
|
-
subscriptions_url: string;
|
|
36
|
-
organizations_url: string;
|
|
37
|
-
repos_url: string;
|
|
38
|
-
events_url: string;
|
|
39
|
-
received_events_url: string;
|
|
40
|
-
type: string;
|
|
41
|
-
site_admin: boolean;
|
|
42
|
-
name: string;
|
|
43
|
-
company: string | null;
|
|
44
|
-
blog: string;
|
|
45
|
-
location: string;
|
|
46
|
-
email: string;
|
|
47
|
-
hireable: boolean;
|
|
48
|
-
bio: string;
|
|
49
|
-
twitter_username: string | null;
|
|
50
|
-
notification_email: string;
|
|
51
|
-
public_repos: number;
|
|
52
|
-
public_gists: number;
|
|
53
|
-
followers: number;
|
|
54
|
-
following: number;
|
|
55
|
-
created_at: string;
|
|
56
|
-
updated_at: string;
|
|
57
|
-
} | null;
|
|
58
|
-
wechat: any;
|
|
59
|
-
google: any;
|
|
60
|
-
microsoft: any;
|
|
61
|
-
status: string;
|
|
62
|
-
organizations: string[];
|
|
63
|
-
creator: string | null;
|
|
64
|
-
updator: string | null;
|
|
65
|
-
createAt: string;
|
|
66
|
-
updateAt: string;
|
|
67
|
-
referrerId: string;
|
|
68
|
-
creatorId: string;
|
|
69
|
-
updatorId: string;
|
|
70
|
-
}
|
|
71
|
-
export interface UserProfileResponse {
|
|
72
|
-
code: number;
|
|
73
|
-
message: string;
|
|
74
|
-
data: UserProfileData;
|
|
75
|
-
}
|
|
1
|
+
import { UserProfileType, UserProfileApiResponse } from '../../types/user';
|
|
2
|
+
export type UserProfileResponse = UserProfileApiResponse;
|
|
76
3
|
declare function fetchUserProfile(): Promise<void>;
|
|
77
4
|
declare function clearUserProfile(): void;
|
|
78
5
|
export declare function useAuthkitUsersProfile(): {
|
|
79
6
|
userProfile: import('vue').Ref<{
|
|
80
|
-
id: string;
|
|
81
7
|
appId: string;
|
|
82
8
|
roleId: string | null;
|
|
83
|
-
avatar: string;
|
|
84
|
-
avatarUrl: string;
|
|
85
|
-
nickname: string;
|
|
86
|
-
description: string;
|
|
87
|
-
email: string;
|
|
88
|
-
phone: string;
|
|
89
9
|
verified: {
|
|
90
10
|
email: {
|
|
91
11
|
isVerified: boolean;
|
|
@@ -136,25 +56,49 @@ export declare function useAuthkitUsersProfile(): {
|
|
|
136
56
|
wechat: any;
|
|
137
57
|
google: any;
|
|
138
58
|
microsoft: any;
|
|
139
|
-
status: string;
|
|
140
59
|
organizations: string[];
|
|
60
|
+
referrerId: string;
|
|
61
|
+
role: {
|
|
62
|
+
id: string;
|
|
63
|
+
name: string;
|
|
64
|
+
roleKey: string;
|
|
65
|
+
description: string;
|
|
66
|
+
} | null;
|
|
67
|
+
permissions: {
|
|
68
|
+
id: string;
|
|
69
|
+
name: string;
|
|
70
|
+
permissionKey: string;
|
|
71
|
+
description: string;
|
|
72
|
+
}[];
|
|
73
|
+
creatorInfo?: {
|
|
74
|
+
id: string;
|
|
75
|
+
nickname: string;
|
|
76
|
+
email: string;
|
|
77
|
+
avatar?: string | undefined;
|
|
78
|
+
} | undefined;
|
|
79
|
+
updatorInfo?: {
|
|
80
|
+
id: string;
|
|
81
|
+
nickname: string;
|
|
82
|
+
email: string;
|
|
83
|
+
avatar?: string | undefined;
|
|
84
|
+
} | undefined;
|
|
141
85
|
creator: string | null;
|
|
142
86
|
updator: string | null;
|
|
143
|
-
createAt: string;
|
|
144
|
-
updateAt: string;
|
|
145
|
-
referrerId: string;
|
|
146
87
|
creatorId: string;
|
|
147
88
|
updatorId: string;
|
|
148
|
-
} | null, UserProfileData | {
|
|
149
89
|
id: string;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
avatar: string;
|
|
153
|
-
avatarUrl: string;
|
|
90
|
+
createAt: string;
|
|
91
|
+
updateAt: string;
|
|
154
92
|
nickname: string;
|
|
155
93
|
description: string;
|
|
156
94
|
email: string;
|
|
157
95
|
phone: string;
|
|
96
|
+
avatar: string;
|
|
97
|
+
avatarUrl: string;
|
|
98
|
+
status: import('../../types/user').UserStatusType;
|
|
99
|
+
} | null, UserProfileType | {
|
|
100
|
+
appId: string;
|
|
101
|
+
roleId: string | null;
|
|
158
102
|
verified: {
|
|
159
103
|
email: {
|
|
160
104
|
isVerified: boolean;
|
|
@@ -205,15 +149,46 @@ export declare function useAuthkitUsersProfile(): {
|
|
|
205
149
|
wechat: any;
|
|
206
150
|
google: any;
|
|
207
151
|
microsoft: any;
|
|
208
|
-
status: string;
|
|
209
152
|
organizations: string[];
|
|
153
|
+
referrerId: string;
|
|
154
|
+
role: {
|
|
155
|
+
id: string;
|
|
156
|
+
name: string;
|
|
157
|
+
roleKey: string;
|
|
158
|
+
description: string;
|
|
159
|
+
} | null;
|
|
160
|
+
permissions: {
|
|
161
|
+
id: string;
|
|
162
|
+
name: string;
|
|
163
|
+
permissionKey: string;
|
|
164
|
+
description: string;
|
|
165
|
+
}[];
|
|
166
|
+
creatorInfo?: {
|
|
167
|
+
id: string;
|
|
168
|
+
nickname: string;
|
|
169
|
+
email: string;
|
|
170
|
+
avatar?: string | undefined;
|
|
171
|
+
} | undefined;
|
|
172
|
+
updatorInfo?: {
|
|
173
|
+
id: string;
|
|
174
|
+
nickname: string;
|
|
175
|
+
email: string;
|
|
176
|
+
avatar?: string | undefined;
|
|
177
|
+
} | undefined;
|
|
210
178
|
creator: string | null;
|
|
211
179
|
updator: string | null;
|
|
212
|
-
createAt: string;
|
|
213
|
-
updateAt: string;
|
|
214
|
-
referrerId: string;
|
|
215
180
|
creatorId: string;
|
|
216
181
|
updatorId: string;
|
|
182
|
+
id: string;
|
|
183
|
+
createAt: string;
|
|
184
|
+
updateAt: string;
|
|
185
|
+
nickname: string;
|
|
186
|
+
description: string;
|
|
187
|
+
email: string;
|
|
188
|
+
phone: string;
|
|
189
|
+
avatar: string;
|
|
190
|
+
avatarUrl: string;
|
|
191
|
+
status: import('../../types/user').UserStatusType;
|
|
217
192
|
} | null>;
|
|
218
193
|
loading: import('vue').Ref<boolean, boolean>;
|
|
219
194
|
isLoggedIn: import('vue').ComputedRef<boolean>;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
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 A, _ as P, O as c, f as L, o as f, P as p, j as h, R as m, S as k, i as l, m as b, d as C, e as M, g as S, h as x } from "./AuthkitAppSetting-CX3_9Jcg.js";
|
|
2
2
|
import { u as U, a as I } from "./useAuthkitUsersProfile-DNOB_Kuk.js";
|
|
3
|
-
import { A as B, a as N } from "./AuthkitAuthorize-
|
|
3
|
+
import { A as B, a as N } from "./AuthkitAuthorize-CA0jmnjq.js";
|
|
4
4
|
import { U as w, u as D } from "./useAuthkitAuthModal-hxivJw_U.js";
|
|
5
5
|
import { u as v } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
|
|
6
6
|
import { I as G, A as H, C as O, _, a as V, D as j, E as z, b as W, M as q, c as J, N as K, f as Q, d as X, e as Y } from "./MessageHandle-BelPivb3.js";
|