delta-comic-core 0.2.1 → 0.2.2
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.cjs +3 -3
- package/dist/bundle.cjs.map +1 -1
- package/dist/bundle.js +158 -65
- package/dist/bundle.js.map +1 -1
- package/dist/bundle2.cjs +1 -1
- package/dist/bundle2.cjs.map +1 -1
- package/dist/bundle2.js +4 -4
- package/dist/bundle2.js.map +1 -1
- package/dist/lib/components/image.vue.d.ts +1099 -4
- package/dist/lib/index.d.ts +1468 -7
- package/dist/lib/plugin/index.d.ts +25 -0
- package/dist/lib/utils/data.d.ts +1 -1
- package/dist/lib/utils/eventBus.d.ts +1 -1
- package/dist/pack.tgz +0 -0
- package/dist/vite/index.d.ts +9 -2
- package/package.json +1 -1
|
@@ -4,3 +4,28 @@ export declare const definePlugin: (config: PluginConfig | ((safe: boolean) => P
|
|
|
4
4
|
plugin: string;
|
|
5
5
|
result: void;
|
|
6
6
|
}[] | undefined;
|
|
7
|
+
export interface RawPluginMeta {
|
|
8
|
+
'name:display': string;
|
|
9
|
+
'name:id': string;
|
|
10
|
+
version: string;
|
|
11
|
+
author: string | undefined;
|
|
12
|
+
description: string;
|
|
13
|
+
require?: string[] | string;
|
|
14
|
+
}
|
|
15
|
+
export interface PluginMeta {
|
|
16
|
+
name: {
|
|
17
|
+
display: string;
|
|
18
|
+
id: string;
|
|
19
|
+
};
|
|
20
|
+
version: {
|
|
21
|
+
plugin: string;
|
|
22
|
+
supportCore: string;
|
|
23
|
+
};
|
|
24
|
+
author: string;
|
|
25
|
+
description: string;
|
|
26
|
+
require: {
|
|
27
|
+
id: string;
|
|
28
|
+
download?: string | undefined;
|
|
29
|
+
}[];
|
|
30
|
+
}
|
|
31
|
+
export declare const decodePluginMeta: (v: RawPluginMeta) => PluginMeta;
|
package/dist/lib/utils/data.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare class SourcedValue<T extends [string, string]> {
|
|
|
19
19
|
stringify(value: T): string;
|
|
20
20
|
constructor(separator?: string);
|
|
21
21
|
}
|
|
22
|
-
export type SourcedKeyType<T extends SourcedKeyMap<
|
|
22
|
+
export type SourcedKeyType<T extends SourcedKeyMap<[string, string], any> | SourcedValue<any>> = T extends SourcedKeyMap<[string, string], any> ? Parameters<T['get']>[0] : Parameters<T['toJSON']>[0];
|
|
23
23
|
/**
|
|
24
24
|
* 相比较于普通的Map,这个元素的key操作可以是`TKey | string`
|
|
25
25
|
* _但内部保存仍使用`SourcedValue.toString`作为key_
|
|
@@ -12,7 +12,7 @@ export type SharedFunctions = {
|
|
|
12
12
|
addPlugin(ins: PluginConfig): void;
|
|
13
13
|
addRecent(item: uni.item.Item): PromiseLike<any>;
|
|
14
14
|
routeToContent(contentType_: uni.content.ContentType_, id: string, ep: string, preload?: uni.content.PreloadValue): PromiseLike<any>;
|
|
15
|
-
routeToSearch(input: string, source?: string, sort?: string): PromiseLike<any>;
|
|
15
|
+
routeToSearch(input: string, source?: [plugin: string, name: string], sort?: string): PromiseLike<any>;
|
|
16
16
|
addAuthorSubscribe(author: uni.item.Author, plugin: string): PromiseLike<void>;
|
|
17
17
|
removeAuthorSubscribe(author: uni.item.Author, plugin: string): PromiseLike<void>;
|
|
18
18
|
getIsAuthorSubscribe(author: uni.item.Author, plugin: string): PromiseLike<boolean>;
|
package/dist/pack.tgz
CHANGED
|
Binary file
|
package/dist/vite/index.d.ts
CHANGED
|
@@ -4,7 +4,14 @@ export declare const createMonkeyConfig: (config: {
|
|
|
4
4
|
version: string;
|
|
5
5
|
author?: string;
|
|
6
6
|
description: string;
|
|
7
|
-
/**
|
|
8
|
-
|
|
7
|
+
/** 通过语义化版本号描述core支持版本,通过`semver.satisfies`判定 */
|
|
8
|
+
supportCoreVersion: string;
|
|
9
|
+
/** @default ['core'] */
|
|
10
|
+
require?: ({
|
|
11
|
+
id: string;
|
|
12
|
+
download?: string;
|
|
13
|
+
} | string)[];
|
|
14
|
+
/** @default 'src/main.ts' */
|
|
15
|
+
entry?: string;
|
|
9
16
|
}, command: "build" | "serve") => any;
|
|
10
17
|
export declare const createExternalConfig: (command: "build" | "serve") => any;
|