@delta-comic/core 1.3.0 → 1.3.1

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.
@@ -0,0 +1,2 @@
1
+ import { App } from 'vue';
2
+ export declare const initSentry: (app: App) => void;
@@ -0,0 +1,6 @@
1
+ export declare const useFullscreen: () => {
2
+ isFullscreen: import('vue').ShallowRef<boolean, boolean>;
3
+ entry(): void;
4
+ exit(): void;
5
+ toggle(): void;
6
+ };
@@ -0,0 +1,4 @@
1
+ export * from './temp';
2
+ export * from './ipc';
3
+ export * from './fc';
4
+ export * from './analyze';
@@ -0,0 +1,40 @@
1
+ import { uni } from '@delta-comic/model';
2
+ export interface SharedFunctions {
3
+ getRandomProvide(signal?: AbortSignal): PromiseLike<uni.item.Item[]>;
4
+ routeToContent(contentType_: uni.content.ContentType_, id: string, ep: string, preload?: uni.item.Item): PromiseLike<any>;
5
+ routeToSearch(input: string, source?: [plugin: string, name: string], sort?: string): PromiseLike<any>;
6
+ triggerSharePopup(page: uni.content.ContentPage): PromiseLike<void>;
7
+ triggerShareToken(token: string): PromiseLike<void>;
8
+ pushShareToken(token: string): PromiseLike<void>;
9
+ }
10
+ export declare class SharedFunction {
11
+ private static sharedFunctions;
12
+ static define<TKey extends keyof SharedFunctions>(fn: SharedFunctions[TKey], plugin: string, name: TKey): SharedFunctions[TKey];
13
+ static call<TKey extends keyof SharedFunctions>(name: TKey, ...args: Parameters<SharedFunctions[TKey]>): {
14
+ fn: SharedFunctions[keyof SharedFunctions];
15
+ plugin: string;
16
+ result: ReturnType<SharedFunctions[TKey]>;
17
+ }[] & Promise<{
18
+ result: Awaited<ReturnType<SharedFunctions[TKey]>>;
19
+ fn: SharedFunctions[keyof SharedFunctions];
20
+ plugin: string;
21
+ }[]>;
22
+ static callRandom<TKey extends keyof SharedFunctions>(name: TKey, ...args: Parameters<SharedFunctions[TKey]>): {
23
+ fn: SharedFunctions[keyof SharedFunctions];
24
+ plugin: string;
25
+ result: ReturnType<SharedFunctions[TKey]>;
26
+ } & Promise<{
27
+ result: Awaited<ReturnType<SharedFunctions[TKey]>>;
28
+ fn: SharedFunctions[keyof SharedFunctions];
29
+ plugin: string;
30
+ }>;
31
+ static callWitch<TKey extends keyof SharedFunctions>(name: TKey, plugin: string, ...args: Parameters<SharedFunctions[TKey]>): {
32
+ fn: SharedFunctions[keyof SharedFunctions];
33
+ plugin: string;
34
+ result: ReturnType<SharedFunctions[TKey]>;
35
+ }[] & Promise<{
36
+ result: Awaited<ReturnType<SharedFunctions[TKey]>>;
37
+ fn: SharedFunctions[keyof SharedFunctions];
38
+ plugin: string;
39
+ }[]>;
40
+ }
@@ -0,0 +1,23 @@
1
+ import { Reactive } from 'vue';
2
+ export declare const useTemp: () => import('pinia').Store<"core:temp", Pick<{
3
+ $apply: <T extends object>(id: string, def: () => T) => Reactive<T>;
4
+ $has: (id: string) => boolean;
5
+ $onlyGet: <T extends object>(id: string) => Reactive<T>;
6
+ $applyRaw: <T extends object>(id: string, def: () => T) => T;
7
+ $hasRaw: (id: string) => boolean;
8
+ $onlyGetRaw: <T extends object>(id: string) => Reactive<T>;
9
+ }, never>, Pick<{
10
+ $apply: <T extends object>(id: string, def: () => T) => Reactive<T>;
11
+ $has: (id: string) => boolean;
12
+ $onlyGet: <T extends object>(id: string) => Reactive<T>;
13
+ $applyRaw: <T extends object>(id: string, def: () => T) => T;
14
+ $hasRaw: (id: string) => boolean;
15
+ $onlyGetRaw: <T extends object>(id: string) => Reactive<T>;
16
+ }, never>, Pick<{
17
+ $apply: <T extends object>(id: string, def: () => T) => Reactive<T>;
18
+ $has: (id: string) => boolean;
19
+ $onlyGet: <T extends object>(id: string) => Reactive<T>;
20
+ $applyRaw: <T extends object>(id: string, def: () => T) => T;
21
+ $hasRaw: (id: string) => boolean;
22
+ $onlyGetRaw: <T extends object>(id: string) => Reactive<T>;
23
+ }, "$apply" | "$has" | "$onlyGet" | "$applyRaw" | "$hasRaw" | "$onlyGetRaw">>;
package/dist/pack.tgz CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delta-comic/core",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "空阙虱楼",
5
5
  "homepage": "https://github.com/delta-comic/delta-comic",
6
6
  "license": "AGPL-3.0-only",
@@ -43,8 +43,8 @@
43
43
  "peerDependencies": {
44
44
  "pinia": "^3.0",
45
45
  "vue": "^3.5",
46
- "@delta-comic/model": "1.3.0",
47
- "@delta-comic/utils": "1.3.0"
46
+ "@delta-comic/model": "1.3.1",
47
+ "@delta-comic/utils": "1.3.1"
48
48
  },
49
49
  "release": {
50
50
  "tagFormat": "core-${version}"