[web] Use EditorView.scrollIntoView in CodeMirror 6 (#6212)

GitOrigin-RevId: df2cc5c6f671d157c28a76711f3790f23073b6cb
This commit is contained in:
Alf Eaton 2022-01-11 09:18:35 +00:00 committed by Copybot
parent d1e3ce8225
commit 7288c05075
2 changed files with 40 additions and 40 deletions

View file

@ -4736,15 +4736,15 @@
}
},
"@codemirror/commands": {
"version": "0.19.5",
"resolved": "https://registry.npmjs.org/@codemirror/commands/-/commands-0.19.5.tgz",
"integrity": "sha512-8PZOtx7d/GbKhFYA88zs2wINDtaUgj3pEjLYScKTd/Vsyw8qOp86tJQQNnMFTRZj/ISQl9Lbg3aAmHvroMqspw==",
"version": "0.19.6",
"resolved": "https://registry.npmjs.org/@codemirror/commands/-/commands-0.19.6.tgz",
"integrity": "sha512-Mjc3ZfTifOn0h5499xI3MfCVIZvO2I0ochgzxfRtPOFwfXX/k7HTgnK0/KzuGDINyxUVeDaFCkf53TyyWjdxMQ==",
"requires": {
"@codemirror/language": "^0.19.0",
"@codemirror/matchbrackets": "^0.19.0",
"@codemirror/state": "^0.19.2",
"@codemirror/text": "^0.19.0",
"@codemirror/view": "^0.19.0",
"@codemirror/view": "^0.19.22",
"@lezer/common": "^0.15.0"
}
},
@ -4815,9 +4815,9 @@
}
},
"@codemirror/lang-html": {
"version": "0.19.3",
"resolved": "https://registry.npmjs.org/@codemirror/lang-html/-/lang-html-0.19.3.tgz",
"integrity": "sha512-QlZN8VhQ+vlOpDMbcfXcG3HiiNeklAfIYnKonPM902SM3nJc4rJ66X9O8mzy0TUDBmew9zaYDubvQcqw7rc5Bg==",
"version": "0.19.4",
"resolved": "https://registry.npmjs.org/@codemirror/lang-html/-/lang-html-0.19.4.tgz",
"integrity": "sha512-GpiEikNuCBeFnS+/TJSeanwqaOfNm8Kkp9WpVNEPZCLyW1mAMCuFJu/3xlWYeWc778Hc3vJqGn3bn+cLNubgCA==",
"requires": {
"@codemirror/autocomplete": "^0.19.0",
"@codemirror/highlight": "^0.19.6",
@ -4830,9 +4830,9 @@
}
},
"@codemirror/lang-javascript": {
"version": "0.19.2",
"resolved": "https://registry.npmjs.org/@codemirror/lang-javascript/-/lang-javascript-0.19.2.tgz",
"integrity": "sha512-qNFjCSTWOTZ/KusoVx3CxjmNS37DrhVoVO9E1IkrIMVC3tkk8Hs2eA6HNMxT4VGp5O+0yBmf1DE2o5QQSMs0jg==",
"version": "0.19.3",
"resolved": "https://registry.npmjs.org/@codemirror/lang-javascript/-/lang-javascript-0.19.3.tgz",
"integrity": "sha512-2NE5z98Nz9Rv4OS5UtgehCSnyQjac+P85+evzy1D/4wllp/EPaHIEEtSP1daBvrLy49SdI/9vES3ZJu6rSv4/w==",
"requires": {
"@codemirror/autocomplete": "^0.19.0",
"@codemirror/highlight": "^0.19.6",
@ -4840,18 +4840,18 @@
"@codemirror/lint": "^0.19.0",
"@codemirror/state": "^0.19.0",
"@codemirror/view": "^0.19.0",
"@lezer/javascript": "^0.15.0"
"@lezer/javascript": "^0.15.1"
}
},
"@codemirror/lang-markdown": {
"version": "0.19.2",
"resolved": "https://registry.npmjs.org/@codemirror/lang-markdown/-/lang-markdown-0.19.2.tgz",
"integrity": "sha512-LFzY5TEPmKEBe9ABpG7XujW5pXZwyreunsROOwxewsri0XpupKj3WDfM8U7RwgM0aVc2pXP1u7R1C2MdQPOwPQ==",
"version": "0.19.3",
"resolved": "https://registry.npmjs.org/@codemirror/lang-markdown/-/lang-markdown-0.19.3.tgz",
"integrity": "sha512-kCLn5yKNOscCnCrJ03HiH3fHQE67E5cSG9+WhTOjIUMwxWTSo47AzorMAG/N5Ty37jP9Wd+fOSTCNU/A9Dq8yQ==",
"requires": {
"@codemirror/highlight": "^0.19.0",
"@codemirror/lang-html": "^0.19.0",
"@codemirror/language": "^0.19.0",
"@codemirror/state": "^0.19.0",
"@codemirror/state": "^0.19.3",
"@codemirror/view": "^0.19.0",
"@lezer/common": "^0.15.0",
"@lezer/markdown": "^0.15.0"
@ -4912,9 +4912,9 @@
}
},
"@codemirror/rangeset": {
"version": "0.19.2",
"resolved": "https://registry.npmjs.org/@codemirror/rangeset/-/rangeset-0.19.2.tgz",
"integrity": "sha512-5d+X8LtmeZtfFtKrSx57bIHRUpKv2HD0b74clp4fGA7qJLLfYehF6FGkJJxJb8lKsqAga1gdjjWr0jiypmIxoQ==",
"version": "0.19.5",
"resolved": "https://registry.npmjs.org/@codemirror/rangeset/-/rangeset-0.19.5.tgz",
"integrity": "sha512-L3b+RIwIRKOJ3pJLOtpkxCUjGnxZKFyPb0CjYWKnVLuzEIaEExWWK7sp6rsejxOy8RjYzfCHlFhYB4UdQN7brw==",
"requires": {
"@codemirror/state": "^0.19.0"
}
@ -4930,9 +4930,9 @@
}
},
"@codemirror/search": {
"version": "0.19.4",
"resolved": "https://registry.npmjs.org/@codemirror/search/-/search-0.19.4.tgz",
"integrity": "sha512-Oogbi/Ep7suM3Q6eCeRdaPBHyJtuFnYo287H9uXwrbS7nCCoqYBy272tUt0OMt3GhJ3yK0/g+XMDveb+HVKRtA==",
"version": "0.19.5",
"resolved": "https://registry.npmjs.org/@codemirror/search/-/search-0.19.5.tgz",
"integrity": "sha512-9kbtCBpMDlzcj7AptMRBx9BZpC5wz+/tG8nIe4vdpOszP08ZY2AcxN5nlhCoUSZu+pd0b6fYiwjLXOf000rRpw==",
"requires": {
"@codemirror/panel": "^0.19.0",
"@codemirror/rangeset": "^0.19.0",
@ -4951,9 +4951,9 @@
}
},
"@codemirror/stream-parser": {
"version": "0.19.2",
"resolved": "https://registry.npmjs.org/@codemirror/stream-parser/-/stream-parser-0.19.2.tgz",
"integrity": "sha512-hBKRQlyu8GUOrY33xZ6/1kAfNZ8ZUm6cX9a7mPx8zAAqnpz/fpksC/qJRrkg1mPMBwxm+JG4fqAwDGJ3gLVniQ==",
"version": "0.19.3",
"resolved": "https://registry.npmjs.org/@codemirror/stream-parser/-/stream-parser-0.19.3.tgz",
"integrity": "sha512-9fV6GgcZSLVvvPCd/SUt00G/Sqt91r0ojEQsgH7koWn4McTFvSujhOs0LHJlQGQRazuuWW1j3eqrv19+E9t40g==",
"requires": {
"@codemirror/highlight": "^0.19.0",
"@codemirror/language": "^0.19.0",
@ -4978,11 +4978,11 @@
}
},
"@codemirror/view": {
"version": "0.19.28",
"resolved": "https://registry.npmjs.org/@codemirror/view/-/view-0.19.28.tgz",
"integrity": "sha512-GsUC+or1uJAhy6QaRDaAK7MwQ4JqZsjDv3A3zzWhELP5I/V+qNBY5RmaMNwsM5kNJOKrGf9pVigJocFI5kiPzg==",
"version": "0.19.37",
"resolved": "https://registry.npmjs.org/@codemirror/view/-/view-0.19.37.tgz",
"integrity": "sha512-SLuLx9p0O1ZHXLehvl5MwSvUrQRcsNGemzTgJ0zRajmc3BBsNigI1PXxdo7tvBhO5DcAzRRBXoke9DZFUR6Qqg==",
"requires": {
"@codemirror/rangeset": "^0.19.0",
"@codemirror/rangeset": "^0.19.5",
"@codemirror/state": "^0.19.3",
"@codemirror/text": "^0.19.0",
"style-mod": "^4.0.0",
@ -6160,9 +6160,9 @@
}
},
"@lezer/javascript": {
"version": "0.15.0",
"resolved": "https://registry.npmjs.org/@lezer/javascript/-/javascript-0.15.0.tgz",
"integrity": "sha512-euFjbbyYmxpBls9FyBAKnGLEjaMFqfHvhfueA7M1PitZdieHu8KSblutmcwjpWKIV4eH4uElMZO2cPVe0aFxXA==",
"version": "0.15.2",
"resolved": "https://registry.npmjs.org/@lezer/javascript/-/javascript-0.15.2.tgz",
"integrity": "sha512-ytWvdJ1NAc0pfrNipGQs8otJVfjVibpIiFKH0fl99rKSA6cVlyQN/XTj/dEAQCfBfCBPAFdc30cuUe5CGZ0odA==",
"requires": {
"@lezer/lr": "^0.15.0"
}
@ -6176,9 +6176,9 @@
}
},
"@lezer/markdown": {
"version": "0.15.1",
"resolved": "https://registry.npmjs.org/@lezer/markdown/-/markdown-0.15.1.tgz",
"integrity": "sha512-CV8UQv5sfXj3eKjWVI23JUg2l7eBMV2B4tfbPoXGImzl6Yh0u2PEyTkcKaRw5fVNWZMGs6a4MOwxZ4vfvR5M0w==",
"version": "0.15.3",
"resolved": "https://registry.npmjs.org/@lezer/markdown/-/markdown-0.15.3.tgz",
"integrity": "sha512-Wq9WGO5l4cnRKtJVDuJZtP3YZgCGpeexBhIvzvm4bmSmqqVMMWk+PUu8vX5KejT16wV1iV73EKn4/P/+lUFcFA==",
"requires": {
"@lezer/common": "^0.15.0"
}

View file

@ -49,24 +49,24 @@
"@babel/preset-react": "^7.14.5",
"@codemirror/autocomplete": "^0.19.9",
"@codemirror/closebrackets": "^0.19.0",
"@codemirror/commands": "^0.19.5",
"@codemirror/commands": "^0.19.6",
"@codemirror/comment": "^0.19.0",
"@codemirror/fold": "^0.19.2",
"@codemirror/gutter": "^0.19.9",
"@codemirror/highlight": "^0.19.6",
"@codemirror/history": "^0.19.0",
"@codemirror/lang-markdown": "^0.19.2",
"@codemirror/lang-markdown": "^0.19.3",
"@codemirror/language": "^0.19.7",
"@codemirror/legacy-modes": "^0.19.0",
"@codemirror/lint": "^0.19.3",
"@codemirror/matchbrackets": "^0.19.3",
"@codemirror/rangeset": "^0.19.2",
"@codemirror/rangeset": "^0.19.5",
"@codemirror/rectangular-selection": "^0.19.1",
"@codemirror/search": "^0.19.4",
"@codemirror/search": "^0.19.5",
"@codemirror/state": "^0.19.6",
"@codemirror/stream-parser": "^0.19.2",
"@codemirror/stream-parser": "^0.19.3",
"@codemirror/tooltip": "^0.19.10",
"@codemirror/view": "^0.19.27",
"@codemirror/view": "^0.19.37",
"@overleaf/logger": "^3.1.0",
"@overleaf/metrics": "^4.0.0",
"@overleaf/o-error": "^3.3.1",