@worknice/whiteboard 0.52.0 → 0.52.1

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.
@@ -9,7 +9,7 @@ export type CustomizableTableView = {
9
9
  }>;
10
10
  filters: Array<{
11
11
  id: string;
12
- value: string;
12
+ value: string[];
13
13
  }>;
14
14
  sorting: Array<{
15
15
  id: string;
@@ -152,14 +152,14 @@ const CustomizableTable = ({ data, columns, csvFilename, getRowId, availableColu
152
152
  ]);
153
153
  const columnFiltersInitialState = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>filterableColumns.map((col)=>{
154
154
  const filter = col.filter;
155
+ const saved = view.filters.find((f)=>f.id === col.id);
155
156
  if (filter.isMulti) return {
156
157
  id: col.id,
157
- value: []
158
+ value: saved?.value ?? []
158
159
  };
159
- const saved = view.filters.find((f)=>f.id === col.id);
160
160
  return {
161
161
  id: col.id,
162
- value: saved?.value ?? filter.options[0].id
162
+ value: saved?.value[0] ?? filter.options[0].id
163
163
  };
164
164
  }), [
165
165
  filterableColumns,
@@ -316,7 +316,9 @@ const CustomizableTable = ({ data, columns, csvFilename, getRowId, availableColu
316
316
  return column?.getIsVisible();
317
317
  }).map((filter)=>({
318
318
  id: filter.id,
319
- value: filter.value
319
+ value: Array.isArray(filter.value) ? filter.value : [
320
+ filter.value
321
+ ]
320
322
  })),
321
323
  sorting: reactTable.getState().sorting
322
324
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@worknice/whiteboard",
3
3
  "description": "",
4
- "version": "0.52.0",
4
+ "version": "0.52.1",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "files": [
@@ -39,7 +39,7 @@
39
39
  "react-markdown": "^10.1.0",
40
40
  "utf8": "^3.0.0",
41
41
  "zod": "^4.1.13",
42
- "@worknice/utils": "^0.35.0"
42
+ "@worknice/utils": "^0.35.1"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@anolilab/semantic-release-pnpm": "^3.2.2",