@vue-pdf-viewer/viewer 1.4.0-beta.6 → 1.4.0-beta.8
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 +2876 -2880
- package/dist/index.umd.cjs +7 -7
- package/dist/types/components/ToolMenuOthers.vue.d.ts +0 -5
- package/dist/types/components/ToolPrint.vue.d.ts +0 -5
- package/dist/types/composables/usePrint.d.ts +2 -2
- package/dist/types/const.d.ts +1 -1
- package/dist/types/utils/types.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { ViewerPdfPage } from '../utils/types';
|
|
2
1
|
declare const _default: {
|
|
3
2
|
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
3
|
rootContainer: HTMLDivElement;
|
|
5
4
|
textSelection: boolean;
|
|
6
5
|
isCancel: boolean;
|
|
7
|
-
pages: ViewerPdfPage[];
|
|
8
6
|
}>>> & {
|
|
9
7
|
onProgress?: ((percent: number) => any) | undefined;
|
|
10
8
|
onLoading?: (() => any) | undefined;
|
|
@@ -34,7 +32,6 @@ declare const _default: {
|
|
|
34
32
|
rootContainer: HTMLDivElement;
|
|
35
33
|
textSelection: boolean;
|
|
36
34
|
isCancel: boolean;
|
|
37
|
-
pages: ViewerPdfPage[];
|
|
38
35
|
}>>> & {
|
|
39
36
|
onProgress?: ((percent: number) => any) | undefined;
|
|
40
37
|
onLoading?: (() => any) | undefined;
|
|
@@ -55,7 +52,6 @@ declare const _default: {
|
|
|
55
52
|
rootContainer: HTMLDivElement;
|
|
56
53
|
textSelection: boolean;
|
|
57
54
|
isCancel: boolean;
|
|
58
|
-
pages: ViewerPdfPage[];
|
|
59
55
|
}>>> & {
|
|
60
56
|
onProgress?: ((percent: number) => any) | undefined;
|
|
61
57
|
onLoading?: (() => any) | undefined;
|
|
@@ -73,7 +69,6 @@ declare const _default: {
|
|
|
73
69
|
rootContainer: HTMLDivElement;
|
|
74
70
|
textSelection: boolean;
|
|
75
71
|
isCancel: boolean;
|
|
76
|
-
pages: ViewerPdfPage[];
|
|
77
72
|
}>>> & {
|
|
78
73
|
onProgress?: ((percent: number) => any) | undefined;
|
|
79
74
|
onLoading?: (() => any) | undefined;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { ViewerPdfPage } from '../utils/types';
|
|
2
1
|
declare const _default: {
|
|
3
2
|
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
-
pages: ViewerPdfPage[];
|
|
5
3
|
isCancel: boolean;
|
|
6
4
|
}>>> & {
|
|
7
5
|
onProgress?: ((percent: number) => any) | undefined;
|
|
@@ -14,7 +12,6 @@ declare const _default: {
|
|
|
14
12
|
} & {
|
|
15
13
|
progress: (percent: number) => void;
|
|
16
14
|
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
17
|
-
pages: ViewerPdfPage[];
|
|
18
15
|
isCancel: boolean;
|
|
19
16
|
}>>> & {
|
|
20
17
|
onProgress?: ((percent: number) => any) | undefined;
|
|
@@ -28,7 +25,6 @@ declare const _default: {
|
|
|
28
25
|
M: {};
|
|
29
26
|
Defaults: {};
|
|
30
27
|
}, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
31
|
-
pages: ViewerPdfPage[];
|
|
32
28
|
isCancel: boolean;
|
|
33
29
|
}>>> & {
|
|
34
30
|
onProgress?: ((percent: number) => any) | undefined;
|
|
@@ -39,7 +35,6 @@ declare const _default: {
|
|
|
39
35
|
__isTeleport?: undefined;
|
|
40
36
|
__isSuspense?: undefined;
|
|
41
37
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
42
|
-
pages: ViewerPdfPage[];
|
|
43
38
|
isCancel: boolean;
|
|
44
39
|
}>>> & {
|
|
45
40
|
onProgress?: ((percent: number) => any) | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
import type { ViewerPdfPage } from '@/utils/types';
|
|
3
3
|
export declare const usePrint: (isCancel: Ref<boolean>, pages: Ref<ViewerPdfPage[]>, emit: {
|
|
4
4
|
(event: 'loading'): void;
|
|
5
5
|
(event: 'loaded'): void;
|
package/dist/types/const.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ export declare const IS_DARK: InjectionKey<Ref<boolean>>;
|
|
|
51
51
|
export declare const IS_MOBILE_VIEW: InjectionKey<Ref<boolean>>;
|
|
52
52
|
export declare const CONTAINER: InjectionKey<ShallowRef<HTMLDivElement | undefined>>;
|
|
53
53
|
export declare const PAGES_CONTAINER: InjectionKey<ShallowRef<HTMLDivElement | undefined>>;
|
|
54
|
-
export declare const
|
|
54
|
+
export declare const ACTUAL_PDF_PAGES: InjectionKey<Ref<ViewerPdfPage[]>>;
|
|
55
55
|
export declare const FOCUSED_PAGE_NUMBER: InjectionKey<Ref<number>>;
|
|
56
56
|
export declare const ROTATION_DEGREE: InjectionKey<Ref<number>>;
|
|
57
57
|
export declare const TOTAL_PAGE: InjectionKey<Ref<number>>;
|
|
@@ -539,13 +539,13 @@ export interface SearchControlValue {
|
|
|
539
539
|
goToMatch: (index: number) => void;
|
|
540
540
|
}
|
|
541
541
|
export interface SearchControl {
|
|
542
|
-
searchMatches?:
|
|
542
|
+
searchMatches?: {
|
|
543
543
|
totalMatches: number;
|
|
544
544
|
matches: {
|
|
545
545
|
index: number;
|
|
546
546
|
page: number;
|
|
547
547
|
}[];
|
|
548
|
-
}
|
|
548
|
+
};
|
|
549
549
|
searching: Ref<boolean>;
|
|
550
550
|
search: (value: string) => void;
|
|
551
551
|
goToMatch: (index: number) => void;
|