Files
redash/viz-lib/package.json
Vladislav Denisov 24b70fed9e Update frontend stack (#7651)
* Snapshot: 24.07.0-dev

* Snapshot: 24.08.0-dev

* Snapshot: 24.09.0-dev

* Snapshot: 24.10.0-dev

* Snapshot: 24.11.0-dev

* Snapshot: 24.12.0-dev

* Snapshot: 25.01.0-dev

* Snapshot: 25.02.0-dev

* Snapshot: 25.03.0-dev

* Snapshot: 25.04.0-dev

* Upgrade Node.js version to 24 in Dockerfile and .nvmrc; update package.json engine constraints

* Update major dependencies

* Switch from yarn to pnpm

* Switch from yarn to pnpm: ci

* Update Python version to 3.13 in CI workflow

* Refactor Netlify build command to remove pnpm installation step

* Update ESLint configuration for improved compatibility and disable specific rules

* Restyled by prettier

* Add typeRoots and types to tsconfig for improved type definitions

* Update Dockerfile.cypress to use Node 24 and streamline installation steps

* Fixed tests

* Restyled by prettier

* Update Jest snapshot comments to point to the official documentation URL

* viz-lib: refactor test setup and update snapshots for consistency

* Add babel-jest as a dev dependency for improved testing support

* Add virtual prop to visualization type selector for improved functionality

* Remove CJS/ESM compatibility shim for color-rgba

* Restyled by prettier

* Enable ESLintPlugin conditionally based on production environment

* Import d3 library in d3box.ts

* Fix pip install command in CI workflow to use python -m

* Replace d3 import with global declaration for compatibility with d3 v3

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Restyled.io <commits@restyled.io>
2026-03-17 20:54:25 +00:00

128 lines
3.7 KiB
JSON

{
"name": "@redash/viz",
"version": "1.0.0",
"description": "Redash visualizations",
"main": "dist/redash-visualizations.js",
"scripts": {
"clean": "rm -rf lib dist",
"type-check": "tsc --noEmit",
"type-gen": "tsc --emitDeclarationOnly",
"build:babel:base": "babel src --out-dir lib --source-maps --ignore 'src/**/*.test.js' --copy-files --no-copy-ignored --extensions .ts,.tsx,.js,.jsx",
"build:babel": "pnpm run type-gen && pnpm run build:babel:base",
"build:webpack": "webpack",
"build": " NODE_ENV=production npm-run-all clean build:babel build:webpack",
"watch:babel": "pnpm run build:babel:base --watch",
"watch:webpack": "webpack --watch",
"watch": "npm-run-all --parallel watch:*",
"version": "pnpm run build",
"prettier": "prettier --write 'src/**/*.{ts,tsx}'",
"test": "jest",
"test:watch": "jest --watch"
},
"repository": {
"type": "git",
"url": "git+https://github.com/getredash/redash.git"
},
"author": "Redash",
"license": "BSD-2-Clause",
"peerDependencies": {
"@ant-design/icons": ">=4.0.0",
"antd": ">=4.0.0",
"react-dom": ">=16.14.0"
},
"devDependencies": {
"@babel/cli": "^7.28.6",
"@babel/core": "^7.29.0",
"@babel/plugin-transform-class-properties": "^7.28.5",
"@babel/preset-env": "^7.29.0",
"@babel/preset-react": "^7.28.5",
"@babel/preset-typescript": "^7.28.5",
"@types/chroma-js": "^2.1.2",
"@types/d3": "^6.2.0",
"@types/d3-cloud": "^1.2.3",
"@types/debug": "^4.1.5",
"@types/dompurify": "^2.0.4",
"@types/enzyme": "^3.10.8",
"@types/jest": "^26.0.18",
"@types/leaflet": "^1.5.19",
"@types/numeral": "0.0.28",
"@types/plotly.js": "^3.0.10",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"@types/react-pivottable": "^0.11.6",
"@types/react-plotly.js": "^2.6.4",
"@types/tinycolor2": "^1.4.2",
"babel-loader": "^10.0.0",
"babel-plugin-istanbul": "^6.1.1",
"babel-plugin-module-resolver": "^5.0.0",
"css-loader": "^7.1.4",
"babel-jest": "^30.2.0",
"enzyme": "^3.8.0",
"enzyme-adapter-react-16": "^1.15.7",
"enzyme-to-json": "^3.3.5",
"jest": "^30.2.0",
"less": "^4.5.1",
"less-loader": "^12.3.1",
"less-plugin-autoprefix": "^2.0.0",
"npm-run-all": "^4.1.5",
"prettier": "3.3.2",
"prop-types": "^15.7.2",
"style-loader": "^4.0.0",
"ts-migrate": "^0.1.35",
"typescript": "^5.9.3",
"webpack": "^5.105.3",
"webpack-cli": "^6.0.1"
},
"files": [
"dist",
"lib"
],
"dependencies": {
"axios": "0.28.0",
"axios-auth-refresh": "3.3.6",
"beautifymarker": "^1.0.7",
"chroma-js": "^1.3.6",
"classnames": "^2.2.6",
"d3": "^3.5.17",
"d3-cloud": "^1.2.4",
"debug": "^3.1.0",
"dompurify": "^2.0.7",
"font-awesome": "^4.7.0",
"hoist-non-react-statics": "^3.3.0",
"leaflet": "~1.3.1",
"leaflet-fullscreen": "^1.0.2",
"leaflet.markercluster": "^1.1.0",
"lodash": "^4.17.10",
"numeral": "^2.0.6",
"plotly.js": "3.3.1",
"react-pivottable": "^0.11.0",
"react-plotly.js": "^2.6.0",
"react-sortable-hoc": "^1.10.1",
"tinycolor2": "^1.4.1",
"use-debounce": "^3.4.1",
"use-media": "^1.4.0"
},
"jest": {
"rootDir": "./src",
"testEnvironment": "jsdom",
"transform": {
"\\.[jt]sx?$": "babel-jest"
},
"setupFiles": [
"../__tests__/enzyme_setup.js",
"../__tests__/mocks.js"
],
"snapshotSerializers": [
"enzyme-to-json/serializer"
],
"moduleNameMapper": {
"^@/(.*)": "<rootDir>/$1",
"\\.(css|less)$": "identity-obj-proxy"
}
},
"browser": {
"fs": false,
"path": false
}
}