@prose-reader/enhancer-search 1.233.0 → 1.234.0
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/package.json +3 -3
- package/src/index.ts +4 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prose-reader/enhancer-search",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.234.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.umd.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"test": "vitest run --coverage"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@prose-reader/core": "^1.
|
|
20
|
+
"@prose-reader/core": "^1.234.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"rxjs": "*"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "1ffe3e51b948cf69c3c6f212ddf7439c7c8a4ee7"
|
|
26
26
|
}
|
package/src/index.ts
CHANGED
|
@@ -3,16 +3,17 @@ import { defer, forkJoin, of } from "rxjs"
|
|
|
3
3
|
import { catchError, finalize, map, switchMap } from "rxjs/operators"
|
|
4
4
|
import { report } from "./report"
|
|
5
5
|
import { searchInDocument } from "./search"
|
|
6
|
-
import type {
|
|
6
|
+
import type { SearchResult } from "./search"
|
|
7
|
+
import type { ResultItem, SearchEnhancerAPI } from "./types"
|
|
7
8
|
|
|
8
|
-
export type { SearchEnhancerAPI }
|
|
9
|
+
export type { SearchEnhancerAPI, ResultItem, SearchResult }
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Contract of search enhancer.
|
|
12
13
|
*
|
|
13
14
|
* - At best a result match should be navigable. It means the search needs to
|
|
14
15
|
* be done on a rendered document. This is because rendering can differ from the original
|
|
15
|
-
* item resource. A resource can be something
|
|
16
|
+
* item resource. A resource can be something non digestible and very specific (.pdf). The search
|
|
16
17
|
* enhancer is agnostic and can only search into documents.
|
|
17
18
|
*/
|
|
18
19
|
export const searchEnhancer =
|