@crashbytes/react-version-compare
Version:
A React component for comparing strings and arrays with precise word-level and item-level highlighting of differences.
98 lines (97 loc) • 2.94 kB
JSON
{
"name": "@crashbytes/react-version-compare",
"version": "1.0.3",
"description": "A React component for comparing strings and arrays with precise word-level and item-level highlighting of differences.",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/index.d.ts",
"publishConfig": {
"access": "public"
},
"files": [
"dist",
"README.md"
],
"scripts": {
"build": "rollup -c && cp src/styles/Compare.css dist/styles.css",
"dev": "rollup -c -w",
"test": "jest --no-coverage",
"test:coverage": "jest --coverage",
"test:watch": "jest --watch",
"clean": "rm -rf dist",
"prepublishOnly": "npm run clean && npm run build",
"lint": "eslint src --ext .ts,.tsx",
"type-check": "tsc --noEmit",
"demo": "vite",
"build-demo": "vite build",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"storybook:build": "storybook build",
"storybook:deploy": "storybook build && gh-pages -d storybook-static"
},
"keywords": [
"react",
"diff",
"compare",
"comparison",
"side-by-side",
"word-diff",
"array-diff",
"typescript",
"highlight",
"changes"
],
"author": "Your Name <your.email@example.com>",
"license": "Apache-2.0",
"homepage": "https://github.com/CrashBytes/react-version-compare#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/CrashBytes/react-version-compare.git"
},
"bugs": {
"url": "https://github.com/CrashBytes/react-version-compare/issues"
},
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
},
"dependencies": {
"@contentful/rich-text-types": "^17.0.1",
"diff": "^8.0.1",
"tslib": "^2.8.1"
},
"devDependencies": {
"@babel/core": "^7.27.1",
"@babel/preset-env": "^7.27.2",
"@babel/preset-react": "^7.27.1",
"@babel/preset-typescript": "^7.27.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^28.0.3",
"@rollup/plugin-node-resolve": "^16.0.1",
"@rollup/plugin-typescript": "^12.1.2",
"@storybook/addon-docs": "^9.0.15",
"@storybook/addon-onboarding": "^9.0.15",
"@storybook/react-vite": "^9.0.15",
"@testing-library/jest-dom": "^6.1.0",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.5.0",
"@types/jest": "^29.5.0",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
"@vitejs/plugin-react": "^4.6.0",
"babel-jest": "^29.7.0",
"gh-pages": "^6.3.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rollup": "^4.40.2",
"rollup-plugin-dts": "^6.2.1",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-postcss": "^4.0.2",
"storybook": "^9.0.15",
"typescript": "^5.8.3",
"vite": "^7.0.2"
}
}