@huyooo/ui 0.9.8 → 0.10.0

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.
Files changed (42) hide show
  1. package/dist/{AuthkitAuthModal-BpQZ_cSv.js → AuthkitAuthModal-CIqo_ytT.js} +2 -2
  2. package/dist/{AuthkitSignInPhone-DEkq7yIu.js → AuthkitSignInPhone-GEP_InIp.js} +3 -6
  3. package/dist/{Contact-HpDiHdUv.js → Contact-D1RLCHL7.js} +3 -3
  4. package/dist/{CustomTable-Dyjn6dOW.js → CustomTable-CVZ4mFzi.js} +1 -1
  5. package/dist/{FeedbackItem-CUQUsQCd.js → FeedbackItem-BhBJPtoI.js} +1 -1
  6. package/dist/{FeedbackModal-DCxmeHW4.js → FeedbackModal-Ci0sZsOa.js} +4 -4
  7. package/dist/{LandingPageSectionHeader-AfrKhRQg.js → LandingPageSectionHeader-1h01zdKJ.js} +168 -222
  8. package/dist/{LandingPageSectionTabs-BPG1U38v.js → LandingPageSectionTabs-BRTZaLEe.js} +380 -371
  9. package/dist/Logo-D7fyXyB-.js +67 -0
  10. package/dist/{MessageHandle-DJCHYY9T.js → MessageHandle-Dkpc4axC.js} +1 -1
  11. package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-rkng32OA.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-DqXjEfo9.js} +1 -1
  12. package/dist/{PaySubscriptions-CWey-mbh.js → PaySubscriptions-ygmbIpWM.js} +1 -1
  13. package/dist/{ReferrerReferees-Byrr8T8H.js → ReferrerReferees-BlHsWD6F.js} +1 -1
  14. package/dist/{UserAccountMenu-CxYmNgME.js → UserAccountMenu-C6MK8Ulm.js} +6 -6
  15. package/dist/WidthContainer-IvPa1ayt.js +655 -0
  16. package/dist/authkit.js +2 -2
  17. package/dist/common/downloadOptions.d.ts +3 -0
  18. package/dist/common.js +14 -13
  19. package/dist/components/DefaultLayout.vue.d.ts +6 -0
  20. package/dist/components/Header.vue.d.ts +3 -0
  21. package/dist/components/LandingPage/LandingPageBrandInfo.vue.d.ts +2 -0
  22. package/dist/components/LandingPage/PageContent.vue.d.ts +18 -0
  23. package/dist/components/Logo.vue.d.ts +30 -4
  24. package/dist/composables/useDownloads.d.ts +4 -7
  25. package/dist/composables.js +1 -1
  26. package/dist/feedback.js +2 -2
  27. package/dist/head.d.ts +7 -0
  28. package/dist/landingPage.d.ts +2 -1
  29. package/dist/landingPage.js +29 -27
  30. package/dist/main.d.ts +1 -1
  31. package/dist/main.js +308 -295
  32. package/dist/message.js +2 -2
  33. package/dist/pay.js +1 -1
  34. package/dist/privateCom.js +1 -1
  35. package/dist/referrer.js +1 -1
  36. package/dist/style.css +1 -1
  37. package/dist/useDownloads-CpbLR--j.js +52 -0
  38. package/dist/user.js +1 -1
  39. package/package.json +1 -1
  40. package/dist/WidthContainer-BsPQN5_v.js +0 -677
  41. package/dist/components/LandingPage/LandingPageLogo.vue.d.ts +0 -64
  42. package/dist/useDownloads-CMQtTjNj.js +0 -73
package/dist/common.js CHANGED
@@ -1,22 +1,23 @@
1
- import { A as s, a as o, C as t, D as r, G as p, H as n, b as l, L as u, S as C, W as d } from "./WidthContainer-BsPQN5_v.js";
2
- import { C as i, a as f } from "./CollapseItem-DN-GUAQA.js";
3
- import { C as x, E as H } from "./CustomTable-Dyjn6dOW.js";
4
- import { M, a as g } from "./Menu-v8cCDSzi.js";
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-IvPa1ayt.js";
2
+ import { C as d, a as f } from "./CollapseItem-DN-GUAQA.js";
3
+ import { C as x, E as b } from "./CustomTable-CVZ4mFzi.js";
4
+ import { L } from "./Logo-D7fyXyB-.js";
5
+ import { M as g, a as A } from "./Menu-v8cCDSzi.js";
5
6
  export {
6
7
  s as AppLayout,
7
8
  o as AppSidebar,
8
- i as Collapse,
9
+ d as Collapse,
9
10
  f as CollapseItem,
10
- t as ContentHead,
11
+ r as ContentHead,
11
12
  x as CustomTable,
12
- r as DefaultLayout,
13
- H as Ellipsis,
13
+ t as DefaultLayout,
14
+ b as Ellipsis,
14
15
  p as Gradientbackground,
15
16
  n as Header,
16
17
  l as HeaderMenus,
17
- u as Logo,
18
- M as Menu,
19
- g as MenuItem,
20
- C as SvgIcon,
21
- d as WidthContainer
18
+ L as Logo,
19
+ g as Menu,
20
+ A as MenuItem,
21
+ m as SvgIcon,
22
+ u as WidthContainer
22
23
  };
@@ -2,6 +2,10 @@ export type LayoutTheme = 'light' | 'dark' | 'system';
2
2
  interface Props {
3
3
  menuType?: string;
4
4
  showUserPanel?: boolean;
5
+ /** 是否在 Header 中显示主题切换按钮,默认 true */
6
+ showThemeToggle?: boolean;
7
+ /** 是否启用路由权限检查,官网/文档站可关闭 */
8
+ enableRoutePermission?: boolean;
5
9
  backgroundImage?: string;
6
10
  /** 布局主题:light 浅色 / dark 深色 / system 跟随系统。不传时使用应用品牌配置 brand.theme */
7
11
  theme?: LayoutTheme;
@@ -20,6 +24,8 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
20
24
  backgroundImage: string;
21
25
  menuType: string;
22
26
  showUserPanel: boolean;
27
+ showThemeToggle: boolean;
28
+ enableRoutePermission: boolean;
23
29
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
24
30
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
25
31
  export default _default;
@@ -1,6 +1,8 @@
1
1
  interface Props {
2
2
  menuType?: string;
3
3
  showUserPanel?: boolean;
4
+ /** 是否显示主题切换按钮,默认 true */
5
+ showThemeToggle?: boolean;
4
6
  /** 主题:dark 时使用深色 header 样式 */
5
7
  theme?: 'light' | 'dark';
6
8
  }
@@ -8,5 +10,6 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
8
10
  theme: "light" | "dark";
9
11
  menuType: string;
10
12
  showUserPanel: boolean;
13
+ showThemeToggle: boolean;
11
14
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
12
15
  export default _default;
@@ -11,6 +11,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
11
11
  type: StringConstructor;
12
12
  required: true;
13
13
  };
14
+ /** 不传则 Logo 使用自身主题色 */
14
15
  color: {
15
16
  type: StringConstructor;
16
17
  default: string;
@@ -36,6 +37,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
36
37
  type: StringConstructor;
37
38
  required: true;
38
39
  };
40
+ /** 不传则 Logo 使用自身主题色 */
39
41
  color: {
40
42
  type: StringConstructor;
41
43
  default: string;
@@ -0,0 +1,18 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ footer?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: HTMLDivElement;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
12
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
+ export default _default;
14
+ type __VLS_WithTemplateSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -7,12 +7,24 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
7
7
  icon: {
8
8
  type: StringConstructor;
9
9
  required: false;
10
- default: () => string;
10
+ default: string;
11
+ };
12
+ /** 传入时覆盖默认主题色 */
13
+ color: {
14
+ type: StringConstructor;
15
+ required: false;
16
+ default: string;
11
17
  };
18
+ /** 传入时覆盖默认字号 */
12
19
  fontSize: {
13
20
  type: StringConstructor;
14
21
  required: false;
15
- default: () => string;
22
+ default: string;
23
+ };
24
+ iconSize: {
25
+ type: StringConstructor;
26
+ required: false;
27
+ default: string;
16
28
  };
17
29
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
30
  to: (...args: any[]) => void;
@@ -25,18 +37,32 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
25
37
  icon: {
26
38
  type: StringConstructor;
27
39
  required: false;
28
- default: () => string;
40
+ default: string;
41
+ };
42
+ /** 传入时覆盖默认主题色 */
43
+ color: {
44
+ type: StringConstructor;
45
+ required: false;
46
+ default: string;
29
47
  };
48
+ /** 传入时覆盖默认字号 */
30
49
  fontSize: {
31
50
  type: StringConstructor;
32
51
  required: false;
33
- default: () => string;
52
+ default: string;
53
+ };
54
+ iconSize: {
55
+ type: StringConstructor;
56
+ required: false;
57
+ default: string;
34
58
  };
35
59
  }>> & Readonly<{
36
60
  onTo?: ((...args: any[]) => any) | undefined;
37
61
  }>, {
62
+ color: string;
38
63
  name: string;
39
64
  icon: string;
40
65
  fontSize: string;
66
+ iconSize: string;
41
67
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
42
68
  export default _default;
@@ -1,7 +1,4 @@
1
1
  import { DesktopDownloadItem } from '../common/downloadOptions';
2
- /**
3
- * 获取下载配置的 composable
4
- */
5
2
  export declare function useDownloads(): {
6
3
  downloads: import('vue').Ref<{
7
4
  id: string;
@@ -11,7 +8,9 @@ export declare function useDownloads(): {
11
8
  updateDate: string;
12
9
  icon: string;
13
10
  downloadUrl: string;
11
+ zipUrl?: string | undefined;
14
12
  platform: "Windows" | "macOS";
13
+ arch?: string | undefined;
15
14
  requirements: string;
16
15
  badge?: string | undefined;
17
16
  }[], DesktopDownloadItem[] | {
@@ -22,7 +21,9 @@ export declare function useDownloads(): {
22
21
  updateDate: string;
23
22
  icon: string;
24
23
  downloadUrl: string;
24
+ zipUrl?: string | undefined;
25
25
  platform: "Windows" | "macOS";
26
+ arch?: string | undefined;
26
27
  requirements: string;
27
28
  badge?: string | undefined;
28
29
  }[]>;
@@ -33,7 +34,3 @@ export declare function useDownloads(): {
33
34
  versionApi: string;
34
35
  }) => Promise<void>;
35
36
  };
36
- /**
37
- * 清除缓存(用于需要刷新数据的场景)
38
- */
39
- export declare function clearDownloadsCache(): void;
@@ -3,7 +3,7 @@ import { g as u, a as r, b as i, s as f, c as n, d as l, u as h } from "./apiCli
3
3
  import { u as p } from "./useAuthkitAppsAuthPageInfo-C3EHOtlk.js";
4
4
  import { u as d } from "./useAuthkitCreateAndUpdate-CPkogY7K.js";
5
5
  import { u as x } from "./useMessageNotifications-SIM85vdb.js";
6
- import { u as C, a as c } from "./useDownloads-CMQtTjNj.js";
6
+ import { u as C, a as c } from "./useDownloads-CpbLR--j.js";
7
7
  import { u as k } from "./useTableHandle-CWu0LbeI.js";
8
8
  import { f as O, a as w, g as E, u as S, b as T, c as U, d as R, e as v, w as D } from "./useSEO-DeAU9YEc.js";
9
9
  import { u as y } from "./useUploadCos-BO3W_uqs.js";
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-DCxmeHW4.js";
1
+ import { B as b, a as s, F as d, b as F, c, d as o, R as t } from "./FeedbackModal-Ci0sZsOa.js";
2
2
  import { C as r } from "./Clipboard-BsST2Mjo.js";
3
- import { F as m, a as n, b as f, c as i, d as p } from "./FeedbackItem-CUQUsQCd.js";
3
+ import { F as m, a as n, b as f, c as i, d as p } from "./FeedbackItem-BhBJPtoI.js";
4
4
  export {
5
5
  r as Clipboard,
6
6
  b as FeedbackBubbleEnd,
package/dist/head.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ import { CreateClientHeadOptions } from '@unhead/vue/client';
2
+ /** 与 Vue Plugin 结构兼容(含 install),供 app.use(head) 或 head.install(app) 使用 */
3
+ export interface VueHeadPlugin {
4
+ install: (app: unknown, ...options: unknown[]) => unknown;
5
+ }
6
+ export declare function createHead(options?: CreateClientHeadOptions): VueHeadPlugin;
7
+ export type { CreateClientHeadOptions };
@@ -21,10 +21,11 @@ export { default as LandingPageHero } from './components/LandingPage/LandingPage
21
21
  export { default as LandingPageLink } from './components/LandingPage/LandingPageLink.vue';
22
22
  export { default as LandingPageLinkGroup } from './components/LandingPage/LandingPageLinkGroup.vue';
23
23
  export { default as LandingPageListItem } from './components/LandingPage/LandingPageListItem.vue';
24
- export { default as LandingPageLogo } from './components/LandingPage/LandingPageLogo.vue';
24
+ export { default as LandingPageLogo } from './components/Logo.vue';
25
25
  export { default as LandingPageLogos } from './components/LandingPage/LandingPageLogos.vue';
26
26
  export { default as LandingPageMission } from './components/LandingPage/LandingPageMission.vue';
27
27
  export { default as LandingPagePageContent } from './components/LandingPage/LandingPagePageContent.vue';
28
+ export { default as PageContent } from './components/LandingPage/PageContent.vue';
28
29
  export { default as LandingPagePriceGroup } from './components/LandingPage/LandingPagePriceGroup.vue';
29
30
  export { default as LandingPagePricingCard } from './components/LandingPage/LandingPagePricingCard.vue';
30
31
  export { default as LandingPagePricingGrid } from './components/LandingPage/LandingPagePricingGrid.vue';
@@ -1,52 +1,54 @@
1
- import { L as g, a as e, b as i, c as s, B 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 C, k as T, l as m, m as F, n as l, o as p, p as S, q as b, r as f, s as k, t as B, u as A, v as D, w as G, T as H, x as h, y as x, z as y, A as I, D as j } from "./LandingPageSectionTabs-BPG1U38v.js";
2
- import { L as w, a as q, b as z, c as M, D as Q, d as E, e as J, f as K, g as N, h as O, i as R, j as U, k as V, l as W, m as X, n as Y } from "./LandingPageSectionHeader-AfrKhRQg.js";
1
+ import { L as g, a as e, b as i, c as s, B 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 C, k as m, l as T, m as F, n as p, o as l, p as S, q as f, r as b, s as k, t as B, u as x, v as A, w as D, T as G, x as H, y as h, z as y, A as I, D as j, P as v } from "./LandingPageSectionTabs-BRTZaLEe.js";
2
+ import { L as q, a as z, b as M, c as Q, D as E, d as J, e as K, f as N, g as O, h as R, i as U, j as V, k as W, l as X, m as Y } from "./LandingPageSectionHeader-1h01zdKJ.js";
3
+ import { L as _ } from "./Logo-D7fyXyB-.js";
3
4
  export {
4
5
  g as LandingPageAbout,
5
6
  e as LandingPageAside,
6
7
  i as LandingPageBlockHeader,
7
8
  s as LandingPageBlockLayout,
8
- w as LandingPageBrandInfo,
9
+ q as LandingPageBrandInfo,
9
10
  d as LandingPageButton,
10
11
  L as LandingPageCard,
11
- q as LandingPageContact,
12
- z as LandingPageContactForm,
13
- M as LandingPageContainer,
12
+ z as LandingPageContact,
13
+ M as LandingPageContactForm,
14
+ Q as LandingPageContainer,
14
15
  P as LandingPageCta,
15
- Q as LandingPageDescription,
16
- E as LandingPageDivider,
16
+ E as LandingPageDescription,
17
+ J as LandingPageDivider,
17
18
  o as LandingPageFAQ,
18
19
  t as LandingPageFeatureCard,
19
20
  r as LandingPageFeatureSectionHeader,
20
21
  c as LandingPageFeatures,
21
22
  u as LandingPageFeatures2,
22
23
  C as LandingPageFeaturesGrid,
23
- T as LandingPageFooter,
24
- J as LandingPageFooterContact,
25
- K as LandingPageFooterLayout,
26
- m as LandingPageHero,
27
- N as LandingPageLink,
28
- O as LandingPageLinkGroup,
29
- R as LandingPageListItem,
30
- U as LandingPageLogo,
24
+ m as LandingPageFooter,
25
+ K as LandingPageFooterContact,
26
+ N as LandingPageFooterLayout,
27
+ T as LandingPageHero,
28
+ O as LandingPageLink,
29
+ R as LandingPageLinkGroup,
30
+ U as LandingPageListItem,
31
+ _ as LandingPageLogo,
31
32
  F as LandingPageLogos,
32
33
  V as LandingPageMission,
33
- l as LandingPagePageContent,
34
- p as LandingPagePriceGroup,
34
+ p as LandingPagePageContent,
35
+ l as LandingPagePriceGroup,
35
36
  S as LandingPagePricingCard,
36
- b as LandingPagePricingGrid,
37
+ f as LandingPagePricingGrid,
37
38
  W as LandingPageSectionHeader,
38
- f as LandingPageSectionTabs,
39
+ b as LandingPageSectionTabs,
39
40
  k as LandingPageSections,
40
41
  B as LandingPageShowcase,
41
- A as LandingPageStats,
42
- D as LandingPageSteps,
43
- G as LandingPageSubTitle,
44
- H as LandingPageTabs,
42
+ x as LandingPageStats,
43
+ A as LandingPageSteps,
44
+ D as LandingPageSubTitle,
45
+ G as LandingPageTabs,
45
46
  X as LandingPageTeamInfo,
46
47
  Y as LandingPageTeamList,
47
- h as LandingPageTestimonial,
48
- x as LandingPageTestimonialCard,
48
+ H as LandingPageTestimonial,
49
+ h as LandingPageTestimonialCard,
49
50
  y as LandingPageTips,
50
51
  I as LandingPageTitle,
51
- j as LandingPageToc
52
+ j as LandingPageToc,
53
+ v as PageContent
52
54
  };
package/dist/main.d.ts CHANGED
@@ -11,5 +11,5 @@ export * from './upload';
11
11
  export * from './user';
12
12
  export * from './download';
13
13
  export * from './privateCom';
14
- export { createHead } from '@unhead/vue/client';
14
+ export { createHead, type CreateClientHeadOptions, type VueHeadPlugin, } from './head';
15
15
  export { auth, billing, ones, log, ai, webhook } from './utils/apiClients';