@huyooo/ui 0.11.2 → 0.11.5
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-CSHkDxQT.js +1914 -0
- package/dist/{Clipboard---tG2Zxz.js → Clipboard-CRZDADLE.js} +1 -1
- package/dist/{Contact-BEUbBGiB.js → Contact-Y0Yczmc9.js} +8 -7
- package/dist/{CustomTable-CVZ4mFzi.js → CustomTable-BUkwlbzN.js} +3 -2
- package/dist/{FeedbackItem-CN041vTm.js → FeedbackItem-D7MpOmoM.js} +3 -3
- package/dist/FeedbackModal-CvNF1D-5.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-B12koVQL.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-DxDn6Ok8.js} +2 -2
- package/dist/PaySubscriptions-B8jAtG5n.js +515 -0
- package/dist/PricingPlans-CO26OcbJ.js +210 -0
- package/dist/ReferrerReferees-D_Iiw9wZ.js +106 -0
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-D_-oMTOo.js → Upload.vue_vue_type_script_setup_true_lang-CbVSY_vt.js} +1 -1
- package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-DpVadjMH.js +508 -0
- package/dist/WidthContainer-B6d4xrGT.js +693 -0
- package/dist/{apiClients-9b4zNZ2S.js → apiClients-DVz12LeW.js} +81 -75
- package/dist/authkit.d.ts +7 -0
- package/dist/authkit.js +52 -45
- package/dist/common/globalConfig.d.ts +2 -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.js +285 -269
- 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-Du5d6VK-.js} +20 -7
- package/dist/{useAuthkitCreateAndUpdate-DyRtFxZS.js → useAuthkitCreateAndUpdate-Bc9D5C6R.js} +1 -1
- package/dist/useAuthkitUsersProfile-CQGyvL7g.js +201 -0
- package/dist/{useDownloads-DaeIY0E9.js → useDownloads-BFx1a-f9.js} +1 -1
- package/dist/useEnsureAuthenticated-Cc64hF1O.js +2247 -0
- package/dist/{useLegalLinks-CPbWqlu6.js → useLegalLinks-Deksq9h-.js} +2 -2
- package/dist/{useMessageNotifications-Dg5q-C_o.js → useMessageNotifications-DY5xKtif.js} +1 -1
- package/dist/{useSEO-CXX9dcBx.js → useSEO-CvfzTZA9.js} +2 -2
- package/dist/useSubscriptionCheckout-BgQJN61l.js +345 -0
- package/dist/{useTableHandle-Cjq4gcC0.js → useTableHandle-D71P3Ez_.js} +1 -1
- package/dist/{useUploadCos-DiJmmbRf.js → useUploadCos-N5pim6q1.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/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,186 +0,0 @@
|
|
|
1
|
-
import { ref as r, readonly as A, computed as E } from "vue";
|
|
2
|
-
import { e as f } from "./apiClients-9b4zNZ2S.js";
|
|
3
|
-
const l = r("signIn"), m = /* @__PURE__ */ new Set(), p = /* @__PURE__ */ new Set(), S = /* @__PURE__ */ new Set(), I = /* @__PURE__ */ new Set(), s = r(null), h = "jwtToken";
|
|
4
|
-
function k() {
|
|
5
|
-
try {
|
|
6
|
-
const e = localStorage.getItem(h);
|
|
7
|
-
if (e)
|
|
8
|
-
return s.value = e, !0;
|
|
9
|
-
} catch (e) {
|
|
10
|
-
console.warn("Failed to access localStorage:", e);
|
|
11
|
-
}
|
|
12
|
-
return !1;
|
|
13
|
-
}
|
|
14
|
-
function O() {
|
|
15
|
-
try {
|
|
16
|
-
const e = new URLSearchParams(window.location.search), n = e.get("token");
|
|
17
|
-
if (!n) return !1;
|
|
18
|
-
g(n);
|
|
19
|
-
const i = window.location.pathname;
|
|
20
|
-
window.history.replaceState({}, "", i);
|
|
21
|
-
const u = e.get("userId"), o = e.get("appId");
|
|
22
|
-
return P({
|
|
23
|
-
jwtToken: n,
|
|
24
|
-
userId: u,
|
|
25
|
-
appId: o
|
|
26
|
-
}), !0;
|
|
27
|
-
} catch (e) {
|
|
28
|
-
return console.warn("Failed to handle OAuth callback:", e), !1;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
function b() {
|
|
32
|
-
return O() ? !0 : k();
|
|
33
|
-
}
|
|
34
|
-
function j() {
|
|
35
|
-
return s.value || k() ? s.value : null;
|
|
36
|
-
}
|
|
37
|
-
function g(e) {
|
|
38
|
-
s.value = e;
|
|
39
|
-
try {
|
|
40
|
-
localStorage.setItem(h, e);
|
|
41
|
-
} catch (n) {
|
|
42
|
-
console.warn("Failed to save token to localStorage:", n);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
function F() {
|
|
46
|
-
s.value = null;
|
|
47
|
-
try {
|
|
48
|
-
localStorage.removeItem(h);
|
|
49
|
-
} catch (e) {
|
|
50
|
-
console.warn("Failed to clear localStorage:", e);
|
|
51
|
-
}
|
|
52
|
-
K();
|
|
53
|
-
}
|
|
54
|
-
function w(e, n) {
|
|
55
|
-
return e.add(n), () => {
|
|
56
|
-
e.delete(n);
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
function P(e) {
|
|
60
|
-
m.forEach((n) => {
|
|
61
|
-
n(e);
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
function R() {
|
|
65
|
-
p.forEach((e) => void e());
|
|
66
|
-
}
|
|
67
|
-
function V() {
|
|
68
|
-
S.forEach((e) => void e());
|
|
69
|
-
}
|
|
70
|
-
function K() {
|
|
71
|
-
I.forEach((e) => void e());
|
|
72
|
-
}
|
|
73
|
-
function N(e) {
|
|
74
|
-
return w(m, e);
|
|
75
|
-
}
|
|
76
|
-
function _(e) {
|
|
77
|
-
return w(p, e);
|
|
78
|
-
}
|
|
79
|
-
function x(e) {
|
|
80
|
-
return w(S, e);
|
|
81
|
-
}
|
|
82
|
-
function C(e) {
|
|
83
|
-
return w(I, e);
|
|
84
|
-
}
|
|
85
|
-
function G() {
|
|
86
|
-
const e = r(!1), n = r(!1), i = r(!1);
|
|
87
|
-
async function u(t) {
|
|
88
|
-
e.value = !0;
|
|
89
|
-
const {
|
|
90
|
-
data: a
|
|
91
|
-
} = await f.auth.signIn.post({
|
|
92
|
-
email: t.email,
|
|
93
|
-
password: t.password
|
|
94
|
-
});
|
|
95
|
-
e.value = !1, a && (g(a.jwtToken), P(a));
|
|
96
|
-
}
|
|
97
|
-
async function o(t) {
|
|
98
|
-
n.value = !0;
|
|
99
|
-
const {
|
|
100
|
-
error: a
|
|
101
|
-
} = await f.auth.signUp.post({
|
|
102
|
-
email: t.email,
|
|
103
|
-
userToken: t.userToken,
|
|
104
|
-
emailVerifyId: t.emailVerifyId,
|
|
105
|
-
password: t.password,
|
|
106
|
-
referrerId: t.referrerId
|
|
107
|
-
});
|
|
108
|
-
n.value = !1, a || (l.value = "signIn", R());
|
|
109
|
-
}
|
|
110
|
-
async function T(t) {
|
|
111
|
-
i.value = !0;
|
|
112
|
-
const {
|
|
113
|
-
error: a
|
|
114
|
-
} = await f.auth.resetPassword.post({
|
|
115
|
-
email: t.email,
|
|
116
|
-
userToken: t.userToken,
|
|
117
|
-
emailVerifyId: t.emailVerifyId,
|
|
118
|
-
password: t.password
|
|
119
|
-
});
|
|
120
|
-
i.value = !1, a || (l.value = "signIn", V());
|
|
121
|
-
}
|
|
122
|
-
function y() {
|
|
123
|
-
l.value = "signUp";
|
|
124
|
-
}
|
|
125
|
-
function U() {
|
|
126
|
-
l.value = "resetPassword";
|
|
127
|
-
}
|
|
128
|
-
function L() {
|
|
129
|
-
l.value = "signIn";
|
|
130
|
-
}
|
|
131
|
-
return {
|
|
132
|
-
signInSubmit: u,
|
|
133
|
-
signUpSubmit: o,
|
|
134
|
-
resetPasswordSubmit: T,
|
|
135
|
-
currentView: l,
|
|
136
|
-
authSignInLoading: e,
|
|
137
|
-
authSignUpLoading: n,
|
|
138
|
-
resetPasswordLoading: i,
|
|
139
|
-
switchSignUp: y,
|
|
140
|
-
switchResetPassword: U,
|
|
141
|
-
switchSignIn: L,
|
|
142
|
-
onSignIn: N,
|
|
143
|
-
onSignUp: _,
|
|
144
|
-
onResetPassword: x,
|
|
145
|
-
onSignOut: C,
|
|
146
|
-
jwtToken: A(s),
|
|
147
|
-
getToken: j,
|
|
148
|
-
setToken: g,
|
|
149
|
-
restoreSession: b,
|
|
150
|
-
clearAuth: F
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
const c = r(null), v = r(!1), d = r(!1), Y = E(() => !!c.value);
|
|
154
|
-
async function q() {
|
|
155
|
-
const {
|
|
156
|
-
getToken: e,
|
|
157
|
-
clearAuth: n
|
|
158
|
-
} = G();
|
|
159
|
-
if (!e()) {
|
|
160
|
-
console.warn("No authentication token found"), c.value = null;
|
|
161
|
-
return;
|
|
162
|
-
}
|
|
163
|
-
v.value = !0, d.value = !1;
|
|
164
|
-
const {
|
|
165
|
-
data: u,
|
|
166
|
-
error: o
|
|
167
|
-
} = await f.users.profile.post({});
|
|
168
|
-
v.value = !1, u ? (c.value = u, d.value = !0) : (c.value = null, d.value = !1, ((o == null ? void 0 : o.code) === 401 || (o == null ? void 0 : o.code) === 40101) && (console.warn("认证已过期,清除认证状态"), n()));
|
|
169
|
-
}
|
|
170
|
-
function z() {
|
|
171
|
-
c.value = null;
|
|
172
|
-
}
|
|
173
|
-
function H() {
|
|
174
|
-
return {
|
|
175
|
-
userProfile: c,
|
|
176
|
-
loading: v,
|
|
177
|
-
usersProfileSuccess: d,
|
|
178
|
-
isLoggedIn: Y,
|
|
179
|
-
fetchUserProfile: q,
|
|
180
|
-
clearUserProfile: z
|
|
181
|
-
};
|
|
182
|
-
}
|
|
183
|
-
export {
|
|
184
|
-
H as a,
|
|
185
|
-
G as u
|
|
186
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { ref as n, readonly as r, computed as c } from "vue";
|
|
2
|
-
const s = n(!1), i = n(0), t = n(0), g = n(0), o = n(0), a = n(0);
|
|
3
|
-
function e() {
|
|
4
|
-
s.value = !1;
|
|
5
|
-
}
|
|
6
|
-
function p() {
|
|
7
|
-
return {
|
|
8
|
-
isOpen: c(() => s.value),
|
|
9
|
-
open: () => {
|
|
10
|
-
s.value = !0;
|
|
11
|
-
},
|
|
12
|
-
close: e,
|
|
13
|
-
toggle: () => {
|
|
14
|
-
s.value = !s.value;
|
|
15
|
-
},
|
|
16
|
-
setOpen: (u) => {
|
|
17
|
-
s.value = u;
|
|
18
|
-
},
|
|
19
|
-
settingTrigger: r(i),
|
|
20
|
-
openSetting: () => {
|
|
21
|
-
e(), i.value++;
|
|
22
|
-
},
|
|
23
|
-
subscriptionsTrigger: r(t),
|
|
24
|
-
openSubscriptions: () => {
|
|
25
|
-
e(), t.value++;
|
|
26
|
-
},
|
|
27
|
-
messagesTrigger: r(g),
|
|
28
|
-
openMessages: () => {
|
|
29
|
-
e(), g.value++;
|
|
30
|
-
},
|
|
31
|
-
feedbackTrigger: r(o),
|
|
32
|
-
openFeedback: () => {
|
|
33
|
-
e(), o.value++;
|
|
34
|
-
},
|
|
35
|
-
invitationsTrigger: r(a),
|
|
36
|
-
openInvitations: () => {
|
|
37
|
-
e(), a.value++;
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
export {
|
|
42
|
-
p as u
|
|
43
|
-
};
|