@topwrite/reader 1.0.68-alpha.4 → 1.0.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/267-960f60.js +1 -0
- package/dist/387-f82649.js +2 -0
- package/dist/387-f82649.js.map +1 -0
- package/dist/449-ad0329.js +2 -0
- package/dist/{809-2eaa99.js.map → 449-ad0329.js.map} +1 -1
- package/dist/454-b0e4b2.js +2 -0
- package/dist/{843-6bc79e.js.map → 454-b0e4b2.js.map} +1 -1
- package/dist/561-70f145.js +8 -0
- package/dist/561-70f145.js.map +1 -0
- package/dist/659-ecffed.js +2 -0
- package/dist/659-ecffed.js.map +1 -0
- package/dist/7-aa176f.js +1 -0
- package/dist/index.js +325 -16
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/types/components/anchor.d.ts +7 -7
- package/types/components/app.d.ts +1 -1
- package/types/components/article.d.ts +8 -8
- package/types/components/asset.d.ts +6 -6
- package/types/components/breadcrumb.d.ts +8 -8
- package/types/components/catalog.d.ts +35 -35
- package/types/components/html/a.d.ts +2 -2
- package/types/components/html/attachment.d.ts +2 -2
- package/types/components/html/audio.d.ts +2 -2
- package/types/components/html/img.d.ts +2 -2
- package/types/components/html/video.d.ts +2 -2
- package/types/components/link.d.ts +7 -7
- package/types/components/loading-bar/index.d.ts +1 -1
- package/types/components/loading-bar/loading-bar.d.ts +2 -2
- package/types/components/logo.d.ts +6 -6
- package/types/components/markdown.d.ts +5 -5
- package/types/components/menu.d.ts +14 -14
- package/types/components/nav-link.d.ts +7 -7
- package/types/components/page-loader.d.ts +1 -1
- package/types/components/page.d.ts +1 -1
- package/types/components/powered-by.d.ts +5 -5
- package/types/components/search/ask-box/form.d.ts +5 -5
- package/types/components/search/ask-box/index.d.ts +5 -5
- package/types/components/search/ask-box/screens/error-screen.d.ts +1 -1
- package/types/components/search/ask-box/screens/start-screen.d.ts +1 -1
- package/types/components/search/ask-box/state.d.ts +5 -5
- package/types/components/search/constants.d.ts +1 -1
- package/types/components/search/doc-search-button.d.ts +3 -3
- package/types/components/search/doc-search-modal.d.ts +4 -4
- package/types/components/search/doc-search.d.ts +8 -8
- package/types/components/search/footer.d.ts +1 -1
- package/types/components/search/hooks/use-keyboard-events.d.ts +9 -9
- package/types/components/search/hooks/use-trap-focus.d.ts +5 -5
- package/types/components/search/icons/ask-icon.d.ts +1 -1
- package/types/components/search/icons/content-icon.d.ts +1 -1
- package/types/components/search/icons/control-key-icon.d.ts +1 -1
- package/types/components/search/icons/error-icon.d.ts +1 -1
- package/types/components/search/icons/go-to-external-icon.d.ts +1 -1
- package/types/components/search/icons/index.d.ts +12 -12
- package/types/components/search/icons/loading-icon.d.ts +1 -1
- package/types/components/search/icons/no-results-icon.d.ts +1 -1
- package/types/components/search/icons/recent-icon.d.ts +1 -1
- package/types/components/search/icons/reset-icon.d.ts +1 -1
- package/types/components/search/icons/search-icon.d.ts +1 -1
- package/types/components/search/icons/select-icon.d.ts +1 -1
- package/types/components/search/icons/star-icon.d.ts +1 -1
- package/types/components/search/index.d.ts +2 -2
- package/types/components/search/mode-provider.d.ts +5 -5
- package/types/components/search/search-box/form.d.ts +5 -5
- package/types/components/search/search-box/index.d.ts +5 -5
- package/types/components/search/search-box/results.d.ts +13 -13
- package/types/components/search/search-box/screens/error-screen.d.ts +1 -1
- package/types/components/search/search-box/screens/no-result-screen.d.ts +1 -1
- package/types/components/search/search-box/screens/results-screen.d.ts +13 -13
- package/types/components/search/search-box/screens/start-screen.d.ts +5 -5
- package/types/components/search/search-box/state.d.ts +7 -7
- package/types/components/to-first-article.d.ts +2 -2
- package/types/hello.d.ts +1 -1
- package/types/index.d.ts +29 -28
- package/types/lib/bootstrap.d.ts +3 -3
- package/types/lib/date.d.ts +6 -6
- package/types/lib/extend-entities.d.ts +6 -6
- package/types/lib/history.d.ts +18 -18
- package/types/lib/use-article.d.ts +7 -7
- package/types/lib/use-asset-url.d.ts +1 -1
- package/types/lib/use-asset.d.ts +4 -4
- package/types/lib/use-css.d.ts +8 -8
- package/types/lib/use-file.d.ts +1 -1
- package/types/lib/use-in-preview.d.ts +1 -1
- package/types/lib/use-lock-body-scroll.d.ts +1 -1
- package/types/lib/use-logo.d.ts +7 -7
- package/types/lib/use-title.d.ts +1 -1
- package/types/lib/use-window-scroll.d.ts +2 -2
- package/types/lib/use-window-size.d.ts +4 -4
- package/types/models/ask.d.ts +18 -18
- package/types/models/book.d.ts +5 -5
- package/types/models/index.d.ts +4 -4
- package/types/models/page.d.ts +28 -28
- package/types/models/search.d.ts +22 -22
- package/types/typings.d.ts +39 -39
- package/dist/267-b06d72.js +0 -1
- package/dist/387-02d8b5.js +0 -2
- package/dist/387-02d8b5.js.map +0 -1
- package/dist/452-089cc0.js +0 -8
- package/dist/452-089cc0.js.map +0 -1
- package/dist/7-646b8c.js +0 -1
- package/dist/809-2eaa99.js +0 -2
- package/dist/843-6bc79e.js +0 -2
- package/dist/945-956f08.js +0 -2
- package/dist/945-956f08.js.map +0 -1
- /package/dist/{809.css → 449.css} +0 -0
- /package/dist/{843.css → 454.css} +0 -0
- /package/dist/{945.css → 659.css} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@topwrite/reader",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.69",
|
|
4
4
|
"author": "yunwuxin <tzzhangyajun@qq.com> (https://github.com/yunwuxin)",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"prepack": "npm run build"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@topwrite/common": "^1.0.57
|
|
21
|
+
"@topwrite/common": "^1.0.57",
|
|
22
22
|
"@types/color": "^3.0.3",
|
|
23
23
|
"@types/lodash": "^4.14.168",
|
|
24
24
|
"@types/node": "^16.4.13",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"webpack-cli": "^4.7.0",
|
|
46
46
|
"webpack-dev-server": "^4.7.3"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "799002630a99ab0f6f8cf601abf86eed531bab19"
|
|
49
49
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AnchorHTMLAttributes } from 'react';
|
|
2
|
-
import { SummaryArticle } from '@topwrite/common';
|
|
3
|
-
interface AnchorProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
4
|
-
base?: SummaryArticle;
|
|
5
|
-
}
|
|
6
|
-
declare const Anchor: ({ base, href, ...props }: AnchorProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default Anchor;
|
|
1
|
+
import { AnchorHTMLAttributes } from 'react';
|
|
2
|
+
import { SummaryArticle } from '@topwrite/common';
|
|
3
|
+
interface AnchorProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
4
|
+
base?: SummaryArticle;
|
|
5
|
+
}
|
|
6
|
+
declare const Anchor: ({ base, href, ...props }: AnchorProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default Anchor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function App(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export default function App(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import Markdown from './markdown';
|
|
2
|
-
import { ComponentProps } from 'react';
|
|
3
|
-
interface ArticleProps extends Omit<ComponentProps<typeof Markdown>, 'children' | 'as'> {
|
|
4
|
-
className?: string;
|
|
5
|
-
offset?: number;
|
|
6
|
-
}
|
|
7
|
-
export default function Article({ className, header, footer, offset, aside, ...props }: ArticleProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
1
|
+
import Markdown from './markdown';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
interface ArticleProps extends Omit<ComponentProps<typeof Markdown>, 'children' | 'as'> {
|
|
4
|
+
className?: string;
|
|
5
|
+
offset?: number;
|
|
6
|
+
}
|
|
7
|
+
export default function Article({ className, header, footer, offset, aside, ...props }: ArticleProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
interface Props {
|
|
2
|
-
element: 't-attachment' | 'img' | 'video' | 'audio';
|
|
3
|
-
src?: string;
|
|
4
|
-
}
|
|
5
|
-
export default function Asset({ element, src, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export {};
|
|
1
|
+
interface Props {
|
|
2
|
+
element: 't-attachment' | 'img' | 'video' | 'audio';
|
|
3
|
+
src?: string;
|
|
4
|
+
}
|
|
5
|
+
export default function Asset({ element, src, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { SummaryArticle, SummaryPart } from '@topwrite/common';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
interface Props {
|
|
4
|
-
className?: string;
|
|
5
|
-
renderItem?: (item: SummaryArticle | SummaryPart) => ReactNode;
|
|
6
|
-
}
|
|
7
|
-
export default function Breadcrumb({ className, renderItem }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
1
|
+
import { SummaryArticle, SummaryPart } from '@topwrite/common';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
interface Props {
|
|
4
|
+
className?: string;
|
|
5
|
+
renderItem?: (item: SummaryArticle | SummaryPart) => ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export default function Breadcrumb({ className, renderItem }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { ComponentType, FC, ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { SummaryArticle, SummaryPart } from '@topwrite/common';
|
|
3
|
-
interface ItemProps {
|
|
4
|
-
item: SummaryArticle;
|
|
5
|
-
active: boolean;
|
|
6
|
-
activeDescendant: boolean;
|
|
7
|
-
disabled: boolean;
|
|
8
|
-
open: boolean;
|
|
9
|
-
setOpen: (open: boolean) => void;
|
|
10
|
-
children: ReactNode;
|
|
11
|
-
}
|
|
12
|
-
interface PartProps {
|
|
13
|
-
part: SummaryPart;
|
|
14
|
-
children: ReactNode;
|
|
15
|
-
}
|
|
16
|
-
interface ItemsProps {
|
|
17
|
-
part?: SummaryPart;
|
|
18
|
-
children: ReactNode;
|
|
19
|
-
}
|
|
20
|
-
interface DeprecatedCatalogProps {
|
|
21
|
-
renderPart?: (props: PartProps) => ReactElement<any, any> | null;
|
|
22
|
-
renderItem?: (props: ItemProps) => ReactElement<any, any> | null;
|
|
23
|
-
}
|
|
24
|
-
export interface CatalogProps {
|
|
25
|
-
partComponent: ComponentType<PartProps>;
|
|
26
|
-
itemComponent: ComponentType<ItemProps>;
|
|
27
|
-
itemsComponent?: ComponentType<ItemsProps>;
|
|
28
|
-
}
|
|
29
|
-
export declare const CatalogItems: FC<{
|
|
30
|
-
items: SummaryArticle[];
|
|
31
|
-
part?: SummaryPart;
|
|
32
|
-
itemsComponent?: ComponentType<ItemsProps>;
|
|
33
|
-
} & Pick<CatalogProps, 'itemComponent'>>;
|
|
34
|
-
export default function Catalog({ ...props }: CatalogProps & DeprecatedCatalogProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
-
export {};
|
|
1
|
+
import { ComponentType, FC, ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { SummaryArticle, SummaryPart } from '@topwrite/common';
|
|
3
|
+
interface ItemProps {
|
|
4
|
+
item: SummaryArticle;
|
|
5
|
+
active: boolean;
|
|
6
|
+
activeDescendant: boolean;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
open: boolean;
|
|
9
|
+
setOpen: (open: boolean) => void;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
interface PartProps {
|
|
13
|
+
part: SummaryPart;
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
interface ItemsProps {
|
|
17
|
+
part?: SummaryPart;
|
|
18
|
+
children: ReactNode;
|
|
19
|
+
}
|
|
20
|
+
interface DeprecatedCatalogProps {
|
|
21
|
+
renderPart?: (props: PartProps) => ReactElement<any, any> | null;
|
|
22
|
+
renderItem?: (props: ItemProps) => ReactElement<any, any> | null;
|
|
23
|
+
}
|
|
24
|
+
export interface CatalogProps {
|
|
25
|
+
partComponent: ComponentType<PartProps>;
|
|
26
|
+
itemComponent: ComponentType<ItemProps>;
|
|
27
|
+
itemsComponent?: ComponentType<ItemsProps>;
|
|
28
|
+
}
|
|
29
|
+
export declare const CatalogItems: FC<{
|
|
30
|
+
items: SummaryArticle[];
|
|
31
|
+
part?: SummaryPart;
|
|
32
|
+
itemsComponent?: ComponentType<ItemsProps>;
|
|
33
|
+
} & Pick<CatalogProps, 'itemComponent'>>;
|
|
34
|
+
export default function Catalog({ ...props }: CatalogProps & DeprecatedCatalogProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AnchorHTMLAttributes } from 'react';
|
|
2
|
-
export default function A(props: AnchorHTMLAttributes<HTMLAnchorElement>): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { AnchorHTMLAttributes } from 'react';
|
|
2
|
+
export default function A(props: AnchorHTMLAttributes<HTMLAnchorElement>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AttachmentHTMLAttributes } from 'react';
|
|
2
|
-
export default function Attachment(props: AttachmentHTMLAttributes<HTMLAttachmentElement>): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { AttachmentHTMLAttributes } from 'react';
|
|
2
|
+
export default function Attachment(props: AttachmentHTMLAttributes<HTMLAttachmentElement>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AudioHTMLAttributes } from 'react';
|
|
2
|
-
export default function Audio(props: AudioHTMLAttributes<HTMLAudioElement>): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { AudioHTMLAttributes } from 'react';
|
|
2
|
+
export default function Audio(props: AudioHTMLAttributes<HTMLAudioElement>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ImgHTMLAttributes } from 'react';
|
|
2
|
-
export default function Img(props: ImgHTMLAttributes<HTMLImageElement>): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { ImgHTMLAttributes } from 'react';
|
|
2
|
+
export default function Img(props: ImgHTMLAttributes<HTMLImageElement>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { VideoHTMLAttributes } from 'react';
|
|
2
|
-
export default function Video(props: VideoHTMLAttributes<HTMLVideoElement>): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { VideoHTMLAttributes } from 'react';
|
|
2
|
+
export default function Video(props: VideoHTMLAttributes<HTMLVideoElement>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AnchorHTMLAttributes } from 'react';
|
|
2
|
-
import { SummaryArticle } from '@topwrite/common';
|
|
3
|
-
interface LinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'href'> {
|
|
4
|
-
to?: string | SummaryArticle;
|
|
5
|
-
}
|
|
6
|
-
export default function Link({ children, to, className, ...props }: LinkProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
1
|
+
import { AnchorHTMLAttributes } from 'react';
|
|
2
|
+
import { SummaryArticle } from '@topwrite/common';
|
|
3
|
+
interface LinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'href'> {
|
|
4
|
+
to?: string | SummaryArticle;
|
|
5
|
+
}
|
|
6
|
+
export default function Link({ children, to, className, ...props }: LinkProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function LoadingBar(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export default function LoadingBar(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import 'react-loading-bar/dist/index.css';
|
|
2
|
-
export default function LoadingBar(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import 'react-loading-bar/dist/index.css';
|
|
2
|
+
export default function LoadingBar(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
interface LogoProps {
|
|
2
|
-
className?: string;
|
|
3
|
-
size?: number;
|
|
4
|
-
}
|
|
5
|
-
export default function Logo({ size, className }: LogoProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export {};
|
|
1
|
+
interface LogoProps {
|
|
2
|
+
className?: string;
|
|
3
|
+
size?: number;
|
|
4
|
+
}
|
|
5
|
+
export default function Logo({ size, className }: LogoProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Markdown as CommonMarkdown } from '@topwrite/common';
|
|
2
|
-
import { ComponentProps } from 'react';
|
|
3
|
-
type MarkdownProps = ComponentProps<typeof CommonMarkdown>;
|
|
4
|
-
export default function Markdown({ children, components, ...props }: MarkdownProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export {};
|
|
1
|
+
import { Markdown as CommonMarkdown } from '@topwrite/common';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
type MarkdownProps = ComponentProps<typeof CommonMarkdown>;
|
|
4
|
+
export default function Markdown({ children, components, ...props }: MarkdownProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
-
import Tooltip from 'rc-tooltip';
|
|
3
|
-
import 'rc-tooltip/assets/bootstrap.css';
|
|
4
|
-
type TooltipProps = ComponentProps<typeof Tooltip>;
|
|
5
|
-
export interface MenuItemProps {
|
|
6
|
-
tooltip?: TooltipProps['overlay'] | TooltipProps;
|
|
7
|
-
children: ReactNode;
|
|
8
|
-
onClick?: () => void;
|
|
9
|
-
}
|
|
10
|
-
export interface MenuProps {
|
|
11
|
-
className?: string;
|
|
12
|
-
}
|
|
13
|
-
export default function Menu({ className }: MenuProps): import("react/jsx-runtime").JSX.Element | null;
|
|
14
|
-
export {};
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import Tooltip from 'rc-tooltip';
|
|
3
|
+
import 'rc-tooltip/assets/bootstrap.css';
|
|
4
|
+
type TooltipProps = ComponentProps<typeof Tooltip>;
|
|
5
|
+
export interface MenuItemProps {
|
|
6
|
+
tooltip?: TooltipProps['overlay'] | TooltipProps;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
}
|
|
10
|
+
export interface MenuProps {
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
export default function Menu({ className }: MenuProps): import("react/jsx-runtime").JSX.Element | null;
|
|
14
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
interface Props {
|
|
2
|
-
title: string;
|
|
3
|
-
url: string;
|
|
4
|
-
className?: string;
|
|
5
|
-
}
|
|
6
|
-
export default function NavLink({ url, title, className }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
1
|
+
interface Props {
|
|
2
|
+
title: string;
|
|
3
|
+
url: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export default function NavLink({ url, title, className }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function PageLoader(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export default function PageLoader(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function Page(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export default function Page(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
interface PoweredByProps {
|
|
2
|
-
className?: string;
|
|
3
|
-
}
|
|
4
|
-
export default function PoweredBy({ className }: PoweredByProps): import("react/jsx-runtime").JSX.Element | null;
|
|
5
|
-
export {};
|
|
1
|
+
interface PoweredByProps {
|
|
2
|
+
className?: string;
|
|
3
|
+
}
|
|
4
|
+
export default function PoweredBy({ className }: PoweredByProps): import("react/jsx-runtime").JSX.Element | null;
|
|
5
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
interface Props {
|
|
2
|
-
onClose(): void;
|
|
3
|
-
}
|
|
4
|
-
export default function Form({ onClose }: Props): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export {};
|
|
1
|
+
interface Props {
|
|
2
|
+
onClose(): void;
|
|
3
|
+
}
|
|
4
|
+
export default function Form({ onClose }: Props): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
interface AskBoxProps {
|
|
2
|
-
onClose(): void;
|
|
3
|
-
}
|
|
4
|
-
export default function AskBox({ onClose }: AskBoxProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export {};
|
|
1
|
+
interface AskBoxProps {
|
|
2
|
+
onClose(): void;
|
|
3
|
+
}
|
|
4
|
+
export default function AskBox({ onClose }: AskBoxProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function ErrorScreen(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare function ErrorScreen(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function StartScreen(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare function StartScreen(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
interface Props {
|
|
2
|
-
onClose(): void;
|
|
3
|
-
}
|
|
4
|
-
export default function State({ onClose }: Props): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export {};
|
|
1
|
+
interface Props {
|
|
2
|
+
onClose(): void;
|
|
3
|
+
}
|
|
4
|
+
export default function State({ onClose }: Props): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const MAX_QUERY_SIZE = 64;
|
|
1
|
+
export declare const MAX_QUERY_SIZE = 64;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ComponentProps } from 'react';
|
|
2
|
-
export type DocSearchButtonProps = ComponentProps<'button'>;
|
|
3
|
-
export declare const DocSearchButton: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
export type DocSearchButtonProps = ComponentProps<'button'>;
|
|
3
|
+
export declare const DocSearchButton: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface DocSearchModalProps {
|
|
2
|
-
onClose(): void;
|
|
3
|
-
}
|
|
4
|
-
export declare function DocSearchModal({ onClose }: DocSearchModalProps): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export interface DocSearchModalProps {
|
|
2
|
+
onClose(): void;
|
|
3
|
+
}
|
|
4
|
+
export declare function DocSearchModal({ onClose }: DocSearchModalProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ElementType } from 'react';
|
|
2
|
-
import '@docsearch/css';
|
|
3
|
-
export interface DocSearchProps {
|
|
4
|
-
as?: ElementType;
|
|
5
|
-
className?: string;
|
|
6
|
-
onlyCurrentPart?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export default function DocSearch({ as, className, onlyCurrentPart, ...props }: DocSearchProps): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { ElementType } from 'react';
|
|
2
|
+
import '@docsearch/css';
|
|
3
|
+
export interface DocSearchProps {
|
|
4
|
+
as?: ElementType;
|
|
5
|
+
className?: string;
|
|
6
|
+
onlyCurrentPart?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export default function DocSearch({ as, className, onlyCurrentPart, ...props }: DocSearchProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function Footer(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare function Footer(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface UseDocSearchKeyboardEventsProps {
|
|
3
|
-
isOpen: boolean;
|
|
4
|
-
onOpen(): void;
|
|
5
|
-
onClose(): void;
|
|
6
|
-
onInput?(event: KeyboardEvent): void;
|
|
7
|
-
searchButtonRef?: React.RefObject<HTMLButtonElement>;
|
|
8
|
-
}
|
|
9
|
-
export declare function useKeyboardEvents({ isOpen, onOpen, onClose, onInput, searchButtonRef, }: UseDocSearchKeyboardEventsProps): void;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface UseDocSearchKeyboardEventsProps {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onOpen(): void;
|
|
5
|
+
onClose(): void;
|
|
6
|
+
onInput?(event: KeyboardEvent): void;
|
|
7
|
+
searchButtonRef?: React.RefObject<HTMLButtonElement>;
|
|
8
|
+
}
|
|
9
|
+
export declare function useKeyboardEvents({ isOpen, onOpen, onClose, onInput, searchButtonRef, }: UseDocSearchKeyboardEventsProps): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
interface UseTrapFocusProps {
|
|
2
|
-
container: HTMLElement | null;
|
|
3
|
-
}
|
|
4
|
-
export declare function useTrapFocus({ container }: UseTrapFocusProps): void;
|
|
5
|
-
export {};
|
|
1
|
+
interface UseTrapFocusProps {
|
|
2
|
+
container: HTMLElement | null;
|
|
3
|
+
}
|
|
4
|
+
export declare function useTrapFocus({ container }: UseTrapFocusProps): void;
|
|
5
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function AskIcon(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare function AskIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function ContentIcon(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare function ContentIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function ControlKeyIcon(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare function ControlKeyIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function ErrorIcon(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare function ErrorIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function GoToExternal(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare function GoToExternal(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from './go-to-external-icon';
|
|
2
|
-
export * from './loading-icon';
|
|
3
|
-
export * from './recent-icon';
|
|
4
|
-
export * from './reset-icon';
|
|
5
|
-
export * from './search-icon';
|
|
6
|
-
export * from './select-icon';
|
|
7
|
-
export * from './content-icon';
|
|
8
|
-
export * from './star-icon';
|
|
9
|
-
export * from './error-icon';
|
|
10
|
-
export * from './no-results-icon';
|
|
11
|
-
export * from './control-key-icon';
|
|
12
|
-
export * from './ask-icon';
|
|
1
|
+
export * from './go-to-external-icon';
|
|
2
|
+
export * from './loading-icon';
|
|
3
|
+
export * from './recent-icon';
|
|
4
|
+
export * from './reset-icon';
|
|
5
|
+
export * from './search-icon';
|
|
6
|
+
export * from './select-icon';
|
|
7
|
+
export * from './content-icon';
|
|
8
|
+
export * from './star-icon';
|
|
9
|
+
export * from './error-icon';
|
|
10
|
+
export * from './no-results-icon';
|
|
11
|
+
export * from './control-key-icon';
|
|
12
|
+
export * from './ask-icon';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function LoadingIcon(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare function LoadingIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function NoResultsIcon(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare function NoResultsIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function RecentIcon(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare function RecentIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function ResetIcon(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare function ResetIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function SearchIcon(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare function SearchIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function SelectIcon(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare function SelectIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function StarIcon(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare function StarIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { DocSearchProps } from './doc-search';
|
|
2
|
-
export default function Search(props: DocSearchProps): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import type { DocSearchProps } from './doc-search';
|
|
2
|
+
export default function Search(props: DocSearchProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Dispatch, ReactNode, SetStateAction } from 'react';
|
|
2
|
-
export default function ({ children }: {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare const useMode: () => [string, Dispatch<SetStateAction<string>>];
|
|
1
|
+
import { Dispatch, ReactNode, SetStateAction } from 'react';
|
|
2
|
+
export default function ({ children }: {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const useMode: () => [string, Dispatch<SetStateAction<string>>];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
interface Props {
|
|
2
|
-
onClose(): void;
|
|
3
|
-
}
|
|
4
|
-
export default function Form({ onClose }: Props): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export {};
|
|
1
|
+
interface Props {
|
|
2
|
+
onClose(): void;
|
|
3
|
+
}
|
|
4
|
+
export default function Form({ onClose }: Props): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
interface SearchBoxProps {
|
|
2
|
-
onClose(): void;
|
|
3
|
-
}
|
|
4
|
-
export default function SearchBox({ onClose }: SearchBoxProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export {};
|
|
1
|
+
interface SearchBoxProps {
|
|
2
|
+
onClose(): void;
|
|
3
|
+
}
|
|
4
|
+
export default function SearchBox({ onClose }: SearchBoxProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { SearchResult } from '../../../models/search';
|
|
2
|
-
export interface ResultItem extends SearchResult {
|
|
3
|
-
id: number;
|
|
4
|
-
}
|
|
5
|
-
interface ResultsProps {
|
|
6
|
-
items: ResultItem[];
|
|
7
|
-
title: string;
|
|
8
|
-
activeIndex?: number;
|
|
9
|
-
onItemClick(item: ResultItem): void;
|
|
10
|
-
onActive(index: number): void;
|
|
11
|
-
}
|
|
12
|
-
export declare function Results({ title, items, ...props }: ResultsProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export {};
|
|
1
|
+
import { SearchResult } from '../../../models/search';
|
|
2
|
+
export interface ResultItem extends SearchResult {
|
|
3
|
+
id: number;
|
|
4
|
+
}
|
|
5
|
+
interface ResultsProps {
|
|
6
|
+
items: ResultItem[];
|
|
7
|
+
title: string;
|
|
8
|
+
activeIndex?: number;
|
|
9
|
+
onItemClick(item: ResultItem): void;
|
|
10
|
+
onActive(index: number): void;
|
|
11
|
+
}
|
|
12
|
+
export declare function Results({ title, items, ...props }: ResultsProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function ErrorScreen(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare function ErrorScreen(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function NoResultsScreen(): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare function NoResultsScreen(): import("react/jsx-runtime").JSX.Element;
|