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