@huyooo/ui 0.11.2 → 0.11.6
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-CjQiWZab.js +1914 -0
- package/dist/{Clipboard---tG2Zxz.js → Clipboard-ChMNfcO5.js} +1 -1
- package/dist/{Contact-BEUbBGiB.js → Contact-Yqmjh47e.js} +8 -7
- package/dist/{CustomTable-CVZ4mFzi.js → CustomTable-BUkwlbzN.js} +3 -2
- package/dist/{FeedbackItem-CN041vTm.js → FeedbackItem-DHp_C0pN.js} +3 -3
- package/dist/FeedbackModal-Dzl0Alp7.js +1050 -0
- package/dist/LandingPageFAQ-CZJXvor9.js +80 -0
- package/dist/LandingPageLinkGroup-DDNRivMt.js +521 -0
- package/dist/LandingPageSectionHeader-D_74W4My.js +69 -0
- package/dist/{LandingPageSectionTabs-B6ZVxR47.js → LandingPageSectionTabs-Ce3_Rc2L.js} +354 -426
- package/dist/MessageHandle-BcRjYeVi.js +924 -0
- package/dist/MessageList-Bo6YCfRO.js +233 -0
- package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-F6neJUg3.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BOtgTje-.js} +2 -2
- package/dist/PaySubscriptions-BsU0XmXf.js +515 -0
- package/dist/PricingPlans-BfVy4xU0.js +210 -0
- package/dist/ReferrerReferees-CHSoGrE1.js +106 -0
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-D_-oMTOo.js → Upload.vue_vue_type_script_setup_true_lang-CDWyo3RL.js} +1 -1
- package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-B4tD8pIE.js +508 -0
- package/dist/WidthContainer-BzS-A143.js +693 -0
- package/dist/{apiClients-9b4zNZ2S.js → apiClients-KFp-rs-C.js} +79 -73
- package/dist/authkit.d.ts +7 -0
- package/dist/authkit.js +52 -45
- package/dist/common/globalConfig.d.ts +4 -2
- package/dist/common/userMenuModal.d.ts +1 -0
- package/dist/common.js +2 -2
- package/dist/components/Authkit/AppSetting/AuthkitOAuthBinding.vue.d.ts +31 -0
- package/dist/components/Authkit/AppSetting/AuthkitPhoneBinding.vue.d.ts +14 -0
- package/dist/components/Authkit/AppSetting/AuthkitPhoneVerify.vue.d.ts +66 -0
- package/dist/components/Authkit/Auth/AuthkitBindPhone.vue.d.ts +27 -0
- package/dist/components/Authkit/Auth/AuthkitEmailUpdate.vue.d.ts +11 -1
- package/dist/components/Authkit/Auth/AuthkitOauthCallback.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitOauthItem.vue.d.ts +1 -1
- package/dist/components/Authkit/Auth/AuthkitPasswordAuth.vue.d.ts +11 -1
- package/dist/components/Authkit/Auth/AuthkitPhonePasswordUpdateAndVerify.vue.d.ts +68 -0
- package/dist/components/Authkit/Auth/AuthkitSignInEmailCode.vue.d.ts +68 -0
- package/dist/components/Authkit/Auth/AuthkitSwitchSignUpOrResetPassword.vue.d.ts +15 -3
- package/dist/components/Authkit/AuthkitOAuthCallbackProvider.vue.d.ts +11 -0
- package/dist/components/Authkit/AuthkitProvider.vue.d.ts +45 -0
- package/dist/components/Feedback/FeedbackBubbleEnd.vue.d.ts +9 -0
- package/dist/components/Feedback/FeedbackBubbleStart.vue.d.ts +11 -6
- package/dist/components/LandingPage/LandingPageSections.vue.d.ts +1 -1
- package/dist/components/Pay/PaySubscriptions.vue.d.ts +2 -1
- package/dist/components/Pay/PricingFAQ.vue.d.ts +17 -0
- package/dist/components/Pay/PricingPlans.vue.d.ts +12 -0
- package/dist/components/UserMenu/UserMenuModals.vue.d.ts +2 -2
- package/dist/components/UserMenu/parts/UserSubscriptionBaseInformation.vue.d.ts +8 -0
- package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +26 -0
- package/dist/composables/Authkit/useAuthkitAuth.d.ts +21 -9
- package/dist/composables/Authkit/useEnsureAuthenticated.d.ts +26 -0
- package/dist/composables/Authkit/useOauth.d.ts +4 -1
- package/dist/composables/Billing/useBillingPlans.d.ts +201 -0
- package/dist/composables/Billing/useBillingSubscriptionSummary.d.ts +280 -0
- package/dist/composables/Billing/useSubscriptionCheckout.d.ts +12 -0
- package/dist/composables/UserMenu/useUserMenu.d.ts +5 -1
- package/dist/composables.d.ts +2 -0
- package/dist/composables.js +25 -22
- package/dist/feedback.js +3 -3
- package/dist/index-D3Kp6R4z.js +4 -0
- package/dist/landingPage.js +42 -40
- package/dist/main.d.ts +1 -0
- package/dist/main.js +677 -631
- package/dist/message.js +19 -18
- package/dist/pay.d.ts +5 -0
- package/dist/pay.js +9 -2
- package/dist/privateCom.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/api/auth.generated.d.ts +103 -39
- package/dist/types/api/billing.generated.d.ts +61 -28
- package/dist/types/api.d.ts +1 -1
- package/dist/types/app.d.ts +14 -0
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAppsAuthPageInfo-494yLvsu.js → useAuthkitAppsAuthPageInfo-B9_VzVkQ.js} +20 -7
- package/dist/{useAuthkitCreateAndUpdate-DyRtFxZS.js → useAuthkitCreateAndUpdate-DomftQMK.js} +1 -1
- package/dist/useAuthkitUsersProfile-D4h6OOdR.js +201 -0
- package/dist/{useDownloads-DaeIY0E9.js → useDownloads-CzC3gLUV.js} +1 -1
- package/dist/useEnsureAuthenticated-C_Ss0e9n.js +2247 -0
- package/dist/{useLegalLinks-CPbWqlu6.js → useLegalLinks-OGVbqXVy.js} +2 -2
- package/dist/{useMessageNotifications-Dg5q-C_o.js → useMessageNotifications-DeHFJFcX.js} +1 -1
- package/dist/{useSEO-CXX9dcBx.js → useSEO--jTDDkXk.js} +2 -2
- package/dist/useSubscriptionCheckout-CQ6wHuLI.js +345 -0
- package/dist/{useTableHandle-Cjq4gcC0.js → useTableHandle-jw0P7-2a.js} +1 -1
- package/dist/{useUploadCos-DiJmmbRf.js → useUploadCos-keDKcs0j.js} +501 -515
- package/dist/useUserMenu-ClPBlvaM.js +44 -0
- package/dist/user.js +12 -13
- package/dist/utils/apiMiddlewares.d.ts +6 -0
- package/dist/utils/legacyApi.d.ts +18 -0
- package/package.json +1 -1
- package/dist/AuthkitAppSetting-BCrLMpLg.js +0 -1322
- package/dist/AuthkitSignInPhone-DmCQ2fWs.js +0 -1721
- package/dist/FeedbackModal-aI28o-w5.js +0 -1053
- package/dist/LandingPageSectionHeader-Cs1x8i3q.js +0 -584
- package/dist/MessageHandle-BV1nKlxs.js +0 -1147
- package/dist/PaySubscriptions-B3gI1Eme.js +0 -408
- package/dist/ReferrerReferees-DJzPo7X5.js +0 -106
- package/dist/UserAccountMenu-CJ9KKVYa.js +0 -371
- package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-ClAXNSgl.js +0 -81
- package/dist/WidthContainer-BG10rumn.js +0 -669
- package/dist/useAuthkitUsersProfile-lGlQP54m.js +0 -186
- package/dist/useUserMenu-B3HKZKJ4.js +0 -43
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { eden as n, defineMiddleware as
|
|
2
|
-
import { ref as
|
|
1
|
+
import { eden as n, defineMiddleware as f, createClient as I } from "@vafast/api-client";
|
|
2
|
+
import { ref as k, computed as b } from "vue";
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { Message as
|
|
5
|
-
const P =
|
|
4
|
+
import { Message as A } from "@arco-design/web-vue";
|
|
5
|
+
const P = k(void 0);
|
|
6
6
|
function U(e) {
|
|
7
7
|
var t, r;
|
|
8
8
|
return e === "system" ? typeof window < "u" && ((r = (t = window.matchMedia) == null ? void 0 : t.call(window, "(prefers-color-scheme: dark)")) != null && r.matches) ? "dark" : "light" : e;
|
|
@@ -10,7 +10,7 @@ function U(e) {
|
|
|
10
10
|
function v(e) {
|
|
11
11
|
typeof document > "u" || (e === "dark" ? (document.body.setAttribute("arco-theme", "dark"), document.body.classList.add("dark")) : (document.body.removeAttribute("arco-theme"), document.body.classList.remove("dark")));
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function X(e) {
|
|
14
14
|
P.value = e, v(U(e));
|
|
15
15
|
}
|
|
16
16
|
let o = {
|
|
@@ -27,32 +27,32 @@ let o = {
|
|
|
27
27
|
bucket: "ones-1358549778",
|
|
28
28
|
region: "ap-beijing",
|
|
29
29
|
web3formsAccessKey: "72604aac-d55e-4df0-9bcf-31b2206b3753"
|
|
30
|
-
},
|
|
30
|
+
}, R = {};
|
|
31
|
+
function H(e) {
|
|
32
|
+
Object.assign(R, e);
|
|
33
|
+
}
|
|
31
34
|
function Q(e) {
|
|
32
|
-
|
|
35
|
+
o.appId = e.appId, e.theme !== void 0 && (P.value = e.theme, v(U(e.theme))), o.authPrefixUrl = e.authPrefixUrl || "/authRestfulApi", (e.onesPrefixUrl !== void 0 || e.prefixUrl !== void 0) && (o.onesPrefixUrl = e.onesPrefixUrl ?? e.prefixUrl ?? o.onesPrefixUrl), e.billingPrefixUrl !== void 0 && (o.billingPrefixUrl = e.billingPrefixUrl), e.logPrefixUrl !== void 0 && (o.logPrefixUrl = e.logPrefixUrl), e.aiPrefixUrl !== void 0 && (o.aiPrefixUrl = e.aiPrefixUrl), e.webhookPrefixUrl !== void 0 && (o.webhookPrefixUrl = e.webhookPrefixUrl), e.oauthCallbackUrl !== void 0 ? o.oauthCallbackUrl = e.oauthCallbackUrl : typeof window < "u" && (o.oauthCallbackUrl = `${window.location.origin}/`), e.avatarBucketId !== void 0 && (o.avatarBucketId = e.avatarBucketId), e.feedbackBucketId !== void 0 && (o.feedbackBucketId = e.feedbackBucketId), e.bucket !== void 0 && (o.bucket = e.bucket), e.region !== void 0 && (o.region = e.region), e.web3formsAccessKey !== void 0 && (o.web3formsAccessKey = e.web3formsAccessKey);
|
|
33
36
|
}
|
|
34
|
-
function
|
|
35
|
-
|
|
37
|
+
function j(e) {
|
|
38
|
+
return n(e);
|
|
36
39
|
}
|
|
37
|
-
function
|
|
40
|
+
function S(e) {
|
|
38
41
|
return n(e);
|
|
39
42
|
}
|
|
40
|
-
function
|
|
43
|
+
function B(e) {
|
|
41
44
|
return n(e);
|
|
42
45
|
}
|
|
43
46
|
function E(e) {
|
|
44
47
|
return n(e);
|
|
45
48
|
}
|
|
46
|
-
function
|
|
47
|
-
return n(e);
|
|
48
|
-
}
|
|
49
|
-
function j(e) {
|
|
49
|
+
function M(e) {
|
|
50
50
|
return n(e);
|
|
51
51
|
}
|
|
52
52
|
function O(e) {
|
|
53
53
|
return n(e);
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Y(e, t = 3) {
|
|
56
56
|
const r = e.indexOf("@");
|
|
57
57
|
if (r > 1) {
|
|
58
58
|
const a = e.slice(0, t), i = e.slice(r);
|
|
@@ -60,56 +60,54 @@ function Z(e, t = 3) {
|
|
|
60
60
|
}
|
|
61
61
|
return e;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function x() {
|
|
64
64
|
try {
|
|
65
65
|
localStorage.removeItem("jwtToken"), localStorage.removeItem("refreshToken");
|
|
66
66
|
} catch (e) {
|
|
67
67
|
console.warn("Failed to clear localStorage:", e);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function $() {
|
|
71
71
|
try {
|
|
72
72
|
return localStorage.getItem("refreshToken");
|
|
73
73
|
} catch (e) {
|
|
74
74
|
return console.warn("Failed to get refreshToken from localStorage:", e), null;
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function K(e) {
|
|
78
78
|
try {
|
|
79
79
|
localStorage.setItem("jwtToken", e);
|
|
80
80
|
} catch (t) {
|
|
81
81
|
console.warn("Failed to update jwtToken in localStorage:", t);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
const
|
|
85
|
-
function
|
|
86
|
-
e != null && e.view && (
|
|
84
|
+
const p = k(!1), y = k("signIn");
|
|
85
|
+
function z(e) {
|
|
86
|
+
e != null && e.view && (y.value = e.view), p.value = !0;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
|
|
88
|
+
function _() {
|
|
89
|
+
p.value = !1;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function T() {
|
|
92
92
|
return {
|
|
93
|
-
open:
|
|
94
|
-
close:
|
|
95
|
-
isOpen:
|
|
96
|
-
view:
|
|
93
|
+
open: z,
|
|
94
|
+
close: _,
|
|
95
|
+
isOpen: b(() => p.value),
|
|
96
|
+
view: b(() => y.value)
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
function b(e, t = null) {
|
|
104
|
-
d.forEach(({
|
|
99
|
+
const d = 40101;
|
|
100
|
+
let u = !1, h = [];
|
|
101
|
+
function m(e, t = null) {
|
|
102
|
+
h.forEach(({
|
|
105
103
|
resolve: r,
|
|
106
104
|
reject: a
|
|
107
105
|
}) => {
|
|
108
106
|
e ? a(e) : t && r(t);
|
|
109
|
-
}),
|
|
107
|
+
}), h = [];
|
|
110
108
|
}
|
|
111
|
-
async function
|
|
112
|
-
const e =
|
|
109
|
+
async function F() {
|
|
110
|
+
const e = $();
|
|
113
111
|
if (!e)
|
|
114
112
|
throw new Error("No refresh token available");
|
|
115
113
|
try {
|
|
@@ -124,66 +122,74 @@ async function K() {
|
|
|
124
122
|
})
|
|
125
123
|
})).json();
|
|
126
124
|
if (r.jwtToken)
|
|
127
|
-
return
|
|
125
|
+
return K(r.jwtToken), r.refreshToken && localStorage.setItem("refreshToken", r.refreshToken), r.jwtToken;
|
|
128
126
|
throw new Error(r.message || "Token refresh failed");
|
|
129
127
|
} catch (t) {
|
|
130
128
|
throw console.error("Token refresh failed:", t), t;
|
|
131
129
|
}
|
|
132
130
|
}
|
|
133
|
-
const
|
|
131
|
+
const L = f(async (e, t) => (e.headers.set("app-id", o.appId), t()), {
|
|
134
132
|
name: "app-id"
|
|
135
|
-
}),
|
|
133
|
+
}), N = f(async (e, t) => {
|
|
136
134
|
const r = localStorage.getItem("jwtToken");
|
|
137
135
|
return r && e.headers.set("authorization", `Bearer ${r}`), t();
|
|
138
136
|
}, {
|
|
139
137
|
name: "token"
|
|
140
|
-
}),
|
|
138
|
+
}), q = f(async (e, t) => {
|
|
141
139
|
var a;
|
|
142
140
|
const r = await t();
|
|
143
|
-
if (((a = r.error) == null ? void 0 : a.code) ===
|
|
144
|
-
if (
|
|
141
|
+
if (((a = r.error) == null ? void 0 : a.code) === d) {
|
|
142
|
+
if (u)
|
|
145
143
|
return new Promise((i, c) => {
|
|
146
|
-
|
|
144
|
+
h.push({
|
|
147
145
|
resolve: async (w) => {
|
|
148
146
|
e.headers.set("authorization", `Bearer ${w}`);
|
|
149
|
-
const
|
|
150
|
-
i(
|
|
147
|
+
const g = await t();
|
|
148
|
+
i(g);
|
|
151
149
|
},
|
|
152
150
|
reject: () => {
|
|
153
151
|
c(r);
|
|
154
152
|
}
|
|
155
153
|
});
|
|
156
154
|
});
|
|
157
|
-
|
|
155
|
+
u = !0;
|
|
158
156
|
try {
|
|
159
|
-
const i = await
|
|
160
|
-
return
|
|
157
|
+
const i = await F();
|
|
158
|
+
return m(null, i), e.headers.set("authorization", `Bearer ${i}`), await t();
|
|
161
159
|
} catch (i) {
|
|
162
|
-
|
|
160
|
+
m(i, null), x();
|
|
163
161
|
const {
|
|
164
162
|
open: c
|
|
165
|
-
} =
|
|
166
|
-
return c(),
|
|
163
|
+
} = T();
|
|
164
|
+
return c(), r;
|
|
167
165
|
} finally {
|
|
168
|
-
|
|
166
|
+
u = !1;
|
|
169
167
|
}
|
|
170
168
|
}
|
|
171
169
|
return r;
|
|
172
170
|
}, {
|
|
173
171
|
name: "token-refresh"
|
|
174
|
-
}),
|
|
172
|
+
}), D = f(async (e, t) => {
|
|
173
|
+
var a;
|
|
175
174
|
const r = await t();
|
|
176
|
-
|
|
175
|
+
if (r.status === 401 && ((a = r.error) == null ? void 0 : a.code) !== d) {
|
|
176
|
+
x();
|
|
177
|
+
const {
|
|
178
|
+
open: i
|
|
179
|
+
} = T();
|
|
180
|
+
return i(), r;
|
|
181
|
+
}
|
|
182
|
+
return r.error && r.error.code !== d && A.error(r.error.message || "请求失败"), r;
|
|
177
183
|
}, {
|
|
178
184
|
name: "error-message"
|
|
179
185
|
});
|
|
180
|
-
function
|
|
181
|
-
return
|
|
186
|
+
function s(e) {
|
|
187
|
+
return I({
|
|
182
188
|
baseURL: e,
|
|
183
189
|
timeout: 3e4
|
|
184
|
-
}).use(
|
|
190
|
+
}).use(L).use(N).use(q).use(D);
|
|
185
191
|
}
|
|
186
|
-
function
|
|
192
|
+
function l(e) {
|
|
187
193
|
let t = null;
|
|
188
194
|
return new Proxy({}, {
|
|
189
195
|
get(r, a) {
|
|
@@ -191,20 +197,20 @@ function s(e) {
|
|
|
191
197
|
}
|
|
192
198
|
});
|
|
193
199
|
}
|
|
194
|
-
const
|
|
200
|
+
const Z = l(() => S(s(o.authPrefixUrl))), C = l(() => B(s(o.billingPrefixUrl))), ee = l(() => M(s(o.onesPrefixUrl))), re = l(() => E(s(o.logPrefixUrl))), te = l(() => j(s(o.aiPrefixUrl))), oe = l(() => O(s(o.webhookPrefixUrl)));
|
|
195
201
|
export {
|
|
196
|
-
|
|
202
|
+
R as a,
|
|
197
203
|
P as b,
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
204
|
+
H as c,
|
|
205
|
+
X as d,
|
|
206
|
+
Z as e,
|
|
207
|
+
C as f,
|
|
202
208
|
o as g,
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
209
|
+
te as h,
|
|
210
|
+
Y as i,
|
|
211
|
+
re as l,
|
|
212
|
+
ee as o,
|
|
213
|
+
Q as s,
|
|
214
|
+
T as u,
|
|
215
|
+
oe as w
|
|
210
216
|
};
|
package/dist/authkit.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { default as AuthkitAppSetting } from './components/Authkit/AuthkitAppSetting.vue';
|
|
2
|
+
export { default as AuthkitProvider } from './components/Authkit/AuthkitProvider.vue';
|
|
3
|
+
export { default as AuthkitOAuthCallbackProvider } from './components/Authkit/AuthkitOAuthCallbackProvider.vue';
|
|
2
4
|
export { default as AuthkitAuth } from './components/Authkit/AuthkitAuth.vue';
|
|
3
5
|
export { default as AuthkitAuthContainer } from './components/Authkit/Auth/AuthkitAuthContainer.vue';
|
|
4
6
|
export { default as AuthkitAuthTitle } from './components/Authkit/Auth/AuthkitAuthTitle.vue';
|
|
@@ -11,6 +13,7 @@ export { default as AuthkitOauthItem } from './components/Authkit/Auth/AuthkitOa
|
|
|
11
13
|
export { default as AuthkitOauthList } from './components/Authkit/Auth/AuthkitOauthList.vue';
|
|
12
14
|
export { default as AuthkitOauthCallback } from './components/Authkit/Auth/AuthkitOauthCallback.vue';
|
|
13
15
|
export { default as AuthkitPasswordUpdateAndVerify } from './components/Authkit/Auth/AuthkitPasswordUpdateAndVerify.vue';
|
|
16
|
+
export { default as AuthkitPhonePasswordUpdateAndVerify } from './components/Authkit/Auth/AuthkitPhonePasswordUpdateAndVerify.vue';
|
|
14
17
|
export { default as AuthkitResetPassword } from './components/Authkit/Auth/AuthkitResetPassword.vue';
|
|
15
18
|
export { default as AuthkitPasswordAuth } from './components/Authkit/Auth/AuthkitPasswordAuth.vue';
|
|
16
19
|
export { default as AuthkitSwitchSignIn } from './components/Authkit/Auth/AuthkitSwitchSignIn.vue';
|
|
@@ -23,13 +26,17 @@ export { default as AuthkitSignInPhone } from './components/Authkit/Auth/Authkit
|
|
|
23
26
|
export { default as AuthkitServiceAgreementAndPrivacyProtection } from './components/Authkit/Auth/AuthkitServiceAgreementAndPrivacyProtection.vue';
|
|
24
27
|
export { default as AuthkitPersonalInformation } from './components/Authkit/AppSetting/AuthkitPersonalInformation.vue';
|
|
25
28
|
export { default as AuthkitEmailVerify } from './components/Authkit/AppSetting/AuthkitEmailVerify.vue';
|
|
29
|
+
export { default as AuthkitPhoneVerify } from './components/Authkit/AppSetting/AuthkitPhoneVerify.vue';
|
|
26
30
|
export { default as AuthkitGithubBinding } from './components/Authkit/AppSetting/AuthkitGithubBinding.vue';
|
|
31
|
+
export { default as AuthkitOAuthBinding } from './components/Authkit/AppSetting/AuthkitOAuthBinding.vue';
|
|
27
32
|
export { default as AuthkitSetPassword } from './components/Authkit/AppSetting/AuthkitSetPassword.vue';
|
|
28
33
|
export { default as AuthkitEmailBinding } from './components/Authkit/AppSetting/AuthkitEmailBinding.vue';
|
|
34
|
+
export { default as AuthkitPhoneBinding } from './components/Authkit/AppSetting/AuthkitPhoneBinding.vue';
|
|
29
35
|
export { default as AuthkitPasswordUpdate } from './components/Authkit/AppSetting/AuthkitPasswordUpdate.vue';
|
|
30
36
|
export { useAuthkitAppsAuthPageInfo } from './composables/Authkit/useAuthkitAppsAuthPageInfo';
|
|
31
37
|
export { useAuthkitAuth, type SignInResult, } from './composables/Authkit/useAuthkitAuth';
|
|
32
38
|
export { useAuthkitAuthModal, type AuthModalView, type OpenAuthModalOptions, type UseAuthkitAuthModalReturn, } from './composables/Authkit/useAuthkitAuthModal';
|
|
39
|
+
export { useEnsureAuthenticated, type UseEnsureAuthenticatedReturn, } from './composables/Authkit/useEnsureAuthenticated';
|
|
33
40
|
export { useLegalLinks, type LegalLink, type UseLegalLinksReturn, } from './composables/Authkit/useLegalLinks';
|
|
34
41
|
export { useAuthkitUsersProfile } from './composables/Authkit/useAuthkitUsersProfile';
|
|
35
42
|
export { useAuthkitCreateAndUpdate } from './composables/Authkit/useAuthkitCreateAndUpdate';
|
package/dist/authkit.js
CHANGED
|
@@ -1,48 +1,55 @@
|
|
|
1
|
-
import { A as i,
|
|
2
|
-
import { A as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { L as
|
|
7
|
-
import { u as
|
|
1
|
+
import { A as i, B as s, E as u, a as h, b as e, O as A, P as k, c as n, _ as r, d as o, S as d, e as P, u as p } from "./AuthkitAppSetting-CjQiWZab.js";
|
|
2
|
+
import { A as f, a as g, b as S, c as m, d as O, e as c, f as L, _ as U, g as w, O as E, h as b, P as x, i as B, j as C, k as y, R as I, S as V, l as _, m as v, n as G, o as R, p as D, q as M, u as j } from "./useEnsureAuthenticated-C_Ss0e9n.js";
|
|
3
|
+
import { u as z } from "./useAuthkitAppsAuthPageInfo-B9_VzVkQ.js";
|
|
4
|
+
import { u as T, a as Y } from "./useAuthkitUsersProfile-D4h6OOdR.js";
|
|
5
|
+
import { u as H } from "./apiClients-KFp-rs-C.js";
|
|
6
|
+
import { L as N, a as Q, b as W, u as X } from "./useLegalLinks-OGVbqXVy.js";
|
|
7
|
+
import { u as $ } from "./useAuthkitCreateAndUpdate-DomftQMK.js";
|
|
8
8
|
export {
|
|
9
9
|
i as AuthkitAppSetting,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
k as
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
R as
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
10
|
+
f as AuthkitAuth,
|
|
11
|
+
g as AuthkitAuthContainer,
|
|
12
|
+
S as AuthkitAuthModal,
|
|
13
|
+
m as AuthkitAuthTitle,
|
|
14
|
+
O as AuthkitAuthorize,
|
|
15
|
+
c as AuthkitBindEmail,
|
|
16
|
+
s as AuthkitBindPhone,
|
|
17
|
+
u as AuthkitEmailBinding,
|
|
18
|
+
h as AuthkitEmailUpdate,
|
|
19
|
+
e as AuthkitEmailVerify,
|
|
20
|
+
L as AuthkitGithubBinding,
|
|
21
|
+
A as AuthkitOAuthBinding,
|
|
22
|
+
U as AuthkitOAuthCallbackProvider,
|
|
23
|
+
w as AuthkitOauthCallback,
|
|
24
|
+
E as AuthkitOauthItem,
|
|
25
|
+
b as AuthkitOauthList,
|
|
26
|
+
x as AuthkitPasswordAuth,
|
|
27
|
+
k as AuthkitPasswordUpdate,
|
|
28
|
+
B as AuthkitPasswordUpdateAndVerify,
|
|
29
|
+
n as AuthkitPersonalInformation,
|
|
30
|
+
r as AuthkitPhoneBinding,
|
|
31
|
+
C as AuthkitPhonePasswordUpdateAndVerify,
|
|
32
|
+
o as AuthkitPhoneVerify,
|
|
33
|
+
y as AuthkitProvider,
|
|
34
|
+
I as AuthkitResetPassword,
|
|
35
|
+
d as AuthkitSendVerifyCode,
|
|
36
|
+
V as AuthkitServiceAgreementAndPrivacyProtection,
|
|
37
|
+
P as AuthkitSetPassword,
|
|
38
|
+
_ as AuthkitSignIn,
|
|
39
|
+
v as AuthkitSignInPhone,
|
|
40
|
+
G as AuthkitSignUp,
|
|
41
|
+
R as AuthkitSignUpPhone,
|
|
42
|
+
D as AuthkitSwitchSignIn,
|
|
43
|
+
M as AuthkitSwitchSignUpOrResetPassword,
|
|
44
|
+
N as LEGAL_DOCS,
|
|
45
|
+
Q as LEGAL_DOC_KEYS,
|
|
46
|
+
W as buildLegalLinkUrl,
|
|
47
|
+
z as useAuthkitAppsAuthPageInfo,
|
|
48
|
+
T as useAuthkitAuth,
|
|
49
|
+
H as useAuthkitAuthModal,
|
|
50
|
+
$ as useAuthkitCreateAndUpdate,
|
|
51
|
+
Y as useAuthkitUsersProfile,
|
|
52
|
+
j as useEnsureAuthenticated,
|
|
53
|
+
X as useLegalLinks,
|
|
54
|
+
p as useOauth
|
|
48
55
|
};
|
|
@@ -26,7 +26,7 @@ export interface HuyoooUIConfig {
|
|
|
26
26
|
aiPrefixUrl: string;
|
|
27
27
|
/** webhook-server API前缀 - 默认 '/webhookRestfulApi' */
|
|
28
28
|
webhookPrefixUrl: string;
|
|
29
|
-
/** OAuth
|
|
29
|
+
/** OAuth 回调地址(可选,默认当前应用首页) */
|
|
30
30
|
oauthCallbackUrl: string;
|
|
31
31
|
avatarBucketId: string;
|
|
32
32
|
feedbackBucketId: string;
|
|
@@ -48,6 +48,8 @@ export interface SetGlobalConfigOptions {
|
|
|
48
48
|
appId: string;
|
|
49
49
|
/** 应用主题:light / dark / system,全局生效(body.dark + Arco) */
|
|
50
50
|
theme?: GlobalTheme;
|
|
51
|
+
/** 旧版 ones-server API 前缀别名;新代码请使用 onesPrefixUrl */
|
|
52
|
+
prefixUrl?: string;
|
|
51
53
|
/** ones-server API前缀 - 默认 '/onesRestfulApi' */
|
|
52
54
|
onesPrefixUrl?: string;
|
|
53
55
|
/** auth-server API前缀 - 默认 '/authRestfulApi' */
|
|
@@ -60,7 +62,7 @@ export interface SetGlobalConfigOptions {
|
|
|
60
62
|
aiPrefixUrl?: string;
|
|
61
63
|
/** webhook-server API前缀 - 默认 '/webhookRestfulApi' */
|
|
62
64
|
webhookPrefixUrl?: string;
|
|
63
|
-
/** OAuth
|
|
65
|
+
/** OAuth 回调地址(可选,默认当前应用首页) */
|
|
64
66
|
oauthCallbackUrl?: string;
|
|
65
67
|
avatarBucketId?: string;
|
|
66
68
|
feedbackBucketId?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const USER_MENU_MODAL_WIDTH = "min(920px, calc(100vw - 32px))";
|
package/dist/common.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-BzS-A143.js";
|
|
2
2
|
import { C as d, a as f } from "./CollapseItem-DUzZA6tx.js";
|
|
3
|
-
import { C as x, E as b } from "./CustomTable-
|
|
3
|
+
import { C as x, E as b } from "./CustomTable-BUkwlbzN.js";
|
|
4
4
|
import { L } from "./Logo-D7fyXyB-.js";
|
|
5
5
|
import { M as g, a as A } from "./Menu-Cy2ZPeaz.js";
|
|
6
6
|
export {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { FormSizeType } from '../../../types/auth';
|
|
3
|
+
type OAuthProvider = "github" | "google" | "microsoft" | "wechat";
|
|
4
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
|
+
provider: {
|
|
6
|
+
type: PropType<OAuthProvider>;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
label: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
size: {
|
|
14
|
+
type: PropType<FormSizeType>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
18
|
+
provider: {
|
|
19
|
+
type: PropType<OAuthProvider>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
label: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
size: {
|
|
27
|
+
type: PropType<FormSizeType>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
31
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { FormSizeType } from '../../../types/auth';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
size: {
|
|
5
|
+
type: PropType<FormSizeType>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
9
|
+
size: {
|
|
10
|
+
type: PropType<FormSizeType>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { FormSizeType } from '../../../types/auth';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
phone: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
size: {
|
|
9
|
+
type: PropType<FormSizeType>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
+
next: (...args: any[]) => void;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
15
|
+
phone: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
size: {
|
|
20
|
+
type: PropType<FormSizeType>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
}>> & Readonly<{
|
|
24
|
+
onNext?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
26
|
+
formRef: any;
|
|
27
|
+
sendVerifyCodeRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
28
|
+
size: {
|
|
29
|
+
type: PropType<FormSizeType>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
loading: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
required: true;
|
|
35
|
+
default: () => boolean;
|
|
36
|
+
};
|
|
37
|
+
}>> & Readonly<{
|
|
38
|
+
onSend?: ((...args: any[]) => any) | undefined;
|
|
39
|
+
}>, {
|
|
40
|
+
startCountFn: () => void;
|
|
41
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
42
|
+
send: (...args: any[]) => void;
|
|
43
|
+
}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
44
|
+
P: {};
|
|
45
|
+
B: {};
|
|
46
|
+
D: {};
|
|
47
|
+
C: {};
|
|
48
|
+
M: {};
|
|
49
|
+
Defaults: {};
|
|
50
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
51
|
+
size: {
|
|
52
|
+
type: PropType<FormSizeType>;
|
|
53
|
+
required: true;
|
|
54
|
+
};
|
|
55
|
+
loading: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
required: true;
|
|
58
|
+
default: () => boolean;
|
|
59
|
+
};
|
|
60
|
+
}>> & Readonly<{
|
|
61
|
+
onSend?: ((...args: any[]) => any) | undefined;
|
|
62
|
+
}>, {
|
|
63
|
+
startCountFn: () => void;
|
|
64
|
+
}, {}, {}, {}, {}> | null;
|
|
65
|
+
}, any>;
|
|
66
|
+
export default _default;
|
|
@@ -14,6 +14,18 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
14
14
|
type: BooleanConstructor;
|
|
15
15
|
default: boolean;
|
|
16
16
|
};
|
|
17
|
+
title: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
subtitle: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
submitText: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
17
29
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
30
|
submit: (...args: any[]) => void;
|
|
19
31
|
skip: (...args: any[]) => void;
|
|
@@ -31,11 +43,26 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
31
43
|
type: BooleanConstructor;
|
|
32
44
|
default: boolean;
|
|
33
45
|
};
|
|
46
|
+
title: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
subtitle: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
submitText: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
34
58
|
}>> & Readonly<{
|
|
35
59
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
36
60
|
onSkip?: ((...args: any[]) => any) | undefined;
|
|
37
61
|
}>, {
|
|
62
|
+
title: string;
|
|
38
63
|
showSkip: boolean;
|
|
64
|
+
subtitle: string;
|
|
65
|
+
submitText: string;
|
|
39
66
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
40
67
|
formRef: any;
|
|
41
68
|
SendVerifyCodeRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -10,6 +10,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
10
10
|
required: true;
|
|
11
11
|
default: () => boolean;
|
|
12
12
|
};
|
|
13
|
+
purpose: {
|
|
14
|
+
type: PropType<"signUp" | "bindEmail">;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
13
17
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
18
|
submit: (...args: any[]) => void;
|
|
15
19
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -22,9 +26,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
22
26
|
required: true;
|
|
23
27
|
default: () => boolean;
|
|
24
28
|
};
|
|
29
|
+
purpose: {
|
|
30
|
+
type: PropType<"signUp" | "bindEmail">;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
25
33
|
}>> & Readonly<{
|
|
26
34
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
27
|
-
}>, {
|
|
35
|
+
}>, {
|
|
36
|
+
purpose: "signUp" | "bindEmail";
|
|
37
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
28
38
|
formRef: any;
|
|
29
39
|
SendVerifyCodeRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
30
40
|
size: {
|