+- **BREAKING (all four adapters):** `defaultVisibleColumns`/`defaultPageSize` construction options replaced by a single `initialViewState?: TableViewState` option, covering every view concern (visible columns, column order, sort, filters, grouping, page/pageSize, search) uniformly. `resetView`/`setViewState({})` now restore this value instead of clearing to empty — closing a gap where a construction-time sort/filter/group default had no equivalent option and was silently lost on every reset (#20). Grouping a column via `initialViewState.groupBy` with no matching `sorts` entry auto-inserts one (mirroring what interactive `group.toggle` already does), unless `view.groupBy` is passed explicitly to `setViewState` (which respects that view's own `sorts`, or lack of one, as given). `getViewState()`'s own default-omission check now compares every field against what a reset would actually restore, instead of an independent "is this field non-empty" rule — this also fixes a latent bug where `visibleCols` was compared against every column rather than the real construction default.
0 commit comments