@vue-pdf-viewer/viewer 2.0.0-rc.1 → 2.1.0-beta.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 +2458 -2449
- package/dist/index.umd.cjs +14 -14
- package/dist/types/components/VPdfViewer.vue.d.ts +36 -36
- package/package.json +2 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AnnotationEventPayload, TextLayerLoadedEventPayload, RotateEvent, ToolbarOptions, Localization } from '@/utils/types';
|
|
1
|
+
import type { AnnotationEventPayload, TextLayerLoadedEventPayload, RotateEvent, ToolbarOptions, Localization, PdfProperties } from '@/utils/types';
|
|
2
2
|
import { ScrollMode, ViewMode, ZoomLevel } from '@/utils/enumerators';
|
|
3
3
|
import '../style.scss';
|
|
4
4
|
declare const _default: {
|
|
@@ -67,16 +67,16 @@ declare const _default: {
|
|
|
67
67
|
readonly validator: (value: import("@/utils/types").TextHighlight[]) => boolean;
|
|
68
68
|
};
|
|
69
69
|
}>> & Readonly<{
|
|
70
|
-
onAnnotation?: ((
|
|
71
|
-
onLoaded?: (() => any) | undefined;
|
|
70
|
+
onAnnotation?: ((data: AnnotationEventPayload) => any) | undefined;
|
|
71
|
+
onLoaded?: ((properties?: PdfProperties | undefined) => any) | undefined;
|
|
72
72
|
onLoadError?: ((error: any) => any) | undefined;
|
|
73
73
|
onLoading?: (() => any) | undefined;
|
|
74
|
-
onLoadProgress?: ((
|
|
75
|
-
onAfterGoToPage?: ((
|
|
76
|
-
onTextLoaded?: ((
|
|
77
|
-
onAnnotationLoaded?: ((
|
|
74
|
+
onLoadProgress?: ((progress: number) => any) | undefined;
|
|
75
|
+
onAfterGoToPage?: ((progress: number) => any) | undefined;
|
|
76
|
+
onTextLoaded?: ((data: TextLayerLoadedEventPayload) => any) | undefined;
|
|
77
|
+
onAnnotationLoaded?: ((annotations: any[]) => any) | undefined;
|
|
78
78
|
onXfaLoaded?: (() => any) | undefined;
|
|
79
|
-
onRotate?: ((
|
|
79
|
+
onRotate?: ((rotateEvent: RotateEvent) => any) | undefined;
|
|
80
80
|
}>, {
|
|
81
81
|
highlightControl: {
|
|
82
82
|
highlight: any;
|
|
@@ -131,25 +131,25 @@ declare const _default: {
|
|
|
131
131
|
zoom: (scale: number | ZoomLevel) => void;
|
|
132
132
|
};
|
|
133
133
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
134
|
-
annotation: (
|
|
134
|
+
annotation: (data: AnnotationEventPayload) => void;
|
|
135
135
|
} & {
|
|
136
|
-
loaded: () => void;
|
|
136
|
+
loaded: (properties?: PdfProperties | undefined) => void;
|
|
137
137
|
} & {
|
|
138
138
|
loadError: (error: any) => void;
|
|
139
139
|
} & {
|
|
140
140
|
loading: () => void;
|
|
141
141
|
} & {
|
|
142
|
-
loadProgress: (
|
|
142
|
+
loadProgress: (progress: number) => void;
|
|
143
143
|
} & {
|
|
144
|
-
textLoaded: (
|
|
144
|
+
textLoaded: (data: TextLayerLoadedEventPayload) => void;
|
|
145
145
|
} & {
|
|
146
|
-
annotationLoaded: (
|
|
146
|
+
annotationLoaded: (annotations: any[]) => void;
|
|
147
147
|
} & {
|
|
148
148
|
xfaLoaded: () => void;
|
|
149
149
|
} & {
|
|
150
|
-
rotate: (
|
|
150
|
+
rotate: (rotateEvent: RotateEvent) => void;
|
|
151
151
|
} & {
|
|
152
|
-
afterGoToPage: (
|
|
152
|
+
afterGoToPage: (progress: number) => void;
|
|
153
153
|
}, import("vue").PublicProps, {
|
|
154
154
|
readonly initialViewMode: ViewMode;
|
|
155
155
|
readonly initialScrollMode: ScrollMode;
|
|
@@ -237,16 +237,16 @@ declare const _default: {
|
|
|
237
237
|
readonly validator: (value: import("@/utils/types").TextHighlight[]) => boolean;
|
|
238
238
|
};
|
|
239
239
|
}>> & Readonly<{
|
|
240
|
-
onAnnotation?: ((
|
|
241
|
-
onLoaded?: (() => any) | undefined;
|
|
240
|
+
onAnnotation?: ((data: AnnotationEventPayload) => any) | undefined;
|
|
241
|
+
onLoaded?: ((properties?: PdfProperties | undefined) => any) | undefined;
|
|
242
242
|
onLoadError?: ((error: any) => any) | undefined;
|
|
243
243
|
onLoading?: (() => any) | undefined;
|
|
244
|
-
onLoadProgress?: ((
|
|
245
|
-
onAfterGoToPage?: ((
|
|
246
|
-
onTextLoaded?: ((
|
|
247
|
-
onAnnotationLoaded?: ((
|
|
244
|
+
onLoadProgress?: ((progress: number) => any) | undefined;
|
|
245
|
+
onAfterGoToPage?: ((progress: number) => any) | undefined;
|
|
246
|
+
onTextLoaded?: ((data: TextLayerLoadedEventPayload) => any) | undefined;
|
|
247
|
+
onAnnotationLoaded?: ((annotations: any[]) => any) | undefined;
|
|
248
248
|
onXfaLoaded?: (() => any) | undefined;
|
|
249
|
-
onRotate?: ((
|
|
249
|
+
onRotate?: ((rotateEvent: RotateEvent) => any) | undefined;
|
|
250
250
|
}>, {
|
|
251
251
|
highlightControl: {
|
|
252
252
|
highlight: any;
|
|
@@ -384,16 +384,16 @@ declare const _default: {
|
|
|
384
384
|
readonly validator: (value: import("@/utils/types").TextHighlight[]) => boolean;
|
|
385
385
|
};
|
|
386
386
|
}>> & Readonly<{
|
|
387
|
-
onAnnotation?: ((
|
|
388
|
-
onLoaded?: (() => any) | undefined;
|
|
387
|
+
onAnnotation?: ((data: AnnotationEventPayload) => any) | undefined;
|
|
388
|
+
onLoaded?: ((properties?: PdfProperties | undefined) => any) | undefined;
|
|
389
389
|
onLoadError?: ((error: any) => any) | undefined;
|
|
390
390
|
onLoading?: (() => any) | undefined;
|
|
391
|
-
onLoadProgress?: ((
|
|
392
|
-
onAfterGoToPage?: ((
|
|
393
|
-
onTextLoaded?: ((
|
|
394
|
-
onAnnotationLoaded?: ((
|
|
391
|
+
onLoadProgress?: ((progress: number) => any) | undefined;
|
|
392
|
+
onAfterGoToPage?: ((progress: number) => any) | undefined;
|
|
393
|
+
onTextLoaded?: ((data: TextLayerLoadedEventPayload) => any) | undefined;
|
|
394
|
+
onAnnotationLoaded?: ((annotations: any[]) => any) | undefined;
|
|
395
395
|
onXfaLoaded?: (() => any) | undefined;
|
|
396
|
-
onRotate?: ((
|
|
396
|
+
onRotate?: ((rotateEvent: RotateEvent) => any) | undefined;
|
|
397
397
|
}>, {
|
|
398
398
|
highlightControl: {
|
|
399
399
|
highlight: any;
|
|
@@ -448,25 +448,25 @@ declare const _default: {
|
|
|
448
448
|
zoom: (scale: number | ZoomLevel) => void;
|
|
449
449
|
};
|
|
450
450
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
451
|
-
annotation: (
|
|
451
|
+
annotation: (data: AnnotationEventPayload) => void;
|
|
452
452
|
} & {
|
|
453
|
-
loaded: () => void;
|
|
453
|
+
loaded: (properties?: PdfProperties | undefined) => void;
|
|
454
454
|
} & {
|
|
455
455
|
loadError: (error: any) => void;
|
|
456
456
|
} & {
|
|
457
457
|
loading: () => void;
|
|
458
458
|
} & {
|
|
459
|
-
loadProgress: (
|
|
459
|
+
loadProgress: (progress: number) => void;
|
|
460
460
|
} & {
|
|
461
|
-
textLoaded: (
|
|
461
|
+
textLoaded: (data: TextLayerLoadedEventPayload) => void;
|
|
462
462
|
} & {
|
|
463
|
-
annotationLoaded: (
|
|
463
|
+
annotationLoaded: (annotations: any[]) => void;
|
|
464
464
|
} & {
|
|
465
465
|
xfaLoaded: () => void;
|
|
466
466
|
} & {
|
|
467
|
-
rotate: (
|
|
467
|
+
rotate: (rotateEvent: RotateEvent) => void;
|
|
468
468
|
} & {
|
|
469
|
-
afterGoToPage: (
|
|
469
|
+
afterGoToPage: (progress: number) => void;
|
|
470
470
|
}, string, {
|
|
471
471
|
readonly initialViewMode: ViewMode;
|
|
472
472
|
readonly initialScrollMode: ScrollMode;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue-pdf-viewer/viewer",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.1.0-beta.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.umd.cjs",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -94,7 +94,6 @@
|
|
|
94
94
|
"tailwind-merge": "^2.2.2",
|
|
95
95
|
"typescript": "^4.6.4",
|
|
96
96
|
"unocss": "^65.4.2",
|
|
97
|
-
"unocss-preset-animations": "^1.1.1",
|
|
98
97
|
"unocss-preset-shadcn": "^0.3.1",
|
|
99
98
|
"vite": "^5.2.8",
|
|
100
99
|
"vite-plugin-node-polyfills": "^0.21.0",
|
|
@@ -111,4 +110,4 @@
|
|
|
111
110
|
"pnpm": ">=8.8.0",
|
|
112
111
|
"yarn": ">=1.20.0"
|
|
113
112
|
}
|
|
114
|
-
}
|
|
113
|
+
}
|