@topwrite/reader 1.0.30-alpha.2 → 1.0.31-alpha.3

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.30-alpha.2+b133434",
3
+ "version": "1.0.31-alpha.3+0d3bb4a",
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.27-alpha.2+b133434",
21
+ "@topwrite/common": "^1.0.28-alpha.3+0d3bb4a",
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": "b133434d17a1151ad742cade8a7e3ca45d57452b"
55
+ "gitHead": "0d3bb4a8bc241f878e3bee2b3e549ec97d477ba0"
56
56
  }
@@ -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'?: "copy" | "link" | "none" | "execute" | "move" | "popup" | undefined;
59
+ 'aria-dropeffect'?: "link" | "copy" | "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;
@@ -1,5 +1,7 @@
1
1
  import { Actions, AnyAction, ComponentDescriptorType, States } from '@topwrite/common';
2
2
  import * as models from './models';
3
+ import { ComponentProps } from 'react';
4
+ import Markdown from '@/components/markdown';
3
5
  declare type Models = typeof models;
4
6
  declare module '@topwrite/common' {
5
7
  function useSelector<T extends keyof Models>(model: T): States<T, Models>[T];
@@ -12,6 +14,7 @@ declare module '@topwrite/common' {
12
14
  app: ComponentDescriptorType;
13
15
  'page:article:before': ComponentDescriptorType;
14
16
  'page:article:after': ComponentDescriptorType;
17
+ 'page:article:markdown': ComponentDescriptorType<ComponentProps<typeof Markdown>>;
15
18
  'page:asset': ComponentDescriptorType;
16
19
  }
17
20
  interface OptionsStateType {