utopia-ui 3.0.0-alpha.18 → 3.0.0-alpha.19
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.
@@ -1,13 +1,18 @@
|
|
1
1
|
import * as React from "react";
|
2
|
-
import { Tag } from "../../../types";
|
2
|
+
import { LayerProps, Tag } from "../../../types";
|
3
3
|
declare type UseFilterManagerResult = ReturnType<typeof useFilterManager>;
|
4
4
|
declare function useFilterManager(initialTags: Tag[]): {
|
5
5
|
filterTags: Tag[];
|
6
6
|
searchPhrase: string;
|
7
|
+
visibleLayers: LayerProps[];
|
7
8
|
addFilterTag: (tag: Tag) => void;
|
8
9
|
removeFilterTag: (id: string) => void;
|
9
10
|
resetFilterTags: () => void;
|
10
11
|
setSearchPhrase: (phrase: string) => void;
|
12
|
+
addVisibleLayer: (layer: LayerProps) => void;
|
13
|
+
toggleVisibleLayer: (layer: LayerProps) => void;
|
14
|
+
resetVisibleLayers: () => void;
|
15
|
+
isLayerVisible: (layer: LayerProps) => boolean;
|
11
16
|
};
|
12
17
|
export declare const FilterProvider: React.FunctionComponent<{
|
13
18
|
initialTags: Tag[];
|
@@ -19,4 +24,9 @@ export declare const useRemoveFilterTag: () => UseFilterManagerResult["removeFil
|
|
19
24
|
export declare const useResetFilterTags: () => UseFilterManagerResult["resetFilterTags"];
|
20
25
|
export declare const useSearchPhrase: () => UseFilterManagerResult["searchPhrase"];
|
21
26
|
export declare const useSetSearchPhrase: () => UseFilterManagerResult["setSearchPhrase"];
|
27
|
+
export declare const useVisibleLayer: () => UseFilterManagerResult["visibleLayers"];
|
28
|
+
export declare const useAddVisibleLayer: () => UseFilterManagerResult["addVisibleLayer"];
|
29
|
+
export declare const useToggleVisibleLayer: () => UseFilterManagerResult["toggleVisibleLayer"];
|
30
|
+
export declare const useResetVisibleLayers: () => UseFilterManagerResult["resetVisibleLayers"];
|
31
|
+
export declare const useIsLayerVisible: () => UseFilterManagerResult["isLayerVisible"];
|
22
32
|
export {};
|