chore(pkg): remove "private" interfaces from components
This commit is contained in:
Vendored
+2
@@ -112,6 +112,7 @@ declare global {
|
|||||||
const useCssModule: typeof import('vue')['useCssModule']
|
const useCssModule: typeof import('vue')['useCssModule']
|
||||||
const useCssVar: typeof import('@vueuse/core')['useCssVar']
|
const useCssVar: typeof import('@vueuse/core')['useCssVar']
|
||||||
const useCssVars: typeof import('vue')['useCssVars']
|
const useCssVars: typeof import('vue')['useCssVars']
|
||||||
|
const useCurrentElement: typeof import('@vueuse/core')['useCurrentElement']
|
||||||
const useCycleList: typeof import('@vueuse/core')['useCycleList']
|
const useCycleList: typeof import('@vueuse/core')['useCycleList']
|
||||||
const useDark: typeof import('@vueuse/core')['useDark']
|
const useDark: typeof import('@vueuse/core')['useDark']
|
||||||
const useDateFormat: typeof import('@vueuse/core')['useDateFormat']
|
const useDateFormat: typeof import('@vueuse/core')['useDateFormat']
|
||||||
@@ -178,6 +179,7 @@ declare global {
|
|||||||
const useRafFn: typeof import('@vueuse/core')['useRafFn']
|
const useRafFn: typeof import('@vueuse/core')['useRafFn']
|
||||||
const useRefHistory: typeof import('@vueuse/core')['useRefHistory']
|
const useRefHistory: typeof import('@vueuse/core')['useRefHistory']
|
||||||
const useResizeObserver: typeof import('@vueuse/core')['useResizeObserver']
|
const useResizeObserver: typeof import('@vueuse/core')['useResizeObserver']
|
||||||
|
const useScreenOrientation: typeof import('@vueuse/core')['useScreenOrientation']
|
||||||
const useScreenSafeArea: typeof import('@vueuse/core')['useScreenSafeArea']
|
const useScreenSafeArea: typeof import('@vueuse/core')['useScreenSafeArea']
|
||||||
const useScriptTag: typeof import('@vueuse/core')['useScriptTag']
|
const useScriptTag: typeof import('@vueuse/core')['useScriptTag']
|
||||||
const useScroll: typeof import('@vueuse/core')['useScroll']
|
const useScroll: typeof import('@vueuse/core')['useScroll']
|
||||||
|
|||||||
Vendored
+2
@@ -119,6 +119,7 @@ declare global {
|
|||||||
const useCssModule: typeof import('vue')['useCssModule']
|
const useCssModule: typeof import('vue')['useCssModule']
|
||||||
const useCssVar: typeof import('@vueuse/core')['useCssVar']
|
const useCssVar: typeof import('@vueuse/core')['useCssVar']
|
||||||
const useCssVars: typeof import('vue')['useCssVars']
|
const useCssVars: typeof import('vue')['useCssVars']
|
||||||
|
const useCurrentElement: typeof import('@vueuse/core')['useCurrentElement']
|
||||||
const useCycleList: typeof import('@vueuse/core')['useCycleList']
|
const useCycleList: typeof import('@vueuse/core')['useCycleList']
|
||||||
const useDark: typeof import('@vueuse/core')['useDark']
|
const useDark: typeof import('@vueuse/core')['useDark']
|
||||||
const useDateFormat: typeof import('@vueuse/core')['useDateFormat']
|
const useDateFormat: typeof import('@vueuse/core')['useDateFormat']
|
||||||
@@ -185,6 +186,7 @@ declare global {
|
|||||||
const useRafFn: typeof import('@vueuse/core')['useRafFn']
|
const useRafFn: typeof import('@vueuse/core')['useRafFn']
|
||||||
const useRefHistory: typeof import('@vueuse/core')['useRefHistory']
|
const useRefHistory: typeof import('@vueuse/core')['useRefHistory']
|
||||||
const useResizeObserver: typeof import('@vueuse/core')['useResizeObserver']
|
const useResizeObserver: typeof import('@vueuse/core')['useResizeObserver']
|
||||||
|
const useScreenOrientation: typeof import('@vueuse/core')['useScreenOrientation']
|
||||||
const useScreenSafeArea: typeof import('@vueuse/core')['useScreenSafeArea']
|
const useScreenSafeArea: typeof import('@vueuse/core')['useScreenSafeArea']
|
||||||
const useScriptTag: typeof import('@vueuse/core')['useScriptTag']
|
const useScriptTag: typeof import('@vueuse/core')['useScriptTag']
|
||||||
const useScroll: typeof import('@vueuse/core')['useScroll']
|
const useScroll: typeof import('@vueuse/core')['useScroll']
|
||||||
|
|||||||
@@ -5,11 +5,9 @@ import { ConnectionLineType, Position } from '../../types'
|
|||||||
import { useVueFlow } from '../../composables'
|
import { useVueFlow } from '../../composables'
|
||||||
import { Slots } from '../../context'
|
import { Slots } from '../../context'
|
||||||
|
|
||||||
interface ConnectionLineProps {
|
const { sourceNode } = defineProps<{
|
||||||
sourceNode: GraphNode
|
sourceNode: GraphNode
|
||||||
}
|
}>()
|
||||||
|
|
||||||
const { sourceNode } = defineProps<ConnectionLineProps>()
|
|
||||||
|
|
||||||
const {
|
const {
|
||||||
getNodes,
|
getNodes,
|
||||||
|
|||||||
@@ -6,16 +6,14 @@ import { ConnectionMode, Position } from '../../types'
|
|||||||
import { connectionExists, getEdgePositions, getHandle, getMarkerId } from '../../utils'
|
import { connectionExists, getEdgePositions, getHandle, getMarkerId } from '../../utils'
|
||||||
import EdgeAnchor from './EdgeAnchor'
|
import EdgeAnchor from './EdgeAnchor'
|
||||||
|
|
||||||
interface EdgeWrapper {
|
const { id, edge, name, selectable, updatable, type } = defineProps<{
|
||||||
id: string
|
id: string
|
||||||
edge: GraphEdge
|
edge: GraphEdge
|
||||||
selectable?: boolean
|
selectable?: boolean
|
||||||
updatable?: boolean
|
updatable?: boolean
|
||||||
type: EdgeComponent | Function | Object | false
|
type: EdgeComponent | Function | Object | false
|
||||||
name: string
|
name: string
|
||||||
}
|
}>()
|
||||||
|
|
||||||
const { id, edge, name, selectable, updatable, type } = defineProps<EdgeWrapper>()
|
|
||||||
|
|
||||||
const { emits, connectionMode, edgeUpdaterRadius, noPanClassName, setState, getEdges, getEdge, getNode, addSelectedEdges } = $(
|
const { emits, connectionMode, edgeUpdaterRadius, noPanClassName, setState, getEdges, getEdge, getNode, addSelectedEdges } = $(
|
||||||
useVueFlow(),
|
useVueFlow(),
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import type { GraphNode, NodeComponent, SnapGrid } from '../../types'
|
|||||||
import { NodeId } from '../../context'
|
import { NodeId } from '../../context'
|
||||||
import { getHandleBounds, getXYZPos } from '../../utils'
|
import { getHandleBounds, getXYZPos } from '../../utils'
|
||||||
|
|
||||||
interface NodeWrapperProps {
|
const { id, type, name, node, parentNode, draggable, selectable, connectable, snapGrid } = defineProps<{
|
||||||
id: string
|
id: string
|
||||||
node: GraphNode
|
node: GraphNode
|
||||||
parentNode?: GraphNode
|
parentNode?: GraphNode
|
||||||
@@ -16,9 +16,7 @@ interface NodeWrapperProps {
|
|||||||
snapGrid?: SnapGrid
|
snapGrid?: SnapGrid
|
||||||
type: NodeComponent | Function | Object | false
|
type: NodeComponent | Function | Object | false
|
||||||
name: string
|
name: string
|
||||||
}
|
}>()
|
||||||
|
|
||||||
const { id, type, name, node, parentNode, draggable, selectable, connectable, snapGrid } = defineProps<NodeWrapperProps>()
|
|
||||||
|
|
||||||
provide(NodeId, id)
|
provide(NodeId, id)
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
interface SelectionRectProps {
|
const { width, height, x, y } = defineProps<{
|
||||||
width: number
|
width: number
|
||||||
height: number
|
height: number
|
||||||
x: number
|
x: number
|
||||||
y: number
|
y: number
|
||||||
}
|
}>()
|
||||||
|
|
||||||
const { width, height, x, y } = defineProps<SelectionRectProps>()
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
|||||||
@@ -4,11 +4,9 @@ import type { MarkerProps, MarkerType } from '../../types/edge'
|
|||||||
import { getMarkerId } from '../../utils'
|
import { getMarkerId } from '../../utils'
|
||||||
import Marker from './Marker.vue'
|
import Marker from './Marker.vue'
|
||||||
|
|
||||||
interface MarkerDefinitionsProps {
|
const { defaultColor = '' } = defineProps<{
|
||||||
defaultColor: string
|
defaultColor: string
|
||||||
}
|
}>()
|
||||||
|
|
||||||
const { defaultColor = '' } = defineProps<MarkerDefinitionsProps>()
|
|
||||||
|
|
||||||
const { edges } = $(useVueFlow())
|
const { edges } = $(useVueFlow())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user