@jacktea/pdf-viewer-vue 0.1.11 → 0.1.14

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,6 +1,6 @@
1
1
  import { type PropType } from 'vue';
2
2
  import '@jacktea/pdf-viewer-component';
3
- import type { PdfViewerElement, PdfViewerConfig, Annotation, CommentThread, AnnotationComment, ServerWritebackPayload, ScaleMode } from '@jacktea/pdf-viewer-component';
3
+ import type { PdfViewerElement, PdfViewerConfig, Annotation, CommentThread, AnnotationComment, ServerWritebackPayload, ScaleMode, ID } from '@jacktea/pdf-viewer-component';
4
4
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
5
  src: {
6
6
  type: PropType<string | Blob | ArrayBuffer | Uint8Array>;
@@ -50,15 +50,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
50
50
  setAnnotations: (annotations: Annotation[]) => void | undefined;
51
51
  addAnnotation: (annotation: Annotation) => void | undefined;
52
52
  updateAnnotation: (annotation: Annotation) => void | undefined;
53
- removeAnnotation: (id: string) => void | undefined;
54
- selectAnnotation: (id: string | null) => void | undefined;
53
+ removeAnnotation: (id: ID) => void | undefined;
54
+ selectAnnotation: (id: ID | null) => void | undefined;
55
55
  getCommentThreads: () => CommentThread[];
56
56
  setCommentThreads: (threads: CommentThread[]) => void | undefined;
57
57
  addComment: (comment: AnnotationComment) => void | undefined;
58
58
  updateComment: (comment: AnnotationComment) => void | undefined;
59
- removeComment: (annotationId: string, commentId: string) => void | undefined;
60
- resolveCommentThread: (annotationId: string) => void | undefined;
61
- reopenCommentThread: (annotationId: string) => void | undefined;
59
+ removeComment: (annotationId: ID, commentId: ID) => void | undefined;
60
+ resolveCommentThread: (annotationId: ID) => void | undefined;
61
+ reopenCommentThread: (annotationId: ID) => void | undefined;
62
62
  writeBackFromServer: (payload: ServerWritebackPayload) => void | undefined;
63
63
  deletePage: (pageIndex: number) => void | undefined;
64
64
  movePage: (from: number, to: number) => void | undefined;
@@ -71,7 +71,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
71
71
  "page-change": (page: number, pageCount: number) => any;
72
72
  "zoom-change": (scale: number) => any;
73
73
  "document-change": (pageCount: number, pageOrder: number[], source?: string | undefined) => any;
74
- "annotation-select": (annotationId: string | null) => any;
74
+ "annotation-select": (annotationId: ID | null) => any;
75
75
  "annotation-add": (annotation: Annotation) => any;
76
76
  "annotation-update": (annotation: Annotation) => any;
77
77
  "annotation-remove": (annotation: Annotation) => any;
@@ -130,7 +130,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
130
130
  "onPage-change"?: ((page: number, pageCount: number) => any) | undefined;
131
131
  "onZoom-change"?: ((scale: number) => any) | undefined;
132
132
  "onDocument-change"?: ((pageCount: number, pageOrder: number[], source?: string | undefined) => any) | undefined;
133
- "onAnnotation-select"?: ((annotationId: string | null) => any) | undefined;
133
+ "onAnnotation-select"?: ((annotationId: ID | null) => any) | undefined;
134
134
  "onAnnotation-add"?: ((annotation: Annotation) => any) | undefined;
135
135
  "onAnnotation-update"?: ((annotation: Annotation) => any) | undefined;
136
136
  "onAnnotation-remove"?: ((annotation: Annotation) => any) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"PdfViewer.vue.d.ts","sourceRoot":"","sources":["../src/PdfViewer.vue"],"names":[],"mappings":"AA0QA,OAAO,EAAsC,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAC;AACxE,OAAO,+BAA+B,CAAC;AACvC,OAAO,KAAK,EACV,gBAAgB,EAChB,eAAe,EACf,UAAU,EACV,aAAa,EACb,iBAAiB,EACjB,sBAAsB,EACtB,SAAS,EACV,MAAM,+BAA+B,CAAC;;;cA2VT,QAAQ,CAAC,MAAM,GAAG,IAAI,GAAG,WAAW,GAAG,UAAU,CAAC;;;;;;;;;;;;;;;;cAgB5D,QAAQ,CAAC,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,eAAe,GAAG,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e,GAAG,MAAM,CAAC;;;;;;;;cAQxE,QAAQ,CAAC,SAAS,CAAC;;;;;;;;cAQnB,QAAQ,CAAC,eAAe,CAAC;;;;;oBApTtB,MAAM;;;;wBAIF,MAAM;4BACF,QAAQ,GAAG,SAAS;;kCAId,UAAU,EAAE;gCACd,UAAU;mCACP,UAAU;2BAClB,EAAE;2BACF,EAAE,GAAG,IAAI;;iCAGH,aAAa,EAAE;0BACtB,iBAAiB;6BACd,iBAAiB;kCACZ,EAAE,aAAa,EAAE;yCACV,EAAE;wCACH,EAAE;mCACP,sBAAsB;4BAG7B,MAAM;qBACb,MAAM,MAAM,MAAM;;;iCAIN,OAAO;;uBAEjB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;cAoPC,QAAQ,CAAC,MAAM,GAAG,IAAI,GAAG,WAAW,GAAG,UAAU,CAAC;;;;;;;;;;;;;;;;cAgB5D,QAAQ,CAAC,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,eAAe,GAAG,MAAM,CAAC;;;;;;;;cAQxE,QAAQ,CAAC,SAAS,CAAC;;;;;;;;cAQnB,QAAQ,CAAC,eAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAzC7C,wBA6CG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jacktea/pdf-viewer-vue",
3
- "version": "0.1.11",
3
+ "version": "0.1.14",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -19,7 +19,7 @@
19
19
  "vue": "^3.3.0"
20
20
  },
21
21
  "dependencies": {
22
- "@jacktea/pdf-viewer-component": "0.1.11"
22
+ "@jacktea/pdf-viewer-component": "0.1.14"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@vitejs/plugin-vue": "^5.0.0",