@ai-matrx/design-system 0.16.0 → 0.17.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.
Files changed (32) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +6 -0
  3. package/dist/data-table/copy-helpers.d.cts +1 -1
  4. package/dist/data-table/copy-helpers.d.ts +1 -1
  5. package/dist/data-table/filter-engine.d.cts +1 -1
  6. package/dist/data-table/filter-engine.d.ts +1 -1
  7. package/dist/data-table/index.cjs +321 -75
  8. package/dist/data-table/index.cjs.map +1 -1
  9. package/dist/data-table/index.d.cts +2 -2
  10. package/dist/data-table/index.d.ts +2 -2
  11. package/dist/data-table/index.js +317 -71
  12. package/dist/data-table/index.js.map +1 -1
  13. package/dist/data-table/infer-filter.d.cts +1 -1
  14. package/dist/data-table/infer-filter.d.ts +1 -1
  15. package/dist/data-table/layered-filters.d.cts +1 -1
  16. package/dist/data-table/layered-filters.d.ts +1 -1
  17. package/dist/data-table/query-control.d.cts +1 -1
  18. package/dist/data-table/query-control.d.ts +1 -1
  19. package/dist/data-table/scroll-pagination.cjs +18 -7
  20. package/dist/data-table/scroll-pagination.cjs.map +1 -1
  21. package/dist/data-table/scroll-pagination.js +18 -7
  22. package/dist/data-table/scroll-pagination.js.map +1 -1
  23. package/dist/data-table/types.cjs.map +1 -1
  24. package/dist/data-table/types.d.cts +1 -1
  25. package/dist/data-table/types.d.ts +1 -1
  26. package/dist/data-table/url-state.d.cts +1 -1
  27. package/dist/data-table/url-state.d.ts +1 -1
  28. package/dist/data-table/xlsx.d.cts +1 -1
  29. package/dist/data-table/xlsx.d.ts +1 -1
  30. package/dist/{types-XXbVB1sh.d.cts → types-4fmLG5AN.d.cts} +16 -1
  31. package/dist/{types-ClaxTaXq.d.ts → types-pZ95iFk5.d.ts} +16 -1
  32. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.17.1 — 2026-09-12
4
+
5
+ `useScrollPagination` now retains each container's last observed scroll position
6
+ across listener reattachment. This lets a trusted passive wheel append when
7
+ Chromium's compositor has advanced the scroller before JavaScript receives its
8
+ asynchronous scroll notification, while preserving the fresh-input, actual-
9
+ movement, one-gesture, manual-mode, error, and programmatic-scroll guards.
10
+
11
+ ### Consumer action
12
+
13
+ Update to 0.17.1 for reliable wheel-driven append on `controlled-append` tables.
14
+ No API or configuration change is required.
15
+
16
+ ## 0.17.0 — 2026-09-12
17
+
18
+ - `MatrxDataTable` accepts opt-in controlled `columnState` and `reorderableColumns`, allowing URL-backed order/visibility and package-owned header drag without a host renderer fork. Header grips and the column manager use the existing pointer sensor for mouse/touch ordering; the manager retains arrow controls and protected visibility. Headers show insertion feedback and cancel edge scrolling when the drag ends or leaves a valid target.
19
+ - `onViewChange` notifies when a subscriber attaches or row references/order change, while callback identity changes alone do not trigger a feedback loop.
20
+
21
+ ### Consumer action
22
+
23
+ Update to 0.17.0 before using `columnState`, `reorderableColumns`, or the
24
+ controlled `columnManager` open state. These column ports are opt-in: existing
25
+ column-order and visibility behavior is unchanged until a consumer supplies
26
+ them. `onViewChange` subscribers receive the corrected attach and identity
27
+ semantics described above.
28
+
3
29
  ## 0.16.0 — 2026-09-11
4
30
 
5
31
  `ConfirmDialogHost` now rides the shared opener primitive instead of its own
package/README.md CHANGED
@@ -150,6 +150,12 @@ const pagination = usePaginatedData({ queryKey, initialCursor: 0, loadPage, getR
150
150
  scroll: { mode: "scroll", thresholdPx: 96, intentTimeoutMs: 1200 } }} />;
151
151
  ```
152
152
 
153
+ URL/source owners can control columns without rebuilding the table: pass
154
+ `columnState={{ order, hidden, onChange }}` and `reorderableColumns`. The
155
+ package then commits both the Columns dialog and header drag through `onChange`.
156
+ The dialog provides drag ordering and labelled arrow controls; columns marked
157
+ `hideable: false` remain visible.
158
+
153
159
  Use application-resolved preferences for `scroll`; `manual` always retains Load
154
160
  more. Numbered exact-page sources use `controlled` with `totalItems`; fully loaded
155
161
  client arrays use local mode or `controlled-local`. Partial server results must
@@ -1,5 +1,5 @@
1
1
  import { AgentPayloadInput } from './copy-types.cjs';
2
- import { f as MatrxDataTableCopyConfig, M as MatrxColumnDef } from '../types-XXbVB1sh.cjs';
2
+ import { f as MatrxDataTableCopyConfig, M as MatrxColumnDef } from '../types-4fmLG5AN.cjs';
3
3
  import 'react';
4
4
 
5
5
  /** Human markdown table of the current view (visible columns × rows). */
@@ -1,5 +1,5 @@
1
1
  import { AgentPayloadInput } from './copy-types.js';
2
- import { f as MatrxDataTableCopyConfig, M as MatrxColumnDef } from '../types-ClaxTaXq.js';
2
+ import { f as MatrxDataTableCopyConfig, M as MatrxColumnDef } from '../types-pZ95iFk5.js';
3
3
  import 'react';
4
4
 
5
5
  /** Human markdown table of the current view (visible columns × rows). */
@@ -1,4 +1,4 @@
1
- import { M as MatrxColumnDef, C as ColumnFiltersState, S as SortState, L as LayeredFilterRule, T as TableSearchMatchMode, a as ColumnFilterValue } from '../types-XXbVB1sh.cjs';
1
+ import { M as MatrxColumnDef, C as ColumnFiltersState, S as SortState, L as LayeredFilterRule, T as TableSearchMatchMode, a as ColumnFilterValue } from '../types-4fmLG5AN.cjs';
2
2
  import 'react';
3
3
  import './copy-types.cjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { M as MatrxColumnDef, C as ColumnFiltersState, S as SortState, L as LayeredFilterRule, T as TableSearchMatchMode, a as ColumnFilterValue } from '../types-ClaxTaXq.js';
1
+ import { M as MatrxColumnDef, C as ColumnFiltersState, S as SortState, L as LayeredFilterRule, T as TableSearchMatchMode, a as ColumnFilterValue } from '../types-pZ95iFk5.js';
2
2
  import 'react';
3
3
  import './copy-types.js';
4
4