update(dist): Remove rollup and use vite to build lib

* Remove custom tsconfig paths to avoid resolving issues on published package
This commit is contained in:
Braks
2021-11-06 08:54:35 +01:00
parent 64df75d405
commit 61779638ac
59 changed files with 282 additions and 177 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
import { Ref } from 'vue'
import { ElementId, FlowTransform } from './types'
import { D3Zoom, D3Selection, PanOnScrollMode, KeyCode } from './panel'
import { Connection } from '@/src'
import { Connection } from './connection'
export type UpdateNodeInternals = (nodeId: ElementId) => void
+1 -1
View File
@@ -1,5 +1,5 @@
import { ElementId, Position } from './types'
import { HandleType } from '~/types/handle'
import { HandleType } from './handle'
export enum ConnectionLineType {
Bezier = 'default',
+2 -2
View File
@@ -1,4 +1,4 @@
import { DefineComponent, VNode } from 'vue'
import { DefineComponent } from 'vue'
import { ArrowHeadType, ElementId, Position } from './types'
import { Connection } from './connection'
@@ -63,7 +63,7 @@ export interface EdgeSmoothStepProps<T = any> extends EdgeProps<T> {
borderRadius?: number
}
export type EdgeType = DefineComponent<EdgeSmoothStepProps>
export type EdgeType = DefineComponent<EdgeSmoothStepProps, any, any, any, any, any>
export type OnEdgeUpdateFunc<T = any> = (oldEdge: Edge<T>, newConnection: Connection) => void
+4 -1
View File
@@ -1,5 +1,8 @@
import { EventHook } from '@vueuse/core'
import { Connection, Edge, Elements, FlowTransform, Node, OnConnectStartParams, FlowInstance } from '../types'
import { Elements, FlowTransform, FlowInstance } from './types'
import { Edge } from './edge'
import { Node } from './node'
import { Connection, OnConnectStartParams } from './connection'
export type FlowHook<T = any> = EventHook<T>
+1 -2
View File
@@ -1,6 +1,5 @@
import { DefineComponent } from 'vue'
import { XYPosition } from './types'
import { ElementId, Position } from './index'
import { XYPosition, ElementId, Position } from './types'
export interface Node<T = any> {
id: ElementId
+1 -1
View File
@@ -5,7 +5,7 @@ import { ConnectionMode, OnConnectEndFunc, OnConnectFunc, OnConnectStartFunc, On
import { Edge } from './edge'
import { Node, NodeExtent, TranslateExtent } from './node'
import { FlowActions } from './actions'
import { D3Selection, D3Zoom, D3ZoomHandler } from '~/types/panel'
import { D3Selection, D3Zoom, D3ZoomHandler } from './panel'
export interface FlowState {
dimensions: Dimensions
+2 -3
View File
@@ -1,9 +1,8 @@
// @ts-nocheck
import { CSSProperties, HTMLAttributes } from 'vue'
import { Edge, EdgeType } from './edge'
import { Node, NodeExtent, NodeType, TranslateExtent } from './node'
import { ConnectionLineType, ConnectionMode } from '~/types/connection'
import { KeyCode, PanOnScrollMode } from '~/types/panel'
import { ConnectionLineType, ConnectionMode } from './connection'
import { KeyCode, PanOnScrollMode } from './panel'
export type ElementId = string