@bigbinary/neeto-filters-frontend 3.0.7 → 3.0.9
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/README.md +234 -286
- package/dist/index.cjs.js +10 -45
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +11 -47
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/types.d.ts +12 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-filters-frontend",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.9",
|
|
4
4
|
"description": "Manage filters across neeto products.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"homepage": "https://github.com/bigbinary/neeto-filters-nano",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"@babel/preset-typescript": "7.22.5",
|
|
49
49
|
"@babel/runtime": "7.22.6",
|
|
50
50
|
"@bigbinary/babel-preset-neeto": "1.0.3",
|
|
51
|
-
"@bigbinary/eslint-plugin-neeto": "1.1.
|
|
51
|
+
"@bigbinary/eslint-plugin-neeto": "^1.1.34",
|
|
52
52
|
"@bigbinary/neeto-audit-frontend": "1.0.8",
|
|
53
|
-
"@bigbinary/neeto-cist": "1.0.
|
|
53
|
+
"@bigbinary/neeto-cist": "^1.0.5",
|
|
54
54
|
"@bigbinary/neeto-commons-frontend": "3.0.1",
|
|
55
55
|
"@bigbinary/neeto-icons": "1.12.3",
|
|
56
56
|
"@bigbinary/neeto-molecules": "1.1.45",
|
package/types.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ButtonProps, PaneProps } from "@bigbinary/neetoui";
|
|
3
|
+
import { UseQueryResult, UseQueryOptions } from "react-query";
|
|
3
4
|
|
|
4
5
|
interface labelAndValue {
|
|
5
6
|
label: string | number;
|
|
@@ -29,6 +30,12 @@ interface KeywordType {
|
|
|
29
30
|
[otherProps: string]: any;
|
|
30
31
|
}
|
|
31
32
|
|
|
33
|
+
interface SegmentType {
|
|
34
|
+
id: string,
|
|
35
|
+
name: string,
|
|
36
|
+
filters: filters[]
|
|
37
|
+
}
|
|
38
|
+
|
|
32
39
|
type condition = {
|
|
33
40
|
node: string;
|
|
34
41
|
rule:
|
|
@@ -135,3 +142,8 @@ export function buildFilterColumnsFromFields(args: {
|
|
|
135
142
|
showRuleSelector?: boolean,
|
|
136
143
|
groupName?: string
|
|
137
144
|
}): ColumnType[];
|
|
145
|
+
|
|
146
|
+
export function useFetchSegments(args: {
|
|
147
|
+
entity: string,
|
|
148
|
+
searchTerm?: string,
|
|
149
|
+
}, options?: UseQueryOptions): UseQueryResult<SegmentType[]>
|