@vue-pdf-viewer/shared 1.1.0-beta.0 → 1.1.0-rc.1

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.
package/dist/const.js CHANGED
@@ -1,3 +1,15 @@
1
+ /*
2
+ * Copyright (c) 2021-2025 Vue PDF Viewer
3
+ *
4
+ * This file is part of Vue PDF Viewer
5
+ *
6
+ * Vue PDF Viewer is distributed under a Commercial License Agreement.
7
+ *
8
+ * For licensing terms and conditions, please visit:
9
+ * https://www.vue-pdf-viewer.dev/license-agreement
10
+ *
11
+ * For commercial licensing inquiries, contact: david@vue-pdf-viewer.dev
12
+ */
1
13
  import { EventAnnotation, EventCore, FreeTextFontColor, HighlightColor, } from "./enumerators";
2
14
  import en from "./locales/en_US.json";
3
15
  import cn from "./locales/zh_CN.json";
@@ -1,3 +1,15 @@
1
+ /*
2
+ * Copyright (c) 2021-2025 Vue PDF Viewer
3
+ *
4
+ * This file is part of Vue PDF Viewer
5
+ *
6
+ * Vue PDF Viewer is distributed under a Commercial License Agreement.
7
+ *
8
+ * For licensing terms and conditions, please visit:
9
+ * https://www.vue-pdf-viewer.dev/license-agreement
10
+ *
11
+ * For commercial licensing inquiries, contact: david@vue-pdf-viewer.dev
12
+ */
1
13
  export var EventAnnotation;
2
14
  (function (EventAnnotation) {
3
15
  EventAnnotation["highlight"] = "vpv:annotation:highlight";
package/dist/types.d.ts CHANGED
@@ -213,3 +213,9 @@ export interface Annotation {
213
213
  fontSize?: number;
214
214
  contents?: string;
215
215
  }
216
+ export type AnnotationCallback<T = Annotation> = (data: T) => void;
217
+ export interface AnnotationEventCallback {
218
+ onAnnotationCreated?: AnnotationCallback;
219
+ onAnnotationUpdated?: AnnotationCallback;
220
+ onAnnotationDeleted?: AnnotationCallback;
221
+ }
package/dist/types.js CHANGED
@@ -1,3 +1 @@
1
- // Type definitions for @vue-pdf-viewer
2
- // This file contains only type definitions, interfaces, and enums
3
1
  export {};
package/dist/utils.js CHANGED
@@ -1,3 +1,15 @@
1
+ /*
2
+ * Copyright (c) 2021-2025 Vue PDF Viewer
3
+ *
4
+ * This file is part of Vue PDF Viewer
5
+ *
6
+ * Vue PDF Viewer is distributed under a Commercial License Agreement.
7
+ *
8
+ * For licensing terms and conditions, please visit:
9
+ * https://www.vue-pdf-viewer.dev/license-agreement
10
+ *
11
+ * For commercial licensing inquiries, contact: david@vue-pdf-viewer.dev
12
+ */
1
13
  export const getEventName = (instanceId, event) => {
2
14
  return `${instanceId}-${event}`;
3
15
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vue-pdf-viewer/shared",
3
3
  "private": false,
4
- "version": "1.1.0-beta.0",
4
+ "version": "1.1.0-rc.1",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",