diff --git a/package-lock.json b/package-lock.json index aec4857235e..3991500ed38 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5556,7 +5556,6 @@ "version": "11.13.5", "resolved": "https://registry.npmjs.org/@emotion/css/-/css-11.13.5.tgz", "integrity": "sha512-wQdD0Xhkn3Qy2VNcIzbLP9MR8TafI0MJb7BEAXKp+w4+XqErksWR4OXomuDzPsN4InLdGhVe6EYcn2ZIUCpB8w==", - "license": "MIT", "dependencies": { "@emotion/babel-plugin": "^11.13.5", "@emotion/cache": "^11.13.5", @@ -6752,7 +6751,6 @@ "version": "3.2.0", "resolved": "https://registry.npmjs.org/@leafygreen-ui/avatar/-/avatar-3.2.0.tgz", "integrity": "sha512-MK2yibHUJj47KatctC7n0FWFoLUlErv2GPbzsCuKw8sNKUDcSDe6F3HIKhVGdMmuk4ylQMTYSHEwA1Q/rkjjMA==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/emotion": "^5.1.0", "@leafygreen-ui/hooks": "^9.3.0", @@ -6771,7 +6769,6 @@ "version": "10.2.3", "resolved": "https://registry.npmjs.org/@leafygreen-ui/badge/-/badge-10.2.3.tgz", "integrity": "sha512-SU8U8BPhDxkaj0w1ov+BPAqpSbChmu3XlAuDc3OCFqI4IMa9Jqf6nVoPnaN/OW6nMlD6B2pqZtbDnMpSLfcyuQ==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/emotion": "^5.1.0", "@leafygreen-ui/lib": "^15.6.2", @@ -6786,7 +6783,6 @@ "version": "10.2.4", "resolved": "https://registry.npmjs.org/@leafygreen-ui/banner/-/banner-10.2.4.tgz", "integrity": "sha512-GFH+LYnu67vOik2ulSLt6UpWaPeTmIDp3cPyc74UgTgg0MGLbFGS1maY+LSmL/nsumM3zCWF2RPQ7rkMM+n0CA==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/emotion": "^5.1.0", "@leafygreen-ui/icon": "^14.7.1", @@ -6804,7 +6800,6 @@ "version": "25.1.3", "resolved": "https://registry.npmjs.org/@leafygreen-ui/button/-/button-25.1.3.tgz", "integrity": "sha512-WDyrqyEzorW0XPAAaeZYApB+jjxgO5uUkqOZm9stTdCozT7n7K0MbB/eigoYPjGVJ0IJJ6N33GSWVeBjAWulZA==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/emotion": "^5.1.0", "@leafygreen-ui/lib": "^15.6.2", @@ -6823,7 +6818,6 @@ "version": "13.3.0", "resolved": "https://registry.npmjs.org/@leafygreen-ui/card/-/card-13.3.0.tgz", "integrity": "sha512-yUFyIQUDQwZi2gKoxJaxLkAKKk/n8fdScqTyd9krP3Hh+gkq7G1x+xXhvXMA79wlbk+WeRTBKZcvKbkgGZQyxg==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/emotion": "^5.1.0", "@leafygreen-ui/lib": "^15.7.0", @@ -6839,7 +6833,6 @@ "version": "18.1.4", "resolved": "https://registry.npmjs.org/@leafygreen-ui/checkbox/-/checkbox-18.1.4.tgz", "integrity": "sha512-aWVkalPdUUuUCt0iUaDg+z1ktusu18PfUbcR5zoLpQyIymeZK9mhsM/LdKAkQKt7mT2ExLeFzMzuSenRLVG8jg==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/a11y": "^3.0.5", "@leafygreen-ui/emotion": "^5.1.0", @@ -6859,7 +6852,6 @@ "version": "4.0.10", "resolved": "https://registry.npmjs.org/@leafygreen-ui/chip/-/chip-4.0.10.tgz", "integrity": "sha512-+zJxpwo9hVxryJEmiayjKm8W20+MOF61ngh3eOzebaK8JWPVut0TL+vcNh1Ja4mvhdIn3RtLAAmhZKx/nGfvSg==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/emotion": "^5.1.0", "@leafygreen-ui/icon": "^14.7.1", @@ -6876,7 +6868,6 @@ "version": "20.2.5", "resolved": "https://registry.npmjs.org/@leafygreen-ui/code/-/code-20.2.5.tgz", "integrity": "sha512-/gX0OKgO1HKIkIwsiXIlmxio5pVltTuz/LDmedNnNd5ZLJO2ZAsfK2JKHis4pxwfZHhtE+Ootq3jvMygbXbOwg==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/a11y": "^3.0.5", "@leafygreen-ui/button": "^25.1.3", @@ -6909,7 +6900,6 @@ "version": "12.3.0", "resolved": "https://registry.npmjs.org/@leafygreen-ui/combobox/-/combobox-12.3.0.tgz", "integrity": "sha512-NjRydZxbp7Ah4bzUNSHDU4glmvMxhtQBv8C0Zagg9EWoqq+q1YIbhC4yQT2k3LhatdYMXTZq8fSC9liVe+QI7Q==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/checkbox": "^18.1.4", "@leafygreen-ui/chip": "^4.0.10", @@ -6936,7 +6926,6 @@ "version": "10.3.0", "resolved": "https://registry.npmjs.org/@leafygreen-ui/confirmation-modal/-/confirmation-modal-10.3.0.tgz", "integrity": "sha512-8TdX2p8uq/cUfCMgGpq8KhJuj60GzxILhQ95pdNwd7Z3E6vpRt7QFaJbPE/r03ZljwVdXkql1DcQgmJ3fSUALg==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/button": "^25.1.3", "@leafygreen-ui/emotion": "^5.1.0", @@ -6956,7 +6945,6 @@ "version": "12.0.2", "resolved": "https://registry.npmjs.org/@leafygreen-ui/copyable/-/copyable-12.0.2.tgz", "integrity": "sha512-tE23eBGVPn7u16gdFAt9182lrqMOf2y8DOZi/vHp9L2JtI4+0bwFxFVkJqjn+Y10UtD3Fe8/NY2yJ11kpMTlhA==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/button": "^25.1.3", "@leafygreen-ui/emotion": "^5.1.0", @@ -6992,7 +6980,6 @@ "version": "5.2.0", "resolved": "https://registry.npmjs.org/@leafygreen-ui/drawer/-/drawer-5.2.0.tgz", "integrity": "sha512-6HK481NmDWddRdSKK61A2vWLazqF5BxnONnNtjn+kBjlOndKaVCguEhrMqMSIPL6y2BstBhpcq5EYK8x5PjDdQ==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/button": "^25.1.3", "@leafygreen-ui/emotion": "^5.1.0", @@ -7019,7 +7006,6 @@ "version": "5.1.0", "resolved": "https://registry.npmjs.org/@leafygreen-ui/emotion/-/emotion-5.1.0.tgz", "integrity": "sha512-PYTlsJ1gZWmuF549C+/57J3RT31s6KtsoWWe6bng1XAoTE06cvHOVmVC5yOeW2WHhpA3ulLckqX4Qj0kiofdww==", - "license": "Apache-2.0", "dependencies": { "@emotion/css": "^11.1.3", "@emotion/server": "^11.4.0" @@ -7047,7 +7033,6 @@ "version": "8.2.0", "resolved": "https://registry.npmjs.org/@leafygreen-ui/guide-cue/-/guide-cue-8.2.0.tgz", "integrity": "sha512-YDNcu+DA4aOE9QxI/TujT/v7h0YXz07rQpBcrew+7dIhDp3NcuNLN39SYegz5Gi6br+rhEQh8n7dowBHhVM6iw==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/a11y": "^3.0.5", "@leafygreen-ui/button": "^25.1.3", @@ -7072,7 +7057,6 @@ "version": "9.3.0", "resolved": "https://registry.npmjs.org/@leafygreen-ui/hooks/-/hooks-9.3.0.tgz", "integrity": "sha512-KYLJuCctqIfY/ycIhKTS1PTJTADwBdrEgW31q/FqHKNc0y9C/KcQXjzx4xsYFSLZFoeiPvS+GGQ2rD/LTcCFMw==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/lib": "^15.6.2", "@leafygreen-ui/tokens": "^4.0.0", @@ -7083,7 +7067,6 @@ "version": "14.7.1", "resolved": "https://registry.npmjs.org/@leafygreen-ui/icon/-/icon-14.7.1.tgz", "integrity": "sha512-qGui/wKgaa3kDpW6eKjL8yn3N9t4+SPcZjfrImTXiDGAbNgi8RKBR3ymIxOw7xmRv+okpjxbagQbHb3RoyPHCA==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/emotion": "^5.1.0", "@leafygreen-ui/hooks": "^9.3.0", @@ -7094,7 +7077,6 @@ "version": "17.1.4", "resolved": "https://registry.npmjs.org/@leafygreen-ui/icon-button/-/icon-button-17.1.4.tgz", "integrity": "sha512-n7EQ72FXs5fR4aN1y88NG4JIXTSOiWqGnfV4qB0FxNzkB4bpIhZoDPA+InokVV/xYDGuDmV2ngTRExoeJSMTuw==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/a11y": "^3.0.5", "@leafygreen-ui/emotion": "^5.1.0", @@ -7113,7 +7095,6 @@ "version": "5.0.10", "resolved": "https://registry.npmjs.org/@leafygreen-ui/info-sprinkle/-/info-sprinkle-5.0.10.tgz", "integrity": "sha512-t9oJsRGfvgdTenR27EdwIxAExhBaHuYkFWWoYD+48RWQHh+fpVWUIGEHtehjI4/WNOI9MBRMAKrds2dkt6s6Ig==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/emotion": "^5.1.0", "@leafygreen-ui/icon": "^14.7.1", @@ -7146,7 +7127,6 @@ "version": "4.1.4", "resolved": "https://registry.npmjs.org/@leafygreen-ui/input-option/-/input-option-4.1.4.tgz", "integrity": "sha512-HQ3fnfP7tcRcQKbWsMO8b2avR9M7X6m3seHk4jw/EQmiu+P2npt7s5Yo7IDNyMSokOYsaSY6RG9ZpcIgmLlLLg==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/a11y": "^3.0.5", "@leafygreen-ui/emotion": "^5.1.0", @@ -7164,7 +7144,6 @@ "version": "5.0.4", "resolved": "https://registry.npmjs.org/@leafygreen-ui/leafygreen-provider/-/leafygreen-provider-5.0.4.tgz", "integrity": "sha512-VDlmjTiIqlITVhq4VKUDq8FLySWnHkTxSV2n1sxOanLNPuatOXjxsPmCkPUBXhmQKk/fBf4yQnDKOwJvkyzE6Q==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/hooks": "^9.1.3", "@leafygreen-ui/lib": "^15.3.0", @@ -7175,7 +7154,6 @@ "version": "15.7.0", "resolved": "https://registry.npmjs.org/@leafygreen-ui/lib/-/lib-15.7.0.tgz", "integrity": "sha512-qHv7oN2uN7ywdG9lUN/ayFJzzgJELLgNxIo24m64Sl9c8gSWQeCW+NDj3ukoNVH7ME7QPoULseNd1fElonH8Vg==", - "license": "Apache-2.0", "dependencies": { "lodash": "^4.17.21" }, @@ -7187,7 +7165,6 @@ "version": "11.1.0", "resolved": "https://registry.npmjs.org/@leafygreen-ui/logo/-/logo-11.1.0.tgz", "integrity": "sha512-UupcGGmtfIXvuXEpJ5h/uvaqExJEXELyxj7VRSAB1JShmaNopRqoNcwfANxtKZ60nFtmBaSz6ix6xc4/gdSK2w==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/emotion": "^5.0.3", "@leafygreen-ui/lib": "^15.6.1", @@ -7198,7 +7175,6 @@ "version": "8.1.7", "resolved": "https://registry.npmjs.org/@leafygreen-ui/marketing-modal/-/marketing-modal-8.1.7.tgz", "integrity": "sha512-TIJfxA+35+6ruPev0g8Lc/XDpIHBK5mYOSbj5pB9J5wJnV/PWYZvzIcDqco5bv8IvkL5TmO3fF+OIVwBfoZpIA==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/button": "^25.1.3", "@leafygreen-ui/emotion": "^5.1.0", @@ -7216,7 +7192,6 @@ "version": "33.1.0", "resolved": "https://registry.npmjs.org/@leafygreen-ui/menu/-/menu-33.1.0.tgz", "integrity": "sha512-vY4F4PzqcL7WyHWY+sUc4WpitCjPs0e3BuNSK+yEAHCixABiAu+wyEA42MIff4+4BqrJkwRE0z/iU6kVvwU84w==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/descendants": "^3.0.6", "@leafygreen-ui/emotion": "^5.1.0", @@ -7242,7 +7217,6 @@ "version": "21.0.0", "resolved": "https://registry.npmjs.org/@leafygreen-ui/modal/-/modal-21.0.0.tgz", "integrity": "sha512-Eyo4/oKXcRlrts6ss4Zoeh4PUk56Y+vsinsPMppPR3/yqz1NUyVrH5ufyztC4OSdYRcnlATH1MRvCKKtRQ926Q==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/emotion": "^5.1.0", "@leafygreen-ui/hooks": "^9.3.0", @@ -7261,14 +7235,12 @@ "node_modules/@leafygreen-ui/palette": { "version": "5.0.2", "resolved": "https://registry.npmjs.org/@leafygreen-ui/palette/-/palette-5.0.2.tgz", - "integrity": "sha512-+PrfGeJSv4goxm/vKpfJJDOP7t/uElj+14K8jiIyu3qR3TcFRIZ5h1VMvICTUgqvRc8W+xIZYQwsLa2XCu2lvw==", - "license": "Apache-2.0" + "integrity": "sha512-+PrfGeJSv4goxm/vKpfJJDOP7t/uElj+14K8jiIyu3qR3TcFRIZ5h1VMvICTUgqvRc8W+xIZYQwsLa2XCu2lvw==" }, "node_modules/@leafygreen-ui/pipeline": { "version": "8.0.9", "resolved": "https://registry.npmjs.org/@leafygreen-ui/pipeline/-/pipeline-8.0.9.tgz", "integrity": "sha512-OMzttGdSPuPYA7tCdmUecsZpeM9Fh11htOkmtqeI++eP/Jwj+7euCDUgnMUXpiY+O41qP27ona4FvzmFkswilA==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/emotion": "^5.1.0", "@leafygreen-ui/hooks": "^9.3.0", @@ -7287,7 +7259,6 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/@leafygreen-ui/polymorphic/-/polymorphic-3.1.0.tgz", "integrity": "sha512-5fbXD6ExTmMScvODuipfB1Ti/Dvoaxxg+daSftqXfNQlEkEnd5cPnezOOl1LMsu2xUoZT6NXsFgukZYsmXEVpQ==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/lib": "^15.4.0", "lodash": "^4.17.21" @@ -7297,7 +7268,6 @@ "version": "14.3.1", "resolved": "https://registry.npmjs.org/@leafygreen-ui/popover/-/popover-14.3.1.tgz", "integrity": "sha512-++rrh0QLYm5frM6w8qVjMNf/diKksdZbp0zw3UMNJ7TJWJNCAYdpLlfscp6x19atRWw/Egh69wZdybD/Aaq9HA==", - "license": "Apache-2.0", "dependencies": { "@floating-ui/react": "^0.26.28", "@leafygreen-ui/emotion": "^5.1.0", @@ -7317,7 +7287,6 @@ "version": "7.1.0", "resolved": "https://registry.npmjs.org/@leafygreen-ui/portal/-/portal-7.1.0.tgz", "integrity": "sha512-wCldB70m/NtlIeVRxi5S/U74W6jxQScqptI2I4+7RweBquBfxIg1SipHXqMC+Zo3aL+s/fCMuFKNlLuwGWu8MA==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/hooks": "^9.2.0", "@leafygreen-ui/lib": "^15.6.1" @@ -7330,7 +7299,6 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/@leafygreen-ui/progress-bar/-/progress-bar-1.0.7.tgz", "integrity": "sha512-puqjyAs+epIFa4mU9UA3c7FKn/SWPj3jPlxtQwSFJJFKqK5MVgJ1Tm/1lWyCdiD6N2EQLkmEjxeU740zPGFWhA==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/a11y": "^3.0.5", "@leafygreen-ui/emotion": "^5.1.0", @@ -7352,7 +7320,6 @@ "version": "15.0.10", "resolved": "https://registry.npmjs.org/@leafygreen-ui/radio-box-group/-/radio-box-group-15.0.10.tgz", "integrity": "sha512-pUiJX0BY6jzfyC1dvyB0zAKJISH7AhE9rzHbyuxVzugbhkA2L1gEHr6c5mQFQfowqNWqAPbCN8bXAAEqckcPew==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/emotion": "^5.1.0", "@leafygreen-ui/hooks": "^9.3.0", @@ -7368,7 +7335,6 @@ "version": "13.0.11", "resolved": "https://registry.npmjs.org/@leafygreen-ui/radio-group/-/radio-group-13.0.11.tgz", "integrity": "sha512-2FE716AspLbY5PchLwgkZs2PfIOXPdNjxrTOzAGOzkamt8oheq1n3KxDeQ5N3FFaTA4kUOVMFFKdgCRlYG+FcA==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/emotion": "^5.1.0", "@leafygreen-ui/hooks": "^9.3.0", @@ -7405,7 +7371,6 @@ "version": "6.1.2", "resolved": "https://registry.npmjs.org/@leafygreen-ui/search-input/-/search-input-6.1.2.tgz", "integrity": "sha512-ET2rmzrN1fVFzkdVIofuxGwUZES9eTuZweMmEVd9mTrOHCvwOfecgKTBe0GQgpuycm0JolywZOO+3TmFwEedrQ==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/a11y": "^3.0.5", "@leafygreen-ui/emotion": "^5.1.0", @@ -7430,7 +7395,6 @@ "version": "11.0.12", "resolved": "https://registry.npmjs.org/@leafygreen-ui/segmented-control/-/segmented-control-11.0.12.tgz", "integrity": "sha512-VU2ZNhIm6WL/kv8hPoPXeVG7VX/bTlx/rzARUZ8QrLbr+6Wp4VntE22nM2XmuZ3gQLMALamBA6Mi/Dlv8CnSNg==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/emotion": "^5.1.0", "@leafygreen-ui/hooks": "^9.3.0", @@ -7451,7 +7415,6 @@ "version": "17.0.2", "resolved": "https://registry.npmjs.org/@leafygreen-ui/select/-/select-17.0.2.tgz", "integrity": "sha512-7TjzWft/jsbUdNkfZFmyeCNn+aIiDlGutiD7aWV54x5s9DsUZLvL30vN0wxd9fX+1GXFO+vDtev4So7UgkfW4g==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/button": "^25.1.3", "@leafygreen-ui/emotion": "^5.1.0", @@ -7484,7 +7447,6 @@ "version": "3.0.10", "resolved": "https://registry.npmjs.org/@leafygreen-ui/skeleton-loader/-/skeleton-loader-3.0.10.tgz", "integrity": "sha512-QrKAr8Heap0F3xVpq448OrCUOhO7JP/4seFhcPB9arI4iQ5AlEzpJBLk6HZiH6lE7Fu+d+R1rEAtnFQ8PVH72A==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/a11y": "^3.0.5", "@leafygreen-ui/card": "^13.2.1", @@ -7504,7 +7466,6 @@ "version": "6.3.0", "resolved": "https://registry.npmjs.org/@leafygreen-ui/split-button/-/split-button-6.3.0.tgz", "integrity": "sha512-VNpKssJ392XpN+BY4GEMR3xu6JlCcjrmt4NxDNwa5dR4uYbPewrwTdt2PBSSTRGzPRkS1bN8pzNLl+o7k7bFBw==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/button": "^25.1.3", "@leafygreen-ui/emotion": "^5.1.0", @@ -7524,7 +7485,6 @@ "version": "15.2.2", "resolved": "https://registry.npmjs.org/@leafygreen-ui/table/-/table-15.2.2.tgz", "integrity": "sha512-KAkloT8It3L+PbZYAGvSiTtRx4zbLjiyzIHifA0y+DvYo7aoDh2x6hHf4PsD7hn/Tu3NkxQrvxC/wykAMdB39g==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/checkbox": "^18.1.4", "@leafygreen-ui/emotion": "^5.1.0", @@ -7552,7 +7512,6 @@ "version": "17.0.9", "resolved": "https://registry.npmjs.org/@leafygreen-ui/tabs/-/tabs-17.0.9.tgz", "integrity": "sha512-dk2l9OXoMxGIRPC9K/ZSkOdXoz4G/jrtTtNDP4WFXC0s69TpJw+/d8SQOTGRg8vb3cxkFcv7fPE+Tq5Gq6SZTA==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/a11y": "^3.0.5", "@leafygreen-ui/descendants": "^3.1.0", @@ -7573,7 +7532,6 @@ "version": "12.1.4", "resolved": "https://registry.npmjs.org/@leafygreen-ui/text-area/-/text-area-12.1.4.tgz", "integrity": "sha512-HkncILBoWWoCvebW8uT8hy+iD/w3eOGvUoqTyPL0zP2fUM4dKCCb2brvvHct6SvKxPDuuoG3fECb4HgyDq+stw==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/emotion": "^5.1.0", "@leafygreen-ui/form-field": "^4.0.8", @@ -7593,7 +7551,6 @@ "version": "16.2.2", "resolved": "https://registry.npmjs.org/@leafygreen-ui/text-input/-/text-input-16.2.2.tgz", "integrity": "sha512-Pt6vvfXLDUcnYyOArfMOLAn2HrBKEy4zD7QOb+tuFKkrDqdD8G3656QFpynwuwatXqs0ftbS1gEySJ2F4LV0kQ==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/emotion": "^5.1.0", "@leafygreen-ui/form-field": "^4.0.8", @@ -7611,7 +7568,6 @@ "version": "8.1.2", "resolved": "https://registry.npmjs.org/@leafygreen-ui/toast/-/toast-8.1.2.tgz", "integrity": "sha512-jWdYPaxxSW6dfnla1HSY0ee9hNrt4DfweWHXDtaNS53GyOewKSGDNCIDPkR+VvMLKvKP/wzdz1R7lKq2loAhrA==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/emotion": "^5.1.0", "@leafygreen-ui/hooks": "^9.3.0", @@ -7634,7 +7590,6 @@ "version": "12.1.4", "resolved": "https://registry.npmjs.org/@leafygreen-ui/toggle/-/toggle-12.1.4.tgz", "integrity": "sha512-2KuNmbNGCL+M0zFwLgDeEbG1Kczw8pE108mnozmqBMIa1xGyV1AkZta67w5v1T1l/lpTDCE7R1dzZEVZNosgqA==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/a11y": "^3.0.5", "@leafygreen-ui/emotion": "^5.1.0", @@ -7652,7 +7607,6 @@ "version": "4.2.0", "resolved": "https://registry.npmjs.org/@leafygreen-ui/tokens/-/tokens-4.2.0.tgz", "integrity": "sha512-5Bp1mhh8PKi7ZKr17/VNiSz0LL7ipFgR/Ayj7tIW79sbuGmBFt2rlu2lMnH6hQAvYrHWbW/FDqyeq85jOxIdTQ==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/emotion": "^5.1.0", "@leafygreen-ui/lib": "^15.7.0", @@ -7684,7 +7638,6 @@ "version": "14.3.0", "resolved": "https://registry.npmjs.org/@leafygreen-ui/tooltip/-/tooltip-14.3.0.tgz", "integrity": "sha512-EYtsck4ctBH8gZZd9u0tw2zHPr5ZW5VCypNKSOVzNlR5u+w6dwiVw2WRdCVxSNegPIxwhH0ms547qdF6/Cjp5A==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/emotion": "^5.1.0", "@leafygreen-ui/hooks": "^9.3.0", @@ -7705,7 +7658,6 @@ "version": "22.2.3", "resolved": "https://registry.npmjs.org/@leafygreen-ui/typography/-/typography-22.2.3.tgz", "integrity": "sha512-zOfPAFyUrUU0G9wPv7lFSMr4FvKi2NiulDMHhy5zea+J4gDn1yuiU0mItG6cwbWxpWSiBeF0gfsZoDuHgKppUg==", - "license": "Apache-2.0", "dependencies": { "@leafygreen-ui/emotion": "^5.1.0", "@leafygreen-ui/icon": "^14.7.1", @@ -9998,10 +9950,9 @@ } }, "node_modules/@mongodb-js/diagramming": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/@mongodb-js/diagramming/-/diagramming-2.2.2.tgz", - "integrity": "sha512-GCI+L9TBC7sbuEeJaazhdz1ELcvPRi6cjuOf9Lhx/9FhyV+7IpIGCQbm4V7OflBrqBTfZD4XrwzlkuZ55hRLaA==", - "license": "MIT", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/@mongodb-js/diagramming/-/diagramming-2.3.1.tgz", + "integrity": "sha512-u1s0H8Pyqai7tmDVzkUvlnHK/xCFuhZIpwix6LJOl2ADiwc7l30yCrgiM0qRXlcJKWDbbZDmE0uGpYA9swv9tw==", "dependencies": { "@emotion/react": "^11.14.0", "@emotion/styled": "^11.14.0", @@ -47988,7 +47939,7 @@ "@lg-chat/message": "^10.1.1", "@lg-chat/message-prompts": "^4.2.0", "@mongodb-js/compass-context-menu": "^0.3.2", - "@mongodb-js/diagramming": "2.2.2", + "@mongodb-js/diagramming": "^2.3.1", "@react-aria/interactions": "^3.9.1", "@react-aria/utils": "^3.13.1", "@react-aria/visually-hidden": "^3.3.1", @@ -61454,7 +61405,7 @@ "@lg-chat/message": "^10.1.1", "@lg-chat/message-prompts": "^4.2.0", "@mongodb-js/compass-context-menu": "^0.3.2", - "@mongodb-js/diagramming": "2.2.2", + "@mongodb-js/diagramming": "^2.3.1", "@mongodb-js/eslint-config-compass": "^1.4.13", "@mongodb-js/mocha-config-compass": "^1.7.3", "@mongodb-js/prettier-config-compass": "^1.2.9", @@ -64980,9 +64931,9 @@ } }, "@mongodb-js/diagramming": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/@mongodb-js/diagramming/-/diagramming-2.2.2.tgz", - "integrity": "sha512-GCI+L9TBC7sbuEeJaazhdz1ELcvPRi6cjuOf9Lhx/9FhyV+7IpIGCQbm4V7OflBrqBTfZD4XrwzlkuZ55hRLaA==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/@mongodb-js/diagramming/-/diagramming-2.3.1.tgz", + "integrity": "sha512-u1s0H8Pyqai7tmDVzkUvlnHK/xCFuhZIpwix6LJOl2ADiwc7l30yCrgiM0qRXlcJKWDbbZDmE0uGpYA9swv9tw==", "requires": { "@emotion/react": "^11.14.0", "@emotion/styled": "^11.14.0", diff --git a/packages/compass-components/package.json b/packages/compass-components/package.json index c7dc35dc32e..256b3063db1 100644 --- a/packages/compass-components/package.json +++ b/packages/compass-components/package.json @@ -87,7 +87,7 @@ "@lg-chat/message": "^10.1.1", "@lg-chat/message-prompts": "^4.2.0", "@mongodb-js/compass-context-menu": "^0.3.2", - "@mongodb-js/diagramming": "2.2.2", + "@mongodb-js/diagramming": "^2.3.1", "@react-aria/interactions": "^3.9.1", "@react-aria/utils": "^3.13.1", "@react-aria/visually-hidden": "^3.3.1", diff --git a/packages/compass-data-modeling/src/components/diagram-editor.tsx b/packages/compass-data-modeling/src/components/diagram-editor.tsx index dec3a101b7b..8ae63bc3b9d 100644 --- a/packages/compass-data-modeling/src/components/diagram-editor.tsx +++ b/packages/compass-data-modeling/src/components/diagram-editor.tsx @@ -280,9 +280,9 @@ const DiagramContent: React.FunctionComponent<{ !!selectedItems && selectedItems.type === 'relationship' && selectedItems.id === relationship.id; - return relationshipToDiagramEdge(relationship, selected, nodes); + return relationshipToDiagramEdge(relationship, selected); }); - }, [model?.relationships, selectedItems, nodes]); + }, [model?.relationships, selectedItems]); // Fit to view on initial mount useEffect(() => { diff --git a/packages/compass-data-modeling/src/store/analysis-process.ts b/packages/compass-data-modeling/src/store/analysis-process.ts index 21700e1918c..d6a07c5602c 100644 --- a/packages/compass-data-modeling/src/store/analysis-process.ts +++ b/packages/compass-data-modeling/src/store/analysis-process.ts @@ -206,7 +206,7 @@ async function getInitialLayout({ }); return await applyLayout({ nodes, - edges: relations.map((rel) => relationshipToDiagramEdge(rel, false, [])), // nodes are not important here + edges: relations.map((rel) => relationshipToDiagramEdge(rel, false)), direction: hasRelations ? 'STAR' : 'RECTANGLE', }); } diff --git a/packages/compass-data-modeling/src/utils/nodes-and-edges.spec.ts b/packages/compass-data-modeling/src/utils/nodes-and-edges.spec.ts index 3fe2a957b4b..417bae004fa 100644 --- a/packages/compass-data-modeling/src/utils/nodes-and-edges.spec.ts +++ b/packages/compass-data-modeling/src/utils/nodes-and-edges.spec.ts @@ -4,7 +4,6 @@ import { relationshipToDiagramEdge, } from './nodes-and-edges'; import { type Relationship } from '../services/data-model-storage'; -import { type NodeProps } from '@mongodb-js/compass-components'; describe('getFieldsFromSchema', function () { describe('flat schema', function () { @@ -699,17 +698,9 @@ describe('relationshipToDiagramEdge', function () { note: 'Test relationship', }; - const node: NodeProps = { - id: relationship.relationship[0].ns!, - title: 'Collection A', - type: 'collection', - position: { x: 0, y: 0 }, - fields: [], - }; - it('should forward basic properties', function () { const isSelected = true; - const edge = relationshipToDiagramEdge(relationship, isSelected, []); + const edge = relationshipToDiagramEdge(relationship, isSelected); expect(edge.id).to.equal(relationship.id); expect(edge.source).to.equal(relationship.relationship[0].ns); expect(edge.target).to.equal(relationship.relationship[1].ns); @@ -717,60 +708,15 @@ describe('relationshipToDiagramEdge', function () { }); it('should map cardinality to markers', function () { - const edge = relationshipToDiagramEdge(relationship, false, []); + const edge = relationshipToDiagramEdge(relationship, false); expect(edge.markerStart).to.equal('one'); expect(edge.markerEnd).to.equal('many'); }); - it('should find field indices', function () { - const nodes: NodeProps[] = [ - { - ...node, - id: relationship.relationship[0].ns!, - fields: [ - { - id: ['otherPath'], - name: 'fieldA', // same name but different path - type: 'string', - }, - { - id: ['parent', 'otherField'], // same parent but different field - name: 'otherField', - type: 'string', - }, - { - id: relationship.relationship[0].fields as string[], - name: 'fieldA', - type: 'string', - }, - ], - }, - { - ...node, - id: relationship.relationship[1].ns!, - fields: [ - { - id: ['otherPath'], - name: 'fieldB', // same name but different path - type: 'string', - }, - { - id: relationship.relationship[1].fields as string[], - name: 'fieldB', - type: 'string', - }, - { - id: ['otherParent', 'otherField'], // same parent but different field - name: 'otherField', - type: 'string', - }, - ], - }, - ]; - - const edge = relationshipToDiagramEdge(relationship, false, nodes); - expect(edge.sourceFieldIndex).to.equal(2); - expect(edge.targetFieldIndex).to.equal(1); + it('should map field ids', function () { + const edge = relationshipToDiagramEdge(relationship, false); + expect(edge.sourceFieldId).to.equal(relationship.relationship[0].fields); + expect(edge.targetFieldId).to.equal(relationship.relationship[1].fields); }); it('should choose animated for incomplete relationships', function () { @@ -785,12 +731,11 @@ describe('relationshipToDiagramEdge', function () { relationship.relationship[1], ], }, - false, - [] + false ); expect(incompleteEdge.animated).to.equal(true); - const completeEdge = relationshipToDiagramEdge(relationship, false, []); + const completeEdge = relationshipToDiagramEdge(relationship, false); expect(completeEdge.animated).to.equal(false); }); }); diff --git a/packages/compass-data-modeling/src/utils/nodes-and-edges.ts b/packages/compass-data-modeling/src/utils/nodes-and-edges.ts index 0c98c1583dd..e78962c1ab5 100644 --- a/packages/compass-data-modeling/src/utils/nodes-and-edges.ts +++ b/packages/compass-data-modeling/src/utils/nodes-and-edges.ts @@ -198,50 +198,17 @@ export function collectionToDiagramNode({ }; } -function findNodeByNS(ns: string, nodes: NodeProps[]): NodeProps | undefined { - return nodes.find((node) => node.id === ns); -} - -function findFieldIndex({ - fieldPath, - nodes, - ns, -}: { - fieldPath: string[]; - nodes: NodeProps[]; - ns?: string; -}): number | undefined { - if (!ns || !fieldPath.length) return undefined; - const node = findNodeByNS(ns, nodes); - if (!node) return undefined; - - for (const [index, field] of node.fields.entries()) { - if (!field.id || !Array.isArray(field.id)) continue; - // TODO(COMPASS-9504 and COMPASS-9935): Accept partial paths for collapsed nodes and fields. - if (areFieldPathsEqual(field.id, fieldPath)) return index; - } -} - export function relationshipToDiagramEdge( relationship: Relationship, - selected = false, - nodes: NodeProps[] + selected = false ): EdgeProps { const [source, target] = relationship.relationship; return { id: relationship.id, source: source.ns ?? '', target: target.ns ?? '', - sourceFieldIndex: findFieldIndex({ - fieldPath: source.fields ?? [], - nodes, - ns: source.ns ?? undefined, - }), - targetFieldIndex: findFieldIndex({ - fieldPath: target.fields ?? [], - nodes, - ns: target.ns ?? undefined, - }), + sourceFieldId: source.fields ?? [], + targetFieldId: target.fields ?? [], markerStart: source.cardinality === 1 ? 'one' : 'many', markerEnd: target.cardinality === 1 ? 'one' : 'many', selected,