@rspress/plugin-medium-zoom 2.0.0-beta.0 → 2.0.0-beta.2
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 +5 -15
- package/package.json +12 -6
package/dist/index.d.ts
CHANGED
@@ -303,21 +303,6 @@ declare interface MarkdownOptions {
|
|
303
303
|
* Register prism languages
|
304
304
|
*/
|
305
305
|
highlightLanguages?: (string | [string, string])[];
|
306
|
-
/**
|
307
|
-
* Whether to enable mdx-rs, default is true
|
308
|
-
*/
|
309
|
-
mdxRs?: boolean | MdxRsOptions;
|
310
|
-
/**
|
311
|
-
* @deprecated, use `mdxRs` instead
|
312
|
-
*/
|
313
|
-
experimentalMdxRs?: boolean;
|
314
|
-
}
|
315
|
-
|
316
|
-
declare interface MdxRsOptions {
|
317
|
-
/**
|
318
|
-
* Determine whether the file use mdxRs compiler
|
319
|
-
*/
|
320
|
-
include?: (filepath: string) => boolean;
|
321
306
|
}
|
322
307
|
|
323
308
|
declare type Nav = NavItem[] | {
|
@@ -366,6 +351,7 @@ declare interface PageIndexInfo {
|
|
366
351
|
routePath: string;
|
367
352
|
toc: Header[];
|
368
353
|
content: string;
|
354
|
+
_flattenContent?: string;
|
369
355
|
_html: string;
|
370
356
|
frontmatter: FrontMatterMeta;
|
371
357
|
lang: string;
|
@@ -486,6 +472,10 @@ declare interface RspressPlugin {
|
|
486
472
|
* Callback after route generated
|
487
473
|
*/
|
488
474
|
routeGenerated?: (routes: RouteMeta[], isProd: boolean) => Promise<void> | void;
|
475
|
+
/**
|
476
|
+
* Callback after routeService generated
|
477
|
+
*/
|
478
|
+
routeServiceGenerated?: (routeService: any, isProd: boolean) => Promise<void> | void;
|
489
479
|
/**
|
490
480
|
* Add addition ssg routes, for dynamic routes.
|
491
481
|
*/
|
package/package.json
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "@rspress/plugin-medium-zoom",
|
3
|
-
"version": "2.0.0-beta.
|
3
|
+
"version": "2.0.0-beta.2",
|
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": {
|
7
7
|
"type": "git",
|
8
|
-
"url": "https://github.com/web-infra-dev/rspress",
|
8
|
+
"url": "git+https://github.com/web-infra-dev/rspress.git",
|
9
9
|
"directory": "packages/plugin-medium-zoom"
|
10
10
|
},
|
11
11
|
"license": "MIT",
|
@@ -16,7 +16,12 @@
|
|
16
16
|
"*.scss"
|
17
17
|
],
|
18
18
|
"type": "module",
|
19
|
-
"
|
19
|
+
"exports": {
|
20
|
+
".": {
|
21
|
+
"types": "./dist/index.d.ts",
|
22
|
+
"default": "./dist/index.js"
|
23
|
+
}
|
24
|
+
},
|
20
25
|
"module": "./dist/index.js",
|
21
26
|
"types": "./dist/index.d.ts",
|
22
27
|
"files": [
|
@@ -33,15 +38,16 @@
|
|
33
38
|
"@types/react": "^18.3.20",
|
34
39
|
"@types/react-dom": "^18.3.6",
|
35
40
|
"react": "^19.1.0",
|
41
|
+
"rsbuild-plugin-publint": "^0.3.0",
|
36
42
|
"typescript": "^5.8.2",
|
37
43
|
"@rspress/config": "1.0.0",
|
38
|
-
"@rspress/shared": "2.0.0-beta.
|
44
|
+
"@rspress/shared": "2.0.0-beta.2"
|
39
45
|
},
|
40
46
|
"peerDependencies": {
|
41
|
-
"@rspress/runtime": "^2.0.0-beta.
|
47
|
+
"@rspress/runtime": "^2.0.0-beta.2"
|
42
48
|
},
|
43
49
|
"engines": {
|
44
|
-
"node": ">=
|
50
|
+
"node": ">=18.0.0"
|
45
51
|
},
|
46
52
|
"publishConfig": {
|
47
53
|
"access": "public",
|