Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: next release #1592

Merged
merged 2 commits into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @vue-flow/core

## 1.40.1

### Patch Changes

- [#1591](https://github.com/bcakmakoglu/vue-flow/pull/1591) [`5eb677b`](https://github.com/bcakmakoglu/vue-flow/commit/5eb677bbbe113f2aa698db3156af38abe7892db3) Thanks [@bcakmakoglu](https://github.com/bcakmakoglu)! - Inline event names

## 1.40.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vue-flow/core",
"version": "1.40.0",
"version": "1.40.1",
"private": false,
"license": "MIT",
"author": "Burak Cakmakoglu<[email protected]>",
Expand Down
64 changes: 30 additions & 34 deletions packages/core/src/types/flow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,35 +237,6 @@ export interface FlowProps {
*/
export type FlowOptions = FlowProps

export type EdgeMouseEvents =
| 'edgeContextMenu'
| 'edgeMouseEnter'
| 'edgeMouseMove'
| 'edgeMouseLeave'
| 'edgeDoubleClick'
| 'edgeClick'
| 'edgeUpdateStart'
| 'edgeUpdateEnd'

export type NodeMouseEvents =
| 'nodeContextMenu'
| 'nodeMouseEnter'
| 'nodeMouseMove'
| 'nodeMouseLeave'
| 'nodeDoubleClick'
| 'nodeClick'

export type NodeDragEvents = 'nodeDragStart' | 'nodeDrag' | 'nodeDragStop'

export type MiniMapNodeEvents =
| 'miniMapNodeClick'
| 'miniMapNodeDoubleClick'
| 'miniMapNodeMouseEnter'
| 'miniMapNodeMouseMove'
| 'miniMapNodeMouseLeave'

export type PaneMouseEvents = 'paneClick' | 'paneContextMenu' | 'paneMouseEnter' | 'paneMouseMove' | 'paneMouseLeave'

export interface FlowEmits {
(event: 'nodesChange', changes: NodeChange[]): void
(event: 'edgesChange', changes: EdgeChange[]): void
Expand Down Expand Up @@ -309,16 +280,41 @@ export interface FlowEmits {
(event: 'viewportChangeEnd', viewport: ViewportTransform): void

(event: 'paneScroll', paneScrollEvent: WheelEvent | undefined): void
(event: PaneMouseEvents, paneMouseEvent: MouseEvent): void
(
event: 'paneClick' | 'paneContextMenu' | 'paneMouseEnter' | 'paneMouseMove' | 'paneMouseLeave',
paneMouseEvent: MouseEvent,
): void

(event: 'edgeUpdate', edgeUpdateEvent: EdgeUpdateEvent): void
(event: EdgeMouseEvents, edgeMouseEvent: EdgeMouseEvent): void
(
event:
| 'edgeContextMenu'
| 'edgeMouseEnter'
| 'edgeMouseMove'
| 'edgeMouseLeave'
| 'edgeDoubleClick'
| 'edgeClick'
| 'edgeUpdateStart'
| 'edgeUpdateEnd',
edgeMouseEvent: EdgeMouseEvent,
): void

(event: NodeMouseEvents, nodeMouseEvent: NodeMouseEvent): void
(
event: 'nodeContextMenu' | 'nodeMouseEnter' | 'nodeMouseMove' | 'nodeMouseLeave' | 'nodeDoubleClick' | 'nodeClick',
nodeMouseEvent: NodeMouseEvent,
): void

(event: NodeDragEvents, nodeDragEvent: NodeDragEvent): void
(event: 'nodeDragStart' | 'nodeDrag' | 'nodeDragStop', nodeDragEvent: NodeDragEvent): void

(event: MiniMapNodeEvents, nodeMouseEvent: NodeMouseEvent): void
(
event:
| 'miniMapNodeClick'
| 'miniMapNodeDoubleClick'
| 'miniMapNodeMouseEnter'
| 'miniMapNodeMouseMove'
| 'miniMapNodeMouseLeave',
nodeMouseEvent: NodeMouseEvent,
): void

/** v-model event definitions */
(event: 'update:modelValue', value: FlowElements): void
Expand Down
Loading