@deepcitation/deepcitation-js 1.1.2 → 1.1.3

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.
@@ -1,16 +1,21 @@
1
1
  export type SearchStatus = "loading" | "pending" | "not_found" | "partial_text_found" | "found" | "found_value_only" | "found_phrase_missed_value" | "found_on_other_page" | "found_on_other_line" | "first_word_found" | "timestamp_wip";
2
- export type SearchMethod = "exact_line_match" | "line_with_buffer" | "current_page" | "adjacent_pages" | "expanded_window" | "regex_search" | "bm25_search" | "fuzzy_regex" | "first_word_fallback";
2
+ export type SearchMethod = "exact_line_match" | "line_with_buffer" | "current_page" | "keyspan_fallback" | "adjacent_pages" | "expanded_window" | "regex_search" | "bm25_search" | "fuzzy_regex" | "first_word_fallback";
3
3
  export interface SearchAttempt {
4
4
  method: SearchMethod;
5
5
  success: boolean;
6
6
  searchPhrases: string[];
7
7
  pageSearched?: number;
8
+ matchedPhrases?: string[];
9
+ matchedVariation?: string;
10
+ phraseVariations?: string[];
11
+ matchQuality?: string;
12
+ isPartialMatch?: boolean;
8
13
  matchScore?: number;
9
14
  matchSnippet?: string;
10
15
  notes?: string;
11
- durationMs?: number;
12
16
  startTime?: number;
13
17
  endTime?: number;
18
+ durationMs?: number;
14
19
  }
15
20
  export interface SearchState {
16
21
  status: SearchStatus;
@@ -15,6 +15,7 @@ export interface Verification {
15
15
  citation?: Citation;
16
16
  searchState?: SearchState | null;
17
17
  hitIndexWithinPage?: number | null;
18
+ highlightColor?: string | null;
18
19
  matchSnippet?: string | null;
19
20
  pdfSpaceItem?: PdfSpaceItem;
20
21
  verificationImageBase64?: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepcitation/deepcitation-js",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "DeepCitation JavaScript SDK for deterministic AI citation verification",
5
5
  "type": "module",
6
6
  "private": false,