@vue-pdf-viewer/shared 1.2.0-rc.5 → 1.2.0-rc.7

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
@@ -31,7 +31,13 @@ export declare const FREE_TEXT_FONT_COLOR: {
31
31
  readonly LightestGray: "#CDCDCD";
32
32
  readonly White: "#FFFFFF";
33
33
  };
34
- export declare const HIGHLIGHT_COLOR: {
34
+ export declare const TEXT_SELECTION_COLOR: {
35
+ readonly Black: "#000000";
36
+ readonly DarkGray: "#444444";
37
+ readonly Gray: "#696969";
38
+ readonly LightGray: "#9C9C9C";
39
+ readonly LightestGray: "#CDCDCD";
40
+ readonly White: "#FFFFFF";
35
41
  readonly Purple: "#CAAAFF";
36
42
  readonly Cyan: "#65EDE9";
37
43
  readonly Red: "#FFACAC";
@@ -39,8 +45,6 @@ export declare const HIGHLIGHT_COLOR: {
39
45
  readonly Yellow: "#FCE244";
40
46
  readonly Green: "#A0F751";
41
47
  };
42
- export declare const DEFAULT_HIGHLIGHT_COLOR: Record<(typeof HIGHLIGHT_COLOR)[keyof typeof HIGHLIGHT_COLOR], string>;
48
+ export declare const DEFAULT_TEXT_SELECTION_COLOR: Record<(typeof TEXT_SELECTION_COLOR)[keyof typeof TEXT_SELECTION_COLOR], string>;
43
49
  export declare const DEFAULT_FREE_TEXT_FONT_COLOR: Record<(typeof FREE_TEXT_FONT_COLOR)[keyof typeof FREE_TEXT_FONT_COLOR], string>;
44
- export declare const DEFAULT_STRIKETHROUGH_COLOR: Record<(typeof HIGHLIGHT_COLOR)[keyof typeof HIGHLIGHT_COLOR] & (typeof FREE_TEXT_FONT_COLOR)[keyof typeof FREE_TEXT_FONT_COLOR], string>;
45
- export declare const DEFAULT_UNDERLINE_COLOR: Record<(typeof HIGHLIGHT_COLOR)[keyof typeof HIGHLIGHT_COLOR] & (typeof FREE_TEXT_FONT_COLOR)[keyof typeof FREE_TEXT_FONT_COLOR], string>;
46
50
  export declare const EDITOR_PREFIX: "pdfjs_internal_editor_";
package/dist/const.js CHANGED
@@ -48,21 +48,28 @@ export const FREE_TEXT_FONT_COLOR = {
48
48
  Yellow: "#F5C463",
49
49
  Green: "#48BB77",
50
50
  };
51
- export const HIGHLIGHT_COLOR = {
51
+ export const TEXT_SELECTION_COLOR = {
52
52
  Purple: "#CAAAFF",
53
53
  Cyan: "#65EDE9",
54
54
  Red: "#FFACAC",
55
55
  Orange: "#FFBD82",
56
56
  Yellow: "#FCE244",
57
57
  Green: "#A0F751",
58
+ ...BASIC_COLOR,
58
59
  };
59
- export const DEFAULT_HIGHLIGHT_COLOR = {
60
- [HIGHLIGHT_COLOR.Purple]: "Purple",
61
- [HIGHLIGHT_COLOR.Cyan]: "Cyan",
62
- [HIGHLIGHT_COLOR.Red]: "Red",
63
- [HIGHLIGHT_COLOR.Orange]: "Orange",
64
- [HIGHLIGHT_COLOR.Yellow]: "Yellow",
65
- [HIGHLIGHT_COLOR.Green]: "Green",
60
+ export const DEFAULT_TEXT_SELECTION_COLOR = {
61
+ [TEXT_SELECTION_COLOR.Purple]: "Purple",
62
+ [TEXT_SELECTION_COLOR.Cyan]: "Cyan",
63
+ [TEXT_SELECTION_COLOR.Red]: "Red",
64
+ [TEXT_SELECTION_COLOR.Orange]: "Orange",
65
+ [TEXT_SELECTION_COLOR.Yellow]: "Yellow",
66
+ [TEXT_SELECTION_COLOR.Green]: "Green",
67
+ [TEXT_SELECTION_COLOR.Black]: "Black",
68
+ [TEXT_SELECTION_COLOR.DarkGray]: "Dark Gray",
69
+ [TEXT_SELECTION_COLOR.Gray]: "Gray",
70
+ [TEXT_SELECTION_COLOR.LightGray]: "Light Gray",
71
+ [TEXT_SELECTION_COLOR.LightestGray]: "Lightest Gray",
72
+ [TEXT_SELECTION_COLOR.White]: "White",
66
73
  };
67
74
  export const DEFAULT_FREE_TEXT_FONT_COLOR = {
68
75
  [FREE_TEXT_FONT_COLOR.Black]: "Black",
@@ -78,12 +85,4 @@ export const DEFAULT_FREE_TEXT_FONT_COLOR = {
78
85
  [FREE_TEXT_FONT_COLOR.Yellow]: "Yellow",
79
86
  [FREE_TEXT_FONT_COLOR.Green]: "Green",
80
87
  };
81
- export const DEFAULT_STRIKETHROUGH_COLOR = {
82
- ...DEFAULT_HIGHLIGHT_COLOR,
83
- ...DEFAULT_FREE_TEXT_FONT_COLOR,
84
- };
85
- export const DEFAULT_UNDERLINE_COLOR = {
86
- ...DEFAULT_HIGHLIGHT_COLOR,
87
- ...DEFAULT_FREE_TEXT_FONT_COLOR,
88
- };
89
88
  export const EDITOR_PREFIX = "pdfjs_internal_editor_";
@@ -94,6 +94,16 @@
94
94
  "annotationHighlightColorTooltip": "Change highlight color",
95
95
  "annotationHighlightColorPickerLabel": "Highlight color",
96
96
  "annotationHighlightDeleteTooltip": "Remove highlight",
97
+ "annotationUnderlineLabel": "Underline",
98
+ "annotationUnderlineTooltip": "Underline",
99
+ "annotationUnderlineColorTooltip": "Change underline color",
100
+ "annotationUnderlineColorPickerLabel": "Underline color",
101
+ "annotationUnderlineDeleteTooltip": "Remove underline",
102
+ "annotationStrikethroughLabel": "Strikethrough",
103
+ "annotationStrikethroughTooltip": "Strikethrough",
104
+ "annotationStrikethroughColorTooltip": "Change strikethrough color",
105
+ "annotationStrikethroughColorPickerLabel": "Strikethrough color",
106
+ "annotationStrikethroughDeleteTooltip": "Remove strikethrough",
97
107
  "annotationFreeTextLabel": "Free text",
98
108
  "annotationFreeTextTooltip": "Free text",
99
109
  "annotationFreeTextDeleteTooltip": "Remove free text",
@@ -94,6 +94,16 @@
94
94
  "annotationHighlightColorTooltip": "Cambia colore evidenziazione",
95
95
  "annotationHighlightColorPickerLabel": "Colore evidenziazione",
96
96
  "annotationHighlightDeleteTooltip": "Rimuovi evidenziazione",
97
+ "annotationUnderlineLabel": "Sottolineato",
98
+ "annotationUnderlineTooltip": "Sottolineato",
99
+ "annotationUnderlineColorTooltip": "Cambia colore sottolineato",
100
+ "annotationUnderlineColorPickerLabel": "Colore sottolineato",
101
+ "annotationUnderlineDeleteTooltip": "Rimuovi sottolineato",
102
+ "annotationStrikethroughLabel": "Barrato",
103
+ "annotationStrikethroughTooltip": "Barrato",
104
+ "annotationStrikethroughColorTooltip": "Cambia colore barrato",
105
+ "annotationStrikethroughColorPickerLabel": "Colore barrato",
106
+ "annotationStrikethroughDeleteTooltip": "Rimuovi barrato",
97
107
  "annotationFreeTextLabel": "Testo libero",
98
108
  "annotationFreeTextTooltip": "Testo libero",
99
109
  "annotationFreeTextDeleteTooltip": "Rimuovi testo libero",
@@ -94,6 +94,16 @@
94
94
  "annotationHighlightColorTooltip": "Alterar cor do destaque",
95
95
  "annotationHighlightColorPickerLabel": "Cor de destaque",
96
96
  "annotationHighlightDeleteTooltip": "Remover destaque",
97
+ "annotationUnderlineLabel": "Sublinhado",
98
+ "annotationUnderlineTooltip": "Sublinhado",
99
+ "annotationUnderlineColorTooltip": "Alterar cor do sublinhado",
100
+ "annotationUnderlineColorPickerLabel": "Cor de sublinhado",
101
+ "annotationUnderlineDeleteTooltip": "Remover sublinhado",
102
+ "annotationStrikethroughLabel": "Tachado",
103
+ "annotationStrikethroughTooltip": "Tachado",
104
+ "annotationStrikethroughColorTooltip": "Alterar cor do tachado",
105
+ "annotationStrikethroughColorPickerLabel": "Cor de tachado",
106
+ "annotationStrikethroughDeleteTooltip": "Remover tachado",
97
107
  "annotationFreeTextLabel": "Texto livre",
98
108
  "annotationFreeTextTooltip": "Texto livre",
99
109
  "annotationFreeTextDeleteTooltip": "Remover texto livre",
@@ -94,6 +94,16 @@
94
94
  "annotationHighlightColorTooltip": "เปลี่ยนสีไฮไลท์",
95
95
  "annotationHighlightColorPickerLabel": "สีไฮไลท์",
96
96
  "annotationHighlightDeleteTooltip": "ลบไฮไลท์",
97
+ "annotationUnderlineLabel": "ขีดเส้นใต้",
98
+ "annotationUnderlineTooltip": "ขีดเส้นใต้",
99
+ "annotationUnderlineColorTooltip": "เปลี่ยนสีขีดเส้นใต้",
100
+ "annotationUnderlineColorPickerLabel": "สีขีดเส้นใต้",
101
+ "annotationUnderlineDeleteTooltip": "ลบขีดเส้นใต้",
102
+ "annotationStrikethroughLabel": "ขีดฆ่า",
103
+ "annotationStrikethroughTooltip": "ขีดฆ่า",
104
+ "annotationStrikethroughColorTooltip": "เปลี่ยนสีขีดฆ่า",
105
+ "annotationStrikethroughColorPickerLabel": "สีขีดฆ่า",
106
+ "annotationStrikethroughDeleteTooltip": "ลบขีดฆ่า",
97
107
  "annotationFreeTextLabel": "ข้อความ",
98
108
  "annotationFreeTextTooltip": "ข้อความ",
99
109
  "annotationFreeTextDeleteTooltip": "ลบข้อความ",
@@ -94,6 +94,16 @@
94
94
  "annotationHighlightColorTooltip": "更改高亮颜色",
95
95
  "annotationHighlightColorPickerLabel": "高亮颜色",
96
96
  "annotationHighlightDeleteTooltip": "删除高亮",
97
+ "annotationUnderlineLabel": "下划线",
98
+ "annotationUnderlineTooltip": "下划线",
99
+ "annotationUnderlineColorTooltip": "更改下划线颜色",
100
+ "annotationUnderlineColorPickerLabel": "下划线颜色",
101
+ "annotationUnderlineDeleteTooltip": "删除下划线",
102
+ "annotationStrikethroughLabel": "删除线",
103
+ "annotationStrikethroughTooltip": "删除线",
104
+ "annotationStrikethroughColorTooltip": "更改删除线颜色",
105
+ "annotationStrikethroughColorPickerLabel": "删除线颜色",
106
+ "annotationStrikethroughDeleteTooltip": "删除删除线",
97
107
  "annotationFreeTextLabel": "自由文本",
98
108
  "annotationFreeTextTooltip": "自由文本",
99
109
  "annotationFreeTextDeleteTooltip": "删除自由文本",
package/dist/types.d.ts CHANGED
@@ -97,6 +97,16 @@ export type Localization = {
97
97
  annotationHighlightColorTooltip: string;
98
98
  annotationHighlightColorPickerLabel: string;
99
99
  annotationHighlightDeleteTooltip: string;
100
+ annotationUnderlineLabel: string;
101
+ annotationUnderlineTooltip: string;
102
+ annotationUnderlineColorTooltip: string;
103
+ annotationUnderlineColorPickerLabel: string;
104
+ annotationUnderlineDeleteTooltip: string;
105
+ annotationStrikethroughLabel: string;
106
+ annotationStrikethroughTooltip: string;
107
+ annotationStrikethroughColorTooltip: string;
108
+ annotationStrikethroughColorPickerLabel: string;
109
+ annotationStrikethroughDeleteTooltip: string;
100
110
  annotationFreeTextLabel: string;
101
111
  annotationFreeTextTooltip: string;
102
112
  annotationFreeTextDeleteTooltip: string;
@@ -134,7 +144,7 @@ export interface PluginContext<PDFDocumentProxy = any> {
134
144
  AppButton?: Component;
135
145
  AppTooltip?: Component;
136
146
  AppPopover?: Component;
137
- AppHighlightColorPicker?: Component;
147
+ AppColorPicker?: Component;
138
148
  AppSignatures?: Component;
139
149
  };
140
150
  pdf?: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vue-pdf-viewer/shared",
3
3
  "private": false,
4
- "version": "1.2.0-rc.5",
4
+ "version": "1.2.0-rc.7",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",