@ceed/ads 1.32.2-next.2 → 1.32.2
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.browser.js +1 -1
- package/dist/index.browser.js.map +2 -2
- package/dist/index.cjs +11 -8
- package/dist/index.js +11 -8
- package/framer/index.js +1 -1
- package/package.json +2 -3
package/dist/index.cjs
CHANGED
|
@@ -3798,7 +3798,9 @@ var VirtualizedTableRow = (0, import_react24.memo)(StyledTableRow2, (prevProps,
|
|
|
3798
3798
|
prevProps["data-row-id"] === nextProps["data-row-id"] && // @ts-ignore
|
|
3799
3799
|
prevProps["data-index"] === nextProps["data-index"] && prevProps.tabIndex === nextProps.tabIndex && prevProps["aria-checked"] === nextProps["aria-checked"] && // Track column structure changes (e.g. isCellEditable toggled, columns added/removed)
|
|
3800
3800
|
// @ts-ignore
|
|
3801
|
-
prevProps["data-columns-key"] === nextProps["data-columns-key"]
|
|
3801
|
+
prevProps["data-columns-key"] === nextProps["data-columns-key"] && // Track row data changes — ensures re-render when row object reference changes (e.g. after refetch)
|
|
3802
|
+
// @ts-ignore
|
|
3803
|
+
prevProps["data-row-key"] === nextProps["data-row-key"];
|
|
3802
3804
|
});
|
|
3803
3805
|
|
|
3804
3806
|
// src/components/DataTable/hooks.ts
|
|
@@ -4505,13 +4507,13 @@ Pagination.displayName = "Pagination";
|
|
|
4505
4507
|
var Pagination_default = Pagination;
|
|
4506
4508
|
|
|
4507
4509
|
// src/components/DataTable/DataTable.tsx
|
|
4508
|
-
var
|
|
4509
|
-
var
|
|
4510
|
-
function
|
|
4511
|
-
if (!
|
|
4512
|
-
|
|
4510
|
+
var _objectVersionCache = /* @__PURE__ */ new WeakMap();
|
|
4511
|
+
var _objectVersionCounter = 0;
|
|
4512
|
+
function getObjectVersion(obj) {
|
|
4513
|
+
if (!_objectVersionCache.has(obj)) {
|
|
4514
|
+
_objectVersionCache.set(obj, ++_objectVersionCounter);
|
|
4513
4515
|
}
|
|
4514
|
-
return
|
|
4516
|
+
return _objectVersionCache.get(obj);
|
|
4515
4517
|
}
|
|
4516
4518
|
var EMPTY_CHECKBOX_PROPS = {};
|
|
4517
4519
|
function Component(props, apiRef) {
|
|
@@ -4609,7 +4611,7 @@ function Component(props, apiRef) {
|
|
|
4609
4611
|
overscan: 10
|
|
4610
4612
|
});
|
|
4611
4613
|
const paginationModel = (0, import_react28.useMemo)(() => ({ page, pageSize }), [page, pageSize]);
|
|
4612
|
-
const columnsKey =
|
|
4614
|
+
const columnsKey = getObjectVersion(columns);
|
|
4613
4615
|
const headerCheckboxElement = (0, import_react28.useMemo)(
|
|
4614
4616
|
() => /* @__PURE__ */ import_react28.default.createElement(
|
|
4615
4617
|
RenderCheckbox,
|
|
@@ -4933,6 +4935,7 @@ function Component(props, apiRef) {
|
|
|
4933
4935
|
key: virtualizedRow.key,
|
|
4934
4936
|
"data-row-id": rowId,
|
|
4935
4937
|
"data-index": rowIndex,
|
|
4938
|
+
"data-row-key": getObjectVersion(row),
|
|
4936
4939
|
"data-columns-key": columnsKey,
|
|
4937
4940
|
"aria-rowindex": rowIndex + 1,
|
|
4938
4941
|
role: checkboxSelection && !disableSelectionOnClick ? "checkbox" : void 0,
|
package/dist/index.js
CHANGED
|
@@ -3673,7 +3673,9 @@ var VirtualizedTableRow = memo(StyledTableRow2, (prevProps, nextProps) => {
|
|
|
3673
3673
|
prevProps["data-row-id"] === nextProps["data-row-id"] && // @ts-ignore
|
|
3674
3674
|
prevProps["data-index"] === nextProps["data-index"] && prevProps.tabIndex === nextProps.tabIndex && prevProps["aria-checked"] === nextProps["aria-checked"] && // Track column structure changes (e.g. isCellEditable toggled, columns added/removed)
|
|
3675
3675
|
// @ts-ignore
|
|
3676
|
-
prevProps["data-columns-key"] === nextProps["data-columns-key"]
|
|
3676
|
+
prevProps["data-columns-key"] === nextProps["data-columns-key"] && // Track row data changes — ensures re-render when row object reference changes (e.g. after refetch)
|
|
3677
|
+
// @ts-ignore
|
|
3678
|
+
prevProps["data-row-key"] === nextProps["data-row-key"];
|
|
3677
3679
|
});
|
|
3678
3680
|
|
|
3679
3681
|
// src/components/DataTable/hooks.ts
|
|
@@ -4380,13 +4382,13 @@ Pagination.displayName = "Pagination";
|
|
|
4380
4382
|
var Pagination_default = Pagination;
|
|
4381
4383
|
|
|
4382
4384
|
// src/components/DataTable/DataTable.tsx
|
|
4383
|
-
var
|
|
4384
|
-
var
|
|
4385
|
-
function
|
|
4386
|
-
if (!
|
|
4387
|
-
|
|
4385
|
+
var _objectVersionCache = /* @__PURE__ */ new WeakMap();
|
|
4386
|
+
var _objectVersionCounter = 0;
|
|
4387
|
+
function getObjectVersion(obj) {
|
|
4388
|
+
if (!_objectVersionCache.has(obj)) {
|
|
4389
|
+
_objectVersionCache.set(obj, ++_objectVersionCounter);
|
|
4388
4390
|
}
|
|
4389
|
-
return
|
|
4391
|
+
return _objectVersionCache.get(obj);
|
|
4390
4392
|
}
|
|
4391
4393
|
var EMPTY_CHECKBOX_PROPS = {};
|
|
4392
4394
|
function Component(props, apiRef) {
|
|
@@ -4484,7 +4486,7 @@ function Component(props, apiRef) {
|
|
|
4484
4486
|
overscan: 10
|
|
4485
4487
|
});
|
|
4486
4488
|
const paginationModel = useMemo10(() => ({ page, pageSize }), [page, pageSize]);
|
|
4487
|
-
const columnsKey =
|
|
4489
|
+
const columnsKey = getObjectVersion(columns);
|
|
4488
4490
|
const headerCheckboxElement = useMemo10(
|
|
4489
4491
|
() => /* @__PURE__ */ React25.createElement(
|
|
4490
4492
|
RenderCheckbox,
|
|
@@ -4808,6 +4810,7 @@ function Component(props, apiRef) {
|
|
|
4808
4810
|
key: virtualizedRow.key,
|
|
4809
4811
|
"data-row-id": rowId,
|
|
4810
4812
|
"data-index": rowIndex,
|
|
4813
|
+
"data-row-key": getObjectVersion(row),
|
|
4811
4814
|
"data-columns-key": columnsKey,
|
|
4812
4815
|
"aria-rowindex": rowIndex + 1,
|
|
4813
4816
|
role: checkboxSelection && !disableSelectionOnClick ? "checkbox" : void 0,
|