@procore/data-table 14.22.0 → 14.22.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 14.22.1
4
+
5
+ ### Patch Changes
6
+
7
+ - b045b8186e: Prevent de-sync of row selection ref from table api when rowSelectionEnabled is changed
8
+
3
9
  ## 14.22.0
4
10
 
5
11
  ### Minor Changes
@@ -82985,7 +82985,7 @@ var Table = (props) => {
82985
82985
  }, [isRowSelectable]);
82986
82986
  React77__default.default.useEffect(() => {
82987
82987
  rowSelectionRef.current = {
82988
- affectedRows: {},
82988
+ affectedRows: (rowSelectionRef == null ? void 0 : rowSelectionRef.current.affectedRows) ?? {},
82989
82989
  enabled: props.rowSelectionEnabled,
82990
82990
  getRowId: internalTableContext.getRowId,
82991
82991
  siblingGroupsRowDisabled: props.siblingGroupsRowSelectionDisabled
@@ -82971,7 +82971,7 @@ var Table = (props) => {
82971
82971
  }, [isRowSelectable]);
82972
82972
  React77.useEffect(() => {
82973
82973
  rowSelectionRef.current = {
82974
- affectedRows: {},
82974
+ affectedRows: (rowSelectionRef == null ? void 0 : rowSelectionRef.current.affectedRows) ?? {},
82975
82975
  enabled: props.rowSelectionEnabled,
82976
82976
  getRowId: internalTableContext.getRowId,
82977
82977
  siblingGroupsRowDisabled: props.siblingGroupsRowSelectionDisabled
@@ -82773,7 +82773,7 @@ var Table = (props) => {
82773
82773
  }, [isRowSelectable]);
82774
82774
  React77__default.default.useEffect(() => {
82775
82775
  rowSelectionRef.current = {
82776
- affectedRows: {},
82776
+ affectedRows: rowSelectionRef?.current.affectedRows ?? {},
82777
82777
  enabled: props.rowSelectionEnabled,
82778
82778
  getRowId: internalTableContext.getRowId,
82779
82779
  siblingGroupsRowDisabled: props.siblingGroupsRowSelectionDisabled
@@ -82759,7 +82759,7 @@ var Table = (props) => {
82759
82759
  }, [isRowSelectable]);
82760
82760
  React77.useEffect(() => {
82761
82761
  rowSelectionRef.current = {
82762
- affectedRows: {},
82762
+ affectedRows: rowSelectionRef?.current.affectedRows ?? {},
82763
82763
  enabled: props.rowSelectionEnabled,
82764
82764
  getRowId: internalTableContext.getRowId,
82765
82765
  siblingGroupsRowDisabled: props.siblingGroupsRowSelectionDisabled
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@procore/data-table",
3
- "version": "14.22.0",
3
+ "version": "14.22.1",
4
4
  "description": "Complex data grid built on top of ag-grid, with DST components and styles.",
5
5
  "type": "module",
6
6
  "main": "dist/legacy/index.cjs",
@@ -111,7 +111,7 @@
111
111
  "@procore/core-css": "10.17.0",
112
112
  "@procore/core-icons": "12.2.0",
113
113
  "@procore/core-prettier": "10.2.0",
114
- "@procore/core-react": "12.16.1",
114
+ "@procore/core-react": "12.16.2",
115
115
  "@procore/eslint-config": "10.0.0",
116
116
  "@procore/globalization-toolkit": "3.1.0",
117
117
  "@procore/labs-financials-utils": "3.0.1",