@rspress/plugin-medium-zoom 1.39.3 → 1.40.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/dist/index.d.ts +18 -1
- package/package.json +24 -24
- package/src/index.ts +1 -1
package/dist/index.d.ts
CHANGED
@@ -4,7 +4,7 @@ import { RsbuildPlugin } from '@rsbuild/core';
|
|
4
4
|
import type { ZoomOptions } from 'medium-zoom';
|
5
5
|
|
6
6
|
/**
|
7
|
-
* There are two ways to define what
|
7
|
+
* There are two ways to define what addition routes represent.
|
8
8
|
* 1. Define filepath, then the content will be read from the file.
|
9
9
|
* 2. Define content, then then content will be written to temp file and read from it.
|
10
10
|
*/
|
@@ -634,6 +634,23 @@ declare interface UserConfig<ThemeConfig = Config$1> {
|
|
634
634
|
*/
|
635
635
|
versions: string[];
|
636
636
|
};
|
637
|
+
/**
|
638
|
+
* Language parity checking config
|
639
|
+
*/
|
640
|
+
languageParity?: {
|
641
|
+
/**
|
642
|
+
* Whether to enable language parity checking
|
643
|
+
*/
|
644
|
+
enabled: boolean;
|
645
|
+
/**
|
646
|
+
* Directories to include in the parity check
|
647
|
+
*/
|
648
|
+
include: string[];
|
649
|
+
/**
|
650
|
+
* Directories to exclude from the parity check
|
651
|
+
*/
|
652
|
+
exclude: string[];
|
653
|
+
};
|
637
654
|
}
|
638
655
|
|
639
656
|
declare interface ZoomContainer {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@rspress/plugin-medium-zoom",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.40.0",
|
4
4
|
"description": "A plugin for rspress to zoom images in docs.",
|
5
5
|
"bugs": "https://github.com/web-infra-dev/rspress/issues",
|
6
6
|
"repository": {
|
@@ -9,50 +9,50 @@
|
|
9
9
|
"directory": "packages/plugin-medium-zoom"
|
10
10
|
},
|
11
11
|
"license": "MIT",
|
12
|
+
"sideEffects": [
|
13
|
+
"*.css",
|
14
|
+
"*.less",
|
15
|
+
"*.sass",
|
16
|
+
"*.scss"
|
17
|
+
],
|
12
18
|
"type": "module",
|
13
|
-
"jsnext:source": "./src/index.ts",
|
14
|
-
"types": "./dist/index.d.ts",
|
15
19
|
"main": "./dist/index.js",
|
16
20
|
"module": "./dist/node/index.js",
|
17
|
-
"
|
18
|
-
|
21
|
+
"types": "./dist/index.d.ts",
|
22
|
+
"files": [
|
23
|
+
"dist",
|
24
|
+
"src"
|
25
|
+
],
|
26
|
+
"dependencies": {
|
27
|
+
"medium-zoom": "1.1.0"
|
19
28
|
},
|
20
29
|
"devDependencies": {
|
21
|
-
"@microsoft/api-extractor": "^7.
|
22
|
-
"@modern-js/tsconfig": "2.63.
|
23
|
-
"@rslib/core": "0.
|
30
|
+
"@microsoft/api-extractor": "^7.49.1",
|
31
|
+
"@modern-js/tsconfig": "2.63.6",
|
32
|
+
"@rslib/core": "0.2.2",
|
24
33
|
"@types/node": "^18.11.17",
|
25
34
|
"@types/react": "^18.3.18",
|
26
35
|
"@types/react-dom": "^18.3.5",
|
27
36
|
"react": "^18.3.1",
|
28
37
|
"typescript": "^5.5.3",
|
29
38
|
"vitest": "2.1.8",
|
30
|
-
"@rspress/shared": "1.
|
39
|
+
"@rspress/shared": "1.40.0"
|
31
40
|
},
|
32
41
|
"peerDependencies": {
|
33
|
-
"@rspress/runtime": "^1.
|
42
|
+
"@rspress/runtime": "^1.40.0"
|
43
|
+
},
|
44
|
+
"engines": {
|
45
|
+
"node": ">=14.17.6"
|
34
46
|
},
|
35
|
-
"sideEffects": [
|
36
|
-
"*.css",
|
37
|
-
"*.less",
|
38
|
-
"*.sass",
|
39
|
-
"*.scss"
|
40
|
-
],
|
41
|
-
"files": [
|
42
|
-
"dist",
|
43
|
-
"src"
|
44
|
-
],
|
45
47
|
"publishConfig": {
|
46
48
|
"access": "public",
|
47
49
|
"provenance": true,
|
48
50
|
"registry": "https://registry.npmjs.org/"
|
49
51
|
},
|
50
|
-
"
|
51
|
-
"medium-zoom": "1.1.0"
|
52
|
-
},
|
52
|
+
"jsnext:source": "./src/index.ts",
|
53
53
|
"scripts": {
|
54
|
-
"dev": "rslib build -w",
|
55
54
|
"build": "rslib build",
|
55
|
+
"dev": "rslib build -w",
|
56
56
|
"reset": "rimraf ./**/node_modules",
|
57
57
|
"test": "vitest run --passWithNoTests"
|
58
58
|
}
|
package/src/index.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import path from 'node:path';
|
2
2
|
import { fileURLToPath } from 'node:url';
|
3
|
-
import {
|
3
|
+
import { type RspressPlugin, normalizePosixPath } from '@rspress/shared';
|
4
4
|
import type { ZoomOptions } from 'medium-zoom';
|
5
5
|
|
6
6
|
interface Options {
|