Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@xyflow/svelte

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xyflow/svelte - npm Package Compare versions

Comparing version 0.0.18 to 0.0.19

dist/lib/hooks/useUpdateNodeInternals.d.ts

1

dist/lib/components/EdgeWrapper/EdgeWrapper.svelte.d.ts

@@ -7,2 +7,3 @@ import { SvelteComponentTyped } from "svelte";

type?: string | undefined;
hidden?: boolean | undefined;
selected?: boolean | undefined;

@@ -9,0 +10,0 @@ selectable?: boolean | undefined;

@@ -10,2 +10,3 @@ import { SvelteComponentTyped } from "svelte";

targetPosition?: import("@xyflow/system").Position | undefined;
hidden?: boolean | undefined;
selected?: boolean | undefined;

@@ -12,0 +13,0 @@ dragging?: boolean | undefined;

2

dist/lib/components/NodeWrapper/types.d.ts
import type { XYPosition } from '@xyflow/system';
import type { Node } from '../../types';
export type NodeWrapperProps = Pick<Node, 'id' | 'class' | 'connectable' | 'data' | 'draggable' | 'dragging' | 'positionAbsolute' | 'selected' | 'selectable' | 'style' | 'type' | 'width' | 'height' | 'sourcePosition' | 'targetPosition' | 'dragHandle'> & {
export type NodeWrapperProps = Pick<Node, 'id' | 'class' | 'connectable' | 'data' | 'draggable' | 'dragging' | 'positionAbsolute' | 'selected' | 'selectable' | 'style' | 'type' | 'width' | 'height' | 'sourcePosition' | 'targetPosition' | 'dragHandle' | 'hidden'> & {
positionOrigin?: XYPosition;

@@ -5,0 +5,0 @@ 'on:nodeclick'?: (event: MouseEvent) => void;

@@ -5,3 +5,2 @@ import { get, writable } from 'svelte/store';

export function useSvelteFlow() {
// how to get the new context here? fit view doesn't work, because the store is not updated (uses old nodes store)
const { zoomIn, zoomOut, fitView, snapGrid, transform, width, height, maxZoom, panZoom, nodes, edges } = useStore();

@@ -8,0 +7,0 @@ const transformValues = get(transform);

@@ -14,2 +14,3 @@ export { SvelteFlow } from './container/SvelteFlow';

export * from './hooks/useSvelteFlow';
export * from './hooks/useUpdateNodeInternals';
export type { Edge, EdgeProps, EdgeTypes, DefaultEdgeOptions } from './types/edges';

@@ -16,0 +17,0 @@ export type { HandleComponentProps, FitViewOptions } from './types/general';

@@ -19,2 +19,3 @@ // main component

export * from './hooks/useSvelteFlow';
export * from './hooks/useUpdateNodeInternals';
// system types

@@ -21,0 +22,0 @@ export { ConnectionLineType, MarkerType, ConnectionMode, PanOnScrollMode, SelectionMode, Position } from '@xyflow/system';

@@ -30,3 +30,3 @@ import type { SvelteComponent, ComponentType } from 'svelte';

export type DefaultEdgeOptions = DefaultEdgeOptionsBase<Edge>;
export type EdgeLayouted = Pick<Edge, 'type' | 'id' | 'data' | 'style' | 'source' | 'target' | 'animated' | 'selected' | 'selectable' | 'label' | 'labelStyle' | 'interactionWidth' | 'markerStart' | 'markerEnd' | 'sourceHandle' | 'targetHandle' | 'ariaLabel'> & EdgePosition & {
export type EdgeLayouted = Pick<Edge, 'type' | 'id' | 'data' | 'style' | 'source' | 'target' | 'animated' | 'selected' | 'selectable' | 'label' | 'labelStyle' | 'interactionWidth' | 'markerStart' | 'markerEnd' | 'sourceHandle' | 'targetHandle' | 'ariaLabel' | 'hidden'> & EdgePosition & {
sourceHandleId?: string | null;

@@ -33,0 +33,0 @@ targetHandleId?: string | null;

{
"name": "@xyflow/svelte",
"version": "0.0.18",
"version": "0.0.19",
"description": "Svelte Flow - A highly customizable Svelte library for building node-based editors, workflow systems, diagrams and more.",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc