UNPKG

use-undo-manager

Version:

A React hook that enables undo/redo history management with debounced state commits.

81 lines (80 loc) 1.85 kB
{ "name": "use-undo-manager", "description": "A React hook that enables undo/redo history management with debounced state commits.", "version": "0.1.1", "type": "module", "private": false, "keywords": [ "react", "react-hook", "undo", "redo", "history", "state-management", "hooks", "undo-redo", "state", "react-state", "batching", "debounce", "time-travel", "undoable", "redoable", "react-undo", "react-redo", "custom-hook", "use-undo", "use-redo" ], "main": "dist/index.js", "module": "dist/index.js", "types": "./dist/index.d.ts", "exports": { ".": { "import": "./dist/index.js", "types": "./dist/index.d.ts" } }, "files": [ "dist" ], "author": "pvvng", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/pvvng/use-undo-manager" }, "bugs": { "url": "https://github.com/pvvng/use-undo-manager/issues" }, "homepage": "https://github.com/pvvng/use-undo-manager#readme", "scripts": { "dev": "vite", "build": "rm -rf dist && tsc && vite build", "lint": "eslint .", "preview": "vite preview" }, "peerDependencies": { "react": ">=18.0.0 <20.0.0", "react-dom": ">=18.0.0 <20.0.0" }, "devDependencies": { "@eslint/js": "^9.30.1", "@types/lodash.isequal": "^4.5.8", "@types/react": "^19.1.8", "@types/react-dom": "^19.1.6", "@vitejs/plugin-react": "^4.6.0", "eslint": "^9.30.1", "eslint-plugin-react-hooks": "^5.2.0", "eslint-plugin-react-refresh": "^0.4.20", "globals": "^16.3.0", "typescript": "~5.8.3", "typescript-eslint": "^8.35.1", "vite": "^7.0.4", "vite-plugin-dts": "^4.5.4", "vite-tsconfig-paths": "^5.1.4" }, "dependencies": { "lodash.isequal": "^4.5.0" } }