Merge branch 'master' into techdocs/remove-warnings

Signed-off-by: Morgan Bentell <morgan.bentell@gmail.com>
This commit is contained in:
Morgan Bentell
2023-03-16 16:18:32 +01:00
committed by GitHub
1099 changed files with 36089 additions and 25992 deletions
+49
View File
@@ -1,5 +1,54 @@
# @backstage/plugin-search
## 1.1.1
### Patch Changes
- 65454876fb2: Minor API report tweaks
- 52b0022dab7: Updated dependency `msw` to `^1.0.0`.
- Updated dependencies
- @backstage/core-components@0.12.5
- @backstage/plugin-catalog-react@1.4.0
- @backstage/plugin-search-react@1.5.1
- @backstage/errors@1.1.5
- @backstage/core-plugin-api@1.5.0
- @backstage/catalog-model@1.2.1
- @backstage/config@1.0.7
- @backstage/theme@0.2.18
- @backstage/types@1.0.2
- @backstage/version-bridge@1.0.3
- @backstage/plugin-search-common@1.2.2
## 1.1.1-next.2
### Patch Changes
- 65454876fb2: Minor API report tweaks
- Updated dependencies
- @backstage/core-components@0.12.5-next.2
- @backstage/plugin-catalog-react@1.4.0-next.2
- @backstage/plugin-search-react@1.5.1-next.2
- @backstage/core-plugin-api@1.5.0-next.2
- @backstage/config@1.0.7-next.0
## 1.1.1-next.1
### Patch Changes
- 52b0022dab7: Updated dependency `msw` to `^1.0.0`.
- Updated dependencies
- @backstage/core-components@0.12.5-next.1
- @backstage/errors@1.1.5-next.0
- @backstage/core-plugin-api@1.4.1-next.1
- @backstage/config@1.0.7-next.0
- @backstage/theme@0.2.18-next.0
- @backstage/plugin-catalog-react@1.4.0-next.1
- @backstage/catalog-model@1.2.1-next.1
- @backstage/types@1.0.2
- @backstage/version-bridge@1.0.3
- @backstage/plugin-search-common@1.2.2-next.0
- @backstage/plugin-search-react@1.5.1-next.1
## 1.1.1-next.0
### Patch Changes
+7 -13
View File
@@ -12,9 +12,9 @@ import { RouteRef } from '@backstage/core-plugin-api';
import { SearchBarBaseProps } from '@backstage/plugin-search-react';
// @public (undocumented)
export const HomePageSearchBar: ({
...props
}: Partial<Omit<SearchBarBaseProps, 'onChange' | 'onSubmit'>>) => JSX.Element;
export const HomePageSearchBar: (
props: Partial<Omit<SearchBarBaseProps, 'onChange' | 'onSubmit'>>,
) => JSX.Element;
// @public
export type HomePageSearchBarProps = Partial<
@@ -25,12 +25,7 @@ export type HomePageSearchBarProps = Partial<
export const Router: () => JSX.Element;
// @public (undocumented)
export const SearchModal: ({
open,
hidden,
toggleModal,
children,
}: SearchModalProps) => JSX.Element;
export const SearchModal: (props: SearchModalProps) => JSX.Element;
// @public (undocumented)
export interface SearchModalChildrenProps {
@@ -46,10 +41,9 @@ export interface SearchModalProps {
}
// @public
export const SearchModalProvider: ({
children,
showInitially,
}: SearchModalProviderProps) => JSX.Element;
export const SearchModalProvider: (
props: SearchModalProviderProps,
) => JSX.Element;
// @public
export type SearchModalProviderProps = {
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/plugin-search",
"description": "The Backstage plugin that provides your backstage app with search",
"version": "1.1.1-next.0",
"version": "1.1.1",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
@@ -42,7 +42,7 @@ export type HomePageSearchBarProps = Partial<
/**
* The search bar created specifically for the composable home page.
*/
export const HomePageSearchBar = ({ ...props }: HomePageSearchBarProps) => {
export const HomePageSearchBar = (props: HomePageSearchBarProps) => {
const classes = useStyles(props);
const [query, setQuery] = useState('');
const handleSearch = useNavigateToQuery();
@@ -168,12 +168,9 @@ export const Modal = ({ toggleModal }: SearchModalProps) => {
/**
* @public
*/
export const SearchModal = ({
open = true,
hidden,
toggleModal,
children,
}: SearchModalProps) => {
export const SearchModal = (props: SearchModalProps) => {
const { open = true, hidden, toggleModal, children } = props;
const classes = useStyles();
return (
@@ -84,15 +84,12 @@ export type SearchModalProviderProps = {
*
* @public
*/
export const SearchModalProvider = ({
children,
showInitially,
}: SearchModalProviderProps) => {
const value = useSearchModal(showInitially);
export const SearchModalProvider = (props: SearchModalProviderProps) => {
const value = useSearchModal(props.showInitially);
const versionedValue = createVersionedValueMap({ 1: value });
return (
<SearchModalContext.Provider value={versionedValue}>
{children}
{props.children}
</SearchModalContext.Provider>
);
};