mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 08:30:02 +03:00
d3-state-visualizer
This commit is contained in:
parent
15add8d1be
commit
e629c248ea
|
@ -1,7 +0,0 @@
|
||||||
{
|
|
||||||
"presets": [
|
|
||||||
["@babel/preset-env", { "targets": "defaults", "modules": false }],
|
|
||||||
"@babel/preset-typescript"
|
|
||||||
],
|
|
||||||
"plugins": ["@babel/plugin-transform-runtime"]
|
|
||||||
}
|
|
|
@ -1,7 +0,0 @@
|
||||||
{
|
|
||||||
"presets": [
|
|
||||||
["@babel/preset-env", { "targets": "defaults" }],
|
|
||||||
"@babel/preset-typescript"
|
|
||||||
],
|
|
||||||
"plugins": ["@babel/plugin-transform-runtime"]
|
|
||||||
}
|
|
|
@ -20,19 +20,16 @@
|
||||||
"lib",
|
"lib",
|
||||||
"src"
|
"src"
|
||||||
],
|
],
|
||||||
"main": "lib/cjs/index.js",
|
"main": "lib/index.js",
|
||||||
"module": "lib/esm/index.js",
|
"types": "lib/index.d.ts",
|
||||||
"types": "lib/types/index.d.ts",
|
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
|
"type": "module",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/reduxjs/redux-devtools.git"
|
"url": "https://github.com/reduxjs/redux-devtools.git"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "pnpm run build:cjs && pnpm run build:esm && pnpm run build:types",
|
"build": "tsc",
|
||||||
"build:cjs": "babel src --extensions \".ts\" --out-dir lib/cjs",
|
|
||||||
"build:esm": "babel src --config-file ./babel.config.esm.json --extensions \".ts\" --out-dir lib/esm",
|
|
||||||
"build:types": "tsc --emitDeclarationOnly",
|
|
||||||
"clean": "rimraf lib",
|
"clean": "rimraf lib",
|
||||||
"lint": "eslint . --ext .ts",
|
"lint": "eslint . --ext .ts",
|
||||||
"type-check": "tsc --noEmit",
|
"type-check": "tsc --noEmit",
|
||||||
|
@ -40,7 +37,6 @@
|
||||||
"prepublish": "pnpm run type-check && pnpm run lint"
|
"prepublish": "pnpm run type-check && pnpm run lint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.23.5",
|
|
||||||
"@types/d3": "^7.4.3",
|
"@types/d3": "^7.4.3",
|
||||||
"d3": "^7.8.5",
|
"d3": "^7.8.5",
|
||||||
"d3tooltip": "^3.0.0",
|
"d3tooltip": "^3.0.0",
|
||||||
|
@ -49,11 +45,6 @@
|
||||||
"ramda": "^0.29.1"
|
"ramda": "^0.29.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/cli": "^7.23.4",
|
|
||||||
"@babel/core": "^7.23.5",
|
|
||||||
"@babel/eslint-parser": "^7.23.3",
|
|
||||||
"@babel/preset-env": "^7.23.5",
|
|
||||||
"@babel/preset-typescript": "^7.23.3",
|
|
||||||
"@types/ramda": "^0.29.9",
|
"@types/ramda": "^0.29.9",
|
||||||
"@typescript-eslint/eslint-plugin": "^6.13.2",
|
"@typescript-eslint/eslint-plugin": "^6.13.2",
|
||||||
"@typescript-eslint/parser": "^6.13.2",
|
"@typescript-eslint/parser": "^6.13.2",
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
export type { HierarchyPointNode } from 'd3';
|
export type { HierarchyPointNode } from 'd3';
|
||||||
export type { StyleValue } from 'd3tooltip';
|
export type { StyleValue } from 'd3tooltip';
|
||||||
export { default as tree } from './tree/tree';
|
export { default as tree } from './tree/tree.js';
|
||||||
export type { Node, Options } from './tree/tree';
|
export type { Node, Options } from './tree/tree.js';
|
||||||
|
|
|
@ -4,14 +4,14 @@ import { isEmpty } from 'ramda';
|
||||||
import { map2tree } from 'map2tree';
|
import { map2tree } from 'map2tree';
|
||||||
import type { Node } from 'map2tree';
|
import type { Node } from 'map2tree';
|
||||||
import deepmerge from 'deepmerge';
|
import deepmerge from 'deepmerge';
|
||||||
|
import { tooltip } from 'd3tooltip';
|
||||||
|
import type { StyleValue } from 'd3tooltip';
|
||||||
import {
|
import {
|
||||||
getTooltipString,
|
getTooltipString,
|
||||||
toggleChildren,
|
toggleChildren,
|
||||||
visit,
|
visit,
|
||||||
getNodeGroupByDepthCount,
|
getNodeGroupByDepthCount,
|
||||||
} from './utils';
|
} from './utils.js';
|
||||||
import { tooltip } from 'd3tooltip';
|
|
||||||
import type { StyleValue } from 'd3tooltip';
|
|
||||||
|
|
||||||
export interface Options {
|
export interface Options {
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { is, join, pipe, replace } from 'ramda';
|
import { is, join, pipe, replace } from 'ramda';
|
||||||
import sortAndSerialize from './sortAndSerialize';
|
import sortAndSerialize from './sortAndSerialize.js';
|
||||||
import type { InternalNode } from './tree';
|
import type { InternalNode } from './tree.js';
|
||||||
|
|
||||||
export function collapseChildren(node: InternalNode) {
|
export function collapseChildren(node: InternalNode) {
|
||||||
if (node.children) {
|
if (node.children) {
|
||||||
|
|
|
@ -1,2 +1,7 @@
|
||||||
export { tree } from './charts';
|
export { tree } from './charts/index.js';
|
||||||
export type { HierarchyPointNode, Node, Options, StyleValue } from './charts';
|
export type {
|
||||||
|
HierarchyPointNode,
|
||||||
|
Node,
|
||||||
|
Options,
|
||||||
|
StyleValue,
|
||||||
|
} from './charts/index.js';
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"extends": "../../tsconfig.base.json",
|
"extends": "../../tsconfig.esm.base.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "lib/types"
|
"outDir": "lib"
|
||||||
},
|
},
|
||||||
"include": ["src"]
|
"include": ["src"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"extends": "../../tsconfig.esm.base.json",
|
"extends": "../../tsconfig.esm.base.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "lib/types"
|
"outDir": "lib"
|
||||||
},
|
},
|
||||||
"include": ["src"]
|
"include": ["src"]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user