@backstage/plugin-search-common 0.3.4-next.0 → 0.3.5-next.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.
- package/CHANGELOG.md +21 -0
- package/dist/index.d.ts +17 -17
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @backstage/plugin-search-common
|
|
2
2
|
|
|
3
|
+
## 0.3.5-next.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7d8acfc32e: `@beta` exports now replaced with `@public` exports
|
|
8
|
+
|
|
9
|
+
## 0.3.5-next.0
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
- @backstage/plugin-permission-common@0.6.2-next.0
|
|
15
|
+
|
|
16
|
+
## 0.3.4
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- 3a74e203a8: Support generating highlighted matched terms in search result data
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
- @backstage/plugin-permission-common@0.6.1
|
|
23
|
+
|
|
3
24
|
## 0.3.4-next.0
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { JsonObject } from '@backstage/types';
|
|
|
4
4
|
import { Readable, Transform, Writable } from 'stream';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* @
|
|
7
|
+
* @public
|
|
8
8
|
*/
|
|
9
9
|
interface SearchQuery {
|
|
10
10
|
term: string;
|
|
@@ -13,10 +13,10 @@ interface SearchQuery {
|
|
|
13
13
|
pageCursor?: string;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
* @beta
|
|
17
16
|
* Metadata for result relevant document fields with matched terms highlighted
|
|
18
17
|
* via wrapping in associated pre/post tags. The UI is expected to parse these
|
|
19
18
|
* field excerpts by replacing wrapping tags with applicable UI elements for rendering.
|
|
19
|
+
* @public
|
|
20
20
|
*/
|
|
21
21
|
interface ResultHighlight {
|
|
22
22
|
/**
|
|
@@ -36,7 +36,7 @@ interface ResultHighlight {
|
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
|
-
* @
|
|
39
|
+
* @public
|
|
40
40
|
*/
|
|
41
41
|
interface Result<TDocument extends SearchDocument> {
|
|
42
42
|
type: string;
|
|
@@ -44,7 +44,7 @@ interface Result<TDocument extends SearchDocument> {
|
|
|
44
44
|
highlight?: ResultHighlight;
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
|
-
* @
|
|
47
|
+
* @public
|
|
48
48
|
*/
|
|
49
49
|
interface ResultSet<TDocument extends SearchDocument> {
|
|
50
50
|
results: Result<TDocument>[];
|
|
@@ -52,24 +52,24 @@ interface ResultSet<TDocument extends SearchDocument> {
|
|
|
52
52
|
previousPageCursor?: string;
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
|
-
* @
|
|
55
|
+
* @public
|
|
56
56
|
*/
|
|
57
57
|
declare type SearchResult = Result<SearchDocument>;
|
|
58
58
|
/**
|
|
59
|
-
* @
|
|
59
|
+
* @public
|
|
60
60
|
*/
|
|
61
61
|
declare type SearchResultSet = ResultSet<SearchDocument>;
|
|
62
62
|
/**
|
|
63
|
-
* @
|
|
63
|
+
* @public
|
|
64
64
|
*/
|
|
65
65
|
declare type IndexableResult = Result<IndexableDocument>;
|
|
66
66
|
/**
|
|
67
|
-
* @
|
|
67
|
+
* @public
|
|
68
68
|
*/
|
|
69
69
|
declare type IndexableResultSet = ResultSet<IndexableDocument>;
|
|
70
70
|
/**
|
|
71
71
|
* Base properties that all search documents must include.
|
|
72
|
-
* @
|
|
72
|
+
* @public
|
|
73
73
|
*/
|
|
74
74
|
interface SearchDocument {
|
|
75
75
|
/**
|
|
@@ -91,7 +91,7 @@ interface SearchDocument {
|
|
|
91
91
|
* backends working directly with documents being inserted or retrieved from
|
|
92
92
|
* search indexes. When dealing with documents in the frontend, use
|
|
93
93
|
* {@link SearchDocument}.
|
|
94
|
-
* @
|
|
94
|
+
* @public
|
|
95
95
|
*/
|
|
96
96
|
declare type IndexableDocument = SearchDocument & {
|
|
97
97
|
/**
|
|
@@ -107,9 +107,9 @@ declare type IndexableDocument = SearchDocument & {
|
|
|
107
107
|
};
|
|
108
108
|
/**
|
|
109
109
|
* Information about a specific document type. Intended to be used in the
|
|
110
|
-
* {@link @backstage/search-backend-node#IndexBuilder} to collect information
|
|
110
|
+
* {@link @backstage/plugin-search-backend-node#IndexBuilder} to collect information
|
|
111
111
|
* about the types stored in the index.
|
|
112
|
-
* @
|
|
112
|
+
* @public
|
|
113
113
|
*/
|
|
114
114
|
declare type DocumentTypeInfo = {
|
|
115
115
|
/**
|
|
@@ -120,7 +120,7 @@ declare type DocumentTypeInfo = {
|
|
|
120
120
|
};
|
|
121
121
|
/**
|
|
122
122
|
* Factory class for instantiating collators.
|
|
123
|
-
* @
|
|
123
|
+
* @public
|
|
124
124
|
*/
|
|
125
125
|
interface DocumentCollatorFactory {
|
|
126
126
|
/**
|
|
@@ -140,7 +140,7 @@ interface DocumentCollatorFactory {
|
|
|
140
140
|
}
|
|
141
141
|
/**
|
|
142
142
|
* Factory class for instantiating decorators.
|
|
143
|
-
* @
|
|
143
|
+
* @public
|
|
144
144
|
*/
|
|
145
145
|
interface DocumentDecoratorFactory {
|
|
146
146
|
/**
|
|
@@ -157,12 +157,12 @@ interface DocumentDecoratorFactory {
|
|
|
157
157
|
/**
|
|
158
158
|
* A type of function responsible for translating an abstract search query into
|
|
159
159
|
* a concrete query relevant to a particular search engine.
|
|
160
|
-
* @
|
|
160
|
+
* @public
|
|
161
161
|
*/
|
|
162
162
|
declare type QueryTranslator = (query: SearchQuery) => unknown;
|
|
163
163
|
/**
|
|
164
164
|
* Options when querying a search engine.
|
|
165
|
-
* @
|
|
165
|
+
* @public
|
|
166
166
|
*/
|
|
167
167
|
declare type QueryRequestOptions = {
|
|
168
168
|
token?: string;
|
|
@@ -171,7 +171,7 @@ declare type QueryRequestOptions = {
|
|
|
171
171
|
* Interface that must be implemented by specific search engines, responsible
|
|
172
172
|
* for performing indexing and querying and translating abstract queries into
|
|
173
173
|
* concrete, search engine-specific queries.
|
|
174
|
-
* @
|
|
174
|
+
* @public
|
|
175
175
|
*/
|
|
176
176
|
interface SearchEngine {
|
|
177
177
|
/**
|
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.3.
|
|
4
|
+
"version": "0.3.5-next.1",
|
|
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.2-next.0",
|
|
43
43
|
"@backstage/types": "^1.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@backstage/cli": "^0.17.
|
|
46
|
+
"@backstage/cli": "^0.17.2-next.2"
|
|
47
47
|
},
|
|
48
48
|
"jest": {
|
|
49
49
|
"roots": [
|
|
50
50
|
".."
|
|
51
51
|
]
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "afc672d59763a835574e6c47819107d22cfd1ad7"
|
|
54
54
|
}
|