Skip to content

Commit

Permalink
replace lib
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiSpencer committed Jun 16, 2024
1 parent a3d4103 commit 583a9a2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 19 deletions.
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
"version": "2.1.0",
"description": "Pluggable typesafe components to add a trello like kanban board to your application",
"main": "./dist/index.cjs",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
}
},
"types": "./dist/index.d.ts",
"files": [
"dist",
Expand Down Expand Up @@ -43,7 +49,7 @@
"classnames": "^2.5.1",
"immer": "^9.0.21",
"react-popopo": "^2.1.9",
"trello-smooth-dnd": "1.0.0",
"react-trello-ts-smooth-dnd": "^0.0.1",
"uuid": "^9.0.1",
"zustand": "^4.4.7"
},
Expand Down
14 changes: 7 additions & 7 deletions pnpm-lock.yaml

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

8 changes: 1 addition & 7 deletions src/dnd/Container.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
import React, { Component } from "react";
import ReactDOM from "react-dom";
// import container, { dropHandlers } from "trello-smooth-dnd";
import * as tsd from "trello-smooth-dnd";

console.log("TSD", tsd);

const container = tsd.default || tsd;
const dropHandlers = tsd.dropHandlers || tsd;
import container, { dropHandlers } from "react-trello-ts-smooth-dnd";

container.dropHandler = dropHandlers.reactDropHandler().handler;
container.wrapChild = (p: any) => p; // dont wrap children they will already be wrapped
Expand Down
5 changes: 1 addition & 4 deletions src/dnd/Draggable.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import React, { Component, ReactElement } from "react";
// import { constants } from "trello-smooth-dnd";
import * as tsd from "trello-smooth-dnd";

const constants = tsd.default || tsd;
import { constants } from "react-trello-ts-smooth-dnd";

const { wrapperClass } = constants;

Expand Down

0 comments on commit 583a9a2

Please sign in to comment.