@vue-pdf-viewer/shared 0.0.0-experimental.9 → 1.0.0-alpha.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.d.ts CHANGED
@@ -1,6 +1,9 @@
1
1
  import type { InjectionKey, Reactive, ComputedRef } from "vue";
2
2
  import type { LocaleKey, Localization, PluginContext } from "./index";
3
3
  import { EventAnnotation } from "./enumerators";
4
+ export declare const PLUGIN_ID: {
5
+ ANNOTATIONS: string;
6
+ };
4
7
  export declare const Locales: Record<LocaleKey, Localization>;
5
8
  export declare const SHARED_UI_SYMBOL: InjectionKey<Reactive<PluginContext["shared"]["ui"]>>;
6
9
  export declare const LOCALIZATION_SYMBOL: InjectionKey<ComputedRef<Localization> | undefined>;
package/dist/const.js CHANGED
@@ -4,6 +4,10 @@ import cn from "./locales/zh_CN.json";
4
4
  import it from "./locales/it_IT.json";
5
5
  import pt from "./locales/pt_PT.json";
6
6
  import th from "./locales/th_TH.json";
7
+ export const PLUGIN_ID = {
8
+ ANNOTATIONS: "annotations",
9
+ // ... other plugin ids
10
+ };
7
11
  export const Locales = {
8
12
  en_US: en,
9
13
  zh_CN: cn,
@@ -1,9 +1,10 @@
1
1
  export declare enum EventAnnotation {
2
2
  highlight = "vpv:annotation:highlight",
3
3
  freeText = "vpv:annotation:freeText",
4
- signature = "vpv:annotation:signature"
4
+ signature = "vpv:annotation:signature",
5
+ image = "vpv:annotation:image"
5
6
  }
6
- export declare enum HighlightColor {
7
+ export declare enum DefaultHighlightColor {
7
8
  Purple = "#7862FF",
8
9
  Cyan = "#3FE9E3",
9
10
  Red = "#F87777",
@@ -3,13 +3,14 @@ export var EventAnnotation;
3
3
  EventAnnotation["highlight"] = "vpv:annotation:highlight";
4
4
  EventAnnotation["freeText"] = "vpv:annotation:freeText";
5
5
  EventAnnotation["signature"] = "vpv:annotation:signature";
6
+ EventAnnotation["image"] = "vpv:annotation:image";
6
7
  })(EventAnnotation || (EventAnnotation = {}));
7
- export var HighlightColor;
8
- (function (HighlightColor) {
9
- HighlightColor["Purple"] = "#7862FF";
10
- HighlightColor["Cyan"] = "#3FE9E3";
11
- HighlightColor["Red"] = "#F87777";
12
- HighlightColor["Orange"] = "#FE9639";
13
- HighlightColor["Yellow"] = "#FBDA15";
14
- HighlightColor["Green"] = "#88F526";
15
- })(HighlightColor || (HighlightColor = {}));
8
+ export var DefaultHighlightColor;
9
+ (function (DefaultHighlightColor) {
10
+ DefaultHighlightColor["Purple"] = "#7862FF";
11
+ DefaultHighlightColor["Cyan"] = "#3FE9E3";
12
+ DefaultHighlightColor["Red"] = "#F87777";
13
+ DefaultHighlightColor["Orange"] = "#FE9639";
14
+ DefaultHighlightColor["Yellow"] = "#FBDA15";
15
+ DefaultHighlightColor["Green"] = "#88F526";
16
+ })(DefaultHighlightColor || (DefaultHighlightColor = {}));
@@ -84,10 +84,17 @@
84
84
  "annotationHighlightLabel": "Highlight",
85
85
  "annotationHighlightTooltip": "Highlight",
86
86
  "annotationHighlightColorPickerLabel": "Highlight color",
87
+ "annotationHighlightDeleteTooltip": "Delete highlight",
87
88
  "annotationFreeTextLabel": "Free text",
88
89
  "annotationFreeTextTooltip": "Free text",
89
90
  "annotationSignatureLabel": "Signature",
90
91
  "annotationSignatureTooltip": "Signature",
92
+ "annotationSignatureAddLabel": "Add new signature",
93
+ "annotationSignatureAddTooltip": "Add new signature",
91
94
  "annotationCommentLabel": "Comment",
92
- "annotationCommentTooltip": "Comment"
95
+ "annotationCommentTooltip": "Comment",
96
+ "annotationImageLabel": "Image",
97
+ "annotationImageTooltip": "Add image",
98
+ "annotationImageUnsupportedFileMessage": "Unsupported file type",
99
+ "annotationImageDeleteTooltip": "Delete image"
93
100
  }
@@ -84,10 +84,17 @@
84
84
  "annotationHighlightLabel": "Evidenzia",
85
85
  "annotationHighlightTooltip": "Evidenzia",
86
86
  "annotationHighlightColorPickerLabel": "Colore evidenziazione",
87
+ "annotationHighlightDeleteTooltip": "Elimina evidenziazione",
87
88
  "annotationFreeTextLabel": "Testo libero",
88
89
  "annotationFreeTextTooltip": "Testo libero",
89
90
  "annotationSignatureLabel": "Firma",
90
91
  "annotationSignatureTooltip": "Firma",
92
+ "annotationSignatureAddLabel": "Aggiungi nuova firma",
93
+ "annotationSignatureAddTooltip": "Aggiungi nuova firma",
91
94
  "annotationCommentLabel": "Commento",
92
- "annotationCommentTooltip": "Commento"
95
+ "annotationCommentTooltip": "Commento",
96
+ "annotationImageLabel": "Immagine",
97
+ "annotationImageTooltip": "Aggiungi immagine",
98
+ "annotationImageUnsupportedFileMessage": "Tipo di file non supportato",
99
+ "annotationImageDeleteTooltip": "Elimina immagine"
93
100
  }
@@ -84,10 +84,17 @@
84
84
  "annotationHighlightLabel": "Destacar",
85
85
  "annotationHighlightTooltip": "Destacar",
86
86
  "annotationHighlightColorPickerLabel": "Cor de destaque",
87
+ "annotationHighlightDeleteTooltip": "Excluir destaque",
87
88
  "annotationFreeTextLabel": "Texto livre",
88
89
  "annotationFreeTextTooltip": "Texto livre",
89
90
  "annotationSignatureLabel": "Assinatura",
90
91
  "annotationSignatureTooltip": "Assinatura",
92
+ "annotationSignatureAddLabel": "Adicionar nova assinatura",
93
+ "annotationSignatureAddTooltip": "Adicionar nova assinatura",
91
94
  "annotationCommentLabel": "Comentário",
92
- "annotationCommentTooltip": "Comentário"
95
+ "annotationCommentTooltip": "Comentário",
96
+ "annotationImageLabel": "Imagem",
97
+ "annotationImageTooltip": "Adicionar imagem",
98
+ "annotationImageUnsupportedFileMessage": "Tipo de arquivo não suportado",
99
+ "annotationImageDeleteTooltip": "Excluir imagem"
93
100
  }
@@ -84,10 +84,17 @@
84
84
  "annotationHighlightLabel": "ไฮไลท์",
85
85
  "annotationHighlightTooltip": "ไฮไลท์",
86
86
  "annotationHighlightColorPickerLabel": "สีไฮไลท์",
87
+ "annotationHighlightDeleteTooltip": "ลบไฮไลท์",
87
88
  "annotationFreeTextLabel": "ข้อความ",
88
89
  "annotationFreeTextTooltip": "ข้อความ",
89
- "annotationSignatureLabel": "ลายนิ้วมือ",
90
- "annotationSignatureTooltip": "ลายนิ้วมือ",
90
+ "annotationSignatureLabel": "ลายเซ็น",
91
+ "annotationSignatureTooltip": "ลายเซ็น",
92
+ "annotationSignatureAddLabel": "เพิ่มลายเซ็นใหม่",
93
+ "annotationSignatureAddTooltip": "เพิ่มลายเซ็นใหม่",
91
94
  "annotationCommentLabel": "ความคิดเห็น",
92
- "annotationCommentTooltip": "ความคิดเห็น"
95
+ "annotationCommentTooltip": "ความคิดเห็น",
96
+ "annotationImageLabel": "รูปภาพ",
97
+ "annotationImageTooltip": "เพิ่มรูปภาพ",
98
+ "annotationImageUnsupportedFileMessage": "ประเภทไฟล์ไม่รองรับ",
99
+ "annotationImageDeleteTooltip": "ลบรูปภาพ"
93
100
  }
@@ -12,8 +12,8 @@
12
12
  "previousPageTooltip": "上一页",
13
13
  "currentPageTooltip": "当前页",
14
14
  "nextPageTooltip": "下一页",
15
- "zoomOutTooltip": "放大",
16
- "zoomInTooltip": "缩小",
15
+ "zoomOutTooltip": "缩小",
16
+ "zoomInTooltip": "放大",
17
17
  "zoomSelectTooltip": "选择缩放级别",
18
18
  "zoomActualSize": "实际大小",
19
19
  "zoomPageFit": "适合页面",
@@ -84,10 +84,17 @@
84
84
  "annotationHighlightLabel": "高亮",
85
85
  "annotationHighlightTooltip": "高亮",
86
86
  "annotationHighlightColorPickerLabel": "高亮颜色",
87
+ "annotationHighlightDeleteTooltip": "删除高亮",
87
88
  "annotationFreeTextLabel": "自由文本",
88
89
  "annotationFreeTextTooltip": "自由文本",
89
90
  "annotationSignatureLabel": "签名",
90
91
  "annotationSignatureTooltip": "签名",
92
+ "annotationSignatureAddLabel": "添加新签名",
93
+ "annotationSignatureAddTooltip": "添加新签名",
91
94
  "annotationCommentLabel": "注释",
92
- "annotationCommentTooltip": "注释"
95
+ "annotationCommentTooltip": "注释",
96
+ "annotationImageLabel": "图片",
97
+ "annotationImageTooltip": "添加图片",
98
+ "annotationImageUnsupportedFileMessage": "不支持的文件类型",
99
+ "annotationImageDeleteTooltip": "删除图片"
93
100
  }
package/dist/types.d.ts CHANGED
@@ -85,12 +85,19 @@ export type Localization = {
85
85
  annotationHighlightLabel: string;
86
86
  annotationHighlightTooltip: string;
87
87
  annotationHighlightColorPickerLabel: string;
88
+ annotationHighlightDeleteTooltip: string;
88
89
  annotationFreeTextLabel: string;
89
90
  annotationFreeTextTooltip: string;
90
91
  annotationSignatureLabel: string;
91
92
  annotationSignatureTooltip: string;
93
+ annotationSignatureAddLabel: string;
94
+ annotationSignatureAddTooltip: string;
92
95
  annotationCommentLabel: string;
93
96
  annotationCommentTooltip: string;
97
+ annotationImageLabel: string;
98
+ annotationImageTooltip: string;
99
+ annotationImageUnsupportedFileMessage: string;
100
+ annotationImageDeleteTooltip: string;
94
101
  };
95
102
  export type ToolbarDirection = "top" | "left" | "right";
96
103
  export interface PluginItem {
@@ -110,6 +117,7 @@ export interface PluginContext {
110
117
  AppTooltip?: Component;
111
118
  AppPopover?: Component;
112
119
  AppHighlightColorPicker?: Component;
120
+ AppSignatures?: Component;
113
121
  };
114
122
  };
115
123
  }
@@ -117,3 +125,5 @@ export interface Plugin {
117
125
  name: string;
118
126
  setup: (ctx: PluginContext) => void;
119
127
  }
128
+ export type HighlightColors = [string, string, string, string, string, string];
129
+ export type AnnotationHighlightColors = HighlightColors | null;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vue-pdf-viewer/shared",
3
3
  "private": false,
4
- "version": "0.0.0-experimental.9",
4
+ "version": "1.0.0-alpha.1",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -16,8 +16,9 @@
16
16
  "dist"
17
17
  ],
18
18
  "scripts": {
19
- "prepublishOnly": "npm version prerelease && tsc",
20
- "publish": "npm publish --tag=experimental",
19
+ "version:prerelease": "npm version prerelease",
20
+ "prepublishOnly": "tsc",
21
+ "publish:alpha": "npm run version:prerelease && npm publish --tag=alpha",
21
22
  "build": "tsc",
22
23
  "dev": "tsc --watch"
23
24
  },