@huyooo/ui 0.4.74 → 0.4.77

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.
@@ -0,0 +1,56 @@
1
+ /**
2
+ * 桌面客户端下载项接口
3
+ */
4
+ export interface DesktopDownloadItem {
5
+ id: string;
6
+ name: string;
7
+ description: string;
8
+ version: string;
9
+ updateDate: string;
10
+ icon: string;
11
+ downloadUrl: string;
12
+ platform: 'Windows' | 'macOS';
13
+ requirements: string;
14
+ badge?: string;
15
+ }
16
+ /**
17
+ * 浏览器扩展项接口
18
+ */
19
+ export interface ExtensionItem {
20
+ id: string;
21
+ name: string;
22
+ description: string;
23
+ icon: string;
24
+ requirements: string;
25
+ version: string;
26
+ updateDate: string;
27
+ platform?: string;
28
+ storeUrl?: string;
29
+ downloadUrl?: string;
30
+ isRecommended?: boolean;
31
+ }
32
+ /**
33
+ * 移动端下载项接口
34
+ */
35
+ export interface MobileDownloadItem {
36
+ id: string;
37
+ name: string;
38
+ description: string;
39
+ version: string;
40
+ updateDate: string;
41
+ icon: string;
42
+ downloadUrl: string;
43
+ platform: string;
44
+ requirements: string;
45
+ badge?: string;
46
+ isExternal?: boolean;
47
+ backgroundColor?: string;
48
+ }
49
+ /**
50
+ * 统一的下载处理函数
51
+ */
52
+ export declare function handleDownload(downloadUrl: string): void;
53
+ /**
54
+ * 检测当前用户的平台
55
+ */
56
+ export declare function detectPlatform(): string;
@@ -0,0 +1,8 @@
1
+ import { ExtensionItem } from '../../common/downloadOptions';
2
+ interface Props {
3
+ title: string;
4
+ description: string;
5
+ browserExtensions: ExtensionItem[];
6
+ }
7
+ 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>;
8
+ export default _default;
@@ -0,0 +1,7 @@
1
+ interface Props {
2
+ title: string;
3
+ description: string;
4
+ versionApi: string;
5
+ }
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>;
7
+ export default _default;
@@ -0,0 +1,17 @@
1
+ interface Props {
2
+ download: any;
3
+ type: 'desktop' | 'mobile' | 'extension';
4
+ showDropdown?: boolean;
5
+ }
6
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ download: (download: any) => any;
8
+ openStore: (download: any) => any;
9
+ toggleDropdown: () => any;
10
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
11
+ onDownload?: ((download: any) => any) | undefined;
12
+ onOpenStore?: ((download: any) => any) | undefined;
13
+ onToggleDropdown?: (() => any) | undefined;
14
+ }>, {
15
+ showDropdown: boolean;
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
17
+ export default _default;
@@ -0,0 +1,5 @@
1
+ interface Props {
2
+ versionApi: string;
3
+ }
4
+ 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
+ export default _default;
@@ -0,0 +1,17 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: HTMLDivElement;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ 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>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,6 @@
1
+ interface Props {
2
+ title: string;
3
+ description: string;
4
+ }
5
+ 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>;
6
+ export default _default;
@@ -0,0 +1,21 @@
1
+ interface ExtensionItem {
2
+ id: string;
3
+ name: string;
4
+ description: string;
5
+ icon: string;
6
+ requirements: string;
7
+ storeUrl?: string;
8
+ downloadUrl?: string;
9
+ isRecommended?: boolean;
10
+ }
11
+ interface Props {
12
+ extension: ExtensionItem;
13
+ }
14
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
+ download: (extension: ExtensionItem) => any;
16
+ openStore: (extension: ExtensionItem) => any;
17
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
18
+ onDownload?: ((extension: ExtensionItem) => any) | undefined;
19
+ onOpenStore?: ((extension: ExtensionItem) => any) | undefined;
20
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
21
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import { MobileDownloadItem } from '../../common/downloadOptions';
2
+ interface Props {
3
+ title: string;
4
+ description: string;
5
+ mobileDownloads: MobileDownloadItem[];
6
+ }
7
+ 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>;
8
+ export default _default;
@@ -0,0 +1,39 @@
1
+ import { DesktopDownloadItem } from '../common/downloadOptions';
2
+ /**
3
+ * 获取下载配置的 composable
4
+ */
5
+ export declare function useDownloads(): {
6
+ downloads: import('vue').Ref<{
7
+ id: string;
8
+ name: string;
9
+ description: string;
10
+ version: string;
11
+ updateDate: string;
12
+ icon: string;
13
+ downloadUrl: string;
14
+ platform: "Windows" | "macOS";
15
+ requirements: string;
16
+ badge?: string | undefined;
17
+ }[], DesktopDownloadItem[] | {
18
+ id: string;
19
+ name: string;
20
+ description: string;
21
+ version: string;
22
+ updateDate: string;
23
+ icon: string;
24
+ downloadUrl: string;
25
+ platform: "Windows" | "macOS";
26
+ requirements: string;
27
+ badge?: string | undefined;
28
+ }[]>;
29
+ loading: import('vue').Ref<boolean, boolean>;
30
+ error: import('vue').Ref<string, string>;
31
+ version: import('vue').Ref<string, string>;
32
+ fetchDownloads: ({ versionApi }: {
33
+ versionApi: string;
34
+ }) => Promise<void>;
35
+ };
36
+ /**
37
+ * 清除缓存(用于需要刷新数据的场景)
38
+ */
39
+ export declare function clearDownloadsCache(): void;
@@ -10,3 +10,4 @@ export { useTableHandle } from './composables/useTableHandle';
10
10
  export { useActiveDoc } from './composables/useActiveDoc';
11
11
  export { useUploadCos } from './composables/Upload/useUploadCos';
12
12
  export { withViewTransition } from './composables/viewTransitions';
13
+ export { useDownloads } from './composables/useDownloads';
@@ -1,23 +1,24 @@
1
- import { u as o, a as t } from "./useAuthkitUsersProfile-DNOB_Kuk.js";
1
+ import { u as o, a } from "./useAuthkitUsersProfile-DNOB_Kuk.js";
2
2
  import { U as u, u as r } from "./useAuthkitAppsAuthPageInfo-COeq29Tn.js";
3
3
  import { u as f } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
4
4
  import { u as A } from "./useMessageNotifications-DOH1MS61.js";
5
- import { g as n, s as h } from "./globalConfig-DZIhLe1R.js";
6
- import { a as x, u as d, w as g } from "./viewTransitions-C-ZLwiJ0.js";
7
- import { u as U } from "./useTableHandle-DKUIdSSh.js";
8
- import { u as b } from "./useUploadCos-B5P_PDcy.js";
5
+ import { g as l, s as m } from "./globalConfig-DZIhLe1R.js";
6
+ import { a as d, u as x, b as g, w as C } from "./useDownloads-BkDo_wOR.js";
7
+ import { u as k } from "./useTableHandle-DKUIdSSh.js";
8
+ import { u as w } from "./useUploadCos-B5P_PDcy.js";
9
9
  export {
10
10
  u as UseAuthkitAppsAuthPageInfo,
11
- n as globalConfig,
12
- h as setGlobalConfig,
13
- x as useActiveDoc,
11
+ l as globalConfig,
12
+ m as setGlobalConfig,
13
+ d as useActiveDoc,
14
14
  o as useAuthkitAuth,
15
15
  r as useAuthkitAuthModal,
16
16
  f as useAuthkitCreateAndUpdate,
17
- t as useAuthkitUsersProfile,
18
- d as useCommonCreateAndUpdate,
17
+ a as useAuthkitUsersProfile,
18
+ x as useCommonCreateAndUpdate,
19
+ g as useDownloads,
19
20
  A as useMessageNotifications,
20
- U as useTableHandle,
21
- b as useUploadCos,
22
- g as withViewTransition
21
+ k as useTableHandle,
22
+ w as useUploadCos,
23
+ C as withViewTransition
23
24
  };
@@ -0,0 +1,23 @@
1
+ export { default as BrowserExtensions } from './components/Download/BrowserExtensions.vue';
2
+ export { default as DesktopDownloads } from './components/Download/DesktopDownloads.vue';
3
+ export { default as MobileDownloads } from './components/Download/MobileDownloads.vue';
4
+ export { default as DownloadCard } from './components/Download/DownloadCard.vue';
5
+ export { default as DownloadDropdown } from './components/Download/DownloadDropdown.vue';
6
+ export { default as DownloadGrid } from './components/Download/DownloadGrid.vue';
7
+ export { default as DownloadSectionHeader } from './components/Download/DownloadSectionHeader.vue';
8
+ export { default as ExtensionCard } from './components/Download/ExtensionCard.vue';
9
+ export type { DesktopDownloadItem, ExtensionItem, MobileDownloadItem } from './common/downloadOptions';
10
+ export { default as AndroidWhiteIcon } from './assets/icons/official/android-white.svg';
11
+ export { default as AppleWhiteIcon } from './assets/icons/official/apple-white.svg';
12
+ export { default as AppleIcon } from './assets/icons/official/apple.svg';
13
+ export { default as WindowsIcon } from './assets/icons/official/windows.svg';
14
+ export { default as ChromeIcon } from './assets/icons/official/chrome.svg';
15
+ export { default as ChromiumIcon } from './assets/icons/official/chromium.svg';
16
+ export { default as EdgeIcon } from './assets/icons/official/edge.svg';
17
+ export { default as FirefoxIcon } from './assets/icons/official/firefox.svg';
18
+ export { default as SafariIcon } from './assets/icons/official/safari.svg';
19
+ export { default as ChromeStoreIcon } from './assets/icons/official/chrome-store.svg';
20
+ export { default as EdgeStoreIcon } from './assets/icons/official/edge-store.svg';
21
+ export { default as FirefoxStoreIcon } from './assets/icons/official/firefox-store.svg';
22
+ export { default as SafariStoreIcon } from './assets/icons/official/safari-store.svg';
23
+ export { default as DownloadIcon } from './assets/icons/official/download.svg';