@backstage/plugin-search-react 1.6.4 → 1.6.5-next.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 +12 -0
- package/dist/index.d.ts +26 -26
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @backstage/plugin-search-react
|
|
2
2
|
|
|
3
|
+
## 1.6.5-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @backstage/core-plugin-api@1.6.0-next.0
|
|
9
|
+
- @backstage/core-components@0.13.5-next.0
|
|
10
|
+
- @backstage/theme@0.4.1
|
|
11
|
+
- @backstage/types@1.1.0
|
|
12
|
+
- @backstage/version-bridge@1.0.4
|
|
13
|
+
- @backstage/plugin-search-common@1.2.5
|
|
14
|
+
|
|
3
15
|
## 1.6.4
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ declare const createSearchResultListItemExtension: <Component extends (props: an
|
|
|
69
69
|
* @public
|
|
70
70
|
* Returns a function that renders a result using extensions.
|
|
71
71
|
*/
|
|
72
|
-
declare const useSearchResultListItemExtensions: (children: ReactNode) => (result: SearchResult$1, key?: number) => JSX.Element;
|
|
72
|
+
declare const useSearchResultListItemExtensions: (children: ReactNode) => (result: SearchResult$1, key?: number) => React.JSX.Element;
|
|
73
73
|
/**
|
|
74
74
|
* @public
|
|
75
75
|
* Props for {@link SearchResultListItemExtensions}
|
|
@@ -85,7 +85,7 @@ type SearchResultListItemExtensionsProps = Omit<ListProps, 'results'> & {
|
|
|
85
85
|
* Render results using search extensions.
|
|
86
86
|
* @param props - see {@link SearchResultListItemExtensionsProps}
|
|
87
87
|
*/
|
|
88
|
-
declare const SearchResultListItemExtensions: (props: SearchResultListItemExtensionsProps) => JSX.Element;
|
|
88
|
+
declare const SearchResultListItemExtensions: (props: SearchResultListItemExtensionsProps) => React.JSX.Element;
|
|
89
89
|
|
|
90
90
|
/**
|
|
91
91
|
* Props for {@link HighlightedSearchResultText}.
|
|
@@ -100,7 +100,7 @@ type HighlightedSearchResultTextProps = {
|
|
|
100
100
|
/**
|
|
101
101
|
* @public
|
|
102
102
|
*/
|
|
103
|
-
declare const HighlightedSearchResultText: (props: HighlightedSearchResultTextProps) => JSX.Element;
|
|
103
|
+
declare const HighlightedSearchResultText: (props: HighlightedSearchResultTextProps) => React.JSX.Element;
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
106
|
* Props for {@link SearchBarBase}.
|
|
@@ -177,7 +177,7 @@ type SearchAutocompleteDefaultOptionProps = {
|
|
|
177
177
|
*
|
|
178
178
|
* @public
|
|
179
179
|
*/
|
|
180
|
-
declare const SearchAutocompleteDefaultOption: (props: SearchAutocompleteDefaultOptionProps) => JSX.Element;
|
|
180
|
+
declare const SearchAutocompleteDefaultOption: (props: SearchAutocompleteDefaultOptionProps) => React.JSX.Element;
|
|
181
181
|
|
|
182
182
|
/**
|
|
183
183
|
* @public
|
|
@@ -190,7 +190,7 @@ type SearchAutocompleteFilterProps = SearchFilterComponentProps & {
|
|
|
190
190
|
/**
|
|
191
191
|
* @public
|
|
192
192
|
*/
|
|
193
|
-
declare const AutocompleteFilter: (props: SearchAutocompleteFilterProps) => JSX.Element;
|
|
193
|
+
declare const AutocompleteFilter: (props: SearchAutocompleteFilterProps) => React.JSX.Element;
|
|
194
194
|
|
|
195
195
|
/**
|
|
196
196
|
* @public
|
|
@@ -223,18 +223,18 @@ type SearchFilterWrapperProps = SearchFilterComponentProps & {
|
|
|
223
223
|
/**
|
|
224
224
|
* @public
|
|
225
225
|
*/
|
|
226
|
-
declare const CheckboxFilter: (props: SearchFilterComponentProps) => JSX.Element;
|
|
226
|
+
declare const CheckboxFilter: (props: SearchFilterComponentProps) => React.JSX.Element;
|
|
227
227
|
/**
|
|
228
228
|
* @public
|
|
229
229
|
*/
|
|
230
|
-
declare const SelectFilter: (props: SearchFilterComponentProps) => JSX.Element;
|
|
230
|
+
declare const SelectFilter: (props: SearchFilterComponentProps) => React.JSX.Element;
|
|
231
231
|
/**
|
|
232
232
|
* @public
|
|
233
233
|
*/
|
|
234
234
|
declare const SearchFilter: {
|
|
235
|
-
(props: SearchFilterWrapperProps): JSX.Element;
|
|
236
|
-
Checkbox(props: Omit<SearchFilterWrapperProps, 'component'> & SearchFilterComponentProps): JSX.Element;
|
|
237
|
-
Select(props: Omit<SearchFilterWrapperProps, 'component'> & SearchFilterComponentProps): JSX.Element;
|
|
235
|
+
(props: SearchFilterWrapperProps): React.JSX.Element;
|
|
236
|
+
Checkbox(props: Omit<SearchFilterWrapperProps, 'component'> & SearchFilterComponentProps): React.JSX.Element;
|
|
237
|
+
Select(props: Omit<SearchFilterWrapperProps, 'component'> & SearchFilterComponentProps): React.JSX.Element;
|
|
238
238
|
/**
|
|
239
239
|
* A control surface for a given filter field name, rendered as an autocomplete
|
|
240
240
|
* textfield. A hard-coded list of values may be provided, or an async function
|
|
@@ -242,7 +242,7 @@ declare const SearchFilter: {
|
|
|
242
242
|
*
|
|
243
243
|
* @public
|
|
244
244
|
*/
|
|
245
|
-
Autocomplete(props: SearchAutocompleteFilterProps): JSX.Element;
|
|
245
|
+
Autocomplete(props: SearchAutocompleteFilterProps): React.JSX.Element;
|
|
246
246
|
};
|
|
247
247
|
|
|
248
248
|
/**
|
|
@@ -322,7 +322,7 @@ type SearchPaginationBaseProps = {
|
|
|
322
322
|
* @param props - See {@link SearchPaginationBaseProps}.
|
|
323
323
|
* @public
|
|
324
324
|
*/
|
|
325
|
-
declare const SearchPaginationBase: (props: SearchPaginationBaseProps) => JSX.Element;
|
|
325
|
+
declare const SearchPaginationBase: (props: SearchPaginationBaseProps) => React.JSX.Element;
|
|
326
326
|
/**
|
|
327
327
|
* Props for {@link SearchPagination}.
|
|
328
328
|
* @public
|
|
@@ -333,7 +333,7 @@ type SearchPaginationProps = Omit<SearchPaginationBaseProps, 'pageLimit' | 'onLi
|
|
|
333
333
|
* @param props - See {@link SearchPaginationProps}.
|
|
334
334
|
* @public
|
|
335
335
|
*/
|
|
336
|
-
declare const SearchPagination: (props: SearchPaginationProps) => JSX.Element;
|
|
336
|
+
declare const SearchPagination: (props: SearchPaginationProps) => React.JSX.Element;
|
|
337
337
|
|
|
338
338
|
/**
|
|
339
339
|
* Props for {@link SearchResultContext}
|
|
@@ -437,7 +437,7 @@ type SearchResultStateProps = SearchResultContextProps & Partial<SearchResultApi
|
|
|
437
437
|
* ```
|
|
438
438
|
* @public
|
|
439
439
|
*/
|
|
440
|
-
declare const SearchResultState: (props: SearchResultStateProps) => JSX.Element;
|
|
440
|
+
declare const SearchResultState: (props: SearchResultStateProps) => React.JSX.Element;
|
|
441
441
|
/**
|
|
442
442
|
* Props for {@link SearchResult}
|
|
443
443
|
* @public
|
|
@@ -452,13 +452,13 @@ type SearchResultProps = Pick<SearchResultStateProps, 'query'> & Omit<SearchResu
|
|
|
452
452
|
* @param props - see {@link SearchResultProps}.
|
|
453
453
|
* @public
|
|
454
454
|
*/
|
|
455
|
-
declare const SearchResultComponent: (props: SearchResultProps) => JSX.Element;
|
|
455
|
+
declare const SearchResultComponent: (props: SearchResultProps) => React.JSX.Element;
|
|
456
456
|
/**
|
|
457
457
|
* A component returning the search result from a parent search context or api.
|
|
458
458
|
* @param props - see {@link SearchResultProps}.
|
|
459
459
|
* @public
|
|
460
460
|
*/
|
|
461
|
-
declare const SearchResult: (props: SearchResultProps) => JSX.Element;
|
|
461
|
+
declare const SearchResult: (props: SearchResultProps) => React.JSX.Element;
|
|
462
462
|
|
|
463
463
|
/**
|
|
464
464
|
* Props for {@link SearchResultListLayout}
|
|
@@ -495,7 +495,7 @@ type SearchResultListLayoutProps = ListProps & {
|
|
|
495
495
|
* @param props - See {@link SearchResultListLayoutProps}.
|
|
496
496
|
* @public
|
|
497
497
|
*/
|
|
498
|
-
declare const SearchResultListLayout: (props: SearchResultListLayoutProps) => JSX.Element;
|
|
498
|
+
declare const SearchResultListLayout: (props: SearchResultListLayoutProps) => React.JSX.Element;
|
|
499
499
|
/**
|
|
500
500
|
* Props for {@link SearchResultList}.
|
|
501
501
|
* @public
|
|
@@ -506,7 +506,7 @@ type SearchResultListProps = Pick<SearchResultStateProps, 'query'> & Omit<Search
|
|
|
506
506
|
* @param props - See {@link SearchResultListProps}.
|
|
507
507
|
* @public
|
|
508
508
|
*/
|
|
509
|
-
declare const SearchResultList: (props: SearchResultListProps) => JSX.Element;
|
|
509
|
+
declare const SearchResultList: (props: SearchResultListProps) => React.JSX.Element;
|
|
510
510
|
|
|
511
511
|
/**
|
|
512
512
|
* Props for {@link SearchResultGroupFilterFieldLayout}
|
|
@@ -522,7 +522,7 @@ type SearchResultGroupFilterFieldLayoutProps = PropsWithChildren<{
|
|
|
522
522
|
* @param props - See {@link SearchResultGroupFilterFieldLayoutProps}.
|
|
523
523
|
* @public
|
|
524
524
|
*/
|
|
525
|
-
declare const SearchResultGroupFilterFieldLayout: (props: SearchResultGroupFilterFieldLayoutProps) => JSX.Element;
|
|
525
|
+
declare const SearchResultGroupFilterFieldLayout: (props: SearchResultGroupFilterFieldLayoutProps) => React.JSX.Element;
|
|
526
526
|
/**
|
|
527
527
|
* Common props for a result group filter field.
|
|
528
528
|
* @public
|
|
@@ -550,7 +550,7 @@ type SearchResultGroupTextFilterFieldProps = SearchResultGroupFilterFieldPropsWi
|
|
|
550
550
|
* ```
|
|
551
551
|
* @public
|
|
552
552
|
*/
|
|
553
|
-
declare const SearchResultGroupTextFilterField: (props: SearchResultGroupTextFilterFieldProps) => JSX.Element;
|
|
553
|
+
declare const SearchResultGroupTextFilterField: (props: SearchResultGroupTextFilterFieldProps) => React.JSX.Element;
|
|
554
554
|
/**
|
|
555
555
|
* Props for {@link SearchResultGroupTextFilterField}.
|
|
556
556
|
* @public
|
|
@@ -576,7 +576,7 @@ type SearchResultGroupSelectFilterFieldProps = SearchResultGroupFilterFieldProps
|
|
|
576
576
|
* ```
|
|
577
577
|
* @public
|
|
578
578
|
*/
|
|
579
|
-
declare const SearchResultGroupSelectFilterField: (props: SearchResultGroupSelectFilterFieldProps) => JSX.Element;
|
|
579
|
+
declare const SearchResultGroupSelectFilterField: (props: SearchResultGroupSelectFilterFieldProps) => React.JSX.Element;
|
|
580
580
|
/**
|
|
581
581
|
* Props for {@link SearchResultGroupLayout}
|
|
582
582
|
* @public
|
|
@@ -649,7 +649,7 @@ type SearchResultGroupLayoutProps<FilterOption> = ListProps & {
|
|
|
649
649
|
* @param props - See {@link SearchResultGroupLayoutProps}.
|
|
650
650
|
* @public
|
|
651
651
|
*/
|
|
652
|
-
declare function SearchResultGroupLayout<FilterOption>(props: SearchResultGroupLayoutProps<FilterOption>): JSX.Element;
|
|
652
|
+
declare function SearchResultGroupLayout<FilterOption>(props: SearchResultGroupLayoutProps<FilterOption>): React.JSX.Element;
|
|
653
653
|
/**
|
|
654
654
|
* Props for {@link SearchResultGroup}.
|
|
655
655
|
* @public
|
|
@@ -660,12 +660,12 @@ type SearchResultGroupProps<FilterOption> = Pick<SearchResultStateProps, 'query'
|
|
|
660
660
|
* @param props - See {@link SearchResultGroupProps}.
|
|
661
661
|
* @public
|
|
662
662
|
*/
|
|
663
|
-
declare function SearchResultGroup<FilterOption>(props: SearchResultGroupProps<FilterOption>): JSX.Element;
|
|
663
|
+
declare function SearchResultGroup<FilterOption>(props: SearchResultGroupProps<FilterOption>): React.JSX.Element;
|
|
664
664
|
|
|
665
665
|
/**
|
|
666
666
|
* @public
|
|
667
667
|
*/
|
|
668
|
-
declare const SearchResultPager: () => JSX.Element;
|
|
668
|
+
declare const SearchResultPager: () => React.JSX.Element;
|
|
669
669
|
|
|
670
670
|
/**
|
|
671
671
|
* Props for {@link DefaultResultListItem}
|
|
@@ -684,7 +684,7 @@ type DefaultResultListItemProps = {
|
|
|
684
684
|
/**
|
|
685
685
|
* @public
|
|
686
686
|
*/
|
|
687
|
-
declare const HigherOrderDefaultResultListItem: (props: DefaultResultListItemProps) => JSX.Element;
|
|
687
|
+
declare const HigherOrderDefaultResultListItem: (props: DefaultResultListItemProps) => React.JSX.Element;
|
|
688
688
|
|
|
689
689
|
/**
|
|
690
690
|
*
|
|
@@ -752,6 +752,6 @@ type SearchContextProviderProps = PropsWithChildren<{
|
|
|
752
752
|
* @public
|
|
753
753
|
* Search context provider which gives you access to shared state between search components
|
|
754
754
|
*/
|
|
755
|
-
declare const SearchContextProvider: (props: SearchContextProviderProps) => JSX.Element;
|
|
755
|
+
declare const SearchContextProvider: (props: SearchContextProviderProps) => React.JSX.Element;
|
|
756
756
|
|
|
757
757
|
export { AutocompleteFilter, CheckboxFilter, HigherOrderDefaultResultListItem as DefaultResultListItem, DefaultResultListItemProps, HighlightedSearchResultText, HighlightedSearchResultTextProps, MockSearchApi, SearchApi, SearchAutocomplete, SearchAutocompleteComponent, SearchAutocompleteDefaultOption, SearchAutocompleteDefaultOptionProps, SearchAutocompleteFilterProps, SearchAutocompleteProps, SearchBar, SearchBarBase, SearchBarBaseProps, SearchBarProps, SearchContextProvider, SearchContextProviderProps, SearchContextState, SearchContextValue, SearchFilter, SearchFilterComponentProps, SearchFilterWrapperProps, SearchPagination, SearchPaginationBase, SearchPaginationBaseProps, SearchPaginationLimitOption, SearchPaginationLimitText, SearchPaginationProps, SearchResult, SearchResultApi, SearchResultApiProps, SearchResultComponent, SearchResultContext, SearchResultContextProps, SearchResultGroup, SearchResultGroupFilterFieldLayout, SearchResultGroupFilterFieldLayoutProps, SearchResultGroupFilterFieldPropsWith, SearchResultGroupLayout, SearchResultGroupLayoutProps, SearchResultGroupProps, SearchResultGroupSelectFilterField, SearchResultGroupSelectFilterFieldProps, SearchResultGroupTextFilterField, SearchResultGroupTextFilterFieldProps, SearchResultList, SearchResultListItemExtensionOptions, SearchResultListItemExtensionProps, SearchResultListItemExtensions, SearchResultListItemExtensionsProps, SearchResultListLayout, SearchResultListLayoutProps, SearchResultListProps, SearchResultPager, SearchResultProps, SearchResultState, SearchResultStateProps, SelectFilter, createSearchResultListItemExtension, searchApiRef, useSearch, useSearchContextCheck, useSearchResultListItemExtensions };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-search-react",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.5-next.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-components": "^0.13.
|
|
35
|
-
"@backstage/core-plugin-api": "^1.
|
|
34
|
+
"@backstage/core-components": "^0.13.5-next.0",
|
|
35
|
+
"@backstage/core-plugin-api": "^1.6.0-next.0",
|
|
36
36
|
"@backstage/plugin-search-common": "^1.2.5",
|
|
37
37
|
"@backstage/theme": "^0.4.1",
|
|
38
38
|
"@backstage/types": "^1.1.0",
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"react-router-dom": "6.0.0-beta.0 || ^6.3.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@backstage/cli": "^0.22.
|
|
55
|
-
"@backstage/core-app-api": "^1.
|
|
56
|
-
"@backstage/test-utils": "^1.4.
|
|
54
|
+
"@backstage/cli": "^0.22.12-next.0",
|
|
55
|
+
"@backstage/core-app-api": "^1.10.0-next.0",
|
|
56
|
+
"@backstage/test-utils": "^1.4.3-next.0",
|
|
57
57
|
"@testing-library/dom": "^8.0.0",
|
|
58
58
|
"@testing-library/jest-dom": "^5.10.1",
|
|
59
59
|
"@testing-library/react": "^12.1.3",
|