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

[pull] main from xyflow:main #9

Open
wants to merge 1,139 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1139 commits
Select commit Hold shift + click to select a range
4fa3a87
refactor(updates): only trigger dim updates when dim changed
moklick Apr 11, 2024
1c74eb1
removed usage of movementX and movementY and calculate delta by hand
peterkogo Apr 11, 2024
6edd512
renamed now to current
peterkogo Apr 11, 2024
7d24127
added isValidConnection on Handle component
peterkogo Apr 11, 2024
e25c330
removed console.log
peterkogo Apr 11, 2024
46a8b95
Merge pull request #4142 from xyflow/refactor/internal-node-updates
moklick Apr 11, 2024
8897c2a
chore(packages): bump
moklick Apr 11, 2024
3f4cd6d
Merge pull request #4141 from xyflow/next
moklick Apr 11, 2024
72d775b
simplified resize events
peterkogo Apr 11, 2024
256fad3
removed consolelog
peterkogo Apr 11, 2024
05ac4ef
Merge branch 'next' into internal-fix-resizer
peterkogo Apr 11, 2024
979fe7d
broken parent expand on resize but almost there
peterkogo Apr 11, 2024
8a56311
fix(intersection-helpers): use correct positions closes #4138
moklick Apr 15, 2024
28f4b4e
chore(changelog): update
moklick Apr 15, 2024
69decb5
Merge pull request #4158 from xyflow/fix/intersection-helper-positions
moklick Apr 15, 2024
f067740
Merge branch 'next' into internal-fix-resizer
peterkogo Apr 15, 2024
c5f394e
use evaluateNodePosition for parentExpand
peterkogo Apr 15, 2024
ccf6578
added parentLookup
peterkogo Apr 15, 2024
87086e9
added correct expandParent offset of children
peterkogo Apr 15, 2024
81bdaf6
prevent falsely adjusting currently dragged item on parentExpand
peterkogo Apr 15, 2024
53ea72e
chore(examples): cleanup
moklick Apr 16, 2024
e2ff509
fix(svelte): re-observe nodes when not initialized close #4160
moklick Apr 16, 2024
80aa168
chore(svelte): bump
moklick Apr 16, 2024
cd0585c
Merge branch 'svelte4' into next
moklick Apr 16, 2024
b2b23a9
Merge pull request #4143 from xyflow/fix-minimap-panning
moklick Apr 16, 2024
714d30b
fixed bug with expanding parent, made adjustments to evaluateNodePosi…
peterkogo Apr 16, 2024
aad6de5
simplified handleExpandParent, removed isParent, improved some functions
peterkogo Apr 16, 2024
2798700
renamed newPosition to nextPosition, removed comment
peterkogo Apr 16, 2024
2102c17
refactor(xydrag): use map for drag items
moklick Apr 16, 2024
5af34fd
fix(react): use equlity check for adopt user nodes
moklick Apr 16, 2024
e584b68
Merge pull request #4146 from xyflow/internal-fix-resizer
moklick Apr 16, 2024
f242494
Merge branch 'next' into refactor/xy-drag-use-map
moklick Apr 16, 2024
3348194
refactor(xydrag): cleanup
moklick Apr 16, 2024
5db4bd4
refactor(xydrag): cleanup
moklick Apr 16, 2024
eafb3c5
refactor(xydrag): cleanup
moklick Apr 16, 2024
6181c2d
Merge pull request #4166 from xyflow/refactor/xy-drag-use-map
moklick Apr 16, 2024
fca0dd7
fix(react): return user nodes for selection change handlers closes #3904
moklick Apr 17, 2024
28a2f8d
chore(react): add redux example
moklick Apr 17, 2024
6bab47f
refactor(node-selection): cleanup
moklick Apr 17, 2024
12c081a
chore(useReactFlow): cleanup
moklick Apr 17, 2024
93736c1
chore(changelog): update
moklick Apr 17, 2024
c798d65
Merge pull request #4168 from xyflow/refactor/node-selection
moklick Apr 17, 2024
6494c3f
call `onEnd` in `end` drag event hanlder in XYResizer
tonyf Apr 18, 2024
356737d
Merge pull request #4176 from tonyf/tonyf/node-resizer
moklick Apr 18, 2024
6c30686
refactor(utils): cleanup getPositionWithOrigin
moklick Apr 18, 2024
b6f458f
chore(utils): cleanup
moklick Apr 18, 2024
4a7ba3f
refactor(react): cleanup provider
moklick Apr 18, 2024
a0a046e
Do not reset nodes and edges. They are controlled by the user.
darabos Apr 18, 2024
973a3dd
fix(react): node observation #4064 (#4182)
moklick Apr 18, 2024
7e8bcd8
refactor(react): add setAttributes for dimension changes
moklick Apr 22, 2024
d0e07b2
chore(packages): bump
moklick Apr 22, 2024
40937c3
refactor(updateNode): replace false as default closes #4164
moklick Apr 22, 2024
a6c0bdc
Merge pull request #4193 from xyflow/next
moklick Apr 22, 2024
72582b0
Move node EventMap to types and use createEventDispatcher from svelte
RedPhoenixQ Apr 22, 2024
a7b6789
fix(react): handle setNodes batching in provider #4147
moklick Apr 25, 2024
95fd22d
chore(BatchProvider): cleanup
moklick Apr 25, 2024
3a23a59
chore(BatchProvider): cleanup
moklick Apr 25, 2024
0b684a7
chore(changelog): update
moklick Apr 25, 2024
d376583
Merge pull request #4209 from xyflow/fix/batching-provider
moklick Apr 25, 2024
972da58
fix(react): useNodesInitialized true when nodes measured closes #4202
moklick Apr 25, 2024
8c784c2
chore(react): bump
moklick Apr 25, 2024
c318288
Merge pull request #4212 from xyflow/next
moklick Apr 25, 2024
7501eac
fix(react): default node updates closes #4202
moklick Apr 29, 2024
930fe79
fix(react): export KeyCode type from system
moklick Apr 29, 2024
860128f
refactor(react): cleanup useReactFlow
moklick Apr 29, 2024
d23f593
Merge pull request #4219 from xyflow/fix/defaultnode-updates
moklick Apr 29, 2024
73913f0
Merge pull request #4220 from xyflow/fix/react-export-keycode
moklick Apr 29, 2024
962db70
Merge branch 'next' into refactor/use-react-flow
moklick Apr 29, 2024
5c57be6
Merge pull request #4221 from xyflow/refactor/use-react-flow
moklick Apr 29, 2024
eb229d8
Make handleId and isTarget reactive.
darabos Apr 29, 2024
eec2a69
fix typing for UpdateNodeInternals
DenizUgur Apr 29, 2024
a9dfd45
fix(system): dont break touch pan with panOnDrag is an array
moklick Apr 30, 2024
d1b5070
fix(system): pinch zoom on windows #3759
moklick Apr 30, 2024
8f3b56e
Merge pull request #4229 from xyflow/fix/react-pan-win-touch
moklick Apr 30, 2024
b67ff60
Merge pull request #4226 from DenizUgur/update-node-internals-typing
moklick Apr 30, 2024
170ef68
chore(react): changelog
moklick Apr 30, 2024
47da7a1
Merge pull request #4195 from RedPhoenixQ/node-event-types
moklick May 2, 2024
96efa4e
Merge pull request #4180 from darabos/patch-1
moklick May 2, 2024
2534a26
Merge pull request #4224 from darabos/patch-2
moklick May 2, 2024
bd95cc1
Merge pull request #4144 from xyflow/svelte-handle-valid-connection
moklick May 2, 2024
d4bfea9
chore(svelte): cleanup examples
moklick May 2, 2024
00cbf22
fix(svelte): only update node dimension attributes when necessary
moklick May 2, 2024
3b940ac
fix(svelte): use correct updateNodeInternals API
moklick May 2, 2024
f2f2c3c
feat(svelte): add fitViewOptions for Controls closes #4201
moklick May 2, 2024
534db65
feat(svelte): add getInternalNode and useInternalNode
moklick May 2, 2024
9984dd3
refactor(svelte): add quotes to edge marker urls
moklick May 2, 2024
e1ef456
test(svelte): nodeDragThreshold=0 for node tests
moklick May 2, 2024
51ab674
Merge pull request #4238 from xyflow/svelte4next
moklick May 2, 2024
ce9ce1d
fix(system): return user nodes in node drag/click handlers
moklick May 2, 2024
c0de3ad
chore(libs): export Align type
moklick May 2, 2024
ec25929
chore(changelogs): update
moklick May 2, 2024
ad3a803
fix(react): dont allow invalid selection rect
moklick May 2, 2024
5f3dbbb
chore(versions): bump
moklick May 2, 2024
d562818
fix(styles): add node-resizer to base style
moklick May 6, 2024
de86c64
fix(svelte): selection for sub flows
moklick May 6, 2024
1860dff
fix(minimap): sub flow node positions
moklick May 6, 2024
8d21037
Merge pull request #4222 from xyflow/next
moklick May 6, 2024
181a94d
fix(svelte): export useInternalNode hook
moklick May 6, 2024
9cf0965
fix(svelte): export InternalNode type
moklick May 6, 2024
fb30b81
fix(svelte): node toolbar for subflows
moklick May 6, 2024
b9ec783
fix(react): dont show nodeTypes warning if not necessary #3923
moklick May 7, 2024
5093213
chore(react): udpate return type of fixedForwardRef function
moklick May 7, 2024
2b0d75d
refactor(types): only export HandleProps but not HandleComponentProps
moklick May 7, 2024
32bac3e
chore(react): cleanup examples
moklick May 7, 2024
a364a93
feat(react): add warning when styles not loaded #4047
moklick May 7, 2024
adff7ef
Merge pull request #4261 from xyflow/react/styles-loaded-warning
moklick May 7, 2024
ccadb04
refactor(system): mutate internal node instead of creating a new one
moklick May 8, 2024
02250e9
chore(packages): bump
moklick May 8, 2024
467223b
Merge pull request #4258 from xyflow/next
moklick May 8, 2024
0834c4b
[React] Fix: type `updateNodeData` dataUpdate arg
ogroppo May 14, 2024
0f2e13c
should be Partial
ogroppo May 14, 2024
e81194d
Include origin directly in positionAbsolute of node
peterkogo May 22, 2024
c986471
revert pnpm.lock
peterkogo May 22, 2024
403aa8f
exposed selectable, deletable, draggable to custom nodes & edges
peterkogo Jun 3, 2024
02d724f
chore(examples): cleanup
moklick Jun 3, 2024
e82c72a
fix(react): re-observe nodes when hidden is toggled
moklick Jun 3, 2024
c94d684
fix(nodes): update internals after node resizer updates
moklick Jun 3, 2024
e52eb67
chore(react): update changelog
moklick Jun 3, 2024
dd960da
Merge pull request #4278 from ogroppo/type-updateNodeData-arg
moklick Jun 3, 2024
5769ad2
Merge pull request #4323 from xyflow/expose-node-edge-props
moklick Jun 3, 2024
3cc14e8
refactor(nodes): add parentId to NodeProps closes #4061
moklick Jun 3, 2024
9e1757b
removed pointer events from panel when user selection is active
peterkogo Jun 4, 2024
7ebabac
changed from store.edges.update to store.edges.set
peterkogo Jun 4, 2024
717935d
simpler
peterkogo Jun 4, 2024
4d3ede3
added edgemouseenter and edgemouseleave events
peterkogo Jun 4, 2024
18a41ec
removed console log
peterkogo Jun 4, 2024
716406b
Merge pull request #4332 from xyflow/svelte-edge-mouse-events
moklick Jun 4, 2024
0434d6c
chore(svelte): changelog
moklick Jun 4, 2024
0f44b8d
Merge pull request #4331 from xyflow/svelte-fix-selection
moklick Jun 4, 2024
7b21599
Merge branch 'next' of github.com:xyflow/xyflow into next
moklick Jun 4, 2024
2f45754
chore(svelte): changelog
moklick Jun 4, 2024
fb416ca
Merge pull request #4330 from xyflow/svelte-fix-panel
moklick Jun 4, 2024
8000711
Merge branch 'next' of github.com:xyflow/xyflow into next
moklick Jun 4, 2024
88af9ab
chore(svelte): changelog
moklick Jun 4, 2024
68f7d6c
chore(svelte): cleanup internal nodes and edges
moklick Jun 4, 2024
a22154b
fixed some type mismatches with default values
peterkogo Jun 4, 2024
875e643
fix(svelte): use user viewport store for init viewport closes #4335 (…
moklick Jun 5, 2024
abeb408
fix: Correct parent node lookup in evaluateAbsolutePosition
lcsfort Jun 5, 2024
d0e43b8
chore(packages): update deps
moklick Jun 5, 2024
a66bc2c
chore(system): cleanup d3 type usage
moklick Jun 5, 2024
48f07d5
chore(packages): bump
moklick Jun 5, 2024
2236138
Merge pull request #4339 from lcsfort/patch-1
moklick Jun 5, 2024
9f32970
Merge pull request #4328 from xyflow/next
moklick Jun 5, 2024
9d1cfb2
chore(changelog): update
moklick Jun 5, 2024
8236dc6
Merge branch 'next'
moklick Jun 5, 2024
99d0bc2
prevent zooming on mobile if zoomOnPinch is false
peterkogo Jun 5, 2024
8386773
feat(repo): add changeset cli
moklick Jun 5, 2024
7547531
abort drag when multiple touches are detected
peterkogo Jun 5, 2024
fd02d2f
made comment more explicit
peterkogo Jun 5, 2024
82dddb2
added straight edge to path built-in-types
peterkogo Jun 5, 2024
a165683
chore(changesets): ignore examples
moklick Jun 5, 2024
982ffb5
refactor(edge-text): enable dynamic edge label updates closes #4340
moklick Jun 5, 2024
ff784cb
use empty string instead of undefined
peterkogo Jun 6, 2024
09a6f11
Merge pull request #4341 from xyflow/fix-zoom-on-pinch-mobile
moklick Jun 6, 2024
2e5c2eb
Merge pull request #4343 from xyflow/fix-edge-type-path-options
moklick Jun 6, 2024
7e50247
Merge pull request #4342 from xyflow/fix-node-drag-zoom
moklick Jun 6, 2024
9bc721c
Merge pull request #4344 from xyflow/fix/dynamic-edge-labels
moklick Jun 6, 2024
fe86416
Merge pull request #4347 from xyflow/fix-pane-style
moklick Jun 6, 2024
2272c7f
refactor(system): reduce getBoundingClientRect calls
moklick Jun 6, 2024
2394a0e
Merge pull request #4352 from xyflow/refactor/system-get-handle-bounds
moklick Jun 6, 2024
71980a8
fix(react): add compiler options outDir
moklick Jun 6, 2024
1ac7e5d
Merge pull request #4353 from xyflow/fix/react-ts-dist
moklick Jun 6, 2024
3bba0b4
feat(useReactFlow): add updateEdge and updateEdgeData (#4351)
moklick Jun 6, 2024
3a8ead8
chore(pnpm): update lock file
moklick Jun 6, 2024
5d6ac6e
chore(packages): bump
moklick Jun 6, 2024
463e0ee
Merge pull request #4348 from xyflow/next
moklick Jun 6, 2024
c9d0f13
fix(handles): calc offset correctly
moklick Jun 10, 2024
7895a59
chore(packages): bump
moklick Jun 10, 2024
bab4eec
Merge pull request #4358 from xyflow/next
moklick Jun 10, 2024
59c5d47
Chore/turbo v2 (#4359)
moklick Jun 11, 2024
d2fdea4
Clearer issue template for bug reports (#4357)
johnrobbjr Jun 11, 2024
e6b21d3
chore(lint): cleanup minor issues
moklick Jun 11, 2024
42f4f59
tiny updates to internal library examples
peterkogo Jun 17, 2024
26456b3
only prevent shift scrolling when selection is actually in progress
peterkogo Jun 19, 2024
75acd24
Rename `updateEdge` to `reconnectEdge` (#4373)
moklick Jun 19, 2024
86438a9
Better selection usability (#4379)
peterkogo Jun 19, 2024
45359c4
chore(libs): changelogs
moklick Jun 19, 2024
2691f03
Merge pull request #4380 from xyflow/svelte-fix-shift-scroll
moklick Jun 19, 2024
6660427
chore(svelte): changelog
moklick Jun 19, 2024
6cf0113
Use correct end handle position when drawing a connection (#4382)
peterkogo Jun 19, 2024
3b48228
chore(changelogs): update
moklick Jun 19, 2024
57b62f8
determine correct handle positions in for connections (#4384)
peterkogo Jun 20, 2024
8346b79
chore(libs): changelogs
moklick Jun 20, 2024
7c8c40a
fixed tests
peterkogo Jun 20, 2024
b18d3d1
chore(pnpm-lock): update
moklick Jun 20, 2024
d0e166d
chore(packages): bump
moklick Jun 20, 2024
b2b4d51
Merge pull request #4383 from xyflow/next
moklick Jun 20, 2024
6704e51
fix(react): check if window exists
moklick Jun 20, 2024
aac0e9d
chore(react): changelog
moklick Jun 20, 2024
7338eab
chore(react): bump
moklick Jun 20, 2024
71db837
fix(react): window bug
moklick Jun 20, 2024
bedd056
fix tsconfig error
peterkogo Jun 24, 2024
67e29b6
Merge branch 'next' into absolute-origin
moklick Jun 24, 2024
5e96fa0
chore(tsconfig): update moduleResolution
moklick Jun 24, 2024
8ad1797
Merge branch 'next' into absolute-origin
moklick Jun 24, 2024
1a25a7d
fix(store): calc handle pos
moklick Jun 24, 2024
4425464
changed naming and streamlined connections
peterkogo Jun 24, 2024
e22c1b9
chore(node-resizer): update
moklick Jun 25, 2024
6f14f92
chore(examples): cleanup
moklick Jun 25, 2024
eed8856
chore(xyresizer): cleanup
moklick Jun 25, 2024
a8c9b93
chore(examples): cleanup
moklick Jun 26, 2024
ef14ba0
fix(svelte): use absolute position instead of origin position
moklick Jun 26, 2024
c444eb3
chore(react-minimap): remove unused origin values
moklick Jun 26, 2024
5493f04
streamlined connections
peterkogo Jun 26, 2024
f968ff4
chore(react): node origin cleanup
moklick Jun 26, 2024
08750d3
chore(utils): remove logs
moklick Jun 26, 2024
e179324
chore(connection-line): variable name
moklick Jun 26, 2024
2fa017d
Merge pull request #4395 from xyflow/enhance-connection
moklick Jun 26, 2024
805a203
Merge branch 'next' into enhance-connection-more
moklick Jun 26, 2024
25ff17a
chore(useConnection): update tsdoc
moklick Jun 26, 2024
8f12fde
Fixed NodeResizer for non-default node origins
peterkogo Jun 26, 2024
41ebe46
Merge branch 'enhance-connection-more' of github.com:xyflow/xyflow in…
moklick Jun 26, 2024
1a51428
turns out default values for object parameters don't work as expected
peterkogo Jun 26, 2024
25dfeb1
dont invoke connection updates if the snapped handle stays the same
peterkogo Jun 26, 2024
38de98b
removed console.log
peterkogo Jun 26, 2024
2b0f83b
cleanup
peterkogo Jun 27, 2024
6cc6960
refactor(xyhandle): use center for to-xy, block updates only if valid
moklick Jun 27, 2024
941898b
fixed connectionLine not updating correctly on auto pan
peterkogo Jun 27, 2024
609f7ed
refactor(positions): remove unused node origins
moklick Jun 27, 2024
7375e81
fix(svelte): handle nodeOrigin prop
moklick Jun 27, 2024
15241b4
fix(react): use correct dimensions for ssr
moklick Jun 27, 2024
aa0e131
refactor(react): init store with user nodeOrigin
moklick Jun 27, 2024
b00eff9
Merge branch 'next' into absolute-origin
moklick Jun 27, 2024
ba3ee1c
Merge pull request #4301 from xyflow/absolute-origin
moklick Jun 27, 2024
5c44dd9
Merge branch 'next' into enhance-connection-more
moklick Jun 27, 2024
14667f8
Merge branch 'enhance-connection-more' of github.com:xyflow/xyflow in…
moklick Jun 27, 2024
5d561db
Merge pull request #4397 from xyflow/enhance-connection-more
moklick Jun 27, 2024
86485c5
chore(changelog): update
moklick Jun 27, 2024
00063ab
chore(changelog): update
moklick Jun 27, 2024
7e42e20
Merge branch 'next' into feat/changesets
moklick Jul 1, 2024
4b1541d
fix for connection snapping when connection radius overlaps
peterkogo Jul 1, 2024
f1dd153
removed console.log
peterkogo Jul 1, 2024
25e52f7
feat(workflow): add release action
moklick Jul 1, 2024
a128a7e
chore(docs): explain release workflow
moklick Jul 1, 2024
4129c88
chore(packages): bump
moklick Jul 1, 2024
6cfc3df
Merge pull request #4400 from xyflow/next
moklick Jul 1, 2024
0589b89
Merge pull request #4404 from xyflow/feat/changesets
moklick Jul 1, 2024
7f85bc1
Merge branch 'next'
moklick Jul 1, 2024
949c6f2
chore(pkg): update repo field
moklick Jul 1, 2024
30fc978
chore(action): add shell field
moklick Jul 1, 2024
ab047f8
chore(gh-action): update playwright command
moklick Jul 1, 2024
8433ea9
chore(gh-action): update playwright command
moklick Jul 1, 2024
c8cab00
chore(tests): add playwright
moklick Jul 1, 2024
3553918
chore(tests): use pnpm
moklick Jul 1, 2024
92780fe
chore(playwright): update
moklick Jul 1, 2024
f791b9b
chore(gh-action): create playwright workflow
moklick Jul 1, 2024
8eaa81f
fix(changeset): remove unused package
moklick Jul 1, 2024
66dbf55
chore(test): autoPanOnNodeDrag
moklick Jul 1, 2024
72d69b1
Merge branch 'main' of github.com:xyflow/xyflow
moklick Jul 1, 2024
41cefdf
chore(test): autoPanOnNodeDrag
moklick Jul 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.1.1/schema.json",
"changelog": ["@changesets/changelog-github", { "repo": "wbkd/react-flow" }],
"$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
"changelog": ["@changesets/changelog-github", { "repo": "xyflow/xyflow" }],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
"ignore": ["react-examples", "svelte-examples", "astro-examples", "playwright"]
}
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# These are supported funding model platforms

github: [wbkd]
github: [xyflow]
80 changes: 38 additions & 42 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,47 +4,57 @@ body:
- type: markdown
attributes:
value: |
Thank you for reporting an issue :pray:.
Hello! :sparkles: You found the place to submit a bug or issue that you discovered in the xyflow library, thank you for helping us out!

**Please only file issues for v11. Will will no longer fix issues for v10.**
Having trouble making something work in xyflow, but it’s not a bug with the library itself? You’ll get the fastest response by asking in [github discussions](https://github.com/xyflow/xyflow/discussions) or our [discord server](https://discord.gg/RVmnytFmGW).

This issue tracker is for reporting bugs found in react-flow (https://github.com/wbkd/react-flow)
If you have a question about how to achieve something and are struggling, please post a question
inside of react-flow's Discussion's tab: https://github.com/wbkd/react-flow/discussions
If it's an issue about the docs please go to the react-flow-docs (https://github.com/wbkd/react-flow-docs)
**Search our [discussions](https://github.com/xyflow/xyflow/discussions?discussions_q=) and [issues](https://github.com/xyflow/xyflow/issues?q=)** to see if your problem has already been reported and you can add more context, or see if someone else has already solved your issue. And of course, check our [docs](https://reactflow.dev/learn) if you haven’t already.

Before submitting a new bug/issue, please check the links below to see if there is a solution or question posted there already:
- react-flow's Open Issue's tab: https://github.com/wbkd/react-flow/issues?q=is%3Aissue+sort%3Aupdated-desc+position
- react-flow's Closed Issues tab: https://github.com/wbkd/react-flow/issues?q=is%3Aissue+sort%3Aupdated-desc+position+is%3Aclosed
- react-flow's Discussion's tab: https://github.com/wbkd/react-flow/discussions
**Issue with the xyflow Docs?** Submit an issue in our [web repo](https://github.com/xyflow/web/issues) instead.

The more information you fill in, the better the community can help you.
With that out of the way, let’s get started :bug:
- type: textarea
id: description
id: platform
attributes:
label: Describe the Bug
description: Provide a clear and concise description of the challenge you are running into.
label: What platform were you using when you found the bug?
description: We only address issues for the most recent xyflow major release or upcoming releases.
value: |
- React Flow / Svelte Flow version:
- Browser and version:
- OS and version:
validations:
required: true
- type: input
id: link
attributes:
label: Your Example Website or App
label: Live code example
description: |
Which website or app were you using when the bug happened?
Note:
- Your bug will may get fixed much faster if we can run your code and it doesn't have dependencies other than the `react-flow-renderer` npm package.
- To create a shareable code example you can use Codesandbox (https://codesandbox.io/s/react-flow-starter-ou8or) or Stackblitz (https://stackblitz.com/).
- Please read these tips for providing a minimal example: https://stackoverflow.com/help/mcve.
placeholder: |
e.g. https://stackblitz.com/edit/...... OR Github Repo
This is the most important part of the bug report!

React Flow codesandbox starters
- js: https://new.reactflow.dev/js
- ts: https://new.reactflow.dev/ts

Svelte Flow stackblitz starters
- js: https://new.svelteflow.dev/js
- ts: https://new.svelteflow.dev/ts

Avoid dependencies in your example for easier debugging.
placeholder: https://stackblitz.com/edit/... or Github Repo
validations:
required: false
- type: textarea
id: description
attributes:
label: Describe the Bug
description: What exactly is happening when you encounter the bug?
validations:
required: true
- type: textarea
id: steps
attributes:
label: Steps to Reproduce the Bug or Issue
description: Describe the steps we have to take to reproduce the behavior.
label: Steps to reproduce the bug or issue
description: How can we see the reported behavior in the code example you provided? The more detail, the better!
placeholder: |
1. Go to '...'
2. Click on '....'
Expand All @@ -56,9 +66,8 @@ body:
id: expected
attributes:
label: Expected behavior
description: Provide a clear and concise description of what you expected to happen.
placeholder: |
As a user, I expected ___ behavior but i am seeing ___
description: What would you expect to happen if there was no bug or issue?
placeholder: As a user, I expected ___ behavior, but instead I am seeing ___
validations:
required: true
- type: textarea
Expand All @@ -67,22 +76,9 @@ body:
label: Screenshots or Videos
description: |
If applicable, add screenshots or a video to help explain your problem.
For more information on the supported file image/file types and the file size limits, please refer
to the following link: https://docs.github.com/en/github/writing-on-github/working-with-advanced-formatting/attaching-files
placeholder: |
You can drag your video or image files inside of this editor ↓
- type: textarea
id: platform
attributes:
label: Platform
value: |
- OS: [e.g. macOS, Windows, Linux]
- Browser: [e.g. Chrome, Safari, Firefox]
- Version: [e.g. 91.1]
validations:
required: true
Supported image/file types and file size limits- https://docs.github.com/en/github/writing-on-github/working-with-advanced-formatting/attaching-files
placeholder: Drag your video or image files inside of this editor
- type: textarea
id: additional
attributes:
label: Additional context
description: Add any other context about the problem here.
11 changes: 11 additions & 0 deletions .github/actions/ci-checks/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: 'CI checks'

runs:
using: 'composite'
steps:
- name: Build
run: pnpm build
shell: bash
- name: Typecheck
run: pnpm typecheck
shell: bash
14 changes: 14 additions & 0 deletions .github/actions/ci-setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: 'CI setup'

runs:
using: 'composite'
steps:
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install dependencies
run: pnpm install
shell: bash
25 changes: 25 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Playwright Tests

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
playwright:
name: 'Playwright Tests'
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.45.0-jammy
steps:
- name: Checkout repo
uses: actions/checkout@v4
- uses: ./.github/actions/ci-setup
- uses: ./.github/actions/ci-checks
- name: Run your tests
run: CI=true pnpm test:react
env:
HOME: /root
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- uses: ./.github/actions/ci-setup
- uses: ./.github/actions/ci-checks

- name: Create release PR or publish to npm
id: changesets
uses: xyflow/changeset-action@v1
with:
publish: pnpm release
title: Release packages
commit: 'chore(packages): bump'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ examples/build
cypress/videos
cypress/screenshots
dist
.env
stats.html
.eslintcache
.idea
Expand Down
1 change: 0 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
registry="https://registry.npmjs.com/"
legacy-peer-deps=true
strict-peer-dependencies=false
18 changes: 13 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
# Contributing to React Flow

Hello there! So glad you want to help out with React Flow 🤗 You’re the best. Here’s a guide for how you can contribute to the project.
Hello there! So glad you want to help out with React Flow and Svelte Flow 🤗 You’re the best. Here’s a guide for how you can contribute to the project.

# The new xyflow organization

Just recently we renamed our organization and repository of React Flow to "xyflow". Now you can not only find the source code of React Flow but also of Svelte Flow in this repository. We are in a state of transition. This is the current structure:

* React Flow `reactflow` version v11 is on branch v11
* Svelte Flow `@xyflow/svelte` can be found under [packages/svelte](./packages/svelte)
* React Flow v12 (not published yet) can be found under [packages/react](./packages/react)

# Our Contributing Philosophy

The direction of React Flow and which new features are added, and which are left out, is decided by the core team (sometimes referred to as a “cathedral” style of development). The core team is paid to do this work ([see how here](https://reactflow.dev/blog/asking-for-money-for-open-source/)). With this model we ensure that the people doing the most work on the library are paid for their time and effort, and that we prevent the library from bloating.
The direction of React Flow and Svelte Flow and which new features are added, and which are left out, is decided by the core team (sometimes referred to as a “cathedral” style of development). The core team is paid to do this work ([see how here](https://xyflow.com/blog/asking-for-money-for-open-source/)). With this model we ensure that the people doing the most work on the library are paid for their time and effort, and that we prevent the library from bloating.

That being said, React Flow is only interesting because of the people who make things with it, share their work, and discuss it. Some of the most important and undervalued work in open source is from non-code contributions, and that is where we can use the most help from you.
That being said, our libraries are only interesting because of the people who make things with it, share their work, and discuss it. Some of the most important and undervalued work in open source is from non-code contributions, and that is where we can use the most help from you.

# How can I help?

Expand All @@ -16,15 +24,15 @@ The things we need the most help for the library and its community are:

**💬 Answering questions** in our [Discord Server](https://discord.gg/Bqt6xrs) and [Github discussions](https://github.com/wbkd/react-flow/discussions).

🎬 **Create tutorials** for React Flow. Send them to us and we’ll happily share them!
🎬 **Create tutorials**. Send them to us and we’ll happily share them!

**✏️ Edit our [Docs](https://reactflow.dev/docs/introduction/)**: Make changes in the [react-flow-docs repo](https://github.com/wbkd/react-flow-docs), or click the "edit this page” button that lives on every doc site.

All interactions should be done with care following our [Code of Conduct](https://github.com/wbkd/react-flow/blob/main/CODE_OF_CONDUCT.md).

## Enhancements

If you have an idea or suggestion for an enhancement to the React Flow library, please use the [New Features](https://github.com/wbkd/react-flow/discussions/categories/new-features) discussion section. If you want to build it yourself, **please reach out to us before you dive into a new pull request.** The direction of React Flow and which new features are added are discussed in our Discord Server and in [this Github discussions section](https://github.com/wbkd/react-flow/discussions/categories/new-features), and in the end they are decided by the core team.
If you have an idea or suggestion for an enhancement to the React Flow or Svelte Flow library, please use the [New Features](https://github.com/wbkd/react-flow/discussions/categories/new-features) discussion section. If you want to build it yourself, **please reach out to us before you dive into a new pull request.** The direction of React Flow/ Svelte Flow and which new features are added are discussed in our Discord Server and in [this Github discussions section](https://github.com/wbkd/react-flow/discussions/categories/new-features), and in the end they are decided by the core team.

Talking to us first about the enhancement you want to build will be the most likely way to get your pull request into the library (see Our Contributing Philosophy above). We would hate to see you write code you’re proud of, just to learn that we’ve already been working on the same thing, or that we feel doesn’t fit into the core library.

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019-2023 webkid GmbH
Copyright (c) 2019-2024 webkid GmbH

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading