diff --git a/.changeset/chatty-ducks-fetch.md b/.changeset/chatty-ducks-fetch.md deleted file mode 100644 index 6a5b7009..00000000 --- a/.changeset/chatty-ducks-fetch.md +++ /dev/null @@ -1,65 +0,0 @@ ---- -'@vue-flow/core': patch ---- - -⚠️ Deprecate options API utils `addEdge` and `updateEdge`. This utils will be removed soon! - -## Resolve deprecation warnings - -Instead of using these utils, use `addEdges` and `updateEdge` found on the VueFlow store instance. -You receive a store instance by using either a template-ref or listening to the `onPaneReady` event. - -### Example - -```vue - - - -``` diff --git a/.changeset/cyan-boxes-beam.md b/.changeset/cyan-boxes-beam.md deleted file mode 100644 index d0e7e0e6..00000000 --- a/.changeset/cyan-boxes-beam.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@vue-flow/core': minor ---- - -Allow customizing the controls of the viewport and the selection box. - -## Props -- `selectionKeyCode`: You can now set this to `MaybeRef` to enable a selection box without extra button press (need to set `:pan-on-drag="false"` or `:pan-on-drag="[2]"`[RightClick]). -- `panOnDrag`: Can now be a boolean or a number[], this allows you to configure every mouse button as a drag button. [1, 2] would mean that you can drag via middle and right mouse button. -- `panActivationKeyCode`: Key code (or KeyFilter) for activating dragging (useful when using selectionOnDrag). -- `selectionMode`: You can choose if the selection box needs to contain a node fully (`SelectionMode.Full`) or partially (`SelectionMode.Partial`) to select. - -## Events - -- `onSelectionStart`: Emitted when the selection box is started. -- `onSelectionEnd`: Emitted when the selection box is ended. -- `onViewportChangeStart`: Emitted when viewport change has started. -- `onViewportChange`: Emitted when viewport is changed. -- `onViewportChangeEnd`: Emitted when viewport change has ended. diff --git a/.changeset/stupid-vans-act.md b/.changeset/stupid-vans-act.md deleted file mode 100644 index c4c62d4f..00000000 --- a/.changeset/stupid-vans-act.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@vue-flow/core': patch ---- - -Add a11y support to selection box diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index de63d092..a03e5af9 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,92 @@ # @vue-flow/core +## 1.9.0 + +### Minor Changes + +- [#557](https://github.com/bcakmakoglu/vue-flow/pull/557) [`c7897a1`](https://github.com/bcakmakoglu/vue-flow/commit/c7897a1da80a0e22c6e286706de8193db293f433) Thanks [@bcakmakoglu](https://github.com/bcakmakoglu)! - Allow customizing the controls of the viewport and the selection box. + + ## Props + + - `selectionKeyCode`: You can now set this to `MaybeRef` to enable a selection box without extra button press (need to set `:pan-on-drag="false"` or `:pan-on-drag="[2]"`[RightClick]). + - `panOnDrag`: Can now be a boolean or a number[], this allows you to configure every mouse button as a drag button. [1, 2] would mean that you can drag via middle and right mouse button. + - `panActivationKeyCode`: Key code (or KeyFilter) for activating dragging (useful when using selectionOnDrag). + - `selectionMode`: You can choose if the selection box needs to contain a node fully (`SelectionMode.Full`) or partially (`SelectionMode.Partial`) to select. + + ## Events + + - `onSelectionStart`: Emitted when the selection box is started. + - `onSelectionEnd`: Emitted when the selection box is ended. + - `onViewportChangeStart`: Emitted when viewport change has started. + - `onViewportChange`: Emitted when viewport is changed. + - `onViewportChangeEnd`: Emitted when viewport change has ended. + +### Patch Changes + +- [#558](https://github.com/bcakmakoglu/vue-flow/pull/558) [`bac9893`](https://github.com/bcakmakoglu/vue-flow/commit/bac98930da15fe049ab8f1ac65f09dd67e0000fb) Thanks [@bcakmakoglu](https://github.com/bcakmakoglu)! - ⚠️ Deprecate options API utils `addEdge` and `updateEdge`. This utils will be removed soon! + + ## Resolve deprecation warnings + + Instead of using these utils, use `addEdges` and `updateEdge` found on the VueFlow store instance. + You receive a store instance by using either a template-ref or listening to the `onPaneReady` event. + + ### Example + + ```vue + + + + ``` + +- [#557](https://github.com/bcakmakoglu/vue-flow/pull/557) [`c7897a1`](https://github.com/bcakmakoglu/vue-flow/commit/c7897a1da80a0e22c6e286706de8193db293f433) Thanks [@bcakmakoglu](https://github.com/bcakmakoglu)! - Add a11y support to selection box + ## 1.8.0 ### Minor Changes diff --git a/packages/core/package.json b/packages/core/package.json index a901f5f7..bca9a7ba 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@vue-flow/core", - "version": "1.8.0", + "version": "1.9.0", "private": false, "license": "MIT", "author": "Burak Cakmakoglu<78412429+bcakmakoglu@users.noreply.github.com>",