@burdenoff/fluidgrids-fe-sdk 2026.1010.1 → 2026.1010.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.
- package/dist/{WorkflowBuilder-AQSWNBKH.js → WorkflowBuilder-YF73DZWP.js} +4 -4
- package/dist/{WorkflowBuilder-AQSWNBKH.js.map → WorkflowBuilder-YF73DZWP.js.map} +1 -1
- package/dist/{chunk-PAZHTUZ4.js → chunk-34KDHOQY.js} +3 -3
- package/dist/{chunk-PAZHTUZ4.js.map → chunk-34KDHOQY.js.map} +1 -1
- package/dist/{chunk-OJ3AVTEY.js → chunk-DBGJT2D5.js} +6 -14
- package/dist/chunk-DBGJT2D5.js.map +1 -0
- package/dist/{chunk-UQYGUZEP.js → chunk-HFCQC4QQ.js} +3 -3
- package/dist/{chunk-UQYGUZEP.js.map → chunk-HFCQC4QQ.js.map} +1 -1
- package/dist/{chunk-PKWVMJFF.js → chunk-UH3L52RJ.js} +3 -3
- package/dist/{chunk-PKWVMJFF.js.map → chunk-UH3L52RJ.js.map} +1 -1
- package/dist/index.js +7 -7
- package/dist/templates.js +2 -2
- package/dist/workflow-builder.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-OJ3AVTEY.js.map +0 -1
|
@@ -28,9 +28,9 @@ import { nanoid as nanoid$1 } from 'nanoid/non-secure';
|
|
|
28
28
|
import { Handle, Position, getBezierPath, MarkerType, useReactFlow, NodeResizer, getConnectedEdges, useStore, useUpdateNodeInternals, useNodeId, ReactFlowProvider, ReactFlow, Background, useOnSelectionChange, MiniMap, EdgeLabelRenderer, getOutgoers, useNodes, useNodesState, useEdgesState, addEdge, Controls, Panel } from '@xyflow/react';
|
|
29
29
|
import { nanoid } from 'nanoid';
|
|
30
30
|
import ReactMarkdown from 'react-markdown';
|
|
31
|
-
import { useShallow, shallow } from 'zustand/shallow';
|
|
32
31
|
import { toast } from 'sonner';
|
|
33
32
|
import { useParams, useNavigate } from 'react-router';
|
|
33
|
+
import { useShallow, shallow } from 'zustand/shallow';
|
|
34
34
|
import { isQuotaExhaustedError } from '@burdenoff/fe-libs/shared/utils';
|
|
35
35
|
import { InfoCircledIcon } from '@radix-ui/react-icons';
|
|
36
36
|
import { ApolloProvider, useQuery, useMutation } from '@apollo/client/react';
|
|
@@ -2958,12 +2958,7 @@ function useNodeExecution() {
|
|
|
2958
2958
|
}
|
|
2959
2959
|
function useDeleteNode() {
|
|
2960
2960
|
const { getNode, getEdges, deleteElements } = useReactFlow();
|
|
2961
|
-
const
|
|
2962
|
-
useShallow((state) => [
|
|
2963
|
-
state.actions.nodes.deleteNode,
|
|
2964
|
-
state.actions.edges.deleteEdge
|
|
2965
|
-
])
|
|
2966
|
-
);
|
|
2961
|
+
const deleteNodes = useFlowStore((state) => state.actions.nodes.deleteNodes);
|
|
2967
2962
|
return useCallback(
|
|
2968
2963
|
(id) => {
|
|
2969
2964
|
const node = getNode(id);
|
|
@@ -2971,12 +2966,9 @@ function useDeleteNode() {
|
|
|
2971
2966
|
const edges = getEdges();
|
|
2972
2967
|
const connectedEdges = getConnectedEdges([node], edges);
|
|
2973
2968
|
deleteElements({ nodes: [node], edges: connectedEdges }).then();
|
|
2974
|
-
|
|
2975
|
-
for (const edge of connectedEdges) {
|
|
2976
|
-
deleteEdge(edge);
|
|
2977
|
-
}
|
|
2969
|
+
deleteNodes([node]);
|
|
2978
2970
|
},
|
|
2979
|
-
[deleteElements, getEdges, getNode,
|
|
2971
|
+
[deleteElements, getEdges, getNode, deleteNodes]
|
|
2980
2972
|
);
|
|
2981
2973
|
}
|
|
2982
2974
|
|
|
@@ -25486,5 +25478,5 @@ var FlowBuilderPage = ({
|
|
|
25486
25478
|
};
|
|
25487
25479
|
|
|
25488
25480
|
export { Card2 as Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ConnectionFormDialog, ConnectionSelector, EntityTagPicker, FLUIDGRIDS_ENTITY_TYPES, FlowBuilderPage, FluidGridsMark, FluidGridsProvider, TemplateCard, buildNodeCheck, buildRequiredNodeTypes, listCustomBlocks, mergeStickyNotes, refetchStoreNodes, registerCustomBlock, resolveUiSpec, stripSubmitActions, tagLabel, useAvailableTags, useConnection, useConnections, useConnectionsByProvider, useCreateConnection, useCreateTag, useDraftEntityTags, useEntityTags, useFluidGridsContext, useImportWorkflowTemplate, useInitiateOAuth, useInstalledNodes, useNodeExecution, useProviders, useReplaceEntityTags, useSearchTags, useTagEntity, useUntagEntity, useWorkflowTemplates };
|
|
25489
|
-
//# sourceMappingURL=chunk-
|
|
25490
|
-
//# sourceMappingURL=chunk-
|
|
25481
|
+
//# sourceMappingURL=chunk-DBGJT2D5.js.map
|
|
25482
|
+
//# sourceMappingURL=chunk-DBGJT2D5.js.map
|