Skip to content

Commit

Permalink
Update react-flow to v11
Browse files Browse the repository at this point in the history
  • Loading branch information
dv297 committed Oct 19, 2022
1 parent eb71975 commit 7c21393
Show file tree
Hide file tree
Showing 5 changed files with 161 additions and 59 deletions.
210 changes: 155 additions & 55 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@
"react-dnd": "^16.0.1",
"react-dnd-html5-backend": "^16.0.1",
"react-dom": "17.0.2",
"react-flow-renderer": "^10.3.16",
"react-foco": "^1.3.1",
"react-hook-form": "^7.34.2",
"react-image-file-resizer": "^0.4.8",
"react-markdown": "8.0.0",
"react-syntax-highlighter": "^15.5.0",
"reactflow": "^11.1.1",
"xstate": "^4.33.4",
"zod": "^3.18.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/ProjectMap/IssueNode.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Handle, Position } from 'react-flow-renderer';
import { Handle, Position } from 'reactflow';
import clsx from 'clsx';
import { z } from 'zod';

Expand Down
2 changes: 1 addition & 1 deletion src/components/ProjectMap/MapPersistenceManager.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect, useMemo } from 'react';
import { Edge, Node, useEdges, useNodes } from 'react-flow-renderer';
import { Edge, Node, useEdges, useNodes } from 'reactflow';
import debounce from 'lodash.debounce';
import { z } from 'zod';

Expand Down
4 changes: 3 additions & 1 deletion src/components/ProjectMap/ProjectMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import ReactFlow, {
NodeChange,
useEdgesState,
useNodesState,
} from 'react-flow-renderer';
} from 'reactflow';
import { z } from 'zod';

import type { IssueNodeData } from '@src/components/ProjectMap/IssueNode';
Expand All @@ -23,6 +23,8 @@ import { ProjectMapPositionSchema } from '@src/schemas/ProjectMapPositionSchemas
import { Position } from '@src/styles/ProjectMapPositionDataEntry';
import IssueStatusType from '@src/types/IssueStatusType';

import 'reactflow/dist/style.css';

const nodeTypes = {
issue: IssueNode,
};
Expand Down

1 comment on commit 7c21393

@vercel
Copy link

@vercel vercel bot commented on 7c21393 Oct 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

planner – ./

planner-git-main-dv297.vercel.app
planner-nine.vercel.app
planner-dv297.vercel.app

Please sign in to comment.