Skip to content

Commit

Permalink
Remove element-closest package
Browse files Browse the repository at this point in the history
Now well-supported in browsers natively
  • Loading branch information
klembot committed Jun 27, 2024
1 parent 37d0a52 commit df1d4e0
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 21 deletions.
16 changes: 0 additions & 16 deletions package-lock.json

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

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"codemirror": "^5.65.1",
"detect-it": "^4.0.1",
"eases": "^1.0.8",
"element-closest": "^3.0.2",
"file-saver": "^2.0.5",
"focus-trap-react": "^8.9.2",
"focus-visible": "^5.2.0",
Expand Down Expand Up @@ -67,7 +66,6 @@
"@types/codemirror": "0.0.108",
"@types/eases": "^1.0.2",
"@types/electron-devtools-installer": "^2.2.0",
"@types/element-closest": "^3.0.0",
"@types/faker": "^5.1.7",
"@types/file-saver": "^2.0.1",
"@types/jest": "^26.0.24",
Expand Down
1 change: 0 additions & 1 deletion src/components/click-away-listener/click-away-listener.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as React from 'react';
import 'element-closest';

export interface ClickAwayListenerProps {
ignoreSelector?: string;
Expand Down
1 change: 0 additions & 1 deletion src/components/marquee-selection/marquee-selection.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as React from 'react';
import 'element-closest';
import {rectFromPoints, Point, Rect} from '../../util/geometry';
import './marquee-selection.css';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {IconTrash} from '@tabler/icons';
import 'element-closest';
import * as React from 'react';
import {useHotkeys} from 'react-hotkeys-hook';
import {useTranslation} from 'react-i18next';
Expand Down

0 comments on commit df1d4e0

Please sign in to comment.