{"_id":"@amarant/network-viewer","name":"@amarant/network-viewer","dist-tags":{"latest":"1.12.0"},"versions":{"1.12.0":{"name":"@amarant/network-viewer","version":"1.12.0","description":"TypeScript library to integrate PowSyBl network viewers in a JavaScript project.","author":{"name":"PowSyBl team"},"homepage":"https://www.powsybl.org/","license":"MPL-2.0","repository":{"type":"git","url":"git+https://github.com/powsybl/powsybl-network-viewer.git"},"engines":{"node":">=22","npm":"^10.9.2"},"type":"module","types":"./dist/index.d.ts","main":"./dist/powsybl-network-viewer.umd.cjs","module":"./dist/powsybl-network-viewer.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/powsybl-network-viewer.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/powsybl-network-viewer.umd.cjs"}},"./package.json":"./package.json"},"scripts":{"postinstall":"rimraf -I -g ./node_modules/@types/deck.gl* ./node_modules/@types/luma.gl* ./node_modules/@types/math.gl* ./node_modules/@types/mapbox-gl","watch":"vite watch","prebuild":"tsc","check":"tsc --noEmit","check:pack":"attw --pack","build":"vite build","build:all":"npm run build -w @amarant/network-map-layers && npm run build","prepublishOnly":"$npm_execpath run build","test":"jest","test:coverage":"jest --coverage","start":"vite demo/ --open","lint":"eslint . --ext js,mjs,jsx,ts,mts,tsx --max-warnings 0","lint:format":"prettier --check --cache .","licenses-check":"license-checker --summary --excludePrivatePackages --production --onlyAllow \"$( jq -r .onlyAllow[] license-checker-config.json | tr '\n' ';')\" --excludePackages \"$( jq -r .excludePackages[] license-checker-config.json | tr '\n' ';')\""},"workspaces":["packages/network-map-layers"],"overrides":{"@deck.gl/mapbox":{"@types/mapbox-gl":"npm:mapbox-gl@^3.9.4"}},"dependencies":{"@mapbox/mapbox-gl-draw":"<1.5.0","@amarant/network-map-layers":"workspace:*","@svgdotjs/svg.js":"^3.2.4","@svgdotjs/svg.panzoom.js":"^2.1.2","@turf/boolean-point-in-polygon":"^7.2.0","cheap-ruler":"^4.0.0","deck.gl":"^8.9.36","geolib":"^3.3.4","mapbox-gl":"^3.9.4","maplibre-gl":"^4.7.1","react-map-gl":"^8.0.1","type-fest":"^4.34.1"},"peerDependencies":{"@emotion/styled":"^11.14.0","@mui/icons-material":"^5.16.14","@mui/material":"^5.16.14","react":"^18.3.1","react-dom":"^18.3.1","react-intl":"^7.1.6"},"devDependencies":{"@arethetypeswrong/cli":"^0.17.4","@babel/core":"^7.26.8","@babel/preset-env":"^7.26.8","@babel/preset-typescript":"^7.26.0","@danmarshall/deckgl-typings":"^4.9.28","@types/eslint":"^8.0.0","@types/eslint-config-prettier":"^6.11.3","@types/eslint-plugin-prettier":"^3.1.3","@types/eslint-plugin-react-refresh":"^0.4.0","@types/jest":"^29.5.14","@types/license-checker":"^25.0.6","@types/mapbox__mapbox-gl-draw":"^1.4.8","@types/node":"^22.13.4","@types/react":"^18.3.18","@types/react-dom":"^18.3.5","@typescript-eslint/eslint-plugin":"^6.21.0","@vitejs/plugin-react":"^4.3.4","babel-jest":"^29.7.0","eslint":"^8.57.1","eslint-config-prettier":"^10.1.1","eslint-plugin-prettier":"^5.2.5","eslint-plugin-react":"^7.37.4","eslint-plugin-react-hooks":"^4.6.2","eslint-plugin-react-refresh":"0.4.14","jest":"^29.7.0","jest-environment-jsdom":"^29.7.0","license-checker":"^25.0.1","prettier":"^3.5.3","prettier-plugin-glsl":"^0.2.1","prettier-plugin-properties":"^0.3.0","rimraf":"^6.0.1","svgo":"^3.3.2","ts-jest":"^29.2.5","ts-node":"^10.9.2","typescript":"~5.3.3","vite":"^6.2.2","vite-plugin-dts":"^4.5.3","vite-plugin-eslint":"^1.8.1","vite-plugin-svgr":"^4.3.0"},"_id":"@amarant/network-viewer@1.12.0","bugs":{"url":"https://github.com/powsybl/powsybl-network-viewer/issues"},"_nodeVersion":"22.17.1","_npmVersion":"11.5.1","dist":{"integrity":"sha512-1bdAPQN6pqKnWje5qvOIUrO+86TbX7oijH+EGXxYz8D/zD0CS5V8k8emu+sDEUcL29lAjaSbCOVLgYp4LPnY9g==","shasum":"f162611917d9a1af42b0370709aa1b92bd474c49","tarball":"https://registry.npmjs.org/@amarant/network-viewer/-/network-viewer-1.12.0.tgz","fileCount":6,"unpackedSize":371499,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEUeM8SUOc4GcASw35WZiR51nuvghvJp9SucKT5mBQPJAiEA/rl7MJv6hzM5lCoFelzt6745gszh5H9VIm72Mih4GgI="}]},"_npmUser":{"name":"amarant","email":"arnaudmarant@gmail.com"},"directories":{},"maintainers":[{"name":"amarant","email":"arnaudmarant@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/network-viewer_1.12.0_1759495674855_0.032891078424581055"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-03T12:47:54.763Z","1.12.0":"2025-10-03T12:47:55.359Z","modified":"2025-10-03T12:47:55.640Z"},"maintainers":[{"name":"amarant","email":"arnaudmarant@gmail.com"}],"description":"TypeScript library to integrate PowSyBl network viewers in a JavaScript project.","homepage":"https://www.powsybl.org/","repository":{"type":"git","url":"git+https://github.com/powsybl/powsybl-network-viewer.git"},"author":{"name":"PowSyBl team"},"bugs":{"url":"https://github.com/powsybl/powsybl-network-viewer/issues"},"license":"MPL-2.0","readme":"# powsybl-network-viewer\n\nTypescript library to integrate network viewers in a javascript project.\nThis library contains three viewers:\n\n- network-area-diagram-viewer, to integrate the SVG representing a graph of voltage levels within a network, the SVG and the corresponding metadata JSON file being generated by [powsybl-diagram](https://github.com/powsybl/powsybl-diagram)\n- single-line-diagram-viewer, to integrate the SVG representing single-line diagrams, the SVG and the corresponding metadata JSON file being generated by [powsybl-diagram](https://github.com/powsybl/powsybl-diagram)\n- network-map-viewer, to display the substations / voltage levels on a map\n\nThe library is built with the Vite bundler.\nNode from v22+ is required to build with Vite.\n\nInstallation using npm:  \n'npm install @amarant/network-viewer'\n\n#### For developers\n\nFor development purpose, to install this library locally from an app, you should run these commands in the library project :\n\n- npm install\n- npm run build\n- npm pack\n\nThen in the app project :\n\n- npm install {PATH_TO_LIBRARY}/powsybl-network-viewer-{LIBRARY_VERSION}.tgz\n\n_Warning_ : with Create React App, we realised the library was not updating correctly if you try to install the library multiple times.\nTo fix this, run this command from the app **after** running \"npm install\"\n\n- rm -Rf node_modules/.cache\n\n#### For integrators\n\nIf you want to deploy a new version of powsybl-network-viewer in the [NPM package registry](https://www.npmjs.com/package/@amarant/powsybl-network-viewer),\nyou need to follow the steps below:\n\n- [Make a release action](https://github.com/powsybl/powsybl-network-viewer/actions/workflows/release.yml)\n- In the 'run workflow' combobox select, let the branch on main\n- Enter the type of evolution (major | minor | patch)\n- Enter your NPM access token (it must be an **automation** access token to bypass 2FA, see the [access token documentation](https://docs.npmjs.com/creating-and-viewing-access-tokens) for details)\n- Click 'run workflow'\n\nNotes :\n\n- Check [license-checker-config.json](license-checker-config.json) for license white list and exclusion.\n  If you need to update this list, please inform organization's owners.\n- We need to exclude some packages for now :\n    - `@mapbox/jsonlint-lines-primitives@2.0.2` is a special license\n    - `cartocolor@4.0.2` is Creative Commons but not correctly described in the package\n    - `rw@0.1.4` is BSD-3-Clause but not correctly described in the package\n","readmeFilename":"README.md","_rev":"1-9a28263e190f9b7b0dc899f2f1163291"}