@huyooo/ui 2.0.7 → 2.0.8
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-CX4WTwNd.js → AuthkitAppSetting-eXw1JiyT.js} +787 -752
- package/dist/{Contact-CBGSJC2q.js → Contact-C5T90358.js} +2 -2
- package/dist/{FeedbackModal.vue_vue_type_script_setup_true_lang-BNBzOqrv.js → FeedbackModal.vue_vue_type_script_setup_true_lang-B3CA1z6v.js} +2 -2
- package/dist/LegalDocViewer-Dxl4FngI.js +2481 -0
- package/dist/{PaySubscriptions-BSkcUqHk.js → PaySubscriptions-Bv6LQ_Pf.js} +1 -1
- package/dist/{PricingPlans-CyFvgf18.js → PricingPlans-CQaXgOIR.js} +3 -3
- package/dist/{ReferrerReferees-Mvv6oiqe.js → ReferrerReferees-D4VEC8QJ.js} +1 -1
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-oa6LJgCY.js → Upload.vue_vue_type_script_setup_true_lang-CgZQOZYt.js} +1 -1
- package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-V5EzZMCL.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BdibAudA.js} +5 -5
- package/dist/{WidthContainer-Dts5qV1W.js → WidthContainer-AZl-9MdF.js} +6 -6
- package/dist/authkit.d.ts +1 -0
- package/dist/authkit.js +51 -50
- package/dist/common/globalConfig.d.ts +0 -5
- package/dist/common.js +1 -1
- package/dist/components/Authkit/Auth/AuthkitOauthCallback.vue.d.ts +1 -3
- package/dist/composables/Authkit/oauthCallback.d.ts +14 -0
- package/dist/composables/Authkit/useOAuthCallbackHandler.d.ts +11 -0
- package/dist/composables/Authkit/useOauth.d.ts +3 -3
- package/dist/composables.js +8 -8
- package/dist/feedback.js +1 -1
- package/dist/{fetchAuthPageAboutUs-CP5a7jIo.js → fetchAuthPageAboutUs-DV7ArpNZ.js} +1 -1
- package/dist/main.js +194 -193
- package/dist/pay.js +3 -3
- package/dist/privateCom.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/{runtime-qs4IasEB.js → runtime-Dp7MgwhI.js} +115 -116
- package/dist/style.css +1 -1
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAuth-BPTZUSkM.js → useAuthkitAuth-cHrJMM8E.js} +48 -47
- package/dist/useAuthkitUsersProfile-CTd6PP-a.js +50 -0
- package/dist/{useEnsureAuthenticated-CncOvj2H.js → useEnsureAuthenticated-C8qS8DLL.js} +1 -1
- package/dist/{useLegalDocs-BZlntAI7.js → useLegalDocs-C4qk5CTb.js} +1 -1
- package/dist/{usePageSEO-DwhbUUjW.js → usePageSEO-Dl6_kBWP.js} +1 -1
- package/dist/{useRoutePermission-CePjXomb.js → useRoutePermission-B_g-WmDZ.js} +50 -42
- package/dist/{useSubscriptionCheckout-BDDCRxSs.js → useSubscriptionCheckout-CYU2Ke0y.js} +1 -1
- package/dist/user.js +1 -1
- package/package.json +1 -1
- package/dist/LegalDocViewer-DPUiWxcR.js +0 -2492
- package/dist/useAuthkitUsersProfile-BclJWOvR.js +0 -45
|
@@ -11,7 +11,7 @@ import { ref as _, computed as W, onUnmounted as Fe, defineComponent as zt, open
|
|
|
11
11
|
import { Modal as Oe, Button as P, Popconfirm as Z, Tabs as At, TabPane as ee, Spin as de, Empty as We, Progress as Ot, Tooltip as pe, Tag as J, Message as M } from "@arco-design/web-vue";
|
|
12
12
|
import { u as Wt, b as Lt, a as Rt } from "./useBillingStatusOptions-Br-iL77Z.js";
|
|
13
13
|
import { u as Et } from "./useAuthkitCreateAndUpdate-Bbv7vZZn.js";
|
|
14
|
-
import { g as $t } from "./runtime-
|
|
14
|
+
import { g as $t } from "./runtime-Dp7MgwhI.js";
|
|
15
15
|
import { C as ve } from "./CustomTable-HDwqEcmB.js";
|
|
16
16
|
import { C as Le } from "./index-Cn6LcfZO.js";
|
|
17
17
|
import { _ as Ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -5,12 +5,12 @@ import { g as ve } from "./apiClients-Ctcq8NZs.js";
|
|
|
5
5
|
import { defineComponent as K, computed as h, onMounted as ne, onUnmounted as pe, openBlock as n, createElementBlock as s, createElementVNode as i, unref as e, createBlock as O, toDisplayString as a, createVNode as k, withCtx as w, createTextVNode as R, ref as ye, resolveDirective as he, withDirectives as ke, normalizeClass as L, Fragment as I, renderList as C, createCommentVNode as y } from "vue";
|
|
6
6
|
import { Spin as se, Button as A, Message as F } from "@arco-design/web-vue";
|
|
7
7
|
import { useRoute as be, useRouter as Te } from "vue-router";
|
|
8
|
-
import { b as we } from "./PaySubscriptions-
|
|
8
|
+
import { b as we } from "./PaySubscriptions-Bv6LQ_Pf.js";
|
|
9
9
|
import { _ as U } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
import { L as Ie, a as Ce, b as Be } from "./LandingPageSectionHeader-3hiuw6G0.js";
|
|
11
11
|
import { Icon as te } from "@iconify/vue";
|
|
12
|
-
import { u as Le, a as Re } from "./useSubscriptionCheckout-
|
|
13
|
-
import { u as Ae } from "./useEnsureAuthenticated-
|
|
12
|
+
import { u as Le, a as Re } from "./useSubscriptionCheckout-CYU2Ke0y.js";
|
|
13
|
+
import { u as Ae } from "./useEnsureAuthenticated-C8qS8DLL.js";
|
|
14
14
|
const kt = "/Pay/Return";
|
|
15
15
|
function G(l) {
|
|
16
16
|
const _ = typeof l.scene == "string" ? l.scene : null, c = typeof l.orderId == "string" ? l.orderId : null, d = typeof l.returnTo == "string" ? l.returnTo.trim() : null, P = d != null && d.startsWith("/") && !d.startsWith("//") ? d : null;
|
|
@@ -8,7 +8,7 @@ import { C as P } from "./CustomTable-HDwqEcmB.js";
|
|
|
8
8
|
import { C as G } from "./index-Cn6LcfZO.js";
|
|
9
9
|
/* empty css */
|
|
10
10
|
import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
import { u as H } from "./useAuthkitUsersProfile-
|
|
11
|
+
import { u as H } from "./useAuthkitUsersProfile-CTd6PP-a.js";
|
|
12
12
|
const j = {
|
|
13
13
|
email: "邮箱",
|
|
14
14
|
phone: "手机",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
/* empty css */
|
|
7
7
|
import { defineComponent as k, openBlock as h, createBlock as y, unref as S, mergeProps as q, createSlots as v, withCtx as p, renderSlot as a } from "vue";
|
|
8
8
|
import { Upload as I } from "@arco-design/web-vue";
|
|
9
|
-
import { u as _ } from "./runtime-
|
|
9
|
+
import { u as _ } from "./runtime-Dp7MgwhI.js";
|
|
10
10
|
const j = /* @__PURE__ */ k({
|
|
11
11
|
__name: "Upload",
|
|
12
12
|
props: {
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
import "./index-Cn6LcfZO.js";
|
|
4
4
|
import { defineComponent as m, computed as b, openBlock as r, createElementBlock as _, toDisplayString as $, createCommentVNode as U, createVNode as p, unref as t, withCtx as g, createBlock as f, createTextVNode as k, ref as C, createElementVNode as d, watch as x, onMounted as ee, Fragment as q, renderSlot as A, normalizeClass as ne } from "vue";
|
|
5
5
|
import { Avatar as G, Skeleton as te, SkeletonShape as ae, Button as N, Dropdown as se, Badge as oe } from "@arco-design/web-vue";
|
|
6
|
-
import { u as R } from "./useAuthkitUsersProfile-
|
|
6
|
+
import { u as R } from "./useAuthkitUsersProfile-CTd6PP-a.js";
|
|
7
7
|
import { u as y } from "./useUserMenu-ClPBlvaM.js";
|
|
8
8
|
/* empty css */
|
|
9
|
-
import { g as J, a as ie, R as re } from "./ReferrerReferees-
|
|
9
|
+
import { g as J, a as ie, R as re } from "./ReferrerReferees-D4VEC8QJ.js";
|
|
10
10
|
import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import { u as le } from "./apiClients-Ctcq8NZs.js";
|
|
13
|
-
import { f as ue, u as ce, g as de, c as pe, s as me, P as fe } from "./PaySubscriptions-
|
|
13
|
+
import { f as ue, u as ce, g as de, c as pe, s as me, P as fe } from "./PaySubscriptions-Bv6LQ_Pf.js";
|
|
14
14
|
import { d as _e } from "./useBillingStatusOptions-Br-iL77Z.js";
|
|
15
|
-
import { A as ve } from "./AuthkitAppSetting-
|
|
16
|
-
import { c as ge, u as K } from "./FeedbackModal.vue_vue_type_script_setup_true_lang-
|
|
15
|
+
import { A as ve } from "./AuthkitAppSetting-eXw1JiyT.js";
|
|
16
|
+
import { c as ge, u as K } from "./FeedbackModal.vue_vue_type_script_setup_true_lang-B3CA1z6v.js";
|
|
17
17
|
import { M as be } from "./MessageHandle-BUufez4S.js";
|
|
18
18
|
import "./Menu-uCexrsKP.js";
|
|
19
19
|
import { Icon as Ue } from "@iconify/vue";
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import "./userMenuModal-D-nDaYqM.js";
|
|
3
3
|
import { defineComponent as P, ref as A, watch as N, openBlock as n, createElementBlock as s, createElementVNode as a, createVNode as r, unref as c, withCtx as B, createTextVNode as K, renderSlot as V, toDisplayString as M, createCommentVNode as x, onMounted as Q, onBeforeUnmount as X, normalizeClass as $, Fragment as L, renderList as E, createBlock as Y, Teleport as ge, nextTick as J, computed as U, normalizeStyle as O } from "vue";
|
|
4
4
|
import { Spin as Z } from "@arco-design/web-vue";
|
|
5
|
-
import { u as ee } from "./useAuthkitAuth-
|
|
5
|
+
import { u as ee } from "./useAuthkitAuth-cHrJMM8E.js";
|
|
6
6
|
import "./apiClients-Ctcq8NZs.js";
|
|
7
7
|
import { u as q } from "./useAuthkitAppsAuthPageInfo-DZ1p-P3Q.js";
|
|
8
|
-
import { s as ye, a as be } from "./runtime-
|
|
8
|
+
import { s as ye, a as be } from "./runtime-Dp7MgwhI.js";
|
|
9
9
|
import "@vafast/api-client";
|
|
10
|
-
import "./useAuthkitUsersProfile-
|
|
11
|
-
import { b as te, f as ne, w as W, a as oe, c as se } from "./useRoutePermission-
|
|
10
|
+
import "./useAuthkitUsersProfile-CTd6PP-a.js";
|
|
11
|
+
import { b as te, f as ne, w as W, a as oe, c as se } from "./useRoutePermission-B_g-WmDZ.js";
|
|
12
12
|
import { useRouter as ae, useRoute as re } from "vue-router";
|
|
13
13
|
import "@unhead/vue";
|
|
14
14
|
import "./useUserMenu-ClPBlvaM.js";
|
|
15
|
-
import { c as ie, h as ue, k as le, _ as ce, f as de, j as me, d as pe, g as R, U as ke, i as he } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import "./PaySubscriptions-
|
|
15
|
+
import { c as ie, h as ue, k as le, _ as ce, f as de, j as me, d as pe, g as R, U as ke, i as he } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BdibAudA.js";
|
|
16
|
+
import "./PaySubscriptions-Bv6LQ_Pf.js";
|
|
17
17
|
/* empty css */
|
|
18
18
|
/* empty css */
|
|
19
19
|
import { M as we } from "./Menu-uCexrsKP.js";
|
package/dist/authkit.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ export { LEGAL_DOCS, LEGAL_DOC_KEYS, buildBuiltinLegalDocUrl, isLegalDocConfigur
|
|
|
45
45
|
export { useAuthkitUsersProfile } from './composables/Authkit/useAuthkitUsersProfile';
|
|
46
46
|
export { useAuthkitCreateAndUpdate } from './composables/Authkit/useAuthkitCreateAndUpdate';
|
|
47
47
|
export { useOauth } from './composables/Authkit/useOauth';
|
|
48
|
+
export { consumeOAuthRedirectTarget } from './composables/Authkit/oauthCallback';
|
|
48
49
|
export { useAuthkitPasskey } from './composables/Authkit/useAuthkitPasskey';
|
|
49
50
|
export type * from './types/auth';
|
|
50
51
|
export type { AppsData, PublicRoute } from './types/app';
|
package/dist/authkit.js
CHANGED
|
@@ -1,66 +1,67 @@
|
|
|
1
|
-
import { A as s, B as i, a as e, _ as u, b as h, O as A, P as o, c as r, d as
|
|
2
|
-
import { A as m, a as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { L as
|
|
8
|
-
import { f as
|
|
9
|
-
import { u as
|
|
1
|
+
import { A as s, B as i, a as e, _ as u, b as h, O as A, P as o, c as r, d as n, e as k, f as d, S as g, g as l, h as p, u as P, i as f } from "./AuthkitAppSetting-eXw1JiyT.js";
|
|
2
|
+
import { A as m, a as S, b as L, c as O, d as U, E as w, e as x, f as B, g as D, O as E, h as b, P as y, i as C, j as I, _ as v, R as V, S as _, k as R, l as T, m as G, n as M, o as j, p as z, L as F } from "./LegalDocViewer-Dxl4FngI.js";
|
|
3
|
+
import { u as Y } from "./useAuthkitAppsAuthPageInfo-DZ1p-P3Q.js";
|
|
4
|
+
import { u as H } from "./useAuthkitAuth-cHrJMM8E.js";
|
|
5
|
+
import { u as N } from "./apiClients-Ctcq8NZs.js";
|
|
6
|
+
import { u as W } from "./useEnsureAuthenticated-C8qS8DLL.js";
|
|
7
|
+
import { L as Z, a as $, b as tt, i as at, o as st, r as it, c as et, u as ut } from "./useLegalDocs-C4qk5CTb.js";
|
|
8
|
+
import { f as At } from "./fetchAuthPageAboutUs-DV7ArpNZ.js";
|
|
9
|
+
import { u as rt } from "./useAuthkitUsersProfile-CTd6PP-a.js";
|
|
10
10
|
import { u as kt } from "./useAuthkitCreateAndUpdate-Bbv7vZZn.js";
|
|
11
11
|
export {
|
|
12
12
|
s as AuthkitAppSetting,
|
|
13
13
|
m as AuthkitAuth,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
S as AuthkitAuthContainer,
|
|
15
|
+
L as AuthkitAuthModal,
|
|
16
|
+
O as AuthkitAuthTitle,
|
|
17
|
+
U as AuthkitAuthorize,
|
|
18
18
|
i as AuthkitBindEmail,
|
|
19
19
|
e as AuthkitBindPhone,
|
|
20
20
|
u as AuthkitEmailBinding,
|
|
21
|
-
|
|
21
|
+
w as AuthkitEmailUpdate,
|
|
22
22
|
h as AuthkitEmailVerify,
|
|
23
|
-
|
|
23
|
+
x as AuthkitGithubBinding,
|
|
24
24
|
A as AuthkitOAuthBinding,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
B as AuthkitOAuthCallbackProvider,
|
|
26
|
+
D as AuthkitOauthCallback,
|
|
27
|
+
E as AuthkitOauthItem,
|
|
28
|
+
b as AuthkitOauthList,
|
|
29
29
|
o as AuthkitPasskeyBinding,
|
|
30
|
-
|
|
30
|
+
y as AuthkitPasswordAuth,
|
|
31
31
|
r as AuthkitPasswordUpdate,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
C as AuthkitPasswordUpdateAndVerify,
|
|
33
|
+
n as AuthkitPersonalInformation,
|
|
34
|
+
k as AuthkitPhoneBinding,
|
|
35
|
+
I as AuthkitPhonePasswordUpdateAndVerify,
|
|
36
36
|
d as AuthkitPhoneVerify,
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
v as AuthkitProvider,
|
|
38
|
+
V as AuthkitResetPassword,
|
|
39
39
|
g as AuthkitSendVerifyCode,
|
|
40
|
-
|
|
40
|
+
_ as AuthkitServiceAgreementAndPrivacyProtection,
|
|
41
41
|
l as AuthkitSetPassword,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
at as
|
|
55
|
-
st as
|
|
56
|
-
it as
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
42
|
+
R as AuthkitSignIn,
|
|
43
|
+
T as AuthkitSignInPhone,
|
|
44
|
+
G as AuthkitSignUp,
|
|
45
|
+
M as AuthkitSignUpPhone,
|
|
46
|
+
j as AuthkitSwitchSignIn,
|
|
47
|
+
z as AuthkitSwitchSignUpOrResetPassword,
|
|
48
|
+
Z as LEGAL_DOCS,
|
|
49
|
+
$ as LEGAL_DOC_KEYS,
|
|
50
|
+
F as LegalDocViewer,
|
|
51
|
+
tt as buildBuiltinLegalDocUrl,
|
|
52
|
+
p as consumeOAuthRedirectTarget,
|
|
53
|
+
At as fetchAuthPageAboutUs,
|
|
54
|
+
at as isLegalDocConfigured,
|
|
55
|
+
st as openLegalDocTarget,
|
|
56
|
+
it as resolveLegalAppId,
|
|
57
|
+
et as resolveLegalDocTargetFromData,
|
|
58
|
+
Y as useAuthkitAppsAuthPageInfo,
|
|
59
|
+
H as useAuthkitAuth,
|
|
60
|
+
N as useAuthkitAuthModal,
|
|
60
61
|
kt as useAuthkitCreateAndUpdate,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
P as useAuthkitPasskey,
|
|
63
|
+
rt as useAuthkitUsersProfile,
|
|
64
|
+
W as useEnsureAuthenticated,
|
|
65
|
+
ut as useLegalDocs,
|
|
66
|
+
f as useOauth
|
|
66
67
|
};
|
|
@@ -19,8 +19,6 @@ export interface HuyoooUIConfig {
|
|
|
19
19
|
aiPrefixUrl: string;
|
|
20
20
|
/** webhook-server API前缀 - 默认 '/webhookRestfulApi' */
|
|
21
21
|
webhookPrefixUrl: string;
|
|
22
|
-
/** OAuth 回调地址(可选,默认当前应用首页) */
|
|
23
|
-
oauthCallbackUrl: string;
|
|
24
22
|
/** 价格页地址(可选,默认当前应用 /Pricing) */
|
|
25
23
|
pricingUrl: string;
|
|
26
24
|
/** 自定义打开价格页逻辑(可选;例如桌面端切换到内置订阅页) */
|
|
@@ -56,8 +54,6 @@ export interface CreateHuyoooUIOptions {
|
|
|
56
54
|
getAccessToken: () => string | null;
|
|
57
55
|
/** 应用主题:light / dark / system,全局生效(body.dark + Arco) */
|
|
58
56
|
theme?: GlobalTheme;
|
|
59
|
-
/** OAuth 回调地址(可选,默认当前应用首页) */
|
|
60
|
-
oauthCallbackUrl?: string;
|
|
61
57
|
/** 价格页地址(可选,默认当前应用 /Pricing;桌面端可配置为官网价格页) */
|
|
62
58
|
pricingUrl?: string;
|
|
63
59
|
/** 自定义打开价格页逻辑;优先级高于 pricingUrl */
|
|
@@ -82,7 +78,6 @@ export declare function createHuyoooRuntimeConfig(options: CreateHuyoooUIOptions
|
|
|
82
78
|
logPrefixUrl: string;
|
|
83
79
|
aiPrefixUrl: string;
|
|
84
80
|
webhookPrefixUrl: string;
|
|
85
|
-
oauthCallbackUrl: string;
|
|
86
81
|
pricingUrl: string;
|
|
87
82
|
openPricing: (() => void) | undefined;
|
|
88
83
|
avatarBucketId: string;
|
package/dist/common.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, a as o, C as r, D as t, G as p, H as n, b as l, S as m, W as u } from "./WidthContainer-
|
|
1
|
+
import { A as s, a as o, C as r, D as t, G as p, H as n, b as l, S as m, W as u } from "./WidthContainer-AZl-9MdF.js";
|
|
2
2
|
import { C as d, a as f } from "./CollapseItem-DUzZA6tx.js";
|
|
3
3
|
import { C as x, E as b } from "./CustomTable-HDwqEcmB.js";
|
|
4
4
|
import { L } from "./Logo-D7fyXyB-.js";
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
-
/**
|
|
2
|
+
/** 登录成功后的默认跳转路径(仅 redirectUri 为固定页且与登录前页面不一致时使用) */
|
|
3
3
|
defaultRedirect?: string;
|
|
4
|
-
/** 加载时显示的文本 */
|
|
5
4
|
loadingText?: string;
|
|
6
|
-
/** 需要绑定身份时的跳转路径(OAuth 新用户无邮箱时) */
|
|
7
5
|
bindIdentityRedirect?: string;
|
|
8
6
|
};
|
|
9
7
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** 社交登录 OAuth 回调 URL 上可能出现的 query 参数 */
|
|
2
|
+
export declare const OAUTH_CALLBACK_QUERY_KEYS: readonly ["token", "refreshToken", "userId", "appId", "error", "needBindIdentity", "bindSuccess", "provider", "expiresIn"];
|
|
3
|
+
export declare function hasOAuthCallbackParams(url: URL): boolean;
|
|
4
|
+
/** 清除 OAuth 回调参数并返回清理后的站内路径 */
|
|
5
|
+
export declare function cleanOAuthCallbackParams(url: URL): string;
|
|
6
|
+
/** 社交登录:回到发起登录的当前页(清理残留 OAuth 参数) */
|
|
7
|
+
export declare function buildLoginOauthRedirectUri(): string;
|
|
8
|
+
/** 账号设置里 popup 绑定第三方:回到站点根路径,弹窗加载最轻 */
|
|
9
|
+
export declare function buildBindOauthRedirectUri(): string;
|
|
10
|
+
/** 发起社交登录前记录当前页,供绑定身份完成后返回 */
|
|
11
|
+
export declare function saveOAuthRedirectPath(): void;
|
|
12
|
+
export declare function consumeSavedOAuthRedirect(restoreRedirectAfterSignIn: boolean): string | null;
|
|
13
|
+
/** 绑定身份页完成后读取登录前页面 */
|
|
14
|
+
export declare function consumeOAuthRedirectTarget(fallback?: string): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Router } from 'vue-router';
|
|
2
|
+
export interface OAuthCallbackHandlerOptions {
|
|
3
|
+
bindIdentityRedirect?: string;
|
|
4
|
+
closePopupOnBindSuccess?: boolean;
|
|
5
|
+
restoreRedirectAfterSignIn?: boolean;
|
|
6
|
+
defaultRedirect?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function useOAuthCallbackHandler(router: Router, options?: OAuthCallbackHandlerOptions): {
|
|
9
|
+
processing: import('vue').Ref<boolean, boolean>;
|
|
10
|
+
handleOAuthCallback: () => Promise<boolean>;
|
|
11
|
+
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
declare function getOauthCallbackUrl(): string;
|
|
1
|
+
import { buildBindOauthRedirectUri, buildLoginOauthRedirectUri } from './oauthCallback';
|
|
3
2
|
/** 发起 OAuth 登录(通用方法) */
|
|
4
3
|
declare function startOauth(provider: 'github' | 'google' | 'microsoft' | 'wechat', options?: {
|
|
5
4
|
inviteCode?: string;
|
|
@@ -27,6 +26,7 @@ export declare function useOauth(): {
|
|
|
27
26
|
microsoftAuth: typeof microsoftAuth;
|
|
28
27
|
wechatAuth: typeof wechatAuth;
|
|
29
28
|
startOauth: typeof startOauth;
|
|
30
|
-
|
|
29
|
+
buildLoginOauthRedirectUri: typeof buildLoginOauthRedirectUri;
|
|
30
|
+
buildBindOauthRedirectUri: typeof buildBindOauthRedirectUri;
|
|
31
31
|
};
|
|
32
32
|
export {};
|
package/dist/composables.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { u as a } from "./useAuthkitAuth-
|
|
1
|
+
import { u as a } from "./useAuthkitAuth-cHrJMM8E.js";
|
|
2
2
|
import { u as t } from "./apiClients-Ctcq8NZs.js";
|
|
3
|
-
import { L as r, a as i, b as n, i as p, o as f, r as l, c as m, u as c } from "./useLegalDocs-
|
|
4
|
-
import { f as A } from "./fetchAuthPageAboutUs-
|
|
5
|
-
import { u as d } from "./useAuthkitUsersProfile-
|
|
3
|
+
import { L as r, a as i, b as n, i as p, o as f, r as l, c as m, u as c } from "./useLegalDocs-C4qk5CTb.js";
|
|
4
|
+
import { f as A } from "./fetchAuthPageAboutUs-DV7ArpNZ.js";
|
|
5
|
+
import { u as d } from "./useAuthkitUsersProfile-CTd6PP-a.js";
|
|
6
6
|
import { u as L } from "./useAuthkitAppsAuthPageInfo-DZ1p-P3Q.js";
|
|
7
7
|
import { u as P } from "./useAuthkitCreateAndUpdate-Bbv7vZZn.js";
|
|
8
8
|
import { u as O } from "./useMessageNotifications-D9uikt21.js";
|
|
9
|
-
import { c as C, g as U, a as k, s as M, u as R } from "./runtime-
|
|
10
|
-
import { u as v, a as E, b as w, c as y, d as H } from "./usePageSEO-
|
|
11
|
-
import { f as B, a as _, g as G, u as F, b as K, c as N, w as V } from "./useRoutePermission-
|
|
9
|
+
import { c as C, g as U, a as k, s as M, u as R } from "./runtime-Dp7MgwhI.js";
|
|
10
|
+
import { u as v, a as E, b as w, c as y, d as H } from "./usePageSEO-Dl6_kBWP.js";
|
|
11
|
+
import { f as B, a as _, g as G, u as F, b as K, c as N, w as V } from "./useRoutePermission-B_g-WmDZ.js";
|
|
12
12
|
import { u as j } from "./useUserMenu-ClPBlvaM.js";
|
|
13
|
-
import { u as z, a as J } from "./useSubscriptionCheckout-
|
|
13
|
+
import { u as z, a as J } from "./useSubscriptionCheckout-CYU2Ke0y.js";
|
|
14
14
|
import { c as W, u as X, a as Z, b as $ } from "./useBillingStatusOptions-Br-iL77Z.js";
|
|
15
15
|
export {
|
|
16
16
|
r as LEGAL_DOCS,
|
package/dist/feedback.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as b, a as s, F as d, b as F, _ as o, c, R as t, V as r } from "./FeedbackModal.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { B as b, a as s, F as d, b as F, _ as o, c, R as t, V as r } from "./FeedbackModal.vue_vue_type_script_setup_true_lang-B3CA1z6v.js";
|
|
2
2
|
import { C as i } from "./index-Cn6LcfZO.js";
|
|
3
3
|
import { F as m, a as f, b as n, c as p } from "./FeedbackItem-BP-SiJ2u.js";
|
|
4
4
|
export {
|