diff --git a/package-lock.json b/package-lock.json index 1ad610da5..b5b147d04 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "@babel/parser": "^7.24.6", "@babel/traverse": "^7.24.6", "@mongodb-js/compass-components": "^1.25.0", - "@mongodb-js/connection-form": "^1.22.2", + "@mongodb-js/connection-form": "^1.41.0", "@mongodb-js/connection-info": "^0.7.0", "@mongodb-js/mongodb-constants": "^0.10.2", "@mongosh/browser-runtime-electron": "^2.3.0", @@ -1752,9 +1752,10 @@ } }, "node_modules/@codemirror/autocomplete": { - "version": "6.12.0", - "resolved": "https://registry.npmjs.org/@codemirror/autocomplete/-/autocomplete-6.12.0.tgz", - "integrity": "sha512-r4IjdYFthwbCQyvqnSlx0WBHRHi8nBvU+WjJxFUij81qsBfhNudf/XKKmmC2j3m0LaOYUQTf3qiEK1J8lO1sdg==", + "version": "6.18.1", + "resolved": "https://registry.npmjs.org/@codemirror/autocomplete/-/autocomplete-6.18.1.tgz", + "integrity": "sha512-iWHdj/B1ethnHRTwZj+C1obmmuCzquH29EbcKr0qIjA9NfDeBDJ7vs+WOHsFeLeflE4o+dHfYndJloMKHUkWUA==", + "license": "MIT", "dependencies": { "@codemirror/language": "^6.0.0", "@codemirror/state": "^6.0.0", @@ -1769,20 +1770,22 @@ } }, "node_modules/@codemirror/commands": { - "version": "6.3.3", - "resolved": "https://registry.npmjs.org/@codemirror/commands/-/commands-6.3.3.tgz", - "integrity": "sha512-dO4hcF0fGT9tu1Pj1D2PvGvxjeGkbC6RGcZw6Qs74TH+Ed1gw98jmUgd2axWvIZEqTeTuFrg1lEB1KV6cK9h1A==", + "version": "6.6.2", + "resolved": "https://registry.npmjs.org/@codemirror/commands/-/commands-6.6.2.tgz", + "integrity": "sha512-Fq7eWOl1Rcbrfn6jD8FPCj9Auaxdm5nIK5RYOeW7ughnd/rY5AmPg6b+CfsG39ZHdwiwe8lde3q8uR7CF5S0yQ==", + "license": "MIT", "dependencies": { "@codemirror/language": "^6.0.0", "@codemirror/state": "^6.4.0", - "@codemirror/view": "^6.0.0", + "@codemirror/view": "^6.27.0", "@lezer/common": "^1.1.0" } }, "node_modules/@codemirror/lang-javascript": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/@codemirror/lang-javascript/-/lang-javascript-6.2.1.tgz", - "integrity": "sha512-jlFOXTejVyiQCW3EQwvKH0m99bUYIw40oPmFjSX2VS78yzfe0HELZ+NEo9Yfo1MkGRpGlj3Gnu4rdxV1EnAs5A==", + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/@codemirror/lang-javascript/-/lang-javascript-6.2.2.tgz", + "integrity": "sha512-VGQfY+FCc285AhWuwjYxQyUQcYurWlxdKYT4bqwr3Twnd5wP5WSeu52t4tvvuWmljT4EmgEgZCqSieokhtY8hg==", + "license": "MIT", "dependencies": { "@codemirror/autocomplete": "^6.0.0", "@codemirror/language": "^6.6.0", @@ -1797,15 +1800,17 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/@codemirror/lang-json/-/lang-json-6.0.1.tgz", "integrity": "sha512-+T1flHdgpqDDlJZ2Lkil/rLiRy684WMLc74xUnjJH48GQdfJo/pudlTRreZmKwzP8/tGdKf83wlbAdOCzlJOGQ==", + "license": "MIT", "dependencies": { "@codemirror/language": "^6.0.0", "@lezer/json": "^1.0.0" } }, "node_modules/@codemirror/language": { - "version": "6.10.0", - "resolved": "https://registry.npmjs.org/@codemirror/language/-/language-6.10.0.tgz", - "integrity": "sha512-2vaNn9aPGCRFKWcHPFksctzJ8yS5p7YoaT+jHpc0UGKzNuAIx4qy6R5wiqbP+heEEdyaABA582mNqSHzSoYdmg==", + "version": "6.10.3", + "resolved": "https://registry.npmjs.org/@codemirror/language/-/language-6.10.3.tgz", + "integrity": "sha512-kDqEU5sCP55Oabl6E7m5N+vZRoc0iWqgDVhEKifcHzPzjqCegcO4amfrYVL9PmPZpl4G0yjkpTpUO/Ui8CzO8A==", + "license": "MIT", "dependencies": { "@codemirror/state": "^6.0.0", "@codemirror/view": "^6.23.0", @@ -1816,9 +1821,10 @@ } }, "node_modules/@codemirror/lint": { - "version": "6.4.2", - "resolved": "https://registry.npmjs.org/@codemirror/lint/-/lint-6.4.2.tgz", - "integrity": "sha512-wzRkluWb1ptPKdzlsrbwwjYCPLgzU6N88YBAmlZi8WFyuiEduSd05MnJYNogzyc8rPK7pj6m95ptUApc8sHKVA==", + "version": "6.8.2", + "resolved": "https://registry.npmjs.org/@codemirror/lint/-/lint-6.8.2.tgz", + "integrity": "sha512-PDFG5DjHxSEjOXk9TQYYVjZDqlZTFaDBfhQixHnQOEVDDNHUbEh/hstAjcQJaA6FQdZTD1hquXTK0rVBLADR1g==", + "license": "MIT", "dependencies": { "@codemirror/state": "^6.0.0", "@codemirror/view": "^6.0.0", @@ -1826,14 +1832,16 @@ } }, "node_modules/@codemirror/state": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/@codemirror/state/-/state-6.4.0.tgz", - "integrity": "sha512-hm8XshYj5Fo30Bb922QX9hXB/bxOAVH+qaqHBzw5TKa72vOeslyGwd4X8M0c1dJ9JqxlaMceOQ8RsL9tC7gU0A==" + "version": "6.4.1", + "resolved": "https://registry.npmjs.org/@codemirror/state/-/state-6.4.1.tgz", + "integrity": "sha512-QkEyUiLhsJoZkbumGZlswmAhA7CBU02Wrz7zvH4SrcifbsqwlXShVXg65f3v/ts57W3dqyamEriMhij1Z3Zz4A==", + "license": "MIT" }, "node_modules/@codemirror/view": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.23.0.tgz", - "integrity": "sha512-/51px9N4uW8NpuWkyUX+iam5+PM6io2fm+QmRnzwqBy5v/pwGg9T0kILFtYeum8hjuvENtgsGNKluOfqIICmeQ==", + "version": "6.34.1", + "resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.34.1.tgz", + "integrity": "sha512-t1zK/l9UiRqwUNPm+pdIT0qzJlzuVckbTEMVNFhfWkGiBQClstzg+78vedCvLSX0xJEZ6lwZbPpnljL7L6iwMQ==", + "license": "MIT", "dependencies": { "@codemirror/state": "^6.4.0", "style-mod": "^4.1.0", @@ -3554,23 +3562,27 @@ "integrity": "sha512-Tr2TmpS0YFJ3hGNbVWQpeseJRo4kTrVumVlZ4aF4hId1JYDzF0TU5JJO40v+brhbgnKsyBu7+Rvz6ExY1NcKew==" }, "node_modules/@lezer/common": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@lezer/common/-/common-1.2.0.tgz", - "integrity": "sha512-Wmvlm4q6tRpwiy20TnB3yyLTZim38Tkc50dPY8biQRwqE+ati/wD84rm3N15hikvdT4uSg9phs9ubjvcLmkpKg==" + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@lezer/common/-/common-1.2.1.tgz", + "integrity": "sha512-yemX0ZD2xS/73llMZIK6KplkjIjf2EvAHcinDi/TfJ9hS25G0388+ClHt6/3but0oOxinTcQHJLDXh6w1crzFQ==", + "license": "MIT" }, "node_modules/@lezer/highlight": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@lezer/highlight/-/highlight-1.2.0.tgz", - "integrity": "sha512-WrS5Mw51sGrpqjlh3d4/fOwpEV2Hd3YOkp9DBt4k8XZQcoTHZFB7sx030A6OcahF4J1nDQAa3jXlTVVYH50IFA==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@lezer/highlight/-/highlight-1.2.1.tgz", + "integrity": "sha512-Z5duk4RN/3zuVO7Jq0pGLJ3qynpxUVsh7IbUbGj88+uV2ApSAn6kWg2au3iJb+0Zi7kKtqffIESgNcRXWZWmSA==", + "license": "MIT", "dependencies": { "@lezer/common": "^1.0.0" } }, "node_modules/@lezer/javascript": { - "version": "1.4.12", - "resolved": "https://registry.npmjs.org/@lezer/javascript/-/javascript-1.4.12.tgz", - "integrity": "sha512-kwO5MftUiyfKBcECMEDc4HYnc10JME9kTJNPVoCXqJj/Y+ASWF0rgstORi3BThlQI6SoPSshrK5TjuiLFnr29A==", + "version": "1.4.18", + "resolved": "https://registry.npmjs.org/@lezer/javascript/-/javascript-1.4.18.tgz", + "integrity": "sha512-Y8BeHOt4LtcxJgXwadtfSeWPrh0XzklcCHnCVT+vOsxqH4gWmunP2ykX+VVOlM/dusyVyiNfG3lv0f10UK+mgA==", + "license": "MIT", "dependencies": { + "@lezer/common": "^1.2.0", "@lezer/highlight": "^1.1.3", "@lezer/lr": "^1.3.0" } @@ -3579,6 +3591,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/@lezer/json/-/json-1.0.2.tgz", "integrity": "sha512-xHT2P4S5eeCYECyKNPhr4cbEL9tc8w83SPwRC373o9uEdrvGKTZoJVAGxpOsZckMlEh9W23Pc72ew918RWQOBQ==", + "license": "MIT", "dependencies": { "@lezer/common": "^1.2.0", "@lezer/highlight": "^1.0.0", @@ -3586,9 +3599,10 @@ } }, "node_modules/@lezer/lr": { - "version": "1.3.14", - "resolved": "https://registry.npmjs.org/@lezer/lr/-/lr-1.3.14.tgz", - "integrity": "sha512-z5mY4LStlA3yL7aHT/rqgG614cfcvklS+8oFRFBYrs4YaWLJyKKM4+nN6KopToX0o9Hj6zmH6M5kinOYuy06ug==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/@lezer/lr/-/lr-1.4.2.tgz", + "integrity": "sha512-pu0K1jCIdnQ12aWNaAVU5bzi7Bd1w54J3ECgANPmYLtQKP0HBj2cE/5coBD66MT10xbtIuUr7tg0Shbsvk0mDA==", + "license": "MIT", "dependencies": { "@lezer/common": "^1.0.0" } @@ -3663,9 +3677,10 @@ } }, "node_modules/@mongodb-js/compass-components": { - "version": "1.26.0", - "resolved": "https://registry.npmjs.org/@mongodb-js/compass-components/-/compass-components-1.26.0.tgz", - "integrity": "sha512-YiWQkAmLEOH4z5vcoraLF3x9B0MYDJmOGYkWUeVzBXmbtkDNI+Y4tkAV0uFr8+PkkGglH1jmOso81O6Op3A0IQ==", + "version": "1.30.0", + "resolved": "https://registry.npmjs.org/@mongodb-js/compass-components/-/compass-components-1.30.0.tgz", + "integrity": "sha512-TDXQ/8PfcvLcvMu+X5g0ADm48kK3Fv90FXI+9zT+2TwDcpnp3XsaawnfqckGZfKtF5st0568qFx6fmjQCutG4A==", + "license": "SSPL", "dependencies": { "@dnd-kit/core": "^6.0.7", "@dnd-kit/sortable": "^7.0.2", @@ -3676,7 +3691,7 @@ "@leafygreen-ui/card": "^10.0.6", "@leafygreen-ui/checkbox": "^12.1.1", "@leafygreen-ui/code": "^14.3.1", - "@leafygreen-ui/confirmation-modal": "^5.0.11", + "@leafygreen-ui/confirmation-modal": "^5.2.0", "@leafygreen-ui/emotion": "^4.0.7", "@leafygreen-ui/guide-cue": "^5.0.6", "@leafygreen-ui/hooks": "^8.1.2", @@ -3686,7 +3701,7 @@ "@leafygreen-ui/inline-definition": "^6.0.14", "@leafygreen-ui/leafygreen-provider": "^3.1.11", "@leafygreen-ui/lib": "^13.2.1", - "@leafygreen-ui/logo": "^9.0.1", + "@leafygreen-ui/logo": "^9.1.1", "@leafygreen-ui/marketing-modal": "^4.2.1", "@leafygreen-ui/menu": "^23.0.2", "@leafygreen-ui/modal": "^16.0.6", @@ -3707,16 +3722,14 @@ "@leafygreen-ui/toast": "^6.1.23", "@leafygreen-ui/toggle": "^10.0.19", "@leafygreen-ui/tokens": "^2.5.1", - "@leafygreen-ui/tooltip": "^11.0.2", + "@leafygreen-ui/tooltip": "^11.1.0", "@leafygreen-ui/typography": "^18.2.3", "@react-aria/interactions": "^3.9.1", - "@react-aria/tooltip": "^3.2.1", "@react-aria/utils": "^3.13.1", "@react-aria/visually-hidden": "^3.3.1", - "@react-stately/tooltip": "^3.0.5", "bson": "^6.7.0", "focus-trap-react": "^9.0.2", - "hadron-document": "^8.5.4", + "hadron-document": "^8.6.3", "hadron-type-checker": "^7.2.2", "is-electron-renderer": "^2.0.1", "lodash": "^4.17.21", @@ -3725,15 +3738,17 @@ "react": "^17.0.2", "react-hotkeys-hook": "^4.3.7", "react-intersection-observer": "^8.34.0", + "react-virtualized-auto-sizer": "^1.0.6", "react-window": "^1.8.6" } }, "node_modules/@mongodb-js/compass-editor": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@mongodb-js/compass-editor/-/compass-editor-0.20.2.tgz", - "integrity": "sha512-liiP6yrvpLSqpgkJ73KzkpbUIU7/CiU78Ldl381UbFkFjclq+pe6DXMRXwvCdBhcu+l1DoIPMFDz2ql93e6/4Q==", + "version": "0.31.0", + "resolved": "https://registry.npmjs.org/@mongodb-js/compass-editor/-/compass-editor-0.31.0.tgz", + "integrity": "sha512-0O5xIp42Bcq3emTHOQoKNUIeq9Kt+7aLW9IyquUO4ZyM5e4Ooo3Jcor2UsH2dZ7a5sqmyqXfBqkIap8EhNPvxQ==", + "license": "SSPL", "dependencies": { - "@codemirror/autocomplete": "^6.4.0", + "@codemirror/autocomplete": "^6.17.0", "@codemirror/commands": "^6.1.2", "@codemirror/lang-javascript": "^6.1.2", "@codemirror/lang-json": "^6.0.1", @@ -3741,24 +3756,15 @@ "@codemirror/lint": "^6.1.1", "@codemirror/state": "^6.1.4", "@codemirror/view": "^6.7.1", - "@lezer/highlight": "^1.1.3", - "@mongodb-js/compass-components": "^1.21.2", - "@mongodb-js/mongodb-constants": "^0.8.7", + "@lezer/highlight": "^1.2.0", + "@mongodb-js/compass-components": "^1.30.0", + "@mongodb-js/mongodb-constants": "^0.10.0", + "mongodb-query-parser": "^4.2.3", "polished": "^4.2.2", - "prettier": "^2.7.1" - }, - "peerDependencies": { + "prettier": "^2.7.1", "react": "^17.0.2" } }, - "node_modules/@mongodb-js/compass-editor/node_modules/@mongodb-js/mongodb-constants": { - "version": "0.8.10", - "resolved": "https://registry.npmjs.org/@mongodb-js/mongodb-constants/-/mongodb-constants-0.8.10.tgz", - "integrity": "sha512-tLXBNzLzk7KD0UsZaSpAg7bftgiDRVYFjc3zXT+828ENtg7TIvahkzJzoD7K6SwnFjPp8PZ/R36rpEL3zFq9yg==", - "dependencies": { - "semver": "^7.5.4" - } - }, "node_modules/@mongodb-js/compass-logging": { "version": "1.4.8", "resolved": "https://registry.npmjs.org/@mongodb-js/compass-logging/-/compass-logging-1.4.8.tgz", @@ -3784,75 +3790,34 @@ } }, "node_modules/@mongodb-js/connection-form": { - "version": "1.22.2", - "resolved": "https://registry.npmjs.org/@mongodb-js/connection-form/-/connection-form-1.22.2.tgz", - "integrity": "sha512-bRQKka5LtYnQxuOfo08+tmFyAI12SkHE2EjlPzfFB8Zrn++O8BqfH88Nt4wXSMMnfH2gqWfsruFquMKmW+Favg==", - "dependencies": { - "@mongodb-js/compass-components": "^1.21.2", - "@mongodb-js/compass-editor": "^0.20.2", - "@mongodb-js/connection-info": "^0.1.2", - "@testing-library/react-hooks": "^7.0.2", + "version": "1.41.1", + "resolved": "https://registry.npmjs.org/@mongodb-js/connection-form/-/connection-form-1.41.1.tgz", + "integrity": "sha512-UycBZSvUG9kNz8vsbw9MqnkvKYyPrGAI5J92q1ZTj0GnvxxD5aRXoGZUyAVXrPuyH2WnUmlG73oFSvtQyQY1mA==", + "license": "SSPL", + "dependencies": { + "@mongodb-js/compass-components": "^1.30.0", + "@mongodb-js/compass-editor": "^0.31.0", + "@mongodb-js/connection-info": "^0.9.0", + "@mongodb-js/shell-bson-parser": "^1.1.2", "lodash": "^4.17.21", - "mongodb-build-info": "^1.7.0", - "mongodb-connection-string-url": "^2.6.0", - "mongodb-query-parser": "^4.0.2" - }, - "peerDependencies": { - "@mongodb-js/compass-components": "^1.21.2", - "@mongodb-js/compass-editor": "^0.20.2", + "mongodb": "^6.8.0", + "mongodb-build-info": "^1.7.2", + "mongodb-connection-string-url": "^3.0.1", + "mongodb-data-service": "^22.23.4", + "mongodb-query-parser": "^4.2.3", "react": "^17.0.2" } }, "node_modules/@mongodb-js/connection-form/node_modules/@mongodb-js/connection-info": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/@mongodb-js/connection-info/-/connection-info-0.1.5.tgz", - "integrity": "sha512-KyxR+1xvJk3ElOEokej+Gh39lN1oknlBwJgbbN7R1p2qVy5DwCFykUNZhTszvGSuczLs4f9dWM8ODPrXoghPQg==", + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@mongodb-js/connection-info/-/connection-info-0.9.0.tgz", + "integrity": "sha512-mB2JQVXPWafPQSofv9K6euZM398D+NFGGiKDyVoG357hdWf3Qq/Vm4MpP6me0QhLPo+xqMavTV6hNnidrfRdSw==", "license": "SSPL", "dependencies": { - "bson": "^6.3.0", "lodash": "^4.17.21", - "mongodb-connection-string-url": "^2.6.0" - } - }, - "node_modules/@mongodb-js/connection-form/node_modules/@types/whatwg-url": { - "version": "8.2.2", - "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-8.2.2.tgz", - "integrity": "sha512-FtQu10RWgn3D9U4aazdwIE2yzphmTJREDqNdODHrbrZmmMqI0vMheC/6NE/J1Yveaj8H+ela+YwWTjq5PGmuhA==", - "dependencies": { - "@types/node": "*", - "@types/webidl-conversions": "*" - } - }, - "node_modules/@mongodb-js/connection-form/node_modules/mongodb-connection-string-url": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-2.6.0.tgz", - "integrity": "sha512-WvTZlI9ab0QYtTYnuMLgobULWhokRjtC7db9LtcVfJ+Hsnyr5eo6ZtNAt3Ly24XZScGMelOcGtm7lSn0332tPQ==", - "dependencies": { - "@types/whatwg-url": "^8.2.1", - "whatwg-url": "^11.0.0" - } - }, - "node_modules/@mongodb-js/connection-form/node_modules/tr46": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz", - "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==", - "dependencies": { - "punycode": "^2.1.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@mongodb-js/connection-form/node_modules/whatwg-url": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz", - "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==", - "dependencies": { - "tr46": "^3.0.0", - "webidl-conversions": "^7.0.0" - }, - "engines": { - "node": ">=12" + "mongodb": "^6.8.0", + "mongodb-connection-string-url": "^3.0.1", + "mongodb-data-service": "^22.23.4" } }, "node_modules/@mongodb-js/connection-info": { @@ -4056,9 +4021,9 @@ } }, "node_modules/@mongodb-js/shell-bson-parser": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@mongodb-js/shell-bson-parser/-/shell-bson-parser-1.1.1.tgz", - "integrity": "sha512-MqFWxo3D1S4lpxPR+IOi0CahRQiwrCH0OiCYBA16Y5VojtWENs2Kq8hqxor2V3ZJhTHqpfJFs2858DAcAYdSeA==", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@mongodb-js/shell-bson-parser/-/shell-bson-parser-1.1.3.tgz", + "integrity": "sha512-WdUrL+m/JRk+e8ew2+jR62YRN4ICDRbaIZwHmM7tIdrbvA7LFDssFg9tmr7Wj3CO9ITY7XSlwq4ZVi/xNA0dtA==", "license": "Apache-2.0", "dependencies": { "acorn": "^8.1.0" @@ -4598,21 +4563,6 @@ "resolved": "https://registry.npmjs.org/@reach/observe-rect/-/observe-rect-1.2.0.tgz", "integrity": "sha512-Ba7HmkFgfQxZqqaeIWWkNK0rEhpxVQHIoVyW1YDSkGsGIXzcaW4deC8B0pZrNSSyLTdIk7y+5olKt5+g0GmFIQ==" }, - "node_modules/@react-aria/focus": { - "version": "3.15.0", - "resolved": "https://registry.npmjs.org/@react-aria/focus/-/focus-3.15.0.tgz", - "integrity": "sha512-nnxRyfqHuAjRwdQ4BpQyZPtGFKZmRU6cnaIb3pqWFCqEyJQensV7MA3TJ4Jhadq67cy1Ji5SYSlr1duBwjoYvw==", - "dependencies": { - "@react-aria/interactions": "^3.20.0", - "@react-aria/utils": "^3.22.0", - "@react-types/shared": "^3.22.0", - "@swc/helpers": "^0.5.0", - "clsx": "^1.1.1" - }, - "peerDependencies": { - "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" - } - }, "node_modules/@react-aria/interactions": { "version": "3.20.0", "resolved": "https://registry.npmjs.org/@react-aria/interactions/-/interactions-3.20.0.tgz", @@ -4641,23 +4591,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-aria/tooltip": { - "version": "3.6.5", - "resolved": "https://registry.npmjs.org/@react-aria/tooltip/-/tooltip-3.6.5.tgz", - "integrity": "sha512-hXw4Z8nYLOWz3QOQ807wWZdvDwR3gofsmZhAehg2HPRwdRfCQK+1cjVKeUd9cKCAxs0Cay7dV0oUdilLbCQ2Gg==", - "dependencies": { - "@react-aria/focus": "^3.15.0", - "@react-aria/interactions": "^3.20.0", - "@react-aria/utils": "^3.22.0", - "@react-stately/tooltip": "^3.4.6", - "@react-types/shared": "^3.22.0", - "@react-types/tooltip": "^3.4.6", - "@swc/helpers": "^0.5.0" - }, - "peerDependencies": { - "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" - } - }, "node_modules/@react-aria/utils": { "version": "3.22.0", "resolved": "https://registry.npmjs.org/@react-aria/utils/-/utils-3.22.0.tgz", @@ -4687,32 +4620,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-stately/overlays": { - "version": "3.6.4", - "resolved": "https://registry.npmjs.org/@react-stately/overlays/-/overlays-3.6.4.tgz", - "integrity": "sha512-tHEaoAGpE9dSnsskqLPVKum59yGteoSqsniTopodM+miQozbpPlSjdiQnzGLroy5Afx5OZYClE616muNHUILXA==", - "dependencies": { - "@react-stately/utils": "^3.9.0", - "@react-types/overlays": "^3.8.4", - "@swc/helpers": "^0.5.0" - }, - "peerDependencies": { - "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" - } - }, - "node_modules/@react-stately/tooltip": { - "version": "3.4.6", - "resolved": "https://registry.npmjs.org/@react-stately/tooltip/-/tooltip-3.4.6.tgz", - "integrity": "sha512-uL93bmsXf+OOgpKLPEKfpDH4z+MK2CuqlqVxx7rshN0vjWOSoezE5nzwgee90+RpDrLNNNWTNa7n+NkDRpI1jA==", - "dependencies": { - "@react-stately/overlays": "^3.6.4", - "@react-types/tooltip": "^3.4.6", - "@swc/helpers": "^0.5.0" - }, - "peerDependencies": { - "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" - } - }, "node_modules/@react-stately/utils": { "version": "3.9.0", "resolved": "https://registry.npmjs.org/@react-stately/utils/-/utils-3.9.0.tgz", @@ -4724,17 +4631,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-types/overlays": { - "version": "3.8.4", - "resolved": "https://registry.npmjs.org/@react-types/overlays/-/overlays-3.8.4.tgz", - "integrity": "sha512-pfgNlQnbF6RB/R2oSxyqAP3Uzz0xE/k5q4n5gUeCDNLjY5qxFHGE8xniZZ503nZYw6VBa9XMN1efDOKQyeiO0w==", - "dependencies": { - "@react-types/shared": "^3.22.0" - }, - "peerDependencies": { - "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" - } - }, "node_modules/@react-types/shared": { "version": "3.22.0", "resolved": "https://registry.npmjs.org/@react-types/shared/-/shared-3.22.0.tgz", @@ -4743,18 +4639,6 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" } }, - "node_modules/@react-types/tooltip": { - "version": "3.4.6", - "resolved": "https://registry.npmjs.org/@react-types/tooltip/-/tooltip-3.4.6.tgz", - "integrity": "sha512-RaZewdER7ZcsNL99RhVHs8kSLyzIBkwc0W6eFZrxST2MD9J5GzkVWRhIiqtFOd5U1aYnxdJ6woq72Ef+le6Vfw==", - "dependencies": { - "@react-types/overlays": "^3.8.4", - "@react-types/shared": "^3.22.0" - }, - "peerDependencies": { - "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" - } - }, "node_modules/@segment/analytics-core": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/@segment/analytics-core/-/analytics-core-1.4.1.tgz", @@ -5552,34 +5436,6 @@ "react-dom": "^18.0.0" } }, - "node_modules/@testing-library/react-hooks": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@testing-library/react-hooks/-/react-hooks-7.0.2.tgz", - "integrity": "sha512-dYxpz8u9m4q1TuzfcUApqi8iFfR6R0FaMbr2hjZJy1uC8z+bO/K4v8Gs9eogGKYQop7QsrBTFkv/BCF7MzD2Cg==", - "dependencies": { - "@babel/runtime": "^7.12.5", - "@types/react": ">=16.9.0", - "@types/react-dom": ">=16.9.0", - "@types/react-test-renderer": ">=16.9.0", - "react-error-boundary": "^3.1.0" - }, - "engines": { - "node": ">=12" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0", - "react-test-renderer": ">=16.9.0" - }, - "peerDependenciesMeta": { - "react-dom": { - "optional": true - }, - "react-test-renderer": { - "optional": true - } - } - }, "node_modules/@testing-library/react/node_modules/@testing-library/dom": { "version": "9.3.4", "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-9.3.4.tgz", @@ -5889,6 +5745,7 @@ "version": "17.0.25", "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-17.0.25.tgz", "integrity": "sha512-urx7A7UxkZQmThYA4So0NelOVjx3V4rNFVJwp0WZlbIK5eM4rNJDiN3R/E9ix0MBh6kAEojk/9YL+Te6D9zHNA==", + "devOptional": true, "dependencies": { "@types/react": "^17" } @@ -5901,14 +5758,6 @@ "@types/react": "*" } }, - "node_modules/@types/react-test-renderer": { - "version": "18.0.7", - "resolved": "https://registry.npmjs.org/@types/react-test-renderer/-/react-test-renderer-18.0.7.tgz", - "integrity": "sha512-1+ANPOWc6rB3IkSnElhjv6VLlKg2dSv/OWClUyZimbLsQyBn8Js9Vtdsi3UICJ2rIQ3k2la06dkB+C92QfhKmg==", - "dependencies": { - "@types/react": "*" - } - }, "node_modules/@types/react-transition-group": { "version": "4.4.10", "resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.10.tgz", @@ -8582,7 +8431,8 @@ "node_modules/crelt": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/crelt/-/crelt-1.0.6.tgz", - "integrity": "sha512-VQ2MBenTq1fWZUH9DJNGti7kKv6EeAuYr3cLwxUWhIu1baTaXh4Ib5W2CqHVqib4/MqbYGJqiL3Zb8GJZr3l4g==" + "integrity": "sha512-VQ2MBenTq1fWZUH9DJNGti7kKv6EeAuYr3cLwxUWhIu1baTaXh4Ib5W2CqHVqib4/MqbYGJqiL3Zb8GJZr3l4g==", + "license": "MIT" }, "node_modules/cross-env": { "version": "7.0.3", @@ -12213,9 +12063,10 @@ } }, "node_modules/hadron-document": { - "version": "8.5.4", - "resolved": "https://registry.npmjs.org/hadron-document/-/hadron-document-8.5.4.tgz", - "integrity": "sha512-ZKgrBFAdHs21emLfJX5ZPLwAjSx7XrS9805IOHvex11UP3sdhz5G01pFwhY+FsUVUADWFbbCfW//Un7iJTUBlQ==", + "version": "8.6.3", + "resolved": "https://registry.npmjs.org/hadron-document/-/hadron-document-8.6.3.tgz", + "integrity": "sha512-r8UjIDlBEneQRXD+YiOfuqjPzzaI36jQOkiwcEAR/RDvMEThgUGgSmhjUzdheXY/DRkndvi2ZDCh31tM9TbvvQ==", + "license": "SSPL", "dependencies": { "bson": "^6.7.0", "eventemitter3": "^4.0.0", @@ -12238,6 +12089,7 @@ "version": "7.2.2", "resolved": "https://registry.npmjs.org/hadron-type-checker/-/hadron-type-checker-7.2.2.tgz", "integrity": "sha512-3Etm6trKNi+/xZdsoRJqrRrHMhadOeu1esZr53QvR8ZlZHmZrdbyLjeKHdFITBonk1WBHLSszuBagjXwKwRmJA==", + "license": "SSPL", "dependencies": { "bson": "^6.7.0", "lodash": "^4.17.21" @@ -15032,15 +14884,18 @@ "integrity": "sha512-gYJjEYG4v4a1WSXgUf81OBoBRlj+Z1SlnQVO392fC/4a1CN7CLWDITajZWPFTPh/yRozYk6sHHtZwZmQhodBEA==" }, "node_modules/mongodb-query-parser": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/mongodb-query-parser/-/mongodb-query-parser-4.2.2.tgz", - "integrity": "sha512-G97DZawo9f6uTdqIcTR+79sL7cPNS4AHNIGFEyzaWlAo/6bRI2Ihd3f/fZgtrzgCgWl0CgKE9S5eywXSpuaggQ==", + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/mongodb-query-parser/-/mongodb-query-parser-4.2.5.tgz", + "integrity": "sha512-K2+8bMlNCSn8JpXrbARkIB2lM8yOBo7yCR7PBgdnHnp0T2ELOsT+qBzOFTDIEVAJxY5Jc2ifJ1fne0Lqp2wzeQ==", "license": "Apache-2.0", "dependencies": { - "@mongodb-js/shell-bson-parser": "^1.1.1", + "@mongodb-js/shell-bson-parser": "^1.1.3", "debug": "^4.3.4", "javascript-stringify": "^2.1.0", "lodash": "^4.17.21" + }, + "peerDependencies": { + "bson": "^4.6.3 || ^5 || ^6" } }, "node_modules/mongodb-rag-core": { @@ -17154,21 +17009,6 @@ "loose-envify": "^1.1.0" } }, - "node_modules/react-error-boundary": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/react-error-boundary/-/react-error-boundary-3.1.4.tgz", - "integrity": "sha512-uM9uPzZJTF6wRQORmSrvOIgt4lJ9MC1sNgEOj2XGsDTRE4kmpWxg7ENK9EWNKJRMAOY9z0MuF4yIfl6gp4sotA==", - "dependencies": { - "@babel/runtime": "^7.12.5" - }, - "engines": { - "node": ">=10", - "npm": ">=6" - }, - "peerDependencies": { - "react": ">=16.13.1" - } - }, "node_modules/react-hotkeys-hook": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/react-hotkeys-hook/-/react-hotkeys-hook-4.4.1.tgz", @@ -17207,36 +17047,6 @@ "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" }, - "node_modules/react-shallow-renderer": { - "version": "16.15.0", - "resolved": "https://registry.npmjs.org/react-shallow-renderer/-/react-shallow-renderer-16.15.0.tgz", - "integrity": "sha512-oScf2FqQ9LFVQgA73vr86xl2NaOIX73rh+YFqcOp68CWj56tSfgtGKrEbyhCj0rSijyG9M1CYprTh39fBi5hzA==", - "optional": true, - "peer": true, - "dependencies": { - "object-assign": "^4.1.1", - "react-is": "^16.12.0 || ^17.0.0 || ^18.0.0" - }, - "peerDependencies": { - "react": "^16.0.0 || ^17.0.0 || ^18.0.0" - } - }, - "node_modules/react-test-renderer": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react-test-renderer/-/react-test-renderer-17.0.2.tgz", - "integrity": "sha512-yaQ9cB89c17PUb0x6UfWRs7kQCorVdHlutU1boVPEsB8IDZH6n9tHxMacc3y0JoXOJUsZb/t/Mb8FUWMKaM7iQ==", - "optional": true, - "peer": true, - "dependencies": { - "object-assign": "^4.1.1", - "react-is": "^17.0.2", - "react-shallow-renderer": "^16.13.1", - "scheduler": "^0.20.2" - }, - "peerDependencies": { - "react": "17.0.2" - } - }, "node_modules/react-transition-group": { "version": "4.4.5", "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.5.tgz", @@ -17266,6 +17076,16 @@ "react": "^16.6.3 || ^17.0.0" } }, + "node_modules/react-virtualized-auto-sizer": { + "version": "1.0.24", + "resolved": "https://registry.npmjs.org/react-virtualized-auto-sizer/-/react-virtualized-auto-sizer-1.0.24.tgz", + "integrity": "sha512-3kCn7N9NEb3FlvJrSHWGQ4iVl+ydQObq2fHMn12i5wbtm74zHOPhz/i64OL3c1S1vi9i2GXtZqNqUJTQ+BnNfg==", + "license": "MIT", + "peerDependencies": { + "react": "^15.3.0 || ^16.0.0-alpha || ^17.0.0 || ^18.0.0", + "react-dom": "^15.3.0 || ^16.0.0-alpha || ^17.0.0 || ^18.0.0" + } + }, "node_modules/react-window": { "version": "1.8.10", "resolved": "https://registry.npmjs.org/react-window/-/react-window-1.8.10.tgz", @@ -17795,17 +17615,6 @@ "node": ">=v12.22.7" } }, - "node_modules/scheduler": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.20.2.tgz", - "integrity": "sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==", - "optional": true, - "peer": true, - "dependencies": { - "loose-envify": "^1.1.0", - "object-assign": "^4.1.1" - } - }, "node_modules/schema-utils": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", @@ -18840,9 +18649,10 @@ "license": "MIT" }, "node_modules/style-mod": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/style-mod/-/style-mod-4.1.0.tgz", - "integrity": "sha512-Ca5ib8HrFn+f+0n4N4ScTIA9iTOQ7MaGS1ylHcoVqW9J7w2w8PzN6g9gKmTYgGEBH8e120+RCmhpje6jC5uGWA==" + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/style-mod/-/style-mod-4.1.2.tgz", + "integrity": "sha512-wnD1HyVqpJUI2+eKZ+eo1UwghftP6yuFheBqqe+bWCotBjC2K1YnteJILRMs3SM4V/0dLEW1SC27MWP5y+mwmw==", + "license": "MIT" }, "node_modules/stylis": { "version": "4.2.0", @@ -20020,7 +19830,8 @@ "node_modules/w3c-keyname": { "version": "2.2.8", "resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.8.tgz", - "integrity": "sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==" + "integrity": "sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==", + "license": "MIT" }, "node_modules/w3c-xmlserializer": { "version": "5.0.0", diff --git a/package.json b/package.json index 676b80694..8da16ef7f 100644 --- a/package.json +++ b/package.json @@ -1182,7 +1182,7 @@ "@babel/parser": "^7.24.6", "@babel/traverse": "^7.24.6", "@mongodb-js/compass-components": "^1.25.0", - "@mongodb-js/connection-form": "^1.22.2", + "@mongodb-js/connection-form": "^1.41.0", "@mongodb-js/connection-info": "^0.7.0", "@mongodb-js/mongodb-constants": "^0.10.2", "@mongosh/browser-runtime-electron": "^2.3.0", diff --git a/src/views/webview-app/connection-form.tsx b/src/views/webview-app/connection-form.tsx index 90063bbcf..638e1deb8 100644 --- a/src/views/webview-app/connection-form.tsx +++ b/src/views/webview-app/connection-form.tsx @@ -1,5 +1,4 @@ import React from 'react'; -import type { ComponentProps } from 'react'; import CompassConnectionForm from '@mongodb-js/connection-form'; import { CancelLoader, @@ -90,23 +89,20 @@ const ConnectionForm: React.FunctionComponent<