@vue-pdf-viewer/shared 1.2.0 → 1.3.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.
package/dist/const.d.ts CHANGED
@@ -15,7 +15,7 @@ export declare const BASIC_COLOR: {
15
15
  readonly Gray: "#696969";
16
16
  readonly LightGray: "#9C9C9C";
17
17
  readonly LightestGray: "#CDCDCD";
18
- readonly White: "#FFFFFF";
18
+ readonly ChristmasWhite: "#EDEDED";
19
19
  };
20
20
  export declare const FREE_TEXT_FONT_COLOR: {
21
21
  readonly Purple: "#7862FF";
@@ -29,15 +29,15 @@ export declare const FREE_TEXT_FONT_COLOR: {
29
29
  readonly Gray: "#696969";
30
30
  readonly LightGray: "#9C9C9C";
31
31
  readonly LightestGray: "#CDCDCD";
32
- readonly White: "#FFFFFF";
32
+ readonly ChristmasWhite: "#EDEDED";
33
33
  };
34
- export declare const TEXT_SELECTION_COLOR: {
34
+ export declare const HIGHLIGHT_COLOR: {
35
35
  readonly Black: "#000000";
36
36
  readonly DarkGray: "#444444";
37
37
  readonly Gray: "#696969";
38
38
  readonly LightGray: "#9C9C9C";
39
39
  readonly LightestGray: "#CDCDCD";
40
- readonly White: "#FFFFFF";
40
+ readonly ChristmasWhite: "#EDEDED";
41
41
  readonly Purple: "#CAAAFF";
42
42
  readonly Cyan: "#65EDE9";
43
43
  readonly Red: "#FFACAC";
@@ -45,6 +45,22 @@ export declare const TEXT_SELECTION_COLOR: {
45
45
  readonly Yellow: "#FCE244";
46
46
  readonly Green: "#A0F751";
47
47
  };
48
- export declare const DEFAULT_TEXT_SELECTION_COLOR: Record<(typeof TEXT_SELECTION_COLOR)[keyof typeof TEXT_SELECTION_COLOR], string>;
48
+ export declare const UNDERLINE_COLOR: {
49
+ readonly Black: "#000000";
50
+ readonly DarkGray: "#444444";
51
+ readonly Gray: "#696969";
52
+ readonly LightGray: "#9C9C9C";
53
+ readonly LightestGray: "#CDCDCD";
54
+ readonly ChristmasWhite: "#EDEDED";
55
+ readonly Purple: "#7862FF";
56
+ readonly Blue: "#1777FF";
57
+ readonly Red: "#F66365";
58
+ readonly Orange: "#F67E63";
59
+ readonly Yellow: "#F5C463";
60
+ readonly Green: "#48BB77";
61
+ };
62
+ export declare const DEFAULT_HIGHLIGHT_COLOR: Record<(typeof HIGHLIGHT_COLOR)[keyof typeof HIGHLIGHT_COLOR], string>;
63
+ export declare const DEFAULT_UNDERLINE_COLOR: Record<(typeof UNDERLINE_COLOR)[keyof typeof UNDERLINE_COLOR], string>;
64
+ export declare const DEFAULT_STRIKETHROUGH_COLOR: Record<(typeof UNDERLINE_COLOR)[keyof typeof UNDERLINE_COLOR], string>;
49
65
  export declare const DEFAULT_FREE_TEXT_FONT_COLOR: Record<(typeof FREE_TEXT_FONT_COLOR)[keyof typeof FREE_TEXT_FONT_COLOR], string>;
50
66
  export declare const EDITOR_PREFIX: "pdfjs_internal_editor_";
package/dist/const.js CHANGED
@@ -37,7 +37,7 @@ export const BASIC_COLOR = {
37
37
  Gray: "#696969",
38
38
  LightGray: "#9C9C9C",
39
39
  LightestGray: "#CDCDCD",
40
- White: "#FFFFFF",
40
+ ChristmasWhite: "#EDEDED",
41
41
  };
42
42
  export const FREE_TEXT_FONT_COLOR = {
43
43
  ...BASIC_COLOR,
@@ -48,7 +48,7 @@ export const FREE_TEXT_FONT_COLOR = {
48
48
  Yellow: "#F5C463",
49
49
  Green: "#48BB77",
50
50
  };
51
- export const TEXT_SELECTION_COLOR = {
51
+ export const HIGHLIGHT_COLOR = {
52
52
  Purple: "#CAAAFF",
53
53
  Cyan: "#65EDE9",
54
54
  Red: "#FFACAC",
@@ -57,19 +57,57 @@ export const TEXT_SELECTION_COLOR = {
57
57
  Green: "#A0F751",
58
58
  ...BASIC_COLOR,
59
59
  };
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",
60
+ export const UNDERLINE_COLOR = {
61
+ Purple: "#7862FF",
62
+ Blue: "#1777FF",
63
+ Red: "#F66365",
64
+ Orange: "#F67E63",
65
+ Yellow: "#F5C463",
66
+ Green: "#48BB77",
67
+ ...BASIC_COLOR,
68
+ };
69
+ // export const STRIKETHROUGH_COLOR = { ...UNDERLINE_COLOR } as const;
70
+ export const DEFAULT_HIGHLIGHT_COLOR = {
71
+ [HIGHLIGHT_COLOR.Purple]: "Purple",
72
+ [HIGHLIGHT_COLOR.Cyan]: "Cyan",
73
+ [HIGHLIGHT_COLOR.Red]: "Red",
74
+ [HIGHLIGHT_COLOR.Orange]: "Orange",
75
+ [HIGHLIGHT_COLOR.Yellow]: "Yellow",
76
+ [HIGHLIGHT_COLOR.Green]: "Green",
77
+ [HIGHLIGHT_COLOR.Black]: "Black",
78
+ [HIGHLIGHT_COLOR.DarkGray]: "Dark Gray",
79
+ [HIGHLIGHT_COLOR.Gray]: "Gray",
80
+ [HIGHLIGHT_COLOR.LightGray]: "Light Gray",
81
+ [HIGHLIGHT_COLOR.LightestGray]: "Lightest Gray",
82
+ [HIGHLIGHT_COLOR.ChristmasWhite]: "Christmas White",
83
+ };
84
+ export const DEFAULT_UNDERLINE_COLOR = {
85
+ [UNDERLINE_COLOR.Purple]: "Purple",
86
+ [UNDERLINE_COLOR.Blue]: "Blue",
87
+ [UNDERLINE_COLOR.Red]: "Red",
88
+ [UNDERLINE_COLOR.Orange]: "Orange",
89
+ [UNDERLINE_COLOR.Yellow]: "Yellow",
90
+ [UNDERLINE_COLOR.Green]: "Green",
91
+ [UNDERLINE_COLOR.Black]: "Black",
92
+ [UNDERLINE_COLOR.DarkGray]: "Dark Gray",
93
+ [UNDERLINE_COLOR.Gray]: "Gray",
94
+ [UNDERLINE_COLOR.LightGray]: "Light Gray",
95
+ [UNDERLINE_COLOR.LightestGray]: "Lightest Gray",
96
+ [UNDERLINE_COLOR.ChristmasWhite]: "Christmas White",
97
+ };
98
+ export const DEFAULT_STRIKETHROUGH_COLOR = {
99
+ [UNDERLINE_COLOR.Purple]: "Purple",
100
+ [UNDERLINE_COLOR.Blue]: "Blue",
101
+ [UNDERLINE_COLOR.Red]: "Red",
102
+ [UNDERLINE_COLOR.Orange]: "Orange",
103
+ [UNDERLINE_COLOR.Yellow]: "Yellow",
104
+ [UNDERLINE_COLOR.Green]: "Green",
105
+ [UNDERLINE_COLOR.Black]: "Black",
106
+ [UNDERLINE_COLOR.DarkGray]: "Dark Gray",
107
+ [UNDERLINE_COLOR.Gray]: "Gray",
108
+ [UNDERLINE_COLOR.LightGray]: "Light Gray",
109
+ [UNDERLINE_COLOR.LightestGray]: "Lightest Gray",
110
+ [UNDERLINE_COLOR.ChristmasWhite]: "Christmas White",
73
111
  };
74
112
  export const DEFAULT_FREE_TEXT_FONT_COLOR = {
75
113
  [FREE_TEXT_FONT_COLOR.Black]: "Black",
@@ -77,7 +115,7 @@ export const DEFAULT_FREE_TEXT_FONT_COLOR = {
77
115
  [FREE_TEXT_FONT_COLOR.Gray]: "Gray",
78
116
  [FREE_TEXT_FONT_COLOR.LightGray]: "Light Gray",
79
117
  [FREE_TEXT_FONT_COLOR.LightestGray]: "Lightest Gray",
80
- [FREE_TEXT_FONT_COLOR.White]: "White",
118
+ [FREE_TEXT_FONT_COLOR.ChristmasWhite]: "Christmas White",
81
119
  [FREE_TEXT_FONT_COLOR.Purple]: "Purple",
82
120
  [FREE_TEXT_FONT_COLOR.Blue]: "Blue",
83
121
  [FREE_TEXT_FONT_COLOR.Red]: "Red",
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",
4
+ "version": "1.3.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",