@huyooo/ui 0.4.66 → 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.
@@ -11,7 +11,7 @@ import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  /* empty css */
12
12
  /* empty css */
13
13
  /* empty css */
14
- import { u as Se } from "./useUploadCos-D34wTxEi.js";
14
+ import { u as Se } from "./useUploadCos-B5P_PDcy.js";
15
15
  import { g as F } from "./globalConfig-DZIhLe1R.js";
16
16
  import { _ as Ae, g as Ie, i as Pe } from "./plugin-vue_export-helper-LjDO2Zua.js";
17
17
  import { api as H } from "@huyooo/api";
@@ -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-e610698b"]]);
247
+ }), te = /* @__PURE__ */ S(F, [["__scopeId", "data-v-cc821ddc"]]);
248
248
  export {
249
249
  ee as A,
250
250
  te as a
@@ -7,9 +7,9 @@ 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-D34wTxEi.js";
10
+ import { u as Z } from "./useUploadCos-B5P_PDcy.js";
11
11
  import { g as A } from "./globalConfig-DZIhLe1R.js";
12
- import "./FeedbackModal-CqqZyeKu.js";
12
+ import "./FeedbackModal-BDPw2tu7.js";
13
13
  import { Icon as Y } from "@iconify/vue";
14
14
  const H = f({
15
15
  name: "IconDown",
@@ -13,7 +13,7 @@ import { api as N } from "@huyooo/api";
13
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-D34wTxEi.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";
@@ -5,7 +5,7 @@
5
5
  /* empty css */
6
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
7
  import { Upload as I } from "@arco-design/web-vue";
8
- import { u as _ } from "./useUploadCos-D34wTxEi.js";
8
+ import { u as _ } from "./useUploadCos-B5P_PDcy.js";
9
9
  import { g as l } from "./globalConfig-DZIhLe1R.js";
10
10
  const O = /* @__PURE__ */ q({
11
11
  __name: "Upload",
@@ -8,8 +8,8 @@ import { S as Ie } from "./PaySubscriptions-BRWvLeed.js";
8
8
  import { R as $e } from "./ReferrerReferees-BVj9o5kG.js";
9
9
  import { a as X, u as we } from "./useAuthkitUsersProfile-DNOB_Kuk.js";
10
10
  import { u as he } from "./useAuthkitAuthModal-hxivJw_U.js";
11
- import { a as xe, b as Be } from "./AuthkitAppSetting-hzmQcqn0.js";
12
- import { d as Me } from "./FeedbackModal-CqqZyeKu.js";
11
+ import { a as xe, b as Be } from "./AuthkitAppSetting-CX3_9Jcg.js";
12
+ import { d as Me } from "./FeedbackModal-BDPw2tu7.js";
13
13
  import { M as Ue } from "./MessageHandle-BelPivb3.js";
14
14
  /* empty css */
15
15
  /* empty css */
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
- 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-hzmQcqn0.js";
2
- import { A as y, a as E } from "./AuthkitAuthorize-B3WS5eGX.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-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";
package/dist/common.js CHANGED
@@ -3,14 +3,14 @@ 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
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-Bgfdtd01.js";
6
+ import { S as U, b as g, c as I, a as S, U as v } from "./UserPanel-CaaTu1mu.js";
7
7
  import { S as B } from "./PaySubscriptions-BRWvLeed.js";
8
8
  import { R as M } from "./ReferrerReferees-BVj9o5kG.js";
9
- import { _ as H } from "./Upload.vue_vue_type_script_setup_true_lang-DTijAu7h.js";
9
+ import { _ as H } from "./Upload.vue_vue_type_script_setup_true_lang-CDyUt05d.js";
10
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-D34wTxEi.js";
13
+ import { u as j } from "./useUploadCos-B5P_PDcy.js";
14
14
  export {
15
15
  s as Collapse,
16
16
  e as CollapseItem,
@@ -1,6 +1,6 @@
1
1
  import { PropType } from 'vue';
2
2
  import { FormSizeType } from '../../../types/auth';
3
- import { UsersResponseType } from '../../../types/users';
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<UsersResponseType>;
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<UsersResponseType>;
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: UsersResponseType;
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
- export interface UserProfileData {
2
- id: string;
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
- appId: string;
151
- roleId: string | null;
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>;
@@ -9,6 +9,6 @@ interface UploadType {
9
9
  region?: string;
10
10
  }
11
11
  export declare function useUploadCos(): {
12
- uploadFile: ({ file, onProgress, onFileFinish, onError, bucketId, bucket, region, }: UploadType) => void;
12
+ uploadFile: ({ file, onProgress, onFileFinish, onError, bucketId, bucket, region, }: UploadType) => Promise<void>;
13
13
  };
14
14
  export {};
@@ -5,7 +5,7 @@ import { u as i } from "./useMessageNotifications-DOH1MS61.js";
5
5
  import { g as m } from "./globalConfig-DZIhLe1R.js";
6
6
  import { a as d, u as l } from "./useActiveDoc-BWHkOJhJ.js";
7
7
  import { u as U } from "./useTableHandle-DKUIdSSh.js";
8
- import { u as k } from "./useUploadCos-D34wTxEi.js";
8
+ import { u as k } from "./useUploadCos-B5P_PDcy.js";
9
9
  export {
10
10
  u as UseAuthkitAppsAuthPageInfo,
11
11
  m as globalConfig,
package/dist/feedback.js CHANGED
@@ -1,6 +1,6 @@
1
- import { _ as b, a as s, F as d, b as F, c, d as o, R as t } from "./FeedbackModal-CqqZyeKu.js";
1
+ import { _ as b, a as s, F as d, b as F, c, d as o, R as t } from "./FeedbackModal-BDPw2tu7.js";
2
2
  import { C as r } from "./Clipboard-Bful1lNJ.js";
3
- import { F as m, a as n, c as f, b as i, d as p } from "./FeedbackItem-Du2qqirA.js";
3
+ import { F as m, a as n, c as f, b as i, d as p } from "./FeedbackItem-C5WqFEqH.js";
4
4
  export {
5
5
  r as Clipboard,
6
6
  b as FeedbackBubbleEnd,
package/dist/index.js CHANGED
@@ -1,27 +1,27 @@
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-hzmQcqn0.js";
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-B3WS5eGX.js";
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";
7
7
  import { M as $, a as aa } from "./MessageMenu-_RZJ9Mbi.js";
8
8
  import { u as ea } from "./useMessageNotifications-DOH1MS61.js";
9
- import { _ as ia, a as na, F as oa, b as ga, c as ra, d as da, R as ua } from "./FeedbackModal-CqqZyeKu.js";
9
+ import { _ as ia, a as na, F as oa, b as ga, c as ra, d as da, R as ua } from "./FeedbackModal-BDPw2tu7.js";
10
10
  import { C as Pa } from "./Clipboard-Bful1lNJ.js";
11
- import { F as La, a as fa, c as pa, b as ha, d as ma } from "./FeedbackItem-Du2qqirA.js";
11
+ import { F as La, a as fa, c as pa, b as ha, d as ma } from "./FeedbackItem-C5WqFEqH.js";
12
12
  import { L as la, a as ba, b as Ca, c as Ma, d as Sa, B as xa, C as Fa, e as Ua, f as Ia, g as Ta, h as Ba, D as Na, i as Ea, j as wa, k as Da, l as Ra, m as va, n as ya, o as Ga, p as Ha, q as Oa, r as _a, s as Va, t as ja, u as za, v as Wa, w as qa, x as Ja, y as Ka, z as Qa, A as Xa, E as Ya, F as Za, G as $a, S as as, T as ss, H as es, I as ts, J as is, K as ns, M as os, N as gs } from "./LandingPageToc-B1xCvhWl.js";
13
13
  import { C as ds, a as us } from "./CollapseItem-Cw1vcdLu.js";
14
14
  import { C as Ps, G as cs, S as Ls, W as fs } from "./WidthContainer-D795bWdT.js";
15
15
  import { C as hs, E as ms } from "./CustomTable-JflAYS8i.js";
16
16
  import { M as ls, a as bs } from "./Menu-Cxo8Rpu3.js";
17
- import { S as Ms, b as Ss, c as xs, a as Fs, U as Us, S as Is } from "./UserPanel-Bgfdtd01.js";
17
+ import { S as Ms, b as Ss, c as xs, a as Fs, U as Us, S as Is } from "./UserPanel-CaaTu1mu.js";
18
18
  import { S as Bs, S as Ns } from "./PaySubscriptions-BRWvLeed.js";
19
19
  import { R as ws, R as Ds } from "./ReferrerReferees-BVj9o5kG.js";
20
- import { _ as vs } from "./Upload.vue_vue_type_script_setup_true_lang-DTijAu7h.js";
20
+ import { _ as vs } from "./Upload.vue_vue_type_script_setup_true_lang-CDyUt05d.js";
21
21
  import { g as Gs, s as Hs } from "./globalConfig-DZIhLe1R.js";
22
22
  import { a as _s, u as Vs } from "./useActiveDoc-BWHkOJhJ.js";
23
23
  import { u as zs } from "./useTableHandle-DKUIdSSh.js";
24
- import { u as qs } from "./useUploadCos-D34wTxEi.js";
24
+ import { u as qs } from "./useUploadCos-B5P_PDcy.js";
25
25
  import { U as Ks } from "./UserAccountMenu-BD8F9vEK.js";
26
26
  export {
27
27
  e as Auth,