@huyooo/ui 0.9.9 → 0.10.1

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.
@@ -9,7 +9,10 @@ export interface DesktopDownloadItem {
9
9
  updateDate: string;
10
10
  icon: string;
11
11
  downloadUrl: string;
12
+ /** ZIP 格式下载(用于自动更新或备用下载) */
13
+ zipUrl?: string;
12
14
  platform: 'Windows' | 'macOS';
15
+ arch?: string;
13
16
  requirements: string;
14
17
  badge?: string;
15
18
  }
@@ -2,6 +2,12 @@ interface Props {
2
2
  title: string;
3
3
  description: string;
4
4
  versionApi: string;
5
+ /**
6
+ * 使用 ZIP 下载(无签名时推荐)。
7
+ * 不传或 false → 用 downloadUrl(DMG/EXE)
8
+ * true → 用 zipUrl,解压后右键打开,绕过 Gatekeeper 限制(仅对有 zipUrl 的平台生效)
9
+ */
10
+ useZip?: boolean;
5
11
  }
6
12
  declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
7
13
  export default _default;
@@ -1,5 +1,7 @@
1
1
  interface Props {
2
2
  versionApi: string;
3
+ /** 使用 ZIP 下载(无签名时传 true) */
4
+ useZip?: boolean;
3
5
  }
4
6
  declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
5
7
  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";