delta-comic-core 0.5.13 → 1.0.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.
- package/README.md +4 -4
- package/dist/bundle.cjs +3 -3
- package/dist/bundle.cjs.map +1 -1
- package/dist/bundle.css +1 -1
- package/dist/bundle.js +5539 -5509
- package/dist/bundle.js.map +1 -1
- package/dist/bundle2.cjs.map +1 -1
- package/dist/bundle2.js.map +1 -1
- package/dist/lib/components/image.vue.d.ts +6 -6
- package/dist/lib/components/list.vue.d.ts +1 -1
- package/dist/lib/components/waterfall.vue.d.ts +1 -1
- package/dist/lib/depends/index.d.ts +3 -3
- package/dist/lib/index.d.ts +25 -25
- package/dist/lib/plugin/define.d.ts +24 -24
- package/dist/lib/plugin/index.d.ts +4 -4
- package/dist/lib/struct/comment.d.ts +3 -3
- package/dist/lib/struct/content.d.ts +7 -8
- package/dist/lib/struct/index.d.ts +6 -6
- package/dist/lib/struct/item.d.ts +5 -6
- package/dist/lib/struct/user.d.ts +3 -3
- package/dist/lib/utils/data.d.ts +12 -12
- package/dist/lib/utils/layout.d.ts +1 -1
- package/dist/lib/utils/message.d.ts +1 -1
- package/dist/pack.tgz +0 -0
- package/package.json +76 -43
package/dist/lib/utils/data.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Raw, Ref } from 'vue';
|
|
2
2
|
/**
|
|
3
3
|
* 可以结构化的数据
|
|
4
|
-
*/
|
|
4
|
+
*/
|
|
5
5
|
export declare class Struct<TRaw extends object> {
|
|
6
6
|
protected $$raw: TRaw;
|
|
7
7
|
toJSON(): TRaw;
|
|
@@ -11,7 +11,7 @@ export declare class Struct<TRaw extends object> {
|
|
|
11
11
|
export type MetaData = Record<string | number, any>;
|
|
12
12
|
/**
|
|
13
13
|
* 比如有很多需要注明来自哪个插件的值都可以用
|
|
14
|
-
*/
|
|
14
|
+
*/
|
|
15
15
|
export declare class SourcedValue<T extends [string, string]> {
|
|
16
16
|
separator: string;
|
|
17
17
|
toJSON(value: T | string): T;
|
|
@@ -24,7 +24,7 @@ export type SourcedKeyType<T extends SourcedKeyMap<[string, string], any> | Sour
|
|
|
24
24
|
/**
|
|
25
25
|
* 相比较于普通的Map,这个元素的key操作可以是`TKey | string`
|
|
26
26
|
* _但内部保存仍使用`SourcedValue.toString`作为key_
|
|
27
|
-
*/
|
|
27
|
+
*/
|
|
28
28
|
export declare class SourcedKeyMap<TKey extends [string, string], TValue> extends SourcedValue<TKey> implements Map<string, TValue> {
|
|
29
29
|
static create<TKey extends [string, string], TValue>(separator?: string): import('vue').ShallowReactive<SourcedKeyMap<TKey, TValue>>;
|
|
30
30
|
private constructor();
|
|
@@ -49,7 +49,7 @@ type PromiseContentEmits<TR> = {
|
|
|
49
49
|
};
|
|
50
50
|
/**
|
|
51
51
|
* 扩展内容的`Promise`,可视为普通`Promise`使用
|
|
52
|
-
*/
|
|
52
|
+
*/
|
|
53
53
|
export declare class PromiseContent<T, TPF extends any = T, TEmits extends PromiseContentEmits<TPF> = PromiseContentEmits<TPF>> implements PromiseLike<T> {
|
|
54
54
|
private promise;
|
|
55
55
|
private processor;
|
|
@@ -59,7 +59,7 @@ export declare class PromiseContent<T, TPF extends any = T, TEmits extends Promi
|
|
|
59
59
|
static fromPromise<T, TP = T>(promise: Promise<T>, processor?: (val: T) => TP): RPromiseContent<T, TP>;
|
|
60
60
|
/**
|
|
61
61
|
* 使用`PromiseContent.fromPromise`或`PromiseContent.fromAsyncFunction`代替`new PromiseContent`
|
|
62
|
-
|
|
62
|
+
*/
|
|
63
63
|
private constructor();
|
|
64
64
|
loadPromise(promise: Promise<T>): Promise<void>;
|
|
65
65
|
private emitter;
|
|
@@ -68,11 +68,11 @@ export declare class PromiseContent<T, TPF extends any = T, TEmits extends Promi
|
|
|
68
68
|
onFinal(processor: (err: TEmits['finial']) => any): () => void;
|
|
69
69
|
/**
|
|
70
70
|
* 对`this.data.value`做出处理,多次调用仅最后一次生效
|
|
71
|
-
|
|
71
|
+
*/
|
|
72
72
|
setProcessor<TP>(processor: (val: T) => TP): RPromiseContent<T, TP>;
|
|
73
|
-
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null
|
|
74
|
-
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null
|
|
75
|
-
finally(onfinally?: (() => void) | null
|
|
73
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
|
|
74
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
|
|
75
|
+
finally(onfinally?: (() => void) | null): Promise<T>;
|
|
76
76
|
data: import('vue').ShallowRef<TPF | undefined, TPF | undefined>;
|
|
77
77
|
isLoading: import('vue').ShallowRef<boolean, boolean>;
|
|
78
78
|
isError: import('vue').ShallowRef<boolean, boolean>;
|
|
@@ -89,14 +89,14 @@ export type PromiseWithResolvers<T> = {
|
|
|
89
89
|
reset: (isLoading?: boolean) => void;
|
|
90
90
|
};
|
|
91
91
|
export type RPromiseContent<T, PTF = T> = Raw<PromiseContent<T, PTF>>;
|
|
92
|
-
type RawGenerator<T> = (abortSignal: AbortSignal, that: Stream<T>) =>
|
|
92
|
+
type RawGenerator<T> = (abortSignal: AbortSignal, that: Stream<T>) => IterableIterator<T[], void, Stream<T>> | AsyncIterableIterator<T[], void, Stream<T>>;
|
|
93
93
|
/**
|
|
94
94
|
* _(网络)_ 数据流
|
|
95
|
-
*/
|
|
95
|
+
*/
|
|
96
96
|
export type RStream<T> = Raw<Stream<T>>;
|
|
97
97
|
/**
|
|
98
98
|
* 可迭代 _(网络)_ 数据流
|
|
99
|
-
*/
|
|
99
|
+
*/
|
|
100
100
|
export declare class Stream<T> implements AsyncIterableIterator<T[], void> {
|
|
101
101
|
/**
|
|
102
102
|
* 使用`Stream.create`代替`new Stream`
|
|
@@ -4,5 +4,5 @@ import { MaybeRefOrGetter, ComputedRef } from 'vue';
|
|
|
4
4
|
* 对于所有弹出层,使用其确定`z-index`
|
|
5
5
|
* 在组件内使用时,卸载组件 _`(onUnmounted)`_ 会自动清理,否则需要主动调用`return[2]`清理
|
|
6
6
|
*
|
|
7
|
-
*/
|
|
7
|
+
*/
|
|
8
8
|
export declare const useZIndex: (show: MaybeRefOrGetter<boolean>) => [index: ComputedRef<number>, isLast: ComputedRef<boolean>, stopUse: () => void];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CSSProperties, MaybeRefOrGetter, Reactive } from 'vue';
|
|
2
1
|
import { DialogOptions, DialogReactive } from 'naive-ui';
|
|
2
|
+
import { CSSProperties, MaybeRefOrGetter, Reactive } from 'vue';
|
|
3
3
|
export type LoadingInstance = ReturnType<typeof createLoadingMessage>;
|
|
4
4
|
export declare const createLoadingMessage: (text?: MaybeRefOrGetter<string>, api?: import('naive-ui').MessageApi) => {
|
|
5
5
|
bind: {
|
package/dist/pack.tgz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,79 +1,112 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "delta-comic-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "空阙虱楼",
|
|
5
5
|
"homepage": "https://github.com/delta-comic/delta-comic-core",
|
|
6
|
+
"license": "AGPL-3.0-only",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "wenxig",
|
|
9
|
+
"email": "wenxinguo12@gmail.com"
|
|
10
|
+
},
|
|
6
11
|
"repository": {
|
|
7
12
|
"type": "git",
|
|
8
13
|
"url": "https://github.com/delta-comic/delta-comic-core.git"
|
|
9
14
|
},
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
},
|
|
14
|
-
"readme": "./README.md",
|
|
15
|
-
"license": "AGPL-3.0-only",
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
16
18
|
"type": "module",
|
|
19
|
+
"main": "./dist/bundle.js",
|
|
20
|
+
"module": "./dist/bundle.js",
|
|
21
|
+
"types": "./dist/lib/index.d.ts",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"types": "./dist/lib/index.d.ts",
|
|
25
|
+
"import": "./dist/bundle.js",
|
|
26
|
+
"require": "./dist/bundle.cjs"
|
|
27
|
+
},
|
|
28
|
+
"./vite": {
|
|
29
|
+
"types": "./dist/vite/index.d.ts",
|
|
30
|
+
"import": "./dist/bundle2.js",
|
|
31
|
+
"require": "./dist/bundle2.cjs"
|
|
32
|
+
},
|
|
33
|
+
"./style.css": "./dist/bundle.css"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "vite build && pnpm pack --out ./dist/pack.tgz",
|
|
37
|
+
"lint": "oxlint --type-aware",
|
|
38
|
+
"lint:fix": "oxlint --fix --type-aware",
|
|
39
|
+
"prepare": "husky",
|
|
40
|
+
"lint-staged": "lint-staged"
|
|
41
|
+
},
|
|
17
42
|
"dependencies": {
|
|
18
43
|
"@lhlyu/vue-virtual-waterfall": "^1.0.8",
|
|
19
44
|
"@vant/use": "^1.6.0",
|
|
20
45
|
"@vueuse/core": "14.1.0",
|
|
21
|
-
"axios": "^1.12.2",
|
|
22
46
|
"dayjs": "^1.11.19",
|
|
23
47
|
"es-toolkit": "^1.40.0",
|
|
24
48
|
"mitt": "^3.0.1",
|
|
25
49
|
"motion-v": "1.7.3",
|
|
26
|
-
"
|
|
27
|
-
"pinia": "^3.0.3",
|
|
50
|
+
"semver": "^7.7.3",
|
|
28
51
|
"tailwindcss-safe-area-capacitor": "^0.5.1",
|
|
29
|
-
"vant": "4.9.21",
|
|
30
52
|
"vidstack": "^1.12.13",
|
|
31
53
|
"vite-plugin-external": "^6.2.2",
|
|
32
|
-
"vite-plugin-monkey": "^7.1.8"
|
|
33
|
-
"vue-router": "4.6.3"
|
|
34
|
-
},
|
|
35
|
-
"peerDependencies": {
|
|
36
|
-
"axios": "^1.12.2",
|
|
37
|
-
"kysely": "^0.28.9",
|
|
38
|
-
"naive-ui": "2.43.2",
|
|
39
|
-
"pinia": "^3.0.4",
|
|
40
|
-
"vant": "4.9.22",
|
|
41
|
-
"vue": "3.5.26",
|
|
42
|
-
"vue-router": "4.6.4"
|
|
54
|
+
"vite-plugin-monkey": "^7.1.8"
|
|
43
55
|
},
|
|
44
56
|
"devDependencies": {
|
|
57
|
+
"@commitlint/cli": "^20.4.0",
|
|
58
|
+
"@commitlint/config-conventional": "^20.4.0",
|
|
59
|
+
"@commitlint/types": "^20.4.0",
|
|
60
|
+
"@cspell/dict-npm": "^5.2.31",
|
|
61
|
+
"@cspell/dict-rust": "^4.1.1",
|
|
62
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
63
|
+
"@semantic-release/git": "^10.0.1",
|
|
64
|
+
"@semantic-release/github": "^12.0.3",
|
|
65
|
+
"@semantic-release/npm": "^13.1.3",
|
|
66
|
+
"@semantic-release/release-notes-generator": "^14.1.0",
|
|
45
67
|
"@tailwindcss/vite": "^4.1.18",
|
|
68
|
+
"@types/conventional-recommended-bump": "^10.0.3",
|
|
46
69
|
"@types/node": "^25.0.6",
|
|
47
70
|
"@vitejs/plugin-vue": "^6.0.3",
|
|
48
71
|
"@vitejs/plugin-vue-jsx": "^5.1.3",
|
|
49
72
|
"browserslist": "^4.28.1",
|
|
73
|
+
"commitlint-plugin-cspell": "^0.4.0",
|
|
74
|
+
"conventional-recommended-bump": "^11.2.0",
|
|
75
|
+
"cspell": "^9.6.2",
|
|
76
|
+
"husky": "^9.1.7",
|
|
50
77
|
"lightningcss": "^1.30.2",
|
|
78
|
+
"lint-staged": "^16.2.7",
|
|
79
|
+
"oxfmt": "^0.27.0",
|
|
80
|
+
"oxlint": "^1.42.0",
|
|
81
|
+
"oxlint-tsgolint": "^0.11.4",
|
|
82
|
+
"semantic-release": "^25.0.3",
|
|
51
83
|
"tailwindcss": "^4.1.18",
|
|
52
84
|
"unplugin-vue-components": "31.0.0",
|
|
53
85
|
"vite": "^8.0.0-beta.11",
|
|
54
86
|
"vite-plugin-dts": "^4.5.4",
|
|
55
87
|
"vue-component-type-helpers": "^3.2.2"
|
|
56
88
|
},
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
"import": "./dist/bundle2.js",
|
|
70
|
-
"require": "./dist/bundle2.cjs",
|
|
71
|
-
"types": "./dist/vite/index.d.ts"
|
|
89
|
+
"peerDependencies": {
|
|
90
|
+
"axios": "^1.13.4",
|
|
91
|
+
"kysely": "^0.28.10",
|
|
92
|
+
"naive-ui": "2.43.2",
|
|
93
|
+
"pinia": "^3.0.4",
|
|
94
|
+
"vant": "4.9.22",
|
|
95
|
+
"vue": "3.5.27",
|
|
96
|
+
"vue-router": "5.0.1"
|
|
97
|
+
},
|
|
98
|
+
"pnpm": {
|
|
99
|
+
"overrides": {
|
|
100
|
+
"vite": "^8.0.0-beta.11"
|
|
72
101
|
},
|
|
73
|
-
"
|
|
102
|
+
"onlyBuiltDependencies": [
|
|
103
|
+
"@parcel/watcher",
|
|
104
|
+
"@tailwindcss/oxide",
|
|
105
|
+
"esbuild"
|
|
106
|
+
]
|
|
74
107
|
},
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
108
|
+
"dist": {
|
|
109
|
+
"tarball": "./dist/pack.tgz"
|
|
110
|
+
},
|
|
111
|
+
"readme": "./README.md"
|
|
112
|
+
}
|