Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@backstage/plugin-search-react

Package Overview
Dependencies
Maintainers
4
Versions
972
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@backstage/plugin-search-react - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1-next.0

7

CHANGELOG.md
# @backstage/plugin-search-react
## 0.1.1-next.0
### Patch Changes
- 11a46863de: Export `useSearchContextCheck` hook to check if the search context is available
- a307a14be0: Removed dependency on `@backstage/core-app-api`.
## 0.1.0

@@ -4,0 +11,0 @@

8

dist/index.d.ts

@@ -48,2 +48,8 @@ import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';

/**
* @public
*
* React hook which checks for an existing search context
*/
declare const useSearchContextCheck: () => boolean;
/**
* Props for {@link SearchContextProvider}

@@ -93,2 +99,2 @@ *

export { SearchApi, SearchApiProviderForStorybook, SearchApiProviderForStorybookProps, SearchContextProvider, SearchContextProviderForStorybook, SearchContextProviderForStorybookProps, SearchContextProviderProps, SearchContextState, SearchContextValue, searchApiRef, useSearch };
export { SearchApi, SearchApiProviderForStorybook, SearchApiProviderForStorybookProps, SearchContextProvider, SearchContextProviderForStorybook, SearchContextProviderForStorybookProps, SearchContextProviderProps, SearchContextState, SearchContextValue, searchApiRef, useSearch, useSearchContextCheck };

@@ -25,2 +25,6 @@ import { createApiRef, useApi, AnalyticsContext } from '@backstage/core-plugin-api';

};
const useSearchContextCheck = () => {
const context = useContext(SearchContext);
return context !== void 0;
};
const searchInitialState = {

@@ -101,3 +105,3 @@ term: "",

export { SearchApiProviderForStorybook, SearchContextProvider, SearchContextProviderForStorybook, searchApiRef, useSearch };
export { SearchApiProviderForStorybook, SearchContextProvider, SearchContextProviderForStorybook, searchApiRef, useSearch, useSearchContextCheck };
//# sourceMappingURL=index.esm.js.map

8

package.json
{
"name": "@backstage/plugin-search-react",
"version": "0.1.0",
"version": "0.1.1-next.0",
"main": "dist/index.esm.js",

@@ -34,3 +34,2 @@ "types": "dist/index.d.ts",

"dependencies": {
"@backstage/core-app-api": "^1.0.1",
"@backstage/core-plugin-api": "^1.0.1",

@@ -47,3 +46,4 @@ "@backstage/plugin-search-common": "^0.3.3",

"devDependencies": {
"@backstage/test-utils": "^1.0.1",
"@backstage/core-app-api": "^1.0.1",
"@backstage/test-utils": "^1.0.2-next.0",
"@testing-library/jest-dom": "^5.10.1",

@@ -56,3 +56,3 @@ "@testing-library/react": "^12.1.3",

],
"gitHead": "e0e44c433319711c2fb8b175db411a621f7aaec2"
"gitHead": "88ee375f5ee44b7a7917297785ddf88691fe3381"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc