@vue-pdf-viewer/viewer 2.5.0-beta.8 → 2.5.0-rc.0

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.
Files changed (34) hide show
  1. package/dist/annotation-circle-COOiYsJg.js +21 -0
  2. package/dist/annotation-freetext-dvsFpAZu.js +21 -0
  3. package/dist/annotation-highlight-DfO5AU26.js +23 -0
  4. package/dist/annotation-ink-Dq1T0COO.js +31 -0
  5. package/dist/annotation-line-mbXXKVam.js +23 -0
  6. package/dist/annotation-link-DHPTdWez.js +21 -0
  7. package/dist/annotation-signature-4ci2KImE.js +21 -0
  8. package/dist/annotation-square-SQ7oqcEq.js +21 -0
  9. package/dist/annotation-squiggly-B7fWFNAK.js +23 -0
  10. package/dist/annotation-stamp-BkEskP5J.js +21 -0
  11. package/dist/annotation-strikeout-C-bSOcHc.js +21 -0
  12. package/dist/{comment-BbWyJaxS.js → annotation-text-BgsMjKeI.js} +6 -6
  13. package/dist/annotation-underline-Be5qs13j.js +21 -0
  14. package/dist/{arrow-up-CPZlMhbK.js → arrow-up-vWNs2knA.js} +8 -7
  15. package/dist/assets/pdf-annotations/altText_spinner.svg +17 -10
  16. package/dist/assets/pdf-annotations/annotation-note.svg +42 -40
  17. package/dist/drag-icon-D-z1P6O_.js +19 -0
  18. package/dist/drag-icon-dark-DXDxQjnW.js +18 -0
  19. package/dist/{empty-comment-dark-CpCor0hQ.js → empty-comment-dark-CrZRt0Hl.js} +5 -4
  20. package/dist/{empty-comment-light-ciWE9Fd0.js → empty-comment-light-BVPUX2pA.js} +2 -1
  21. package/dist/{first-page-CRwMJORv.js → first-page-DihCXIQm.js} +6 -5
  22. package/dist/index.js +4908 -4883
  23. package/dist/index.umd.cjs +15 -15
  24. package/dist/{last-page-Dp9anrA0.js → last-page-DIN17z_8.js} +8 -7
  25. package/dist/types/assets/pdf-annotations/index.d.ts +0 -29
  26. package/dist/types/components/VPdfCommentsIcon.vue.d.ts +16 -0
  27. package/dist/types/utils/enumerators.d.ts +1 -1
  28. package/dist/types/utils/types.d.ts +4 -1
  29. package/package.json +1 -1
  30. package/dist/assets/loader.png +0 -0
  31. package/dist/assets/pdf-annotations/loading-icon.gif +0 -0
  32. package/dist/assets/watermark.webp +0 -0
  33. package/dist/drag-icon-DrZ8KB-6.js +0 -18
  34. package/dist/drag-icon-dark-DeSCzOds.js +0 -17
@@ -1,20 +1,21 @@
1
- import { openBlock as t, createElementBlock as l, createElementVNode as n } from "vue";
2
- const o = {
1
+ import { openBlock as t, createElementBlock as l, createElementVNode as o } from "vue";
2
+ const n = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  width: "16",
5
5
  height: "16",
6
- fill: "none"
6
+ fill: "none",
7
+ viewBox: "0 0 16 16"
7
8
  };
8
9
  function r(a, e) {
9
- return t(), l("svg", o, e[0] || (e[0] = [
10
- n("path", {
10
+ return t(), l("svg", n, e[0] || (e[0] = [
11
+ o("path", {
11
12
  fill: "currentColor",
12
13
  d: "M3.146 7.354a.5.5 0 1 1 .708-.708L7.5 10.293V2a.5.5 0 1 1 1 0v8.293l3.646-3.647a.501.501 0 0 1 .708.708l-4.5 4.5a.5.5 0 0 1-.708 0zM13.5 13h-11a.5.5 0 0 0 0 1h11a.5.5 0 0 0 0-1"
13
14
  }, null, -1)
14
15
  ]));
15
16
  }
16
- const c = { render: r };
17
+ const s = { render: r };
17
18
  export {
18
- c as default,
19
+ s as default,
19
20
  r as render
20
21
  };
@@ -1,31 +1,2 @@
1
1
  declare let annoImageResourcesPath: string;
2
- declare const annoImageResources: {
3
- annotationNoicon: string;
4
- annotationNote: string;
5
- annotationPaperclip: string;
6
- annotationParagraph: string;
7
- annotationPushpin: string;
8
- annotationKey: string;
9
- annotationInsert: string;
10
- annotationHelp: string;
11
- annotationComment: string;
12
- annotationCheck: string;
13
- altTextWarning: string;
14
- altTextSpinner: string;
15
- altTextDone: string;
16
- altTextDisclaimer: string;
17
- altTextAdd: string;
18
- cursorEditorTextHighlight: string;
19
- cursorEditorInk: string;
20
- cursorEditorFreeText: string;
21
- cursorEditorFreeHighlight: string;
22
- editorToolbarDelete: string;
23
- loadingIcon: string;
24
- messageBarWarning: string;
25
- messageBarClosingButton: string;
26
- secondaryToolbarButtonDocumentProperties: string;
27
- toolbarButtonMenuArrow: string;
28
- toolbarButtonEditorHighlight: string;
29
- };
30
- export { annoImageResources };
31
2
  export default annoImageResourcesPath;
@@ -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.8",
4
+ "version": "2.5.0-rc.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.cjs",
7
7
  "module": "./dist/index.js",
Binary file
Binary file