diff --git a/package-lock.json b/package-lock.json index 2bc3870782..d26252efaf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3285,9 +3285,9 @@ "dev": true }, "node_modules/@codemirror/autocomplete": { - "version": "6.18.0", - "resolved": "git+ssh://git@github.com/overleaf/codemirror-autocomplete.git#d69a03afc6e29a58eb267084a1e3b5a99ff72cc2", - "integrity": "sha512-nks52ChYx6ZrwsJA+0kNK3u2Etylgq9KnxVzT27mzbVprddnv2AHzv9HhX2gpHZbIKE1kalYxMHO9GalyTyrnQ==", + "version": "6.18.1", + "resolved": "git+ssh://git@github.com/overleaf/codemirror-autocomplete.git#30c8996ee922d44039424347090afa8eafd141bf", + "integrity": "sha512-i3JBatB0+4UF9P9QbCOnK4Ari8WVABslr28N+Kf3lLqFsXnJLbaxeFuZqOMBgmHThfAzL708V3v3/NaGGd1GxA==", "dev": true, "dependencies": { "@codemirror/language": "^6.0.0", @@ -3303,9 +3303,9 @@ } }, "node_modules/@codemirror/commands": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/@codemirror/commands/-/commands-6.6.0.tgz", - "integrity": "sha512-qnY+b7j1UNcTS31Eenuc/5YJB6gQOzkUoNmJQc0rznwqSRpeaWWpjkWy2C/MPTcePpsKJEM26hXrOXl1+nceXg==", + "version": "6.6.2", + "resolved": "https://registry.npmjs.org/@codemirror/commands/-/commands-6.6.2.tgz", + "integrity": "sha512-Fq7eWOl1Rcbrfn6jD8FPCj9Auaxdm5nIK5RYOeW7ughnd/rY5AmPg6b+CfsG39ZHdwiwe8lde3q8uR7CF5S0yQ==", "dev": true, "dependencies": { "@codemirror/language": "^6.0.0", @@ -3372,9 +3372,9 @@ } }, "node_modules/@codemirror/language": { - "version": "6.10.2", - "resolved": "https://registry.npmjs.org/@codemirror/language/-/language-6.10.2.tgz", - "integrity": "sha512-kgbTYTo0Au6dCSc/TFy7fK3fpJmgHDv1sG1KNQKJXVi+xBTEeBPY/M30YXiU6mMXeH+YIDLsbrT4ZwNRdtF+SA==", + "version": "6.10.3", + "resolved": "https://registry.npmjs.org/@codemirror/language/-/language-6.10.3.tgz", + "integrity": "sha512-kDqEU5sCP55Oabl6E7m5N+vZRoc0iWqgDVhEKifcHzPzjqCegcO4amfrYVL9PmPZpl4G0yjkpTpUO/Ui8CzO8A==", "dev": true, "dependencies": { "@codemirror/state": "^6.0.0", @@ -3386,9 +3386,9 @@ } }, "node_modules/@codemirror/lint": { - "version": "6.8.1", - "resolved": "https://registry.npmjs.org/@codemirror/lint/-/lint-6.8.1.tgz", - "integrity": "sha512-IZ0Y7S4/bpaunwggW2jYqwLuHj0QtESf5xcROewY6+lDNwZ/NzvR4t+vpYgg9m7V8UXLPYqG+lu3DF470E5Oxg==", + "version": "6.8.2", + "resolved": "https://registry.npmjs.org/@codemirror/lint/-/lint-6.8.2.tgz", + "integrity": "sha512-PDFG5DjHxSEjOXk9TQYYVjZDqlZTFaDBfhQixHnQOEVDDNHUbEh/hstAjcQJaA6FQdZTD1hquXTK0rVBLADR1g==", "dev": true, "dependencies": { "@codemirror/state": "^6.0.0", @@ -3397,11 +3397,10 @@ } }, "node_modules/@codemirror/search": { - "version": "6.5.4", - "resolved": "git+ssh://git@github.com/overleaf/codemirror-search.git#29f7a871969ad64b89341bacbe5d46dda02eee12", - "integrity": "sha512-aMLQYaC/xv/kNkhp49jx24APK4fvxjypcgS7GfFUoLdhx39fDMw3Z4EGl56NDMFCdEJhG8yXk+hyvU+pxEQSfA==", + "version": "6.5.6", + "resolved": "git+ssh://git@github.com/overleaf/codemirror-search.git#94f33f7fa6db95dadd3d7aed05c30cdde550835a", + "integrity": "sha512-WLfXeY2r0rhzbiYgqfEk2nlmAh/XmuNrO1t9mOduCuho1zbemdT/keMR2NQWvwJ5k3kGEPD7iAAthmy8Ioc5tA==", "dev": true, - "license": "MIT", "dependencies": { "@codemirror/state": "^6.0.0", "@codemirror/view": "^6.0.0", @@ -3415,9 +3414,9 @@ "dev": true }, "node_modules/@codemirror/view": { - "version": "6.32.0", - "resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.32.0.tgz", - "integrity": "sha512-AgVNvED2QTsZp5e3syoHLsrWtwJFYWdx1Vr/m3f4h1ATQz0ax60CfXF3Htdmk69k2MlYZw8gXesnQdHtzyVmAw==", + "version": "6.34.0", + "resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.34.0.tgz", + "integrity": "sha512-2vKJ79tOcVfgPYVJM2XjcL1BH5Bsl7/tgn9ilBj3XWeCS5kTRy/NE4FHEj4aMylOl/D3IPNsmZH0WPlB+DyIdA==", "dev": true, "dependencies": { "@codemirror/state": "^6.4.0", @@ -6453,9 +6452,9 @@ } }, "node_modules/@lezer/generator": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@lezer/generator/-/generator-1.7.0.tgz", - "integrity": "sha512-IJ16tx3biLKlCXUzcK4v8S10AVa2BSM2rB12rtAL6f1hL2TS/HQQlGCoWRvanlL2J4mCYEEIv9uG7n4kVMkVDA==", + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/@lezer/generator/-/generator-1.7.1.tgz", + "integrity": "sha512-MgPJN9Si+ccxzXl3OAmCeZuUKw4XiPl4y664FX/hnnyG9CTqUPq65N3/VGPA2jD23D7QgMTtNqflta+cPN+5mQ==", "dev": true, "dependencies": { "@lezer/common": "^1.1.0", @@ -6466,9 +6465,9 @@ } }, "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==", "dev": true, "dependencies": { "@lezer/common": "^1.0.0" @@ -6495,18 +6494,18 @@ } }, "node_modules/@lezer/lr": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@lezer/lr/-/lr-1.4.1.tgz", - "integrity": "sha512-CHsKq8DMKBf9b3yXPDIU4DbH+ZJd/sJdYOW2llbW/HudP5u0VS6Bfq1hLYfgU7uAYGFIyGGQIsSOXGPEErZiJw==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/@lezer/lr/-/lr-1.4.2.tgz", + "integrity": "sha512-pu0K1jCIdnQ12aWNaAVU5bzi7Bd1w54J3ECgANPmYLtQKP0HBj2cE/5coBD66MT10xbtIuUr7tg0Shbsvk0mDA==", "dev": true, "dependencies": { "@lezer/common": "^1.0.0" } }, "node_modules/@lezer/markdown": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@lezer/markdown/-/markdown-1.3.0.tgz", - "integrity": "sha512-ErbEQ15eowmJUyT095e9NJc3BI9yZ894fjSDtHftD0InkfUBGgnKSU6dvan9jqsZuNHg2+ag/1oyDRxNsENupQ==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@lezer/markdown/-/markdown-1.3.1.tgz", + "integrity": "sha512-DGlzU/i8DC8k0uz1F+jeePrkATl0jWakauTzftMQOcbaMkHbNSRki/4E2tOzJWsVpoKYhe7iTJ03aepdwVUXUA==", "dev": true, "dependencies": { "@lezer/common": "^1.0.0", @@ -8697,7 +8696,6 @@ "resolved": "git+ssh://git@github.com/overleaf/codemirror-emacs.git#4394c03858f27053f8768258e9493866e06e938e", "integrity": "sha512-5rEKNeFfYPi3ytelXa5IIXnRu5Wvpzz80W1xa9k7gorC2wHlFRveIiIeXdwcQQw92pe5cT5vtpldLLZW5xcAIg==", "dev": true, - "license": "MIT", "peerDependencies": { "@codemirror/autocomplete": "^6.0.2", "@codemirror/commands": "^6.0.0", @@ -8707,11 +8705,10 @@ } }, "node_modules/@replit/codemirror-indentation-markers": { - "version": "6.4.0", - "resolved": "git+ssh://git@github.com/overleaf/codemirror-indentation-markers.git#1b1f93c0bcd04293aea6986aa2275185b2c56803", - "integrity": "sha512-33syzlJuFicLpTzJR0Z8d5jqGFmKae5UxiwDdvHzLzQUKvVxc+9Pu7v1Yigf+wWqufPmt0DE2ub/amBB8HcmIw==", + "version": "6.5.3", + "resolved": "git+ssh://git@github.com/overleaf/codemirror-indentation-markers.git#78264032eb286bc47871569ae87bff5ca1c6c161", + "integrity": "sha512-M64D1BO2iLWI0ByW4oiiRj104pulG+07FZOz+NfkJMY2zmrbsidKii/8Ibwmp7kEuWY1n7STtTtWxqZZB/HsjA==", "dev": true, - "license": "MIT", "peerDependencies": { "@codemirror/language": "^6.0.0", "@codemirror/state": "^6.0.0", @@ -8719,9 +8716,9 @@ } }, "node_modules/@replit/codemirror-vim": { - "version": "6.1.0", - "resolved": "git+ssh://git@github.com/overleaf/codemirror-vim.git#51ce0933e95705268256467fbbbcce5999ed3624", - "integrity": "sha512-cdp9t2IY1gHPwW3khJAxb9ffay6af9BLE0ZNCsq/SK6dj5TTwqoxT4N6aXJC+05spYlqcLRIlsqIJ1QrU5KUKw==", + "version": "6.2.1", + "resolved": "git+ssh://git@github.com/overleaf/codemirror-vim.git#1bef138382d948018f3f9b8a4d7a70ab61774e4b", + "integrity": "sha512-ATm1ZFJptmNcNlGKMFsCFQv41PYKBlDwC5pPKpceSEwws0yX2pS1FrV/cMikT9Ylw15s3grYUibYX3ObHZq8sQ==", "dev": true, "peerDependencies": { "@codemirror/commands": "^6.0.0", @@ -41432,20 +41429,20 @@ "@babel/preset-react": "^7.24.7", "@babel/preset-typescript": "^7.24.7", "@babel/register": "^7.24.6", - "@codemirror/autocomplete": "github:overleaf/codemirror-autocomplete#v6.18.0-overleaf-1", - "@codemirror/commands": "^6.6.0", + "@codemirror/autocomplete": "github:overleaf/codemirror-autocomplete#30c8996ee922d44039424347090afa8eafd141bf", + "@codemirror/commands": "^6.6.2", "@codemirror/lang-markdown": "^6.2.5", - "@codemirror/language": "^6.10.2", - "@codemirror/lint": "^6.8.1", - "@codemirror/search": "github:overleaf/codemirror-search#29f7a871969ad64b89341bacbe5d46dda02eee12", + "@codemirror/language": "^6.10.3", + "@codemirror/lint": "^6.8.2", + "@codemirror/search": "github:overleaf/codemirror-search#94f33f7fa6db95dadd3d7aed05c30cdde550835a", "@codemirror/state": "^6.4.1", - "@codemirror/view": "^6.32.0", + "@codemirror/view": "^6.34.0", "@juggle/resize-observer": "^3.3.1", "@lezer/common": "^1.2.1", - "@lezer/generator": "^1.7.0", - "@lezer/highlight": "^1.2.0", - "@lezer/lr": "^1.4.1", - "@lezer/markdown": "^1.3.0", + "@lezer/generator": "^1.7.1", + "@lezer/highlight": "^1.2.1", + "@lezer/lr": "^1.4.2", + "@lezer/markdown": "^1.3.1", "@opentelemetry/api": "^1.4.1", "@opentelemetry/auto-instrumentations-web": "^0.33.1", "@opentelemetry/context-zone": "^1.15.2", @@ -41466,8 +41463,8 @@ "@pollyjs/core": "^6.0.6", "@pollyjs/persister-fs": "^6.0.6", "@replit/codemirror-emacs": "overleaf/codemirror-emacs#4394c03858f27053f8768258e9493866e06e938e", - "@replit/codemirror-indentation-markers": "overleaf/codemirror-indentation-markers#1b1f93c0bcd04293aea6986aa2275185b2c56803", - "@replit/codemirror-vim": "overleaf/codemirror-vim#51ce0933e95705268256467fbbbcce5999ed3624", + "@replit/codemirror-indentation-markers": "overleaf/codemirror-indentation-markers#78264032eb286bc47871569ae87bff5ca1c6c161", + "@replit/codemirror-vim": "overleaf/codemirror-vim#1bef138382d948018f3f9b8a4d7a70ab61774e4b", "@sentry/browser": "7.46.0", "@storybook/addon-a11y": "^8.3.5", "@storybook/addon-essentials": "^8.3.5", @@ -46335,10 +46332,10 @@ "dev": true }, "@codemirror/autocomplete": { - "version": "git+ssh://git@github.com/overleaf/codemirror-autocomplete.git#d69a03afc6e29a58eb267084a1e3b5a99ff72cc2", - "integrity": "sha512-nks52ChYx6ZrwsJA+0kNK3u2Etylgq9KnxVzT27mzbVprddnv2AHzv9HhX2gpHZbIKE1kalYxMHO9GalyTyrnQ==", + "version": "git+ssh://git@github.com/overleaf/codemirror-autocomplete.git#30c8996ee922d44039424347090afa8eafd141bf", + "integrity": "sha512-i3JBatB0+4UF9P9QbCOnK4Ari8WVABslr28N+Kf3lLqFsXnJLbaxeFuZqOMBgmHThfAzL708V3v3/NaGGd1GxA==", "dev": true, - "from": "@codemirror/autocomplete@github:overleaf/codemirror-autocomplete#v6.18.0-overleaf-1", + "from": "@codemirror/autocomplete@github:overleaf/codemirror-autocomplete#30c8996ee922d44039424347090afa8eafd141bf", "requires": { "@codemirror/language": "^6.0.0", "@codemirror/state": "^6.0.0", @@ -46347,9 +46344,9 @@ } }, "@codemirror/commands": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/@codemirror/commands/-/commands-6.6.0.tgz", - "integrity": "sha512-qnY+b7j1UNcTS31Eenuc/5YJB6gQOzkUoNmJQc0rznwqSRpeaWWpjkWy2C/MPTcePpsKJEM26hXrOXl1+nceXg==", + "version": "6.6.2", + "resolved": "https://registry.npmjs.org/@codemirror/commands/-/commands-6.6.2.tgz", + "integrity": "sha512-Fq7eWOl1Rcbrfn6jD8FPCj9Auaxdm5nIK5RYOeW7ughnd/rY5AmPg6b+CfsG39ZHdwiwe8lde3q8uR7CF5S0yQ==", "dev": true, "requires": { "@codemirror/language": "^6.0.0", @@ -46416,9 +46413,9 @@ } }, "@codemirror/language": { - "version": "6.10.2", - "resolved": "https://registry.npmjs.org/@codemirror/language/-/language-6.10.2.tgz", - "integrity": "sha512-kgbTYTo0Au6dCSc/TFy7fK3fpJmgHDv1sG1KNQKJXVi+xBTEeBPY/M30YXiU6mMXeH+YIDLsbrT4ZwNRdtF+SA==", + "version": "6.10.3", + "resolved": "https://registry.npmjs.org/@codemirror/language/-/language-6.10.3.tgz", + "integrity": "sha512-kDqEU5sCP55Oabl6E7m5N+vZRoc0iWqgDVhEKifcHzPzjqCegcO4amfrYVL9PmPZpl4G0yjkpTpUO/Ui8CzO8A==", "dev": true, "requires": { "@codemirror/state": "^6.0.0", @@ -46430,9 +46427,9 @@ } }, "@codemirror/lint": { - "version": "6.8.1", - "resolved": "https://registry.npmjs.org/@codemirror/lint/-/lint-6.8.1.tgz", - "integrity": "sha512-IZ0Y7S4/bpaunwggW2jYqwLuHj0QtESf5xcROewY6+lDNwZ/NzvR4t+vpYgg9m7V8UXLPYqG+lu3DF470E5Oxg==", + "version": "6.8.2", + "resolved": "https://registry.npmjs.org/@codemirror/lint/-/lint-6.8.2.tgz", + "integrity": "sha512-PDFG5DjHxSEjOXk9TQYYVjZDqlZTFaDBfhQixHnQOEVDDNHUbEh/hstAjcQJaA6FQdZTD1hquXTK0rVBLADR1g==", "dev": true, "requires": { "@codemirror/state": "^6.0.0", @@ -46441,10 +46438,10 @@ } }, "@codemirror/search": { - "version": "git+ssh://git@github.com/overleaf/codemirror-search.git#29f7a871969ad64b89341bacbe5d46dda02eee12", - "integrity": "sha512-aMLQYaC/xv/kNkhp49jx24APK4fvxjypcgS7GfFUoLdhx39fDMw3Z4EGl56NDMFCdEJhG8yXk+hyvU+pxEQSfA==", + "version": "git+ssh://git@github.com/overleaf/codemirror-search.git#94f33f7fa6db95dadd3d7aed05c30cdde550835a", + "integrity": "sha512-WLfXeY2r0rhzbiYgqfEk2nlmAh/XmuNrO1t9mOduCuho1zbemdT/keMR2NQWvwJ5k3kGEPD7iAAthmy8Ioc5tA==", "dev": true, - "from": "@codemirror/search@github:overleaf/codemirror-search#29f7a871969ad64b89341bacbe5d46dda02eee12", + "from": "@codemirror/search@github:overleaf/codemirror-search#94f33f7fa6db95dadd3d7aed05c30cdde550835a", "requires": { "@codemirror/state": "^6.0.0", "@codemirror/view": "^6.0.0", @@ -46458,9 +46455,9 @@ "dev": true }, "@codemirror/view": { - "version": "6.32.0", - "resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.32.0.tgz", - "integrity": "sha512-AgVNvED2QTsZp5e3syoHLsrWtwJFYWdx1Vr/m3f4h1ATQz0ax60CfXF3Htdmk69k2MlYZw8gXesnQdHtzyVmAw==", + "version": "6.34.0", + "resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.34.0.tgz", + "integrity": "sha512-2vKJ79tOcVfgPYVJM2XjcL1BH5Bsl7/tgn9ilBj3XWeCS5kTRy/NE4FHEj4aMylOl/D3IPNsmZH0WPlB+DyIdA==", "dev": true, "requires": { "@codemirror/state": "^6.4.0", @@ -48420,9 +48417,9 @@ } }, "@lezer/generator": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@lezer/generator/-/generator-1.7.0.tgz", - "integrity": "sha512-IJ16tx3biLKlCXUzcK4v8S10AVa2BSM2rB12rtAL6f1hL2TS/HQQlGCoWRvanlL2J4mCYEEIv9uG7n4kVMkVDA==", + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/@lezer/generator/-/generator-1.7.1.tgz", + "integrity": "sha512-MgPJN9Si+ccxzXl3OAmCeZuUKw4XiPl4y664FX/hnnyG9CTqUPq65N3/VGPA2jD23D7QgMTtNqflta+cPN+5mQ==", "dev": true, "requires": { "@lezer/common": "^1.1.0", @@ -48430,9 +48427,9 @@ } }, "@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==", "dev": true, "requires": { "@lezer/common": "^1.0.0" @@ -48459,18 +48456,18 @@ } }, "@lezer/lr": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@lezer/lr/-/lr-1.4.1.tgz", - "integrity": "sha512-CHsKq8DMKBf9b3yXPDIU4DbH+ZJd/sJdYOW2llbW/HudP5u0VS6Bfq1hLYfgU7uAYGFIyGGQIsSOXGPEErZiJw==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/@lezer/lr/-/lr-1.4.2.tgz", + "integrity": "sha512-pu0K1jCIdnQ12aWNaAVU5bzi7Bd1w54J3ECgANPmYLtQKP0HBj2cE/5coBD66MT10xbtIuUr7tg0Shbsvk0mDA==", "dev": true, "requires": { "@lezer/common": "^1.0.0" } }, "@lezer/markdown": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@lezer/markdown/-/markdown-1.3.0.tgz", - "integrity": "sha512-ErbEQ15eowmJUyT095e9NJc3BI9yZ894fjSDtHftD0InkfUBGgnKSU6dvan9jqsZuNHg2+ag/1oyDRxNsENupQ==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@lezer/markdown/-/markdown-1.3.1.tgz", + "integrity": "sha512-DGlzU/i8DC8k0uz1F+jeePrkATl0jWakauTzftMQOcbaMkHbNSRki/4E2tOzJWsVpoKYhe7iTJ03aepdwVUXUA==", "dev": true, "requires": { "@lezer/common": "^1.0.0", @@ -50927,23 +50924,23 @@ "@babel/preset-react": "^7.24.7", "@babel/preset-typescript": "^7.24.7", "@babel/register": "^7.24.6", - "@codemirror/autocomplete": "github:overleaf/codemirror-autocomplete#v6.18.0-overleaf-1", - "@codemirror/commands": "^6.6.0", + "@codemirror/autocomplete": "github:overleaf/codemirror-autocomplete#30c8996ee922d44039424347090afa8eafd141bf", + "@codemirror/commands": "^6.6.2", "@codemirror/lang-markdown": "^6.2.5", - "@codemirror/language": "^6.10.2", - "@codemirror/lint": "^6.8.1", - "@codemirror/search": "github:overleaf/codemirror-search#29f7a871969ad64b89341bacbe5d46dda02eee12", + "@codemirror/language": "^6.10.3", + "@codemirror/lint": "^6.8.2", + "@codemirror/search": "github:overleaf/codemirror-search#94f33f7fa6db95dadd3d7aed05c30cdde550835a", "@codemirror/state": "^6.4.1", - "@codemirror/view": "^6.32.0", + "@codemirror/view": "^6.34.0", "@contentful/rich-text-html-renderer": "^16.0.2", "@contentful/rich-text-types": "^16.0.2", "@google-cloud/bigquery": "^6.0.1", "@juggle/resize-observer": "^3.3.1", "@lezer/common": "^1.2.1", - "@lezer/generator": "^1.7.0", - "@lezer/highlight": "^1.2.0", - "@lezer/lr": "^1.4.1", - "@lezer/markdown": "^1.3.0", + "@lezer/generator": "^1.7.1", + "@lezer/highlight": "^1.2.1", + "@lezer/lr": "^1.4.2", + "@lezer/markdown": "^1.3.1", "@node-oauth/oauth2-server": "^5.1.0", "@node-saml/passport-saml": "^4.0.4", "@opentelemetry/api": "^1.4.1", @@ -50975,8 +50972,8 @@ "@pollyjs/core": "^6.0.6", "@pollyjs/persister-fs": "^6.0.6", "@replit/codemirror-emacs": "overleaf/codemirror-emacs#4394c03858f27053f8768258e9493866e06e938e", - "@replit/codemirror-indentation-markers": "overleaf/codemirror-indentation-markers#1b1f93c0bcd04293aea6986aa2275185b2c56803", - "@replit/codemirror-vim": "overleaf/codemirror-vim#51ce0933e95705268256467fbbbcce5999ed3624", + "@replit/codemirror-indentation-markers": "overleaf/codemirror-indentation-markers#78264032eb286bc47871569ae87bff5ca1c6c161", + "@replit/codemirror-vim": "overleaf/codemirror-vim#1bef138382d948018f3f9b8a4d7a70ab61774e4b", "@sentry/browser": "7.46.0", "@slack/webhook": "^7.0.2", "@storybook/addon-a11y": "^8.3.5", @@ -53323,23 +53320,23 @@ }, "@replit/codemirror-emacs": { "version": "git+ssh://git@github.com/overleaf/codemirror-emacs.git#4394c03858f27053f8768258e9493866e06e938e", - "integrity": "sha512-5rEKNeFfYPi3ytelXa5IIXnRu5Wvpzz80W1xa9k7gorC2wHlFRveIiIeXdwcQQw92pe5cT5vtpldLLZW5xcAIg==", + "integrity": "sha512-AICzRfLjUzVcNyeM1tzNoIWhOjKgyfRuTKQeDJbNKSvafHMODpwC+augb97xcYYyHRRNUpPO3umroY92CGJyhA==", "dev": true, "from": "@replit/codemirror-emacs@overleaf/codemirror-emacs#4394c03858f27053f8768258e9493866e06e938e", "requires": {} }, "@replit/codemirror-indentation-markers": { - "version": "git+ssh://git@github.com/overleaf/codemirror-indentation-markers.git#1b1f93c0bcd04293aea6986aa2275185b2c56803", - "integrity": "sha512-33syzlJuFicLpTzJR0Z8d5jqGFmKae5UxiwDdvHzLzQUKvVxc+9Pu7v1Yigf+wWqufPmt0DE2ub/amBB8HcmIw==", + "version": "git+ssh://git@github.com/overleaf/codemirror-indentation-markers.git#78264032eb286bc47871569ae87bff5ca1c6c161", + "integrity": "sha512-M64D1BO2iLWI0ByW4oiiRj104pulG+07FZOz+NfkJMY2zmrbsidKii/8Ibwmp7kEuWY1n7STtTtWxqZZB/HsjA==", "dev": true, - "from": "@replit/codemirror-indentation-markers@overleaf/codemirror-indentation-markers#1b1f93c0bcd04293aea6986aa2275185b2c56803", + "from": "@replit/codemirror-indentation-markers@overleaf/codemirror-indentation-markers#78264032eb286bc47871569ae87bff5ca1c6c161", "requires": {} }, "@replit/codemirror-vim": { - "version": "git+ssh://git@github.com/overleaf/codemirror-vim.git#51ce0933e95705268256467fbbbcce5999ed3624", - "integrity": "sha512-cdp9t2IY1gHPwW3khJAxb9ffay6af9BLE0ZNCsq/SK6dj5TTwqoxT4N6aXJC+05spYlqcLRIlsqIJ1QrU5KUKw==", + "version": "git+ssh://git@github.com/overleaf/codemirror-vim.git#1bef138382d948018f3f9b8a4d7a70ab61774e4b", + "integrity": "sha512-ATm1ZFJptmNcNlGKMFsCFQv41PYKBlDwC5pPKpceSEwws0yX2pS1FrV/cMikT9Ylw15s3grYUibYX3ObHZq8sQ==", "dev": true, - "from": "@replit/codemirror-vim@overleaf/codemirror-vim#51ce0933e95705268256467fbbbcce5999ed3624", + "from": "@replit/codemirror-vim@overleaf/codemirror-vim#1bef138382d948018f3f9b8a4d7a70ab61774e4b", "requires": {} }, "@restart/hooks": { diff --git a/services/web/frontend/js/features/source-editor/languages/latex/completions/apply.ts b/services/web/frontend/js/features/source-editor/languages/latex/completions/apply.ts index c98692224f..b00a074066 100644 --- a/services/web/frontend/js/features/source-editor/languages/latex/completions/apply.ts +++ b/services/web/frontend/js/features/source-editor/languages/latex/completions/apply.ts @@ -48,7 +48,7 @@ export const extendRequiredParameter = ( } ) => { if (typeof change.insert !== 'string') { - return change + change.insert = change.insert.toString() } const argumentNode = ancestorNodeOfType(state, change.from, '$Argument') @@ -96,6 +96,7 @@ export const extendRequiredParameter = ( ) } } + change.insert = state.toText(change.insert) return change } diff --git a/services/web/package.json b/services/web/package.json index 865abf0237..97a37be72d 100644 --- a/services/web/package.json +++ b/services/web/package.json @@ -177,20 +177,20 @@ "@babel/preset-react": "^7.24.7", "@babel/preset-typescript": "^7.24.7", "@babel/register": "^7.24.6", - "@codemirror/autocomplete": "github:overleaf/codemirror-autocomplete#v6.18.0-overleaf-1", - "@codemirror/commands": "^6.6.0", + "@codemirror/autocomplete": "github:overleaf/codemirror-autocomplete#30c8996ee922d44039424347090afa8eafd141bf", + "@codemirror/commands": "^6.6.2", "@codemirror/lang-markdown": "^6.2.5", - "@codemirror/language": "^6.10.2", - "@codemirror/lint": "^6.8.1", - "@codemirror/search": "github:overleaf/codemirror-search#29f7a871969ad64b89341bacbe5d46dda02eee12", + "@codemirror/language": "^6.10.3", + "@codemirror/lint": "^6.8.2", + "@codemirror/search": "github:overleaf/codemirror-search#94f33f7fa6db95dadd3d7aed05c30cdde550835a", "@codemirror/state": "^6.4.1", - "@codemirror/view": "^6.32.0", + "@codemirror/view": "^6.34.0", "@juggle/resize-observer": "^3.3.1", "@lezer/common": "^1.2.1", - "@lezer/generator": "^1.7.0", - "@lezer/highlight": "^1.2.0", - "@lezer/lr": "^1.4.1", - "@lezer/markdown": "^1.3.0", + "@lezer/generator": "^1.7.1", + "@lezer/highlight": "^1.2.1", + "@lezer/lr": "^1.4.2", + "@lezer/markdown": "^1.3.1", "@opentelemetry/api": "^1.4.1", "@opentelemetry/auto-instrumentations-web": "^0.33.1", "@opentelemetry/context-zone": "^1.15.2", @@ -211,8 +211,8 @@ "@pollyjs/core": "^6.0.6", "@pollyjs/persister-fs": "^6.0.6", "@replit/codemirror-emacs": "overleaf/codemirror-emacs#4394c03858f27053f8768258e9493866e06e938e", - "@replit/codemirror-indentation-markers": "overleaf/codemirror-indentation-markers#1b1f93c0bcd04293aea6986aa2275185b2c56803", - "@replit/codemirror-vim": "overleaf/codemirror-vim#51ce0933e95705268256467fbbbcce5999ed3624", + "@replit/codemirror-indentation-markers": "overleaf/codemirror-indentation-markers#78264032eb286bc47871569ae87bff5ca1c6c161", + "@replit/codemirror-vim": "overleaf/codemirror-vim#1bef138382d948018f3f9b8a4d7a70ab61774e4b", "@sentry/browser": "7.46.0", "@storybook/addon-a11y": "^8.3.5", "@storybook/addon-essentials": "^8.3.5",