schummar-table 0.40.4 → 0.40.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/dist/index.cjs CHANGED
@@ -1807,8 +1807,8 @@ function AutoFocusTextField(props) {
1807
1807
 
1808
1808
  // src/hooks/useFilter.ts
1809
1809
  var import_immer3 = require("immer");
1810
- var import_react16 = require("react");
1811
1810
  var import_nanoid = require("nanoid");
1811
+ var import_react16 = require("react");
1812
1812
 
1813
1813
  // src/misc/debounce.ts
1814
1814
  function debounce(function_, ms) {
@@ -1872,7 +1872,9 @@ function useFilter(impl) {
1872
1872
  });
1873
1873
  };
1874
1874
  }, [table, columnId, impl]);
1875
- const value = table.useState((state) => state.filterValues.get(columnId));
1875
+ const value = table.useState(
1876
+ (state) => state.filterValues.get(columnId)
1877
+ );
1876
1878
  const [dirtyValue, setDirtyValue] = (0, import_react16.useState)();
1877
1879
  const implRef = (0, import_react16.useRef)(impl);
1878
1880
  (0, import_react16.useLayoutEffect)(() => {
@@ -3432,10 +3434,11 @@ var import_react24 = require("react");
3432
3434
 
3433
3435
  // src/exporters/serializer.ts
3434
3436
  function defaultSerializer(x) {
3437
+ var _a;
3435
3438
  if (x instanceof Date || typeof x === "number" || typeof x === "string") {
3436
3439
  return x;
3437
3440
  }
3438
- return JSON.stringify(x);
3441
+ return (_a = JSON.stringify(x)) != null ? _a : "";
3439
3442
  }
3440
3443
 
3441
3444
  // src/internalState/calcProps.ts