@vue-pdf-viewer/viewer 2.5.0-beta.12 → 2.5.0-beta.13

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.
@@ -0,0 +1,16 @@
1
+ import type { AnnotationIconType } from '@/utils/types';
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
3
+ type: AnnotationIconType;
4
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
5
+ type: AnnotationIconType;
6
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ export default _default;
8
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
9
+ type __VLS_TypePropsToRuntimeProps<T> = {
10
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
11
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
12
+ } : {
13
+ type: import('vue').PropType<T[K]>;
14
+ required: true;
15
+ };
16
+ };
@@ -41,7 +41,7 @@ export declare enum LayerRenderStatus {
41
41
  PreRender = 0,
42
42
  DidRender = 1
43
43
  }
44
- export declare enum AnnotationSubType {
44
+ export declare enum AnnotationType {
45
45
  Text = 1,
46
46
  Link = 2,
47
47
  FreeText = 3,
@@ -2,7 +2,7 @@ import { ComputedRef, MaybeRef, PropType, Reactive, Ref, ShallowRef } from 'vue'
2
2
  import type { PageViewport } from 'pdfjs-dist';
3
3
  import type { DocumentInitParameters, OnProgressParameters, PDFDataRangeTransport, TextContent, TypedArray, PDFPageProxy, PDFDocumentProxy } from 'pdfjs-dist/types/src/display/api';
4
4
  import type { Metadata } from 'pdfjs-dist/types/src/display/metadata';
5
- import { ZoomLevel, ViewMode, ScrollMode, VPVAnnotationType, LicenseType } from './enumerators';
5
+ import { ZoomLevel, ViewMode, ScrollMode, VPVAnnotationType, LicenseType, AnnotationType } from './enumerators';
6
6
  export interface VirtualRange {
7
7
  start: number;
8
8
  end: number;
@@ -96,6 +96,7 @@ export interface Annotation {
96
96
  fieldType: string;
97
97
  pushButton: boolean;
98
98
  }
99
+ export type AnnotationIconType = keyof typeof AnnotationType | 'Signature';
99
100
  export interface AnnotationEventPayload {
100
101
  type: VPVAnnotationType;
101
102
  data: any;
@@ -732,6 +733,8 @@ export interface Comment {
732
733
  creationDate: string | Date;
733
734
  modificationDate: string | Date;
734
735
  color: Uint8ClampedArray | null;
736
+ annotationType: AnnotationType;
737
+ annotationIconType: AnnotationIconType;
735
738
  inReplyTo?: string;
736
739
  contentsObj?: CommentContents;
737
740
  titleObj?: CommentContents;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vue-pdf-viewer/viewer",
3
3
  "private": false,
4
- "version": "2.5.0-beta.12",
4
+ "version": "2.5.0-beta.13",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.cjs",
7
7
  "module": "./dist/index.js",