@topwrite/reader 1.0.31-alpha.5 → 1.0.32-alpha.0

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.31-alpha.5+6575a21",
3
+ "version": "1.0.32-alpha.0+1db2b17",
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.28-alpha.5+6575a21",
21
+ "@topwrite/common": "^1.0.29-alpha.0+1db2b17",
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": "6575a219b40b6bfd412c62c5c835f28fc7b43b95"
55
+ "gitHead": "1db2b17a7db4c61465b52a1448e19937537a9b1d"
56
56
  }
@@ -1,2 +1,2 @@
1
- import { ReactElement } from 'react';
2
- export default function App(): ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
1
+ /// <reference types="react" />
2
+ export default function App(): JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export default function PageLoader(): JSX.Element;
@@ -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, file }: Props): JSX.Element | null;
6
+ export declare function CssProvider({ children }: Props): JSX.Element | null;
9
7
  export default function useCss(): string | undefined;
10
8
  export {};
@@ -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, file }: Props): JSX.Element;
5
+ export declare function LogoProvider({ children }: Props): JSX.Element;
8
6
  export default function useLogo(): string;
9
7
  export {};
@@ -4,7 +4,7 @@ interface PageState {
4
4
  error?: Error;
5
5
  request: RequestInstance;
6
6
  config: RequestConfig;
7
- file?: 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>, state: any): void;
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>;
@@ -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
- app: ComponentDescriptorType;
14
+ 'page': ComponentDescriptorType;
15
15
  'page:article:before': ComponentDescriptorType;
16
16
  'page:article:after': ComponentDescriptorType;
17
17
  'page:article:markdown': ComponentDescriptorType<ComponentProps<typeof Markdown>>;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export default function Main(): JSX.Element | null;