@huyooo/ui 2.0.2 → 2.0.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-CPTk5V2I.js → AuthkitAppSetting-D_94iUEG.js} +1 -1
- package/dist/{Contact-CterQK1Z.js → Contact-CBGSJC2q.js} +2 -2
- package/dist/{FeedbackModal.vue_vue_type_script_setup_true_lang-DCIiz8aj.js → FeedbackModal.vue_vue_type_script_setup_true_lang-CnvQjQFT.js} +2 -2
- package/dist/{LegalDocViewer-CaL-MiTh.js → LegalDocViewer-D66BQiRu.js} +146 -146
- package/dist/{PaySubscriptions-DJBlwE0S.js → PaySubscriptions-BSkcUqHk.js} +1 -1
- package/dist/{PricingPlans-CqAaWjb9.js → PricingPlans-CyFvgf18.js} +1 -1
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-B8-BHJkc.js → Upload.vue_vue_type_script_setup_true_lang-oa6LJgCY.js} +1 -1
- package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-pd5gnq-G.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-DqgwJ7r3.js} +5 -5
- package/dist/{WidthContainer-Dv6p9qbu.js → WidthContainer-BIRNIRX5.js} +7 -7
- package/dist/authkit.js +4 -4
- package/dist/common/globalConfig.d.ts +0 -12
- package/dist/common.js +1 -1
- package/dist/components/Feedback/FeedbackDetails.vue.d.ts +2 -2
- package/dist/composables/SEO/useAppSEO.d.ts +3 -0
- package/dist/composables/SEO/usePageSEO.d.ts +4 -0
- package/dist/composables/SEO/useResolvedPageSEO.d.ts +3 -0
- package/dist/composables.d.ts +4 -2
- package/dist/composables.js +42 -44
- package/dist/feedback.d.ts +1 -0
- package/dist/feedback.js +1 -1
- package/dist/{fetchAuthPageAboutUs-2gv5Lke1.js → fetchAuthPageAboutUs-CP5a7jIo.js} +1 -1
- package/dist/main.d.ts +2 -2
- package/dist/main.js +239 -241
- package/dist/pay.js +2 -2
- package/dist/privateCom.js +1 -1
- package/dist/{runtime-DvVJS4Vm.js → runtime-qs4IasEB.js} +31 -37
- package/dist/runtime.d.ts +1 -2
- package/dist/style.css +1 -1
- package/dist/types/feedbackApi.d.ts +3 -0
- package/dist/types/seo.d.ts +15 -0
- package/dist/upload.js +2 -2
- package/dist/{useLegalDocs-Cpy86zzQ.js → useLegalDocs-BZlntAI7.js} +1 -1
- package/dist/usePageSEO-DwhbUUjW.js +189 -0
- package/dist/user.js +1 -1
- package/package.json +1 -1
- package/dist/composables/useSEO.d.ts +0 -46
- package/dist/useSEO-Da2r63SX.js +0 -224
package/dist/pay.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as e, u as t, a as n, b as u, v as r } from "./PaySubscriptions-
|
|
2
|
-
import { P as o, a as P, b as p, c as m, p as c, r as l } from "./PricingPlans-
|
|
1
|
+
import { P as e, u as t, a as n, b as u, v as r } from "./PaySubscriptions-BSkcUqHk.js";
|
|
2
|
+
import { P as o, a as P, b as p, c as m, p as c, r as l } from "./PricingPlans-CyFvgf18.js";
|
|
3
3
|
import { u as y, a as S } from "./useSubscriptionCheckout-BDDCRxSs.js";
|
|
4
4
|
import { c as b, u as f, a as v, b as x } from "./useBillingStatusOptions-Br-iL77Z.js";
|
|
5
5
|
export {
|
package/dist/privateCom.js
CHANGED
|
@@ -19,11 +19,7 @@ const it = {
|
|
|
19
19
|
region: "ap-beijing",
|
|
20
20
|
web3formsAccessKey: "72604aac-d55e-4df0-9bcf-31b2206b3753"
|
|
21
21
|
};
|
|
22
|
-
|
|
23
|
-
function cn(W) {
|
|
24
|
-
Object.assign(Gt, W);
|
|
25
|
-
}
|
|
26
|
-
function $t(W) {
|
|
22
|
+
function Gt(W) {
|
|
27
23
|
return W.theme !== void 0 && qt(W.theme), Object.freeze({
|
|
28
24
|
appId: W.appId,
|
|
29
25
|
authPrefixUrl: W.endpoints.auth,
|
|
@@ -44,7 +40,7 @@ function $t(W) {
|
|
|
44
40
|
getAccessToken: W.getAccessToken
|
|
45
41
|
});
|
|
46
42
|
}
|
|
47
|
-
const
|
|
43
|
+
const $t = {
|
|
48
44
|
// 图片
|
|
49
45
|
jpg: "image/jpeg",
|
|
50
46
|
jpeg: "image/jpeg",
|
|
@@ -170,13 +166,13 @@ const Wt = {
|
|
|
170
166
|
log: "text/plain",
|
|
171
167
|
plist: "application/x-plist"
|
|
172
168
|
};
|
|
173
|
-
function
|
|
169
|
+
function Wt(W, Pe) {
|
|
174
170
|
var J;
|
|
175
171
|
const _ = (J = W.split(".").pop()) == null ? void 0 : J.toLowerCase();
|
|
176
|
-
return _ &&
|
|
172
|
+
return _ && $t[_] || "application/octet-stream";
|
|
177
173
|
}
|
|
178
|
-
function
|
|
179
|
-
return W.type && W.type !== "application/octet-stream" && W.type !== "" ? W.type :
|
|
174
|
+
function Qt(W) {
|
|
175
|
+
return W.type && W.type !== "application/octet-stream" && W.type !== "" ? W.type : Wt(W.name);
|
|
180
176
|
}
|
|
181
177
|
var wt = { exports: {} };
|
|
182
178
|
(function(W, Pe) {
|
|
@@ -7366,15 +7362,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7366
7362
|
);
|
|
7367
7363
|
});
|
|
7368
7364
|
})(wt);
|
|
7369
|
-
var
|
|
7370
|
-
const
|
|
7371
|
-
function
|
|
7365
|
+
var Jt = wt.exports;
|
|
7366
|
+
const Xt = /* @__PURE__ */ Ht(Jt), Zt = 5 * 1024 * 1024;
|
|
7367
|
+
function Yt() {
|
|
7372
7368
|
async function W(Pe) {
|
|
7373
7369
|
var A, j;
|
|
7374
7370
|
let _ = null;
|
|
7375
7371
|
const J = () => {
|
|
7376
7372
|
_ && E.cancelTask(_);
|
|
7377
|
-
}, E = new
|
|
7373
|
+
}, E = new Xt({
|
|
7378
7374
|
getAuthorization(L, N) {
|
|
7379
7375
|
N({
|
|
7380
7376
|
TmpSecretId: Pe.credentials.tmpSecretId,
|
|
@@ -7390,7 +7386,7 @@ function en() {
|
|
|
7390
7386
|
Region: Pe.region,
|
|
7391
7387
|
Key: Pe.key,
|
|
7392
7388
|
Body: Pe.file,
|
|
7393
|
-
SliceSize:
|
|
7389
|
+
SliceSize: Zt,
|
|
7394
7390
|
onProgress: Pe.onProgress,
|
|
7395
7391
|
onTaskReady(L) {
|
|
7396
7392
|
var N;
|
|
@@ -7410,10 +7406,10 @@ function en() {
|
|
|
7410
7406
|
upload: W
|
|
7411
7407
|
};
|
|
7412
7408
|
}
|
|
7413
|
-
function
|
|
7409
|
+
function en(W) {
|
|
7414
7410
|
return !!W && typeof W == "object" && "Key" in W && typeof W.Key == "string" && "Bucket" in W && typeof W.Bucket == "string" && "Region" in W && typeof W.Region == "string" && "TmpSecretId" in W && typeof W.TmpSecretId == "string" && "TmpSecretKey" in W && typeof W.TmpSecretKey == "string" && "SessionToken" in W && typeof W.SessionToken == "string" && "StartTime" in W && typeof W.StartTime == "number" && "ExpiredTime" in W && typeof W.ExpiredTime == "number";
|
|
7415
7411
|
}
|
|
7416
|
-
function
|
|
7412
|
+
function tn(W) {
|
|
7417
7413
|
return W && typeof W == "object" && "id" in W ? String(W.id) : "";
|
|
7418
7414
|
}
|
|
7419
7415
|
function Rt(W, Pe) {
|
|
@@ -7426,21 +7422,21 @@ function Bt(W) {
|
|
|
7426
7422
|
if (W != null && W.aborted)
|
|
7427
7423
|
throw It();
|
|
7428
7424
|
}
|
|
7429
|
-
function
|
|
7425
|
+
function nn(W) {
|
|
7430
7426
|
return W instanceof Error ? W : new Error("上传失败");
|
|
7431
7427
|
}
|
|
7432
|
-
function
|
|
7428
|
+
function on(W, Pe = Yt()) {
|
|
7433
7429
|
async function _(J) {
|
|
7434
7430
|
var E;
|
|
7435
7431
|
try {
|
|
7436
7432
|
Bt(J.signal);
|
|
7437
|
-
const U =
|
|
7433
|
+
const U = Qt(J.file), A = await W.ones.files.getKeyAndCredentials.post({
|
|
7438
7434
|
filename: J.file.name,
|
|
7439
7435
|
bucketId: J.bucketId,
|
|
7440
7436
|
size: J.file.size,
|
|
7441
7437
|
type: U
|
|
7442
7438
|
});
|
|
7443
|
-
if (A.error || !
|
|
7439
|
+
if (A.error || !en(A.data))
|
|
7444
7440
|
throw Rt(A.error, "获取上传凭证失败");
|
|
7445
7441
|
Bt(J.signal);
|
|
7446
7442
|
const j = A.data;
|
|
@@ -7469,7 +7465,7 @@ function rn(W, Pe = en()) {
|
|
|
7469
7465
|
size: J.file.size,
|
|
7470
7466
|
type: U,
|
|
7471
7467
|
webkitRelativePath: J.file.webkitRelativePath
|
|
7472
|
-
}), N =
|
|
7468
|
+
}), N = tn(L.data);
|
|
7473
7469
|
if (L.error || !N)
|
|
7474
7470
|
throw Rt(L.error, "登记上传文件失败");
|
|
7475
7471
|
const s = await W.ones.files.update.post({
|
|
@@ -7488,7 +7484,7 @@ function rn(W, Pe = en()) {
|
|
|
7488
7484
|
} catch (U) {
|
|
7489
7485
|
return {
|
|
7490
7486
|
data: null,
|
|
7491
|
-
error: (E = J.signal) != null && E.aborted ? It() :
|
|
7487
|
+
error: (E = J.signal) != null && E.aborted ? It() : nn(U)
|
|
7492
7488
|
};
|
|
7493
7489
|
}
|
|
7494
7490
|
}
|
|
@@ -7498,10 +7494,10 @@ function rn(W, Pe = en()) {
|
|
|
7498
7494
|
}
|
|
7499
7495
|
const Ft = Symbol("huyooo-runtime");
|
|
7500
7496
|
let lt = null;
|
|
7501
|
-
function
|
|
7497
|
+
function an(W) {
|
|
7502
7498
|
if (lt)
|
|
7503
7499
|
throw new Error("Huyooo UI Runtime 已初始化,不能重复创建");
|
|
7504
|
-
const Pe =
|
|
7500
|
+
const Pe = Gt(W), _ = Kt(Pe), J = on(_), E = {
|
|
7505
7501
|
config: Pe,
|
|
7506
7502
|
api: _,
|
|
7507
7503
|
upload: J
|
|
@@ -7513,12 +7509,12 @@ function ln(W) {
|
|
|
7513
7509
|
}
|
|
7514
7510
|
};
|
|
7515
7511
|
}
|
|
7516
|
-
function
|
|
7512
|
+
function cn() {
|
|
7517
7513
|
if (!lt)
|
|
7518
7514
|
throw new Error("请先在应用入口调用 createHuyoooUI(config)");
|
|
7519
7515
|
return lt;
|
|
7520
7516
|
}
|
|
7521
|
-
function
|
|
7517
|
+
function ln() {
|
|
7522
7518
|
const W = Mt(Ft);
|
|
7523
7519
|
if (!W)
|
|
7524
7520
|
throw new Error("当前 Vue 应用未安装 createHuyoooUI(config)");
|
|
@@ -7526,14 +7522,12 @@ function fn() {
|
|
|
7526
7522
|
}
|
|
7527
7523
|
export {
|
|
7528
7524
|
Ft as H,
|
|
7529
|
-
|
|
7530
|
-
|
|
7531
|
-
|
|
7532
|
-
|
|
7533
|
-
|
|
7534
|
-
|
|
7535
|
-
|
|
7536
|
-
|
|
7537
|
-
cn as s,
|
|
7538
|
-
fn as u
|
|
7525
|
+
zt as a,
|
|
7526
|
+
Yt as b,
|
|
7527
|
+
an as c,
|
|
7528
|
+
on as d,
|
|
7529
|
+
Qt as e,
|
|
7530
|
+
cn as g,
|
|
7531
|
+
qt as s,
|
|
7532
|
+
ln as u
|
|
7539
7533
|
};
|
package/dist/runtime.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export interface HuyoooRuntime {
|
|
|
8
8
|
upload: BrowserUploadService;
|
|
9
9
|
}
|
|
10
10
|
export declare const HUYOOO_RUNTIME_KEY: InjectionKey<HuyoooRuntime>;
|
|
11
|
-
interface HuyoooUIHostApp {
|
|
11
|
+
export interface HuyoooUIHostApp {
|
|
12
12
|
provide<T>(key: InjectionKey<T>, value: T): unknown;
|
|
13
13
|
}
|
|
14
14
|
/** 显式创建一个应用级 Runtime;配置与 API Client 在此同步固定。 */
|
|
@@ -19,4 +19,3 @@ export declare function createHuyoooUI(options: CreateHuyoooUIOptions): {
|
|
|
19
19
|
/** 供非组件服务读取启动时创建的只读 Runtime。 */
|
|
20
20
|
export declare function getHuyoooRuntime(): HuyoooRuntime;
|
|
21
21
|
export declare function useHuyoooRuntime(): HuyoooRuntime;
|
|
22
|
-
export {};
|