Skip to content

Commit 82d0eef

Browse files
committed
docs: update to react-spring v9
1 parent fd89735 commit 82d0eef

File tree

4 files changed

+75
-67
lines changed

4 files changed

+75
-67
lines changed

docusaurus/docs/introduction.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,4 @@ function PullRelease() {
106106

107107
The _`useDrag`_ hook returns a function (stored in the _`bind`_ constant), which when called returns an object with event handlers. Here, when you spread _`{...bind()}`_ into a component, you're actually adding `onMouseDown` and `onTouchStart` event handlers.
108108

109-
> It's important that you understand React-use-gesture is not responsible for actually moving the component. The `useDrag` hook just hands over gesture data to React-spring which sets the component transforms. If you're not familiar with React-spring, head over [its documentation here](https://react-spring.io).
109+
> It's important that you understand React-use-gesture is not responsible for actually moving the component. The `useDrag` hook just hands over gesture data to React-spring which sets the component transforms. If you're not familiar with React-spring, head over [its documentation here](https://react-spring.io) and [here](https://aleclarson.github.io/react-spring/v9/).

docusaurus/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"react": "^16.13.1",
1717
"react-dom": "^16.13.1",
1818
"react-player": "^1.15.3",
19-
"react-spring": "^9.0.0-canary.808.17.55c5691",
19+
"react-spring": "^9.0.0-rc.2",
2020
"react-toastify": "^5.5.0",
2121
"react-use-gesture": "^7.0.15"
2222
},

docusaurus/src/pages/Hero/styles.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
justify-content: center;
77
align-items: center;
88
perspective: 720px;
9+
user-select: none;
910
}
1011

1112
.bounds {

docusaurus/yarn.lock

Lines changed: 72 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
# yarn lockfile v1
33

44

5+
"@alloc/types@^1.2.1":
6+
version "1.2.5"
7+
resolved "https://registry.yarnpkg.com/@alloc/types/-/types-1.2.5.tgz#108e4c1d9c593723e9702efc21e59d50093e972d"
8+
integrity sha512-/P8+QHJCG+xhXlFa9XH/Udy6Q8BFonQOJGzb2n6OVVlOa7VWoNGOJgkEGcJj7PkP4pMYFry9iIgprRLSAqN1Aw==
9+
510
"@babel/code-frame@7.8.3", "@babel/code-frame@^7.8.3":
611
version "7.8.3"
712
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.8.3.tgz#33e25903d7481181534e12ec0a25f16b6fcf419e"
@@ -1376,83 +1381,85 @@
13761381
"@nodelib/fs.scandir" "2.1.3"
13771382
fastq "^1.6.0"
13781383

1379-
"@react-spring/animated@9.0.0-canary.808.17.55c5691":
1380-
version "9.0.0-canary.808.17.55c5691"
1381-
resolved "https://registry.yarnpkg.com/@react-spring/animated/-/animated-9.0.0-canary.808.17.55c5691.tgz#3f89f77928d30ce9e546768d59568579860f8a3c"
1382-
integrity sha512-QlkCqE5dcc3UmYPGhBUka5CotyHr0+hcpwJnHcQJoLqsI9fVFpNVjnXbamP4BEXcXGLvVzzLSNzxBo/UaVGYDg==
1384+
"@react-spring/animated@9.0.0-rc.2":
1385+
version "9.0.0-rc.2"
1386+
resolved "https://registry.yarnpkg.com/@react-spring/animated/-/animated-9.0.0-rc.2.tgz#332be6206087163dbc22c23d83b8a596e4aabbef"
1387+
integrity sha512-fhwCuLZIsHz57CFgNvGUMDTPc07QbqfbIs1rehtmQb21s95Z+DnsRgBJFVNCL6nCXvPJOQhQMHJ38iolOnxUIQ==
13831388
dependencies:
13841389
"@babel/runtime" "^7.3.1"
1385-
"@react-spring/shared" "9.0.0-canary.808.17.55c5691"
1390+
"@react-spring/shared" "9.0.0-rc.2"
13861391
react-layout-effect "^1.0.1"
13871392

1388-
"@react-spring/core@9.0.0-canary.808.17.55c5691":
1389-
version "9.0.0-canary.808.17.55c5691"
1390-
resolved "https://registry.yarnpkg.com/@react-spring/core/-/core-9.0.0-canary.808.17.55c5691.tgz#b56103e0adeec19e75e5976f133f00418835b771"
1391-
integrity sha512-PdDjtcJQUYMFtSeP/PalAJ33kztcS5nT5fCVv0rfPEJRXOwewpMiEWgpQzoFkHr0crTPPfzpwGCCycM7w/eDiA==
1393+
"@react-spring/core@9.0.0-rc.2":
1394+
version "9.0.0-rc.2"
1395+
resolved "https://registry.yarnpkg.com/@react-spring/core/-/core-9.0.0-rc.2.tgz#e6049f0dccb4790caa14562d4da56083e5dbceb8"
1396+
integrity sha512-L47WUPSvp89MJ5ix6E5CR3dFLMegHjlcAZpxLWnBgLk+ZQr4bSnods1/9sWFprncXBiUNhzTdiKnW9Vk8rYS4A==
13921397
dependencies:
13931398
"@babel/runtime" "^7.3.1"
1394-
"@react-spring/animated" "9.0.0-canary.808.17.55c5691"
1395-
"@react-spring/shared" "9.0.0-canary.808.17.55c5691"
1399+
"@react-spring/animated" "9.0.0-rc.2"
1400+
"@react-spring/shared" "9.0.0-rc.2"
13961401
react-layout-effect "^1.0.1"
13971402
use-memo-one "^1.1.0"
13981403

1399-
"@react-spring/konva@9.0.0-canary.808.17.55c5691":
1400-
version "9.0.0-canary.808.17.55c5691"
1401-
resolved "https://registry.yarnpkg.com/@react-spring/konva/-/konva-9.0.0-canary.808.17.55c5691.tgz#0e41226060167ce022b4d5e634aeb6752ea7394b"
1402-
integrity sha512-4YN4XF1Zro5OHkUI4aUlRA41b5O/qIypLlTwdsFgtGgQuG+qJuq2NT3Gdpl1EIFPEHhsgvrpwAkLA149qqkp3Q==
1404+
"@react-spring/konva@9.0.0-rc.2":
1405+
version "9.0.0-rc.2"
1406+
resolved "https://registry.yarnpkg.com/@react-spring/konva/-/konva-9.0.0-rc.2.tgz#e7c8470b3d0461339a0d7be3989eef818b023459"
1407+
integrity sha512-8cUKQgANMg+3bp7gcg+YGuYnukAmG0PepHYIwKxTbDaG/2SyEkzU+28pnlP+I3hNNsJ9yriLtREV7dTMx+nF0g==
14031408
dependencies:
14041409
"@babel/runtime" "^7.3.1"
1405-
"@react-spring/animated" "9.0.0-canary.808.17.55c5691"
1406-
"@react-spring/core" "9.0.0-canary.808.17.55c5691"
1407-
"@react-spring/shared" "9.0.0-canary.808.17.55c5691"
1410+
"@react-spring/animated" "9.0.0-rc.2"
1411+
"@react-spring/core" "9.0.0-rc.2"
1412+
"@react-spring/shared" "9.0.0-rc.2"
14081413

1409-
"@react-spring/native@9.0.0-canary.808.17.55c5691":
1410-
version "9.0.0-canary.808.17.55c5691"
1411-
resolved "https://registry.yarnpkg.com/@react-spring/native/-/native-9.0.0-canary.808.17.55c5691.tgz#a8eab4586012cf58352546070eee6075249f60d3"
1412-
integrity sha512-wFeqGw5VrBnM0JpoHA9X57AF8u6eszQONaavCdvYlYMcnANY0W+mRP72KaS7YojR/PnjmKk5PsyuW6ajm8SlRQ==
1414+
"@react-spring/native@9.0.0-rc.2":
1415+
version "9.0.0-rc.2"
1416+
resolved "https://registry.yarnpkg.com/@react-spring/native/-/native-9.0.0-rc.2.tgz#1cf3a32974a3363f1112a910b607a92517c2514b"
1417+
integrity sha512-bjQJVUa1cT+/lTSoXdoeatmr4TrbL213OQn8KPIetpCDmWdZxneAEPA9HBSqWckiIA4Aa38VWWUlyA0UAQXLug==
14131418
dependencies:
14141419
"@babel/runtime" "^7.3.1"
1415-
"@react-spring/animated" "9.0.0-canary.808.17.55c5691"
1416-
"@react-spring/core" "9.0.0-canary.808.17.55c5691"
1417-
"@react-spring/shared" "9.0.0-canary.808.17.55c5691"
1420+
"@react-spring/animated" "9.0.0-rc.2"
1421+
"@react-spring/core" "9.0.0-rc.2"
1422+
"@react-spring/shared" "9.0.0-rc.2"
14181423

1419-
"@react-spring/shared@9.0.0-canary.808.17.55c5691":
1420-
version "9.0.0-canary.808.17.55c5691"
1421-
resolved "https://registry.yarnpkg.com/@react-spring/shared/-/shared-9.0.0-canary.808.17.55c5691.tgz#8f91eb1cbd9e27a7943b2ae24d8b57dd87cf2f6c"
1422-
integrity sha512-APkixgVRPsefZRd5MUZXoEGSW5ccSLoIk8Mp9aF77o9JnzaoK6KY3pL+wNmhr8ui31IynqiDIwhW7Bg8FcFOSQ==
1424+
"@react-spring/shared@9.0.0-rc.2":
1425+
version "9.0.0-rc.2"
1426+
resolved "https://registry.yarnpkg.com/@react-spring/shared/-/shared-9.0.0-rc.2.tgz#4adefc20a2b6044a5ff465ca7b1eb389fbee984d"
1427+
integrity sha512-lSI9Td8kuB+U25Qtf2nusmr88rjkdETw4eAWoIWQfStYWuZ25B6GZm4swlxJtZp+uoDKA6YwjiG6aMr3K9lO3g==
14231428
dependencies:
1429+
"@alloc/types" "^1.2.1"
14241430
"@babel/runtime" "^7.3.1"
1425-
fluids "^0.1.0"
1431+
fluids "^0.1.6"
1432+
tslib "^1.11.1"
14261433

1427-
"@react-spring/three@9.0.0-canary.808.17.55c5691":
1428-
version "9.0.0-canary.808.17.55c5691"
1429-
resolved "https://registry.yarnpkg.com/@react-spring/three/-/three-9.0.0-canary.808.17.55c5691.tgz#0ca998cf3c0ae52c474bc7aa71781578e4cdc11f"
1430-
integrity sha512-Bc/rh5mHf9tgBKUBwgihHR/IeK/0HGWv2mIHdDmcgdnO8mHNh+ECc7bm1utH0FFHM/wnC2zEbk7V4wdGdO9Kjg==
1434+
"@react-spring/three@9.0.0-rc.2":
1435+
version "9.0.0-rc.2"
1436+
resolved "https://registry.yarnpkg.com/@react-spring/three/-/three-9.0.0-rc.2.tgz#9273da4aea7c55b4ac8d9aa326e8a9fff9cb0244"
1437+
integrity sha512-U53FFBr17uranPlaG3hT4dzTW4PJfa0nqWtwURSxWSPbB20QCfAHqzgEVupbC+SodbX4PTNVOYaYlusBzGlM2w==
14311438
dependencies:
14321439
"@babel/runtime" "^7.3.1"
1433-
"@react-spring/animated" "9.0.0-canary.808.17.55c5691"
1434-
"@react-spring/core" "9.0.0-canary.808.17.55c5691"
1435-
"@react-spring/shared" "9.0.0-canary.808.17.55c5691"
1440+
"@react-spring/animated" "9.0.0-rc.2"
1441+
"@react-spring/core" "9.0.0-rc.2"
1442+
"@react-spring/shared" "9.0.0-rc.2"
14361443

1437-
"@react-spring/web@9.0.0-canary.808.17.55c5691":
1438-
version "9.0.0-canary.808.17.55c5691"
1439-
resolved "https://registry.yarnpkg.com/@react-spring/web/-/web-9.0.0-canary.808.17.55c5691.tgz#192da3485473118d75aead882e3b8120e666f758"
1440-
integrity sha512-Bk6CMiZx7AY3Mecxy85IY8Qpx/HTrbs3FOJI/fS9jiJVviavqj61+JNY4iRZc6VMZ65PI7B0bY1pkww08ofcxA==
1444+
"@react-spring/web@9.0.0-rc.2":
1445+
version "9.0.0-rc.2"
1446+
resolved "https://registry.yarnpkg.com/@react-spring/web/-/web-9.0.0-rc.2.tgz#5a30112953e91fb7b7e3bfc1b3bbb24326a16cd7"
1447+
integrity sha512-B40Hmm7Wrqv9g2AxPJ8tuSRgpe1jlwnvRFEijizJVg05lpl0zv45PLbOIBEfA/ZxP1Obq8VaXmWvFhaRkhLMSA==
14411448
dependencies:
14421449
"@babel/runtime" "^7.3.1"
1443-
"@react-spring/animated" "9.0.0-canary.808.17.55c5691"
1444-
"@react-spring/core" "9.0.0-canary.808.17.55c5691"
1445-
"@react-spring/shared" "9.0.0-canary.808.17.55c5691"
1450+
"@react-spring/animated" "9.0.0-rc.2"
1451+
"@react-spring/core" "9.0.0-rc.2"
1452+
"@react-spring/shared" "9.0.0-rc.2"
14461453

1447-
"@react-spring/zdog@9.0.0-canary.808.17.55c5691":
1448-
version "9.0.0-canary.808.17.55c5691"
1449-
resolved "https://registry.yarnpkg.com/@react-spring/zdog/-/zdog-9.0.0-canary.808.17.55c5691.tgz#3a884981663ea22a9e71a243618de1265283e7ff"
1450-
integrity sha512-SudEjgESk6zzBTdx2g5lpK3iF9la8Aj5QXUwYoNKswPBNAHcnH/MbyUog340UcrET/VOtZosoP7HF+VZixVAJg==
1454+
"@react-spring/zdog@9.0.0-rc.2":
1455+
version "9.0.0-rc.2"
1456+
resolved "https://registry.yarnpkg.com/@react-spring/zdog/-/zdog-9.0.0-rc.2.tgz#bb5e8777c7631dfa7048cdba33ceb71309852798"
1457+
integrity sha512-gDGQs7zE6BXdIQGphzZQu6U/2e8BH14p8ztkX0n7dgwHmpknjBX3SI7AoHFjnWOnu3Ce3lnpz7bMT6Hpid7V6w==
14511458
dependencies:
14521459
"@babel/runtime" "^7.3.1"
1453-
"@react-spring/animated" "9.0.0-canary.808.17.55c5691"
1454-
"@react-spring/core" "9.0.0-canary.808.17.55c5691"
1455-
"@react-spring/shared" "9.0.0-canary.808.17.55c5691"
1460+
"@react-spring/animated" "9.0.0-rc.2"
1461+
"@react-spring/core" "9.0.0-rc.2"
1462+
"@react-spring/shared" "9.0.0-rc.2"
14561463

14571464
"@styled-system/background@^5.1.2":
14581465
version "5.1.2"
@@ -4764,10 +4771,10 @@ flatten@^1.0.2:
47644771
resolved "https://registry.yarnpkg.com/flatten/-/flatten-1.0.3.tgz#c1283ac9f27b368abc1e36d1ff7b04501a30356b"
47654772
integrity sha512-dVsPA/UwQ8+2uoFe5GHtiBMu48dWLTdsuEd7CKGlZlD78r1TTWBvDuFaFGKCo/ZfEr95Uk56vZoX86OsHkUeIg==
47664773

4767-
fluids@^0.1.0:
4768-
version "0.1.6"
4769-
resolved "https://registry.yarnpkg.com/fluids/-/fluids-0.1.6.tgz#d38e51a3108d445078418072764f07c975d36a52"
4770-
integrity sha512-KfBiyAzU06O9A1onsS65JAIU1hs36i/IY5nYwBBUJsY5h7TTArvGYNJYzwiz3BLDoKsE53s69iM2k2s/HWgtZg==
4774+
fluids@^0.1.6:
4775+
version "0.1.8"
4776+
resolved "https://registry.yarnpkg.com/fluids/-/fluids-0.1.8.tgz#0a708b4f917f96ed9453dc21ab167d4bae9877c3"
4777+
integrity sha512-tl3nUHkZeqCJs6FnlN4hTLmOzwDNXWqRbTIXGOkUT6HUAAuWsd28CyxwLOy9KAIbJNY2Bgn2C2gZVRiEhdCtBg==
47714778

47724779
flush-write-stream@^1.0.0:
47734780
version "1.1.1"
@@ -8889,18 +8896,18 @@ react-spring@^8.0.27:
88898896
"@babel/runtime" "^7.3.1"
88908897
prop-types "^15.5.8"
88918898

8892-
react-spring@^9.0.0-canary.808.17.55c5691:
8893-
version "9.0.0-canary.808.17.55c5691"
8894-
resolved "https://registry.yarnpkg.com/react-spring/-/react-spring-9.0.0-canary.808.17.55c5691.tgz#a77f21d162a4f51d469ccfcd85bcb8917a24a0e4"
8895-
integrity sha512-vgjlqqpqsLOiYddB44y/qizUGJK3G1I/Rao5ZyxE/vCfqqvcjORw+/jDZV7ZEUreOMw2QBxBkBsDHCQE1F1Sbw==
8899+
react-spring@^9.0.0-rc.2:
8900+
version "9.0.0-rc.2"
8901+
resolved "https://registry.yarnpkg.com/react-spring/-/react-spring-9.0.0-rc.2.tgz#beb772f36754e3d3bb00da3b85f250e4eaeee1ed"
8902+
integrity sha512-FrQsFeL/azG0oxm5wU40HnfckHvRFMF1Y1X+hdDKu1lOxHZser97Mcnld9+oCX3e7hS0VZxqjqi1lB5bIrWBSw==
88968903
dependencies:
88978904
"@babel/runtime" "^7.3.1"
8898-
"@react-spring/core" "9.0.0-canary.808.17.55c5691"
8899-
"@react-spring/konva" "9.0.0-canary.808.17.55c5691"
8900-
"@react-spring/native" "9.0.0-canary.808.17.55c5691"
8901-
"@react-spring/three" "9.0.0-canary.808.17.55c5691"
8902-
"@react-spring/web" "9.0.0-canary.808.17.55c5691"
8903-
"@react-spring/zdog" "9.0.0-canary.808.17.55c5691"
8905+
"@react-spring/core" "9.0.0-rc.2"
8906+
"@react-spring/konva" "9.0.0-rc.2"
8907+
"@react-spring/native" "9.0.0-rc.2"
8908+
"@react-spring/three" "9.0.0-rc.2"
8909+
"@react-spring/web" "9.0.0-rc.2"
8910+
"@react-spring/zdog" "9.0.0-rc.2"
89048911

89058912
react-toastify@^5.5.0:
89068913
version "5.5.0"

0 commit comments

Comments
 (0)