@jacktea/pdf-viewer-vue 0.1.8 → 0.1.10

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 } from '@jacktea/pdf-viewer-component';
3
+ import type { PdfViewerElement, PdfViewerConfig, Annotation, CommentThread, AnnotationComment, ServerWritebackPayload, ScaleMode } 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>;
@@ -27,7 +27,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
27
27
  required: false;
28
28
  };
29
29
  scaleMode: {
30
- type: PropType<"page-width" | "page-fit" | "auto">;
30
+ type: PropType<ScaleMode>;
31
31
  required: false;
32
32
  };
33
33
  locale: {
@@ -85,7 +85,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
85
85
  "watermark-applied": (watermark: any) => any;
86
86
  "theme-change": (theme: "light" | "dark") => any;
87
87
  "viewer-mode-change": (mode: string) => any;
88
- "scale-mode-change": (mode: string) => any;
88
+ "scale-mode-change": (mode: ScaleMode) => any;
89
89
  "preview-mode-change": (mode: string) => any;
90
90
  "annotation-tool-change": (tool: string) => any;
91
91
  "history-change": (action: "undo" | "redo") => any;
@@ -115,7 +115,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
115
115
  required: false;
116
116
  };
117
117
  scaleMode: {
118
- type: PropType<"page-width" | "page-fit" | "auto">;
118
+ type: PropType<ScaleMode>;
119
119
  required: false;
120
120
  };
121
121
  locale: {
@@ -144,7 +144,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
144
144
  "onWatermark-applied"?: ((watermark: any) => any) | undefined;
145
145
  "onTheme-change"?: ((theme: "light" | "dark") => any) | undefined;
146
146
  "onViewer-mode-change"?: ((mode: string) => any) | undefined;
147
- "onScale-mode-change"?: ((mode: string) => any) | undefined;
147
+ "onScale-mode-change"?: ((mode: ScaleMode) => any) | undefined;
148
148
  "onPreview-mode-change"?: ((mode: string) => any) | undefined;
149
149
  "onAnnotation-tool-change"?: ((tool: string) => any) | undefined;
150
150
  "onHistory-change"?: ((action: "undo" | "redo") => any) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"PdfViewer.vue.d.ts","sourceRoot":"","sources":["../src/PdfViewer.vue"],"names":[],"mappings":"AAyQA,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,EACvB,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,MAAM,CAAC;;;;;;;;cAQxE,QAAQ,CAAC,YAAY,GAAG,UAAU,GAAG,MAAM,CAAC;;;;;;;;cAQ5C,QAAQ,CAAC,eAAe,CAAC;;;;;oBApTtB,MAAM;;;;wBAIF,MAAM;4BACF,QAAQ,GAAG,SAAS;;kCAId,UAAU,EAAE;gCACd,UAAU;mCACP,UAAU;2BAClB,MAAM;2BACN,MAAM,GAAG,IAAI;;iCAGP,aAAa,EAAE;0BACtB,iBAAiB;6BACd,iBAAiB;kCACZ,MAAM,aAAa,MAAM;yCAClB,MAAM;wCACP,MAAM;mCACX,sBAAsB;4BAG7B,MAAM;qBACb,MAAM,MAAM,MAAM;;;iCAIN,OAAO;;uBAEjB,GAAG;;;;;;;;;;;;;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B,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.8",
3
+ "version": "0.1.10",
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.8"
22
+ "@jacktea/pdf-viewer-component": "0.1.10"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@vitejs/plugin-vue": "^5.0.0",