@worknice/whiteboard 0.12.5 → 0.12.7

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.
@@ -165,10 +165,14 @@ const Table = ({ data, columns, bulkActions = [], secondaryBulkActions = [], csv
165
165
  height: 1080,
166
166
  width: 1920
167
167
  },
168
+ getItemKey: (index)=>{
169
+ const row = rows[index];
170
+ return `${row.id}-${table.getState().grouping.join(",")}`;
171
+ },
168
172
  measureElement: (element, _, instance)=>{
169
- const cachedSize = instance.measurementsCache[instance.indexFromElement(element)].size;
170
173
  const rect = element.getBoundingClientRect();
171
174
  if (rect.height > 0 && rect.width > 0) return Math.round(rect.height);
175
+ const cachedSize = instance.measurementsCache[instance.indexFromElement(element)].size;
172
176
  return cachedSize;
173
177
  }
174
178
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@worknice/whiteboard",
3
3
  "description": "",
4
- "version": "0.12.5",
4
+ "version": "0.12.7",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "files": [
@@ -38,7 +38,7 @@
38
38
  "react-markdown": "^10.1.0",
39
39
  "utf8": "^3.0.0",
40
40
  "zod": "^3.22.3",
41
- "@worknice/utils": "^0.6.28"
41
+ "@worknice/utils": "^0.6.30"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@anolilab/semantic-release-pnpm": "^1.1.10",