File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 37
37
"@next/bundle-analyzer" : " ^14.2.5" ,
38
38
"@radix-ui/react-accordion" : " ^1.2.0" ,
39
39
"@radix-ui/react-checkbox" : " ^1.1.1" ,
40
+ "@radix-ui/react-compose-refs" : " ^1.1.0" ,
40
41
"@radix-ui/react-dialog" : " ^1.1.1" ,
41
42
"@radix-ui/react-navigation-menu" : " ^1.2.0" ,
42
43
"@radix-ui/react-popover" : " ^1.1.1" ,
75
76
"react-i18next" : " ^13.3.1" ,
76
77
"react-icons" : " ^4.10.1" ,
77
78
"react-lite-youtube-embed" : " ^2.4.0" ,
78
- "react-merge-refs" : " ^2.1.1" ,
79
79
"react-select" : " 5.8.0" ,
80
80
"reading-time" : " ^1.5.0" ,
81
81
"remark-gfm" : " ^3.0.1" ,
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ import dynamic from "next/dynamic"
3
3
import { useRouter } from "next/router"
4
4
import { useTranslation } from "next-i18next"
5
5
import { MdSearch } from "react-icons/md"
6
- import { mergeRefs } from "react-merge-refs"
7
6
import { useDocSearchKeyboardEvents } from "@docsearch/react"
8
7
import { DocSearchHit } from "@docsearch/react/dist/esm/types"
8
+ import { useComposedRefs } from "@radix-ui/react-compose-refs"
9
9
import * as Portal from "@radix-ui/react-portal"
10
10
11
11
import { trackCustomEvent } from "@/lib/utils/matomo"
@@ -26,7 +26,7 @@ const Search = forwardRef<HTMLButtonElement, Props>(
26
26
( { isOpen, onOpen, onClose } , ref ) => {
27
27
const { locale } = useRouter ( )
28
28
const searchButtonRef = useRef < HTMLButtonElement > ( null )
29
- const mergedButtonRefs = mergeRefs ( [ ref , searchButtonRef ] )
29
+ const mergedButtonRefs = useComposedRefs ( ref , searchButtonRef )
30
30
const { t } = useTranslation ( "common" )
31
31
32
32
useDocSearchKeyboardEvents ( {
Original file line number Diff line number Diff line change 4394
4394
"@babel/runtime" "^7.13.10"
4395
4395
"@radix-ui/react-primitive" "1.0.3"
4396
4396
4397
- "@radix-ui/react-portal@1.1.1", "@radix-ui/react-portal@^1.1.1" :
4397
+ "@radix-ui/react-portal@1.1.1":
4398
4398
version "1.1.1"
4399
4399
resolved "https://registry.yarnpkg.com/@radix-ui/react-portal/-/react-portal-1.1.1.tgz#1957f1eb2e1aedfb4a5475bd6867d67b50b1d15f"
4400
4400
integrity sha512-A3UtLk85UtqhzFqtoC8Q0KvR2GbXF3mtPgACSazajqq6A41mEQgo53iPzY4i6BwDxlIFqWIhiQ2G729n+2aw/g==
@@ -13453,11 +13453,6 @@ react-lite-youtube-embed@^2.4.0:
13453
13453
resolved "https://registry.yarnpkg.com/react-lite-youtube-embed/-/react-lite-youtube-embed-2.4.0.tgz#1f56a12be1061d50431444d52d836bd09a1283a2"
13454
13454
integrity sha512-Xo6cM1zPlROvvM97JkqQIoXstlQDaC4+DawmM7BB7Hh1cXrkBHEGq1iJlQxBTUWAUklmpcC7ph7qg7CztXtABQ==
13455
13455
13456
- react-merge-refs@^2.1.1:
13457
- version "2.1.1"
13458
- resolved "https://registry.yarnpkg.com/react-merge-refs/-/react-merge-refs-2.1.1.tgz#e46763f8f1b881c0226ee54a1a2a10ffefba0233"
13459
- integrity sha512-jLQXJ/URln51zskhgppGJ2ub7b2WFKGq3cl3NYKtlHoTG+dN2q7EzWrn3hN3EgPsTMvpR9tpq5ijdp7YwFZkag==
13460
-
13461
13456
react-refresh@^0.14.0:
13462
13457
version "0.14.2"
13463
13458
resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.14.2.tgz#3833da01ce32da470f1f936b9d477da5c7028bf9"
You can’t perform that action at this time.
0 commit comments