diff --git a/.changeset/spotty-rats-work.md b/.changeset/spotty-rats-work.md new file mode 100644 index 0000000000..a72f6bd486 --- /dev/null +++ b/.changeset/spotty-rats-work.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-search-react': patch +--- + +Removed all usages of `SearchContextProviderForStorybook` as it has been deprecated. diff --git a/.changeset/tall-parents-deny.md b/.changeset/tall-parents-deny.md new file mode 100644 index 0000000000..db56810386 --- /dev/null +++ b/.changeset/tall-parents-deny.md @@ -0,0 +1,21 @@ +--- +'@backstage/plugin-search-react': minor +--- + +`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: + +```tsx +import { + searchApiRef, + MockSearchApi, + SearchContextProvider, +} from '@backstage/plugin-search-react'; +import { ApiProvider } from '@backstage/core-app-api'; +import { TestApiRegistry } from '@backstage/test-utils'; + + + + + +; +```