@huyooo/ui 0.5.56 → 0.5.59

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 (43) hide show
  1. package/dist/{AuthkitAuthModal-Bt_oatde.js → AuthkitAuthModal-BSvtvlyj.js} +718 -661
  2. package/dist/AuthkitOAuthCallback-DQ1RAKyR.js +330 -0
  3. package/dist/{Clipboard-CXQgZeZq.js → Clipboard-BAn3vQlX.js} +1 -1
  4. package/dist/{Contact-ZkK_OxmG.js → Contact-CDelrtDR.js} +2 -2
  5. package/dist/{FeedbackItem-BZ3zskgs.js → FeedbackItem-B9lo9J0G.js} +3 -3
  6. package/dist/{FeedbackModal-CLRw0hmp.js → FeedbackModal-DWJmFtvY.js} +3 -3
  7. package/dist/{MessageHandle-cK3Z3tfe.js → MessageHandle-BlsLRmdj.js} +3 -3
  8. package/dist/{PaySubscriptions-DlV3SHOV.js → PaySubscriptions-Vj0KnZGv.js} +3 -3
  9. package/dist/{ReferrerReferees-DBOVVD_R.js → ReferrerReferees-D8hYkkAy.js} +4 -4
  10. package/dist/{Upload.vue_vue_type_script_setup_true_lang-bvoyktaa.js → Upload.vue_vue_type_script_setup_true_lang-BYlxlhfb.js} +2 -2
  11. package/dist/{UserAccountMenu-ByEEFdDV.js → UserAccountMenu-BWx4hX66.js} +7 -7
  12. package/dist/{WidthContainer-C5bq-fmp.js → WidthContainer-DiEkVFtH.js} +6 -6
  13. package/dist/api/Authkit/OAuth.d.ts +12 -3
  14. package/dist/{auth-CDARHcht.js → auth-bwwc2iT8.js} +60 -59
  15. package/dist/authkit.d.ts +2 -0
  16. package/dist/authkit.js +23 -21
  17. package/dist/common/globalConfig.d.ts +4 -0
  18. package/dist/common.js +1 -1
  19. package/dist/components/Authkit/Auth/AuthkitOAuthCallback.vue.d.ts +22 -0
  20. package/dist/components/Authkit/Auth/AuthkitOAuthList.vue.d.ts +1 -1
  21. package/dist/components/InfiniteLoading.vue.d.ts +1 -1
  22. package/dist/composables/Authkit/useAuthkitAuth.d.ts +2 -0
  23. package/dist/composables/Authkit/useAuthkitOAuth.d.ts +14 -3
  24. package/dist/composables.js +9 -9
  25. package/dist/feedback.js +3 -3
  26. package/dist/index.js +179 -177
  27. package/dist/message.js +2 -2
  28. package/dist/pay.js +1 -1
  29. package/dist/privateCom.js +1 -1
  30. package/dist/referrer.js +1 -1
  31. package/dist/style.css +1 -1
  32. package/dist/upload.js +2 -2
  33. package/dist/{useAuthkitAppsAuthPageInfo-h9CL-MmH.js → useAuthkitAppsAuthPageInfo-CzZmhPMm.js} +1 -1
  34. package/dist/{useAuthkitCreateAndUpdate-Bsl_uyGQ.js → useAuthkitCreateAndUpdate-Co5wMbv7.js} +1 -1
  35. package/dist/{useAuthkitUsersProfile-B_uMdnat.js → useAuthkitUsersProfile-hZ9L3rYe.js} +93 -71
  36. package/dist/{useDownloads-05u8toS3.js → useDownloads-C0V_Sjr9.js} +1 -1
  37. package/dist/{useMessageNotifications-CAiVf4PX.js → useMessageNotifications-BT84SOgI.js} +1 -1
  38. package/dist/{useSEO-D5sci2ek.js → useSEO-DT8VkGVt.js} +2 -2
  39. package/dist/{useTableHandle-aJOWPWFL.js → useTableHandle-DaKaAKAH.js} +1 -1
  40. package/dist/{useUploadCos-DKh-eczm.js → useUploadCos-_xwV40NS.js} +1 -1
  41. package/dist/user.js +1 -1
  42. package/package.json +1 -1
  43. package/dist/AuthkitAuthorize-Cu6_4HoY.js +0 -248
@@ -1,12 +1,12 @@
1
1
  /* empty css */
2
- import { Message as u } from "@arco-design/web-vue";
2
+ import { Message as l } from "@arco-design/web-vue";
3
3
  import k from "axios";
4
4
  import { ref as m } from "vue";
5
- function S(e, r = 3) {
6
- const t = e.indexOf("@");
7
- if (t > 1) {
8
- const o = e.slice(0, r), i = e.slice(t);
9
- return o + "***" + i;
5
+ function A(e, r = 3) {
6
+ const o = e.indexOf("@");
7
+ if (o > 1) {
8
+ const a = e.slice(0, r), u = e.slice(o);
9
+ return a + "***" + u;
10
10
  }
11
11
  return e;
12
12
  }
@@ -17,38 +17,39 @@ function p() {
17
17
  console.warn("Failed to clear localStorage:", e);
18
18
  }
19
19
  }
20
- function g() {
20
+ function b() {
21
21
  try {
22
22
  return localStorage.getItem("refreshToken");
23
23
  } catch (e) {
24
24
  return console.warn("Failed to get refreshToken from localStorage:", e), null;
25
25
  }
26
26
  }
27
- function b(e) {
27
+ function g(e) {
28
28
  try {
29
29
  localStorage.setItem("jwtToken", e);
30
30
  } catch (r) {
31
31
  console.warn("Failed to update jwtToken in localStorage:", r);
32
32
  }
33
33
  }
34
- let s = {
34
+ let t = {
35
35
  appId: "",
36
36
  prefixUrl: "",
37
37
  authPrefixUrl: "",
38
+ oauthCallbackUrl: "",
38
39
  avatarBucketId: "68350c206888f565dc7d09e9",
39
40
  feedbackBucketId: "6826e4db6888f565dc775dce",
40
41
  bucket: "ones-1358549778",
41
42
  region: "ap-beijing",
42
43
  web3formsAccessKey: "72604aac-d55e-4df0-9bcf-31b2206b3753"
43
44
  }, T = {};
44
- function U(e) {
45
+ function S(e) {
45
46
  Object.assign(T, e);
46
47
  }
47
48
  function B(e) {
48
- s.appId = e.appId, s.prefixUrl = e.prefixUrl, s.authPrefixUrl = e.authPrefixUrl, e.avatarBucketId !== void 0 && (s.avatarBucketId = e.avatarBucketId), e.feedbackBucketId !== void 0 && (s.feedbackBucketId = e.feedbackBucketId), e.bucket !== void 0 && (s.bucket = e.bucket), e.region !== void 0 && (s.region = e.region), e.web3formsAccessKey !== void 0 && (s.web3formsAccessKey = e.web3formsAccessKey);
49
+ t.appId = e.appId, t.prefixUrl = e.prefixUrl, t.authPrefixUrl = e.authPrefixUrl, e.oauthCallbackUrl !== void 0 ? t.oauthCallbackUrl = e.oauthCallbackUrl : typeof window < "u" && (t.oauthCallbackUrl = `${window.location.origin}/auth/callback`), e.avatarBucketId !== void 0 && (t.avatarBucketId = e.avatarBucketId), e.feedbackBucketId !== void 0 && (t.feedbackBucketId = e.feedbackBucketId), e.bucket !== void 0 && (t.bucket = e.bucket), e.region !== void 0 && (t.region = e.region), e.web3formsAccessKey !== void 0 && (t.web3formsAccessKey = e.web3formsAccessKey);
49
50
  }
50
51
  const I = m(!1);
51
- function P() {
52
+ function w() {
52
53
  return {
53
54
  show: I
54
55
  };
@@ -63,106 +64,106 @@ const n = k.create({
63
64
  let f = !1, d = [];
64
65
  function h(e, r = null) {
65
66
  d.forEach(({
66
- resolve: t,
67
- reject: o
67
+ resolve: o,
68
+ reject: a
68
69
  }) => {
69
- e ? o(e) : t(r);
70
+ e ? a(e) : o(r);
70
71
  }), d = [];
71
72
  }
72
- async function w() {
73
+ async function P() {
73
74
  var r;
74
- const e = g();
75
+ const e = b();
75
76
  if (!e)
76
77
  throw new Error("No refresh token available");
77
78
  try {
78
- const t = await j(e), {
79
- data: o
80
- } = t;
81
- if (o.success && ((r = o.data) != null && r.jwtToken))
82
- return b(o.data.jwtToken), o.data.refreshToken && localStorage.setItem("refreshToken", o.data.refreshToken), o.data.jwtToken;
83
- throw new Error(o.message || "Token refresh failed");
84
- } catch (t) {
85
- throw console.error("Token refresh failed:", t), p(), t;
79
+ const o = await U(e), {
80
+ data: a
81
+ } = o;
82
+ if (a.success && ((r = a.data) != null && r.jwtToken))
83
+ return g(a.data.jwtToken), a.data.refreshToken && localStorage.setItem("refreshToken", a.data.refreshToken), a.data.jwtToken;
84
+ throw new Error(a.message || "Token refresh failed");
85
+ } catch (o) {
86
+ throw console.error("Token refresh failed:", o), p(), o;
86
87
  }
87
88
  }
88
89
  n.interceptors.request.use((e) => {
89
90
  console.log(e, "configconfig");
90
91
  const r = localStorage.getItem("jwtToken");
91
- return r && e.headers && (e.headers.authorization = `Bearer ${r}`), e.headers && !("app-id" in e.headers) && (e.headers["app-id"] = s.appId), e;
92
+ return r && e.headers && (e.headers.authorization = `Bearer ${r}`), e.headers && !("app-id" in e.headers) && (e.headers["app-id"] = t.appId), e;
92
93
  }, (e) => Promise.reject(e));
93
94
  n.interceptors.response.use(async (e) => {
94
95
  const r = (e == null ? void 0 : e.data) || {}, {
95
- message: t,
96
- success: o,
97
- code: i
96
+ message: o,
97
+ success: a,
98
+ code: u
98
99
  } = r;
99
- if (console.log(r, "dsdsds"), o)
100
+ if (console.log(r, "dsdsds"), a)
100
101
  return r;
101
- if (i === 40101) {
102
+ if (u === 40101) {
102
103
  console.log(e, "response");
103
104
  const c = e.config;
104
105
  if (f)
105
- return new Promise((a, l) => {
106
+ return new Promise((s, i) => {
106
107
  d.push({
107
- resolve: a,
108
- reject: l
108
+ resolve: s,
109
+ reject: i
109
110
  });
110
- }).then((a) => (c.headers && (c.headers.authorization = `Bearer ${a}`), n(c))).catch((a) => Promise.reject(a));
111
+ }).then((s) => (c.headers && (c.headers.authorization = `Bearer ${s}`), n(c))).catch((s) => Promise.reject(s));
111
112
  c._retry = !0, f = !0;
112
113
  try {
113
- const a = await w();
114
- return h(null, a), c.headers && (c.headers.authorization = `Bearer ${a}`), n(c);
115
- } catch (a) {
116
- h(a, null), p();
114
+ const s = await P();
115
+ return h(null, s), c.headers && (c.headers.authorization = `Bearer ${s}`), n(c);
116
+ } catch (s) {
117
+ h(s, null), p();
117
118
  const {
118
- show: l
119
- } = P();
120
- return l.value = !0, Promise.reject(a);
119
+ show: i
120
+ } = w();
121
+ return i.value = !0, Promise.reject(s);
121
122
  } finally {
122
123
  f = !1;
123
124
  }
124
125
  } else
125
- return u.error(t || "请求失败"), Promise.reject(r);
126
+ return l.error(o || "请求失败"), Promise.reject(r);
126
127
  }, (e) => {
127
128
  if (e.response) {
128
129
  const {
129
130
  data: r
130
131
  } = e.response, {
131
- message: t
132
+ message: o
132
133
  } = r || {};
133
- console.log(e.response, "error.response"), console.error("Error Response:", e.response), u.error(t || "服务错误");
134
- } else e.request ? (console.error("Error Request:", e.request), u.error("网络错误,请检查网络连接")) : (console.error("Error Message:", e.message), u.error(e.message || "服务错误"));
134
+ console.log(e.response, "error.response"), console.error("Error Response:", e.response), l.error(o || "服务错误");
135
+ } else e.request ? (console.error("Error Request:", e.request), l.error("网络错误,请检查网络连接")) : (console.error("Error Message:", e.message), l.error(e.message || "服务错误"));
135
136
  return Promise.reject(e);
136
137
  });
137
138
  function E(e) {
138
139
  return n({
139
- url: `${s.authPrefixUrl}/restfulApi/auth/signIn`,
140
+ url: `${t.authPrefixUrl}/restfulApi/auth/signIn`,
140
141
  method: "post",
141
142
  data: e
142
143
  });
143
144
  }
144
- function R(e) {
145
+ function $(e) {
145
146
  return n({
146
- url: `${s.authPrefixUrl}/restfulApi/auth/resetPassword`,
147
+ url: `${t.authPrefixUrl}/restfulApi/auth/resetPassword`,
147
148
  method: "post",
148
149
  data: e
149
150
  });
150
151
  }
151
- function $(e) {
152
+ function R(e) {
152
153
  return n({
153
- url: `${s.authPrefixUrl}/restfulApi/auth/signUp`,
154
+ url: `${t.authPrefixUrl}/restfulApi/auth/signUp`,
154
155
  method: "post",
155
156
  data: e
156
157
  });
157
158
  }
158
159
  function q(e) {
159
160
  return n({
160
- url: `${s.authPrefixUrl}/restfulApi/oauth2/authorize`,
161
+ url: `${t.authPrefixUrl}/restfulApi/oauth2/authorize`,
161
162
  method: "post",
162
163
  data: e
163
164
  });
164
165
  }
165
- function j(e) {
166
+ function U(e) {
166
167
  return n({
167
168
  url: "/restfulApi/auth/refresh",
168
169
  method: "post",
@@ -173,14 +174,14 @@ function j(e) {
173
174
  }
174
175
  export {
175
176
  T as a,
176
- U as b,
177
+ S as b,
177
178
  n as c,
178
- R as d,
179
- $ as e,
179
+ $ as d,
180
+ R as e,
180
181
  E as f,
181
- s as g,
182
- S as h,
182
+ t as g,
183
+ A as h,
183
184
  q as o,
184
185
  B as s,
185
- P as u
186
+ w as u
186
187
  };
package/dist/authkit.d.ts CHANGED
@@ -9,6 +9,7 @@ export { default as AuthkitSignUp } from './components/Authkit/Auth/AuthkitSignU
9
9
  export { default as AuthkitAuthorize } from './components/Authkit/Auth/AuthkitAuthorize.vue';
10
10
  export { default as AuthkitOAuthItem } from './components/Authkit/Auth/AuthkitOAuthItem.vue';
11
11
  export { default as AuthkitOAuthList } from './components/Authkit/Auth/AuthkitOAuthList.vue';
12
+ export { default as AuthkitOAuthCallback } from './components/Authkit/Auth/AuthkitOAuthCallback.vue';
12
13
  export { default as AuthkitPasswordUpdateAndVerify } from './components/Authkit/Auth/AuthkitPasswordUpdateAndVerify.vue';
13
14
  export { default as AuthkitResetPassword } from './components/Authkit/Auth/AuthkitResetPassword.vue';
14
15
  export { default as AuthkitPasswordAuth } from './components/Authkit/Auth/AuthkitPasswordAuth.vue';
@@ -27,5 +28,6 @@ export { useAuthkitAuth } from './composables/Authkit/useAuthkitAuth';
27
28
  export { useAuthkitAuthModal } from './composables/Authkit/useAuthkitAuthModal';
28
29
  export { useAuthkitUsersProfile } from './composables/Authkit/useAuthkitUsersProfile';
29
30
  export { useAuthkitCreateAndUpdate } from './composables/Authkit/useAuthkitCreateAndUpdate';
31
+ export { useAuthkitOAuth } from './composables/Authkit/useAuthkitOAuth';
30
32
  export type * from './types/auth';
31
33
  export type { AppsData, PublicRoute } from './types/app';
package/dist/authkit.js CHANGED
@@ -1,37 +1,39 @@
1
- import { A as a, a as s, c as u, b as A, n as h, E as e, k as r, l as o, _ as k, 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 w, e as U, g as c, h as x } from "./AuthkitAuthModal-Bt_oatde.js";
2
- import { A as y, a as E } from "./AuthkitAuthorize-Cu6_4HoY.js";
3
- import { u as C } from "./useAuthkitAppsAuthPageInfo-h9CL-MmH.js";
4
- import { u as V, a as b } from "./useAuthkitUsersProfile-B_uMdnat.js";
5
- import { u as B } from "./auth-CDARHcht.js";
6
- import { u as j } from "./useAuthkitCreateAndUpdate-Bsl_uyGQ.js";
1
+ import { A as a, a as s, c as u, b as A, n as h, E as e, k, l as r, _ as o, O as n, f as d, o as p, P as f, j as m, R as P, S as l, i as S, m as g, d as w, e as c, g as U, h as x, u as O } from "./AuthkitAuthModal-BSvtvlyj.js";
2
+ import { A as b, a as y, b as C } from "./AuthkitOAuthCallback-DQ1RAKyR.js";
3
+ import { u as R } from "./useAuthkitAppsAuthPageInfo-CzZmhPMm.js";
4
+ import { u as v, a as B } from "./useAuthkitUsersProfile-hZ9L3rYe.js";
5
+ import { u as j } from "./auth-bwwc2iT8.js";
6
+ import { u as G } from "./useAuthkitCreateAndUpdate-Co5wMbv7.js";
7
7
  export {
8
8
  a as AuthkitAppSetting,
9
9
  s as AuthkitAuth,
10
- y as AuthkitAuthContainer,
10
+ b as AuthkitAuthContainer,
11
11
  u as AuthkitAuthModal,
12
12
  A as AuthkitAuthTitle,
13
- E as AuthkitAuthorize,
13
+ y as AuthkitAuthorize,
14
14
  h as AuthkitEmailBinding,
15
15
  e as AuthkitEmailUpdate,
16
- r as AuthkitEmailVerify,
17
- o as AuthkitGithubBinding,
18
- k as AuthkitOAuthItem,
16
+ k as AuthkitEmailVerify,
17
+ r as AuthkitGithubBinding,
18
+ C as AuthkitOAuthCallback,
19
+ o as AuthkitOAuthItem,
19
20
  n as AuthkitOAuthList,
20
21
  d as AuthkitPasswordAuth,
21
22
  p as AuthkitPasswordUpdate,
22
23
  f as AuthkitPasswordUpdateAndVerify,
23
24
  m as AuthkitPersonalInformation,
24
25
  P as AuthkitResetPassword,
25
- S as AuthkitSendVerifyCode,
26
- g as AuthkitServiceAgreementAndPrivacyProtection,
27
- l as AuthkitSetPassword,
26
+ l as AuthkitSendVerifyCode,
27
+ S as AuthkitServiceAgreementAndPrivacyProtection,
28
+ g as AuthkitSetPassword,
28
29
  w as AuthkitSignIn,
29
- U as AuthkitSignUp,
30
- c as AuthkitSwitchSignIn,
30
+ c as AuthkitSignUp,
31
+ U as AuthkitSwitchSignIn,
31
32
  x as AuthkitSwitchSignUpOrResetPassword,
32
- C as useAuthkitAppsAuthPageInfo,
33
- V as useAuthkitAuth,
34
- B as useAuthkitAuthModal,
35
- j as useAuthkitCreateAndUpdate,
36
- b as useAuthkitUsersProfile
33
+ R as useAuthkitAppsAuthPageInfo,
34
+ v as useAuthkitAuth,
35
+ j as useAuthkitAuthModal,
36
+ G as useAuthkitCreateAndUpdate,
37
+ O as useAuthkitOAuth,
38
+ B as useAuthkitUsersProfile
37
39
  };
@@ -13,6 +13,8 @@ export interface HuyoooUIConfig {
13
13
  prefixUrl: string;
14
14
  /** 认证 API前缀 */
15
15
  authPrefixUrl: string;
16
+ /** OAuth 回调地址(可选,默认当前域名 + /auth/callback) */
17
+ oauthCallbackUrl: string;
16
18
  avatarBucketId: string;
17
19
  feedbackBucketId: string;
18
20
  /** 默认存储桶名称 */
@@ -34,6 +36,8 @@ export declare function setGlobalConfig(newConfig: {
34
36
  prefixUrl: string;
35
37
  /** 认证 API前缀 */
36
38
  authPrefixUrl: string;
39
+ /** OAuth 回调地址(可选,默认当前域名 + /auth/callback) */
40
+ oauthCallbackUrl?: string;
37
41
  avatarBucketId?: string;
38
42
  feedbackBucketId?: string;
39
43
  /** 默认存储桶名称 */
package/dist/common.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as s, a as o, C as t, D as r, G as p, H as n, b as l, L as u, S as C, W as d } from "./WidthContainer-C5bq-fmp.js";
1
+ import { A as s, a as o, C as t, D as r, G as p, H as n, b as l, L as u, S as C, W as d } from "./WidthContainer-DiEkVFtH.js";
2
2
  import { C as i, a as f } from "./CollapseItem-Cw1vcdLu.js";
3
3
  import { C as x, E as H } from "./CustomTable-B8i1SbFB.js";
4
4
  import { M, a as g } from "./Menu-BjWB9hre.js";
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ /** 登录成功后的默认跳转路径 */
3
+ defaultRedirect?: string;
4
+ /** 加载时显示的文本 */
5
+ loadingText?: string;
6
+ };
7
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
8
+ success: (data: {
9
+ token: string;
10
+ userId: string;
11
+ appId: string;
12
+ }) => any;
13
+ error: (message: string) => any;
14
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ onSuccess?: ((data: {
16
+ token: string;
17
+ userId: string;
18
+ appId: string;
19
+ }) => any) | undefined;
20
+ onError?: ((message: string) => any) | undefined;
21
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
22
+ export default _default;
@@ -19,7 +19,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
19
19
  default: () => string;
20
20
  };
21
21
  }>> & Readonly<{}>, {
22
- size: FormSizeType;
23
22
  appId: string;
23
+ size: FormSizeType;
24
24
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
25
25
  export default _default;
@@ -54,8 +54,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
54
54
  onInfinite?: ((...args: any[]) => any) | undefined;
55
55
  }>, {
56
56
  loading: boolean;
57
- finished: boolean;
58
57
  loadingText: string;
58
+ finished: boolean;
59
59
  finishedText: string;
60
60
  showFinishedText: boolean;
61
61
  threshold: number;
@@ -1,3 +1,4 @@
1
+ declare function handleOAuthCallback(): boolean;
1
2
  declare function initializeAuth(): boolean;
2
3
  declare function getToken(): string | null;
3
4
  declare function setToken(token: string): void;
@@ -38,5 +39,6 @@ export declare function useAuthkitAuth(): {
38
39
  setToken: typeof setToken;
39
40
  initializeAuth: typeof initializeAuth;
40
41
  clearAuth: typeof clearAuth;
42
+ handleOAuthCallback: typeof handleOAuthCallback;
41
43
  };
42
44
  export {};
@@ -1,9 +1,20 @@
1
- declare function githubAuth(): void;
2
- declare function googleAuth(): void;
3
- declare function microsoftAuth(): void;
1
+ /** 获取当前 OAuth 回调地址 */
2
+ declare function getOAuthCallbackUrl(): string;
3
+ /** 发起 OAuth 登录(通用方法) */
4
+ declare function startOAuth(provider: 'github' | 'google' | 'microsoft', options?: {
5
+ referrerId?: string;
6
+ }): Promise<void>;
7
+ /** GitHub OAuth 登录 */
8
+ declare function githubAuth(referrerId?: string): void;
9
+ /** Google OAuth 登录 */
10
+ declare function googleAuth(referrerId?: string): void;
11
+ /** Microsoft OAuth 登录 */
12
+ declare function microsoftAuth(referrerId?: string): void;
4
13
  export declare function useAuthkitOAuth(): {
5
14
  githubAuth: typeof githubAuth;
6
15
  googleAuth: typeof googleAuth;
7
16
  microsoftAuth: typeof microsoftAuth;
17
+ startOAuth: typeof startOAuth;
18
+ getOAuthCallbackUrl: typeof getOAuthCallbackUrl;
8
19
  };
9
20
  export {};
@@ -1,12 +1,12 @@
1
- import { u as a, a as o } from "./useAuthkitUsersProfile-B_uMdnat.js";
2
- import { g as u, a as r, s as i, b as n, u as f } from "./auth-CDARHcht.js";
3
- import { u as p } from "./useAuthkitAppsAuthPageInfo-h9CL-MmH.js";
4
- import { u as h } from "./useAuthkitCreateAndUpdate-Bsl_uyGQ.js";
5
- import { u as d } from "./useMessageNotifications-CAiVf4PX.js";
6
- import { u as x, a as C } from "./useDownloads-05u8toS3.js";
7
- import { u as P } from "./useTableHandle-aJOWPWFL.js";
8
- import { b as k, f as M, g as O, u as w, a as E, c as S, e as U, d as v, w as D } from "./useSEO-D5sci2ek.js";
9
- import { u as R } from "./useUploadCos-DKh-eczm.js";
1
+ import { u as a, a as o } from "./useAuthkitUsersProfile-hZ9L3rYe.js";
2
+ import { g as u, a as r, s as i, b as n, u as f } from "./auth-bwwc2iT8.js";
3
+ import { u as p } from "./useAuthkitAppsAuthPageInfo-CzZmhPMm.js";
4
+ import { u as h } from "./useAuthkitCreateAndUpdate-Co5wMbv7.js";
5
+ import { u as d } from "./useMessageNotifications-BT84SOgI.js";
6
+ import { u as x, a as C } from "./useDownloads-C0V_Sjr9.js";
7
+ import { u as P } from "./useTableHandle-DaKaAKAH.js";
8
+ import { b as k, f as M, g as O, u as w, a as E, c as S, e as U, d as v, w as D } from "./useSEO-DT8VkGVt.js";
9
+ import { u as R } from "./useUploadCos-_xwV40NS.js";
10
10
  export {
11
11
  k as findActiveMenuPath,
12
12
  M as findMenuPath,
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-CLRw0hmp.js";
2
- import { C as r } from "./Clipboard-CXQgZeZq.js";
3
- import { F as m, a as n, c as f, b as i, d as p } from "./FeedbackItem-BZ3zskgs.js";
1
+ import { _ as b, a as s, F as d, b as F, c, d as o, R as t } from "./FeedbackModal-DWJmFtvY.js";
2
+ import { C as r } from "./Clipboard-BAn3vQlX.js";
3
+ import { F as m, a as n, c as f, b as i, d as p } from "./FeedbackItem-B9lo9J0G.js";
4
4
  export {
5
5
  r as Clipboard,
6
6
  b as FeedbackBubbleEnd,