@backstage/plugin-search 1.3.6-next.0 → 1.4.0-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,34 @@
1
1
  # @backstage/plugin-search
2
2
 
3
+ ## 1.4.0-next.1
4
+
5
+ ### Minor Changes
6
+
7
+ - b78f570f44d3: The SearchPage component can now be configured via app-config.yaml with default query parameters to define how it behaves when it is first loaded or reset. Check out the following example:
8
+
9
+ ```yaml
10
+ search:
11
+ query:
12
+ pageLimit: 50
13
+ ```
14
+
15
+ Acceptable values for `pageLimit` are `10`, `25`, `50` or `100`.
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+ - @backstage/plugin-catalog-react@1.8.4-next.1
21
+ - @backstage/core-components@0.13.5-next.1
22
+ - @backstage/config@1.1.0-next.0
23
+ - @backstage/plugin-search-react@1.7.0-next.1
24
+ - @backstage/catalog-model@1.4.2-next.0
25
+ - @backstage/core-plugin-api@1.6.0-next.1
26
+ - @backstage/errors@1.2.1
27
+ - @backstage/theme@0.4.1
28
+ - @backstage/types@1.1.0
29
+ - @backstage/version-bridge@1.0.4
30
+ - @backstage/plugin-search-common@1.2.6-next.0
31
+
3
32
  ## 1.3.6-next.0
4
33
 
5
34
  ### Patch Changes
package/README.md CHANGED
@@ -8,6 +8,22 @@ Development is ongoing. You can follow the progress and contribute at the Backst
8
8
 
9
9
  Run `yarn dev` in the root directory, and then navigate to [/search](http://localhost:3000/search) to check out the plugin.
10
10
 
11
+ ### Optional Settings
12
+
13
+ Configure the search query values via `app-config.yaml` to define how it behaves by default.
14
+
15
+ ```yaml
16
+ # app-config.yaml
17
+ search:
18
+ query:
19
+ pageLimit: 50
20
+ ```
21
+
22
+ Acceptable values for `pageLimit` are `10`, `25`, `50` or `100`.
23
+
24
+ **NOTE**: Currently this configuration only reflects the initial state of the Search React components. This means that
25
+ it defines how it behaves when it is first loaded or reset.
26
+
11
27
  ### Areas of Responsibility
12
28
 
13
29
  This search plugin is primarily responsible for the following:
package/config.d.ts ADDED
@@ -0,0 +1,35 @@
1
+ /*
2
+ * Copyright 2023 The Backstage Authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ export interface Config {
18
+ /** Configuration options for the search plugin */
19
+ search?: {
20
+ /**
21
+ * An object representing the default search query configuration.
22
+ * By configuring and modifying the values of this object,
23
+ * you can customize the default values of the search queries
24
+ * and define how it behaves by default.
25
+ */
26
+ query?: {
27
+ /**
28
+ * A number indicating the maximum number of results to be returned
29
+ * per page during pagination.
30
+ * @visibility frontend
31
+ */
32
+ pageLimit?: 10 | 25 | 50 | 100;
33
+ };
34
+ };
35
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage/plugin-search",
3
3
  "description": "The Backstage plugin that provides your backstage app with search",
4
- "version": "1.3.6-next.0",
4
+ "version": "1.4.0-next.1",
5
5
  "main": "dist/index.esm.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -32,14 +32,14 @@
32
32
  "clean": "backstage-cli package clean"
33
33
  },
34
34
  "dependencies": {
35
- "@backstage/catalog-model": "^1.4.1",
36
- "@backstage/config": "^1.0.8",
37
- "@backstage/core-components": "^0.13.5-next.0",
38
- "@backstage/core-plugin-api": "^1.6.0-next.0",
35
+ "@backstage/catalog-model": "^1.4.2-next.0",
36
+ "@backstage/config": "^1.1.0-next.0",
37
+ "@backstage/core-components": "^0.13.5-next.1",
38
+ "@backstage/core-plugin-api": "^1.6.0-next.1",
39
39
  "@backstage/errors": "^1.2.1",
40
- "@backstage/plugin-catalog-react": "^1.8.3-next.0",
41
- "@backstage/plugin-search-common": "^1.2.5",
42
- "@backstage/plugin-search-react": "^1.6.5-next.0",
40
+ "@backstage/plugin-catalog-react": "^1.8.4-next.1",
41
+ "@backstage/plugin-search-common": "^1.2.6-next.0",
42
+ "@backstage/plugin-search-react": "^1.7.0-next.1",
43
43
  "@backstage/theme": "^0.4.1",
44
44
  "@backstage/types": "^1.1.0",
45
45
  "@backstage/version-bridge": "^1.0.4",
@@ -56,10 +56,10 @@
56
56
  "react-router-dom": "6.0.0-beta.0 || ^6.3.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@backstage/cli": "^0.22.12-next.0",
60
- "@backstage/core-app-api": "^1.10.0-next.0",
61
- "@backstage/dev-utils": "^1.0.20-next.0",
62
- "@backstage/test-utils": "^1.4.3-next.0",
59
+ "@backstage/cli": "^0.22.13-next.1",
60
+ "@backstage/core-app-api": "^1.10.0-next.1",
61
+ "@backstage/dev-utils": "^1.0.21-next.1",
62
+ "@backstage/test-utils": "^1.4.3-next.1",
63
63
  "@testing-library/dom": "^8.0.0",
64
64
  "@testing-library/jest-dom": "^5.10.1",
65
65
  "@testing-library/react": "^12.1.3",
@@ -70,7 +70,9 @@
70
70
  "msw": "^1.0.0"
71
71
  },
72
72
  "files": [
73
- "dist"
73
+ "dist",
74
+ "config.d.ts"
74
75
  ],
76
+ "configSchema": "config.d.ts",
75
77
  "module": "./dist/index.esm.js"
76
78
  }