@delta-comic/plugin 0.0.4 → 0.1.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/dist/index.js +31 -13
- package/dist/index.js.map +1 -1
- package/dist/lib/env/Inject.vue.d.ts +18 -0
- package/dist/lib/env/index.d.ts +10 -0
- package/dist/lib/global.d.ts +2 -0
- package/dist/lib/index.d.ts +1 -0
- package/dist/pack.tgz +0 -0
- package/package.json +8 -4
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { GlobalInjections } from '.';
|
|
2
|
+
import { ComponentProps } from 'vue-component-type-helpers';
|
|
3
|
+
declare const _default: <T extends keyof GlobalInjections>(__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<{
|
|
4
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & {
|
|
5
|
+
key: T;
|
|
6
|
+
args: ComponentProps<GlobalInjections[T]>;
|
|
7
|
+
} & Partial<{}>> & import('vue').PublicProps;
|
|
8
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
9
|
+
attrs: any;
|
|
10
|
+
slots: {};
|
|
11
|
+
emit: {};
|
|
12
|
+
}>) => import('vue').VNode & {
|
|
13
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_PrettifyLocal<T> = {
|
|
17
|
+
[K in keyof T]: T[K];
|
|
18
|
+
} & {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Component, Raw } from 'vue';
|
|
2
|
+
import { default as Inject } from './Inject.vue';
|
|
3
|
+
export type GlobalInjectionsConfig<T extends keyof GlobalInjections = keyof GlobalInjections> = {
|
|
4
|
+
key: T;
|
|
5
|
+
component: Raw<GlobalInjections[T]>;
|
|
6
|
+
};
|
|
7
|
+
export interface GlobalInjections extends Record<string, Component> {
|
|
8
|
+
}
|
|
9
|
+
export declare const addInjection: <T extends keyof GlobalInjections>(key: T, value: GlobalInjections[T]) => void;
|
|
10
|
+
export { Inject };
|
package/dist/lib/global.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SourcedKeyMap } from '@delta-comic/model';
|
|
2
2
|
import { Component, Raw } from 'vue';
|
|
3
3
|
import { Search, Share, Subscribe, User } from './plugin';
|
|
4
|
+
import { GlobalInjectionsConfig } from './env';
|
|
4
5
|
declare class _Global {
|
|
5
6
|
share: import('vue').ShallowReactive<import('vue').ShallowReactive<SourcedKeyMap<[plugin: string, key: string], Share.InitiativeItem>>>;
|
|
6
7
|
shareToken: import('vue').ShallowReactive<import('vue').ShallowReactive<SourcedKeyMap<[plugin: string, key: string], Share.ShareToken>>>;
|
|
@@ -19,6 +20,7 @@ declare class _Global {
|
|
|
19
20
|
addTopButton(plugin: string, ...topButton: Search.HotTopButton[]): void;
|
|
20
21
|
mainLists: import('vue').ShallowReactive<Map<string, Search.HotMainList[]>>;
|
|
21
22
|
addMainList(plugin: string, ...mainLists: Search.HotMainList[]): void;
|
|
23
|
+
envExtends: import('vue').ShallowReactive<Set<GlobalInjectionsConfig>>;
|
|
22
24
|
}
|
|
23
25
|
export declare const Global: _Global;
|
|
24
26
|
export {};
|
package/dist/lib/index.d.ts
CHANGED
package/dist/pack.tgz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@delta-comic/plugin",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "空阙虱楼",
|
|
5
5
|
"homepage": "https://github.com/delta-comic/delta-comic-core",
|
|
6
6
|
"license": "AGPL-3.0-only",
|
|
@@ -33,18 +33,22 @@
|
|
|
33
33
|
"@octokit/rest": "^22.0.1",
|
|
34
34
|
"@tauri-apps/api": "^2.10.1",
|
|
35
35
|
"@tauri-apps/plugin-fs": "^2.4.5",
|
|
36
|
-
"@vitejs/plugin-vue-jsx": "^5.1.4",
|
|
37
36
|
"@vueuse/core": "^14.2.1",
|
|
38
37
|
"jszip": "^3.10.1",
|
|
39
38
|
"lz-string": "^1.5.0",
|
|
40
39
|
"mitt": "^3.0.1",
|
|
41
40
|
"userscript-meta": "^1.0.1",
|
|
41
|
+
"vue-component-type-helpers": "^3.2.4",
|
|
42
|
+
"@delta-comic/core": "0.3.0",
|
|
42
43
|
"@delta-comic/db": "0.0.2",
|
|
43
|
-
"@delta-comic/ui": "0.0.2",
|
|
44
|
-
"@delta-comic/core": "0.2.0",
|
|
45
44
|
"@delta-comic/model": "0.0.2",
|
|
45
|
+
"@delta-comic/ui": "0.0.3",
|
|
46
46
|
"@delta-comic/utils": "0.0.3"
|
|
47
47
|
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@vitejs/plugin-vue": "^6.0.3",
|
|
50
|
+
"@vitejs/plugin-vue-jsx": "^5.1.4"
|
|
51
|
+
},
|
|
48
52
|
"peerDependencies": {
|
|
49
53
|
"axios": "^1.13",
|
|
50
54
|
"kysely": "^0.28",
|