@topwrite/reader 1.0.33-alpha.0 → 1.0.33-alpha.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topwrite/reader",
3
- "version": "1.0.33-alpha.0+4ff95b5",
3
+ "version": "1.0.33-alpha.1+8b627da",
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": "yarn run build"
19
19
  },
20
20
  "dependencies": {
21
- "@topwrite/common": "^1.0.29",
21
+ "@topwrite/common": "^1.0.30-alpha.1+8b627da",
22
22
  "@types/lodash": "^4.14.168",
23
23
  "@types/node": "^16.4.13",
24
24
  "@types/react": "^17.0.4",
@@ -34,6 +34,7 @@
34
34
  "path-browserify": "^1.0.1",
35
35
  "process": "^0.11.10",
36
36
  "query-string": "^7.1.1",
37
+ "rc-tooltip": "^5.1.1",
37
38
  "rimraf": "^3.0.2",
38
39
  "stream-browserify": "^3.0.0",
39
40
  "typescript": "^4.3.5",
@@ -52,5 +53,5 @@
52
53
  "optional": true
53
54
  }
54
55
  },
55
- "gitHead": "4ff95b5c5b8c7196b48398c29dee85200461efd6"
56
+ "gitHead": "8b627da233ebf2eac043bb87de8fab2282b54bf6"
56
57
  }
@@ -1,8 +1,8 @@
1
1
  import Markdown from './markdown';
2
- import { ComponentProps, ElementType } from 'react';
3
- interface ArticleProps extends Omit<ComponentProps<typeof Markdown>, 'children'> {
2
+ import { ComponentProps } from 'react';
3
+ interface ArticleProps extends Omit<ComponentProps<typeof Markdown>, 'children' | 'as'> {
4
4
  className?: string;
5
- container?: ElementType;
5
+ menu?: boolean;
6
6
  }
7
- export default function Article({ className, header, footer, container, ...props }: ArticleProps): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
7
+ export default function Article({ className, header, footer, menu, ...props }: ArticleProps): JSX.Element;
8
8
  export {};
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import 'rc-tooltip/assets/bootstrap.css';
3
+ interface MenuProps {
4
+ className?: string;
5
+ }
6
+ export default function Menu({ className }: MenuProps): JSX.Element;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare const useWindowScroll: (fps?: number) => number;
2
+ export default useWindowScroll;