@linzjs/step-ag-grid 29.2.1 → 29.2.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.
@@ -2760,7 +2760,7 @@ ModuleRegistry.registerModules([AllCommunityModule]);
2760
2760
  /**
2761
2761
  * Wrapper for AgGrid to add commonly used functionality.
2762
2762
  */
2763
- const Grid = ({ 'data-testid': dataTestId, defaultPostSort = true, rowSelection = 'multiple', suppressColumnVirtualization = true, theme = 'ag-theme-step-default', sizeColumns = 'auto', selectColumnPinned = 'left', contextMenuSelectRow = false, singleClickEdit = false, rowData, rowHeight = theme === 'ag-theme-step-default' ? 40 : theme === 'ag-theme-step-compact' ? 36 : 40, selectable, allowResizeInStorybook, onCellFocused: paramsOnCellFocused, ...params }) => {
2763
+ const Grid = ({ 'data-testid': dataTestId, defaultPostSort = true, rowSelection = 'multiple', suppressColumnVirtualization = true, theme = 'ag-theme-step-default', sizeColumns = 'auto', selectColumnPinned = 'left', contextMenuSelectRow = false, singleClickEdit = false, rowData, rowHeight = theme === 'ag-theme-step-default' ? 40 : theme === 'ag-theme-step-compact' ? 36 : 40, selectable, onCellFocused: paramsOnCellFocused, ...params }) => {
2764
2764
  const { gridReady, gridRenderState, setApis, ensureRowVisible, getFirstRowId, selectRowsById, focusByRowById, ensureSelectedRowIsVisible, autoSizeColumns, sizeColumnsToFit, externallySelectedItemsAreInSync, setExternallySelectedItemsAreInSync, isExternalFilterPresent, doesExternalFilterPass, setOnBulkEditingComplete, getColDef, showNoRowsOverlay, prePopupOps, startCellEditing, } = useGridContext();
2765
2765
  const { updatedDep, updatingCols } = useContext(GridUpdatingContext);
2766
2766
  const gridDivRef = useRef(null);
@@ -3123,7 +3123,7 @@ const Grid = ({ 'data-testid': dataTestId, defaultPostSort = true, rowSelection
3123
3123
  * Resize columns to fit if required on window/container resize
3124
3124
  */
3125
3125
  const onGridSizeChanged = useCallback((event) => {
3126
- if (sizeColumns !== 'none' && (!window.__STORYBOOK_PREVIEW__ || allowResizeInStorybook)) {
3126
+ if (sizeColumns !== 'none') {
3127
3127
  const columnLimits = [
3128
3128
  ...userSizedColIds.current.entries().map(([c, w]) => ({
3129
3129
  key: c,
@@ -3132,7 +3132,7 @@ const Grid = ({ 'data-testid': dataTestId, defaultPostSort = true, rowSelection
3132
3132
  ];
3133
3133
  event.api.sizeColumnsToFit({ columnLimits });
3134
3134
  }
3135
- }, [allowResizeInStorybook, sizeColumns]);
3135
+ }, [sizeColumns]);
3136
3136
  /**
3137
3137
  * Set of column I'd's that are prevented from auto-sizing as they are user set
3138
3138
  */