@backstage/plugin-search 0.9.1-next.3 → 1.0.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.
- package/CHANGELOG.md +30 -0
- package/dist/esm/index-1ada8925.esm.js +487 -0
- package/dist/esm/index-1ada8925.esm.js.map +1 -0
- package/dist/esm/{index-50da964c.esm.js → index-bc759734.esm.js} +2 -14
- package/dist/esm/{index-50da964c.esm.js.map → index-bc759734.esm.js.map} +1 -1
- package/dist/esm/{index-30f1f9c5.esm.js → index-e4203a59.esm.js} +3 -14
- package/dist/esm/{index-30f1f9c5.esm.js.map → index-e4203a59.esm.js.map} +1 -1
- package/dist/esm/index-f70915ff.esm.js +18 -0
- package/dist/esm/index-f70915ff.esm.js.map +1 -0
- package/dist/index.d.ts +4 -179
- package/dist/index.esm.js +2 -14
- package/dist/index.esm.js.map +1 -1
- package/package.json +15 -15
- package/dist/esm/index-2e41707a.esm.js +0 -30
- package/dist/esm/index-2e41707a.esm.js.map +0 -1
- package/dist/esm/index-5187be91.esm.js +0 -1024
- package/dist/esm/index-5187be91.esm.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-bc759734.esm.js","sources":["../../src/components/util.ts","../../src/components/HomePageComponent/HomePageSearchBar.tsx"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport qs from 'qs';\nimport { useCallback } from 'react';\nimport { useNavigate } from 'react-router-dom';\nimport { rootRouteRef } from '../plugin';\n\nimport { useRouteRef } from '@backstage/core-plugin-api';\n\nexport const useNavigateToQuery = () => {\n const searchRoute = useRouteRef(rootRouteRef);\n const navigate = useNavigate();\n return useCallback(\n ({ query }: { query: string }): void => {\n const queryString = qs.stringify({ query }, { addQueryPrefix: true });\n\n navigate(`${searchRoute()}${queryString}`);\n },\n [navigate, searchRoute],\n );\n};\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { useCallback, useState } from 'react';\nimport { makeStyles } from '@material-ui/core/styles';\nimport {\n SearchBarBase,\n SearchBarBaseProps,\n} from '@backstage/plugin-search-react';\nimport { useNavigateToQuery } from '../util';\n\nconst useStyles = makeStyles({\n root: {\n border: '1px solid #555',\n borderRadius: '6px',\n fontSize: '1.5em',\n },\n});\n\n/**\n * Props for {@link HomePageSearchBar}.\n *\n * @public\n */\nexport type HomePageSearchBarProps = Partial<\n Omit<SearchBarBaseProps, 'onChange' | 'onSubmit'>\n>;\n\n/**\n * The search bar created specifically for the composable home page.\n */\nexport const HomePageSearchBar = ({ ...props }: HomePageSearchBarProps) => {\n const classes = useStyles(props);\n const [query, setQuery] = useState('');\n const handleSearch = useNavigateToQuery();\n\n const handleSubmit = () => {\n handleSearch({ query });\n };\n\n const handleChange = useCallback(\n value => {\n setQuery(value);\n },\n [setQuery],\n );\n\n return (\n <SearchBarBase\n classes={{ root: classes.root }}\n value={query}\n onSubmit={handleSubmit}\n onChange={handleChange}\n {...props}\n />\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAKO,MAAM,kBAAkB,GAAG,MAAM;AACxC,EAAE,MAAM,WAAW,GAAG,WAAW,CAAC,YAAY,CAAC,CAAC;AAChD,EAAE,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;AACjC,EAAE,OAAO,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK;AACpC,IAAI,MAAM,WAAW,GAAG,EAAE,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,CAAC;AAC1E,IAAI,QAAQ,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;AAC/C,GAAG,EAAE,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC;AAC9B,CAAC;;ACND,MAAM,SAAS,GAAG,UAAU,CAAC;AAC7B,EAAE,IAAI,EAAE;AACR,IAAI,MAAM,EAAE,gBAAgB;AAC5B,IAAI,YAAY,EAAE,KAAK;AACvB,IAAI,QAAQ,EAAE,OAAO;AACrB,GAAG;AACH,CAAC,CAAC,CAAC;AACS,MAAC,iBAAiB,GAAG,CAAC,EAAE,GAAG,KAAK,EAAE,KAAK;AACnD,EAAE,MAAM,OAAO,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC;AACnC,EAAE,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;AACzC,EAAE,MAAM,YAAY,GAAG,kBAAkB,EAAE,CAAC;AAC5C,EAAE,MAAM,YAAY,GAAG,MAAM;AAC7B,IAAI,YAAY,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AAC5B,GAAG,CAAC;AACJ,EAAE,MAAM,YAAY,GAAG,WAAW,CAAC,CAAC,KAAK,KAAK;AAC9C,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC;AACpB,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;AACjB,EAAE,uBAAuB,KAAK,CAAC,aAAa,CAAC,aAAa,EAAE;AAC5D,IAAI,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE;AACnC,IAAI,KAAK,EAAE,KAAK;AAChB,IAAI,QAAQ,EAAE,YAAY;AAC1B,IAAI,QAAQ,EAAE,YAAY;AAC1B,IAAI,GAAG,KAAK;AACZ,GAAG,CAAC,CAAC;AACL;;;;"}
|
|
@@ -1,28 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import SearchIcon from '@material-ui/icons/Search';
|
|
3
3
|
import { SidebarItem } from '@backstage/core-components';
|
|
4
|
-
import { a as SearchModalProvider, u as useSearchModal, b as SearchModal } from './index-
|
|
5
|
-
import '@material-ui/icons/FilterList';
|
|
4
|
+
import { a as SearchModalProvider, u as useSearchModal, b as SearchModal } from './index-1ada8925.esm.js';
|
|
6
5
|
import '@material-ui/core';
|
|
7
|
-
import '@backstage/plugin-search-react';
|
|
8
6
|
import '@material-ui/icons/Launch';
|
|
9
7
|
import '@material-ui/core/styles';
|
|
8
|
+
import '@backstage/plugin-search-react';
|
|
10
9
|
import '@backstage/core-plugin-api';
|
|
11
10
|
import '@backstage/errors';
|
|
12
11
|
import 'qs';
|
|
13
12
|
import '@backstage/version-bridge';
|
|
14
13
|
import 'react-use/lib/usePrevious';
|
|
15
14
|
import 'react-router';
|
|
16
|
-
import 'react-use/lib/useDebounce';
|
|
17
|
-
import '@material-ui/core/InputBase';
|
|
18
|
-
import '@material-ui/core/IconButton';
|
|
19
|
-
import '@material-ui/icons/Clear';
|
|
20
|
-
import '@material-ui/lab';
|
|
21
|
-
import 'react-use/lib/useAsync';
|
|
22
|
-
import '@backstage/plugin-catalog-react';
|
|
23
|
-
import '@backstage/catalog-model';
|
|
24
|
-
import '@material-ui/icons/ArrowBackIos';
|
|
25
|
-
import '@material-ui/icons/ArrowForwardIos';
|
|
26
15
|
import 'react-use/lib/useEffectOnce';
|
|
27
16
|
import '@material-ui/icons/ExpandMore';
|
|
28
17
|
import '@material-ui/icons/FontDownload';
|
|
@@ -49,4 +38,4 @@ const SidebarSearchModal = (props) => {
|
|
|
49
38
|
};
|
|
50
39
|
|
|
51
40
|
export { SidebarSearchModal };
|
|
52
|
-
//# sourceMappingURL=index-
|
|
41
|
+
//# sourceMappingURL=index-e4203a59.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-e4203a59.esm.js","sources":["../../src/components/SidebarSearchModal/SidebarSearchModal.tsx"],"sourcesContent":["/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport React from 'react';\nimport SearchIcon from '@material-ui/icons/Search';\nimport { SidebarItem } from '@backstage/core-components';\nimport { IconComponent } from '@backstage/core-plugin-api';\nimport {\n SearchModal,\n SearchModalChildrenProps,\n SearchModalProvider,\n useSearchModal,\n} from '../SearchModal';\n\n/**\n * Props for {@link SidebarSearchModal}.\n *\n * @public\n */\nexport type SidebarSearchModalProps = {\n icon?: IconComponent;\n children?: (props: SearchModalChildrenProps) => JSX.Element;\n};\n\nconst SidebarSearchModalContent = (props: SidebarSearchModalProps) => {\n const { state, toggleModal } = useSearchModal();\n const Icon = props.icon ? props.icon : SearchIcon;\n\n return (\n <>\n <SidebarItem\n className=\"search-icon\"\n icon={Icon}\n text=\"Search\"\n onClick={toggleModal}\n />\n <SearchModal\n {...state}\n toggleModal={toggleModal}\n children={props.children}\n />\n </>\n );\n};\n\nexport const SidebarSearchModal = (props: SidebarSearchModalProps) => {\n return (\n <SearchModalProvider>\n <SidebarSearchModalContent {...props} />\n </SearchModalProvider>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAQA,MAAM,yBAAyB,GAAG,CAAC,KAAK,KAAK;AAC7C,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,cAAc,EAAE,CAAC;AAClD,EAAE,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;AACpD,EAAE,uBAAuB,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,kBAAkB,KAAK,CAAC,aAAa,CAAC,WAAW,EAAE;AACpH,IAAI,SAAS,EAAE,aAAa;AAC5B,IAAI,IAAI,EAAE,IAAI;AACd,IAAI,IAAI,EAAE,QAAQ;AAClB,IAAI,OAAO,EAAE,WAAW;AACxB,GAAG,CAAC,kBAAkB,KAAK,CAAC,aAAa,CAAC,WAAW,EAAE;AACvD,IAAI,GAAG,KAAK;AACZ,IAAI,WAAW;AACf,IAAI,QAAQ,EAAE,KAAK,CAAC,QAAQ;AAC5B,GAAG,CAAC,CAAC,CAAC;AACN,CAAC,CAAC;AACU,MAAC,kBAAkB,GAAG,CAAC,KAAK,KAAK;AAC7C,EAAE,uBAAuB,KAAK,CAAC,aAAa,CAAC,mBAAmB,EAAE,IAAI,kBAAkB,KAAK,CAAC,aAAa,CAAC,yBAAyB,EAAE;AACvI,IAAI,GAAG,KAAK;AACZ,GAAG,CAAC,CAAC,CAAC;AACN;;;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { S as SearchPage } from './index-1ada8925.esm.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import '@material-ui/core';
|
|
4
|
+
import '@material-ui/icons/Launch';
|
|
5
|
+
import '@material-ui/core/styles';
|
|
6
|
+
import '@backstage/plugin-search-react';
|
|
7
|
+
import '@backstage/core-plugin-api';
|
|
8
|
+
import '@backstage/core-components';
|
|
9
|
+
import '@backstage/errors';
|
|
10
|
+
import 'qs';
|
|
11
|
+
import '@backstage/version-bridge';
|
|
12
|
+
import 'react-use/lib/usePrevious';
|
|
13
|
+
import 'react-router';
|
|
14
|
+
import 'react-use/lib/useEffectOnce';
|
|
15
|
+
import '@material-ui/icons/ExpandMore';
|
|
16
|
+
import '@material-ui/icons/FontDownload';
|
|
17
|
+
import 'react-router-dom';
|
|
18
|
+
//# sourceMappingURL=index-f70915ff.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-f70915ff.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,175 +1,16 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as _backstage_plugin_search_react from '@backstage/plugin-search-react';
|
|
3
|
-
import { SearchBarBaseProps
|
|
4
|
-
import {
|
|
5
|
-
import { ReactElement, ReactNode } from 'react';
|
|
3
|
+
import { SearchBarBaseProps } from '@backstage/plugin-search-react';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
6
5
|
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
7
6
|
import { IconComponent } from '@backstage/core-plugin-api';
|
|
8
7
|
|
|
9
|
-
/**
|
|
10
|
-
* Props for {@link FiltersButton}.
|
|
11
|
-
*
|
|
12
|
-
* @public
|
|
13
|
-
* @deprecated This type and corresponding component will be removed in a
|
|
14
|
-
* future release.
|
|
15
|
-
*/
|
|
16
|
-
declare type FiltersButtonProps = {
|
|
17
|
-
numberOfSelectedFilters: number;
|
|
18
|
-
handleToggleFilters: () => void;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* @public
|
|
22
|
-
* @deprecated See `SearchFilter` in `@backstage/plugin-search-react` instead.
|
|
23
|
-
*/
|
|
24
|
-
declare const FiltersButton: ({ numberOfSelectedFilters, handleToggleFilters, }: FiltersButtonProps) => JSX.Element;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @public
|
|
28
|
-
* @deprecated This type and corresponding component will be removed in a
|
|
29
|
-
* future release.
|
|
30
|
-
*/
|
|
31
|
-
declare type FiltersState = {
|
|
32
|
-
selected: string;
|
|
33
|
-
checked: Array<string>;
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* @public
|
|
37
|
-
* @deprecated This type and corresponding component will be removed in a
|
|
38
|
-
* future release.
|
|
39
|
-
*/
|
|
40
|
-
declare type FilterOptions = {
|
|
41
|
-
kind: Array<string>;
|
|
42
|
-
lifecycle: Array<string>;
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* Props for {@link Filters}.
|
|
46
|
-
*
|
|
47
|
-
* @public
|
|
48
|
-
* @deprecated This type and corresponding component will be removed in a
|
|
49
|
-
* future release.
|
|
50
|
-
*/
|
|
51
|
-
declare type FiltersProps = {
|
|
52
|
-
filters: FiltersState;
|
|
53
|
-
filterOptions: FilterOptions;
|
|
54
|
-
resetFilters: () => void;
|
|
55
|
-
updateSelected: (filter: string) => void;
|
|
56
|
-
updateChecked: (filter: string) => void;
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* @public
|
|
60
|
-
* @deprecated This component will be removed in a future release. Use
|
|
61
|
-
* `SearchFilter` from `@backstage/plugin-search-react` instead.
|
|
62
|
-
*/
|
|
63
|
-
declare const Filters: ({ filters, filterOptions, resetFilters, updateSelected, updateChecked, }: FiltersProps) => JSX.Element;
|
|
64
|
-
|
|
65
8
|
/**
|
|
66
9
|
* Props for {@link HomePageSearchBar}.
|
|
67
10
|
*
|
|
68
11
|
* @public
|
|
69
12
|
*/
|
|
70
|
-
declare type HomePageSearchBarProps = Partial<Omit<SearchBarBaseProps
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Props for {@link SearchBarBase}.
|
|
74
|
-
*
|
|
75
|
-
* @public
|
|
76
|
-
* @deprecated Import from `@backstage/plugin-search-react` instead.
|
|
77
|
-
*/
|
|
78
|
-
declare type SearchBarBaseProps = Omit<InputBaseProps, 'onChange'> & {
|
|
79
|
-
debounceTime?: number;
|
|
80
|
-
clearButton?: boolean;
|
|
81
|
-
onClear?: () => void;
|
|
82
|
-
onSubmit?: () => void;
|
|
83
|
-
onChange: (value: string) => void;
|
|
84
|
-
};
|
|
85
|
-
/**
|
|
86
|
-
* All search boxes exported by the search plugin are based on the <SearchBarBase />,
|
|
87
|
-
* and this one is based on the <InputBase /> component from Material UI.
|
|
88
|
-
* Recommended if you don't use Search Provider or Search Context.
|
|
89
|
-
*
|
|
90
|
-
* @public
|
|
91
|
-
* @deprecated Import from `@backstage/plugin-search-react` instead.
|
|
92
|
-
*/
|
|
93
|
-
declare const SearchBarBase: ({ onChange, onKeyDown, onSubmit, debounceTime, clearButton, fullWidth, value: defaultValue, inputProps: defaultInputProps, endAdornment: defaultEndAdornment, ...props }: _backstage_plugin_search_react.SearchBarBaseProps) => JSX.Element;
|
|
94
|
-
/**
|
|
95
|
-
* Props for {@link SearchBar}.
|
|
96
|
-
*
|
|
97
|
-
* @public
|
|
98
|
-
* @deprecated Import from `@backstage/plugin-search-react` instead.
|
|
99
|
-
*/
|
|
100
|
-
declare type SearchBarProps = Partial<SearchBarBaseProps>;
|
|
101
|
-
/**
|
|
102
|
-
* Recommended search bar when you use the Search Provider or Search Context.
|
|
103
|
-
*
|
|
104
|
-
* @public
|
|
105
|
-
* @deprecated Import from `@backstage/plugin-search-react` instead.
|
|
106
|
-
*/
|
|
107
|
-
declare const SearchBar: ({ onChange, ...props }: SearchBarProps) => JSX.Element;
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* @public
|
|
111
|
-
* @deprecated Import from `@backstage/plugin-search-react` instead.
|
|
112
|
-
*/
|
|
113
|
-
declare type SearchFilterComponentProps = {
|
|
114
|
-
className?: string;
|
|
115
|
-
name: string;
|
|
116
|
-
label?: string;
|
|
117
|
-
/**
|
|
118
|
-
* Either an array of values directly, or an async function to return a list
|
|
119
|
-
* of values to be used in the filter. In the autocomplete filter, the last
|
|
120
|
-
* input value is provided as an input to allow values to be filtered. This
|
|
121
|
-
* function is debounced and values cached.
|
|
122
|
-
*/
|
|
123
|
-
values?: string[] | ((partial: string) => Promise<string[]>);
|
|
124
|
-
defaultValue?: string[] | string | null;
|
|
125
|
-
/**
|
|
126
|
-
* Debounce time in milliseconds, used when values is an async callback.
|
|
127
|
-
* Defaults to 250ms.
|
|
128
|
-
*/
|
|
129
|
-
valuesDebounceMs?: number;
|
|
130
|
-
};
|
|
131
|
-
/**
|
|
132
|
-
* @public
|
|
133
|
-
* @deprecated Import from `@backstage/plugin-search-react` instead.
|
|
134
|
-
*/
|
|
135
|
-
declare type SearchFilterWrapperProps = SearchFilterComponentProps & {
|
|
136
|
-
component: (props: SearchFilterComponentProps) => ReactElement;
|
|
137
|
-
debug?: boolean;
|
|
138
|
-
};
|
|
139
|
-
/**
|
|
140
|
-
* @public
|
|
141
|
-
* @deprecated Import from `@backstage/plugin-search-react` instead.
|
|
142
|
-
*/
|
|
143
|
-
declare const SearchFilter: {
|
|
144
|
-
({ component: Element, ...props }: SearchFilterWrapperProps): JSX.Element;
|
|
145
|
-
/**
|
|
146
|
-
* @deprecated Import from `@backstage/plugin-search-react` instead.
|
|
147
|
-
*/
|
|
148
|
-
Checkbox(props: Omit<SearchFilterWrapperProps, 'component'> & SearchFilterComponentProps): JSX.Element;
|
|
149
|
-
/**
|
|
150
|
-
* @deprecated Import from `@backstage/plugin-search-react` instead.
|
|
151
|
-
*/
|
|
152
|
-
Select(props: Omit<SearchFilterWrapperProps, 'component'> & SearchFilterComponentProps): JSX.Element;
|
|
153
|
-
/**
|
|
154
|
-
* A control surface for a given filter field name, rendered as an autocomplete
|
|
155
|
-
* textfield. A hard-coded list of values may be provided, or an async function
|
|
156
|
-
* which returns values may be provided instead.
|
|
157
|
-
*
|
|
158
|
-
* @public
|
|
159
|
-
* @deprecated Import from `@backstage/plugin-search-react` instead.
|
|
160
|
-
*/
|
|
161
|
-
Autocomplete(props: SearchAutocompleteFilterProps$1): JSX.Element;
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* @public
|
|
166
|
-
* @deprecated Import from `@backstage/plugin-search-react` instead.
|
|
167
|
-
*/
|
|
168
|
-
declare type SearchAutocompleteFilterProps = SearchFilterComponentProps$1 & {
|
|
169
|
-
filterSelectedOptions?: boolean;
|
|
170
|
-
limitTags?: number;
|
|
171
|
-
multiple?: boolean;
|
|
172
|
-
};
|
|
13
|
+
declare type HomePageSearchBarProps = Partial<Omit<SearchBarBaseProps, 'onChange' | 'onSubmit'>>;
|
|
173
14
|
|
|
174
15
|
/**
|
|
175
16
|
* @public
|
|
@@ -286,12 +127,6 @@ declare function useSearchModal(initialState?: boolean): SearchModalValue;
|
|
|
286
127
|
*/
|
|
287
128
|
declare const SearchPage$1: () => JSX.Element;
|
|
288
129
|
|
|
289
|
-
/**
|
|
290
|
-
* @public
|
|
291
|
-
* @deprecated Import from `@backstage/plugin-search-react` instead.
|
|
292
|
-
*/
|
|
293
|
-
declare const SearchResultPager: () => JSX.Element;
|
|
294
|
-
|
|
295
130
|
/**
|
|
296
131
|
* @public
|
|
297
132
|
*/
|
|
@@ -379,23 +214,13 @@ declare const searchPlugin: _backstage_core_plugin_api.BackstagePlugin<{
|
|
|
379
214
|
* @public
|
|
380
215
|
*/
|
|
381
216
|
declare const SearchPage: () => JSX.Element;
|
|
382
|
-
/**
|
|
383
|
-
* @public
|
|
384
|
-
* @deprecated Import from `@backstage/plugin-search-react` instead.
|
|
385
|
-
*/
|
|
386
|
-
declare const SearchResult: (props: _backstage_plugin_search_react.SearchResultProps) => JSX.Element;
|
|
387
217
|
/**
|
|
388
218
|
* @public
|
|
389
219
|
*/
|
|
390
220
|
declare const SidebarSearchModal: (props: SidebarSearchModalProps) => JSX.Element;
|
|
391
|
-
/**
|
|
392
|
-
* @public
|
|
393
|
-
* @deprecated Import from `@backstage/plugin-search-react` instead.
|
|
394
|
-
*/
|
|
395
|
-
declare const DefaultResultListItem: (props: _backstage_plugin_search_react.DefaultResultListItemProps) => JSX.Element;
|
|
396
221
|
/**
|
|
397
222
|
* @public
|
|
398
223
|
*/
|
|
399
224
|
declare const HomePageSearchBar: ({ ...props }: Partial<Omit<_backstage_plugin_search_react.SearchBarBaseProps, "onChange" | "onSubmit">>) => JSX.Element;
|
|
400
225
|
|
|
401
|
-
export {
|
|
226
|
+
export { HomePageSearchBar, HomePageSearchBarProps, SearchPage$1 as Router, SearchModal, SearchModalChildrenProps, SearchModalProps, SearchModalProvider, SearchModalProviderProps, SearchModalValue, SearchPage, SearchType, SearchTypeAccordionProps, SearchTypeProps, SearchTypeTabsProps, SidebarSearch, SidebarSearchModal, SidebarSearchModalProps, SidebarSearchProps, searchPlugin as plugin, searchPlugin, useSearchModal };
|
package/dist/index.esm.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { H as HomePageSearchBar, S as Router, b as SearchModal, a as SearchModalProvider, e as SearchPage, c as SearchType, d as SidebarSearch, f as SidebarSearchModal, s as plugin, s as searchPlugin, u as useSearchModal } from './esm/index-1ada8925.esm.js';
|
|
2
2
|
import 'react';
|
|
3
|
-
import '@material-ui/icons/FilterList';
|
|
4
3
|
import '@material-ui/core';
|
|
5
|
-
import '@backstage/plugin-search-react';
|
|
6
4
|
import '@material-ui/icons/Launch';
|
|
7
5
|
import '@material-ui/core/styles';
|
|
6
|
+
import '@backstage/plugin-search-react';
|
|
8
7
|
import '@backstage/core-plugin-api';
|
|
9
8
|
import '@backstage/core-components';
|
|
10
9
|
import '@backstage/errors';
|
|
@@ -12,17 +11,6 @@ import 'qs';
|
|
|
12
11
|
import '@backstage/version-bridge';
|
|
13
12
|
import 'react-use/lib/usePrevious';
|
|
14
13
|
import 'react-router';
|
|
15
|
-
import 'react-use/lib/useDebounce';
|
|
16
|
-
import '@material-ui/core/InputBase';
|
|
17
|
-
import '@material-ui/core/IconButton';
|
|
18
|
-
import '@material-ui/icons/Search';
|
|
19
|
-
import '@material-ui/icons/Clear';
|
|
20
|
-
import '@material-ui/lab';
|
|
21
|
-
import 'react-use/lib/useAsync';
|
|
22
|
-
import '@backstage/plugin-catalog-react';
|
|
23
|
-
import '@backstage/catalog-model';
|
|
24
|
-
import '@material-ui/icons/ArrowBackIos';
|
|
25
|
-
import '@material-ui/icons/ArrowForwardIos';
|
|
26
14
|
import 'react-use/lib/useEffectOnce';
|
|
27
15
|
import '@material-ui/icons/ExpandMore';
|
|
28
16
|
import '@material-ui/icons/FontDownload';
|
package/dist/index.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
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": "0.
|
|
4
|
+
"version": "1.0.0",
|
|
5
5
|
"main": "dist/index.esm.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
"clean": "backstage-cli package clean"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@backstage/catalog-model": "^1.1.0
|
|
36
|
+
"@backstage/catalog-model": "^1.1.0",
|
|
37
37
|
"@backstage/config": "^1.0.1",
|
|
38
|
-
"@backstage/core-components": "^0.10.0
|
|
39
|
-
"@backstage/core-plugin-api": "^1.0.4
|
|
40
|
-
"@backstage/errors": "^1.1.0
|
|
41
|
-
"@backstage/plugin-catalog-react": "^1.1.2
|
|
42
|
-
"@backstage/plugin-search-common": "^0.
|
|
43
|
-
"@backstage/plugin-search-react": "^0.
|
|
44
|
-
"@backstage/theme": "^0.2.16
|
|
38
|
+
"@backstage/core-components": "^0.10.0",
|
|
39
|
+
"@backstage/core-plugin-api": "^1.0.4",
|
|
40
|
+
"@backstage/errors": "^1.1.0",
|
|
41
|
+
"@backstage/plugin-catalog-react": "^1.1.2",
|
|
42
|
+
"@backstage/plugin-search-common": "^1.0.0",
|
|
43
|
+
"@backstage/plugin-search-react": "^1.0.0",
|
|
44
|
+
"@backstage/theme": "^0.2.16",
|
|
45
45
|
"@backstage/types": "^1.0.0",
|
|
46
46
|
"@backstage/version-bridge": "^1.0.1",
|
|
47
47
|
"@material-ui/core": "^4.12.2",
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
"react": "^16.13.1 || ^17.0.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@backstage/cli": "^0.18.0
|
|
61
|
-
"@backstage/core-app-api": "^1.0.4
|
|
62
|
-
"@backstage/dev-utils": "^1.0.4
|
|
63
|
-
"@backstage/test-utils": "^1.1.2
|
|
60
|
+
"@backstage/cli": "^0.18.0",
|
|
61
|
+
"@backstage/core-app-api": "^1.0.4",
|
|
62
|
+
"@backstage/dev-utils": "^1.0.4",
|
|
63
|
+
"@backstage/test-utils": "^1.1.2",
|
|
64
64
|
"@testing-library/jest-dom": "^5.10.1",
|
|
65
65
|
"@testing-library/react": "^12.1.3",
|
|
66
66
|
"@testing-library/react-hooks": "^8.0.0",
|
|
@@ -68,10 +68,10 @@
|
|
|
68
68
|
"@types/jest": "^26.0.7",
|
|
69
69
|
"@types/node": "^16.11.26",
|
|
70
70
|
"cross-fetch": "^3.1.5",
|
|
71
|
-
"msw": "^0.
|
|
71
|
+
"msw": "^0.44.0"
|
|
72
72
|
},
|
|
73
73
|
"files": [
|
|
74
74
|
"dist"
|
|
75
75
|
],
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "999878d8f1ae30f6a15925816af2016cb9d717a1"
|
|
77
77
|
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export { S as SearchPage } from './index-5187be91.esm.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '@material-ui/icons/FilterList';
|
|
4
|
-
import '@material-ui/core';
|
|
5
|
-
import '@backstage/plugin-search-react';
|
|
6
|
-
import '@material-ui/icons/Launch';
|
|
7
|
-
import '@material-ui/core/styles';
|
|
8
|
-
import '@backstage/core-plugin-api';
|
|
9
|
-
import '@backstage/core-components';
|
|
10
|
-
import '@backstage/errors';
|
|
11
|
-
import 'qs';
|
|
12
|
-
import '@backstage/version-bridge';
|
|
13
|
-
import 'react-use/lib/usePrevious';
|
|
14
|
-
import 'react-router';
|
|
15
|
-
import 'react-use/lib/useDebounce';
|
|
16
|
-
import '@material-ui/core/InputBase';
|
|
17
|
-
import '@material-ui/core/IconButton';
|
|
18
|
-
import '@material-ui/icons/Search';
|
|
19
|
-
import '@material-ui/icons/Clear';
|
|
20
|
-
import '@material-ui/lab';
|
|
21
|
-
import 'react-use/lib/useAsync';
|
|
22
|
-
import '@backstage/plugin-catalog-react';
|
|
23
|
-
import '@backstage/catalog-model';
|
|
24
|
-
import '@material-ui/icons/ArrowBackIos';
|
|
25
|
-
import '@material-ui/icons/ArrowForwardIos';
|
|
26
|
-
import 'react-use/lib/useEffectOnce';
|
|
27
|
-
import '@material-ui/icons/ExpandMore';
|
|
28
|
-
import '@material-ui/icons/FontDownload';
|
|
29
|
-
import 'react-router-dom';
|
|
30
|
-
//# sourceMappingURL=index-2e41707a.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-2e41707a.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|