@tato30/vue-pdf
Advanced tools
Comparing version 1.9.3 to 1.9.4
export * from './types'; | ||
export * from './usePDF'; | ||
export { default as VuePDF } from './VuePDF.vue'; |
@@ -0,0 +0,0 @@ import type { AnnotationEventPayload } from '../types'; |
@@ -0,0 +0,0 @@ import type { HighlightEventPayload, HighlightOptions } from '../types'; |
@@ -0,0 +0,0 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{ |
@@ -64,3 +64,3 @@ import type { PageViewport } from 'pdfjs-dist'; | ||
export type OnErrorCallback = (error: any) => void; | ||
export type PDFSrc = string | URL | TypedArray | PDFDataRangeTransport | DocumentInitParameters; | ||
export type PDFSrc = string | URL | TypedArray | PDFDataRangeTransport | DocumentInitParameters | undefined | null; | ||
export interface PDFOptions { | ||
@@ -67,0 +67,0 @@ onProgress?: OnProgressCallback; |
@@ -0,0 +0,0 @@ import type { Ref } from 'vue'; |
@@ -0,0 +0,0 @@ import type { PDFDocumentProxy } from 'pdfjs-dist'; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import type { TextContent } from 'pdfjs-dist/types/src/display/text_layer'; |
@@ -0,0 +0,0 @@ import type { IPDFLinkService } from 'pdfjs-dist/types/web/interfaces'; |
@@ -0,0 +0,0 @@ import 'pdfjs-dist/web/pdf_viewer.css'; |
@@ -0,0 +0,0 @@ import type { Plugin } from 'vue'; |
{ | ||
"name": "@tato30/vue-pdf", | ||
"version": "1.9.3", | ||
"version": "1.9.4", | ||
"description": "PDF viewer for Vue 3", | ||
@@ -10,9 +10,9 @@ "author": { | ||
"license": "MIT", | ||
"homepage": "https://github.com/TaTo30/VuePDF/", | ||
"homepage": "https://github.com/TaTo30/vue-pdf/", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/TaTo30/VuePDF.git" | ||
"url": "git+https://github.com/TaTo30/vue-pdf.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/TaTo30/VuePDF/issues" | ||
"url": "https://github.com/TaTo30/vue-pdf/issues" | ||
}, | ||
@@ -45,4 +45,2 @@ "keywords": [ | ||
"build:dts": "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.build.json", | ||
"publish": "npm publish --access public", | ||
"publish:beta": "npm publish --tag beta --access public", | ||
"preview": "vite preview --port 5050", | ||
@@ -49,0 +47,0 @@ "lint": "eslint .", |
@@ -0,0 +0,0 @@ <div align="center"> |
export * from './types' | ||
export * from './usePDF' | ||
export { default as VuePDF } from './VuePDF.vue' |
@@ -88,2 +88,4 @@ import type { PageViewport } from 'pdfjs-dist' | ||
| DocumentInitParameters | ||
| undefined | ||
| null | ||
@@ -90,0 +92,0 @@ export interface PDFOptions { |
@@ -52,3 +52,3 @@ import * as PDFJS from 'pdfjs-dist' | ||
function processLoadingTask(source: PDFSrc) { | ||
const loadingTask = PDFJS.getDocument(source) | ||
const loadingTask = PDFJS.getDocument(source!) | ||
if (options.onProgress) | ||
@@ -113,6 +113,6 @@ loadingTask.onProgress = options.onProgress | ||
if (isRef(src)) { | ||
if (src.value !== undefined) | ||
if (src.value) | ||
processLoadingTask(src.value) | ||
watch(src, () => { | ||
if (src.value !== undefined) | ||
if (src.value) | ||
processLoadingTask(src.value) | ||
@@ -122,3 +122,3 @@ }) | ||
else { | ||
if (src !== undefined) | ||
if (src) | ||
processLoadingTask(src) | ||
@@ -125,0 +125,0 @@ } |
@@ -0,0 +0,0 @@ /* eslint-disable @typescript-eslint/no-unsafe-member-access */ |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import type { TextItem } from 'pdfjs-dist/types/src/display/api' |
@@ -0,0 +0,0 @@ import type { IPDFLinkService } from 'pdfjs-dist/types/web/interfaces' |
@@ -0,0 +0,0 @@ declare module "*?worker" { |
@@ -0,0 +0,0 @@ import type { Plugin } from 'vue' |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
13195
0
2979850