@bigbinary/neeto-filters-frontend 3.2.4 → 3.2.6

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.2.4",
3
+ "version": "3.2.6",
4
4
  "description": "Manage filters across neeto products.",
5
5
  "license": "UNLICENSED",
6
6
  "homepage": "https://github.com/bigbinary/neeto-filters-nano",
@@ -48,17 +48,18 @@
48
48
  "@babel/preset-typescript": "7.23.2",
49
49
  "@babel/runtime": "7.23.2",
50
50
  "@bigbinary/babel-preset-neeto": "1.0.6",
51
- "@bigbinary/eslint-plugin-neeto": "1.2.0",
51
+ "@bigbinary/eslint-plugin-neeto": "1.5.0",
52
52
  "@bigbinary/neeto-audit-frontend": "2.0.9",
53
53
  "@bigbinary/neeto-cist": "1.0.8",
54
- "@bigbinary/neeto-commons-frontend": "3.1.18",
54
+ "@bigbinary/neeto-commons-frontend": "3.1.20",
55
55
  "@bigbinary/neeto-filters-frontend": "3.1.3",
56
56
  "@bigbinary/neeto-hotkeys": "^1.0.1",
57
57
  "@bigbinary/neeto-icons": "1.17.14",
58
- "@bigbinary/neeto-molecules": "1.6.3",
59
- "@bigbinary/neetoui": "6.2.3",
58
+ "@bigbinary/neeto-molecules": "1.13.5",
59
+ "@bigbinary/neetoui": "6.3.2",
60
60
  "@emotion/is-prop-valid": "1.2.0",
61
61
  "@faker-js/faker": "8.2.0",
62
+ "@hello-pangea/dnd": "16.3.0",
62
63
  "@honeybadger-io/js": "6.5.3",
63
64
  "@honeybadger-io/react": "6.1.9",
64
65
  "@rollup/plugin-alias": "5.0.1",
@@ -154,12 +155,13 @@
154
155
  },
155
156
  "peerDependencies": {
156
157
  "@bigbinary/neeto-cist": "latest",
157
- "@bigbinary/neeto-commons-frontend": "3.1.18",
158
+ "@bigbinary/neeto-commons-frontend": "3.1.20",
158
159
  "@bigbinary/neeto-filters-frontend": "3.1.3",
159
160
  "@bigbinary/neeto-hotkeys": "^1.0.1",
160
161
  "@bigbinary/neeto-icons": "1.17.14",
161
- "@bigbinary/neeto-molecules": "1.6.3",
162
- "@bigbinary/neetoui": "6.2.3",
162
+ "@bigbinary/neeto-molecules": "1.13.5",
163
+ "@bigbinary/neetoui": "6.3.2",
164
+ "@hello-pangea/dnd": "16.3.0",
163
165
  "@honeybadger-io/js": "^6.5.3",
164
166
  "@honeybadger-io/react": "^6.1.9",
165
167
  "axios": "^1.6.0",
package/types.d.ts CHANGED
@@ -1,6 +1,12 @@
1
1
  import React from "react";
2
2
  import { ButtonProps, PaneProps } from "@bigbinary/neetoui";
3
- import { UseQueryResult, UseQueryOptions, UseMutationOptions, UseMutationResult, MutationOptions } from "react-query";
3
+ import {
4
+ UseQueryResult,
5
+ UseQueryOptions,
6
+ UseMutationOptions,
7
+ UseMutationResult,
8
+ MutationOptions,
9
+ } from "react-query";
4
10
 
5
11
  interface labelAndValue {
6
12
  label: string | number;
@@ -11,10 +17,10 @@ type helpIconProps = {
11
17
  icon?: string;
12
18
  onClick?: () => void;
13
19
  tooltipProps: {
14
- content: string,
15
- position?: string,
16
- }
17
- }
20
+ content: string;
21
+ position?: string;
22
+ };
23
+ };
18
24
  interface ColumnType {
19
25
  suffixComponent?: React.ComponentType<any>;
20
26
  helpIconProps?: helpIconProps;
@@ -41,9 +47,9 @@ interface KeywordType {
41
47
  }
42
48
 
43
49
  interface SegmentType {
44
- id: string,
45
- name: string,
46
- filters: filters[]
50
+ id: string;
51
+ name: string;
52
+ filters: filters[];
47
53
  }
48
54
 
49
55
  type condition = {
@@ -115,6 +121,7 @@ export function Bar(props: {
115
121
  onSelectorsChange?: (selectors: selectors) => void;
116
122
  childrenKeys?: string[];
117
123
  defaultSegmentName?: string;
124
+ customFilters?: React.ReactNode;
118
125
  [otherProps: string]: any;
119
126
  }): JSX.Element;
120
127
 
@@ -123,6 +130,8 @@ export function Segments(props: {
123
130
  columns: ColumnType[];
124
131
  setIsFilterPaneOpen: (boolean) => void;
125
132
  defaultSegmentName?: string;
133
+ customFilters?: React.ReactNode;
134
+ childrenKeys?: string[];
126
135
  }): JSX.Element;
127
136
 
128
137
  export function buildFiltersFromURL(
@@ -143,33 +152,40 @@ type FieldType = {
143
152
  displayOrder?: number;
144
153
  ownerType?: string;
145
154
  ownerId?: string;
146
- }
155
+ };
147
156
 
148
157
  export function buildFilterColumnsFromFields(args: {
149
- fields: Array<FieldType>,
150
- selectedFields?: string[],
151
- showRuleSelector?: boolean,
152
- groupName?: string
158
+ fields: Array<FieldType>;
159
+ selectedFields?: string[];
160
+ showRuleSelector?: boolean;
161
+ groupName?: string;
153
162
  }): ColumnType[];
154
163
 
155
- export function useFetchSegments(args: {
156
- entity: string,
157
- searchTerm?: string,
158
- }, options?: UseQueryOptions): UseQueryResult<SegmentType[]>
164
+ export function useFetchSegments(
165
+ args: {
166
+ entity: string;
167
+ searchTerm?: string;
168
+ },
169
+ options?: UseQueryOptions
170
+ ): UseQueryResult<SegmentType[]>;
159
171
 
160
172
  export function buildUrlFromSegment(args: {
161
- columns: ColumnType[],
162
- filters: filters[],
163
- id: string
173
+ columns: ColumnType[];
174
+ filters: filters[];
175
+ id: string;
164
176
  }): string;
165
177
 
166
- export function useDestroySegment(options?: UseMutationOptions): UseMutationResult<TData, TError, TVariables, TContext>;
178
+ export function useDestroySegment(
179
+ options?: UseMutationOptions
180
+ ): UseMutationResult<TData, TError, TVariables, TContext>;
167
181
 
168
- export function useUpdateSegment(options?: UseMutationOptions): UseMutationResult<TData, TError, TVariables, TContext>;
182
+ export function useUpdateSegment(
183
+ options?: UseMutationOptions
184
+ ): UseMutationResult<TData, TError, TVariables, TContext>;
169
185
 
170
186
  export function buildUrlFromFilters(args: {
171
- columns: ColumnType[],
172
- filters: filters[],
173
- isClearAll?: boolean,
174
- childrenKeys?: string[]
187
+ columns: ColumnType[];
188
+ filters: filters[];
189
+ isClearAll?: boolean;
190
+ childrenKeys?: string[];
175
191
  }): string;