Skip to content

Commit b5f7162

Browse files
authored
refactor(core): move <Controls> component to core pkg (#2004)
* refactor(core): move `<Controls>` component to core pkg Signed-off-by: braks <[email protected]> * refactor(controls): remove `vue-flow/controls` Signed-off-by: braks <[email protected]> * chore(changeset): add Signed-off-by: braks <[email protected]> * chore: cleanup Signed-off-by: braks <[email protected]> * chore(changeset): add --------- Signed-off-by: braks <[email protected]>
1 parent 1359e81 commit b5f7162

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+137
-420
lines changed

.changeset/fresh-cars-live.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@vue-flow/core": minor
3+
---
4+
5+
Move `Controls` component into core pkg.

.changeset/pink-toes-happen.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@vue-flow/core": minor
3+
---
4+
5+
Move `<Controls>` component to core pkg

docs/components/DocsRepl.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ const { vueFlowVersion } = useVueFlow()
1111
1212
let css = `@import 'https://cdn.jsdelivr.net/npm/@vue-flow/core@${vueFlowVersion}/dist/style.css';
1313
@import 'https://cdn.jsdelivr.net/npm/@vue-flow/core@${vueFlowVersion}/dist/theme-default.css';
14-
@import 'https://cdn.jsdelivr.net/npm/@vue-flow/controls@latest/dist/style.css';
1514
@import 'https://cdn.jsdelivr.net/npm/@vue-flow/minimap@latest/dist/style.css';
1615
@import 'https://cdn.jsdelivr.net/npm/@vue-flow/node-resizer@latest/dist/style.css';
1716
@@ -67,7 +66,6 @@ await store.setFiles(
6766
// pre-set import map
6867
store.setImportMap({
6968
imports: {
70-
'@vue-flow/controls': `${location.origin}/vue-flow-controls.mjs`,
7169
'@vue-flow/minimap': `${location.origin}/vue-flow-minimap.mjs`,
7270
'@vue-flow/core': `${location.origin}/vue-flow-core.mjs`,
7371
'@vue-flow/node-resizer': `${location.origin}/vue-flow-node-resizer.mjs`,

docs/components/home/flows/Additional.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<script lang="ts" setup>
22
import { ref } from 'vue'
33
import type { Elements } from '@vue-flow/core'
4-
import { Background, Position, VueFlow, useVueFlow } from '@vue-flow/core'
5-
import { Controls } from '@vue-flow/controls'
4+
import { Background, Controls, Position, VueFlow, useVueFlow } from '@vue-flow/core'
65
import { MiniMap } from '@vue-flow/minimap'
76
87
const emit = defineEmits(['pane'])

docs/components/home/flows/Basic.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<script lang="ts" setup>
22
import type { ClassFunc, GraphEdge, GraphNode, StyleFunc } from '@vue-flow/core'
3-
import { Background, ConnectionLineType, VueFlow, useVueFlow } from '@vue-flow/core'
4-
import { Controls } from '@vue-flow/controls'
3+
import { Background, ConnectionLineType, Controls, VueFlow, useVueFlow } from '@vue-flow/core'
54
65
import Cross from '~icons/mdi/window-close'
76

docs/components/home/flows/Nested.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<script lang="ts" setup>
2-
import { Background, ConnectionMode, VueFlow, useVueFlow } from '@vue-flow/core'
3-
import { Controls } from '@vue-flow/controls'
2+
import { Background, ConnectionMode, Controls, VueFlow, useVueFlow } from '@vue-flow/core'
43
import { breakpointsTailwind } from '@vueuse/core'
54
65
const emit = defineEmits(['pane'])

docs/components/home/flows/RGB.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<script lang="ts" setup>
2-
import { Background, VueFlow, useVueFlow } from '@vue-flow/core'
2+
import { Background, Controls, VueFlow, useVueFlow } from '@vue-flow/core'
33
import { breakpointsTailwind } from '@vueuse/core'
4-
import { Controls } from '@vue-flow/controls'
54
import { MiniMap } from '@vue-flow/minimap'
65
import type { MiniMapNodeFunc } from '@vue-flow/minimap'
76

docs/examples/basic/App.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<script setup>
22
import { ref } from 'vue'
3-
import { Background, VueFlow, useVueFlow } from '@vue-flow/core'
4-
import { ControlButton, Controls } from '@vue-flow/controls'
3+
import { Background, ControlButton, Controls, VueFlow, useVueFlow } from '@vue-flow/core'
54
import { MiniMap } from '@vue-flow/minimap'
65
import { initialEdges, initialNodes } from './initial-elements.js'
76
import Icon from './Icon.vue'

docs/examples/nested/App.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<script setup>
22
import { ref } from 'vue'
3-
import { Background, VueFlow } from '@vue-flow/core'
4-
import { Controls } from '@vue-flow/controls'
3+
import { Background, Controls, VueFlow } from '@vue-flow/core'
54
import { MiniMap } from '@vue-flow/minimap'
65
76
const nodes = ref([

docs/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"@stackblitz/sdk": "^1.11.0",
1616
"@vercel/analytics": "^1.3.2",
1717
"@vercel/speed-insights": "^1.0.14",
18-
"@vue-flow/controls": "workspace:*",
1918
"@vue-flow/core": "workspace:*",
2019
"@vue-flow/minimap": "workspace:*",
2120
"@vue-flow/node-resizer": "workspace:*",

0 commit comments

Comments
 (0)