@vue-pdf-viewer/viewer 4.3.0-beta.0 → 4.3.0-beta.2
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/VPdfViewer.vue_vue_type_style_index_1_scoped_e5a88386_lang-Dkfo1j2y.cjs +48 -0
- package/dist/{VPdfViewer.vue_vue_type_style_index_1_scoped_d10ca785_lang-CrxRkuYo.js → VPdfViewer.vue_vue_type_style_index_1_scoped_e5a88386_lang-ng6lelie.js} +1645 -1574
- package/dist/{index-CJd3JYTH.js → index-BXgBdP2p.js} +1 -1
- package/dist/index-PciVsV-M.cjs +27 -0
- package/dist/index.cjs +21 -14
- package/dist/index.js +3904 -3891
- package/dist/license.cjs +1 -1
- package/dist/license.js +2 -2
- package/dist/types/components/VPdfViewer.vue.d.ts +5 -14
- package/dist/types/index.d.ts +1 -1
- package/dist/types/utils/types.d.ts +13 -2
- package/package.json +1 -1
- package/dist/VPdfViewer.vue_vue_type_style_index_1_scoped_d10ca785_lang-DuuxD2PM.cjs +0 -48
- package/dist/index-CtyJ8cDI.cjs +0 -27
package/dist/license.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./VPdfViewer.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./VPdfViewer.vue_vue_type_style_index_1_scoped_e5a88386_lang-Dkfo1j2y.cjs");exports.LicenseProduct=e.O;exports.LicenseType=e.P;exports.useLicense=e.aY;
|
package/dist/license.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { O as a, P as c, aY as i } from "./VPdfViewer.vue_vue_type_style_index_1_scoped_e5a88386_lang-ng6lelie.js";
|
|
2
2
|
export {
|
|
3
3
|
a as LicenseProduct,
|
|
4
4
|
c as LicenseType,
|
|
5
|
-
|
|
5
|
+
i as useLicense
|
|
6
6
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { PDFDocumentProxy } from 'pdfjs-dist/types/src/display/api';
|
|
2
|
-
import type { AnnotationEventPayload, TextLayerLoadedEventPayload, RotateEvent, ToolbarOptions, PdfProperties, PasswordRequiredPayload } from '@/utils/types';
|
|
2
|
+
import type { AnnotationEventPayload, TextLayerLoadedEventPayload, RotateEvent, ToolbarOptions, PdfProperties, PasswordRequiredPayload, XfdfExportOptions, XfdfImportResult } from '@/utils/types';
|
|
3
3
|
import { ScrollMode, SelectionMode, ViewMode, ZoomLevel } from '@/utils/enumerators';
|
|
4
4
|
import '../style.scss';
|
|
5
|
-
import { Localization, AnnotationStrikethroughColors, AnnotationHighlightColors, AnnotationUnderlineColors, type
|
|
5
|
+
import { Localization, AnnotationStrikethroughColors, AnnotationHighlightColors, AnnotationUnderlineColors, type Annotation } from '@vue-pdf-viewer/shared';
|
|
6
6
|
declare const _default: {
|
|
7
7
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
8
8
|
readonly src: {
|
|
@@ -209,10 +209,7 @@ declare const _default: {
|
|
|
209
209
|
setFontSize: (size: number) => void;
|
|
210
210
|
};
|
|
211
211
|
annotationXfdfControl: {
|
|
212
|
-
exportToXfdf: (options?:
|
|
213
|
-
pdfFilename?: string;
|
|
214
|
-
download?: boolean;
|
|
215
|
-
}) => string;
|
|
212
|
+
exportToXfdf: (options?: XfdfExportOptions) => string;
|
|
216
213
|
importFromXfdf: (xfdfString: string) => XfdfImportResult;
|
|
217
214
|
};
|
|
218
215
|
annotationControl: {
|
|
@@ -486,10 +483,7 @@ declare const _default: {
|
|
|
486
483
|
setFontSize: (size: number) => void;
|
|
487
484
|
};
|
|
488
485
|
annotationXfdfControl: {
|
|
489
|
-
exportToXfdf: (options?:
|
|
490
|
-
pdfFilename?: string;
|
|
491
|
-
download?: boolean;
|
|
492
|
-
}) => string;
|
|
486
|
+
exportToXfdf: (options?: XfdfExportOptions) => string;
|
|
493
487
|
importFromXfdf: (xfdfString: string) => XfdfImportResult;
|
|
494
488
|
};
|
|
495
489
|
annotationControl: {
|
|
@@ -726,10 +720,7 @@ declare const _default: {
|
|
|
726
720
|
setFontSize: (size: number) => void;
|
|
727
721
|
};
|
|
728
722
|
annotationXfdfControl: {
|
|
729
|
-
exportToXfdf: (options?:
|
|
730
|
-
pdfFilename?: string;
|
|
731
|
-
download?: boolean;
|
|
732
|
-
}) => string;
|
|
723
|
+
exportToXfdf: (options?: XfdfExportOptions) => string;
|
|
733
724
|
importFromXfdf: (xfdfString: string) => XfdfImportResult;
|
|
734
725
|
};
|
|
735
726
|
annotationControl: {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Locales } from '@vue-pdf-viewer/shared';
|
|
|
3
3
|
export declare const VPdfViewerPlugin: Plugin;
|
|
4
4
|
export { Locales };
|
|
5
5
|
export * from './components';
|
|
6
|
-
export type { VPVInstance, CanvasLoadedCallback, PrintControl, ToolbarOptions, MatchHighlightResult } from './utils/types';
|
|
6
|
+
export type { VPVInstance, CanvasLoadedCallback, PrintControl, ToolbarOptions, MatchHighlightResult, XfdfExportOptions, AnnotationXfdfControl, XfdfImportResult, XfdfSkippedEntry } from './utils/types';
|
|
7
7
|
export type { TextContent } from 'pdfjs-dist/types/src/display/api';
|
|
8
8
|
export type { Localization } from '@vue-pdf-viewer/shared';
|
|
9
9
|
export default VPdfViewerPlugin;
|
|
@@ -2,7 +2,7 @@ import { ComputedRef, MaybeRef, PropType, Reactive, Ref } from 'vue';
|
|
|
2
2
|
import type { PageViewport, RenderTask } from 'pdfjs-dist';
|
|
3
3
|
import type { DocumentInitParameters, OnProgressParameters, PDFDataRangeTransport, TextContent, TypedArray, PDFPageProxy, PDFDocumentProxy, RenderParameters } from 'pdfjs-dist/types/src/display/api';
|
|
4
4
|
import type { Metadata } from 'pdfjs-dist/types/src/display/metadata';
|
|
5
|
-
import type { Annotation, AnnotationToolOption, TextSelectionOption, AnnotationTextSelectionControl, AnnotationFreeTextControl } from '@vue-pdf-viewer/shared';
|
|
5
|
+
import type { Annotation, AnnotationToolOption, TextSelectionOption, AnnotationTextSelectionControl, AnnotationFreeTextControl, XfdfImportResult, XfdfSkippedEntry } from '@vue-pdf-viewer/shared';
|
|
6
6
|
import { ZoomLevel, ViewMode, ScrollMode, SelectionMode, VPVAnnotationType, LicenseType, LicenseProduct } from './enumerators';
|
|
7
7
|
import { Localization, Plugin, AnnotationType } from '@vue-pdf-viewer/shared';
|
|
8
8
|
export interface VirtualRange {
|
|
@@ -122,7 +122,8 @@ export type UpdatePasswordFn = (newPassword: string) => void;
|
|
|
122
122
|
export type OnPasswordCallback = (updatePassword: UpdatePasswordFn, reason: any) => void;
|
|
123
123
|
export type OnErrorCallback = (error: any) => void;
|
|
124
124
|
export declare enum ErrorType {
|
|
125
|
-
NOT_SUPPORTED = "not-supported"
|
|
125
|
+
NOT_SUPPORTED = "not-supported",
|
|
126
|
+
PASSWORD_REQUIRED = "password-required"
|
|
126
127
|
}
|
|
127
128
|
/**
|
|
128
129
|
* Payload for the password-required event.
|
|
@@ -707,6 +708,15 @@ export interface UseScaleCallback {
|
|
|
707
708
|
mode?: ZoomLevel;
|
|
708
709
|
error?: string;
|
|
709
710
|
}
|
|
711
|
+
export interface XfdfExportOptions {
|
|
712
|
+
pdfFilename?: string;
|
|
713
|
+
download?: boolean;
|
|
714
|
+
}
|
|
715
|
+
export interface AnnotationXfdfControl {
|
|
716
|
+
exportToXfdf: (options?: XfdfExportOptions) => string;
|
|
717
|
+
importFromXfdf: (xfdfString: string) => XfdfImportResult;
|
|
718
|
+
}
|
|
719
|
+
export type { XfdfImportResult, XfdfSkippedEntry };
|
|
710
720
|
export interface VPVInstance {
|
|
711
721
|
printControl: Reactive<PrintControl> | undefined;
|
|
712
722
|
searchControl: SearchControl | undefined;
|
|
@@ -717,6 +727,7 @@ export interface VPVInstance {
|
|
|
717
727
|
passwordControl: Reactive<PasswordControl> | undefined;
|
|
718
728
|
annotationTextSelectionControl: Reactive<AnnotationTextSelectionControl> | undefined;
|
|
719
729
|
annotationFreeTextControl: Reactive<AnnotationFreeTextControl> | undefined;
|
|
730
|
+
annotationXfdfControl: Reactive<AnnotationXfdfControl> | undefined;
|
|
720
731
|
}
|
|
721
732
|
export interface NavigationAnnotation {
|
|
722
733
|
action: 'FirstPage' | 'LastPage' | 'NextPage' | 'PrevPage';
|