@topwrite/reader 1.0.22-alpha.4 → 1.0.22-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.22-alpha.4+414304a",
3
+ "version": "1.0.22-alpha.5+4a05bec",
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.20-alpha.4+414304a",
21
+ "@topwrite/common": "^1.0.19",
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": "414304ada0e714c336a574d683dda3d638dde1bd"
56
+ "gitHead": "4a05bece01806308d32923b91e2e5b654d9411f8"
57
57
  }
@@ -1,10 +1,7 @@
1
1
  /// <reference types="react" />
2
- declare type Element = 't-attachment' | 'img' | 'video' | 'audio';
3
2
  interface Props {
4
- element: Element;
3
+ element: 't-attachment' | 'img' | 'video' | 'audio';
5
4
  src?: string;
6
5
  }
7
- export default function Asset({ element, src, ...props }: Props): import("react").ReactElement<{
8
- src: string | undefined;
9
- }, string | import("react").JSXElementConstructor<any>>;
6
+ export default function Asset({ element, src, ...props }: Props): JSX.Element;
10
7
  export {};
@@ -5,6 +5,12 @@ interface PageState {
5
5
  request: RequestInstance;
6
6
  config: RequestConfig;
7
7
  file: File;
8
+ lfs?: {
9
+ url: string;
10
+ files: {
11
+ [index: string]: string;
12
+ };
13
+ };
8
14
  }
9
15
  declare type Interceptors = RequestInstance['interceptors'];
10
16
  declare class Page extends Model<PageState> {
@@ -10,16 +10,11 @@ declare module '@topwrite/common' {
10
10
  }
11
11
  interface ComponentsMap {
12
12
  app: ComponentDescriptorType;
13
- 'article:before': ComponentDescriptorType;
14
- 'article:after': ComponentDescriptorType;
13
+ 'page:article:before': ComponentDescriptorType;
14
+ 'page:article:after': ComponentDescriptorType;
15
+ 'page:asset': ComponentDescriptorType;
15
16
  }
16
17
  interface OptionsStateType {
17
- lfs?: {
18
- url: string;
19
- files: {
20
- [index: string]: string;
21
- };
22
- };
23
18
  }
24
19
  }
25
20
  export {};
@@ -1 +0,0 @@
1
- export default function useLfs(src?: string): string | undefined;