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

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.
Files changed (2) hide show
  1. package/dist/types.d.ts +6 -7
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -163,26 +163,25 @@ export interface LabelValuePair {
163
163
  }
164
164
  export type AnnotationColors = LabelValuePair[] | string[];
165
165
  export type AnnotationColorsLength = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
166
- export type AnnotationHighlightColors = (AnnotationColors & {
166
+ export type AnnotationTextSelectionColors = (AnnotationColors & {
167
167
  length: AnnotationColorsLength;
168
168
  }) | null;
169
- export type AnnotationStrikethroughColors = AnnotationHighlightColors;
170
- export type AnnotationUnderlineColors = AnnotationHighlightColors;
171
- export type AnnotationFreeTextFontColors = AnnotationHighlightColors;
169
+ export type AnnotationHighlightColors = AnnotationTextSelectionColors;
170
+ export type AnnotationStrikethroughColors = AnnotationTextSelectionColors;
171
+ export type AnnotationUnderlineColors = AnnotationTextSelectionColors;
172
+ export type AnnotationFreeTextFontColors = AnnotationTextSelectionColors;
172
173
  export interface AnnotationToolOption {
173
174
  icon?: Component | VNode | string;
174
175
  component?: Component;
175
176
  }
176
177
  export interface HighlightToolOption extends AnnotationToolOption {
177
- colors?: AnnotationHighlightColors;
178
178
  }
179
179
  export interface StrikethroughToolOption extends AnnotationToolOption {
180
- colors?: AnnotationStrikethroughColors;
181
180
  }
182
181
  export interface UnderlineToolOption extends AnnotationToolOption {
183
- colors?: AnnotationUnderlineColors;
184
182
  }
185
183
  export interface TextSelectionOption extends AnnotationToolOption {
184
+ colors?: AnnotationTextSelectionColors;
186
185
  highlight?: HighlightToolOption | boolean;
187
186
  strikethrough?: StrikethroughToolOption | boolean;
188
187
  underline?: UnderlineToolOption | boolean;
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.7",
4
+ "version": "1.2.0-rc.9",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",