delta-comic-core 0.0.3 → 0.0.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.
- package/dist/bundle.css +1 -1
- package/dist/bundle.js +136 -279
- package/dist/bundle.js.map +1 -1
- package/dist/bundle.umd.cjs +2 -2
- package/dist/bundle.umd.cjs.map +1 -1
- package/dist/config/index.d.ts +46 -29
- package/dist/depends/index.d.ts +24 -0
- package/dist/index.d.ts +42 -1324
- 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/package.json +3 -3
- 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/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "delta-comic-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
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",
|
|
@@ -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",
|