@huyooo/ui 2.2.3 → 2.2.7
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-DkkEPenO.js → AuthkitAppSetting-K0qhtQoU.js} +4 -4
- package/dist/{Contact-CtfToLPT.js → Contact-CNLjyOCR.js} +92 -89
- package/dist/{FeedbackModal.vue_vue_type_script_setup_true_lang-DIIH9PCN.js → FeedbackModal.vue_vue_type_script_setup_true_lang-hbfe8U5u.js} +2 -2
- package/dist/{LandingPageLinkGroup-C4iHX7Hz.js → LandingPageLinkGroup-B8ERKG5f.js} +63 -61
- package/dist/{LandingPageSectionTabs-Bl6X2W5W.js → LandingPageSectionTabs-BEAnU8B0.js} +1 -1
- package/dist/{LegalDocViewer-DZDBRGrC.js → LegalDocViewer-C6yZJ_kH.js} +7 -7
- package/dist/{PaySubscriptions-OZ6OFeQJ.js → PaySubscriptions-tJSQUmhE.js} +1 -1
- package/dist/{PricingPlans-BdG0qYFZ.js → PricingPlans-BKbMjHaY.js} +3 -3
- package/dist/{ReferrerReferees-d4JByWcG.js → ReferrerReferees-BQ0_OW74.js} +1 -1
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-DtciAodp.js → Upload.vue_vue_type_script_setup_true_lang-CZjNlns_.js} +1 -1
- package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BpQa21qc.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-K5_YUkGs.js} +5 -5
- package/dist/WidthContainer-ummelwr_.js +688 -0
- package/dist/authkit.js +8 -8
- package/dist/common/globalConfig.d.ts +5 -0
- package/dist/common.js +1 -1
- package/dist/components/MenuItem.vue.d.ts +1 -1
- package/dist/components/SvgIcon.vue.d.ts +1 -1
- package/dist/composables/Authkit/resolveRoutePermission.d.ts +10 -1
- package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +16 -0
- package/dist/composables/Authkit/useRoutePermission.d.ts +12 -1
- package/dist/composables.d.ts +1 -0
- package/dist/composables.js +49 -44
- package/dist/feedback.js +1 -1
- package/dist/{fetchAuthPageAboutUs-B6ZZylgG.js → fetchAuthPageAboutUs--dArFYk6.js} +2 -2
- package/dist/landingPage.js +2 -2
- package/dist/main.js +284 -279
- package/dist/pay.js +3 -3
- package/dist/privateCom.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/{runtime-B_xhJ3i8.js → runtime-CDEl4QQl.js} +129 -128
- package/dist/style.css +1 -1
- package/dist/types/api/auth.generated.d.ts +203 -13
- package/dist/types/app.d.ts +13 -0
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAppsAuthPageInfo-DPCwzF7j.js → useAuthkitAppsAuthPageInfo-mv7hOnhi.js} +18 -17
- package/dist/{useAuthkitAuth-C6GGWqSb.js → useAuthkitAuth-HqXgYzfZ.js} +1 -1
- package/dist/{useAuthkitUsersProfile-Bzr0IVmJ.js → useAuthkitUsersProfile-DyjCmUka.js} +1 -1
- package/dist/{useEnsureAuthenticated-z30FlElo.js → useEnsureAuthenticated-CpZcAqLg.js} +1 -1
- package/dist/{useLegalDocs-CWBqi9Ce.js → useLegalDocs-DUbab5R9.js} +2 -2
- package/dist/{usePageSEO-D7eyLr8d.js → usePageSEO-D8CocvOJ.js} +1 -1
- package/dist/useRoutePermission-BCXxvMoU.js +249 -0
- package/dist/{useSubscriptionCheckout-CnbX1bFi.js → useSubscriptionCheckout-D8W6v3YG.js} +1 -1
- package/dist/user.js +1 -1
- package/package.json +1 -1
- package/dist/WidthContainer-50pahbfe.js +0 -706
- package/dist/useRoutePermission-CZ7hHcZy.js +0 -247
|
@@ -29,6 +29,8 @@ export interface HuyoooUIConfig {
|
|
|
29
29
|
pricingUrl: string;
|
|
30
30
|
/** 自定义打开价格页逻辑(可选;例如桌面端切换到内置订阅页) */
|
|
31
31
|
openPricing?: () => void;
|
|
32
|
+
/** 路由无权限时的回退地址(默认 `/`;有定价的产品可自行设为 /Pricing) */
|
|
33
|
+
accessDeniedUrl: string;
|
|
32
34
|
avatarBucketId: string;
|
|
33
35
|
feedbackBucketId: string;
|
|
34
36
|
/** 默认存储桶名称 */
|
|
@@ -70,6 +72,8 @@ export interface CreateHuyoooUIOptions {
|
|
|
70
72
|
pricingUrl?: string;
|
|
71
73
|
/** 自定义打开价格页逻辑;优先级高于 pricingUrl */
|
|
72
74
|
openPricing?: () => void;
|
|
75
|
+
/** 路由无权限时的回退地址(可选,默认 `/`) */
|
|
76
|
+
accessDeniedUrl?: string;
|
|
73
77
|
avatarBucketId?: string;
|
|
74
78
|
feedbackBucketId?: string;
|
|
75
79
|
/** 默认存储桶名称 */
|
|
@@ -95,6 +99,7 @@ export declare function createHuyoooRuntimeConfig(options: CreateHuyoooUIOptions
|
|
|
95
99
|
webhookPrefixUrl: string;
|
|
96
100
|
pricingUrl: string;
|
|
97
101
|
openPricing: (() => void) | undefined;
|
|
102
|
+
accessDeniedUrl: string;
|
|
98
103
|
avatarBucketId: string;
|
|
99
104
|
feedbackBucketId: string;
|
|
100
105
|
bucket: 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-ummelwr_.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-B1KjkixL.js";
|
|
4
4
|
import { L } from "./Logo-B9DFBxDU.js";
|
|
@@ -12,8 +12,8 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
12
12
|
onClick?: (() => any) | undefined;
|
|
13
13
|
}>, {
|
|
14
14
|
active: boolean;
|
|
15
|
-
path: string;
|
|
16
15
|
icon: string;
|
|
16
|
+
path: string;
|
|
17
17
|
badge: number;
|
|
18
18
|
hidden: boolean;
|
|
19
19
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -29,7 +29,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
29
29
|
default: string;
|
|
30
30
|
};
|
|
31
31
|
}>> & Readonly<{}>, {
|
|
32
|
-
color: string;
|
|
33
32
|
prefix: string;
|
|
33
|
+
color: string;
|
|
34
34
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
35
35
|
export default _default;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
+
import { PublicRoute } from '../../types/app';
|
|
1
2
|
/** 生成当前路由可匹配的权限 key 候选(含父级) */
|
|
2
3
|
export declare function resolveRoutePermissionCandidates(path: string): string[];
|
|
3
|
-
/**
|
|
4
|
+
/** 用户权限是否覆盖该路由(精确或父级)——与角色 permissionKey 约定一致 */
|
|
4
5
|
export declare function hasRoutePermission(path: string, permissionKeys: string[]): boolean;
|
|
6
|
+
/** 从 publicRoutes 取出仅精确匹配的公开 key(由服务端 publicMatch 声明) */
|
|
7
|
+
export declare function resolvePublicExactMatchKeys(publicRoutes: PublicRoute[]): string[];
|
|
8
|
+
/**
|
|
9
|
+
* 是否可按公开权限访问。
|
|
10
|
+
* - prefix(默认):公开 key 可覆盖子路径(如 /Blog → /Blog/xxx)
|
|
11
|
+
* - exact:仅精确匹配(由 authPageInfo.publicRoutes[].publicMatch 声明)
|
|
12
|
+
*/
|
|
13
|
+
export declare function isPublicRouteAccess(path: string, publicRoutes: PublicRoute[]): boolean;
|
|
5
14
|
/** 菜单权限:路由本身或其任一子路由权限均可展示 */
|
|
6
15
|
export declare function hasMenuPermission(menuPath: string, permissionKeys: string[]): boolean;
|
|
@@ -12,6 +12,7 @@ export declare function useAuthkitAppsAuthPageInfo(): {
|
|
|
12
12
|
name: string;
|
|
13
13
|
permissionKey: string;
|
|
14
14
|
description: string;
|
|
15
|
+
publicMatch?: import('../../types/app').PublicRouteMatch | undefined;
|
|
15
16
|
}[];
|
|
16
17
|
oauth: {
|
|
17
18
|
google: {
|
|
@@ -80,6 +81,13 @@ export declare function useAuthkitAppsAuthPageInfo(): {
|
|
|
80
81
|
backgroundImageUrl: string;
|
|
81
82
|
backgroundImage: string;
|
|
82
83
|
};
|
|
84
|
+
socialLinks?: {
|
|
85
|
+
key: string;
|
|
86
|
+
label: string;
|
|
87
|
+
icon: string;
|
|
88
|
+
kind: "email" | "url";
|
|
89
|
+
url?: string | undefined;
|
|
90
|
+
}[] | undefined;
|
|
83
91
|
}, AppsData | {
|
|
84
92
|
id: string;
|
|
85
93
|
name: string;
|
|
@@ -92,6 +100,7 @@ export declare function useAuthkitAppsAuthPageInfo(): {
|
|
|
92
100
|
name: string;
|
|
93
101
|
permissionKey: string;
|
|
94
102
|
description: string;
|
|
103
|
+
publicMatch?: import('../../types/app').PublicRouteMatch | undefined;
|
|
95
104
|
}[];
|
|
96
105
|
oauth: {
|
|
97
106
|
google: {
|
|
@@ -160,6 +169,13 @@ export declare function useAuthkitAppsAuthPageInfo(): {
|
|
|
160
169
|
backgroundImageUrl: string;
|
|
161
170
|
backgroundImage: string;
|
|
162
171
|
};
|
|
172
|
+
socialLinks?: {
|
|
173
|
+
key: string;
|
|
174
|
+
label: string;
|
|
175
|
+
icon: string;
|
|
176
|
+
kind: "email" | "url";
|
|
177
|
+
url?: string | undefined;
|
|
178
|
+
}[] | undefined;
|
|
163
179
|
}>;
|
|
164
180
|
appsAuthPageInfoApi: () => Promise<void>;
|
|
165
181
|
appsAuthPageInfoLoading: import('vue').Ref<boolean, boolean>;
|
|
@@ -1,5 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 路由访问控制(对齐 auth-server,不阻塞渲染):
|
|
3
|
+
*
|
|
4
|
+
* 真相源:
|
|
5
|
+
* - authPageInfo.publicRoutes ← permissions(isPublic=true),含 publicMatch
|
|
6
|
+
* - profile.permissions ← 用户角色绑定的 permissionKey(≈ 路由 path)
|
|
7
|
+
*
|
|
8
|
+
* 规则:
|
|
9
|
+
* 1. 命中公开路由 → 放行(publicMatch=exact 不级联子路径)
|
|
10
|
+
* 2. 应用配置或会话未就绪 → 先渲染,就绪后再判
|
|
11
|
+
* 3. 否则需登录且 hasRoutePermission;不满足 → accessDeniedUrl(默认 `/`)
|
|
12
|
+
*/
|
|
1
13
|
export declare function useRoutePermission(): {
|
|
2
|
-
isChecking: import('vue').Ref<boolean, boolean>;
|
|
3
14
|
isRoutePublic: (path: string) => boolean;
|
|
4
15
|
hasPermission: (path: string) => boolean;
|
|
5
16
|
};
|
package/dist/composables.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export { withViewTransition } from './composables/viewTransitions';
|
|
|
17
17
|
export { useDownloads } from './composables/useDownloads';
|
|
18
18
|
export { useAuthMenu, findMenuPath, findActiveMenuPath, getPathOnly } from './composables/Authkit/useAuthMenu';
|
|
19
19
|
export { useRoutePermission } from './composables/Authkit/useRoutePermission';
|
|
20
|
+
export { isPublicRouteAccess, hasRoutePermission, hasMenuPermission, resolveRoutePermissionCandidates, resolvePublicExactMatchKeys, } from './composables/Authkit/resolveRoutePermission';
|
|
20
21
|
export { useAppSEO } from './composables/SEO/useAppSEO';
|
|
21
22
|
export { usePageSEO } from './composables/SEO/usePageSEO';
|
|
22
23
|
export type { AppSEOConfig, PageSEOConfig } from './types/seo';
|
package/dist/composables.js
CHANGED
|
@@ -1,56 +1,61 @@
|
|
|
1
|
-
import { u as a } from "./useAuthkitAuth-
|
|
1
|
+
import { u as a } from "./useAuthkitAuth-HqXgYzfZ.js";
|
|
2
2
|
import { u as t } from "./apiClients-8_c5cDW5.js";
|
|
3
|
-
import { L as r, a as i, b as n, i as p, o as
|
|
4
|
-
import { f as A } from "./fetchAuthPageAboutUs
|
|
5
|
-
import { u as d } from "./useAuthkitUsersProfile-
|
|
6
|
-
import { u as
|
|
7
|
-
import { f as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { c as
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
13
|
-
import { u as
|
|
14
|
-
import { c as
|
|
3
|
+
import { L as r, a as i, b as n, i as p, o as l, r as c, c as f, u as m } from "./useLegalDocs-DUbab5R9.js";
|
|
4
|
+
import { f as A } from "./fetchAuthPageAboutUs--dArFYk6.js";
|
|
5
|
+
import { u as d } from "./useAuthkitUsersProfile-DyjCmUka.js";
|
|
6
|
+
import { u as P } from "./useAuthkitAppsAuthPageInfo-mv7hOnhi.js";
|
|
7
|
+
import { f as L, a as D, g as O, h as R, b as S, i as C, r as M, c as v, u as U, d as k, e as E, j as T, w as y } from "./useRoutePermission-BCXxvMoU.js";
|
|
8
|
+
import { u as B } from "./useAuthkitCreateAndUpdate-CYIcEuub.js";
|
|
9
|
+
import { u as I } from "./useMessageNotifications-BXimltcx.js";
|
|
10
|
+
import { c as G, g as K, a as j, s as F, u as N } from "./runtime-CDEl4QQl.js";
|
|
11
|
+
import { u as Y, a as q, b as z, c as J, d as Q } from "./usePageSEO-D8CocvOJ.js";
|
|
12
|
+
import { u as X } from "./useUserMenu-ClPBlvaM.js";
|
|
13
|
+
import { u as $, a as ss } from "./useSubscriptionCheckout-D8W6v3YG.js";
|
|
14
|
+
import { c as as, u as os, a as ts, b as us } from "./useBillingStatusOptions-C8fwW-AI.js";
|
|
15
15
|
export {
|
|
16
16
|
r as LEGAL_DOCS,
|
|
17
17
|
i as LEGAL_DOC_KEYS,
|
|
18
18
|
n as buildBuiltinLegalDocUrl,
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
as as createBillingStatusOptions,
|
|
20
|
+
G as createHuyoooUI,
|
|
21
21
|
A as fetchAuthPageAboutUs,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
L as findActiveMenuPath,
|
|
23
|
+
D as findMenuPath,
|
|
24
|
+
K as getHuyoooRuntime,
|
|
25
25
|
O as getPathOnly,
|
|
26
|
-
|
|
26
|
+
j as globalThemeRef,
|
|
27
|
+
R as hasMenuPermission,
|
|
28
|
+
S as hasRoutePermission,
|
|
27
29
|
p as isLegalDocConfigured,
|
|
28
|
-
|
|
29
|
-
l as
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
F as
|
|
35
|
-
U as
|
|
36
|
-
|
|
30
|
+
C as isPublicRouteAccess,
|
|
31
|
+
l as openLegalDocTarget,
|
|
32
|
+
c as resolveLegalAppId,
|
|
33
|
+
f as resolveLegalDocTargetFromData,
|
|
34
|
+
M as resolvePublicExactMatchKeys,
|
|
35
|
+
v as resolveRoutePermissionCandidates,
|
|
36
|
+
F as setTheme,
|
|
37
|
+
U as useActiveDoc,
|
|
38
|
+
k as useAppBrand,
|
|
39
|
+
Y as useAppSEO,
|
|
40
|
+
E as useAuthMenu,
|
|
41
|
+
P as useAuthkitAppsAuthPageInfo,
|
|
37
42
|
a as useAuthkitAuth,
|
|
38
43
|
t as useAuthkitAuthModal,
|
|
39
|
-
|
|
44
|
+
B as useAuthkitCreateAndUpdate,
|
|
40
45
|
d as useAuthkitUsersProfile,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
46
|
+
$ as useBillingPlans,
|
|
47
|
+
q as useCommonCreateAndUpdate,
|
|
48
|
+
z as useDownloads,
|
|
49
|
+
N as useHuyoooRuntime,
|
|
50
|
+
os as useInvoiceStatusOptions,
|
|
51
|
+
m as useLegalDocs,
|
|
52
|
+
I as useMessageNotifications,
|
|
53
|
+
J as usePageSEO,
|
|
54
|
+
ts as usePointsRechargeStatusOptions,
|
|
55
|
+
us as useRefundStatusOptions,
|
|
56
|
+
T as useRoutePermission,
|
|
57
|
+
ss as useSubscriptionCheckout,
|
|
58
|
+
Q as useTableHandle,
|
|
59
|
+
X as useUserMenu,
|
|
60
|
+
y as withViewTransition
|
|
56
61
|
};
|
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-hbfe8U5u.js";
|
|
2
2
|
import { C as i } from "./index-D9YtlhTa.js";
|
|
3
3
|
import { F as m, a as f, b as n, c as p } from "./FeedbackItem-BP-SiJ2u.js";
|
|
4
4
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as i } from "./useAuthkitAppsAuthPageInfo-
|
|
2
|
-
import { g as a } from "./runtime-
|
|
1
|
+
import { n as i } from "./useAuthkitAppsAuthPageInfo-mv7hOnhi.js";
|
|
2
|
+
import { g as a } from "./runtime-CDEl4QQl.js";
|
|
3
3
|
async function p(o) {
|
|
4
4
|
if (!o)
|
|
5
5
|
return null;
|
package/dist/landingPage.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { L as g, a as e, b as i, B as s, C as d, c as L, d as P, e as o, f as t, g as r, h as c, i as u, j as m, k as C, l as p, m as F, n as T, o as f, p as l, q as S, r as b, s as k, t as x, u as B, v as A, T as D, w as G, x as H, y as h, z as y, A as I, P as j } from "./LandingPageSectionTabs-
|
|
1
|
+
import { L as g, a as e, b as i, B as s, C as d, c as L, d as P, e as o, f as t, g as r, h as c, i as u, j as m, k as C, l as p, m as F, n as T, o as f, p as l, q as S, r as b, s as k, t as x, u as B, v as A, T as D, w as G, x as H, y as h, z as y, A as I, P as j } from "./LandingPageSectionTabs-BEAnU8B0.js";
|
|
2
2
|
import { L as w, a as q, b as z } from "./LandingPageSectionHeader-3hiuw6G0.js";
|
|
3
|
-
import { L as Q, a as E, b as J, c as K, D as N, d as O, e as R, f as U, g as V, h as W, i as X, j as Y, k as Z } from "./LandingPageLinkGroup-
|
|
3
|
+
import { L as Q, a as E, b as J, c as K, D as N, d as O, e as R, f as U, g as V, h as W, i as X, j as Y, k as Z } from "./LandingPageLinkGroup-B8ERKG5f.js";
|
|
4
4
|
import { D as $ } from "./LandingPageDescription-BczWZHKy.js";
|
|
5
5
|
import { L as na } from "./Logo-B9DFBxDU.js";
|
|
6
6
|
export {
|