Skip to content

Commit 50f8dd2

Browse files
committed
build: dependence
1 parent 3eba637 commit 50f8dd2

File tree

4 files changed

+33
-254
lines changed

4 files changed

+33
-254
lines changed

lib/HeTree.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import React, { useEffect, useMemo, useState, useRef, ReactNode, useCallback, useImperativeHandle, DragEventHandler, useLayoutEffect } from "react";
1+
import React, { useMemo, useState, useRef, ReactNode, useLayoutEffect } from "react";
22
import * as hp from "helper-js";
3-
import { VirtualList, VirtualListHandle } from "./VirtualList";
3+
import { VirtualList, VirtualListHandle } from "react-base-virtual-list";
44

55
// types ==================================
66
export type Id = string | number

lib/VirtualList.tsx

-239
This file was deleted.

package.json

+12-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"name": "@phphe/react-base-virtual-list",
2+
"name": "he-tree-react",
33
"version": "0.0.1-beta.11",
44
"license": "MIT",
55
"author": "phphe <[email protected]> (https://github.com/phphe)",
6-
"description": "React base virtual list component.",
6+
"description": "React draggable sortable tree component.",
77
"keywords": [
8-
"virtual list",
9-
"virtual scroll",
8+
"draggable tree",
9+
"sortable tree",
1010
"React component"
1111
],
12-
"repository": "https://github.com/phphe/react-base-virtual-list.git",
12+
"repository": "https://github.com/phphe/he-tree-react.git",
1313
"type": "module",
1414
"main": "./dist/index.cjs",
1515
"module": "./dist/index.js",
@@ -41,10 +41,15 @@
4141
},
4242
"dependencies": {
4343
"helper-js": "^3.1.5",
44-
"react": "^18.2.0",
45-
"react-dom": "^18.2.0"
44+
"react-base-virtual-list": "^1.0.0"
45+
},
46+
"peerDependencies": {
47+
"react": "^18",
48+
"react-dom": "^18"
4649
},
4750
"devDependencies": {
51+
"react": "^18.2.0",
52+
"react-dom": "^18.2.0",
4853
"@types/react": "^18.2.43",
4954
"@types/react-dom": "^18.2.17",
5055
"@types/react-test-renderer": "^18.0.7",

pnpm-lock.yaml

+19-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)