chore: bump versions
This commit is contained in:
committed by
Braks
parent
b8b325e316
commit
d224d59b4d
@@ -1,64 +0,0 @@
|
|||||||
---
|
|
||||||
'@vue-flow/core': minor
|
|
||||||
---
|
|
||||||
|
|
||||||
# What's changed?
|
|
||||||
|
|
||||||
* Add `HandleConnectable` type
|
|
||||||
* Update `connectable` prop of `Handle` to `HandleConnectable` type
|
|
||||||
* Allow to specify if Handles are connectable
|
|
||||||
* any number of connections
|
|
||||||
* none
|
|
||||||
* single connection
|
|
||||||
* or a cb to determine whether the Handle is connectable
|
|
||||||
|
|
||||||
Example:
|
|
||||||
```html
|
|
||||||
<script lang="ts" setup>
|
|
||||||
import { Handle, HandleConnectable } from '@vue-flow/core'
|
|
||||||
|
|
||||||
const handleConnectable: HandleConnectable = (node, connectedEdges) => {
|
|
||||||
console.log(node, connectedEdges)
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
<template>
|
|
||||||
<!-- single connection -->
|
|
||||||
<Handle type="target" position="left" connectable="single" />
|
|
||||||
<div>
|
|
||||||
Custom Node
|
|
||||||
</div>
|
|
||||||
<!-- cb -->
|
|
||||||
<Handle id="a" position="right" :connectable="handleConnectable" />
|
|
||||||
</template>
|
|
||||||
```
|
|
||||||
|
|
||||||
* Update `node.connectable` prop to `HandleConnectable`
|
|
||||||
|
|
||||||
For Example:
|
|
||||||
```js
|
|
||||||
const nodes = ref([
|
|
||||||
{
|
|
||||||
id: '1',
|
|
||||||
position: { x: 0, y: 0 },
|
|
||||||
connectable: 'single' // each handle is only connectable once (default node for example)
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: '2',
|
|
||||||
position: { x: 200, y: 0 },
|
|
||||||
connectable: (node, connectedEdges) => {
|
|
||||||
return true // will allow any number of connections
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: '3',
|
|
||||||
position: { x: 400, y: 0 },
|
|
||||||
connectable: true // will allow any number of connections
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: '4',
|
|
||||||
position: { x: 200, y: 0 },
|
|
||||||
connectable: false // will disable handles
|
|
||||||
}
|
|
||||||
])
|
|
||||||
```
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
---
|
|
||||||
'vueflow': major
|
|
||||||
'@vue-flow/additional-components': patch
|
|
||||||
'@vue-flow/core': patch
|
|
||||||
---
|
|
||||||
|
|
||||||
# What's changed?
|
|
||||||
|
|
||||||
- Add `vueflow` pkg that exports all features
|
|
||||||
|
|
||||||
```vue
|
|
||||||
<script setup>
|
|
||||||
// `vueflow` pkg exports all features, i.e. core + additional components
|
|
||||||
import { VueFlow, Background, MiniMap, Controls } from 'vueflow'
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<VueFlow>
|
|
||||||
<Background />
|
|
||||||
<MiniMap />
|
|
||||||
<Controls />
|
|
||||||
</VueFlow>
|
|
||||||
</template>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Chores
|
|
||||||
- Rename `core` pkg directory to `core` from `vue-flow`
|
|
||||||
- Rename bundle outputs
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
---
|
|
||||||
'@vue-flow/additional-components': minor
|
|
||||||
---
|
|
||||||
|
|
||||||
# What's changed?
|
|
||||||
|
|
||||||
* Add `Panel` component
|
|
||||||
* Wrap `MiniMap` and `Controls` with `Panel`
|
|
||||||
* Add `position` prop to `MiniMap` and `Controls`
|
|
||||||
Example:
|
|
||||||
```vue
|
|
||||||
<VueFlow v-model="elements">
|
|
||||||
<MiniMap position="top-right" />
|
|
||||||
<Controls position="top-left" />
|
|
||||||
</VueFlow>
|
|
||||||
```
|
|
||||||
|
|
||||||
# Bugfixes
|
|
||||||
|
|
||||||
* Fix `MiniMap` and `Controls` cancelling selections
|
|
||||||
@@ -1,60 +0,0 @@
|
|||||||
---
|
|
||||||
'@vue-flow/core': patch
|
|
||||||
---
|
|
||||||
|
|
||||||
# What's changed?
|
|
||||||
|
|
||||||
- Simplify `useHandle` usage
|
|
||||||
- Pass props to the composable as possible refs
|
|
||||||
- Still returns onClick & onMouseDown handlers but only expects mouse event now
|
|
||||||
|
|
||||||
Before:
|
|
||||||
```vue
|
|
||||||
<script lang="ts" setup>
|
|
||||||
import { useHandle, NodeId } from '@vue-flow/core'
|
|
||||||
|
|
||||||
const nodeId = inject(NodeId)
|
|
||||||
|
|
||||||
const handleId = 'my-handle'
|
|
||||||
|
|
||||||
const type = 'source'
|
|
||||||
|
|
||||||
const isValidConnection = () => true
|
|
||||||
|
|
||||||
const { onMouseDown } = useHandle()
|
|
||||||
|
|
||||||
const onMouseDownHandler = (event: MouseEvent) => {
|
|
||||||
onMouseDown(event, handleId, nodeId, type === 'target', isValidConnection, undefined)
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<div @mousedown="onMouseDownHandler" />
|
|
||||||
</template>
|
|
||||||
```
|
|
||||||
|
|
||||||
After:
|
|
||||||
```vue
|
|
||||||
<script lang="ts" setup>
|
|
||||||
import { useHandle, useNode } from '@vue-flow/core'
|
|
||||||
|
|
||||||
const { nodeId } = useNode()
|
|
||||||
|
|
||||||
const handleId = 'my-handle'
|
|
||||||
|
|
||||||
const type = 'source'
|
|
||||||
|
|
||||||
const isValidConnection = () => true
|
|
||||||
|
|
||||||
const { onMouseDown } = useHandle({
|
|
||||||
nodeId,
|
|
||||||
handleId,
|
|
||||||
isValidConnection,
|
|
||||||
type,
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<div @mousedown="onMouseDown" />
|
|
||||||
</template>
|
|
||||||
```
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
---
|
|
||||||
'@vue-flow/core': patch
|
|
||||||
---
|
|
||||||
|
|
||||||
# Bugfixes
|
|
||||||
|
|
||||||
- Edges not returned by getter when `paneReady` event is triggered
|
|
||||||
@@ -1,5 +1,53 @@
|
|||||||
# @vue-flow/additional-components
|
# @vue-flow/additional-components
|
||||||
|
|
||||||
|
## 1.1.0
|
||||||
|
|
||||||
|
### Minor Changes
|
||||||
|
|
||||||
|
- [#311](https://github.com/bcakmakoglu/vue-flow/pull/311) [`2e2c449b`](https://github.com/bcakmakoglu/vue-flow/commit/2e2c449bf60efed7152930962df2f9b5c0037386) Thanks [@bcakmakoglu](https://github.com/bcakmakoglu)! - # What's changed?
|
||||||
|
|
||||||
|
- Add `Panel` component
|
||||||
|
- Wrap `MiniMap` and `Controls` with `Panel`
|
||||||
|
- Add `position` prop to `MiniMap` and `Controls`
|
||||||
|
Example:
|
||||||
|
|
||||||
|
```vue
|
||||||
|
<VueFlow v-model="elements">
|
||||||
|
<MiniMap position="top-right" />
|
||||||
|
<Controls position="top-left" />
|
||||||
|
</VueFlow>
|
||||||
|
```
|
||||||
|
|
||||||
|
# Bugfixes
|
||||||
|
|
||||||
|
- Fix `MiniMap` and `Controls` cancelling selections
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- [#311](https://github.com/bcakmakoglu/vue-flow/pull/311) [`e175cf81`](https://github.com/bcakmakoglu/vue-flow/commit/e175cf8157be1851651d6df0a9e87f732b53de59) Thanks [@bcakmakoglu](https://github.com/bcakmakoglu)! - # What's changed?
|
||||||
|
|
||||||
|
- Add `vueflow` pkg that exports all features
|
||||||
|
|
||||||
|
```vue
|
||||||
|
<script setup>
|
||||||
|
// `vueflow` pkg exports all features, i.e. core + additional components
|
||||||
|
import { VueFlow, Background, MiniMap, Controls } from 'vueflow'
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<VueFlow>
|
||||||
|
<Background />
|
||||||
|
<MiniMap />
|
||||||
|
<Controls />
|
||||||
|
</VueFlow>
|
||||||
|
</template>
|
||||||
|
```
|
||||||
|
|
||||||
|
### Chores
|
||||||
|
|
||||||
|
- Rename `core` pkg directory to `core` from `vue-flow`
|
||||||
|
- Rename bundle outputs
|
||||||
|
|
||||||
## 1.0.0
|
## 1.0.0
|
||||||
|
|
||||||
### Major Changes
|
### Major Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@vue-flow/additional-components",
|
"name": "@vue-flow/additional-components",
|
||||||
"version": "1.0.0",
|
"version": "1.1.0",
|
||||||
"private": false,
|
"private": false,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"author": "Burak Cakmakoglu<78412429+bcakmakoglu@users.noreply.github.com>",
|
"author": "Burak Cakmakoglu<78412429+bcakmakoglu@users.noreply.github.com>",
|
||||||
|
|||||||
@@ -1,5 +1,159 @@
|
|||||||
# @vue-flow/core
|
# @vue-flow/core
|
||||||
|
|
||||||
|
## 1.1.0
|
||||||
|
|
||||||
|
### Minor Changes
|
||||||
|
|
||||||
|
- [#311](https://github.com/bcakmakoglu/vue-flow/pull/311) [`78f9ee1c`](https://github.com/bcakmakoglu/vue-flow/commit/78f9ee1cb77cc00590b8d4529da7cd124ddfc0f6) Thanks [@bcakmakoglu](https://github.com/bcakmakoglu)! - # What's changed?
|
||||||
|
|
||||||
|
- Add `HandleConnectable` type
|
||||||
|
- Update `connectable` prop of `Handle` to `HandleConnectable` type
|
||||||
|
- Allow to specify if Handles are connectable
|
||||||
|
- any number of connections
|
||||||
|
- none
|
||||||
|
- single connection
|
||||||
|
- or a cb to determine whether the Handle is connectable
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<script lang="ts" setup>
|
||||||
|
import { Handle, HandleConnectable } from '@vue-flow/core'
|
||||||
|
|
||||||
|
const handleConnectable: HandleConnectable = (node, connectedEdges) => {
|
||||||
|
console.log(node, connectedEdges)
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<template>
|
||||||
|
<!-- single connection -->
|
||||||
|
<Handle type="target" position="left" connectable="single" />
|
||||||
|
<div>Custom Node</div>
|
||||||
|
<!-- cb -->
|
||||||
|
<Handle id="a" position="right" :connectable="handleConnectable" />
|
||||||
|
</template>
|
||||||
|
```
|
||||||
|
|
||||||
|
- Update `node.connectable` prop to `HandleConnectable`
|
||||||
|
|
||||||
|
For Example:
|
||||||
|
|
||||||
|
```js
|
||||||
|
const nodes = ref([
|
||||||
|
{
|
||||||
|
id: '1',
|
||||||
|
position: { x: 0, y: 0 },
|
||||||
|
connectable: 'single', // each handle is only connectable once (default node for example)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: '2',
|
||||||
|
position: { x: 200, y: 0 },
|
||||||
|
connectable: (node, connectedEdges) => {
|
||||||
|
return true // will allow any number of connections
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: '3',
|
||||||
|
position: { x: 400, y: 0 },
|
||||||
|
connectable: true, // will allow any number of connections
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: '4',
|
||||||
|
position: { x: 200, y: 0 },
|
||||||
|
connectable: false, // will disable handles
|
||||||
|
},
|
||||||
|
])
|
||||||
|
```
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- [#311](https://github.com/bcakmakoglu/vue-flow/pull/311) [`e175cf81`](https://github.com/bcakmakoglu/vue-flow/commit/e175cf8157be1851651d6df0a9e87f732b53de59) Thanks [@bcakmakoglu](https://github.com/bcakmakoglu)! - # What's changed?
|
||||||
|
|
||||||
|
- Add `vueflow` pkg that exports all features
|
||||||
|
|
||||||
|
```vue
|
||||||
|
<script setup>
|
||||||
|
// `vueflow` pkg exports all features, i.e. core + additional components
|
||||||
|
import { VueFlow, Background, MiniMap, Controls } from 'vueflow'
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<VueFlow>
|
||||||
|
<Background />
|
||||||
|
<MiniMap />
|
||||||
|
<Controls />
|
||||||
|
</VueFlow>
|
||||||
|
</template>
|
||||||
|
```
|
||||||
|
|
||||||
|
### Chores
|
||||||
|
|
||||||
|
- Rename `core` pkg directory to `core` from `vue-flow`
|
||||||
|
- Rename bundle outputs
|
||||||
|
|
||||||
|
- [#311](https://github.com/bcakmakoglu/vue-flow/pull/311) [`e1c28a26`](https://github.com/bcakmakoglu/vue-flow/commit/e1c28a26c75a86b8c2790480bb8dadf37ad2ff12) Thanks [@bcakmakoglu](https://github.com/bcakmakoglu)! - # What's changed?
|
||||||
|
|
||||||
|
- Simplify `useHandle` usage
|
||||||
|
- Pass props to the composable as possible refs
|
||||||
|
- Still returns onClick & onMouseDown handlers but only expects mouse event now
|
||||||
|
|
||||||
|
Before:
|
||||||
|
|
||||||
|
```vue
|
||||||
|
<script lang="ts" setup>
|
||||||
|
import { useHandle, NodeId } from '@vue-flow/core'
|
||||||
|
|
||||||
|
const nodeId = inject(NodeId)
|
||||||
|
|
||||||
|
const handleId = 'my-handle'
|
||||||
|
|
||||||
|
const type = 'source'
|
||||||
|
|
||||||
|
const isValidConnection = () => true
|
||||||
|
|
||||||
|
const { onMouseDown } = useHandle()
|
||||||
|
|
||||||
|
const onMouseDownHandler = (event: MouseEvent) => {
|
||||||
|
onMouseDown(event, handleId, nodeId, type === 'target', isValidConnection, undefined)
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div @mousedown="onMouseDownHandler" />
|
||||||
|
</template>
|
||||||
|
```
|
||||||
|
|
||||||
|
After:
|
||||||
|
|
||||||
|
```vue
|
||||||
|
<script lang="ts" setup>
|
||||||
|
import { useHandle, useNode } from '@vue-flow/core'
|
||||||
|
|
||||||
|
const { nodeId } = useNode()
|
||||||
|
|
||||||
|
const handleId = 'my-handle'
|
||||||
|
|
||||||
|
const type = 'source'
|
||||||
|
|
||||||
|
const isValidConnection = () => true
|
||||||
|
|
||||||
|
const { onMouseDown } = useHandle({
|
||||||
|
nodeId,
|
||||||
|
handleId,
|
||||||
|
isValidConnection,
|
||||||
|
type,
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div @mousedown="onMouseDown" />
|
||||||
|
</template>
|
||||||
|
```
|
||||||
|
|
||||||
|
- [#311](https://github.com/bcakmakoglu/vue-flow/pull/311) [`08ad1735`](https://github.com/bcakmakoglu/vue-flow/commit/08ad17356f5fbd50255af27f7c482da756eda4aa) Thanks [@bcakmakoglu](https://github.com/bcakmakoglu)! - # Bugfixes
|
||||||
|
|
||||||
|
- Edges not returned by getter when `paneReady` event is triggered
|
||||||
|
|
||||||
## 1.0.0
|
## 1.0.0
|
||||||
|
|
||||||
### Major Changes
|
### Major Changes
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@vue-flow/core",
|
"name": "@vue-flow/core",
|
||||||
"version": "1.0.0",
|
"version": "1.1.0",
|
||||||
"private": false,
|
"private": false,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"author": "Burak Cakmakoglu<78412429+bcakmakoglu@users.noreply.github.com>",
|
"author": "Burak Cakmakoglu<78412429+bcakmakoglu@users.noreply.github.com>",
|
||||||
|
|||||||
@@ -4,6 +4,40 @@
|
|||||||
|
|
||||||
### Major Changes
|
### Major Changes
|
||||||
|
|
||||||
|
- [#311](https://github.com/bcakmakoglu/vue-flow/pull/311) [`e175cf81`](https://github.com/bcakmakoglu/vue-flow/commit/e175cf8157be1851651d6df0a9e87f732b53de59) Thanks [@bcakmakoglu](https://github.com/bcakmakoglu)! - # What's changed?
|
||||||
|
|
||||||
|
- Add `vueflow` pkg that exports all features
|
||||||
|
|
||||||
|
```vue
|
||||||
|
<script setup>
|
||||||
|
// `vueflow` pkg exports all features, i.e. core + additional components
|
||||||
|
import { VueFlow, Background, MiniMap, Controls } from 'vueflow'
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<VueFlow>
|
||||||
|
<Background />
|
||||||
|
<MiniMap />
|
||||||
|
<Controls />
|
||||||
|
</VueFlow>
|
||||||
|
</template>
|
||||||
|
```
|
||||||
|
|
||||||
|
### Chores
|
||||||
|
|
||||||
|
- Rename `core` pkg directory to `core` from `vue-flow`
|
||||||
|
- Rename bundle outputs
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- Updated dependencies [[`78f9ee1c`](https://github.com/bcakmakoglu/vue-flow/commit/78f9ee1cb77cc00590b8d4529da7cd124ddfc0f6), [`e175cf81`](https://github.com/bcakmakoglu/vue-flow/commit/e175cf8157be1851651d6df0a9e87f732b53de59), [`2e2c449b`](https://github.com/bcakmakoglu/vue-flow/commit/2e2c449bf60efed7152930962df2f9b5c0037386), [`e1c28a26`](https://github.com/bcakmakoglu/vue-flow/commit/e1c28a26c75a86b8c2790480bb8dadf37ad2ff12), [`08ad1735`](https://github.com/bcakmakoglu/vue-flow/commit/08ad17356f5fbd50255af27f7c482da756eda4aa)]:
|
||||||
|
- @vue-flow/core@1.1.0
|
||||||
|
- @vue-flow/additional-components@1.1.0
|
||||||
|
|
||||||
|
## 1.0.0
|
||||||
|
|
||||||
|
### Major Changes
|
||||||
|
|
||||||
- [#305](https://github.com/bcakmakoglu/vue-flow/pull/305) [`939bff50`](https://github.com/bcakmakoglu/vue-flow/commit/939bff503039af3b790160640548ddde984cf2bc) Thanks [@bcakmakoglu](https://github.com/bcakmakoglu)! - # What's changed?
|
- [#305](https://github.com/bcakmakoglu/vue-flow/pull/305) [`939bff50`](https://github.com/bcakmakoglu/vue-flow/commit/939bff503039af3b790160640548ddde984cf2bc) Thanks [@bcakmakoglu](https://github.com/bcakmakoglu)! - # What's changed?
|
||||||
|
|
||||||
- Simplify edge path calculations
|
- Simplify edge path calculations
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "vueflow",
|
"name": "vueflow",
|
||||||
"version": "0.0.1",
|
"version": "1.0.0",
|
||||||
"private": false,
|
"private": false,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"author": "Burak Cakmakoglu<78412429+bcakmakoglu@users.noreply.github.com>",
|
"author": "Burak Cakmakoglu<78412429+bcakmakoglu@users.noreply.github.com>",
|
||||||
|
|||||||
Reference in New Issue
Block a user