@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/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +7 -5
- package/types/components/html/a.d.ts +2 -0
- package/types/components/html/attachment.d.ts +2 -0
- package/types/components/html/audio.d.ts +2 -0
- package/types/components/html/img.d.ts +2 -0
- package/types/components/html/video.d.ts +2 -0
- package/types/index.d.ts +2 -2
- package/types/lib/use-lfs.d.ts +1 -0
- package/types/components/image.d.ts +0 -3
- package/types/lib/get-public-path.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@topwrite/reader",
|
|
3
|
-
"version": "1.0.
|
|
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": "
|
|
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.
|
|
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.
|
|
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": "
|
|
55
|
+
"gitHead": "50af66fa77a391784c284b333a53f184a2809b46"
|
|
54
56
|
}
|
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 '
|
|
13
|
-
export { default as Anchor } from '
|
|
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 +0,0 @@
|
|
|
1
|
-
export default function getPublicPath(): string;
|