Prechádzať zdrojové kódy

enhance(ux): upgrade react virtuoso library

charlie 8 mesiacov pred
rodič
commit
9c44dbc963
3 zmenil súbory, kde vykonal 6 pridanie a 5 odobranie
  1. 1 1
      package.json
  2. 1 0
      src/main/frontend/components/views.cljs
  3. 4 4
      yarn.lock

+ 1 - 1
package.json

@@ -163,7 +163,7 @@
         "react-textarea-autosize": "8.3.3",
         "react-tippy": "1.4.0",
         "react-transition-group": "4.3.0",
-        "react-virtuoso": "^4.7.11",
+        "react-virtuoso": "4.12.5",
         "remove-accents": "0.4.2",
         "reveal.js": "^4.5.0",
         "sanitize-filename": "1.6.3",

+ 1 - 0
src/main/frontend/components/views.cljs

@@ -1219,6 +1219,7 @@
     :compute-item-key (fn [idx]
                         (let [block (nth rows idx)]
                           (str "table-row-" (:db/id block))))
+    :skipAnimationFrameInResizeObserver true
     :total-count (count rows)
     :item-content (fn [idx]
                     (let [row (nth rows idx)]

+ 4 - 4
yarn.lock

@@ -7035,10 +7035,10 @@ [email protected]:
     loose-envify "^1.4.0"
     prop-types "^15.6.2"
 
-react-virtuoso@^4.7.11:
-  version "4.7.11"
-  resolved "https://registry.yarnpkg.com/react-virtuoso/-/react-virtuoso-4.7.11.tgz#1bf97885aae6f140f53487b48ebe87c37c57def3"
-  integrity sha512-Kdn9qEtQI2ulEuBMzW2BTkDsfijB05QUd6lpZ1K36oyA3k65Cz4lG4EKrh2pCfUafX4C2uMSZOwzMOhbrMOTFA==
+react-virtuoso@4.12.5:
+  version "4.12.5"
+  resolved "https://registry.yarnpkg.com/react-virtuoso/-/react-virtuoso-4.12.5.tgz#cf92efc2527e56d6df1d4d63c6e4dd3fac5a4030"
+  integrity sha512-YeCbRRsC9CLf0buD0Rct7WsDbzf+yBU1wGbo05/XjbcN2nJuhgh040m3y3+6HVogTZxEqVm45ac9Fpae4/MxRQ==
 
 [email protected]:
   version "17.0.2"