delta-comic-core 0.0.3 → 0.0.5
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/dist/bundle.css +1 -1
- package/dist/bundle.js +219 -350
- package/dist/bundle.js.map +1 -1
- package/dist/bundle.umd.cjs +2 -2
- package/dist/bundle.umd.cjs.map +1 -1
- package/dist/components/image.vue.d.ts +3 -3
- package/dist/config/index.d.ts +46 -29
- package/dist/depends/index.d.ts +24 -0
- package/dist/index.d.ts +51 -1333
- package/dist/pack.tgz +0 -0
- package/dist/plugin/define.d.ts +10 -1
- package/dist/plugin/index.d.ts +5 -1
- package/dist/struct/content.d.ts +6 -5
- package/dist/utils/data.d.ts +11 -2
- package/package.json +4 -4
- package/dist/components/content/unitCard.vue.d.ts +0 -2503
package/dist/pack.tgz
CHANGED
|
Binary file
|
package/dist/plugin/define.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { UserCardComp } from '../struct/user';
|
|
|
5
5
|
import { RStream, RPromiseContent } from '../utils/data';
|
|
6
6
|
import { Item, RawItem } from '../struct/item';
|
|
7
7
|
import { Component, MaybeRefOrGetter } from 'vue';
|
|
8
|
+
import { ConfigPointer } from '../config';
|
|
8
9
|
export type PluginDefineResult = {
|
|
9
10
|
api?: Record<string, string | undefined | false>;
|
|
10
11
|
};
|
|
@@ -16,8 +17,16 @@ export interface PluginConfig {
|
|
|
16
17
|
user?: PluginConfigUser;
|
|
17
18
|
auth?: PluginConfigAuth;
|
|
18
19
|
otherProgress?: PluginOtherProgress[];
|
|
19
|
-
|
|
20
|
+
/**
|
|
21
|
+
* 返回值如果不为空,则会await后作为expose暴露
|
|
22
|
+
*/
|
|
23
|
+
onBooted?(ins: PluginDefineResult): (PromiseLike<object> | object) | void;
|
|
20
24
|
search?: PluginConfigSearch;
|
|
25
|
+
/**
|
|
26
|
+
* 插件的配置项需在此处注册
|
|
27
|
+
* 传入`Store.ConfigPointer`
|
|
28
|
+
*/
|
|
29
|
+
config?: ConfigPointer[];
|
|
21
30
|
}
|
|
22
31
|
export interface PluginOtherProgress {
|
|
23
32
|
call: (setDescription: (description: string) => void) => PromiseLike<any>;
|
package/dist/plugin/index.d.ts
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import { PluginConfig } from './define';
|
|
2
|
-
export declare const definePlugin: (config: PluginConfig | ((safe: boolean) => PluginConfig)) =>
|
|
2
|
+
export declare const definePlugin: (config: PluginConfig | ((safe: boolean) => PluginConfig)) => {
|
|
3
|
+
fn: import('../utils/eventBus').SharedFunctions[keyof import('../utils/eventBus').SharedFunctions];
|
|
4
|
+
plugin: string;
|
|
5
|
+
result: void;
|
|
6
|
+
}[] | undefined;
|
package/dist/struct/content.d.ts
CHANGED
|
@@ -68,11 +68,6 @@ export interface ContentType {
|
|
|
68
68
|
export type ContentType_ = ContentType | string;
|
|
69
69
|
export type ViewLayoutComp = Component<{
|
|
70
70
|
page: ContentPage;
|
|
71
|
-
comp: {
|
|
72
|
-
FavouriteSelect: Component<{
|
|
73
|
-
item: uni.item.Item;
|
|
74
|
-
}>;
|
|
75
|
-
};
|
|
76
71
|
}>;
|
|
77
72
|
export type ItemCardComp = Component<{
|
|
78
73
|
item: uni.item.Item;
|
|
@@ -81,4 +76,10 @@ export type ItemCardComp = Component<{
|
|
|
81
76
|
type?: 'default' | 'big' | 'small';
|
|
82
77
|
class?: any;
|
|
83
78
|
style?: StyleValue;
|
|
79
|
+
}, any, any, any, any, {
|
|
80
|
+
click: [];
|
|
81
|
+
}, {
|
|
82
|
+
default(): void;
|
|
83
|
+
smallTopInfo(): void;
|
|
84
|
+
cover(): void;
|
|
84
85
|
}>;
|
package/dist/utils/data.d.ts
CHANGED
|
@@ -5,12 +5,18 @@ export declare class Struct<TRaw extends object> {
|
|
|
5
5
|
constructor($$raw: TRaw);
|
|
6
6
|
}
|
|
7
7
|
export type MetaData = Record<string | number, any>;
|
|
8
|
+
type PromiseContentEmits<TR> = {
|
|
9
|
+
success: TR;
|
|
10
|
+
error: any;
|
|
11
|
+
finial: void;
|
|
12
|
+
};
|
|
8
13
|
/**
|
|
9
14
|
* 扩展内容的`Promise`,可视为普通`Promise`使用
|
|
10
15
|
*/
|
|
11
|
-
export declare class PromiseContent<T, TPF extends any = T> implements PromiseLike<T> {
|
|
16
|
+
export declare class PromiseContent<T, TPF extends any = T, TEmits extends PromiseContentEmits<TPF> = PromiseContentEmits<TPF>> implements PromiseLike<T> {
|
|
12
17
|
private promise;
|
|
13
18
|
private processor;
|
|
19
|
+
[Symbol.toStringTag]: string;
|
|
14
20
|
private static _this;
|
|
15
21
|
static isPromiseContent(value: unknown): value is PromiseContent<any>;
|
|
16
22
|
static fromPromise<T, TP = T>(promise: Promise<T>, processor?: (val: T) => TP): RPromiseContent<T, TP>;
|
|
@@ -19,7 +25,10 @@ export declare class PromiseContent<T, TPF extends any = T> implements PromiseLi
|
|
|
19
25
|
*/
|
|
20
26
|
private constructor();
|
|
21
27
|
loadPromise(promise: Promise<T>): Promise<void>;
|
|
22
|
-
|
|
28
|
+
private emitter;
|
|
29
|
+
onError(processor: (err: TEmits['error']) => any): () => void;
|
|
30
|
+
onSuccess(processor: (err: TEmits['success']) => any): () => void;
|
|
31
|
+
onFinal(processor: (err: TEmits['finial']) => any): () => void;
|
|
23
32
|
/**
|
|
24
33
|
* 对`this.data.value`做出处理,多次调用仅最后一次生效
|
|
25
34
|
*/
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "delta-comic-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "我曾亲眼见证神的熟视无睹.",
|
|
5
5
|
"homepage": "https://github.com/wenxig/delta-comic-core",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/wenxig/delta-comic-core.git"
|
|
9
9
|
},
|
|
10
|
-
"license": "
|
|
10
|
+
"license": "AGPL-3.0-only",
|
|
11
11
|
"type": "module",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@capacitor/status-bar": "^7.0.3",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"@vant/use": "^1.6.0",
|
|
16
16
|
"@vicons/antd": "^0.13.0",
|
|
17
17
|
"@vicons/material": "^0.13.0",
|
|
18
|
-
"@vueuse/core": "
|
|
18
|
+
"@vueuse/core": "14.0.0",
|
|
19
19
|
"dayjs": "^1.11.18",
|
|
20
20
|
"mitt": "^3.0.1",
|
|
21
21
|
"tailwindcss-safe-area-capacitor": "^0.5.1"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
],
|
|
51
51
|
"main": "./dist/bundle.umd.cjs",
|
|
52
52
|
"module": "./dist/bundle.js",
|
|
53
|
-
"types": "./dist/
|
|
53
|
+
"types": "./dist/global.d.ts",
|
|
54
54
|
"exports": {
|
|
55
55
|
".": {
|
|
56
56
|
"import": "./dist/bundle.js",
|