@yhattav/react-component-cursor
Version:
A lightweight, TypeScript-first React library for creating beautiful custom cursors with SSR support, smooth animations, and zero dependencies. Perfect for interactive websites, games, and creative applications.
175 lines (174 loc) • 5.1 kB
JSON
{
"version": "1.0.0",
"license": "MIT",
"exports": {
".": {
"development": {
"types": "./dist/index.d.ts",
"import": "./dist/index.dev.mjs",
"require": "./dist/index.dev.js"
},
"production": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"default": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
}
}
},
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"dist",
"src"
],
"engines": {
"node": ">=10"
},
"scripts": {
"start": "tsup --watch",
"build": "tsup",
"test": "vitest",
"test:run": "vitest run",
"test:ui": "vitest --ui",
"test:coverage": "vitest run --coverage",
"test:watch": "vitest",
"lint": "eslint \"src/**/*.{ts,tsx}\"",
"lint-fix": "eslint \"src/**/*.{ts,tsx}\" --fix",
"prepare": "tsup",
"size": "size-limit",
"analyze": "size-limit --why",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook",
"type-check": "tsc --noEmit",
"pre-commit": "npm run lint-fix && npm run type-check",
"dev": "concurrently \"npm start\" \"cd example && npm run dev\"",
"build-all": "npm run build && cd example && npm run build",
"setup": "node scripts/setup.js",
"cleanup": "node scripts/cleanup.js",
"perf:benchmark": "node scripts/performance-benchmark.js",
"perf:monitor": "node scripts/performance-monitor.js",
"perf:baseline": "node scripts/performance-monitor.js --set-baseline",
"perf:ci": "npm run perf:benchmark && npm run perf:monitor",
"perf:dashboard": "node scripts/generate-dashboard.js",
"integration:test": "node scripts/integration-test.js",
"integration:browser": "node scripts/browser-integration-test.js",
"integration:all": "npm run integration:test && npm run integration:browser",
"e2e": "playwright test",
"e2e:ui": "playwright test --ui",
"e2e:debug": "playwright test --debug",
"e2e:report": "playwright show-report"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
},
"husky": {
"hooks": {
"pre-commit": "npm run pre-commit"
}
},
"prettier": {
"printWidth": 80,
"semi": true,
"singleQuote": true,
"trailingComma": "es5"
},
"name": "@yhattav/react-component-cursor",
"description": "A lightweight, TypeScript-first React library for creating beautiful custom cursors with SSR support, smooth animations, and zero dependencies. Perfect for interactive websites, games, and creative applications.",
"keywords": [
"react",
"cursor",
"custom-cursor",
"typescript",
"component",
"interactive",
"design",
"animation",
"mouse-tracker",
"ssr",
"nextjs",
"ui-components",
"frontend",
"react-hooks",
"smooth-animation",
"pointer-events"
],
"repository": {
"type": "git",
"url": "https://github.com/yhattav/react-component-cursor.git"
},
"homepage": "https://yhattav.github.io/react-component-cursor",
"bugs": {
"url": "https://github.com/yhattav/react-component-cursor/issues"
},
"publishConfig": {
"access": "public"
},
"author": "yhattav",
"size-limit": [
{
"name": "Production Bundle (CJS)",
"path": "dist/index.js",
"limit": "10 KB"
},
{
"name": "Production Bundle (ESM)",
"path": "dist/index.mjs",
"limit": "10 KB"
},
{
"name": "Development Bundle (CJS)",
"path": "dist/index.dev.js",
"limit": "15 KB"
},
{
"name": "Development Bundle (ESM)",
"path": "dist/index.dev.mjs",
"limit": "15 KB"
}
],
"devDependencies": {
"@babel/core": "^7.26.0",
"@playwright/test": "^1.52.0",
"@size-limit/preset-small-lib": "^11.1.6",
"@storybook/addon-essentials": "^8.4.1",
"@storybook/addon-info": "^5.3.21",
"@storybook/addon-links": "^8.4.1",
"@storybook/addons": "^6.5.16",
"@storybook/react": "^8.4.1",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^14.2.1",
"@types/node": "^22.15.32",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"@vitest/coverage-v8": "^1.6.1",
"@vitest/ui": "^1.6.1",
"babel-loader": "^9.2.1",
"concurrently": "^9.0.1",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.10.0",
"eslint-config-react-app": "^6.0.0",
"happy-dom": "^10.11.2",
"husky": "^9.1.6",
"playwright": "^1.52.0",
"prettier": "^2.8.8",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-is": "^18.3.1",
"serve-handler": "^6.1.6",
"size-limit": "^11.1.6",
"tslib": "^2.8.0",
"tsup": "^8.3.5",
"typescript": "^5.8.3",
"vitest": "^1.6.1"
}
}