delta-comic-core 0.0.4 → 0.0.6
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 +158 -142
- 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 +10 -5
- package/dist/index.d.ts +19 -13
- package/dist/pack.tgz +0 -0
- package/dist/struct/item.d.ts +2 -0
- package/dist/utils/data.d.ts +11 -2
- package/package.json +2 -2
|
@@ -403,8 +403,8 @@ declare function __VLS_template(): {
|
|
|
403
403
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
404
404
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
405
405
|
isLoaded: import('vue').ComputedRef<boolean>;
|
|
406
|
-
imageEl: HTMLImageElement | null | undefined
|
|
407
|
-
imageIns: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
406
|
+
imageEl: import('vue').ComputedRef<HTMLImageElement | null | undefined>;
|
|
407
|
+
imageIns: Readonly<import('vue').ShallowRef<import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
408
408
|
onPreviewPrev: import('vue').PropType<() => void>;
|
|
409
409
|
onPreviewNext: import('vue').PropType<() => void>;
|
|
410
410
|
showToolbar: {
|
|
@@ -769,7 +769,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
769
769
|
showToolbar: boolean;
|
|
770
770
|
showToolbarTooltip: boolean;
|
|
771
771
|
previewDisabled: boolean;
|
|
772
|
-
}> | null
|
|
772
|
+
}> | null>>;
|
|
773
773
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
774
774
|
load: (...args: any[]) => any;
|
|
775
775
|
click: () => any;
|
package/dist/config/index.d.ts
CHANGED
|
@@ -44,21 +44,26 @@ export declare const useConfig: import('pinia').StoreDefinition<"config", Pick<{
|
|
|
44
44
|
form: ConfigDescription;
|
|
45
45
|
value: Ref<any>;
|
|
46
46
|
}>>;
|
|
47
|
-
$load: <T extends ConfigPointer>(pointer: T) => { [K in keyof T["config"]]: UniFormResult<T["config"][K]>; }
|
|
47
|
+
$load: <T extends ConfigPointer>(pointer: T) => Ref<{ [K in keyof T["config"]]: UniFormResult<T["config"][K]>; }>;
|
|
48
|
+
$isExistConfig: (pointer: ConfigPointer) => boolean;
|
|
49
|
+
$resignerConfig: (pointer: ConfigPointer) => void;
|
|
48
50
|
}, "form">, Pick<{
|
|
49
51
|
isDark: import('vue').ComputedRef<boolean>;
|
|
50
52
|
form: import('vue').ShallowReactive<Map<symbol, {
|
|
51
53
|
form: ConfigDescription;
|
|
52
54
|
value: Ref<any>;
|
|
53
55
|
}>>;
|
|
54
|
-
$load: <T extends ConfigPointer>(pointer: T) => { [K in keyof T["config"]]: UniFormResult<T["config"][K]>; }
|
|
56
|
+
$load: <T extends ConfigPointer>(pointer: T) => Ref<{ [K in keyof T["config"]]: UniFormResult<T["config"][K]>; }>;
|
|
57
|
+
$isExistConfig: (pointer: ConfigPointer) => boolean;
|
|
58
|
+
$resignerConfig: (pointer: ConfigPointer) => void;
|
|
55
59
|
}, "isDark">, Pick<{
|
|
56
60
|
isDark: import('vue').ComputedRef<boolean>;
|
|
57
61
|
form: import('vue').ShallowReactive<Map<symbol, {
|
|
58
62
|
form: ConfigDescription;
|
|
59
63
|
value: Ref<any>;
|
|
60
64
|
}>>;
|
|
61
|
-
$load: <T extends ConfigPointer>(pointer: T) => { [K in keyof T["config"]]: UniFormResult<T["config"][K]>; }
|
|
62
|
-
|
|
63
|
-
|
|
65
|
+
$load: <T extends ConfigPointer>(pointer: T) => Ref<{ [K in keyof T["config"]]: UniFormResult<T["config"][K]>; }>;
|
|
66
|
+
$isExistConfig: (pointer: ConfigPointer) => boolean;
|
|
67
|
+
$resignerConfig: (pointer: ConfigPointer) => void;
|
|
68
|
+
}, "$load" | "$isExistConfig" | "$resignerConfig">>;
|
|
64
69
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -191,8 +191,8 @@ export declare const Comp: {
|
|
|
191
191
|
onError?: (() => any) | undefined;
|
|
192
192
|
}>, {
|
|
193
193
|
isLoaded: import('vue').ComputedRef<boolean>;
|
|
194
|
-
imageEl: HTMLImageElement | null | undefined
|
|
195
|
-
imageIns: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
194
|
+
imageEl: import('vue').ComputedRef<HTMLImageElement | null | undefined>;
|
|
195
|
+
imageIns: Readonly<import('vue').ShallowRef<import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
196
196
|
onPreviewPrev: import('vue').PropType<() => void>;
|
|
197
197
|
onPreviewNext: import('vue').PropType<() => void>;
|
|
198
198
|
showToolbar: {
|
|
@@ -557,7 +557,7 @@ export declare const Comp: {
|
|
|
557
557
|
showToolbar: boolean;
|
|
558
558
|
showToolbarTooltip: boolean;
|
|
559
559
|
previewDisabled: boolean;
|
|
560
|
-
}> | null
|
|
560
|
+
}> | null>>;
|
|
561
561
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
562
562
|
load: (...args: any[]) => any;
|
|
563
563
|
click: () => any;
|
|
@@ -964,8 +964,8 @@ export declare const Comp: {
|
|
|
964
964
|
onError?: (() => any) | undefined;
|
|
965
965
|
}>, {
|
|
966
966
|
isLoaded: import('vue').ComputedRef<boolean>;
|
|
967
|
-
imageEl: HTMLImageElement | null | undefined
|
|
968
|
-
imageIns: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
967
|
+
imageEl: import('vue').ComputedRef<HTMLImageElement | null | undefined>;
|
|
968
|
+
imageIns: Readonly<import('vue').ShallowRef<import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
969
969
|
onPreviewPrev: import('vue').PropType<() => void>;
|
|
970
970
|
onPreviewNext: import('vue').PropType<() => void>;
|
|
971
971
|
showToolbar: {
|
|
@@ -1330,7 +1330,7 @@ export declare const Comp: {
|
|
|
1330
1330
|
showToolbar: boolean;
|
|
1331
1331
|
showToolbarTooltip: boolean;
|
|
1332
1332
|
previewDisabled: boolean;
|
|
1333
|
-
}> | null
|
|
1333
|
+
}> | null>>;
|
|
1334
1334
|
}, {}, {}, {}, {
|
|
1335
1335
|
retryMax: number;
|
|
1336
1336
|
fetchpriority: "high" | "low" | "auto";
|
|
@@ -1363,8 +1363,8 @@ export declare const Comp: {
|
|
|
1363
1363
|
onError?: (() => any) | undefined;
|
|
1364
1364
|
}>, {
|
|
1365
1365
|
isLoaded: import('vue').ComputedRef<boolean>;
|
|
1366
|
-
imageEl: HTMLImageElement | null | undefined
|
|
1367
|
-
imageIns: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
1366
|
+
imageEl: import('vue').ComputedRef<HTMLImageElement | null | undefined>;
|
|
1367
|
+
imageIns: Readonly<import('vue').ShallowRef<import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
1368
1368
|
onPreviewPrev: import('vue').PropType<() => void>;
|
|
1369
1369
|
onPreviewNext: import('vue').PropType<() => void>;
|
|
1370
1370
|
showToolbar: {
|
|
@@ -1729,7 +1729,7 @@ export declare const Comp: {
|
|
|
1729
1729
|
showToolbar: boolean;
|
|
1730
1730
|
showToolbarTooltip: boolean;
|
|
1731
1731
|
previewDisabled: boolean;
|
|
1732
|
-
}> | null
|
|
1732
|
+
}> | null>>;
|
|
1733
1733
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
1734
1734
|
load: (...args: any[]) => any;
|
|
1735
1735
|
click: () => any;
|
|
@@ -2252,22 +2252,28 @@ export declare const Store: {
|
|
|
2252
2252
|
form: import('./config').ConfigDescription;
|
|
2253
2253
|
value: import('vue').Ref<any>;
|
|
2254
2254
|
}>>;
|
|
2255
|
-
$load: <T extends ConfigPointer>(pointer: T) => { [K in keyof T["config"]]: import('./index.ts').UniFormResult<T["config"][K]>; }
|
|
2255
|
+
$load: <T extends ConfigPointer>(pointer: T) => import('vue').Ref<{ [K in keyof T["config"]]: import('./index.ts').UniFormResult<T["config"][K]>; }>;
|
|
2256
|
+
$isExistConfig: (pointer: ConfigPointer) => boolean;
|
|
2257
|
+
$resignerConfig: (pointer: ConfigPointer) => void;
|
|
2256
2258
|
}, "form">, Pick<{
|
|
2257
2259
|
isDark: import('vue').ComputedRef<boolean>;
|
|
2258
2260
|
form: import('vue').ShallowReactive<Map<symbol, {
|
|
2259
2261
|
form: import('./config').ConfigDescription;
|
|
2260
2262
|
value: import('vue').Ref<any>;
|
|
2261
2263
|
}>>;
|
|
2262
|
-
$load: <T extends ConfigPointer>(pointer: T) => { [K in keyof T["config"]]: import('./index.ts').UniFormResult<T["config"][K]>; }
|
|
2264
|
+
$load: <T extends ConfigPointer>(pointer: T) => import('vue').Ref<{ [K in keyof T["config"]]: import('./index.ts').UniFormResult<T["config"][K]>; }>;
|
|
2265
|
+
$isExistConfig: (pointer: ConfigPointer) => boolean;
|
|
2266
|
+
$resignerConfig: (pointer: ConfigPointer) => void;
|
|
2263
2267
|
}, "isDark">, Pick<{
|
|
2264
2268
|
isDark: import('vue').ComputedRef<boolean>;
|
|
2265
2269
|
form: import('vue').ShallowReactive<Map<symbol, {
|
|
2266
2270
|
form: import('./config').ConfigDescription;
|
|
2267
2271
|
value: import('vue').Ref<any>;
|
|
2268
2272
|
}>>;
|
|
2269
|
-
$load: <T extends ConfigPointer>(pointer: T) => { [K in keyof T["config"]]: import('./index.ts').UniFormResult<T["config"][K]>; }
|
|
2270
|
-
|
|
2273
|
+
$load: <T extends ConfigPointer>(pointer: T) => import('vue').Ref<{ [K in keyof T["config"]]: import('./index.ts').UniFormResult<T["config"][K]>; }>;
|
|
2274
|
+
$isExistConfig: (pointer: ConfigPointer) => boolean;
|
|
2275
|
+
$resignerConfig: (pointer: ConfigPointer) => void;
|
|
2276
|
+
}, "$load" | "$isExistConfig" | "$resignerConfig">>;
|
|
2271
2277
|
appConfig: ConfigPointer<{
|
|
2272
2278
|
recordHistory: {
|
|
2273
2279
|
type: "switch";
|
package/dist/pack.tgz
CHANGED
|
Binary file
|
package/dist/struct/item.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export interface RawItem {
|
|
|
33
33
|
description?: string;
|
|
34
34
|
thisEp: RawEp;
|
|
35
35
|
commentSendable: boolean;
|
|
36
|
+
customIsSafe?: boolean;
|
|
36
37
|
}
|
|
37
38
|
export declare abstract class Item extends Struct<RawItem> implements RawItem {
|
|
38
39
|
abstract like(signal?: AbortSignal): PromiseLike<boolean>;
|
|
@@ -58,6 +59,7 @@ export declare abstract class Item extends Struct<RawItem> implements RawItem {
|
|
|
58
59
|
$$plugin: string;
|
|
59
60
|
$$meta: MetaData;
|
|
60
61
|
thisEp: RawEp;
|
|
62
|
+
customIsSafe?: boolean;
|
|
61
63
|
get $thisEp(): Ep;
|
|
62
64
|
constructor(v: RawItem);
|
|
63
65
|
commentSendable: boolean;
|
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "delta-comic-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "我曾亲眼见证神的熟视无睹.",
|
|
5
5
|
"homepage": "https://github.com/wenxig/delta-comic-core",
|
|
6
6
|
"repository": {
|
|
@@ -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"
|