@bigbinary/neeto-filters-frontend 3.0.8 → 3.0.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-filters-frontend",
3
- "version": "3.0.8",
3
+ "version": "3.0.10",
4
4
  "description": "Manage filters across neeto products.",
5
5
  "license": "UNLICENSED",
6
6
  "homepage": "https://github.com/bigbinary/neeto-filters-nano",
@@ -50,7 +50,7 @@
50
50
  "@bigbinary/babel-preset-neeto": "1.0.3",
51
51
  "@bigbinary/eslint-plugin-neeto": "^1.1.34",
52
52
  "@bigbinary/neeto-audit-frontend": "1.0.8",
53
- "@bigbinary/neeto-cist": "^1.0.5",
53
+ "@bigbinary/neeto-cist": "^1.0.6",
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",
@@ -128,6 +128,7 @@
128
128
  "rollup": "2.79.1",
129
129
  "rollup-plugin-analyzer": "4.0.0",
130
130
  "rollup-plugin-cleaner": "1.0.0",
131
+ "rollup-plugin-copy": "3.5.0",
131
132
  "rollup-plugin-peer-deps-external": "2.2.4",
132
133
  "rollup-plugin-styles": "4.0.0",
133
134
  "sass": "1.63.6",
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[]>