@jakubmazanec/ui 0.5.3 → 0.5.4-unstable.2e0d39e2

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.
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  import { rankItem } from "@tanstack/match-sorter-utils";
3
3
  export function fuzzyFilter(row, columnId, value, addMeta) {
4
+ if (row.original.name.toLowerCase().includes("ardbeg")) {
5
+ debugger;
6
+ }
4
7
  let itemRank = rankItem(row.getValue(columnId), value, {});
5
8
  addMeta({ itemRank });
6
9
  return itemRank.passed;
@@ -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 // @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 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;AAGA,MAAI,IAAI,SAAS,KAAK,YAAY,EAAE,SAAS,QAAQ,GAAG;AAEtD;AAAA,EACF;AAEA,MAAI,WAAW,SAAS,IAAI,SAAS,QAAQ,GAAG,OAAiB,CAAC,CAAC;AAEnE,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.2e0d39e2",
4
4
  "description": "React component library.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -7,6 +7,13 @@ export function fuzzyFilter<TData extends RowData>(
7
7
  value: unknown,
8
8
  addMeta: (meta: FilterMeta) => void,
9
9
  ) {
10
+ // @ts-expect-error - DEBUG
11
+ // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access -- DEBUG
12
+ if (row.original.name.toLowerCase().includes('ardbeg')) {
13
+ // eslint-disable-next-line no-debugger -- DEBUG
14
+ debugger;
15
+ }
16
+
10
17
  let itemRank = rankItem(row.getValue(columnId), value as string, {});
11
18
 
12
19
  addMeta({itemRank});