@izumisy-tailor/tailor-data-viewer 0.1.11 → 0.1.12

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@izumisy-tailor/tailor-data-viewer",
3
3
  "private": false,
4
- "version": "0.1.11",
4
+ "version": "0.1.12",
5
5
  "type": "module",
6
6
  "description": "Flexible data viewer component for Tailor Platform",
7
7
  "files": [
@@ -212,6 +212,19 @@ export function useTableData(
212
212
  queryVariables.query = queryInput;
213
213
  }
214
214
 
215
+ // Add sort order variable
216
+ if (sortState) {
217
+ queryVariables.order = [
218
+ { field: sortState.field, direction: sortState.direction },
219
+ ];
220
+ }
221
+
222
+ // Add pagination variables
223
+ queryVariables.first = pagination.first;
224
+ if (pagination.after) {
225
+ queryVariables.after = pagination.after;
226
+ }
227
+
215
228
  const result = await executeQuery<GraphQLListResponse>(
216
229
  client,
217
230
  query,