@burdenoff/fluidgrids-fe-sdk 2026.1021.1 → 2026.1021.2

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.
@@ -2,7 +2,7 @@ import { fetchAllNodeEndpointConfigs } from './chunk-XGFADY55.js';
2
2
  import { NodeEndpointConfigsDocument, NodeEndpointConfigDocument, NodeManifestDocument } from './chunk-L2UWPFJM.js';
3
3
  import { useTr } from './chunk-UULVIT25.js';
4
4
  import { getFluidGridsClient } from './chunk-NTWG3CJX.js';
5
- import { useState, useCallback, useEffect, useMemo } from 'react';
5
+ import { useMemo, useState, useCallback, useEffect } from 'react';
6
6
  import { useNavigate } from 'react-router';
7
7
  import { Icon } from '@iconify/react';
8
8
  import { Button } from '@burdenoff/fe-libs/button';
@@ -14,6 +14,14 @@ var NODE_ENDPOINT_CONFIG = NodeEndpointConfigDocument;
14
14
  var NODE_MANIFEST = NodeManifestDocument;
15
15
  function useNodeEndpoints(options = {}) {
16
16
  const { pagination, status = "AVAILABLE", publishType, skip } = options;
17
+ const hasPagination = pagination !== void 0;
18
+ const limit = pagination?.limit;
19
+ const offset = pagination?.offset;
20
+ const page = pagination?.page;
21
+ const requestPagination = useMemo(
22
+ () => hasPagination ? { limit, offset, page } : void 0,
23
+ [hasPagination, limit, offset, page]
24
+ );
17
25
  const [nodes, setNodes] = useState([]);
18
26
  const [paginationData, setPaginationData] = useState();
19
27
  const [loading, setLoading] = useState(!skip);
@@ -26,7 +34,7 @@ function useNodeEndpoints(options = {}) {
26
34
  const client = getFluidGridsClient();
27
35
  const result = await client.query({
28
36
  query: NODE_ENDPOINT_CONFIGS,
29
- variables: { pagination, status, publishType },
37
+ variables: { pagination: requestPagination, status, publishType },
30
38
  fetchPolicy: "cache-first"
31
39
  });
32
40
  setNodes(result.data?.nodeEndpointConfigs?.configs ?? []);
@@ -36,7 +44,7 @@ function useNodeEndpoints(options = {}) {
36
44
  } finally {
37
45
  setLoading(false);
38
46
  }
39
- }, [pagination, status, publishType, skip]);
47
+ }, [requestPagination, status, publishType, skip]);
40
48
  useEffect(() => {
41
49
  fetchData();
42
50
  }, [fetchData]);
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ export { ExecutionsListPage } from './chunk-BEOGOFNQ.js';
8
8
  export { ExecutionDetailPage } from './chunk-YA73BHRQ.js';
9
9
  import './chunk-WQ7CETWI.js';
10
10
  export { HistoryPage } from './chunk-EPYVZPGU.js';
11
- export { NodesPage, fetchAllNodesWithManifests, useLazyNodeManifest, useNodeEndpoint, useNodeEndpoints, useNodeManifest } from './chunk-2LHZM4OB.js';
11
+ export { NodesPage, fetchAllNodesWithManifests, useLazyNodeManifest, useNodeEndpoint, useNodeEndpoints, useNodeManifest } from './chunk-6B6XOZ4V.js';
12
12
  export { DataSinkDashboardPage, ErrorAnalyticsPage, InsightsPage } from './chunk-KZYQPCMK.js';
13
13
  export { SettingsPage } from './chunk-R4BRUKKD.js';
14
14
  export { useDataSinkData, useDataSinks, useInsightsData, useLogStreamDestinationActions, useLogStreamDestinations, useRunReplayActions } from './chunk-5WSBID2F.js';
package/dist/nodes.js CHANGED
@@ -1,4 +1,4 @@
1
- export { NodesPage } from './chunk-2LHZM4OB.js';
1
+ export { NodesPage } from './chunk-6B6XOZ4V.js';
2
2
  import './chunk-XGFADY55.js';
3
3
  import './chunk-L2UWPFJM.js';
4
4
  import './chunk-UULVIT25.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/fluidgrids-fe-sdk",
3
- "version": "2026.1021.1",
3
+ "version": "2026.1021.2",
4
4
  "description": "FluidGrids Workflow Builder SDK - Embeddable visual workflow automation",
5
5
  "type": "module",
6
6
  "imports": {
@@ -151,7 +151,9 @@
151
151
  "typescript-eslint": "^8.24.0",
152
152
  "@graphql-codegen/core": "6.2.2",
153
153
  "yaml": "2.8.3",
154
- "@graphql-codegen/typed-document-node": "7.2.0"
154
+ "@graphql-codegen/typed-document-node": "7.2.0",
155
+ "@types/react-test-renderer": "19.3.0",
156
+ "react-test-renderer": "19.2.6"
155
157
  },
156
158
  "repository": {
157
159
  "type": "git",