react-floater
Version:
Floaters everywhere!
138 lines (137 loc) • 3.61 kB
JSON
{
"name": "react-floater",
"version": "0.9.4",
"description": "Floaters everywhere!",
"author": "Gil Barbara <gilbarbara@gmail.com>",
"keywords": [
"react",
"react-component",
"component",
"tooltip",
"modal",
"popup",
"alert",
"notification"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/gilbarbara/react-floater.git"
},
"bugs": {
"url": "https://github.com/gilbarbara/react-floater/issues"
},
"homepage": "https://github.com/gilbarbara/react-floater#readme",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js"
}
},
"files": [
"dist",
"src"
],
"types": "dist/index.d.ts",
"sideEffects": false,
"peerDependencies": {
"react": "16.8 - 19",
"react-dom": "16.8 - 19"
},
"dependencies": {
"@popperjs/core": "^2.11.8",
"deepmerge-ts": "^7.1.0",
"is-lite": "^1.2.1",
"tree-changes-hook": "^0.11.2"
},
"devDependencies": {
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@gilbarbara/eslint-config": "^0.8.1",
"@gilbarbara/node-helpers": "^0.1.0",
"@gilbarbara/prettier-config": "^1.0.0",
"@gilbarbara/tsconfig": "^0.2.3",
"@gilbarbara/types": "^0.2.2",
"@size-limit/preset-small-lib": "^11.1.5",
"@swc/core": "^1.7.24",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react": "^16.0.1",
"@types/exenv": "^1.2.2",
"@types/node": "^22.5.4",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react-swc": "^3.7.0",
"@vitest/coverage-v8": "^2.0.5",
"del-cli": "^5.1.0",
"disable-scroll": "^0.6.0",
"husky": "^9.1.5",
"is-ci-cli": "^2.2.0",
"jest-extended": "^4.0.2",
"jsdom": "^25.0.0",
"react": "next",
"react-dom": "next",
"react-use": "^17.5.1",
"repo-tools": "^0.3.1",
"size-limit": "^11.1.5",
"ts-node": "^10.9.2",
"tsup": "^8.2.4",
"type-fest": "^4.26.1",
"typescript": "^5.5.4",
"vitest": "^2.0.5"
},
"scripts": {
"build": "npm run clean && tsup && ts-node scripts/fix-cjs.ts",
"watch": "tsup --watch",
"clean": "del dist/*",
"lint": "eslint src test",
"test": "is-ci \"test:coverage\" \"test:watch\"",
"test:coverage": "vitest run --coverage",
"test:watch": "vitest watch",
"typecheck": "tsc -p test/tsconfig.json --noEmit",
"format": "prettier \"**/*.{js,jsx,json,yml,yaml,css,less,scss,ts,tsx,md,graphql,mdx}\" --write",
"validate": "npm run lint && npm run typecheck && npm run test:coverage && npm run build && npm run size",
"size": "size-limit",
"storybook:dev": "start-storybook -p 6006",
"storybook:build": "build-storybook",
"prepublishOnly": "npm run validate",
"prepare": "husky"
},
"tsup": {
"dts": true,
"entry": [
"src/index.tsx"
],
"format": [
"cjs",
"esm"
],
"sourcemap": true,
"splitting": false
},
"eslintConfig": {
"extends": [
"@gilbarbara/eslint-config",
"@gilbarbara/eslint-config/vitest",
"@gilbarbara/eslint-config/testing-library"
],
"rules": {
"testing-library/no-node-access": "off"
}
},
"prettier": "@gilbarbara/prettier-config",
"size-limit": [
{
"name": "commonjs",
"path": "./dist/index.js",
"limit": "20 kB"
},
{
"name": "esm",
"path": "./dist/index.mjs",
"limit": "20 kB"
}
]
}