@vue-pdf-viewer/viewer 3.7.0-beta.4 → 3.7.0-beta.7
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-DwN1ddwI.js → index-CYad3DaA.js} +8377 -8286
- package/dist/{index-DKFFFjIc.js → index-D5Vct58x.js} +1 -1
- package/dist/index.js +2 -2
- package/dist/index.umd.cjs +35 -35
- package/dist/types/components/ModalPassword.vue.d.ts +3 -1
- package/dist/types/components/ToolPrint.vue.d.ts +1 -1
- package/dist/types/components/VPdfViewer.vue.d.ts +4 -10
- package/dist/types/composables/usePdf.d.ts +0 -18
- package/package.json +2 -2
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
interface OwnProps {
|
|
2
|
-
open: boolean;
|
|
3
2
|
errorMessage?: string;
|
|
4
3
|
}
|
|
5
4
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<OwnProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
5
|
submitPassword: (password: string) => void;
|
|
6
|
+
} & {
|
|
7
|
+
cancel: () => void;
|
|
7
8
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<OwnProps>>> & Readonly<{
|
|
9
|
+
onCancel?: (() => any) | undefined;
|
|
8
10
|
onSubmitPassword?: ((password: string) => any) | undefined;
|
|
9
11
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
10
12
|
export default _default;
|
|
@@ -18,7 +18,7 @@ declare const _default: {
|
|
|
18
18
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<OwnProps>>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
19
19
|
$slots: {
|
|
20
20
|
default: (_: {
|
|
21
|
-
onClick: ((showProgress?: boolean | undefined) => Promise<void>) & Promise<void>;
|
|
21
|
+
onClick: () => ((showProgress?: boolean | undefined) => Promise<void>) & Promise<void>;
|
|
22
22
|
}) => any;
|
|
23
23
|
icon: (_: {}) => any;
|
|
24
24
|
};
|
|
@@ -59,9 +59,7 @@ declare const _default: {
|
|
|
59
59
|
};
|
|
60
60
|
readonly localization: {
|
|
61
61
|
readonly type: import("vue").PropType<Record<string, Localization>>;
|
|
62
|
-
readonly default: () => Record<string, Localization>;
|
|
63
|
-
* Free & Freemium cannot utilize other props except `src`
|
|
64
|
-
*/
|
|
62
|
+
readonly default: () => Record<string, Localization>;
|
|
65
63
|
};
|
|
66
64
|
readonly initialSearch: {
|
|
67
65
|
readonly type: StringConstructor;
|
|
@@ -270,9 +268,7 @@ declare const _default: {
|
|
|
270
268
|
};
|
|
271
269
|
readonly localization: {
|
|
272
270
|
readonly type: import("vue").PropType<Record<string, Localization>>;
|
|
273
|
-
readonly default: () => Record<string, Localization>;
|
|
274
|
-
* Free & Freemium cannot utilize other props except `src`
|
|
275
|
-
*/
|
|
271
|
+
readonly default: () => Record<string, Localization>;
|
|
276
272
|
};
|
|
277
273
|
readonly initialSearch: {
|
|
278
274
|
readonly type: StringConstructor;
|
|
@@ -450,9 +446,7 @@ declare const _default: {
|
|
|
450
446
|
};
|
|
451
447
|
readonly localization: {
|
|
452
448
|
readonly type: import("vue").PropType<Record<string, Localization>>;
|
|
453
|
-
readonly default: () => Record<string, Localization>;
|
|
454
|
-
* Free & Freemium cannot utilize other props except `src`
|
|
455
|
-
*/
|
|
449
|
+
readonly default: () => Record<string, Localization>;
|
|
456
450
|
};
|
|
457
451
|
readonly initialSearch: {
|
|
458
452
|
readonly type: StringConstructor;
|
|
@@ -647,7 +641,7 @@ declare const _default: {
|
|
|
647
641
|
}) => any;
|
|
648
642
|
iconDownload: (_: {}) => any;
|
|
649
643
|
printTool: (_: {
|
|
650
|
-
onClick: ((showProgress?: boolean | undefined) => Promise<void>) & Promise<void>;
|
|
644
|
+
onClick: () => ((showProgress?: boolean | undefined) => Promise<void>) & Promise<void>;
|
|
651
645
|
}) => any;
|
|
652
646
|
iconPrint: (_: {}) => any;
|
|
653
647
|
fullScreenTool: (_: {
|
|
@@ -1,24 +1,6 @@
|
|
|
1
1
|
import type { MaybeRef } from 'vue';
|
|
2
2
|
import type { PDFOptions, PDFSrc, PDFDocumentOptions } from '../utils/types';
|
|
3
3
|
import { type PDFDocumentProxy, type PDFPageProxy } from 'pdfjs-dist/types/src/display/api';
|
|
4
|
-
/**
|
|
5
|
-
* @typedef {Object} UsePDFParameters
|
|
6
|
-
* @property {string} password
|
|
7
|
-
* Document password to unlock content
|
|
8
|
-
* @property {function} onProgress
|
|
9
|
-
* Callback to request a password if a wrong or no password was provided. The callback receives two parameters: a function that should be called with the new password, and a reason (see PasswordResponses).
|
|
10
|
-
* @property {function} onPassword
|
|
11
|
-
* Callback to be able to monitor the loading progress of the PDF file (necessary to implement e.g. a loading bar). The callback receives an OnProgressParameters argument. if this function is used option.password is ignored
|
|
12
|
-
* @property {function} onError
|
|
13
|
-
* Callback to be able to handle errors during loading
|
|
14
|
-
* */
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @param {string | URL | TypedArray | PDFDataRangeTransport | DocumentInitParameters} src
|
|
18
|
-
* Can be a URL where a PDF file is located, a typed array (Uint8Array) already populated with data, or a parameter object.
|
|
19
|
-
* @param {UsePDFParameters} options
|
|
20
|
-
* UsePDF object parameters
|
|
21
|
-
*/
|
|
22
4
|
declare function usePdf(src: MaybeRef<PDFSrc>, options?: PDFOptions, workerUrl?: string, documentOptions?: PDFDocumentOptions): {
|
|
23
5
|
pdfDocLoadingTask: import("vue").ShallowRef<import("pdfjs-dist/types/src/display/api").PDFDocumentLoadingTask | undefined, import("pdfjs-dist/types/src/display/api").PDFDocumentLoadingTask | undefined>;
|
|
24
6
|
getPage: (doc: PDFDocumentProxy, pageIndex: number) => Promise<PDFPageProxy>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue-pdf-viewer/viewer",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "3.7.0-beta.
|
|
4
|
+
"version": "3.7.0-beta.7",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.umd.cjs",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"prepare": "husky"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@vue-pdf-viewer/shared": "1.2.0-rc.
|
|
63
|
+
"@vue-pdf-viewer/shared": "1.2.0-rc.16",
|
|
64
64
|
"@vueuse/core": "^13.6.0",
|
|
65
65
|
"node-forge": "^1.3.2",
|
|
66
66
|
"pdfjs-dist": "4.10.38",
|