@huyooo/ui 0.15.0 → 0.15.2
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-Xe-QQSQ4.js → AuthkitAppSetting-Ds7mYFV5.js} +6 -6
- package/dist/{AuthkitGithubBinding-Uya3rVdX.js → AuthkitGithubBinding-LVDS1PNQ.js} +231 -228
- package/dist/{Clipboard-C8ncjaAJ.js → Clipboard-R3AURqvU.js} +1 -1
- package/dist/{Contact-mb7deQOs.js → Contact-B3AMSHoN.js} +2 -2
- package/dist/{FeedbackItem-C4MZUC-3.js → FeedbackItem-DkvSQT33.js} +3 -3
- package/dist/{FeedbackModal-yVKcsuaE.js → FeedbackModal-C45pNoiw.js} +3 -3
- package/dist/{MessageHandle-rRAQnE-q.js → MessageHandle-CEQtGyVZ.js} +2 -2
- package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-CsXEBH4f.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-87v_RIQa.js} +2 -2
- package/dist/{PaySubscriptions-B6R71CHm.js → PaySubscriptions-D3g1OhiA.js} +4 -4
- package/dist/{PricingPlans-Ddl98xpp.js → PricingPlans-DXea7rl0.js} +79 -80
- package/dist/{ReferrerReferees-DFCwvXJ6.js → ReferrerReferees-BxmZ1w_L.js} +4 -4
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-dLSky4Yx.js → Upload.vue_vue_type_script_setup_true_lang-DLKSHzxG.js} +1 -1
- package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-f2mzNg6i.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-C7mV8kGe.js} +9 -9
- package/dist/{WidthContainer-DSxG-FRN.js → WidthContainer-DKasAIgU.js} +9 -9
- package/dist/{apiClients-CkI47p36.js → apiClients-DT7o0IpO.js} +124 -109
- package/dist/authkit.js +9 -9
- package/dist/common.js +1 -1
- package/dist/composables/Billing/useBillingPlans.d.ts +1 -19
- package/dist/composables.js +13 -13
- package/dist/feedback.js +3 -3
- package/dist/main.d.ts +1 -0
- package/dist/main.js +248 -243
- package/dist/message.js +3 -3
- package/dist/pay.js +4 -4
- package/dist/privateCom.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/api/billing.generated.d.ts +2 -6
- package/dist/types/api/log.generated.d.ts +4 -2
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAppsAuthPageInfo-nCjfAjiw.js → useAuthkitAppsAuthPageInfo-DScDQfj5.js} +1 -1
- package/dist/{useAuthkitAuth-C--qS6UE.js → useAuthkitAuth-DpdKRuJm.js} +65 -67
- package/dist/{useAuthkitCreateAndUpdate-u-ceTc-m.js → useAuthkitCreateAndUpdate-MzA4qtTh.js} +1 -1
- package/dist/{useAuthkitUsersProfile-BC5EsA2f.js → useAuthkitUsersProfile-aw_A7IWb.js} +2 -2
- package/dist/{useBillingStatusOptions-D5Ehwtbj.js → useBillingStatusOptions-CAsu1hrf.js} +3 -3
- package/dist/{useEnsureAuthenticated-C4tsSfv6.js → useEnsureAuthenticated-BEKhtQAl.js} +2 -2
- package/dist/{useLegalLinks-DeXLE-yv.js → useLegalLinks-BijRF_ZD.js} +2 -2
- package/dist/{useMessageNotifications-BMUx5xfX.js → useMessageNotifications-CFku0c2R.js} +1 -1
- package/dist/{useRoutePermission-CxRJlooW.js → useRoutePermission-v4_0B-aO.js} +2 -2
- package/dist/{useSEO-DFmbAH-7.js → useSEO-CbHCw4gq.js} +1 -1
- package/dist/{useSubscriptionCheckout-CHAF20s-.js → useSubscriptionCheckout-BjPiHSjA.js} +103 -104
- package/dist/{useTableHandle-9alnSWt0.js → useTableHandle-TDJa_Czn.js} +1 -1
- package/dist/{useUploadCos-DGPnLOC9.js → useUploadCos-CvG6EL5Q.js} +1 -1
- package/dist/user.js +1 -1
- package/dist/utils/apiMiddlewares.d.ts +3 -0
- package/dist/utils/authkit.d.ts +6 -0
- package/package.json +2 -2
|
@@ -1,17 +1,53 @@
|
|
|
1
|
-
import { eden as n, defineMiddleware as
|
|
2
|
-
import { ref as p, computed as
|
|
1
|
+
import { eden as n, defineMiddleware as c, createClient as S } from "@vafast/api-client";
|
|
2
|
+
import { ref as p, computed as m } from "vue";
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { Message as
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import { Message as j } from "@arco-design/web-vue";
|
|
5
|
+
function C(e, t = 3) {
|
|
6
|
+
const r = e.indexOf("@");
|
|
7
|
+
if (r > 1) {
|
|
8
|
+
const a = e.slice(0, t), i = e.slice(r);
|
|
9
|
+
return a + "***" + i;
|
|
10
|
+
}
|
|
11
|
+
return e;
|
|
12
|
+
}
|
|
13
|
+
const f = /* @__PURE__ */ new Set();
|
|
14
|
+
function ee(e) {
|
|
15
|
+
return f.add(e), () => {
|
|
16
|
+
f.delete(e);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function E() {
|
|
20
|
+
try {
|
|
21
|
+
localStorage.removeItem("jwtToken"), localStorage.removeItem("refreshToken");
|
|
22
|
+
} catch (e) {
|
|
23
|
+
console.warn("Failed to clear localStorage:", e);
|
|
24
|
+
}
|
|
25
|
+
f.forEach((e) => e());
|
|
26
|
+
}
|
|
27
|
+
function B() {
|
|
28
|
+
try {
|
|
29
|
+
return localStorage.getItem("refreshToken");
|
|
30
|
+
} catch (e) {
|
|
31
|
+
return console.warn("Failed to get refreshToken from localStorage:", e), null;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
function O(e) {
|
|
35
|
+
try {
|
|
36
|
+
localStorage.setItem("jwtToken", e);
|
|
37
|
+
} catch (t) {
|
|
38
|
+
console.warn("Failed to update jwtToken in localStorage:", t);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
const v = p(void 0);
|
|
42
|
+
function x(e) {
|
|
7
43
|
var t, r;
|
|
8
44
|
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;
|
|
9
45
|
}
|
|
10
|
-
function
|
|
46
|
+
function g(e) {
|
|
11
47
|
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
48
|
}
|
|
13
|
-
function
|
|
14
|
-
|
|
49
|
+
function re(e) {
|
|
50
|
+
v.value = e, g(x(e));
|
|
15
51
|
}
|
|
16
52
|
let o = {
|
|
17
53
|
appId: "",
|
|
@@ -28,78 +64,62 @@ let o = {
|
|
|
28
64
|
bucket: "ones-1358549778",
|
|
29
65
|
region: "ap-beijing",
|
|
30
66
|
web3formsAccessKey: "72604aac-d55e-4df0-9bcf-31b2206b3753"
|
|
31
|
-
},
|
|
32
|
-
function
|
|
33
|
-
Object.assign(
|
|
67
|
+
}, M = {};
|
|
68
|
+
function te(e) {
|
|
69
|
+
Object.assign(M, e);
|
|
34
70
|
}
|
|
35
|
-
function
|
|
36
|
-
o.appId = e.appId, e.theme !== void 0 && (
|
|
71
|
+
function oe(e) {
|
|
72
|
+
o.appId = e.appId, e.theme !== void 0 && (v.value = e.theme, g(x(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.pricingUrl !== void 0 && (o.pricingUrl = e.pricingUrl || "/Pricing"), e.openPricing !== void 0 && (o.openPricing = e.openPricing), 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);
|
|
37
73
|
}
|
|
38
|
-
function
|
|
74
|
+
function $(e) {
|
|
39
75
|
return n(e);
|
|
40
76
|
}
|
|
41
|
-
function
|
|
77
|
+
function z(e) {
|
|
42
78
|
return n(e);
|
|
43
79
|
}
|
|
44
|
-
function
|
|
80
|
+
function K(e) {
|
|
45
81
|
return n(e);
|
|
46
82
|
}
|
|
47
|
-
function
|
|
83
|
+
function L(e) {
|
|
48
84
|
return n(e);
|
|
49
85
|
}
|
|
50
|
-
function
|
|
86
|
+
function _(e) {
|
|
51
87
|
return n(e);
|
|
52
88
|
}
|
|
53
|
-
function
|
|
89
|
+
function D(e) {
|
|
54
90
|
return n(e);
|
|
55
91
|
}
|
|
56
|
-
function Y(e, t = 3) {
|
|
57
|
-
const r = e.indexOf("@");
|
|
58
|
-
if (r > 1) {
|
|
59
|
-
const a = e.slice(0, t), i = e.slice(r);
|
|
60
|
-
return a + "***" + i;
|
|
61
|
-
}
|
|
62
|
-
return e;
|
|
63
|
-
}
|
|
64
|
-
function x() {
|
|
65
|
-
try {
|
|
66
|
-
localStorage.removeItem("jwtToken"), localStorage.removeItem("refreshToken");
|
|
67
|
-
} catch (e) {
|
|
68
|
-
console.warn("Failed to clear localStorage:", e);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
function $() {
|
|
72
|
-
try {
|
|
73
|
-
return localStorage.getItem("refreshToken");
|
|
74
|
-
} catch (e) {
|
|
75
|
-
return console.warn("Failed to get refreshToken from localStorage:", e), null;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
function K(e) {
|
|
79
|
-
try {
|
|
80
|
-
localStorage.setItem("jwtToken", e);
|
|
81
|
-
} catch (t) {
|
|
82
|
-
console.warn("Failed to update jwtToken in localStorage:", t);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
92
|
const k = p(!1), y = p("signIn");
|
|
86
|
-
function
|
|
93
|
+
function N(e) {
|
|
87
94
|
e != null && e.view && (y.value = e.view), k.value = !0;
|
|
88
95
|
}
|
|
89
|
-
function
|
|
96
|
+
function F() {
|
|
90
97
|
k.value = !1;
|
|
91
98
|
}
|
|
92
|
-
function
|
|
99
|
+
function q() {
|
|
93
100
|
return {
|
|
94
|
-
open:
|
|
95
|
-
close:
|
|
96
|
-
isOpen:
|
|
97
|
-
view:
|
|
101
|
+
open: N,
|
|
102
|
+
close: F,
|
|
103
|
+
isOpen: m(() => k.value),
|
|
104
|
+
view: m(() => y.value)
|
|
98
105
|
};
|
|
99
106
|
}
|
|
100
|
-
const d = 40101;
|
|
101
|
-
|
|
102
|
-
|
|
107
|
+
const d = 40101, U = 401;
|
|
108
|
+
function G(e) {
|
|
109
|
+
var t;
|
|
110
|
+
return e.status === U || ((t = e.error) == null ? void 0 : t.code) === U;
|
|
111
|
+
}
|
|
112
|
+
function H() {
|
|
113
|
+
const {
|
|
114
|
+
open: e
|
|
115
|
+
} = q();
|
|
116
|
+
e();
|
|
117
|
+
}
|
|
118
|
+
function T() {
|
|
119
|
+
E(), H();
|
|
120
|
+
}
|
|
121
|
+
let u = !1, h = [];
|
|
122
|
+
function P(e, t = null) {
|
|
103
123
|
h.forEach(({
|
|
104
124
|
resolve: r,
|
|
105
125
|
reject: a
|
|
@@ -107,8 +127,8 @@ function m(e, t = null) {
|
|
|
107
127
|
e ? a(e) : t && r(t);
|
|
108
128
|
}), h = [];
|
|
109
129
|
}
|
|
110
|
-
async function
|
|
111
|
-
const e =
|
|
130
|
+
async function J() {
|
|
131
|
+
const e = B();
|
|
112
132
|
if (!e)
|
|
113
133
|
throw new Error("No refresh token available");
|
|
114
134
|
try {
|
|
@@ -123,72 +143,64 @@ async function F() {
|
|
|
123
143
|
})
|
|
124
144
|
})).json();
|
|
125
145
|
if (r.jwtToken)
|
|
126
|
-
return
|
|
146
|
+
return O(r.jwtToken), r.refreshToken && localStorage.setItem("refreshToken", r.refreshToken), r.jwtToken;
|
|
127
147
|
throw new Error(r.message || "Token refresh failed");
|
|
128
148
|
} catch (t) {
|
|
129
149
|
throw console.error("Token refresh failed:", t), t;
|
|
130
150
|
}
|
|
131
151
|
}
|
|
132
|
-
const
|
|
152
|
+
const V = c(async (e, t) => (e.headers.set("app-id", o.appId), t()), {
|
|
133
153
|
name: "app-id"
|
|
134
|
-
}),
|
|
154
|
+
}), W = c(async (e, t) => {
|
|
135
155
|
const r = localStorage.getItem("jwtToken");
|
|
136
156
|
return r && e.headers.set("authorization", `Bearer ${r}`), t();
|
|
137
157
|
}, {
|
|
138
158
|
name: "token"
|
|
139
|
-
}),
|
|
159
|
+
}), w = c(async (e, t) => {
|
|
140
160
|
var a;
|
|
141
161
|
const r = await t();
|
|
142
162
|
if (((a = r.error) == null ? void 0 : a.code) === d) {
|
|
143
|
-
if (
|
|
144
|
-
return new Promise((i,
|
|
163
|
+
if (u)
|
|
164
|
+
return new Promise((i, b) => {
|
|
145
165
|
h.push({
|
|
146
|
-
resolve: async (
|
|
147
|
-
e.headers.set("authorization", `Bearer ${
|
|
148
|
-
const
|
|
149
|
-
i(
|
|
166
|
+
resolve: async (I) => {
|
|
167
|
+
e.headers.set("authorization", `Bearer ${I}`);
|
|
168
|
+
const R = await t();
|
|
169
|
+
i(R);
|
|
150
170
|
},
|
|
151
171
|
reject: () => {
|
|
152
|
-
|
|
172
|
+
b(r);
|
|
153
173
|
}
|
|
154
174
|
});
|
|
155
175
|
});
|
|
156
|
-
|
|
176
|
+
u = !0;
|
|
157
177
|
try {
|
|
158
|
-
const i = await
|
|
159
|
-
return
|
|
178
|
+
const i = await J();
|
|
179
|
+
return P(null, i), e.headers.set("authorization", `Bearer ${i}`), await t();
|
|
160
180
|
} catch (i) {
|
|
161
|
-
|
|
162
|
-
const {
|
|
163
|
-
open: c
|
|
164
|
-
} = g();
|
|
165
|
-
return c(), r;
|
|
181
|
+
return P(i, null), T(), r;
|
|
166
182
|
} finally {
|
|
167
|
-
|
|
183
|
+
u = !1;
|
|
168
184
|
}
|
|
169
185
|
}
|
|
170
186
|
return r;
|
|
171
187
|
}, {
|
|
172
188
|
name: "token-refresh"
|
|
173
|
-
}),
|
|
189
|
+
}), A = c(async (e, t) => {
|
|
174
190
|
var a;
|
|
175
191
|
const r = await t();
|
|
176
|
-
|
|
177
|
-
x();
|
|
178
|
-
const {
|
|
179
|
-
open: i
|
|
180
|
-
} = g();
|
|
181
|
-
return i(), r;
|
|
182
|
-
}
|
|
183
|
-
return r.error && r.error.code !== d && A.error(r.error.message || "请求失败"), r;
|
|
192
|
+
return G(r) && ((a = r.error) == null ? void 0 : a.code) !== d ? (T(), r) : (r.error && r.error.code !== d && j.error(r.error.message || "请求失败"), r);
|
|
184
193
|
}, {
|
|
185
194
|
name: "error-message"
|
|
186
195
|
});
|
|
196
|
+
function ae(e) {
|
|
197
|
+
return e.use(w).use(A);
|
|
198
|
+
}
|
|
187
199
|
function s(e) {
|
|
188
|
-
return
|
|
200
|
+
return S({
|
|
189
201
|
baseURL: e,
|
|
190
202
|
timeout: 3e4
|
|
191
|
-
}).use(
|
|
203
|
+
}).use(V).use(W).use(w).use(A);
|
|
192
204
|
}
|
|
193
205
|
function l(e) {
|
|
194
206
|
let t = null;
|
|
@@ -198,24 +210,27 @@ function l(e) {
|
|
|
198
210
|
}
|
|
199
211
|
});
|
|
200
212
|
}
|
|
201
|
-
const
|
|
213
|
+
const ie = l(() => z(s(o.authPrefixUrl))), ne = l(() => K(s(o.billingPrefixUrl))), se = l(() => _(s(o.onesPrefixUrl))), le = l(() => L(s(o.logPrefixUrl))), ce = l(() => $(s(o.aiPrefixUrl))), ue = l(() => D(s(o.webhookPrefixUrl)));
|
|
202
214
|
export {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
215
|
+
M as a,
|
|
216
|
+
v as b,
|
|
217
|
+
te as c,
|
|
218
|
+
re as d,
|
|
219
|
+
ie as e,
|
|
220
|
+
ee as f,
|
|
209
221
|
o as g,
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
oe as
|
|
222
|
+
ne as h,
|
|
223
|
+
V as i,
|
|
224
|
+
w as j,
|
|
225
|
+
A as k,
|
|
226
|
+
ce as l,
|
|
227
|
+
le as m,
|
|
228
|
+
ae as n,
|
|
229
|
+
se as o,
|
|
230
|
+
C as p,
|
|
231
|
+
E as r,
|
|
232
|
+
oe as s,
|
|
233
|
+
W as t,
|
|
234
|
+
q as u,
|
|
235
|
+
ue as w
|
|
221
236
|
};
|
package/dist/authkit.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { A as a, B as s, E as u, a as e, b as h, O as A, P as r, c as o, _ as k, d as n, S as d, e as p, u as P } from "./AuthkitAppSetting-
|
|
2
|
-
import { A as l, a as m, b as g, c as S, d as O, e as c, f as L, _ as U, g as w, O as x, h as E, P as b, 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 } from "./AuthkitGithubBinding-
|
|
3
|
-
import { u as q } from "./useAuthkitAppsAuthPageInfo-
|
|
4
|
-
import { u as K } from "./useAuthkitAuth-
|
|
5
|
-
import { u as Y } from "./apiClients-
|
|
6
|
-
import { u as H } from "./useEnsureAuthenticated-
|
|
7
|
-
import { L as N, a as Q, b as W, u as X } from "./useLegalLinks-
|
|
8
|
-
import { u as $ } from "./useAuthkitUsersProfile-
|
|
9
|
-
import { u as it } from "./useAuthkitCreateAndUpdate-
|
|
1
|
+
import { A as a, B as s, E as u, a as e, b as h, O as A, P as r, c as o, _ as k, d as n, S as d, e as p, u as P } from "./AuthkitAppSetting-Ds7mYFV5.js";
|
|
2
|
+
import { A as l, a as m, b as g, c as S, d as O, e as c, f as L, _ as U, g as w, O as x, h as E, P as b, 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 } from "./AuthkitGithubBinding-LVDS1PNQ.js";
|
|
3
|
+
import { u as q } from "./useAuthkitAppsAuthPageInfo-DScDQfj5.js";
|
|
4
|
+
import { u as K } from "./useAuthkitAuth-DpdKRuJm.js";
|
|
5
|
+
import { u as Y } from "./apiClients-DT7o0IpO.js";
|
|
6
|
+
import { u as H } from "./useEnsureAuthenticated-BEKhtQAl.js";
|
|
7
|
+
import { L as N, a as Q, b as W, u as X } from "./useLegalLinks-BijRF_ZD.js";
|
|
8
|
+
import { u as $ } from "./useAuthkitUsersProfile-aw_A7IWb.js";
|
|
9
|
+
import { u as it } from "./useAuthkitCreateAndUpdate-MzA4qtTh.js";
|
|
10
10
|
export {
|
|
11
11
|
a as AuthkitAppSetting,
|
|
12
12
|
l as AuthkitAuth,
|
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-DKasAIgU.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-BT-cnhLR.js";
|
|
4
4
|
import { L } from "./Logo-D7fyXyB-.js";
|
|
@@ -25,12 +25,12 @@ export interface BillingProduct {
|
|
|
25
25
|
id: string;
|
|
26
26
|
name: string;
|
|
27
27
|
description?: string;
|
|
28
|
-
features: BillingProductFeature[];
|
|
29
28
|
metadata?: Record<string, unknown>;
|
|
30
29
|
displayOrder?: number;
|
|
31
30
|
prices: BillingPrice[];
|
|
32
31
|
}
|
|
33
32
|
export interface BillingPlan extends BillingProduct {
|
|
33
|
+
features: BillingProductFeature[];
|
|
34
34
|
selectedPrice: BillingPrice;
|
|
35
35
|
}
|
|
36
36
|
export interface BillingSubscription {
|
|
@@ -96,15 +96,6 @@ export declare function useBillingPlans(defaultInterval?: BillingInterval | Bill
|
|
|
96
96
|
id: string;
|
|
97
97
|
name: string;
|
|
98
98
|
description?: string | undefined;
|
|
99
|
-
features: {
|
|
100
|
-
key: string;
|
|
101
|
-
name: string;
|
|
102
|
-
description?: string | undefined;
|
|
103
|
-
type: "boolean" | "quota" | "unlimited";
|
|
104
|
-
value?: boolean | number | undefined;
|
|
105
|
-
highlight?: boolean | undefined;
|
|
106
|
-
quotaPeriod?: BillingQuotaPeriod | undefined;
|
|
107
|
-
}[];
|
|
108
99
|
metadata?: Record<string, unknown> | undefined;
|
|
109
100
|
displayOrder?: number | undefined;
|
|
110
101
|
prices: {
|
|
@@ -130,15 +121,6 @@ export declare function useBillingPlans(defaultInterval?: BillingInterval | Bill
|
|
|
130
121
|
id: string;
|
|
131
122
|
name: string;
|
|
132
123
|
description?: string | undefined;
|
|
133
|
-
features: {
|
|
134
|
-
key: string;
|
|
135
|
-
name: string;
|
|
136
|
-
description?: string | undefined;
|
|
137
|
-
type: "boolean" | "quota" | "unlimited";
|
|
138
|
-
value?: boolean | number | undefined;
|
|
139
|
-
highlight?: boolean | undefined;
|
|
140
|
-
quotaPeriod?: BillingQuotaPeriod | undefined;
|
|
141
|
-
}[];
|
|
142
124
|
metadata?: Record<string, unknown> | undefined;
|
|
143
125
|
displayOrder?: number | undefined;
|
|
144
126
|
prices: {
|
package/dist/composables.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { u as a } from "./useAuthkitAuth-
|
|
2
|
-
import { g as o, a as u, b as r, s as i, c as n, d as f, u as p } from "./apiClients-
|
|
3
|
-
import { u as l } from "./useLegalLinks-
|
|
4
|
-
import { u as h } from "./useAuthkitUsersProfile-
|
|
5
|
-
import { u as S } from "./useAuthkitAppsAuthPageInfo-
|
|
6
|
-
import { u as C } from "./useAuthkitCreateAndUpdate-
|
|
7
|
-
import { u as d } from "./useMessageNotifications-
|
|
8
|
-
import { u as O, a as T, b as P, c as R } from "./useSEO-
|
|
9
|
-
import { u as E } from "./useTableHandle-
|
|
10
|
-
import { f as k, a as _, g as I, u as M, b as B, c as w, w as F } from "./useRoutePermission-
|
|
11
|
-
import { u as v } from "./useUploadCos-
|
|
1
|
+
import { u as a } from "./useAuthkitAuth-DpdKRuJm.js";
|
|
2
|
+
import { g as o, a as u, b as r, s as i, c as n, d as f, u as p } from "./apiClients-DT7o0IpO.js";
|
|
3
|
+
import { u as l } from "./useLegalLinks-BijRF_ZD.js";
|
|
4
|
+
import { u as h } from "./useAuthkitUsersProfile-aw_A7IWb.js";
|
|
5
|
+
import { u as S } from "./useAuthkitAppsAuthPageInfo-DScDQfj5.js";
|
|
6
|
+
import { u as C } from "./useAuthkitCreateAndUpdate-MzA4qtTh.js";
|
|
7
|
+
import { u as d } from "./useMessageNotifications-CFku0c2R.js";
|
|
8
|
+
import { u as O, a as T, b as P, c as R } from "./useSEO-CbHCw4gq.js";
|
|
9
|
+
import { u as E } from "./useTableHandle-TDJa_Czn.js";
|
|
10
|
+
import { f as k, a as _, g as I, u as M, b as B, c as w, w as F } from "./useRoutePermission-v4_0B-aO.js";
|
|
11
|
+
import { u as v } from "./useUploadCos-CvG6EL5Q.js";
|
|
12
12
|
import { u as G } from "./useUserMenu-ClPBlvaM.js";
|
|
13
|
-
import { u as H, a as V } from "./useSubscriptionCheckout-
|
|
14
|
-
import { I as j, P as q, R as z, c as J, u as Q, a as W, b as X } from "./useBillingStatusOptions-
|
|
13
|
+
import { u as H, a as V } from "./useSubscriptionCheckout-BjPiHSjA.js";
|
|
14
|
+
import { I as j, P as q, R as z, c as J, u as Q, a as W, b as X } from "./useBillingStatusOptions-CAsu1hrf.js";
|
|
15
15
|
export {
|
|
16
16
|
j as INVOICE_STATUS_FALLBACK,
|
|
17
17
|
q as POINTS_RECHARGE_STATUS_FALLBACK,
|
package/dist/feedback.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as b, a as s, F as d, b as F, c, d as o, R as t } from "./FeedbackModal-
|
|
2
|
-
import { C as r } from "./Clipboard-
|
|
3
|
-
import { F as m, a as n, b as f, c as i, d as p } from "./FeedbackItem-
|
|
1
|
+
import { B as b, a as s, F as d, b as F, c, d as o, R as t } from "./FeedbackModal-C45pNoiw.js";
|
|
2
|
+
import { C as r } from "./Clipboard-R3AURqvU.js";
|
|
3
|
+
import { F as m, a as n, b as f, c as i, d as p } from "./FeedbackItem-DkvSQT33.js";
|
|
4
4
|
export {
|
|
5
5
|
r as Clipboard,
|
|
6
6
|
b as FeedbackBubbleEnd,
|
package/dist/main.d.ts
CHANGED
|
@@ -14,3 +14,4 @@ export * from './privateCom';
|
|
|
14
14
|
export { createHead, type CreateClientHeadOptions, } from './head';
|
|
15
15
|
export { auth, billing, ones, log, ai, webhook } from './utils/apiClients';
|
|
16
16
|
export { api, type LegacyApiRequestConfig, type LegacyApiResponse } from './utils/legacyApi';
|
|
17
|
+
export { appIdMiddleware, tokenMiddleware, tokenRefreshMiddleware, errorMessageMiddleware, withAuthHandling, } from './utils/apiMiddlewares';
|