This repository was archived by the owner on Jun 11, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ export { DocSearchButton } from './dist/esm/DocSearchButton.js' ;
Original file line number Diff line number Diff line change 1+ export { DocSearchModal } from './dist/esm/DocSearchModal.js' ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ function isAppleDevice() {
1717 return / ( M a c | i P h o n e | i P o d | i P a d ) / i. test ( navigator . platform ) ;
1818}
1919
20- export function SearchButton ( props : SearchButtonProps ) {
20+ export function DocSearchButton ( props : SearchButtonProps ) {
2121 const [ key , setKey ] = useState ( ( ) =>
2222 isAppleDevice ( ) ? ACTION_KEY_APPLE : ACTION_KEY_DEFAULT
2323 ) ;
Original file line number Diff line number Diff line change 1+ import './dist/esm/style.css' ;
Original file line number Diff line number Diff line change 1111 "dependencies" : {
1212 "@docusaurus/core" : " 2.0.0-alpha.49" ,
1313 "@docusaurus/preset-classic" : " 2.0.0-alpha.49" ,
14+ "@francoischalifour/docsearch-react" : " 1.0.0-alpha.10" ,
1415 "classnames" : " 2.2.6" ,
15- "docsearch-react" : " 1.0.0-alpha.10" ,
1616 "react" : " 16.13.0" ,
1717 "react-dom" : " 16.13.0"
1818 },
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
66import { useHistory } from '@docusaurus/router' ;
77import Link from '@docusaurus/Link' ;
88import Head from '@docusaurus/Head' ;
9- import { SearchButton } from 'docsearch-react' ;
9+ import { DocSearchButton } from '@francoischalifour/ docsearch-react/button ' ;
1010
1111let DocSearch = null ;
1212
@@ -31,8 +31,8 @@ function SearchBar() {
3131 }
3232
3333 return Promise . all ( [
34- import ( 'docsearch-react' ) ,
35- import ( 'docsearch-react/dist/esm/ style.css ' ) ,
34+ import ( '@francoischalifour/ docsearch-react/modal ' ) ,
35+ import ( '@francoischalifour/ docsearch-react/style' ) ,
3636 ] ) . then ( ( [ { DocSearchModal } ] ) => {
3737 DocSearch = DocSearchModal ;
3838 setIsLoaded ( true ) ;
@@ -94,7 +94,7 @@ function SearchBar() {
9494 />
9595 </ Head >
9696
97- < SearchButton onClick = { onOpen } />
97+ < DocSearchButton onClick = { onOpen } />
9898
9999 { isLoaded &&
100100 isShowing &&
You can’t perform that action at this time.
0 commit comments