@topwrite/reader 1.0.25-alpha.2 → 1.0.25-alpha.5

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.25-alpha.2+abe484f",
3
+ "version": "1.0.25-alpha.5+6afff4b",
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.22",
21
+ "@topwrite/common": "^1.0.23-alpha.5+6afff4b",
22
22
  "@types/lodash": "^4.14.168",
23
23
  "@types/node": "^16.4.13",
24
24
  "@types/react": "^17.0.4",
@@ -53,5 +53,5 @@
53
53
  "optional": true
54
54
  }
55
55
  },
56
- "gitHead": "abe484fd11a262aeff5b3c0c20e7bda455ac00d6"
56
+ "gitHead": "6afff4b26a995bfc41e5c8339c962a65e8c31988"
57
57
  }
@@ -56,7 +56,7 @@ export default function Heading({ depth, id, children, ...props }: HeadingHTMLAt
56
56
  'aria-describedby'?: string | undefined;
57
57
  'aria-details'?: string | undefined;
58
58
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
59
- 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
59
+ 'aria-dropeffect'?: "copy" | "link" | "none" | "execute" | "move" | "popup" | undefined;
60
60
  'aria-errormessage'?: string | undefined;
61
61
  'aria-expanded'?: (boolean | "true" | "false") | undefined;
62
62
  'aria-flowto'?: string | undefined;
package/types/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export { default as bootstrap } from './lib/bootstrap';
5
5
  export { history } from './lib/history';
6
6
  export { default as useTitle } from './lib/use-title';
7
7
  export { default as useFile } from './lib/use-file';
8
+ export { default as useLogo } from './lib/use-logo';
8
9
  export { default as useArticle, usePrevArticle, useNextArticle } from './lib/use-article';
9
10
  export { default as useWindowSize, windowSizes } from './lib/use-window-size';
10
11
  export { default as useLockBodyScroll } from './lib/use-lock-body-scroll';
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ import { File } from '@topwrite/common';
3
+ interface Props {
4
+ readonly children: ReactNode;
5
+ file: File;
6
+ }
7
+ export declare function LogoProvider({ children, file }: Props): JSX.Element;
8
+ export default function useLogo(): string;
9
+ export {};