@jakubmazanec/ui 0.5.3 → 0.5.4-unstable.625b5f04

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.
@@ -2,6 +2,9 @@
2
2
  import { rankItem } from "@tanstack/match-sorter-utils";
3
3
  export function fuzzyFilter(row, columnId, value, addMeta) {
4
4
  let itemRank = rankItem(row.getValue(columnId), value, {});
5
+ if (row.original.name?.toLowerCase().includes("ardbeg")) {
6
+ debugger;
7
+ }
5
8
  addMeta({ itemRank });
6
9
  return itemRank.passed;
7
10
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../source/components/data-table/internals/fuzzyFilter.ts"],
4
- "sourcesContent": ["import {rankItem} from '@tanstack/match-sorter-utils';\nimport {type FilterMeta, type Row, type RowData} from '@tanstack/react-table';\n\nexport function fuzzyFilter<TData extends RowData>(\n row: Row<TData>,\n columnId: string,\n value: unknown,\n addMeta: (meta: FilterMeta) => void,\n) {\n let itemRank = rankItem(row.getValue(columnId), value as string, {});\n\n addMeta({itemRank});\n\n return itemRank.passed;\n}\n"],
5
- "mappings": ";AAAA,SAAQ,gBAAe;AAGhB,gBAAS,YACd,KACA,UACA,OACA,SACA;AACA,MAAI,WAAW,SAAS,IAAI,SAAS,QAAQ,GAAG,OAAiB,CAAC,CAAC;AAEnE,UAAQ,EAAC,SAAQ,CAAC;AAElB,SAAO,SAAS;AAClB;",
4
+ "sourcesContent": ["import {rankItem} from '@tanstack/match-sorter-utils';\nimport {type FilterMeta, type Row, type RowData} from '@tanstack/react-table';\n\nexport function fuzzyFilter<TData extends RowData>(\n row: Row<TData>,\n columnId: string,\n value: unknown,\n addMeta: (meta: FilterMeta) => void,\n) {\n let itemRank = rankItem(row.getValue(columnId), value as string, {});\n\n // @ts-expect-error - DEBUG\n // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access -- DEBUG\n if (row.original.name?.toLowerCase().includes('ardbeg')) {\n // eslint-disable-next-line no-debugger -- DEBUG\n debugger;\n }\n\n addMeta({itemRank});\n\n return itemRank.passed;\n}\n"],
5
+ "mappings": ";AAAA,SAAQ,gBAAe;AAGhB,gBAAS,YACd,KACA,UACA,OACA,SACA;AACA,MAAI,WAAW,SAAS,IAAI,SAAS,QAAQ,GAAG,OAAiB,CAAC,CAAC;AAInE,MAAI,IAAI,SAAS,MAAM,YAAY,EAAE,SAAS,QAAQ,GAAG;AAEvD;AAAA,EACF;AAEA,UAAQ,EAAC,SAAQ,CAAC;AAElB,SAAO,SAAS;AAClB;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jakubmazanec/ui",
3
- "version": "0.5.3",
3
+ "version": "0.5.4-unstable.625b5f04",
4
4
  "description": "React component library.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,6 +9,13 @@ export function fuzzyFilter<TData extends RowData>(
9
9
  ) {
10
10
  let itemRank = rankItem(row.getValue(columnId), value as string, {});
11
11
 
12
+ // @ts-expect-error - DEBUG
13
+ // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access -- DEBUG
14
+ if (row.original.name?.toLowerCase().includes('ardbeg')) {
15
+ // eslint-disable-next-line no-debugger -- DEBUG
16
+ debugger;
17
+ }
18
+
12
19
  addMeta({itemRank});
13
20
 
14
21
  return itemRank.passed;