@delta-comic/ui 2.2.0 → 3.0.0-next.4

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 (57) hide show
  1. package/dist/core-NNJn692v.js +27 -0
  2. package/dist/core-NNJn692v.js.map +1 -0
  3. package/dist/dist-js-X_dgLCzM.js +12 -0
  4. package/dist/dist-js-X_dgLCzM.js.map +1 -0
  5. package/dist/index.css +2 -2
  6. package/dist/index.d.ts +1557 -0
  7. package/dist/index.d.ts.map +1 -0
  8. package/dist/index.js +7645 -6764
  9. package/dist/index.js.map +1 -1
  10. package/dist-vite/index.d.mts +7 -0
  11. package/dist-vite/index.mjs +19 -0
  12. package/dist-vite/index.mjs.map +1 -0
  13. package/package.json +40 -41
  14. package/README.md +0 -42
  15. package/dist/index2.js +0 -16
  16. package/dist/index2.js.map +0 -1
  17. package/dist/lib/components/DcAuthorIcon.vue.d.ts +0 -10
  18. package/dist/lib/components/DcAwait.vue.d.ts +0 -26
  19. package/dist/lib/components/DcContent.vue.d.ts +0 -47
  20. package/dist/lib/components/DcFloatPopup.vue.d.ts +0 -39
  21. package/dist/lib/components/DcImage.vue.d.ts +0 -1158
  22. package/dist/lib/components/DcImagedIcon.vue.d.ts +0 -10
  23. package/dist/lib/components/DcList.vue.d.ts +0 -61
  24. package/dist/lib/components/DcLoading.vue.d.ts +0 -18
  25. package/dist/lib/components/DcMarkdown/index.vue.d.ts +0 -14
  26. package/dist/lib/components/DcPopup.vue.d.ts +0 -39
  27. package/dist/lib/components/DcRouterTab.vue.d.ts +0 -33
  28. package/dist/lib/components/DcState.vue.d.ts +0 -27
  29. package/dist/lib/components/DcText.vue.d.ts +0 -8
  30. package/dist/lib/components/DcToggleIcon.vue.d.ts +0 -43
  31. package/dist/lib/components/DcVar.vue.d.ts +0 -23
  32. package/dist/lib/components/DcWaterfall.vue.d.ts +0 -61
  33. package/dist/lib/components/icons.d.ts +0 -6
  34. package/dist/lib/form/components/DcForm.vue.d.ts +0 -40
  35. package/dist/lib/form/components/DcFormCheckbox.vue.d.ts +0 -13
  36. package/dist/lib/form/components/DcFormDate.vue.d.ts +0 -13
  37. package/dist/lib/form/components/DcFormDateRange.vue.d.ts +0 -13
  38. package/dist/lib/form/components/DcFormItem.vue.d.ts +0 -21
  39. package/dist/lib/form/components/DcFormNumber.vue.d.ts +0 -13
  40. package/dist/lib/form/components/DcFormPairs.vue.d.ts +0 -19
  41. package/dist/lib/form/components/DcFormRadio.vue.d.ts +0 -13
  42. package/dist/lib/form/components/DcFormString.vue.d.ts +0 -13
  43. package/dist/lib/form/components/DcFormSwitch.vue.d.ts +0 -13
  44. package/dist/lib/form/functional.d.ts +0 -5
  45. package/dist/lib/form/row.d.ts +0 -73
  46. package/dist/lib/form/type.d.ts +0 -16
  47. package/dist/lib/index.d.ts +0 -45
  48. package/dist/lib/message/dialog.d.ts +0 -9
  49. package/dist/lib/message/download.d.ts +0 -13
  50. package/dist/lib/message/index.d.ts +0 -3
  51. package/dist/lib/message/loading.d.ts +0 -14
  52. package/dist/lib/utils/image.d.ts +0 -5
  53. package/dist/lib/utils/index.d.ts +0 -4
  54. package/dist/lib/utils/layout.d.ts +0 -18
  55. package/dist/lib/utils/type.d.ts +0 -6
  56. package/dist/pack.tgz +0 -0
  57. package/dist/vite/index.d.ts +0 -2
@@ -0,0 +1,7 @@
1
+ import { ComponentResolver } from "unplugin-vue-components";
2
+
3
+ //#region vite/index.d.ts
4
+ declare function DeltaComicUiResolver(): ComponentResolver;
5
+ //#endregion
6
+ export { DeltaComicUiResolver };
7
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1,19 @@
1
+ //#region package.json
2
+ var name = "@delta-comic/ui";
3
+ //#endregion
4
+ //#region vite/index.ts
5
+ function DeltaComicUiResolver() {
6
+ return {
7
+ type: "component",
8
+ resolve: (name$1) => {
9
+ if (name$1.match(/^(Dc[A-Z]|dc-[a-z])/)) return {
10
+ name: name$1,
11
+ from: name
12
+ };
13
+ }
14
+ };
15
+ }
16
+ //#endregion
17
+ export { DeltaComicUiResolver };
18
+
19
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":["name","pkgName"],"sources":["../package.json","../vite/index.ts"],"sourcesContent":["","import type { ComponentResolver } from 'unplugin-vue-components'\n\nimport { name as pkgName } from '../package.json'\n\nexport function DeltaComicUiResolver(): ComponentResolver {\n return {\n type: 'component',\n resolve: (name: string) => {\n if (name.match(/^(Dc[A-Z]|dc-[a-z])/)) return { name, from: pkgName }\n return\n },\n }\n}"],"mappings":";;;;ACIA,SAAgB,uBAA0C;CACxD,OAAO;EACL,MAAM;EACN,UAAU,WAAiB;GACzB,IAAIA,OAAK,MAAM,qBAAqB,GAAG,OAAO;IAAE,MAAA;IAAM,MAAMC;GAAQ;EAEtE;CACF;AACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delta-comic/ui",
3
- "version": "2.2.0",
3
+ "version": "3.0.0-next.4",
4
4
  "description": "空阙虱楼",
5
5
  "homepage": "https://github.com/delta-comic/delta-comic",
6
6
  "license": "AGPL-3.0-only",
@@ -13,20 +13,21 @@
13
13
  "url": "https://github.com/delta-comic/delta-comic.git"
14
14
  },
15
15
  "files": [
16
- "dist"
16
+ "dist",
17
+ "dist-vite"
17
18
  ],
18
19
  "type": "module",
19
20
  "main": "./dist/index.js",
20
21
  "module": "./dist/index.js",
21
- "types": "./dist/lib/index.d.ts",
22
+ "types": "./dist/index.d.ts",
22
23
  "exports": {
23
24
  ".": {
24
- "types": "./dist/lib/index.d.ts",
25
+ "types": "./dist/index.d.ts",
25
26
  "import": "./dist/index.js"
26
27
  },
27
28
  "./vite": {
28
- "types": "./dist/vite/index.d.ts",
29
- "import": "./dist/index2.js"
29
+ "types": "./dist-vite/index.d.mts",
30
+ "import": "./dist-vite/index.mjs"
30
31
  },
31
32
  "./style.css": "./dist/index.css"
32
33
  },
@@ -35,52 +36,50 @@
35
36
  },
36
37
  "dependencies": {
37
38
  "@lhlyu/vue-virtual-waterfall": "1.0.8",
38
- "@pinia/colada": "^1.1.0",
39
+ "@tauri-apps/api": "^2.11.0",
39
40
  "@tauri-apps/plugin-shell": "^2.3.5",
40
- "@vant/use": "^1.6.0",
41
- "@vueuse/core": "^14.2.1",
42
- "dayjs": "^1.11.20",
43
- "dompurify": "^3.3.3",
44
- "linkify-it": "^5.0.0",
45
- "markdown-it": "^14.1.1",
41
+ "@vueuse/core": "^14.3.0",
42
+ "dayjs": "^1.11.21",
43
+ "es-toolkit": "^1.47.0",
44
+ "linkify-it": "^5.0.1",
45
+ "markdown-it": "^14.2.0",
46
46
  "mitt": "^3.0.1",
47
- "motion-v": "2.0.1",
48
- "tailwind-merge": "^3.5.0",
47
+ "motion-v": "2.2.1",
48
+ "swiper": "^14.0.1",
49
+ "tailwind-merge": "^3.6.0",
49
50
  "tailwindcss-safe-area-capacitor": "^0.5.1",
50
- "tlds": "^1.261.0"
51
+ "tlds": "^1.261.0",
52
+ "@delta-comic/logger": "3.0.0-next.4"
51
53
  },
52
54
  "devDependencies": {
53
- "@tailwindcss/vite": "^4.2.1",
55
+ "@tailwindcss/vite": "^4.3.0",
54
56
  "@types/linkify-it": "^5.0.0",
55
57
  "@types/markdown-it": "^14.1.2",
56
- "@vitejs/plugin-vue": "^6.0.4",
57
- "@vitejs/plugin-vue-jsx": "^5.1.4",
58
- "browserslist": "^4.28.1",
58
+ "@typescript/native-preview": "7.0.0-dev.20260707.2",
59
+ "@vitejs/plugin-vue": "^6.0.7",
60
+ "@vitejs/plugin-vue-jsx": "^5.1.5",
61
+ "browserslist": "^4.28.2",
59
62
  "lightningcss": "^1.32.0",
60
- "tailwindcss": "^4.2.2",
61
- "unplugin-vue-components": "31.0.0",
62
- "vite": "npm:@voidzero-dev/vite-plus-core@^0.1.16",
63
- "vite-plus": "^0.1.16",
64
- "vue-component-type-helpers": "^3.2.6"
63
+ "rolldown-plugin-dts": "^0.26.0",
64
+ "tailwindcss": "^4.3.0",
65
+ "unplugin-vue-components": "32.1.0",
66
+ "vite": "npm:@voidzero-dev/vite-plus-core@latest",
67
+ "vite-plus": "^0.2.4",
68
+ "vue-component-type-helpers": "^3.3.3",
69
+ "vue-tsc": "^3.3.3"
65
70
  },
66
71
  "peerDependencies": {
67
- "naive-ui": "^2.43",
68
- "pinia": "^3.0",
69
- "vant": "^4.9",
70
- "vue": "^3.5",
71
- "vue-router": "^5.0",
72
- "@delta-comic/utils": "2.2.0",
73
- "@delta-comic/model": "2.2.0",
74
- "@delta-comic/core": "2.2.0"
72
+ "@pinia/colada": "^1.3.1",
73
+ "naive-ui": "^2.44.1",
74
+ "pinia": "^3.0.4",
75
+ "vue": "^3.5.40",
76
+ "vue-router": "^5.1.0",
77
+ "@delta-comic/model": "3.0.0-next.4",
78
+ "@delta-comic/utils": "3.0.0-next.4"
75
79
  },
76
- "release": {
77
- "tagFormat": "ui-${version}"
78
- },
79
- "dist": {
80
- "tarball": "./dist/pack.tgz"
81
- },
82
- "readme": "./README.md",
83
80
  "scripts": {
84
- "build": "vp build && pnpm pack --out ./dist/pack.tgz"
81
+ "build": "vp build && vp pack",
82
+ "dev": "vp dev",
83
+ "typecheck": "vue-tsc -p tsconfig.app.json --noEmit && tsgo -p tsconfig.node.json --noEmit"
85
84
  }
86
85
  }
package/README.md DELETED
@@ -1,42 +0,0 @@
1
- ```python
2
- r"""
3
- ___________________________
4
- / ______\ | __ | | ____|
5
- | | _____ | |__| | | |__
6
- | | / _ \| __ \ | __|
7
- | |___| |_| || | \ \| |____
8
- \__________/|_| \________|
9
- ==============================
10
- 空阙虱楼 Copyright © Wenxig
11
- """
12
- ```
13
-
14
- [![GitHub](https://img.shields.io/github/license/delta-comic/delta-comic-core)](https://raw.githubusercontent.com/delta-comic/delta-comic-core/main/LICENSE)
15
- [![NPM Downloads](https://img.shields.io/npm/dm/delta-comic-core)](https://www.npmjs.com/package/delta-comic-core)
16
-
17
- - 工具库
18
-
19
- ## 功能
20
-
21
- - 辅助编写插件
22
- - 提供通用数据结构与默认样式
23
-
24
- ## 如何使用
25
-
26
- ```sh
27
- pnpm add delta-comic-core
28
- ```
29
-
30
- ## 为谁编写插件?
31
-
32
- [![Readme Card](https://wenxig-grs.vercel.app/api/pin/?username=delta-comic&repo=delta-comic&user&theme=transparent)](https://github.com/delta-comic/delta-comic)
33
-
34
- ## 辅助的插件
35
-
36
- ### Layout
37
-
38
- [![Readme Card](https://wenxig-grs.vercel.app/api/pin/?username=delta-comic&repo=delta-comic-plugin-layout&user&theme=transparent)](https://github.com/delta-comic/delta-comic-plugin-bika)
39
-
40
- ## Star History
41
-
42
- [![Star History Chart](https://api.star-history.com/svg?repos=delta-comic/delta-comic-core&type=Date)](https://www.star-history.com/#delta-comic/delta-comic-core&Date)
package/dist/index2.js DELETED
@@ -1,16 +0,0 @@
1
- //#region vite/index.ts
2
- function e() {
3
- return {
4
- type: "component",
5
- resolve: (e) => {
6
- if (e.match(/^(Dc[A-Z]|dc-[a-z])/)) return {
7
- name: e,
8
- from: "@delta-comic/ui"
9
- };
10
- }
11
- };
12
- }
13
- //#endregion
14
- export { e as DeltaComicUiResolver };
15
-
16
- //# sourceMappingURL=index2.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index2.js","names":[],"sources":["../vite/index.ts"],"sourcesContent":["import type { ComponentResolver } from 'unplugin-vue-components'\n\nexport function DeltaComicUiResolver(): ComponentResolver {\n return {\n type: 'component',\n resolve: (name: string) => {\n if (name.match(/^(Dc[A-Z]|dc-[a-z])/)) return { name, from: '@delta-comic/ui' }\n }\n }\n}"],"mappings":";AAEA,SAAgB,IAA0C;AACxD,QAAO;EACL,MAAM;EACN,UAAU,MAAiB;AACzB,OAAI,EAAK,MAAM,sBAAsB,CAAE,QAAO;IAAE;IAAM,MAAM;IAAmB;;EAElF"}
@@ -1,10 +0,0 @@
1
- import { uni } from '@delta-comic/model';
2
- type __VLS_Props = {
3
- author: {
4
- $$plugin: string;
5
- icon: string | uni.resource.RawResource | uni.image.RawImage;
6
- };
7
- sizeSpacing: number;
8
- };
9
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
- export default _default;
@@ -1,26 +0,0 @@
1
- declare const _default: <T extends PromiseLike<unknown>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & {
3
- promise: () => T;
4
- autoLoad?: boolean;
5
- } & Partial<{}>> & import('vue').PublicProps;
6
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
7
- attrs: any;
8
- slots: Readonly<{
9
- default(arg: {
10
- result: Awaited<T> | undefined;
11
- load: () => Promise<T>;
12
- }): any;
13
- }> & {
14
- default(arg: {
15
- result: Awaited<T> | undefined;
16
- load: () => Promise<T>;
17
- }): any;
18
- };
19
- emit: {};
20
- }>) => import('vue').VNode & {
21
- __ctx?: Awaited<typeof __VLS_setup>;
22
- };
23
- export default _default;
24
- type __VLS_PrettifyLocal<T> = {
25
- [K in keyof T]: T[K];
26
- } & {};
@@ -1,47 +0,0 @@
1
- import { UseInfiniteQueryReturn, UseQueryReturn } from '@pinia/colada';
2
- import { StyleValue } from 'vue';
3
- import { StyleProps } from '../utils';
4
- declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & ({
6
- hideError?: boolean;
7
- hideEmpty?: boolean;
8
- hideLoading?: boolean;
9
- source: {
10
- type: "query";
11
- query: UseQueryReturn<T, any, any>;
12
- } | {
13
- type: "infinite";
14
- stream: UseInfiniteQueryReturn<T, any, any>;
15
- } | {
16
- type: "raw";
17
- data: T;
18
- isLoading: boolean;
19
- error?: Error | null;
20
- refetch?: () => any;
21
- };
22
- classError?: any;
23
- classEmpty?: any;
24
- styleError?: StyleValue;
25
- styleEmpty?: StyleValue;
26
- } & StyleProps) & Partial<{}>> & import('vue').PublicProps;
27
- expose(exposed: import('vue').ShallowUnwrapRef<{
28
- cont: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
29
- }>): void;
30
- attrs: any;
31
- slots: Readonly<{
32
- default(data: {
33
- data?: T;
34
- }): any;
35
- }> & {
36
- default(data: {
37
- data?: T;
38
- }): any;
39
- };
40
- emit: {};
41
- }>) => import('vue').VNode & {
42
- __ctx?: Awaited<typeof __VLS_setup>;
43
- };
44
- export default _default;
45
- type __VLS_PrettifyLocal<T> = {
46
- [K in keyof T]: T[K];
47
- } & {};
@@ -1,39 +0,0 @@
1
- import { StyleProps } from '../utils';
2
- type __VLS_Props = {
3
- anchors?: 'high' | 'low' | number[];
4
- lockScroll?: boolean;
5
- overlay?: boolean;
6
- contentDraggable?: boolean;
7
- } & StyleProps;
8
- declare function __VLS_template(): {
9
- attrs: Partial<{}>;
10
- slots: Readonly<{
11
- default(arg: {
12
- height: number;
13
- }): void;
14
- }> & {
15
- default(arg: {
16
- height: number;
17
- }): void;
18
- };
19
- refs: {};
20
- rootEl: any;
21
- };
22
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
23
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
24
- show(node?: number): void;
25
- close(): void;
26
- isShowing: Readonly<import('vue').ShallowRef<boolean, boolean>>;
27
- height: Readonly<import('vue').ShallowRef<number, number>>;
28
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
29
- anchors: "high" | "low" | number[];
30
- lockScroll: boolean;
31
- contentDraggable: boolean;
32
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
33
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
34
- export default _default;
35
- type __VLS_WithTemplateSlots<T, S> = T & {
36
- new (): {
37
- $slots: S;
38
- };
39
- };