gm-datagrid 0.1.34 → 0.1.36

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
@@ -4,6 +4,25 @@ All notable changes to `gm-datagrid` are documented here.
4
4
 
5
5
  ---
6
6
 
7
+ ## [0.1.36] — 2026-11-23
8
+
9
+ ### Fixed
10
+
11
+ - **Toolbar search paste** — clipboard shortcuts no longer hijack Ctrl+C / Ctrl+V when focus is in the quick filter, filter row, or other text inputs.
12
+ - **Keyboard focus scroll** — arrow / Tab navigation scrolls the virtualized body so the focused cell stays visible (horizontal and vertical).
13
+ - **Sticky header paint** — column header and filter row backgrounds and bottom rules span the full grid track width on horizontal scroll.
14
+ - **Resize vs sort** — dragging or clicking the column resize grip no longer toggles sort; double-click auto-fit no longer fires spurious sort clicks.
15
+
16
+ ---
17
+
18
+ ## [0.1.35] — 2026-11-22
19
+
20
+ ### Fixed
21
+
22
+ - **Production bundle** — library build no longer inlines `react/jsx-dev-runtime` (fixes `jsxDEV is not a function` when the host app runs a production Vite build). JSX is emitted against external `react/jsx-runtime`.
23
+
24
+ ---
25
+
7
26
  ## [0.1.34] — 2026-11-21
8
27
 
9
28
  ### Added
@@ -0,0 +1,16 @@
1
+ import { CellCoord, ColumnDef } from '../types';
2
+ export interface ScrollFocusedCellParams {
3
+ container: HTMLElement;
4
+ focusedCell: CellCoord;
5
+ columns: ColumnDef[];
6
+ resolvedWidths: Record<string, number>;
7
+ rowHeight: number;
8
+ scrollMarginTop: number;
9
+ checkboxSelection?: boolean;
10
+ showRowNumber?: boolean;
11
+ rowNumberPosition?: 'first' | 'last';
12
+ }
13
+ /**
14
+ * Adjusts the scrollport so the focused cell is visible (virtualized body — position from math).
15
+ */
16
+ export declare function scrollFocusedCellIntoView({ container, focusedCell, columns, resolvedWidths, rowHeight, scrollMarginTop, checkboxSelection, showRowNumber, rowNumberPosition, }: ScrollFocusedCellParams): void;
@@ -13,10 +13,12 @@ interface ColumnResizeState {
13
13
  widths: WidthMap;
14
14
  onResizeStart: (field: string, startX: number, startWidth: number) => void;
15
15
  autoFitColumn: (field: string, ctx: ColumnAutoFitContext) => void;
16
+ shouldSuppressHeaderSort: () => boolean;
16
17
  }
17
18
  /**
18
19
  * Interactive column resize with localStorage persistence.
19
20
  * Widths are keyed by `gridTitle` to isolate different grid instances.
20
21
  */
22
+ export declare function shouldSuppressHeaderSortAfterResize(suppressUntil: number): boolean;
21
23
  export declare function useColumnResize({ columns, gridTitle }: UseColumnResizeProps): ColumnResizeState;
22
24
  export {};
@@ -0,0 +1,14 @@
1
+ import { RefObject } from 'react';
2
+ import { CellCoord, ColumnDef } from '../types';
3
+ export interface UseScrollFocusedCellIntoViewProps {
4
+ containerRef: RefObject<HTMLDivElement | null>;
5
+ focusedCell: CellCoord | null;
6
+ columns: ColumnDef[];
7
+ resolvedWidths: Record<string, number>;
8
+ rowHeight: number;
9
+ scrollMarginTop: number;
10
+ checkboxSelection?: boolean;
11
+ showRowNumber?: boolean;
12
+ rowNumberPosition?: 'first' | 'last';
13
+ }
14
+ export declare function useScrollFocusedCellIntoView({ containerRef, focusedCell, columns, resolvedWidths, rowHeight, scrollMarginTop, checkboxSelection, showRowNumber, rowNumberPosition, }: UseScrollFocusedCellIntoViewProps): void;