Commit Graph
41 Commits
Author SHA1 Message Date
Christopher Möller 7318210a2c feat(nodes): add prop to disable automatic elevation of nodes on select 2022-12-15 18:57:01 +01:00
moklick ee2f39f2fe feat(props): add panActivationKeyCode 2022-12-12 16:35:39 +01:00
moklick d34ecbf802 refactor(selectionMode): rename options 2022-12-12 16:19:06 +01:00
moklick 57064ff096 refactor(figma-controls): update prop names and types 2022-12-08 21:08:45 +01:00
moklick badacf763b Merge branch 'main' of github.com:jackfishwick/react-flow into jackfishwick-main 2022-12-08 18:32:33 +01:00
moklick 22db82c8b8 chore(wrapper): cleanup 2022-11-25 22:03:48 +01:00
Samuel Degueldre 2adf37849b ref: stop using try..catch as control flow in Wrapper
Previously, Wrapper used try..catch around a call to useStoreApi to
check whether there was an available StoreContext, instead of simply
using useContext and checking the value. This leads to poor developer
experience when using the devtools feature "pause on caught exceptions"
as it causes the devtools to break on every render of a Wrapper that is
not within a StoreContext provider. The catch is also universal, meaning
that it could catch a completely unrelated error and happily keep going
instead of crashing which is undesirable.

This commit changes this try..catch into a simple call to useContext to
check if a StoreContext is available.
2022-11-23 13:23:28 +01:00
Jack Fishwick 09ebd0c84a feat: allow customisation of how the select box works. 2022-11-22 11:05:45 +00:00
Jack Fishwick 1de6de1f96 feat: add events for when selection starts and ends. 2022-11-22 11:04:01 +00:00
Jack Fishwick 685ff76ee8 feat: add a selectBoxOnDrag prop which allows select box to be triggered without an additional key press. 2022-11-22 10:55:06 +00:00
moklick cda039fc8d Merge branch 'patch-3' of github.com:neo/react-flow into neo-patch-3 2022-11-02 16:16:28 +01:00
moklick 7b1dc1b18c chore(types): cleanup 2022-10-21 11:35:56 +02:00
moklick 74cacd29cb chore(rfId): cleanup id handling 2022-10-19 16:58:36 +02:00
moklick 7d93d4e46b chore(rf-props): pass id to wrapper closes #2510 2022-10-19 16:43:49 +02:00
Wenchen LiandGitHub eccd567347 Put wrapper container in its own stacking context 2022-10-14 11:33:50 -04:00
moklick 48c402c4d3 refactor(aria-descriptions): render when disableKeyboardA11y is true 2022-10-10 11:30:15 +02:00
moklick 3a1a365a63 fix(useOnSelectionChange): repair hook closes #2484 2022-10-09 20:40:11 +02:00
moklick be6590a5d6 feat(nodes-edges): add nodesFocusable, edgesFocusable, cleanup keyboard controls 2022-10-03 14:31:34 +02:00
moklick fad6cf706e refactor(packages) support react 17 and 18 2022-09-19 16:07:30 +02:00
moklick dea46511c3 chore(nodes-edges): add data testids 2022-09-14 13:08:57 +02:00
Moritz KlackandGitHub 7a96817114 Refactor: Better routing for smoothstep and step edge (#2407)
* refactor(step/smoothstep-edge): better default routing
* chore(edges): pass options
* chore(exports): add BaseEdge
2022-09-07 17:40:18 +02:00
moklick 23fdd20658 fix(nodeOrigin): use origin for calculating handle position 2022-09-01 12:37:13 +02:00
moklick 2172522a0b refactor(panning): enable panning when nodesDraggable is false #1457 2022-09-01 12:12:16 +02:00
moklick 22cb21a4ae fix(nodeExtent): use for initial rendering closes #2384 2022-08-29 17:17:48 +02:00
moklick 86ea34b470 refactor(dev-warnings): cleanup 2022-08-17 11:55:37 +02:00
moklick ab14be02f4 feat(nodes): add nodeOrigin prop 2022-08-17 11:43:52 +02:00
moklick d2d4b76e65 feat(a11y): add aria live message on move by keyboard 2022-08-16 18:21:20 +02:00
moklick 94463cd0be refactor(styling): dont inject styles 2022-08-09 18:42:12 +02:00
moklick 7150e0369e feat(linting): add eslint 2022-08-08 13:34:00 +02:00
moklick 753f442468 chore(zustand): upgrade to v4 2022-08-06 16:57:32 +02:00
moklick 6f6af23bf5 Merge branch 'main' into v11 2022-08-05 19:09:09 +02:00
Moritz KlackandGitHub 97c22ace71 Refactor: CSS handling (#2344)
* refactor(css): only load base styles, add css task, cleanup exports
* style(base): add edge label bg
* refactor(css): use css-utils
* feat(core): add Panel component
* refactor(background): cleanup
* refactor(css-handling): cleanup
2022-08-05 18:36:32 +02:00
Moritz KlackandGitHub f7dc75b0f3 Feat: basic keyboard controls and better WAI-ARIA defaults (#2333)
* feat(nodes): focusable and moveable with keys
* refactor(key-handling): cleanup, handle selections
* feat(edges): selectable with keys
* refactor(nodes-edges): cleanup keyboard controls and aria- attrs
* refactor(nodes): node needs to be selected for arrow keys
* refactor(minimap): create const for labelledby

closes #1033
2022-08-01 13:58:18 +02:00
moklick efedf04a56 refactor(props): remove onConnectStop #2299 2022-07-25 16:08:52 +02:00
moklick 37b311851c refactor(props): merge defaultPosition and defaultZoom to defaultViewport #2313 2022-07-25 16:03:42 +02:00
moklick 0054dd3d61 Merge branch 'main' into v11 2022-07-25 15:49:48 +02:00
moklick ec2dff24a3 feat(props): add pane mouse handlers closes #2312 2022-07-25 15:47:34 +02:00
Christopher Möller 97a9d0440f Merge branch 'v11' of github.com:wbkd/react-flow into v11 2022-07-18 18:13:19 +02:00
Christopher Möller b0f362bf60 chore(preconstruct): inline css via babel config, add themes package 2022-07-18 18:12:49 +02:00
moklick 6baf325b24 Merge branch 'main' into v11 2022-07-18 18:08:00 +02:00
Christopher Möller 1bb32c8eb7 chore: setup monorepo using preconstruct 2022-07-11 18:04:27 +02:00