{"_id":"@balady-tech/navigation","_rev":"6-00ec9465d5b6ece700fc6a284757d102","name":"@balady-tech/navigation","dist-tags":{"latest":"0.0.9"},"versions":{"0.0.3":{"name":"@balady-tech/navigation","version":"0.0.3","author":{"name":"Frontend 2GIS.Apps"},"_id":"@balady-tech/navigation@0.0.3","maintainers":[{"name":"balady-tech","email":"balady.tech@urbi.ae"}],"dist":{"shasum":"8d579c49f07c992d673c9647965db6dd439fb8c8","tarball":"https://registry.npmjs.org/@balady-tech/navigation/-/navigation-0.0.3.tgz","fileCount":37,"integrity":"sha512-T2tThFoo6LN43UcHPSHMLYfpZ46Qkc1swwpzPRp0mZB4K2KRPRQ2JLbztQfq2odmloVps/jeyv09JgUnCm7W5Q==","signatures":[{"sig":"MEQCIDE6vXyyg9+U1YdgxNOPATsNc/f/SjiIrLfdmi6+e0xZAiBZASW0I4nTZs8cj/FkDiwCZVK9Urrt9zdyDouKCX7bfw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":37128},"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./api":{"types":"./dist/api.d.ts","default":"./dist/api.js"},"./hooks":{"types":"./dist/hooks.d.ts","default":"./dist/hooks.js"},"./utils":{"types":"./dist/utils.d.ts","default":"./dist/utils.js"},"./contexts":{"types":"./dist/contexts.d.ts","default":"./dist/contexts.js"},"./components":{"types":"./dist/components.d.ts","default":"./dist/components.js"}},"gitHead":"240f6abdf9ca9aeaae0d9a492383d978b83a777e","scripts":{"lint":"eslint --cache .","build":"tsc -b && vite build","prepare":"husky","release":"standard-version","prettier":"prettier -c \"./**/*.{ts,tsx,js,html,css,md}\" --config .prettierrc","type-check":"tsc --noEmit","prettier:fix":"prettier -w \"./**/*.{ts,tsx,js,html,css,md}\" --config .prettierrc"},"_npmUser":{"name":"balady-tech","email":"balady.tech@urbi.ae"},"_npmVersion":"10.8.2","description":"## Начало работы","directories":{},"lint-staged":{"*.{js,jsx,ts,tsx}":["bash -c 'npm run type-check'","npm run prettier:fix"]},"_nodeVersion":"20.18.3","dependencies":{"axios":"^1.7.9","idb-keyval":"^6.2.1","usehooks-ts":"^3.1.1","@2gis/mapgl-gltf":"^2.1.1","react-geolocated":"^4.3.0","@tanstack/react-query":"^5.66.7"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^6.1.0","husky":"^9.1.7","react":"^19.0.0","eslint":"^9.19.0","globals":"^15.14.0","prettier":"^3.5.1","react-dom":"^19.0.0","@eslint/js":"^9.19.0","typescript":"~5.7.2","@2gis/mapgl":"^1.50.0","@types/node":"^22.13.4","tailwindcss":"^4.0.0","@types/react":"^19.0.8","@commitlint/cli":"^19.7.1","vite-plugin-dts":"^4.5.0","vite-svg-loader":"^5.1.0","@types/react-dom":"^19.0.3","standard-version":"^9.5.0","vite-plugin-svgr":"^4.3.0","typescript-eslint":"^8.22.0","@vitejs/plugin-react-swc":"^3.5.0","eslint-plugin-react-hooks":"^5.0.0","eslint-plugin-react-refresh":"^0.4.18","prettier-plugin-tailwindcss":"^0.6.11","@commitlint/config-conventional":"^19.7.1"},"peerDependencies":{"react":"^19.0.0","react-dom":"^19.0.0","@2gis/mapgl":"^1.50.0","tailwindcss":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/navigation_0.0.3_1740569739660_0.4962160180556845","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@balady-tech/navigation","version":"0.0.4","author":{"name":"Frontend 2GIS.Apps"},"_id":"@balady-tech/navigation@0.0.4","maintainers":[{"name":"balady-tech","email":"balady.tech@urbi.ae"}],"dist":{"shasum":"c03cce0cc501ff1cb5b44121cbda75985449d1fb","tarball":"https://registry.npmjs.org/@balady-tech/navigation/-/navigation-0.0.4.tgz","fileCount":36,"integrity":"sha512-36948acgET0s23H0Mt4N0HaOYRXEfnhhCgxlVRP14btaanjN0sxe8v3kmZaPYKQFfGBy5kzK7mr+Egn1jZbu+A==","signatures":[{"sig":"MEQCIBynr9J1rHSA7lwlnwwxF4rDmS8es1wP3m2tB7SnqQESAiBMArhoHUmd98eHN4lDbLgfUh/1JUq15QidQXmCL6+Nwg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":37940},"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./api":{"types":"./dist/api.d.ts","default":"./dist/api.js"},"./hooks":{"types":"./dist/hooks.d.ts","default":"./dist/hooks.js"},"./utils":{"types":"./dist/utils.d.ts","default":"./dist/utils.js"},"./contexts":{"types":"./dist/contexts.d.ts","default":"./dist/contexts.js"},"./components":{"types":"./dist/components.d.ts","default":"./dist/components.js"}},"gitHead":"844f2651f649f63098ca11451dc2accc2efad0e8","scripts":{"lint":"eslint --cache .","build":"tsc -b && vite build","prepare":"husky","release":"standard-version","prettier":"prettier -c \"./**/*.{ts,tsx,js,html,css,md}\" --config .prettierrc","type-check":"tsc --noEmit","prettier:fix":"prettier -w \"./**/*.{ts,tsx,js,html,css,md}\" --config .prettierrc"},"_npmUser":{"name":"balady-tech","email":"balady.tech@urbi.ae"},"_npmVersion":"10.8.2","description":"## Начало работы","directories":{},"lint-staged":{"*.{js,jsx,ts,tsx}":["bash -c 'npm run type-check'","npm run prettier:fix"]},"_nodeVersion":"20.18.3","dependencies":{"axios":"^1.7.9","usehooks-ts":"^3.1.1","@2gis/mapgl-gltf":"^2.1.1","react-geolocated":"^4.3.0","@tanstack/react-query":"^5.66.7"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^6.1.0","husky":"^9.1.7","react":"^19.0.0","eslint":"^9.19.0","globals":"^15.14.0","prettier":"^3.5.1","react-dom":"^19.0.0","@eslint/js":"^9.19.0","typescript":"~5.7.2","@2gis/mapgl":"^1.50.0","@types/node":"^22.13.4","tailwindcss":"^4.0.0","@types/react":"^19.0.8","@commitlint/cli":"^19.7.1","vite-plugin-dts":"^4.5.0","vite-svg-loader":"^5.1.0","@types/react-dom":"^19.0.3","standard-version":"^9.5.0","vite-plugin-svgr":"^4.3.0","typescript-eslint":"^8.22.0","@vitejs/plugin-react-swc":"^3.5.0","eslint-plugin-react-hooks":"^5.0.0","eslint-plugin-react-refresh":"^0.4.18","prettier-plugin-tailwindcss":"^0.6.11","@commitlint/config-conventional":"^19.7.1"},"peerDependencies":{"react":"^19.0.0","react-dom":"^19.0.0","@2gis/mapgl":"^1.50.0","tailwindcss":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/navigation_0.0.4_1740638993808_0.9364040331917787","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@balady-tech/navigation","version":"0.0.5","author":{"name":"Frontend 2GIS.Apps"},"_id":"@balady-tech/navigation@0.0.5","maintainers":[{"name":"balady-tech","email":"balady.tech@urbi.ae"}],"dist":{"shasum":"db4580347a3ec882f03c82b0651c4549d852439b","tarball":"https://registry.npmjs.org/@balady-tech/navigation/-/navigation-0.0.5.tgz","fileCount":41,"integrity":"sha512-GYvYtKTo3gQBKUygHZUAiwSc0XZlWF/zSC50+5voCXEBI+V7np1QYR1+w1SGvjARHb2ynNgMZ90MGdwddlE08g==","signatures":[{"sig":"MEUCIEWiGpAP8y4Xfae9y8otVp9Z+MQ41zcdFfbOoSuLJO8AAiEAirSfE/XMFsTJh4FdkARdC6KaD0YdygdYUQJ0p7et4jY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":495520},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./api":{"types":"./dist/api.d.ts","default":"./dist/api.js"},"./hooks":{"types":"./dist/hooks.d.ts","default":"./dist/hooks.js"},"./utils":{"types":"./dist/utils.d.ts","default":"./dist/utils.js"},"./contexts":{"types":"./dist/contexts.d.ts","default":"./dist/contexts.js"},"./components":{"types":"./dist/components.d.ts","default":"./dist/components.js"}},"gitHead":"479076d1bcafa757c19023fd13cfb389aa8817ec","scripts":{"lint":"eslint --cache .","build":"tsc -b && vite build","prepare":"husky","release":"standard-version","prettier":"prettier -c \"./**/*.{ts,tsx,js,html,css,md}\" --config .prettierrc","type-check":"tsc --noEmit","prettier:fix":"prettier -w \"./**/*.{ts,tsx,js,html,css,md}\" --config .prettierrc"},"_npmUser":{"name":"balady-tech","email":"balady.tech@urbi.ae"},"_npmVersion":"10.8.2","description":"## Начало работы","directories":{},"lint-staged":{"*.{js,jsx,ts,tsx}":["bash -c 'npm run type-check'","npm run prettier:fix"]},"_nodeVersion":"20.18.3","dependencies":{"axios":"^1.7.9","usehooks-ts":"^3.1.1","@2gis/mapgl-gltf":"^2.1.1","react-geolocated":"^4.3.0","@tanstack/react-query":"^5.66.7"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^6.1.0","husky":"^9.1.7","react":"^19.0.0","eslint":"^9.19.0","globals":"^15.14.0","prettier":"^3.5.1","react-dom":"^19.0.0","@eslint/js":"^9.19.0","typescript":"~5.7.2","@2gis/mapgl":"^1.50.0","@types/node":"^22.13.4","tailwindcss":"^4.0.0","@types/react":"^19.0.8","@commitlint/cli":"^19.7.1","vite-plugin-dts":"^4.5.0","vite-svg-loader":"^5.1.0","@types/react-dom":"^19.0.3","standard-version":"^9.5.0","vite-plugin-svgr":"^4.3.0","typescript-eslint":"^8.22.0","@vitejs/plugin-react-swc":"^3.5.0","eslint-plugin-react-hooks":"^5.0.0","eslint-plugin-react-refresh":"^0.4.18","prettier-plugin-tailwindcss":"^0.6.11","@commitlint/config-conventional":"^19.7.1"},"peerDependencies":{"react":"^19.0.0","react-dom":"^19.0.0","@2gis/mapgl":"^1.50.0","tailwindcss":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/navigation_0.0.5_1740640939553_0.31952657574724985","host":"s3://npm-registry-packages-npm-production"}},"0.0.6":{"name":"@balady-tech/navigation","version":"0.0.6","author":{"name":"Frontend 2GIS.Apps"},"_id":"@balady-tech/navigation@0.0.6","maintainers":[{"name":"balady-tech","email":"balady.tech@urbi.ae"}],"dist":{"shasum":"01bb121e655bcaab408ea756fe61d490a9ccf4fb","tarball":"https://registry.npmjs.org/@balady-tech/navigation/-/navigation-0.0.6.tgz","fileCount":41,"integrity":"sha512-Dz8TJCknx1PzvvKF2ei4W0jjMUmoN/5Hjr8p0IdMzVLSRUzJBdH9kT49u/FcJPn107iYsZCqZ1rQmZ2ODEXZLQ==","signatures":[{"sig":"MEUCIQCzSas4/p4mGv4wppV5YsiB3XH+BttgdaTCPqTyaQJTHgIgHlG0hgzpXVDiVZNxhPuhlOZgbtwoiQS0tvwWZNllRwo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":495579},"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./api":{"types":"./dist/api/index.d.ts","default":"./dist/api.js"},"./hooks":{"types":"./dist/hooks/index.d.ts","default":"./dist/hooks.js"},"./utils":{"types":"./dist/utils/index.d.ts","default":"./dist/utils.js"},"./contexts":{"types":"./dist/contexts/index.d.ts","default":"./dist/contexts.js"},"./components":{"types":"./dist/components/index.d.ts","default":"./dist/components.js"}},"gitHead":"77c60a6ebc33235ed1e647f36473a5fcf8ec50f2","scripts":{"lint":"eslint --cache .","build":"tsc -b && vite build","prepare":"husky","release":"standard-version","prettier":"prettier -c \"./**/*.{ts,tsx,js,html,css,md}\" --config .prettierrc","type-check":"tsc --noEmit","prettier:fix":"prettier -w \"./**/*.{ts,tsx,js,html,css,md}\" --config .prettierrc"},"_npmUser":{"name":"balady-tech","email":"balady.tech@urbi.ae"},"_npmVersion":"10.8.2","description":"## Начало работы","directories":{},"lint-staged":{"*.{js,jsx,ts,tsx}":["bash -c 'npm run type-check'","npm run prettier:fix"]},"_nodeVersion":"20.18.3","dependencies":{"axios":"^1.7.9","usehooks-ts":"^3.1.1","@2gis/mapgl-gltf":"^2.1.1","react-geolocated":"^4.3.0","@tanstack/react-query":"^5.66.7"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^6.1.0","husky":"^9.1.7","react":"^19.0.0","eslint":"^9.19.0","globals":"^15.14.0","prettier":"^3.5.1","react-dom":"^19.0.0","@eslint/js":"^9.19.0","typescript":"~5.7.2","@2gis/mapgl":"^1.50.0","@types/node":"^22.13.4","tailwindcss":"^4.0.0","@types/react":"^19.0.8","@commitlint/cli":"^19.7.1","vite-plugin-dts":"^4.5.0","vite-svg-loader":"^5.1.0","@types/react-dom":"^19.0.3","standard-version":"^9.5.0","vite-plugin-svgr":"^4.3.0","typescript-eslint":"^8.22.0","@vitejs/plugin-react-swc":"^3.5.0","eslint-plugin-react-hooks":"^5.0.0","eslint-plugin-react-refresh":"^0.4.18","prettier-plugin-tailwindcss":"^0.6.11","@commitlint/config-conventional":"^19.7.1"},"peerDependencies":{"react":"^19.0.0","react-dom":"^19.0.0","@2gis/mapgl":"^1.50.0","tailwindcss":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/navigation_0.0.6_1740641937612_0.7397774528759318","host":"s3://npm-registry-packages-npm-production"}},"0.0.7":{"name":"@balady-tech/navigation","version":"0.0.7","author":{"name":"Frontend 2GIS.Apps"},"_id":"@balady-tech/navigation@0.0.7","maintainers":[{"name":"balady-tech","email":"balady.tech@urbi.ae"}],"dist":{"shasum":"704f46a0d2bc60a6fdab99ab53ebcfb40cc68318","tarball":"https://registry.npmjs.org/@balady-tech/navigation/-/navigation-0.0.7.tgz","fileCount":44,"integrity":"sha512-D16BTRrrvRGEhst9oh+ROLU1gItkKkiJRJobV2Tm7Me3CiZUg3nkx+/WYZS8ZQzrZjtKCIKbj2SlChOD0yR2hg==","signatures":[{"sig":"MEYCIQDYWTV+xWRNL5E5ksiSOFpuG5w71lJiHYUmSoJf0OBaSwIhAIyYYQYnwOoSluKto8GAqorTalN7XX2XHqfwUjz23FdB","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":442536},"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./api":{"types":"./dist/api/index.d.ts","default":"./dist/api.js"},"./hooks":{"types":"./dist/hooks/index.d.ts","default":"./dist/hooks.js"},"./utils":{"types":"./dist/utils/index.d.ts","default":"./dist/utils.js"},"./contexts":{"types":"./dist/contexts/index.d.ts","default":"./dist/contexts.js"},"./components":{"types":"./dist/components/index.d.ts","default":"./dist/components.js"}},"gitHead":"e2661ecb94ebab6aab07850eaabf4792b1494133","scripts":{"lint":"eslint --cache .","build":"tsc -b && vite build","prepare":"husky","release":"standard-version","prettier":"prettier -c \"./**/*.{ts,tsx,js,html,css}\" --config .prettierrc","type-check":"tsc --noEmit","prettier:fix":"prettier -w \"./**/*.{ts,tsx,js,html,css}\" --config .prettierrc"},"_npmUser":{"name":"balady-tech","email":"balady.tech@urbi.ae"},"_npmVersion":"10.8.2","description":"## Начало работы","directories":{},"lint-staged":{"*.{js,jsx,ts,tsx}":["bash -c 'npm run type-check'","npm run prettier:fix"]},"_nodeVersion":"20.18.3","dependencies":{"axios":"^1.7.9","usehooks-ts":"^3.1.1","@2gis/mapgl-gltf":"^2.1.1","react-geolocated":"^4.3.0","@tanstack/react-query":"^5.66.7"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^6.1.0","husky":"^9.1.7","react":"^19.0.0","eslint":"^9.19.0","globals":"^15.14.0","prettier":"^3.5.1","react-dom":"^19.0.0","@eslint/js":"^9.19.0","typescript":"~5.7.2","@2gis/mapgl":"^1.50.0","@types/node":"^22.13.4","tailwindcss":"^4.0.0","@types/react":"^19.0.8","@commitlint/cli":"^19.7.1","vite-plugin-dts":"^4.5.0","vite-svg-loader":"^5.1.0","@types/react-dom":"^19.0.3","standard-version":"^9.5.0","vite-plugin-svgr":"^4.3.0","typescript-eslint":"^8.22.0","@vitejs/plugin-react-swc":"^3.5.0","eslint-plugin-react-hooks":"^5.0.0","eslint-plugin-react-refresh":"^0.4.18","prettier-plugin-tailwindcss":"^0.6.11","@commitlint/config-conventional":"^19.7.1"},"peerDependencies":{"react":"^19.0.0","react-dom":"^19.0.0","@2gis/mapgl":"^1.50.0","tailwindcss":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/navigation_0.0.7_1740655255671_0.7887321770114966","host":"s3://npm-registry-packages-npm-production"}},"0.0.8":{"name":"@balady-tech/navigation","version":"0.0.8","author":{"name":"Frontend 2GIS.Apps"},"_id":"@balady-tech/navigation@0.0.8","maintainers":[{"name":"balady-tech","email":"balady.tech@urbi.ae"}],"homepage":"https://github.com/urbi-ae/navigation#readme","bugs":{"url":"https://github.com/urbi-ae/navigation/issues"},"dist":{"shasum":"f6756d92b34197ff91f52c1be77fc316044ddff9","tarball":"https://registry.npmjs.org/@balady-tech/navigation/-/navigation-0.0.8.tgz","fileCount":48,"integrity":"sha512-tLSwT7+wHYGFgAWdYuR9DVywc/cDiphG3AuPgACsQea+DDQSIXqPH+3dAawZu92zsfRQImoBOf6C44wIX4s5eg==","signatures":[{"sig":"MEUCIFtKi7YKHlW2xLqENmyryarmG43scdf68R+vcpeYvwGAAiEAhb4222Fi67bHve2H5Z2EpjSde9k4kz9Ln8e7Xx18BXk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":128313},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./api":{"types":"./dist/api/index.d.ts","default":"./dist/api.js"},"./hooks":{"types":"./dist/hooks/index.d.ts","default":"./dist/hooks.js"},"./utils":{"types":"./dist/utils/index.d.ts","default":"./dist/utils.js"},"./contexts":{"types":"./dist/contexts/index.d.ts","default":"./dist/contexts.js"},"./components":{"types":"./dist/components/index.d.ts","default":"./dist/components.js"}},"gitHead":"41c13e7a4c4a2eb85942e56d13c852088ab93d82","scripts":{"lint":"eslint --cache .","build":"tsc -b && vite build","prepare":"husky","release":"standard-version","prettier":"prettier -c \"./**/*.{ts,tsx,js,html,css}\" --config .prettierrc","type-check":"tsc --noEmit","prettier:fix":"prettier -w \"./**/*.{ts,tsx,js,html,css}\" --config .prettierrc"},"_npmUser":{"name":"balady-tech","email":"balady.tech@urbi.ae"},"repository":{"url":"git+https://github.com/urbi-ae/navigation.git","type":"git"},"_npmVersion":"10.8.2","description":"## Начало работы","directories":{},"lint-staged":{"*.{js,jsx,ts,tsx}":["bash -c 'npm run type-check'","npm run prettier:fix"]},"_nodeVersion":"20.18.3","dependencies":{"clsx":"^2.1.1","axios":"^1.7.9","motion":"^12.4.7","date-fns":"^4.1.0","idb-keyval":"^6.2.1","usehooks-ts":"^3.1.1","tailwind-merge":"^3.0.2","@2gis/mapgl-gltf":"^2.1.1","react-geolocated":"^4.3.0"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^6.1.0","husky":"^9.1.7","react":"^19.0.0","eslint":"^9.19.0","globals":"^15.14.0","prettier":"^3.5.1","react-dom":"^19.0.0","@eslint/js":"^9.19.0","typescript":"~5.7.2","@2gis/mapgl":"^1.50.0","@types/node":"^22.13.4","tailwindcss":"^4.0.0","@types/react":"^19.0.8","@commitlint/cli":"^19.7.1","vite-plugin-dts":"^4.5.0","vite-svg-loader":"^5.1.0","@types/react-dom":"^19.0.3","standard-version":"^9.5.0","vite-plugin-svgr":"^4.3.0","typescript-eslint":"^8.22.0","@vitejs/plugin-react-swc":"^3.5.0","eslint-plugin-react-hooks":"^5.0.0","eslint-plugin-react-refresh":"^0.4.18","prettier-plugin-tailwindcss":"^0.6.11","@commitlint/config-conventional":"^19.7.1"},"peerDependencies":{"react":"^19.0.0","react-dom":"^19.0.0","@2gis/mapgl":"^1.50.0","tailwindcss":"^4.0.0","@tanstack/react-query":"^5.66.7"},"_npmOperationalInternal":{"tmp":"tmp/navigation_0.0.8_1740724602154_0.8300864815508942","host":"s3://npm-registry-packages-npm-production"}},"0.0.9":{"name":"@balady-tech/navigation","version":"0.0.9","author":{"name":"Frontend 2GIS.Apps"},"repository":{"type":"git","url":"git+https://github.com/urbi-ae/navigation.git"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./api":{"types":"./dist/api/index.d.ts","default":"./dist/api/index.js"},"./contexts":{"types":"./dist/contexts/index.d.ts","default":"./dist/contexts/index.js"},"./components":{"types":"./dist/components/index.d.ts","default":"./dist/components/index.js"},"./utils":{"types":"./dist/utils/index.d.ts","default":"./dist/utils/index.js"},"./hooks":{"types":"./dist/hooks/index.d.ts","default":"./dist/hooks/index.js"}},"scripts":{"build":"tsc -b && vite build","lint":"eslint --cache .","prettier":"prettier -c \"./**/*.{ts,tsx,js,html,css}\" --config .prettierrc","prettier:fix":"prettier -w \"./**/*.{ts,tsx,js,html,css}\" --config .prettierrc","type-check":"tsc --noEmit","release":"standard-version","prepare":"husky"},"dependencies":{"@2gis/mapgl-gltf":"^2.1.1","axios":"^1.7.9","clsx":"^2.1.1","date-fns":"^4.1.0","idb-keyval":"^6.2.1","motion":"^12.4.7","react-geolocated":"^4.3.0","tailwind-merge":"^3.0.2","usehooks-ts":"^3.1.1"},"peerDependencies":{"@2gis/mapgl":"^1.50.0","react":"^19.0.0","react-dom":"^19.0.0","tailwindcss":"^4.0.0","@tanstack/react-query":"^5.66.7"},"devDependencies":{"@2gis/mapgl":"^1.50.0","@commitlint/cli":"^19.7.1","@commitlint/config-conventional":"^19.7.1","@eslint/js":"^9.19.0","@types/node":"^22.13.4","@types/react":"^19.0.8","@types/react-dom":"^19.0.3","@vitejs/plugin-react-swc":"^3.5.0","eslint":"^9.19.0","eslint-plugin-react-hooks":"^5.0.0","eslint-plugin-react-refresh":"^0.4.18","globals":"^15.14.0","husky":"^9.1.7","prettier":"^3.5.1","prettier-plugin-tailwindcss":"^0.6.11","react":"^19.0.0","react-dom":"^19.0.0","standard-version":"^9.5.0","tailwindcss":"^4.0.0","typescript":"~5.7.2","typescript-eslint":"^8.22.0","vite":"^6.1.0","vite-plugin-dts":"^4.5.0","vite-plugin-svgr":"^4.3.0","vite-svg-loader":"^5.1.0"},"lint-staged":{"*.{js,jsx,ts,tsx}":["bash -c 'npm run type-check'","npm run prettier:fix"]},"_id":"@balady-tech/navigation@0.0.9","gitHead":"27255b1f59fee6d3573314d33e8dc5603e1fb761","description":"## Начало работы","bugs":{"url":"https://github.com/urbi-ae/navigation/issues"},"homepage":"https://github.com/urbi-ae/navigation#readme","_nodeVersion":"20.18.3","_npmVersion":"10.8.2","dist":{"integrity":"sha512-k/qIp5nFYfl3zgKzfrQj1oO/FiuZB2UzLEbE8W3jNQIJB93IRLq29jYQrTBJUn6kz3IB/GA3hjUV7SAZQM8mAw==","shasum":"2c79d4e373dadc63536e72420de7106c4b6725a0","tarball":"https://registry.npmjs.org/@balady-tech/navigation/-/navigation-0.0.9.tgz","fileCount":51,"unpackedSize":130473,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBV38zZcfh/R0AxQsRuCdoJ+dWZ/Zq+34Aey4trTZnRAAiBkzR0HolmEvvs1ww5pNqPXaI0zfnTjnIUNuWwAtjtXHA=="}]},"_npmUser":{"name":"balady-tech","email":"balady.tech@urbi.ae"},"directories":{},"maintainers":[{"name":"balady-tech","email":"balady.tech@urbi.ae"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/navigation_0.0.9_1740982792089_0.28731343731941017"},"_hasShrinkwrap":false}},"time":{"created":"2025-02-26T11:35:39.572Z","modified":"2025-03-03T06:19:52.439Z","0.0.3":"2025-02-26T11:35:39.857Z","0.0.4":"2025-02-27T06:49:53.987Z","0.0.5":"2025-02-27T07:22:19.826Z","0.0.6":"2025-02-27T07:38:57.803Z","0.0.7":"2025-02-27T11:20:56.007Z","0.0.8":"2025-02-28T06:36:42.338Z","0.0.9":"2025-03-03T06:19:52.262Z"},"bugs":{"url":"https://github.com/urbi-ae/navigation/issues"},"author":{"name":"Frontend 2GIS.Apps"},"homepage":"https://github.com/urbi-ae/navigation#readme","repository":{"type":"git","url":"git+https://github.com/urbi-ae/navigation.git"},"description":"## Начало работы","maintainers":[{"name":"balady-tech","email":"balady.tech@urbi.ae"}],"readme":"# Navigation\n\n## Начало работы\n\nУстанови пакеты:\n\n```shell\nnpm i\n```\n\n# Types\n\nБазовые типы, используемые в навигации: `Coordinates, Point, RoutePart, Route`\n\nПример использования:\n\n```\nimport type { Point, Coordinates } from \"@balady-tech/navigation\"\n```\n\n# Contexts\n\n## MapContext\n\nХранит в себе объект map c экземпляром карты, gltf плагина и основные параметры состояния карты. До момента загрузки карты map = undefined.\n\n```\ninterface MapContextState {\n\tmap?: {\n\t\tinstance: Map\n\t\tgltfPlugin: GltfPlugin;\n\t\tstate: MapState\n\t}\n}\ninterface MapState {\n\tzoom: number;\n\tisDragging: boolean;\n\tfloorLevelIndex?: number;\n\tfloorLevelName?: string;\n\tfloorPlanId?: string;\n}\n```\n\nПримеры использования:\n\n```\nimport { MapProvider } from \"@balady-tech/navigation/contexts\"\n\nfunction App() {\n\treturn (\n\t\t<MapProvider>\n\t\t\t...\n\t\t</MapProvider>\n\t)\n}\n```\n\n```\nimport { useMap } from \"@balady-tech/navigation/contexts\"\n\nfunction SomeComponent() {\n    const { map } = useMap()\n}\n```\n\n## GeolocationContext\n\nХранит в себе текущие координаты клиента при включенном отслеживании координат (см. компонент LocationTracker).\n\n```\ninterface GeolocationContextState {\n\tcoordinates?: GeolocationCoordinates;\n}\n```\n\nПримеры использования:\n\n```\nimport { GeolocationProvider } from \"@balady-tech/navigation/contexts\"\n\nfunction App() {\n\treturn (\n\t\t<GeolocationProvider>\n\t\t\t...\n\t\t</GeolocationProvider>\n\t)\n}\n```\n\n```\nimport { useGeolocation } from \"@balady-tech/navigation/contexts\"\n\nfunction SomeComponent() {\n    const { coordinates } = useGeolocation()\n}\n```\n\n## RoutingApiContext\n\nИспользуется для передачи в компоненты приложения экземпляра Routing API, созданного при помощи функции createRoutingApi.\n\nПримеры использования:\n\n```\nimport { routingApi } from \"./routingApi.ts\"\nimport { RoutingApiProvider } from \"@balady-tech/navigation/contexts\"\n\nfunction App() {\n\treturn (\n\t\t<RoutingApiProvider routingApi={routingApi}>\n\t\t\t...\n\t\t</RoutingApiProvider>\n\t)\n}\n```\n\n```\nimport { useRoutingApi } from \"@balady-tech/navigation/contexts\"\n\nfunction SomeComponent() {\n    const { queries, baseUrl } = useRoutingApi()\n}\n```\n\n# API\n\n## Routing API\n\nДля использования Routing API в проекте, необходимо создать его экземпляр:\n\n```\nimport { createRoutingApi } from \"@balady-tech/navigation/api\"\n\nconst routingApi = createRoutingApi({ apiKey: \"YOUR_API_KEY\" })\n\n```\n\n### Get route\n\nМетод, который строит маршрут из точки А в точку Б. Также есть возможность указания промежуточных точек. [Подробнее](https://docs.2gis.com/ru/api/@balady-tech/navigation/routing/reference/routing) в документации к API.\n\nПример использования с react-query:\n\n```\nconst { data } = useQuery(routingApi.queries.getRoute({ points: [...] }))\n```\n\nУсловный запрос маршрута:\n\n```\nconst { data } = useQuery({\n    ...routingApi.queries.getRoute({ points: [...] }),\n    enabled: !someCheck,\n    // Также можно переопределять другие параметры хука useQuery (кэшировани и т.д.)\n})\n```\n\n# Components\n\n## MapContainer\n\nКомпонент для отрисовки карты. Отрисовывает карту внутри себя и сохраняет инстанс карты в MapContext. Также осуществляет подписку на некоторые события карты (изменение зума, переключение этажей) для обновления соответствующих данных в MapContext. Есть возможность передать URL локально скрипта для работы карт без подключения к сети. Также можно подписаться на событие загрузки карты, чтобы загрузить стили и т.д.\n\nПример использования с react-query:\n\n```\nimport { MapProvider } from \"@balady-tech/navigation/contexts\"\nimport { MapContainer } from \"@balady-tech/navigation/components\"\n\nimport { useCallback } from \"react\"\nimport type { Map, MapOptions } from \"@2gis/mapgl/types\"\n\nconst API_KEY = \"YOUR_API_KEY\"\nconst DEFAULT_OPTIONS: MapOptions = { zoom: 30, center: [37.617734, 55.751999], floorControl: 'centerRight' }\n\nfunction App() {\n\tconst onLoad = useCallback(({ instance }: { instance: Map }) => {\n\t\t// Тут можно загрузить какие-то стили для карты и др.\n\t}, [])\n\n\treturn (\n\t\t<MapProvider>\n\t\t\t<MapContainer\n\t\t\t\tclassName=\"fixed inset-0\"\n\t\t\t\tapiKey={API_KEY}\n\t\t\t\toptions={DEFAULT_OPTIONS}\n\t\t\t\tonLoad={onLoad}\n\t\t\t/>\n\t\t</MapProvider>\n\t)\n}\n\nexport default App\n\n```\n\n## LocationTracker\n\nКомпонент, который отслеживает изменение местоположения пользователя и сохраняет его в GeolocationContext. Соответственно, должен использоваться внутри данного контекста. Есть параметры для настройки debounce эффекта, позволяющего регулировать частоту обновления координат в контексте для предотвращения слишком частых перерисовок. На все приложение должно существовать не более одного экземпляра данного компонента. Функционал выполнен в виде компонента для возможности условной отрисовки (отслеживание местоположения пользователя по условию, чтобы запрашивать права на получение местоположения у пользователя только когда это действительно необходимо).\n\nПример использования:\n\n```\nimport { LocationTracker } from \"@balady-tech/navigation/components\"\n\n\nfunction SomeComponent() {\n    return {\n        <LocationTracker/>\n    }\n}\n```\n\n# Hooks\n\n## useChunks\n\nРазбивает массив элементов на несколько массивов указанной длины\n\n## useGltfModels\n\nПри помощи gltf плагина добавляет указанные модели на карту\n\n## usePartnerLogos\n\nДобавляет на карту логотипы партнеров, через проп параметр `floorLevelIndexes` можно указать на каких этажах логотипы должны отображаться.\n\n# Utils\n\n## getRouteKey\n\nСоздает ключ, которые используется в react-query для запроса Get route\n\n## parseLineStringWKT\n\nПарсит строку типа `LINESTRING(...)` и возвращает массив чисел\n\n## toChunks\n\nРазбивает массив на массивы указанной длины. Используется в основе хука `useChunks`\n","readmeFilename":"README.md"}