@alaarab/ogrid-react-fluent 2.0.0-beta → 2.0.0

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.
@@ -74,7 +74,6 @@ function DataGridTableInner(props) {
74
74
  const { cellClassMap, headerClassMap } = useMemo(() => {
75
75
  const cm = {};
76
76
  const hm = {};
77
- const im = new Map();
78
77
  for (let i = 0; i < visibleCols.length; i++) {
79
78
  const col = visibleCols[i];
80
79
  const isFreezeCol = freezeCols != null && freezeCols >= 1 && i < freezeCols;
@@ -95,11 +94,10 @@ function DataGridTableInner(props) {
95
94
  }
96
95
  cm[col.columnId] = parts.join(' ');
97
96
  hm[col.columnId] = parts.join(' ');
98
- im.set(col.columnId, i);
99
97
  }
100
98
  cm['__selection__'] = styles.selectionCellWrapper;
101
99
  hm['__selection__'] = styles.selectionHeaderCellWrapper;
102
- return { cellClassMap: cm, headerClassMap: hm, colIndexMap: im };
100
+ return { cellClassMap: cm, headerClassMap: hm };
103
101
  }, [visibleCols, freezeCols]);
104
102
  // Refs for volatile state (read inside fluentColumns render closures without adding to deps)
105
103
  const cellDescriptorInputRef = useLatestRef(cellDescriptorInput);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alaarab/ogrid-react-fluent",
3
- "version": "2.0.0-beta",
3
+ "version": "2.0.0",
4
4
  "description": "OGrid Fluent UI implementation – DataGrid-powered data table with sorting, filtering, pagination, column chooser, and CSV export.",
5
5
  "main": "dist/esm/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -40,7 +40,7 @@
40
40
  "node": ">=18"
41
41
  },
42
42
  "dependencies": {
43
- "@alaarab/ogrid-react": "2.0.0-beta"
43
+ "@alaarab/ogrid-react": "2.0.0"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "@fluentui/react-components": "^9.0.0",