From 8c9f2722044e9af333e2d8af83c0786948b34076 Mon Sep 17 00:00:00 2001 From: Etienne Burdet Date: Tue, 9 Jul 2024 10:55:42 +0200 Subject: [PATCH] chore(visualizations): add path aliases (#254) --- package-lock.json | 1068 +++++++++++++++-- packages/visualizations-react/babel.config.js | 2 +- packages/visualizations-react/package.json | 19 +- .../{rollup.config.js => rollup.config.mjs} | 13 +- packages/visualizations/.eslintrc.js | 7 +- packages/visualizations/package.json | 22 +- .../{rollup.config.js => rollup.config.mjs} | 25 +- .../src/components/Chart/Chart.svelte | 15 +- .../src/components/Chart/datasets.ts | 4 +- .../src/components/Chart/legend.ts | 4 +- .../src/components/Chart/scales.ts | 2 +- .../src/components/Chart/types.ts | 5 +- .../src/components/Chart/utils.ts | 2 +- .../WebGl/ChoroplethGeoJson.svelte | 6 +- .../WebGl/ChoroplethVectorTiles.svelte | 2 +- .../ChoroplethMap/WebGl/MapRender.svelte | 12 +- .../src/components/ChoroplethMap/constants.ts | 4 +- .../src/components/ChoroplethMap/types.ts | 4 +- .../src/components/ChoroplethMap/utils.ts | 10 +- .../src/components/KpiCard/KpiCard.svelte | 6 +- .../src/components/KpiCard/types.ts | 3 +- .../Item/CategoryLegendItem.svelte | 2 +- .../Item/CategoryLegendItemSymbol.svelte | 4 +- .../CategoryLegend/Symbols/BoxSymbol.svelte | 2 +- .../Symbols/CircleSymbol.svelte | 2 +- .../CategoryLegend/Symbols/ImageSymbol.svelte | 2 +- .../CategoryLegend/Symbols/LineSymbol.svelte | 2 +- .../src/components/Legend/ColorsLegend.svelte | 4 +- .../src/components/Legend/types.ts | 2 +- .../src/components/Map/Poi/Poi.svelte | 4 +- .../src/components/Map/Poi/types.ts | 7 +- .../src/components/Map/WebGl/WebGl.svelte | 2 +- .../src/components/Map/WebGl/constants.ts | 2 +- .../src/components/Map/WebGl/types.ts | 4 +- .../src/components/Map/WebGl/utils.ts | 2 +- .../src/components/MarkdownText/types.ts | 2 +- .../Table/Cell/Format/GeoFormat.svelte | 6 +- .../src/components/Table/Table.svelte | 4 +- .../src/components/Table/TableCard.svelte | 4 +- .../src/components/Table/types.ts | 5 +- .../visualizations/src/components/types.ts | 50 - .../src/components/utils/Card.svelte | 2 +- .../src/components/utils/MiniMap.svelte | 6 +- .../src/components/utils/SourceLink.svelte | 2 +- packages/visualizations/src/index.ts | 6 +- packages/visualizations/src/types.ts | 51 +- packages/visualizations/tsconfig.json | 14 +- 47 files changed, 1167 insertions(+), 261 deletions(-) rename packages/visualizations-react/{rollup.config.js => rollup.config.mjs} (92%) rename packages/visualizations/{rollup.config.js => rollup.config.mjs} (80%) delete mode 100644 packages/visualizations/src/components/types.ts diff --git a/package-lock.json b/package-lock.json index c4eb5c135..2d04593df 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2471,8 +2471,9 @@ }, "node_modules/@isaacs/cliui": { "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", "dev": true, - "license": "ISC", "dependencies": { "string-width": "^5.1.2", "string-width-cjs": "npm:string-width@^4.2.0", @@ -2487,8 +2488,9 @@ }, "node_modules/@isaacs/cliui/node_modules/ansi-regex": { "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", "dev": true, - "license": "MIT", "engines": { "node": ">=12" }, @@ -2498,8 +2500,9 @@ }, "node_modules/@isaacs/cliui/node_modules/ansi-styles": { "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", "dev": true, - "license": "MIT", "engines": { "node": ">=12" }, @@ -2509,13 +2512,15 @@ }, "node_modules/@isaacs/cliui/node_modules/emoji-regex": { "version": "9.2.2", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true }, "node_modules/@isaacs/cliui/node_modules/string-width": { "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", "dev": true, - "license": "MIT", "dependencies": { "eastasianwidth": "^0.2.0", "emoji-regex": "^9.2.2", @@ -2530,8 +2535,9 @@ }, "node_modules/@isaacs/cliui/node_modules/strip-ansi": { "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", "dev": true, - "license": "MIT", "dependencies": { "ansi-regex": "^6.0.1" }, @@ -2544,8 +2550,9 @@ }, "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", "dev": true, - "license": "MIT", "dependencies": { "ansi-styles": "^6.1.0", "string-width": "^5.0.1", @@ -4464,8 +4471,9 @@ }, "node_modules/@pkgjs/parseargs": { "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", "dev": true, - "license": "MIT", "optional": true, "engines": { "node": ">=14" @@ -4547,8 +4555,9 @@ }, "node_modules/@rollup/plugin-alias": { "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@rollup/plugin-alias/-/plugin-alias-5.1.0.tgz", + "integrity": "sha512-lpA3RZ9PdIG7qqhEfv79tBffNaoDuukFDrmhLqg9ifv99u/ehn+lOg30x2zmhf8AQqQUZaMk/B9fZraQ6/acDQ==", "dev": true, - "license": "MIT", "dependencies": { "slash": "^4.0.0" }, @@ -4678,6 +4687,67 @@ "rollup": "^1.20.0 || ^2.0.0" } }, + "node_modules/@rollup/plugin-terser": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/@rollup/plugin-terser/-/plugin-terser-0.4.4.tgz", + "integrity": "sha512-XHeJC5Bgvs8LfukDwWZp7yeqin6ns8RTl2B9avbejt6tZqsqvVoWI7ZTQrcNsfKEDWBTnTxM8nMDkO2IFFbd0A==", + "dev": true, + "dependencies": { + "serialize-javascript": "^6.0.1", + "smob": "^1.0.0", + "terser": "^5.17.4" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/plugin-terser/node_modules/acorn": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.12.0.tgz", + "integrity": "sha512-RTvkC4w+KNXrM39/lWCUaG0IbRkWdCv7W/IOW9oU6SawyxulvkQy5HQPVTKxEjczcUvapcrw3cFx/60VN/NRNw==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/@rollup/plugin-terser/node_modules/serialize-javascript": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", + "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", + "dev": true, + "dependencies": { + "randombytes": "^2.1.0" + } + }, + "node_modules/@rollup/plugin-terser/node_modules/terser": { + "version": "5.31.1", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.31.1.tgz", + "integrity": "sha512-37upzU1+viGvuFtBo9NPufCb9dwM0+l9hMxYyWfBA+fbwrPqNJAhbZ6W47bBFnZHKHTUBnMvi87434qq+qnxOg==", + "dev": true, + "dependencies": { + "@jridgewell/source-map": "^0.3.3", + "acorn": "^8.8.2", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/@rollup/plugin-typescript": { "version": "6.1.0", "dev": true, @@ -4716,6 +4786,214 @@ "dev": true, "license": "MIT" }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.18.0.tgz", + "integrity": "sha512-Tya6xypR10giZV1XzxmH5wr25VcZSncG0pZIjfePT0OVBvqNEurzValetGNarVrGiq66EBVAFn15iYX4w6FKgQ==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.18.0.tgz", + "integrity": "sha512-avCea0RAP03lTsDhEyfy+hpfr85KfyTctMADqHVhLAF3MlIkq83CP8UfAHUssgXTYd+6er6PaAhx/QGv4L1EiA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.18.0.tgz", + "integrity": "sha512-IWfdwU7KDSm07Ty0PuA/W2JYoZ4iTj3TUQjkVsO/6U+4I1jN5lcR71ZEvRh52sDOERdnNhhHU57UITXz5jC1/w==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.18.0.tgz", + "integrity": "sha512-n2LMsUz7Ynu7DoQrSQkBf8iNrjOGyPLrdSg802vk6XT3FtsgX6JbE8IHRvposskFm9SNxzkLYGSq9QdpLYpRNA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.18.0.tgz", + "integrity": "sha512-C/zbRYRXFjWvz9Z4haRxcTdnkPt1BtCkz+7RtBSuNmKzMzp3ZxdM28Mpccn6pt28/UWUCTXa+b0Mx1k3g6NOMA==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.18.0.tgz", + "integrity": "sha512-l3m9ewPgjQSXrUMHg93vt0hYCGnrMOcUpTz6FLtbwljo2HluS4zTXFy2571YQbisTnfTKPZ01u/ukJdQTLGh9A==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.18.0.tgz", + "integrity": "sha512-rJ5D47d8WD7J+7STKdCUAgmQk49xuFrRi9pZkWoRD1UeSMakbcepWXPF8ycChBoAqs1pb2wzvbY6Q33WmN2ftw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.18.0.tgz", + "integrity": "sha512-be6Yx37b24ZwxQ+wOQXXLZqpq4jTckJhtGlWGZs68TgdKXJgw54lUUoFYrg6Zs/kjzAQwEwYbp8JxZVzZLRepQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.18.0.tgz", + "integrity": "sha512-hNVMQK+qrA9Todu9+wqrXOHxFiD5YmdEi3paj6vP02Kx1hjd2LLYR2eaN7DsEshg09+9uzWi2W18MJDlG0cxJA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.18.0.tgz", + "integrity": "sha512-ROCM7i+m1NfdrsmvwSzoxp9HFtmKGHEqu5NNDiZWQtXLA8S5HBCkVvKAxJ8U+CVctHwV2Gb5VUaK7UAkzhDjlg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.18.0.tgz", + "integrity": "sha512-0UyyRHyDN42QL+NbqevXIIUnKA47A+45WyasO+y2bGJ1mhQrfrtXUpTxCOrfxCR4esV3/RLYyucGVPiUsO8xjg==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.18.0.tgz", + "integrity": "sha512-xuglR2rBVHA5UsI8h8UbX4VJ470PtGCf5Vpswh7p2ukaqBGFTnsfzxUBetoWBWymHMxbIG0Cmx7Y9qDZzr648w==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.18.0.tgz", + "integrity": "sha512-LKaqQL9osY/ir2geuLVvRRs+utWUNilzdE90TpyoX0eNqPzWjRm14oMEE+YLve4k/NAqCdPkGYDaDF5Sw+xBfg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.18.0.tgz", + "integrity": "sha512-7J6TkZQFGo9qBKH0pk2cEVSRhJbL6MtfWxth7Y5YmZs57Pi+4x6c2dStAUvaQkHQLnEQv1jzBUW43GvZW8OFqA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.18.0.tgz", + "integrity": "sha512-Txjh+IxBPbkUB9+SXZMpv+b/vnTEtFyfWZgJ6iyCmt2tdx0OF5WhFowLmnh8ENGNpfUlUZkdI//4IEmhwPieNg==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.18.0.tgz", + "integrity": "sha512-UOo5FdvOL0+eIVTgS4tIdbW+TtnBLWg1YBCcU2KWM7nuNwRz9bksDX1bekJJCpu25N1DVWaCwnT39dVQxzqS8g==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, "node_modules/@samverschueren/stream-to-observable": { "version": "0.3.1", "dev": true, @@ -9643,10 +9921,11 @@ } }, "node_modules/braces": { - "version": "3.0.2", - "license": "MIT", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" @@ -12118,8 +12397,9 @@ }, "node_modules/eastasianwidth": { "version": "0.2.0", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true }, "node_modules/ecc-jsbn": { "version": "0.1.2", @@ -12823,6 +13103,53 @@ "ms": "^2.1.1" } }, + "node_modules/eslint-import-resolver-typescript": { + "version": "3.6.1", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.6.1.tgz", + "integrity": "sha512-xgdptdoi5W3niYeuQxKmzVDTATvLYqhpwmykwsh7f6HIOStGWEIL9iqZgQDF9u9OEzrRwR8no5q2VT+bjAujTg==", + "dev": true, + "dependencies": { + "debug": "^4.3.4", + "enhanced-resolve": "^5.12.0", + "eslint-module-utils": "^2.7.4", + "fast-glob": "^3.3.1", + "get-tsconfig": "^4.5.0", + "is-core-module": "^2.11.0", + "is-glob": "^4.0.3" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts/projects/eslint-import-resolver-ts" + }, + "peerDependencies": { + "eslint": "*", + "eslint-plugin-import": "*" + } + }, + "node_modules/eslint-import-resolver-typescript/node_modules/enhanced-resolve": { + "version": "5.17.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.17.0.tgz", + "integrity": "sha512-dwDPwZL0dmye8Txp2gzFmA6sxALaSvdRDjPH0viLcKrtlOL3tw62nWWweVD1SdILDTJrbrL6tdWVN58Wo6U3eA==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/eslint-import-resolver-typescript/node_modules/tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/eslint-module-utils": { "version": "2.8.1", "dev": true, @@ -13921,8 +14248,9 @@ } }, "node_modules/fill-range": { - "version": "7.0.1", - "license": "MIT", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -14701,6 +15029,18 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/get-tsconfig": { + "version": "4.7.5", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.7.5.tgz", + "integrity": "sha512-ZCuZCnlqNzjb4QprAzXKdpp/gh6KTxSJuw3IBsPnV/7fV4NxC9ckB+vPTt8w7fJA0TaSD7c55BR47JD6MEDyDw==", + "dev": true, + "dependencies": { + "resolve-pkg-maps": "^1.0.0" + }, + "funding": { + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" + } + }, "node_modules/get-value": { "version": "2.0.6", "license": "MIT", @@ -14861,21 +15201,23 @@ "license": "MIT" }, "node_modules/glob": { - "version": "10.3.10", + "version": "10.4.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.2.tgz", + "integrity": "sha512-GwMlUF6PkPo3Gk21UxkCohOv0PLcIXVtKyLlpEI28R/cO/4eNOdmLk3CMW1wROV/WR/EsZOWAfBbBOqYvs88/w==", "dev": true, - "license": "ISC", "dependencies": { "foreground-child": "^3.1.0", - "jackspeak": "^2.3.5", - "minimatch": "^9.0.1", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", - "path-scurry": "^1.10.1" + "jackspeak": "^3.1.2", + "minimatch": "^9.0.4", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^1.11.1" }, "bin": { "glob": "dist/esm/bin.mjs" }, "engines": { - "node": ">=16 || 14 >=14.17" + "node": ">=16 || 14 >=14.18" }, "funding": { "url": "https://github.com/sponsors/isaacs" @@ -14898,16 +15240,18 @@ }, "node_modules/glob/node_modules/brace-expansion": { "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", "dev": true, - "license": "MIT", "dependencies": { "balanced-match": "^1.0.0" } }, "node_modules/glob/node_modules/minimatch": { - "version": "9.0.3", + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", "dev": true, - "license": "ISC", "dependencies": { "brace-expansion": "^2.0.1" }, @@ -15966,6 +16310,21 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-builtin-module": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-3.2.1.tgz", + "integrity": "sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A==", + "dev": true, + "dependencies": { + "builtin-modules": "^3.3.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-callable": { "version": "1.2.7", "dev": true, @@ -16214,7 +16573,8 @@ }, "node_modules/is-number": { "version": "7.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "engines": { "node": ">=0.12.0" } @@ -16591,9 +16951,10 @@ } }, "node_modules/jackspeak": { - "version": "2.3.6", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.0.tgz", + "integrity": "sha512-JVYhQnN59LVPFCEcVa2C3CrEKYacvjRfqIQl+h8oi91aLYQVWRYbxjPcv1bUiUy/kLmQaANrYfNMCO3kuEDHfw==", "dev": true, - "license": "BlueOak-1.0.0", "dependencies": { "@isaacs/cliui": "^8.0.2" }, @@ -19603,9 +19964,10 @@ } }, "node_modules/minipass": { - "version": "7.0.4", + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", "dev": true, - "license": "ISC", "engines": { "node": ">=16 || 14 >=14.17" } @@ -21655,6 +22017,12 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/package-json-from-dist": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.0.tgz", + "integrity": "sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==", + "dev": true + }, "node_modules/pacote": { "version": "17.0.6", "dev": true, @@ -22097,15 +22465,16 @@ "license": "MIT" }, "node_modules/path-scurry": { - "version": "1.10.1", + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", + "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", "dev": true, - "license": "BlueOak-1.0.0", "dependencies": { - "lru-cache": "^9.1.1 || ^10.0.0", + "lru-cache": "^10.2.0", "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" }, "engines": { - "node": ">=16 || 14 >=14.17" + "node": ">=16 || 14 >=14.18" }, "funding": { "url": "https://github.com/sponsors/isaacs" @@ -24249,11 +24618,6 @@ "node": ">=0.10.0" } }, - "node_modules/require-relative": { - "version": "0.8.7", - "dev": true, - "license": "MIT" - }, "node_modules/requires-port": { "version": "1.0.0", "dev": true, @@ -24294,6 +24658,15 @@ "node": ">=8" } }, + "node_modules/resolve-pkg-maps": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", + "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", + "dev": true, + "funding": { + "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" + } + }, "node_modules/resolve-protobuf-schema": { "version": "2.1.0", "license": "MIT", @@ -24442,17 +24815,33 @@ } }, "node_modules/rollup-plugin-svelte": { - "version": "6.1.1", + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/rollup-plugin-svelte/-/rollup-plugin-svelte-7.2.2.tgz", + "integrity": "sha512-hgnIblTRewaBEVQD6N0Q43o+y6q1TmDRhBjaEzQCi50bs8TXqjc+d1zFZyE8tsfgcfNHZQzclh4RxlFUB85H8Q==", "dev": true, - "license": "MIT", "dependencies": { - "require-relative": "^0.8.7", - "rollup-pluginutils": "^2.8.2", - "sourcemap-codec": "^1.4.8" + "@rollup/pluginutils": "^4.1.0", + "resolve.exports": "^2.0.0" + }, + "engines": { + "node": ">=10" }, "peerDependencies": { - "rollup": ">=1.19.2", - "svelte": "*" + "rollup": ">=2.0.0", + "svelte": ">=3.5.0" + } + }, + "node_modules/rollup-plugin-svelte/node_modules/@rollup/pluginutils": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.2.1.tgz", + "integrity": "sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==", + "dev": true, + "dependencies": { + "estree-walker": "^2.0.1", + "picomatch": "^2.2.2" + }, + "engines": { + "node": ">= 8.0.0" } }, "node_modules/rollup-plugin-terser": { @@ -25234,6 +25623,12 @@ "npm": ">= 3.0.0" } }, + "node_modules/smob": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/smob/-/smob-1.5.0.tgz", + "integrity": "sha512-g6T+p7QO8npa+/hNx9ohv1E5pVCmWrVCUzUXJyLdMmftX6ER0oiWY/w9knEonLpnOp6b6FenKnMfR8gqwWdwig==", + "dev": true + }, "node_modules/snapdragon": { "version": "0.8.2", "dev": true, @@ -25882,8 +26277,9 @@ "node_modules/string-width-cjs": { "name": "string-width", "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, - "license": "MIT", "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -25989,8 +26385,9 @@ "node_modules/strip-ansi-cjs": { "name": "strip-ansi", "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, - "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" }, @@ -26764,7 +27161,8 @@ }, "node_modules/to-regex-range": { "version": "5.0.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dependencies": { "is-number": "^7.0.0" }, @@ -28758,8 +29156,9 @@ "node_modules/wrap-ansi-cjs": { "name": "wrap-ansi", "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, - "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -29173,12 +29572,14 @@ "devDependencies": { "@babel/core": "^7.13.10", "@babel/preset-env": "^7.13.10", - "@rollup/plugin-babel": "^5.3.0", - "@rollup/plugin-commonjs": "^19.0.0", - "@rollup/plugin-json": "^4.1.0", - "@rollup/plugin-node-resolve": "^10.0.0", - "@rollup/plugin-replace": "^3.0.1", - "@rollup/plugin-typescript": "^6.1.0", + "@rollup/plugin-alias": "^5.1.0", + "@rollup/plugin-babel": "^6.0.4", + "@rollup/plugin-commonjs": "^26.0.1", + "@rollup/plugin-json": "^6.1.0", + "@rollup/plugin-node-resolve": "^15.2.3", + "@rollup/plugin-replace": "^5.0.7", + "@rollup/plugin-terser": "^0.4.4", + "@rollup/plugin-typescript": "^11.1.6", "@tsconfig/svelte": "^1.0.10", "@types/chroma-js": "^2.1.4", "@types/d3-geo": "^3.0.2", @@ -29196,6 +29597,7 @@ "eslint-config-airbnb-base": "^15.0.0", "eslint-config-airbnb-typescript": "^17.0.0", "eslint-config-prettier": "^8.3.0", + "eslint-import-resolver-typescript": "^3.6.1", "eslint-plugin-import": "^2.26.0", "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-svelte": "^2.35.1", @@ -29204,16 +29606,15 @@ "prettier": "2.4.1", "prettier-plugin-svelte": "^2.4.0", "rimraf": "^3.0.2", - "rollup": "^2.33.1", + "rollup": "^4.18.0", "rollup-plugin-postcss": "^4.0.2", - "rollup-plugin-svelte": "^6.1.0", - "rollup-plugin-terser": "^7.0.2", + "rollup-plugin-svelte": "^7.2.2", "svelte": "^3.43.2", "svelte-check": "^2.2.7", "svelte-eslint-parser": "^0.33.1", "svelte-preprocess": "^4.9.8", "tslib": "^2.0.3", - "typescript": "4.6" + "typescript": "^5.5.3" }, "engines": { "node": ">=18" @@ -29233,12 +29634,13 @@ "@babel/preset-react": "^7.18.6", "@babel/preset-typescript": "^7.18.6", "@rollup/plugin-alias": "^5.1.0", - "@rollup/plugin-babel": "^5.3.0", - "@rollup/plugin-commonjs": "^19.0.0", - "@rollup/plugin-json": "^4.1.0", - "@rollup/plugin-node-resolve": "^10.0.0", - "@rollup/plugin-replace": "^3.0.1", - "@rollup/plugin-typescript": "^6.1.0", + "@rollup/plugin-babel": "^6.0.4", + "@rollup/plugin-commonjs": "^26.0.1", + "@rollup/plugin-json": "^6.1.0", + "@rollup/plugin-node-resolve": "^15.2.3", + "@rollup/plugin-replace": "^5.0.7", + "@rollup/plugin-terser": "^0.4.4", + "@rollup/plugin-typescript": "^11.1.6", "@size-limit/preset-small-lib": "^8.1.0", "@storybook/addon-essentials": "^7.6.17", "@storybook/addon-links": "^7.6.17", @@ -29278,14 +29680,13 @@ "react": "^16.13.0", "react-dom": "^16.13.0", "react-is": "^16.13.0", - "rollup": "^2.79.1", + "rollup": "^4.18.0", "rollup-plugin-postcss": "^4.0.2", - "rollup-plugin-terser": "^7.0.2", "size-limit": "^8.1.0", "storybook": "^7.6.17", "storybook-addon-rtl": "^1.0.0", "tslib": "^2.1.0", - "typescript": "4.6" + "typescript": "^5.5.3" }, "engines": { "node": ">=18" @@ -29325,6 +29726,209 @@ "node": ">=12" } }, + "packages/visualizations-react/node_modules/@rollup/plugin-babel": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-6.0.4.tgz", + "integrity": "sha512-YF7Y52kFdFT/xVSuVdjkV5ZdX/3YtmX0QulG+x0taQOtJdHYzVU61aSSkAgVJ7NOv6qPkIYiJSgSWWN/DM5sGw==", + "dev": true, + "dependencies": { + "@babel/helper-module-imports": "^7.18.6", + "@rollup/pluginutils": "^5.0.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0", + "@types/babel__core": "^7.1.9", + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "@types/babel__core": { + "optional": true + }, + "rollup": { + "optional": true + } + } + }, + "packages/visualizations-react/node_modules/@rollup/plugin-commonjs": { + "version": "26.0.1", + "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-26.0.1.tgz", + "integrity": "sha512-UnsKoZK6/aGIH6AdkptXhNvhaqftcjq3zZdT+LY5Ftms6JR06nADcDsYp5hTU9E2lbJUEOhdlY5J4DNTneM+jQ==", + "dev": true, + "dependencies": { + "@rollup/pluginutils": "^5.0.1", + "commondir": "^1.0.1", + "estree-walker": "^2.0.2", + "glob": "^10.4.1", + "is-reference": "1.2.1", + "magic-string": "^0.30.3" + }, + "engines": { + "node": ">=16.0.0 || 14 >= 14.17" + }, + "peerDependencies": { + "rollup": "^2.68.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "packages/visualizations-react/node_modules/@rollup/plugin-commonjs/node_modules/glob": { + "version": "10.4.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.2.tgz", + "integrity": "sha512-GwMlUF6PkPo3Gk21UxkCohOv0PLcIXVtKyLlpEI28R/cO/4eNOdmLk3CMW1wROV/WR/EsZOWAfBbBOqYvs88/w==", + "dev": true, + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^3.1.2", + "minimatch": "^9.0.4", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^1.11.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "engines": { + "node": ">=16 || 14 >=14.18" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "packages/visualizations-react/node_modules/@rollup/plugin-commonjs/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "packages/visualizations-react/node_modules/@rollup/plugin-json": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/@rollup/plugin-json/-/plugin-json-6.1.0.tgz", + "integrity": "sha512-EGI2te5ENk1coGeADSIwZ7G2Q8CJS2sF120T7jLw4xFw9n7wIOXHo+kIYRAoVpJAN+kmqZSoO3Fp4JtoNF4ReA==", + "dev": true, + "dependencies": { + "@rollup/pluginutils": "^5.1.0" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "packages/visualizations-react/node_modules/@rollup/plugin-node-resolve": { + "version": "15.2.3", + "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.2.3.tgz", + "integrity": "sha512-j/lym8nf5E21LwBT4Df1VD6hRO2L2iwUeUmP7litikRsVp1H6NWx20NEp0Y7su+7XGc476GnXXc4kFeZNGmaSQ==", + "dev": true, + "dependencies": { + "@rollup/pluginutils": "^5.0.1", + "@types/resolve": "1.20.2", + "deepmerge": "^4.2.2", + "is-builtin-module": "^3.2.1", + "is-module": "^1.0.0", + "resolve": "^1.22.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^2.78.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "packages/visualizations-react/node_modules/@rollup/plugin-replace": { + "version": "5.0.7", + "resolved": "https://registry.npmjs.org/@rollup/plugin-replace/-/plugin-replace-5.0.7.tgz", + "integrity": "sha512-PqxSfuorkHz/SPpyngLyg5GCEkOcee9M1bkxiVDr41Pd61mqP1PLOoDPbpl44SB2mQGKwV/In74gqQmGITOhEQ==", + "dev": true, + "dependencies": { + "@rollup/pluginutils": "^5.0.1", + "magic-string": "^0.30.3" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "packages/visualizations-react/node_modules/@rollup/plugin-typescript": { + "version": "11.1.6", + "resolved": "https://registry.npmjs.org/@rollup/plugin-typescript/-/plugin-typescript-11.1.6.tgz", + "integrity": "sha512-R92yOmIACgYdJ7dJ97p4K69I8gg6IEHt8M7dUBxN3W6nrO8uUxX5ixl0yU/N3aZTi8WhPuICvOHXQvF6FaykAA==", + "dev": true, + "dependencies": { + "@rollup/pluginutils": "^5.1.0", + "resolve": "^1.22.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^2.14.0||^3.0.0||^4.0.0", + "tslib": "*", + "typescript": ">=3.7.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + }, + "tslib": { + "optional": true + } + } + }, + "packages/visualizations-react/node_modules/@rollup/pluginutils": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.1.0.tgz", + "integrity": "sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==", + "dev": true, + "dependencies": { + "@types/estree": "^1.0.0", + "estree-walker": "^2.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, "packages/visualizations-react/node_modules/@storybook/addon-actions": { "version": "7.6.17", "dev": true, @@ -31649,6 +32253,22 @@ "url": "https://opencollective.com/storybook" } }, + "packages/visualizations-react/node_modules/@storybook/builder-vite/node_modules/rollup": { + "version": "3.29.4", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.29.4.tgz", + "integrity": "sha512-oWzmBZwvYrU0iJHtDmhsm662rC15FRXmcjCk1xD771dFDx5jJ02ufAQQTn0etB2emNk4J9EZg/yWKpsn9BWGRw==", + "dev": true, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=14.18.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, "packages/visualizations-react/node_modules/@storybook/channels": { "version": "8.0.0", "dev": true, @@ -32176,27 +32796,6 @@ "vite": "^3.0.0 || ^4.0.0 || ^5.0.0" } }, - "packages/visualizations-react/node_modules/@storybook/react-vite/node_modules/@rollup/pluginutils": { - "version": "5.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/estree": "^1.0.0", - "estree-walker": "^2.0.2", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" - }, - "peerDependenciesMeta": { - "rollup": { - "optional": true - } - } - }, "packages/visualizations-react/node_modules/@storybook/router": { "version": "7.6.17", "dev": true, @@ -32281,6 +32880,12 @@ "undici-types": "~5.26.4" } }, + "packages/visualizations-react/node_modules/@types/resolve": { + "version": "1.20.2", + "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.20.2.tgz", + "integrity": "sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==", + "dev": true + }, "packages/visualizations-react/node_modules/@vitejs/plugin-react": { "version": "3.1.0", "dev": true, @@ -32323,6 +32928,15 @@ "node": ">=0.4.0" } }, + "packages/visualizations-react/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, "packages/visualizations-react/node_modules/detect-indent": { "version": "6.1.0", "dev": true, @@ -32603,6 +33217,41 @@ "node": ">=8" } }, + "packages/visualizations-react/node_modules/rollup": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.18.0.tgz", + "integrity": "sha512-QmJz14PX3rzbJCN1SG4Xe/bAAX2a6NpCP8ab2vfu2GiUr8AQcr2nCV/oEO3yneFarB67zk8ShlIyWb2LGTb3Sg==", + "dev": true, + "dependencies": { + "@types/estree": "1.0.5" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.18.0", + "@rollup/rollup-android-arm64": "4.18.0", + "@rollup/rollup-darwin-arm64": "4.18.0", + "@rollup/rollup-darwin-x64": "4.18.0", + "@rollup/rollup-linux-arm-gnueabihf": "4.18.0", + "@rollup/rollup-linux-arm-musleabihf": "4.18.0", + "@rollup/rollup-linux-arm64-gnu": "4.18.0", + "@rollup/rollup-linux-arm64-musl": "4.18.0", + "@rollup/rollup-linux-powerpc64le-gnu": "4.18.0", + "@rollup/rollup-linux-riscv64-gnu": "4.18.0", + "@rollup/rollup-linux-s390x-gnu": "4.18.0", + "@rollup/rollup-linux-x64-gnu": "4.18.0", + "@rollup/rollup-linux-x64-musl": "4.18.0", + "@rollup/rollup-win32-arm64-msvc": "4.18.0", + "@rollup/rollup-win32-ia32-msvc": "4.18.0", + "@rollup/rollup-win32-x64-msvc": "4.18.0", + "fsevents": "~2.3.2" + } + }, "packages/visualizations-react/node_modules/storybook": { "version": "7.6.17", "dev": true, @@ -32647,15 +33296,16 @@ } }, "packages/visualizations-react/node_modules/typescript": { - "version": "4.6.4", + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.3.tgz", + "integrity": "sha512-/hreyEujaB0w76zKo6717l3L0o/qEUtRgdvUBvlkhoWeOVMjMuHNHk0BRBzikzuGDqNmPQbg5ifMEqsHLiIUcQ==", "dev": true, - "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { - "node": ">=4.2.0" + "node": ">=14.17" } }, "packages/visualizations-react/node_modules/util": { @@ -32741,16 +33391,238 @@ "fsevents": "~2.3.2" } }, + "packages/visualizations/node_modules/@rollup/plugin-babel": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-6.0.4.tgz", + "integrity": "sha512-YF7Y52kFdFT/xVSuVdjkV5ZdX/3YtmX0QulG+x0taQOtJdHYzVU61aSSkAgVJ7NOv6qPkIYiJSgSWWN/DM5sGw==", + "dev": true, + "dependencies": { + "@babel/helper-module-imports": "^7.18.6", + "@rollup/pluginutils": "^5.0.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0", + "@types/babel__core": "^7.1.9", + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "@types/babel__core": { + "optional": true + }, + "rollup": { + "optional": true + } + } + }, + "packages/visualizations/node_modules/@rollup/plugin-commonjs": { + "version": "26.0.1", + "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-26.0.1.tgz", + "integrity": "sha512-UnsKoZK6/aGIH6AdkptXhNvhaqftcjq3zZdT+LY5Ftms6JR06nADcDsYp5hTU9E2lbJUEOhdlY5J4DNTneM+jQ==", + "dev": true, + "dependencies": { + "@rollup/pluginutils": "^5.0.1", + "commondir": "^1.0.1", + "estree-walker": "^2.0.2", + "glob": "^10.4.1", + "is-reference": "1.2.1", + "magic-string": "^0.30.3" + }, + "engines": { + "node": ">=16.0.0 || 14 >= 14.17" + }, + "peerDependencies": { + "rollup": "^2.68.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "packages/visualizations/node_modules/@rollup/plugin-json": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/@rollup/plugin-json/-/plugin-json-6.1.0.tgz", + "integrity": "sha512-EGI2te5ENk1coGeADSIwZ7G2Q8CJS2sF120T7jLw4xFw9n7wIOXHo+kIYRAoVpJAN+kmqZSoO3Fp4JtoNF4ReA==", + "dev": true, + "dependencies": { + "@rollup/pluginutils": "^5.1.0" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "packages/visualizations/node_modules/@rollup/plugin-node-resolve": { + "version": "15.2.3", + "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.2.3.tgz", + "integrity": "sha512-j/lym8nf5E21LwBT4Df1VD6hRO2L2iwUeUmP7litikRsVp1H6NWx20NEp0Y7su+7XGc476GnXXc4kFeZNGmaSQ==", + "dev": true, + "dependencies": { + "@rollup/pluginutils": "^5.0.1", + "@types/resolve": "1.20.2", + "deepmerge": "^4.2.2", + "is-builtin-module": "^3.2.1", + "is-module": "^1.0.0", + "resolve": "^1.22.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^2.78.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "packages/visualizations/node_modules/@rollup/plugin-replace": { + "version": "5.0.7", + "resolved": "https://registry.npmjs.org/@rollup/plugin-replace/-/plugin-replace-5.0.7.tgz", + "integrity": "sha512-PqxSfuorkHz/SPpyngLyg5GCEkOcee9M1bkxiVDr41Pd61mqP1PLOoDPbpl44SB2mQGKwV/In74gqQmGITOhEQ==", + "dev": true, + "dependencies": { + "@rollup/pluginutils": "^5.0.1", + "magic-string": "^0.30.3" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "packages/visualizations/node_modules/@rollup/plugin-typescript": { + "version": "11.1.6", + "resolved": "https://registry.npmjs.org/@rollup/plugin-typescript/-/plugin-typescript-11.1.6.tgz", + "integrity": "sha512-R92yOmIACgYdJ7dJ97p4K69I8gg6IEHt8M7dUBxN3W6nrO8uUxX5ixl0yU/N3aZTi8WhPuICvOHXQvF6FaykAA==", + "dev": true, + "dependencies": { + "@rollup/pluginutils": "^5.1.0", + "resolve": "^1.22.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^2.14.0||^3.0.0||^4.0.0", + "tslib": "*", + "typescript": ">=3.7.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + }, + "tslib": { + "optional": true + } + } + }, + "packages/visualizations/node_modules/@rollup/pluginutils": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.1.0.tgz", + "integrity": "sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==", + "dev": true, + "dependencies": { + "@types/estree": "^1.0.0", + "estree-walker": "^2.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "packages/visualizations/node_modules/@types/estree": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", + "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", + "dev": true + }, + "packages/visualizations/node_modules/@types/resolve": { + "version": "1.20.2", + "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.20.2.tgz", + "integrity": "sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==", + "dev": true + }, + "packages/visualizations/node_modules/magic-string": { + "version": "0.30.10", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.10.tgz", + "integrity": "sha512-iIRwTIf0QKV3UAnYK4PU8uiEc4SRh5jX0mwpIwETPpHdhVM4f53RSwS/vXvN1JhGX+Cs7B8qIq3d6AH49O5fAQ==", + "dev": true, + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.4.15" + } + }, + "packages/visualizations/node_modules/rollup": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.18.0.tgz", + "integrity": "sha512-QmJz14PX3rzbJCN1SG4Xe/bAAX2a6NpCP8ab2vfu2GiUr8AQcr2nCV/oEO3yneFarB67zk8ShlIyWb2LGTb3Sg==", + "dev": true, + "dependencies": { + "@types/estree": "1.0.5" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.18.0", + "@rollup/rollup-android-arm64": "4.18.0", + "@rollup/rollup-darwin-arm64": "4.18.0", + "@rollup/rollup-darwin-x64": "4.18.0", + "@rollup/rollup-linux-arm-gnueabihf": "4.18.0", + "@rollup/rollup-linux-arm-musleabihf": "4.18.0", + "@rollup/rollup-linux-arm64-gnu": "4.18.0", + "@rollup/rollup-linux-arm64-musl": "4.18.0", + "@rollup/rollup-linux-powerpc64le-gnu": "4.18.0", + "@rollup/rollup-linux-riscv64-gnu": "4.18.0", + "@rollup/rollup-linux-s390x-gnu": "4.18.0", + "@rollup/rollup-linux-x64-gnu": "4.18.0", + "@rollup/rollup-linux-x64-musl": "4.18.0", + "@rollup/rollup-win32-arm64-msvc": "4.18.0", + "@rollup/rollup-win32-ia32-msvc": "4.18.0", + "@rollup/rollup-win32-x64-msvc": "4.18.0", + "fsevents": "~2.3.2" + } + }, "packages/visualizations/node_modules/typescript": { - "version": "4.6.4", + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.3.tgz", + "integrity": "sha512-/hreyEujaB0w76zKo6717l3L0o/qEUtRgdvUBvlkhoWeOVMjMuHNHk0BRBzikzuGDqNmPQbg5ifMEqsHLiIUcQ==", "dev": true, - "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { - "node": ">=4.2.0" + "node": ">=14.17" } } } diff --git a/packages/visualizations-react/babel.config.js b/packages/visualizations-react/babel.config.js index 9b9de0f5c..47d2be4a2 100644 --- a/packages/visualizations-react/babel.config.js +++ b/packages/visualizations-react/babel.config.js @@ -4,4 +4,4 @@ module.exports = { '@babel/preset-typescript', '@babel/preset-react', ], -}; \ No newline at end of file +}; diff --git a/packages/visualizations-react/package.json b/packages/visualizations-react/package.json index ac3b1cd1b..8fe2c67ad 100644 --- a/packages/visualizations-react/package.json +++ b/packages/visualizations-react/package.json @@ -16,6 +16,7 @@ ], "main": "dist/index.umd.js", "module": "dist/index.es.js", + "unpkg": "dist/index.umd.js", "typings": "dist/src/index.d.ts", "files": [ "dist", @@ -61,12 +62,13 @@ "@babel/preset-react": "^7.18.6", "@babel/preset-typescript": "^7.18.6", "@rollup/plugin-alias": "^5.1.0", - "@rollup/plugin-babel": "^5.3.0", - "@rollup/plugin-commonjs": "^19.0.0", - "@rollup/plugin-json": "^4.1.0", - "@rollup/plugin-node-resolve": "^10.0.0", - "@rollup/plugin-replace": "^3.0.1", - "@rollup/plugin-typescript": "^6.1.0", + "@rollup/plugin-babel": "^6.0.4", + "@rollup/plugin-commonjs": "^26.0.1", + "@rollup/plugin-json": "^6.1.0", + "@rollup/plugin-node-resolve": "^15.2.3", + "@rollup/plugin-replace": "^5.0.7", + "@rollup/plugin-terser": "^0.4.4", + "@rollup/plugin-typescript": "^11.1.6", "@size-limit/preset-small-lib": "^8.1.0", "@storybook/addon-essentials": "^7.6.17", "@storybook/addon-links": "^7.6.17", @@ -106,14 +108,13 @@ "react": "^16.13.0", "react-dom": "^16.13.0", "react-is": "^16.13.0", - "rollup": "^2.79.1", + "rollup": "^4.18.0", "rollup-plugin-postcss": "^4.0.2", - "rollup-plugin-terser": "^7.0.2", "size-limit": "^8.1.0", "storybook": "^7.6.17", "storybook-addon-rtl": "^1.0.0", "tslib": "^2.1.0", - "typescript": "4.6" + "typescript": "^5.5.3" }, "gitHead": "5b28cc594764f53129f0de5847152dd55e27ab24" } diff --git a/packages/visualizations-react/rollup.config.js b/packages/visualizations-react/rollup.config.mjs similarity index 92% rename from packages/visualizations-react/rollup.config.js rename to packages/visualizations-react/rollup.config.mjs index 35ce9e0a2..45641a055 100644 --- a/packages/visualizations-react/rollup.config.js +++ b/packages/visualizations-react/rollup.config.mjs @@ -1,19 +1,22 @@ +import { fileURLToPath } from 'url'; +import path from 'path'; import postcss from 'rollup-plugin-postcss'; import autoprefixer from 'autoprefixer'; -import path from 'path'; // import visualizer from 'rollup-plugin-visualizer'; -import { terser } from 'rollup-plugin-terser'; +import terser from '@rollup/plugin-terser'; +import alias from '@rollup/plugin-alias'; import typescript from '@rollup/plugin-typescript'; import { nodeResolve } from '@rollup/plugin-node-resolve'; import commonjs from '@rollup/plugin-commonjs'; import json from '@rollup/plugin-json'; import { babel } from '@rollup/plugin-babel'; import replace from '@rollup/plugin-replace'; -import alias from '@rollup/plugin-alias'; import { defineConfig } from 'rollup'; -import pkg from './package.json'; +import pkg from './package.json' with { type: 'json' }; const production = !process.env.ROLLUP_WATCH; +const __fileName = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__fileName); const projectRootDir = path.resolve(__dirname); function basePlugins() { @@ -52,7 +55,7 @@ function basePlugins() { function onwarn(warning, warn) { // https://github.com/moment/luxon/issues/193 if (warning.code === 'CIRCULAR_DEPENDENCY') { - if (warning.importer.includes('node_modules/luxon')) { + if (warning.ids.includes('node_modules/luxon')) { return; } } diff --git a/packages/visualizations/.eslintrc.js b/packages/visualizations/.eslintrc.js index cf6a20650..9ed1653d0 100644 --- a/packages/visualizations/.eslintrc.js +++ b/packages/visualizations/.eslintrc.js @@ -11,13 +11,18 @@ module.exports = { 'prettier', 'plugin:svelte/prettier', ], + settings: { + 'import/resolver': { + typescript: {}, + }, + }, parser: '@typescript-eslint/parser', parserOptions: { project: './tsconfig.json', extraFileExtensions: ['.svelte'], tsconfigRootDir: __dirname, }, - plugins: ['@typescript-eslint', 'prettier'], + plugins: ['@typescript-eslint', 'prettier', 'import'], overrides: [ { files: ['*.svelte'], diff --git a/packages/visualizations/package.json b/packages/visualizations/package.json index 2cff12dd4..fe0633bf3 100644 --- a/packages/visualizations/package.json +++ b/packages/visualizations/package.json @@ -45,12 +45,14 @@ "devDependencies": { "@babel/core": "^7.13.10", "@babel/preset-env": "^7.13.10", - "@rollup/plugin-babel": "^5.3.0", - "@rollup/plugin-commonjs": "^19.0.0", - "@rollup/plugin-json": "^4.1.0", - "@rollup/plugin-node-resolve": "^10.0.0", - "@rollup/plugin-replace": "^3.0.1", - "@rollup/plugin-typescript": "^6.1.0", + "@rollup/plugin-alias": "^5.1.0", + "@rollup/plugin-babel": "^6.0.4", + "@rollup/plugin-commonjs": "^26.0.1", + "@rollup/plugin-json": "^6.1.0", + "@rollup/plugin-node-resolve": "^15.2.3", + "@rollup/plugin-replace": "^5.0.7", + "@rollup/plugin-terser": "^0.4.4", + "@rollup/plugin-typescript": "^11.1.6", "@tsconfig/svelte": "^1.0.10", "@types/chroma-js": "^2.1.4", "@types/d3-geo": "^3.0.2", @@ -68,6 +70,7 @@ "eslint-config-airbnb-base": "^15.0.0", "eslint-config-airbnb-typescript": "^17.0.0", "eslint-config-prettier": "^8.3.0", + "eslint-import-resolver-typescript": "^3.6.1", "eslint-plugin-import": "^2.26.0", "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-svelte": "^2.35.1", @@ -76,16 +79,15 @@ "prettier": "2.4.1", "prettier-plugin-svelte": "^2.4.0", "rimraf": "^3.0.2", - "rollup": "^2.33.1", + "rollup": "^4.18.0", "rollup-plugin-postcss": "^4.0.2", - "rollup-plugin-svelte": "^6.1.0", - "rollup-plugin-terser": "^7.0.2", + "rollup-plugin-svelte": "^7.2.2", "svelte": "^3.43.2", "svelte-check": "^2.2.7", "svelte-eslint-parser": "^0.33.1", "svelte-preprocess": "^4.9.8", "tslib": "^2.0.3", - "typescript": "4.6" + "typescript": "^5.5.3" }, "dependencies": { "@placemarkio/geo-viewport": "^1.0.2", diff --git a/packages/visualizations/rollup.config.js b/packages/visualizations/rollup.config.mjs similarity index 80% rename from packages/visualizations/rollup.config.js rename to packages/visualizations/rollup.config.mjs index 4b97dde0f..4955c6527 100644 --- a/packages/visualizations/rollup.config.js +++ b/packages/visualizations/rollup.config.mjs @@ -1,9 +1,12 @@ +import path from 'path'; +import { fileURLToPath } from 'url'; import svelte from 'rollup-plugin-svelte'; +import alias from '@rollup/plugin-alias'; import autoPreprocess from 'svelte-preprocess'; import postcss from 'rollup-plugin-postcss'; import autoprefixer from 'autoprefixer'; // import visualizer from 'rollup-plugin-visualizer'; -import { terser } from 'rollup-plugin-terser'; +import terser from '@rollup/plugin-terser'; import typescript from '@rollup/plugin-typescript'; import { nodeResolve } from '@rollup/plugin-node-resolve'; import commonjs from '@rollup/plugin-commonjs'; @@ -11,18 +14,30 @@ import json from '@rollup/plugin-json'; import { babel } from '@rollup/plugin-babel'; import replace from '@rollup/plugin-replace'; import { defineConfig } from 'rollup'; -import pkg from './package.json'; +import pkg from './package.json' with { type: 'json' }; const production = !process.env.ROLLUP_WATCH; +const __fileName = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__fileName); +const projectRootDir = path.resolve(__dirname); function basePlugins() { return [ + alias({ + entries: { + "components": path.resolve(projectRootDir, 'src/components'), + "stores": path.resolve(projectRootDir, 'src/stores'), + "types": path.resolve(projectRootDir, 'src/types'), + }, + }), svelte({ // enable run-time checks when not in production - dev: !production, include: 'src/**/*.svelte', emitCss: true, - immutable: true, + compilerOptions: { + dev: !production, + immutable: true, + }, preprocess: autoPreprocess({ scss: { includePaths: ['src'], @@ -56,7 +71,7 @@ function basePlugins() { function onwarn(warning, warn) { // https://github.com/moment/luxon/issues/193 if (warning.code === 'CIRCULAR_DEPENDENCY') { - if (warning.importer.includes('node_modules/luxon')) { + if (warning.ids.includes('node_modules/luxon')) { return; } } diff --git a/packages/visualizations/src/components/Chart/Chart.svelte b/packages/visualizations/src/components/Chart/Chart.svelte index 4747fc88a..690593afc 100644 --- a/packages/visualizations/src/components/Chart/Chart.svelte +++ b/packages/visualizations/src/components/Chart/Chart.svelte @@ -3,12 +3,15 @@ import type { ChartConfiguration } from 'chart.js'; import { Chart } from 'chart.js'; import 'chartjs-adapter-luxon'; - import type { DataFrame } from '../types'; - import { generateId } from '../utils'; - import SourceLink from '../utils/SourceLink.svelte'; - import { defaultNumberFormat } from '../utils/formatter'; - import CategoryLegend from '../Legend/CategoryLegend.svelte'; - import type { LegendPositions, CategoryLegend as CategoryLegendType } from '../Legend/types'; + import CategoryLegend from 'components/Legend/CategoryLegend.svelte'; + import type { DataFrame } from 'types'; + import { generateId } from 'components/utils'; + import SourceLink from 'components/utils/SourceLink.svelte'; + import { defaultNumberFormat } from 'components/utils/formatter'; + import type { + LegendPositions, + CategoryLegend as CategoryLegendType, + } from 'components/Legend/types'; import { ChartSeriesType } from './types'; import type { ChartProps, diff --git a/packages/visualizations/src/components/Chart/datasets.ts b/packages/visualizations/src/components/Chart/datasets.ts index e1c5a99af..d73833d50 100644 --- a/packages/visualizations/src/components/Chart/datasets.ts +++ b/packages/visualizations/src/components/Chart/datasets.ts @@ -1,13 +1,13 @@ import type { ChartDataset } from 'chart.js'; import type { Options as DataLabelsOptions } from 'chartjs-plugin-datalabels/types/options'; +import type { DataFrame } from 'types'; +import { defaultCompactNumberFormat, assureMaxLength } from 'components/utils/formatter'; import type { ChartSeries, DataLabelsConfiguration, FillConfiguration, ScriptableTreemapContext, } from './types'; -import type { DataFrame } from '../types'; -import { defaultCompactNumberFormat, assureMaxLength } from '../utils/formatter'; import { defaultValue, singleChartJsColor, diff --git a/packages/visualizations/src/components/Chart/legend.ts b/packages/visualizations/src/components/Chart/legend.ts index a364162c8..1b900eb69 100644 --- a/packages/visualizations/src/components/Chart/legend.ts +++ b/packages/visualizations/src/components/Chart/legend.ts @@ -1,9 +1,9 @@ import type { LegendOptions, ChartConfiguration, Chart } from 'chart.js'; import type { _DeepPartialObject } from 'chart.js/dist/types/utils'; +import { assureMaxLength } from 'components/utils/formatter'; +import { CATEGORY_ITEM_VARIANT } from 'components/Legend/types'; import type { ChartOptions } from './types'; -import { assureMaxLength } from '../utils/formatter'; import { defaultValue, DEFAULT_GREY_COLOR } from './utils'; -import { CATEGORY_ITEM_VARIANT } from '../Legend/types'; const LEGEND_MAX_LENGTH = 50; diff --git a/packages/visualizations/src/components/Chart/scales.ts b/packages/visualizations/src/components/Chart/scales.ts index 18905a20a..064ff4800 100644 --- a/packages/visualizations/src/components/Chart/scales.ts +++ b/packages/visualizations/src/components/Chart/scales.ts @@ -8,6 +8,7 @@ import type { } from 'chart.js'; import { DateTime } from 'luxon'; import type { DeepPartial } from 'chart.js/dist/types/utils'; +import { assureMaxLength, defaultCompactNumberFormat } from 'components/utils/formatter'; import type { CartesianAxisConfiguration, ChartOptions, @@ -16,7 +17,6 @@ import type { TimeCartesianAxisConfiguration, } from './types'; import { defaultValue, singleChartJsColor } from './utils'; -import { assureMaxLength, defaultCompactNumberFormat } from '../utils/formatter'; const TICK_MAX_LENGTH = 40; diff --git a/packages/visualizations/src/components/Chart/types.ts b/packages/visualizations/src/components/Chart/types.ts index 9c69ce8e0..158b0b886 100644 --- a/packages/visualizations/src/components/Chart/types.ts +++ b/packages/visualizations/src/components/Chart/types.ts @@ -1,6 +1,5 @@ -import type { Color, DataFrame, Source } from '../types'; -import type { LegendConfiguration } from '../Legend/types'; -import type { Async } from '../../types'; +import type { Async, Color, DataFrame, Source } from 'types'; +import type { LegendConfiguration } from 'components/Legend/types'; export interface ChartOptions { /** Specify label column in DataFrame (mandatory for all charts except Treemap) */ diff --git a/packages/visualizations/src/components/Chart/utils.ts b/packages/visualizations/src/components/Chart/utils.ts index cb93ea0e8..9017de953 100644 --- a/packages/visualizations/src/components/Chart/utils.ts +++ b/packages/visualizations/src/components/Chart/utils.ts @@ -1,4 +1,4 @@ -import type { Color } from '../types'; +import type { Color } from 'types'; export const DEFAULT_GREY_COLOR = '#F0F0F0'; diff --git a/packages/visualizations/src/components/ChoroplethMap/WebGl/ChoroplethGeoJson.svelte b/packages/visualizations/src/components/ChoroplethMap/WebGl/ChoroplethGeoJson.svelte index ce049f724..e1e63c583 100644 --- a/packages/visualizations/src/components/ChoroplethMap/WebGl/ChoroplethGeoJson.svelte +++ b/packages/visualizations/src/components/ChoroplethMap/WebGl/ChoroplethGeoJson.svelte @@ -3,9 +3,7 @@ import type { ExpressionSpecification, SourceSpecification, GestureOptions } from 'maplibre-gl'; import type { BBox, FeatureCollection } from 'geojson'; import { debounce } from 'lodash'; - import type { ColorScale, DataBounds, Color, Source } from '../../types'; - import MapRender from './MapRender.svelte'; - import { BLANK } from '../mapStyles'; + import type { ColorScale, Color, DataBounds, Source } from 'types'; import { getDataBounds, mapKeyToColor, @@ -15,6 +13,8 @@ computeMatchExpression, } from '../utils'; import { DEFAULT_COLORS, DEFAULT_COLORSCALE } from '../constants'; + import MapRender from './MapRender.svelte'; + import { BLANK } from '../mapStyles'; import type { ChoroplethDataValue, ChoroplethLayer, diff --git a/packages/visualizations/src/components/ChoroplethMap/WebGl/ChoroplethVectorTiles.svelte b/packages/visualizations/src/components/ChoroplethMap/WebGl/ChoroplethVectorTiles.svelte index 5dbbccf77..b1304f9d5 100644 --- a/packages/visualizations/src/components/ChoroplethMap/WebGl/ChoroplethVectorTiles.svelte +++ b/packages/visualizations/src/components/ChoroplethMap/WebGl/ChoroplethVectorTiles.svelte @@ -7,7 +7,7 @@ } from 'maplibre-gl'; import type { BBox } from 'geojson'; import { debounce } from 'lodash'; - import type { ColorScale, DataBounds, Color, Source } from '../../types'; + import type { ColorScale, Color, DataBounds, Source } from 'types'; import MapRender from './MapRender.svelte'; import { BLANK } from '../mapStyles'; import { diff --git a/packages/visualizations/src/components/ChoroplethMap/WebGl/MapRender.svelte b/packages/visualizations/src/components/ChoroplethMap/WebGl/MapRender.svelte index 637c1e7ae..2225bb5a6 100644 --- a/packages/visualizations/src/components/ChoroplethMap/WebGl/MapRender.svelte +++ b/packages/visualizations/src/components/ChoroplethMap/WebGl/MapRender.svelte @@ -14,13 +14,13 @@ import { onMount } from 'svelte'; import { debounce } from 'lodash'; import type { BBox } from 'geojson'; - import SourceLink from '../../utils/SourceLink.svelte'; + import type { ColorScale, DataBounds, Source } from 'types'; + import type { LegendVariant } from 'components/Legend/types'; + import SourceLink from 'components/utils/SourceLink.svelte'; + import ColorsLegend from 'components/Legend/ColorsLegend.svelte'; + import BackButton from 'components/utils/BackButton.svelte'; + import MiniMap from 'components/utils/MiniMap.svelte'; import { computeMaxZoomFromGeoJsonFeatures, getFixedTooltips } from '../utils'; - import ColorsLegend from '../../Legend/ColorsLegend.svelte'; - import BackButton from '../../utils/BackButton.svelte'; - import MiniMap from '../../utils/MiniMap.svelte'; - import type { ColorScale, DataBounds, Source } from '../../types'; - import type { LegendVariant } from '../../Legend/types'; import type { ChoroplethFixedTooltipDescription, MapLayer, diff --git a/packages/visualizations/src/components/ChoroplethMap/constants.ts b/packages/visualizations/src/components/ChoroplethMap/constants.ts index 91834d2ed..2bfe8d947 100644 --- a/packages/visualizations/src/components/ChoroplethMap/constants.ts +++ b/packages/visualizations/src/components/ChoroplethMap/constants.ts @@ -1,6 +1,6 @@ import type { FeatureCollection } from 'geojson'; -import { ColorScaleTypes } from '../types'; -import type { ColorScale, Color } from '../types'; +import { ColorScaleTypes } from 'types'; +import type { ColorScale, Color } from 'types'; export const DEFAULT_COLORS: Record = { Default: '#CCCCCC', diff --git a/packages/visualizations/src/components/ChoroplethMap/types.ts b/packages/visualizations/src/components/ChoroplethMap/types.ts index 152c2d05f..adbfa81e6 100644 --- a/packages/visualizations/src/components/ChoroplethMap/types.ts +++ b/packages/visualizations/src/components/ChoroplethMap/types.ts @@ -1,8 +1,8 @@ import type { Feature, FeatureCollection, Position, BBox } from 'geojson'; import type { FillLayerSpecification, Popup, GestureOptions, LngLatBoundsLike } from 'maplibre-gl'; import type { DebouncedFunc } from 'lodash'; -import type { LegendPositions } from '../Legend/types'; -import type { ColorScale, Color, Source } from '../types'; +import type { ColorScale, Color, Source } from 'types'; +import type { LegendPositions } from 'components/Legend/types'; export interface ChoroplethOptions { /** Configuration for the color scale used to color the choropleth shapes. */ diff --git a/packages/visualizations/src/components/ChoroplethMap/utils.ts b/packages/visualizations/src/components/ChoroplethMap/utils.ts index 9af44367c..e80156f15 100644 --- a/packages/visualizations/src/components/ChoroplethMap/utils.ts +++ b/packages/visualizations/src/components/ChoroplethMap/utils.ts @@ -4,15 +4,9 @@ import maplibregl, { ExpressionInputType, ExpressionSpecification } from 'maplib import { viewport } from '@placemarkio/geo-viewport'; import type { Feature, FeatureCollection, Position, BBox } from 'geojson'; import type { Scale } from 'chroma-js'; +import { assertUnreachable } from 'components/utils'; +import { Color, ColorScale, DataBounds, isGroupByForMatchExpression, ColorScaleTypes } from 'types'; import { DEFAULT_COLORS } from './constants'; -import { assertUnreachable } from '../utils'; -import { - Color, - ColorScale, - DataBounds, - isGroupByForMatchExpression, - ColorScaleTypes, -} from '../types'; import type { ChoroplethDataValue, diff --git a/packages/visualizations/src/components/KpiCard/KpiCard.svelte b/packages/visualizations/src/components/KpiCard/KpiCard.svelte index 11b468f73..1475576cc 100644 --- a/packages/visualizations/src/components/KpiCard/KpiCard.svelte +++ b/packages/visualizations/src/components/KpiCard/KpiCard.svelte @@ -1,8 +1,8 @@ diff --git a/packages/visualizations/src/components/Legend/CategoryLegend/Symbols/BoxSymbol.svelte b/packages/visualizations/src/components/Legend/CategoryLegend/Symbols/BoxSymbol.svelte index 7b3defbf2..09c483297 100644 --- a/packages/visualizations/src/components/Legend/CategoryLegend/Symbols/BoxSymbol.svelte +++ b/packages/visualizations/src/components/Legend/CategoryLegend/Symbols/BoxSymbol.svelte @@ -1,5 +1,5 @@ diff --git a/packages/visualizations/src/components/Legend/CategoryLegend/Symbols/CircleSymbol.svelte b/packages/visualizations/src/components/Legend/CategoryLegend/Symbols/CircleSymbol.svelte index 31be9dac3..ed1925c97 100644 --- a/packages/visualizations/src/components/Legend/CategoryLegend/Symbols/CircleSymbol.svelte +++ b/packages/visualizations/src/components/Legend/CategoryLegend/Symbols/CircleSymbol.svelte @@ -1,5 +1,5 @@ diff --git a/packages/visualizations/src/components/Legend/CategoryLegend/Symbols/ImageSymbol.svelte b/packages/visualizations/src/components/Legend/CategoryLegend/Symbols/ImageSymbol.svelte index ad6fb7e8a..b92d3c240 100644 --- a/packages/visualizations/src/components/Legend/CategoryLegend/Symbols/ImageSymbol.svelte +++ b/packages/visualizations/src/components/Legend/CategoryLegend/Symbols/ImageSymbol.svelte @@ -1,5 +1,5 @@ diff --git a/packages/visualizations/src/components/Legend/CategoryLegend/Symbols/LineSymbol.svelte b/packages/visualizations/src/components/Legend/CategoryLegend/Symbols/LineSymbol.svelte index 3604fd3c2..d32f78a3d 100644 --- a/packages/visualizations/src/components/Legend/CategoryLegend/Symbols/LineSymbol.svelte +++ b/packages/visualizations/src/components/Legend/CategoryLegend/Symbols/LineSymbol.svelte @@ -1,5 +1,5 @@ diff --git a/packages/visualizations/src/components/Legend/ColorsLegend.svelte b/packages/visualizations/src/components/Legend/ColorsLegend.svelte index 7bf45d17d..efe6ba893 100644 --- a/packages/visualizations/src/components/Legend/ColorsLegend.svelte +++ b/packages/visualizations/src/components/Legend/ColorsLegend.svelte @@ -1,9 +1,9 @@