@ceed/ads 1.2.8-next.2 → 1.2.8-next.3

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
@@ -3368,21 +3368,23 @@ var BodyCell = (props) => {
3368
3368
  )
3369
3369
  );
3370
3370
  };
3371
- var BodyRow = (props) => {
3372
- const { tableId, columns, rowId, editMode, noWrap, row } = props;
3373
- return /* @__PURE__ */ import_react25.default.createElement(import_react25.default.Fragment, null, columns.map((column, i) => /* @__PURE__ */ import_react25.default.createElement(
3374
- BodyCell,
3375
- {
3376
- ...column,
3377
- tableId,
3378
- key: `${rowId}_${column.field.toString()}_${i}`,
3379
- row,
3380
- rowId,
3381
- editMode,
3382
- noWrap
3383
- }
3384
- )));
3385
- };
3371
+ var BodyRow = (0, import_react25.memo)(
3372
+ (props) => {
3373
+ const { tableId, columns, rowId, editMode, noWrap, row } = props;
3374
+ return /* @__PURE__ */ import_react25.default.createElement(import_react25.default.Fragment, null, columns.map((column, i) => /* @__PURE__ */ import_react25.default.createElement(
3375
+ BodyCell,
3376
+ {
3377
+ ...column,
3378
+ tableId,
3379
+ key: `${rowId}_${column.field.toString()}_${i}`,
3380
+ row,
3381
+ rowId,
3382
+ editMode,
3383
+ noWrap
3384
+ }
3385
+ )));
3386
+ }
3387
+ );
3386
3388
  function useDataTableRenderer({
3387
3389
  rows: _rows,
3388
3390
  columns: columnsProp,
@@ -3699,7 +3701,7 @@ function Component(props, apiRef) {
3699
3701
  getScrollElement: () => parentRef.current,
3700
3702
  estimateSize: () => 32,
3701
3703
  measureElement: (element) => element.clientHeight,
3702
- overscan: 5
3704
+ overscan: 10
3703
3705
  });
3704
3706
  const paginationModel = (0, import_react25.useMemo)(() => ({ page, pageSize }), [page, pageSize]);
3705
3707
  const totalSize = virtualizer.getTotalSize();
package/dist/index.js CHANGED
@@ -3318,21 +3318,23 @@ var BodyCell = (props) => {
3318
3318
  )
3319
3319
  );
3320
3320
  };
3321
- var BodyRow = (props) => {
3322
- const { tableId, columns, rowId, editMode, noWrap, row } = props;
3323
- return /* @__PURE__ */ React23.createElement(React23.Fragment, null, columns.map((column, i) => /* @__PURE__ */ React23.createElement(
3324
- BodyCell,
3325
- {
3326
- ...column,
3327
- tableId,
3328
- key: `${rowId}_${column.field.toString()}_${i}`,
3329
- row,
3330
- rowId,
3331
- editMode,
3332
- noWrap
3333
- }
3334
- )));
3335
- };
3321
+ var BodyRow = memo(
3322
+ (props) => {
3323
+ const { tableId, columns, rowId, editMode, noWrap, row } = props;
3324
+ return /* @__PURE__ */ React23.createElement(React23.Fragment, null, columns.map((column, i) => /* @__PURE__ */ React23.createElement(
3325
+ BodyCell,
3326
+ {
3327
+ ...column,
3328
+ tableId,
3329
+ key: `${rowId}_${column.field.toString()}_${i}`,
3330
+ row,
3331
+ rowId,
3332
+ editMode,
3333
+ noWrap
3334
+ }
3335
+ )));
3336
+ }
3337
+ );
3336
3338
  function useDataTableRenderer({
3337
3339
  rows: _rows,
3338
3340
  columns: columnsProp,
@@ -3649,7 +3651,7 @@ function Component(props, apiRef) {
3649
3651
  getScrollElement: () => parentRef.current,
3650
3652
  estimateSize: () => 32,
3651
3653
  measureElement: (element) => element.clientHeight,
3652
- overscan: 5
3654
+ overscan: 10
3653
3655
  });
3654
3656
  const paginationModel = useMemo8(() => ({ page, pageSize }), [page, pageSize]);
3655
3657
  const totalSize = virtualizer.getTotalSize();