Przeglądaj źródła

Downgrade `@codemirror/view` to 6.38.6 (#30776)

GitOrigin-RevId: bb123c35674b0c21959e1532adc5cdb957f9aa89
Alf Eaton 7 miesięcy temu
rodzic
commit
23255fe264

+ 4 - 4
package-lock.json

@@ -10152,9 +10152,9 @@
       }
     },
     "node_modules/@codemirror/view": {
-      "version": "6.39.11",
-      "resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.39.11.tgz",
-      "integrity": "sha512-bWdeR8gWM87l4DB/kYSF9A+dVackzDb/V56Tq7QVrQ7rn86W0rgZFtlL3g3pem6AeGcb9NQNoy3ao4WpW4h5tQ==",
+      "version": "6.38.6",
+      "resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.38.6.tgz",
+      "integrity": "sha512-qiS0z1bKs5WOvHIAC0Cybmv4AJSkAXgX5aD6Mqd2epSLlVJsQl8NG23jCVouIgkh4All/mrbdsf2UOLFnJw0tw==",
       "dev": true,
       "license": "MIT",
       "dependencies": {
@@ -59160,7 +59160,7 @@
         "@codemirror/lint": "6.9.2",
         "@codemirror/search": "github:overleaf/codemirror-search#04380a528c339cd4b78fb10b3ef017f657ec17bd",
         "@codemirror/state": "6.5.4",
-        "@codemirror/view": "6.39.11",
+        "@codemirror/view": "6.38.6",
         "@floating-ui/react": "^0.27.5",
         "@juggle/resize-observer": "^3.3.1",
         "@lezer/common": "1.5.0",

+ 1 - 1
services/web/package.json

@@ -213,7 +213,7 @@
     "@codemirror/lint": "6.9.2",
     "@codemirror/search": "github:overleaf/codemirror-search#04380a528c339cd4b78fb10b3ef017f657ec17bd",
     "@codemirror/state": "6.5.4",
-    "@codemirror/view": "6.39.11",
+    "@codemirror/view": "6.38.6",
     "@floating-ui/react": "^0.27.5",
     "@juggle/resize-observer": "^3.3.1",
     "@lezer/common": "1.5.0",

+ 2 - 2
services/web/test/frontend/features/source-editor/components/codemirror-editor-visual.spec.tsx

@@ -730,7 +730,7 @@ describe('<CodeMirrorEditor/> in Visual mode', function () {
       cy.get('.ol-cm-textcolor')
         .should('have.length', 1)
         .should('have.text', 'foo')
-        .should('have.attr', 'style', 'color: rgb(255, 0, 0);')
+        .should('have.attr', 'style', 'color: rgb(255,0,0)')
     })
 
     it('decorates colorbox', function () {
@@ -738,7 +738,7 @@ describe('<CodeMirrorEditor/> in Visual mode', function () {
       cy.get('.ol-cm-colorbox')
         .should('have.length', 1)
         .should('have.text', 'foo')
-        .should('have.attr', 'style', 'background-color: rgb(255, 255, 0);')
+        .should('have.attr', 'style', 'background-color: rgb(255,255,0)')
     })
   })