UNPKG

@maptiler/geocoding-control

Version:

The Javascript & TypeScript Map Control component for MapTiler Geocoding service. Easy to be integrated into any JavaScript mapping application.

178 lines (177 loc) 5.95 kB
{ "name": "@maptiler/geocoding-control", "version": "2.1.7", "description": "The Javascript & TypeScript Map Control component for MapTiler Geocoding service. Easy to be integrated into any JavaScript mapping application.", "type": "module", "author": { "name": "MapTiler", "email": "info@maptiler.com" }, "license": "BSD-3-Clause", "repository": { "type": "git", "url": "https://github.com/maptiler/maptiler-geocoding-control" }, "bugs": { "url": "https://github.com/maptiler/maptiler-geocoding-control/issues" }, "keywords": [ "geocoding", "forward-geocoding", "reverse-geocoding", "maptiler", "leaflet", "maplibre", "map", "search", "leaflet-control", "maplibre-control", "control", "react", "svelte" ], "scripts": { "dev": "vite --host", "build": "node sync-info.js run && npm run check && concurrently --names \"SVELTE ,MAPLIBRE,MAPTILER,MAPLIB-C,LEAFLET ,LEAFLE-C,OL ,OL-C ,REACT ,TYPES ,VANILLA \" \"npm run build-svelte\" \"npm run build-maplibre\" \"npm run build-maptilersdk\" \"npm run build-maplibre-controller\" \"npm run build-leaflet\" \"npm run build-leaflet-controller\" \"npm run build-openlayers\" \"npm run build-openlayers-controller\" \"npm run build-react\" \"npm run build-vanilla\" \"npm run build-types\" && cp LICENSE README.md package.json dist && cp -r dist.svelte dist/svelte", "build-svelte": "svelte-package -i src -o dist.svelte && VITE_LIB_VERSION=$npm_package_version node replace-env-vars.js", "build-maptilersdk": "FLAVOUR=maptilersdk vite build", "build-maplibre": "FLAVOUR=maplibre vite build", "build-maplibre-controller": "FLAVOUR=maplibregl-controller vite build", "build-leaflet": "FLAVOUR=leaflet vite build", "build-leaflet-controller": "FLAVOUR=leaflet-controller vite build", "build-openlayers": "FLAVOUR=openlayers vite build", "build-openlayers-controller": "FLAVOUR=openlayers-controller vite build", "build-react": "FLAVOUR=react vite build", "build-vanilla": "FLAVOUR=vanilla vite build", "build-types": "tsc --outDir dist --declaration --emitDeclarationOnly -p tsconfig.dist.json", "lint": "eslint -c eslint.config.js . && prettier --check . && tsc --noEmit", "lint:fix": "eslint -c eslint.config.js --fix && prettier --write . && tsc --noEmit", "clean": "rm -rf dist dist.svelte", "pack": "npm run clean && npm run build && cd dist && npm pack", "pub": "npm run clean && npm run build && cd dist && npm publish", "pub-next": "npm run clean && npm run build && cd dist && npm publish --tag next", "cdn-pr": "npm run clean && npm run build && ./create-cdn-pr.sh", "preview": "vite preview", "check": "svelte-check --tsconfig ./tsconfig.json", "prepare": "husky" }, "exports": { "./leaflet": { "import": "./leaflet.js", "require": "./leaflet.umd.js" }, "./leaflet-controller": { "import": "./leaflet-controller.js", "require": "./leaflet-controller.umd.js" }, "./openlayers": { "import": "./openlayers.js", "require": "./openlayers.umd.js" }, "./openlayers-controller": { "import": "./openlayers-controller.js", "require": "./openlayers-controller.umd.js" }, "./maplibregl": { "import": "./maplibregl.js", "require": "./maplibregl.umd.js" }, "./maptilersdk": { "import": "./maptilersdk.js", "require": "./maptilersdk.umd.js" }, "./maplibregl-controller": { "import": "./maplibregl-controller.js", "require": "./maplibregl-controller.umd.js" }, "./react": { "import": "./react.js", "require": "./react.umd.js" }, "./vanilla": { "import": "./vanilla.js", "require": "./vanilla.umd.js" }, "./style.css": { "import": "./style.css", "require": "./style.css" }, "./svelte/GeocodingControl.svelte": { "types": "./svelte/GeocodingControl.svelte.d.ts", "svelte": "./svelte/GeocodingControl.svelte" }, "./svelte/*": "./svelte/*", "./types": "./types.d.ts" }, "devDependencies": { "@maptiler/sdk": "^3.0.1", "@sveltejs/package": "^2.3.9", "@sveltejs/vite-plugin-svelte": "^3.1.2", "@tsconfig/svelte": "^5.0.4", "@types/geojson": "^7946.0.16", "@types/leaflet": "^1.9.16", "@types/node": "^22.12.0", "@types/react": "^19.0.8", "@types/react-dom": "^19.0.3", "concurrently": "^9.1.2", "dotenv": "^16.4.7", "eslint": "^9.19.0", "eslint-plugin-svelte": "^2.46.1", "esm-env": "^1.2.2", "globals": "^15.14.0", "husky": "^9.1.7", "leaflet": "^1.9.4", "maplibre-gl": "^5.1.0", "ol": "10.4", "prettier": "^3.4.2", "prettier-plugin-organize-imports": "^4.1.0", "prettier-plugin-svelte": "^3.3.3", "react": "^19.0.0", "react-dom": "^19.0.0", "replace-in-file": "^8.3.0", "sass": "^1.83.4", "svelte": "^4.2.19", "svelte-check": "^4.1.4", "svelte-preprocess": "^6.0.3", "tslib": "^2.8.1", "typescript": "^5.7.3", "typescript-eslint": "^8.22.0", "vite": "^5.4.14" }, "peerDependencies": { "@maptiler/sdk": "^1 || ^2 || ^3", "leaflet": "^1.7 || ^1.8 || ^1.9", "maplibre-gl": "^2 || ^3 || ^4 || ^5", "ol": "^6 || ^7 || ^8 || ^9 || ^10", "react": "^17 || ^18 || ^19", "svelte": "^4.2" }, "peerDependenciesMeta": { "@maptiler/sdk": { "optional": true }, "leaflet": { "optional": true }, "maplibre-gl": { "optional": true }, "ol": { "optional": true }, "react": { "optional": true }, "svelte": { "optional": true } }, "dependencies": { "@turf/bbox": "^7.2.0", "@turf/clone": "^7.2.0", "@turf/difference": "^7.2.0", "@turf/flatten": "^7.2.0", "@turf/union": "^7.2.0", "geo-coordinates-parser": "^1.7.4" } }