chore(deps-dev): update deps-dev and cleanup
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -19,8 +19,8 @@
|
||||
"@types/dagre": "^0.7.48",
|
||||
"@vitejs/plugin-vue": "^4.0.0",
|
||||
"dagre": "^0.8.5",
|
||||
"unplugin-auto-import": "^0.12.1",
|
||||
"vite": "^4.0.4",
|
||||
"unplugin-auto-import": "^0.14.4",
|
||||
"vite": "^4.1.3",
|
||||
"vite-svg-loader": "^3.6.0",
|
||||
"vue": "^3.2.45",
|
||||
"vue-router": "^4.1.6"
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
"devDependencies": {
|
||||
"@vue-flow/core": "workspace:*",
|
||||
"@vitejs/plugin-vue": "^4.0.0",
|
||||
"unplugin-auto-import": "^0.12.1",
|
||||
"vite": "^4.0.4",
|
||||
"unplugin-auto-import": "^0.14.4",
|
||||
"vite": "^4.1.3",
|
||||
"vite-plugin-vue-type-imports": "^0.2.4",
|
||||
"vue-tsc": "^1.0.24"
|
||||
"vue-tsc": "^1.1.5"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
|
||||
@@ -36,11 +36,11 @@
|
||||
"devDependencies": {
|
||||
"@vue-flow/core": "workspace:*",
|
||||
"@vitejs/plugin-vue": "^4.0.0",
|
||||
"unplugin-auto-import": "^0.12.1",
|
||||
"vite": "^4.0.4",
|
||||
"unplugin-auto-import": "^0.14.4",
|
||||
"vite": "^4.1.3",
|
||||
"vite-plugin-vue-type-imports": "^0.2.4",
|
||||
"vite-svg-loader": "^3.6.0",
|
||||
"vue-tsc": "^1.0.24"
|
||||
"vue-tsc": "^1.1.5"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
"vue": "^3.2.25"
|
||||
},
|
||||
"dependencies": {
|
||||
"@vueuse/core": "^9.11.0",
|
||||
"@vueuse/core": "^9.13.0",
|
||||
"d3-drag": "^3.0.0",
|
||||
"d3-selection": "^3.0.0",
|
||||
"d3-zoom": "^3.0.0"
|
||||
@@ -51,14 +51,13 @@
|
||||
"autoprefixer": "^10.4.13",
|
||||
"postcss": "^8.4.21",
|
||||
"postcss-cli": "^10.1.0",
|
||||
"postcss-nested": "^6.0.0",
|
||||
"postcss-nested": "^6.0.1",
|
||||
"ts-patch": "^2.1.0",
|
||||
"typescript-transform-paths": "^3.4.6",
|
||||
"unplugin-auto-import": "^0.12.1",
|
||||
"unplugin-vue-macros": "^1.4.1",
|
||||
"vite": "^4.0.4",
|
||||
"vite-plugin-vue-type-imports": "0.2.0",
|
||||
"vue-tsc": "^1.0.24"
|
||||
"unplugin-auto-import": "^0.14.4",
|
||||
"unplugin-vue-macros": "^1.8.2",
|
||||
"vite": "^4.1.3",
|
||||
"vue-tsc": "^1.1.5"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
|
||||
@@ -20,28 +20,24 @@ const {
|
||||
elevateEdgesOnSelect,
|
||||
} = $(useVueFlow())
|
||||
|
||||
const sourceNode = $(
|
||||
controlledComputed(
|
||||
() => connectionStartHandle?.nodeId,
|
||||
() => {
|
||||
if (connectionStartHandle?.nodeId) return findNode(connectionStartHandle.nodeId)
|
||||
const sourceNode = controlledComputed(
|
||||
() => connectionStartHandle?.nodeId,
|
||||
() => {
|
||||
if (connectionStartHandle?.nodeId) return findNode(connectionStartHandle.nodeId)
|
||||
|
||||
return false
|
||||
},
|
||||
),
|
||||
return false
|
||||
},
|
||||
)
|
||||
|
||||
const connectionLineVisible = $(
|
||||
controlledComputed(
|
||||
() => connectionStartHandle?.nodeId,
|
||||
() =>
|
||||
!!(
|
||||
sourceNode &&
|
||||
(typeof sourceNode.connectable === 'undefined' ? nodesConnectable : sourceNode.connectable) &&
|
||||
connectionStartHandle?.nodeId &&
|
||||
connectionStartHandle?.type
|
||||
),
|
||||
),
|
||||
const connectionLineVisible = controlledComputed(
|
||||
() => connectionStartHandle?.nodeId,
|
||||
() =>
|
||||
!!(
|
||||
sourceNode.value &&
|
||||
(typeof sourceNode.value.connectable === 'undefined' ? nodesConnectable : sourceNode.value.connectable) &&
|
||||
connectionStartHandle?.nodeId &&
|
||||
connectionStartHandle?.type
|
||||
),
|
||||
)
|
||||
|
||||
const groups = controlledComputed(
|
||||
@@ -94,24 +90,22 @@ export default {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<template v-for="group of groups" :key="group.level">
|
||||
<svg class="vue-flow__edges vue-flow__container" :style="`z-index: ${group.level}`">
|
||||
<MarkerDefinitions v-if="group.isMaxLevel" />
|
||||
<g>
|
||||
<EdgeWrapper
|
||||
v-for="edge of group.edges"
|
||||
:id="edge.id"
|
||||
:key="edge.id"
|
||||
:edge="edge"
|
||||
:type="getType(edge.type, edge.template)"
|
||||
:name="edge.type || 'default'"
|
||||
:selectable="selectable(edge.selectable)"
|
||||
:updatable="updatable(edge.updatable)"
|
||||
:focusable="focusable(edge.focusable)"
|
||||
/>
|
||||
</g>
|
||||
</svg>
|
||||
</template>
|
||||
<svg v-for="group of groups" :key="group.level" class="vue-flow__edges vue-flow__container" :style="`z-index: ${group.level}`">
|
||||
<MarkerDefinitions v-if="group.isMaxLevel" />
|
||||
<g>
|
||||
<EdgeWrapper
|
||||
v-for="edge of group.edges"
|
||||
:id="edge.id"
|
||||
:key="edge.id"
|
||||
:edge="edge"
|
||||
:type="getType(edge.type, edge.template)"
|
||||
:name="edge.type || 'default'"
|
||||
:selectable="selectable(edge.selectable)"
|
||||
:updatable="updatable(edge.updatable)"
|
||||
:focusable="focusable(edge.focusable)"
|
||||
/>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
<svg v-if="connectionLineVisible && !!sourceNode" class="vue-flow__edges vue-flow__connectionline vue-flow__container">
|
||||
<ConnectionLine :source-node="sourceNode" />
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"declaration": true,
|
||||
"declarationDir": "./dist",
|
||||
"types": ["vite", "vue/macros"],
|
||||
"types": ["vite", "vue/macros", "unplugin-vue-macros/macros-global"],
|
||||
"jsx": "preserve",
|
||||
"paths": {
|
||||
"~/*": ["src/*"]
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { resolve } from 'path'
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import vueTypes from 'vite-plugin-vue-type-imports'
|
||||
import VueMacros from 'unplugin-vue-macros/vite'
|
||||
import AutoImport from 'unplugin-auto-import/vite'
|
||||
import replace from '@rollup/plugin-replace'
|
||||
@@ -41,14 +40,20 @@ export default defineConfig({
|
||||
},
|
||||
plugins: [
|
||||
VueMacros({
|
||||
betterDefine: true,
|
||||
hoistStatic: false,
|
||||
setupBlock: false,
|
||||
shortEmits: false,
|
||||
defineModel: false,
|
||||
definePropsRefs: false,
|
||||
setupComponent: false,
|
||||
setupSFC: false,
|
||||
exportProps: false,
|
||||
plugins: {
|
||||
vue: vue({
|
||||
reactivityTransform: true,
|
||||
}),
|
||||
},
|
||||
}),
|
||||
vueTypes(),
|
||||
AutoImport({
|
||||
imports: ['vue', '@vueuse/core', 'vue/macros'],
|
||||
dirs: ['./src/utils/**', './src/composables/**', './src/context/**', './src/store/**', './src/components/Edges/utils/**'],
|
||||
|
||||
@@ -41,10 +41,10 @@
|
||||
"@types/d3-zoom": "^3.0.1",
|
||||
"@vue-flow/core": "workspace:*",
|
||||
"@vitejs/plugin-vue": "^4.0.0",
|
||||
"unplugin-auto-import": "^0.12.1",
|
||||
"vite": "^4.0.4",
|
||||
"unplugin-auto-import": "^0.14.4",
|
||||
"vite": "^4.1.3",
|
||||
"vite-plugin-vue-type-imports": "^0.2.4",
|
||||
"vue-tsc": "^1.0.24"
|
||||
"vue-tsc": "^1.1.5"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
|
||||
@@ -41,10 +41,10 @@
|
||||
"@types/d3-selection": "^3.0.3",
|
||||
"@vue-flow/core": "workspace:*",
|
||||
"@vitejs/plugin-vue": "^4.0.0",
|
||||
"unplugin-auto-import": "^0.12.1",
|
||||
"vite": "^4.0.4",
|
||||
"unplugin-auto-import": "^0.14.4",
|
||||
"vite": "^4.1.3",
|
||||
"vite-plugin-vue-type-imports": "^0.2.4",
|
||||
"vue-tsc": "^1.0.24"
|
||||
"vue-tsc": "^1.1.5"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
"devDependencies": {
|
||||
"@vue-flow/core": "workspace:*",
|
||||
"@vitejs/plugin-vue": "^4.0.0",
|
||||
"unplugin-auto-import": "^0.12.1",
|
||||
"vite": "^4.0.4",
|
||||
"unplugin-auto-import": "^0.14.4",
|
||||
"vite": "^4.1.3",
|
||||
"vite-plugin-vue-type-imports": "^0.2.4",
|
||||
"vue-tsc": "^1.0.24"
|
||||
"vue-tsc": "^1.1.5"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
|
||||
@@ -37,10 +37,10 @@
|
||||
"@vitejs/plugin-vue": "^4.0.0",
|
||||
"ts-patch": "^2.1.0",
|
||||
"typescript-transform-paths": "^3.4.6",
|
||||
"unplugin-auto-import": "^0.12.1",
|
||||
"vite": "^4.0.4",
|
||||
"unplugin-auto-import": "^0.14.4",
|
||||
"vite": "^4.1.3",
|
||||
"vite-plugin-vue-type-imports": "^0.2.4",
|
||||
"vue-tsc": "^1.0.24"
|
||||
"vue-tsc": "^1.1.5"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@vue-flow/core": "^1.12.2",
|
||||
|
||||
@@ -44,8 +44,8 @@
|
||||
"autoprefixer": "^10.4.13",
|
||||
"postcss": "^8.4.21",
|
||||
"postcss-cli": "^10.1.0",
|
||||
"postcss-nested": "^6.0.0",
|
||||
"vite": "^4.0.4"
|
||||
"postcss-nested": "^6.0.1",
|
||||
"vite": "^4.1.3"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
|
||||
976
pnpm-lock.yaml
generated
976
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user