@vue-pdf-viewer/annotation 1.2.0-rc.0 → 1.2.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 (2) hide show
  1. package/dist/types.d.ts +3 -8
  2. package/package.json +2 -2
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { type AnnotationFreeTextFontColors, type AnnotationHighlightColors, type Annotation } from "@vue-pdf-viewer/shared";
1
+ import { type AnnotationFreeTextFontColors, type AnnotationHighlightColors, type AnnotationEventCallback } from "@vue-pdf-viewer/shared";
2
2
  import type { Component, VNode } from "vue";
3
3
  export interface AnnotationOption {
4
4
  icon?: Component | VNode | string;
@@ -13,15 +13,10 @@ export interface HighlightOption extends AnnotationOption {
13
13
  }
14
14
  export interface ImageOption extends AnnotationOption {
15
15
  }
16
- export interface AnnotationCallbacks {
17
- onAnnotationCreated?: (data: Annotation) => void;
18
- onAnnotationUpdated?: (data: Annotation) => void;
19
- onAnnotationDeleted?: (data: Annotation) => void;
20
- }
21
- export interface VPdfAnnotationPluginOptions extends AnnotationCallbacks {
16
+ export interface VPdfAnnotationPluginOptions extends AnnotationEventCallback {
22
17
  freeText?: FreeTextOption | boolean;
23
18
  highlight?: HighlightOption | boolean;
24
19
  image?: ImageOption | boolean;
25
20
  }
26
21
  export { AnnotationType, AnnotationFlag } from "@vue-pdf-viewer/shared";
27
- export type { AnnotationHighlightColors, AnnotationFreeTextFontColors, LabelValuePair, Annotation, OutlineDestinations, OutlineName, OutlineRef, LinkAction, AnnotationBorderStyle, AnnotationStringObj, AnnotationAttachment, } from "@vue-pdf-viewer/shared";
22
+ export type { AnnotationHighlightColors, AnnotationFreeTextFontColors, LabelValuePair, Annotation, OutlineDestinations, OutlineName, OutlineRef, LinkAction, AnnotationBorderStyle, AnnotationStringObj, AnnotationAttachment, AnnotationCallback } from "@vue-pdf-viewer/shared";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vue-pdf-viewer/annotation",
3
3
  "private": false,
4
- "version": "1.2.0-rc.0",
4
+ "version": "1.2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.cjs",
7
7
  "module": "./dist/index.js",
@@ -30,7 +30,7 @@
30
30
  "vue": "^3.2.37"
31
31
  },
32
32
  "dependencies": {
33
- "@vue-pdf-viewer/shared": "^1.1.0-rc.0",
33
+ "@vue-pdf-viewer/shared": "1.1.0",
34
34
  "vite-plugin-css-injected-by-js": "^3.5.2",
35
35
  "vue": "^3.2.37"
36
36
  },