@ethanhann/mantine-dataview 0.7.0 → 0.8.0

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.
@@ -98,4 +98,25 @@ export interface UseDataViewReturn<TData> {
98
98
  resetFilter: (columnId: string) => void;
99
99
  /** Clear all column filters. */
100
100
  resetAllFilters: () => void;
101
+ /**
102
+ * Replace an existing row in the current page by identity (`getRowId`). If the row is not on
103
+ * the current page, this is a no-op. A background revalidate follows to reconcile sort
104
+ * position, filter membership, and facet counts with server truth.
105
+ */
106
+ patchRow: (record: TData) => void;
107
+ /**
108
+ * Optimistically insert a newly-created row at the top of the current page. `rowCount` is
109
+ * incremented. A background revalidate follows to reconcile membership and position.
110
+ */
111
+ insertRow: (record: TData) => void;
112
+ /**
113
+ * Optimistically remove a row by ID from the current page. `rowCount` is decremented and
114
+ * selection for that ID is cleared. A background revalidate follows.
115
+ */
116
+ removeRow: (id: string) => void;
117
+ /**
118
+ * True while a background revalidation fetch is in flight after an optimistic mutation.
119
+ * The UI can show a subtle sync indicator without replacing content with skeletons.
120
+ */
121
+ isRevalidating: boolean;
101
122
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethanhann/mantine-dataview",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "A React library that renders server-driven, paginated datasets as a table or card grid, switchable at runtime, built on Mantine v9 and TanStack Table v8",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",