@topwrite/reader 1.0.79 → 1.0.80-alpha.0
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/{449-c4532e.js → 101-f52e60.js} +2 -2
- package/dist/{449-c4532e.js.map → 101-f52e60.js.map} +1 -1
- package/dist/368-34ab06.js +2 -0
- package/dist/368-34ab06.js.map +1 -0
- package/dist/{454-b0e4b2.js → 848-537c13.js} +2 -2
- package/dist/848-537c13.js.map +1 -0
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +48 -48
- 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 +2 -2
- 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/spinner.d.ts +2 -2
- package/types/components/to-first-article.d.ts +2 -2
- package/types/hello.d.ts +1 -1
- package/types/index.d.ts +29 -29
- package/types/lib/bootstrap.d.ts +3 -3
- package/types/lib/date.d.ts +7 -7
- package/types/lib/extend-entities.d.ts +6 -6
- package/types/lib/history.d.ts +18 -18
- package/types/lib/use-article.d.ts +6 -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/454-b0e4b2.js.map +0 -1
- package/dist/659-e7416c.js +0 -2
- package/dist/659-e7416c.js.map +0 -1
- /package/dist/{449.css → 101.css} +0 -0
- /package/dist/{659.css → 368.css} +0 -0
- /package/dist/{454.css → 848.css} +0 -0
package/package.json
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
2
|
+
"name": "@topwrite/reader",
|
|
3
|
+
"version": "1.0.80-alpha.0+29bd65b",
|
|
4
|
+
"author": "yunwuxin <tzzhangyajun@qq.com> (https://github.com/yunwuxin)",
|
|
5
|
+
"license": "ISC",
|
|
6
|
+
"types": "types/index.d.ts",
|
|
7
|
+
"main": "dist/index.js",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"types"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"prebuild": "rimraf dist types",
|
|
14
|
+
"build": "webpack --progress",
|
|
15
|
+
"build:dev": "npm run build -- --env dev",
|
|
16
|
+
"serve": "webpack serve --env dev",
|
|
17
|
+
"extract": "formatjs extract src/**/*.{ts,tsx} --out-file src/lang/zh-CN.json --ignore src/global.d.ts --id-interpolation-pattern [sha512:contenthash:base64:6] --additional-function-names $t --format simple",
|
|
18
|
+
"prepack": "npm run build"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@topwrite/common": "^1.0.66-alpha.0+29bd65b",
|
|
22
|
+
"@types/color": "^3.0.3",
|
|
23
|
+
"@types/lodash": "^4.14.168",
|
|
24
|
+
"@types/node": "^16.4.13",
|
|
25
|
+
"@types/react": "^18",
|
|
26
|
+
"@types/react-dom": "^18",
|
|
27
|
+
"color": "^4.2.3",
|
|
28
|
+
"dayjs": "^1.10.4",
|
|
29
|
+
"history": "^5.0.0",
|
|
30
|
+
"immer": "^9.0.6"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@docsearch/css": "^3.2.1",
|
|
34
|
+
"@formatjs/cli": "^5.0.2",
|
|
35
|
+
"@topthink/webpack-config-plugin": "^1.0.16",
|
|
36
|
+
"crypto-browserify": "^3.12.0",
|
|
37
|
+
"path-browserify": "^1.0.1",
|
|
38
|
+
"process": "^0.11.10",
|
|
39
|
+
"query-string": "^7.1.1",
|
|
40
|
+
"rc-tooltip": "^5.1.1",
|
|
41
|
+
"react-loading-bar": "^0.0.7",
|
|
42
|
+
"rimraf": "^3.0.2",
|
|
43
|
+
"stream-browserify": "^3.0.0",
|
|
44
|
+
"typescript": "^5.3.3",
|
|
45
|
+
"webpack": "^5.36.2",
|
|
46
|
+
"webpack-cli": "^4.7.0",
|
|
47
|
+
"webpack-dev-server": "^4.7.3"
|
|
48
|
+
},
|
|
49
|
+
"gitHead": "29bd65b0c39d5b287dd879356784173886f90693"
|
|
50
50
|
}
|
|
@@ -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,2 +1,2 @@
|
|
|
1
|
-
import { MarkdownProps } from '@topwrite/common';
|
|
2
|
-
export default function Markdown({ children, components, ...props }: MarkdownProps): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { MarkdownProps } from '@topwrite/common';
|
|
2
|
+
export default function Markdown({ children, components, ...props }: MarkdownProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -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:
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
export type DocSearchButtonProps = ComponentProps<'button'>;
|
|
3
|
+
export declare const DocSearchButton: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & 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>>];
|