UNPKG

@adamscybot/react-leaflet-component-marker

Version:

A tiny wrapper for react-leaflet's <Marker /> component that allows you to use a React component as a marker, with working state, handlers, and access to parent contexts.

74 lines (73 loc) 2.01 kB
{ "name": "@adamscybot/react-leaflet-component-marker", "version": "2.0.3", "description": "A tiny wrapper for react-leaflet's <Marker /> component that allows you to use a React component as a marker, with working state, handlers, and access to parent contexts.", "author": "adamscybot", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/adamscybot/react-leaflet-component-marker.git" }, "bugs": { "url": "https://github.com/adamscybot/react-leaflet-component-marker/issues" }, "keywords": [ "react", "react-leaflet", "leaflet" ], "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", "files": [ "dist/*" ], "sideEffects": false, "scripts": { "lint": "eslint './src/**/*.ts' './src/**/*.tsx'", "build": "tsc --project tsconfig.build.json", "test": "cypress run --component --browser chrome", "test:dev": "cypress open --component --browser chrome" }, "devDependencies": { "@react-leaflet/core": "^3.0.0", "@types/leaflet": "^1.9.15", "@types/react": "^19.0.2", "@types/react-dom": "^19.0.2", "@types/react-is": "^19.0.0", "@vitejs/plugin-react-swc": "^3.7.2", "cypress": "^14.1.0", "eslint": "^9.17.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.2.1", "leaflet": "^1.9.4", "prettier": "^3.4.2", "react": "^19.0.0", "react-dom": "^19.0.0", "react-leaflet": "^5.0.0", "semantic-release": "^24.2.0", "typescript": "^5.7.2", "typescript-eslint": "^8.18.2", "vite": "^5.4.11" }, "peerDependencies": { "@react-leaflet/core": ">=2.0.0", "leaflet": ">=1.9.0", "react": ">=18.0.0", "react-dom": ">=18.0.0", "react-leaflet": ">=4.0.0" }, "dependencies": { "react-is": "^18.3.1", "react-reverse-portal": "^2.2.0", "type-fest": "^4.30.2" }, "release": { "branches": [ "main" ] }, "publishConfig": { "access": "public" } }