UNPKG

@antv/s2-react-components

Version:

React components for S2

116 lines (115 loc) 3.29 kB
{ "name": "@antv/s2-react-components", "version": "2.1.2", "private": false, "description": "React components for S2", "keywords": [ "antv", "s2", "s2-react", "spreadsheet", "pivot table", "table", "react-components", "react-config-components", "s2-react-components", "s2-react-config-components", "s2-react-analysis-components" ], "homepage": "https://s2.antv.antgroup.com", "bugs": { "url": "https://github.com/antvis/S2/issues" }, "repository": { "type": "git", "url": "https://github.com/antvis/S2.git" }, "license": "MIT", "author": "https://github.com/orgs/antvis/people", "main": "lib/index.js", "unpkg": "dist/s2-react-components.min.js", "module": "esm/index.js", "types": "esm/index.d.ts", "directories": { "lib": "lib", "test": "tests" }, "files": [ "esm", "lib", "dist", "README.md" ], "scripts": { "build": "npm-run-all clean --parallel build:cjs build:esm build:umd", "build:analysis": "cross-env FORMAT=es ANALYSIS=true vite build", "build:cjs": "tsc --module commonjs --outDir lib -p tsconfig.build.json && pnpm build:sync-assets lib/", "build:esm": "tsc --module ESNext --outDir esm -p tsconfig.build.json && pnpm build:sync-assets esm/", "build:size-limit": "size-limit", "build:size-limit-json": "pnpm build:size-limit -- --json", "build:sync-assets": "rsync -av --include='*/' --include='*.less' --include='*.svg' --exclude='*' src/", "build:umd": "cross-env FORMAT=umd vite build", "clean": "rimraf lib esm dist temp", "start": "cross-env PLAYGROUND=true vite", "test": "jest --passWithNoTests --detectOpenHandles", "test:ci": "pnpm test", "test:ci-coverage": "pnpm test:coverage", "test:coverage": "pnpm test -- --coverage", "test:live": "node ../s2-react/scripts/test-live.mjs", "test:watch": "pnpm test -- --watch", "tsc": "tsc --noEmit", "watch": "rimraf esm && pnpm build:esm -w" }, "dependencies": { "ahooks": "^3.8.0", "classnames": "^2.5.1", "lodash": "^4.17.21", "react-beautiful-dnd": "^13.1.1", "tinycolor2": "^1.6.0", "tinygradient": "^1.1.5" }, "devDependencies": { "@ant-design/icons": "^5.3.7", "@antv/s2": "workspace:*", "@antv/s2-react": "workspace:*", "@testing-library/react": "^15.0.7", "@testing-library/react-hooks": "^8.0.1", "@types/react": "^18.3.3", "@types/react-beautiful-dnd": "^13.1.8", "@types/react-color": "^3.0.12", "@types/react-dom": "^18.3.0", "@types/tinycolor2": "^1.4.6", "antd": "^5.17.4", "react": "^18.3.1", "react-color": "^2.19.3", "react-dom": "^18.3.1", "vite-plugin-svgr": "^2.2.2" }, "peerDependencies": { "@ant-design/icons": ">=4.7.0", "@antv/s2": "^2.0.0", "antd": ">=4.16.13", "react": ">=16.9.0", "react-dom": ">=16.9.0" }, "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" }, "size-limit": [ { "path": "./dist/s2-react-components.min.js", "import": "{ createComponent }", "limit": "110 kB", "ignore": [ "antd", "S2", "React", "ReactDOM" ] } ], "tnpm": { "mode": "pnpm" } }