@topwrite/reader 1.0.31-alpha.6 → 1.0.32-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/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/types/components/app.d.ts +2 -2
- package/types/components/page-loader.d.ts +2 -0
- package/types/lib/use-css.d.ts +1 -3
- package/types/lib/use-logo.d.ts +1 -3
- package/types/models/page.d.ts +2 -2
- package/types/typings.d.ts +1 -1
- package/types/components/main.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@topwrite/reader",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.32-alpha.1+ec6d314",
|
|
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.
|
|
21
|
+
"@topwrite/common": "^1.0.29-alpha.1+ec6d314",
|
|
22
22
|
"@types/lodash": "^4.14.168",
|
|
23
23
|
"@types/node": "^16.4.13",
|
|
24
24
|
"@types/react": "^17.0.4",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"optional": true
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "ec6d314f6dd90b2cd60b88b8258b99774a934b15"
|
|
56
56
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export default function App():
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export default function App(): JSX.Element;
|
package/types/lib/use-css.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { File } from '@topwrite/common';
|
|
3
2
|
export declare const CssContext: import("react").Context<string | undefined>;
|
|
4
3
|
interface Props {
|
|
5
4
|
readonly children: ReactNode;
|
|
6
|
-
file: File;
|
|
7
5
|
}
|
|
8
|
-
export declare function CssProvider({ children
|
|
6
|
+
export declare function CssProvider({ children }: Props): JSX.Element | null;
|
|
9
7
|
export default function useCss(): string | undefined;
|
|
10
8
|
export {};
|
package/types/lib/use-logo.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { File } from '@topwrite/common';
|
|
3
2
|
interface Props {
|
|
4
3
|
readonly children: ReactNode;
|
|
5
|
-
file: File;
|
|
6
4
|
}
|
|
7
|
-
export declare function LogoProvider({ children
|
|
5
|
+
export declare function LogoProvider({ children }: Props): JSX.Element;
|
|
8
6
|
export default function useLogo(): string;
|
|
9
7
|
export {};
|
package/types/models/page.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ interface PageState {
|
|
|
4
4
|
error?: Error;
|
|
5
5
|
request: RequestInstance;
|
|
6
6
|
config: RequestConfig;
|
|
7
|
-
file
|
|
7
|
+
file: File;
|
|
8
8
|
lfs?: {
|
|
9
9
|
url: string;
|
|
10
10
|
files: {
|
|
@@ -19,7 +19,7 @@ declare class Page extends Model<PageState> {
|
|
|
19
19
|
request: import("axios").AxiosInstance;
|
|
20
20
|
config: {};
|
|
21
21
|
};
|
|
22
|
-
subscription({ fetch }: ActionsType<Page
|
|
22
|
+
subscription({ fetch }: ActionsType<Page>): void;
|
|
23
23
|
fetch(pathname: string): AsyncGenerator<import("redux").AnyAction, void, unknown>;
|
|
24
24
|
intercept(handler: (interceptors: Interceptors) => void): Generator<import("redux").AnyAction, void, unknown>;
|
|
25
25
|
updateConfig(updater: (config: RequestConfig) => void): Generator<import("redux").AnyAction, void, unknown>;
|
package/types/typings.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ declare module '@topwrite/common' {
|
|
|
11
11
|
getState<T extends keyof Models>(model: T): Generator<AnyAction, States<T, Models>[T]>;
|
|
12
12
|
}
|
|
13
13
|
interface ComponentsMap {
|
|
14
|
-
|
|
14
|
+
'page': ComponentDescriptorType;
|
|
15
15
|
'page:article:before': ComponentDescriptorType;
|
|
16
16
|
'page:article:after': ComponentDescriptorType;
|
|
17
17
|
'page:article:markdown': ComponentDescriptorType<ComponentProps<typeof Markdown>>;
|