File tree Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 58
58
},
59
59
"dependencies" : {
60
60
"@babel/runtime" : " ^7.13.8" ,
61
- "@popperjs/core" : " ^2.8 .6" ,
61
+ "@popperjs/core" : " ^2.11 .6" ,
62
62
"@restart/hooks" : " ^0.4.7" ,
63
63
"@types/warning" : " ^3.0.0" ,
64
64
"dom-helpers" : " ^5.2.0" ,
Original file line number Diff line number Diff line change @@ -15,8 +15,17 @@ const initialPopperStyles = (
15
15
16
16
const disabledApplyStylesModifier = { name : 'applyStyles' , enabled : false } ;
17
17
18
+ // In order to satisfy the current usage of options, including undefined
19
+ type OptionsWithUndefined <
20
+ T extends Popper . Obj | undefined
21
+ > = T extends Popper . Obj ? T : Popper . Obj ;
22
+
18
23
// until docjs supports type exports...
19
- export type Modifier < Name , Options > = Popper . Modifier < Name , Options > ;
24
+ export type Modifier <
25
+ Name ,
26
+ Options extends Popper . Obj | undefined
27
+ > = Popper . Modifier < Name , OptionsWithUndefined < Options > > ;
28
+
20
29
export type Options = Popper . Options ;
21
30
export type Instance = Popper . Instance ;
22
31
export type Placement = Popper . Placement ;
Original file line number Diff line number Diff line change 1535
1535
dependencies:
1536
1536
mkdirp "^1.0.4"
1537
1537
1538
- "@popperjs/core@^2.8 .6":
1539
- version "2.8 .6"
1540
- resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.8 .6.tgz#ad75ebe8dbecfa145af3c7e4d0ae98016458d005 "
1541
- integrity sha512-1oXH2bAFXz9SttE1v/0Jp+2ZVePsPEAPGIuPKrmljWZcS3FPBEn2Q4WcANozZC0YiCjTWOF55k0g6rbSZS39ew ==
1538
+ "@popperjs/core@^2.11 .6":
1539
+ version "2.11 .6"
1540
+ resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.11 .6.tgz#cee20bd55e68a1720bdab363ecf0c821ded4cd45 "
1541
+ integrity sha512-50/17A98tWUfQ176raKiOGXuYpLyyVMkxxG6oylzL3BPOlA6ADGdK7EYunSa4I064xerltq9TGXs8HmOk5E+vw ==
1542
1542
1543
1543
"@react-bootstrap/eslint-config@^1.3.2":
1544
1544
version "1.3.2"
You can’t perform that action at this time.
0 commit comments