@topwrite/reader 1.0.26 → 1.0.28-alpha.2

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.26",
3
+ "version": "1.0.28-alpha.2+79680e0",
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.23",
21
+ "@topwrite/common": "^1.0.25-alpha.2+79680e0",
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": "7042869043ffd24d90c987a851c83713153563c9"
56
+ "gitHead": "79680e0a1f40f3eeb05b8a14e3ae0213f29b32a2"
57
57
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface Props {
2
3
  element: 't-attachment' | 'img' | 'video' | 'audio';
3
4
  src?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface Props {
2
3
  className?: string;
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface LogoProps {
2
3
  className?: string;
3
4
  size?: number;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export default function Main(): JSX.Element | null;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export default function Page(): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface PoweredByProps {
2
3
  className?: string;
3
4
  }
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ import { File } from '@topwrite/common';
3
+ export declare const CssContext: import("react").Context<string | undefined>;
4
+ interface Props {
5
+ readonly children: ReactNode;
6
+ file: File;
7
+ }
8
+ export declare function CssProvider({ children, file }: Props): JSX.Element | null;
9
+ export default function useCss(): string | undefined;
10
+ export {};