fixed naming & exportyts

This commit is contained in:
peterkogo
2025-01-07 10:24:44 +01:00
parent e9179017ba
commit 0863554271
4 changed files with 4 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ type UseNodeConnectionsParams = {
* @param param.onDisconnect - gets called when a connection is removed
* @returns an array with connections
*/
export function useHandleConnections({
export function useNodeConnections({
type,
handleId,
nodeId,

View File

@@ -24,6 +24,7 @@ export { useOnViewportChange, type UseOnViewportChangeOptions } from './hooks/us
export { useOnSelectionChange, type UseOnSelectionChangeOptions } from './hooks/useOnSelectionChange';
export { useNodesInitialized, type UseNodesInitializedOptions } from './hooks/useNodesInitialized';
export { useHandleConnections } from './hooks/useHandleConnections';
export { useNodeConnections } from './hooks/useNodeConnections';
export { useNodesData } from './hooks/useNodesData';
export { useConnection } from './hooks/useConnection';
export { useInternalNode } from './hooks/useInternalNode';

View File

@@ -33,7 +33,7 @@ const initialConnections: HandleConnection[] = [];
* @todo @param param.onDisconnect - gets called when a connection is removed
* @returns an array with connections
*/
export function useHandleConnections({ type, nodeId, handleId }: UseNodeConnectionsParams) {
export function useNodeConnections({ type, nodeId, handleId }: UseNodeConnectionsParams) {
const { edges, connectionLookup } = useStore();
const _nodeId = getContext<string>('svelteflow__node_id');

View File

@@ -31,6 +31,7 @@ export * from '$lib/hooks/useUpdateNodeInternals';
export * from '$lib/hooks/useConnection';
export * from '$lib/hooks/useNodesEdges';
export * from '$lib/hooks/useHandleConnections';
export * from '$lib/hooks/useNodeConnections';
export * from '$lib/hooks/useNodesData';
export * from '$lib/hooks/useInternalNode';
export { useInitialized, useNodesInitialized } from '$lib/hooks/useInitialized';