react-d3-dag
Version:
React component to create interactive D3 directed acyclic graphs (DAGs)
140 lines (139 loc) • 3.75 kB
JSON
{
"name": "react-d3-dag",
"version": "0.2.0",
"description": "React component to create interactive D3 directed acyclic graphs (DAGs)",
"author": "Emily Klassen",
"license": "MIT",
"bugs": {
"url": "https://github.com/forivall/react-d3-dag/issues"
},
"contributors": [
"Ben Kremer"
],
"homepage": "https://github.com/forivall/react-d3-dag",
"files": [
"lib",
"src",
"tsconfig.json"
],
"type": "module",
"exports": {
".": {
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js"
}
},
"module": "lib/esm/index.js",
"main": "lib/cjs/index.js",
"types": "lib/types/index.d.ts",
"scripts": {
"build:docs": "rimraf ./docs && typedoc",
"build:cjs": "tsc -p tsconfig.json",
"build:esm": "tsc -p tsconfig.esm.json",
"build": "rimraf lib && npm run build:cjs && npm run build:esm",
"build:watch": "rimraf lib && npm run build:esm -- -w",
"lint": "eslint src/**/*.js",
"test": "jest --config jest.config.json --coverage --verbose",
"posttest": "npm run lint",
"test:clean": "rimraf ./coverage",
"test:watch": "jest --watchAll",
"test:cov": "jest --coverage --verbose",
"coveralls": "cat ./coverage/lcov.info | coveralls",
"show:cov": "open coverage/lcov-report/index.html",
"show:docs": "open demo/public/docs/index.html",
"prepublishOnly": "npm run test && npm run build",
"deploy:demo": "npm run build && npm run build:docs && cd demo && npm run build && npm run deploy"
},
"repository": {
"type": "git",
"url": "https://github.com/forivall/react-d3-dag.git"
},
"keywords": [
"react",
"d3",
"tree",
"dag",
"component",
"directed-acyclic-graph",
"directed",
"acyclic",
"graph",
"svg",
"hierarchical-data",
"hierarchy",
"d3-visualization",
"chart"
],
"engines": {
"node": ">=14"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"src/**/*.js": [
"eslint",
"prettier --write",
"jest --findRelatedTests",
"git add"
],
"src/**/*.{ts,tsx}": [
"prettier --write",
"jest --findRelatedTests",
"git add"
]
},
"dependencies": {
"@bkrem/react-transition-group": "^1.3.3",
"clone": "^2.1.1",
"d3-dag": "^1.0.0",
"d3-selection": "^3.0.0",
"d3-shape": "^1.3.7",
"d3-zoom": "^3.0.0",
"dequal": "^2.0.2",
"uuid": "^8.3.2"
},
"peerDependencies": {
"react": "16.x || 17.x || 18.x",
"react-dom": "16.x || 17.x || 18.x"
},
"devDependencies": {
"@babel/core": "^7.17.0",
"@babel/plugin-proposal-class-properties": "^7.16.7",
"@babel/preset-env": "^7.20.2",
"@babel/preset-react": "^7.16.7",
"@babel/preset-typescript": "^7.16.7",
"@types/d3-selection": "^1.4.3",
"@types/d3-shape": "^1.3.5",
"@types/d3-zoom": "^1.8.2",
"@types/jest": "^27.4.0",
"@types/react": "^17.0.39",
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.6",
"babel-eslint": "^10.0.3",
"babel-jest": "^27.4.6",
"coveralls": "^3.1.1",
"enzyme": "^3.11.0",
"eslint": "^6.8.0",
"eslint-config-airbnb": "^16.1.0",
"eslint-config-prettier": "^3.3.0",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-jsx-a11y": "^6.0.2",
"eslint-plugin-react": "^7.5.1",
"husky": "^3.0.4",
"jest": "^27.4.7",
"lint-staged": "^12.3.3",
"prettier": "^2.5.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-test-renderer": "^17.0.2",
"regenerator-runtime": "^0.13.9",
"rimraf": "^3.0.2",
"ts-jest": "^27.1.3",
"ts-node": "^10.4.0",
"tsconfig-paths": "^3.12.0",
"typedoc": "^0.22.11",
"typescript": "~5.0.4"
}
}