@topwrite/reader 1.0.16 → 1.0.18

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.16",
3
+ "version": "1.0.18",
4
4
  "author": "yunwuxin <tzzhangyajun@qq.com> (https://github.com/yunwuxin)",
5
5
  "license": "ISC",
6
6
  "types": "types/index.d.ts",
@@ -10,14 +10,15 @@
10
10
  "types"
11
11
  ],
12
12
  "scripts": {
13
+ "prebuild": "rimraf dist types",
13
14
  "build": "webpack --progress",
14
- "build:dev": "webpack --progress --env dev",
15
+ "build:dev": "yarn run build --env dev",
15
16
  "serve": "webpack serve --env dev",
16
17
  "extract": "formatjs extract src/**/*.ts* --out-file src/lang/zh-CN.json --id-interpolation-pattern [sha512:contenthash:base64:6] --format simple",
17
18
  "prepack": "yarn run build"
18
19
  },
19
20
  "dependencies": {
20
- "@topwrite/common": "^1.0.15",
21
+ "@topwrite/common": "^1.0.17",
21
22
  "@types/lodash": "^4.14.168",
22
23
  "@types/node": "^16.4.13",
23
24
  "@types/react": "^17.0.4",
@@ -33,11 +34,12 @@
33
34
  "crypto-browserify": "^3.12.0",
34
35
  "path-browserify": "^1.0.1",
35
36
  "process": "^0.11.10",
37
+ "rimraf": "^3.0.2",
36
38
  "stream-browserify": "^3.0.0",
37
39
  "typescript": "^4.3.5",
38
40
  "webpack": "^5.36.2",
39
41
  "webpack-cli": "^4.7.0",
40
- "webpack-dev-server": "^4.0.0-beta.3"
42
+ "webpack-dev-server": "^4.7.3"
41
43
  },
42
44
  "peerDependenciesMeta": {
43
45
  "lodash": {
@@ -50,5 +52,5 @@
50
52
  "optional": true
51
53
  }
52
54
  },
53
- "gitHead": "d1d72eb2811af2bb7f6e7ed5dc9275211e0e3aa7"
55
+ "gitHead": "50af66fa77a391784c284b333a53f184a2809b46"
54
56
  }
@@ -0,0 +1,2 @@
1
+ import { AnchorHTMLAttributes } from 'react';
2
+ export default function A(props: AnchorHTMLAttributes<HTMLAnchorElement>): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { AttachmentHTMLAttributes } from 'react';
2
+ export default function Attachment({ src, ...props }: AttachmentHTMLAttributes<HTMLAttachmentElement>): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { AudioHTMLAttributes } from 'react';
2
+ export default function Audio({ src, ...props }: AudioHTMLAttributes<HTMLAudioElement>): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { ImgHTMLAttributes } from 'react';
2
+ export default function Img({ src, ...props }: ImgHTMLAttributes<HTMLImageElement>): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { VideoHTMLAttributes } from 'react';
2
+ export default function Video({ src, ...props }: VideoHTMLAttributes<HTMLVideoElement>): JSX.Element;
package/types/index.d.ts CHANGED
@@ -9,8 +9,8 @@ export { default as useWindowSize, windowSizes } from './lib/use-window-size';
9
9
  export { default as useLockBodyScroll } from './lib/use-lock-body-scroll';
10
10
  export { default as PoweredBy } from './components/powered-by';
11
11
  export { default as Logo } from './components/logo';
12
- export { default as Link } from './components/link';
13
- export { default as Anchor } from './components/anchor';
12
+ export { default as Link } from '@/components/link';
13
+ export { default as Anchor } from '@/components/anchor';
14
14
  export { default as Catalog } from './components/catalog';
15
15
  export type { CatalogProps } from './components/catalog';
16
16
  export { default as Markdown } from './components/markdown';
@@ -0,0 +1 @@
1
+ export default function useLfs(src?: string): string | undefined;
@@ -1,3 +0,0 @@
1
- import { ImgHTMLAttributes } from 'react';
2
- declare const Image: ({ src, ...props }: ImgHTMLAttributes<HTMLImageElement>) => JSX.Element;
3
- export default Image;
@@ -1 +0,0 @@
1
- export default function getPublicPath(): string;