@livetiles/reach-plugin-types 0.4.0-preview.894 → 0.4.0-preview.895
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/lib/index.d.ts +3 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -3967,6 +3967,7 @@ declare module "libs/reach/ui/common/src/common/Search" {
|
|
|
3967
3967
|
showClearButton?: boolean;
|
|
3968
3968
|
onClear?: () => void;
|
|
3969
3969
|
useLightTheme?: boolean;
|
|
3970
|
+
shouldAutoFocus?: boolean;
|
|
3970
3971
|
}
|
|
3971
3972
|
export const Search: FC<SearchProps>;
|
|
3972
3973
|
export interface SearchBoxProps {
|
|
@@ -3974,6 +3975,7 @@ declare module "libs/reach/ui/common/src/common/Search" {
|
|
|
3974
3975
|
onExecuteSearch?: (text: string) => void;
|
|
3975
3976
|
searchText?: string;
|
|
3976
3977
|
showSearchBoxInput?: boolean;
|
|
3978
|
+
shouldAutoFocus?: boolean;
|
|
3977
3979
|
}
|
|
3978
3980
|
export const SearchBox: FC<SearchBoxProps & {
|
|
3979
3981
|
onSearchInputFieldVisibilityChanged?: (isVisible: boolean) => void;
|
|
@@ -6710,7 +6712,7 @@ declare module "libs/reach/feature/content/src/filter/useFilter" {
|
|
|
6710
6712
|
onSearchChange: (text: string) => void;
|
|
6711
6713
|
onClearFilter: () => void;
|
|
6712
6714
|
}
|
|
6713
|
-
export function useFilter<TQueryString extends
|
|
6715
|
+
export function useFilter<TQueryString extends object = any>(addFilters?: (routeParams: any, user: CurrentUser) => Partial<IndexableFilterDefinition>, onClearQueryString?: (prev: TQueryString, next: TQueryString) => TQueryString, additionalExcludedFilterProperties?: string[]): {
|
|
6714
6716
|
filter: Partial<IndexableFilterDefinition>;
|
|
6715
6717
|
hasFilter: boolean;
|
|
6716
6718
|
isSearchActive: boolean;
|