@backstage/plugin-search-react 0.2.0-next.2 → 0.2.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/package.json +6 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # @backstage/plugin-search-react
2
2
 
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - bdbe620797: **BREAKING**: `SearchContextProviderForStorybook` and `SearchApiProviderForStorybook` has been deleted. New mock implementation of the `SearchApi` introduced. If you need to mock the api we recommend you to do the following:
8
+
9
+ ```tsx
10
+ import {
11
+ searchApiRef,
12
+ MockSearchApi,
13
+ SearchContextProvider,
14
+ } from '@backstage/plugin-search-react';
15
+ import { TestApiProvider } from '@backstage/test-utils';
16
+
17
+ <TestApiProvider apis={[[searchApiRef, new MockSearchApi()]]}>
18
+ <SearchContextProvider>
19
+ <Component />
20
+ </SearchContextProvider>
21
+ </TestApiProvider>;
22
+ ```
23
+
24
+ ### Patch Changes
25
+
26
+ - 11a46863de: Export `useSearchContextCheck` hook to check if the search context is available
27
+ - a307a14be0: Removed dependency on `@backstage/core-app-api`.
28
+ - 3a74e203a8: Updated search result components to support rendering content with highlighted matched terms
29
+ - Updated dependencies
30
+ - @backstage/core-plugin-api@1.0.2
31
+ - @backstage/plugin-search-common@0.3.4
32
+
3
33
  ## 0.2.0-next.2
4
34
 
5
35
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-search-react",
3
- "version": "0.2.0-next.2",
3
+ "version": "0.2.0",
4
4
  "main": "dist/index.esm.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "license": "Apache-2.0",
@@ -31,8 +31,8 @@
31
31
  "start": "backstage-cli package start"
32
32
  },
33
33
  "dependencies": {
34
- "@backstage/core-plugin-api": "^1.0.2-next.1",
35
- "@backstage/plugin-search-common": "^0.3.4-next.0",
34
+ "@backstage/core-plugin-api": "^1.0.2",
35
+ "@backstage/plugin-search-common": "^0.3.4",
36
36
  "@backstage/types": "^1.0.0",
37
37
  "@backstage/version-bridge": "^1.0.1",
38
38
  "@material-ui/core": "^4.12.2",
@@ -43,8 +43,8 @@
43
43
  "react": "^16.13.1 || ^17.0.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@backstage/core-app-api": "^1.0.2-next.1",
47
- "@backstage/test-utils": "^1.1.0-next.2",
46
+ "@backstage/core-app-api": "^1.0.2",
47
+ "@backstage/test-utils": "^1.1.0",
48
48
  "@testing-library/jest-dom": "^5.10.1",
49
49
  "@testing-library/react": "^12.1.3",
50
50
  "@testing-library/react-hooks": "^8.0.0"
@@ -52,5 +52,5 @@
52
52
  "files": [
53
53
  "dist"
54
54
  ],
55
- "gitHead": "cfbf5762d7d91eee18999306b21d63840400ee29"
55
+ "gitHead": "96323f280ba32ee526c5b151cda42260aee927c9"
56
56
  }