@backstage/plugin-search-common 0.3.5-next.1 → 1.0.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/CHANGELOG.md +27 -0
- package/dist/index.d.ts +15 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @backstage/plugin-search-common
|
|
2
2
|
|
|
3
|
+
## 1.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 7bd7d336b2: This package has been promoted to 1.0. Read more about what it means in [New release: Backstage Search 1.0 blog](https://backstage.io/blog/2022/07/19/releasing-backstage-search-1.0)
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @backstage/plugin-permission-common@0.6.3
|
|
13
|
+
|
|
14
|
+
## 0.3.6-next.0
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
- @backstage/plugin-permission-common@0.6.3-next.0
|
|
20
|
+
|
|
21
|
+
## 0.3.5
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- 7d8acfc32e: `@beta` exports now replaced with `@public` exports
|
|
26
|
+
- 484afdf1dc: Added an optional `rank` attribute to the `Result` type. This represents the result rank (starting at 1) for a given result in a result set for a given search.
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
- @backstage/plugin-permission-common@0.6.2
|
|
29
|
+
|
|
3
30
|
## 0.3.5-next.1
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -39,9 +39,24 @@ interface ResultHighlight {
|
|
|
39
39
|
* @public
|
|
40
40
|
*/
|
|
41
41
|
interface Result<TDocument extends SearchDocument> {
|
|
42
|
+
/**
|
|
43
|
+
* The "type" of the given document. See: {@link DocumentCollatorFactory."type"}
|
|
44
|
+
*/
|
|
42
45
|
type: string;
|
|
46
|
+
/**
|
|
47
|
+
* The raw value of the document, as indexed.
|
|
48
|
+
*/
|
|
43
49
|
document: TDocument;
|
|
50
|
+
/**
|
|
51
|
+
* Optional result highlight. Useful for improving the search result
|
|
52
|
+
* display/experience.
|
|
53
|
+
*/
|
|
44
54
|
highlight?: ResultHighlight;
|
|
55
|
+
/**
|
|
56
|
+
* Optional result rank, where 1 is the first/top result returned. Useful for
|
|
57
|
+
* understanding search effectiveness in analytics.
|
|
58
|
+
*/
|
|
59
|
+
rank?: number;
|
|
45
60
|
}
|
|
46
61
|
/**
|
|
47
62
|
* @public
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-search-common",
|
|
3
3
|
"description": "Common functionalities for Search, to be shared between various search-enabled plugins",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "1.0.0",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"private": false,
|
|
@@ -39,16 +39,16 @@
|
|
|
39
39
|
"url": "https://github.com/backstage/backstage/issues"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@backstage/plugin-permission-common": "^0.6.
|
|
42
|
+
"@backstage/plugin-permission-common": "^0.6.3",
|
|
43
43
|
"@backstage/types": "^1.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@backstage/cli": "^0.
|
|
46
|
+
"@backstage/cli": "^0.18.0"
|
|
47
47
|
},
|
|
48
48
|
"jest": {
|
|
49
49
|
"roots": [
|
|
50
50
|
".."
|
|
51
51
|
]
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "999878d8f1ae30f6a15925816af2016cb9d717a1"
|
|
54
54
|
}
|