Skip to content

Commit 74df49b

Browse files
committed
#270 update dndkit
1 parent 85fdfc4 commit 74df49b

File tree

5 files changed

+35
-27
lines changed

5 files changed

+35
-27
lines changed

data-browser/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
"@bugsnag/core": "^7.16.1",
88
"@bugsnag/js": "^7.16.5",
99
"@bugsnag/plugin-react": "^7.16.5",
10-
"@dnd-kit/core": "^4.0.3",
11-
"@dnd-kit/sortable": "^5.1.0",
12-
"@dnd-kit/utilities": "^3.0.2",
10+
"@dnd-kit/core": "^6.0.5",
11+
"@dnd-kit/sortable": "^7.0.1",
12+
"@dnd-kit/utilities": "^3.2.0",
1313
"@tomic/react": "workspace:*",
1414
"polished": "^4.1.0",
1515
"query-string": "^7.0.0",
@@ -22,7 +22,7 @@
2222
"react-hot-toast": "^2.4.0",
2323
"react-hotkeys-hook": "^3.1.0",
2424
"react-icons": "^4.2.0",
25-
"react-intersection-observer": "^8.31.1",
25+
"react-intersection-observer": "^9.4.1",
2626
"react-is": "^18",
2727
"react-markdown": "^8.0.3",
2828
"react-router": "^6.0.0",

data-browser/src/views/DocumentPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,13 +272,13 @@ function DocumentPageEdit({
272272
const { active, over } = event;
273273

274274
if (active.id !== over?.id) {
275-
const oldIndex = elements.indexOf(active.id);
275+
const oldIndex = elements.indexOf(active.id.toString());
276276

277277
if (!over?.id) {
278278
return;
279279
}
280280

281-
const newIndex = elements.indexOf(over.id);
281+
const newIndex = elements.indexOf(over.id.toString());
282282
moveElement(oldIndex, newIndex);
283283
}
284284
}

data-browser/tsconfig.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
"composite": true,
55
// We overwrite this so we don't have to use `.js` extensions in imports
66
"moduleResolution": "node",
7+
"lib": [
8+
"ES6",
9+
"ES7",
10+
"ESNext",
11+
"DOM"
12+
],
713
"outDir": "./dist",
814
"strictNullChecks": true,
915
},

pnpm-lock.yaml

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tsconfig.build.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
// Todo: enable this
2424
// "noImplicitAny": true
2525
"downlevelIteration": true,
26+
// Prevent typecheck to fail if some library is doing something wrong
27+
"skipLibCheck": true
2628
},
2729
"exclude": [
2830
"node_modules",

0 commit comments

Comments
 (0)