@vue-pdf-viewer/viewer 1.3.0-beta.16 → 1.3.0-beta.18

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.
@@ -62,6 +62,7 @@ export declare const VIEWER_STATE: InjectionKey<{
62
62
  scale: number | undefined;
63
63
  rotation: number;
64
64
  }>;
65
+ export declare const VIEWER_PAGES_PER_ROW: InjectionKey<Ref<number, number>>;
65
66
  export declare const TOOLBAR_OPTIONS: InjectionKey<Ref<ToolbarOptions | undefined, ToolbarOptions | undefined>>;
66
67
  export declare const TOTAL_TOOL_OTHERS_MENU: InjectionKey<Ref<number, number>>;
67
68
  export declare const IS_DARK: InjectionKey<Ref<boolean, boolean>>;
@@ -5,8 +5,8 @@ export declare enum ScrollMode {
5
5
  Wrapped = "Wrapped"
6
6
  }
7
7
  export declare enum ViewMode {
8
- SinglePage = "SinglePage",
9
- DualPage = "DualPage"
8
+ SinglePage = "Single",
9
+ DualPage = "Dual"
10
10
  }
11
11
  export declare enum ZoomLevel {
12
12
  ActualSize = "actualSize",
@@ -1,7 +1,9 @@
1
1
  import type { CSSProperties } from 'vue';
2
- import type { FlagKeyword, HighlightArea, NormalizedKeyword, SingleKeyword } from './types';
2
+ import type { FlagKeyword, HighlightArea, HighlightMatchPosition, NormalizedKeyword, SingleKeyword } from './types';
3
3
  export declare const normalizeFlagKeyword: (flagKeyword: FlagKeyword) => NormalizedKeyword;
4
4
  export declare const normalizeSingleKeyword: (keyword: SingleKeyword, matchCase?: boolean, wholeWords?: boolean) => NormalizedKeyword;
5
5
  export declare const sortHighlightPosition: (a: HighlightArea, b: HighlightArea) => 0 | 1 | -1;
6
6
  export declare const getHighlightStyle: (area: HighlightArea) => CSSProperties;
7
7
  export declare const unwrap: (ele: Node) => void;
8
+ export declare const getHighlightElement: (layerRef: HTMLElement, query: HighlightMatchPosition) => HTMLElement;
9
+ export declare function scrollHighlightIntoView(highlightEle: HTMLElement, pageContainer: HTMLElement, viewerContainer: HTMLElement): void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vue-pdf-viewer/viewer",
3
3
  "private": false,
4
- "version": "1.3.0-beta.16",
4
+ "version": "1.3.0-beta.18",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.cjs",
7
7
  "module": "./dist/index.js",