@vue-pdf-viewer/viewer 0.0.0-beta.10 → 0.0.0-beta.12

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.
@@ -1,19 +1,21 @@
1
- import type { PageViewport, PDFPageProxy } from 'pdfjs-dist/types/web/interfaces';
1
+ import type { PDFPageProxy } from 'pdfjs-dist/types/web/interfaces';
2
2
  interface Props {
3
3
  page: PDFPageProxy;
4
- viewport: PageViewport;
5
4
  isPageFocused: boolean;
6
5
  }
7
6
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
7
  click: (pageIndex: number) => void;
9
8
  } & {
10
9
  rendered: (pageIndex: number) => void;
10
+ } & {
11
+ error: (error: any) => void;
11
12
  } & {
12
13
  visibilityChanged: (dto: {
13
14
  pageIndex: number;
14
15
  visibility: boolean;
15
16
  }) => void;
16
17
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
18
+ onError?: ((error: any) => any) | undefined;
17
19
  onClick?: ((pageIndex: number) => any) | undefined;
18
20
  onRendered?: ((pageIndex: number) => any) | undefined;
19
21
  onVisibilityChanged?: ((dto: {
@@ -114,7 +114,6 @@ export interface ViewerPdfPage {
114
114
  }
115
115
  export interface VPVThumbnail {
116
116
  page: PDFPageProxy;
117
- scaledViewport: PageViewport;
118
117
  }
119
118
  export declare enum ZoomLevel {
120
119
  ActualSize = "actualSize",
@@ -34,6 +34,7 @@ export declare const LOADER_IMAGE: InjectionKey<Slot<any> | undefined>;
34
34
  export declare const PAGES_CONTAINER: InjectionKey<ShallowRef<HTMLDivElement | null>>;
35
35
  export declare const pdfPagesKey: InjectionKey<ViewerPdfPage[] | null>;
36
36
  export declare const FOCUSED_PAGE_NUMBER: InjectionKey<Ref<number>>;
37
+ export declare const ROTATION_DEGREE: InjectionKey<Ref<number>>;
37
38
  export declare const TOTAL_PAGE: InjectionKey<Ref<number>>;
38
39
  export declare const INITIAL_TEXT_LAYER: InjectionKey<boolean>;
39
40
  export declare const DOWNLOAD_FILE: InjectionKey<() => Promise<void>>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vue-pdf-viewer/viewer",
3
3
  "private": false,
4
- "version": "0.0.0-beta.10",
4
+ "version": "0.0.0-beta.12",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.mjs",
7
7
  "description": "The PDF Viewer component for Vue 3 and Nuxt",