@backstage/plugin-search-common 0.3.5-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 CHANGED
@@ -1,5 +1,11 @@
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
+
3
9
  ## 0.3.5-next.0
4
10
 
5
11
  ### 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
- * @beta
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
- * @beta
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
- * @beta
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
- * @beta
55
+ * @public
56
56
  */
57
57
  declare type SearchResult = Result<SearchDocument>;
58
58
  /**
59
- * @beta
59
+ * @public
60
60
  */
61
61
  declare type SearchResultSet = ResultSet<SearchDocument>;
62
62
  /**
63
- * @beta
63
+ * @public
64
64
  */
65
65
  declare type IndexableResult = Result<IndexableDocument>;
66
66
  /**
67
- * @beta
67
+ * @public
68
68
  */
69
69
  declare type IndexableResultSet = ResultSet<IndexableDocument>;
70
70
  /**
71
71
  * Base properties that all search documents must include.
72
- * @beta
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
- * @beta
94
+ * @public
95
95
  */
96
96
  declare type IndexableDocument = SearchDocument & {
97
97
  /**
@@ -109,7 +109,7 @@ declare type IndexableDocument = SearchDocument & {
109
109
  * Information about a specific document type. Intended to be used in the
110
110
  * {@link @backstage/plugin-search-backend-node#IndexBuilder} to collect information
111
111
  * about the types stored in the index.
112
- * @beta
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
- * @beta
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
- * @beta
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
- * @beta
160
+ * @public
161
161
  */
162
162
  declare type QueryTranslator = (query: SearchQuery) => unknown;
163
163
  /**
164
164
  * Options when querying a search engine.
165
- * @beta
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
- * @beta
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.5-next.0",
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,
@@ -43,12 +43,12 @@
43
43
  "@backstage/types": "^1.0.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@backstage/cli": "^0.17.2-next.1"
46
+ "@backstage/cli": "^0.17.2-next.2"
47
47
  },
48
48
  "jest": {
49
49
  "roots": [
50
50
  ".."
51
51
  ]
52
52
  },
53
- "gitHead": "e15c24ddb5d14034629ced8a5a5d8f12b8f1a7dd"
53
+ "gitHead": "afc672d59763a835574e6c47819107d22cfd1ad7"
54
54
  }