@topwrite/reader 1.0.64 → 1.0.66-alpha.7
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/183-61a3d8.js +2 -0
- package/dist/183-61a3d8.js.map +1 -0
- package/dist/{273-7d5b3e.js → 387-f82649.js} +2 -2
- package/dist/387-f82649.js.map +1 -0
- package/dist/449-ad0329.js +2 -0
- package/dist/{613-998a7a.js.map → 449-ad0329.js.map} +1 -1
- package/dist/454-b0e4b2.js +2 -0
- package/dist/{610-4a86dc.js.map → 454-b0e4b2.js.map} +1 -1
- package/dist/{341-937b66.js → 561-70f145.js} +3 -3
- package/dist/561-70f145.js.map +1 -0
- package/dist/index.js +11 -10
- package/dist/index.js.map +1 -1
- package/package.json +6 -17
- package/types/components/anchor.d.ts +1 -1
- package/types/components/app.d.ts +1 -2
- package/types/components/article.d.ts +1 -1
- package/types/components/asset.d.ts +1 -2
- package/types/components/breadcrumb.d.ts +1 -1
- package/types/components/catalog.d.ts +1 -1
- package/types/components/html/a.d.ts +1 -1
- package/types/components/html/attachment.d.ts +1 -1
- package/types/components/html/audio.d.ts +1 -1
- package/types/components/html/img.d.ts +1 -1
- package/types/components/html/video.d.ts +1 -1
- package/types/components/link.d.ts +1 -1
- package/types/components/loading-bar/index.d.ts +1 -2
- package/types/components/loading-bar/loading-bar.d.ts +1 -2
- package/types/components/logo.d.ts +1 -2
- package/types/components/markdown.d.ts +1 -1
- package/types/components/menu.d.ts +1 -1
- package/types/components/nav-link.d.ts +1 -2
- package/types/components/page-loader.d.ts +1 -2
- package/types/components/page.d.ts +1 -2
- package/types/components/powered-by.d.ts +1 -2
- package/types/components/search/ask-box/form.d.ts +1 -2
- package/types/components/search/ask-box/index.d.ts +1 -2
- package/types/components/search/ask-box/screens/error-screen.d.ts +1 -2
- package/types/components/search/ask-box/screens/start-screen.d.ts +1 -2
- package/types/components/search/ask-box/state.d.ts +1 -2
- package/types/components/search/doc-search-button.d.ts +1 -1
- package/types/components/search/doc-search-modal.d.ts +1 -2
- package/types/components/search/doc-search.d.ts +1 -1
- package/types/components/search/footer.d.ts +1 -2
- package/types/components/search/icons/ask-icon.d.ts +1 -2
- package/types/components/search/icons/content-icon.d.ts +1 -2
- package/types/components/search/icons/control-key-icon.d.ts +1 -2
- package/types/components/search/icons/error-icon.d.ts +1 -2
- package/types/components/search/icons/go-to-external-icon.d.ts +1 -2
- package/types/components/search/icons/loading-icon.d.ts +1 -2
- package/types/components/search/icons/no-results-icon.d.ts +1 -2
- package/types/components/search/icons/recent-icon.d.ts +1 -2
- package/types/components/search/icons/reset-icon.d.ts +1 -2
- package/types/components/search/icons/search-icon.d.ts +1 -2
- package/types/components/search/icons/select-icon.d.ts +1 -2
- package/types/components/search/icons/star-icon.d.ts +1 -2
- package/types/components/search/index.d.ts +1 -2
- package/types/components/search/mode-provider.d.ts +1 -1
- package/types/components/search/search-box/form.d.ts +1 -2
- package/types/components/search/search-box/index.d.ts +1 -2
- package/types/components/search/search-box/results.d.ts +1 -2
- package/types/components/search/search-box/screens/error-screen.d.ts +1 -2
- package/types/components/search/search-box/screens/no-result-screen.d.ts +1 -2
- package/types/components/search/search-box/screens/results-screen.d.ts +1 -2
- package/types/components/search/search-box/screens/start-screen.d.ts +1 -2
- package/types/components/search/search-box/state.d.ts +1 -2
- package/types/lib/use-css.d.ts +1 -1
- package/types/lib/use-logo.d.ts +1 -1
- package/types/typings.d.ts +3 -5
- package/dist/273-7d5b3e.js.map +0 -1
- package/dist/277-ca055b.js +0 -2
- package/dist/277-ca055b.js.map +0 -1
- package/dist/341-937b66.js.map +0 -1
- package/dist/610-4a86dc.js +0 -2
- package/dist/613-998a7a.js +0 -2
- /package/dist/{277.css → 183.css} +0 -0
- /package/dist/{613.css → 449.css} +0 -0
- /package/dist/{610.css → 454.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.66-alpha.7+5dae540",
|
|
4
4
|
"author": "yunwuxin <tzzhangyajun@qq.com> (https://github.com/yunwuxin)",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
"prepack": "npm run build"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@topwrite/common": "^1.0.
|
|
21
|
+
"@topwrite/common": "^1.0.55-alpha.7+5dae540",
|
|
22
22
|
"@types/color": "^3.0.3",
|
|
23
23
|
"@types/lodash": "^4.14.168",
|
|
24
24
|
"@types/node": "^16.4.13",
|
|
25
|
-
"@types/react": "^
|
|
26
|
-
"@types/react-dom": "^
|
|
25
|
+
"@types/react": "^18",
|
|
26
|
+
"@types/react-dom": "^18",
|
|
27
27
|
"color": "^4.2.3",
|
|
28
28
|
"history": "^5.0.0",
|
|
29
|
-
"immer": "^
|
|
29
|
+
"immer": "^9.0.6"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@docsearch/css": "^3.2.1",
|
|
@@ -45,16 +45,5 @@
|
|
|
45
45
|
"webpack-cli": "^4.7.0",
|
|
46
46
|
"webpack-dev-server": "^4.7.3"
|
|
47
47
|
},
|
|
48
|
-
"
|
|
49
|
-
"lodash": {
|
|
50
|
-
"optional": true
|
|
51
|
-
},
|
|
52
|
-
"react": {
|
|
53
|
-
"optional": true
|
|
54
|
-
},
|
|
55
|
-
"react-dom": {
|
|
56
|
-
"optional": true
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
"gitHead": "1a6b4df4a9333fa52eea0d0ba8c074c575567535"
|
|
48
|
+
"gitHead": "5dae5406a243025bd176c3c3ea8d6aa3b1cd549e"
|
|
60
49
|
}
|
|
@@ -3,5 +3,5 @@ import { SummaryArticle } from '@topwrite/common';
|
|
|
3
3
|
interface AnchorProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
4
4
|
base?: SummaryArticle;
|
|
5
5
|
}
|
|
6
|
-
declare const Anchor: ({ base, href, ...props }: AnchorProps) => JSX.Element;
|
|
6
|
+
declare const Anchor: ({ base, href, ...props }: AnchorProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export default Anchor;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default function App(): JSX.Element;
|
|
1
|
+
export default function App(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,5 +4,5 @@ interface ArticleProps extends Omit<ComponentProps<typeof Markdown>, 'children'
|
|
|
4
4
|
className?: string;
|
|
5
5
|
offset?: number;
|
|
6
6
|
}
|
|
7
|
-
export default function Article({ className, header, footer, offset, aside, ...props }: ArticleProps): JSX.Element;
|
|
7
|
+
export default function Article({ className, header, footer, offset, aside, ...props }: ArticleProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
interface Props {
|
|
3
2
|
element: 't-attachment' | 'img' | 'video' | 'audio';
|
|
4
3
|
src?: string;
|
|
5
4
|
}
|
|
6
|
-
export default function Asset({ element, src, ...props }: Props): JSX.Element;
|
|
5
|
+
export default function Asset({ element, src, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export {};
|
|
@@ -4,5 +4,5 @@ interface Props {
|
|
|
4
4
|
className?: string;
|
|
5
5
|
renderItem?: (item: SummaryArticle | SummaryPart) => ReactNode;
|
|
6
6
|
}
|
|
7
|
-
export default function Breadcrumb({ className, renderItem }: Props): JSX.Element;
|
|
7
|
+
export default function Breadcrumb({ className, renderItem }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -31,5 +31,5 @@ export declare const CatalogItems: FC<{
|
|
|
31
31
|
part?: SummaryPart;
|
|
32
32
|
itemsComponent?: ComponentType<ItemsProps>;
|
|
33
33
|
} & Pick<CatalogProps, 'itemComponent'>>;
|
|
34
|
-
export default function Catalog({ ...props }: CatalogProps & DeprecatedCatalogProps): JSX.Element;
|
|
34
|
+
export default function Catalog({ ...props }: CatalogProps & DeprecatedCatalogProps): import("react/jsx-runtime").JSX.Element;
|
|
35
35
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AnchorHTMLAttributes } from 'react';
|
|
2
|
-
export default function A(props: AnchorHTMLAttributes<HTMLAnchorElement>): JSX.Element;
|
|
2
|
+
export default function A(props: AnchorHTMLAttributes<HTMLAnchorElement>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AttachmentHTMLAttributes } from 'react';
|
|
2
|
-
export default function Attachment(props: AttachmentHTMLAttributes<HTMLAttachmentElement>): JSX.Element;
|
|
2
|
+
export default function Attachment(props: AttachmentHTMLAttributes<HTMLAttachmentElement>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AudioHTMLAttributes } from 'react';
|
|
2
|
-
export default function Audio(props: AudioHTMLAttributes<HTMLAudioElement>): JSX.Element;
|
|
2
|
+
export default function Audio(props: AudioHTMLAttributes<HTMLAudioElement>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ImgHTMLAttributes } from 'react';
|
|
2
|
-
export default function Img(props: ImgHTMLAttributes<HTMLImageElement>): JSX.Element;
|
|
2
|
+
export default function Img(props: ImgHTMLAttributes<HTMLImageElement>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { VideoHTMLAttributes } from 'react';
|
|
2
|
-
export default function Video(props: VideoHTMLAttributes<HTMLVideoElement>): JSX.Element;
|
|
2
|
+
export default function Video(props: VideoHTMLAttributes<HTMLVideoElement>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,5 +3,5 @@ import { SummaryArticle } from '@topwrite/common';
|
|
|
3
3
|
interface LinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'href'> {
|
|
4
4
|
to?: string | SummaryArticle;
|
|
5
5
|
}
|
|
6
|
-
export default function Link({ children, to, className, ...props }: LinkProps): JSX.Element;
|
|
6
|
+
export default function Link({ children, to, className, ...props }: LinkProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default function LoadingBar(): JSX.Element;
|
|
1
|
+
export default function LoadingBar(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
interface LogoProps {
|
|
3
2
|
className?: string;
|
|
4
3
|
size?: number;
|
|
5
4
|
}
|
|
6
|
-
export default function Logo({ size, className }: LogoProps): JSX.Element;
|
|
5
|
+
export default function Logo({ size, className }: LogoProps): import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Markdown as CommonMarkdown } from '@topwrite/common';
|
|
2
2
|
import { ComponentProps } from 'react';
|
|
3
3
|
type MarkdownProps = ComponentProps<typeof CommonMarkdown>;
|
|
4
|
-
export default function Markdown({ children, components, ...props }: MarkdownProps): JSX.Element;
|
|
4
|
+
export default function Markdown({ children, components, ...props }: MarkdownProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -10,5 +10,5 @@ export interface MenuItemProps {
|
|
|
10
10
|
export interface MenuProps {
|
|
11
11
|
className?: string;
|
|
12
12
|
}
|
|
13
|
-
export default function Menu({ className }: MenuProps): JSX.Element | null;
|
|
13
|
+
export default function Menu({ className }: MenuProps): import("react/jsx-runtime").JSX.Element | null;
|
|
14
14
|
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
interface Props {
|
|
3
2
|
title: string;
|
|
4
3
|
url: string;
|
|
5
4
|
className?: string;
|
|
6
5
|
}
|
|
7
|
-
export default function NavLink({ url, title, className }: Props): JSX.Element;
|
|
6
|
+
export default function NavLink({ url, title, className }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default function PageLoader(): JSX.Element;
|
|
1
|
+
export default function PageLoader(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default function Page(): JSX.Element;
|
|
1
|
+
export default function Page(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
interface PoweredByProps {
|
|
3
2
|
className?: string;
|
|
4
3
|
}
|
|
5
|
-
export default function PoweredBy({ className }: PoweredByProps): JSX.Element | null;
|
|
4
|
+
export default function PoweredBy({ className }: PoweredByProps): import("react/jsx-runtime").JSX.Element | null;
|
|
6
5
|
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function ErrorScreen(): JSX.Element;
|
|
1
|
+
export declare function ErrorScreen(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function StartScreen(): JSX.Element;
|
|
1
|
+
export declare function StartScreen(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
2
|
export type DocSearchButtonProps = ComponentProps<'button'>;
|
|
3
|
-
export declare const DocSearchButton: import("react").ForwardRefExoticComponent<
|
|
3
|
+
export declare const DocSearchButton: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface DocSearchModalProps {
|
|
3
2
|
onClose(): void;
|
|
4
3
|
}
|
|
5
|
-
export declare function DocSearchModal({ onClose }: DocSearchModalProps): JSX.Element;
|
|
4
|
+
export declare function DocSearchModal({ onClose }: DocSearchModalProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,4 +5,4 @@ export interface DocSearchProps {
|
|
|
5
5
|
className?: string;
|
|
6
6
|
onlyCurrentPart?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export default function DocSearch({ as, className, onlyCurrentPart, ...props }: DocSearchProps): JSX.Element;
|
|
8
|
+
export default function DocSearch({ as, className, onlyCurrentPart, ...props }: DocSearchProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function Footer(): JSX.Element;
|
|
1
|
+
export declare function Footer(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function AskIcon(): JSX.Element;
|
|
1
|
+
export declare function AskIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function ContentIcon(): JSX.Element;
|
|
1
|
+
export declare function ContentIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function ControlKeyIcon(): JSX.Element;
|
|
1
|
+
export declare function ControlKeyIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function ErrorIcon(): JSX.Element;
|
|
1
|
+
export declare function ErrorIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function GoToExternal(): JSX.Element;
|
|
1
|
+
export declare function GoToExternal(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function LoadingIcon(): JSX.Element;
|
|
1
|
+
export declare function LoadingIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function NoResultsIcon(): JSX.Element;
|
|
1
|
+
export declare function NoResultsIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function RecentIcon(): JSX.Element;
|
|
1
|
+
export declare function RecentIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function ResetIcon(): JSX.Element;
|
|
1
|
+
export declare function ResetIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function SearchIcon(): JSX.Element;
|
|
1
|
+
export declare function SearchIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function SelectIcon(): JSX.Element;
|
|
1
|
+
export declare function SelectIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function StarIcon(): JSX.Element;
|
|
1
|
+
export declare function StarIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Dispatch, ReactNode, SetStateAction } from 'react';
|
|
2
2
|
export default function ({ children }: {
|
|
3
3
|
children: ReactNode;
|
|
4
|
-
}): JSX.Element;
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export declare const useMode: () => [string, Dispatch<SetStateAction<string>>];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
interface SearchBoxProps {
|
|
3
2
|
onClose(): void;
|
|
4
3
|
}
|
|
5
|
-
export default function SearchBox({ onClose }: SearchBoxProps): JSX.Element;
|
|
4
|
+
export default function SearchBox({ onClose }: SearchBoxProps): import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SearchResult } from '../../../models/search';
|
|
3
2
|
export interface ResultItem extends SearchResult {
|
|
4
3
|
id: number;
|
|
@@ -10,5 +9,5 @@ interface ResultsProps {
|
|
|
10
9
|
onItemClick(item: ResultItem): void;
|
|
11
10
|
onActive(index: number): void;
|
|
12
11
|
}
|
|
13
|
-
export declare function Results({ title, items, ...props }: ResultsProps): JSX.Element;
|
|
12
|
+
export declare function Results({ title, items, ...props }: ResultsProps): import("react/jsx-runtime").JSX.Element;
|
|
14
13
|
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function ErrorScreen(): JSX.Element;
|
|
1
|
+
export declare function ErrorScreen(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function NoResultsScreen(): JSX.Element;
|
|
1
|
+
export declare function NoResultsScreen(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ResultItem } from '../results';
|
|
3
2
|
import { SearchResult } from '../../../../models/search';
|
|
4
3
|
interface ResultsScreenProps {
|
|
@@ -10,5 +9,5 @@ interface ResultsScreenProps {
|
|
|
10
9
|
items: ResultItem[];
|
|
11
10
|
}[];
|
|
12
11
|
}
|
|
13
|
-
export declare function ResultsScreen({ collections, ...props }: ResultsScreenProps): JSX.Element;
|
|
12
|
+
export declare function ResultsScreen({ collections, ...props }: ResultsScreenProps): import("react/jsx-runtime").JSX.Element;
|
|
14
13
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
interface StartScreenProps {
|
|
3
2
|
hasCollections: boolean;
|
|
4
3
|
}
|
|
5
|
-
export declare function StartScreen(props: StartScreenProps): JSX.Element | null;
|
|
4
|
+
export declare function StartScreen(props: StartScreenProps): import("react/jsx-runtime").JSX.Element | null;
|
|
6
5
|
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SearchResult } from '../../../models/search';
|
|
3
2
|
export interface StateProps {
|
|
4
3
|
activeIndex?: number;
|
|
5
4
|
onItemClick: (item: SearchResult) => void;
|
|
6
5
|
onActive: (index: number) => void;
|
|
7
6
|
}
|
|
8
|
-
export default function State(props: StateProps): JSX.Element;
|
|
7
|
+
export default function State(props: StateProps): import("react/jsx-runtime").JSX.Element;
|
package/types/lib/use-css.d.ts
CHANGED
|
@@ -3,6 +3,6 @@ export declare const CssContext: import("react").Context<string | undefined>;
|
|
|
3
3
|
interface Props {
|
|
4
4
|
readonly children: ReactNode;
|
|
5
5
|
}
|
|
6
|
-
export declare function CssProvider({ children }: Props): JSX.Element | null;
|
|
6
|
+
export declare function CssProvider({ children }: Props): import("react/jsx-runtime").JSX.Element | null;
|
|
7
7
|
export default function useCss(): string | undefined;
|
|
8
8
|
export {};
|
package/types/lib/use-logo.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
interface Props {
|
|
3
3
|
readonly children: ReactNode;
|
|
4
4
|
}
|
|
5
|
-
export declare function LogoProvider({ children }: Props): JSX.Element;
|
|
5
|
+
export declare function LogoProvider({ children }: Props): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export default function useLogo(): string;
|
|
7
7
|
export {};
|
package/types/typings.d.ts
CHANGED
|
@@ -5,11 +5,6 @@ import Markdown from './components/markdown';
|
|
|
5
5
|
import { MenuItemProps, MenuProps } from './components/menu';
|
|
6
6
|
import Color from 'color';
|
|
7
7
|
type Models = typeof models;
|
|
8
|
-
declare module 'styled-components' {
|
|
9
|
-
interface DefaultTheme {
|
|
10
|
-
primaryColor: Color;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
8
|
declare module '@topwrite/common' {
|
|
14
9
|
function useSelector<T extends keyof Models>(model: T): States<T, Models>[T];
|
|
15
10
|
function useActions<T extends keyof Models>(model: T): Actions<T, Models>[T];
|
|
@@ -37,5 +32,8 @@ declare module '@topwrite/common' {
|
|
|
37
32
|
}
|
|
38
33
|
interface OptionsStateType {
|
|
39
34
|
}
|
|
35
|
+
interface ThemeType {
|
|
36
|
+
primaryColor: Color;
|
|
37
|
+
}
|
|
40
38
|
}
|
|
41
39
|
export {};
|