twenty
twenty copied to clipboard
update: Replace reactflow with @xyflow/react and Update Dependencies
Description:
This pull request includes the following changes:
-
Dependency Update:
- Added
@xyflow/react
as a dependency. - Replaced imports from
reactflow
with@xyflow/react
in multiple components.
- Added
-
Dependency Removal:
- Removed
reactflow
dependency and its related code from the project.
- Removed
-
Type Definitions Update:
- Updated type definitions for nodes and edges to align with the new library.
-
Code Refactoring:
- Minor refactoring for improved code clarity and consistency in the following components:
-
SettingsDataModelOverview
-
SettingsDataModelOverviewEffect
-
SettingsDataModelOverviewField
-
SettingsDataModelOverviewObject
-
- Minor refactoring for improved code clarity and consistency in the following components:
-
Dependency Files Update:
- Updated
package.json
andyarn.lock
to reflect the changes in dependencies.
- Updated
Additional Notes:
- These changes ensure that the project is now using the
@xyflow/react
library instead ofreactflow
. - The refactoring improves code readability and maintains consistency across the components.
- Please review the changes and provide any feedback or suggestions.
Testing:
- The changes have been tested locally and verified to work as expected.
Checklist:
- [x] Added
@xyflow/react
as a dependency. - [x] Replaced
reactflow
imports with@xyflow/react
. - [x] Removed
reactflow
dependency. - [x] Updated type definitions for nodes and edges.
- [x] Refactored components for improved clarity and consistency.
- [x] Updated
package.json
andyarn.lock
. - [x] Tested the changes locally.
Related Issue
Fixes #6662