@vue-pdf-viewer/viewer 1.7.0-beta.0 → 1.7.0-beta.1

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.
@@ -0,0 +1,16 @@
1
+ declare enum CharacterType {
2
+ SPACE = 0,
3
+ ALPHA_LETTER = 1,
4
+ PUNCTUATION = 2,
5
+ HAN_LETTER = 3,
6
+ KATAKANA_LETTER = 4,
7
+ HIRAGANA_LETTER = 5,
8
+ HALF_WIDTH_KATAKANA_LETTER = 6,
9
+ THAI_LETTER = 7
10
+ }
11
+ /**
12
+ * This function is based on the word-break detection implemented in:
13
+ * https://hg.mozilla.org/mozilla-central/file/tip/intl/lwbrk/WordBreaker.cpp
14
+ */
15
+ declare function getCharacterType(charCode: number): CharacterType;
16
+ export { CharacterType, getCharacterType };
@@ -1,5 +1,6 @@
1
1
  import type { TextContent } from 'pdfjs-dist/types/src/display/text_layer';
2
2
  import type { HighlightOptions, Match } from '../../utils/types';
3
+ export declare function isMatchEntireWord(content: string, startIdx: number, length: number): boolean;
3
4
  declare function highlightMatches(matches: Match[], textContent: TextContent, textDivs: HTMLElement[], className?: string): void;
4
5
  declare function resetDivs(textContent: TextContent, textDivs: HTMLElement[]): void;
5
6
  declare function findMatches(query: string, textContent: TextContent, options: HighlightOptions): Match[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vue-pdf-viewer/viewer",
3
3
  "private": false,
4
- "version": "1.7.0-beta.0",
4
+ "version": "1.7.0-beta.1",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.cjs",
7
7
  "module": "./dist/index.js",