|
1 |
| -import React, { Component } from 'react'; |
2 |
| -import PropTypes from 'prop-types'; |
3 |
| -import { AutoSizer, List } from 'react-virtualized'; |
4 |
| -import isEqual from 'lodash.isequal'; |
5 | 1 | import withScrolling, {
|
| 2 | + createHorizontalStrength, |
6 | 3 | createScrollingComponent,
|
7 | 4 | createVerticalStrength,
|
8 |
| - createHorizontalStrength, |
9 | 5 | } from 'frontend-collective-react-dnd-scrollzone';
|
10 |
| -import { DndProvider, DndContext } from 'react-dnd'; |
11 |
| -import HTML5Backend from 'react-dnd-html5-backend'; |
| 6 | +import isEqual from 'lodash.isequal'; |
| 7 | +import PropTypes from 'prop-types'; |
| 8 | +import React, { Component } from 'react'; |
| 9 | +import { DndContext, DndProvider } from 'react-dnd'; |
| 10 | +import { HTML5Backend } from 'react-dnd-html5-backend'; |
12 | 11 | import { polyfill } from 'react-lifecycles-compat';
|
| 12 | +import { AutoSizer, List } from 'react-virtualized'; |
13 | 13 | import 'react-virtualized/styles.css';
|
14 |
| -import TreeNode from './tree-node'; |
15 | 14 | import NodeRendererDefault from './node-renderer-default';
|
16 |
| -import TreePlaceholder from './tree-placeholder'; |
17 | 15 | import PlaceholderRendererDefault from './placeholder-renderer-default';
|
18 |
| -import { |
19 |
| - walk, |
20 |
| - changeNodeAtPath, |
21 |
| - removeNode, |
22 |
| - insertNode, |
23 |
| - find, |
24 |
| - toggleExpandedForAll, |
25 |
| -} from './utils/tree-data-utils'; |
26 |
| -import { |
27 |
| - memoizedInsertNode, |
28 |
| - memoizedGetFlatDataFromTree, |
29 |
| - memoizedGetDescendantCount, |
30 |
| -} from './utils/memoized-tree-data-utils'; |
31 |
| -import { slideRows } from './utils/generic-utils'; |
| 16 | +import './react-sortable-tree.css'; |
| 17 | +import TreeNode from './tree-node'; |
| 18 | +import TreePlaceholder from './tree-placeholder'; |
| 19 | +import classnames from './utils/classnames'; |
32 | 20 | import {
|
33 | 21 | defaultGetNodeKey,
|
34 | 22 | defaultSearchMethod,
|
35 | 23 | } from './utils/default-handlers';
|
36 | 24 | import DndManager from './utils/dnd-manager';
|
37 |
| -import classnames from './utils/classnames'; |
38 |
| -import './react-sortable-tree.css'; |
| 25 | +import { slideRows } from './utils/generic-utils'; |
| 26 | +import { |
| 27 | + memoizedGetDescendantCount, |
| 28 | + memoizedGetFlatDataFromTree, |
| 29 | + memoizedInsertNode, |
| 30 | +} from './utils/memoized-tree-data-utils'; |
| 31 | +import { |
| 32 | + changeNodeAtPath, |
| 33 | + find, |
| 34 | + insertNode, |
| 35 | + removeNode, |
| 36 | + toggleExpandedForAll, |
| 37 | + walk, |
| 38 | +} from './utils/tree-data-utils'; |
39 | 39 |
|
40 | 40 | let treeIdCounter = 1;
|
41 | 41 |
|
@@ -950,9 +950,9 @@ const SortableTreeWithoutDndContext = props => (
|
950 | 950 |
|
951 | 951 | const SortableTree = props => (
|
952 | 952 | <DndProvider backend={HTML5Backend}>
|
953 |
| - <SortableTreeWithoutDndContext {...props}/> |
| 953 | + <SortableTreeWithoutDndContext {...props} /> |
954 | 954 | </DndProvider>
|
955 |
| -) |
| 955 | +); |
956 | 956 |
|
957 | 957 | // Export the tree component without the react-dnd DragDropContext,
|
958 | 958 | // for when component is used with other components using react-dnd.
|
|
0 commit comments