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

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
@@ -42,4 +42,5 @@ export declare const HIGHLIGHT_COLOR: {
42
42
  export declare const DEFAULT_HIGHLIGHT_COLOR: Record<(typeof HIGHLIGHT_COLOR)[keyof typeof HIGHLIGHT_COLOR], string>;
43
43
  export declare const DEFAULT_FREE_TEXT_FONT_COLOR: Record<(typeof FREE_TEXT_FONT_COLOR)[keyof typeof FREE_TEXT_FONT_COLOR], string>;
44
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>;
45
46
  export declare const EDITOR_PREFIX: "pdfjs_internal_editor_";
package/dist/const.js CHANGED
@@ -82,4 +82,8 @@ export const DEFAULT_STRIKETHROUGH_COLOR = {
82
82
  ...DEFAULT_HIGHLIGHT_COLOR,
83
83
  ...DEFAULT_FREE_TEXT_FONT_COLOR,
84
84
  };
85
+ export const DEFAULT_UNDERLINE_COLOR = {
86
+ ...DEFAULT_HIGHLIGHT_COLOR,
87
+ ...DEFAULT_FREE_TEXT_FONT_COLOR,
88
+ };
85
89
  export const EDITOR_PREFIX = "pdfjs_internal_editor_";
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Component, ComponentInternalInstance, ComputedRef } from "vue";
1
+ import type { Component, ComponentInternalInstance, ComputedRef, VNode } from "vue";
2
2
  import { AnnotationFlag, AnnotationType, EventAnnotation, EventCore } from "./enumerators";
3
3
  export type LocaleKey = "en_US" | "zh_CN" | "it_IT" | "pt_PT" | "th_TH" | string;
4
4
  export type Localization = {
@@ -159,6 +159,30 @@ export type AnnotationHighlightColors = (AnnotationColors & {
159
159
  export type AnnotationStrikethroughColors = AnnotationHighlightColors;
160
160
  export type AnnotationUnderlineColors = AnnotationHighlightColors;
161
161
  export type AnnotationFreeTextFontColors = AnnotationHighlightColors;
162
+ export interface AnnotationToolOption {
163
+ icon?: Component | VNode | string;
164
+ component?: Component;
165
+ }
166
+ export interface HighlightToolOption extends AnnotationToolOption {
167
+ colors?: AnnotationHighlightColors;
168
+ }
169
+ export interface StrikethroughToolOption extends AnnotationToolOption {
170
+ colors?: AnnotationStrikethroughColors;
171
+ }
172
+ export interface UnderlineToolOption extends AnnotationToolOption {
173
+ colors?: AnnotationUnderlineColors;
174
+ }
175
+ export interface TextSelectionOption extends AnnotationToolOption {
176
+ highlight?: HighlightToolOption | boolean;
177
+ strikethrough?: StrikethroughToolOption | boolean;
178
+ underline?: UnderlineToolOption | boolean;
179
+ }
180
+ export interface FreeTextOption extends AnnotationToolOption {
181
+ fontColors?: AnnotationFreeTextFontColors;
182
+ fontSizes?: number[];
183
+ }
184
+ export interface ImageOption extends AnnotationToolOption {
185
+ }
162
186
  export type VPVEvent = EventAnnotation | EventCore;
163
187
  export interface AnnotationAttachment {
164
188
  content: Uint8Array;
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.4",
4
+ "version": "1.2.0-rc.5",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",