@burdenoff/fluidgrids-fe-sdk 2026.701.4 → 2026.701.5

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.
@@ -1,4 +1,4 @@
1
- export { WorkflowBuilder } from './chunk-QBI22GDG.js';
1
+ export { WorkflowBuilder } from './chunk-KSDJEBNQ.js';
2
2
  import './chunk-7VEOUEIN.js';
3
3
  import './chunk-BQXHJIER.js';
4
4
  import './chunk-KU64CCSV.js';
@@ -9,5 +9,5 @@ import './chunk-WWU2O2SR.js';
9
9
  import './chunk-LUGJJ7LL.js';
10
10
  import './chunk-XQP33UJR.js';
11
11
  import './chunk-Z54K22LP.js';
12
- //# sourceMappingURL=WorkflowBuilder-KV6VFVII.js.map
13
- //# sourceMappingURL=WorkflowBuilder-KV6VFVII.js.map
12
+ //# sourceMappingURL=WorkflowBuilder-EPAPJODR.js.map
13
+ //# sourceMappingURL=WorkflowBuilder-EPAPJODR.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"WorkflowBuilder-KV6VFVII.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"WorkflowBuilder-EPAPJODR.js"}
@@ -10638,22 +10638,37 @@ function useInstallNode() {
10638
10638
  };
10639
10639
  }
10640
10640
  function useUpdateNode() {
10641
+ const globalClient = useGlobalStoreClient();
10642
+ const context = useContext(FluidGridsContext);
10643
+ const workspaceId = context?.workspaceId ?? getFluidGridsConfig().workspaceId;
10644
+ const tenantId = context?.tenantId ?? getFluidGridsConfig().tenantId;
10645
+ const { refetch: refetchInstalled } = useInstalledNodes();
10646
+ const { refreshAvailableNodes } = useRefreshAvailableNodes();
10641
10647
  const [updating, setUpdating] = useState(null);
10648
+ const [installMutation] = useMutation(InstallWorkflowNodeDocument, {
10649
+ client: globalClient
10650
+ });
10642
10651
  const updateNode = useCallback(
10643
- async (node, installationId) => {
10652
+ async (node, _installationId) => {
10644
10653
  try {
10645
10654
  setUpdating(node.id);
10646
- console.log("[useUpdateNode] Update requested:", {
10647
- nodeId: node.id,
10648
- nodeName: node.name,
10649
- installationId,
10650
- newVersion: node.manifestVersion
10655
+ const result = await installMutation({
10656
+ variables: {
10657
+ input: {
10658
+ productId: node.id,
10659
+ workspaceId,
10660
+ organizationId: tenantId,
10661
+ version: node.manifestVersion,
10662
+ manifest: node.manifest
10663
+ }
10664
+ }
10651
10665
  });
10652
- await new Promise((resolve) => setTimeout(resolve, 1e3));
10653
- return {
10654
- success: true,
10655
- message: `Updated ${node.name} successfully`
10656
- };
10666
+ if (result.error || !result.data?.recordAppInstallation) {
10667
+ throw new Error(result.error?.message || "Update failed");
10668
+ }
10669
+ await refreshAvailableNodes();
10670
+ await refetchInstalled();
10671
+ return { success: true };
10657
10672
  } catch (error) {
10658
10673
  console.error("[useUpdateNode] Update failed:", error);
10659
10674
  return {
@@ -10664,7 +10679,7 @@ function useUpdateNode() {
10664
10679
  setUpdating(null);
10665
10680
  }
10666
10681
  },
10667
- []
10682
+ [installMutation, workspaceId, tenantId, refetchInstalled, refreshAvailableNodes]
10668
10683
  );
10669
10684
  return {
10670
10685
  updateNode,
@@ -22070,5 +22085,5 @@ function WorkflowBuilder() {
22070
22085
  }
22071
22086
 
22072
22087
  export { Card2 as Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ConfigSchemaForm, ConnectionFormDialog, ConnectionSelector, FluidGridsProvider, ProviderPicker, TemplateCard, WorkflowBuilder, getProviderForm, listCustomBlocks, registerCustomBlock, resolveUiSpec, stripSubmitActions, useConnection, useConnectionDialog, useConnections, useConnectionsByProvider, useCreateConnection, useFluidGridsContext, useImportWorkflowTemplate, useInitiateOAuth, useNodeExecution, useProviderByKey, useProviderCatalog, useProviders, useWorkflowTemplates };
22073
- //# sourceMappingURL=chunk-QBI22GDG.js.map
22074
- //# sourceMappingURL=chunk-QBI22GDG.js.map
22088
+ //# sourceMappingURL=chunk-KSDJEBNQ.js.map
22089
+ //# sourceMappingURL=chunk-KSDJEBNQ.js.map