@vue-pdf-viewer/shared 0.0.0-experimental.1 → 0.0.0-experimental.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.
- package/dist/enumerators.d.ts +8 -0
- package/dist/enumerators.js +9 -0
- package/dist/locales/en_US.json +1 -0
- package/dist/locales/it_IT.json +1 -0
- package/dist/locales/pt_PT.json +1 -0
- package/dist/locales/th_TH.json +3 -2
- package/dist/locales/zh_CN.json +1 -0
- package/dist/types.d.ts +3 -0
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +3 -3
- package/package.json +4 -1
package/dist/enumerators.d.ts
CHANGED
|
@@ -3,3 +3,11 @@ export declare enum EventAnnotation {
|
|
|
3
3
|
freeText = "vpv:annotation:freeText",
|
|
4
4
|
signature = "vpv:annotation:signature"
|
|
5
5
|
}
|
|
6
|
+
export declare enum HighlightColor {
|
|
7
|
+
Purple = "#7862FF",
|
|
8
|
+
Cyan = "#3FE9E3",
|
|
9
|
+
Red = "#F87777",
|
|
10
|
+
Orange = "#FE9639",
|
|
11
|
+
Yellow = "#FBDA15",
|
|
12
|
+
Green = "#88F526"
|
|
13
|
+
}
|
package/dist/enumerators.js
CHANGED
|
@@ -4,3 +4,12 @@ export var EventAnnotation;
|
|
|
4
4
|
EventAnnotation["freeText"] = "vpv:annotation:freeText";
|
|
5
5
|
EventAnnotation["signature"] = "vpv:annotation:signature";
|
|
6
6
|
})(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 = {}));
|
package/dist/locales/en_US.json
CHANGED
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
"annotationToggleHideTooltip": "Hide annotation tools",
|
|
84
84
|
"annotationHighlightLabel": "Highlight",
|
|
85
85
|
"annotationHighlightTooltip": "Highlight",
|
|
86
|
+
"annotationHighlightColorPickerLabel": "Highlight color",
|
|
86
87
|
"annotationFreeTextLabel": "Free text",
|
|
87
88
|
"annotationFreeTextTooltip": "Free text",
|
|
88
89
|
"annotationSignatureLabel": "Signature",
|
package/dist/locales/it_IT.json
CHANGED
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
"annotationToggleHideTooltip": "Nascondi strumenti annotazione",
|
|
84
84
|
"annotationHighlightLabel": "Evidenzia",
|
|
85
85
|
"annotationHighlightTooltip": "Evidenzia",
|
|
86
|
+
"annotationHighlightColorPickerLabel": "Colore evidenziazione",
|
|
86
87
|
"annotationFreeTextLabel": "Testo libero",
|
|
87
88
|
"annotationFreeTextTooltip": "Testo libero",
|
|
88
89
|
"annotationSignatureLabel": "Firma",
|
package/dist/locales/pt_PT.json
CHANGED
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
"annotationToggleHideTooltip": "Ocultar ferramentas de anotação",
|
|
84
84
|
"annotationHighlightLabel": "Destacar",
|
|
85
85
|
"annotationHighlightTooltip": "Destacar",
|
|
86
|
+
"annotationHighlightColorPickerLabel": "Cor de destaque",
|
|
86
87
|
"annotationFreeTextLabel": "Texto livre",
|
|
87
88
|
"annotationFreeTextTooltip": "Texto livre",
|
|
88
89
|
"annotationSignatureLabel": "Assinatura",
|
package/dist/locales/th_TH.json
CHANGED
|
@@ -81,8 +81,9 @@
|
|
|
81
81
|
"annotationLabel": "เครื่องมือการออกแบบ",
|
|
82
82
|
"annotationToggleShowTooltip": "แสดงเครื่องมือการออกแบบ",
|
|
83
83
|
"annotationToggleHideTooltip": "ซ่อนเครื่องมือการออกแบบ",
|
|
84
|
-
"annotationHighlightLabel": "
|
|
85
|
-
"annotationHighlightTooltip": "
|
|
84
|
+
"annotationHighlightLabel": "ไฮไลท์",
|
|
85
|
+
"annotationHighlightTooltip": "ไฮไลท์",
|
|
86
|
+
"annotationHighlightColorPickerLabel": "สีไฮไลท์",
|
|
86
87
|
"annotationFreeTextLabel": "ข้อความ",
|
|
87
88
|
"annotationFreeTextTooltip": "ข้อความ",
|
|
88
89
|
"annotationSignatureLabel": "ลายนิ้วมือ",
|
package/dist/locales/zh_CN.json
CHANGED
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
"annotationToggleHideTooltip": "隐藏注释工具",
|
|
84
84
|
"annotationHighlightLabel": "高亮",
|
|
85
85
|
"annotationHighlightTooltip": "高亮",
|
|
86
|
+
"annotationHighlightColorPickerLabel": "高亮颜色",
|
|
86
87
|
"annotationFreeTextLabel": "自由文本",
|
|
87
88
|
"annotationFreeTextTooltip": "自由文本",
|
|
88
89
|
"annotationSignatureLabel": "签名",
|
package/dist/types.d.ts
CHANGED
|
@@ -84,6 +84,7 @@ export type Localization = {
|
|
|
84
84
|
annotationToggleHideTooltip: string;
|
|
85
85
|
annotationHighlightLabel: string;
|
|
86
86
|
annotationHighlightTooltip: string;
|
|
87
|
+
annotationHighlightColorPickerLabel: string;
|
|
87
88
|
annotationFreeTextLabel: string;
|
|
88
89
|
annotationFreeTextTooltip: string;
|
|
89
90
|
annotationSignatureLabel: string;
|
|
@@ -107,6 +108,8 @@ export interface PluginContext {
|
|
|
107
108
|
ui: {
|
|
108
109
|
AppButton?: Component;
|
|
109
110
|
AppTooltip?: Component;
|
|
111
|
+
AppPopover?: Component;
|
|
112
|
+
AppHighlightColorPicker?: Component;
|
|
110
113
|
};
|
|
111
114
|
};
|
|
112
115
|
}
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { EventAnnotation } from "./enumerators";
|
|
2
|
-
export declare
|
|
2
|
+
export declare const getEventName: (instanceId: number, event: EventAnnotation) => string;
|
package/dist/utils.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
return `${
|
|
3
|
-
}
|
|
1
|
+
export const getEventName = (instanceId, event) => {
|
|
2
|
+
return `${instanceId}-${event}`;
|
|
3
|
+
};
|
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.
|
|
4
|
+
"version": "0.0.0-experimental.10",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
18
|
"scripts": {
|
|
19
|
+
"version:prerelease": "npm version prerelease",
|
|
20
|
+
"prepublishOnly": "tsc",
|
|
21
|
+
"publish:experimental": "npm run version:prerelease && npm publish --tag=experimental",
|
|
19
22
|
"build": "tsc",
|
|
20
23
|
"dev": "tsc --watch"
|
|
21
24
|
},
|