Avoid scrolling the match into view when opening the search panel (#9164)

GitOrigin-RevId: 385537d87e0a7413098c606c81b81787aec77eac
This commit is contained in:
Alf Eaton 2022-08-19 09:49:05 +01:00 committed by Copybot
parent 60bfd92721
commit faef8f3247
2 changed files with 84 additions and 84 deletions

152
package-lock.json generated
View file

@ -2509,9 +2509,9 @@
"dev": true
},
"node_modules/@codemirror/autocomplete": {
"version": "6.0.4",
"resolved": "https://registry.npmjs.org/@codemirror/autocomplete/-/autocomplete-6.0.4.tgz",
"integrity": "sha512-uP7UodCRykPNwSAN+wYa/AS9gJI/V47echCAXUYgCgBXy3l19nwO7W/d29COtG/dfAsjBOhMDeh3Ms8Y5VZbrA==",
"version": "6.1.0",
"resolved": "https://registry.npmjs.org/@codemirror/autocomplete/-/autocomplete-6.1.0.tgz",
"integrity": "sha512-wtO4O5WDyXhhCd4q4utDIDZxnQfmJ++3dGBCG9LMtI79+92OcA1DVk/n7BEupKmjIr8AzvptDz7YQ9ud6OkU+A==",
"dependencies": {
"@codemirror/language": "^6.0.0",
"@codemirror/state": "^6.0.0",
@ -2576,9 +2576,9 @@
}
},
"node_modules/@codemirror/lang-markdown": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/@codemirror/lang-markdown/-/lang-markdown-6.0.0.tgz",
"integrity": "sha512-ozJaO1W4WgGlwWOoYCSYzbVhhM0YM/4lAWLrNsBbmhh5Ztpl0qm4CgEQRl3t8/YcylTZYBIXiskui8sHNGd4dg==",
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/@codemirror/lang-markdown/-/lang-markdown-6.0.1.tgz",
"integrity": "sha512-pHPQuRwf9cUrmkmsTHRjtS9ZnGu3fA9YzAdh2++d+L9wbfnC2XbKh0Xvm/0YiUjdCnoCx9wDFEoCuAnkqKWLIw==",
"dependencies": {
"@codemirror/lang-html": "^6.0.0",
"@codemirror/language": "^6.0.0",
@ -2589,9 +2589,9 @@
}
},
"node_modules/@codemirror/language": {
"version": "6.2.0",
"resolved": "https://registry.npmjs.org/@codemirror/language/-/language-6.2.0.tgz",
"integrity": "sha512-tabB0Ef/BflwoEmTB4a//WZ9P90UQyne9qWB9YFsmeS4bnEqSys7UpGk/da1URMXhyfuzWCwp+AQNMhvu8SfnA==",
"version": "6.2.1",
"resolved": "https://registry.npmjs.org/@codemirror/language/-/language-6.2.1.tgz",
"integrity": "sha512-MC3svxuvIj0MRpFlGHxLS6vPyIdbTr2KKPEW46kCoCXw2ktb4NTkpkPBI/lSP/FoNXLCBJ0mrnUi1OoZxtpW1Q==",
"dependencies": {
"@codemirror/state": "^6.0.0",
"@codemirror/view": "^6.0.0",
@ -2612,9 +2612,9 @@
}
},
"node_modules/@codemirror/search": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/@codemirror/search/-/search-6.0.0.tgz",
"integrity": "sha512-rL0rd3AhI0TAsaJPUaEwC63KHLO7KL0Z/dYozXj6E7L3wNHRyx7RfE0/j5HsIf912EE5n2PCb4Vg0rGYmDv4UQ==",
"version": "6.1.0",
"resolved": "https://registry.npmjs.org/@codemirror/search/-/search-6.1.0.tgz",
"integrity": "sha512-ye6m0jFHSgQ4qnfWVwArvm7XrCMNppMYnL5f4M0WdBScslnckomf5eVacYCw8P0UBWeq72lCSXA0/eo1piZxLA==",
"dependencies": {
"@codemirror/state": "^6.0.0",
"@codemirror/view": "^6.0.0",
@ -2622,14 +2622,14 @@
}
},
"node_modules/@codemirror/state": {
"version": "6.1.0",
"resolved": "https://registry.npmjs.org/@codemirror/state/-/state-6.1.0.tgz",
"integrity": "sha512-qbUr94DZTe6/V1VS7LDLz11rM/1t/nJxR1El4I6UaxDEdc0aZZvq6JCLJWiRmUf95NRAnDH6fhXn+PWp9wGCIg=="
"version": "6.1.1",
"resolved": "https://registry.npmjs.org/@codemirror/state/-/state-6.1.1.tgz",
"integrity": "sha512-2s+aXsxmAwnR3Rd+JDHPG/1lw0YsA9PEwl7Re88gHJHGfxyfEzKBmsN4rr53RyPIR4lzbbhJX0DCq0WlqlBIRw=="
},
"node_modules/@codemirror/view": {
"version": "6.0.3",
"resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.0.3.tgz",
"integrity": "sha512-1gDBymhbx2DZzwnR/rNUu1LiQqjxBJtFiB+4uLR6tHQ6vKhTIwUsP5uZUQ7SM7JxVx3UihMynnTqjcsC+mczZg==",
"version": "6.2.0",
"resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.2.0.tgz",
"integrity": "sha512-3emW1symh+GoteFMBPsltjmF790U/trouLILATh3JodbF/z98HvcQh2g3+H6dfNIHx16uNonsAF4mNzVr1TJNA==",
"dependencies": {
"@codemirror/state": "^6.0.0",
"style-mod": "^4.0.0",
@ -3872,9 +3872,9 @@
}
},
"node_modules/@lezer/lr": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/@lezer/lr/-/lr-1.2.0.tgz",
"integrity": "sha512-TgEpfm9br2SX8JwtwKT8HsQZKuFkLRg6g+IRxObk9nVKQLKnkP3oMh+QGcTBL9GQsfQ2ADtKPbj2iGSMf3ytiA==",
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/@lezer/lr/-/lr-1.2.3.tgz",
"integrity": "sha512-qpB7rBzH8f6Mzjv2AVZRahcm+2Cf7nbIH++uXbvVOL1yIRvVWQ3HAM/saeBLCyz/togB7LGo76qdJYL1uKQlqA==",
"dependencies": {
"@lezer/common": "^1.0.0"
}
@ -4664,6 +4664,18 @@
"@codemirror/view": "^6.0.3"
}
},
"node_modules/@replit/codemirror-vim": {
"version": "6.0.2",
"resolved": "https://registry.npmjs.org/@replit/codemirror-vim/-/codemirror-vim-6.0.2.tgz",
"integrity": "sha512-NbtrSJcb2b0SXBLGFeUeUhMLaP15dvd/srngghmpN8H0g9NgNaoU86NUYAtCzHzB1pIipE0qbUEDyz8/dM3uMA==",
"peerDependencies": {
"@codemirror/commands": "^6.0.0",
"@codemirror/language": "^6.1.0",
"@codemirror/search": "^6.0.0",
"@codemirror/state": "^6.0.1",
"@codemirror/view": "^6.0.3"
}
},
"node_modules/@sentry/browser": {
"version": "7.8.1",
"resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-7.8.1.tgz",
@ -34667,17 +34679,17 @@
"@babel/preset-env": "^7.14.5",
"@babel/preset-react": "^7.14.5",
"@babel/preset-typescript": "^7.16.0",
"@codemirror/autocomplete": "^6.0.4",
"@codemirror/autocomplete": "^6.1.0",
"@codemirror/commands": "^6.0.1",
"@codemirror/lang-markdown": "^6.0.0",
"@codemirror/language": "^6.2.0",
"@codemirror/lang-markdown": "^6.0.1",
"@codemirror/language": "^6.2.1",
"@codemirror/lint": "^6.0.0",
"@codemirror/search": "^6.0.0",
"@codemirror/state": "^6.1.0",
"@codemirror/view": "^6.0.3",
"@codemirror/search": "^6.1.0",
"@codemirror/state": "^6.1.1",
"@codemirror/view": "^6.1.0",
"@lezer/common": "^1.0.0",
"@lezer/highlight": "^1.0.0",
"@lezer/lr": "^1.2.0",
"@lezer/lr": "^1.2.3",
"@overleaf/logger": "^3.1.0",
"@overleaf/metrics": "^4.0.0",
"@overleaf/o-error": "^3.4.0",
@ -34689,7 +34701,7 @@
"@pollyjs/persister-fs": "^4.2.1",
"@reach/tabs": "^0.15.0",
"@replit/codemirror-emacs": "overleaf/codemirror-emacs#90bcadaaaf38ed0d88cf15f0ddb8e868ca253e17",
"@replit/codemirror-vim": "^6.0.1",
"@replit/codemirror-vim": "^6.0.2",
"@sentry/browser": "^7.8.1",
"@uppy/core": "^1.15.0",
"@uppy/dashboard": "^1.11.0",
@ -34939,18 +34951,6 @@
"@hapi/hoek": "^8.3.0"
}
},
"services/web/node_modules/@replit/codemirror-vim": {
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/@replit/codemirror-vim/-/codemirror-vim-6.0.1.tgz",
"integrity": "sha512-s0y42dbfg4OzfN3YCld3wtD/Nf/gkJzEa7FD9O/jt42ohrfXvEjdRER3BTDIFCsMZpvJXgjeGQQweMMAsWGNJg==",
"peerDependencies": {
"@codemirror/commands": "^6.0.0",
"@codemirror/language": "^6.1.0",
"@codemirror/search": "^6.0.0",
"@codemirror/state": "^6.0.1",
"@codemirror/view": "^6.0.2"
}
},
"services/web/node_modules/@sinonjs/formatio": {
"version": "3.2.2",
"resolved": "https://registry.npmjs.org/@sinonjs/formatio/-/formatio-3.2.2.tgz",
@ -38121,9 +38121,9 @@
"dev": true
},
"@codemirror/autocomplete": {
"version": "6.0.4",
"resolved": "https://registry.npmjs.org/@codemirror/autocomplete/-/autocomplete-6.0.4.tgz",
"integrity": "sha512-uP7UodCRykPNwSAN+wYa/AS9gJI/V47echCAXUYgCgBXy3l19nwO7W/d29COtG/dfAsjBOhMDeh3Ms8Y5VZbrA==",
"version": "6.1.0",
"resolved": "https://registry.npmjs.org/@codemirror/autocomplete/-/autocomplete-6.1.0.tgz",
"integrity": "sha512-wtO4O5WDyXhhCd4q4utDIDZxnQfmJ++3dGBCG9LMtI79+92OcA1DVk/n7BEupKmjIr8AzvptDz7YQ9ud6OkU+A==",
"requires": {
"@codemirror/language": "^6.0.0",
"@codemirror/state": "^6.0.0",
@ -38182,9 +38182,9 @@
}
},
"@codemirror/lang-markdown": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/@codemirror/lang-markdown/-/lang-markdown-6.0.0.tgz",
"integrity": "sha512-ozJaO1W4WgGlwWOoYCSYzbVhhM0YM/4lAWLrNsBbmhh5Ztpl0qm4CgEQRl3t8/YcylTZYBIXiskui8sHNGd4dg==",
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/@codemirror/lang-markdown/-/lang-markdown-6.0.1.tgz",
"integrity": "sha512-pHPQuRwf9cUrmkmsTHRjtS9ZnGu3fA9YzAdh2++d+L9wbfnC2XbKh0Xvm/0YiUjdCnoCx9wDFEoCuAnkqKWLIw==",
"requires": {
"@codemirror/lang-html": "^6.0.0",
"@codemirror/language": "^6.0.0",
@ -38195,9 +38195,9 @@
}
},
"@codemirror/language": {
"version": "6.2.0",
"resolved": "https://registry.npmjs.org/@codemirror/language/-/language-6.2.0.tgz",
"integrity": "sha512-tabB0Ef/BflwoEmTB4a//WZ9P90UQyne9qWB9YFsmeS4bnEqSys7UpGk/da1URMXhyfuzWCwp+AQNMhvu8SfnA==",
"version": "6.2.1",
"resolved": "https://registry.npmjs.org/@codemirror/language/-/language-6.2.1.tgz",
"integrity": "sha512-MC3svxuvIj0MRpFlGHxLS6vPyIdbTr2KKPEW46kCoCXw2ktb4NTkpkPBI/lSP/FoNXLCBJ0mrnUi1OoZxtpW1Q==",
"requires": {
"@codemirror/state": "^6.0.0",
"@codemirror/view": "^6.0.0",
@ -38218,9 +38218,9 @@
}
},
"@codemirror/search": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/@codemirror/search/-/search-6.0.0.tgz",
"integrity": "sha512-rL0rd3AhI0TAsaJPUaEwC63KHLO7KL0Z/dYozXj6E7L3wNHRyx7RfE0/j5HsIf912EE5n2PCb4Vg0rGYmDv4UQ==",
"version": "6.1.0",
"resolved": "https://registry.npmjs.org/@codemirror/search/-/search-6.1.0.tgz",
"integrity": "sha512-ye6m0jFHSgQ4qnfWVwArvm7XrCMNppMYnL5f4M0WdBScslnckomf5eVacYCw8P0UBWeq72lCSXA0/eo1piZxLA==",
"requires": {
"@codemirror/state": "^6.0.0",
"@codemirror/view": "^6.0.0",
@ -38228,14 +38228,14 @@
}
},
"@codemirror/state": {
"version": "6.1.0",
"resolved": "https://registry.npmjs.org/@codemirror/state/-/state-6.1.0.tgz",
"integrity": "sha512-qbUr94DZTe6/V1VS7LDLz11rM/1t/nJxR1El4I6UaxDEdc0aZZvq6JCLJWiRmUf95NRAnDH6fhXn+PWp9wGCIg=="
"version": "6.1.1",
"resolved": "https://registry.npmjs.org/@codemirror/state/-/state-6.1.1.tgz",
"integrity": "sha512-2s+aXsxmAwnR3Rd+JDHPG/1lw0YsA9PEwl7Re88gHJHGfxyfEzKBmsN4rr53RyPIR4lzbbhJX0DCq0WlqlBIRw=="
},
"@codemirror/view": {
"version": "6.0.3",
"resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.0.3.tgz",
"integrity": "sha512-1gDBymhbx2DZzwnR/rNUu1LiQqjxBJtFiB+4uLR6tHQ6vKhTIwUsP5uZUQ7SM7JxVx3UihMynnTqjcsC+mczZg==",
"version": "6.2.0",
"resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.2.0.tgz",
"integrity": "sha512-3emW1symh+GoteFMBPsltjmF790U/trouLILATh3JodbF/z98HvcQh2g3+H6dfNIHx16uNonsAF4mNzVr1TJNA==",
"requires": {
"@codemirror/state": "^6.0.0",
"style-mod": "^4.0.0",
@ -39269,9 +39269,9 @@
}
},
"@lezer/lr": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/@lezer/lr/-/lr-1.2.0.tgz",
"integrity": "sha512-TgEpfm9br2SX8JwtwKT8HsQZKuFkLRg6g+IRxObk9nVKQLKnkP3oMh+QGcTBL9GQsfQ2ADtKPbj2iGSMf3ytiA==",
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/@lezer/lr/-/lr-1.2.3.tgz",
"integrity": "sha512-qpB7rBzH8f6Mzjv2AVZRahcm+2Cf7nbIH++uXbvVOL1yIRvVWQ3HAM/saeBLCyz/togB7LGo76qdJYL1uKQlqA==",
"requires": {
"@lezer/common": "^1.0.0"
}
@ -42248,20 +42248,20 @@
"@babel/preset-react": "^7.14.5",
"@babel/preset-typescript": "^7.16.0",
"@babel/register": "^7.14.5",
"@codemirror/autocomplete": "^6.0.4",
"@codemirror/autocomplete": "^6.1.0",
"@codemirror/commands": "^6.0.1",
"@codemirror/lang-markdown": "^6.0.0",
"@codemirror/language": "^6.2.0",
"@codemirror/lang-markdown": "^6.0.1",
"@codemirror/language": "^6.2.1",
"@codemirror/lint": "^6.0.0",
"@codemirror/search": "^6.0.0",
"@codemirror/state": "^6.1.0",
"@codemirror/view": "^6.0.3",
"@codemirror/search": "^6.1.0",
"@codemirror/state": "^6.1.1",
"@codemirror/view": "^6.1.0",
"@cypress/react": "^6.0.0",
"@juggle/resize-observer": "^3.3.1",
"@lezer/common": "^1.0.0",
"@lezer/generator": "^1.1.0",
"@lezer/highlight": "^1.0.0",
"@lezer/lr": "^1.2.0",
"@lezer/lr": "^1.2.3",
"@overleaf/logger": "^3.1.0",
"@overleaf/metrics": "^4.0.0",
"@overleaf/o-error": "^3.4.0",
@ -42273,7 +42273,7 @@
"@pollyjs/persister-fs": "^4.2.1",
"@reach/tabs": "^0.15.0",
"@replit/codemirror-emacs": "overleaf/codemirror-emacs#90bcadaaaf38ed0d88cf15f0ddb8e868ca253e17",
"@replit/codemirror-vim": "^6.0.1",
"@replit/codemirror-vim": "^6.0.2",
"@sentry/browser": "^7.8.1",
"@testing-library/cypress": "^8.0.3",
"@testing-library/dom": "^8.13.0",
@ -42513,12 +42513,6 @@
"@hapi/hoek": "^8.3.0"
}
},
"@replit/codemirror-vim": {
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/@replit/codemirror-vim/-/codemirror-vim-6.0.1.tgz",
"integrity": "sha512-s0y42dbfg4OzfN3YCld3wtD/Nf/gkJzEa7FD9O/jt42ohrfXvEjdRER3BTDIFCsMZpvJXgjeGQQweMMAsWGNJg==",
"requires": {}
},
"@sinonjs/formatio": {
"version": "3.2.2",
"resolved": "https://registry.npmjs.org/@sinonjs/formatio/-/formatio-3.2.2.tgz",
@ -44190,6 +44184,12 @@
"from": "@replit/codemirror-emacs@overleaf/codemirror-emacs#90bcadaaaf38ed0d88cf15f0ddb8e868ca253e17",
"requires": {}
},
"@replit/codemirror-vim": {
"version": "6.0.2",
"resolved": "https://registry.npmjs.org/@replit/codemirror-vim/-/codemirror-vim-6.0.2.tgz",
"integrity": "sha512-NbtrSJcb2b0SXBLGFeUeUhMLaP15dvd/srngghmpN8H0g9NgNaoU86NUYAtCzHzB1pIipE0qbUEDyz8/dM3uMA==",
"requires": {}
},
"@sentry/browser": {
"version": "7.8.1",
"resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-7.8.1.tgz",

View file

@ -68,17 +68,17 @@
"@babel/preset-env": "^7.14.5",
"@babel/preset-react": "^7.14.5",
"@babel/preset-typescript": "^7.16.0",
"@codemirror/autocomplete": "^6.0.4",
"@codemirror/autocomplete": "^6.1.0",
"@codemirror/commands": "^6.0.1",
"@codemirror/lang-markdown": "^6.0.0",
"@codemirror/language": "^6.2.0",
"@codemirror/lang-markdown": "^6.0.1",
"@codemirror/language": "^6.2.1",
"@codemirror/lint": "^6.0.0",
"@codemirror/search": "^6.0.0",
"@codemirror/state": "^6.1.0",
"@codemirror/view": "^6.0.3",
"@codemirror/search": "^6.1.0",
"@codemirror/state": "^6.1.1",
"@codemirror/view": "^6.1.0",
"@lezer/common": "^1.0.0",
"@lezer/highlight": "^1.0.0",
"@lezer/lr": "^1.2.0",
"@lezer/lr": "^1.2.3",
"@overleaf/logger": "^3.1.0",
"@overleaf/metrics": "^4.0.0",
"@overleaf/o-error": "^3.4.0",
@ -90,7 +90,7 @@
"@pollyjs/persister-fs": "^4.2.1",
"@reach/tabs": "^0.15.0",
"@replit/codemirror-emacs": "overleaf/codemirror-emacs#90bcadaaaf38ed0d88cf15f0ddb8e868ca253e17",
"@replit/codemirror-vim": "^6.0.1",
"@replit/codemirror-vim": "^6.0.2",
"@sentry/browser": "^7.8.1",
"@uppy/core": "^1.15.0",
"@uppy/dashboard": "^1.11.0",